@creatorsn/powereditor3 0.0.4 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,412 @@
1
- (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t["@creatorsn/powereditor3"]={},t.Vue))})(this,function(t,e){"use strict";const l={class:"dev-c-container"},r=[(n=>(n.install=o=>{o.component(n.name,n)},n))(Object.assign({name:"DevC",data(){return{message:"Welcome to Dev C!"}},mounted(){console.log(this.message)}},{props:{title:{default:"Dev C"}},setup(n){return(o,s)=>{const c=e.resolveComponent("fv-button");return e.openBlock(),e.createElementBlock("div",l,[e.createElementVNode("h1",null,e.toDisplayString(n.title),1),e.createElementVNode("p",null,e.toDisplayString(o.message),1),e.createVNode(c,null,{default:e.withCtx(()=>s[0]||(s[0]=[e.createTextVNode("Confirm")])),_:1,__:[0]})])}}}))],i={install(n,o){for(const s of r)n.use(s)}};t.PowerEditorPlugins=i,t.default=i,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1
+ (function(oi,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],y):(oi=typeof globalThis<"u"?globalThis:oi||self,y(oi["@creatorsn/powereditor3"]={},oi.Vue))})(this,function(oi,y){"use strict";function ln(n){this.content=n}ln.prototype={constructor:ln,find:function(n){for(var e=0;e<this.content.length;e+=2)if(this.content[e]===n)return e;return-1},get:function(n){var e=this.find(n);return e==-1?void 0:this.content[e+1]},update:function(n,e,t){var r=t&&t!=n?this.remove(t):this,i=r.find(n),o=r.content.slice();return i==-1?o.push(t||n,e):(o[i+1]=e,t&&(o[i]=t)),new ln(o)},remove:function(n){var e=this.find(n);if(e==-1)return this;var t=this.content.slice();return t.splice(e,2),new ln(t)},addToStart:function(n,e){return new ln([n,e].concat(this.remove(n).content))},addToEnd:function(n,e){var t=this.remove(n).content.slice();return t.push(n,e),new ln(t)},addBefore:function(n,e,t){var r=this.remove(e),i=r.content.slice(),o=r.find(n);return i.splice(o==-1?i.length:o,0,e,t),new ln(i)},forEach:function(n){for(var e=0;e<this.content.length;e+=2)n(this.content[e],this.content[e+1])},prepend:function(n){return n=ln.from(n),n.size?new ln(n.content.concat(this.subtract(n).content)):this},append:function(n){return n=ln.from(n),n.size?new ln(this.subtract(n).content.concat(n.content)):this},subtract:function(n){var e=this;n=ln.from(n);for(var t=0;t<n.content.length;t+=2)e=e.remove(n.content[t]);return e},toObject:function(){var n={};return this.forEach(function(e,t){n[e]=t}),n},get size(){return this.content.length>>1}},ln.from=function(n){if(n instanceof ln)return n;var e=[];if(n)for(var t in n)e.push(t,n[t]);return new ln(e)};function dm(n,e,t){for(let r=0;;r++){if(r==n.childCount||r==e.childCount)return n.childCount==e.childCount?null:t;let i=n.child(r),o=e.child(r);if(i==o){t+=i.nodeSize;continue}if(!i.sameMarkup(o))return t;if(i.isText&&i.text!=o.text){for(let s=0;i.text[s]==o.text[s];s++)t++;return t}if(i.content.size||o.content.size){let s=dm(i.content,o.content,t+1);if(s!=null)return s}t+=i.nodeSize}}function hm(n,e,t,r){for(let i=n.childCount,o=e.childCount;;){if(i==0||o==0)return i==o?null:{a:t,b:r};let s=n.child(--i),a=e.child(--o),l=s.nodeSize;if(s==a){t-=l,r-=l;continue}if(!s.sameMarkup(a))return{a:t,b:r};if(s.isText&&s.text!=a.text){let c=0,u=Math.min(s.text.length,a.text.length);for(;c<u&&s.text[s.text.length-c-1]==a.text[a.text.length-c-1];)c++,t--,r--;return{a:t,b:r}}if(s.content.size||a.content.size){let c=hm(s.content,a.content,t-1,r-1);if(c)return c}t-=l,r-=l}}class le{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let r=0;r<e.length;r++)this.size+=e[r].nodeSize}nodesBetween(e,t,r,i=0,o){for(let s=0,a=0;a<t;s++){let l=this.content[s],c=a+l.nodeSize;if(c>e&&r(l,i+a,o||null,s)!==!1&&l.content.size){let u=a+1;l.nodesBetween(Math.max(0,e-u),Math.min(l.content.size,t-u),r,i+u)}a=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,i){let o="",s=!0;return this.nodesBetween(e,t,(a,l)=>{let c=a.isText?a.text.slice(Math.max(e,l)-l,t-l):a.isLeaf?i?typeof i=="function"?i(a):i:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&c||a.isTextblock)&&r&&(s?s=!1:o+=r),o+=c},0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,i=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(r)&&(i[i.length-1]=t.withText(t.text+r.text),o=1);o<e.content.length;o++)i.push(e.content[o]);return new le(i,this.size+e.size)}cut(e,t=this.size){if(e==0&&t==this.size)return this;let r=[],i=0;if(t>e)for(let o=0,s=0;s<t;o++){let a=this.content[o],l=s+a.nodeSize;l>e&&((s<e||l>t)&&(a.isText?a=a.cut(Math.max(0,e-s),Math.min(a.text.length,t-s)):a=a.cut(Math.max(0,e-s-1),Math.min(a.content.size,t-s-1))),r.push(a),i+=a.nodeSize),s=l}return new le(r,i)}cutByIndex(e,t){return e==t?le.empty:e==0&&t==this.content.length?this:new le(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let i=this.content.slice(),o=this.size+t.nodeSize-r.nodeSize;return i[e]=t,new le(i,o)}addToStart(e){return new le([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new le(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let i=this.content[t];e(i,r,t),r+=i.nodeSize}}findDiffStart(e,t=0){return dm(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return hm(this,e,t,r)}findIndex(e,t=-1){if(e==0)return Ba(0,e);if(e==this.size)return Ba(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,i=0;;r++){let o=this.child(r),s=i+o.nodeSize;if(s>=e)return s==e||t>0?Ba(r+1,s):Ba(r,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(e,t){if(!t)return le.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new le(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return le.empty;let t,r=0;for(let i=0;i<e.length;i++){let o=e[i];r+=o.nodeSize,i&&o.isText&&e[i-1].sameMarkup(o)?(t||(t=e.slice(0,i)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new le(t||e,r)}static from(e){if(!e)return le.empty;if(e instanceof le)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new le([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}le.empty=new le([],0);const gu={index:0,offset:0};function Ba(n,e){return gu.index=n,gu.offset=e,gu}function Pa(n,e){if(n===e)return!0;if(!(n&&typeof n=="object")||!(e&&typeof e=="object"))return!1;let t=Array.isArray(n);if(Array.isArray(e)!=t)return!1;if(t){if(n.length!=e.length)return!1;for(let r=0;r<n.length;r++)if(!Pa(n[r],e[r]))return!1}else{for(let r in n)if(!(r in e)||!Pa(n[r],e[r]))return!1;for(let r in e)if(!(r in n))return!1}return!0}let Tt=class om{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let i=0;i<e.length;i++){let o=e[i];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,i));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,i)),t.push(this),r=!0),t&&t.push(o)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Pa(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);let i=r.create(t.attrs);return r.checkAttrs(i.attrs),i}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&e.length==0)return om.none;if(e instanceof om)return[e];let t=e.slice();return t.sort((r,i)=>r.type.rank-i.type.rank),t}};Tt.none=[];class Fa extends Error{}class ve{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=pm(this.content,e+this.openStart,t);return r&&new ve(r,this.openStart,this.openEnd)}removeBetween(e,t){return new ve(fm(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return ve.empty;let r=t.openStart||0,i=t.openEnd||0;if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ve(le.fromJSON(e,t.content),r,i)}static maxOpen(e,t=!0){let r=0,i=0;for(let o=e.firstChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.firstChild)r++;for(let o=e.lastChild;o&&!o.isLeaf&&(t||!o.type.spec.isolating);o=o.lastChild)i++;return new ve(e,r,i)}}ve.empty=new ve(le.empty,0,0);function fm(n,e,t){let{index:r,offset:i}=n.findIndex(e),o=n.maybeChild(r),{index:s,offset:a}=n.findIndex(t);if(i==e||o.isText){if(a!=t&&!n.child(s).isText)throw new RangeError("Removing non-flat range");return n.cut(0,e).append(n.cut(t))}if(r!=s)throw new RangeError("Removing non-flat range");return n.replaceChild(r,o.copy(fm(o.content,e-i-1,t-i-1)))}function pm(n,e,t,r){let{index:i,offset:o}=n.findIndex(e),s=n.maybeChild(i);if(o==e||s.isText)return n.cut(0,e).append(t).append(n.cut(e));let a=pm(s.content,e-o-1,t);return a&&n.replaceChild(i,s.copy(a))}function Qw(n,e,t){if(t.openStart>n.depth)throw new Fa("Inserted content deeper than insertion position");if(n.depth-t.openStart!=e.depth-t.openEnd)throw new Fa("Inconsistent open depths");return mm(n,e,t,0)}function mm(n,e,t,r){let i=n.index(r),o=n.node(r);if(i==e.index(r)&&r<n.depth-t.openStart){let s=mm(n,e,t,r+1);return o.copy(o.content.replaceChild(i,s))}else if(t.content.size)if(!t.openStart&&!t.openEnd&&n.depth==r&&e.depth==r){let s=n.parent,a=s.content;return Fi(s,a.cut(0,n.parentOffset).append(t.content).append(a.cut(e.parentOffset)))}else{let{start:s,end:a}=Yw(t,n);return Fi(o,bm(n,s,a,e,r))}else return Fi(o,za(n,e,r))}function gm(n,e){if(!e.type.compatibleContent(n.type))throw new Fa("Cannot join "+e.type.name+" onto "+n.type.name)}function bu(n,e,t){let r=n.node(t);return gm(r,e.node(t)),r}function Pi(n,e){let t=e.length-1;t>=0&&n.isText&&n.sameMarkup(e[t])?e[t]=n.withText(e[t].text+n.text):e.push(n)}function vs(n,e,t,r){let i=(e||n).node(t),o=0,s=e?e.index(t):i.childCount;n&&(o=n.index(t),n.depth>t?o++:n.textOffset&&(Pi(n.nodeAfter,r),o++));for(let a=o;a<s;a++)Pi(i.child(a),r);e&&e.depth==t&&e.textOffset&&Pi(e.nodeBefore,r)}function Fi(n,e){return n.type.checkContent(e),n.copy(e)}function bm(n,e,t,r,i){let o=n.depth>i&&bu(n,e,i+1),s=r.depth>i&&bu(t,r,i+1),a=[];return vs(null,n,i,a),o&&s&&e.index(i)==t.index(i)?(gm(o,s),Pi(Fi(o,bm(n,e,t,r,i+1)),a)):(o&&Pi(Fi(o,za(n,e,i+1)),a),vs(e,t,i,a),s&&Pi(Fi(s,za(t,r,i+1)),a)),vs(r,null,i,a),new le(a)}function za(n,e,t){let r=[];if(vs(null,n,t,r),n.depth>t){let i=bu(n,e,t+1);Pi(Fi(i,za(n,e,t+1)),r)}return vs(e,null,t,r),new le(r)}function Yw(n,e){let t=e.depth-n.openStart,i=e.node(t).copy(n.content);for(let o=t-1;o>=0;o--)i=e.node(o).copy(le.from(i));return{start:i.resolveNoCache(n.openStart+t),end:i.resolveNoCache(i.content.size-n.openEnd-t)}}class ws{constructor(e,t,r){this.pos=e,this.path=t,this.parentOffset=r,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position before the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw new RangeError("There is no position after the top-level node");return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let r=this.pos-this.path[this.path.length-1],i=e.child(t);return r?e.child(t).cut(r):i}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let r=this.path[t*3],i=t==0?0:this.path[t*3-1]+1;for(let o=0;o<e;o++)i+=r.child(o).nodeSize;return i}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return Tt.none;if(this.textOffset)return e.child(t).marks;let r=e.maybeChild(t-1),i=e.maybeChild(t);if(!r){let a=r;r=i,i=a}let o=r.marks;for(var s=0;s<o.length;s++)o[s].type.spec.inclusive===!1&&(!i||!o[s].isInSet(i.marks))&&(o=o[s--].removeFromSet(o));return o}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let r=t.marks,i=e.parent.maybeChild(e.index());for(var o=0;o<r.length;o++)r[o].type.spec.inclusive===!1&&(!i||!r[o].isInSet(i.marks))&&(r=r[o--].removeFromSet(r));return r}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let r=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);r>=0;r--)if(e.pos<=this.end(r)&&(!t||t(this.node(r))))return new qa(this,e,r);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e="";for(let t=1;t<=this.depth;t++)e+=(e?"/":"")+this.node(t).type.name+"_"+this.index(t-1);return e+":"+this.parentOffset}static resolve(e,t){if(!(t>=0&&t<=e.content.size))throw new RangeError("Position "+t+" out of range");let r=[],i=0,o=t;for(let s=e;;){let{index:a,offset:l}=s.content.findIndex(o),c=o-l;if(r.push(s,a,i+l),!c||(s=s.child(a),s.isText))break;o=c-1,i+=l+1}return new ws(t,r,o)}static resolveCached(e,t){let r=_m.get(e);if(r)for(let o=0;o<r.elts.length;o++){let s=r.elts[o];if(s.pos==t)return s}else _m.set(e,r=new Zw);let i=r.elts[r.i]=ws.resolve(e,t);return r.i=(r.i+1)%Xw,i}}class Zw{constructor(){this.elts=[],this.i=0}}const Xw=12,_m=new WeakMap;class qa{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}const Jw=Object.create(null);let si=class sm{constructor(e,t,r,i=Tt.none){this.type=e,this.attrs=t,this.marks=i,this.content=r||le.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,r,i=0){this.content.nodesBetween(e,t,r,i,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,"")}textBetween(e,t,r,i){return this.content.textBetween(e,t,r,i)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,r){return this.type==e&&Pa(this.attrs,t||e.defaultAttrs||Jw)&&Tt.sameSet(this.marks,r||Tt.none)}copy(e=null){return e==this.content?this:new sm(this.type,this.attrs,e,this.marks)}mark(e){return e==this.marks?this:new sm(this.type,this.attrs,this.content,e)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,r=!1){if(e==t)return ve.empty;let i=this.resolve(e),o=this.resolve(t),s=r?0:i.sharedDepth(t),a=i.start(s),c=i.node(s).content.cut(i.pos-a,o.pos-a);return new ve(c,i.depth-s,o.depth-s)}replace(e,t,r){return Qw(this.resolve(e),this.resolve(t),r)}nodeAt(e){for(let t=this;;){let{index:r,offset:i}=t.content.findIndex(e);if(t=t.maybeChild(r),!t)return null;if(i==e||t.isText)return t;e-=i+1}}childAfter(e){let{index:t,offset:r}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:r}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:r}=this.content.findIndex(e);if(r<e)return{node:this.content.child(t),index:t,offset:r};let i=this.content.child(t-1);return{node:i,index:t-1,offset:r-i.nodeSize}}resolve(e){return ws.resolveCached(this,e)}resolveNoCache(e){return ws.resolve(this,e)}rangeHasMark(e,t,r){let i=!1;return t>e&&this.nodesBetween(e,t,o=>(r.isInSet(o.marks)&&(i=!0),!i)),i}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+="("+this.content.toStringInner()+")"),ym(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw new Error("Called contentMatchAt on a node with invalid content");return t}canReplace(e,t,r=le.empty,i=0,o=r.childCount){let s=this.contentMatchAt(e).matchFragment(r,i,o),a=s&&s.matchFragment(this.content,t);if(!a||!a.validEnd)return!1;for(let l=i;l<o;l++)if(!this.type.allowsMarks(r.child(l).marks))return!1;return!0}canReplaceWith(e,t,r,i){if(i&&!this.type.allowsMarks(i))return!1;let o=this.contentMatchAt(e).matchType(r),s=o&&o.matchFragment(this.content,t);return s?s.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=Tt.none;for(let t=0;t<this.marks.length;t++){let r=this.marks[t];r.type.checkAttrs(r.attrs),e=r.addToSet(e)}if(!Tt.sameSet(e,this.marks))throw new RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(t=>t.type.name)}`);this.content.forEach(t=>t.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(t=>t.toJSON())),e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Node.fromJSON");let r;if(t.marks){if(!Array.isArray(t.marks))throw new RangeError("Invalid mark data for Node.fromJSON");r=t.marks.map(e.markFromJSON)}if(t.type=="text"){if(typeof t.text!="string")throw new RangeError("Invalid text node in JSON");return e.text(t.text,r)}let i=le.fromJSON(e,t.content),o=e.nodeType(t.type).create(t.attrs,i,r);return o.type.checkAttrs(o.attrs),o}};si.prototype.text=void 0;class Ha extends si{constructor(e,t,r,i){if(super(e,t,null,i),!r)throw new RangeError("Empty text nodes are not allowed");this.text=r}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):ym(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(e){return e==this.marks?this:new Ha(this.type,this.attrs,this.text,e)}withText(e){return e==this.text?this:new Ha(this.type,this.attrs,e,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}}function ym(n,e){for(let t=n.length-1;t>=0;t--)e=n[t].type.name+"("+e+")";return e}class zi{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(e,t){let r=new e6(e,t);if(r.next==null)return zi.empty;let i=vm(r);r.next&&r.err("Unexpected trailing text");let o=a6(s6(i));return l6(o,r),o}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,r=e.childCount){let i=this;for(let o=t;i&&o<r;o++)i=i.matchType(e.child(o).type);return i}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let r=0;r<e.next.length;r++)if(this.next[t].type==e.next[r].type)return!0;return!1}fillBefore(e,t=!1,r=0){let i=[this];function o(s,a){let l=s.matchFragment(e,r);if(l&&(!t||l.validEnd))return le.from(a.map(c=>c.createAndFill()));for(let c=0;c<s.next.length;c++){let{type:u,next:h}=s.next[c];if(!(u.isText||u.hasRequiredAttrs())&&i.indexOf(h)==-1){i.push(h);let g=o(h,a.concat(u));if(g)return g}}return null}return o(this,[])}findWrapping(e){for(let r=0;r<this.wrapCache.length;r+=2)if(this.wrapCache[r]==e)return this.wrapCache[r+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),r=[{match:this,type:null,via:null}];for(;r.length;){let i=r.shift(),o=i.match;if(o.matchType(e)){let s=[];for(let a=i;a.type;a=a.via)s.push(a.type);return s.reverse()}for(let s=0;s<o.next.length;s++){let{type:a,next:l}=o.next[s];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!i.type||l.validEnd)&&(r.push({match:a.contentMatch,type:a,via:i}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw new RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(r){e.push(r);for(let i=0;i<r.next.length;i++)e.indexOf(r.next[i].next)==-1&&t(r.next[i].next)}return t(this),e.map((r,i)=>{let o=i+(r.validEnd?"*":" ")+" ";for(let s=0;s<r.next.length;s++)o+=(s?", ":"")+r.next[s].type.name+"->"+e.indexOf(r.next[s].next);return o}).join(`
2
+ `)}}zi.empty=new zi(!0);class e6{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==""&&this.tokens.pop(),this.tokens[0]==""&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw new SyntaxError(e+" (in content expression '"+this.string+"')")}}function vm(n){let e=[];do e.push(t6(n));while(n.eat("|"));return e.length==1?e[0]:{type:"choice",exprs:e}}function t6(n){let e=[];do e.push(n6(n));while(n.next&&n.next!=")"&&n.next!="|");return e.length==1?e[0]:{type:"seq",exprs:e}}function n6(n){let e=o6(n);for(;;)if(n.eat("+"))e={type:"plus",expr:e};else if(n.eat("*"))e={type:"star",expr:e};else if(n.eat("?"))e={type:"opt",expr:e};else if(n.eat("{"))e=r6(n,e);else break;return e}function wm(n){/\D/.test(n.next)&&n.err("Expected number, got '"+n.next+"'");let e=Number(n.next);return n.pos++,e}function r6(n,e){let t=wm(n),r=t;return n.eat(",")&&(n.next!="}"?r=wm(n):r=-1),n.eat("}")||n.err("Unclosed braced range"),{type:"range",min:t,max:r,expr:e}}function i6(n,e){let t=n.nodeTypes,r=t[e];if(r)return[r];let i=[];for(let o in t){let s=t[o];s.isInGroup(e)&&i.push(s)}return i.length==0&&n.err("No node type or group '"+e+"' found"),i}function o6(n){if(n.eat("(")){let e=vm(n);return n.eat(")")||n.err("Missing closing paren"),e}else if(/\W/.test(n.next))n.err("Unexpected token '"+n.next+"'");else{let e=i6(n,n.next).map(t=>(n.inline==null?n.inline=t.isInline:n.inline!=t.isInline&&n.err("Mixing inline and block content"),{type:"name",value:t}));return n.pos++,e.length==1?e[0]:{type:"choice",exprs:e}}}function s6(n){let e=[[]];return i(o(n,0),t()),e;function t(){return e.push([])-1}function r(s,a,l){let c={term:l,to:a};return e[s].push(c),c}function i(s,a){s.forEach(l=>l.to=a)}function o(s,a){if(s.type=="choice")return s.exprs.reduce((l,c)=>l.concat(o(c,a)),[]);if(s.type=="seq")for(let l=0;;l++){let c=o(s.exprs[l],a);if(l==s.exprs.length-1)return c;i(c,a=t())}else if(s.type=="star"){let l=t();return r(a,l),i(o(s.expr,l),l),[r(l)]}else if(s.type=="plus"){let l=t();return i(o(s.expr,a),l),i(o(s.expr,l),l),[r(l)]}else{if(s.type=="opt")return[r(a)].concat(o(s.expr,a));if(s.type=="range"){let l=a;for(let c=0;c<s.min;c++){let u=t();i(o(s.expr,l),u),l=u}if(s.max==-1)i(o(s.expr,l),l);else for(let c=s.min;c<s.max;c++){let u=t();r(l,u),i(o(s.expr,l),u),l=u}return[r(l)]}else{if(s.type=="name")return[r(a,void 0,s.value)];throw new Error("Unknown expr type")}}}}function xm(n,e){return e-n}function km(n,e){let t=[];return r(e),t.sort(xm);function r(i){let o=n[i];if(o.length==1&&!o[0].term)return r(o[0].to);t.push(i);for(let s=0;s<o.length;s++){let{term:a,to:l}=o[s];!a&&t.indexOf(l)==-1&&r(l)}}}function a6(n){let e=Object.create(null);return t(km(n,0));function t(r){let i=[];r.forEach(s=>{n[s].forEach(({term:a,to:l})=>{if(!a)return;let c;for(let u=0;u<i.length;u++)i[u][0]==a&&(c=i[u][1]);km(n,l).forEach(u=>{c||i.push([a,c=[]]),c.indexOf(u)==-1&&c.push(u)})})});let o=e[r.join(",")]=new zi(r.indexOf(n.length-1)>-1);for(let s=0;s<i.length;s++){let a=i[s][1].sort(xm);o.next.push({type:i[s][0],next:e[a.join(",")]||t(a)})}return o}}function l6(n,e){for(let t=0,r=[n];t<r.length;t++){let i=r[t],o=!i.validEnd,s=[];for(let a=0;a<i.next.length;a++){let{type:l,next:c}=i.next[a];s.push(l.name),o&&!(l.isText||l.hasRequiredAttrs())&&(o=!1),r.indexOf(c)==-1&&r.push(c)}o&&e.err("Only non-generatable nodes ("+s.join(", ")+") in a required position (see https://prosemirror.net/docs/guide/#generatable)")}}function Sm(n){let e=Object.create(null);for(let t in n){let r=n[t];if(!r.hasDefault)return null;e[t]=r.default}return e}function Em(n,e){let t=Object.create(null);for(let r in n){let i=e&&e[r];if(i===void 0){let o=n[r];if(o.hasDefault)i=o.default;else throw new RangeError("No value supplied for attribute "+r)}t[r]=i}return t}function Cm(n,e,t,r){for(let i in e)if(!(i in n))throw new RangeError(`Unsupported attribute ${i} for ${t} of type ${i}`);for(let i in n){let o=n[i];o.validate&&o.validate(e[i])}}function Tm(n,e){let t=Object.create(null);if(e)for(let r in e)t[r]=new u6(n,r,e[r]);return t}let Am=class Kw{constructor(e,t,r){this.name=e,this.schema=t,this.spec=r,this.markSet=null,this.groups=r.group?r.group.split(" "):[],this.attrs=Tm(e,r.attrs),this.defaultAttrs=Sm(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(r.inline||e=="text"),this.isText=e=="text"}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==zi.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:Em(this.attrs,e)}create(e=null,t,r){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new si(this,this.computeAttrs(e),le.from(t),Tt.setFrom(r))}createChecked(e=null,t,r){return t=le.from(t),this.checkContent(t),new si(this,this.computeAttrs(e),t,Tt.setFrom(r))}createAndFill(e=null,t,r){if(e=this.computeAttrs(e),t=le.from(t),t.size){let s=this.contentMatch.fillBefore(t);if(!s)return null;t=s.append(t)}let i=this.contentMatch.matchFragment(t),o=i&&i.fillBefore(le.empty,!0);return o?new si(this,e,t.append(o),Tt.setFrom(r)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let r=0;r<e.childCount;r++)if(!this.allowsMarks(e.child(r).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw new RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){Cm(this.attrs,e,"node",this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let r=0;r<e.length;r++)this.allowsMarkType(e[r].type)?t&&t.push(e[r]):t||(t=e.slice(0,r));return t?t.length?t:Tt.none:e}static compile(e,t){let r=Object.create(null);e.forEach((o,s)=>r[o]=new Kw(o,t,s));let i=t.spec.topNode||"doc";if(!r[i])throw new RangeError("Schema is missing its top node type ('"+i+"')");if(!r.text)throw new RangeError("Every schema needs a 'text' type");for(let o in r.text.attrs)throw new RangeError("The text node type should not have attributes");return r}};function c6(n,e,t){let r=t.split("|");return i=>{let o=i===null?"null":typeof i;if(r.indexOf(o)<0)throw new RangeError(`Expected value of type ${r} for attribute ${e} on type ${n}, got ${o}`)}}class u6{constructor(e,t,r){this.hasDefault=Object.prototype.hasOwnProperty.call(r,"default"),this.default=r.default,this.validate=typeof r.validate=="string"?c6(e,t,r.validate):r.validate}get isRequired(){return!this.hasDefault}}class Va{constructor(e,t,r,i){this.name=e,this.rank=t,this.schema=r,this.spec=i,this.attrs=Tm(e,i.attrs),this.excluded=null;let o=Sm(this.attrs);this.instance=o?new Tt(this,o):null}create(e=null){return!e&&this.instance?this.instance:new Tt(this,Em(this.attrs,e))}static compile(e,t){let r=Object.create(null),i=0;return e.forEach((o,s)=>r[o]=new Va(o,i++,t,s)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){Cm(this.attrs,e,"mark",this.name)}excludes(e){return this.excluded.indexOf(e)>-1}}class Mm{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let i in e)t[i]=e[i];t.nodes=ln.from(e.nodes),t.marks=ln.from(e.marks||{}),this.nodes=Am.compile(this.spec.nodes,this),this.marks=Va.compile(this.spec.marks,this);let r=Object.create(null);for(let i in this.nodes){if(i in this.marks)throw new RangeError(i+" can not be both a node and a mark");let o=this.nodes[i],s=o.spec.content||"",a=o.spec.marks;if(o.contentMatch=r[s]||(r[s]=zi.parse(s,this.nodes)),o.inlineContent=o.contentMatch.inlineContent,o.spec.linebreakReplacement){if(this.linebreakReplacement)throw new RangeError("Multiple linebreak nodes defined");if(!o.isInline||!o.isLeaf)throw new RangeError("Linebreak replacement nodes must be inline leaf nodes");this.linebreakReplacement=o}o.markSet=a=="_"?null:a?Nm(this,a.split(" ")):a==""||!o.inlineContent?[]:null}for(let i in this.marks){let o=this.marks[i],s=o.spec.excludes;o.excluded=s==null?[o]:s==""?[]:Nm(this,s.split(" "))}this.nodeFromJSON=this.nodeFromJSON.bind(this),this.markFromJSON=this.markFromJSON.bind(this),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,t=null,r,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof Am){if(e.schema!=this)throw new RangeError("Node type from different schema used ("+e.name+")")}else throw new RangeError("Invalid node type: "+e);return e.createChecked(t,r,i)}text(e,t){let r=this.nodes.text;return new Ha(r,r.defaultAttrs,e,Tt.setFrom(t))}mark(e,t){return typeof e=="string"&&(e=this.marks[e]),e.create(t)}nodeFromJSON(e){return si.fromJSON(this,e)}markFromJSON(e){return Tt.fromJSON(this,e)}nodeType(e){let t=this.nodes[e];if(!t)throw new RangeError("Unknown node type: "+e);return t}}function Nm(n,e){let t=[];for(let r=0;r<e.length;r++){let i=e[r],o=n.marks[i],s=o;if(o)t.push(o);else for(let a in n.marks){let l=n.marks[a];(i=="_"||l.spec.group&&l.spec.group.split(" ").indexOf(i)>-1)&&t.push(s=l)}if(!s)throw new SyntaxError("Unknown mark type: '"+e[r]+"'")}return t}function d6(n){return n.tag!=null}function h6(n){return n.style!=null}let qi=class am{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[];let r=this.matchedStyles=[];t.forEach(i=>{if(d6(i))this.tags.push(i);else if(h6(i)){let o=/[^=]*/.exec(i.style)[0];r.indexOf(o)<0&&r.push(o),this.styles.push(i)}}),this.normalizeLists=!this.tags.some(i=>{if(!/^(ul|ol)\b/.test(i.tag)||!i.node)return!1;let o=e.nodes[i.node];return o.contentMatch.matchType(o)})}parse(e,t={}){let r=new Im(this,t,!1);return r.addAll(e,Tt.none,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Im(this,t,!0);return r.addAll(e,Tt.none,t.from,t.to),ve.maxOpen(r.finish())}matchTag(e,t,r){for(let i=r?this.tags.indexOf(r)+1:0;i<this.tags.length;i++){let o=this.tags[i];if(m6(e,o.tag)&&(o.namespace===void 0||e.namespaceURI==o.namespace)&&(!o.context||t.matchesContext(o.context))){if(o.getAttrs){let s=o.getAttrs(e);if(s===!1)continue;o.attrs=s||void 0}return o}}}matchStyle(e,t,r,i){for(let o=i?this.styles.indexOf(i)+1:0;o<this.styles.length;o++){let s=this.styles[o],a=s.style;if(!(a.indexOf(e)!=0||s.context&&!r.matchesContext(s.context)||a.length>e.length&&(a.charCodeAt(e.length)!=61||a.slice(e.length+1)!=t))){if(s.getAttrs){let l=s.getAttrs(t);if(l===!1)continue;s.attrs=l||void 0}return s}}}static schemaRules(e){let t=[];function r(i){let o=i.priority==null?50:i.priority,s=0;for(;s<t.length;s++){let a=t[s];if((a.priority==null?50:a.priority)<o)break}t.splice(s,0,i)}for(let i in e.marks){let o=e.marks[i].spec.parseDOM;o&&o.forEach(s=>{r(s=Lm(s)),s.mark||s.ignore||s.clearMark||(s.mark=i)})}for(let i in e.nodes){let o=e.nodes[i].spec.parseDOM;o&&o.forEach(s=>{r(s=Lm(s)),s.node||s.ignore||s.mark||(s.node=i)})}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new am(e,am.schemaRules(e)))}};const Dm={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},f6={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Rm={ol:!0,ul:!0},xs=1,_u=2,ks=4;function Om(n,e,t){return e!=null?(e?xs:0)|(e==="full"?_u:0):n&&n.whitespace=="pre"?xs|_u:t&~ks}class Ua{constructor(e,t,r,i,o,s){this.type=e,this.attrs=t,this.marks=r,this.solid=i,this.options=s,this.content=[],this.activeMarks=Tt.none,this.match=o||(s&ks?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(le.from(e));if(t)this.match=this.type.contentMatch.matchFragment(t);else{let r=this.type.contentMatch,i;return(i=r.findWrapping(e.type))?(this.match=r,i):null}}return this.match.findWrapping(e.type)}finish(e){if(!(this.options&xs)){let r=this.content[this.content.length-1],i;if(r&&r.isText&&(i=/[ \t\r\n\u000c]+$/.exec(r.text))){let o=r;r.text.length==i[0].length?this.content.pop():this.content[this.content.length-1]=o.withText(o.text.slice(0,o.text.length-i[0].length))}}let t=le.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(le.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!Dm.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Im{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0,this.localPreserveWS=!1;let i=t.topNode,o,s=Om(null,t.preserveWhitespace,0)|(r?ks:0);i?o=new Ua(i.type,i.attrs,Tt.none,!0,t.topMatch||i.type.contentMatch,s):r?o=new Ua(null,null,Tt.none,!0,null,s):o=new Ua(e.schema.topNodeType,null,Tt.none,!0,null,s),this.nodes=[o],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e,t){e.nodeType==3?this.addTextNode(e,t):e.nodeType==1&&this.addElement(e,t)}addTextNode(e,t){let r=e.nodeValue,i=this.top,o=i.options&_u?"full":this.localPreserveWS||(i.options&xs)>0;if(o==="full"||i.inlineContext(e)||/[^ \t\r\n\u000c]/.test(r)){if(o)o!=="full"?r=r.replace(/\r?\n|\r/g," "):r=r.replace(/\r\n?/g,`
3
+ `);else if(r=r.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(r)&&this.open==this.nodes.length-1){let s=i.content[i.content.length-1],a=e.previousSibling;(!s||a&&a.nodeName=="BR"||s.isText&&/[ \t\r\n\u000c]$/.test(s.text))&&(r=r.slice(1))}r&&this.insertNode(this.parser.schema.text(r),t,!/\S/.test(r)),this.findInText(e)}else this.findInside(e)}addElement(e,t,r){let i=this.localPreserveWS,o=this.top;(e.tagName=="PRE"||/pre/.test(e.style&&e.style.whiteSpace))&&(this.localPreserveWS=!0);let s=e.nodeName.toLowerCase(),a;Rm.hasOwnProperty(s)&&this.parser.normalizeLists&&p6(e);let l=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(a=this.parser.matchTag(e,this,r));e:if(l?l.ignore:f6.hasOwnProperty(s))this.findInside(e),this.ignoreFallback(e,t);else if(!l||l.skip||l.closeParent){l&&l.closeParent?this.open=Math.max(0,this.open-1):l&&l.skip.nodeType&&(e=l.skip);let c,u=this.needsBlock;if(Dm.hasOwnProperty(s))o.content.length&&o.content[0].isInline&&this.open&&(this.open--,o=this.top),c=!0,o.type||(this.needsBlock=!0);else if(!e.firstChild){this.leafFallback(e,t);break e}let h=l&&l.skip?t:this.readStyles(e,t);h&&this.addAll(e,h),c&&this.sync(o),this.needsBlock=u}else{let c=this.readStyles(e,t);c&&this.addElementByRule(e,l,c,l.consuming===!1?a:void 0)}this.localPreserveWS=i}leafFallback(e,t){e.nodeName=="BR"&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode(`
4
+ `),t)}ignoreFallback(e,t){e.nodeName=="BR"&&(!this.top.type||!this.top.type.inlineContent)&&this.findPlace(this.parser.schema.text("-"),t,!0)}readStyles(e,t){let r=e.style;if(r&&r.length)for(let i=0;i<this.parser.matchedStyles.length;i++){let o=this.parser.matchedStyles[i],s=r.getPropertyValue(o);if(s)for(let a=void 0;;){let l=this.parser.matchStyle(o,s,this,a);if(!l)break;if(l.ignore)return null;if(l.clearMark?t=t.filter(c=>!l.clearMark(c)):t=t.concat(this.parser.schema.marks[l.mark].create(l.attrs)),l.consuming===!1)a=l;else break}}return t}addElementByRule(e,t,r,i){let o,s;if(t.node)if(s=this.parser.schema.nodes[t.node],s.isLeaf)this.insertNode(s.create(t.attrs),r,e.nodeName=="BR")||this.leafFallback(e,r);else{let l=this.enter(s,t.attrs||null,r,t.preserveWhitespace);l&&(o=!0,r=l)}else{let l=this.parser.schema.marks[t.mark];r=r.concat(l.create(t.attrs))}let a=this.top;if(s&&s.isLeaf)this.findInside(e);else if(i)this.addElement(e,r,i);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach(l=>this.insertNode(l,r,!1));else{let l=e;typeof t.contentElement=="string"?l=e.querySelector(t.contentElement):typeof t.contentElement=="function"?l=t.contentElement(e):t.contentElement&&(l=t.contentElement),this.findAround(e,l,!0),this.addAll(l,r),this.findAround(e,l,!1)}o&&this.sync(a)&&this.open--}addAll(e,t,r,i){let o=r||0;for(let s=r?e.childNodes[r]:e.firstChild,a=i==null?null:e.childNodes[i];s!=a;s=s.nextSibling,++o)this.findAtPoint(e,o),this.addDOM(s,t);this.findAtPoint(e,o)}findPlace(e,t,r){let i,o;for(let s=this.open,a=0;s>=0;s--){let l=this.nodes[s],c=l.findWrapping(e);if(c&&(!i||i.length>c.length+a)&&(i=c,o=l,!c.length))break;if(l.solid){if(r)break;a+=2}}if(!i)return null;this.sync(o);for(let s=0;s<i.length;s++)t=this.enterInner(i[s],null,t,!1);return t}insertNode(e,t,r){if(e.isInline&&this.needsBlock&&!this.top.type){let o=this.textblockFromContext();o&&(t=this.enterInner(o,null,t))}let i=this.findPlace(e,t,r);if(i){this.closeExtra();let o=this.top;o.match&&(o.match=o.match.matchType(e.type));let s=Tt.none;for(let a of i.concat(e.marks))(o.type?o.type.allowsMarkType(a.type):Bm(a.type,e.type))&&(s=a.addToSet(s));return o.content.push(e.mark(s)),!0}return!1}enter(e,t,r,i){let o=this.findPlace(e.create(t),r,!1);return o&&(o=this.enterInner(e,t,r,!0,i)),o}enterInner(e,t,r,i=!1,o){this.closeExtra();let s=this.top;s.match=s.match&&s.match.matchType(e);let a=Om(e,o,s.options);s.options&ks&&s.content.length==0&&(a|=ks);let l=Tt.none;return r=r.filter(c=>(s.type?s.type.allowsMarkType(c.type):Bm(c.type,e))?(l=c.addToSet(l),!1):!0),this.nodes.push(new Ua(e,t,l,i,null,a)),this.open++,r}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(!!(this.isOpen||this.options.topOpen))}sync(e){for(let t=this.open;t>=0;t--){if(this.nodes[t]==e)return this.open=t,!0;this.localPreserveWS&&(this.nodes[t].options|=xs)}return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let i=r.length-1;i>=0;i--)e+=r[i].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].pos==null&&e.nodeType==1&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let i=0;i<this.find.length;i++)this.find[i].pos==null&&e.nodeType==1&&e.contains(this.find[i].node)&&t.compareDocumentPosition(this.find[i].node)&(r?2:4)&&(this.find[i].pos=this.currentPos)}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,i=!this.isOpen&&(!r||r.parent.type==this.nodes[0].type),o=-(r?r.depth+1:0)+(i?0:1),s=(a,l)=>{for(;a>=0;a--){let c=t[a];if(c==""){if(a==t.length-1||a==0)continue;for(;l>=o;l--)if(s(a-1,l))return!0;return!1}else{let u=l>0||l==0&&i?this.nodes[l].type:r&&l>=o?r.node(l-o).type:null;if(!u||u.name!=c&&!u.isInGroup(c))return!1;l--}}return!0};return s(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let t in this.parser.schema.nodes){let r=this.parser.schema.nodes[t];if(r.isTextblock&&r.defaultAttrs)return r}}}function p6(n){for(let e=n.firstChild,t=null;e;e=e.nextSibling){let r=e.nodeType==1?e.nodeName.toLowerCase():null;r&&Rm.hasOwnProperty(r)&&t?(t.appendChild(e),e=t):r=="li"?t=e:r&&(t=null)}}function m6(n,e){return(n.matches||n.msMatchesSelector||n.webkitMatchesSelector||n.mozMatchesSelector).call(n,e)}function Lm(n){let e={};for(let t in n)e[t]=n[t];return e}function Bm(n,e){let t=e.schema.nodes;for(let r in t){let i=t[r];if(!i.allowsMarkType(n))continue;let o=[],s=a=>{o.push(a);for(let l=0;l<a.edgeCount;l++){let{type:c,next:u}=a.edge(l);if(c==e||o.indexOf(u)<0&&s(u))return!0}};if(s(i.contentMatch))return!0}}class Hi{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=yu(t).createDocumentFragment());let i=r,o=[];return e.forEach(s=>{if(o.length||s.marks.length){let a=0,l=0;for(;a<o.length&&l<s.marks.length;){let c=s.marks[l];if(!this.marks[c.type.name]){l++;continue}if(!c.eq(o[a][0])||c.type.spec.spanning===!1)break;a++,l++}for(;a<o.length;)i=o.pop()[1];for(;l<s.marks.length;){let c=s.marks[l++],u=this.serializeMark(c,s.isInline,t);u&&(o.push([c,i]),i.appendChild(u.dom),i=u.contentDOM||u.dom)}}i.appendChild(this.serializeNodeInner(s,t))}),r}serializeNodeInner(e,t){let{dom:r,contentDOM:i}=Ga(yu(t),this.nodes[e.type.name](e),null,e.attrs);if(i){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,i)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let i=e.marks.length-1;i>=0;i--){let o=this.serializeMark(e.marks[i],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,t,r={}){let i=this.marks[e.type.name];return i&&Ga(yu(r),i(e,t),null,e.attrs)}static renderSpec(e,t,r=null,i){return Ga(e,t,r,i)}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Hi(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Pm(e.nodes);return t.text||(t.text=r=>r.text),t}static marksFromSchema(e){return Pm(e.marks)}}function Pm(n){let e={};for(let t in n){let r=n[t].spec.toDOM;r&&(e[t]=r)}return e}function yu(n){return n.document||window.document}const Fm=new WeakMap;function g6(n){let e=Fm.get(n);return e===void 0&&Fm.set(n,e=b6(n)),e}function b6(n){let e=null;function t(r){if(r&&typeof r=="object")if(Array.isArray(r))if(typeof r[0]=="string")e||(e=[]),e.push(r);else for(let i=0;i<r.length;i++)t(r[i]);else for(let i in r)t(r[i])}return t(n),e}function Ga(n,e,t,r){if(typeof e=="string")return{dom:n.createTextNode(e)};if(e.nodeType!=null)return{dom:e};if(e.dom&&e.dom.nodeType!=null)return e;let i=e[0],o;if(typeof i!="string")throw new RangeError("Invalid array passed to renderSpec");if(r&&(o=g6(r))&&o.indexOf(e)>-1)throw new RangeError("Using an array from an attribute object as a DOM spec. This may be an attempted cross site scripting attack.");let s=i.indexOf(" ");s>0&&(t=i.slice(0,s),i=i.slice(s+1));let a,l=t?n.createElementNS(t,i):n.createElement(i),c=e[1],u=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){u=2;for(let h in c)if(c[h]!=null){let g=h.indexOf(" ");g>0?l.setAttributeNS(h.slice(0,g),h.slice(g+1),c[h]):l.setAttribute(h,c[h])}}for(let h=u;h<e.length;h++){let g=e[h];if(g===0){if(h<e.length-1||h>u)throw new RangeError("Content hole must be the only child of its parent node");return{dom:l,contentDOM:l}}else{let{dom:b,contentDOM:p}=Ga(n,g,t,r);if(l.appendChild(b),p){if(a)throw new RangeError("Multiple content holes");a=p}}}return{dom:l,contentDOM:a}}const zm=65535,qm=Math.pow(2,16);function _6(n,e){return n+e*qm}function Hm(n){return n&zm}function y6(n){return(n-(n&zm))/qm}const Vm=1,Um=2,$a=4,Gm=8;class vu{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(this.delInfo&Gm)>0}get deletedBefore(){return(this.delInfo&(Vm|$a))>0}get deletedAfter(){return(this.delInfo&(Um|$a))>0}get deletedAcross(){return(this.delInfo&$a)>0}}class Fn{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Fn.empty)return Fn.empty}recover(e){let t=0,r=Hm(e);if(!this.inverted)for(let i=0;i<r;i++)t+=this.ranges[i*3+2]-this.ranges[i*3+1];return this.ranges[r*3]+t+y6(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let i=0,o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?i:0);if(l>e)break;let c=this.ranges[a+o],u=this.ranges[a+s],h=l+c;if(e<=h){let g=c?e==l?-1:e==h?1:t:t,b=l+i+(g<0?0:u);if(r)return b;let p=e==(t<0?l:h)?null:_6(a/3,e-l),v=e==l?Um:e==h?Vm:$a;return(t<0?e!=l:e!=h)&&(v|=Gm),new vu(b,v,p)}i+=u-c}return r?e+i:new vu(e+i,0,null)}touches(e,t){let r=0,i=Hm(t),o=this.inverted?2:1,s=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let l=this.ranges[a]-(this.inverted?r:0);if(l>e)break;let c=this.ranges[a+o],u=l+c;if(e<=u&&a==i*3)return!0;r+=this.ranges[a+s]-c}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let i=0,o=0;i<this.ranges.length;i+=3){let s=this.ranges[i],a=s-(this.inverted?o:0),l=s+(this.inverted?0:o),c=this.ranges[i+t],u=this.ranges[i+r];e(a,a+c,l,l+u),o+=u-c}}invert(){return new Fn(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return e==0?Fn.empty:new Fn(e<0?[0,-e,0]:[0,0,e])}}Fn.empty=new Fn([]);class Ss{constructor(e,t,r=0,i=e?e.length:0){this.mirror=t,this.from=r,this.to=i,this._maps=e||[],this.ownData=!(e||t)}get maps(){return this._maps}slice(e=0,t=this.maps.length){return new Ss(this._maps,this.mirror,e,t)}appendMap(e,t){this.ownData||(this._maps=this._maps.slice(),this.mirror=this.mirror&&this.mirror.slice(),this.ownData=!0),this.to=this._maps.push(e),t!=null&&this.setMirror(this._maps.length-1,t)}appendMapping(e){for(let t=0,r=this._maps.length;t<e._maps.length;t++){let i=e.getMirror(t);this.appendMap(e._maps[t],i!=null&&i<t?r+i:void 0)}}getMirror(e){if(this.mirror){for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this._maps.length+e._maps.length;t>=0;t--){let i=e.getMirror(t);this.appendMap(e._maps[t].invert(),i!=null&&i>t?r-i-1:void 0)}}invert(){let e=new Ss;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this._maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let i=0;for(let o=this.from;o<this.to;o++){let s=this._maps[o],a=s.mapResult(e,t);if(a.recover!=null){let l=this.getMirror(o);if(l!=null&&l>o&&l<this.to){o=l,e=this._maps[l].recover(a.recover);continue}}i|=a.delInfo,e=a.pos}return r?e:new vu(e,i,null)}}const wu=Object.create(null);class pn{getMap(){return Fn.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=wu[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in wu)throw new RangeError("Duplicate use of step JSON ID "+e);return wu[e]=t,t.prototype.jsonID=e,t}}class Yt{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new Yt(e,null)}static fail(e){return new Yt(null,e)}static fromReplace(e,t,r,i){try{return Yt.ok(e.replace(t,r,i))}catch(o){if(o instanceof Fa)return Yt.fail(o.message);throw o}}}function xu(n,e,t){let r=[];for(let i=0;i<n.childCount;i++){let o=n.child(i);o.content.size&&(o=o.copy(xu(o.content,e,o))),o.isInline&&(o=e(o,t,i)),r.push(o)}return le.fromArray(r)}class ai extends pn{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),i=r.node(r.sharedDepth(this.to)),o=new ve(xu(t.content,(s,a)=>!s.isAtom||!a.type.allowsMarkType(this.mark.type)?s:s.mark(this.mark.addToSet(s.marks)),i),t.openStart,t.openEnd);return Yt.fromReplace(e,this.from,this.to,o)}invert(){return new vr(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new ai(t.pos,r.pos,this.mark)}merge(e){return e instanceof ai&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new ai(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new ai(t.from,t.to,e.markFromJSON(t.mark))}}pn.jsonID("addMark",ai);class vr extends pn{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new ve(xu(t.content,i=>i.mark(this.mark.removeFromSet(i.marks)),e),t.openStart,t.openEnd);return Yt.fromReplace(e,this.from,this.to,r)}invert(){return new ai(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new vr(t.pos,r.pos,this.mark)}merge(e){return e instanceof vr&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new vr(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new vr(t.from,t.to,e.markFromJSON(t.mark))}}pn.jsonID("removeMark",vr);class li extends pn{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Yt.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Yt.fromReplace(e,this.pos,this.pos+1,new ve(le.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let r=this.mark.addToSet(t.marks);if(r.length==t.marks.length){for(let i=0;i<t.marks.length;i++)if(!t.marks[i].isInSet(r))return new li(this.pos,t.marks[i]);return new li(this.pos,this.mark)}}return new Vi(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new li(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new li(t.pos,e.markFromJSON(t.mark))}}pn.jsonID("addNodeMark",li);class Vi extends pn{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Yt.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Yt.fromReplace(e,this.pos,this.pos+1,new ve(le.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new li(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Vi(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Vi(t.pos,e.markFromJSON(t.mark))}}pn.jsonID("removeNodeMark",Vi);class en extends pn{constructor(e,t,r,i=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=i}apply(e){return this.structure&&ku(e,this.from,this.to)?Yt.fail("Structure replace would overwrite content"):Yt.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Fn([this.from,this.to-this.from,this.slice.size])}invert(e){return new en(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new en(t.pos,Math.max(t.pos,r.pos),this.slice,this.structure)}merge(e){if(!(e instanceof en)||e.structure||this.structure)return null;if(this.from+this.slice.size==e.from&&!this.slice.openEnd&&!e.slice.openStart){let t=this.slice.size+e.slice.size==0?ve.empty:new ve(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new en(this.from,this.to+(e.to-e.from),t,this.structure)}else if(e.to==this.from&&!this.slice.openStart&&!e.slice.openEnd){let t=this.slice.size+e.slice.size==0?ve.empty:new ve(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new en(e.from,this.to,t,this.structure)}else return null}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number")throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new en(t.from,t.to,ve.fromJSON(e,t.slice),!!t.structure)}}pn.jsonID("replace",en);class tn extends pn{constructor(e,t,r,i,o,s,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=i,this.slice=o,this.insert=s,this.structure=a}apply(e){if(this.structure&&(ku(e,this.from,this.gapFrom)||ku(e,this.gapTo,this.to)))return Yt.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Yt.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?Yt.fromReplace(e,this.from,this.to,r):Yt.fail("Content does not fit in gap")}getMap(){return new Fn([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new tn(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),i=this.from==this.gapFrom?t.pos:e.map(this.gapFrom,-1),o=this.to==this.gapTo?r.pos:e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||i<t.pos||o>r.pos?null:new tn(t.pos,r.pos,i,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if(typeof t.from!="number"||typeof t.to!="number"||typeof t.gapFrom!="number"||typeof t.gapTo!="number"||typeof t.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new tn(t.from,t.to,t.gapFrom,t.gapTo,ve.fromJSON(e,t.slice),t.insert,!!t.structure)}}pn.jsonID("replaceAround",tn);function ku(n,e,t){let r=n.resolve(e),i=t-e,o=r.depth;for(;i>0&&o>0&&r.indexAfter(o)==r.node(o).childCount;)o--,i--;if(i>0){let s=r.node(o).maybeChild(r.indexAfter(o));for(;i>0;){if(!s||s.isLeaf)return!0;s=s.firstChild,i--}}return!1}function v6(n,e,t,r){let i=[],o=[],s,a;n.doc.nodesBetween(e,t,(l,c,u)=>{if(!l.isInline)return;let h=l.marks;if(!r.isInSet(h)&&u.type.allowsMarkType(r.type)){let g=Math.max(c,e),b=Math.min(c+l.nodeSize,t),p=r.addToSet(h);for(let v=0;v<h.length;v++)h[v].isInSet(p)||(s&&s.to==g&&s.mark.eq(h[v])?s.to=b:i.push(s=new vr(g,b,h[v])));a&&a.to==g?a.to=b:o.push(a=new ai(g,b,r))}}),i.forEach(l=>n.step(l)),o.forEach(l=>n.step(l))}function w6(n,e,t,r){let i=[],o=0;n.doc.nodesBetween(e,t,(s,a)=>{if(!s.isInline)return;o++;let l=null;if(r instanceof Va){let c=s.marks,u;for(;u=r.isInSet(c);)(l||(l=[])).push(u),c=u.removeFromSet(c)}else r?r.isInSet(s.marks)&&(l=[r]):l=s.marks;if(l&&l.length){let c=Math.min(a+s.nodeSize,t);for(let u=0;u<l.length;u++){let h=l[u],g;for(let b=0;b<i.length;b++){let p=i[b];p.step==o-1&&h.eq(i[b].style)&&(g=p)}g?(g.to=c,g.step=o):i.push({style:h,from:Math.max(a,e),to:c,step:o})}}}),i.forEach(s=>n.step(new vr(s.from,s.to,s.style)))}function Su(n,e,t,r=t.contentMatch,i=!0){let o=n.doc.nodeAt(e),s=[],a=e+1;for(let l=0;l<o.childCount;l++){let c=o.child(l),u=a+c.nodeSize,h=r.matchType(c.type);if(!h)s.push(new en(a,u,ve.empty));else{r=h;for(let g=0;g<c.marks.length;g++)t.allowsMarkType(c.marks[g].type)||n.step(new vr(a,u,c.marks[g]));if(i&&c.isText&&t.whitespace!="pre"){let g,b=/\r?\n|\r/g,p;for(;g=b.exec(c.text);)p||(p=new ve(le.from(t.schema.text(" ",t.allowedMarks(c.marks))),0,0)),s.push(new en(a+g.index,a+g.index+g[0].length,p))}}a=u}if(!r.validEnd){let l=r.fillBefore(le.empty,!0);n.replace(a,a,new ve(l,0,0))}for(let l=s.length-1;l>=0;l--)n.step(s[l])}function x6(n,e,t){return(e==0||n.canReplace(e,n.childCount))&&(t==n.childCount||n.canReplace(0,t))}function Ui(n){let t=n.parent.content.cutByIndex(n.startIndex,n.endIndex);for(let r=n.depth;;--r){let i=n.$from.node(r),o=n.$from.index(r),s=n.$to.indexAfter(r);if(r<n.depth&&i.canReplace(o,s,t))return r;if(r==0||i.type.spec.isolating||!x6(i,o,s))break}return null}function k6(n,e,t){let{$from:r,$to:i,depth:o}=e,s=r.before(o+1),a=i.after(o+1),l=s,c=a,u=le.empty,h=0;for(let p=o,v=!1;p>t;p--)v||r.index(p)>0?(v=!0,u=le.from(r.node(p).copy(u)),h++):l--;let g=le.empty,b=0;for(let p=o,v=!1;p>t;p--)v||i.after(p+1)<i.end(p)?(v=!0,g=le.from(i.node(p).copy(g)),b++):c++;n.step(new tn(l,c,s,a,new ve(u.append(g),h,b),u.size-h,!0))}function Wa(n,e,t=null,r=n){let i=S6(n,e),o=i&&E6(r,e);return o?i.map($m).concat({type:e,attrs:t}).concat(o.map($m)):null}function $m(n){return{type:n,attrs:null}}function S6(n,e){let{parent:t,startIndex:r,endIndex:i}=n,o=t.contentMatchAt(r).findWrapping(e);if(!o)return null;let s=o.length?o[0]:e;return t.canReplaceWith(r,i,s)?o:null}function E6(n,e){let{parent:t,startIndex:r,endIndex:i}=n,o=t.child(r),s=e.contentMatch.findWrapping(o.type);if(!s)return null;let l=(s.length?s[s.length-1]:e).contentMatch;for(let c=r;l&&c<i;c++)l=l.matchType(t.child(c).type);return!l||!l.validEnd?null:s}function C6(n,e,t){let r=le.empty;for(let s=t.length-1;s>=0;s--){if(r.size){let a=t[s].type.contentMatch.matchFragment(r);if(!a||!a.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}r=le.from(t[s].type.create(t[s].attrs,r))}let i=e.start,o=e.end;n.step(new tn(i,o,i,o,new ve(r,0,0),t.length,!0))}function T6(n,e,t,r,i){if(!r.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let o=n.steps.length;n.doc.nodesBetween(e,t,(s,a)=>{let l=typeof i=="function"?i(s):i;if(s.isTextblock&&!s.hasMarkup(r,l)&&A6(n.doc,n.mapping.slice(o).map(a),r)){let c=null;if(r.schema.linebreakReplacement){let b=r.whitespace=="pre",p=!!r.contentMatch.matchType(r.schema.linebreakReplacement);b&&!p?c=!1:!b&&p&&(c=!0)}c===!1&&Km(n,s,a,o),Su(n,n.mapping.slice(o).map(a,1),r,void 0,c===null);let u=n.mapping.slice(o),h=u.map(a,1),g=u.map(a+s.nodeSize,1);return n.step(new tn(h,g,h+1,g-1,new ve(le.from(r.create(l,null,s.marks)),0,0),1,!0)),c===!0&&Wm(n,s,a,o),!1}})}function Wm(n,e,t,r){e.forEach((i,o)=>{if(i.isText){let s,a=/\r?\n|\r/g;for(;s=a.exec(i.text);){let l=n.mapping.slice(r).map(t+1+o+s.index);n.replaceWith(l,l+1,e.type.schema.linebreakReplacement.create())}}})}function Km(n,e,t,r){e.forEach((i,o)=>{if(i.type==i.type.schema.linebreakReplacement){let s=n.mapping.slice(r).map(t+1+o);n.replaceWith(s,s+1,e.type.schema.text(`
5
+ `))}})}function A6(n,e,t){let r=n.resolve(e),i=r.index();return r.parent.canReplaceWith(i,i+1,t)}function M6(n,e,t,r,i){let o=n.doc.nodeAt(e);if(!o)throw new RangeError("No node at given position");t||(t=o.type);let s=t.create(r,null,i||o.marks);if(o.isLeaf)return n.replaceWith(e,e+o.nodeSize,s);if(!t.validContent(o.content))throw new RangeError("Invalid content for node type "+t.name);n.step(new tn(e,e+o.nodeSize,e+1,e+o.nodeSize-1,new ve(le.from(s),0,0),1,!0))}function zn(n,e,t=1,r){let i=n.resolve(e),o=i.depth-t,s=r&&r[r.length-1]||i.parent;if(o<0||i.parent.type.spec.isolating||!i.parent.canReplace(i.index(),i.parent.childCount)||!s.type.validContent(i.parent.content.cutByIndex(i.index(),i.parent.childCount)))return!1;for(let c=i.depth-1,u=t-2;c>o;c--,u--){let h=i.node(c),g=i.index(c);if(h.type.spec.isolating)return!1;let b=h.content.cutByIndex(g,h.childCount),p=r&&r[u+1];p&&(b=b.replaceChild(0,p.type.create(p.attrs)));let v=r&&r[u]||h;if(!h.canReplace(g+1,h.childCount)||!v.type.validContent(b))return!1}let a=i.indexAfter(o),l=r&&r[0];return i.node(o).canReplaceWith(a,a,l?l.type:i.node(o+1).type)}function N6(n,e,t=1,r){let i=n.doc.resolve(e),o=le.empty,s=le.empty;for(let a=i.depth,l=i.depth-t,c=t-1;a>l;a--,c--){o=le.from(i.node(a).copy(o));let u=r&&r[c];s=le.from(u?u.type.create(u.attrs,s):i.node(a).copy(s))}n.step(new en(e,e,new ve(o.append(s),t,t),!0))}function ur(n,e){let t=n.resolve(e),r=t.index();return jm(t.nodeBefore,t.nodeAfter)&&t.parent.canReplace(r,r+1)}function D6(n,e){e.content.size||n.type.compatibleContent(e.type);let t=n.contentMatchAt(n.childCount),{linebreakReplacement:r}=n.type.schema;for(let i=0;i<e.childCount;i++){let o=e.child(i),s=o.type==r?n.type.schema.nodes.text:o.type;if(t=t.matchType(s),!t||!n.type.allowsMarks(o.marks))return!1}return t.validEnd}function jm(n,e){return!!(n&&e&&!n.isLeaf&&D6(n,e))}function Eo(n,e,t=-1){let r=n.resolve(e);for(let i=r.depth;;i--){let o,s,a=r.index(i);if(i==r.depth?(o=r.nodeBefore,s=r.nodeAfter):t>0?(o=r.node(i+1),a++,s=r.node(i).maybeChild(a)):(o=r.node(i).maybeChild(a-1),s=r.node(i+1)),o&&!o.isTextblock&&jm(o,s)&&r.node(i).canReplace(a,a+1))return e;if(i==0)break;e=t<0?r.before(i):r.after(i)}}function R6(n,e,t){let r=null,{linebreakReplacement:i}=n.doc.type.schema,o=n.doc.resolve(e-t),s=o.node().type;if(i&&s.inlineContent){let u=s.whitespace=="pre",h=!!s.contentMatch.matchType(i);u&&!h?r=!1:!u&&h&&(r=!0)}let a=n.steps.length;if(r===!1){let u=n.doc.resolve(e+t);Km(n,u.node(),u.before(),a)}s.inlineContent&&Su(n,e+t-1,s,o.node().contentMatchAt(o.index()),r==null);let l=n.mapping.slice(a),c=l.map(e-t);if(n.step(new en(c,l.map(e+t,-1),ve.empty,!0)),r===!0){let u=n.doc.resolve(c);Wm(n,u.node(),u.before(),n.steps.length)}return n}function O6(n,e,t){let r=n.resolve(e);if(r.parent.canReplaceWith(r.index(),r.index(),t))return e;if(r.parentOffset==0)for(let i=r.depth-1;i>=0;i--){let o=r.index(i);if(r.node(i).canReplaceWith(o,o,t))return r.before(i+1);if(o>0)return null}if(r.parentOffset==r.parent.content.size)for(let i=r.depth-1;i>=0;i--){let o=r.indexAfter(i);if(r.node(i).canReplaceWith(o,o,t))return r.after(i+1);if(o<r.node(i).childCount)return null}return null}function Qm(n,e,t){let r=n.resolve(e);if(!t.content.size)return e;let i=t.content;for(let o=0;o<t.openStart;o++)i=i.firstChild.content;for(let o=1;o<=(t.openStart==0&&t.size?2:1);o++)for(let s=r.depth;s>=0;s--){let a=s==r.depth?0:r.pos<=(r.start(s+1)+r.end(s+1))/2?-1:1,l=r.index(s)+(a>0?1:0),c=r.node(s),u=!1;if(o==1)u=c.canReplace(l,l,i);else{let h=c.contentMatchAt(l).findWrapping(i.firstChild.type);u=h&&c.canReplaceWith(l,l,h[0])}if(u)return a==0?r.pos:a<0?r.before(s+1):r.after(s+1)}return null}function Ka(n,e,t=e,r=ve.empty){if(e==t&&!r.size)return null;let i=n.resolve(e),o=n.resolve(t);return Ym(i,o,r)?new en(e,t,r):new I6(i,o,r).fit()}function Ym(n,e,t){return!t.openStart&&!t.openEnd&&n.start()==e.start()&&n.parent.canReplace(n.index(),e.index(),t.content)}class I6{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=le.empty;for(let i=0;i<=e.depth;i++){let o=e.node(i);this.frontier.push({type:o.type,match:o.contentMatchAt(e.indexAfter(i))})}for(let i=e.depth;i>0;i--)this.placed=le.from(e.node(i).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let c=this.findFittable();c?this.placeNodes(c):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,i=this.close(e<0?this.$to:r.doc.resolve(e));if(!i)return null;let o=this.placed,s=r.depth,a=i.depth;for(;s&&a&&o.childCount==1;)o=o.firstChild.content,s--,a--;let l=new ve(o,s,a);return e>-1?new tn(r.pos,e,this.$to.pos,this.$to.end(),l,t):l.size||r.pos!=this.$to.pos?new en(r.pos,i.pos,l):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,i=this.unplaced.openEnd;r<e;r++){let o=t.firstChild;if(t.childCount>1&&(i=0),o.type.spec.isolating&&i<=r){e=r;break}t=o.content}for(let t=1;t<=2;t++)for(let r=t==1?e:this.unplaced.openStart;r>=0;r--){let i,o=null;r?(o=Eu(this.unplaced.content,r-1).firstChild,i=o.content):i=this.unplaced.content;let s=i.firstChild;for(let a=this.depth;a>=0;a--){let{type:l,match:c}=this.frontier[a],u,h=null;if(t==1&&(s?c.matchType(s.type)||(h=c.fillBefore(le.from(s),!1)):o&&l.compatibleContent(o.type)))return{sliceDepth:r,frontierDepth:a,parent:o,inject:h};if(t==2&&s&&(u=c.findWrapping(s.type)))return{sliceDepth:r,frontierDepth:a,parent:o,wrap:u};if(o&&c.matchType(o.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=Eu(e,t);return!i.childCount||i.firstChild.isLeaf?!1:(this.unplaced=new ve(e,t+1,Math.max(r,i.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,i=Eu(e,t);if(i.childCount<=1&&t>0){let o=e.size-t<=t+i.size;this.unplaced=new ve(Es(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new ve(Es(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:i,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let v=0;v<o.length;v++)this.openFrontierNode(o[v]);let s=this.unplaced,a=r?r.content:s.content,l=s.openStart-e,c=0,u=[],{match:h,type:g}=this.frontier[t];if(i){for(let v=0;v<i.childCount;v++)u.push(i.child(v));h=h.matchFragment(i)}let b=a.size+e-(s.content.size-s.openEnd);for(;c<a.childCount;){let v=a.child(c),w=h.matchType(v.type);if(!w)break;c++,(c>1||l==0||v.content.size)&&(h=w,u.push(Zm(v.mark(g.allowedMarks(v.marks)),c==1?l:0,c==a.childCount?b:-1)))}let p=c==a.childCount;p||(b=-1),this.placed=Cs(this.placed,t,le.from(u)),this.frontier[t].match=h,p&&b<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let v=0,w=a;v<b;v++){let S=w.lastChild;this.frontier.push({type:S.type,match:S.contentMatchAt(S.childCount)}),w=S.content}this.unplaced=p?e==0?ve.empty:new ve(Es(s.content,e-1,1),e-1,b<0?s.openEnd:e-1):new ve(Es(s.content,e,c),s.openStart,s.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e=this.frontier[this.depth],t;if(!e.type.isTextblock||!Cu(this.$to,this.$to.depth,e.type,e.match,!1)||this.$to.depth==this.depth&&(t=this.findCloseLevel(this.$to))&&t.depth==this.depth)return-1;let{depth:r}=this.$to,i=this.$to.after(r);for(;r>1&&i==this.$to.end(--r);)++i;return i}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:i}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),s=Cu(e,t,i,r,o);if(s){for(let a=t-1;a>=0;a--){let{match:l,type:c}=this.frontier[a],u=Cu(e,a,c,l,!0);if(!u||u.childCount)continue e}return{depth:t,fit:s,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=Cs(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let i=e.node(r),o=i.type.contentMatch.fillBefore(i.content,!0,e.index(r));this.openFrontierNode(i.type,i.attrs,o)}return e}openFrontierNode(e,t=null,r){let i=this.frontier[this.depth];i.match=i.match.matchType(e),this.placed=Cs(this.placed,this.depth,le.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let t=this.frontier.pop().match.fillBefore(le.empty,!0);t.childCount&&(this.placed=Cs(this.placed,this.frontier.length,t))}}function Es(n,e,t){return e==0?n.cutByIndex(t,n.childCount):n.replaceChild(0,n.firstChild.copy(Es(n.firstChild.content,e-1,t)))}function Cs(n,e,t){return e==0?n.append(t):n.replaceChild(n.childCount-1,n.lastChild.copy(Cs(n.lastChild.content,e-1,t)))}function Eu(n,e){for(let t=0;t<e;t++)n=n.firstChild.content;return n}function Zm(n,e,t){if(e<=0)return n;let r=n.content;return e>1&&(r=r.replaceChild(0,Zm(r.firstChild,e-1,r.childCount==1?t-1:0))),e>0&&(r=n.type.contentMatch.fillBefore(r).append(r),t<=0&&(r=r.append(n.type.contentMatch.matchFragment(r).fillBefore(le.empty,!0)))),n.copy(r)}function Cu(n,e,t,r,i){let o=n.node(e),s=i?n.indexAfter(e):n.index(e);if(s==o.childCount&&!t.compatibleContent(o.type))return null;let a=r.fillBefore(o.content,!0,s);return a&&!L6(t,o.content,s)?a:null}function L6(n,e,t){for(let r=t;r<e.childCount;r++)if(!n.allowsMarks(e.child(r).marks))return!0;return!1}function B6(n){return n.spec.defining||n.spec.definingForContent}function P6(n,e,t,r){if(!r.size)return n.deleteRange(e,t);let i=n.doc.resolve(e),o=n.doc.resolve(t);if(Ym(i,o,r))return n.step(new en(e,t,r));let s=Jm(i,n.doc.resolve(t));s[s.length-1]==0&&s.pop();let a=-(i.depth+1);s.unshift(a);for(let g=i.depth,b=i.pos-1;g>0;g--,b--){let p=i.node(g).type.spec;if(p.defining||p.definingAsContext||p.isolating)break;s.indexOf(g)>-1?a=g:i.before(g)==b&&s.splice(1,0,-g)}let l=s.indexOf(a),c=[],u=r.openStart;for(let g=r.content,b=0;;b++){let p=g.firstChild;if(c.push(p),b==r.openStart)break;g=p.content}for(let g=u-1;g>=0;g--){let b=c[g],p=B6(b.type);if(p&&!b.sameMarkup(i.node(Math.abs(a)-1)))u=g;else if(p||!b.type.isTextblock)break}for(let g=r.openStart;g>=0;g--){let b=(g+u+1)%(r.openStart+1),p=c[b];if(p)for(let v=0;v<s.length;v++){let w=s[(v+l)%s.length],S=!0;w<0&&(S=!1,w=-w);let C=i.node(w-1),E=i.index(w-1);if(C.canReplaceWith(E,E,p.type,p.marks))return n.replace(i.before(w),S?o.after(w):t,new ve(Xm(r.content,0,r.openStart,b),b,r.openEnd))}}let h=n.steps.length;for(let g=s.length-1;g>=0&&(n.replace(e,t,r),!(n.steps.length>h));g--){let b=s[g];b<0||(e=i.before(b),t=o.after(b))}}function Xm(n,e,t,r,i){if(e<t){let o=n.firstChild;n=n.replaceChild(0,o.copy(Xm(o.content,e+1,t,r,o)))}if(e>r){let o=i.contentMatchAt(0),s=o.fillBefore(n).append(n);n=s.append(o.matchFragment(s).fillBefore(le.empty,!0))}return n}function F6(n,e,t,r){if(!r.isInline&&e==t&&n.doc.resolve(e).parent.content.size){let i=O6(n.doc,e,r.type);i!=null&&(e=t=i)}n.replaceRange(e,t,new ve(le.from(r),0,0))}function z6(n,e,t){let r=n.doc.resolve(e),i=n.doc.resolve(t),o=Jm(r,i);for(let s=0;s<o.length;s++){let a=o[s],l=s==o.length-1;if(l&&a==0||r.node(a).type.contentMatch.validEnd)return n.delete(r.start(a),i.end(a));if(a>0&&(l||r.node(a-1).canReplace(r.index(a-1),i.indexAfter(a-1))))return n.delete(r.before(a),i.after(a))}for(let s=1;s<=r.depth&&s<=i.depth;s++)if(e-r.start(s)==r.depth-s&&t>r.end(s)&&i.end(s)-t!=i.depth-s&&r.start(s-1)==i.start(s-1)&&r.node(s-1).canReplace(r.index(s-1),i.index(s-1)))return n.delete(r.before(s),t);n.delete(e,t)}function Jm(n,e){let t=[],r=Math.min(n.depth,e.depth);for(let i=r;i>=0;i--){let o=n.start(i);if(o<n.pos-(n.depth-i)||e.end(i)>e.pos+(e.depth-i)||n.node(i).type.spec.isolating||e.node(i).type.spec.isolating)break;(o==e.start(i)||i==n.depth&&i==e.depth&&n.parent.inlineContent&&e.parent.inlineContent&&i&&e.start(i-1)==o-1)&&t.push(i)}return t}class Co extends pn{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return Yt.fail("No node at attribute step's position");let r=Object.create(null);for(let o in t.attrs)r[o]=t.attrs[o];r[this.attr]=this.value;let i=t.type.create(r,null,t.marks);return Yt.fromReplace(e,this.pos,this.pos+1,new ve(le.from(i),0,t.isLeaf?0:1))}getMap(){return Fn.empty}invert(e){return new Co(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Co(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.pos!="number"||typeof t.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new Co(t.pos,t.attr,t.value)}}pn.jsonID("attr",Co);class Ts extends pn{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let i in e.attrs)t[i]=e.attrs[i];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return Yt.ok(r)}getMap(){return Fn.empty}invert(e){return new Ts(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if(typeof t.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new Ts(t.attr,t.value)}}pn.jsonID("docAttr",Ts);let To=class extends Error{};To=function n(e){let t=Error.call(this,e);return t.__proto__=n.prototype,t},To.prototype=Object.create(Error.prototype),To.prototype.constructor=To,To.prototype.name="TransformError";let Tu=class{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new Ss}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new To(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=ve.empty){let i=Ka(this.doc,e,t,r);return i&&this.step(i),this}replaceWith(e,t,r){return this.replace(e,t,new ve(le.from(r),0,0))}delete(e,t){return this.replace(e,t,ve.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return P6(this,e,t,r),this}replaceRangeWith(e,t,r){return F6(this,e,t,r),this}deleteRange(e,t){return z6(this,e,t),this}lift(e,t){return k6(this,e,t),this}join(e,t=1){return R6(this,e,t),this}wrap(e,t){return C6(this,e,t),this}setBlockType(e,t=e,r,i=null){return T6(this,e,t,r,i),this}setNodeMarkup(e,t,r=null,i){return M6(this,e,t,r,i),this}setNodeAttribute(e,t,r){return this.step(new Co(e,t,r)),this}setDocAttribute(e,t){return this.step(new Ts(e,t)),this}addNodeMark(e,t){return this.step(new li(e,t)),this}removeNodeMark(e,t){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(t instanceof Tt)t.isInSet(r.marks)&&this.step(new Vi(e,t));else{let i=r.marks,o,s=[];for(;o=t.isInSet(i);)s.push(new Vi(e,o)),i=o.removeFromSet(i);for(let a=s.length-1;a>=0;a--)this.step(s[a])}return this}split(e,t=1,r){return N6(this,e,t,r),this}addMark(e,t,r){return v6(this,e,t,r),this}removeMark(e,t,r){return w6(this,e,t,r),this}clearIncompatible(e,t,r){return Su(this,e,t,r),this}};const Au=Object.create(null);let Fe=class{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new eg(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=ve.empty){let r=t.content.lastChild,i=null;for(let a=0;a<t.openEnd;a++)i=r,r=r.lastChild;let o=e.steps.length,s=this.ranges;for(let a=0;a<s.length;a++){let{$from:l,$to:c}=s[a],u=e.mapping.slice(o);e.replaceRange(u.map(l.pos),u.map(c.pos),a?ve.empty:t),a==0&&rg(e,o,(r?r.isInline:i&&i.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,i=this.ranges;for(let o=0;o<i.length;o++){let{$from:s,$to:a}=i[o],l=e.mapping.slice(r),c=l.map(s.pos),u=l.map(a.pos);o?e.deleteRange(c,u):(e.replaceRangeWith(c,u,t),rg(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let i=e.parent.inlineContent?new Ne(e):Ao(e.node(0),e.parent,e.pos,e.index(),t,r);if(i)return i;for(let o=e.depth-1;o>=0;o--){let s=t<0?Ao(e.node(0),e.node(o),e.before(o+1),e.index(o),t,r):Ao(e.node(0),e.node(o),e.after(o+1),e.index(o)+1,t,r);if(s)return s}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new qn(e.node(0))}static atStart(e){return Ao(e,e,0,0,1)||new qn(e)}static atEnd(e){return Ao(e,e,e.content.size,e.childCount,-1)||new qn(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=Au[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in Au)throw new RangeError("Duplicate use of selection JSON ID "+e);return Au[e]=t,t.prototype.jsonID=e,t}getBookmark(){return Ne.between(this.$anchor,this.$head).getBookmark()}};Fe.prototype.visible=!0;class eg{constructor(e,t){this.$from=e,this.$to=t}}let tg=!1;function ng(n){!tg&&!n.parent.inlineContent&&(tg=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+n.parent.type.name+")"))}class Ne extends Fe{constructor(e,t=e){ng(e),ng(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return Fe.near(r);let i=e.resolve(t.map(this.anchor));return new Ne(i.parent.inlineContent?i:r,r)}replace(e,t=ve.empty){if(super.replace(e,t),t==ve.empty){let r=this.$from.marksAcross(this.$to);r&&e.ensureMarks(r)}}eq(e){return e instanceof Ne&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new ja(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if(typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Ne(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let i=e.resolve(t);return new this(i,r==t?i:e.resolve(r))}static between(e,t,r){let i=e.pos-t.pos;if((!r||i)&&(r=i>=0?1:-1),!t.parent.inlineContent){let o=Fe.findFrom(t,r,!0)||Fe.findFrom(t,-r,!0);if(o)t=o.$head;else return Fe.near(t,r)}return e.parent.inlineContent||(i==0?e=t:(e=(Fe.findFrom(e,-r,!0)||Fe.findFrom(e,r,!0)).$anchor,e.pos<t.pos!=i<0&&(e=t))),new Ne(e,t)}}Fe.jsonID("text",Ne);class ja{constructor(e,t){this.anchor=e,this.head=t}map(e){return new ja(e.map(this.anchor),e.map(this.head))}resolve(e){return Ne.between(e.resolve(this.anchor),e.resolve(this.head))}}class Oe extends Fe{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:i}=t.mapResult(this.anchor),o=e.resolve(i);return r?Fe.near(o):new Oe(o)}content(){return new ve(le.from(this.node),0,0)}eq(e){return e instanceof Oe&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new Mu(this.anchor)}static fromJSON(e,t){if(typeof t.anchor!="number")throw new RangeError("Invalid input for NodeSelection.fromJSON");return new Oe(e.resolve(t.anchor))}static create(e,t){return new Oe(e.resolve(t))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}}Oe.prototype.visible=!1,Fe.jsonID("node",Oe);class Mu{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new ja(r,r):new Mu(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&Oe.isSelectable(r)?new Oe(t):Fe.near(t)}}class qn extends Fe{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=ve.empty){if(t==ve.empty){e.delete(0,e.doc.content.size);let r=Fe.atStart(e.doc);r.eq(e.selection)||e.setSelection(r)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new qn(e)}map(e){return new qn(e)}eq(e){return e instanceof qn}getBookmark(){return q6}}Fe.jsonID("all",qn);const q6={map(){return this},resolve(n){return new qn(n)}};function Ao(n,e,t,r,i,o=!1){if(e.inlineContent)return Ne.create(n,t);for(let s=r-(i>0?0:1);i>0?s<e.childCount:s>=0;s+=i){let a=e.child(s);if(a.isAtom){if(!o&&Oe.isSelectable(a))return Oe.create(n,t-(i<0?a.nodeSize:0))}else{let l=Ao(n,a,t+i,i<0?a.childCount:0,i,o);if(l)return l}t+=a.nodeSize*i}return null}function rg(n,e,t){let r=n.steps.length-1;if(r<e)return;let i=n.steps[r];if(!(i instanceof en||i instanceof tn))return;let o=n.mapping.maps[r],s;o.forEach((a,l,c,u)=>{s==null&&(s=u)}),n.setSelection(Fe.near(n.doc.resolve(s),t))}const ig=1,Qa=2,og=4;class H6 extends Tu{constructor(e){super(e.doc),this.curSelectionFor=0,this.updated=0,this.meta=Object.create(null),this.time=Date.now(),this.curSelection=e.selection,this.storedMarks=e.storedMarks}get selection(){return this.curSelectionFor<this.steps.length&&(this.curSelection=this.curSelection.map(this.doc,this.mapping.slice(this.curSelectionFor)),this.curSelectionFor=this.steps.length),this.curSelection}setSelection(e){if(e.$from.doc!=this.doc)throw new RangeError("Selection passed to setSelection must point at the current document");return this.curSelection=e,this.curSelectionFor=this.steps.length,this.updated=(this.updated|ig)&~Qa,this.storedMarks=null,this}get selectionSet(){return(this.updated&ig)>0}setStoredMarks(e){return this.storedMarks=e,this.updated|=Qa,this}ensureMarks(e){return Tt.sameSet(this.storedMarks||this.selection.$from.marks(),e)||this.setStoredMarks(e),this}addStoredMark(e){return this.ensureMarks(e.addToSet(this.storedMarks||this.selection.$head.marks()))}removeStoredMark(e){return this.ensureMarks(e.removeFromSet(this.storedMarks||this.selection.$head.marks()))}get storedMarksSet(){return(this.updated&Qa)>0}addStep(e,t){super.addStep(e,t),this.updated=this.updated&~Qa,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,t=!0){let r=this.selection;return t&&(e=e.mark(this.storedMarks||(r.empty?r.$from.marks():r.$from.marksAcross(r.$to)||Tt.none))),r.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,t,r){let i=this.doc.type.schema;if(t==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(r==null&&(r=t),r=r??t,!e)return this.deleteRange(t,r);let o=this.storedMarks;if(!o){let s=this.doc.resolve(t);o=r==t?s.marks():s.marksAcross(this.doc.resolve(r))}return this.replaceRangeWith(t,r,i.text(e,o)),this.selection.empty||this.setSelection(Fe.near(this.selection.$to)),this}}setMeta(e,t){return this.meta[typeof e=="string"?e:e.key]=t,this}getMeta(e){return this.meta[typeof e=="string"?e:e.key]}get isGeneric(){for(let e in this.meta)return!1;return!0}scrollIntoView(){return this.updated|=og,this}get scrolledIntoView(){return(this.updated&og)>0}}function sg(n,e){return!e||!n?n:n.bind(e)}class As{constructor(e,t,r){this.name=e,this.init=sg(t.init,r),this.apply=sg(t.apply,r)}}const V6=[new As("doc",{init(n){return n.doc||n.schema.topNodeType.createAndFill()},apply(n){return n.doc}}),new As("selection",{init(n,e){return n.selection||Fe.atStart(e.doc)},apply(n){return n.selection}}),new As("storedMarks",{init(n){return n.storedMarks||null},apply(n,e,t,r){return r.selection.$cursor?n.storedMarks:null}}),new As("scrollToSelection",{init(){return 0},apply(n,e){return n.scrolledIntoView?e+1:e}})];class Nu{constructor(e,t){this.schema=e,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=V6.slice(),t&&t.forEach(r=>{if(this.pluginsByKey[r.key])throw new RangeError("Adding different instances of a keyed plugin ("+r.key+")");this.plugins.push(r),this.pluginsByKey[r.key]=r,r.spec.state&&this.fields.push(new As(r.key,r.spec.state,r))})}}class Mo{constructor(e){this.config=e}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(e){return this.applyTransaction(e).state}filterTransaction(e,t=-1){for(let r=0;r<this.config.plugins.length;r++)if(r!=t){let i=this.config.plugins[r];if(i.spec.filterTransaction&&!i.spec.filterTransaction.call(i,e,this))return!1}return!0}applyTransaction(e){if(!this.filterTransaction(e))return{state:this,transactions:[]};let t=[e],r=this.applyInner(e),i=null;for(;;){let o=!1;for(let s=0;s<this.config.plugins.length;s++){let a=this.config.plugins[s];if(a.spec.appendTransaction){let l=i?i[s].n:0,c=i?i[s].state:this,u=l<t.length&&a.spec.appendTransaction.call(a,l?t.slice(l):t,c,r);if(u&&r.filterTransaction(u,s)){if(u.setMeta("appendedTransaction",e),!i){i=[];for(let h=0;h<this.config.plugins.length;h++)i.push(h<s?{state:r,n:t.length}:{state:this,n:0})}t.push(u),r=r.applyInner(u),o=!0}i&&(i[s]={state:r,n:t.length})}}if(!o)return{state:r,transactions:t}}}applyInner(e){if(!e.before.eq(this.doc))throw new RangeError("Applying a mismatched transaction");let t=new Mo(this.config),r=this.config.fields;for(let i=0;i<r.length;i++){let o=r[i];t[o.name]=o.apply(e,this[o.name],this,t)}return t}get tr(){return new H6(this)}static create(e){let t=new Nu(e.doc?e.doc.type.schema:e.schema,e.plugins),r=new Mo(t);for(let i=0;i<t.fields.length;i++)r[t.fields[i].name]=t.fields[i].init(e,r);return r}reconfigure(e){let t=new Nu(this.schema,e.plugins),r=t.fields,i=new Mo(t);for(let o=0;o<r.length;o++){let s=r[o].name;i[s]=this.hasOwnProperty(s)?this[s]:r[o].init(e,i)}return i}toJSON(e){let t={doc:this.doc.toJSON(),selection:this.selection.toJSON()};if(this.storedMarks&&(t.storedMarks=this.storedMarks.map(r=>r.toJSON())),e&&typeof e=="object")for(let r in e){if(r=="doc"||r=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let i=e[r],o=i.spec.state;o&&o.toJSON&&(t[r]=o.toJSON.call(i,this[i.key]))}return t}static fromJSON(e,t,r){if(!t)throw new RangeError("Invalid input for EditorState.fromJSON");if(!e.schema)throw new RangeError("Required config field 'schema' missing");let i=new Nu(e.schema,e.plugins),o=new Mo(i);return i.fields.forEach(s=>{if(s.name=="doc")o.doc=si.fromJSON(e.schema,t.doc);else if(s.name=="selection")o.selection=Fe.fromJSON(o.doc,t.selection);else if(s.name=="storedMarks")t.storedMarks&&(o.storedMarks=t.storedMarks.map(e.schema.markFromJSON));else{if(r)for(let a in r){let l=r[a],c=l.spec.state;if(l.key==s.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(t,a)){o[s.name]=c.fromJSON.call(l,e,t[a],o);return}}o[s.name]=s.init(e,o)}}),o}}function ag(n,e,t){for(let r in n){let i=n[r];i instanceof Function?i=i.bind(e):r=="handleDOMEvents"&&(i=ag(i,e,{})),t[r]=i}return t}class _t{constructor(e){this.spec=e,this.props={},e.props&&ag(e.props,this,this.props),this.key=e.key?e.key.key:lg("plugin")}getState(e){return e[this.key]}}const Du=Object.create(null);function lg(n){return n in Du?n+"$"+ ++Du[n]:(Du[n]=0,n+"$")}class At{constructor(e="key"){this.key=lg(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const cn=function(n){for(var e=0;;e++)if(n=n.previousSibling,!n)return e},No=function(n){let e=n.assignedSlot||n.parentNode;return e&&e.nodeType==11?e.host:e};let Ru=null;const zr=function(n,e,t){let r=Ru||(Ru=document.createRange());return r.setEnd(n,t??n.nodeValue.length),r.setStart(n,e||0),r},U6=function(){Ru=null},Gi=function(n,e,t,r){return t&&(cg(n,e,t,r,-1)||cg(n,e,t,r,1))},G6=/^(img|br|input|textarea|hr)$/i;function cg(n,e,t,r,i){for(var o;;){if(n==t&&e==r)return!0;if(e==(i<0?0:Zn(n))){let s=n.parentNode;if(!s||s.nodeType!=1||Ms(n)||G6.test(n.nodeName)||n.contentEditable=="false")return!1;e=cn(n)+(i<0?0:1),n=s}else if(n.nodeType==1){let s=n.childNodes[e+(i<0?-1:0)];if(s.nodeType==1&&s.contentEditable=="false")if(!((o=s.pmViewDesc)===null||o===void 0)&&o.ignoreForSelection)e+=i;else return!1;else n=s,e=i<0?Zn(n):0}else return!1}}function Zn(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function $6(n,e){for(;;){if(n.nodeType==3&&e)return n;if(n.nodeType==1&&e>0){if(n.contentEditable=="false")return null;n=n.childNodes[e-1],e=Zn(n)}else if(n.parentNode&&!Ms(n))e=cn(n),n=n.parentNode;else return null}}function W6(n,e){for(;;){if(n.nodeType==3&&e<n.nodeValue.length)return n;if(n.nodeType==1&&e<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[e],e=0}else if(n.parentNode&&!Ms(n))e=cn(n)+1,n=n.parentNode;else return null}}function K6(n,e,t){for(let r=e==0,i=e==Zn(n);r||i;){if(n==t)return!0;let o=cn(n);if(n=n.parentNode,!n)return!1;r=r&&o==0,i=i&&o==Zn(n)}}function Ms(n){let e;for(let t=n;t&&!(e=t.pmViewDesc);t=t.parentNode);return e&&e.node&&e.node.isBlock&&(e.dom==n||e.contentDOM==n)}const Ya=function(n){return n.focusNode&&Gi(n.focusNode,n.focusOffset,n.anchorNode,n.anchorOffset)};function $i(n,e){let t=document.createEvent("Event");return t.initEvent("keydown",!0,!0),t.keyCode=n,t.key=t.code=e,t}function j6(n){let e=n.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function Q6(n,e,t){if(n.caretPositionFromPoint)try{let r=n.caretPositionFromPoint(e,t);if(r)return{node:r.offsetNode,offset:Math.min(Zn(r.offsetNode),r.offset)}}catch{}if(n.caretRangeFromPoint){let r=n.caretRangeFromPoint(e,t);if(r)return{node:r.startContainer,offset:Math.min(Zn(r.startContainer),r.startOffset)}}}const wr=typeof navigator<"u"?navigator:null,ug=typeof document<"u"?document:null,ci=wr&&wr.userAgent||"",Ou=/Edge\/(\d+)/.exec(ci),dg=/MSIE \d/.exec(ci),Iu=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ci),An=!!(dg||Iu||Ou),ui=dg?document.documentMode:Iu?+Iu[1]:Ou?+Ou[1]:0,dr=!An&&/gecko\/(\d+)/i.test(ci);dr&&+(/Firefox\/(\d+)/.exec(ci)||[0,0])[1];const Lu=!An&&/Chrome\/(\d+)/.exec(ci),mn=!!Lu,hg=Lu?+Lu[1]:0,kn=!An&&!!wr&&/Apple Computer/.test(wr.vendor),Do=kn&&(/Mobile\/\w+/.test(ci)||!!wr&&wr.maxTouchPoints>2),Xn=Do||(wr?/Mac/.test(wr.platform):!1),Y6=wr?/Win/.test(wr.platform):!1,qr=/Android \d/.test(ci),Ns=!!ug&&"webkitFontSmoothing"in ug.documentElement.style,Z6=Ns?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function X6(n){let e=n.defaultView&&n.defaultView.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:n.documentElement.clientWidth,top:0,bottom:n.documentElement.clientHeight}}function Hr(n,e){return typeof n=="number"?n:n[e]}function J6(n){let e=n.getBoundingClientRect(),t=e.width/n.offsetWidth||1,r=e.height/n.offsetHeight||1;return{left:e.left,right:e.left+n.clientWidth*t,top:e.top,bottom:e.top+n.clientHeight*r}}function fg(n,e,t){let r=n.someProp("scrollThreshold")||0,i=n.someProp("scrollMargin")||5,o=n.dom.ownerDocument;for(let s=t||n.dom;s;){if(s.nodeType!=1){s=No(s);continue}let a=s,l=a==o.body,c=l?X6(o):J6(a),u=0,h=0;if(e.top<c.top+Hr(r,"top")?h=-(c.top-e.top+Hr(i,"top")):e.bottom>c.bottom-Hr(r,"bottom")&&(h=e.bottom-e.top>c.bottom-c.top?e.top+Hr(i,"top")-c.top:e.bottom-c.bottom+Hr(i,"bottom")),e.left<c.left+Hr(r,"left")?u=-(c.left-e.left+Hr(i,"left")):e.right>c.right-Hr(r,"right")&&(u=e.right-c.right+Hr(i,"right")),u||h)if(l)o.defaultView.scrollBy(u,h);else{let b=a.scrollLeft,p=a.scrollTop;h&&(a.scrollTop+=h),u&&(a.scrollLeft+=u);let v=a.scrollLeft-b,w=a.scrollTop-p;e={left:e.left-v,top:e.top-w,right:e.right-v,bottom:e.bottom-w}}let g=l?"fixed":getComputedStyle(s).position;if(/^(fixed|sticky)$/.test(g))break;s=g=="absolute"?s.offsetParent:No(s)}}function e5(n){let e=n.dom.getBoundingClientRect(),t=Math.max(0,e.top),r,i;for(let o=(e.left+e.right)/2,s=t+1;s<Math.min(innerHeight,e.bottom);s+=5){let a=n.root.elementFromPoint(o,s);if(!a||a==n.dom||!n.dom.contains(a))continue;let l=a.getBoundingClientRect();if(l.top>=t-20){r=a,i=l.top;break}}return{refDOM:r,refTop:i,stack:pg(n.dom)}}function pg(n){let e=[],t=n.ownerDocument;for(let r=n;r&&(e.push({dom:r,top:r.scrollTop,left:r.scrollLeft}),n!=t);r=No(r));return e}function t5({refDOM:n,refTop:e,stack:t}){let r=n?n.getBoundingClientRect().top:0;mg(t,r==0?0:r-e)}function mg(n,e){for(let t=0;t<n.length;t++){let{dom:r,top:i,left:o}=n[t];r.scrollTop!=i+e&&(r.scrollTop=i+e),r.scrollLeft!=o&&(r.scrollLeft=o)}}let Ro=null;function n5(n){if(n.setActive)return n.setActive();if(Ro)return n.focus(Ro);let e=pg(n);n.focus(Ro==null?{get preventScroll(){return Ro={preventScroll:!0},!0}}:void 0),Ro||(Ro=!1,mg(e,0))}function gg(n,e){let t,r=2e8,i,o=0,s=e.top,a=e.top,l,c;for(let u=n.firstChild,h=0;u;u=u.nextSibling,h++){let g;if(u.nodeType==1)g=u.getClientRects();else if(u.nodeType==3)g=zr(u).getClientRects();else continue;for(let b=0;b<g.length;b++){let p=g[b];if(p.top<=s&&p.bottom>=a){s=Math.max(p.bottom,s),a=Math.min(p.top,a);let v=p.left>e.left?p.left-e.left:p.right<e.left?e.left-p.right:0;if(v<r){t=u,r=v,i=v&&t.nodeType==3?{left:p.right<e.left?p.right:p.left,top:e.top}:e,u.nodeType==1&&v&&(o=h+(e.left>=(p.left+p.right)/2?1:0));continue}}else p.top>e.top&&!l&&p.left<=e.left&&p.right>=e.left&&(l=u,c={left:Math.max(p.left,Math.min(p.right,e.left)),top:p.top});!t&&(e.left>=p.right&&e.top>=p.top||e.left>=p.left&&e.top>=p.bottom)&&(o=h+1)}}return!t&&l&&(t=l,i=c,r=0),t&&t.nodeType==3?r5(t,i):!t||r&&t.nodeType==1?{node:n,offset:o}:gg(t,i)}function r5(n,e){let t=n.nodeValue.length,r=document.createRange();for(let i=0;i<t;i++){r.setEnd(n,i+1),r.setStart(n,i);let o=di(r,1);if(o.top!=o.bottom&&Bu(e,o))return{node:n,offset:i+(e.left>=(o.left+o.right)/2?1:0)}}return{node:n,offset:0}}function Bu(n,e){return n.left>=e.left-1&&n.left<=e.right+1&&n.top>=e.top-1&&n.top<=e.bottom+1}function i5(n,e){let t=n.parentNode;return t&&/^li$/i.test(t.nodeName)&&e.left<n.getBoundingClientRect().left?t:n}function o5(n,e,t){let{node:r,offset:i}=gg(e,t),o=-1;if(r.nodeType==1&&!r.firstChild){let s=r.getBoundingClientRect();o=s.left!=s.right&&t.left>(s.left+s.right)/2?1:-1}return n.docView.posFromDOM(r,i,o)}function s5(n,e,t,r){let i=-1;for(let o=e,s=!1;o!=n.dom;){let a=n.docView.nearestDesc(o,!0),l;if(!a)return null;if(a.dom.nodeType==1&&(a.node.isBlock&&a.parent||!a.contentDOM)&&((l=a.dom.getBoundingClientRect()).width||l.height)&&(a.node.isBlock&&a.parent&&(!s&&l.left>r.left||l.top>r.top?i=a.posBefore:(!s&&l.right<r.left||l.bottom<r.top)&&(i=a.posAfter),s=!0),!a.contentDOM&&i<0&&!a.node.isText))return(a.node.isBlock?r.top<(l.top+l.bottom)/2:r.left<(l.left+l.right)/2)?a.posBefore:a.posAfter;o=a.dom.parentNode}return i>-1?i:n.docView.posFromDOM(e,t,-1)}function bg(n,e,t){let r=n.childNodes.length;if(r&&t.top<t.bottom)for(let i=Math.max(0,Math.min(r-1,Math.floor(r*(e.top-t.top)/(t.bottom-t.top))-2)),o=i;;){let s=n.childNodes[o];if(s.nodeType==1){let a=s.getClientRects();for(let l=0;l<a.length;l++){let c=a[l];if(Bu(e,c))return bg(s,e,c)}}if((o=(o+1)%r)==i)break}return n}function a5(n,e){let t=n.dom.ownerDocument,r,i=0,o=Q6(t,e.left,e.top);o&&({node:r,offset:i}=o);let s=(n.root.elementFromPoint?n.root:t).elementFromPoint(e.left,e.top),a;if(!s||!n.dom.contains(s.nodeType!=1?s.parentNode:s)){let c=n.dom.getBoundingClientRect();if(!Bu(e,c)||(s=bg(n.dom,e,c),!s))return null}if(kn)for(let c=s;r&&c;c=No(c))c.draggable&&(r=void 0);if(s=i5(s,e),r){if(dr&&r.nodeType==1&&(i=Math.min(i,r.childNodes.length),i<r.childNodes.length)){let u=r.childNodes[i],h;u.nodeName=="IMG"&&(h=u.getBoundingClientRect()).right<=e.left&&h.bottom>e.top&&i++}let c;Ns&&i&&r.nodeType==1&&(c=r.childNodes[i-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=e.top&&i--,r==n.dom&&i==r.childNodes.length-1&&r.lastChild.nodeType==1&&e.top>r.lastChild.getBoundingClientRect().bottom?a=n.state.doc.content.size:(i==0||r.nodeType!=1||r.childNodes[i-1].nodeName!="BR")&&(a=s5(n,r,i,e))}a==null&&(a=o5(n,s,e));let l=n.docView.nearestDesc(s,!0);return{pos:a,inside:l?l.posAtStart-l.border:-1}}function _g(n){return n.top<n.bottom||n.left<n.right}function di(n,e){let t=n.getClientRects();if(t.length){let r=t[e<0?0:t.length-1];if(_g(r))return r}return Array.prototype.find.call(t,_g)||n.getBoundingClientRect()}const l5=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/;function yg(n,e,t){let{node:r,offset:i,atom:o}=n.docView.domFromPos(e,t<0?-1:1),s=Ns||dr;if(r.nodeType==3)if(s&&(l5.test(r.nodeValue)||(t<0?!i:i==r.nodeValue.length))){let l=di(zr(r,i,i),t);if(dr&&i&&/\s/.test(r.nodeValue[i-1])&&i<r.nodeValue.length){let c=di(zr(r,i-1,i-1),-1);if(c.top==l.top){let u=di(zr(r,i,i+1),-1);if(u.top!=l.top)return Ds(u,u.left<c.left)}}return l}else{let l=i,c=i,u=t<0?1:-1;return t<0&&!i?(c++,u=-1):t>=0&&i==r.nodeValue.length?(l--,u=1):t<0?l--:c++,Ds(di(zr(r,l,c),u),u<0)}if(!n.state.doc.resolve(e-(o||0)).parent.inlineContent){if(o==null&&i&&(t<0||i==Zn(r))){let l=r.childNodes[i-1];if(l.nodeType==1)return Pu(l.getBoundingClientRect(),!1)}if(o==null&&i<Zn(r)){let l=r.childNodes[i];if(l.nodeType==1)return Pu(l.getBoundingClientRect(),!0)}return Pu(r.getBoundingClientRect(),t>=0)}if(o==null&&i&&(t<0||i==Zn(r))){let l=r.childNodes[i-1],c=l.nodeType==3?zr(l,Zn(l)-(s?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(c)return Ds(di(c,1),!1)}if(o==null&&i<Zn(r)){let l=r.childNodes[i];for(;l.pmViewDesc&&l.pmViewDesc.ignoreForCoords;)l=l.nextSibling;let c=l?l.nodeType==3?zr(l,0,s?0:1):l.nodeType==1?l:null:null;if(c)return Ds(di(c,-1),!0)}return Ds(di(r.nodeType==3?zr(r):r,-t),t>=0)}function Ds(n,e){if(n.width==0)return n;let t=e?n.left:n.right;return{top:n.top,bottom:n.bottom,left:t,right:t}}function Pu(n,e){if(n.height==0)return n;let t=e?n.top:n.bottom;return{top:t,bottom:t,left:n.left,right:n.right}}function vg(n,e,t){let r=n.state,i=n.root.activeElement;r!=e&&n.updateState(e),i!=n.dom&&n.focus();try{return t()}finally{r!=e&&n.updateState(r),i!=n.dom&&i&&i.focus()}}function c5(n,e,t){let r=e.selection,i=t=="up"?r.$from:r.$to;return vg(n,e,()=>{let{node:o}=n.docView.domFromPos(i.pos,t=="up"?-1:1);for(;;){let a=n.docView.nearestDesc(o,!0);if(!a)break;if(a.node.isBlock){o=a.contentDOM||a.dom;break}o=a.dom.parentNode}let s=yg(n,i.pos,1);for(let a=o.firstChild;a;a=a.nextSibling){let l;if(a.nodeType==1)l=a.getClientRects();else if(a.nodeType==3)l=zr(a,0,a.nodeValue.length).getClientRects();else continue;for(let c=0;c<l.length;c++){let u=l[c];if(u.bottom>u.top+1&&(t=="up"?s.top-u.top>(u.bottom-s.top)*2:u.bottom-s.bottom>(s.bottom-u.top)*2))return!1}}return!0})}const u5=/[\u0590-\u08ac]/;function d5(n,e,t){let{$head:r}=e.selection;if(!r.parent.isTextblock)return!1;let i=r.parentOffset,o=!i,s=i==r.parent.content.size,a=n.domSelection();return a?!u5.test(r.parent.textContent)||!a.modify?t=="left"||t=="backward"?o:s:vg(n,e,()=>{let{focusNode:l,focusOffset:c,anchorNode:u,anchorOffset:h}=n.domSelectionRange(),g=a.caretBidiLevel;a.modify("move",t,"character");let b=r.depth?n.docView.domAfterPos(r.before()):n.dom,{focusNode:p,focusOffset:v}=n.domSelectionRange(),w=p&&!b.contains(p.nodeType==1?p:p.parentNode)||l==p&&c==v;try{a.collapse(u,h),l&&(l!=u||c!=h)&&a.extend&&a.extend(l,c)}catch{}return g!=null&&(a.caretBidiLevel=g),w}):r.pos==r.start()||r.pos==r.end()}let wg=null,xg=null,kg=!1;function h5(n,e,t){return wg==e&&xg==t?kg:(wg=e,xg=t,kg=t=="up"||t=="down"?c5(n,e,t):d5(n,e,t))}const Jn=0,Sg=1,Wi=2,xr=3;class Rs{constructor(e,t,r,i){this.parent=e,this.children=t,this.dom=r,this.contentDOM=i,this.dirty=Jn,r.pmViewDesc=this}matchesWidget(e){return!1}matchesMark(e){return!1}matchesNode(e,t,r){return!1}matchesHack(e){return!1}parseRule(){return null}stopEvent(e){return!1}get size(){let e=0;for(let t=0;t<this.children.length;t++)e+=this.children[t].size;return e}get border(){return 0}destroy(){this.parent=void 0,this.dom.pmViewDesc==this&&(this.dom.pmViewDesc=void 0);for(let e=0;e<this.children.length;e++)this.children[e].destroy()}posBeforeChild(e){for(let t=0,r=this.posAtStart;;t++){let i=this.children[t];if(i==e)return r;r+=i.size}}get posBefore(){return this.parent.posBeforeChild(this)}get posAtStart(){return this.parent?this.parent.posBeforeChild(this)+this.border:0}get posAfter(){return this.posBefore+this.size}get posAtEnd(){return this.posAtStart+this.size-2*this.border}localPosFromDOM(e,t,r){if(this.contentDOM&&this.contentDOM.contains(e.nodeType==1?e:e.parentNode))if(r<0){let o,s;if(e==this.contentDOM)o=e.childNodes[t-1];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.previousSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.previousSibling;return o?this.posBeforeChild(s)+s.size:this.posAtStart}else{let o,s;if(e==this.contentDOM)o=e.childNodes[t];else{for(;e.parentNode!=this.contentDOM;)e=e.parentNode;o=e.nextSibling}for(;o&&!((s=o.pmViewDesc)&&s.parent==this);)o=o.nextSibling;return o?this.posBeforeChild(s):this.posAtEnd}let i;if(e==this.dom&&this.contentDOM)i=t>cn(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))i=e.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(t==0)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!1;break}if(o.previousSibling)break}if(i==null&&t==e.childNodes.length)for(let o=e;;o=o.parentNode){if(o==this.dom){i=!0;break}if(o.nextSibling)break}}return i??r>0?this.posAtEnd:this.posAtStart}nearestDesc(e,t=!1){for(let r=!0,i=e;i;i=i.parentNode){let o=this.getDesc(i),s;if(o&&(!t||o.node))if(r&&(s=o.nodeDOM)&&!(s.nodeType==1?s.contains(e.nodeType==1?e:e.parentNode):s==e))r=!1;else return o}}getDesc(e){let t=e.pmViewDesc;for(let r=t;r;r=r.parent)if(r==this)return t}posFromDOM(e,t,r){for(let i=e;i;i=i.parentNode){let o=this.getDesc(i);if(o)return o.localPosFromDOM(e,t,r)}return-1}descAt(e){for(let t=0,r=0;t<this.children.length;t++){let i=this.children[t],o=r+i.size;if(r==e&&o!=r){for(;!i.border&&i.children.length;)for(let s=0;s<i.children.length;s++){let a=i.children[s];if(a.size){i=a;break}}return i}if(e<o)return i.descAt(e-r-i.border);r=o}}domFromPos(e,t){if(!this.contentDOM)return{node:this.dom,offset:0,atom:e+1};let r=0,i=0;for(let o=0;r<this.children.length;r++){let s=this.children[r],a=o+s.size;if(a>e||s instanceof Tg){i=e-o;break}o=a}if(i)return this.children[r].domFromPos(i-this.children[r].border,t);for(let o;r&&!(o=this.children[r-1]).size&&o instanceof Eg&&o.side>=0;r--);if(t<=0){let o,s=!0;for(;o=r?this.children[r-1]:null,!(!o||o.dom.parentNode==this.contentDOM);r--,s=!1);return o&&t&&s&&!o.border&&!o.domAtom?o.domFromPos(o.size,t):{node:this.contentDOM,offset:o?cn(o.dom)+1:0}}else{let o,s=!0;for(;o=r<this.children.length?this.children[r]:null,!(!o||o.dom.parentNode==this.contentDOM);r++,s=!1);return o&&s&&!o.border&&!o.domAtom?o.domFromPos(0,t):{node:this.contentDOM,offset:o?cn(o.dom):this.contentDOM.childNodes.length}}}parseRange(e,t,r=0){if(this.children.length==0)return{node:this.contentDOM,from:e,to:t,fromOffset:0,toOffset:this.contentDOM.childNodes.length};let i=-1,o=-1;for(let s=r,a=0;;a++){let l=this.children[a],c=s+l.size;if(i==-1&&e<=c){let u=s+l.border;if(e>=u&&t<=c-l.border&&l.node&&l.contentDOM&&this.contentDOM.contains(l.contentDOM))return l.parseRange(e,t,u);e=s;for(let h=a;h>0;h--){let g=this.children[h-1];if(g.size&&g.dom.parentNode==this.contentDOM&&!g.emptyChildAt(1)){i=cn(g.dom)+1;break}e-=g.size}i==-1&&(i=0)}if(i>-1&&(c>t||a==this.children.length-1)){t=c;for(let u=a+1;u<this.children.length;u++){let h=this.children[u];if(h.size&&h.dom.parentNode==this.contentDOM&&!h.emptyChildAt(-1)){o=cn(h.dom);break}t+=h.size}o==-1&&(o=this.contentDOM.childNodes.length);break}s=c}return{node:this.contentDOM,from:e,to:t,fromOffset:i,toOffset:o}}emptyChildAt(e){if(this.border||!this.contentDOM||!this.children.length)return!1;let t=this.children[e<0?0:this.children.length-1];return t.size==0||t.emptyChildAt(e)}domAfterPos(e){let{node:t,offset:r}=this.domFromPos(e,0);if(t.nodeType!=1||r==t.childNodes.length)throw new RangeError("No node after pos "+e);return t.childNodes[r]}setSelection(e,t,r,i=!1){let o=Math.min(e,t),s=Math.max(e,t);for(let b=0,p=0;b<this.children.length;b++){let v=this.children[b],w=p+v.size;if(o>p&&s<w)return v.setSelection(e-p-v.border,t-p-v.border,r,i);p=w}let a=this.domFromPos(e,e?-1:1),l=t==e?a:this.domFromPos(t,t?-1:1),c=r.root.getSelection(),u=r.domSelectionRange(),h=!1;if((dr||kn)&&e==t){let{node:b,offset:p}=a;if(b.nodeType==3){if(h=!!(p&&b.nodeValue[p-1]==`
6
+ `),h&&p==b.nodeValue.length)for(let v=b,w;v;v=v.parentNode){if(w=v.nextSibling){w.nodeName=="BR"&&(a=l={node:w.parentNode,offset:cn(w)+1});break}let S=v.pmViewDesc;if(S&&S.node&&S.node.isBlock)break}}else{let v=b.childNodes[p-1];h=v&&(v.nodeName=="BR"||v.contentEditable=="false")}}if(dr&&u.focusNode&&u.focusNode!=l.node&&u.focusNode.nodeType==1){let b=u.focusNode.childNodes[u.focusOffset];b&&b.contentEditable=="false"&&(i=!0)}if(!(i||h&&kn)&&Gi(a.node,a.offset,u.anchorNode,u.anchorOffset)&&Gi(l.node,l.offset,u.focusNode,u.focusOffset))return;let g=!1;if((c.extend||e==t)&&!h){c.collapse(a.node,a.offset);try{e!=t&&c.extend(l.node,l.offset),g=!0}catch{}}if(!g){if(e>t){let p=a;a=l,l=p}let b=document.createRange();b.setEnd(l.node,l.offset),b.setStart(a.node,a.offset),c.removeAllRanges(),c.addRange(b)}}ignoreMutation(e){return!this.contentDOM&&e.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(e,t){for(let r=0,i=0;i<this.children.length;i++){let o=this.children[i],s=r+o.size;if(r==s?e<=s&&t>=r:e<s&&t>r){let a=r+o.border,l=s-o.border;if(e>=a&&t<=l){this.dirty=e==r||t==s?Wi:Sg,e==a&&t==l&&(o.contentLost||o.dom.parentNode!=this.contentDOM)?o.dirty=xr:o.markDirty(e-a,t-a);return}else o.dirty=o.dom==o.contentDOM&&o.dom.parentNode==this.contentDOM&&!o.children.length?Wi:xr}r=s}this.dirty=Wi}markParentsDirty(){let e=1;for(let t=this.parent;t;t=t.parent,e++){let r=e==1?Wi:Sg;t.dirty<r&&(t.dirty=r)}}get domAtom(){return!1}get ignoreForCoords(){return!1}get ignoreForSelection(){return!1}isText(e){return!1}}class Eg extends Rs{constructor(e,t,r,i){let o,s=t.type.toDOM;if(typeof s=="function"&&(s=s(r,()=>{if(!o)return i;if(o.parent)return o.parent.posBeforeChild(o)})),!t.type.spec.raw){if(s.nodeType!=1){let a=document.createElement("span");a.appendChild(s),s=a}s.contentEditable="false",s.classList.add("ProseMirror-widget")}super(e,[],s,null),this.widget=t,this.widget=t,o=this}matchesWidget(e){return this.dirty==Jn&&e.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(e){let t=this.widget.spec.stopEvent;return t?t(e):!1}ignoreMutation(e){return e.type!="selection"||this.widget.spec.ignoreSelection}destroy(){this.widget.type.destroy(this.dom),super.destroy()}get domAtom(){return!0}get ignoreForSelection(){return!!this.widget.type.spec.relaxedSide}get side(){return this.widget.type.side}}class f5 extends Rs{constructor(e,t,r,i){super(e,[],t,null),this.textDOM=r,this.text=i}get size(){return this.text.length}localPosFromDOM(e,t){return e!=this.textDOM?this.posAtStart+(t?this.size:0):this.posAtStart+t}domFromPos(e){return{node:this.textDOM,offset:e}}ignoreMutation(e){return e.type==="characterData"&&e.target.nodeValue==e.oldValue}}class Ki extends Rs{constructor(e,t,r,i,o){super(e,[],r,i),this.mark=t,this.spec=o}static create(e,t,r,i){let o=i.nodeViews[t.type.name],s=o&&o(t,i,r);return(!s||!s.dom)&&(s=Hi.renderSpec(document,t.type.spec.toDOM(t,r),null,t.attrs)),new Ki(e,t,s.dom,s.contentDOM||s.dom,s)}parseRule(){return this.dirty&xr||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(e){return this.dirty!=xr&&this.mark.eq(e)}markDirty(e,t){if(super.markDirty(e,t),this.dirty!=Jn){let r=this.parent;for(;!r.node;)r=r.parent;r.dirty<this.dirty&&(r.dirty=this.dirty),this.dirty=Jn}}slice(e,t,r){let i=Ki.create(this.parent,this.mark,!0,r),o=this.children,s=this.size;t<s&&(o=zu(o,t,s,r)),e>0&&(o=zu(o,0,e,r));for(let a=0;a<o.length;a++)o[a].parent=i;return i.children=o,i}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}}class hi extends Rs{constructor(e,t,r,i,o,s,a,l,c){super(e,[],o,s),this.node=t,this.outerDeco=r,this.innerDeco=i,this.nodeDOM=a}static create(e,t,r,i,o,s){let a=o.nodeViews[t.type.name],l,c=a&&a(t,o,()=>{if(!l)return s;if(l.parent)return l.parent.posBeforeChild(l)},r,i),u=c&&c.dom,h=c&&c.contentDOM;if(t.isText){if(!u)u=document.createTextNode(t.text);else if(u.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else u||({dom:u,contentDOM:h}=Hi.renderSpec(document,t.type.spec.toDOM(t),null,t.attrs));!h&&!t.isText&&u.nodeName!="BR"&&(u.hasAttribute("contenteditable")||(u.contentEditable="false"),t.type.spec.draggable&&(u.draggable=!0));let g=u;return u=Ng(u,r,t),c?l=new p5(e,t,r,i,u,h||null,g,c,o,s+1):t.isText?new Za(e,t,r,i,u,g,o):new hi(e,t,r,i,u,h||null,g,o,s+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let e={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(e.preserveWhitespace="full"),!this.contentDOM)e.getContent=()=>this.node.content;else if(!this.contentLost)e.contentElement=this.contentDOM;else{for(let t=this.children.length-1;t>=0;t--){let r=this.children[t];if(this.dom.contains(r.dom.parentNode)){e.contentElement=r.dom.parentNode;break}}e.contentElement||(e.getContent=()=>le.empty)}return e}matchesNode(e,t,r){return this.dirty==Jn&&e.eq(this.node)&&Xa(t,this.outerDeco)&&r.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(e,t){let r=this.node.inlineContent,i=t,o=e.composing?this.localCompositionInfo(e,t):null,s=o&&o.pos>-1?o:null,a=o&&o.pos<0,l=new g5(this,s&&s.node,e);y5(this.node,this.innerDeco,(c,u,h)=>{c.spec.marks?l.syncToMarks(c.spec.marks,r,e):c.type.side>=0&&!h&&l.syncToMarks(u==this.node.childCount?Tt.none:this.node.child(u).marks,r,e),l.placeWidget(c,e,i)},(c,u,h,g)=>{l.syncToMarks(c.marks,r,e);let b;l.findNodeMatch(c,u,h,g)||a&&e.state.selection.from>i&&e.state.selection.to<i+c.nodeSize&&(b=l.findIndexWithChild(o.node))>-1&&l.updateNodeAt(c,u,h,b,e)||l.updateNextNode(c,u,h,e,g,i)||l.addNode(c,u,h,e,i),i+=c.nodeSize}),l.syncToMarks([],r,e),this.node.isTextblock&&l.addTextblockHacks(),l.destroyRest(),(l.changed||this.dirty==Wi)&&(s&&this.protectLocalComposition(e,s),Ag(this.contentDOM,this.children,e),Do&&v5(this.dom))}localCompositionInfo(e,t){let{from:r,to:i}=e.state.selection;if(!(e.state.selection instanceof Ne)||r<t||i>t+this.node.content.size)return null;let o=e.input.compositionNode;if(!o||!this.dom.contains(o.parentNode))return null;if(this.node.inlineContent){let s=o.nodeValue,a=w5(this.node.content,s,r-t,i-t);return a<0?null:{node:o,pos:a,text:s}}else return{node:o,pos:-1,text:""}}protectLocalComposition(e,{node:t,pos:r,text:i}){if(this.getDesc(t))return;let o=t;for(;o.parentNode!=this.contentDOM;o=o.parentNode){for(;o.previousSibling;)o.parentNode.removeChild(o.previousSibling);for(;o.nextSibling;)o.parentNode.removeChild(o.nextSibling);o.pmViewDesc&&(o.pmViewDesc=void 0)}let s=new f5(this,o,t,i);e.input.compositionNodes.push(s),this.children=zu(this.children,r,r+i.length,e,s)}update(e,t,r,i){return this.dirty==xr||!e.sameMarkup(this.node)?!1:(this.updateInner(e,t,r,i),!0)}updateInner(e,t,r,i){this.updateOuterDeco(t),this.node=e,this.innerDeco=r,this.contentDOM&&this.updateChildren(i,this.posAtStart),this.dirty=Jn}updateOuterDeco(e){if(Xa(e,this.outerDeco))return;let t=this.nodeDOM.nodeType!=1,r=this.dom;this.dom=Mg(this.dom,this.nodeDOM,Fu(this.outerDeco,this.node,t),Fu(e,this.node,t)),this.dom!=r&&(r.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=e}selectNode(){this.nodeDOM.nodeType==1&&this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.dom.draggable=!0)}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.dom.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function Cg(n,e,t,r,i){Ng(r,e,n);let o=new hi(void 0,n,e,t,r,r,r,i,0);return o.contentDOM&&o.updateChildren(i,0),o}class Za extends hi{constructor(e,t,r,i,o,s,a){super(e,t,r,i,o,null,s,a,0)}parseRule(){let e=this.nodeDOM.parentNode;for(;e&&e!=this.dom&&!e.pmIsDeco;)e=e.parentNode;return{skip:e||!0}}update(e,t,r,i){return this.dirty==xr||this.dirty!=Jn&&!this.inParent()||!e.sameMarkup(this.node)?!1:(this.updateOuterDeco(t),(this.dirty!=Jn||e.text!=this.node.text)&&e.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=e.text,i.trackWrites==this.nodeDOM&&(i.trackWrites=null)),this.node=e,this.dirty=Jn,!0)}inParent(){let e=this.parent.contentDOM;for(let t=this.nodeDOM;t;t=t.parentNode)if(t==e)return!0;return!1}domFromPos(e){return{node:this.nodeDOM,offset:e}}localPosFromDOM(e,t,r){return e==this.nodeDOM?this.posAtStart+Math.min(t,this.node.text.length):super.localPosFromDOM(e,t,r)}ignoreMutation(e){return e.type!="characterData"&&e.type!="selection"}slice(e,t,r){let i=this.node.cut(e,t),o=document.createTextNode(i.text);return new Za(this.parent,i,this.outerDeco,this.innerDeco,o,o,r)}markDirty(e,t){super.markDirty(e,t),this.dom!=this.nodeDOM&&(e==0||t==this.nodeDOM.nodeValue.length)&&(this.dirty=xr)}get domAtom(){return!1}isText(e){return this.node.text==e}}class Tg extends Rs{parseRule(){return{ignore:!0}}matchesHack(e){return this.dirty==Jn&&this.dom.nodeName==e}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class p5 extends hi{constructor(e,t,r,i,o,s,a,l,c,u){super(e,t,r,i,o,s,a,c,u),this.spec=l}update(e,t,r,i){if(this.dirty==xr)return!1;if(this.spec.update&&(this.node.type==e.type||this.spec.multiType)){let o=this.spec.update(e,t,r);return o&&this.updateInner(e,t,r,i),o}else return!this.contentDOM&&!e.isLeaf?!1:super.update(e,t,r,i)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(e,t,r,i){this.spec.setSelection?this.spec.setSelection(e,t,r.root):super.setSelection(e,t,r,i)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(e){return this.spec.stopEvent?this.spec.stopEvent(e):!1}ignoreMutation(e){return this.spec.ignoreMutation?this.spec.ignoreMutation(e):super.ignoreMutation(e)}}function Ag(n,e,t){let r=n.firstChild,i=!1;for(let o=0;o<e.length;o++){let s=e[o],a=s.dom;if(a.parentNode==n){for(;a!=r;)r=Dg(r),i=!0;r=r.nextSibling}else i=!0,n.insertBefore(a,r);if(s instanceof Ki){let l=r?r.previousSibling:n.lastChild;Ag(s.contentDOM,s.children,t),r=l?l.nextSibling:n.firstChild}}for(;r;)r=Dg(r),i=!0;i&&t.trackWrites==n&&(t.trackWrites=null)}const Os=function(n){n&&(this.nodeName=n)};Os.prototype=Object.create(null);const ji=[new Os];function Fu(n,e,t){if(n.length==0)return ji;let r=t?ji[0]:new Os,i=[r];for(let o=0;o<n.length;o++){let s=n[o].type.attrs;if(s){s.nodeName&&i.push(r=new Os(s.nodeName));for(let a in s){let l=s[a];l!=null&&(t&&i.length==1&&i.push(r=new Os(e.isInline?"span":"div")),a=="class"?r.class=(r.class?r.class+" ":"")+l:a=="style"?r.style=(r.style?r.style+";":"")+l:a!="nodeName"&&(r[a]=l))}}}return i}function Mg(n,e,t,r){if(t==ji&&r==ji)return e;let i=e;for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(o){let l;a&&a.nodeName==s.nodeName&&i!=n&&(l=i.parentNode)&&l.nodeName.toLowerCase()==s.nodeName||(l=document.createElement(s.nodeName),l.pmIsDeco=!0,l.appendChild(i),a=ji[0]),i=l}m5(i,a||ji[0],s)}return i}function m5(n,e,t){for(let r in e)r!="class"&&r!="style"&&r!="nodeName"&&!(r in t)&&n.removeAttribute(r);for(let r in t)r!="class"&&r!="style"&&r!="nodeName"&&t[r]!=e[r]&&n.setAttribute(r,t[r]);if(e.class!=t.class){let r=e.class?e.class.split(" ").filter(Boolean):[],i=t.class?t.class.split(" ").filter(Boolean):[];for(let o=0;o<r.length;o++)i.indexOf(r[o])==-1&&n.classList.remove(r[o]);for(let o=0;o<i.length;o++)r.indexOf(i[o])==-1&&n.classList.add(i[o]);n.classList.length==0&&n.removeAttribute("class")}if(e.style!=t.style){if(e.style){let r=/\s*([\w\-\xa1-\uffff]+)\s*:(?:"(?:\\.|[^"])*"|'(?:\\.|[^'])*'|\(.*?\)|[^;])*/g,i;for(;i=r.exec(e.style);)n.style.removeProperty(i[1])}t.style&&(n.style.cssText+=t.style)}}function Ng(n,e,t){return Mg(n,n,ji,Fu(e,t,n.nodeType!=1))}function Xa(n,e){if(n.length!=e.length)return!1;for(let t=0;t<n.length;t++)if(!n[t].type.eq(e[t].type))return!1;return!0}function Dg(n){let e=n.nextSibling;return n.parentNode.removeChild(n),e}class g5{constructor(e,t,r){this.lock=t,this.view=r,this.index=0,this.stack=[],this.changed=!1,this.top=e,this.preMatch=b5(e.node.content,e)}destroyBetween(e,t){if(e!=t){for(let r=e;r<t;r++)this.top.children[r].destroy();this.top.children.splice(e,t-e),this.changed=!0}}destroyRest(){this.destroyBetween(this.index,this.top.children.length)}syncToMarks(e,t,r){let i=0,o=this.stack.length>>1,s=Math.min(o,e.length);for(;i<s&&(i==o-1?this.top:this.stack[i+1<<1]).matchesMark(e[i])&&e[i].type.spec.spanning!==!1;)i++;for(;i<o;)this.destroyRest(),this.top.dirty=Jn,this.index=this.stack.pop(),this.top=this.stack.pop(),o--;for(;o<e.length;){this.stack.push(this.top,this.index+1);let a=-1;for(let l=this.index;l<Math.min(this.index+3,this.top.children.length);l++){let c=this.top.children[l];if(c.matchesMark(e[o])&&!this.isLocked(c.dom)){a=l;break}}if(a>-1)a>this.index&&(this.changed=!0,this.destroyBetween(this.index,a)),this.top=this.top.children[this.index];else{let l=Ki.create(this.top,e[o],t,r);this.top.children.splice(this.index,0,l),this.top=l,this.changed=!0}this.index=0,o++}}findNodeMatch(e,t,r,i){let o=-1,s;if(i>=this.preMatch.index&&(s=this.preMatch.matches[i-this.preMatch.index]).parent==this.top&&s.matchesNode(e,t,r))o=this.top.children.indexOf(s,this.index);else for(let a=this.index,l=Math.min(this.top.children.length,a+5);a<l;a++){let c=this.top.children[a];if(c.matchesNode(e,t,r)&&!this.preMatch.matched.has(c)){o=a;break}}return o<0?!1:(this.destroyBetween(this.index,o),this.index++,!0)}updateNodeAt(e,t,r,i,o){let s=this.top.children[i];return s.dirty==xr&&s.dom==s.contentDOM&&(s.dirty=Wi),s.update(e,t,r,o)?(this.destroyBetween(this.index,i),this.index++,!0):!1}findIndexWithChild(e){for(;;){let t=e.parentNode;if(!t)return-1;if(t==this.top.contentDOM){let r=e.pmViewDesc;if(r){for(let i=this.index;i<this.top.children.length;i++)if(this.top.children[i]==r)return i}return-1}e=t}}updateNextNode(e,t,r,i,o,s){for(let a=this.index;a<this.top.children.length;a++){let l=this.top.children[a];if(l instanceof hi){let c=this.preMatch.matched.get(l);if(c!=null&&c!=o)return!1;let u=l.dom,h,g=this.isLocked(u)&&!(e.isText&&l.node&&l.node.isText&&l.nodeDOM.nodeValue==e.text&&l.dirty!=xr&&Xa(t,l.outerDeco));if(!g&&l.update(e,t,r,i))return this.destroyBetween(this.index,a),l.dom!=u&&(this.changed=!0),this.index++,!0;if(!g&&(h=this.recreateWrapper(l,e,t,r,i,s)))return this.destroyBetween(this.index,a),this.top.children[this.index]=h,h.contentDOM&&(h.dirty=Wi,h.updateChildren(i,s+1),h.dirty=Jn),this.changed=!0,this.index++,!0;break}}return!1}recreateWrapper(e,t,r,i,o,s){if(e.dirty||t.isAtom||!e.children.length||!e.node.content.eq(t.content)||!Xa(r,e.outerDeco)||!i.eq(e.innerDeco))return null;let a=hi.create(this.top,t,r,i,o,s);if(a.contentDOM){a.children=e.children,e.children=[];for(let l of a.children)l.parent=a}return e.destroy(),a}addNode(e,t,r,i,o){let s=hi.create(this.top,e,t,r,i,o);s.contentDOM&&s.updateChildren(i,o+1),this.top.children.splice(this.index++,0,s),this.changed=!0}placeWidget(e,t,r){let i=this.index<this.top.children.length?this.top.children[this.index]:null;if(i&&i.matchesWidget(e)&&(e==i.widget||!i.widget.type.toDOM.parentNode))this.index++;else{let o=new Eg(this.top,e,t,r);this.top.children.splice(this.index++,0,o),this.changed=!0}}addTextblockHacks(){let e=this.top.children[this.index-1],t=this.top;for(;e instanceof Ki;)t=e,e=t.children[t.children.length-1];(!e||!(e instanceof Za)||/\n$/.test(e.node.text)||this.view.requiresGeckoHackNode&&/\s$/.test(e.node.text))&&((kn||mn)&&e&&e.dom.contentEditable=="false"&&this.addHackNode("IMG",t),this.addHackNode("BR",this.top))}addHackNode(e,t){if(t==this.top&&this.index<t.children.length&&t.children[this.index].matchesHack(e))this.index++;else{let r=document.createElement(e);e=="IMG"&&(r.className="ProseMirror-separator",r.alt=""),e=="BR"&&(r.className="ProseMirror-trailingBreak");let i=new Tg(this.top,[],r,null);t!=this.top?t.children.push(i):t.children.splice(this.index++,0,i),this.changed=!0}}isLocked(e){return this.lock&&(e==this.lock||e.nodeType==1&&e.contains(this.lock.parentNode))}}function b5(n,e){let t=e,r=t.children.length,i=n.childCount,o=new Map,s=[];e:for(;i>0;){let a;for(;;)if(r){let c=t.children[r-1];if(c instanceof Ki)t=c,r=c.children.length;else{a=c,r--;break}}else{if(t==e)break e;r=t.parent.children.indexOf(t),t=t.parent}let l=a.node;if(l){if(l!=n.child(i-1))break;--i,o.set(a,i),s.push(a)}}return{index:i,matched:o,matches:s.reverse()}}function _5(n,e){return n.type.side-e.type.side}function y5(n,e,t,r){let i=e.locals(n),o=0;if(i.length==0){for(let c=0;c<n.childCount;c++){let u=n.child(c);r(u,i,e.forChild(o,u),c),o+=u.nodeSize}return}let s=0,a=[],l=null;for(let c=0;;){let u,h;for(;s<i.length&&i[s].to==o;){let w=i[s++];w.widget&&(u?(h||(h=[u])).push(w):u=w)}if(u)if(h){h.sort(_5);for(let w=0;w<h.length;w++)t(h[w],c,!!l)}else t(u,c,!!l);let g,b;if(l)b=-1,g=l,l=null;else if(c<n.childCount)b=c,g=n.child(c++);else break;for(let w=0;w<a.length;w++)a[w].to<=o&&a.splice(w--,1);for(;s<i.length&&i[s].from<=o&&i[s].to>o;)a.push(i[s++]);let p=o+g.nodeSize;if(g.isText){let w=p;s<i.length&&i[s].from<w&&(w=i[s].from);for(let S=0;S<a.length;S++)a[S].to<w&&(w=a[S].to);w<p&&(l=g.cut(w-o),g=g.cut(0,w-o),p=w,b=-1)}else for(;s<i.length&&i[s].to<p;)s++;let v=g.isInline&&!g.isLeaf?a.filter(w=>!w.inline):a.slice();r(g,v,e.forChild(o,g),b),o=p}}function v5(n){if(n.nodeName=="UL"||n.nodeName=="OL"){let e=n.style.cssText;n.style.cssText=e+"; list-style: square !important",window.getComputedStyle(n).listStyle,n.style.cssText=e}}function w5(n,e,t,r){for(let i=0,o=0;i<n.childCount&&o<=r;){let s=n.child(i++),a=o;if(o+=s.nodeSize,!s.isText)continue;let l=s.text;for(;i<n.childCount;){let c=n.child(i++);if(o+=c.nodeSize,!c.isText)break;l+=c.text}if(o>=t){if(o>=r&&l.slice(r-e.length-a,r-a)==e)return r-e.length;let c=a<r?l.lastIndexOf(e,r-a-1):-1;if(c>=0&&c+e.length+a>=t)return a+c;if(t==r&&l.length>=r+e.length-a&&l.slice(r-a,r-a+e.length)==e)return r}}return-1}function zu(n,e,t,r,i){let o=[];for(let s=0,a=0;s<n.length;s++){let l=n[s],c=a,u=a+=l.size;c>=t||u<=e?o.push(l):(c<e&&o.push(l.slice(0,e-c,r)),i&&(o.push(i),i=void 0),u>t&&o.push(l.slice(t-c,l.size,r)))}return o}function qu(n,e=null){let t=n.domSelectionRange(),r=n.state.doc;if(!t.focusNode)return null;let i=n.docView.nearestDesc(t.focusNode),o=i&&i.size==0,s=n.docView.posFromDOM(t.focusNode,t.focusOffset,1);if(s<0)return null;let a=r.resolve(s),l,c;if(Ya(t)){for(l=s;i&&!i.node;)i=i.parent;let h=i.node;if(i&&h.isAtom&&Oe.isSelectable(h)&&i.parent&&!(h.isInline&&K6(t.focusNode,t.focusOffset,i.dom))){let g=i.posBefore;c=new Oe(s==g?a:r.resolve(g))}}else{if(t instanceof n.dom.ownerDocument.defaultView.Selection&&t.rangeCount>1){let h=s,g=s;for(let b=0;b<t.rangeCount;b++){let p=t.getRangeAt(b);h=Math.min(h,n.docView.posFromDOM(p.startContainer,p.startOffset,1)),g=Math.max(g,n.docView.posFromDOM(p.endContainer,p.endOffset,-1))}if(h<0)return null;[l,s]=g==n.state.selection.anchor?[g,h]:[h,g],a=r.resolve(s)}else l=n.docView.posFromDOM(t.anchorNode,t.anchorOffset,1);if(l<0)return null}let u=r.resolve(l);if(!c){let h=e=="pointer"||n.state.selection.head<a.pos&&!o?1:-1;c=Vu(n,u,a,h)}return c}function Rg(n){return n.editable?n.hasFocus():zg(n)&&document.activeElement&&document.activeElement.contains(n.dom)}function Vr(n,e=!1){let t=n.state.selection;if(Bg(n,t),!!Rg(n)){if(!e&&n.input.mouseDown&&n.input.mouseDown.allowDefault&&mn){let r=n.domSelectionRange(),i=n.domObserver.currentSelection;if(r.anchorNode&&i.anchorNode&&Gi(r.anchorNode,r.anchorOffset,i.anchorNode,i.anchorOffset)){n.input.mouseDown.delayedSelectionSync=!0,n.domObserver.setCurSelection();return}}if(n.domObserver.disconnectSelection(),n.cursorWrapper)k5(n);else{let{anchor:r,head:i}=t,o,s;Og&&!(t instanceof Ne)&&(t.$from.parent.inlineContent||(o=Ig(n,t.from)),!t.empty&&!t.$from.parent.inlineContent&&(s=Ig(n,t.to))),n.docView.setSelection(r,i,n,e),Og&&(o&&Lg(o),s&&Lg(s)),t.visible?n.dom.classList.remove("ProseMirror-hideselection"):(n.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&x5(n))}n.domObserver.setCurSelection(),n.domObserver.connectSelection()}}const Og=kn||mn&&hg<63;function Ig(n,e){let{node:t,offset:r}=n.docView.domFromPos(e,0),i=r<t.childNodes.length?t.childNodes[r]:null,o=r?t.childNodes[r-1]:null;if(kn&&i&&i.contentEditable=="false")return Hu(i);if((!i||i.contentEditable=="false")&&(!o||o.contentEditable=="false")){if(i)return Hu(i);if(o)return Hu(o)}}function Hu(n){return n.contentEditable="true",kn&&n.draggable&&(n.draggable=!1,n.wasDraggable=!0),n}function Lg(n){n.contentEditable="false",n.wasDraggable&&(n.draggable=!0,n.wasDraggable=null)}function x5(n){let e=n.dom.ownerDocument;e.removeEventListener("selectionchange",n.input.hideSelectionGuard);let t=n.domSelectionRange(),r=t.anchorNode,i=t.anchorOffset;e.addEventListener("selectionchange",n.input.hideSelectionGuard=()=>{(t.anchorNode!=r||t.anchorOffset!=i)&&(e.removeEventListener("selectionchange",n.input.hideSelectionGuard),setTimeout(()=>{(!Rg(n)||n.state.selection.visible)&&n.dom.classList.remove("ProseMirror-hideselection")},20))})}function k5(n){let e=n.domSelection(),t=document.createRange();if(!e)return;let r=n.cursorWrapper.dom,i=r.nodeName=="IMG";i?t.setStart(r.parentNode,cn(r)+1):t.setStart(r,0),t.collapse(!0),e.removeAllRanges(),e.addRange(t),!i&&!n.state.selection.visible&&An&&ui<=11&&(r.disabled=!0,r.disabled=!1)}function Bg(n,e){if(e instanceof Oe){let t=n.docView.descAt(e.from);t!=n.lastSelectedViewDesc&&(Pg(n),t&&t.selectNode(),n.lastSelectedViewDesc=t)}else Pg(n)}function Pg(n){n.lastSelectedViewDesc&&(n.lastSelectedViewDesc.parent&&n.lastSelectedViewDesc.deselectNode(),n.lastSelectedViewDesc=void 0)}function Vu(n,e,t,r){return n.someProp("createSelectionBetween",i=>i(n,e,t))||Ne.between(e,t,r)}function Fg(n){return n.editable&&!n.hasFocus()?!1:zg(n)}function zg(n){let e=n.domSelectionRange();if(!e.anchorNode)return!1;try{return n.dom.contains(e.anchorNode.nodeType==3?e.anchorNode.parentNode:e.anchorNode)&&(n.editable||n.dom.contains(e.focusNode.nodeType==3?e.focusNode.parentNode:e.focusNode))}catch{return!1}}function S5(n){let e=n.docView.domFromPos(n.state.selection.anchor,0),t=n.domSelectionRange();return Gi(e.node,e.offset,t.anchorNode,t.anchorOffset)}function Uu(n,e){let{$anchor:t,$head:r}=n.selection,i=e>0?t.max(r):t.min(r),o=i.parent.inlineContent?i.depth?n.doc.resolve(e>0?i.after():i.before()):null:i;return o&&Fe.findFrom(o,e)}function fi(n,e){return n.dispatch(n.state.tr.setSelection(e).scrollIntoView()),!0}function qg(n,e,t){let r=n.state.selection;if(r instanceof Ne)if(t.indexOf("s")>-1){let{$head:i}=r,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let s=n.state.doc.resolve(i.pos+o.nodeSize*(e<0?-1:1));return fi(n,new Ne(r.$anchor,s))}else if(r.empty){if(n.endOfTextblock(e>0?"forward":"backward")){let i=Uu(n.state,e);return i&&i instanceof Oe?fi(n,i):!1}else if(!(Xn&&t.indexOf("m")>-1)){let i=r.$head,o=i.textOffset?null:e<0?i.nodeBefore:i.nodeAfter,s;if(!o||o.isText)return!1;let a=e<0?i.pos-o.nodeSize:i.pos;return o.isAtom||(s=n.docView.descAt(a))&&!s.contentDOM?Oe.isSelectable(o)?fi(n,new Oe(e<0?n.state.doc.resolve(i.pos-o.nodeSize):i)):Ns?fi(n,new Ne(n.state.doc.resolve(e<0?a:a+o.nodeSize))):!1:!1}}else return!1;else{if(r instanceof Oe&&r.node.isInline)return fi(n,new Ne(e>0?r.$to:r.$from));{let i=Uu(n.state,e);return i?fi(n,i):!1}}}function Ja(n){return n.nodeType==3?n.nodeValue.length:n.childNodes.length}function Is(n,e){let t=n.pmViewDesc;return t&&t.size==0&&(e<0||n.nextSibling||n.nodeName!="BR")}function Oo(n,e){return e<0?E5(n):C5(n)}function E5(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let i,o,s=!1;for(dr&&t.nodeType==1&&r<Ja(t)&&Is(t.childNodes[r],-1)&&(s=!0);;)if(r>0){if(t.nodeType!=1)break;{let a=t.childNodes[r-1];if(Is(a,-1))i=t,o=--r;else if(a.nodeType==3)t=a,r=t.nodeValue.length;else break}}else{if(Hg(t))break;{let a=t.previousSibling;for(;a&&Is(a,-1);)i=t.parentNode,o=cn(a),a=a.previousSibling;if(a)t=a,r=Ja(t);else{if(t=t.parentNode,t==n.dom)break;r=0}}}s?Gu(n,t,r):i&&Gu(n,i,o)}function C5(n){let e=n.domSelectionRange(),t=e.focusNode,r=e.focusOffset;if(!t)return;let i=Ja(t),o,s;for(;;)if(r<i){if(t.nodeType!=1)break;let a=t.childNodes[r];if(Is(a,1))o=t,s=++r;else break}else{if(Hg(t))break;{let a=t.nextSibling;for(;a&&Is(a,1);)o=a.parentNode,s=cn(a)+1,a=a.nextSibling;if(a)t=a,r=0,i=Ja(t);else{if(t=t.parentNode,t==n.dom)break;r=i=0}}}o&&Gu(n,o,s)}function Hg(n){let e=n.pmViewDesc;return e&&e.node&&e.node.isBlock}function T5(n,e){for(;n&&e==n.childNodes.length&&!Ms(n);)e=cn(n)+1,n=n.parentNode;for(;n&&e<n.childNodes.length;){let t=n.childNodes[e];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=0}}function A5(n,e){for(;n&&!e&&!Ms(n);)e=cn(n),n=n.parentNode;for(;n&&e;){let t=n.childNodes[e-1];if(t.nodeType==3)return t;if(t.nodeType==1&&t.contentEditable=="false")break;n=t,e=n.childNodes.length}}function Gu(n,e,t){if(e.nodeType!=3){let o,s;(s=T5(e,t))?(e=s,t=0):(o=A5(e,t))&&(e=o,t=o.nodeValue.length)}let r=n.domSelection();if(!r)return;if(Ya(r)){let o=document.createRange();o.setEnd(e,t),o.setStart(e,t),r.removeAllRanges(),r.addRange(o)}else r.extend&&r.extend(e,t);n.domObserver.setCurSelection();let{state:i}=n;setTimeout(()=>{n.state==i&&Vr(n)},50)}function Vg(n,e){let t=n.state.doc.resolve(e);if(!(mn||Y6)&&t.parent.inlineContent){let i=n.coordsAtPos(e);if(e>t.start()){let o=n.coordsAtPos(e-1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left<i.left?"ltr":"rtl"}if(e<t.end()){let o=n.coordsAtPos(e+1),s=(o.top+o.bottom)/2;if(s>i.top&&s<i.bottom&&Math.abs(o.left-i.left)>1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(n.dom).direction=="rtl"?"rtl":"ltr"}function Ug(n,e,t){let r=n.state.selection;if(r instanceof Ne&&!r.empty||t.indexOf("s")>-1||Xn&&t.indexOf("m")>-1)return!1;let{$from:i,$to:o}=r;if(!i.parent.inlineContent||n.endOfTextblock(e<0?"up":"down")){let s=Uu(n.state,e);if(s&&s instanceof Oe)return fi(n,s)}if(!i.parent.inlineContent){let s=e<0?i:o,a=r instanceof qn?Fe.near(s,e):Fe.findFrom(s,e);return a?fi(n,a):!1}return!1}function Gg(n,e){if(!(n.state.selection instanceof Ne))return!0;let{$head:t,$anchor:r,empty:i}=n.state.selection;if(!t.sameParent(r))return!0;if(!i)return!1;if(n.endOfTextblock(e>0?"forward":"backward"))return!0;let o=!t.textOffset&&(e<0?t.nodeBefore:t.nodeAfter);if(o&&!o.isText){let s=n.state.tr;return e<0?s.delete(t.pos-o.nodeSize,t.pos):s.delete(t.pos,t.pos+o.nodeSize),n.dispatch(s),!0}return!1}function $g(n,e,t){n.domObserver.stop(),e.contentEditable=t,n.domObserver.start()}function M5(n){if(!kn||n.state.selection.$head.parentOffset>0)return!1;let{focusNode:e,focusOffset:t}=n.domSelectionRange();if(e&&e.nodeType==1&&t==0&&e.firstChild&&e.firstChild.contentEditable=="false"){let r=e.firstChild;$g(n,r,"true"),setTimeout(()=>$g(n,r,"false"),20)}return!1}function N5(n){let e="";return n.ctrlKey&&(e+="c"),n.metaKey&&(e+="m"),n.altKey&&(e+="a"),n.shiftKey&&(e+="s"),e}function D5(n,e){let t=e.keyCode,r=N5(e);if(t==8||Xn&&t==72&&r=="c")return Gg(n,-1)||Oo(n,-1);if(t==46&&!e.shiftKey||Xn&&t==68&&r=="c")return Gg(n,1)||Oo(n,1);if(t==13||t==27)return!0;if(t==37||Xn&&t==66&&r=="c"){let i=t==37?Vg(n,n.state.selection.from)=="ltr"?-1:1:-1;return qg(n,i,r)||Oo(n,i)}else if(t==39||Xn&&t==70&&r=="c"){let i=t==39?Vg(n,n.state.selection.from)=="ltr"?1:-1:1;return qg(n,i,r)||Oo(n,i)}else{if(t==38||Xn&&t==80&&r=="c")return Ug(n,-1,r)||Oo(n,-1);if(t==40||Xn&&t==78&&r=="c")return M5(n)||Ug(n,1,r)||Oo(n,1);if(r==(Xn?"m":"c")&&(t==66||t==73||t==89||t==90))return!0}return!1}function $u(n,e){n.someProp("transformCopied",b=>{e=b(e,n)});let t=[],{content:r,openStart:i,openEnd:o}=e;for(;i>1&&o>1&&r.childCount==1&&r.firstChild.childCount==1;){i--,o--;let b=r.firstChild;t.push(b.type.name,b.attrs!=b.type.defaultAttrs?b.attrs:null),r=b.content}let s=n.someProp("clipboardSerializer")||Hi.fromSchema(n.state.schema),a=Jg(),l=a.createElement("div");l.appendChild(s.serializeFragment(r,{document:a}));let c=l.firstChild,u,h=0;for(;c&&c.nodeType==1&&(u=Zg[c.nodeName.toLowerCase()]);){for(let b=u.length-1;b>=0;b--){let p=a.createElement(u[b]);for(;l.firstChild;)p.appendChild(l.firstChild);l.appendChild(p),h++}c=l.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${i} ${o}${h?` -${h}`:""} ${JSON.stringify(t)}`);let g=n.someProp("clipboardTextSerializer",b=>b(e,n))||e.content.textBetween(0,e.content.size,`
7
+
8
+ `);return{dom:l,text:g,slice:e}}function Wg(n,e,t,r,i){let o=i.parent.type.spec.code,s,a;if(!t&&!e)return null;let l=e&&(r||o||!t);if(l){if(n.someProp("transformPastedText",g=>{e=g(e,o||r,n)}),o)return e?new ve(le.from(n.state.schema.text(e.replace(/\r\n?/g,`
9
+ `))),0,0):ve.empty;let h=n.someProp("clipboardTextParser",g=>g(e,i,r,n));if(h)a=h;else{let g=i.marks(),{schema:b}=n.state,p=Hi.fromSchema(b);s=document.createElement("div"),e.split(/(?:\r\n?|\n)+/).forEach(v=>{let w=s.appendChild(document.createElement("p"));v&&w.appendChild(p.serializeNode(b.text(v,g)))})}}else n.someProp("transformPastedHTML",h=>{t=h(t,n)}),s=L5(t),Ns&&B5(s);let c=s&&s.querySelector("[data-pm-slice]"),u=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(u&&u[3])for(let h=+u[3];h>0;h--){let g=s.firstChild;for(;g&&g.nodeType!=1;)g=g.nextSibling;if(!g)break;s=g}if(a||(a=(n.someProp("clipboardParser")||n.someProp("domParser")||qi.fromSchema(n.state.schema)).parseSlice(s,{preserveWhitespace:!!(l||u),context:i,ruleFromNode(g){return g.nodeName=="BR"&&!g.nextSibling&&g.parentNode&&!R5.test(g.parentNode.nodeName)?{ignore:!0}:null}})),u)a=P5(Yg(a,+u[1],+u[2]),u[4]);else if(a=ve.maxOpen(O5(a.content,i),!0),a.openStart||a.openEnd){let h=0,g=0;for(let b=a.content.firstChild;h<a.openStart&&!b.type.spec.isolating;h++,b=b.firstChild);for(let b=a.content.lastChild;g<a.openEnd&&!b.type.spec.isolating;g++,b=b.lastChild);a=Yg(a,h,g)}return n.someProp("transformPasted",h=>{a=h(a,n)}),a}const R5=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function O5(n,e){if(n.childCount<2)return n;for(let t=e.depth;t>=0;t--){let i=e.node(t).contentMatchAt(e.index(t)),o,s=[];if(n.forEach(a=>{if(!s)return;let l=i.findWrapping(a.type),c;if(!l)return s=null;if(c=s.length&&o.length&&jg(l,o,a,s[s.length-1],0))s[s.length-1]=c;else{s.length&&(s[s.length-1]=Qg(s[s.length-1],o.length));let u=Kg(a,l);s.push(u),i=i.matchType(u.type),o=l}}),s)return le.from(s)}return n}function Kg(n,e,t=0){for(let r=e.length-1;r>=t;r--)n=e[r].create(null,le.from(n));return n}function jg(n,e,t,r,i){if(i<n.length&&i<e.length&&n[i]==e[i]){let o=jg(n,e,t,r.lastChild,i+1);if(o)return r.copy(r.content.replaceChild(r.childCount-1,o));if(r.contentMatchAt(r.childCount).matchType(i==n.length-1?t.type:n[i+1]))return r.copy(r.content.append(le.from(Kg(t,n,i+1))))}}function Qg(n,e){if(e==0)return n;let t=n.content.replaceChild(n.childCount-1,Qg(n.lastChild,e-1)),r=n.contentMatchAt(n.childCount).fillBefore(le.empty,!0);return n.copy(t.append(r))}function Wu(n,e,t,r,i,o){let s=e<0?n.firstChild:n.lastChild,a=s.content;return n.childCount>1&&(o=0),i<r-1&&(a=Wu(a,e,t,r,i+1,o)),i>=t&&(a=e<0?s.contentMatchAt(0).fillBefore(a,o<=i).append(a):a.append(s.contentMatchAt(s.childCount).fillBefore(le.empty,!0))),n.replaceChild(e<0?0:n.childCount-1,s.copy(a))}function Yg(n,e,t){return e<n.openStart&&(n=new ve(Wu(n.content,-1,e,n.openStart,0,n.openEnd),e,n.openEnd)),t<n.openEnd&&(n=new ve(Wu(n.content,1,t,n.openEnd,0,0),n.openStart,t)),n}const Zg={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let Xg=null;function Jg(){return Xg||(Xg=document.implementation.createHTMLDocument("title"))}let Ku=null;function I5(n){let e=window.trustedTypes;return e?(Ku||(Ku=e.defaultPolicy||e.createPolicy("ProseMirrorClipboard",{createHTML:t=>t})),Ku.createHTML(n)):n}function L5(n){let e=/^(\s*<meta [^>]*>)*/.exec(n);e&&(n=n.slice(e[0].length));let t=Jg().createElement("div"),r=/<([a-z][^>\s]+)/i.exec(n),i;if((i=r&&Zg[r[1].toLowerCase()])&&(n=i.map(o=>"<"+o+">").join("")+n+i.map(o=>"</"+o+">").reverse().join("")),t.innerHTML=I5(n),i)for(let o=0;o<i.length;o++)t=t.querySelector(i[o])||t;return t}function B5(n){let e=n.querySelectorAll(mn?"span:not([class]):not([style])":"span.Apple-converted-space");for(let t=0;t<e.length;t++){let r=e[t];r.childNodes.length==1&&r.textContent==" "&&r.parentNode&&r.parentNode.replaceChild(n.ownerDocument.createTextNode(" "),r)}}function P5(n,e){if(!n.size)return n;let t=n.content.firstChild.type.schema,r;try{r=JSON.parse(e)}catch{return n}let{content:i,openStart:o,openEnd:s}=n;for(let a=r.length-2;a>=0;a-=2){let l=t.nodes[r[a]];if(!l||l.hasRequiredAttrs())break;i=le.from(l.create(r[a+1],i)),o++,s++}return new ve(i,o,s)}const Sn={},En={},F5={touchstart:!0,touchmove:!0};class z5{constructor(){this.shiftKey=!1,this.mouseDown=null,this.lastKeyCode=null,this.lastKeyCodeTime=0,this.lastClick={time:0,x:0,y:0,type:"",button:0},this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastIOSEnter=0,this.lastIOSEnterFallbackTimeout=-1,this.lastFocus=0,this.lastTouch=0,this.lastChromeDelete=0,this.composing=!1,this.compositionNode=null,this.composingTimeout=-1,this.compositionNodes=[],this.compositionEndedAt=-2e8,this.compositionID=1,this.compositionPendingChanges=0,this.domChangeCount=0,this.eventHandlers=Object.create(null),this.hideSelectionGuard=null}}function q5(n){for(let e in Sn){let t=Sn[e];n.dom.addEventListener(e,n.input.eventHandlers[e]=r=>{V5(n,r)&&!Qu(n,r)&&(n.editable||!(r.type in En))&&t(n,r)},F5[e]?{passive:!0}:void 0)}kn&&n.dom.addEventListener("input",()=>null),ju(n)}function pi(n,e){n.input.lastSelectionOrigin=e,n.input.lastSelectionTime=Date.now()}function H5(n){n.domObserver.stop();for(let e in n.input.eventHandlers)n.dom.removeEventListener(e,n.input.eventHandlers[e]);clearTimeout(n.input.composingTimeout),clearTimeout(n.input.lastIOSEnterFallbackTimeout)}function ju(n){n.someProp("handleDOMEvents",e=>{for(let t in e)n.input.eventHandlers[t]||n.dom.addEventListener(t,n.input.eventHandlers[t]=r=>Qu(n,r))})}function Qu(n,e){return n.someProp("handleDOMEvents",t=>{let r=t[e.type];return r?r(n,e)||e.defaultPrevented:!1})}function V5(n,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let t=e.target;t!=n.dom;t=t.parentNode)if(!t||t.nodeType==11||t.pmViewDesc&&t.pmViewDesc.stopEvent(e))return!1;return!0}function U5(n,e){!Qu(n,e)&&Sn[e.type]&&(n.editable||!(e.type in En))&&Sn[e.type](n,e)}En.keydown=(n,e)=>{let t=e;if(n.input.shiftKey=t.keyCode==16||t.shiftKey,!t1(n,t)&&(n.input.lastKeyCode=t.keyCode,n.input.lastKeyCodeTime=Date.now(),!(qr&&mn&&t.keyCode==13)))if(t.keyCode!=229&&n.domObserver.forceFlush(),Do&&t.keyCode==13&&!t.ctrlKey&&!t.altKey&&!t.metaKey){let r=Date.now();n.input.lastIOSEnter=r,n.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{n.input.lastIOSEnter==r&&(n.someProp("handleKeyDown",i=>i(n,$i(13,"Enter"))),n.input.lastIOSEnter=0)},200)}else n.someProp("handleKeyDown",r=>r(n,t))||D5(n,t)?t.preventDefault():pi(n,"key")},En.keyup=(n,e)=>{e.keyCode==16&&(n.input.shiftKey=!1)},En.keypress=(n,e)=>{let t=e;if(t1(n,t)||!t.charCode||t.ctrlKey&&!t.altKey||Xn&&t.metaKey)return;if(n.someProp("handleKeyPress",i=>i(n,t))){t.preventDefault();return}let r=n.state.selection;if(!(r instanceof Ne)||!r.$from.sameParent(r.$to)){let i=String.fromCharCode(t.charCode),o=()=>n.state.tr.insertText(i).scrollIntoView();!/[\r\n]/.test(i)&&!n.someProp("handleTextInput",s=>s(n,r.$from.pos,r.$to.pos,i,o))&&n.dispatch(o()),t.preventDefault()}};function el(n){return{left:n.clientX,top:n.clientY}}function G5(n,e){let t=e.x-n.clientX,r=e.y-n.clientY;return t*t+r*r<100}function Yu(n,e,t,r,i){if(r==-1)return!1;let o=n.state.doc.resolve(r);for(let s=o.depth+1;s>0;s--)if(n.someProp(e,a=>s>o.depth?a(n,t,o.nodeAfter,o.before(s),i,!0):a(n,t,o.node(s),o.before(s),i,!1)))return!0;return!1}function Io(n,e,t){if(n.focused||n.focus(),n.state.selection.eq(e))return;let r=n.state.tr.setSelection(e);r.setMeta("pointer",!0),n.dispatch(r)}function $5(n,e){if(e==-1)return!1;let t=n.state.doc.resolve(e),r=t.nodeAfter;return r&&r.isAtom&&Oe.isSelectable(r)?(Io(n,new Oe(t)),!0):!1}function W5(n,e){if(e==-1)return!1;let t=n.state.selection,r,i;t instanceof Oe&&(r=t.node);let o=n.state.doc.resolve(e);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s);if(Oe.isSelectable(a)){r&&t.$from.depth>0&&s>=t.$from.depth&&o.before(t.$from.depth+1)==t.$from.pos?i=o.before(t.$from.depth):i=o.before(s);break}}return i!=null?(Io(n,Oe.create(n.state.doc,i)),!0):!1}function K5(n,e,t,r,i){return Yu(n,"handleClickOn",e,t,r)||n.someProp("handleClick",o=>o(n,e,r))||(i?W5(n,t):$5(n,t))}function j5(n,e,t,r){return Yu(n,"handleDoubleClickOn",e,t,r)||n.someProp("handleDoubleClick",i=>i(n,e,r))}function Q5(n,e,t,r){return Yu(n,"handleTripleClickOn",e,t,r)||n.someProp("handleTripleClick",i=>i(n,e,r))||Y5(n,t,r)}function Y5(n,e,t){if(t.button!=0)return!1;let r=n.state.doc;if(e==-1)return r.inlineContent?(Io(n,Ne.create(r,0,r.content.size)),!0):!1;let i=r.resolve(e);for(let o=i.depth+1;o>0;o--){let s=o>i.depth?i.nodeAfter:i.node(o),a=i.before(o);if(s.inlineContent)Io(n,Ne.create(r,a+1,a+1+s.content.size));else if(Oe.isSelectable(s))Io(n,Oe.create(r,a));else continue;return!0}}function Zu(n){return tl(n)}const e1=Xn?"metaKey":"ctrlKey";Sn.mousedown=(n,e)=>{let t=e;n.input.shiftKey=t.shiftKey;let r=Zu(n),i=Date.now(),o="singleClick";i-n.input.lastClick.time<500&&G5(t,n.input.lastClick)&&!t[e1]&&n.input.lastClick.button==t.button&&(n.input.lastClick.type=="singleClick"?o="doubleClick":n.input.lastClick.type=="doubleClick"&&(o="tripleClick")),n.input.lastClick={time:i,x:t.clientX,y:t.clientY,type:o,button:t.button};let s=n.posAtCoords(el(t));s&&(o=="singleClick"?(n.input.mouseDown&&n.input.mouseDown.done(),n.input.mouseDown=new Z5(n,s,t,!!r)):(o=="doubleClick"?j5:Q5)(n,s.pos,s.inside,t)?t.preventDefault():pi(n,"pointer"))};class Z5{constructor(e,t,r,i){this.view=e,this.pos=t,this.event=r,this.flushed=i,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[e1],this.allowDefault=r.shiftKey;let o,s;if(t.inside>-1)o=e.state.doc.nodeAt(t.inside),s=t.inside;else{let u=e.state.doc.resolve(t.pos);o=u.parent,s=u.depth?u.before():0}const a=i?null:r.target,l=a?e.docView.nearestDesc(a,!0):null;this.target=l&&l.dom.nodeType==1?l.dom:null;let{selection:c}=e.state;(r.button==0&&o.type.spec.draggable&&o.type.spec.selectable!==!1||c instanceof Oe&&c.from<=s&&c.to>s)&&(this.mightDrag={node:o,pos:s,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&dr&&!this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout(()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")},20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),pi(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout(()=>Vr(this.view)),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(el(e))),this.updateAllowDefault(e),this.allowDefault||!t?pi(this.view,"pointer"):K5(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():e.button==0&&(this.flushed||kn&&this.mightDrag&&!this.mightDrag.node.isAtom||mn&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Io(this.view,Fe.near(this.view.state.doc.resolve(t.pos))),e.preventDefault()):pi(this.view,"pointer")}move(e){this.updateAllowDefault(e),pi(this.view,"pointer"),e.buttons==0&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}Sn.touchstart=n=>{n.input.lastTouch=Date.now(),Zu(n),pi(n,"pointer")},Sn.touchmove=n=>{n.input.lastTouch=Date.now(),pi(n,"pointer")},Sn.contextmenu=n=>Zu(n);function t1(n,e){return n.composing?!0:kn&&Math.abs(e.timeStamp-n.input.compositionEndedAt)<500?(n.input.compositionEndedAt=-2e8,!0):!1}const X5=qr?5e3:-1;En.compositionstart=En.compositionupdate=n=>{if(!n.composing){n.domObserver.flush();let{state:e}=n,t=e.selection.$to;if(e.selection instanceof Ne&&(e.storedMarks||!t.textOffset&&t.parentOffset&&t.nodeBefore.marks.some(r=>r.type.spec.inclusive===!1)))n.markCursor=n.state.storedMarks||t.marks(),tl(n,!0),n.markCursor=null;else if(tl(n,!e.selection.empty),dr&&e.selection.empty&&t.parentOffset&&!t.textOffset&&t.nodeBefore.marks.length){let r=n.domSelectionRange();for(let i=r.focusNode,o=r.focusOffset;i&&i.nodeType==1&&o!=0;){let s=o<0?i.lastChild:i.childNodes[o-1];if(!s)break;if(s.nodeType==3){let a=n.domSelection();a&&a.collapse(s,s.nodeValue.length);break}else i=s,o=-1}}n.input.composing=!0}n1(n,X5)},En.compositionend=(n,e)=>{n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=e.timeStamp,n.input.compositionPendingChanges=n.domObserver.pendingRecords().length?n.input.compositionID:0,n.input.compositionNode=null,n.input.compositionPendingChanges&&Promise.resolve().then(()=>n.domObserver.flush()),n.input.compositionID++,n1(n,20))};function n1(n,e){clearTimeout(n.input.composingTimeout),e>-1&&(n.input.composingTimeout=setTimeout(()=>tl(n),e))}function r1(n){for(n.composing&&(n.input.composing=!1,n.input.compositionEndedAt=ex());n.input.compositionNodes.length>0;)n.input.compositionNodes.pop().markParentsDirty()}function J5(n){let e=n.domSelectionRange();if(!e.focusNode)return null;let t=$6(e.focusNode,e.focusOffset),r=W6(e.focusNode,e.focusOffset);if(t&&r&&t!=r){let i=r.pmViewDesc,o=n.domObserver.lastChangedTextNode;if(t==o||r==o)return o;if(!i||!i.isText(r.nodeValue))return r;if(n.input.compositionNode==r){let s=t.pmViewDesc;if(!(!s||!s.isText(t.nodeValue)))return r}}return t||r}function ex(){let n=document.createEvent("Event");return n.initEvent("event",!0,!0),n.timeStamp}function tl(n,e=!1){if(!(qr&&n.domObserver.flushingSoon>=0)){if(n.domObserver.forceFlush(),r1(n),e||n.docView&&n.docView.dirty){let t=qu(n),r=n.state.selection;return t&&!t.eq(r)?n.dispatch(n.state.tr.setSelection(t)):(n.markCursor||e)&&!r.$from.node(r.$from.sharedDepth(r.to)).inlineContent?n.dispatch(n.state.tr.deleteSelection()):n.updateState(n.state),!0}return!1}}function tx(n,e){if(!n.dom.parentNode)return;let t=n.dom.parentNode.appendChild(document.createElement("div"));t.appendChild(e),t.style.cssText="position: fixed; left: -10000px; top: 10px";let r=getSelection(),i=document.createRange();i.selectNodeContents(e),n.dom.blur(),r.removeAllRanges(),r.addRange(i),setTimeout(()=>{t.parentNode&&t.parentNode.removeChild(t),n.focus()},50)}const Ls=An&&ui<15||Do&&Z6<604;Sn.copy=En.cut=(n,e)=>{let t=e,r=n.state.selection,i=t.type=="cut";if(r.empty)return;let o=Ls?null:t.clipboardData,s=r.content(),{dom:a,text:l}=$u(n,s);o?(t.preventDefault(),o.clearData(),o.setData("text/html",a.innerHTML),o.setData("text/plain",l)):tx(n,a),i&&n.dispatch(n.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function nx(n){return n.openStart==0&&n.openEnd==0&&n.content.childCount==1?n.content.firstChild:null}function rx(n,e){if(!n.dom.parentNode)return;let t=n.input.shiftKey||n.state.selection.$from.parent.type.spec.code,r=n.dom.parentNode.appendChild(document.createElement(t?"textarea":"div"));t||(r.contentEditable="true"),r.style.cssText="position: fixed; left: -10000px; top: 10px",r.focus();let i=n.input.shiftKey&&n.input.lastKeyCode!=45;setTimeout(()=>{n.focus(),r.parentNode&&r.parentNode.removeChild(r),t?Bs(n,r.value,null,i,e):Bs(n,r.textContent,r.innerHTML,i,e)},50)}function Bs(n,e,t,r,i){let o=Wg(n,e,t,r,n.state.selection.$from);if(n.someProp("handlePaste",l=>l(n,i,o||ve.empty)))return!0;if(!o)return!1;let s=nx(o),a=s?n.state.tr.replaceSelectionWith(s,r):n.state.tr.replaceSelection(o);return n.dispatch(a.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function i1(n){let e=n.getData("text/plain")||n.getData("Text");if(e)return e;let t=n.getData("text/uri-list");return t?t.replace(/\r?\n/g," "):""}En.paste=(n,e)=>{let t=e;if(n.composing&&!qr)return;let r=Ls?null:t.clipboardData,i=n.input.shiftKey&&n.input.lastKeyCode!=45;r&&Bs(n,i1(r),r.getData("text/html"),i,t)?t.preventDefault():rx(n,t)};class o1{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const ix=Xn?"altKey":"ctrlKey";function s1(n,e){let t=n.someProp("dragCopies",r=>!r(e));return t??!e[ix]}Sn.dragstart=(n,e)=>{let t=e,r=n.input.mouseDown;if(r&&r.done(),!t.dataTransfer)return;let i=n.state.selection,o=i.empty?null:n.posAtCoords(el(t)),s;if(!(o&&o.pos>=i.from&&o.pos<=(i instanceof Oe?i.to-1:i.to))){if(r&&r.mightDrag)s=Oe.create(n.state.doc,r.mightDrag.pos);else if(t.target&&t.target.nodeType==1){let h=n.docView.nearestDesc(t.target,!0);h&&h.node.type.spec.draggable&&h!=n.docView&&(s=Oe.create(n.state.doc,h.posBefore))}}let a=(s||n.state.selection).content(),{dom:l,text:c,slice:u}=$u(n,a);(!t.dataTransfer.files.length||!mn||hg>120)&&t.dataTransfer.clearData(),t.dataTransfer.setData(Ls?"Text":"text/html",l.innerHTML),t.dataTransfer.effectAllowed="copyMove",Ls||t.dataTransfer.setData("text/plain",c),n.dragging=new o1(u,s1(n,t),s)},Sn.dragend=n=>{let e=n.dragging;window.setTimeout(()=>{n.dragging==e&&(n.dragging=null)},50)},En.dragover=En.dragenter=(n,e)=>e.preventDefault(),En.drop=(n,e)=>{let t=e,r=n.dragging;if(n.dragging=null,!t.dataTransfer)return;let i=n.posAtCoords(el(t));if(!i)return;let o=n.state.doc.resolve(i.pos),s=r&&r.slice;s?n.someProp("transformPasted",p=>{s=p(s,n)}):s=Wg(n,i1(t.dataTransfer),Ls?null:t.dataTransfer.getData("text/html"),!1,o);let a=!!(r&&s1(n,t));if(n.someProp("handleDrop",p=>p(n,t,s||ve.empty,a))){t.preventDefault();return}if(!s)return;t.preventDefault();let l=s?Qm(n.state.doc,o.pos,s):o.pos;l==null&&(l=o.pos);let c=n.state.tr;if(a){let{node:p}=r;p?p.replace(c):c.deleteSelection()}let u=c.mapping.map(l),h=s.openStart==0&&s.openEnd==0&&s.content.childCount==1,g=c.doc;if(h?c.replaceRangeWith(u,u,s.content.firstChild):c.replaceRange(u,u,s),c.doc.eq(g))return;let b=c.doc.resolve(u);if(h&&Oe.isSelectable(s.content.firstChild)&&b.nodeAfter&&b.nodeAfter.sameMarkup(s.content.firstChild))c.setSelection(new Oe(b));else{let p=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach((v,w,S,C)=>p=C),c.setSelection(Vu(n,b,c.doc.resolve(p)))}n.focus(),n.dispatch(c.setMeta("uiEvent","drop"))},Sn.focus=n=>{n.input.lastFocus=Date.now(),n.focused||(n.domObserver.stop(),n.dom.classList.add("ProseMirror-focused"),n.domObserver.start(),n.focused=!0,setTimeout(()=>{n.docView&&n.hasFocus()&&!n.domObserver.currentSelection.eq(n.domSelectionRange())&&Vr(n)},20))},Sn.blur=(n,e)=>{let t=e;n.focused&&(n.domObserver.stop(),n.dom.classList.remove("ProseMirror-focused"),n.domObserver.start(),t.relatedTarget&&n.dom.contains(t.relatedTarget)&&n.domObserver.currentSelection.clear(),n.focused=!1)},Sn.beforeinput=(n,e)=>{if(mn&&qr&&e.inputType=="deleteContentBackward"){n.domObserver.flushSoon();let{domChangeCount:r}=n.input;setTimeout(()=>{if(n.input.domChangeCount!=r||(n.dom.blur(),n.focus(),n.someProp("handleKeyDown",o=>o(n,$i(8,"Backspace")))))return;let{$cursor:i}=n.state.selection;i&&i.pos>0&&n.dispatch(n.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let n in En)Sn[n]=En[n];function Ps(n,e){if(n==e)return!0;for(let t in n)if(n[t]!==e[t])return!1;for(let t in e)if(!(t in n))return!1;return!0}class nl{constructor(e,t){this.toDOM=e,this.spec=t||Qi,this.side=this.spec.side||0}map(e,t,r,i){let{pos:o,deleted:s}=e.mapResult(t.from+i,this.side<0?-1:1);return s?null:new un(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof nl&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&Ps(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class mi{constructor(e,t){this.attrs=e,this.spec=t||Qi}map(e,t,r,i){let o=e.map(t.from+i,this.spec.inclusiveStart?-1:1)-r,s=e.map(t.to+i,this.spec.inclusiveEnd?1:-1)-r;return o>=s?null:new un(o,s,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof mi&&Ps(this.attrs,e.attrs)&&Ps(this.spec,e.spec)}static is(e){return e.type instanceof mi}destroy(){}}class Xu{constructor(e,t){this.attrs=e,this.spec=t||Qi}map(e,t,r,i){let o=e.mapResult(t.from+i,1);if(o.deleted)return null;let s=e.mapResult(t.to+i,-1);return s.deleted||s.pos<=o.pos?null:new un(o.pos-r,s.pos-r,this)}valid(e,t){let{index:r,offset:i}=e.content.findIndex(t.from),o;return i==t.from&&!(o=e.child(r)).isText&&i+o.nodeSize==t.to}eq(e){return this==e||e instanceof Xu&&Ps(this.attrs,e.attrs)&&Ps(this.spec,e.spec)}destroy(){}}class un{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new un(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new un(e,e,new nl(t,r))}static inline(e,t,r,i){return new un(e,t,new mi(r,i))}static node(e,t,r,i){return new un(e,t,new Xu(r,i))}get spec(){return this.type.spec}get inline(){return this.type instanceof mi}get widget(){return this.type instanceof nl}}const Lo=[],Qi={};class Bt{constructor(e,t){this.local=e.length?e:Lo,this.children=t.length?t:Lo}static create(e,t){return t.length?rl(t,e,0,Qi):gn}find(e,t,r){let i=[];return this.findInner(e??0,t??1e9,i,0,r),i}findInner(e,t,r,i,o){for(let s=0;s<this.local.length;s++){let a=this.local[s];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&r.push(a.copy(a.from+i,a.to+i))}for(let s=0;s<this.children.length;s+=3)if(this.children[s]<t&&this.children[s+1]>e){let a=this.children[s]+1;this.children[s+2].findInner(e-a,t-a,r,i+a,o)}}map(e,t,r){return this==gn||e.maps.length==0?this:this.mapInner(e,t,0,0,r||Qi)}mapInner(e,t,r,i,o){let s;for(let a=0;a<this.local.length;a++){let l=this.local[a].map(e,r,i);l&&l.type.valid(t,l)?(s||(s=[])).push(l):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?ox(this.children,s||[],e,t,r,i,o):s?new Bt(s.sort(Yi),Lo):gn}add(e,t){return t.length?this==gn?Bt.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let i,o=0;e.forEach((a,l)=>{let c=l+r,u;if(u=l1(t,a,c)){for(i||(i=this.children.slice());o<i.length&&i[o]<l;)o+=3;i[o]==l?i[o+2]=i[o+2].addInner(a,u,c+1):i.splice(o,0,l,l+a.nodeSize,rl(u,a,c+1,Qi)),o+=3}});let s=a1(o?c1(t):t,-r);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||s.splice(a--,1);return new Bt(s.length?this.local.concat(s).sort(Yi):this.local,i||this.children)}remove(e){return e.length==0||this==gn?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,i=this.local;for(let o=0;o<r.length;o+=3){let s,a=r[o]+t,l=r[o+1]+t;for(let u=0,h;u<e.length;u++)(h=e[u])&&h.from>a&&h.to<l&&(e[u]=null,(s||(s=[])).push(h));if(!s)continue;r==this.children&&(r=this.children.slice());let c=r[o+2].removeInner(s,a+1);c!=gn?r[o+2]=c:(r.splice(o,3),o-=3)}if(i.length){for(let o=0,s;o<e.length;o++)if(s=e[o])for(let a=0;a<i.length;a++)i[a].eq(s,t)&&(i==this.local&&(i=this.local.slice()),i.splice(a--,1))}return r==this.children&&i==this.local?this:i.length||r.length?new Bt(i,r):gn}forChild(e,t){if(this==gn)return this;if(t.isLeaf)return Bt.empty;let r,i;for(let a=0;a<this.children.length;a+=3)if(this.children[a]>=e){this.children[a]==e&&(r=this.children[a+2]);break}let o=e+1,s=o+t.content.size;for(let a=0;a<this.local.length;a++){let l=this.local[a];if(l.from<s&&l.to>o&&l.type instanceof mi){let c=Math.max(o,l.from)-o,u=Math.min(s,l.to)-o;c<u&&(i||(i=[])).push(l.copy(c,u))}}if(i){let a=new Bt(i.sort(Yi),Lo);return r?new gi([a,r]):a}return r||gn}eq(e){if(this==e)return!0;if(!(e instanceof Bt)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Ju(this.localsInner(e))}localsInner(e){if(this==gn)return Lo;if(e.inlineContent||!this.local.some(mi.is))return this.local;let t=[];for(let r=0;r<this.local.length;r++)this.local[r].type instanceof mi||t.push(this.local[r]);return t}forEachSet(e){e(this)}}Bt.empty=new Bt([],[]),Bt.removeOverlap=Ju;const gn=Bt.empty;class gi{constructor(e){this.members=e}map(e,t){const r=this.members.map(i=>i.map(e,t,Qi));return gi.from(r)}forChild(e,t){if(t.isLeaf)return Bt.empty;let r=[];for(let i=0;i<this.members.length;i++){let o=this.members[i].forChild(e,t);o!=gn&&(o instanceof gi?r=r.concat(o.members):r.push(o))}return gi.from(r)}eq(e){if(!(e instanceof gi)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let i=0;i<this.members.length;i++){let o=this.members[i].localsInner(e);if(o.length)if(!t)t=o;else{r&&(t=t.slice(),r=!1);for(let s=0;s<o.length;s++)t.push(o[s])}}return t?Ju(r?t:t.sort(Yi)):Lo}static from(e){switch(e.length){case 0:return gn;case 1:return e[0];default:return new gi(e.every(t=>t instanceof Bt)?e:e.reduce((t,r)=>t.concat(r instanceof Bt?r:r.members),[]))}}forEachSet(e){for(let t=0;t<this.members.length;t++)this.members[t].forEachSet(e)}}function ox(n,e,t,r,i,o,s){let a=n.slice();for(let c=0,u=o;c<t.maps.length;c++){let h=0;t.maps[c].forEach((g,b,p,v)=>{let w=v-p-(b-g);for(let S=0;S<a.length;S+=3){let C=a[S+1];if(C<0||g>C+u-h)continue;let E=a[S]+u-h;b>=E?a[S+1]=g<=E?-2:-1:g>=u&&w&&(a[S]+=w,a[S+1]+=w)}h+=w}),u=t.maps[c].map(u,-1)}let l=!1;for(let c=0;c<a.length;c+=3)if(a[c+1]<0){if(a[c+1]==-2){l=!0,a[c+1]=-1;continue}let u=t.map(n[c]+o),h=u-i;if(h<0||h>=r.content.size){l=!0;continue}let g=t.map(n[c+1]+o,-1),b=g-i,{index:p,offset:v}=r.content.findIndex(h),w=r.maybeChild(p);if(w&&v==h&&v+w.nodeSize==b){let S=a[c+2].mapInner(t,w,u+1,n[c]+o+1,s);S!=gn?(a[c]=h,a[c+1]=b,a[c+2]=S):(a[c+1]=-2,l=!0)}else l=!0}if(l){let c=sx(a,n,e,t,i,o,s),u=rl(c,r,0,s);e=u.local;for(let h=0;h<a.length;h+=3)a[h+1]<0&&(a.splice(h,3),h-=3);for(let h=0,g=0;h<u.children.length;h+=3){let b=u.children[h];for(;g<a.length&&a[g]<b;)g+=3;a.splice(g,0,u.children[h],u.children[h+1],u.children[h+2])}}return new Bt(e.sort(Yi),a)}function a1(n,e){if(!e||!n.length)return n;let t=[];for(let r=0;r<n.length;r++){let i=n[r];t.push(new un(i.from+e,i.to+e,i.type))}return t}function sx(n,e,t,r,i,o,s){function a(l,c){for(let u=0;u<l.local.length;u++){let h=l.local[u].map(r,i,c);h?t.push(h):s.onRemove&&s.onRemove(l.local[u].spec)}for(let u=0;u<l.children.length;u+=3)a(l.children[u+2],l.children[u]+c+1)}for(let l=0;l<n.length;l+=3)n[l+1]==-1&&a(n[l+2],e[l]+o+1);return t}function l1(n,e,t){if(e.isLeaf)return null;let r=t+e.nodeSize,i=null;for(let o=0,s;o<n.length;o++)(s=n[o])&&s.from>t&&s.to<r&&((i||(i=[])).push(s),n[o]=null);return i}function c1(n){let e=[];for(let t=0;t<n.length;t++)n[t]!=null&&e.push(n[t]);return e}function rl(n,e,t,r){let i=[],o=!1;e.forEach((a,l)=>{let c=l1(n,a,l+t);if(c){o=!0;let u=rl(c,a,t+l+1,r);u!=gn&&i.push(l,l+a.nodeSize,u)}});let s=a1(o?c1(n):n,-t).sort(Yi);for(let a=0;a<s.length;a++)s[a].type.valid(e,s[a])||(r.onRemove&&r.onRemove(s[a].spec),s.splice(a--,1));return s.length||i.length?new Bt(s,i):gn}function Yi(n,e){return n.from-e.from||n.to-e.to}function Ju(n){let e=n;for(let t=0;t<e.length-1;t++){let r=e[t];if(r.from!=r.to)for(let i=t+1;i<e.length;i++){let o=e[i];if(o.from==r.from){o.to!=r.to&&(e==n&&(e=n.slice()),e[i]=o.copy(o.from,r.to),u1(e,i+1,o.copy(r.to,o.to)));continue}else{o.from<r.to&&(e==n&&(e=n.slice()),e[t]=r.copy(r.from,o.from),u1(e,i,r.copy(o.from,r.to)));break}}}return e}function u1(n,e,t){for(;e<n.length&&Yi(t,n[e])>0;)e++;n.splice(e,0,t)}function e0(n){let e=[];return n.someProp("decorations",t=>{let r=t(n.state);r&&r!=gn&&e.push(r)}),n.cursorWrapper&&e.push(Bt.create(n.state.doc,[n.cursorWrapper.deco])),gi.from(e)}const ax={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},lx=An&&ui<=11;class cx{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(e){this.anchorNode=e.anchorNode,this.anchorOffset=e.anchorOffset,this.focusNode=e.focusNode,this.focusOffset=e.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(e){return e.anchorNode==this.anchorNode&&e.anchorOffset==this.anchorOffset&&e.focusNode==this.focusNode&&e.focusOffset==this.focusOffset}}class ux{constructor(e,t){this.view=e,this.handleDOMChange=t,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new cx,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(r=>{for(let i=0;i<r.length;i++)this.queue.push(r[i]);An&&ui<=11&&r.some(i=>i.type=="childList"&&i.removedNodes.length||i.type=="characterData"&&i.oldValue.length>i.target.nodeValue.length)?this.flushSoon():this.flush()}),lx&&(this.onCharData=r=>{this.queue.push({target:r.target,type:"characterData",oldValue:r.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this)}flushSoon(){this.flushingSoon<0&&(this.flushingSoon=window.setTimeout(()=>{this.flushingSoon=-1,this.flush()},20))}forceFlush(){this.flushingSoon>-1&&(window.clearTimeout(this.flushingSoon),this.flushingSoon=-1,this.flush())}start(){this.observer&&(this.observer.takeRecords(),this.observer.observe(this.view.dom,ax)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let e=this.observer.takeRecords();if(e.length){for(let t=0;t<e.length;t++)this.queue.push(e[t]);window.setTimeout(()=>this.flush(),20)}this.observer.disconnect()}this.onCharData&&this.view.dom.removeEventListener("DOMCharacterDataModified",this.onCharData),this.disconnectSelection()}connectSelection(){this.view.dom.ownerDocument.addEventListener("selectionchange",this.onSelectionChange)}disconnectSelection(){this.view.dom.ownerDocument.removeEventListener("selectionchange",this.onSelectionChange)}suppressSelectionUpdates(){this.suppressingSelectionUpdates=!0,setTimeout(()=>this.suppressingSelectionUpdates=!1,50)}onSelectionChange(){if(Fg(this.view)){if(this.suppressingSelectionUpdates)return Vr(this.view);if(An&&ui<=11&&!this.view.state.selection.empty){let e=this.view.domSelectionRange();if(e.focusNode&&Gi(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(e){if(!e.focusNode)return!0;let t=new Set,r;for(let o=e.focusNode;o;o=No(o))t.add(o);for(let o=e.anchorNode;o;o=No(o))if(t.has(o)){r=o;break}let i=r&&this.view.docView.nearestDesc(r);if(i&&i.ignoreMutation({type:"selection",target:r.nodeType==3?r.parentNode:r}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}flush(){let{view:e}=this;if(!e.docView||this.flushingSoon>-1)return;let t=this.pendingRecords();t.length&&(this.queue=[]);let r=e.domSelectionRange(),i=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(r)&&Fg(e)&&!this.ignoreSelectionChange(r),o=-1,s=-1,a=!1,l=[];if(e.editable)for(let u=0;u<t.length;u++){let h=this.registerMutation(t[u],l);h&&(o=o<0?h.from:Math.min(h.from,o),s=s<0?h.to:Math.max(h.to,s),h.typeOver&&(a=!0))}if(dr&&l.length){let u=l.filter(h=>h.nodeName=="BR");if(u.length==2){let[h,g]=u;h.parentNode&&h.parentNode.parentNode==g.parentNode?g.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let g of u){let b=g.parentNode;b&&b.nodeName=="LI"&&(!h||fx(e,h)!=b)&&g.remove()}}}let c=null;o<0&&i&&e.input.lastFocus>Date.now()-200&&Math.max(e.input.lastTouch,e.input.lastClick.time)<Date.now()-300&&Ya(r)&&(c=qu(e))&&c.eq(Fe.near(e.state.doc.resolve(0),1))?(e.input.lastFocus=0,Vr(e),this.currentSelection.set(r),e.scrollToSelection()):(o>-1||i)&&(o>-1&&(e.docView.markDirty(o,s),dx(e)),this.handleDOMChange(o,s,a,l),e.docView&&e.docView.dirty?e.updateState(e.state):this.currentSelection.eq(r)||Vr(e),this.currentSelection.set(r))}registerMutation(e,t){if(t.indexOf(e.target)>-1)return null;let r=this.view.docView.nearestDesc(e.target);if(e.type=="attributes"&&(r==this.view.docView||e.attributeName=="contenteditable"||e.attributeName=="style"&&!e.oldValue&&!e.target.getAttribute("style"))||!r||r.ignoreMutation(e))return null;if(e.type=="childList"){for(let u=0;u<e.addedNodes.length;u++){let h=e.addedNodes[u];t.push(h),h.nodeType==3&&(this.lastChangedTextNode=h)}if(r.contentDOM&&r.contentDOM!=r.dom&&!r.contentDOM.contains(e.target))return{from:r.posBefore,to:r.posAfter};let i=e.previousSibling,o=e.nextSibling;if(An&&ui<=11&&e.addedNodes.length)for(let u=0;u<e.addedNodes.length;u++){let{previousSibling:h,nextSibling:g}=e.addedNodes[u];(!h||Array.prototype.indexOf.call(e.addedNodes,h)<0)&&(i=h),(!g||Array.prototype.indexOf.call(e.addedNodes,g)<0)&&(o=g)}let s=i&&i.parentNode==e.target?cn(i)+1:0,a=r.localPosFromDOM(e.target,s,-1),l=o&&o.parentNode==e.target?cn(o):e.target.childNodes.length,c=r.localPosFromDOM(e.target,l,1);return{from:a,to:c}}else return e.type=="attributes"?{from:r.posAtStart-r.border,to:r.posAtEnd+r.border}:(this.lastChangedTextNode=e.target,{from:r.posAtStart,to:r.posAtEnd,typeOver:e.target.nodeValue==e.oldValue})}}let d1=new WeakMap,h1=!1;function dx(n){if(!d1.has(n)&&(d1.set(n,null),["normal","nowrap","pre-line"].indexOf(getComputedStyle(n.dom).whiteSpace)!==-1)){if(n.requiresGeckoHackNode=dr,h1)return;console.warn("ProseMirror expects the CSS white-space property to be set, preferably to 'pre-wrap'. It is recommended to load style/prosemirror.css from the prosemirror-view package."),h1=!0}}function f1(n,e){let t=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,s=n.domAtPos(n.state.selection.anchor);return Gi(s.node,s.offset,i,o)&&([t,r,i,o]=[i,o,t,r]),{anchorNode:t,anchorOffset:r,focusNode:i,focusOffset:o}}function hx(n,e){if(e.getComposedRanges){let i=e.getComposedRanges(n.root)[0];if(i)return f1(n,i)}let t;function r(i){i.preventDefault(),i.stopImmediatePropagation(),t=i.getTargetRanges()[0]}return n.dom.addEventListener("beforeinput",r,!0),document.execCommand("indent"),n.dom.removeEventListener("beforeinput",r,!0),t?f1(n,t):null}function fx(n,e){for(let t=e.parentNode;t&&t!=n.dom;t=t.parentNode){let r=n.docView.nearestDesc(t,!0);if(r&&r.node.isBlock)return t}return null}function px(n,e,t){let{node:r,fromOffset:i,toOffset:o,from:s,to:a}=n.docView.parseRange(e,t),l=n.domSelectionRange(),c,u=l.anchorNode;if(u&&n.dom.contains(u.nodeType==1?u:u.parentNode)&&(c=[{node:u,offset:l.anchorOffset}],Ya(l)||c.push({node:l.focusNode,offset:l.focusOffset})),mn&&n.input.lastKeyCode===8)for(let w=o;w>i;w--){let S=r.childNodes[w-1],C=S.pmViewDesc;if(S.nodeName=="BR"&&!C){o=w;break}if(!C||C.size)break}let h=n.state.doc,g=n.someProp("domParser")||qi.fromSchema(n.state.schema),b=h.resolve(s),p=null,v=g.parse(r,{topNode:b.parent,topMatch:b.parent.contentMatchAt(b.index()),topOpen:!0,from:i,to:o,preserveWhitespace:b.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:mx,context:b});if(c&&c[0].pos!=null){let w=c[0].pos,S=c[1]&&c[1].pos;S==null&&(S=w),p={anchor:w+s,head:S+s}}return{doc:v,sel:p,from:s,to:a}}function mx(n){let e=n.pmViewDesc;if(e)return e.parseRule();if(n.nodeName=="BR"&&n.parentNode){if(kn&&/^(ul|ol)$/i.test(n.parentNode.nodeName)){let t=document.createElement("div");return t.appendChild(document.createElement("li")),{skip:t}}else if(n.parentNode.lastChild==n||kn&&/^(tr|table)$/i.test(n.parentNode.nodeName))return{ignore:!0}}else if(n.nodeName=="IMG"&&n.getAttribute("mark-placeholder"))return{ignore:!0};return null}const gx=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function bx(n,e,t,r,i){let o=n.input.compositionPendingChanges||(n.composing?n.input.compositionID:0);if(n.input.compositionPendingChanges=0,e<0){let q=n.input.lastSelectionTime>Date.now()-50?n.input.lastSelectionOrigin:null,U=qu(n,q);if(U&&!n.state.selection.eq(U)){if(mn&&qr&&n.input.lastKeyCode===13&&Date.now()-100<n.input.lastKeyCodeTime&&n.someProp("handleKeyDown",Y=>Y(n,$i(13,"Enter"))))return;let F=n.state.tr.setSelection(U);q=="pointer"?F.setMeta("pointer",!0):q=="key"&&F.scrollIntoView(),o&&F.setMeta("composition",o),n.dispatch(F)}return}let s=n.state.doc.resolve(e),a=s.sharedDepth(t);e=s.before(a+1),t=n.state.doc.resolve(t).after(a+1);let l=n.state.selection,c=px(n,e,t),u=n.state.doc,h=u.slice(c.from,c.to),g,b;n.input.lastKeyCode===8&&Date.now()-100<n.input.lastKeyCodeTime?(g=n.state.selection.to,b="end"):(g=n.state.selection.from,b="start"),n.input.lastKeyCode=null;let p=vx(h.content,c.doc.content,c.from,g,b);if(p&&n.input.domChangeCount++,(Do&&n.input.lastIOSEnter>Date.now()-225||qr)&&i.some(q=>q.nodeType==1&&!gx.test(q.nodeName))&&(!p||p.endA>=p.endB)&&n.someProp("handleKeyDown",q=>q(n,$i(13,"Enter")))){n.input.lastIOSEnter=0;return}if(!p)if(r&&l instanceof Ne&&!l.empty&&l.$head.sameParent(l.$anchor)&&!n.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))p={start:l.from,endA:l.to,endB:l.to};else{if(c.sel){let q=p1(n,n.state.doc,c.sel);if(q&&!q.eq(n.state.selection)){let U=n.state.tr.setSelection(q);o&&U.setMeta("composition",o),n.dispatch(U)}}return}n.state.selection.from<n.state.selection.to&&p.start==p.endB&&n.state.selection instanceof Ne&&(p.start>n.state.selection.from&&p.start<=n.state.selection.from+2&&n.state.selection.from>=c.from?p.start=n.state.selection.from:p.endA<n.state.selection.to&&p.endA>=n.state.selection.to-2&&n.state.selection.to<=c.to&&(p.endB+=n.state.selection.to-p.endA,p.endA=n.state.selection.to)),An&&ui<=11&&p.endB==p.start+1&&p.endA==p.start&&p.start>c.from&&c.doc.textBetween(p.start-c.from-1,p.start-c.from+1)=="  "&&(p.start--,p.endA--,p.endB--);let v=c.doc.resolveNoCache(p.start-c.from),w=c.doc.resolveNoCache(p.endB-c.from),S=u.resolve(p.start),C=v.sameParent(w)&&v.parent.inlineContent&&S.end()>=p.endA,E;if((Do&&n.input.lastIOSEnter>Date.now()-225&&(!C||i.some(q=>q.nodeName=="DIV"||q.nodeName=="P"))||!C&&v.pos<c.doc.content.size&&(!v.sameParent(w)||!v.parent.inlineContent)&&!/\S/.test(c.doc.textBetween(v.pos,w.pos,"",""))&&(E=Fe.findFrom(c.doc.resolve(v.pos+1),1,!0))&&E.head>v.pos)&&n.someProp("handleKeyDown",q=>q(n,$i(13,"Enter")))){n.input.lastIOSEnter=0;return}if(n.state.selection.anchor>p.start&&yx(u,p.start,p.endA,v,w)&&n.someProp("handleKeyDown",q=>q(n,$i(8,"Backspace")))){qr&&mn&&n.domObserver.suppressSelectionUpdates();return}mn&&p.endB==p.start&&(n.input.lastChromeDelete=Date.now()),qr&&!C&&v.start()!=w.start()&&w.parentOffset==0&&v.depth==w.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==p.endA&&(p.endB-=2,w=c.doc.resolveNoCache(p.endB-c.from),setTimeout(()=>{n.someProp("handleKeyDown",function(q){return q(n,$i(13,"Enter"))})},20));let A=p.start,R=p.endA,O=q=>{let U=q||n.state.tr.replace(A,R,c.doc.slice(p.start-c.from,p.endB-c.from));if(c.sel){let F=p1(n,U.doc,c.sel);F&&!(mn&&n.composing&&F.empty&&(p.start!=p.endB||n.input.lastChromeDelete<Date.now()-100)&&(F.head==A||F.head==U.mapping.map(R)-1)||An&&F.empty&&F.head==A)&&U.setSelection(F)}return o&&U.setMeta("composition",o),U.scrollIntoView()},H;if(C){if(v.pos==w.pos){An&&ui<=11&&v.parentOffset==0&&(n.domObserver.suppressSelectionUpdates(),setTimeout(()=>Vr(n),20));let q=O(n.state.tr.delete(A,R)),U=u.resolve(p.start).marksAcross(u.resolve(p.endA));U&&q.ensureMarks(U),n.dispatch(q)}else if(p.endA==p.endB&&(H=_x(v.parent.content.cut(v.parentOffset,w.parentOffset),S.parent.content.cut(S.parentOffset,p.endA-S.start())))){let q=O(n.state.tr);H.type=="add"?q.addMark(A,R,H.mark):q.removeMark(A,R,H.mark),n.dispatch(q)}else if(v.parent.child(v.index()).isText&&v.index()==w.index()-(w.textOffset?0:1)){let q=v.parent.textBetween(v.parentOffset,w.parentOffset),U=()=>O(n.state.tr.insertText(q,A,R));n.someProp("handleTextInput",F=>F(n,A,R,q,U))||n.dispatch(U())}}else n.dispatch(O())}function p1(n,e,t){return Math.max(t.anchor,t.head)>e.content.size?null:Vu(n,e.resolve(t.anchor),e.resolve(t.head))}function _x(n,e){let t=n.firstChild.marks,r=e.firstChild.marks,i=t,o=r,s,a,l;for(let u=0;u<r.length;u++)i=r[u].removeFromSet(i);for(let u=0;u<t.length;u++)o=t[u].removeFromSet(o);if(i.length==1&&o.length==0)a=i[0],s="add",l=u=>u.mark(a.addToSet(u.marks));else if(i.length==0&&o.length==1)a=o[0],s="remove",l=u=>u.mark(a.removeFromSet(u.marks));else return null;let c=[];for(let u=0;u<e.childCount;u++)c.push(l(e.child(u)));if(le.from(c).eq(n))return{mark:a,type:s}}function yx(n,e,t,r,i){if(t-e<=i.pos-r.pos||t0(r,!0,!1)<i.pos)return!1;let o=n.resolve(e);if(!r.parent.isTextblock){let a=o.nodeAfter;return a!=null&&t==e+a.nodeSize}if(o.parentOffset<o.parent.content.size||!o.parent.isTextblock)return!1;let s=n.resolve(t0(o,!0,!0));return!s.parent.isTextblock||s.pos>t||t0(s,!0,!1)<t?!1:r.parent.content.cut(r.parentOffset).eq(s.parent.content)}function t0(n,e,t){let r=n.depth,i=e?n.end():n.pos;for(;r>0&&(e||n.indexAfter(r)==n.node(r).childCount);)r--,i++,e=!1;if(t){let o=n.node(r).maybeChild(n.indexAfter(r));for(;o&&!o.isLeaf;)o=o.firstChild,i++}return i}function vx(n,e,t,r,i){let o=n.findDiffStart(e,t);if(o==null)return null;let{a:s,b:a}=n.findDiffEnd(e,t+n.size,t+e.size);if(i=="end"){let l=Math.max(0,o-Math.min(s,a));r-=s+l-o}if(s<o&&n.size<e.size){let l=r<=o&&r>=s?o-r:0;o-=l,o&&o<e.size&&m1(e.textBetween(o-1,o+1))&&(o+=l?1:-1),a=o+(a-s),s=o}else if(a<o){let l=r<=o&&r>=a?o-r:0;o-=l,o&&o<n.size&&m1(n.textBetween(o-1,o+1))&&(o+=l?1:-1),s=o+(s-a),a=o}return{start:o,endA:s,endB:a}}function m1(n){if(n.length!=2)return!1;let e=n.charCodeAt(0),t=n.charCodeAt(1);return e>=56320&&e<=57343&&t>=55296&&t<=56319}class g1{constructor(e,t){this._root=null,this.focused=!1,this.trackWrites=null,this.mounted=!1,this.markCursor=null,this.cursorWrapper=null,this.lastSelectedViewDesc=void 0,this.input=new z5,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=t,this.state=t.state,this.directPlugins=t.plugins||[],this.directPlugins.forEach(w1),this.dispatch=this.dispatch.bind(this),this.dom=e&&e.mount||document.createElement("div"),e&&(e.appendChild?e.appendChild(this.dom):typeof e=="function"?e(this.dom):e.mount&&(this.mounted=!0)),this.editable=y1(this),_1(this),this.nodeViews=v1(this),this.docView=Cg(this.state.doc,b1(this),e0(this),this.dom,this),this.domObserver=new ux(this,(r,i,o,s)=>bx(this,r,i,o,s)),this.domObserver.start(),q5(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let e=this._props;this._props={};for(let t in e)this._props[t]=e[t];this._props.state=this.state}return this._props}update(e){e.handleDOMEvents!=this._props.handleDOMEvents&&ju(this);let t=this._props;this._props=e,e.plugins&&(e.plugins.forEach(w1),this.directPlugins=e.plugins),this.updateStateInner(e.state,t)}setProps(e){let t={};for(let r in this._props)t[r]=this._props[r];t.state=this.state;for(let r in e)t[r]=e[r];this.update(t)}updateState(e){this.updateStateInner(e,this._props)}updateStateInner(e,t){var r;let i=this.state,o=!1,s=!1;e.storedMarks&&this.composing&&(r1(this),s=!0),this.state=e;let a=i.plugins!=e.plugins||this._props.plugins!=t.plugins;if(a||this._props.plugins!=t.plugins||this._props.nodeViews!=t.nodeViews){let b=v1(this);xx(b,this.nodeViews)&&(this.nodeViews=b,o=!0)}(a||t.handleDOMEvents!=this._props.handleDOMEvents)&&ju(this),this.editable=y1(this),_1(this);let l=e0(this),c=b1(this),u=i.plugins!=e.plugins&&!i.doc.eq(e.doc)?"reset":e.scrollToSelection>i.scrollToSelection?"to selection":"preserve",h=o||!this.docView.matchesNode(e.doc,c,l);(h||!e.selection.eq(i.selection))&&(s=!0);let g=u=="preserve"&&s&&this.dom.style.overflowAnchor==null&&e5(this);if(s){this.domObserver.stop();let b=h&&(An||mn)&&!this.composing&&!i.selection.empty&&!e.selection.empty&&wx(i.selection,e.selection);if(h){let p=mn?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=J5(this)),(o||!this.docView.update(e.doc,c,l,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=Cg(e.doc,c,l,this.dom,this)),p&&!this.trackWrites&&(b=!0)}b||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&S5(this))?Vr(this,b):(Bg(this,e.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(i),!((r=this.dragging)===null||r===void 0)&&r.node&&!i.doc.eq(e.doc)&&this.updateDraggedNode(this.dragging,i),u=="reset"?this.dom.scrollTop=0:u=="to selection"?this.scrollToSelection():g&&t5(g)}scrollToSelection(){let e=this.domSelectionRange().focusNode;if(!(!e||!this.dom.contains(e.nodeType==1?e:e.parentNode))){if(!this.someProp("handleScrollToSelection",t=>t(this)))if(this.state.selection instanceof Oe){let t=this.docView.domAfterPos(this.state.selection.from);t.nodeType==1&&fg(this,t.getBoundingClientRect(),e)}else fg(this,this.coordsAtPos(this.state.selection.head,1),e)}}destroyPluginViews(){let e;for(;e=this.pluginViews.pop();)e.destroy&&e.destroy()}updatePluginViews(e){if(!e||e.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let t=0;t<this.directPlugins.length;t++){let r=this.directPlugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}for(let t=0;t<this.state.plugins.length;t++){let r=this.state.plugins[t];r.spec.view&&this.pluginViews.push(r.spec.view(this))}}else for(let t=0;t<this.pluginViews.length;t++){let r=this.pluginViews[t];r.update&&r.update(this,e)}}updateDraggedNode(e,t){let r=e.node,i=-1;if(this.state.doc.nodeAt(r.from)==r.node)i=r.from;else{let o=r.from+(this.state.doc.content.size-t.doc.content.size);(o>0&&this.state.doc.nodeAt(o))==r.node&&(i=o)}this.dragging=new o1(e.slice,e.move,i<0?void 0:Oe.create(this.state.doc,i))}someProp(e,t){let r=this._props&&this._props[e],i;if(r!=null&&(i=t?t(r):r))return i;for(let s=0;s<this.directPlugins.length;s++){let a=this.directPlugins[s].props[e];if(a!=null&&(i=t?t(a):a))return i}let o=this.state.plugins;if(o)for(let s=0;s<o.length;s++){let a=o[s].props[e];if(a!=null&&(i=t?t(a):a))return i}}hasFocus(){if(An){let e=this.root.activeElement;if(e==this.dom)return!0;if(!e||!this.dom.contains(e))return!1;for(;e&&this.dom!=e&&this.dom.contains(e);){if(e.contentEditable=="false")return!1;e=e.parentElement}return!0}return this.root.activeElement==this.dom}focus(){this.domObserver.stop(),this.editable&&n5(this.dom),Vr(this),this.domObserver.start()}get root(){let e=this._root;if(e==null){for(let t=this.dom.parentNode;t;t=t.parentNode)if(t.nodeType==9||t.nodeType==11&&t.host)return t.getSelection||(Object.getPrototypeOf(t).getSelection=()=>t.ownerDocument.getSelection()),this._root=t}return e||document}updateRoot(){this._root=null}posAtCoords(e){return a5(this,e)}coordsAtPos(e,t=1){return yg(this,e,t)}domAtPos(e,t=0){return this.docView.domFromPos(e,t)}nodeDOM(e){let t=this.docView.descAt(e);return t?t.nodeDOM:null}posAtDOM(e,t,r=-1){let i=this.docView.posFromDOM(e,t,r);if(i==null)throw new RangeError("DOM position not inside the editor");return i}endOfTextblock(e,t){return h5(this,t||this.state,e)}pasteHTML(e,t){return Bs(this,"",e,!1,t||new ClipboardEvent("paste"))}pasteText(e,t){return Bs(this,e,null,!0,t||new ClipboardEvent("paste"))}serializeForClipboard(e){return $u(this,e)}destroy(){this.docView&&(H5(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],e0(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,U6())}get isDestroyed(){return this.docView==null}dispatchEvent(e){return U5(this,e)}domSelectionRange(){let e=this.domSelection();return e?kn&&this.root.nodeType===11&&j6(this.dom.ownerDocument)==this.dom&&hx(this,e)||e:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}g1.prototype.dispatch=function(n){let e=this._props.dispatchTransaction;e?e.call(this,n):this.updateState(this.state.apply(n))};function b1(n){let e=Object.create(null);return e.class="ProseMirror",e.contenteditable=String(n.editable),n.someProp("attributes",t=>{if(typeof t=="function"&&(t=t(n.state)),t)for(let r in t)r=="class"?e.class+=" "+t[r]:r=="style"?e.style=(e.style?e.style+";":"")+t[r]:!e[r]&&r!="contenteditable"&&r!="nodeName"&&(e[r]=String(t[r]))}),e.translate||(e.translate="no"),[un.node(0,n.state.doc.content.size,e)]}function _1(n){if(n.markCursor){let e=document.createElement("img");e.className="ProseMirror-separator",e.setAttribute("mark-placeholder","true"),e.setAttribute("alt",""),n.cursorWrapper={dom:e,deco:un.widget(n.state.selection.from,e,{raw:!0,marks:n.markCursor})}}else n.cursorWrapper=null}function y1(n){return!n.someProp("editable",e=>e(n.state)===!1)}function wx(n,e){let t=Math.min(n.$anchor.sharedDepth(n.head),e.$anchor.sharedDepth(e.head));return n.$anchor.start(t)!=e.$anchor.start(t)}function v1(n){let e=Object.create(null);function t(r){for(let i in r)Object.prototype.hasOwnProperty.call(e,i)||(e[i]=r[i])}return n.someProp("nodeViews",t),n.someProp("markViews",t),e}function xx(n,e){let t=0,r=0;for(let i in n){if(n[i]!=e[i])return!0;t++}for(let i in e)r++;return t!=r}function w1(n){if(n.spec.state||n.spec.filterTransaction||n.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var bi={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:"'"},il={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},kx=typeof navigator<"u"&&/Mac/.test(navigator.platform),Sx=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),dn=0;dn<10;dn++)bi[48+dn]=bi[96+dn]=String(dn);for(var dn=1;dn<=24;dn++)bi[dn+111]="F"+dn;for(var dn=65;dn<=90;dn++)bi[dn]=String.fromCharCode(dn+32),il[dn]=String.fromCharCode(dn);for(var n0 in bi)il.hasOwnProperty(n0)||(il[n0]=bi[n0]);function Ex(n){var e=kx&&n.metaKey&&n.shiftKey&&!n.ctrlKey&&!n.altKey||Sx&&n.shiftKey&&n.key&&n.key.length==1||n.key=="Unidentified",t=!e&&n.key||(n.shiftKey?il:bi)[n.keyCode]||n.key||"Unidentified";return t=="Esc"&&(t="Escape"),t=="Del"&&(t="Delete"),t=="Left"&&(t="ArrowLeft"),t=="Up"&&(t="ArrowUp"),t=="Right"&&(t="ArrowRight"),t=="Down"&&(t="ArrowDown"),t}const Cx=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),Tx=typeof navigator<"u"&&/Win/.test(navigator.platform);function Ax(n){let e=n.split(/-(?!$)/),t=e[e.length-1];t=="Space"&&(t=" ");let r,i,o,s;for(let a=0;a<e.length-1;a++){let l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))Cx?s=!0:i=!0;else throw new Error("Unrecognized modifier name: "+l)}return r&&(t="Alt-"+t),i&&(t="Ctrl-"+t),s&&(t="Meta-"+t),o&&(t="Shift-"+t),t}function Mx(n){let e=Object.create(null);for(let t in n)e[Ax(t)]=n[t];return e}function r0(n,e,t=!0){return e.altKey&&(n="Alt-"+n),e.ctrlKey&&(n="Ctrl-"+n),e.metaKey&&(n="Meta-"+n),t&&e.shiftKey&&(n="Shift-"+n),n}function Nx(n){return new _t({props:{handleKeyDown:i0(n)}})}function i0(n){let e=Mx(n);return function(t,r){let i=Ex(r),o,s=e[r0(i,r)];if(s&&s(t.state,t.dispatch,t))return!0;if(i.length==1&&i!=" "){if(r.shiftKey){let a=e[r0(i,r,!1)];if(a&&a(t.state,t.dispatch,t))return!0}if((r.altKey||r.metaKey||r.ctrlKey)&&!(Tx&&r.ctrlKey&&r.altKey)&&(o=bi[r.keyCode])&&o!=i){let a=e[r0(o,r)];if(a&&a(t.state,t.dispatch,t))return!0}}return!1}}const ol=(n,e)=>n.selection.empty?!1:(e&&e(n.tr.deleteSelection().scrollIntoView()),!0);function x1(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("backward",n):t.parentOffset>0)?null:t}const o0=(n,e,t)=>{let r=x1(n,t);if(!r)return!1;let i=a0(r);if(!i){let s=r.blockRange(),a=s&&Ui(s);return a==null?!1:(e&&e(n.tr.lift(s,a).scrollIntoView()),!0)}let o=i.nodeBefore;if(R1(n,i,e,-1))return!0;if(r.parent.content.size==0&&(Bo(o,"end")||Oe.isSelectable(o)))for(let s=r.depth;;s--){let a=Ka(n.doc,r.before(s),r.after(s),ve.empty);if(a&&a.slice.size<a.to-a.from){if(e){let l=n.tr.step(a);l.setSelection(Bo(o,"end")?Fe.findFrom(l.doc.resolve(l.mapping.map(i.pos,-1)),-1):Oe.create(l.doc,i.pos-o.nodeSize)),e(l.scrollIntoView())}return!0}if(s==1||r.node(s-1).childCount>1)break}return o.isAtom&&i.depth==r.depth-1?(e&&e(n.tr.delete(i.pos-o.nodeSize,i.pos).scrollIntoView()),!0):!1},k1=(n,e,t)=>{let r=x1(n,t);if(!r)return!1;let i=a0(r);return i?E1(n,i,e):!1},S1=(n,e,t)=>{let r=C1(n,t);if(!r)return!1;let i=u0(r);return i?E1(n,i,e):!1};function E1(n,e,t){let r=e.nodeBefore,i=r,o=e.pos-1;for(;!i.isTextblock;o--){if(i.type.spec.isolating)return!1;let u=i.lastChild;if(!u)return!1;i=u}let s=e.nodeAfter,a=s,l=e.pos+1;for(;!a.isTextblock;l++){if(a.type.spec.isolating)return!1;let u=a.firstChild;if(!u)return!1;a=u}let c=Ka(n.doc,o,l,ve.empty);if(!c||c.from!=o||c instanceof en&&c.slice.size>=l-o)return!1;if(t){let u=n.tr.step(c);u.setSelection(Ne.create(u.doc,o)),t(u.scrollIntoView())}return!0}function Bo(n,e,t=!1){for(let r=n;r;r=e=="start"?r.firstChild:r.lastChild){if(r.isTextblock)return!0;if(t&&r.childCount!=1)return!1}return!1}const s0=(n,e,t)=>{let{$head:r,empty:i}=n.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("backward",n):r.parentOffset>0)return!1;o=a0(r)}let s=o&&o.nodeBefore;return!s||!Oe.isSelectable(s)?!1:(e&&e(n.tr.setSelection(Oe.create(n.doc,o.pos-s.nodeSize)).scrollIntoView()),!0)};function a0(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){if(n.index(e)>0)return n.doc.resolve(n.before(e+1));if(n.node(e).type.spec.isolating)break}return null}function C1(n,e){let{$cursor:t}=n.selection;return!t||(e?!e.endOfTextblock("forward",n):t.parentOffset<t.parent.content.size)?null:t}const l0=(n,e,t)=>{let r=C1(n,t);if(!r)return!1;let i=u0(r);if(!i)return!1;let o=i.nodeAfter;if(R1(n,i,e,1))return!0;if(r.parent.content.size==0&&(Bo(o,"start")||Oe.isSelectable(o))){let s=Ka(n.doc,r.before(),r.after(),ve.empty);if(s&&s.slice.size<s.to-s.from){if(e){let a=n.tr.step(s);a.setSelection(Bo(o,"start")?Fe.findFrom(a.doc.resolve(a.mapping.map(i.pos)),1):Oe.create(a.doc,a.mapping.map(i.pos))),e(a.scrollIntoView())}return!0}}return o.isAtom&&i.depth==r.depth-1?(e&&e(n.tr.delete(i.pos,i.pos+o.nodeSize).scrollIntoView()),!0):!1},c0=(n,e,t)=>{let{$head:r,empty:i}=n.selection,o=r;if(!i)return!1;if(r.parent.isTextblock){if(t?!t.endOfTextblock("forward",n):r.parentOffset<r.parent.content.size)return!1;o=u0(r)}let s=o&&o.nodeAfter;return!s||!Oe.isSelectable(s)?!1:(e&&e(n.tr.setSelection(Oe.create(n.doc,o.pos)).scrollIntoView()),!0)};function u0(n){if(!n.parent.type.spec.isolating)for(let e=n.depth-1;e>=0;e--){let t=n.node(e);if(n.index(e)+1<t.childCount)return n.doc.resolve(n.after(e+1));if(t.type.spec.isolating)break}return null}const T1=(n,e)=>{let t=n.selection,r=t instanceof Oe,i;if(r){if(t.node.isTextblock||!ur(n.doc,t.from))return!1;i=t.from}else if(i=Eo(n.doc,t.from,-1),i==null)return!1;if(e){let o=n.tr.join(i);r&&o.setSelection(Oe.create(o.doc,i-n.doc.resolve(i).nodeBefore.nodeSize)),e(o.scrollIntoView())}return!0},A1=(n,e)=>{let t=n.selection,r;if(t instanceof Oe){if(t.node.isTextblock||!ur(n.doc,t.to))return!1;r=t.to}else if(r=Eo(n.doc,t.to,1),r==null)return!1;return e&&e(n.tr.join(r).scrollIntoView()),!0},M1=(n,e)=>{let{$from:t,$to:r}=n.selection,i=t.blockRange(r),o=i&&Ui(i);return o==null?!1:(e&&e(n.tr.lift(i,o).scrollIntoView()),!0)},d0=(n,e)=>{let{$head:t,$anchor:r}=n.selection;return!t.parent.type.spec.code||!t.sameParent(r)?!1:(e&&e(n.tr.insertText(`
10
+ `).scrollIntoView()),!0)};function h0(n){for(let e=0;e<n.edgeCount;e++){let{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}const N1=(n,e)=>{let{$head:t,$anchor:r}=n.selection;if(!t.parent.type.spec.code||!t.sameParent(r))return!1;let i=t.node(-1),o=t.indexAfter(-1),s=h0(i.contentMatchAt(o));if(!s||!i.canReplaceWith(o,o,s))return!1;if(e){let a=t.after(),l=n.tr.replaceWith(a,a,s.createAndFill());l.setSelection(Fe.near(l.doc.resolve(a),1)),e(l.scrollIntoView())}return!0},f0=(n,e)=>{let t=n.selection,{$from:r,$to:i}=t;if(t instanceof qn||r.parent.inlineContent||i.parent.inlineContent)return!1;let o=h0(i.parent.contentMatchAt(i.indexAfter()));if(!o||!o.isTextblock)return!1;if(e){let s=(!r.parentOffset&&i.index()<i.parent.childCount?r:i).pos,a=n.tr.insert(s,o.createAndFill());a.setSelection(Ne.create(a.doc,s+1)),e(a.scrollIntoView())}return!0},p0=(n,e)=>{let{$cursor:t}=n.selection;if(!t||t.parent.content.size)return!1;if(t.depth>1&&t.after()!=t.end(-1)){let o=t.before();if(zn(n.doc,o))return e&&e(n.tr.split(o).scrollIntoView()),!0}let r=t.blockRange(),i=r&&Ui(r);return i==null?!1:(e&&e(n.tr.lift(r,i).scrollIntoView()),!0)};function Dx(n){return(e,t)=>{let{$from:r,$to:i}=e.selection;if(e.selection instanceof Oe&&e.selection.node.isBlock)return!r.parentOffset||!zn(e.doc,r.pos)?!1:(t&&t(e.tr.split(r.pos).scrollIntoView()),!0);if(!r.depth)return!1;let o=[],s,a,l=!1,c=!1;for(let b=r.depth;;b--)if(r.node(b).isBlock){l=r.end(b)==r.pos+(r.depth-b),c=r.start(b)==r.pos-(r.depth-b),a=h0(r.node(b-1).contentMatchAt(r.indexAfter(b-1))),o.unshift(l&&a?{type:a}:null),s=b;break}else{if(b==1)return!1;o.unshift(null)}let u=e.tr;(e.selection instanceof Ne||e.selection instanceof qn)&&u.deleteSelection();let h=u.mapping.map(r.pos),g=zn(u.doc,h,o.length,o);if(g||(o[0]=a?{type:a}:null,g=zn(u.doc,h,o.length,o)),!g)return!1;if(u.split(h,o.length,o),!l&&c&&r.node(s).type!=a){let b=u.mapping.map(r.before(s)),p=u.doc.resolve(b);a&&r.node(s-1).canReplaceWith(p.index(),p.index()+1,a)&&u.setNodeMarkup(u.mapping.map(r.before(s)),a)}return t&&t(u.scrollIntoView()),!0}}const Rx=Dx(),D1=(n,e)=>{let{$from:t,to:r}=n.selection,i,o=t.sharedDepth(r);return o==0?!1:(i=t.before(o),e&&e(n.tr.setSelection(Oe.create(n.doc,i))),!0)};function Ox(n,e,t){let r=e.nodeBefore,i=e.nodeAfter,o=e.index();return!r||!i||!r.type.compatibleContent(i.type)?!1:!r.content.size&&e.parent.canReplace(o-1,o)?(t&&t(n.tr.delete(e.pos-r.nodeSize,e.pos).scrollIntoView()),!0):!e.parent.canReplace(o,o+1)||!(i.isTextblock||ur(n.doc,e.pos))?!1:(t&&t(n.tr.join(e.pos).scrollIntoView()),!0)}function R1(n,e,t,r){let i=e.nodeBefore,o=e.nodeAfter,s,a,l=i.type.spec.isolating||o.type.spec.isolating;if(!l&&Ox(n,e,t))return!0;let c=!l&&e.parent.canReplace(e.index(),e.index()+1);if(c&&(s=(a=i.contentMatchAt(i.childCount)).findWrapping(o.type))&&a.matchType(s[0]||o.type).validEnd){if(t){let b=e.pos+o.nodeSize,p=le.empty;for(let S=s.length-1;S>=0;S--)p=le.from(s[S].create(null,p));p=le.from(i.copy(p));let v=n.tr.step(new tn(e.pos-1,b,e.pos,b,new ve(p,1,0),s.length,!0)),w=v.doc.resolve(b+2*s.length);w.nodeAfter&&w.nodeAfter.type==i.type&&ur(v.doc,w.pos)&&v.join(w.pos),t(v.scrollIntoView())}return!0}let u=o.type.spec.isolating||r>0&&l?null:Fe.findFrom(e,1),h=u&&u.$from.blockRange(u.$to),g=h&&Ui(h);if(g!=null&&g>=e.depth)return t&&t(n.tr.lift(h,g).scrollIntoView()),!0;if(c&&Bo(o,"start",!0)&&Bo(i,"end")){let b=i,p=[];for(;p.push(b),!b.isTextblock;)b=b.lastChild;let v=o,w=1;for(;!v.isTextblock;v=v.firstChild)w++;if(b.canReplace(b.childCount,b.childCount,v.content)){if(t){let S=le.empty;for(let E=p.length-1;E>=0;E--)S=le.from(p[E].copy(S));let C=n.tr.step(new tn(e.pos-p.length,e.pos+o.nodeSize,e.pos+w,e.pos+o.nodeSize-w,new ve(S,p.length,0),0,!0));t(C.scrollIntoView())}return!0}}return!1}function O1(n){return function(e,t){let r=e.selection,i=n<0?r.$from:r.$to,o=i.depth;for(;i.node(o).isInline;){if(!o)return!1;o--}return i.node(o).isTextblock?(t&&t(e.tr.setSelection(Ne.create(e.doc,n<0?i.start(o):i.end(o)))),!0):!1}}const I1=O1(-1),L1=O1(1);function B1(n,e=null){return function(t,r){let{$from:i,$to:o}=t.selection,s=i.blockRange(o),a=s&&Wa(s,n,e);return a?(r&&r(t.tr.wrap(s,a).scrollIntoView()),!0):!1}}function sl(n,e=null){return function(t,r){let i=!1;for(let o=0;o<t.selection.ranges.length&&!i;o++){let{$from:{pos:s},$to:{pos:a}}=t.selection.ranges[o];t.doc.nodesBetween(s,a,(l,c)=>{if(i)return!1;if(!(!l.isTextblock||l.hasMarkup(n,e)))if(l.type==n)i=!0;else{let u=t.doc.resolve(c),h=u.index();i=u.parent.canReplaceWith(h,h+1,n)}})}if(!i)return!1;if(r){let o=t.tr;for(let s=0;s<t.selection.ranges.length;s++){let{$from:{pos:a},$to:{pos:l}}=t.selection.ranges[s];o.setBlockType(a,l,n,e)}r(o.scrollIntoView())}return!0}}function m0(...n){return function(e,t,r){for(let i=0;i<n.length;i++)if(n[i](e,t,r))return!0;return!1}}m0(ol,o0,s0),m0(ol,l0,c0),m0(d0,f0,p0,Rx),typeof navigator<"u"?/Mac|iP(hone|[oa]d)/.test(navigator.platform):typeof os<"u"&&os.platform&&os.platform()=="darwin";function P1(n,e=null){return function(t,r){let{$from:i,$to:o}=t.selection,s=i.blockRange(o);if(!s)return!1;let a=r?t.tr:null;return Ix(a,s,n,e)?(r&&r(a.scrollIntoView()),!0):!1}}function Ix(n,e,t,r=null){let i=!1,o=e,s=e.$from.doc;if(e.depth>=2&&e.$from.node(e.depth-1).type.compatibleContent(t)&&e.startIndex==0){if(e.$from.index(e.depth-1)==0)return!1;let l=s.resolve(e.start-2);o=new qa(l,l,e.depth),e.endIndex<e.parent.childCount&&(e=new qa(e.$from,s.resolve(e.$to.end(e.depth)),e.depth)),i=!0}let a=Wa(o,t,r,e);return a?(n&&Lx(n,e,a,i,t),!0):!1}function Lx(n,e,t,r,i){let o=le.empty;for(let u=t.length-1;u>=0;u--)o=le.from(t[u].type.create(t[u].attrs,o));n.step(new tn(e.start-(r?2:0),e.end,e.start,e.end,new ve(o,0,0),t.length,!0));let s=0;for(let u=0;u<t.length;u++)t[u].type==i&&(s=u+1);let a=t.length-s,l=e.start+t.length-(r?2:0),c=e.parent;for(let u=e.startIndex,h=e.endIndex,g=!0;u<h;u++,g=!1)!g&&zn(n.doc,l,a)&&(n.split(l,a),l+=2*a),l+=c.child(u).nodeSize;return n}function F1(n){return function(e,t){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,s=>s.childCount>0&&s.firstChild.type==n);return o?t?r.node(o.depth-1).type==n?Bx(e,t,n,o):Px(e,t,o):!0:!1}}function Bx(n,e,t,r){let i=n.tr,o=r.end,s=r.$to.end(r.depth);o<s&&(i.step(new tn(o-1,s,o,s,new ve(le.from(t.create(null,r.parent.copy())),1,0),1,!0)),r=new qa(i.doc.resolve(r.$from.pos),i.doc.resolve(s),r.depth));const a=Ui(r);if(a==null)return!1;i.lift(r,a);let l=i.doc.resolve(i.mapping.map(o,-1)-1);return ur(i.doc,l.pos)&&l.nodeBefore.type==l.nodeAfter.type&&i.join(l.pos),e(i.scrollIntoView()),!0}function Px(n,e,t){let r=n.tr,i=t.parent;for(let b=t.end,p=t.endIndex-1,v=t.startIndex;p>v;p--)b-=i.child(p).nodeSize,r.delete(b-1,b+1);let o=r.doc.resolve(t.start),s=o.nodeAfter;if(r.mapping.map(t.end)!=t.start+o.nodeAfter.nodeSize)return!1;let a=t.startIndex==0,l=t.endIndex==i.childCount,c=o.node(-1),u=o.index(-1);if(!c.canReplace(u+(a?0:1),u+1,s.content.append(l?le.empty:le.from(i))))return!1;let h=o.pos,g=h+s.nodeSize;return r.step(new tn(h-(a?1:0),g+(l?1:0),h+1,g-1,new ve((a?le.empty:le.from(i.copy(le.empty))).append(l?le.empty:le.from(i.copy(le.empty))),a?0:1,l?0:1),a?0:1)),e(r.scrollIntoView()),!0}function z1(n){return function(e,t){let{$from:r,$to:i}=e.selection,o=r.blockRange(i,c=>c.childCount>0&&c.firstChild.type==n);if(!o)return!1;let s=o.startIndex;if(s==0)return!1;let a=o.parent,l=a.child(s-1);if(l.type!=n)return!1;if(t){let c=l.lastChild&&l.lastChild.type==a.type,u=le.from(c?n.create():null),h=new ve(le.from(n.create(null,le.from(a.type.create(null,u)))),c?3:1,0),g=o.start,b=o.end;t(e.tr.step(new tn(g-(c?3:1),b,g,b,h,1,!0)).scrollIntoView())}return!0}}function al(n){const{state:e,transaction:t}=n;let{selection:r}=t,{doc:i}=t,{storedMarks:o}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=t.selection,i=t.doc,o=t.storedMarks,t}}}let ll=class{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:r}=this,{view:i}=t,{tr:o}=r,s=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const h=l(...u)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),h}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:i,state:o}=this,{view:s}=i,a=[],l=!!e,c=e||o.tr,u=()=>(!l&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(g=>g===!0)),h={...Object.fromEntries(Object.entries(r).map(([g,b])=>[g,(...v)=>{const w=this.buildProps(c,t),S=b(...v)(w);return a.push(S),h}])),run:u};return h}createCan(e){const{rawCommands:t,state:r}=this,i=!1,o=e||r.tr,s=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(t).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(e,t=!0){const{rawCommands:r,editor:i,state:o}=this,{view:s}=i,a={tr:e,editor:i,view:s,state:al({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}};class Fx{constructor(){this.callbacks={}}on(e,t){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(t),this}emit(e,...t){const r=this.callbacks[e];return r&&r.forEach(i=>i.apply(this,t)),this}off(e,t){const r=this.callbacks[e];return r&&(t?this.callbacks[e]=r.filter(i=>i!==t):delete this.callbacks[e]),this}removeAllListeners(){this.callbacks={}}}function Re(n,e,t){return n.config[e]===void 0&&n.parent?Re(n.parent,e,t):typeof n.config[e]=="function"?n.config[e].bind({...t,parent:n.parent?Re(n.parent,e,t):null}):n.config[e]}function cl(n){const e=n.filter(i=>i.type==="extension"),t=n.filter(i=>i.type==="node"),r=n.filter(i=>i.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:r}}function q1(n){const e=[],{nodeExtensions:t,markExtensions:r}=cl(n),i=[...t,...r],o={default:null,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return n.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=Re(s,"addGlobalAttributes",a);if(!l)return;l().forEach(u=>{u.types.forEach(h=>{Object.entries(u.attributes).forEach(([g,b])=>{e.push({type:h,name:g,attribute:{...o,...b}})})})})}),i.forEach(s=>{const a={name:s.name,options:s.options,storage:s.storage},l=Re(s,"addAttributes",a);if(!l)return;const c=l();Object.entries(c).forEach(([u,h])=>{const g={...o,...h};typeof(g==null?void 0:g.default)=="function"&&(g.default=g.default()),g!=null&&g.isRequired&&(g==null?void 0:g.default)===void 0&&delete g.default,e.push({type:s.name,name:u,attribute:g})})}),e}function on(n,e){if(typeof n=="string"){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function jt(...n){return n.filter(e=>!!e).reduce((e,t)=>{const r={...e};return Object.entries(t).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const a=o?o.split(" "):[],l=r[i]?r[i].split(" "):[],c=a.filter(u=>!l.includes(u));r[i]=[...l,...c].join(" ")}else i==="style"?r[i]=[r[i],o].join("; "):r[i]=o}),r},{})}function g0(n,e){return e.filter(t=>t.attribute.rendered).map(t=>t.attribute.renderHTML?t.attribute.renderHTML(n.attrs)||{}:{[t.name]:n.attrs[t.name]}).reduce((t,r)=>jt(t,r),{})}function H1(n){return typeof n=="function"}function et(n,e=void 0,...t){return H1(n)?e?n.bind(e)(...t):n(...t):n}function zx(n={}){return Object.keys(n).length===0&&n.constructor===Object}function qx(n){return typeof n!="string"?n:n.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(n):n==="true"?!0:n==="false"?!1:n}function V1(n,e){return n.style?n:{...n,getAttrs:t=>{const r=n.getAttrs?n.getAttrs(t):n.attrs;if(r===!1)return!1;const i=e.reduce((o,s)=>{const a=s.attribute.parseHTML?s.attribute.parseHTML(t):qx(t.getAttribute(s.name));return a==null?o:{...o,[s.name]:a}},{});return{...r,...i}}}}function U1(n){return Object.fromEntries(Object.entries(n).filter(([e,t])=>e==="attrs"&&zx(t)?!1:t!=null))}function G1(n,e){var t;const r=q1(n),{nodeExtensions:i,markExtensions:o}=cl(n),s=(t=i.find(c=>Re(c,"topNode")))===null||t===void 0?void 0:t.name,a=Object.fromEntries(i.map(c=>{const u=r.filter(S=>S.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:e},g=n.reduce((S,C)=>{const E=Re(C,"extendNodeSchema",h);return{...S,...E?E(c):{}}},{}),b=U1({...g,content:et(Re(c,"content",h)),marks:et(Re(c,"marks",h)),group:et(Re(c,"group",h)),inline:et(Re(c,"inline",h)),atom:et(Re(c,"atom",h)),selectable:et(Re(c,"selectable",h)),draggable:et(Re(c,"draggable",h)),code:et(Re(c,"code",h)),defining:et(Re(c,"defining",h)),isolating:et(Re(c,"isolating",h)),attrs:Object.fromEntries(u.map(S=>{var C;return[S.name,{default:(C=S==null?void 0:S.attribute)===null||C===void 0?void 0:C.default}]}))}),p=et(Re(c,"parseHTML",h));p&&(b.parseDOM=p.map(S=>V1(S,u)));const v=Re(c,"renderHTML",h);v&&(b.toDOM=S=>v({node:S,HTMLAttributes:g0(S,u)}));const w=Re(c,"renderText",h);return w&&(b.toText=w),[c.name,b]})),l=Object.fromEntries(o.map(c=>{const u=r.filter(w=>w.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:e},g=n.reduce((w,S)=>{const C=Re(S,"extendMarkSchema",h);return{...w,...C?C(c):{}}},{}),b=U1({...g,inclusive:et(Re(c,"inclusive",h)),excludes:et(Re(c,"excludes",h)),group:et(Re(c,"group",h)),spanning:et(Re(c,"spanning",h)),code:et(Re(c,"code",h)),attrs:Object.fromEntries(u.map(w=>{var S;return[w.name,{default:(S=w==null?void 0:w.attribute)===null||S===void 0?void 0:S.default}]}))}),p=et(Re(c,"parseHTML",h));p&&(b.parseDOM=p.map(w=>V1(w,u)));const v=Re(c,"renderHTML",h);return v&&(b.toDOM=w=>v({mark:w,HTMLAttributes:g0(w,u)})),[c.name,b]}));return new Mm({topNode:s,nodes:a,marks:l})}function b0(n,e){return e.nodes[n]||e.marks[n]||null}function $1(n,e){return Array.isArray(e)?e.some(t=>(typeof t=="string"?t:t.name)===n.name):e}const Hx=(n,e=500)=>{let t="";const r=n.parentOffset;return n.parent.nodesBetween(Math.max(0,r-e),r,(i,o,s,a)=>{var l,c;const u=((c=(l=i.type.spec).toText)===null||c===void 0?void 0:c.call(l,{node:i,pos:o,parent:s,index:a}))||i.textContent||"%leaf%";t+=u.slice(0,Math.max(0,r-o))}),t};function _0(n){return Object.prototype.toString.call(n)==="[object RegExp]"}let ul=class{constructor(e){this.find=e.find,this.handler=e.handler}};const Vx=(n,e)=>{if(_0(e))return e.exec(n);const t=e(n);if(!t)return null;const r=[t.text];return r.index=t.index,r.input=n,r.data=t.data,t.replaceWith&&(t.text.includes(t.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),r.push(t.replaceWith)),r};function dl(n){var e;const{editor:t,from:r,to:i,text:o,rules:s,plugin:a}=n,{view:l}=t;if(l.composing)return!1;const c=l.state.doc.resolve(r);if(c.parent.type.spec.code||!((e=c.nodeBefore||c.nodeAfter)===null||e===void 0)&&e.marks.find(g=>g.type.spec.code))return!1;let u=!1;const h=Hx(c)+o;return s.forEach(g=>{if(u)return;const b=Vx(h,g.find);if(!b)return;const p=l.state.tr,v=al({state:l.state,transaction:p}),w={from:r-(b[0].length-o.length),to:i},{commands:S,chain:C,can:E}=new ll({editor:t,state:v});g.handler({state:v,range:w,match:b,commands:S,chain:C,can:E})===null||!p.steps.length||(p.setMeta(a,{transform:p,from:r,to:i,text:o}),l.dispatch(p),u=!0)}),u}function Ux(n){const{editor:e,rules:t}=n,r=new _t({state:{init(){return null},apply(i,o){const s=i.getMeta(r);if(s)return s;const a=i.getMeta("applyInputRules");return!!a&&setTimeout(()=>{const{from:c,text:u}=a,h=c+u.length;dl({editor:e,from:c,to:h,text:u,rules:t,plugin:r})}),i.selectionSet||i.docChanged?null:o}},props:{handleTextInput(i,o,s,a){return dl({editor:e,from:o,to:s,text:a,rules:t,plugin:r})},handleDOMEvents:{compositionend:i=>(setTimeout(()=>{const{$cursor:o}=i.state.selection;o&&dl({editor:e,from:o.pos,to:o.pos,text:"",rules:t,plugin:r})}),!1)},handleKeyDown(i,o){if(o.key!=="Enter")return!1;const{$cursor:s}=i.state.selection;return s?dl({editor:e,from:s.pos,to:s.pos,text:`
11
+ `,rules:t,plugin:r}):!1}},isInputRules:!0});return r}function Gx(n){return typeof n=="number"}let W1=class{constructor(e){this.find=e.find,this.handler=e.handler}};const $x=(n,e,t)=>{if(_0(e))return[...n.matchAll(e)];const r=e(n,t);return r?r.map(i=>{const o=[i.text];return o.index=i.index,o.input=n,o.data=i.data,i.replaceWith&&(i.text.includes(i.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),o.push(i.replaceWith)),o}):[]};function Wx(n){const{editor:e,state:t,from:r,to:i,rule:o,pasteEvent:s,dropEvent:a}=n,{commands:l,chain:c,can:u}=new ll({editor:e,state:t}),h=[];return t.doc.nodesBetween(r,i,(b,p)=>{if(!b.isTextblock||b.type.spec.code)return;const v=Math.max(r,p),w=Math.min(i,p+b.content.size),S=b.textBetween(v-p,w-p,void 0,"");$x(S,o.find,s).forEach(E=>{if(E.index===void 0)return;const A=v+E.index+1,R=A+E[0].length,O={from:t.tr.mapping.map(A),to:t.tr.mapping.map(R)},H=o.handler({state:t,range:O,match:E,commands:l,chain:c,can:u,pasteEvent:s,dropEvent:a});h.push(H)})}),h.every(b=>b!==null)}const Kx=n=>{var e;const t=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(e=t.clipboardData)===null||e===void 0||e.setData("text/html",n),t};function jx(n){const{editor:e,rules:t}=n;let r=null,i=!1,o=!1,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,a=typeof DragEvent<"u"?new DragEvent("drop"):null;const l=({state:u,from:h,to:g,rule:b,pasteEvt:p})=>{const v=u.tr,w=al({state:u,transaction:v});if(!(!Wx({editor:e,state:w,from:Math.max(h-1,0),to:g.b-1,rule:b,pasteEvent:p,dropEvent:a})||!v.steps.length))return a=typeof DragEvent<"u"?new DragEvent("drop"):null,s=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,v};return t.map(u=>new _t({view(h){const g=b=>{var p;r=!((p=h.dom.parentElement)===null||p===void 0)&&p.contains(b.target)?h.dom.parentElement:null};return window.addEventListener("dragstart",g),{destroy(){window.removeEventListener("dragstart",g)}}},props:{handleDOMEvents:{drop:(h,g)=>(o=r===h.dom.parentElement,a=g,!1),paste:(h,g)=>{var b;const p=(b=g.clipboardData)===null||b===void 0?void 0:b.getData("text/html");return s=g,i=!!(p!=null&&p.includes("data-pm-slice")),!1}}},appendTransaction:(h,g,b)=>{const p=h[0],v=p.getMeta("uiEvent")==="paste"&&!i,w=p.getMeta("uiEvent")==="drop"&&!o,S=p.getMeta("applyPasteRules"),C=!!S;if(!v&&!w&&!C)return;if(C){const{from:R,text:O}=S,H=R+O.length,q=Kx(O);return l({rule:u,state:b,from:R,to:{b:H},pasteEvt:q})}const E=g.doc.content.findDiffStart(b.doc.content),A=g.doc.content.findDiffEnd(b.doc.content);if(!(!Gx(E)||!A||E===A.b))return l({rule:u,state:b,from:E,to:A,pasteEvt:s})}}))}function Qx(n){const e=n.filter((t,r)=>n.indexOf(t)!==r);return[...new Set(e)]}class Zi{constructor(e,t){this.splittableMarks=[],this.editor=t,this.extensions=Zi.resolve(e),this.schema=G1(this.extensions,t),this.extensions.forEach(r=>{var i;this.editor.extensionStorage[r.name]=r.storage;const o={name:r.name,options:r.options,storage:r.storage,editor:this.editor,type:b0(r.name,this.schema)};r.type==="mark"&&(!((i=et(Re(r,"keepOnSplit",o)))!==null&&i!==void 0)||i)&&this.splittableMarks.push(r.name);const s=Re(r,"onBeforeCreate",o);s&&this.editor.on("beforeCreate",s);const a=Re(r,"onCreate",o);a&&this.editor.on("create",a);const l=Re(r,"onUpdate",o);l&&this.editor.on("update",l);const c=Re(r,"onSelectionUpdate",o);c&&this.editor.on("selectionUpdate",c);const u=Re(r,"onTransaction",o);u&&this.editor.on("transaction",u);const h=Re(r,"onFocus",o);h&&this.editor.on("focus",h);const g=Re(r,"onBlur",o);g&&this.editor.on("blur",g);const b=Re(r,"onDestroy",o);b&&this.editor.on("destroy",b)})}static resolve(e){const t=Zi.sort(Zi.flatten(e)),r=Qx(t.map(i=>i.name));return r.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${r.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),t}static flatten(e){return e.map(t=>{const r={name:t.name,options:t.options,storage:t.storage},i=Re(t,"addExtensions",r);return i?[t,...this.flatten(i())]:t}).flat(10)}static sort(e){return e.sort((r,i)=>{const o=Re(r,"priority")||100,s=Re(i,"priority")||100;return o>s?-1:o<s?1:0})}get commands(){return this.extensions.reduce((e,t)=>{const r={name:t.name,options:t.options,storage:t.storage,editor:this.editor,type:b0(t.name,this.schema)},i=Re(t,"addCommands",r);return i?{...e,...i()}:e},{})}get plugins(){const{editor:e}=this,t=Zi.sort([...this.extensions].reverse()),r=[],i=[],o=t.map(s=>{const a={name:s.name,options:s.options,storage:s.storage,editor:e,type:b0(s.name,this.schema)},l=[],c=Re(s,"addKeyboardShortcuts",a);let u={};if(s.type==="mark"&&s.config.exitable&&(u.ArrowRight=()=>Ji.handleExit({editor:e,mark:s})),c){const v=Object.fromEntries(Object.entries(c()).map(([w,S])=>[w,()=>S({editor:e})]));u={...u,...v}}const h=Nx(u);l.push(h);const g=Re(s,"addInputRules",a);$1(s,e.options.enableInputRules)&&g&&r.push(...g());const b=Re(s,"addPasteRules",a);$1(s,e.options.enablePasteRules)&&b&&i.push(...b());const p=Re(s,"addProseMirrorPlugins",a);if(p){const v=p();l.push(...v)}return l}).flat();return[Ux({editor:e,rules:r}),...jx({editor:e,rules:i}),...o]}get attributes(){return q1(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:t}=cl(this.extensions);return Object.fromEntries(t.filter(r=>!!Re(r,"addNodeView")).map(r=>{const i=this.attributes.filter(l=>l.type===r.name),o={name:r.name,options:r.options,storage:r.storage,editor:e,type:on(r.name,this.schema)},s=Re(r,"addNodeView",o);if(!s)return[];const a=(l,c,u,h)=>{const g=g0(l,i);return s()({editor:e,node:l,getPos:u,decorations:h,HTMLAttributes:g,extension:r})};return[r.name,a]}))}}function Yx(n){return Object.prototype.toString.call(n).slice(8,-1)}function y0(n){return Yx(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function hl(n,e){const t={...n};return y0(n)&&y0(e)&&Object.keys(e).forEach(r=>{y0(e[r])?r in n?t[r]=hl(n[r],e[r]):Object.assign(t,{[r]:e[r]}):Object.assign(t,{[r]:e[r]})}),t}let Mn=class lm{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=et(Re(this,"addOptions",{name:this.name}))),this.storage=et(Re(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new lm(e)}configure(e={}){const t=this.extend();return t.options=hl(this.options,e),t.storage=et(Re(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new lm({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=et(Re(t,"addOptions",{name:t.name})),t.storage=et(Re(t,"addStorage",{name:t.name,options:t.options})),t}};function K1(n,e,t){const{from:r,to:i}=e,{blockSeparator:o=`
12
+
13
+ `,textSerializers:s={}}=t||{};let a="",l=!0;return n.nodesBetween(r,i,(c,u,h,g)=>{var b;const p=s==null?void 0:s[c.type.name];if(p)return c.isBlock&&!l&&(a+=o,l=!0),h&&(a+=p({node:c,pos:u,parent:h,index:g,range:e})),!1;c.isText?(a+=(b=c==null?void 0:c.text)===null||b===void 0?void 0:b.slice(Math.max(r,u)-u,i-u),l=!1):c.isBlock&&!l&&(a+=o,l=!0)}),a}function v0(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}const Zx=Mn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new _t({key:new At("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:r,selection:i}=e,{ranges:o}=i,s=Math.min(...o.map(u=>u.$from.pos)),a=Math.max(...o.map(u=>u.$to.pos)),l=v0(t);return K1(r,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}}),Xx=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),Jx=(n=!1)=>({commands:e})=>e.setContent("",n),ek=()=>({state:n,tr:e,dispatch:t})=>{const{selection:r}=e,{ranges:i}=r;return t&&i.forEach(({$from:o,$to:s})=>{n.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,h=c.resolve(u.map(l)),g=c.resolve(u.map(l+a.nodeSize)),b=h.blockRange(g);if(!b)return;const p=Ui(b);if(a.type.isTextblock){const{defaultType:v}=h.parent.contentMatchAt(h.index());e.setNodeMarkup(b.start,v)}(p||p===0)&&e.lift(b,p)})}),!0},tk=n=>e=>n(e),nk=()=>({state:n,dispatch:e})=>f0(n,e),rk=(n,e)=>({editor:t,tr:r})=>{const{state:i}=t,o=i.doc.slice(n.from,n.to);r.deleteRange(n.from,n.to);const s=r.mapping.map(e);return r.insert(s,o.content),r.setSelection(new Ne(r.doc.resolve(s-1))),!0},ik=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,r=t.$anchor.node();if(r.content.size>0)return!1;const i=n.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(e){const a=i.before(o),l=i.after(o);n.delete(a,l).scrollIntoView()}return!0}return!1},ok=n=>({tr:e,state:t,dispatch:r})=>{const i=on(n,t.schema),o=e.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===i){if(r){const l=o.before(s),c=o.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},sk=n=>({tr:e,dispatch:t})=>{const{from:r,to:i}=n;return t&&e.delete(r,i),!0},ak=()=>({state:n,dispatch:e})=>ol(n,e),lk=()=>({commands:n})=>n.keyboardShortcut("Enter"),ck=()=>({state:n,dispatch:e})=>N1(n,e);function fl(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(i=>t.strict?e[i]===n[i]:_0(e[i])?e[i].test(n[i]):e[i]===n[i]):!0}function w0(n,e,t={}){return n.find(r=>r.type===e&&fl(r.attrs,t))}function uk(n,e,t={}){return!!w0(n,e,t)}function x0(n,e,t={}){if(!n||!e)return;let r=n.parent.childAfter(n.parentOffset);if(n.parentOffset===r.offset&&r.offset!==0&&(r=n.parent.childBefore(n.parentOffset)),!r.node)return;const i=w0([...r.node.marks],e,t);if(!i)return;let o=r.index,s=n.start()+r.offset,a=o+1,l=s+r.node.nodeSize;for(w0([...r.node.marks],e,t);o>0&&i.isInSet(n.parent.child(o-1).marks);)o-=1,s-=n.parent.child(o).nodeSize;for(;a<n.parent.childCount&&uk([...n.parent.child(a).marks],e,t);)l+=n.parent.child(a).nodeSize,a+=1;return{from:s,to:l}}function _i(n,e){if(typeof n=="string"){if(!e.marks[n])throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);return e.marks[n]}return n}const dk=(n,e={})=>({tr:t,state:r,dispatch:i})=>{const o=_i(n,r.schema),{doc:s,selection:a}=t,{$from:l,from:c,to:u}=a;if(i){const h=x0(l,o,e);if(h&&h.from<=c&&h.to>=u){const g=Ne.create(s,h.from,h.to);t.setSelection(g)}}return!0},hk=n=>e=>{const t=typeof n=="function"?n(e):n;for(let r=0;r<t.length;r+=1)if(t[r](e))return!0;return!1};function pl(n){return n instanceof Ne}function Ur(n=0,e=0,t=0){return Math.min(Math.max(n,e),t)}function j1(n,e=null){if(!e)return null;const t=Fe.atStart(n),r=Fe.atEnd(n);if(e==="start"||e===!0)return t;if(e==="end")return r;const i=t.from,o=r.to;return e==="all"?Ne.create(n,Ur(0,i,o),Ur(n.content.size,i,o)):Ne.create(n,Ur(e,i,o),Ur(e,i,o))}function ml(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const fk=(n=null,e={})=>({editor:t,view:r,tr:i,dispatch:o})=>{e={scrollIntoView:!0,...e};const s=()=>{ml()&&r.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(r.hasFocus()&&n===null||n===!1)return!0;if(o&&n===null&&!pl(t.state.selection))return s(),!0;const a=j1(i.doc,n)||t.state.selection,l=t.state.selection.eq(a);return o&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},pk=(n,e)=>t=>n.every((r,i)=>e(r,{...t,index:i})),mk=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e),Q1=n=>{const e=n.childNodes;for(let t=e.length-1;t>=0;t-=1){const r=e[t];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?n.removeChild(r):r.nodeType===1&&Q1(r)}return n};function k0(n){const e=`<body>${n}</body>`,t=new window.DOMParser().parseFromString(e,"text/html").body;return Q1(t)}function gl(n,e,t){if(t={slice:!0,parseOptions:{},...t},typeof n=="object"&&n!==null)try{return Array.isArray(n)&&n.length>0?le.fromArray(n.map(r=>e.nodeFromJSON(r))):e.nodeFromJSON(n)}catch(r){return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",r),gl("",e,t)}if(typeof n=="string"){const r=qi.fromSchema(e);return t.slice?r.parseSlice(k0(n),t.parseOptions).content:r.parse(k0(n),t.parseOptions)}return gl("",e,t)}function gk(n,e,t){const r=n.steps.length-1;if(r<e)return;const i=n.steps[r];if(!(i instanceof en||i instanceof tn))return;const o=n.mapping.maps[r];let s=0;o.forEach((a,l,c,u)=>{s===0&&(s=u)}),n.setSelection(Fe.near(n.doc.resolve(s),t))}const bk=n=>n.toString().startsWith("<"),_k=(n,e,t)=>({tr:r,dispatch:i,editor:o})=>{if(i){t={parseOptions:{},updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};const s=gl(e,o.schema,{parseOptions:{preserveWhitespace:"full",...t.parseOptions}});if(s.toString()==="<>")return!0;let{from:a,to:l}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},c=!0,u=!0;if((bk(s)?s:[s]).forEach(b=>{b.check(),c=c?b.isText&&b.marks.length===0:!1,u=u?b.isBlock:!1}),a===l&&u){const{parent:b}=r.doc.resolve(a);b.isTextblock&&!b.type.spec.code&&!b.childCount&&(a-=1,l+=1)}let g;c?(Array.isArray(e)?g=e.map(b=>b.text||"").join(""):typeof e=="object"&&e&&e.text?g=e.text:g=e,r.insertText(g,a,l)):(g=s,r.replaceWith(a,l,g)),t.updateSelection&&gk(r,r.steps.length-1,-1),t.applyInputRules&&r.setMeta("applyInputRules",{from:a,text:g}),t.applyPasteRules&&r.setMeta("applyPasteRules",{from:a,text:g})}return!0},yk=()=>({state:n,dispatch:e})=>T1(n,e),vk=()=>({state:n,dispatch:e})=>A1(n,e),wk=()=>({state:n,dispatch:e})=>o0(n,e),xk=()=>({state:n,dispatch:e})=>l0(n,e),kk=()=>({tr:n,state:e,dispatch:t})=>{try{const r=Eo(e.doc,e.selection.$from.pos,-1);return r==null?!1:(n.join(r,2),t&&t(n),!0)}catch{return!1}},Sk=()=>({state:n,dispatch:e,tr:t})=>{try{const r=Eo(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}},Ek=()=>({state:n,dispatch:e})=>k1(n,e),Ck=()=>({state:n,dispatch:e})=>S1(n,e);function Y1(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function Tk(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let r,i,o,s;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))ml()||Y1()?s=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(t=`Alt-${t}`),i&&(t=`Ctrl-${t}`),s&&(t=`Meta-${t}`),o&&(t=`Shift-${t}`),t}const Ak=n=>({editor:e,view:t,tr:r,dispatch:i})=>{const o=Tk(n).split(/-(?!$)/),s=o.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,a))});return l==null||l.steps.forEach(c=>{const u=c.map(r.mapping);u&&i&&r.maybeStep(u)}),!0};function Fs(n,e,t={}){const{from:r,to:i,empty:o}=n.selection,s=e?on(e,n.schema):null,a=[];n.doc.nodesBetween(r,i,(h,g)=>{if(h.isText)return;const b=Math.max(r,g),p=Math.min(i,g+h.nodeSize);a.push({node:h,from:b,to:p})});const l=i-r,c=a.filter(h=>s?s.name===h.node.type.name:!0).filter(h=>fl(h.node.attrs,t,{strict:!1}));return o?!!c.length:c.reduce((h,g)=>h+g.to-g.from,0)>=l}const Mk=(n,e={})=>({state:t,dispatch:r})=>{const i=on(n,t.schema);return Fs(t,i,e)?M1(t,r):!1},Nk=()=>({state:n,dispatch:e})=>p0(n,e),Dk=n=>({state:e,dispatch:t})=>{const r=on(n,e.schema);return F1(r)(e,t)},Rk=()=>({state:n,dispatch:e})=>d0(n,e);function bl(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function Z1(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((r,i)=>(t.includes(i)||(r[i]=n[i]),r),{})}const Ok=(n,e)=>({tr:t,state:r,dispatch:i})=>{let o=null,s=null;const a=bl(typeof n=="string"?n:n.name,r.schema);return a?(a==="node"&&(o=on(n,r.schema)),a==="mark"&&(s=_i(n,r.schema)),i&&t.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&t.setNodeMarkup(u,void 0,Z1(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(h=>{s===h.type&&t.addMark(u,u+c.nodeSize,s.create(Z1(h.attrs,e)))})})}),!0):!1},Ik=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),Lk=()=>({tr:n,commands:e})=>e.setTextSelection({from:0,to:n.doc.content.size}),Bk=()=>({state:n,dispatch:e})=>s0(n,e),Pk=()=>({state:n,dispatch:e})=>c0(n,e),Fk=()=>({state:n,dispatch:e})=>D1(n,e),zk=()=>({state:n,dispatch:e})=>L1(n,e),qk=()=>({state:n,dispatch:e})=>I1(n,e);function X1(n,e,t={}){return gl(n,e,{slice:!1,parseOptions:t})}const Hk=(n,e=!1,t={})=>({tr:r,editor:i,dispatch:o})=>{const{doc:s}=r,a=X1(n,i.schema,t);return o&&r.replaceWith(0,s.content.size,a).setMeta("preventUpdate",!e),!0};function S0(n,e){const t=_i(e,n.schema),{from:r,to:i,empty:o}=n.selection,s=[];o?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(r,i,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===t.name);return a?{...a.attrs}:{}}function Vk(n,e){const t=new Tu(n);return e.forEach(r=>{r.steps.forEach(i=>{t.step(i)})}),t}function Uk(n){for(let e=0;e<n.edgeCount;e+=1){const{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function E0(n,e){const t=[];return n.descendants((r,i)=>{e(r)&&t.push({node:r,pos:i})}),t}function Gk(n,e,t){const r=[];return n.nodesBetween(e.from,e.to,(i,o)=>{t(i)&&r.push({node:i,pos:o})}),r}function J1(n,e){for(let t=n.depth;t>0;t-=1){const r=n.node(t);if(e(r))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:r}}}function C0(n){return e=>J1(e.$from,n)}function $k(n,e){const t=Hi.fromSchema(e).serializeFragment(n),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(t),i.innerHTML}function Wk(n,e){const t=Zi.resolve(n);return G1(t,e)}function Kk(n,e){const t=Wk(e),r=k0(n);return qi.fromSchema(t).parse(r).toJSON()}function eb(n,e){const t={from:0,to:n.content.size};return K1(n,t,e)}function jk(n,e){const t=on(e,n.schema),{from:r,to:i}=n.selection,o=[];n.doc.nodesBetween(r,i,a=>{o.push(a)});const s=o.reverse().find(a=>a.type.name===t.name);return s?{...s.attrs}:{}}function tb(n,e){const t=bl(typeof e=="string"?e:e.name,n.schema);return t==="node"?jk(n,e):t==="mark"?S0(n,e):{}}function Qk(n,e=JSON.stringify){const t={};return n.filter(r=>{const i=e(r);return Object.prototype.hasOwnProperty.call(t,i)?!1:t[i]=!0})}function Yk(n){const e=Qk(n);return e.length===1?e:e.filter((t,r)=>!e.filter((o,s)=>s!==r).some(o=>t.oldRange.from>=o.oldRange.from&&t.oldRange.to<=o.oldRange.to&&t.newRange.from>=o.newRange.from&&t.newRange.to<=o.newRange.to))}function Zk(n){const{mapping:e,steps:t}=n,r=[];return e.maps.forEach((i,o)=>{const s=[];if(i.ranges.length)i.forEach((a,l)=>{s.push({from:a,to:l})});else{const{from:a,to:l}=t[o];if(a===void 0||l===void 0)return;s.push({from:a,to:l})}s.forEach(({from:a,to:l})=>{const c=e.slice(o).map(a,-1),u=e.slice(o).map(l),h=e.invert().map(c,-1),g=e.invert().map(u);r.push({oldRange:{from:h,to:g},newRange:{from:c,to:u}})})}),Yk(r)}function T0(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(i=>{const o=t.resolve(n-1),s=x0(o,i.type);s&&r.push({mark:i,...s})}):t.nodesBetween(n,e,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(s=>({from:o,to:o+i.nodeSize,mark:s})))}),r}function _l(n,e,t){return Object.fromEntries(Object.entries(t).filter(([r])=>{const i=n.find(o=>o.type===e&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}function A0(n,e,t={}){const{empty:r,ranges:i}=n.selection,o=e?_i(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(h=>o?o.name===h.type.name:!0).find(h=>fl(h.attrs,t,{strict:!1}));let s=0;const a=[];if(i.forEach(({$from:h,$to:g})=>{const b=h.pos,p=g.pos;n.doc.nodesBetween(b,p,(v,w)=>{if(!v.isText&&!v.marks.length)return;const S=Math.max(b,w),C=Math.min(p,w+v.nodeSize),E=C-S;s+=E,a.push(...v.marks.map(A=>({mark:A,from:S,to:C})))})}),s===0)return!1;const l=a.filter(h=>o?o.name===h.mark.type.name:!0).filter(h=>fl(h.mark.attrs,t,{strict:!1})).reduce((h,g)=>h+g.to-g.from,0),c=a.filter(h=>o?h.mark.type!==o&&h.mark.type.excludes(o):!0).reduce((h,g)=>h+g.to-g.from,0);return(l>0?l+c:l)>=s}function Xk(n,e,t={}){if(!e)return Fs(n,null,t)||A0(n,null,t);const r=bl(e,n.schema);return r==="node"?Fs(n,e,t):r==="mark"?A0(n,e,t):!1}function nb(n,e){const{nodeExtensions:t}=cl(e),r=t.find(s=>s.name===n);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=et(Re(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function Jk(n){var e;const t=(e=n.type.createAndFill())===null||e===void 0?void 0:e.toJSON(),r=n.toJSON();return JSON.stringify(t)===JSON.stringify(r)}function rb(n){return n instanceof Oe}function M0(n,e,t){const i=n.state.doc.content.size,o=Ur(e,0,i),s=Ur(t,0,i),a=n.coordsAtPos(o),l=n.coordsAtPos(s,-1),c=Math.min(a.top,l.top),u=Math.max(a.bottom,l.bottom),h=Math.min(a.left,l.left),g=Math.max(a.right,l.right),b=g-h,p=u-c,S={top:c,bottom:u,left:h,right:g,width:b,height:p,x:h,y:c};return{...S,toJSON:()=>S}}function e8(n,e,t){var r;const{selection:i}=e;let o=null;if(pl(i)&&(o=i.$cursor),o){const a=(r=n.storedMarks)!==null&&r!==void 0?r:o.marks();return!!t.isInSet(a)||!a.some(l=>l.type.excludes(t))}const{ranges:s}=i;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(a.pos,l.pos,(u,h,g)=>{if(c)return!1;if(u.isInline){const b=!g||g.type.allowsMarkType(t),p=!!t.isInSet(u.marks)||!u.marks.some(v=>v.type.excludes(t));c=b&&p}return!c}),c})}const t8=(n,e={})=>({tr:t,state:r,dispatch:i})=>{const{selection:o}=t,{empty:s,ranges:a}=o,l=_i(n,r.schema);if(i)if(s){const c=S0(r,l);t.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,h=c.$to.pos;r.doc.nodesBetween(u,h,(g,b)=>{const p=Math.max(b,u),v=Math.min(b+g.nodeSize,h);g.marks.find(S=>S.type===l)?g.marks.forEach(S=>{l===S.type&&t.addMark(p,v,l.create({...S.attrs,...e}))}):t.addMark(p,v,l.create(e))})});return e8(r,t,l)},n8=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),r8=(n,e={})=>({state:t,dispatch:r,chain:i})=>{const o=on(n,t.schema);return o.isTextblock?i().command(({commands:s})=>sl(o,e)(t)?!0:s.clearNodes()).command(({state:s})=>sl(o,e)(s,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},i8=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,i=Ur(n,0,r.content.size),o=Oe.create(r,i);e.setSelection(o)}return!0},o8=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:i,to:o}=typeof n=="number"?{from:n,to:n}:n,s=Ne.atStart(r).from,a=Ne.atEnd(r).to,l=Ur(i,s,a),c=Ur(o,s,a),u=Ne.create(r,l,c);e.setSelection(u)}return!0},s8=n=>({state:e,dispatch:t})=>{const r=on(n,e.schema);return z1(r)(e,t)};function ib(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const r=t.filter(i=>e==null?void 0:e.includes(i.type.name));n.tr.ensureMarks(r)}}const a8=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:r,editor:i})=>{const{selection:o,doc:s}=e,{$from:a,$to:l}=o,c=i.extensionManager.attributes,u=_l(c,a.node().type.name,a.node().attrs);if(o instanceof Oe&&o.node.isBlock)return!a.parentOffset||!zn(s,a.pos)?!1:(r&&(n&&ib(t,i.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;if(r){const h=l.parentOffset===l.parent.content.size;o instanceof Ne&&e.deleteSelection();const g=a.depth===0?void 0:Uk(a.node(-1).contentMatchAt(a.indexAfter(-1)));let b=h&&g?[{type:g,attrs:u}]:void 0,p=zn(e.doc,e.mapping.map(a.pos),1,b);if(!b&&!p&&zn(e.doc,e.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(p=!0,b=g?[{type:g,attrs:u}]:void 0),p&&(e.split(e.mapping.map(a.pos),1,b),g&&!h&&!a.parentOffset&&a.parent.type!==g)){const v=e.mapping.map(a.before()),w=e.doc.resolve(v);a.node(-1).canReplaceWith(w.index(),w.index()+1,g)&&e.setNodeMarkup(e.mapping.map(a.before()),g)}n&&ib(t,i.extensionManager.splittableMarks),e.scrollIntoView()}return!0},l8=n=>({tr:e,state:t,dispatch:r,editor:i})=>{var o;const s=on(n,t.schema),{$from:a,$to:l}=t.selection,c=t.selection.node;if(c&&c.isBlock||a.depth<2||!a.sameParent(l))return!1;const u=a.node(-1);if(u.type!==s)return!1;const h=i.extensionManager.attributes;if(a.parent.content.size===0&&a.node(-1).childCount===a.indexAfter(-1)){if(a.depth===2||a.node(-3).type!==s||a.index(-2)!==a.node(-2).childCount-1)return!1;if(r){let w=le.empty;const S=a.index(-1)?1:a.index(-2)?2:3;for(let H=a.depth-S;H>=a.depth-3;H-=1)w=le.from(a.node(H).copy(w));const C=a.indexAfter(-1)<a.node(-2).childCount?1:a.indexAfter(-2)<a.node(-3).childCount?2:3,E=_l(h,a.node().type.name,a.node().attrs),A=((o=s.contentMatch.defaultType)===null||o===void 0?void 0:o.createAndFill(E))||void 0;w=w.append(le.from(s.createAndFill(null,A)||void 0));const R=a.before(a.depth-(S-1));e.replace(R,a.after(-C),new ve(w,4-S,0));let O=-1;e.doc.nodesBetween(R,e.doc.content.size,(H,q)=>{if(O>-1)return!1;H.isTextblock&&H.content.size===0&&(O=q+1)}),O>-1&&e.setSelection(Ne.near(e.doc.resolve(O))),e.scrollIntoView()}return!0}const g=l.pos===a.end()?u.contentMatchAt(0).defaultType:null,b=_l(h,u.type.name,u.attrs),p=_l(h,a.node().type.name,a.node().attrs);e.delete(a.pos,l.pos);const v=g?[{type:s,attrs:b},{type:g,attrs:p}]:[{type:s,attrs:b}];if(!zn(e.doc,a.pos,2))return!1;if(r){const{selection:w,storedMarks:S}=t,{splittableMarks:C}=i.extensionManager,E=S||w.$to.parentOffset&&w.$from.marks();if(e.split(a.pos,2,v).scrollIntoView(),!E||!r)return!0;const A=E.filter(R=>C.includes(R.type.name));e.ensureMarks(A)}return!0},N0=(n,e)=>{const t=C0(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(r===void 0)return!0;const i=n.doc.nodeAt(r);return t.node.type===(i==null?void 0:i.type)&&ur(n.doc,t.pos)&&n.join(t.pos),!0},D0=(n,e)=>{const t=C0(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(t.start).after(t.depth);if(r===void 0)return!0;const i=n.doc.nodeAt(r);return t.node.type===(i==null?void 0:i.type)&&ur(n.doc,r)&&n.join(r),!0};var c8=Object.freeze({__proto__:null,blur:Xx,clearContent:Jx,clearNodes:ek,command:tk,createParagraphNear:nk,cut:rk,deleteCurrentNode:ik,deleteNode:ok,deleteRange:sk,deleteSelection:ak,enter:lk,exitCode:ck,extendMarkRange:dk,first:hk,focus:fk,forEach:pk,insertContent:mk,insertContentAt:_k,joinUp:yk,joinDown:vk,joinBackward:wk,joinForward:xk,joinItemBackward:kk,joinItemForward:Sk,joinTextblockBackward:Ek,joinTextblockForward:Ck,keyboardShortcut:Ak,lift:Mk,liftEmptyBlock:Nk,liftListItem:Dk,newlineInCode:Rk,resetAttributes:Ok,scrollIntoView:Ik,selectAll:Lk,selectNodeBackward:Bk,selectNodeForward:Pk,selectParentNode:Fk,selectTextblockEnd:zk,selectTextblockStart:qk,setContent:Hk,setMark:t8,setMeta:n8,setNode:r8,setNodeSelection:i8,setTextSelection:o8,sinkListItem:s8,splitBlock:a8,splitListItem:l8,toggleList:(n,e,t,r={})=>({editor:i,tr:o,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:h,splittableMarks:g}=i.extensionManager,b=on(n,s.schema),p=on(e,s.schema),{selection:v,storedMarks:w}=s,{$from:S,$to:C}=v,E=S.blockRange(C),A=w||v.$to.parentOffset&&v.$from.marks();if(!E)return!1;const R=C0(O=>nb(O.type.name,h))(v);if(E.depth>=1&&R&&E.depth-R.depth<=1){if(R.node.type===b)return c.liftListItem(p);if(nb(R.node.type.name,h)&&b.validContent(R.node.content)&&a)return l().command(()=>(o.setNodeMarkup(R.pos,b),!0)).command(()=>N0(o,b)).command(()=>D0(o,b)).run()}return!t||!A||!a?l().command(()=>u().wrapInList(b,r)?!0:c.clearNodes()).wrapInList(b,r).command(()=>N0(o,b)).command(()=>D0(o,b)).run():l().command(()=>{const O=u().wrapInList(b,r),H=A.filter(q=>g.includes(q.type.name));return o.ensureMarks(H),O?!0:c.clearNodes()}).wrapInList(b,r).command(()=>N0(o,b)).command(()=>D0(o,b)).run()},toggleMark:(n,e={},t={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=t,s=_i(n,r.schema);return A0(r,s,e)?i.unsetMark(s,{extendEmptyMarkRange:o}):i.setMark(s,e)},toggleNode:(n,e,t={})=>({state:r,commands:i})=>{const o=on(n,r.schema),s=on(e,r.schema);return Fs(r,o,t)?i.setNode(s):i.setNode(o,t)},toggleWrap:(n,e={})=>({state:t,commands:r})=>{const i=on(n,t.schema);return Fs(t,i,e)?r.lift(i):r.wrapIn(i,e)},undoInputRule:()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let r=0;r<t.length;r+=1){const i=t[r];let o;if(i.spec.isInputRules&&(o=i.getState(n))){if(e){const s=n.tr,a=o.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,n.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:r,ranges:i}=t;return r||e&&i.forEach(o=>{n.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(n,e={})=>({tr:t,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=t,l=_i(n,r.schema),{$from:c,empty:u,ranges:h}=a;if(!i)return!0;if(u&&s){let{from:g,to:b}=a;const p=(o=c.marks().find(w=>w.type===l))===null||o===void 0?void 0:o.attrs,v=x0(c,l,p);v&&(g=v.from,b=v.to),t.removeMark(g,b,l)}else h.forEach(g=>{t.removeMark(g.$from.pos,g.$to.pos,l)});return t.removeStoredMark(l),!0},updateAttributes:(n,e={})=>({tr:t,state:r,dispatch:i})=>{let o=null,s=null;const a=bl(typeof n=="string"?n:n.name,r.schema);return a?(a==="node"&&(o=on(n,r.schema)),a==="mark"&&(s=_i(n,r.schema)),i&&t.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;r.doc.nodesBetween(c,u,(h,g)=>{o&&o===h.type&&t.setNodeMarkup(g,void 0,{...h.attrs,...e}),s&&h.marks.length&&h.marks.forEach(b=>{if(s===b.type){const p=Math.max(g,c),v=Math.min(g+h.nodeSize,u);t.addMark(p,v,s.create({...b.attrs,...e}))}})})}),!0):!1},wrapIn:(n,e={})=>({state:t,dispatch:r})=>{const i=on(n,t.schema);return B1(i,e)(t,r)},wrapInList:(n,e={})=>({state:t,dispatch:r})=>{const i=on(n,t.schema);return P1(i,e)(t,r)}});const u8=Mn.create({name:"commands",addCommands(){return{...c8}}}),d8=Mn.create({name:"editable",addProseMirrorPlugins(){return[new _t({key:new At("editable"),props:{editable:()=>this.editor.options.editable}})]}}),h8=Mn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new _t({key:new At("focusEvents"),props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const r=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,t)=>{n.isFocused=!1;const r=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),f8=Mn.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:h}=l,{pos:g,parent:b}=h,p=h.parent.isTextblock&&g>0?a.doc.resolve(g-1):h,v=p.parent.type.spec.isolating,w=h.pos-h.parentOffset,S=v&&p.parent.childCount===1?w===h.pos:Fe.atStart(c).from===g;return!u||!S||!b.type.isTextblock||b.textContent.length?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},o={...r,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return ml()||Y1()?o:i},addProseMirrorPlugins(){return[new _t({key:new At("clearDocument"),appendTransaction:(n,e,t)=>{if(!(n.some(p=>p.docChanged)&&!e.doc.eq(t.doc)))return;const{empty:i,from:o,to:s}=e.selection,a=Fe.atStart(e.doc).from,l=Fe.atEnd(e.doc).to;if(i||!(o===a&&s===l)||!(t.doc.textBetween(0,t.doc.content.size," "," ").length===0))return;const h=t.tr,g=al({state:t,transaction:h}),{commands:b}=new ll({editor:this.editor,state:g});if(b.clearNodes(),!!h.steps.length)return h}})]}}),p8=Mn.create({name:"tabindex",addProseMirrorPlugins(){return[new _t({key:new At("tabindex"),props:{attributes:this.editor.isEditable?{tabindex:"0"}:{}}})]}});class Xi{constructor(e,t,r=!1,i=null){this.currentNode=null,this.actualDepth=null,this.isBlock=r,this.resolvedPos=e,this.editor=t,this.currentNode=i}get name(){return this.node.type.name}get node(){return this.currentNode||this.resolvedPos.node()}get element(){return this.editor.view.domAtPos(this.pos).node}get depth(){var e;return(e=this.actualDepth)!==null&&e!==void 0?e:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(e){let t=this.from,r=this.to;if(this.isBlock){if(this.content.size===0){console.error(`You can’t set content on a block node. Tried to set content on ${this.name} at ${this.pos}`);return}t=this.from+1,r=this.to-1}this.editor.commands.insertContentAt({from:t,to:r},e)}get attributes(){return this.node.attrs}get textContent(){return this.node.textContent}get size(){return this.node.nodeSize}get from(){return this.isBlock?this.pos:this.resolvedPos.start(this.resolvedPos.depth)}get range(){return{from:this.from,to:this.to}}get to(){return this.isBlock?this.pos+this.size:this.resolvedPos.end(this.resolvedPos.depth)+(this.node.isText?0:1)}get parent(){if(this.depth===0)return null;const e=this.resolvedPos.start(this.resolvedPos.depth-1),t=this.resolvedPos.doc.resolve(e);return new Xi(t,this.editor)}get before(){let e=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.from-3)),new Xi(e,this.editor)}get after(){let e=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return e.depth!==this.depth&&(e=this.resolvedPos.doc.resolve(this.to+3)),new Xi(e,this.editor)}get children(){const e=[];return this.node.content.forEach((t,r)=>{const i=t.isBlock&&!t.isTextblock,o=this.pos+r+1,s=this.resolvedPos.doc.resolve(o);if(!i&&s.depth<=this.depth)return;const a=new Xi(s,this.editor,i,i?t:null);i&&(a.actualDepth=this.depth+1),e.push(new Xi(s,this.editor,i,i?t:null))}),e}get firstChild(){return this.children[0]||null}get lastChild(){const e=this.children;return e[e.length-1]||null}closest(e,t={}){let r=null,i=this.parent;for(;i&&!r;){if(i.node.type.name===e)if(Object.keys(t).length>0){const o=i.node.attrs,s=Object.keys(t);for(let a=0;a<s.length;a+=1){const l=s[a];if(o[l]!==t[l])break}}else r=i;i=i.parent}return r}querySelector(e,t={}){return this.querySelectorAll(e,t,!0)[0]||null}querySelectorAll(e,t={},r=!1){let i=[];return!this.children||this.children.length===0||this.children.forEach(o=>{if(o.node.type.name===e){if(Object.keys(t).length>0){const s=o.node.attrs,a=Object.keys(t);for(let l=0;l<a.length;l+=1){const c=a[l];if(s[c]!==t[c])return}}if(i.push(o),r)return}i=i.concat(o.querySelectorAll(e))}),i}setAttribute(e){const t=this.editor.state.selection;this.editor.chain().setTextSelection(this.from).updateAttributes(this.node.type.name,e).setTextSelection(t.from).run()}}const m8=`.ProseMirror {
14
+ position: relative;
15
+ }
16
+
17
+ .ProseMirror {
18
+ word-wrap: break-word;
19
+ white-space: pre-wrap;
20
+ white-space: break-spaces;
21
+ -webkit-font-variant-ligatures: none;
22
+ font-variant-ligatures: none;
23
+ font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */
24
+ }
25
+
26
+ .ProseMirror [contenteditable="false"] {
27
+ white-space: normal;
28
+ }
29
+
30
+ .ProseMirror [contenteditable="false"] [contenteditable="true"] {
31
+ white-space: pre-wrap;
32
+ }
33
+
34
+ .ProseMirror pre {
35
+ white-space: pre-wrap;
36
+ }
37
+
38
+ img.ProseMirror-separator {
39
+ display: inline !important;
40
+ border: none !important;
41
+ margin: 0 !important;
42
+ width: 1px !important;
43
+ height: 1px !important;
44
+ }
45
+
46
+ .ProseMirror-gapcursor {
47
+ display: none;
48
+ pointer-events: none;
49
+ position: absolute;
50
+ margin: 0;
51
+ }
52
+
53
+ .ProseMirror-gapcursor:after {
54
+ content: "";
55
+ display: block;
56
+ position: absolute;
57
+ top: -2px;
58
+ width: 20px;
59
+ border-top: 1px solid black;
60
+ animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
61
+ }
62
+
63
+ @keyframes ProseMirror-cursor-blink {
64
+ to {
65
+ visibility: hidden;
66
+ }
67
+ }
68
+
69
+ .ProseMirror-hideselection *::selection {
70
+ background: transparent;
71
+ }
72
+
73
+ .ProseMirror-hideselection *::-moz-selection {
74
+ background: transparent;
75
+ }
76
+
77
+ .ProseMirror-hideselection * {
78
+ caret-color: transparent;
79
+ }
80
+
81
+ .ProseMirror-focused .ProseMirror-gapcursor {
82
+ display: block;
83
+ }
84
+
85
+ .tippy-box[data-animation=fade][data-state=hidden] {
86
+ opacity: 0
87
+ }`;function g8(n,e,t){const r=document.querySelector("style[data-tiptap-style]");if(r!==null)return r;const i=document.createElement("style");return e&&i.setAttribute("nonce",e),i.setAttribute("data-tiptap-style",""),i.innerHTML=n,document.getElementsByTagName("head")[0].appendChild(i),i}let b8=class extends Fx{constructor(e={}){super(),this.isFocused=!1,this.extensionStorage={},this.options={element:document.createElement("div"),content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,onBeforeCreate:()=>null,onCreate:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.createView(),this.injectCSS(),this.on("create",this.options.onCreate),this.on("update",this.options.onUpdate),this.on("selectionUpdate",this.options.onSelectionUpdate),this.on("transaction",this.options.onTransaction),this.on("focus",this.options.onFocus),this.on("blur",this.options.onBlur),this.on("destroy",this.options.onDestroy),window.setTimeout(()=>{this.isDestroyed||(this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}))},0)}get storage(){return this.extensionStorage}get commands(){return this.commandManager.commands}chain(){return this.commandManager.chain()}can(){return this.commandManager.can()}injectCSS(){this.options.injectCSS&&document&&(this.css=g8(m8,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.view||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,t=!0){this.setOptions({editable:e}),t&&this.emit("update",{editor:this,transaction:this.state.tr})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get state(){return this.view.state}registerPlugin(e,t){const r=H1(t)?t(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:r});this.view.updateState(i)}unregisterPlugin(e){if(this.isDestroyed)return;const t=typeof e=="string"?`${e}$`:e.key,r=this.state.reconfigure({plugins:this.state.plugins.filter(i=>!i.key.startsWith(t))});this.view.updateState(r)}createExtensionManager(){var e,t;const i=[...this.options.enableCoreExtensions?[d8,Zx.configure({blockSeparator:(t=(e=this.options.coreExtensionOptions)===null||e===void 0?void 0:e.clipboardTextSerializer)===null||t===void 0?void 0:t.blockSeparator}),u8,h8,f8,p8]:[],...this.options.extensions].filter(o=>["extension","node","mark"].includes(o==null?void 0:o.type));this.extensionManager=new Zi(i,this)}createCommandManager(){this.commandManager=new ll({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createView(){const e=X1(this.options.content,this.schema,this.options.parseOptions),t=j1(e,this.options.autofocus);this.view=new g1(this.options.element,{...this.options.editorProps,dispatchTransaction:this.dispatchTransaction.bind(this),state:Mo.create({doc:e,selection:t||void 0})});const r=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(r),this.createNodeViews(),this.prependClass();const i=this.view.dom;i.editor=this}createNodeViews(){this.view.setProps({nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`tiptap ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const t=this.capturedTransaction;return this.capturedTransaction=null,t}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(s=>{var a;return(a=this.capturedTransaction)===null||a===void 0?void 0:a.step(s)});return}const t=this.state.apply(e),r=!this.state.selection.eq(t.selection);this.view.updateState(t),this.emit("transaction",{editor:this,transaction:e}),r&&this.emit("selectionUpdate",{editor:this,transaction:e});const i=e.getMeta("focus"),o=e.getMeta("blur");i&&this.emit("focus",{editor:this,event:i.event,transaction:e}),o&&this.emit("blur",{editor:this,event:o.event,transaction:e}),!(!e.docChanged||e.getMeta("preventUpdate"))&&this.emit("update",{editor:this,transaction:e})}getAttributes(e){return tb(this.state,e)}isActive(e,t){const r=typeof e=="string"?e:null,i=typeof e=="string"?t:e;return Xk(this.state,r,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return $k(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:t=`
88
+
89
+ `,textSerializers:r={}}=e||{};return eb(this.state.doc,{blockSeparator:t,textSerializers:{...v0(this.schema),...r}})}get isEmpty(){return Jk(this.state.doc)}getCharacterCount(){return console.warn('[tiptap warn]: "editor.getCharacterCount()" is deprecated. Please use "editor.storage.characterCount.characters()" instead.'),this.state.doc.content.size-2}destroy(){this.emit("destroy"),this.view&&this.view.destroy(),this.removeAllListeners()}get isDestroyed(){var e;return!(!((e=this.view)===null||e===void 0)&&e.docView)}$node(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelector(e,t))||null}$nodes(e,t){var r;return((r=this.$doc)===null||r===void 0?void 0:r.querySelectorAll(e,t))||null}$pos(e){const t=this.state.doc.resolve(e);return new Xi(t,this)}get $doc(){return this.$pos(0)}};function _8(n){return new ul({find:n.find,handler:({state:e,range:t,match:r})=>{const i=et(n.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=e,s=r[r.length-1],a=r[0];if(s){const l=a.search(/\S/),c=t.from+a.indexOf(s),u=c+s.length;if(T0(t.from,t.to,e.doc).filter(b=>b.mark.type.excluded.find(v=>v===n.type&&v!==b.mark.type)).filter(b=>b.to>c).length)return null;u<t.to&&o.delete(u,t.to),c>t.from&&o.delete(t.from+l,c);const g=t.from+l+s.length;o.addMark(t.from+l,g,n.type.create(i||{})),o.removeStoredMark(n.type)}}})}function R0(n){return new ul({find:n.find,handler:({state:e,range:t,match:r})=>{const i=et(n.getAttributes,void 0,r)||{},{tr:o}=e,s=t.from;let a=t.to;const l=n.type.create(i);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=s+c;u>a?u=a:a=u+r[1].length;const h=r[0][r[0].length-1];o.insertText(h,s+r[0].length-1),o.replaceWith(u,a,l)}else r[0]&&o.insert(s-1,n.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a));o.scrollIntoView()}})}function ob(n){return new ul({find:n.find,handler:({state:e,range:t,match:r})=>{const i=e.doc.resolve(t.from),o=et(n.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),n.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,n.type,o)}})}function sb(n){return new ul({find:n.find,handler:({state:e,range:t,match:r,chain:i})=>{const o=et(n.getAttributes,void 0,r)||{},s=e.tr.delete(t.from,t.to),l=s.doc.resolve(t.from).blockRange(),c=l&&Wa(l,n.type,o);if(!c)return null;if(s.wrap(l,c),n.keepMarks&&n.editor){const{selection:h,storedMarks:g}=e,{splittableMarks:b}=n.editor.extensionManager,p=g||h.$to.parentOffset&&h.$from.marks();if(p){const v=p.filter(w=>b.includes(w.type.name));s.ensureMarks(v)}}if(n.keepAttributes){const h=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(h,o).run()}const u=s.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&ur(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&s.join(t.from-1)}})}let Ji=class cm{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=et(Re(this,"addOptions",{name:this.name}))),this.storage=et(Re(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new cm(e)}configure(e={}){const t=this.extend();return t.options=hl(this.options,e),t.storage=et(Re(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new cm({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=et(Re(t,"addOptions",{name:t.name})),t.storage=et(Re(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const s=i.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===t.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===t.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}},Hn=class um{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=et(Re(this,"addOptions",{name:this.name}))),this.storage=et(Re(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new um(e)}configure(e={}){const t=this.extend();return t.options=hl(this.options,e),t.storage=et(Re(t,"addStorage",{name:t.name,options:t.options})),t}extend(e={}){const t=new um({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=et(Re(t,"addOptions",{name:t.name})),t.storage=et(Re(t,"addStorage",{name:t.name,options:t.options})),t}};function y8(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}class v8{constructor(e,t,r){this.isDragging=!1,this.component=e,this.editor=t.editor,this.options={stopEvent:null,ignoreMutation:null,...r},this.extension=t.extension,this.node=t.node,this.decorations=t.decorations,this.getPos=t.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var t,r,i,o,s,a,l;const{view:c}=this.editor,u=e.target,h=u.nodeType===3?(t=u.parentElement)===null||t===void 0?void 0:t.closest("[data-drag-handle]"):u.closest("[data-drag-handle]");if(!this.dom||!((r=this.contentDOM)===null||r===void 0)&&r.contains(u)||!h)return;let g=0,b=0;if(this.dom!==h){const w=this.dom.getBoundingClientRect(),S=h.getBoundingClientRect(),C=(i=e.offsetX)!==null&&i!==void 0?i:(o=e.nativeEvent)===null||o===void 0?void 0:o.offsetX,E=(s=e.offsetY)!==null&&s!==void 0?s:(a=e.nativeEvent)===null||a===void 0?void 0:a.offsetY;g=S.x-w.x+C,b=S.y-w.y+E}(l=e.dataTransfer)===null||l===void 0||l.setDragImage(this.dom,g,b);const p=Oe.create(c.state.doc,this.getPos()),v=c.state.tr.setSelection(p);c.dispatch(v)}stopEvent(e){var t;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const r=e.target;if(!(this.dom.contains(r)&&!(!((t=this.contentDOM)===null||t===void 0)&&t.contains(r))))return!1;const o=e.type.startsWith("drag"),s=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(r.tagName)||r.isContentEditable)&&!s&&!o)return!0;const{isEditable:l}=this.editor,{isDragging:c}=this,u=!!this.node.type.spec.draggable,h=Oe.isSelectable(this.node),g=e.type==="copy",b=e.type==="paste",p=e.type==="cut",v=e.type==="mousedown";if(!u&&h&&o&&e.preventDefault(),u&&o&&!c)return e.preventDefault(),!1;if(u&&l&&!c&&v){const w=r.closest("[data-drag-handle]");w&&(this.dom===w||this.dom.contains(w))&&(this.isDragging=!0,document.addEventListener("dragend",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("drop",()=>{this.isDragging=!1},{once:!0}),document.addEventListener("mouseup",()=>{this.isDragging=!1},{once:!0}))}return!(c||s||g||b||p||v&&h)}ignoreMutation(e){return!this.dom||!this.contentDOM?!0:typeof this.options.ignoreMutation=="function"?this.options.ignoreMutation({mutation:e}):this.node.isLeaf||this.node.isAtom?!0:e.type==="selection"||this.dom.contains(e.target)&&e.type==="childList"&&(ml()||y8())&&this.editor.isFocused&&[...Array.from(e.addedNodes),...Array.from(e.removedNodes)].every(r=>r.isContentEditable)?!1:this.contentDOM===e.target&&e.type==="attributes"?!0:!this.contentDOM.contains(e.target)}updateAttributes(e){this.editor.commands.command(({tr:t})=>{const r=this.getPos();return t.setNodeMarkup(r,void 0,{...this.node.attrs,...e}),!0})}deleteNode(){const e=this.getPos(),t=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:t})}}function ab(n){return new W1({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:i})=>{const o=et(n.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],l=r[0];let c=t.to;if(a){const u=l.search(/\S/),h=t.from+l.indexOf(a),g=h+a.length;if(T0(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(w=>w===n.type&&w!==p.mark.type)).filter(p=>p.to>h).length)return null;g<t.to&&s.delete(g,t.to),h>t.from&&s.delete(t.from+u,h),c=t.from+u+a.length,s.addMark(t.from+u,c,n.type.create(o||{})),s.removeStoredMark(n.type)}}})}var Nn="top",er="bottom",tr="right",Dn="left",O0="auto",zs=[Nn,er,tr,Dn],Po="start",qs="end",w8="clippingParents",lb="viewport",Hs="popper",x8="reference",cb=zs.reduce(function(n,e){return n.concat([e+"-"+Po,e+"-"+qs])},[]),ub=[].concat(zs,[O0]).reduce(function(n,e){return n.concat([e,e+"-"+Po,e+"-"+qs])},[]),k8="beforeRead",S8="read",E8="afterRead",C8="beforeMain",T8="main",A8="afterMain",M8="beforeWrite",N8="write",D8="afterWrite",R8=[k8,S8,E8,C8,T8,A8,M8,N8,D8];function kr(n){return n?(n.nodeName||"").toLowerCase():null}function Vn(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function eo(n){var e=Vn(n).Element;return n instanceof e||n instanceof Element}function nr(n){var e=Vn(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function I0(n){if(typeof ShadowRoot>"u")return!1;var e=Vn(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}function O8(n){var e=n.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];!nr(o)||!kr(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function I8(n){var e=n.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),a=s.reduce(function(l,c){return l[c]="",l},{});!nr(i)||!kr(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}const db={name:"applyStyles",enabled:!0,phase:"write",fn:O8,effect:I8,requires:["computeStyles"]};function Sr(n){return n.split("-")[0]}var to=Math.max,yl=Math.min,Fo=Math.round;function L0(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function hb(){return!/^((?!chrome|android).)*safari/i.test(L0())}function zo(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),i=1,o=1;e&&nr(n)&&(i=n.offsetWidth>0&&Fo(r.width)/n.offsetWidth||1,o=n.offsetHeight>0&&Fo(r.height)/n.offsetHeight||1);var s=eo(n)?Vn(n):window,a=s.visualViewport,l=!hb()&&t,c=(r.left+(l&&a?a.offsetLeft:0))/i,u=(r.top+(l&&a?a.offsetTop:0))/o,h=r.width/i,g=r.height/o;return{width:h,height:g,top:u,right:c+h,bottom:u+g,left:c,x:c,y:u}}function B0(n){var e=zo(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function fb(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&I0(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Gr(n){return Vn(n).getComputedStyle(n)}function L8(n){return["table","td","th"].indexOf(kr(n))>=0}function yi(n){return((eo(n)?n.ownerDocument:n.document)||window.document).documentElement}function vl(n){return kr(n)==="html"?n:n.assignedSlot||n.parentNode||(I0(n)?n.host:null)||yi(n)}function pb(n){return!nr(n)||Gr(n).position==="fixed"?null:n.offsetParent}function B8(n){var e=/firefox/i.test(L0()),t=/Trident/i.test(L0());if(t&&nr(n)){var r=Gr(n);if(r.position==="fixed")return null}var i=vl(n);for(I0(i)&&(i=i.host);nr(i)&&["html","body"].indexOf(kr(i))<0;){var o=Gr(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Vs(n){for(var e=Vn(n),t=pb(n);t&&L8(t)&&Gr(t).position==="static";)t=pb(t);return t&&(kr(t)==="html"||kr(t)==="body"&&Gr(t).position==="static")?e:t||B8(n)||e}function P0(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Us(n,e,t){return to(n,yl(e,t))}function P8(n,e,t){var r=Us(n,e,t);return r>t?t:r}function mb(){return{top:0,right:0,bottom:0,left:0}}function gb(n){return Object.assign({},mb(),n)}function bb(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var F8=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,gb(typeof e!="number"?e:bb(e,zs))};function z8(n){var e,t=n.state,r=n.name,i=n.options,o=t.elements.arrow,s=t.modifiersData.popperOffsets,a=Sr(t.placement),l=P0(a),c=[Dn,tr].indexOf(a)>=0,u=c?"height":"width";if(!(!o||!s)){var h=F8(i.padding,t),g=B0(o),b=l==="y"?Nn:Dn,p=l==="y"?er:tr,v=t.rects.reference[u]+t.rects.reference[l]-s[l]-t.rects.popper[u],w=s[l]-t.rects.reference[l],S=Vs(o),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,E=v/2-w/2,A=h[b],R=C-g[u]-h[p],O=C/2-g[u]/2+E,H=Us(A,O,R),q=l;t.modifiersData[r]=(e={},e[q]=H,e.centerOffset=H-O,e)}}function q8(n){var e=n.state,t=n.options,r=t.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||fb(e.elements.popper,i)&&(e.elements.arrow=i))}const H8={name:"arrow",enabled:!0,phase:"main",fn:z8,effect:q8,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qo(n){return n.split("-")[1]}var V8={top:"auto",right:"auto",bottom:"auto",left:"auto"};function U8(n,e){var t=n.x,r=n.y,i=e.devicePixelRatio||1;return{x:Fo(t*i)/i||0,y:Fo(r*i)/i||0}}function _b(n){var e,t=n.popper,r=n.popperRect,i=n.placement,o=n.variation,s=n.offsets,a=n.position,l=n.gpuAcceleration,c=n.adaptive,u=n.roundOffsets,h=n.isFixed,g=s.x,b=g===void 0?0:g,p=s.y,v=p===void 0?0:p,w=typeof u=="function"?u({x:b,y:v}):{x:b,y:v};b=w.x,v=w.y;var S=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),E=Dn,A=Nn,R=window;if(c){var O=Vs(t),H="clientHeight",q="clientWidth";if(O===Vn(t)&&(O=yi(t),Gr(O).position!=="static"&&a==="absolute"&&(H="scrollHeight",q="scrollWidth")),O=O,i===Nn||(i===Dn||i===tr)&&o===qs){A=er;var U=h&&O===R&&R.visualViewport?R.visualViewport.height:O[H];v-=U-r.height,v*=l?1:-1}if(i===Dn||(i===Nn||i===er)&&o===qs){E=tr;var F=h&&O===R&&R.visualViewport?R.visualViewport.width:O[q];b-=F-r.width,b*=l?1:-1}}var Y=Object.assign({position:a},c&&V8),X=u===!0?U8({x:b,y:v},Vn(t)):{x:b,y:v};if(b=X.x,v=X.y,l){var oe;return Object.assign({},Y,(oe={},oe[A]=C?"0":"",oe[E]=S?"0":"",oe.transform=(R.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",oe))}return Object.assign({},Y,(e={},e[A]=C?v+"px":"",e[E]=S?b+"px":"",e.transform="",e))}function G8(n){var e=n.state,t=n.options,r=t.gpuAcceleration,i=r===void 0?!0:r,o=t.adaptive,s=o===void 0?!0:o,a=t.roundOffsets,l=a===void 0?!0:a,c={placement:Sr(e.placement),variation:qo(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,_b(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,_b(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const $8={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:G8,data:{}};var wl={passive:!0};function W8(n){var e=n.state,t=n.instance,r=n.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,l=Vn(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach(function(u){u.addEventListener("scroll",t.update,wl)}),a&&l.addEventListener("resize",t.update,wl),function(){o&&c.forEach(function(u){u.removeEventListener("scroll",t.update,wl)}),a&&l.removeEventListener("resize",t.update,wl)}}const K8={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:W8,data:{}};var j8={left:"right",right:"left",bottom:"top",top:"bottom"};function xl(n){return n.replace(/left|right|bottom|top/g,function(e){return j8[e]})}var Q8={start:"end",end:"start"};function yb(n){return n.replace(/start|end/g,function(e){return Q8[e]})}function F0(n){var e=Vn(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function z0(n){return zo(yi(n)).left+F0(n).scrollLeft}function Y8(n,e){var t=Vn(n),r=yi(n),i=t.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;var c=hb();(c||!c&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a+z0(n),y:l}}function Z8(n){var e,t=yi(n),r=F0(n),i=(e=n.ownerDocument)==null?void 0:e.body,o=to(t.scrollWidth,t.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=to(t.scrollHeight,t.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+z0(n),l=-r.scrollTop;return Gr(i||t).direction==="rtl"&&(a+=to(t.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function q0(n){var e=Gr(n),t=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+i+r)}function vb(n){return["html","body","#document"].indexOf(kr(n))>=0?n.ownerDocument.body:nr(n)&&q0(n)?n:vb(vl(n))}function Gs(n,e){var t;e===void 0&&(e=[]);var r=vb(n),i=r===((t=n.ownerDocument)==null?void 0:t.body),o=Vn(r),s=i?[o].concat(o.visualViewport||[],q0(r)?r:[]):r,a=e.concat(s);return i?a:a.concat(Gs(vl(s)))}function H0(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function X8(n,e){var t=zo(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function wb(n,e,t){return e===lb?H0(Y8(n,t)):eo(e)?X8(e,t):H0(Z8(yi(n)))}function J8(n){var e=Gs(vl(n)),t=["absolute","fixed"].indexOf(Gr(n).position)>=0,r=t&&nr(n)?Vs(n):n;return eo(r)?e.filter(function(i){return eo(i)&&fb(i,r)&&kr(i)!=="body"}):[]}function eS(n,e,t,r){var i=e==="clippingParents"?J8(n):[].concat(e),o=[].concat(i,[t]),s=o[0],a=o.reduce(function(l,c){var u=wb(n,c,r);return l.top=to(u.top,l.top),l.right=yl(u.right,l.right),l.bottom=yl(u.bottom,l.bottom),l.left=to(u.left,l.left),l},wb(n,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function xb(n){var e=n.reference,t=n.element,r=n.placement,i=r?Sr(r):null,o=r?qo(r):null,s=e.x+e.width/2-t.width/2,a=e.y+e.height/2-t.height/2,l;switch(i){case Nn:l={x:s,y:e.y-t.height};break;case er:l={x:s,y:e.y+e.height};break;case tr:l={x:e.x+e.width,y:a};break;case Dn:l={x:e.x-t.width,y:a};break;default:l={x:e.x,y:e.y}}var c=i?P0(i):null;if(c!=null){var u=c==="y"?"height":"width";switch(o){case Po:l[c]=l[c]-(e[u]/2-t[u]/2);break;case qs:l[c]=l[c]+(e[u]/2-t[u]/2);break}}return l}function $s(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=r===void 0?n.placement:r,o=t.strategy,s=o===void 0?n.strategy:o,a=t.boundary,l=a===void 0?w8:a,c=t.rootBoundary,u=c===void 0?lb:c,h=t.elementContext,g=h===void 0?Hs:h,b=t.altBoundary,p=b===void 0?!1:b,v=t.padding,w=v===void 0?0:v,S=gb(typeof w!="number"?w:bb(w,zs)),C=g===Hs?x8:Hs,E=n.rects.popper,A=n.elements[p?C:g],R=eS(eo(A)?A:A.contextElement||yi(n.elements.popper),l,u,s),O=zo(n.elements.reference),H=xb({reference:O,element:E,placement:i}),q=H0(Object.assign({},E,H)),U=g===Hs?q:O,F={top:R.top-U.top+S.top,bottom:U.bottom-R.bottom+S.bottom,left:R.left-U.left+S.left,right:U.right-R.right+S.right},Y=n.modifiersData.offset;if(g===Hs&&Y){var X=Y[i];Object.keys(F).forEach(function(oe){var K=[tr,er].indexOf(oe)>=0?1:-1,ee=[Nn,er].indexOf(oe)>=0?"y":"x";F[oe]+=X[ee]*K})}return F}function tS(n,e){e===void 0&&(e={});var t=e,r=t.placement,i=t.boundary,o=t.rootBoundary,s=t.padding,a=t.flipVariations,l=t.allowedAutoPlacements,c=l===void 0?ub:l,u=qo(r),h=u?a?cb:cb.filter(function(p){return qo(p)===u}):zs,g=h.filter(function(p){return c.indexOf(p)>=0});g.length===0&&(g=h);var b=g.reduce(function(p,v){return p[v]=$s(n,{placement:v,boundary:i,rootBoundary:o,padding:s})[Sr(v)],p},{});return Object.keys(b).sort(function(p,v){return b[p]-b[v]})}function nS(n){if(Sr(n)===O0)return[];var e=xl(n);return[yb(n),e,yb(e)]}function rS(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!0:s,l=t.fallbackPlacements,c=t.padding,u=t.boundary,h=t.rootBoundary,g=t.altBoundary,b=t.flipVariations,p=b===void 0?!0:b,v=t.allowedAutoPlacements,w=e.options.placement,S=Sr(w),C=S===w,E=l||(C||!p?[xl(w)]:nS(w)),A=[w].concat(E).reduce(function(Te,Ke){return Te.concat(Sr(Ke)===O0?tS(e,{placement:Ke,boundary:u,rootBoundary:h,padding:c,flipVariations:p,allowedAutoPlacements:v}):Ke)},[]),R=e.rects.reference,O=e.rects.popper,H=new Map,q=!0,U=A[0],F=0;F<A.length;F++){var Y=A[F],X=Sr(Y),oe=qo(Y)===Po,K=[Nn,er].indexOf(X)>=0,ee=K?"width":"height",$=$s(e,{placement:Y,boundary:u,rootBoundary:h,altBoundary:g,padding:c}),Q=K?oe?tr:Dn:oe?er:Nn;R[ee]>O[ee]&&(Q=xl(Q));var ie=xl(Q),Z=[];if(o&&Z.push($[X]<=0),a&&Z.push($[Q]<=0,$[ie]<=0),Z.every(function(Te){return Te})){U=Y,q=!1;break}H.set(Y,Z)}if(q)for(var J=p?3:1,ue=function(Ke){var Qe=A.find(function(Ze){var ot=H.get(Ze);if(ot)return ot.slice(0,Ke).every(function(Be){return Be})});if(Qe)return U=Qe,"break"},fe=J;fe>0;fe--){var ke=ue(fe);if(ke==="break")break}e.placement!==U&&(e.modifiersData[r]._skip=!0,e.placement=U,e.reset=!0)}}const iS={name:"flip",enabled:!0,phase:"main",fn:rS,requiresIfExists:["offset"],data:{_skip:!1}};function kb(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function Sb(n){return[Nn,tr,er,Dn].some(function(e){return n[e]>=0})}function oS(n){var e=n.state,t=n.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,s=$s(e,{elementContext:"reference"}),a=$s(e,{altBoundary:!0}),l=kb(s,r),c=kb(a,i,o),u=Sb(l),h=Sb(c);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}const sS={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:oS};function aS(n,e,t){var r=Sr(n),i=[Dn,Nn].indexOf(r)>=0?-1:1,o=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[Dn,tr].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function lS(n){var e=n.state,t=n.options,r=n.name,i=t.offset,o=i===void 0?[0,0]:i,s=ub.reduce(function(u,h){return u[h]=aS(h,e.rects,o),u},{}),a=s[e.placement],l=a.x,c=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[r]=s}const cS={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lS};function uS(n){var e=n.state,t=n.name;e.modifiersData[t]=xb({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const dS={name:"popperOffsets",enabled:!0,phase:"read",fn:uS,data:{}};function hS(n){return n==="x"?"y":"x"}function fS(n){var e=n.state,t=n.options,r=n.name,i=t.mainAxis,o=i===void 0?!0:i,s=t.altAxis,a=s===void 0?!1:s,l=t.boundary,c=t.rootBoundary,u=t.altBoundary,h=t.padding,g=t.tether,b=g===void 0?!0:g,p=t.tetherOffset,v=p===void 0?0:p,w=$s(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),S=Sr(e.placement),C=qo(e.placement),E=!C,A=P0(S),R=hS(A),O=e.modifiersData.popperOffsets,H=e.rects.reference,q=e.rects.popper,U=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,F=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),Y=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,X={x:0,y:0};if(O){if(o){var oe,K=A==="y"?Nn:Dn,ee=A==="y"?er:tr,$=A==="y"?"height":"width",Q=O[A],ie=Q+w[K],Z=Q-w[ee],J=b?-q[$]/2:0,ue=C===Po?H[$]:q[$],fe=C===Po?-q[$]:-H[$],ke=e.elements.arrow,Te=b&&ke?B0(ke):{width:0,height:0},Ke=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:mb(),Qe=Ke[K],Ze=Ke[ee],ot=Us(0,H[$],Te[$]),Be=E?H[$]/2-J-ot-Qe-F.mainAxis:ue-ot-Qe-F.mainAxis,dt=E?-H[$]/2+J+ot+Ze+F.mainAxis:fe+ot+Ze+F.mainAxis,tt=e.elements.arrow&&Vs(e.elements.arrow),at=tt?A==="y"?tt.clientTop||0:tt.clientLeft||0:0,ht=(oe=Y==null?void 0:Y[A])!=null?oe:0,it=Q+Be-ht-at,ct=Q+dt-ht,Et=Us(b?yl(ie,it):ie,Q,b?to(Z,ct):Z);O[A]=Et,X[A]=Et-Q}if(a){var He,sr=A==="x"?Nn:Dn,Ct=A==="x"?er:tr,Xe=O[R],Zt=R==="y"?"height":"width",hn=Xe+w[sr],Tn=Xe-w[Ct],Lt=[Nn,Dn].indexOf(S)!==-1,ge=(He=Y==null?void 0:Y[R])!=null?He:0,Ce=Lt?hn:Xe-H[Zt]-q[Zt]-ge+F.altAxis,qe=Lt?Xe+H[Zt]+q[Zt]-ge-F.altAxis:Tn,Je=b&&Lt?P8(Ce,Xe,qe):Us(b?Ce:hn,Xe,b?qe:Tn);O[R]=Je,X[R]=Je-Xe}e.modifiersData[r]=X}}const pS={name:"preventOverflow",enabled:!0,phase:"main",fn:fS,requiresIfExists:["offset"]};function mS(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function gS(n){return n===Vn(n)||!nr(n)?F0(n):mS(n)}function bS(n){var e=n.getBoundingClientRect(),t=Fo(e.width)/n.offsetWidth||1,r=Fo(e.height)/n.offsetHeight||1;return t!==1||r!==1}function _S(n,e,t){t===void 0&&(t=!1);var r=nr(e),i=nr(e)&&bS(e),o=yi(e),s=zo(n,i,t),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((kr(e)!=="body"||q0(o))&&(a=gS(e)),nr(e)?(l=zo(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=z0(o))),{x:s.left+a.scrollLeft-l.x,y:s.top+a.scrollTop-l.y,width:s.width,height:s.height}}function yS(n){var e=new Map,t=new Set,r=[];n.forEach(function(o){e.set(o.name,o)});function i(o){t.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!t.has(a)){var l=e.get(a);l&&i(l)}}),r.push(o)}return n.forEach(function(o){t.has(o.name)||i(o)}),r}function vS(n){var e=yS(n);return R8.reduce(function(t,r){return t.concat(e.filter(function(i){return i.phase===r}))},[])}function wS(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function xS(n){var e=n.reduce(function(t,r){var i=t[r.name];return t[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var Eb={placement:"bottom",modifiers:[],strategy:"absolute"};function Cb(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function kS(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,i=e.defaultOptions,o=i===void 0?Eb:i;return function(a,l,c){c===void 0&&(c=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Eb,o),modifiersData:{},elements:{reference:a,popper:l},attributes:{},styles:{}},h=[],g=!1,b={state:u,setOptions:function(S){var C=typeof S=="function"?S(u.options):S;v(),u.options=Object.assign({},o,u.options,C),u.scrollParents={reference:eo(a)?Gs(a):a.contextElement?Gs(a.contextElement):[],popper:Gs(l)};var E=vS(xS([].concat(r,u.options.modifiers)));return u.orderedModifiers=E.filter(function(A){return A.enabled}),p(),b.update()},forceUpdate:function(){if(!g){var S=u.elements,C=S.reference,E=S.popper;if(Cb(C,E)){u.rects={reference:_S(C,Vs(E),u.options.strategy==="fixed"),popper:B0(E)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(F){return u.modifiersData[F.name]=Object.assign({},F.data)});for(var A=0;A<u.orderedModifiers.length;A++){if(u.reset===!0){u.reset=!1,A=-1;continue}var R=u.orderedModifiers[A],O=R.fn,H=R.options,q=H===void 0?{}:H,U=R.name;typeof O=="function"&&(u=O({state:u,options:q,name:U,instance:b})||u)}}}},update:wS(function(){return new Promise(function(w){b.forceUpdate(),w(u)})}),destroy:function(){v(),g=!0}};if(!Cb(a,l))return b;b.setOptions(c).then(function(w){!g&&c.onFirstUpdate&&c.onFirstUpdate(w)});function p(){u.orderedModifiers.forEach(function(w){var S=w.name,C=w.options,E=C===void 0?{}:C,A=w.effect;if(typeof A=="function"){var R=A({state:u,name:S,instance:b,options:E}),O=function(){};h.push(R||O)}})}function v(){h.forEach(function(w){return w()}),h=[]}return b}}var SS=[K8,dS,$8,db,cS,iS,pS,H8,sS],ES=kS({defaultModifiers:SS}),CS="tippy-box",Tb="tippy-content",TS="tippy-backdrop",Ab="tippy-arrow",Mb="tippy-svg-arrow",no={passive:!0,capture:!0},Nb=function(){return document.body};function AS(n,e){return{}.hasOwnProperty.call(n,e)}function V0(n,e,t){if(Array.isArray(n)){var r=n[e];return r??(Array.isArray(t)?t[e]:t)}return n}function U0(n,e){var t={}.toString.call(n);return t.indexOf("[object")===0&&t.indexOf(e+"]")>-1}function Db(n,e){return typeof n=="function"?n.apply(void 0,e):n}function Rb(n,e){if(e===0)return n;var t;return function(r){clearTimeout(t),t=setTimeout(function(){n(r)},e)}}function MS(n,e){var t=Object.assign({},n);return e.forEach(function(r){delete t[r]}),t}function NS(n){return n.split(/\s+/).filter(Boolean)}function Ho(n){return[].concat(n)}function Ob(n,e){n.indexOf(e)===-1&&n.push(e)}function DS(n){return n.filter(function(e,t){return n.indexOf(e)===t})}function RS(n){return n.split("-")[0]}function kl(n){return[].slice.call(n)}function Ib(n){return Object.keys(n).reduce(function(e,t){return n[t]!==void 0&&(e[t]=n[t]),e},{})}function Ws(){return document.createElement("div")}function Ks(n){return["Element","Fragment"].some(function(e){return U0(n,e)})}function OS(n){return U0(n,"NodeList")}function IS(n){return U0(n,"MouseEvent")}function LS(n){return!!(n&&n._tippy&&n._tippy.reference===n)}function BS(n){return Ks(n)?[n]:OS(n)?kl(n):Array.isArray(n)?n:kl(document.querySelectorAll(n))}function G0(n,e){n.forEach(function(t){t&&(t.style.transitionDuration=e+"ms")})}function Lb(n,e){n.forEach(function(t){t&&t.setAttribute("data-state",e)})}function PS(n){var e,t=Ho(n),r=t[0];return r!=null&&(e=r.ownerDocument)!=null&&e.body?r.ownerDocument:document}function FS(n,e){var t=e.clientX,r=e.clientY;return n.every(function(i){var o=i.popperRect,s=i.popperState,a=i.props,l=a.interactiveBorder,c=RS(s.placement),u=s.modifiersData.offset;if(!u)return!0;var h=c==="bottom"?u.top.y:0,g=c==="top"?u.bottom.y:0,b=c==="right"?u.left.x:0,p=c==="left"?u.right.x:0,v=o.top-r+h>l,w=r-o.bottom-g>l,S=o.left-t+b>l,C=t-o.right-p>l;return v||w||S||C})}function $0(n,e,t){var r=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(i){n[r](i,t)})}function Bb(n,e){for(var t=e;t;){var r;if(n.contains(t))return!0;t=t.getRootNode==null||(r=t.getRootNode())==null?void 0:r.host}return!1}var Er={isTouch:!1},Pb=0;function zS(){Er.isTouch||(Er.isTouch=!0,window.performance&&document.addEventListener("mousemove",Fb))}function Fb(){var n=performance.now();n-Pb<20&&(Er.isTouch=!1,document.removeEventListener("mousemove",Fb)),Pb=n}function qS(){var n=document.activeElement;if(LS(n)){var e=n._tippy;n.blur&&!e.state.isVisible&&n.blur()}}function HS(){document.addEventListener("touchstart",zS,no),window.addEventListener("blur",qS)}var VS=typeof window<"u"&&typeof document<"u",US=VS?!!window.msCrypto:!1;function Vo(n){var e=n==="destroy"?"n already-":" ";return[n+"() was called on a"+e+"destroyed instance. This is a no-op but","indicates a potential memory leak."].join(" ")}function zb(n){var e=/[ \t]{2,}/g,t=/^[ \t]*/gm;return n.replace(e," ").replace(t,"").trim()}function GS(n){return zb(`
90
+ %ctippy.js
91
+
92
+ %c`+zb(n)+`
93
+
94
+ %c👷‍ This is a development-only message. It will be removed in production.
95
+ `)}function qb(n){return[GS(n),"color: #00C584; font-size: 1.3em; font-weight: bold;","line-height: 1.5","color: #a6a095;"]}var js;process.env.NODE_ENV!=="production"&&$S();function $S(){js=new Set}function $r(n,e){if(n&&!js.has(e)){var t;js.add(e),(t=console).warn.apply(t,qb(e))}}function W0(n,e){if(n&&!js.has(e)){var t;js.add(e),(t=console).error.apply(t,qb(e))}}function WS(n){var e=!n,t=Object.prototype.toString.call(n)==="[object Object]"&&!n.addEventListener;W0(e,["tippy() was passed","`"+String(n)+"`","as its targets (first) argument. Valid types are: String, Element,","Element[], or NodeList."].join(" ")),W0(t,["tippy() was passed a plain object which is not supported as an argument","for virtual positioning. Use props.getReferenceClientRect instead."].join(" "))}var Hb={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},KS={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},Un=Object.assign({appendTo:Nb,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},Hb,KS),jS=Object.keys(Un),QS=function(e){process.env.NODE_ENV!=="production"&&Gb(e,[]);var t=Object.keys(e);t.forEach(function(r){Un[r]=e[r]})};function Vb(n){var e=n.plugins||[],t=e.reduce(function(r,i){var o=i.name,s=i.defaultValue;if(o){var a;r[o]=n[o]!==void 0?n[o]:(a=Un[o])!=null?a:s}return r},{});return Object.assign({},n,t)}function YS(n,e){var t=e?Object.keys(Vb(Object.assign({},Un,{plugins:e}))):jS,r=t.reduce(function(i,o){var s=(n.getAttribute("data-tippy-"+o)||"").trim();if(!s)return i;if(o==="content")i[o]=s;else try{i[o]=JSON.parse(s)}catch{i[o]=s}return i},{});return r}function Ub(n,e){var t=Object.assign({},e,{content:Db(e.content,[n])},e.ignoreAttributes?{}:YS(n,e.plugins));return t.aria=Object.assign({},Un.aria,t.aria),t.aria={expanded:t.aria.expanded==="auto"?e.interactive:t.aria.expanded,content:t.aria.content==="auto"?e.interactive?null:"describedby":t.aria.content},t}function Gb(n,e){n===void 0&&(n={}),e===void 0&&(e=[]);var t=Object.keys(n);t.forEach(function(r){var i=MS(Un,Object.keys(Hb)),o=!AS(i,r);o&&(o=e.filter(function(s){return s.name===r}).length===0),$r(o,["`"+r+"`","is not a valid prop. You may have spelled it incorrectly, or if it's","a plugin, forgot to pass it in an array as props.plugins.",`
96
+
97
+ `,`All props: https://atomiks.github.io/tippyjs/v6/all-props/
98
+ `,"Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "))})}var ZS=function(){return"innerHTML"};function K0(n,e){n[ZS()]=e}function $b(n){var e=Ws();return n===!0?e.className=Ab:(e.className=Mb,Ks(n)?e.appendChild(n):K0(e,n)),e}function Wb(n,e){Ks(e.content)?(K0(n,""),n.appendChild(e.content)):typeof e.content!="function"&&(e.allowHTML?K0(n,e.content):n.textContent=e.content)}function j0(n){var e=n.firstElementChild,t=kl(e.children);return{box:e,content:t.find(function(r){return r.classList.contains(Tb)}),arrow:t.find(function(r){return r.classList.contains(Ab)||r.classList.contains(Mb)}),backdrop:t.find(function(r){return r.classList.contains(TS)})}}function Kb(n){var e=Ws(),t=Ws();t.className=CS,t.setAttribute("data-state","hidden"),t.setAttribute("tabindex","-1");var r=Ws();r.className=Tb,r.setAttribute("data-state","hidden"),Wb(r,n.props),e.appendChild(t),t.appendChild(r),i(n.props,n.props);function i(o,s){var a=j0(e),l=a.box,c=a.content,u=a.arrow;s.theme?l.setAttribute("data-theme",s.theme):l.removeAttribute("data-theme"),typeof s.animation=="string"?l.setAttribute("data-animation",s.animation):l.removeAttribute("data-animation"),s.inertia?l.setAttribute("data-inertia",""):l.removeAttribute("data-inertia"),l.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?l.setAttribute("role",s.role):l.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&Wb(c,n.props),s.arrow?u?o.arrow!==s.arrow&&(l.removeChild(u),l.appendChild($b(s.arrow))):l.appendChild($b(s.arrow)):u&&l.removeChild(u)}return{popper:e,onUpdate:i}}Kb.$$tippy=!0;var XS=1,Sl=[],Q0=[];function JS(n,e){var t=Ub(n,Object.assign({},Un,Vb(Ib(e)))),r,i,o,s=!1,a=!1,l=!1,c=!1,u,h,g,b=[],p=Rb(it,t.interactiveDebounce),v,w=XS++,S=null,C=DS(t.plugins),E={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},A={id:w,reference:n,popper:Ws(),popperInstance:S,props:t,state:E,plugins:C,clearDelayTimeouts:Ce,setProps:qe,setContent:Je,show:Ht,hide:Pt,hideWithInteractivity:Or,enable:Lt,disable:ge,unmount:Ni,destroy:Ea};if(!t.render)return process.env.NODE_ENV!=="production"&&W0(!0,"render() function has not been supplied."),A;var R=t.render(A),O=R.popper,H=R.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+A.id,A.popper=O,n._tippy=A,O._tippy=A;var q=C.map(function(se){return se.fn(A)}),U=n.hasAttribute("aria-expanded");return tt(),J(),Q(),ie("onCreate",[A]),t.showOnCreate&&hn(),O.addEventListener("mouseenter",function(){A.props.interactive&&A.state.isVisible&&A.clearDelayTimeouts()}),O.addEventListener("mouseleave",function(){A.props.interactive&&A.props.trigger.indexOf("mouseenter")>=0&&K().addEventListener("mousemove",p)}),A;function F(){var se=A.props.touch;return Array.isArray(se)?se:[se,0]}function Y(){return F()[0]==="hold"}function X(){var se;return!!((se=A.props.render)!=null&&se.$$tippy)}function oe(){return v||n}function K(){var se=oe().parentNode;return se?PS(se):document}function ee(){return j0(O)}function $(se){return A.state.isMounted&&!A.state.isVisible||Er.isTouch||u&&u.type==="focus"?0:V0(A.props.delay,se?0:1,Un.delay)}function Q(se){se===void 0&&(se=!1),O.style.pointerEvents=A.props.interactive&&!se?"":"none",O.style.zIndex=""+A.props.zIndex}function ie(se,Me,Ge){if(Ge===void 0&&(Ge=!0),q.forEach(function(ut){ut[se]&&ut[se].apply(ut,Me)}),Ge){var ft;(ft=A.props)[se].apply(ft,Me)}}function Z(){var se=A.props.aria;if(se.content){var Me="aria-"+se.content,Ge=O.id,ft=Ho(A.props.triggerTarget||n);ft.forEach(function(ut){var Ft=ut.getAttribute(Me);if(A.state.isVisible)ut.setAttribute(Me,Ft?Ft+" "+Ge:Ge);else{var st=Ft&&Ft.replace(Ge,"").trim();st?ut.setAttribute(Me,st):ut.removeAttribute(Me)}})}}function J(){if(!(U||!A.props.aria.expanded)){var se=Ho(A.props.triggerTarget||n);se.forEach(function(Me){A.props.interactive?Me.setAttribute("aria-expanded",A.state.isVisible&&Me===oe()?"true":"false"):Me.removeAttribute("aria-expanded")})}}function ue(){K().removeEventListener("mousemove",p),Sl=Sl.filter(function(se){return se!==p})}function fe(se){if(!(Er.isTouch&&(l||se.type==="mousedown"))){var Me=se.composedPath&&se.composedPath()[0]||se.target;if(!(A.props.interactive&&Bb(O,Me))){if(Ho(A.props.triggerTarget||n).some(function(Ge){return Bb(Ge,Me)})){if(Er.isTouch||A.state.isVisible&&A.props.trigger.indexOf("click")>=0)return}else ie("onClickOutside",[A,se]);A.props.hideOnClick===!0&&(A.clearDelayTimeouts(),A.hide(),a=!0,setTimeout(function(){a=!1}),A.state.isMounted||Qe())}}}function ke(){l=!0}function Te(){l=!1}function Ke(){var se=K();se.addEventListener("mousedown",fe,!0),se.addEventListener("touchend",fe,no),se.addEventListener("touchstart",Te,no),se.addEventListener("touchmove",ke,no)}function Qe(){var se=K();se.removeEventListener("mousedown",fe,!0),se.removeEventListener("touchend",fe,no),se.removeEventListener("touchstart",Te,no),se.removeEventListener("touchmove",ke,no)}function Ze(se,Me){Be(se,function(){!A.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&Me()})}function ot(se,Me){Be(se,Me)}function Be(se,Me){var Ge=ee().box;function ft(ut){ut.target===Ge&&($0(Ge,"remove",ft),Me())}if(se===0)return Me();$0(Ge,"remove",h),$0(Ge,"add",ft),h=ft}function dt(se,Me,Ge){Ge===void 0&&(Ge=!1);var ft=Ho(A.props.triggerTarget||n);ft.forEach(function(ut){ut.addEventListener(se,Me,Ge),b.push({node:ut,eventType:se,handler:Me,options:Ge})})}function tt(){Y()&&(dt("touchstart",ht,{passive:!0}),dt("touchend",ct,{passive:!0})),NS(A.props.trigger).forEach(function(se){if(se!=="manual")switch(dt(se,ht),se){case"mouseenter":dt("mouseleave",ct);break;case"focus":dt(US?"focusout":"blur",Et);break;case"focusin":dt("focusout",Et);break}})}function at(){b.forEach(function(se){var Me=se.node,Ge=se.eventType,ft=se.handler,ut=se.options;Me.removeEventListener(Ge,ft,ut)}),b=[]}function ht(se){var Me,Ge=!1;if(!(!A.state.isEnabled||He(se)||a)){var ft=((Me=u)==null?void 0:Me.type)==="focus";u=se,v=se.currentTarget,J(),!A.state.isVisible&&IS(se)&&Sl.forEach(function(ut){return ut(se)}),se.type==="click"&&(A.props.trigger.indexOf("mouseenter")<0||s)&&A.props.hideOnClick!==!1&&A.state.isVisible?Ge=!0:hn(se),se.type==="click"&&(s=!Ge),Ge&&!ft&&Tn(se)}}function it(se){var Me=se.target,Ge=oe().contains(Me)||O.contains(Me);if(!(se.type==="mousemove"&&Ge)){var ft=Zt().concat(O).map(function(ut){var Ft,st=ut._tippy,k=(Ft=st.popperInstance)==null?void 0:Ft.state;return k?{popperRect:ut.getBoundingClientRect(),popperState:k,props:t}:null}).filter(Boolean);FS(ft,se)&&(ue(),Tn(se))}}function ct(se){var Me=He(se)||A.props.trigger.indexOf("click")>=0&&s;if(!Me){if(A.props.interactive){A.hideWithInteractivity(se);return}Tn(se)}}function Et(se){A.props.trigger.indexOf("focusin")<0&&se.target!==oe()||A.props.interactive&&se.relatedTarget&&O.contains(se.relatedTarget)||Tn(se)}function He(se){return Er.isTouch?Y()!==se.type.indexOf("touch")>=0:!1}function sr(){Ct();var se=A.props,Me=se.popperOptions,Ge=se.placement,ft=se.offset,ut=se.getReferenceClientRect,Ft=se.moveTransition,st=X()?j0(O).arrow:null,k=ut?{getBoundingClientRect:ut,contextElement:ut.contextElement||oe()}:n,N={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(D){var re=D.state;if(X()){var ne=ee(),Ie=ne.box;["placement","reference-hidden","escaped"].forEach(function(pt){pt==="placement"?Ie.setAttribute("data-placement",re.placement):re.attributes.popper["data-popper-"+pt]?Ie.setAttribute("data-"+pt,""):Ie.removeAttribute("data-"+pt)}),re.attributes.popper={}}}},ce=[{name:"offset",options:{offset:ft}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!Ft}},N];X()&&st&&ce.push({name:"arrow",options:{element:st,padding:3}}),ce.push.apply(ce,(Me==null?void 0:Me.modifiers)||[]),A.popperInstance=ES(k,O,Object.assign({},Me,{placement:Ge,onFirstUpdate:g,modifiers:ce}))}function Ct(){A.popperInstance&&(A.popperInstance.destroy(),A.popperInstance=null)}function Xe(){var se=A.props.appendTo,Me,Ge=oe();A.props.interactive&&se===Nb||se==="parent"?Me=Ge.parentNode:Me=Db(se,[Ge]),Me.contains(O)||Me.appendChild(O),A.state.isMounted=!0,sr(),process.env.NODE_ENV!=="production"&&$r(A.props.interactive&&se===Un.appendTo&&Ge.nextElementSibling!==O,["Interactive tippy element may not be accessible via keyboard","navigation because it is not directly after the reference element","in the DOM source order.",`
99
+
100
+ `,"Using a wrapper <div> or <span> tag around the reference element","solves this by creating a new parentNode context.",`
101
+
102
+ `,"Specifying `appendTo: document.body` silences this warning, but it","assumes you are using a focus management solution to handle","keyboard navigation.",`
103
+
104
+ `,"See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "))}function Zt(){return kl(O.querySelectorAll("[data-tippy-root]"))}function hn(se){A.clearDelayTimeouts(),se&&ie("onTrigger",[A,se]),Ke();var Me=$(!0),Ge=F(),ft=Ge[0],ut=Ge[1];Er.isTouch&&ft==="hold"&&ut&&(Me=ut),Me?r=setTimeout(function(){A.show()},Me):A.show()}function Tn(se){if(A.clearDelayTimeouts(),ie("onUntrigger",[A,se]),!A.state.isVisible){Qe();return}if(!(A.props.trigger.indexOf("mouseenter")>=0&&A.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(se.type)>=0&&s)){var Me=$(!1);Me?i=setTimeout(function(){A.state.isVisible&&A.hide()},Me):o=requestAnimationFrame(function(){A.hide()})}}function Lt(){A.state.isEnabled=!0}function ge(){A.hide(),A.state.isEnabled=!1}function Ce(){clearTimeout(r),clearTimeout(i),cancelAnimationFrame(o)}function qe(se){if(process.env.NODE_ENV!=="production"&&$r(A.state.isDestroyed,Vo("setProps")),!A.state.isDestroyed){ie("onBeforeUpdate",[A,se]),at();var Me=A.props,Ge=Ub(n,Object.assign({},Me,Ib(se),{ignoreAttributes:!0}));A.props=Ge,tt(),Me.interactiveDebounce!==Ge.interactiveDebounce&&(ue(),p=Rb(it,Ge.interactiveDebounce)),Me.triggerTarget&&!Ge.triggerTarget?Ho(Me.triggerTarget).forEach(function(ft){ft.removeAttribute("aria-expanded")}):Ge.triggerTarget&&n.removeAttribute("aria-expanded"),J(),Q(),H&&H(Me,Ge),A.popperInstance&&(sr(),Zt().forEach(function(ft){requestAnimationFrame(ft._tippy.popperInstance.forceUpdate)})),ie("onAfterUpdate",[A,se])}}function Je(se){A.setProps({content:se})}function Ht(){process.env.NODE_ENV!=="production"&&$r(A.state.isDestroyed,Vo("show"));var se=A.state.isVisible,Me=A.state.isDestroyed,Ge=!A.state.isEnabled,ft=Er.isTouch&&!A.props.touch,ut=V0(A.props.duration,0,Un.duration);if(!(se||Me||Ge||ft)&&!oe().hasAttribute("disabled")&&(ie("onShow",[A],!1),A.props.onShow(A)!==!1)){if(A.state.isVisible=!0,X()&&(O.style.visibility="visible"),Q(),Ke(),A.state.isMounted||(O.style.transition="none"),X()){var Ft=ee(),st=Ft.box,k=Ft.content;G0([st,k],0)}g=function(){var ce;if(!(!A.state.isVisible||c)){if(c=!0,O.offsetHeight,O.style.transition=A.props.moveTransition,X()&&A.props.animation){var L=ee(),D=L.box,re=L.content;G0([D,re],ut),Lb([D,re],"visible")}Z(),J(),Ob(Q0,A),(ce=A.popperInstance)==null||ce.forceUpdate(),ie("onMount",[A]),A.props.animation&&X()&&ot(ut,function(){A.state.isShown=!0,ie("onShown",[A])})}},Xe()}}function Pt(){process.env.NODE_ENV!=="production"&&$r(A.state.isDestroyed,Vo("hide"));var se=!A.state.isVisible,Me=A.state.isDestroyed,Ge=!A.state.isEnabled,ft=V0(A.props.duration,1,Un.duration);if(!(se||Me||Ge)&&(ie("onHide",[A],!1),A.props.onHide(A)!==!1)){if(A.state.isVisible=!1,A.state.isShown=!1,c=!1,s=!1,X()&&(O.style.visibility="hidden"),ue(),Qe(),Q(!0),X()){var ut=ee(),Ft=ut.box,st=ut.content;A.props.animation&&(G0([Ft,st],ft),Lb([Ft,st],"hidden"))}Z(),J(),A.props.animation?X()&&Ze(ft,A.unmount):A.unmount()}}function Or(se){process.env.NODE_ENV!=="production"&&$r(A.state.isDestroyed,Vo("hideWithInteractivity")),K().addEventListener("mousemove",p),Ob(Sl,p),p(se)}function Ni(){process.env.NODE_ENV!=="production"&&$r(A.state.isDestroyed,Vo("unmount")),A.state.isVisible&&A.hide(),A.state.isMounted&&(Ct(),Zt().forEach(function(se){se._tippy.unmount()}),O.parentNode&&O.parentNode.removeChild(O),Q0=Q0.filter(function(se){return se!==A}),A.state.isMounted=!1,ie("onHidden",[A]))}function Ea(){process.env.NODE_ENV!=="production"&&$r(A.state.isDestroyed,Vo("destroy")),!A.state.isDestroyed&&(A.clearDelayTimeouts(),A.unmount(),at(),delete n._tippy,A.state.isDestroyed=!0,ie("onDestroy",[A]))}}function ro(n,e){e===void 0&&(e={});var t=Un.plugins.concat(e.plugins||[]);process.env.NODE_ENV!=="production"&&(WS(n),Gb(e,t)),HS();var r=Object.assign({},e,{plugins:t}),i=BS(n);if(process.env.NODE_ENV!=="production"){var o=Ks(r.content),s=i.length>1;$r(o&&s,["tippy() was passed an Element as the `content` prop, but more than","one tippy instance was created by this invocation. This means the","content element will only be appended to the last tippy instance.",`
105
+
106
+ `,"Instead, pass the .innerHTML of the element, or use a function that","returns a cloned version of the element instead.",`
107
+
108
+ `,`1) content: element.innerHTML
109
+ `,"2) content: () => element.cloneNode(true)"].join(" "))}var a=i.reduce(function(l,c){var u=c&&JS(c,r);return u&&l.push(u),l},[]);return Ks(n)?a[0]:a}ro.defaultProps=Un,ro.setDefaultProps=QS,ro.currentInput=Er,Object.assign({},db,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}}),ro.setDefaultProps({render:Kb});let e7=class{constructor({editor:e,element:t,view:r,tippyOptions:i={},updateDelay:o=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:c,to:u})=>{const{doc:h,selection:g}=l,{empty:b}=g,p=!h.textBetween(c,u).length&&pl(l.selection),v=this.element.contains(document.activeElement);return!(!(a.hasFocus()||v)||b||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(a.relatedTarget))||(a==null?void 0:a.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,l)=>{const c=!(l!=null&&l.selection.eq(a.state.selection)),u=!(l!=null&&l.doc.eq(a.state.doc));!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,c,u,l)},this.updateDelay))},this.updateHandler=(a,l,c,u)=>{var h,g,b;const{state:p,composing:v}=a,{selection:w}=p;if(v||!l&&!c)return;this.createTooltip();const{ranges:C}=w,E=Math.min(...C.map(O=>O.$from.pos)),A=Math.max(...C.map(O=>O.$to.pos));if(!((h=this.shouldShow)===null||h===void 0?void 0:h.call(this,{editor:this.editor,element:this.element,view:a,state:p,oldState:u,from:E,to:A}))){this.hide();return}(g=this.tippy)===null||g===void 0||g.setProps({getReferenceClientRect:((b=this.tippyOptions)===null||b===void 0?void 0:b.getReferenceClientRect)||(()=>{if(rb(p.selection)){let O=a.nodeDOM(E);if(O){const H=O.dataset.nodeViewWrapper?O:O.querySelector("[data-node-view-wrapper]");if(H&&(O=H.firstChild),O)return O.getBoundingClientRect()}}return M0(a,E,A)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=o,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=ro(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,i=r.selection.from!==r.selection.to;if(this.updateDelay>0&&i){this.handleDebouncedUpdate(e,t);return}const o=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,o,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}};const jb=n=>new _t({key:typeof n.pluginKey=="string"?new At(n.pluginKey):n.pluginKey,view:e=>new e7({view:e,...n})});Mn.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[jb({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}});class t7{getTextContent(e){return eb(e,{textSerializers:v0(this.editor.schema)})}constructor({editor:e,element:t,view:r,tippyOptions:i={},shouldShow:o}){this.preventHide=!1,this.shouldShow=({view:s,state:a})=>{const{selection:l}=a,{$anchor:c,empty:u}=l,h=c.depth===1,g=c.parent.isTextblock&&!c.parent.type.spec.code&&!c.parent.textContent&&c.parent.childCount===0&&!this.getTextContent(c.parent);return!(!s.hasFocus()||!u||!h||!g||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:s})=>{var a;if(this.preventHide){this.preventHide=!1;return}s!=null&&s.relatedTarget&&(!((a=this.element.parentNode)===null||a===void 0)&&a.contains(s.relatedTarget))||(s==null?void 0:s.relatedTarget)!==this.editor.view.dom&&this.hide()},this.tippyBlurHandler=s=>{this.blurHandler({event:s})},this.editor=e,this.element=t,this.view=r,o&&(this.shouldShow=o),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=ro(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"right",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){var r,i,o;const{state:s}=e,{doc:a,selection:l}=s,{from:c,to:u}=l;if(t&&t.doc.eq(a)&&t.selection.eq(l))return;if(this.createTooltip(),!((r=this.shouldShow)===null||r===void 0?void 0:r.call(this,{editor:this.editor,view:e,state:s,oldState:t}))){this.hide();return}(i=this.tippy)===null||i===void 0||i.setProps({getReferenceClientRect:((o=this.tippyOptions)===null||o===void 0?void 0:o.getReferenceClientRect)||(()=>M0(e,c,u))}),this.show()}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const Qb=n=>new _t({key:typeof n.pluginKey=="string"?new At(n.pluginKey):n.pluginKey,view:e=>new t7({view:e,...n})});Mn.create({name:"floatingMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"floatingMenu",shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[Qb({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,shouldShow:this.options.shouldShow})]:[]}}),y.defineComponent({name:"BubbleMenu",props:{pluginKey:{type:[String,Object],default:"bubbleMenu"},editor:{type:Object,required:!0},updateDelay:{type:Number,default:void 0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=y.ref(null);return y.onMounted(()=>{const{updateDelay:r,editor:i,pluginKey:o,shouldShow:s,tippyOptions:a}=n;i.registerPlugin(jb({updateDelay:r,editor:i,element:t.value,pluginKey:o,shouldShow:s,tippyOptions:a}))}),y.onBeforeUnmount(()=>{const{pluginKey:r,editor:i}=n;i.unregisterPlugin(r)}),()=>{var r;return y.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});function Yb(n){return y.customRef((e,t)=>({get(){return e(),n},set(r){n=r,requestAnimationFrame(()=>{requestAnimationFrame(()=>{t()})})}}))}class n7 extends b8{constructor(e={}){return super(e),this.vueRenderers=y.reactive(new Map),this.contentComponent=null,this.reactiveState=Yb(this.view.state),this.reactiveExtensionStorage=Yb(this.extensionStorage),this.on("transaction",()=>{this.reactiveState.value=this.view.state,this.reactiveExtensionStorage.value=this.extensionStorage}),y.markRaw(this)}get state(){return this.reactiveState?this.reactiveState.value:this.view.state}get storage(){return this.reactiveExtensionStorage?this.reactiveExtensionStorage.value:super.storage}registerPlugin(e,t){super.registerPlugin(e,t),this.reactiveState.value=this.view.state}unregisterPlugin(e){super.unregisterPlugin(e),this.reactiveState.value=this.view.state}}const Zb=y.defineComponent({name:"EditorContent",props:{editor:{default:null,type:Object}},setup(n){const e=y.ref(),t=y.getCurrentInstance();return y.watchEffect(()=>{const r=n.editor;r&&r.options.element&&e.value&&y.nextTick(()=>{if(!e.value||!r.options.element.firstChild)return;const i=y.unref(e.value);e.value.append(...r.options.element.childNodes),r.contentComponent=t.ctx._,r.setOptions({element:i}),r.createNodeViews()})}),y.onBeforeUnmount(()=>{const r=n.editor;if(!r||(r.isDestroyed||r.view.setProps({nodeViews:{}}),r.contentComponent=null,!r.options.element.firstChild))return;const i=document.createElement("div");i.append(...r.options.element.childNodes),r.setOptions({element:i})}),{rootEl:e}},render(){const n=[];return this.editor&&this.editor.vueRenderers.forEach(e=>{const t=y.h(y.Teleport,{to:e.teleportElement,key:e.id},y.h(e.component,{ref:e.id,...e.props}));n.push(t)}),y.h("div",{ref:e=>{this.rootEl=e}},...n)}});y.defineComponent({name:"FloatingMenu",props:{pluginKey:{type:null,default:"floatingMenu"},editor:{type:Object,required:!0},tippyOptions:{type:Object,default:()=>({})},shouldShow:{type:Function,default:null}},setup(n,{slots:e}){const t=y.ref(null);return y.onMounted(()=>{const{pluginKey:r,editor:i,tippyOptions:o,shouldShow:s}=n;i.registerPlugin(Qb({pluginKey:r,editor:i,element:t.value,tippyOptions:o,shouldShow:s}))}),y.onBeforeUnmount(()=>{const{pluginKey:r,editor:i}=n;i.unregisterPlugin(r)}),()=>{var r;return y.h("div",{ref:t},(r=e.default)===null||r===void 0?void 0:r.call(e))}}});const Xb=y.defineComponent({name:"NodeViewContent",props:{as:{type:String,default:"div"}},render(){return y.h(this.as,{style:{whiteSpace:"pre-wrap"},"data-node-view-content":""})}}),io=y.defineComponent({name:"NodeViewWrapper",props:{as:{type:String,default:"div"}},inject:["onDragStart","decorationClasses"],render(){var n,e;return y.h(this.as,{class:this.decorationClasses,style:{whiteSpace:"normal"},"data-node-view-wrapper":"",onDragstart:this.onDragStart},(e=(n=this.$slots).default)===null||e===void 0?void 0:e.call(n))}});class r7{constructor(e,{props:t={},editor:r}){if(this.id=Math.floor(Math.random()*4294967295).toString(),this.editor=r,this.component=y.markRaw(e),this.teleportElement=document.createElement("div"),this.element=this.teleportElement,this.props=y.reactive(t),this.editor.vueRenderers.set(this.id,this),this.editor.contentComponent){if(this.editor.contentComponent.update(),this.teleportElement.children.length!==1)throw Error("VueRenderer doesn’t support multiple child elements.");this.element=this.teleportElement.firstElementChild}}get ref(){var e;return(e=this.editor.contentComponent)===null||e===void 0?void 0:e.refs[this.id]}updateProps(e={}){Object.entries(e).forEach(([t,r])=>{this.props[t]=r})}destroy(){this.editor.vueRenderers.delete(this.id)}}class i7 extends v8{mount(){const e={editor:this.editor,node:this.node,decorations:this.decorations,selected:!1,extension:this.extension,getPos:()=>this.getPos(),updateAttributes:(i={})=>this.updateAttributes(i),deleteNode:()=>this.deleteNode()},t=this.onDragStart.bind(this);this.decorationClasses=y.ref(this.getDecorationClasses());const r=y.defineComponent({extends:{...this.component},props:Object.keys(e),template:this.component.template,setup:i=>{var o,s;return y.provide("onDragStart",t),y.provide("decorationClasses",this.decorationClasses),(s=(o=this.component).setup)===null||s===void 0?void 0:s.call(o,i,{expose:()=>{}})},__scopeId:this.component.__scopeId,__cssModules:this.component.__cssModules,__name:this.component.__name,__file:this.component.__file});this.renderer=new r7(r,{editor:this.editor,props:e})}get dom(){if(!this.renderer.element.hasAttribute("data-node-view-wrapper"))throw Error("Please use the NodeViewWrapper component for your node view.");return this.renderer.element}get contentDOM(){return this.node.isLeaf?null:this.dom.querySelector("[data-node-view-content]")||this.dom}update(e,t){const r=i=>{this.decorationClasses.value=this.getDecorationClasses(),this.renderer.updateProps(i)};if(typeof this.options.update=="function"){const i=this.node,o=this.decorations;return this.node=e,this.decorations=t,this.options.update({oldNode:i,oldDecorations:o,newNode:e,newDecorations:t,updateProps:()=>r({node:e,decorations:t})})}return e.type!==this.node.type?!1:(e===this.node&&this.decorations===t||(this.node=e,this.decorations=t,r({node:e,decorations:t})),!0)}selectNode(){this.renderer.updateProps({selected:!0}),this.renderer.element.classList.add("ProseMirror-selectednode")}deselectNode(){this.renderer.updateProps({selected:!1}),this.renderer.element.classList.remove("ProseMirror-selectednode")}getDecorationClasses(){return this.decorations.map(e=>e.type.attrs.class).flat().join(" ")}destroy(){this.renderer.destroy()}}function vi(n,e){return t=>t.editor.contentComponent?new i7(n,t,e):{}}function Jb(n){const{state:e,transaction:t}=n;let{selection:r}=t,{doc:i}=t,{storedMarks:o}=t;return{...e,apply:e.apply.bind(e),applyTransaction:e.applyTransaction.bind(e),plugins:e.plugins,schema:e.schema,reconfigure:e.reconfigure.bind(e),toJSON:e.toJSON.bind(e),get storedMarks(){return o},get selection(){return r},get doc(){return i},get tr(){return r=t.selection,i=t.doc,o=t.storedMarks,t}}}class o7{constructor(e){this.editor=e.editor,this.rawCommands=this.editor.extensionManager.commands,this.customState=e.state}get hasCustomState(){return!!this.customState}get state(){return this.customState||this.editor.state}get commands(){const{rawCommands:e,editor:t,state:r}=this,{view:i}=t,{tr:o}=r,s=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const h=l(...u)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),h}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,t=!0){const{rawCommands:r,editor:i,state:o}=this,{view:s}=i,a=[],l=!!e,c=e||o.tr,u=()=>(!l&&t&&!c.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(c),a.every(g=>g===!0)),h={...Object.fromEntries(Object.entries(r).map(([g,b])=>[g,(...v)=>{const w=this.buildProps(c,t),S=b(...v)(w);return a.push(S),h}])),run:u};return h}createCan(e){const{rawCommands:t,state:r}=this,i=!1,o=e||r.tr,s=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(t).map(([l,c])=>[l,(...u)=>c(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(e,t=!0){const{rawCommands:r,editor:i,state:o}=this,{view:s}=i,a={tr:e,editor:i,view:s,state:Jb({state:o,transaction:e}),dispatch:t?()=>{}:void 0,chain:()=>this.createChain(e,t),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(r).map(([l,c])=>[l,(...u)=>c(...u)(a)]))}};return a}}function bn(n,e,t){return n.config[e]===void 0&&n.parent?bn(n.parent,e,t):typeof n.config[e]=="function"?n.config[e].bind({...t,parent:n.parent?bn(n.parent,e,t):null}):n.config[e]}function s7(n){const e=n.filter(i=>i.type==="extension"),t=n.filter(i=>i.type==="node"),r=n.filter(i=>i.type==="mark");return{baseExtensions:e,nodeExtensions:t,markExtensions:r}}function _n(n,e){if(typeof n=="string"){if(!e.nodes[n])throw Error(`There is no node type named '${n}'. Maybe you forgot to add the extension?`);return e.nodes[n]}return n}function Rn(...n){return n.filter(e=>!!e).reduce((e,t)=>{const r={...e};return Object.entries(t).forEach(([i,o])=>{if(!r[i]){r[i]=o;return}if(i==="class"){const a=o?String(o).split(" "):[],l=r[i]?r[i].split(" "):[],c=a.filter(u=>!l.includes(u));r[i]=[...l,...c].join(" ")}else if(i==="style"){const a=o?o.split(";").map(u=>u.trim()).filter(Boolean):[],l=r[i]?r[i].split(";").map(u=>u.trim()).filter(Boolean):[],c=new Map;l.forEach(u=>{const[h,g]=u.split(":").map(b=>b.trim());c.set(h,g)}),a.forEach(u=>{const[h,g]=u.split(":").map(b=>b.trim());c.set(h,g)}),r[i]=Array.from(c.entries()).map(([u,h])=>`${u}: ${h}`).join("; ")}else r[i]=o}),r},{})}function a7(n){return typeof n=="function"}function nn(n,e=void 0,...t){return a7(n)?e?n.bind(e)(...t):n(...t):n}function l7(n){return Object.prototype.toString.call(n)==="[object RegExp]"}class El{constructor(e){this.find=e.find,this.handler=e.handler}}function c7(n){return Object.prototype.toString.call(n).slice(8,-1)}function Cl(n){return c7(n)!=="Object"?!1:n.constructor===Object&&Object.getPrototypeOf(n)===Object.prototype}function Tl(n,e){const t={...n};return Cl(n)&&Cl(e)&&Object.keys(e).forEach(r=>{Cl(e[r])&&Cl(n[r])?t[r]=Tl(n[r],e[r]):t[r]=e[r]}),t}class oo{constructor(e={}){this.type="mark",this.name="mark",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=nn(bn(this,"addOptions",{name:this.name}))),this.storage=nn(bn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new oo(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Tl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new oo(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=nn(bn(t,"addOptions",{name:t.name})),t.storage=nn(bn(t,"addStorage",{name:t.name,options:t.options})),t}static handleExit({editor:e,mark:t}){const{tr:r}=e.state,i=e.state.selection.$from;if(i.pos===i.end()){const s=i.marks();if(!!!s.find(c=>(c==null?void 0:c.type.name)===t.name))return!1;const l=s.find(c=>(c==null?void 0:c.type.name)===t.name);return l&&r.removeStoredMark(l),r.insertText(" ",i.pos),e.view.dispatch(r),!0}return!1}}class u7{constructor(e){this.find=e.find,this.handler=e.handler}}class Cn{constructor(e={}){this.type="extension",this.name="extension",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=nn(bn(this,"addOptions",{name:this.name}))),this.storage=nn(bn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new Cn(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Tl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new Cn({...this.config,...e});return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=nn(bn(t,"addOptions",{name:t.name})),t.storage=nn(bn(t,"addStorage",{name:t.name,options:t.options})),t}}function d7(n,e,t){const{from:r,to:i}=e,{blockSeparator:o=`
110
+
111
+ `,textSerializers:s={}}=t||{};let a="";return n.nodesBetween(r,i,(l,c,u,h)=>{var g;l.isBlock&&c>r&&(a+=o);const b=s==null?void 0:s[l.type.name];if(b)return u&&(a+=b({node:l,pos:c,parent:u,index:h,range:e})),!1;l.isText&&(a+=(g=l==null?void 0:l.text)===null||g===void 0?void 0:g.slice(Math.max(r,c)-c,i-c))}),a}function h7(n){return Object.fromEntries(Object.entries(n.nodes).filter(([,e])=>e.spec.toText).map(([e,t])=>[e,t.spec.toText]))}Cn.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new _t({key:new At("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:n}=this,{state:e,schema:t}=n,{doc:r,selection:i}=e,{ranges:o}=i,s=Math.min(...o.map(u=>u.$from.pos)),a=Math.max(...o.map(u=>u.$to.pos)),l=h7(t);return d7(r,{from:s,to:a},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:l})}}})]}});const f7=()=>({editor:n,view:e})=>(requestAnimationFrame(()=>{var t;n.isDestroyed||(e.dom.blur(),(t=window==null?void 0:window.getSelection())===null||t===void 0||t.removeAllRanges())}),!0),p7=(n=!1)=>({commands:e})=>e.setContent("",n),m7=()=>({state:n,tr:e,dispatch:t})=>{const{selection:r}=e,{ranges:i}=r;return t&&i.forEach(({$from:o,$to:s})=>{n.doc.nodesBetween(o.pos,s.pos,(a,l)=>{if(a.type.isText)return;const{doc:c,mapping:u}=e,h=c.resolve(u.map(l)),g=c.resolve(u.map(l+a.nodeSize)),b=h.blockRange(g);if(!b)return;const p=Ui(b);if(a.type.isTextblock){const{defaultType:v}=h.parent.contentMatchAt(h.index());e.setNodeMarkup(b.start,v)}(p||p===0)&&e.lift(b,p)})}),!0},g7=n=>e=>n(e),b7=()=>({state:n,dispatch:e})=>f0(n,e),_7=(n,e)=>({editor:t,tr:r})=>{const{state:i}=t,o=i.doc.slice(n.from,n.to);r.deleteRange(n.from,n.to);const s=r.mapping.map(e);return r.insert(s,o.content),r.setSelection(new Ne(r.doc.resolve(s-1))),!0},y7=()=>({tr:n,dispatch:e})=>{const{selection:t}=n,r=t.$anchor.node();if(r.content.size>0)return!1;const i=n.selection.$anchor;for(let o=i.depth;o>0;o-=1)if(i.node(o).type===r.type){if(e){const a=i.before(o),l=i.after(o);n.delete(a,l).scrollIntoView()}return!0}return!1},v7=n=>({tr:e,state:t,dispatch:r})=>{const i=_n(n,t.schema),o=e.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===i){if(r){const l=o.before(s),c=o.after(s);e.delete(l,c).scrollIntoView()}return!0}return!1},w7=n=>({tr:e,dispatch:t})=>{const{from:r,to:i}=n;return t&&e.delete(r,i),!0},x7=()=>({state:n,dispatch:e})=>ol(n,e),k7=()=>({commands:n})=>n.keyboardShortcut("Enter"),S7=()=>({state:n,dispatch:e})=>N1(n,e);function Al(n,e,t={strict:!0}){const r=Object.keys(e);return r.length?r.every(i=>t.strict?e[i]===n[i]:l7(e[i])?e[i].test(n[i]):e[i]===n[i]):!0}function e_(n,e,t={}){return n.find(r=>r.type===e&&Al(Object.fromEntries(Object.keys(t).map(i=>[i,r.attrs[i]])),t))}function t_(n,e,t={}){return!!e_(n,e,t)}function Y0(n,e,t){var r;if(!n||!e)return;let i=n.parent.childAfter(n.parentOffset);if((!i.node||!i.node.marks.some(u=>u.type===e))&&(i=n.parent.childBefore(n.parentOffset)),!i.node||!i.node.marks.some(u=>u.type===e)||(t=t||((r=i.node.marks[0])===null||r===void 0?void 0:r.attrs),!e_([...i.node.marks],e,t)))return;let s=i.index,a=n.start()+i.offset,l=s+1,c=a+i.node.nodeSize;for(;s>0&&t_([...n.parent.child(s-1).marks],e,t);)s-=1,a-=n.parent.child(s).nodeSize;for(;l<n.parent.childCount&&t_([...n.parent.child(l).marks],e,t);)c+=n.parent.child(l).nodeSize,l+=1;return{from:a,to:c}}function wi(n,e){if(typeof n=="string"){if(!e.marks[n])throw Error(`There is no mark type named '${n}'. Maybe you forgot to add the extension?`);return e.marks[n]}return n}const E7=(n,e={})=>({tr:t,state:r,dispatch:i})=>{const o=wi(n,r.schema),{doc:s,selection:a}=t,{$from:l,from:c,to:u}=a;if(i){const h=Y0(l,o,e);if(h&&h.from<=c&&h.to>=u){const g=Ne.create(s,h.from,h.to);t.setSelection(g)}}return!0},C7=n=>e=>{const t=typeof n=="function"?n(e):n;for(let r=0;r<t.length;r+=1)if(t[r](e))return!0;return!1};function n_(n){return n instanceof Ne}function so(n=0,e=0,t=0){return Math.min(Math.max(n,e),t)}function T7(n,e=null){if(!e)return null;const t=Fe.atStart(n),r=Fe.atEnd(n);if(e==="start"||e===!0)return t;if(e==="end")return r;const i=t.from,o=r.to;return e==="all"?Ne.create(n,so(0,i,o),so(n.content.size,i,o)):Ne.create(n,so(e,i,o),so(e,i,o))}function A7(){return navigator.platform==="Android"||/android/i.test(navigator.userAgent)}function Z0(){return["iPad Simulator","iPhone Simulator","iPod Simulator","iPad","iPhone","iPod"].includes(navigator.platform)||navigator.userAgent.includes("Mac")&&"ontouchend"in document}const M7=(n=null,e={})=>({editor:t,view:r,tr:i,dispatch:o})=>{e={scrollIntoView:!0,...e};const s=()=>{(Z0()||A7())&&r.dom.focus(),requestAnimationFrame(()=>{t.isDestroyed||(r.focus(),e!=null&&e.scrollIntoView&&t.commands.scrollIntoView())})};if(r.hasFocus()&&n===null||n===!1)return!0;if(o&&n===null&&!n_(t.state.selection))return s(),!0;const a=T7(i.doc,n)||t.state.selection,l=t.state.selection.eq(a);return o&&(l||i.setSelection(a),l&&i.storedMarks&&i.setStoredMarks(i.storedMarks),s()),!0},N7=(n,e)=>t=>n.every((r,i)=>e(r,{...t,index:i})),D7=(n,e)=>({tr:t,commands:r})=>r.insertContentAt({from:t.selection.from,to:t.selection.to},n,e),r_=n=>{const e=n.childNodes;for(let t=e.length-1;t>=0;t-=1){const r=e[t];r.nodeType===3&&r.nodeValue&&/^(\n\s\s|\n)$/.test(r.nodeValue)?n.removeChild(r):r.nodeType===1&&r_(r)}return n};function Ml(n){const e=`<body>${n}</body>`,t=new window.DOMParser().parseFromString(e,"text/html").body;return r_(t)}function Qs(n,e,t){if(n instanceof si||n instanceof le)return n;t={slice:!0,parseOptions:{},...t};const r=typeof n=="object"&&n!==null,i=typeof n=="string";if(r)try{if(Array.isArray(n)&&n.length>0)return le.fromArray(n.map(a=>e.nodeFromJSON(a)));const s=e.nodeFromJSON(n);return t.errorOnInvalidContent&&s.check(),s}catch(o){if(t.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:o});return console.warn("[tiptap warn]: Invalid content.","Passed value:",n,"Error:",o),Qs("",e,t)}if(i){if(t.errorOnInvalidContent){let s=!1,a="";const l=new Mm({topNode:e.spec.topNode,marks:e.spec.marks,nodes:e.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(s=!0,a=typeof c=="string"?c:c.outerHTML,null)}]}})});if(t.slice?qi.fromSchema(l).parseSlice(Ml(n),t.parseOptions):qi.fromSchema(l).parse(Ml(n),t.parseOptions),t.errorOnInvalidContent&&s)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${a}`)})}const o=qi.fromSchema(e);return t.slice?o.parseSlice(Ml(n),t.parseOptions).content:o.parse(Ml(n),t.parseOptions)}return Qs("",e,t)}function R7(n,e,t){const r=n.steps.length-1;if(r<e)return;const i=n.steps[r];if(!(i instanceof en||i instanceof tn))return;const o=n.mapping.maps[r];let s=0;o.forEach((a,l,c,u)=>{s===0&&(s=u)}),n.setSelection(Fe.near(n.doc.resolve(s),t))}const O7=n=>!("type"in n),I7=(n,e,t)=>({tr:r,dispatch:i,editor:o})=>{var s;if(i){t={parseOptions:o.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...t};let a;const l=w=>{o.emit("contentError",{editor:o,error:w,disableCollaboration:()=>{o.storage.collaboration&&(o.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...t.parseOptions};if(!t.errorOnInvalidContent&&!o.options.enableContentCheck&&o.options.emitContentError)try{Qs(e,o.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(w){l(w)}try{a=Qs(e,o.schema,{parseOptions:c,errorOnInvalidContent:(s=t.errorOnInvalidContent)!==null&&s!==void 0?s:o.options.enableContentCheck})}catch(w){return l(w),!1}let{from:u,to:h}=typeof n=="number"?{from:n,to:n}:{from:n.from,to:n.to},g=!0,b=!0;if((O7(a)?a:[a]).forEach(w=>{w.check(),g=g?w.isText&&w.marks.length===0:!1,b=b?w.isBlock:!1}),u===h&&b){const{parent:w}=r.doc.resolve(u);w.isTextblock&&!w.type.spec.code&&!w.childCount&&(u-=1,h+=1)}let v;if(g){if(Array.isArray(e))v=e.map(w=>w.text||"").join("");else if(e instanceof le){let w="";e.forEach(S=>{S.text&&(w+=S.text)}),v=w}else typeof e=="object"&&e&&e.text?v=e.text:v=e;r.insertText(v,u,h)}else v=a,r.replaceWith(u,h,v);t.updateSelection&&R7(r,r.steps.length-1,-1),t.applyInputRules&&r.setMeta("applyInputRules",{from:u,text:v}),t.applyPasteRules&&r.setMeta("applyPasteRules",{from:u,text:v})}return!0},L7=()=>({state:n,dispatch:e})=>T1(n,e),B7=()=>({state:n,dispatch:e})=>A1(n,e),P7=()=>({state:n,dispatch:e})=>o0(n,e),F7=()=>({state:n,dispatch:e})=>l0(n,e),z7=()=>({state:n,dispatch:e,tr:t})=>{try{const r=Eo(n.doc,n.selection.$from.pos,-1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}},q7=()=>({state:n,dispatch:e,tr:t})=>{try{const r=Eo(n.doc,n.selection.$from.pos,1);return r==null?!1:(t.join(r,2),e&&e(t),!0)}catch{return!1}},H7=()=>({state:n,dispatch:e})=>k1(n,e),V7=()=>({state:n,dispatch:e})=>S1(n,e);function i_(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function U7(n){const e=n.split(/-(?!$)/);let t=e[e.length-1];t==="Space"&&(t=" ");let r,i,o,s;for(let a=0;a<e.length-1;a+=1){const l=e[a];if(/^(cmd|meta|m)$/i.test(l))s=!0;else if(/^a(lt)?$/i.test(l))r=!0;else if(/^(c|ctrl|control)$/i.test(l))i=!0;else if(/^s(hift)?$/i.test(l))o=!0;else if(/^mod$/i.test(l))Z0()||i_()?s=!0:i=!0;else throw new Error(`Unrecognized modifier name: ${l}`)}return r&&(t=`Alt-${t}`),i&&(t=`Ctrl-${t}`),s&&(t=`Meta-${t}`),o&&(t=`Shift-${t}`),t}const G7=n=>({editor:e,view:t,tr:r,dispatch:i})=>{const o=U7(n).split(/-(?!$)/),s=o.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),a=new KeyboardEvent("keydown",{key:s==="Space"?" ":s,altKey:o.includes("Alt"),ctrlKey:o.includes("Ctrl"),metaKey:o.includes("Meta"),shiftKey:o.includes("Shift"),bubbles:!0,cancelable:!0}),l=e.captureTransaction(()=>{t.someProp("handleKeyDown",c=>c(t,a))});return l==null||l.steps.forEach(c=>{const u=c.map(r.mapping);u&&i&&r.maybeStep(u)}),!0};function X0(n,e,t={}){const{from:r,to:i,empty:o}=n.selection,s=e?_n(e,n.schema):null,a=[];n.doc.nodesBetween(r,i,(h,g)=>{if(h.isText)return;const b=Math.max(r,g),p=Math.min(i,g+h.nodeSize);a.push({node:h,from:b,to:p})});const l=i-r,c=a.filter(h=>s?s.name===h.node.type.name:!0).filter(h=>Al(h.node.attrs,t,{strict:!1}));return o?!!c.length:c.reduce((h,g)=>h+g.to-g.from,0)>=l}const $7=(n,e={})=>({state:t,dispatch:r})=>{const i=_n(n,t.schema);return X0(t,i,e)?M1(t,r):!1},W7=()=>({state:n,dispatch:e})=>p0(n,e),K7=n=>({state:e,dispatch:t})=>{const r=_n(n,e.schema);return F1(r)(e,t)},j7=()=>({state:n,dispatch:e})=>d0(n,e);function o_(n,e){return e.nodes[n]?"node":e.marks[n]?"mark":null}function s_(n,e){const t=typeof e=="string"?[e]:e;return Object.keys(n).reduce((r,i)=>(t.includes(i)||(r[i]=n[i]),r),{})}const Q7=(n,e)=>({tr:t,state:r,dispatch:i})=>{let o=null,s=null;const a=o_(typeof n=="string"?n:n.name,r.schema);return a?(a==="node"&&(o=_n(n,r.schema)),a==="mark"&&(s=wi(n,r.schema)),i&&t.selection.ranges.forEach(l=>{r.doc.nodesBetween(l.$from.pos,l.$to.pos,(c,u)=>{o&&o===c.type&&t.setNodeMarkup(u,void 0,s_(c.attrs,e)),s&&c.marks.length&&c.marks.forEach(h=>{s===h.type&&t.addMark(u,u+c.nodeSize,s.create(s_(h.attrs,e)))})})}),!0):!1},Y7=()=>({tr:n,dispatch:e})=>(e&&n.scrollIntoView(),!0),Z7=()=>({tr:n,dispatch:e})=>{if(e){const t=new qn(n.doc);n.setSelection(t)}return!0},X7=()=>({state:n,dispatch:e})=>s0(n,e),J7=()=>({state:n,dispatch:e})=>c0(n,e),eE=()=>({state:n,dispatch:e})=>D1(n,e),tE=()=>({state:n,dispatch:e})=>L1(n,e),nE=()=>({state:n,dispatch:e})=>I1(n,e);function rE(n,e,t={},r={}){return Qs(n,e,{slice:!1,parseOptions:t,errorOnInvalidContent:r.errorOnInvalidContent})}const iE=(n,e=!1,t={},r={})=>({editor:i,tr:o,dispatch:s,commands:a})=>{var l,c;const{doc:u}=o;if(t.preserveWhitespace!=="full"){const h=rE(n,i.schema,t,{errorOnInvalidContent:(l=r.errorOnInvalidContent)!==null&&l!==void 0?l:i.options.enableContentCheck});return s&&o.replaceWith(0,u.content.size,h).setMeta("preventUpdate",!e),!0}return s&&o.setMeta("preventUpdate",!e),a.insertContentAt({from:0,to:u.content.size},n,{parseOptions:t,errorOnInvalidContent:(c=r.errorOnInvalidContent)!==null&&c!==void 0?c:i.options.enableContentCheck})};function oE(n,e){const t=wi(e,n.schema),{from:r,to:i,empty:o}=n.selection,s=[];o?(n.storedMarks&&s.push(...n.storedMarks),s.push(...n.selection.$head.marks())):n.doc.nodesBetween(r,i,l=>{s.push(...l.marks)});const a=s.find(l=>l.type.name===t.name);return a?{...a.attrs}:{}}function sE(n){for(let e=0;e<n.edgeCount;e+=1){const{type:t}=n.edge(e);if(t.isTextblock&&!t.hasRequiredAttrs())return t}return null}function aE(n,e){for(let t=n.depth;t>0;t-=1){const r=n.node(t);if(e(r))return{pos:t>0?n.before(t):0,start:n.start(t),depth:t,node:r}}}function J0(n){return e=>aE(e.$from,n)}function a_(n,e,t){const r=[];return n===e?t.resolve(n).marks().forEach(i=>{const o=t.resolve(n),s=Y0(o,i.type);s&&r.push({mark:i,...s})}):t.nodesBetween(n,e,(i,o)=>{!i||(i==null?void 0:i.nodeSize)===void 0||r.push(...i.marks.map(s=>({from:o,to:o+i.nodeSize,mark:s})))}),r}function Nl(n,e,t){return Object.fromEntries(Object.entries(t).filter(([r])=>{const i=n.find(o=>o.type===e&&o.name===r);return i?i.attribute.keepOnSplit:!1}))}function lE(n,e,t={}){const{empty:r,ranges:i}=n.selection,o=e?wi(e,n.schema):null;if(r)return!!(n.storedMarks||n.selection.$from.marks()).filter(h=>o?o.name===h.type.name:!0).find(h=>Al(h.attrs,t,{strict:!1}));let s=0;const a=[];if(i.forEach(({$from:h,$to:g})=>{const b=h.pos,p=g.pos;n.doc.nodesBetween(b,p,(v,w)=>{if(!v.isText&&!v.marks.length)return;const S=Math.max(b,w),C=Math.min(p,w+v.nodeSize),E=C-S;s+=E,a.push(...v.marks.map(A=>({mark:A,from:S,to:C})))})}),s===0)return!1;const l=a.filter(h=>o?o.name===h.mark.type.name:!0).filter(h=>Al(h.mark.attrs,t,{strict:!1})).reduce((h,g)=>h+g.to-g.from,0),c=a.filter(h=>o?h.mark.type!==o&&h.mark.type.excludes(o):!0).reduce((h,g)=>h+g.to-g.from,0);return(l>0?l+c:l)>=s}function l_(n,e){const{nodeExtensions:t}=s7(e),r=t.find(s=>s.name===n);if(!r)return!1;const i={name:r.name,options:r.options,storage:r.storage},o=nn(bn(r,"group",i));return typeof o!="string"?!1:o.split(" ").includes("list")}function c_(n,{checkChildren:e=!0,ignoreWhitespace:t=!1}={}){var r;if(t){if(n.type.name==="hardBreak")return!0;if(n.isText)return/^\s*$/m.test((r=n.text)!==null&&r!==void 0?r:"")}if(n.isText)return!n.text;if(n.isAtom||n.isLeaf)return!1;if(n.content.childCount===0)return!0;if(e){let i=!0;return n.content.forEach(o=>{i!==!1&&(c_(o,{ignoreWhitespace:t,checkChildren:e})||(i=!1))}),i}return!1}function cE(n){return n instanceof Oe}function uE(n,e,t){var r;const{selection:i}=e;let o=null;if(n_(i)&&(o=i.$cursor),o){const a=(r=n.storedMarks)!==null&&r!==void 0?r:o.marks();return!!t.isInSet(a)||!a.some(l=>l.type.excludes(t))}const{ranges:s}=i;return s.some(({$from:a,$to:l})=>{let c=a.depth===0?n.doc.inlineContent&&n.doc.type.allowsMarkType(t):!1;return n.doc.nodesBetween(a.pos,l.pos,(u,h,g)=>{if(c)return!1;if(u.isInline){const b=!g||g.type.allowsMarkType(t),p=!!t.isInSet(u.marks)||!u.marks.some(v=>v.type.excludes(t));c=b&&p}return!c}),c})}const dE=(n,e={})=>({tr:t,state:r,dispatch:i})=>{const{selection:o}=t,{empty:s,ranges:a}=o,l=wi(n,r.schema);if(i)if(s){const c=oE(r,l);t.addStoredMark(l.create({...c,...e}))}else a.forEach(c=>{const u=c.$from.pos,h=c.$to.pos;r.doc.nodesBetween(u,h,(g,b)=>{const p=Math.max(b,u),v=Math.min(b+g.nodeSize,h);g.marks.find(S=>S.type===l)?g.marks.forEach(S=>{l===S.type&&t.addMark(p,v,l.create({...S.attrs,...e}))}):t.addMark(p,v,l.create(e))})});return uE(r,t,l)},hE=(n,e)=>({tr:t})=>(t.setMeta(n,e),!0),fE=(n,e={})=>({state:t,dispatch:r,chain:i})=>{const o=_n(n,t.schema);let s;return t.selection.$anchor.sameParent(t.selection.$head)&&(s=t.selection.$anchor.parent.attrs),o.isTextblock?i().command(({commands:a})=>sl(o,{...s,...e})(t)?!0:a.clearNodes()).command(({state:a})=>sl(o,{...s,...e})(a,r)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},pE=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,i=so(n,0,r.content.size),o=Oe.create(r,i);e.setSelection(o)}return!0},mE=n=>({tr:e,dispatch:t})=>{if(t){const{doc:r}=e,{from:i,to:o}=typeof n=="number"?{from:n,to:n}:n,s=Ne.atStart(r).from,a=Ne.atEnd(r).to,l=so(i,s,a),c=so(o,s,a),u=Ne.create(r,l,c);e.setSelection(u)}return!0},gE=n=>({state:e,dispatch:t})=>{const r=_n(n,e.schema);return z1(r)(e,t)};function u_(n,e){const t=n.storedMarks||n.selection.$to.parentOffset&&n.selection.$from.marks();if(t){const r=t.filter(i=>e==null?void 0:e.includes(i.type.name));n.tr.ensureMarks(r)}}const bE=({keepMarks:n=!0}={})=>({tr:e,state:t,dispatch:r,editor:i})=>{const{selection:o,doc:s}=e,{$from:a,$to:l}=o,c=i.extensionManager.attributes,u=Nl(c,a.node().type.name,a.node().attrs);if(o instanceof Oe&&o.node.isBlock)return!a.parentOffset||!zn(s,a.pos)?!1:(r&&(n&&u_(t,i.extensionManager.splittableMarks),e.split(a.pos).scrollIntoView()),!0);if(!a.parent.isBlock)return!1;const h=l.parentOffset===l.parent.content.size,g=a.depth===0?void 0:sE(a.node(-1).contentMatchAt(a.indexAfter(-1)));let b=h&&g?[{type:g,attrs:u}]:void 0,p=zn(e.doc,e.mapping.map(a.pos),1,b);if(!b&&!p&&zn(e.doc,e.mapping.map(a.pos),1,g?[{type:g}]:void 0)&&(p=!0,b=g?[{type:g,attrs:u}]:void 0),r){if(p&&(o instanceof Ne&&e.deleteSelection(),e.split(e.mapping.map(a.pos),1,b),g&&!h&&!a.parentOffset&&a.parent.type!==g)){const v=e.mapping.map(a.before()),w=e.doc.resolve(v);a.node(-1).canReplaceWith(w.index(),w.index()+1,g)&&e.setNodeMarkup(e.mapping.map(a.before()),g)}n&&u_(t,i.extensionManager.splittableMarks),e.scrollIntoView()}return p},_E=(n,e={})=>({tr:t,state:r,dispatch:i,editor:o})=>{var s;const a=_n(n,r.schema),{$from:l,$to:c}=r.selection,u=r.selection.node;if(u&&u.isBlock||l.depth<2||!l.sameParent(c))return!1;const h=l.node(-1);if(h.type!==a)return!1;const g=o.extensionManager.attributes;if(l.parent.content.size===0&&l.node(-1).childCount===l.indexAfter(-1)){if(l.depth===2||l.node(-3).type!==a||l.index(-2)!==l.node(-2).childCount-1)return!1;if(i){let S=le.empty;const C=l.index(-1)?1:l.index(-2)?2:3;for(let q=l.depth-C;q>=l.depth-3;q-=1)S=le.from(l.node(q).copy(S));const E=l.indexAfter(-1)<l.node(-2).childCount?1:l.indexAfter(-2)<l.node(-3).childCount?2:3,A={...Nl(g,l.node().type.name,l.node().attrs),...e},R=((s=a.contentMatch.defaultType)===null||s===void 0?void 0:s.createAndFill(A))||void 0;S=S.append(le.from(a.createAndFill(null,R)||void 0));const O=l.before(l.depth-(C-1));t.replace(O,l.after(-E),new ve(S,4-C,0));let H=-1;t.doc.nodesBetween(O,t.doc.content.size,(q,U)=>{if(H>-1)return!1;q.isTextblock&&q.content.size===0&&(H=U+1)}),H>-1&&t.setSelection(Ne.near(t.doc.resolve(H))),t.scrollIntoView()}return!0}const b=c.pos===l.end()?h.contentMatchAt(0).defaultType:null,p={...Nl(g,h.type.name,h.attrs),...e},v={...Nl(g,l.node().type.name,l.node().attrs),...e};t.delete(l.pos,c.pos);const w=b?[{type:a,attrs:p},{type:b,attrs:v}]:[{type:a,attrs:p}];if(!zn(t.doc,l.pos,2))return!1;if(i){const{selection:S,storedMarks:C}=r,{splittableMarks:E}=o.extensionManager,A=C||S.$to.parentOffset&&S.$from.marks();if(t.split(l.pos,2,w).scrollIntoView(),!A||!i)return!0;const R=A.filter(O=>E.includes(O.type.name));t.ensureMarks(R)}return!0},ed=(n,e)=>{const t=J0(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(Math.max(0,t.pos-1)).before(t.depth);if(r===void 0)return!0;const i=n.doc.nodeAt(r);return t.node.type===(i==null?void 0:i.type)&&ur(n.doc,t.pos)&&n.join(t.pos),!0},td=(n,e)=>{const t=J0(s=>s.type===e)(n.selection);if(!t)return!0;const r=n.doc.resolve(t.start).after(t.depth);if(r===void 0)return!0;const i=n.doc.nodeAt(r);return t.node.type===(i==null?void 0:i.type)&&ur(n.doc,r)&&n.join(r),!0};var yE=Object.freeze({__proto__:null,blur:f7,clearContent:p7,clearNodes:m7,command:g7,createParagraphNear:b7,cut:_7,deleteCurrentNode:y7,deleteNode:v7,deleteRange:w7,deleteSelection:x7,enter:k7,exitCode:S7,extendMarkRange:E7,first:C7,focus:M7,forEach:N7,insertContent:D7,insertContentAt:I7,joinBackward:P7,joinDown:B7,joinForward:F7,joinItemBackward:z7,joinItemForward:q7,joinTextblockBackward:H7,joinTextblockForward:V7,joinUp:L7,keyboardShortcut:G7,lift:$7,liftEmptyBlock:W7,liftListItem:K7,newlineInCode:j7,resetAttributes:Q7,scrollIntoView:Y7,selectAll:Z7,selectNodeBackward:X7,selectNodeForward:J7,selectParentNode:eE,selectTextblockEnd:tE,selectTextblockStart:nE,setContent:iE,setMark:dE,setMeta:hE,setNode:fE,setNodeSelection:pE,setTextSelection:mE,sinkListItem:gE,splitBlock:bE,splitListItem:_E,toggleList:(n,e,t,r={})=>({editor:i,tr:o,state:s,dispatch:a,chain:l,commands:c,can:u})=>{const{extensions:h,splittableMarks:g}=i.extensionManager,b=_n(n,s.schema),p=_n(e,s.schema),{selection:v,storedMarks:w}=s,{$from:S,$to:C}=v,E=S.blockRange(C),A=w||v.$to.parentOffset&&v.$from.marks();if(!E)return!1;const R=J0(O=>l_(O.type.name,h))(v);if(E.depth>=1&&R&&E.depth-R.depth<=1){if(R.node.type===b)return c.liftListItem(p);if(l_(R.node.type.name,h)&&b.validContent(R.node.content)&&a)return l().command(()=>(o.setNodeMarkup(R.pos,b),!0)).command(()=>ed(o,b)).command(()=>td(o,b)).run()}return!t||!A||!a?l().command(()=>u().wrapInList(b,r)?!0:c.clearNodes()).wrapInList(b,r).command(()=>ed(o,b)).command(()=>td(o,b)).run():l().command(()=>{const O=u().wrapInList(b,r),H=A.filter(q=>g.includes(q.type.name));return o.ensureMarks(H),O?!0:c.clearNodes()}).wrapInList(b,r).command(()=>ed(o,b)).command(()=>td(o,b)).run()},toggleMark:(n,e={},t={})=>({state:r,commands:i})=>{const{extendEmptyMarkRange:o=!1}=t,s=wi(n,r.schema);return lE(r,s,e)?i.unsetMark(s,{extendEmptyMarkRange:o}):i.setMark(s,e)},toggleNode:(n,e,t={})=>({state:r,commands:i})=>{const o=_n(n,r.schema),s=_n(e,r.schema),a=X0(r,o,t);let l;return r.selection.$anchor.sameParent(r.selection.$head)&&(l=r.selection.$anchor.parent.attrs),a?i.setNode(s,l):i.setNode(o,{...l,...t})},toggleWrap:(n,e={})=>({state:t,commands:r})=>{const i=_n(n,t.schema);return X0(t,i,e)?r.lift(i):r.wrapIn(i,e)},undoInputRule:()=>({state:n,dispatch:e})=>{const t=n.plugins;for(let r=0;r<t.length;r+=1){const i=t[r];let o;if(i.spec.isInputRules&&(o=i.getState(n))){if(e){const s=n.tr,a=o.transform;for(let l=a.steps.length-1;l>=0;l-=1)s.step(a.steps[l].invert(a.docs[l]));if(o.text){const l=s.doc.resolve(o.from).marks();s.replaceWith(o.from,o.to,n.schema.text(o.text,l))}else s.delete(o.from,o.to)}return!0}}return!1},unsetAllMarks:()=>({tr:n,dispatch:e})=>{const{selection:t}=n,{empty:r,ranges:i}=t;return r||e&&i.forEach(o=>{n.removeMark(o.$from.pos,o.$to.pos)}),!0},unsetMark:(n,e={})=>({tr:t,state:r,dispatch:i})=>{var o;const{extendEmptyMarkRange:s=!1}=e,{selection:a}=t,l=wi(n,r.schema),{$from:c,empty:u,ranges:h}=a;if(!i)return!0;if(u&&s){let{from:g,to:b}=a;const p=(o=c.marks().find(w=>w.type===l))===null||o===void 0?void 0:o.attrs,v=Y0(c,l,p);v&&(g=v.from,b=v.to),t.removeMark(g,b,l)}else h.forEach(g=>{t.removeMark(g.$from.pos,g.$to.pos,l)});return t.removeStoredMark(l),!0},updateAttributes:(n,e={})=>({tr:t,state:r,dispatch:i})=>{let o=null,s=null;const a=o_(typeof n=="string"?n:n.name,r.schema);return a?(a==="node"&&(o=_n(n,r.schema)),a==="mark"&&(s=wi(n,r.schema)),i&&t.selection.ranges.forEach(l=>{const c=l.$from.pos,u=l.$to.pos;let h,g,b,p;t.selection.empty?r.doc.nodesBetween(c,u,(v,w)=>{o&&o===v.type&&(b=Math.max(w,c),p=Math.min(w+v.nodeSize,u),h=w,g=v)}):r.doc.nodesBetween(c,u,(v,w)=>{w<c&&o&&o===v.type&&(b=Math.max(w,c),p=Math.min(w+v.nodeSize,u),h=w,g=v),w>=c&&w<=u&&(o&&o===v.type&&t.setNodeMarkup(w,void 0,{...v.attrs,...e}),s&&v.marks.length&&v.marks.forEach(S=>{if(s===S.type){const C=Math.max(w,c),E=Math.min(w+v.nodeSize,u);t.addMark(C,E,s.create({...S.attrs,...e}))}}))}),g&&(h!==void 0&&t.setNodeMarkup(h,void 0,{...g.attrs,...e}),s&&g.marks.length&&g.marks.forEach(v=>{s===v.type&&t.addMark(b,p,s.create({...v.attrs,...e}))}))}),!0):!1},wrapIn:(n,e={})=>({state:t,dispatch:r})=>{const i=_n(n,t.schema);return B1(i,e)(t,r)},wrapInList:(n,e={})=>({state:t,dispatch:r})=>{const i=_n(n,t.schema);return P1(i,e)(t,r)}});Cn.create({name:"commands",addCommands(){return{...yE}}}),Cn.create({name:"drop",addProseMirrorPlugins(){return[new _t({key:new At("tiptapDrop"),props:{handleDrop:(n,e,t,r)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:t,moved:r})}}})]}}),Cn.create({name:"editable",addProseMirrorPlugins(){return[new _t({key:new At("editable"),props:{editable:()=>this.editor.options.editable}})]}});const vE=new At("focusEvents");Cn.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:n}=this;return[new _t({key:vE,props:{handleDOMEvents:{focus:(e,t)=>{n.isFocused=!0;const r=n.state.tr.setMeta("focus",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1},blur:(e,t)=>{n.isFocused=!1;const r=n.state.tr.setMeta("blur",{event:t}).setMeta("addToHistory",!1);return e.dispatch(r),!1}}}})]}}),Cn.create({name:"keymap",addKeyboardShortcuts(){const n=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:c}=a,{empty:u,$anchor:h}=l,{pos:g,parent:b}=h,p=h.parent.isTextblock&&g>0?a.doc.resolve(g-1):h,v=p.parent.type.spec.isolating,w=h.pos-h.parentOffset,S=v&&p.parent.childCount===1?w===h.pos:Fe.atStart(c).from===g;return!u||!b.type.isTextblock||b.textContent.length||!S||S&&h.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),e=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),r={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:n,"Mod-Backspace":n,"Shift-Backspace":n,Delete:e,"Mod-Delete":e,"Mod-a":()=>this.editor.commands.selectAll()},i={...r},o={...r,"Ctrl-h":n,"Alt-Backspace":n,"Ctrl-d":e,"Ctrl-Alt-Backspace":e,"Alt-Delete":e,"Alt-d":e,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return Z0()||i_()?o:i},addProseMirrorPlugins(){return[new _t({key:new At("clearDocument"),appendTransaction:(n,e,t)=>{if(n.some(v=>v.getMeta("composition")))return;const r=n.some(v=>v.docChanged)&&!e.doc.eq(t.doc),i=n.some(v=>v.getMeta("preventClearDocument"));if(!r||i)return;const{empty:o,from:s,to:a}=e.selection,l=Fe.atStart(e.doc).from,c=Fe.atEnd(e.doc).to;if(o||!(s===l&&a===c)||!c_(t.doc))return;const g=t.tr,b=Jb({state:t,transaction:g}),{commands:p}=new o7({editor:this.editor,state:b});if(p.clearNodes(),!!g.steps.length)return g}})]}}),Cn.create({name:"paste",addProseMirrorPlugins(){return[new _t({key:new At("tiptapPaste"),props:{handlePaste:(n,e,t)=>{this.editor.emit("paste",{editor:this.editor,event:e,slice:t})}}})]}}),Cn.create({name:"tabindex",addProseMirrorPlugins(){return[new _t({key:new At("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}});function Uo(n){return new El({find:n.find,handler:({state:e,range:t,match:r})=>{const i=nn(n.getAttributes,void 0,r);if(i===!1||i===null)return null;const{tr:o}=e,s=r[r.length-1],a=r[0];if(s){const l=a.search(/\S/),c=t.from+a.indexOf(s),u=c+s.length;if(a_(t.from,t.to,e.doc).filter(b=>b.mark.type.excluded.find(v=>v===n.type&&v!==b.mark.type)).filter(b=>b.to>c).length)return null;u<t.to&&o.delete(u,t.to),c>t.from&&o.delete(t.from+l,c);const g=t.from+l+s.length;o.addMark(t.from+l,g,n.type.create(i||{})),o.removeStoredMark(n.type)}}})}function wE(n){return new El({find:n.find,handler:({state:e,range:t,match:r})=>{const i=nn(n.getAttributes,void 0,r)||{},{tr:o}=e,s=t.from;let a=t.to;const l=n.type.create(i);if(r[1]){const c=r[0].lastIndexOf(r[1]);let u=s+c;u>a?u=a:a=u+r[1].length;const h=r[0][r[0].length-1];o.insertText(h,s+r[0].length-1),o.replaceWith(u,a,l)}else if(r[0]){const c=n.type.isInline?s:s-1;o.insert(c,n.type.create(i)).delete(o.mapping.map(s),o.mapping.map(a))}o.scrollIntoView()}})}function nd(n){return new El({find:n.find,handler:({state:e,range:t,match:r})=>{const i=e.doc.resolve(t.from),o=nn(n.getAttributes,void 0,r)||{};if(!i.node(-1).canReplaceWith(i.index(-1),i.indexAfter(-1),n.type))return null;e.tr.delete(t.from,t.to).setBlockType(t.from,t.from,n.type,o)}})}function Ys(n){return new El({find:n.find,handler:({state:e,range:t,match:r,chain:i})=>{const o=nn(n.getAttributes,void 0,r)||{},s=e.tr.delete(t.from,t.to),l=s.doc.resolve(t.from).blockRange(),c=l&&Wa(l,n.type,o);if(!c)return null;if(s.wrap(l,c),n.keepMarks&&n.editor){const{selection:h,storedMarks:g}=e,{splittableMarks:b}=n.editor.extensionManager,p=g||h.$to.parentOffset&&h.$from.marks();if(p){const v=p.filter(w=>b.includes(w.type.name));s.ensureMarks(v)}}if(n.keepAttributes){const h=n.type.name==="bulletList"||n.type.name==="orderedList"?"listItem":"taskList";i().updateAttributes(h,o).run()}const u=s.doc.resolve(t.from-1).nodeBefore;u&&u.type===n.type&&ur(s.doc,t.from-1)&&(!n.joinPredicate||n.joinPredicate(r,u))&&s.join(t.from-1)}})}class On{constructor(e={}){this.type="node",this.name="node",this.parent=null,this.child=null,this.config={name:this.name,defaultOptions:{}},this.config={...this.config,...e},this.name=this.config.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${this.name}".`),this.options=this.config.defaultOptions,this.config.addOptions&&(this.options=nn(bn(this,"addOptions",{name:this.name}))),this.storage=nn(bn(this,"addStorage",{name:this.name,options:this.options}))||{}}static create(e={}){return new On(e)}configure(e={}){const t=this.extend({...this.config,addOptions:()=>Tl(this.options,e)});return t.name=this.name,t.parent=this.parent,t}extend(e={}){const t=new On(e);return t.parent=this,this.child=t,t.name=e.name?e.name:t.parent.name,e.defaultOptions&&Object.keys(e.defaultOptions).length>0&&console.warn(`[tiptap warn]: BREAKING CHANGE: "defaultOptions" is deprecated. Please use "addOptions" instead. Found in extension: "${t.name}".`),t.options=nn(bn(t,"addOptions",{name:t.name})),t.storage=nn(bn(t,"addStorage",{name:t.name,options:t.options})),t}}function Go(n){return new u7({find:n.find,handler:({state:e,range:t,match:r,pasteEvent:i})=>{const o=nn(n.getAttributes,void 0,r,i);if(o===!1||o===null)return null;const{tr:s}=e,a=r[r.length-1],l=r[0];let c=t.to;if(a){const u=l.search(/\S/),h=t.from+l.indexOf(a),g=h+a.length;if(a_(t.from,t.to,e.doc).filter(p=>p.mark.type.excluded.find(w=>w===n.type&&w!==p.mark.type)).filter(p=>p.to>h).length)return null;g<t.to&&s.delete(g,t.to),h>t.from&&s.delete(t.from+u,h),c=t.from+u+a.length,s.addMark(t.from+u,c,n.type.create(o||{})),s.removeStoredMark(n.type)}}})}function xE(n,e){const{selection:t}=n,{$from:r}=t;if(t instanceof Oe){const o=r.index();return r.parent.canReplaceWith(o,o+1,e)}let i=r.depth;for(;i>=0;){const o=r.index(i);if(r.node(i).contentMatchAt(o).matchType(e))return!0;i-=1}return!1}const kE=/^\s*>\s$/,SE=On.create({name:"blockquote",addOptions(){return{HTMLAttributes:{}}},content:"block+",group:"block",defining:!0,parseHTML(){return[{tag:"blockquote"}]},renderHTML({HTMLAttributes:n}){return["blockquote",Rn(this.options.HTMLAttributes,n),0]},addCommands(){return{setBlockquote:()=>({commands:n})=>n.wrapIn(this.name),toggleBlockquote:()=>({commands:n})=>n.toggleWrap(this.name),unsetBlockquote:()=>({commands:n})=>n.lift(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-b":()=>this.editor.commands.toggleBlockquote()}},addInputRules(){return[Ys({find:kE,type:this.type})]}}),EE=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))$/,CE=/(?:^|\s)(\*\*(?!\s+\*\*)((?:[^*]+))\*\*(?!\s+\*\*))/g,TE=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))$/,AE=/(?:^|\s)(__(?!\s+__)((?:[^_]+))__(?!\s+__))/g,ME=oo.create({name:"bold",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"strong"},{tag:"b",getAttrs:n=>n.style.fontWeight!=="normal"&&null},{style:"font-weight=400",clearMark:n=>n.type.name===this.name},{style:"font-weight",getAttrs:n=>/^(bold(er)?|[5-9]\d{2,})$/.test(n)&&null}]},renderHTML({HTMLAttributes:n}){return["strong",Rn(this.options.HTMLAttributes,n),0]},addCommands(){return{setBold:()=>({commands:n})=>n.setMark(this.name),toggleBold:()=>({commands:n})=>n.toggleMark(this.name),unsetBold:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-b":()=>this.editor.commands.toggleBold(),"Mod-B":()=>this.editor.commands.toggleBold()}},addInputRules(){return[Uo({find:EE,type:this.type}),Uo({find:TE,type:this.type})]},addPasteRules(){return[Go({find:CE,type:this.type}),Go({find:AE,type:this.type})]}}),NE="listItem",d_="textStyle",h_=/^\s*([-+*])\s$/,DE=On.create({name:"bulletList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},parseHTML(){return[{tag:"ul"}]},renderHTML({HTMLAttributes:n}){return["ul",Rn(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleBulletList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(NE,this.editor.getAttributes(d_)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-8":()=>this.editor.commands.toggleBulletList()}},addInputRules(){let n=Ys({find:h_,type:this.type});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ys({find:h_,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:()=>this.editor.getAttributes(d_),editor:this.editor})),[n]}}),RE=/(^|[^`])`([^`]+)`(?!`)/,OE=/(^|[^`])`([^`]+)`(?!`)/g,IE=oo.create({name:"code",addOptions(){return{HTMLAttributes:{}}},excludes:"_",code:!0,exitable:!0,parseHTML(){return[{tag:"code"}]},renderHTML({HTMLAttributes:n}){return["code",Rn(this.options.HTMLAttributes,n),0]},addCommands(){return{setCode:()=>({commands:n})=>n.setMark(this.name),toggleCode:()=>({commands:n})=>n.toggleMark(this.name),unsetCode:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-e":()=>this.editor.commands.toggleCode()}},addInputRules(){return[Uo({find:RE,type:this.type})]},addPasteRules(){return[Go({find:OE,type:this.type})]}}),LE=/^```([a-z]+)?[\s\n]$/,BE=/^~~~([a-z]+)?[\s\n]$/,PE=On.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,defaultLanguage:null,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:this.options.defaultLanguage,parseHTML:n=>{var e;const{languageClassPrefix:t}=this.options,o=[...((e=n.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(t)).map(s=>s.replace(t,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:n,HTMLAttributes:e}){return["pre",Rn(this.options.HTMLAttributes,e),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:e})=>e.setNode(this.name,n),toggleCodeBlock:n=>({commands:e})=>e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!n||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=n,{selection:t}=e,{$from:r,empty:i}=t;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
112
+
113
+ `);return!o||!s?!1:n.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=n,{selection:t,doc:r}=e,{$from:i,empty:o}=t;if(!o||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const a=i.after();return a===void 0?!1:r.nodeAt(a)?n.commands.command(({tr:c})=>(c.setSelection(Fe.near(r.resolve(a))),!0)):n.commands.exitCode()}}},addInputRules(){return[nd({find:LE,type:this.type,getAttributes:n=>({language:n[1]})}),nd({find:BE,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new _t({key:new At("codeBlockVSCodeHandler"),props:{handlePaste:(n,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!t||!o)return!1;const{tr:s,schema:a}=n.state,l=a.text(t.replace(/\r\n?/g,`
114
+ `));return s.replaceSelectionWith(this.type.create({language:o},l)),s.selection.$from.parent.type!==this.type&&s.setSelection(Ne.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}}),FE=On.create({name:"doc",topNode:!0,content:"block+"});function zE(n={}){return new _t({view(e){return new qE(e,n)}})}class qE{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=(r=t.width)!==null&&r!==void 0?r:1,this.color=t.color===!1?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map(i=>{let o=s=>{this[i](s)};return e.dom.addEventListener(i,o),{name:i,handler:o}})}destroy(){this.handlers.forEach(({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t))}update(e,t){this.cursorPos!=null&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,e==null?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e=this.editorView.state.doc.resolve(this.cursorPos),t=!e.parent.inlineContent,r,i=this.editorView.dom,o=i.getBoundingClientRect(),s=o.width/i.offsetWidth,a=o.height/i.offsetHeight;if(t){let h=e.nodeBefore,g=e.nodeAfter;if(h||g){let b=this.editorView.nodeDOM(this.cursorPos-(h?h.nodeSize:0));if(b){let p=b.getBoundingClientRect(),v=h?p.bottom:p.top;h&&g&&(v=(v+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2);let w=this.width/2*a;r={left:p.left,right:p.right,top:v-w,bottom:v+w}}}}if(!r){let h=this.editorView.coordsAtPos(this.cursorPos),g=this.width/2*s;r={left:h.left-g,right:h.left+g,top:h.top,bottom:h.bottom}}let l=this.editorView.dom.offsetParent;this.element||(this.element=l.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",t),this.element.classList.toggle("prosemirror-dropcursor-inline",!t);let c,u;if(!l||l==document.body&&getComputedStyle(l).position=="static")c=-pageXOffset,u=-pageYOffset;else{let h=l.getBoundingClientRect(),g=h.width/l.offsetWidth,b=h.height/l.offsetHeight;c=h.left-l.scrollLeft*g,u=h.top-l.scrollTop*b}this.element.style.left=(r.left-c)/s+"px",this.element.style.top=(r.top-u)/a+"px",this.element.style.width=(r.right-r.left)/s+"px",this.element.style.height=(r.bottom-r.top)/a+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout(()=>this.setCursor(null),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),i=r&&r.type.spec.disableDropCursor,o=typeof i=="function"?i(this.editorView,t,e):i;if(t&&!o){let s=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let a=Qm(this.editorView.state.doc,s,this.editorView.dragging.slice);a!=null&&(s=a)}this.setCursor(s),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}const HE=Cn.create({name:"dropCursor",addOptions(){return{color:"currentColor",width:1,class:void 0}},addProseMirrorPlugins(){return[zE(this.options)]}});class Ut extends Fe{constructor(e){super(e,e)}map(e,t){let r=e.resolve(t.map(this.head));return Ut.valid(r)?new Ut(r):Fe.near(r)}content(){return ve.empty}eq(e){return e instanceof Ut&&e.head==this.head}toJSON(){return{type:"gapcursor",pos:this.head}}static fromJSON(e,t){if(typeof t.pos!="number")throw new RangeError("Invalid input for GapCursor.fromJSON");return new Ut(e.resolve(t.pos))}getBookmark(){return new rd(this.anchor)}static valid(e){let t=e.parent;if(t.isTextblock||!VE(e)||!UE(e))return!1;let r=t.type.spec.allowGapCursor;if(r!=null)return r;let i=t.contentMatchAt(e.index()).defaultType;return i&&i.isTextblock}static findGapCursorFrom(e,t,r=!1){e:for(;;){if(!r&&Ut.valid(e))return e;let i=e.pos,o=null;for(let s=e.depth;;s--){let a=e.node(s);if(t>0?e.indexAfter(s)<a.childCount:e.index(s)>0){o=a.child(t>0?e.indexAfter(s):e.index(s)-1);break}else if(s==0)return null;i+=t;let l=e.doc.resolve(i);if(Ut.valid(l))return l}for(;;){let s=t>0?o.firstChild:o.lastChild;if(!s){if(o.isAtom&&!o.isText&&!Oe.isSelectable(o)){e=e.doc.resolve(i+o.nodeSize*t),r=!1;continue e}break}o=s,i+=t;let a=e.doc.resolve(i);if(Ut.valid(a))return a}return null}}}Ut.prototype.visible=!1,Ut.findFrom=Ut.findGapCursorFrom,Fe.jsonID("gapcursor",Ut);class rd{constructor(e){this.pos=e}map(e){return new rd(e.map(this.pos))}resolve(e){let t=e.resolve(this.pos);return Ut.valid(t)?new Ut(t):Fe.near(t)}}function VE(n){for(let e=n.depth;e>=0;e--){let t=n.index(e),r=n.node(e);if(t==0){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(t-1);;i=i.lastChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function UE(n){for(let e=n.depth;e>=0;e--){let t=n.indexAfter(e),r=n.node(e);if(t==r.childCount){if(r.type.spec.isolating)return!0;continue}for(let i=r.child(t);;i=i.firstChild){if(i.childCount==0&&!i.inlineContent||i.isAtom||i.type.spec.isolating)return!0;if(i.inlineContent)return!1}}return!0}function GE(){return new _t({props:{decorations:jE,createSelectionBetween(n,e,t){return e.pos==t.pos&&Ut.valid(t)?new Ut(t):null},handleClick:WE,handleKeyDown:$E,handleDOMEvents:{beforeinput:KE}}})}const $E=i0({ArrowLeft:Dl("horiz",-1),ArrowRight:Dl("horiz",1),ArrowUp:Dl("vert",-1),ArrowDown:Dl("vert",1)});function Dl(n,e){const t=n=="vert"?e>0?"down":"up":e>0?"right":"left";return function(r,i,o){let s=r.selection,a=e>0?s.$to:s.$from,l=s.empty;if(s instanceof Ne){if(!o.endOfTextblock(t)||a.depth==0)return!1;l=!1,a=r.doc.resolve(e>0?a.after():a.before())}let c=Ut.findGapCursorFrom(a,e,l);return c?(i&&i(r.tr.setSelection(new Ut(c))),!0):!1}}function WE(n,e,t){if(!n||!n.editable)return!1;let r=n.state.doc.resolve(e);if(!Ut.valid(r))return!1;let i=n.posAtCoords({left:t.clientX,top:t.clientY});return i&&i.inside>-1&&Oe.isSelectable(n.state.doc.nodeAt(i.inside))?!1:(n.dispatch(n.state.tr.setSelection(new Ut(r))),!0)}function KE(n,e){if(e.inputType!="insertCompositionText"||!(n.state.selection instanceof Ut))return!1;let{$from:t}=n.state.selection,r=t.parent.contentMatchAt(t.index()).findWrapping(n.state.schema.nodes.text);if(!r)return!1;let i=le.empty;for(let s=r.length-1;s>=0;s--)i=le.from(r[s].createAndFill(null,i));let o=n.state.tr.replace(t.pos,t.pos,new ve(i,0,0));return o.setSelection(Ne.near(o.doc.resolve(t.pos+1))),n.dispatch(o),!1}function jE(n){if(!(n.selection instanceof Ut))return null;let e=document.createElement("div");return e.className="ProseMirror-gapcursor",Bt.create(n.doc,[un.widget(n.selection.head,e,{key:"gapcursor"})])}const QE=Cn.create({name:"gapCursor",addProseMirrorPlugins(){return[GE()]},extendNodeSchema(n){var e;const t={name:n.name,options:n.options,storage:n.storage};return{allowGapCursor:(e=nn(bn(n,"allowGapCursor",t)))!==null&&e!==void 0?e:null}}}),YE=On.create({name:"hardBreak",addOptions(){return{keepMarks:!0,HTMLAttributes:{}}},inline:!0,group:"inline",selectable:!1,linebreakReplacement:!0,parseHTML(){return[{tag:"br"}]},renderHTML({HTMLAttributes:n}){return["br",Rn(this.options.HTMLAttributes,n)]},renderText(){return`
115
+ `},addCommands(){return{setHardBreak:()=>({commands:n,chain:e,state:t,editor:r})=>n.first([()=>n.exitCode(),()=>n.command(()=>{const{selection:i,storedMarks:o}=t;if(i.$from.parent.type.spec.isolating)return!1;const{keepMarks:s}=this.options,{splittableMarks:a}=r.extensionManager,l=o||i.$to.parentOffset&&i.$from.marks();return e().insertContent({type:this.name}).command(({tr:c,dispatch:u})=>{if(u&&l&&s){const h=l.filter(g=>a.includes(g.type.name));c.ensureMarks(h)}return!0}).run()})])}},addKeyboardShortcuts(){return{"Mod-Enter":()=>this.editor.commands.setHardBreak(),"Shift-Enter":()=>this.editor.commands.setHardBreak()}}}),ZE=On.create({name:"heading",addOptions(){return{levels:[1,2,3,4,5,6],HTMLAttributes:{}}},content:"inline*",group:"block",defining:!0,addAttributes(){return{level:{default:1,rendered:!1}}},parseHTML(){return this.options.levels.map(n=>({tag:`h${n}`,attrs:{level:n}}))},renderHTML({node:n,HTMLAttributes:e}){return[`h${this.options.levels.includes(n.attrs.level)?n.attrs.level:this.options.levels[0]}`,Rn(this.options.HTMLAttributes,e),0]},addCommands(){return{setHeading:n=>({commands:e})=>this.options.levels.includes(n.level)?e.setNode(this.name,n):!1,toggleHeading:n=>({commands:e})=>this.options.levels.includes(n.level)?e.toggleNode(this.name,"paragraph",n):!1}},addKeyboardShortcuts(){return this.options.levels.reduce((n,e)=>({...n,[`Mod-Alt-${e}`]:()=>this.editor.commands.toggleHeading({level:e})}),{})},addInputRules(){return this.options.levels.map(n=>nd({find:new RegExp(`^(#{${Math.min(...this.options.levels)},${n}})\\s$`),type:this.type,getAttributes:{level:n}}))}});var Rl=200,sn=function(){};sn.prototype.append=function(e){return e.length?(e=sn.from(e),!this.length&&e||e.length<Rl&&this.leafAppend(e)||this.length<Rl&&e.leafPrepend(this)||this.appendInner(e)):this},sn.prototype.prepend=function(e){return e.length?sn.from(e).append(this):this},sn.prototype.appendInner=function(e){return new XE(this,e)},sn.prototype.slice=function(e,t){return e===void 0&&(e=0),t===void 0&&(t=this.length),e>=t?sn.empty:this.sliceInner(Math.max(0,e),Math.min(this.length,t))},sn.prototype.get=function(e){if(!(e<0||e>=this.length))return this.getInner(e)},sn.prototype.forEach=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length),t<=r?this.forEachInner(e,t,r,0):this.forEachInvertedInner(e,t,r,0)},sn.prototype.map=function(e,t,r){t===void 0&&(t=0),r===void 0&&(r=this.length);var i=[];return this.forEach(function(o,s){return i.push(e(o,s))},t,r),i},sn.from=function(e){return e instanceof sn?e:e&&e.length?new f_(e):sn.empty};var f_=function(n){function e(r){n.call(this),this.values=r}n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e;var t={length:{configurable:!0},depth:{configurable:!0}};return e.prototype.flatten=function(){return this.values},e.prototype.sliceInner=function(i,o){return i==0&&o==this.length?this:new e(this.values.slice(i,o))},e.prototype.getInner=function(i){return this.values[i]},e.prototype.forEachInner=function(i,o,s,a){for(var l=o;l<s;l++)if(i(this.values[l],a+l)===!1)return!1},e.prototype.forEachInvertedInner=function(i,o,s,a){for(var l=o-1;l>=s;l--)if(i(this.values[l],a+l)===!1)return!1},e.prototype.leafAppend=function(i){if(this.length+i.length<=Rl)return new e(this.values.concat(i.flatten()))},e.prototype.leafPrepend=function(i){if(this.length+i.length<=Rl)return new e(i.flatten().concat(this.values))},t.length.get=function(){return this.values.length},t.depth.get=function(){return 0},Object.defineProperties(e.prototype,t),e}(sn);sn.empty=new f_([]);var XE=function(n){function e(t,r){n.call(this),this.left=t,this.right=r,this.length=t.length+r.length,this.depth=Math.max(t.depth,r.depth)+1}return n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e,e.prototype.flatten=function(){return this.left.flatten().concat(this.right.flatten())},e.prototype.getInner=function(r){return r<this.left.length?this.left.get(r):this.right.get(r-this.left.length)},e.prototype.forEachInner=function(r,i,o,s){var a=this.left.length;if(i<a&&this.left.forEachInner(r,i,Math.min(o,a),s)===!1||o>a&&this.right.forEachInner(r,Math.max(i-a,0),Math.min(this.length,o)-a,s+a)===!1)return!1},e.prototype.forEachInvertedInner=function(r,i,o,s){var a=this.left.length;if(i>a&&this.right.forEachInvertedInner(r,i-a,Math.max(o,a)-a,s+a)===!1||o<a&&this.left.forEachInvertedInner(r,Math.min(i,a),o,s)===!1)return!1},e.prototype.sliceInner=function(r,i){if(r==0&&i==this.length)return this;var o=this.left.length;return i<=o?this.left.slice(r,i):r>=o?this.right.slice(r-o,i-o):this.left.slice(r,o).append(this.right.slice(0,i-o))},e.prototype.leafAppend=function(r){var i=this.right.leafAppend(r);if(i)return new e(this.left,i)},e.prototype.leafPrepend=function(r){var i=this.left.leafPrepend(r);if(i)return new e(i,this.right)},e.prototype.appendInner=function(r){return this.left.depth>=Math.max(this.right.depth,r.depth)+1?new e(this.left,new e(this.right,r)):new e(this,r)},e}(sn);const JE=500;class hr{constructor(e,t){this.items=e,this.eventCount=t}popEvent(e,t){if(this.eventCount==0)return null;let r=this.items.length;for(;;r--)if(this.items.get(r-1).selection){--r;break}let i,o;t&&(i=this.remapping(r,this.items.length),o=i.maps.length);let s=e.tr,a,l,c=[],u=[];return this.items.forEach((h,g)=>{if(!h.step){i||(i=this.remapping(r,g+1),o=i.maps.length),o--,u.push(h);return}if(i){u.push(new Cr(h.map));let b=h.step.map(i.slice(o)),p;b&&s.maybeStep(b).doc&&(p=s.mapping.maps[s.mapping.maps.length-1],c.push(new Cr(p,void 0,void 0,c.length+u.length))),o--,p&&i.appendMap(p,o)}else s.maybeStep(h.step);if(h.selection)return a=i?h.selection.map(i.slice(o)):h.selection,l=new hr(this.items.slice(0,r).append(u.reverse().concat(c)),this.eventCount-1),!1},this.items.length,0),{remaining:l,transform:s,selection:a}}addTransform(e,t,r,i){let o=[],s=this.eventCount,a=this.items,l=!i&&a.length?a.get(a.length-1):null;for(let u=0;u<e.steps.length;u++){let h=e.steps[u].invert(e.docs[u]),g=new Cr(e.mapping.maps[u],h,t),b;(b=l&&l.merge(g))&&(g=b,u?o.pop():a=a.slice(0,a.length-1)),o.push(g),t&&(s++,t=void 0),i||(l=g)}let c=s-r.depth;return c>tC&&(a=eC(a,c),s-=c),new hr(a.append(o),s)}remapping(e,t){let r=new Ss;return this.items.forEach((i,o)=>{let s=i.mirrorOffset!=null&&o-i.mirrorOffset>=e?r.maps.length-i.mirrorOffset:void 0;r.appendMap(i.map,s)},e,t),r}addMaps(e){return this.eventCount==0?this:new hr(this.items.append(e.map(t=>new Cr(t))),this.eventCount)}rebased(e,t){if(!this.eventCount)return this;let r=[],i=Math.max(0,this.items.length-t),o=e.mapping,s=e.steps.length,a=this.eventCount;this.items.forEach(g=>{g.selection&&a--},i);let l=t;this.items.forEach(g=>{let b=o.getMirror(--l);if(b==null)return;s=Math.min(s,b);let p=o.maps[b];if(g.step){let v=e.steps[b].invert(e.docs[b]),w=g.selection&&g.selection.map(o.slice(l+1,b));w&&a++,r.push(new Cr(p,v,w))}else r.push(new Cr(p))},i);let c=[];for(let g=t;g<s;g++)c.push(new Cr(o.maps[g]));let u=this.items.slice(0,i).append(c).append(r),h=new hr(u,a);return h.emptyItemCount()>JE&&(h=h.compress(this.items.length-r.length)),h}emptyItemCount(){let e=0;return this.items.forEach(t=>{t.step||e++}),e}compress(e=this.items.length){let t=this.remapping(0,e),r=t.maps.length,i=[],o=0;return this.items.forEach((s,a)=>{if(a>=e)i.push(s),s.selection&&o++;else if(s.step){let l=s.step.map(t.slice(r)),c=l&&l.getMap();if(r--,c&&t.appendMap(c,r),l){let u=s.selection&&s.selection.map(t.slice(r));u&&o++;let h=new Cr(c.invert(),l,u),g,b=i.length-1;(g=i.length&&i[b].merge(h))?i[b]=g:i.push(h)}}else s.map&&r--},this.items.length,0),new hr(sn.from(i.reverse()),o)}}hr.empty=new hr(sn.empty,0);function eC(n,e){let t;return n.forEach((r,i)=>{if(r.selection&&e--==0)return t=i,!1}),n.slice(t)}class Cr{constructor(e,t,r,i){this.map=e,this.step=t,this.selection=r,this.mirrorOffset=i}merge(e){if(this.step&&e.step&&!e.selection){let t=e.step.merge(this.step);if(t)return new Cr(t.getMap().invert(),t,this.selection)}}}class xi{constructor(e,t,r,i,o){this.done=e,this.undone=t,this.prevRanges=r,this.prevTime=i,this.prevComposition=o}}const tC=20;function nC(n,e,t,r){let i=t.getMeta(ao),o;if(i)return i.historyState;t.getMeta(oC)&&(n=new xi(n.done,n.undone,null,0,-1));let s=t.getMeta("appendedTransaction");if(t.steps.length==0)return n;if(s&&s.getMeta(ao))return s.getMeta(ao).redo?new xi(n.done.addTransform(t,void 0,r,Ol(e)),n.undone,p_(t.mapping.maps),n.prevTime,n.prevComposition):new xi(n.done,n.undone.addTransform(t,void 0,r,Ol(e)),null,n.prevTime,n.prevComposition);if(t.getMeta("addToHistory")!==!1&&!(s&&s.getMeta("addToHistory")===!1)){let a=t.getMeta("composition"),l=n.prevTime==0||!s&&n.prevComposition!=a&&(n.prevTime<(t.time||0)-r.newGroupDelay||!rC(t,n.prevRanges)),c=s?id(n.prevRanges,t.mapping):p_(t.mapping.maps);return new xi(n.done.addTransform(t,l?e.selection.getBookmark():void 0,r,Ol(e)),hr.empty,c,t.time,a??n.prevComposition)}else return(o=t.getMeta("rebased"))?new xi(n.done.rebased(t,o),n.undone.rebased(t,o),id(n.prevRanges,t.mapping),n.prevTime,n.prevComposition):new xi(n.done.addMaps(t.mapping.maps),n.undone.addMaps(t.mapping.maps),id(n.prevRanges,t.mapping),n.prevTime,n.prevComposition)}function rC(n,e){if(!e)return!1;if(!n.docChanged)return!0;let t=!1;return n.mapping.maps[0].forEach((r,i)=>{for(let o=0;o<e.length;o+=2)r<=e[o+1]&&i>=e[o]&&(t=!0)}),t}function p_(n){let e=[];for(let t=n.length-1;t>=0&&e.length==0;t--)n[t].forEach((r,i,o,s)=>e.push(o,s));return e}function id(n,e){if(!n)return null;let t=[];for(let r=0;r<n.length;r+=2){let i=e.map(n[r],1),o=e.map(n[r+1],-1);i<=o&&t.push(i,o)}return t}function iC(n,e,t){let r=Ol(e),i=ao.get(e).spec.config,o=(t?n.undone:n.done).popEvent(e,r);if(!o)return null;let s=o.selection.resolve(o.transform.doc),a=(t?n.done:n.undone).addTransform(o.transform,e.selection.getBookmark(),i,r),l=new xi(t?a:o.remaining,t?o.remaining:a,null,0,-1);return o.transform.setSelection(s).setMeta(ao,{redo:t,historyState:l})}let od=!1,m_=null;function Ol(n){let e=n.plugins;if(m_!=e){od=!1,m_=e;for(let t=0;t<e.length;t++)if(e[t].spec.historyPreserveItems){od=!0;break}}return od}const ao=new At("history"),oC=new At("closeHistory");function sC(n={}){return n={depth:n.depth||100,newGroupDelay:n.newGroupDelay||500},new _t({key:ao,state:{init(){return new xi(hr.empty,hr.empty,null,0,-1)},apply(e,t,r){return nC(t,r,e,n)}},config:n,props:{handleDOMEvents:{beforeinput(e,t){let r=t.inputType,i=r=="historyUndo"?b_:r=="historyRedo"?__:null;return i?(t.preventDefault(),i(e.state,e.dispatch)):!1}}}})}function g_(n,e){return(t,r)=>{let i=ao.getState(t);if(!i||(n?i.undone:i.done).eventCount==0)return!1;if(r){let o=iC(i,t,n);o&&r(e?o.scrollIntoView():o)}return!0}}const b_=g_(!1,!0),__=g_(!0,!0),aC=Cn.create({name:"history",addOptions(){return{depth:100,newGroupDelay:500}},addCommands(){return{undo:()=>({state:n,dispatch:e})=>b_(n,e),redo:()=>({state:n,dispatch:e})=>__(n,e)}},addProseMirrorPlugins(){return[sC(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}}),lC=On.create({name:"horizontalRule",addOptions(){return{HTMLAttributes:{}}},group:"block",parseHTML(){return[{tag:"hr"}]},renderHTML({HTMLAttributes:n}){return["hr",Rn(this.options.HTMLAttributes,n)]},addCommands(){return{setHorizontalRule:()=>({chain:n,state:e})=>{if(!xE(e,e.schema.nodes[this.name]))return!1;const{selection:t}=e,{$from:r,$to:i}=t,o=n();return r.parentOffset===0?o.insertContentAt({from:Math.max(r.pos-1,0),to:i.pos},{type:this.name}):cE(t)?o.insertContentAt(i.pos,{type:this.name}):o.insertContent({type:this.name}),o.command(({tr:s,dispatch:a})=>{var l;if(a){const{$to:c}=s.selection,u=c.end();if(c.nodeAfter)c.nodeAfter.isTextblock?s.setSelection(Ne.create(s.doc,c.pos+1)):c.nodeAfter.isBlock?s.setSelection(Oe.create(s.doc,c.pos)):s.setSelection(Ne.create(s.doc,c.pos));else{const h=(l=c.parent.type.contentMatch.defaultType)===null||l===void 0?void 0:l.create();h&&(s.insert(u,h),s.setSelection(Ne.create(s.doc,u+1)))}s.scrollIntoView()}return!0}).run()}}},addInputRules(){return[wE({find:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type})]}}),cC=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/,uC=/(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g,dC=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/,hC=/(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g,fC=oo.create({name:"italic",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"em"},{tag:"i",getAttrs:n=>n.style.fontStyle!=="normal"&&null},{style:"font-style=normal",clearMark:n=>n.type.name===this.name},{style:"font-style=italic"}]},renderHTML({HTMLAttributes:n}){return["em",Rn(this.options.HTMLAttributes,n),0]},addCommands(){return{setItalic:()=>({commands:n})=>n.setMark(this.name),toggleItalic:()=>({commands:n})=>n.toggleMark(this.name),unsetItalic:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-i":()=>this.editor.commands.toggleItalic(),"Mod-I":()=>this.editor.commands.toggleItalic()}},addInputRules(){return[Uo({find:cC,type:this.type}),Uo({find:dC,type:this.type})]},addPasteRules(){return[Go({find:uC,type:this.type}),Go({find:hC,type:this.type})]}}),pC=On.create({name:"listItem",addOptions(){return{HTMLAttributes:{},bulletListTypeName:"bulletList",orderedListTypeName:"orderedList"}},content:"paragraph block*",defining:!0,parseHTML(){return[{tag:"li"}]},renderHTML({HTMLAttributes:n}){return["li",Rn(this.options.HTMLAttributes,n),0]},addKeyboardShortcuts(){return{Enter:()=>this.editor.commands.splitListItem(this.name),Tab:()=>this.editor.commands.sinkListItem(this.name),"Shift-Tab":()=>this.editor.commands.liftListItem(this.name)}}}),mC="listItem",y_="textStyle",v_=/^(\d+)\.\s$/,gC=On.create({name:"orderedList",addOptions(){return{itemTypeName:"listItem",HTMLAttributes:{},keepMarks:!1,keepAttributes:!1}},group:"block list",content(){return`${this.options.itemTypeName}+`},addAttributes(){return{start:{default:1,parseHTML:n=>n.hasAttribute("start")?parseInt(n.getAttribute("start")||"",10):1},type:{default:null,parseHTML:n=>n.getAttribute("type")}}},parseHTML(){return[{tag:"ol"}]},renderHTML({HTMLAttributes:n}){const{start:e,...t}=n;return e===1?["ol",Rn(this.options.HTMLAttributes,t),0]:["ol",Rn(this.options.HTMLAttributes,n),0]},addCommands(){return{toggleOrderedList:()=>({commands:n,chain:e})=>this.options.keepAttributes?e().toggleList(this.name,this.options.itemTypeName,this.options.keepMarks).updateAttributes(mC,this.editor.getAttributes(y_)).run():n.toggleList(this.name,this.options.itemTypeName,this.options.keepMarks)}},addKeyboardShortcuts(){return{"Mod-Shift-7":()=>this.editor.commands.toggleOrderedList()}},addInputRules(){let n=Ys({find:v_,type:this.type,getAttributes:e=>({start:+e[1]}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1]});return(this.options.keepMarks||this.options.keepAttributes)&&(n=Ys({find:v_,type:this.type,keepMarks:this.options.keepMarks,keepAttributes:this.options.keepAttributes,getAttributes:e=>({start:+e[1],...this.editor.getAttributes(y_)}),joinPredicate:(e,t)=>t.childCount+t.attrs.start===+e[1],editor:this.editor})),[n]}}),bC=On.create({name:"paragraph",priority:1e3,addOptions(){return{HTMLAttributes:{}}},group:"block",content:"inline*",parseHTML(){return[{tag:"p"}]},renderHTML({HTMLAttributes:n}){return["p",Rn(this.options.HTMLAttributes,n),0]},addCommands(){return{setParagraph:()=>({commands:n})=>n.setNode(this.name)}},addKeyboardShortcuts(){return{"Mod-Alt-0":()=>this.editor.commands.setParagraph()}}}),_C=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))$/,yC=/(?:^|\s)(~~(?!\s+~~)((?:[^~]+))~~(?!\s+~~))/g,vC=oo.create({name:"strike",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"s"},{tag:"del"},{tag:"strike"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("line-through")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["s",Rn(this.options.HTMLAttributes,n),0]},addCommands(){return{setStrike:()=>({commands:n})=>n.setMark(this.name),toggleStrike:()=>({commands:n})=>n.toggleMark(this.name),unsetStrike:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-s":()=>this.editor.commands.toggleStrike()}},addInputRules(){return[Uo({find:_C,type:this.type})]},addPasteRules(){return[Go({find:yC,type:this.type})]}}),wC=On.create({name:"text",group:"inline"}),w_=Cn.create({name:"starterKit",addExtensions(){var n,e,t,r,i,o,s,a,l,c,u,h,g,b,p,v,w,S;const C=[];return this.options.blockquote!==!1&&C.push(SE.configure((n=this.options)===null||n===void 0?void 0:n.blockquote)),this.options.bold!==!1&&C.push(ME.configure((e=this.options)===null||e===void 0?void 0:e.bold)),this.options.bulletList!==!1&&C.push(DE.configure((t=this.options)===null||t===void 0?void 0:t.bulletList)),this.options.code!==!1&&C.push(IE.configure((r=this.options)===null||r===void 0?void 0:r.code)),this.options.codeBlock!==!1&&C.push(PE.configure((i=this.options)===null||i===void 0?void 0:i.codeBlock)),this.options.document!==!1&&C.push(FE.configure((o=this.options)===null||o===void 0?void 0:o.document)),this.options.dropcursor!==!1&&C.push(HE.configure((s=this.options)===null||s===void 0?void 0:s.dropcursor)),this.options.gapcursor!==!1&&C.push(QE.configure((a=this.options)===null||a===void 0?void 0:a.gapcursor)),this.options.hardBreak!==!1&&C.push(YE.configure((l=this.options)===null||l===void 0?void 0:l.hardBreak)),this.options.heading!==!1&&C.push(ZE.configure((c=this.options)===null||c===void 0?void 0:c.heading)),this.options.history!==!1&&C.push(aC.configure((u=this.options)===null||u===void 0?void 0:u.history)),this.options.horizontalRule!==!1&&C.push(lC.configure((h=this.options)===null||h===void 0?void 0:h.horizontalRule)),this.options.italic!==!1&&C.push(fC.configure((g=this.options)===null||g===void 0?void 0:g.italic)),this.options.listItem!==!1&&C.push(pC.configure((b=this.options)===null||b===void 0?void 0:b.listItem)),this.options.orderedList!==!1&&C.push(gC.configure((p=this.options)===null||p===void 0?void 0:p.orderedList)),this.options.paragraph!==!1&&C.push(bC.configure((v=this.options)===null||v===void 0?void 0:v.paragraph)),this.options.strike!==!1&&C.push(vC.configure((w=this.options)===null||w===void 0?void 0:w.strike)),this.options.text!==!1&&C.push(wC.configure((S=this.options)===null||S===void 0?void 0:S.text)),C}}),xC=Ji.create({name:"underline",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"u"},{style:"text-decoration",consuming:!1,getAttrs:n=>n.includes("underline")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["u",jt(this.options.HTMLAttributes,n),0]},addCommands(){return{setUnderline:()=>({commands:n})=>n.setMark(this.name),toggleUnderline:()=>({commands:n})=>n.toggleMark(this.name),unsetUnderline:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-u":()=>this.editor.commands.toggleUnderline(),"Mod-U":()=>this.editor.commands.toggleUnderline()}}}),kC=Mn.create({name:"textAlign",addOptions(){return{types:[],alignments:["left","center","right","justify"],defaultAlignment:"left"}},addGlobalAttributes(){return[{types:this.options.types,attributes:{textAlign:{default:this.options.defaultAlignment,parseHTML:n=>n.style.textAlign||this.options.defaultAlignment,renderHTML:n=>n.textAlign===this.options.defaultAlignment?{}:{style:`text-align: ${n.textAlign}`}}}}]},addCommands(){return{setTextAlign:n=>({commands:e})=>this.options.alignments.includes(n)?this.options.types.every(t=>e.updateAttributes(t,{textAlign:n})):!1,unsetTextAlign:()=>({commands:n})=>this.options.types.every(e=>n.resetAttributes(e,"textAlign"))}},addKeyboardShortcuts(){return{"Mod-Shift-l":()=>this.editor.commands.setTextAlign("left"),"Mod-Shift-e":()=>this.editor.commands.setTextAlign("center"),"Mod-Shift-r":()=>this.editor.commands.setTextAlign("right"),"Mod-Shift-j":()=>this.editor.commands.setTextAlign("justify")}}}),SC=Ji.create({name:"textStyle",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"span",getAttrs:n=>n.hasAttribute("style")?{}:!1}]},renderHTML({HTMLAttributes:n}){return["span",jt(this.options.HTMLAttributes,n),0]},addCommands(){return{removeEmptyTextStyle:()=>({state:n,commands:e})=>{const t=S0(n,this.type);return Object.entries(t).some(([,i])=>!!i)?!0:e.unsetMark(this.name)}}}}),EC=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))$/,CC=/(?:^|\s)(==(?!\s+==)((?:[^=]+))==(?!\s+==))/g,TC=Ji.create({name:"highlight",addOptions(){return{multicolor:!1,HTMLAttributes:{}}},addAttributes(){return this.options.multicolor?{color:{default:null,parseHTML:n=>n.getAttribute("data-color")||n.style.backgroundColor,renderHTML:n=>n.color?{"data-color":n.color,style:`background-color: ${n.color}; color: inherit`}:{}}}:{}},parseHTML(){return[{tag:"mark"}]},renderHTML({HTMLAttributes:n}){return["mark",jt(this.options.HTMLAttributes,n),0]},addCommands(){return{setHighlight:n=>({commands:e})=>e.setMark(this.name,n),toggleHighlight:n=>({commands:e})=>e.toggleMark(this.name,n),unsetHighlight:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-Shift-h":()=>this.editor.commands.toggleHighlight()}},addInputRules(){return[_8({find:EC,type:this.type})]},addPasteRules(){return[ab({find:CC,type:this.type})]}}),AC=Mn.create({name:"color",addOptions(){return{types:["textStyle"]}},addGlobalAttributes(){return[{types:this.options.types,attributes:{color:{default:null,parseHTML:n=>{var e;return(e=n.style.color)===null||e===void 0?void 0:e.replace(/['"]+/g,"")},renderHTML:n=>n.color?{style:`color: ${n.color}`}:{}}}}]},addCommands(){return{setColor:n=>({chain:e})=>e().setMark("textStyle",{color:n}).run(),unsetColor:()=>({chain:n})=>n().setMark("textStyle",{color:null}).removeEmptyTextStyle().run()}}}),MC="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0america6xi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",NC="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",$o=(n,e)=>{for(const t in e)n[t]=e[t];return n},sd="numeric",ad="ascii",ld="alpha",Zs="asciinumeric",Xs="alphanumeric",cd="domain",x_="emoji",DC="scheme",RC="slashscheme",ud="whitespace";function OC(n,e){return n in e||(e[n]=[]),e[n]}function lo(n,e,t){e[sd]&&(e[Zs]=!0,e[Xs]=!0),e[ad]&&(e[Zs]=!0,e[ld]=!0),e[Zs]&&(e[Xs]=!0),e[ld]&&(e[Xs]=!0),e[Xs]&&(e[cd]=!0),e[x_]&&(e[cd]=!0);for(const r in e){const i=OC(r,t);i.indexOf(n)<0&&i.push(n)}}function IC(n,e){const t={};for(const r in e)e[r].indexOf(n)>=0&&(t[r]=!0);return t}function In(n=null){this.j={},this.jr=[],this.jd=null,this.t=n}In.groups={},In.prototype={accepts(){return!!this.t},go(n){const e=this,t=e.j[n];if(t)return t;for(let r=0;r<e.jr.length;r++){const i=e.jr[r][0],o=e.jr[r][1];if(o&&i.test(n))return o}return e.jd},has(n,e=!1){return e?n in this.j:!!this.go(n)},ta(n,e,t,r){for(let i=0;i<n.length;i++)this.tt(n[i],e,t,r)},tr(n,e,t,r){r=r||In.groups;let i;return e&&e.j?i=e:(i=new In(e),t&&r&&lo(e,t,r)),this.jr.push([n,i]),i},ts(n,e,t,r){let i=this;const o=n.length;if(!o)return i;for(let s=0;s<o-1;s++)i=i.tt(n[s]);return i.tt(n[o-1],e,t,r)},tt(n,e,t,r){r=r||In.groups;const i=this;if(e&&e.j)return i.j[n]=e,e;const o=e;let s,a=i.go(n);if(a?(s=new In,$o(s.j,a.j),s.jr.push.apply(s.jr,a.jr),s.jd=a.jd,s.t=a.t):s=new In,o){if(r)if(s.t&&typeof s.t=="string"){const l=$o(IC(s.t,r),t);lo(o,l,r)}else t&&lo(o,t,r);s.t=o}return i.j[n]=s,s}};const rt=(n,e,t,r,i)=>n.ta(e,t,r,i),Gt=(n,e,t,r,i)=>n.tr(e,t,r,i),k_=(n,e,t,r,i)=>n.ts(e,t,r,i),me=(n,e,t,r,i)=>n.tt(e,t,r,i),Wr="WORD",dd="UWORD",S_="ASCIINUMERICAL",E_="ALPHANUMERICAL",Js="LOCALHOST",hd="TLD",fd="UTLD",Il="SCHEME",Wo="SLASH_SCHEME",pd="NUM",md="WS",gd="NL",ea="OPENBRACE",ta="CLOSEBRACE",Ll="OPENBRACKET",Bl="CLOSEBRACKET",Pl="OPENPAREN",Fl="CLOSEPAREN",zl="OPENANGLEBRACKET",ql="CLOSEANGLEBRACKET",Hl="FULLWIDTHLEFTPAREN",Vl="FULLWIDTHRIGHTPAREN",Ul="LEFTCORNERBRACKET",Gl="RIGHTCORNERBRACKET",$l="LEFTWHITECORNERBRACKET",Wl="RIGHTWHITECORNERBRACKET",Kl="FULLWIDTHLESSTHAN",jl="FULLWIDTHGREATERTHAN",Ql="AMPERSAND",Yl="APOSTROPHE",Zl="ASTERISK",ki="AT",Xl="BACKSLASH",Jl="BACKTICK",ec="CARET",Si="COLON",bd="COMMA",tc="DOLLAR",Tr="DOT",nc="EQUALS",_d="EXCLAMATION",rr="HYPHEN",na="PERCENT",rc="PIPE",ic="PLUS",oc="POUND",ra="QUERY",yd="QUOTE",C_="FULLWIDTHMIDDLEDOT",vd="SEMI",Ar="SLASH",ia="TILDE",sc="UNDERSCORE",T_="EMOJI",ac="SYM";var A_=Object.freeze({__proto__:null,ALPHANUMERICAL:E_,AMPERSAND:Ql,APOSTROPHE:Yl,ASCIINUMERICAL:S_,ASTERISK:Zl,AT:ki,BACKSLASH:Xl,BACKTICK:Jl,CARET:ec,CLOSEANGLEBRACKET:ql,CLOSEBRACE:ta,CLOSEBRACKET:Bl,CLOSEPAREN:Fl,COLON:Si,COMMA:bd,DOLLAR:tc,DOT:Tr,EMOJI:T_,EQUALS:nc,EXCLAMATION:_d,FULLWIDTHGREATERTHAN:jl,FULLWIDTHLEFTPAREN:Hl,FULLWIDTHLESSTHAN:Kl,FULLWIDTHMIDDLEDOT:C_,FULLWIDTHRIGHTPAREN:Vl,HYPHEN:rr,LEFTCORNERBRACKET:Ul,LEFTWHITECORNERBRACKET:$l,LOCALHOST:Js,NL:gd,NUM:pd,OPENANGLEBRACKET:zl,OPENBRACE:ea,OPENBRACKET:Ll,OPENPAREN:Pl,PERCENT:na,PIPE:rc,PLUS:ic,POUND:oc,QUERY:ra,QUOTE:yd,RIGHTCORNERBRACKET:Gl,RIGHTWHITECORNERBRACKET:Wl,SCHEME:Il,SEMI:vd,SLASH:Ar,SLASH_SCHEME:Wo,SYM:ac,TILDE:ia,TLD:hd,UNDERSCORE:sc,UTLD:fd,UWORD:dd,WORD:Wr,WS:md});const Kr=/[a-z]/,oa=new RegExp("\\p{L}","u"),wd=new RegExp("\\p{Emoji}","u"),jr=/\d/,xd=/\s/,M_="\r",kd=`
116
+ `,LC="️",BC="‍",Sd="";let lc=null,cc=null;function PC(n=[]){const e={};In.groups=e;const t=new In;lc==null&&(lc=D_(MC)),cc==null&&(cc=D_(NC)),me(t,"'",Yl),me(t,"{",ea),me(t,"}",ta),me(t,"[",Ll),me(t,"]",Bl),me(t,"(",Pl),me(t,")",Fl),me(t,"<",zl),me(t,">",ql),me(t,"(",Hl),me(t,")",Vl),me(t,"「",Ul),me(t,"」",Gl),me(t,"『",$l),me(t,"』",Wl),me(t,"<",Kl),me(t,">",jl),me(t,"&",Ql),me(t,"*",Zl),me(t,"@",ki),me(t,"`",Jl),me(t,"^",ec),me(t,":",Si),me(t,",",bd),me(t,"$",tc),me(t,".",Tr),me(t,"=",nc),me(t,"!",_d),me(t,"-",rr),me(t,"%",na),me(t,"|",rc),me(t,"+",ic),me(t,"#",oc),me(t,"?",ra),me(t,'"',yd),me(t,"/",Ar),me(t,";",vd),me(t,"~",ia),me(t,"_",sc),me(t,"\\",Xl),me(t,"・",C_);const r=Gt(t,jr,pd,{[sd]:!0});Gt(r,jr,r);const i=Gt(r,Kr,S_,{[Zs]:!0}),o=Gt(r,oa,E_,{[Xs]:!0}),s=Gt(t,Kr,Wr,{[ad]:!0});Gt(s,jr,i),Gt(s,Kr,s),Gt(i,jr,i),Gt(i,Kr,i);const a=Gt(t,oa,dd,{[ld]:!0});Gt(a,Kr),Gt(a,jr,o),Gt(a,oa,a),Gt(o,jr,o),Gt(o,Kr),Gt(o,oa,o);const l=me(t,kd,gd,{[ud]:!0}),c=me(t,M_,md,{[ud]:!0}),u=Gt(t,xd,md,{[ud]:!0});me(t,Sd,u),me(c,kd,l),me(c,Sd,u),Gt(c,xd,u),me(u,M_),me(u,kd),Gt(u,xd,u),me(u,Sd,u);const h=Gt(t,wd,T_,{[x_]:!0});me(h,"#"),Gt(h,wd,h),me(h,LC,h);const g=me(h,BC);me(g,"#"),Gt(g,wd,h);const b=[[Kr,s],[jr,i]],p=[[Kr,null],[oa,a],[jr,o]];for(let v=0;v<lc.length;v++)Ei(t,lc[v],hd,Wr,b);for(let v=0;v<cc.length;v++)Ei(t,cc[v],fd,dd,p);lo(hd,{tld:!0,ascii:!0},e),lo(fd,{utld:!0,alpha:!0},e),Ei(t,"file",Il,Wr,b),Ei(t,"mailto",Il,Wr,b),Ei(t,"http",Wo,Wr,b),Ei(t,"https",Wo,Wr,b),Ei(t,"ftp",Wo,Wr,b),Ei(t,"ftps",Wo,Wr,b),lo(Il,{scheme:!0,ascii:!0},e),lo(Wo,{slashscheme:!0,ascii:!0},e),n=n.sort((v,w)=>v[0]>w[0]?1:-1);for(let v=0;v<n.length;v++){const w=n[v][0],C=n[v][1]?{[DC]:!0}:{[RC]:!0};w.indexOf("-")>=0?C[cd]=!0:Kr.test(w)?jr.test(w)?C[Zs]=!0:C[ad]=!0:C[sd]=!0,k_(t,w,w,C)}return k_(t,"localhost",Js,{ascii:!0}),t.jd=new In(ac),{start:t,tokens:$o({groups:e},A_)}}function N_(n,e){const t=FC(e.replace(/[A-Z]/g,a=>a.toLowerCase())),r=t.length,i=[];let o=0,s=0;for(;s<r;){let a=n,l=null,c=0,u=null,h=-1,g=-1;for(;s<r&&(l=a.go(t[s]));)a=l,a.accepts()?(h=0,g=0,u=a):h>=0&&(h+=t[s].length,g++),c+=t[s].length,o+=t[s].length,s++;o-=h,s-=g,c-=h,i.push({t:u.t,v:e.slice(o-c,o),s:o-c,e:o})}return i}function FC(n){const e=[],t=n.length;let r=0;for(;r<t;){let i=n.charCodeAt(r),o,s=i<55296||i>56319||r+1===t||(o=n.charCodeAt(r+1))<56320||o>57343?n[r]:n.slice(r,r+2);e.push(s),r+=s.length}return e}function Ei(n,e,t,r,i){let o;const s=e.length;for(let a=0;a<s-1;a++){const l=e[a];n.j[l]?o=n.j[l]:(o=new In(r),o.jr=i.slice(),n.j[l]=o),n=o}return o=new In(t),o.jr=i.slice(),n.j[e[s-1]]=o,o}function D_(n){const e=[],t=[];let r=0,i="0123456789";for(;r<n.length;){let o=0;for(;i.indexOf(n[r+o])>=0;)o++;if(o>0){e.push(t.join(""));for(let s=parseInt(n.substring(r,r+o),10);s>0;s--)t.pop();r+=o}else t.push(n[r]),r++}return e}const sa={defaultProtocol:"http",events:null,format:R_,formatHref:R_,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Ed(n,e=null){let t=$o({},sa);n&&(t=$o(t,n instanceof Ed?n.o:n));const r=t.ignoreTags,i=[];for(let o=0;o<r.length;o++)i.push(r[o].toUpperCase());this.o=t,e&&(this.defaultRender=e),this.ignoreTags=i}Ed.prototype={o:sa,ignoreTags:[],defaultRender(n){return n},check(n){return this.get("validate",n.toString(),n)},get(n,e,t){const r=e!=null;let i=this.o[n];return i&&(typeof i=="object"?(i=t.t in i?i[t.t]:sa[n],typeof i=="function"&&r&&(i=i(e,t))):typeof i=="function"&&r&&(i=i(e,t.t,t)),i)},getObj(n,e,t){let r=this.o[n];return typeof r=="function"&&e!=null&&(r=r(e,t.t,t)),r},render(n){const e=n.render(this);return(this.get("render",null,n)||this.defaultRender)(e,n.t,n)}};function R_(n){return n}function O_(n,e){this.t="token",this.v=n,this.tk=e}O_.prototype={isLink:!1,toString(){return this.v},toHref(n){return this.toString()},toFormattedString(n){const e=this.toString(),t=n.get("truncate",e,this),r=n.get("format",e,this);return t&&r.length>t?r.substring(0,t)+"…":r},toFormattedHref(n){return n.get("formatHref",this.toHref(n.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(n=sa.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(n),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(n){return{type:this.t,value:this.toFormattedString(n),isLink:this.isLink,href:this.toFormattedHref(n),start:this.startIndex(),end:this.endIndex()}},validate(n){return n.get("validate",this.toString(),this)},render(n){const e=this,t=this.toHref(n.get("defaultProtocol")),r=n.get("formatHref",t,this),i=n.get("tagName",t,e),o=this.toFormattedString(n),s={},a=n.get("className",t,e),l=n.get("target",t,e),c=n.get("rel",t,e),u=n.getObj("attributes",t,e),h=n.getObj("events",t,e);return s.href=r,a&&(s.class=a),l&&(s.target=l),c&&(s.rel=c),u&&$o(s,u),{tagName:i,attributes:s,content:o,eventListeners:h}}};function uc(n,e){class t extends O_{constructor(i,o){super(i,o),this.t=n}}for(const r in e)t.prototype[r]=e[r];return t.t=n,t}const I_=uc("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),L_=uc("text"),zC=uc("nl"),dc=uc("url",{isLink:!0,toHref(n=sa.defaultProtocol){return this.hasProtocol()?this.v:`${n}://${this.v}`},hasProtocol(){const n=this.tk;return n.length>=2&&n[0].t!==Js&&n[1].t===Si}}),ir=n=>new In(n);function qC({groups:n}){const e=n.domain.concat([Ql,Zl,ki,Xl,Jl,ec,tc,nc,rr,pd,na,rc,ic,oc,Ar,ac,ia,sc]),t=[Yl,Si,bd,Tr,_d,na,ra,yd,vd,zl,ql,ea,ta,Bl,Ll,Pl,Fl,Hl,Vl,Ul,Gl,$l,Wl,Kl,jl],r=[Ql,Yl,Zl,Xl,Jl,ec,tc,nc,rr,ea,ta,na,rc,ic,oc,ra,Ar,ac,ia,sc],i=ir(),o=me(i,ia);rt(o,r,o),rt(o,n.domain,o);const s=ir(),a=ir(),l=ir();rt(i,n.domain,s),rt(i,n.scheme,a),rt(i,n.slashscheme,l),rt(s,r,o),rt(s,n.domain,s);const c=me(s,ki);me(o,ki,c),me(a,ki,c),me(l,ki,c);const u=me(o,Tr);rt(u,r,o),rt(u,n.domain,o);const h=ir();rt(c,n.domain,h),rt(h,n.domain,h);const g=me(h,Tr);rt(g,n.domain,h);const b=ir(I_);rt(g,n.tld,b),rt(g,n.utld,b),me(c,Js,b);const p=me(h,rr);me(p,rr,p),rt(p,n.domain,h),rt(b,n.domain,h),me(b,Tr,g),me(b,rr,p);const v=me(b,Si);rt(v,n.numeric,I_);const w=me(s,rr),S=me(s,Tr);me(w,rr,w),rt(w,n.domain,s),rt(S,r,o),rt(S,n.domain,s);const C=ir(dc);rt(S,n.tld,C),rt(S,n.utld,C),rt(C,n.domain,s),rt(C,r,o),me(C,Tr,S),me(C,rr,w),me(C,ki,c);const E=me(C,Si),A=ir(dc);rt(E,n.numeric,A);const R=ir(dc),O=ir();rt(R,e,R),rt(R,t,O),rt(O,e,R),rt(O,t,O),me(C,Ar,R),me(A,Ar,R);const H=me(a,Si),q=me(l,Si),U=me(q,Ar),F=me(U,Ar);rt(a,n.domain,s),me(a,Tr,S),me(a,rr,w),rt(l,n.domain,s),me(l,Tr,S),me(l,rr,w),rt(H,n.domain,R),me(H,Ar,R),me(H,ra,R),rt(F,n.domain,R),rt(F,e,R),me(F,Ar,R);const Y=[[ea,ta],[Ll,Bl],[Pl,Fl],[zl,ql],[Hl,Vl],[Ul,Gl],[$l,Wl],[Kl,jl]];for(let X=0;X<Y.length;X++){const[oe,K]=Y[X],ee=me(R,oe);me(O,oe,ee),me(ee,K,R);const $=ir(dc);rt(ee,e,$);const Q=ir();rt(ee,t),rt($,e,$),rt($,t,Q),rt(Q,e,$),rt(Q,t,Q),me($,K,R),me(Q,K,R)}return me(i,Js,C),me(i,gd,zC),{start:i,tokens:A_}}function HC(n,e,t){let r=t.length,i=0,o=[],s=[];for(;i<r;){let a=n,l=null,c=null,u=0,h=null,g=-1;for(;i<r&&!(l=a.go(t[i].t));)s.push(t[i++]);for(;i<r&&(c=l||a.go(t[i].t));)l=null,a=c,a.accepts()?(g=0,h=a):g>=0&&g++,i++,u++;if(g<0)i-=u,i<r&&(s.push(t[i]),i++);else{s.length>0&&(o.push(Cd(L_,e,s)),s=[]),i-=g,u-=g;const b=h.t,p=t.slice(i-u,i);o.push(Cd(b,e,p))}}return s.length>0&&o.push(Cd(L_,e,s)),o}function Cd(n,e,t){const r=t[0].s,i=t[t.length-1].e,o=e.slice(r,i);return new n(o,t)}const VC=typeof console<"u"&&console&&console.warn||(()=>{}),UC="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",It={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function GC(){return In.groups={},It.scanner=null,It.parser=null,It.tokenQueue=[],It.pluginQueue=[],It.customSchemes=[],It.initialized=!1,It}function B_(n,e=!1){if(It.initialized&&VC(`linkifyjs: already initialized - will not register custom scheme "${n}" ${UC}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(n))throw new Error(`linkifyjs: incorrect scheme format.
117
+ 1. Must only contain digits, lowercase ASCII letters or "-"
118
+ 2. Cannot start or end with "-"
119
+ 3. "-" cannot repeat`);It.customSchemes.push([n,e])}function $C(){It.scanner=PC(It.customSchemes);for(let n=0;n<It.tokenQueue.length;n++)It.tokenQueue[n][1]({scanner:It.scanner});It.parser=qC(It.scanner.tokens);for(let n=0;n<It.pluginQueue.length;n++)It.pluginQueue[n][1]({scanner:It.scanner,parser:It.parser});return It.initialized=!0,It}function Td(n){return It.initialized||$C(),HC(It.parser.start,n,N_(It.scanner.start,n))}Td.scan=N_;function P_(n,e=null,t=null){if(e&&typeof e=="object"){if(t)throw Error(`linkifyjs: Invalid link type ${e}; must be a string`);t=e,e=null}const r=new Ed(t),i=Td(n),o=[];for(let s=0;s<i.length;s++){const a=i[s];a.isLink&&(!e||a.t===e)&&r.check(a)&&o.push(a.toFormattedObject(r))}return o}function WC(n){return n.length===1?n[0].isLink:n.length===3&&n[1].isLink?["()","[]"].includes(n[0].value+n[2].value):!1}function KC(n){return new _t({key:new At("autolink"),appendTransaction:(e,t,r)=>{const i=e.some(c=>c.docChanged)&&!t.doc.eq(r.doc),o=e.some(c=>c.getMeta("preventAutolink"));if(!i||o)return;const{tr:s}=r,a=Vk(t.doc,[...e]);if(Zk(a).forEach(({newRange:c})=>{const u=Gk(r.doc,c,b=>b.isTextblock);let h,g;if(u.length>1?(h=u[0],g=r.doc.textBetween(h.pos,h.pos+h.node.nodeSize,void 0," ")):u.length&&r.doc.textBetween(c.from,c.to," "," ").endsWith(" ")&&(h=u[0],g=r.doc.textBetween(h.pos,c.to,void 0," ")),h&&g){const b=g.split(" ").filter(S=>S!=="");if(b.length<=0)return!1;const p=b[b.length-1],v=h.pos+g.lastIndexOf(p);if(!p)return!1;const w=Td(p).map(S=>S.toObject());if(!WC(w))return!1;w.filter(S=>S.isLink).map(S=>({...S,from:v+S.start+1,to:v+S.end+1})).filter(S=>r.schema.marks.code?!r.doc.rangeHasMark(S.from,S.to,r.schema.marks.code):!0).filter(S=>n.validate?n.validate(S.value):!0).forEach(S=>{T0(S.from,S.to,r.doc).some(C=>C.mark.type===n.type)||s.addMark(S.from,S.to,n.type.create({href:S.href}))})}}),!!s.steps.length)return s}})}function jC(n){return new _t({key:new At("handleClickLink"),props:{handleClick:(e,t,r)=>{var i,o;if(n.whenNotEditable&&e.editable||r.button!==0)return!1;let s=r.target;const a=[];for(;s.nodeName!=="DIV";)a.push(s),s=s.parentNode;if(!a.find(g=>g.nodeName==="A"))return!1;const l=tb(e.state,n.type.name),c=r.target,u=(i=c==null?void 0:c.href)!==null&&i!==void 0?i:l.href,h=(o=c==null?void 0:c.target)!==null&&o!==void 0?o:l.target;return c&&u?(window.open(u,h),!0):!1}}})}function QC(n){return new _t({key:new At("handlePasteLink"),props:{handlePaste:(e,t,r)=>{const{state:i}=e,{selection:o}=i,{empty:s}=o;if(s)return!1;let a="";r.content.forEach(c=>{a+=c.textContent});const l=P_(a).find(c=>c.isLink&&c.value===a);return!a||!l?!1:(n.editor.commands.setMark(n.type,{href:l.href}),!0)}}})}const YC=Ji.create({name:"link",priority:1e3,keepOnSplit:!1,onCreate(){this.options.protocols.forEach(n=>{if(typeof n=="string"){B_(n);return}B_(n.scheme,n.optionalSlashes)})},onDestroy(){GC()},inclusive(){return this.options.autolink},addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:void 0}},addAttributes(){return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({HTMLAttributes:n}){var e;return!((e=n.href)===null||e===void 0)&&e.startsWith("javascript:")?["a",jt(this.options.HTMLAttributes,{...n,href:""}),0]:["a",jt(this.options.HTMLAttributes,n),0]},addCommands(){return{setLink:n=>({chain:e})=>e().setMark(this.name,n).setMeta("preventAutolink",!0).run(),toggleLink:n=>({chain:e})=>e().toggleMark(this.name,n,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:n})=>n().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run()}},addPasteRules(){return[ab({find:n=>{const e=[];if(n){const t=P_(n).filter(r=>r.isLink);t.length&&t.forEach(r=>e.push({text:r.value,data:{href:r.href},index:r.start}))}return e},type:this.type,getAttributes:n=>{var e;return{href:(e=n.data)===null||e===void 0?void 0:e.href}}})]},addProseMirrorPlugins(){const n=[];return this.options.autolink&&n.push(KC({type:this.type,validate:this.options.validate})),this.options.openOnClick&&n.push(jC({type:this.type,whenNotEditable:this.options.openOnClick==="whenNotEditable"})),this.options.linkOnPaste&&n.push(QC({editor:this.editor,type:this.type})),n}}),ZC=Ji.create({name:"subscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sub"},{style:"vertical-align",getAttrs(n){return n!=="sub"?!1:null}}]},renderHTML({HTMLAttributes:n}){return["sub",jt(this.options.HTMLAttributes,n),0]},addCommands(){return{setSubscript:()=>({commands:n})=>n.setMark(this.name),toggleSubscript:()=>({commands:n})=>n.toggleMark(this.name),unsetSubscript:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-,":()=>this.editor.commands.toggleSubscript()}}}),XC=Ji.create({name:"superscript",addOptions(){return{HTMLAttributes:{}}},parseHTML(){return[{tag:"sup"},{style:"vertical-align",getAttrs(n){return n!=="super"?!1:null}}]},renderHTML({HTMLAttributes:n}){return["sup",jt(this.options.HTMLAttributes,n),0]},addCommands(){return{setSuperscript:()=>({commands:n})=>n.setMark(this.name),toggleSuperscript:()=>({commands:n})=>n.toggleMark(this.name),unsetSuperscript:()=>({commands:n})=>n.unsetMark(this.name)}},addKeyboardShortcuts(){return{"Mod-.":()=>this.editor.commands.toggleSuperscript()}}}),JC=Mn.create({name:"placeholder",addOptions(){return{emptyEditorClass:"is-editor-empty",emptyNodeClass:"is-empty",placeholder:"Write something …",showOnlyWhenEditable:!0,considerAnyAsEmpty:!1,showOnlyCurrent:!0,includeChildren:!1}},addProseMirrorPlugins(){return[new _t({key:new At("placeholder"),props:{decorations:({doc:n,selection:e})=>{var t;const r=this.editor.isEditable||!this.options.showOnlyWhenEditable,{anchor:i}=e,o=[];if(!r)return null;const{firstChild:s}=n.content,a=s&&s.type.isLeaf,l=s&&s.isAtom,c=this.options.considerAnyAsEmpty?!0:s&&s.type.name===((t=n.type.contentMatch.defaultType)===null||t===void 0?void 0:t.name),u=n.content.childCount<=1&&s&&c&&s.nodeSize<=2&&(!a||!l);return n.descendants((h,g)=>{const b=i>=g&&i<=g+h.nodeSize,p=!h.isLeaf&&!h.childCount;if((b||!this.options.showOnlyCurrent)&&p){const v=[this.options.emptyNodeClass];u&&v.push(this.options.emptyEditorClass);const w=un.node(g,g+h.nodeSize,{class:v.join(" "),"data-placeholder":typeof this.options.placeholder=="function"?this.options.placeholder({editor:this.editor,node:h,pos:g,hasAnchor:b}):this.options.placeholder});o.push(w)}return this.options.includeChildren}),Bt.create(n,o)}}})]}}),e9=/^```([a-z]+)?[\s\n]$/,t9=/^~~~([a-z]+)?[\s\n]$/,n9=Hn.create({name:"codeBlock",addOptions(){return{languageClassPrefix:"language-",exitOnTripleEnter:!0,exitOnArrowDown:!0,HTMLAttributes:{}}},content:"text*",marks:"",group:"block",code:!0,defining:!0,addAttributes(){return{language:{default:null,parseHTML:n=>{var e;const{languageClassPrefix:t}=this.options,o=[...((e=n.firstElementChild)===null||e===void 0?void 0:e.classList)||[]].filter(s=>s.startsWith(t)).map(s=>s.replace(t,""))[0];return o||null},rendered:!1}}},parseHTML(){return[{tag:"pre",preserveWhitespace:"full"}]},renderHTML({node:n,HTMLAttributes:e}){return["pre",jt(this.options.HTMLAttributes,e),["code",{class:n.attrs.language?this.options.languageClassPrefix+n.attrs.language:null},0]]},addCommands(){return{setCodeBlock:n=>({commands:e})=>e.setNode(this.name,n),toggleCodeBlock:n=>({commands:e})=>e.toggleNode(this.name,"paragraph",n)}},addKeyboardShortcuts(){return{"Mod-Alt-c":()=>this.editor.commands.toggleCodeBlock(),Backspace:()=>{const{empty:n,$anchor:e}=this.editor.state.selection,t=e.pos===1;return!n||e.parent.type.name!==this.name?!1:t||!e.parent.textContent.length?this.editor.commands.clearNodes():!1},Enter:({editor:n})=>{if(!this.options.exitOnTripleEnter)return!1;const{state:e}=n,{selection:t}=e,{$from:r,empty:i}=t;if(!i||r.parent.type!==this.type)return!1;const o=r.parentOffset===r.parent.nodeSize-2,s=r.parent.textContent.endsWith(`
120
+
121
+ `);return!o||!s?!1:n.chain().command(({tr:a})=>(a.delete(r.pos-2,r.pos),!0)).exitCode().run()},ArrowDown:({editor:n})=>{if(!this.options.exitOnArrowDown)return!1;const{state:e}=n,{selection:t,doc:r}=e,{$from:i,empty:o}=t;if(!o||i.parent.type!==this.type||!(i.parentOffset===i.parent.nodeSize-2))return!1;const a=i.after();return a===void 0||r.nodeAt(a)?!1:n.commands.exitCode()}}},addInputRules(){return[ob({find:e9,type:this.type,getAttributes:n=>({language:n[1]})}),ob({find:t9,type:this.type,getAttributes:n=>({language:n[1]})})]},addProseMirrorPlugins(){return[new _t({key:new At("codeBlockVSCodeHandler"),props:{handlePaste:(n,e)=>{if(!e.clipboardData||this.editor.isActive(this.type.name))return!1;const t=e.clipboardData.getData("text/plain"),r=e.clipboardData.getData("vscode-editor-data"),i=r?JSON.parse(r):void 0,o=i==null?void 0:i.mode;if(!t||!o)return!1;const{tr:s}=n.state;return s.replaceSelectionWith(this.type.create({language:o})),s.setSelection(Ne.near(s.doc.resolve(Math.max(0,s.selection.from-2)))),s.insertText(t.replace(/\r\n?/g,`
122
+ `)),s.setMeta("paste",!0),n.dispatch(s),!0}}})]}});var Ad={exports:{}};function Md(n){return n instanceof Map?n.clear=n.delete=n.set=function(){throw new Error("map is read-only")}:n instanceof Set&&(n.add=n.clear=n.delete=function(){throw new Error("set is read-only")}),Object.freeze(n),Object.getOwnPropertyNames(n).forEach(function(e){var t=n[e];typeof t=="object"&&!Object.isFrozen(t)&&Md(t)}),n}Ad.exports=Md,Ad.exports.default=Md;class F_{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function z_(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function Ci(n,...e){const t=Object.create(null);for(const r in n)t[r]=n[r];return e.forEach(function(r){for(const i in r)t[i]=r[i]}),t}const r9="</span>",q_=n=>!!n.scope||n.sublanguage&&n.language,i9=(n,{prefix:e})=>{if(n.includes(".")){const t=n.split(".");return[`${e}${t.shift()}`,...t.map((r,i)=>`${r}${"_".repeat(i+1)}`)].join(" ")}return`${e}${n}`};class o9{constructor(e,t){this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=z_(e)}openNode(e){if(!q_(e))return;let t="";e.sublanguage?t=`language-${e.language}`:t=i9(e.scope,{prefix:this.classPrefix}),this.span(t)}closeNode(e){q_(e)&&(this.buffer+=r9)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}const H_=(n={})=>{const e={children:[]};return Object.assign(e,n),e};class Nd{constructor(){this.rootNode=H_(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const t=H_({scope:e});this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t=="string"?e.addText(t):t.children&&(e.openNode(t),t.children.forEach(r=>this._walk(e,r)),e.closeNode(t)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(t=>typeof t=="string")?e.children=[e.children.join("")]:e.children.forEach(t=>{Nd._collapse(t)}))}}class s9 extends Nd{constructor(e){super(),this.options=e}addKeyword(e,t){e!==""&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){e!==""&&this.add(e)}addSublanguage(e,t){const r=e.root;r.sublanguage=!0,r.language=t,this.add(r)}toHTML(){return new o9(this,this.options).value()}finalize(){return!0}}function aa(n){return n?typeof n=="string"?n:n.source:null}function V_(n){return co("(?=",n,")")}function a9(n){return co("(?:",n,")*")}function l9(n){return co("(?:",n,")?")}function co(...n){return n.map(t=>aa(t)).join("")}function c9(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Dd(...n){return"("+(c9(n).capture?"":"?:")+n.map(r=>aa(r)).join("|")+")"}function U_(n){return new RegExp(n.toString()+"|").exec("").length-1}function u9(n,e){const t=n&&n.exec(e);return t&&t.index===0}const d9=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Rd(n,{joinWith:e}){let t=0;return n.map(r=>{t+=1;const i=t;let o=aa(r),s="";for(;o.length>0;){const a=d9.exec(o);if(!a){s+=o;break}s+=o.substring(0,a.index),o=o.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?s+="\\"+String(Number(a[1])+i):(s+=a[0],a[0]==="("&&t++)}return s}).map(r=>`(${r})`).join(e)}const h9=/\b\B/,G_="[a-zA-Z]\\w*",Od="[a-zA-Z_]\\w*",$_="\\b\\d+(\\.\\d+)?",W_="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",K_="\\b(0b[01]+)",f9="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",p9=(n={})=>{const e=/^#![ ]*\//;return n.binary&&(n.begin=co(e,/.*\b/,n.binary,/\b.*/)),Ci({scope:"meta",begin:e,end:/$/,relevance:0,"on:begin":(t,r)=>{t.index!==0&&r.ignoreMatch()}},n)},la={begin:"\\\\[\\s\\S]",relevance:0},m9={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[la]},g9={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[la]},b9={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},hc=function(n,e,t={}){const r=Ci({scope:"comment",begin:n,end:e,contains:[]},t);r.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const i=Dd("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return r.contains.push({begin:co(/[ ]+/,"(",i,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),r},_9=hc("//","$"),y9=hc("/\\*","\\*/"),v9=hc("#","$"),w9={scope:"number",begin:$_,relevance:0},x9={scope:"number",begin:W_,relevance:0},k9={scope:"number",begin:K_,relevance:0},S9={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[la,{begin:/\[/,end:/\]/,relevance:0,contains:[la]}]}]},E9={scope:"title",begin:G_,relevance:0},C9={scope:"title",begin:Od,relevance:0},T9={begin:"\\.\\s*"+Od,relevance:0};var fc=Object.freeze({__proto__:null,MATCH_NOTHING_RE:h9,IDENT_RE:G_,UNDERSCORE_IDENT_RE:Od,NUMBER_RE:$_,C_NUMBER_RE:W_,BINARY_NUMBER_RE:K_,RE_STARTERS_RE:f9,SHEBANG:p9,BACKSLASH_ESCAPE:la,APOS_STRING_MODE:m9,QUOTE_STRING_MODE:g9,PHRASAL_WORDS_MODE:b9,COMMENT:hc,C_LINE_COMMENT_MODE:_9,C_BLOCK_COMMENT_MODE:y9,HASH_COMMENT_MODE:v9,NUMBER_MODE:w9,C_NUMBER_MODE:x9,BINARY_NUMBER_MODE:k9,REGEXP_MODE:S9,TITLE_MODE:E9,UNDERSCORE_TITLE_MODE:C9,METHOD_GUARD:T9,END_SAME_AS_BEGIN:function(n){return Object.assign(n,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function A9(n,e){n.input[n.index-1]==="."&&e.ignoreMatch()}function M9(n,e){n.className!==void 0&&(n.scope=n.className,delete n.className)}function N9(n,e){e&&n.beginKeywords&&(n.begin="\\b("+n.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",n.__beforeBegin=A9,n.keywords=n.keywords||n.beginKeywords,delete n.beginKeywords,n.relevance===void 0&&(n.relevance=0))}function D9(n,e){Array.isArray(n.illegal)&&(n.illegal=Dd(...n.illegal))}function R9(n,e){if(n.match){if(n.begin||n.end)throw new Error("begin & end are not supported with match");n.begin=n.match,delete n.match}}function O9(n,e){n.relevance===void 0&&(n.relevance=1)}const I9=(n,e)=>{if(!n.beforeMatch)return;if(n.starts)throw new Error("beforeMatch cannot be used with starts");const t=Object.assign({},n);Object.keys(n).forEach(r=>{delete n[r]}),n.keywords=t.keywords,n.begin=co(t.beforeMatch,V_(t.begin)),n.starts={relevance:0,contains:[Object.assign(t,{endsParent:!0})]},n.relevance=0,delete t.beforeMatch},L9=["of","and","for","in","not","or","if","then","parent","list","value"],B9="keyword";function j_(n,e,t=B9){const r=Object.create(null);return typeof n=="string"?i(t,n.split(" ")):Array.isArray(n)?i(t,n):Object.keys(n).forEach(function(o){Object.assign(r,j_(n[o],e,o))}),r;function i(o,s){e&&(s=s.map(a=>a.toLowerCase())),s.forEach(function(a){const l=a.split("|");r[l[0]]=[o,P9(l[0],l[1])]})}}function P9(n,e){return e?Number(e):F9(n)?0:1}function F9(n){return L9.includes(n.toLowerCase())}const Q_={},uo=n=>{console.error(n)},Y_=(n,...e)=>{console.log(`WARN: ${n}`,...e)},Ko=(n,e)=>{Q_[`${n}/${e}`]||(console.log(`Deprecated as of ${n}. ${e}`),Q_[`${n}/${e}`]=!0)},pc=new Error;function Z_(n,e,{key:t}){let r=0;const i=n[t],o={},s={};for(let a=1;a<=e.length;a++)s[a+r]=i[a],o[a+r]=!0,r+=U_(e[a-1]);n[t]=s,n[t]._emit=o,n[t]._multi=!0}function z9(n){if(Array.isArray(n.begin)){if(n.skip||n.excludeBegin||n.returnBegin)throw uo("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),pc;if(typeof n.beginScope!="object"||n.beginScope===null)throw uo("beginScope must be object"),pc;Z_(n,n.begin,{key:"beginScope"}),n.begin=Rd(n.begin,{joinWith:""})}}function q9(n){if(Array.isArray(n.end)){if(n.skip||n.excludeEnd||n.returnEnd)throw uo("skip, excludeEnd, returnEnd not compatible with endScope: {}"),pc;if(typeof n.endScope!="object"||n.endScope===null)throw uo("endScope must be object"),pc;Z_(n,n.end,{key:"endScope"}),n.end=Rd(n.end,{joinWith:""})}}function H9(n){n.scope&&typeof n.scope=="object"&&n.scope!==null&&(n.beginScope=n.scope,delete n.scope)}function V9(n){H9(n),typeof n.beginScope=="string"&&(n.beginScope={_wrap:n.beginScope}),typeof n.endScope=="string"&&(n.endScope={_wrap:n.endScope}),z9(n),q9(n)}function U9(n){function e(s,a){return new RegExp(aa(s),"m"+(n.case_insensitive?"i":"")+(n.unicodeRegex?"u":"")+(a?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(a,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,a]),this.matchAt+=U_(a)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const a=this.regexes.map(l=>l[1]);this.matcherRe=e(Rd(a,{joinWith:"|"}),!0),this.lastIndex=0}exec(a){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(a);if(!l)return null;const c=l.findIndex((h,g)=>g>0&&h!==void 0),u=this.matchIndexes[c];return l.splice(0,c),Object.assign(l,u)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(a){if(this.multiRegexes[a])return this.multiRegexes[a];const l=new t;return this.rules.slice(a).forEach(([c,u])=>l.addRule(c,u)),l.compile(),this.multiRegexes[a]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(a,l){this.rules.push([a,l]),l.type==="begin"&&this.count++}exec(a){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let c=l.exec(a);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const u=this.getMatcher(0);u.lastIndex=this.lastIndex+1,c=u.exec(a)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}function i(s){const a=new r;return s.contains.forEach(l=>a.addRule(l.begin,{rule:l,type:"begin"})),s.terminatorEnd&&a.addRule(s.terminatorEnd,{type:"end"}),s.illegal&&a.addRule(s.illegal,{type:"illegal"}),a}function o(s,a){const l=s;if(s.isCompiled)return l;[M9,R9,V9,I9].forEach(u=>u(s,a)),n.compilerExtensions.forEach(u=>u(s,a)),s.__beforeBegin=null,[N9,D9,O9].forEach(u=>u(s,a)),s.isCompiled=!0;let c=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),c=s.keywords.$pattern,delete s.keywords.$pattern),c=c||/\w+/,s.keywords&&(s.keywords=j_(s.keywords,n.case_insensitive)),l.keywordPatternRe=e(c,!0),a&&(s.begin||(s.begin=/\B|\b/),l.beginRe=e(l.begin),!s.end&&!s.endsWithParent&&(s.end=/\B|\b/),s.end&&(l.endRe=e(l.end)),l.terminatorEnd=aa(l.end)||"",s.endsWithParent&&a.terminatorEnd&&(l.terminatorEnd+=(s.end?"|":"")+a.terminatorEnd)),s.illegal&&(l.illegalRe=e(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(function(u){return G9(u==="self"?s:u)})),s.contains.forEach(function(u){o(u,l)}),s.starts&&o(s.starts,a),l.matcher=i(l),l}if(n.compilerExtensions||(n.compilerExtensions=[]),n.contains&&n.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return n.classNameAliases=Ci(n.classNameAliases||{}),o(n)}function X_(n){return n?n.endsWithParent||X_(n.starts):!1}function G9(n){return n.variants&&!n.cachedVariants&&(n.cachedVariants=n.variants.map(function(e){return Ci(n,{variants:null},e)})),n.cachedVariants?n.cachedVariants:X_(n)?Ci(n,{starts:n.starts?Ci(n.starts):null}):Object.isFrozen(n)?Ci(n):n}var $9="11.6.0";class W9 extends Error{constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}const Id=z_,J_=Ci,ey=Symbol("nomatch"),K9=7;var ca=function(n){const e=Object.create(null),t=Object.create(null),r=[];let i=!0;const o="Could not find the language '{}', did you forget to load/include a language module?",s={disableAutodetect:!0,name:"Plain text",contains:[]};let a={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:s9};function l($){return a.noHighlightRe.test($)}function c($){let Q=$.className+" ";Q+=$.parentNode?$.parentNode.className:"";const ie=a.languageDetectRe.exec(Q);if(ie){const Z=U(ie[1]);return Z||(Y_(o.replace("{}",ie[1])),Y_("Falling back to no-highlight mode for this block.",$)),Z?ie[1]:"no-highlight"}return Q.split(/\s+/).find(Z=>l(Z)||U(Z))}function u($,Q,ie){let Z="",J="";typeof Q=="object"?(Z=$,ie=Q.ignoreIllegals,J=Q.language):(Ko("10.7.0","highlight(lang, code, ...args) has been deprecated."),Ko("10.7.0",`Please use highlight(code, options) instead.
123
+ https://github.com/highlightjs/highlight.js/issues/2277`),J=$,Z=Q),ie===void 0&&(ie=!0);const ue={code:Z,language:J};K("before:highlight",ue);const fe=ue.result?ue.result:h(ue.language,ue.code,ie);return fe.code=ue.code,K("after:highlight",fe),fe}function h($,Q,ie,Z){const J=Object.create(null);function ue(ge,Ce){return ge.keywords[Ce]}function fe(){if(!He.keywords){Ct.addText(Xe);return}let ge=0;He.keywordPatternRe.lastIndex=0;let Ce=He.keywordPatternRe.exec(Xe),qe="";for(;Ce;){qe+=Xe.substring(ge,Ce.index);const Je=it.case_insensitive?Ce[0].toLowerCase():Ce[0],Ht=ue(He,Je);if(Ht){const[Pt,Or]=Ht;if(Ct.addText(qe),qe="",J[Je]=(J[Je]||0)+1,J[Je]<=K9&&(Zt+=Or),Pt.startsWith("_"))qe+=Ce[0];else{const Ni=it.classNameAliases[Pt]||Pt;Ct.addKeyword(Ce[0],Ni)}}else qe+=Ce[0];ge=He.keywordPatternRe.lastIndex,Ce=He.keywordPatternRe.exec(Xe)}qe+=Xe.substring(ge),Ct.addText(qe)}function ke(){if(Xe==="")return;let ge=null;if(typeof He.subLanguage=="string"){if(!e[He.subLanguage]){Ct.addText(Xe);return}ge=h(He.subLanguage,Xe,!0,sr[He.subLanguage]),sr[He.subLanguage]=ge._top}else ge=b(Xe,He.subLanguage.length?He.subLanguage:null);He.relevance>0&&(Zt+=ge.relevance),Ct.addSublanguage(ge._emitter,ge.language)}function Te(){He.subLanguage!=null?ke():fe(),Xe=""}function Ke(ge,Ce){let qe=1;const Je=Ce.length-1;for(;qe<=Je;){if(!ge._emit[qe]){qe++;continue}const Ht=it.classNameAliases[ge[qe]]||ge[qe],Pt=Ce[qe];Ht?Ct.addKeyword(Pt,Ht):(Xe=Pt,fe(),Xe=""),qe++}}function Qe(ge,Ce){return ge.scope&&typeof ge.scope=="string"&&Ct.openNode(it.classNameAliases[ge.scope]||ge.scope),ge.beginScope&&(ge.beginScope._wrap?(Ct.addKeyword(Xe,it.classNameAliases[ge.beginScope._wrap]||ge.beginScope._wrap),Xe=""):ge.beginScope._multi&&(Ke(ge.beginScope,Ce),Xe="")),He=Object.create(ge,{parent:{value:He}}),He}function Ze(ge,Ce,qe){let Je=u9(ge.endRe,qe);if(Je){if(ge["on:end"]){const Ht=new F_(ge);ge["on:end"](Ce,Ht),Ht.isMatchIgnored&&(Je=!1)}if(Je){for(;ge.endsParent&&ge.parent;)ge=ge.parent;return ge}}if(ge.endsWithParent)return Ze(ge.parent,Ce,qe)}function ot(ge){return He.matcher.regexIndex===0?(Xe+=ge[0],1):(Lt=!0,0)}function Be(ge){const Ce=ge[0],qe=ge.rule,Je=new F_(qe),Ht=[qe.__beforeBegin,qe["on:begin"]];for(const Pt of Ht)if(Pt&&(Pt(ge,Je),Je.isMatchIgnored))return ot(Ce);return qe.skip?Xe+=Ce:(qe.excludeBegin&&(Xe+=Ce),Te(),!qe.returnBegin&&!qe.excludeBegin&&(Xe=Ce)),Qe(qe,ge),qe.returnBegin?0:Ce.length}function dt(ge){const Ce=ge[0],qe=Q.substring(ge.index),Je=Ze(He,ge,qe);if(!Je)return ey;const Ht=He;He.endScope&&He.endScope._wrap?(Te(),Ct.addKeyword(Ce,He.endScope._wrap)):He.endScope&&He.endScope._multi?(Te(),Ke(He.endScope,ge)):Ht.skip?Xe+=Ce:(Ht.returnEnd||Ht.excludeEnd||(Xe+=Ce),Te(),Ht.excludeEnd&&(Xe=Ce));do He.scope&&Ct.closeNode(),!He.skip&&!He.subLanguage&&(Zt+=He.relevance),He=He.parent;while(He!==Je.parent);return Je.starts&&Qe(Je.starts,ge),Ht.returnEnd?0:Ce.length}function tt(){const ge=[];for(let Ce=He;Ce!==it;Ce=Ce.parent)Ce.scope&&ge.unshift(Ce.scope);ge.forEach(Ce=>Ct.openNode(Ce))}let at={};function ht(ge,Ce){const qe=Ce&&Ce[0];if(Xe+=ge,qe==null)return Te(),0;if(at.type==="begin"&&Ce.type==="end"&&at.index===Ce.index&&qe===""){if(Xe+=Q.slice(Ce.index,Ce.index+1),!i){const Je=new Error(`0 width match regex (${$})`);throw Je.languageName=$,Je.badRule=at.rule,Je}return 1}if(at=Ce,Ce.type==="begin")return Be(Ce);if(Ce.type==="illegal"&&!ie){const Je=new Error('Illegal lexeme "'+qe+'" for mode "'+(He.scope||"<unnamed>")+'"');throw Je.mode=He,Je}else if(Ce.type==="end"){const Je=dt(Ce);if(Je!==ey)return Je}if(Ce.type==="illegal"&&qe==="")return 1;if(Tn>1e5&&Tn>Ce.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Xe+=qe,qe.length}const it=U($);if(!it)throw uo(o.replace("{}",$)),new Error('Unknown language: "'+$+'"');const ct=U9(it);let Et="",He=Z||ct;const sr={},Ct=new a.__emitter(a);tt();let Xe="",Zt=0,hn=0,Tn=0,Lt=!1;try{for(He.matcher.considerAll();;){Tn++,Lt?Lt=!1:He.matcher.considerAll(),He.matcher.lastIndex=hn;const ge=He.matcher.exec(Q);if(!ge)break;const Ce=Q.substring(hn,ge.index),qe=ht(Ce,ge);hn=ge.index+qe}return ht(Q.substring(hn)),Ct.closeAllNodes(),Ct.finalize(),Et=Ct.toHTML(),{language:$,value:Et,relevance:Zt,illegal:!1,_emitter:Ct,_top:He}}catch(ge){if(ge.message&&ge.message.includes("Illegal"))return{language:$,value:Id(Q),illegal:!0,relevance:0,_illegalBy:{message:ge.message,index:hn,context:Q.slice(hn-100,hn+100),mode:ge.mode,resultSoFar:Et},_emitter:Ct};if(i)return{language:$,value:Id(Q),illegal:!1,relevance:0,errorRaised:ge,_emitter:Ct,_top:He};throw ge}}function g($){const Q={value:Id($),illegal:!1,relevance:0,_top:s,_emitter:new a.__emitter(a)};return Q._emitter.addText($),Q}function b($,Q){Q=Q||a.languages||Object.keys(e);const ie=g($),Z=Q.filter(U).filter(Y).map(Te=>h(Te,$,!1));Z.unshift(ie);const J=Z.sort((Te,Ke)=>{if(Te.relevance!==Ke.relevance)return Ke.relevance-Te.relevance;if(Te.language&&Ke.language){if(U(Te.language).supersetOf===Ke.language)return 1;if(U(Ke.language).supersetOf===Te.language)return-1}return 0}),[ue,fe]=J,ke=ue;return ke.secondBest=fe,ke}function p($,Q,ie){const Z=Q&&t[Q]||ie;$.classList.add("hljs"),$.classList.add(`language-${Z}`)}function v($){let Q=null;const ie=c($);if(l(ie))return;if(K("before:highlightElement",{el:$,language:ie}),$.children.length>0&&(a.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn($)),a.throwUnescapedHTML))throw new W9("One of your code blocks includes unescaped HTML.",$.innerHTML);Q=$;const Z=Q.textContent,J=ie?u(Z,{language:ie,ignoreIllegals:!0}):b(Z);$.innerHTML=J.value,p($,ie,J.language),$.result={language:J.language,re:J.relevance,relevance:J.relevance},J.secondBest&&($.secondBest={language:J.secondBest.language,relevance:J.secondBest.relevance}),K("after:highlightElement",{el:$,result:J,text:Z})}function w($){a=J_(a,$)}const S=()=>{A(),Ko("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function C(){A(),Ko("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let E=!1;function A(){if(document.readyState==="loading"){E=!0;return}document.querySelectorAll(a.cssSelector).forEach(v)}function R(){E&&A()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",R,!1);function O($,Q){let ie=null;try{ie=Q(n)}catch(Z){if(uo("Language definition for '{}' could not be registered.".replace("{}",$)),i)uo(Z);else throw Z;ie=s}ie.name||(ie.name=$),e[$]=ie,ie.rawDefinition=Q.bind(null,n),ie.aliases&&F(ie.aliases,{languageName:$})}function H($){delete e[$];for(const Q of Object.keys(t))t[Q]===$&&delete t[Q]}function q(){return Object.keys(e)}function U($){return $=($||"").toLowerCase(),e[$]||e[t[$]]}function F($,{languageName:Q}){typeof $=="string"&&($=[$]),$.forEach(ie=>{t[ie.toLowerCase()]=Q})}function Y($){const Q=U($);return Q&&!Q.disableAutodetect}function X($){$["before:highlightBlock"]&&!$["before:highlightElement"]&&($["before:highlightElement"]=Q=>{$["before:highlightBlock"](Object.assign({block:Q.el},Q))}),$["after:highlightBlock"]&&!$["after:highlightElement"]&&($["after:highlightElement"]=Q=>{$["after:highlightBlock"](Object.assign({block:Q.el},Q))})}function oe($){X($),r.push($)}function K($,Q){const ie=$;r.forEach(function(Z){Z[ie]&&Z[ie](Q)})}function ee($){return Ko("10.7.0","highlightBlock will be removed entirely in v12.0"),Ko("10.7.0","Please use highlightElement now."),v($)}Object.assign(n,{highlight:u,highlightAuto:b,highlightAll:A,highlightElement:v,highlightBlock:ee,configure:w,initHighlighting:S,initHighlightingOnLoad:C,registerLanguage:O,unregisterLanguage:H,listLanguages:q,getLanguage:U,registerAliases:F,autoDetection:Y,inherit:J_,addPlugin:oe}),n.debugMode=function(){i=!1},n.safeMode=function(){i=!0},n.versionString=$9,n.regex={concat:co,lookahead:V_,either:Dd,optional:l9,anyNumberOfTimes:a9};for(const $ in fc)typeof fc[$]=="object"&&Ad.exports(fc[$]);return Object.assign(n,fc),n}({}),j9=ca;ca.HighlightJS=ca,ca.default=ca;var Q9=j9;function ty(n,e=[]){return n.map(t=>{const r=[...e,...t.properties?t.properties.className:[]];return t.children?ty(t.children,r):{text:t.value,classes:r}}).flat()}function ny(n){return n.value||n.children||[]}function Y9(n){return!!Q9.getLanguage(n)}function ry({doc:n,name:e,lowlight:t,defaultLanguage:r}){const i=[];return E0(n,o=>o.type.name===e).forEach(o=>{let s=o.pos+1;const a=o.node.attrs.language||r,l=t.listLanguages(),c=a&&(l.includes(a)||Y9(a))?ny(t.highlight(a,o.node.textContent)):ny(t.highlightAuto(o.node.textContent));ty(c).forEach(u=>{const h=s+u.text.length;if(u.classes.length){const g=un.inline(s,h,{class:u.classes.join(" ")});i.push(g)}s=h})}),Bt.create(n,i)}function Z9(n){return typeof n=="function"}function X9({name:n,lowlight:e,defaultLanguage:t}){if(!["highlight","highlightAuto","listLanguages"].every(i=>Z9(e[i])))throw Error("You should provide an instance of lowlight to use the code-block-lowlight extension");const r=new _t({key:new At("lowlight"),state:{init:(i,{doc:o})=>ry({doc:o,name:n,lowlight:e,defaultLanguage:t}),apply:(i,o,s,a)=>{const l=s.selection.$head.parent.type.name,c=a.selection.$head.parent.type.name,u=E0(s.doc,g=>g.type.name===n),h=E0(a.doc,g=>g.type.name===n);return i.docChanged&&([l,c].includes(n)||h.length!==u.length||i.steps.some(g=>g.from!==void 0&&g.to!==void 0&&u.some(b=>b.pos>=g.from&&b.pos+b.node.nodeSize<=g.to)))?ry({doc:i.doc,name:n,lowlight:e,defaultLanguage:t}):o.map(i.mapping,i.doc)}},props:{decorations(i){return r.getState(i)}}});return r}const J9=n9.extend({addOptions(){var n;return{...(n=this.parent)===null||n===void 0?void 0:n.call(this),lowlight:{},defaultLanguage:null}},addProseMirrorPlugins(){var n;return[...((n=this.parent)===null||n===void 0?void 0:n.call(this))||[],X9({name:this.name,lowlight:this.options.lowlight,defaultLanguage:this.options.defaultLanguage})]}}),an=(n,e)=>{const t=n.__vccOpts||n;for(const[r,i]of e)t[r]=i;return t},eT={components:{NodeViewWrapper:io,NodeViewContent:Xb},props:{editor:{type:Object},node:{type:Object},decorations:{type:Array},selected:{type:Boolean},extension:{type:Object},getPos:{type:Function},updateAttributes:{type:Function},deleteNode:{type:Function}},data(){return{selectedLanguage:{},status:{copy:!1},timer:{copy:null}}},watch:{selectedLanguage(){this.updateAttributes({language:this.selectedLanguage.key})}},computed:{languages(){let n=this.extension.options.lowlight.listLanguages(),e=[];for(let t=0;t<n.length;t++)e.push({key:n[t],text:n[t][0].toUpperCase()+n[t].slice(1).toLowerCase()});return e.unshift({key:"",text:"Default"}),e}},mounted(){let n=this.languages.find(e=>e.key===this.node.attrs.language);n?this.selectedLanguage=n:this.selectedLanguage=this.languages[0]},methods:{copyCode(){if(this.status.copy)return;this.status.copy=!0;let n=this.node.textContent,e=document.createElement("textarea");e.value=n,document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),this.timer.copy=setTimeout(()=>{this.status.copy=!1},3e3)}}},tT={contenteditable:"false",class:"power-editor-code-block-banner"},nT={class:"power-editor-code-block-banner-left-block"},rT={class:"power-editor-code-block-language"},iT={class:"power-editor-code-block-banner-right-block"},oT={key:0,contenteditable:"false",class:"power-editor-code-block-line-number-block"},sT=["title"];function aT(n,e,t,r,i,o){const s=y.resolveComponent("fv-combobox"),a=y.resolveComponent("fv-button"),l=y.resolveComponent("node-view-content"),c=y.resolveComponent("node-view-wrapper");return y.openBlock(),y.createBlock(c,{class:"power-editor-code-block"},{default:y.withCtx(()=>[y.createElementVNode("div",tT,[y.createElementVNode("div",nT,[y.createElementVNode("p",rT,y.toDisplayString(t.node.attrs.language),1)]),y.createElementVNode("div",iT,[y.withDirectives(y.createVNode(s,{modelValue:i.selectedLanguage,"onUpdate:modelValue":e[0]||(e[0]=u=>i.selectedLanguage=u),placeholder:"Select language",theme:"dark",options:o.languages,style:{width:"120px",height:"30px"}},null,8,["modelValue","options"]),[[y.vShow,t.editor.storage.defaultStorage.codeBlockLanguagesBox]]),y.createVNode(a,{theme:"dark",background:"rgba(36, 36, 36, 1)","is-box-shadow":!0,style:{width:"30px",height:"30px","margin-left":"5px"},title:i.status.copy?"Copied":"Copy",onClick:o.copyCode},{default:y.withCtx(()=>[y.createElementVNode("i",{class:y.normalizeClass(["ms-Icon",[`ms-Icon--${i.status.copy?"Accept":"Copy"}`]])},null,2)]),_:1},8,["title","onClick"])])]),y.createElementVNode("pre",{class:y.normalizeClass(["power-editor-code-block-pre",[{lineNumber:t.editor.storage.defaultStorage.codeBlockLineNumbers}]])},[y.createElementVNode("code",null,[y.createVNode(l)])],2),t.editor.storage.defaultStorage.codeBlockLineNumbers?(y.openBlock(),y.createElementBlock("div",oT,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(t.node.textContent.split(`
124
+ `),(u,h)=>(y.openBlock(),y.createElementBlock("div",{key:h,class:"power-editor-code-block-line-number-item",title:h+1},y.toDisplayString(h+1),9,sT))),128))])):y.createCommentVNode("",!0)]),_:1})}const lT=an(eT,[["render",aT]]),cT=J9.extend({addNodeView(){return vi(lT)}});var Ld,Bd;if(typeof WeakMap<"u"){let n=new WeakMap;Ld=e=>n.get(e),Bd=(e,t)=>(n.set(e,t),t)}else{const n=[];let t=0;Ld=r=>{for(let i=0;i<n.length;i+=2)if(n[i]==r)return n[i+1]},Bd=(r,i)=>(t==10&&(t=0),n[t++]=r,n[t++]=i)}var $t=class{constructor(n,e,t,r){this.width=n,this.height=e,this.map=t,this.problems=r}findCell(n){for(let e=0;e<this.map.length;e++){const t=this.map[e];if(t!=n)continue;const r=e%this.width,i=e/this.width|0;let o=r+1,s=i+1;for(let a=1;o<this.width&&this.map[e+a]==t;a++)o++;for(let a=1;s<this.height&&this.map[e+this.width*a]==t;a++)s++;return{left:r,top:i,right:o,bottom:s}}throw new RangeError(`No cell with offset ${n} found`)}colCount(n){for(let e=0;e<this.map.length;e++)if(this.map[e]==n)return e%this.width;throw new RangeError(`No cell with offset ${n} found`)}nextCell(n,e,t){const{left:r,right:i,top:o,bottom:s}=this.findCell(n);return e=="horiz"?(t<0?r==0:i==this.width)?null:this.map[o*this.width+(t<0?r-1:i)]:(t<0?o==0:s==this.height)?null:this.map[r+this.width*(t<0?o-1:s)]}rectBetween(n,e){const{left:t,right:r,top:i,bottom:o}=this.findCell(n),{left:s,right:a,top:l,bottom:c}=this.findCell(e);return{left:Math.min(t,s),top:Math.min(i,l),right:Math.max(r,a),bottom:Math.max(o,c)}}cellsInRect(n){const e=[],t={};for(let r=n.top;r<n.bottom;r++)for(let i=n.left;i<n.right;i++){const o=r*this.width+i,s=this.map[o];t[s]||(t[s]=!0,!(i==n.left&&i&&this.map[o-1]==s||r==n.top&&r&&this.map[o-this.width]==s)&&e.push(s))}return e}positionAt(n,e,t){for(let r=0,i=0;;r++){const o=i+t.child(r).nodeSize;if(r==n){let s=e+n*this.width;const a=(n+1)*this.width;for(;s<a&&this.map[s]<i;)s++;return s==a?o-1:this.map[s]}i=o}}static get(n){return Ld(n)||Bd(n,uT(n))}};function uT(n){if(n.type.spec.tableRole!="table")throw new RangeError("Not a table node: "+n.type.name);const e=dT(n),t=n.childCount,r=[];let i=0,o=null;const s=[];for(let c=0,u=e*t;c<u;c++)r[c]=0;for(let c=0,u=0;c<t;c++){const h=n.child(c);u++;for(let p=0;;p++){for(;i<r.length&&r[i]!=0;)i++;if(p==h.childCount)break;const v=h.child(p),{colspan:w,rowspan:S,colwidth:C}=v.attrs;for(let E=0;E<S;E++){if(E+c>=t){(o||(o=[])).push({type:"overlong_rowspan",pos:u,n:S-E});break}const A=i+E*e;for(let R=0;R<w;R++){r[A+R]==0?r[A+R]=u:(o||(o=[])).push({type:"collision",row:c,pos:u,n:w-R});const O=C&&C[R];if(O){const H=(A+R)%e*2,q=s[H];q==null||q!=O&&s[H+1]==1?(s[H]=O,s[H+1]=1):q==O&&s[H+1]++}}}i+=w,u+=v.nodeSize}const g=(c+1)*e;let b=0;for(;i<g;)r[i++]==0&&b++;b&&(o||(o=[])).push({type:"missing",row:c,n:b}),u++}(e===0||t===0)&&(o||(o=[])).push({type:"zero_sized"});const a=new $t(e,t,r,o);let l=!1;for(let c=0;!l&&c<s.length;c+=2)s[c]!=null&&s[c+1]<t&&(l=!0);return l&&hT(a,s,n),a}function dT(n){let e=-1,t=!1;for(let r=0;r<n.childCount;r++){const i=n.child(r);let o=0;if(t)for(let s=0;s<r;s++){const a=n.child(s);for(let l=0;l<a.childCount;l++){const c=a.child(l);s+c.attrs.rowspan>r&&(o+=c.attrs.colspan)}}for(let s=0;s<i.childCount;s++){const a=i.child(s);o+=a.attrs.colspan,a.attrs.rowspan>1&&(t=!0)}e==-1?e=o:e!=o&&(e=Math.max(e,o))}return e}function hT(n,e,t){n.problems||(n.problems=[]);const r={};for(let i=0;i<n.map.length;i++){const o=n.map[i];if(r[o])continue;r[o]=!0;const s=t.nodeAt(o);if(!s)throw new RangeError(`No cell with offset ${o} found`);let a=null;const l=s.attrs;for(let c=0;c<l.colspan;c++){const u=(i+c)%n.width,h=e[u*2];h!=null&&(!l.colwidth||l.colwidth[c]!=h)&&((a||(a=fT(l)))[c]=h)}a&&n.problems.unshift({type:"colwidth mismatch",pos:o,colwidth:a})}}function fT(n){if(n.colwidth)return n.colwidth.slice();const e=[];for(let t=0;t<n.colspan;t++)e.push(0);return e}function yn(n){let e=n.cached.tableNodeTypes;if(!e){e=n.cached.tableNodeTypes={};for(const t in n.nodes){const r=n.nodes[t],i=r.spec.tableRole;i&&(e[i]=r)}}return e}var Ti=new At("selectingCells");function jo(n){for(let e=n.depth-1;e>0;e--)if(n.node(e).type.spec.tableRole=="row")return n.node(0).resolve(n.before(e+1));return null}function pT(n){for(let e=n.depth;e>0;e--){const t=n.node(e).type.spec.tableRole;if(t==="cell"||t==="header_cell")return n.node(e)}return null}function fr(n){const e=n.selection.$head;for(let t=e.depth;t>0;t--)if(e.node(t).type.spec.tableRole=="row")return!0;return!1}function mc(n){const e=n.selection;if("$anchorCell"in e&&e.$anchorCell)return e.$anchorCell.pos>e.$headCell.pos?e.$anchorCell:e.$headCell;if("node"in e&&e.node&&e.node.type.spec.tableRole=="cell")return e.$anchor;const t=jo(e.$head)||mT(e.$head);if(t)return t;throw new RangeError(`No cell found around position ${e.head}`)}function mT(n){for(let e=n.nodeAfter,t=n.pos;e;e=e.firstChild,t++){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return n.doc.resolve(t)}for(let e=n.nodeBefore,t=n.pos;e;e=e.lastChild,t--){const r=e.type.spec.tableRole;if(r=="cell"||r=="header_cell")return n.doc.resolve(t-e.nodeSize)}}function Pd(n){return n.parent.type.spec.tableRole=="row"&&!!n.nodeAfter}function gT(n){return n.node(0).resolve(n.pos+n.nodeAfter.nodeSize)}function Fd(n,e){return n.depth==e.depth&&n.pos>=e.start(-1)&&n.pos<=e.end(-1)}function iy(n,e,t){const r=n.node(-1),i=$t.get(r),o=n.start(-1),s=i.nextCell(n.pos-o,e,t);return s==null?null:n.node(0).resolve(o+s)}function ho(n,e,t=1){const r={...n,colspan:n.colspan-t};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(e,t),r.colwidth.some(i=>i>0)||(r.colwidth=null)),r}function oy(n,e,t=1){const r={...n,colspan:n.colspan+t};if(r.colwidth){r.colwidth=r.colwidth.slice();for(let i=0;i<t;i++)r.colwidth.splice(e,0,0)}return r}function bT(n,e,t){const r=yn(e.type.schema).header_cell;for(let i=0;i<n.height;i++)if(e.nodeAt(n.map[t+i*n.width]).type!=r)return!1;return!0}var Dt=class ii extends Fe{constructor(e,t=e){const r=e.node(-1),i=$t.get(r),o=e.start(-1),s=i.rectBetween(e.pos-o,t.pos-o),a=e.node(0),l=i.cellsInRect(s).filter(u=>u!=t.pos-o);l.unshift(t.pos-o);const c=l.map(u=>{const h=r.nodeAt(u);if(!h)throw RangeError(`No cell with offset ${u} found`);const g=o+u+1;return new eg(a.resolve(g),a.resolve(g+h.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(e,t){const r=e.resolve(t.map(this.$anchorCell.pos)),i=e.resolve(t.map(this.$headCell.pos));if(Pd(r)&&Pd(i)&&Fd(r,i)){const o=this.$anchorCell.node(-1)!=r.node(-1);return o&&this.isRowSelection()?ii.rowSelection(r,i):o&&this.isColSelection()?ii.colSelection(r,i):new ii(r,i)}return Ne.between(r,i)}content(){const e=this.$anchorCell.node(-1),t=$t.get(e),r=this.$anchorCell.start(-1),i=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},s=[];for(let l=i.top;l<i.bottom;l++){const c=[];for(let u=l*t.width+i.left,h=i.left;h<i.right;h++,u++){const g=t.map[u];if(o[g])continue;o[g]=!0;const b=t.findCell(g);let p=e.nodeAt(g);if(!p)throw RangeError(`No cell with offset ${g} found`);const v=i.left-b.left,w=b.right-i.right;if(v>0||w>0){let S=p.attrs;if(v>0&&(S=ho(S,0,v)),w>0&&(S=ho(S,S.colspan-w,w)),b.left<i.left){if(p=p.type.createAndFill(S),!p)throw RangeError(`Could not create cell with attrs ${JSON.stringify(S)}`)}else p=p.type.create(S,p.content)}if(b.top<i.top||b.bottom>i.bottom){const S={...p.attrs,rowspan:Math.min(b.bottom,i.bottom)-Math.max(b.top,i.top)};b.top<i.top?p=p.type.createAndFill(S):p=p.type.create(S,p.content)}c.push(p)}s.push(e.child(l).copy(le.from(c)))}const a=this.isColSelection()&&this.isRowSelection()?e:s;return new ve(le.from(a),1,1)}replace(e,t=ve.empty){const r=e.steps.length,i=this.ranges;for(let s=0;s<i.length;s++){const{$from:a,$to:l}=i[s],c=e.mapping.slice(r);e.replace(c.map(a.pos),c.map(l.pos),s?ve.empty:t)}const o=Fe.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,t){this.replace(e,new ve(le.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),r=$t.get(t),i=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-i,this.$headCell.pos-i));for(let s=0;s<o.length;s++)e(t.nodeAt(o[s]),i+o[s])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,i=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,i)==this.$headCell.node(-1).childCount}static colSelection(e,t=e){const r=e.node(-1),i=$t.get(r),o=e.start(-1),s=i.findCell(e.pos-o),a=i.findCell(t.pos-o),l=e.node(0);return s.top<=a.top?(s.top>0&&(e=l.resolve(o+i.map[s.left])),a.bottom<i.height&&(t=l.resolve(o+i.map[i.width*(i.height-1)+a.right-1]))):(a.top>0&&(t=l.resolve(o+i.map[a.left])),s.bottom<i.height&&(e=l.resolve(o+i.map[i.width*(i.height-1)+s.right-1]))),new ii(e,t)}isRowSelection(){const e=this.$anchorCell.node(-1),t=$t.get(e),r=this.$anchorCell.start(-1),i=t.colCount(this.$anchorCell.pos-r),o=t.colCount(this.$headCell.pos-r);if(Math.min(i,o)>0)return!1;const s=i+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(s,a)==t.width}eq(e){return e instanceof ii&&e.$anchorCell.pos==this.$anchorCell.pos&&e.$headCell.pos==this.$headCell.pos}static rowSelection(e,t=e){const r=e.node(-1),i=$t.get(r),o=e.start(-1),s=i.findCell(e.pos-o),a=i.findCell(t.pos-o),l=e.node(0);return s.left<=a.left?(s.left>0&&(e=l.resolve(o+i.map[s.top*i.width])),a.right<i.width&&(t=l.resolve(o+i.map[i.width*(a.top+1)-1]))):(a.left>0&&(t=l.resolve(o+i.map[a.top*i.width])),s.right<i.width&&(e=l.resolve(o+i.map[i.width*(s.top+1)-1]))),new ii(e,t)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(e,t){return new ii(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){return new ii(e.resolve(t),e.resolve(r))}getBookmark(){return new _T(this.$anchorCell.pos,this.$headCell.pos)}};Dt.prototype.visible=!1,Fe.jsonID("cell",Dt);var _T=class jw{constructor(e,t){this.anchor=e,this.head=t}map(e){return new jw(e.map(this.anchor),e.map(this.head))}resolve(e){const t=e.resolve(this.anchor),r=e.resolve(this.head);return t.parent.type.spec.tableRole=="row"&&r.parent.type.spec.tableRole=="row"&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&Fd(t,r)?new Dt(t,r):Fe.near(r,1)}};function yT(n){if(!(n.selection instanceof Dt))return null;const e=[];return n.selection.forEachCell((t,r)=>{e.push(un.node(r,r+t.nodeSize,{class:"selectedCell"}))}),Bt.create(n.doc,e)}function vT({$from:n,$to:e}){if(n.pos==e.pos||n.pos<e.pos-6)return!1;let t=n.pos,r=e.pos,i=n.depth;for(;i>=0&&!(n.after(i+1)<n.end(i));i--,t++);for(let o=e.depth;o>=0&&!(e.before(o+1)>e.start(o));o--,r--);return t==r&&/row|table/.test(n.node(i).type.spec.tableRole)}function wT({$from:n,$to:e}){let t,r;for(let i=n.depth;i>0;i--){const o=n.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){t=o;break}}for(let i=e.depth;i>0;i--){const o=e.node(i);if(o.type.spec.tableRole==="cell"||o.type.spec.tableRole==="header_cell"){r=o;break}}return t!==r&&e.parentOffset===0}function xT(n,e,t){const r=(e||n).selection,i=(e||n).doc;let o,s;if(r instanceof Oe&&(s=r.node.type.spec.tableRole)){if(s=="cell"||s=="header_cell")o=Dt.create(i,r.from);else if(s=="row"){const a=i.resolve(r.from+1);o=Dt.rowSelection(a,a)}else if(!t){const a=$t.get(r.node),l=r.from+1,c=l+a.map[a.width*a.height-1];o=Dt.create(i,l+1,c)}}else r instanceof Ne&&vT(r)?o=Ne.create(i,r.from):r instanceof Ne&&wT(r)&&(o=Ne.create(i,r.$from.start(),r.$from.end()));return o&&(e||(e=n.tr)).setSelection(o),e}var kT=new At("fix-tables");function sy(n,e,t,r){const i=n.childCount,o=e.childCount;e:for(let s=0,a=0;s<o;s++){const l=e.child(s);for(let c=a,u=Math.min(i,s+3);c<u;c++)if(n.child(c)==l){a=c+1,t+=l.nodeSize;continue e}r(l,t),a<i&&n.child(a).sameMarkup(l)?sy(n.child(a),l,t+1,r):l.nodesBetween(0,l.content.size,r,t+1),t+=l.nodeSize}}function ay(n,e){let t;const r=(i,o)=>{i.type.spec.tableRole=="table"&&(t=ST(n,i,o,t))};return e?e.doc!=n.doc&&sy(e.doc,n.doc,0,r):n.doc.descendants(r),t}function ST(n,e,t,r){const i=$t.get(e);if(!i.problems)return r;r||(r=n.tr);const o=[];for(let l=0;l<i.height;l++)o.push(0);for(let l=0;l<i.problems.length;l++){const c=i.problems[l];if(c.type=="collision"){const u=e.nodeAt(c.pos);if(!u)continue;const h=u.attrs;for(let g=0;g<h.rowspan;g++)o[c.row+g]+=c.n;r.setNodeMarkup(r.mapping.map(t+1+c.pos),null,ho(h,h.colspan-c.n,c.n))}else if(c.type=="missing")o[c.row]+=c.n;else if(c.type=="overlong_rowspan"){const u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(t+1+c.pos),null,{...u.attrs,rowspan:u.attrs.rowspan-c.n})}else if(c.type=="colwidth mismatch"){const u=e.nodeAt(c.pos);if(!u)continue;r.setNodeMarkup(r.mapping.map(t+1+c.pos),null,{...u.attrs,colwidth:c.colwidth})}else if(c.type=="zero_sized"){const u=r.mapping.map(t);r.delete(u,u+e.nodeSize)}}let s,a;for(let l=0;l<o.length;l++)o[l]&&(s==null&&(s=l),a=l);for(let l=0,c=t+1;l<i.height;l++){const u=e.child(l),h=c+u.nodeSize,g=o[l];if(g>0){let b="cell";u.firstChild&&(b=u.firstChild.type.spec.tableRole);const p=[];for(let w=0;w<g;w++){const S=yn(n.schema)[b].createAndFill();S&&p.push(S)}const v=(l==0||s==l-1)&&a==l?c+1:h-1;r.insert(r.mapping.map(v),p)}c=h}return r.setMeta(kT,{fixTables:!0})}function Mr(n){const e=n.selection,t=mc(n),r=t.node(-1),i=t.start(-1),o=$t.get(r);return{...e instanceof Dt?o.rectBetween(e.$anchorCell.pos-i,e.$headCell.pos-i):o.findCell(t.pos-i),tableStart:i,map:o,table:r}}function ly(n,{map:e,tableStart:t,table:r},i){let o=i>0?-1:0;bT(e,r,i+o)&&(o=i==0||i==e.width?null:0);for(let s=0;s<e.height;s++){const a=s*e.width+i;if(i>0&&i<e.width&&e.map[a-1]==e.map[a]){const l=e.map[a],c=r.nodeAt(l);n.setNodeMarkup(n.mapping.map(t+l),null,oy(c.attrs,i-e.colCount(l))),s+=c.attrs.rowspan-1}else{const l=o==null?yn(r.type.schema).cell:r.nodeAt(e.map[a+o]).type,c=e.positionAt(s,i,r);n.insert(n.mapping.map(t+c),l.createAndFill())}}return n}function ET(n,e){if(!fr(n))return!1;if(e){const t=Mr(n);e(ly(n.tr,t,t.left))}return!0}function CT(n,e){if(!fr(n))return!1;if(e){const t=Mr(n);e(ly(n.tr,t,t.right))}return!0}function TT(n,{map:e,table:t,tableStart:r},i){const o=n.mapping.maps.length;for(let s=0;s<e.height;){const a=s*e.width+i,l=e.map[a],c=t.nodeAt(l),u=c.attrs;if(i>0&&e.map[a-1]==l||i<e.width-1&&e.map[a+1]==l)n.setNodeMarkup(n.mapping.slice(o).map(r+l),null,ho(u,i-e.colCount(l)));else{const h=n.mapping.slice(o).map(r+l);n.delete(h,h+c.nodeSize)}s+=u.rowspan}}function AT(n,e){if(!fr(n))return!1;if(e){const t=Mr(n),r=n.tr;if(t.left==0&&t.right==t.map.width)return!1;for(let i=t.right-1;TT(r,t,i),i!=t.left;i--){const o=t.tableStart?r.doc.nodeAt(t.tableStart-1):r.doc;if(!o)throw RangeError("No table found");t.table=o,t.map=$t.get(o)}e(r)}return!0}function MT(n,e,t){var r;const i=yn(e.type.schema).header_cell;for(let o=0;o<n.width;o++)if(((r=e.nodeAt(n.map[o+t*n.width]))==null?void 0:r.type)!=i)return!1;return!0}function cy(n,{map:e,tableStart:t,table:r},i){var o;let s=t;for(let c=0;c<i;c++)s+=r.child(c).nodeSize;const a=[];let l=i>0?-1:0;MT(e,r,i+l)&&(l=i==0||i==e.height?null:0);for(let c=0,u=e.width*i;c<e.width;c++,u++)if(i>0&&i<e.height&&e.map[u]==e.map[u-e.width]){const h=e.map[u],g=r.nodeAt(h).attrs;n.setNodeMarkup(t+h,null,{...g,rowspan:g.rowspan+1}),c+=g.colspan-1}else{const h=l==null?yn(r.type.schema).cell:(o=r.nodeAt(e.map[u+l*e.width]))==null?void 0:o.type,g=h==null?void 0:h.createAndFill();g&&a.push(g)}return n.insert(s,yn(r.type.schema).row.create(null,a)),n}function NT(n,e){if(!fr(n))return!1;if(e){const t=Mr(n);e(cy(n.tr,t,t.top))}return!0}function DT(n,e){if(!fr(n))return!1;if(e){const t=Mr(n);e(cy(n.tr,t,t.bottom))}return!0}function RT(n,{map:e,table:t,tableStart:r},i){let o=0;for(let c=0;c<i;c++)o+=t.child(c).nodeSize;const s=o+t.child(i).nodeSize,a=n.mapping.maps.length;n.delete(o+r,s+r);const l=new Set;for(let c=0,u=i*e.width;c<e.width;c++,u++){const h=e.map[u];if(!l.has(h)){if(l.add(h),i>0&&h==e.map[u-e.width]){const g=t.nodeAt(h).attrs;n.setNodeMarkup(n.mapping.slice(a).map(h+r),null,{...g,rowspan:g.rowspan-1}),c+=g.colspan-1}else if(i<e.height&&h==e.map[u+e.width]){const g=t.nodeAt(h),b=g.attrs,p=g.type.create({...b,rowspan:g.attrs.rowspan-1},g.content),v=e.positionAt(i+1,c,t);n.insert(n.mapping.slice(a).map(r+v),p),c+=b.colspan-1}}}}function OT(n,e){if(!fr(n))return!1;if(e){const t=Mr(n),r=n.tr;if(t.top==0&&t.bottom==t.map.height)return!1;for(let i=t.bottom-1;RT(r,t,i),i!=t.top;i--){const o=t.tableStart?r.doc.nodeAt(t.tableStart-1):r.doc;if(!o)throw RangeError("No table found");t.table=o,t.map=$t.get(t.table)}e(r)}return!0}function uy(n){const e=n.content;return e.childCount==1&&e.child(0).isTextblock&&e.child(0).childCount==0}function IT({width:n,height:e,map:t},r){let i=r.top*n+r.left,o=i,s=(r.bottom-1)*n+r.left,a=i+(r.right-r.left-1);for(let l=r.top;l<r.bottom;l++){if(r.left>0&&t[o]==t[o-1]||r.right<n&&t[a]==t[a+1])return!0;o+=n,a+=n}for(let l=r.left;l<r.right;l++){if(r.top>0&&t[i]==t[i-n]||r.bottom<e&&t[s]==t[s+n])return!0;i++,s++}return!1}function dy(n,e){const t=n.selection;if(!(t instanceof Dt)||t.$anchorCell.pos==t.$headCell.pos)return!1;const r=Mr(n),{map:i}=r;if(IT(i,r))return!1;if(e){const o=n.tr,s={};let a=le.empty,l,c;for(let u=r.top;u<r.bottom;u++)for(let h=r.left;h<r.right;h++){const g=i.map[u*i.width+h],b=r.table.nodeAt(g);if(!(s[g]||!b))if(s[g]=!0,l==null)l=g,c=b;else{uy(b)||(a=a.append(b.content));const p=o.mapping.map(g+r.tableStart);o.delete(p,p+b.nodeSize)}}if(l==null||c==null)return!0;if(o.setNodeMarkup(l+r.tableStart,null,{...oy(c.attrs,c.attrs.colspan,r.right-r.left-c.attrs.colspan),rowspan:r.bottom-r.top}),a.size){const u=l+1+c.content.size,h=uy(c)?l+1:u;o.replaceWith(h+r.tableStart,u+r.tableStart,a)}o.setSelection(new Dt(o.doc.resolve(l+r.tableStart))),e(o)}return!0}function hy(n,e){const t=yn(n.schema);return LT(({node:r})=>t[r.type.spec.tableRole])(n,e)}function LT(n){return(e,t)=>{var r;const i=e.selection;let o,s;if(i instanceof Dt){if(i.$anchorCell.pos!=i.$headCell.pos)return!1;o=i.$anchorCell.nodeAfter,s=i.$anchorCell.pos}else{if(o=pT(i.$from),!o)return!1;s=(r=jo(i.$from))==null?void 0:r.pos}if(o==null||s==null||o.attrs.colspan==1&&o.attrs.rowspan==1)return!1;if(t){let a=o.attrs;const l=[],c=a.colwidth;a.rowspan>1&&(a={...a,rowspan:1}),a.colspan>1&&(a={...a,colspan:1});const u=Mr(e),h=e.tr;for(let b=0;b<u.right-u.left;b++)l.push(c?{...a,colwidth:c&&c[b]?[c[b]]:null}:a);let g;for(let b=u.top;b<u.bottom;b++){let p=u.map.positionAt(b,u.left,u.table);b==u.top&&(p+=o.nodeSize);for(let v=u.left,w=0;v<u.right;v++,w++)v==u.left&&b==u.top||h.insert(g=h.mapping.map(p+u.tableStart,1),n({node:o,row:b,col:v}).createAndFill(l[w]))}h.setNodeMarkup(s,n({node:o,row:u.top,col:u.left}),l[0]),i instanceof Dt&&h.setSelection(new Dt(h.doc.resolve(i.$anchorCell.pos),g?h.doc.resolve(g):void 0)),t(h)}return!0}}function BT(n,e){return function(t,r){if(!fr(t))return!1;const i=mc(t);if(i.nodeAfter.attrs[n]===e)return!1;if(r){const o=t.tr;t.selection instanceof Dt?t.selection.forEachCell((s,a)=>{s.attrs[n]!==e&&o.setNodeMarkup(a,null,{...s.attrs,[n]:e})}):o.setNodeMarkup(i.pos,null,{...i.nodeAfter.attrs,[n]:e}),r(o)}return!0}}function PT(n){return function(e,t){if(!fr(e))return!1;if(t){const r=yn(e.schema),i=Mr(e),o=e.tr,s=i.map.cellsInRect(n=="column"?{left:i.left,top:0,right:i.right,bottom:i.map.height}:n=="row"?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),a=s.map(l=>i.table.nodeAt(l));for(let l=0;l<s.length;l++)a[l].type==r.header_cell&&o.setNodeMarkup(i.tableStart+s[l],r.cell,a[l].attrs);if(o.steps.length==0)for(let l=0;l<s.length;l++)o.setNodeMarkup(i.tableStart+s[l],r.header_cell,a[l].attrs);t(o)}return!0}}function fy(n,e,t){const r=e.map.cellsInRect({left:0,top:0,right:n=="row"?e.map.width:1,bottom:n=="column"?e.map.height:1});for(let i=0;i<r.length;i++){const o=e.table.nodeAt(r[i]);if(o&&o.type!==t.header_cell)return!1}return!0}function ua(n,e){return e=e||{useDeprecatedLogic:!1},e.useDeprecatedLogic?PT(n):function(t,r){if(!fr(t))return!1;if(r){const i=yn(t.schema),o=Mr(t),s=t.tr,a=fy("row",o,i),l=fy("column",o,i),u=(n==="column"?a:n==="row"?l:!1)?1:0,h=n=="column"?{left:0,top:u,right:1,bottom:o.map.height}:n=="row"?{left:u,top:0,right:o.map.width,bottom:1}:o,g=n=="column"?l?i.cell:i.header_cell:n=="row"?a?i.cell:i.header_cell:i.cell;o.map.cellsInRect(h).forEach(b=>{const p=b+o.tableStart,v=s.doc.nodeAt(p);v&&s.setNodeMarkup(p,g,v.attrs)}),r(s)}return!0}}ua("row",{useDeprecatedLogic:!0}),ua("column",{useDeprecatedLogic:!0});var FT=ua("cell",{useDeprecatedLogic:!0});function zT(n,e){if(e<0){const t=n.nodeBefore;if(t)return n.pos-t.nodeSize;for(let r=n.index(-1)-1,i=n.before();r>=0;r--){const o=n.node(-1).child(r),s=o.lastChild;if(s)return i-1-s.nodeSize;i-=o.nodeSize}}else{if(n.index()<n.parent.childCount-1)return n.pos+n.nodeAfter.nodeSize;const t=n.node(-1);for(let r=n.indexAfter(-1),i=n.after();r<t.childCount;r++){const o=t.child(r);if(o.childCount)return i+1;i+=o.nodeSize}}return null}function py(n){return function(e,t){if(!fr(e))return!1;const r=zT(mc(e),n);if(r==null)return!1;if(t){const i=e.doc.resolve(r);t(e.tr.setSelection(Ne.between(i,gT(i))).scrollIntoView())}return!0}}function qT(n,e){const t=n.selection.$anchor;for(let r=t.depth;r>0;r--)if(t.node(r).type.spec.tableRole=="table")return e&&e(n.tr.delete(t.before(r),t.after(r)).scrollIntoView()),!0;return!1}function gc(n,e){const t=n.selection;if(!(t instanceof Dt))return!1;if(e){const r=n.tr,i=yn(n.schema).cell.createAndFill().content;t.forEachCell((o,s)=>{o.content.eq(i)||r.replace(r.mapping.map(s+1),r.mapping.map(s+o.nodeSize-1),new ve(i,0,0))}),r.docChanged&&e(r)}return!0}function HT(n){if(!n.size)return null;let{content:e,openStart:t,openEnd:r}=n;for(;e.childCount==1&&(t>0&&r>0||e.child(0).type.spec.tableRole=="table");)t--,r--,e=e.child(0).content;const i=e.child(0),o=i.type.spec.tableRole,s=i.type.schema,a=[];if(o=="row")for(let l=0;l<e.childCount;l++){let c=e.child(l).content;const u=l?0:Math.max(0,t-1),h=l<e.childCount-1?0:Math.max(0,r-1);(u||h)&&(c=zd(yn(s).row,new ve(c,u,h)).content),a.push(c)}else if(o=="cell"||o=="header_cell")a.push(t||r?zd(yn(s).row,new ve(e,t,r)).content:e);else return null;return VT(s,a)}function VT(n,e){const t=[];for(let i=0;i<e.length;i++){const o=e[i];for(let s=o.childCount-1;s>=0;s--){const{rowspan:a,colspan:l}=o.child(s).attrs;for(let c=i;c<i+a;c++)t[c]=(t[c]||0)+l}}let r=0;for(let i=0;i<t.length;i++)r=Math.max(r,t[i]);for(let i=0;i<t.length;i++)if(i>=e.length&&e.push(le.empty),t[i]<r){const o=yn(n).cell.createAndFill(),s=[];for(let a=t[i];a<r;a++)s.push(o);e[i]=e[i].append(le.from(s))}return{height:e.length,width:r,rows:e}}function zd(n,e){const t=n.createAndFill();return new Tu(t).replace(0,t.content.size,e).doc}function UT({width:n,height:e,rows:t},r,i){if(n!=r){const o=[],s=[];for(let a=0;a<t.length;a++){const l=t[a],c=[];for(let u=o[a]||0,h=0;u<r;h++){let g=l.child(h%l.childCount);u+g.attrs.colspan>r&&(g=g.type.createChecked(ho(g.attrs,g.attrs.colspan,u+g.attrs.colspan-r),g.content)),c.push(g),u+=g.attrs.colspan;for(let b=1;b<g.attrs.rowspan;b++)o[a+b]=(o[a+b]||0)+g.attrs.colspan}s.push(le.from(c))}t=s,n=r}if(e!=i){const o=[];for(let s=0,a=0;s<i;s++,a++){const l=[],c=t[a%e];for(let u=0;u<c.childCount;u++){let h=c.child(u);s+h.attrs.rowspan>i&&(h=h.type.create({...h.attrs,rowspan:Math.max(1,i-h.attrs.rowspan)},h.content)),l.push(h)}o.push(le.from(l))}t=o,e=i}return{width:n,height:e,rows:t}}function GT(n,e,t,r,i,o,s){const a=n.doc.type.schema,l=yn(a);let c,u;if(i>e.width)for(let h=0,g=0;h<e.height;h++){const b=t.child(h);g+=b.nodeSize;const p=[];let v;b.lastChild==null||b.lastChild.type==l.cell?v=c||(c=l.cell.createAndFill()):v=u||(u=l.header_cell.createAndFill());for(let w=e.width;w<i;w++)p.push(v);n.insert(n.mapping.slice(s).map(g-1+r),p)}if(o>e.height){const h=[];for(let p=0,v=(e.height-1)*e.width;p<Math.max(e.width,i);p++){const w=p>=e.width?!1:t.nodeAt(e.map[v+p]).type==l.header_cell;h.push(w?u||(u=l.header_cell.createAndFill()):c||(c=l.cell.createAndFill()))}const g=l.row.create(null,le.from(h)),b=[];for(let p=e.height;p<o;p++)b.push(g);n.insert(n.mapping.slice(s).map(r+t.nodeSize-2),b)}return!!(c||u)}function my(n,e,t,r,i,o,s,a){if(s==0||s==e.height)return!1;let l=!1;for(let c=i;c<o;c++){const u=s*e.width+c,h=e.map[u];if(e.map[u-e.width]==h){l=!0;const g=t.nodeAt(h),{top:b,left:p}=e.findCell(h);n.setNodeMarkup(n.mapping.slice(a).map(h+r),null,{...g.attrs,rowspan:s-b}),n.insert(n.mapping.slice(a).map(e.positionAt(s,p,t)),g.type.createAndFill({...g.attrs,rowspan:b+g.attrs.rowspan-s})),c+=g.attrs.colspan-1}}return l}function gy(n,e,t,r,i,o,s,a){if(s==0||s==e.width)return!1;let l=!1;for(let c=i;c<o;c++){const u=c*e.width+s,h=e.map[u];if(e.map[u-1]==h){l=!0;const g=t.nodeAt(h),b=e.colCount(h),p=n.mapping.slice(a).map(h+r);n.setNodeMarkup(p,null,ho(g.attrs,s-b,g.attrs.colspan-(s-b))),n.insert(p+g.nodeSize,g.type.createAndFill(ho(g.attrs,0,s-b))),c+=g.attrs.rowspan-1}}return l}function by(n,e,t,r,i){let o=t?n.doc.nodeAt(t-1):n.doc;if(!o)throw new Error("No table found");let s=$t.get(o);const{top:a,left:l}=r,c=l+i.width,u=a+i.height,h=n.tr;let g=0;function b(){if(o=t?h.doc.nodeAt(t-1):h.doc,!o)throw new Error("No table found");s=$t.get(o),g=h.mapping.maps.length}GT(h,s,o,t,c,u,g)&&b(),my(h,s,o,t,l,c,a,g)&&b(),my(h,s,o,t,l,c,u,g)&&b(),gy(h,s,o,t,a,u,l,g)&&b(),gy(h,s,o,t,a,u,c,g)&&b();for(let p=a;p<u;p++){const v=s.positionAt(p,l,o),w=s.positionAt(p,c,o);h.replace(h.mapping.slice(g).map(v+t),h.mapping.slice(g).map(w+t),new ve(i.rows[p-a],0,0))}b(),h.setSelection(new Dt(h.doc.resolve(t+s.positionAt(a,l,o)),h.doc.resolve(t+s.positionAt(u-1,c-1,o)))),e(h)}var $T=i0({ArrowLeft:_c("horiz",-1),ArrowRight:_c("horiz",1),ArrowUp:_c("vert",-1),ArrowDown:_c("vert",1),"Shift-ArrowLeft":yc("horiz",-1),"Shift-ArrowRight":yc("horiz",1),"Shift-ArrowUp":yc("vert",-1),"Shift-ArrowDown":yc("vert",1),Backspace:gc,"Mod-Backspace":gc,Delete:gc,"Mod-Delete":gc});function bc(n,e,t){return t.eq(n.selection)?!1:(e&&e(n.tr.setSelection(t).scrollIntoView()),!0)}function _c(n,e){return(t,r,i)=>{if(!i)return!1;const o=t.selection;if(o instanceof Dt)return bc(t,r,Fe.near(o.$headCell,e));if(n!="horiz"&&!o.empty)return!1;const s=_y(i,n,e);if(s==null)return!1;if(n=="horiz")return bc(t,r,Fe.near(t.doc.resolve(o.head+e),e));{const a=t.doc.resolve(s),l=iy(a,n,e);let c;return l?c=Fe.near(l,1):e<0?c=Fe.near(t.doc.resolve(a.before(-1)),-1):c=Fe.near(t.doc.resolve(a.after(-1)),1),bc(t,r,c)}}}function yc(n,e){return(t,r,i)=>{if(!i)return!1;const o=t.selection;let s;if(o instanceof Dt)s=o;else{const l=_y(i,n,e);if(l==null)return!1;s=new Dt(t.doc.resolve(l))}const a=iy(s.$headCell,n,e);return a?bc(t,r,new Dt(s.$anchorCell,a)):!1}}function WT(n,e){const t=n.state.doc,r=jo(t.resolve(e));return r?(n.dispatch(n.state.tr.setSelection(new Dt(r))),!0):!1}function KT(n,e,t){if(!fr(n.state))return!1;let r=HT(t);const i=n.state.selection;if(i instanceof Dt){r||(r={width:1,height:1,rows:[le.from(zd(yn(n.state.schema).cell,t))]});const o=i.$anchorCell.node(-1),s=i.$anchorCell.start(-1),a=$t.get(o).rectBetween(i.$anchorCell.pos-s,i.$headCell.pos-s);return r=UT(r,a.right-a.left,a.bottom-a.top),by(n.state,n.dispatch,s,a,r),!0}else if(r){const o=mc(n.state),s=o.start(-1);return by(n.state,n.dispatch,s,$t.get(o.node(-1)).findCell(o.pos-s),r),!0}else return!1}function jT(n,e){var t;if(e.ctrlKey||e.metaKey)return;const r=yy(n,e.target);let i;if(e.shiftKey&&n.state.selection instanceof Dt)o(n.state.selection.$anchorCell,e),e.preventDefault();else if(e.shiftKey&&r&&(i=jo(n.state.selection.$anchor))!=null&&((t=qd(n,e))==null?void 0:t.pos)!=i.pos)o(i,e),e.preventDefault();else if(!r)return;function o(l,c){let u=qd(n,c);const h=Ti.getState(n.state)==null;if(!u||!Fd(l,u))if(h)u=l;else return;const g=new Dt(l,u);if(h||!n.state.selection.eq(g)){const b=n.state.tr.setSelection(g);h&&b.setMeta(Ti,l.pos),n.dispatch(b)}}function s(){n.root.removeEventListener("mouseup",s),n.root.removeEventListener("dragstart",s),n.root.removeEventListener("mousemove",a),Ti.getState(n.state)!=null&&n.dispatch(n.state.tr.setMeta(Ti,-1))}function a(l){const c=l,u=Ti.getState(n.state);let h;if(u!=null)h=n.state.doc.resolve(u);else if(yy(n,c.target)!=r&&(h=qd(n,e),!h))return s();h&&o(h,c)}n.root.addEventListener("mouseup",s),n.root.addEventListener("dragstart",s),n.root.addEventListener("mousemove",a)}function _y(n,e,t){if(!(n.state.selection instanceof Ne))return null;const{$head:r}=n.state.selection;for(let i=r.depth-1;i>=0;i--){const o=r.node(i);if((t<0?r.index(i):r.indexAfter(i))!=(t<0?0:o.childCount))return null;if(o.type.spec.tableRole=="cell"||o.type.spec.tableRole=="header_cell"){const a=r.before(i),l=e=="vert"?t>0?"down":"up":t>0?"right":"left";return n.endOfTextblock(l)?a:null}}return null}function yy(n,e){for(;e&&e!=n.dom;e=e.parentNode)if(e.nodeName=="TD"||e.nodeName=="TH")return e;return null}function qd(n,e){const t=n.posAtCoords({left:e.clientX,top:e.clientY});return t&&t?jo(n.state.doc.resolve(t.pos)):null}var QT=class{constructor(e,t){this.node=e,this.defaultCellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.table.style.setProperty("--default-cell-min-width",`${t}px`),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Hd(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!=this.node.type?!1:(this.node=e,Hd(e,this.colgroup,this.table,this.defaultCellMinWidth),!0)}ignoreMutation(e){return e.type=="attributes"&&(e.target==this.table||this.colgroup.contains(e.target))}};function Hd(n,e,t,r,i,o){var s;let a=0,l=!0,c=e.firstChild;const u=n.firstChild;if(u){for(let h=0,g=0;h<u.childCount;h++){const{colspan:b,colwidth:p}=u.child(h).attrs;for(let v=0;v<b;v++,g++){const w=i==g?o:p&&p[v],S=w?w+"px":"";if(a+=w||r,w||(l=!1),c)c.style.width!=S&&(c.style.width=S),c=c.nextSibling;else{const C=document.createElement("col");C.style.width=S,e.appendChild(C)}}}for(;c;){const h=c.nextSibling;(s=c.parentNode)==null||s.removeChild(c),c=h}l?(t.style.width=a+"px",t.style.minWidth=""):(t.style.width="",t.style.minWidth=a+"px")}}var Gn=new At("tableColumnResizing");function YT({handleWidth:n=5,cellMinWidth:e=25,defaultCellMinWidth:t=100,View:r=QT,lastColumnResizable:i=!0}={}){const o=new _t({key:Gn,state:{init(s,a){var l,c;const u=(c=(l=o.spec)==null?void 0:l.props)==null?void 0:c.nodeViews,h=yn(a.schema).table.name;return r&&u&&(u[h]=(g,b)=>new r(g,t,b)),new ZT(-1,!1)},apply(s,a){return a.apply(s)}},props:{attributes:s=>{const a=Gn.getState(s);return a&&a.activeHandle>-1?{class:"resize-cursor"}:{}},handleDOMEvents:{mousemove:(s,a)=>{XT(s,a,n,i)},mouseleave:s=>{JT(s)},mousedown:(s,a)=>{eA(s,a,e,t)}},decorations:s=>{const a=Gn.getState(s);if(a&&a.activeHandle>-1)return oA(s,a.activeHandle)},nodeViews:{}}});return o}var ZT=class mu{constructor(e,t){this.activeHandle=e,this.dragging=t}apply(e){const t=this,r=e.getMeta(Gn);if(r&&r.setHandle!=null)return new mu(r.setHandle,!1);if(r&&r.setDragging!==void 0)return new mu(t.activeHandle,r.setDragging);if(t.activeHandle>-1&&e.docChanged){let i=e.mapping.map(t.activeHandle,-1);return Pd(e.doc.resolve(i))||(i=-1),new mu(i,t.dragging)}return t}};function XT(n,e,t,r){if(!n.editable)return;const i=Gn.getState(n.state);if(i&&!i.dragging){const o=nA(e.target);let s=-1;if(o){const{left:a,right:l}=o.getBoundingClientRect();e.clientX-a<=t?s=vy(n,e,"left",t):l-e.clientX<=t&&(s=vy(n,e,"right",t))}if(s!=i.activeHandle){if(!r&&s!==-1){const a=n.state.doc.resolve(s),l=a.node(-1),c=$t.get(l),u=a.start(-1);if(c.colCount(a.pos-u)+a.nodeAfter.attrs.colspan-1==c.width-1)return}xy(n,s)}}}function JT(n){if(!n.editable)return;const e=Gn.getState(n.state);e&&e.activeHandle>-1&&!e.dragging&&xy(n,-1)}function eA(n,e,t,r){var i;if(!n.editable)return!1;const o=(i=n.dom.ownerDocument.defaultView)!=null?i:window,s=Gn.getState(n.state);if(!s||s.activeHandle==-1||s.dragging)return!1;const a=n.state.doc.nodeAt(s.activeHandle),l=tA(n,s.activeHandle,a.attrs);n.dispatch(n.state.tr.setMeta(Gn,{setDragging:{startX:e.clientX,startWidth:l}}));function c(h){o.removeEventListener("mouseup",c),o.removeEventListener("mousemove",u);const g=Gn.getState(n.state);g!=null&&g.dragging&&(rA(n,g.activeHandle,wy(g.dragging,h,t)),n.dispatch(n.state.tr.setMeta(Gn,{setDragging:null})))}function u(h){if(!h.which)return c(h);const g=Gn.getState(n.state);if(g&&g.dragging){const b=wy(g.dragging,h,t);ky(n,g.activeHandle,b,r)}}return ky(n,s.activeHandle,l,r),o.addEventListener("mouseup",c),o.addEventListener("mousemove",u),e.preventDefault(),!0}function tA(n,e,{colspan:t,colwidth:r}){const i=r&&r[r.length-1];if(i)return i;const o=n.domAtPos(e);let a=o.node.childNodes[o.offset].offsetWidth,l=t;if(r)for(let c=0;c<t;c++)r[c]&&(a-=r[c],l--);return a/l}function nA(n){for(;n&&n.nodeName!="TD"&&n.nodeName!="TH";)n=n.classList&&n.classList.contains("ProseMirror")?null:n.parentNode;return n}function vy(n,e,t,r){const i=t=="right"?-r:r,o=n.posAtCoords({left:e.clientX+i,top:e.clientY});if(!o)return-1;const{pos:s}=o,a=jo(n.state.doc.resolve(s));if(!a)return-1;if(t=="right")return a.pos;const l=$t.get(a.node(-1)),c=a.start(-1),u=l.map.indexOf(a.pos-c);return u%l.width==0?-1:c+l.map[u-1]}function wy(n,e,t){const r=e.clientX-n.startX;return Math.max(t,n.startWidth+r)}function xy(n,e){n.dispatch(n.state.tr.setMeta(Gn,{setHandle:e}))}function rA(n,e,t){const r=n.state.doc.resolve(e),i=r.node(-1),o=$t.get(i),s=r.start(-1),a=o.colCount(r.pos-s)+r.nodeAfter.attrs.colspan-1,l=n.state.tr;for(let c=0;c<o.height;c++){const u=c*o.width+a;if(c&&o.map[u]==o.map[u-o.width])continue;const h=o.map[u],g=i.nodeAt(h).attrs,b=g.colspan==1?0:a-o.colCount(h);if(g.colwidth&&g.colwidth[b]==t)continue;const p=g.colwidth?g.colwidth.slice():iA(g.colspan);p[b]=t,l.setNodeMarkup(s+h,null,{...g,colwidth:p})}l.docChanged&&n.dispatch(l)}function ky(n,e,t,r){const i=n.state.doc.resolve(e),o=i.node(-1),s=i.start(-1),a=$t.get(o).colCount(i.pos-s)+i.nodeAfter.attrs.colspan-1;let l=n.domAtPos(i.start(-1)).node;for(;l&&l.nodeName!="TABLE";)l=l.parentNode;l&&Hd(o,l.firstChild,l,r,a,t)}function iA(n){return Array(n).fill(0)}function oA(n,e){var t;const r=[],i=n.doc.resolve(e),o=i.node(-1);if(!o)return Bt.empty;const s=$t.get(o),a=i.start(-1),l=s.colCount(i.pos-a)+i.nodeAfter.attrs.colspan-1;for(let c=0;c<s.height;c++){const u=l+c*s.width;if((l==s.width-1||s.map[u]!=s.map[u+1])&&(c==0||s.map[u]!=s.map[u-s.width])){const h=s.map[u],g=a+h+o.nodeAt(h).nodeSize-1,b=document.createElement("div");b.className="column-resize-handle",(t=Gn.getState(n))!=null&&t.dragging&&r.push(un.node(a+h,a+h+o.nodeAt(h).nodeSize,{class:"column-resize-dragging"})),r.push(un.widget(g,b))}}return Bt.create(n.doc,r)}function sA({allowTableNodeSelection:n=!1}={}){return new _t({key:Ti,state:{init(){return null},apply(e,t){const r=e.getMeta(Ti);if(r!=null)return r==-1?null:r;if(t==null||!e.docChanged)return t;const{deleted:i,pos:o}=e.mapping.mapResult(t);return i?null:o}},props:{decorations:yT,handleDOMEvents:{mousedown:jT},createSelectionBetween(e){return Ti.getState(e.state)!=null?e.state.selection:null},handleTripleClick:WT,handleKeyDown:$T,handlePaste:KT},appendTransaction(e,t,r){return xT(r,ay(r,t),n)}})}function Sy(n,e,t,r,i,o){let s=0,a=!0,l=e.firstChild;const c=n.firstChild;for(let u=0,h=0;u<c.childCount;u+=1){const{colspan:g,colwidth:b}=c.child(u).attrs;for(let p=0;p<g;p+=1,h+=1){const v=i===h?o:b&&b[p],w=v?`${v}px`:"";s+=v||r,v||(a=!1),l?(l.style.width!==w&&(l.style.width=w),l=l.nextSibling):e.appendChild(document.createElement("col")).style.width=w}}for(;l;){const u=l.nextSibling;l.parentNode.removeChild(l),l=u}a?(t.style.width=`${s}px`,t.style.minWidth=""):(t.style.width="",t.style.minWidth=`${s}px`)}class aA{constructor(e,t){this.node=e,this.cellMinWidth=t,this.dom=document.createElement("div"),this.dom.className="tableWrapper",this.table=this.dom.appendChild(document.createElement("table")),this.colgroup=this.table.appendChild(document.createElement("colgroup")),Sy(e,this.colgroup,this.table,t),this.contentDOM=this.table.appendChild(document.createElement("tbody"))}update(e){return e.type!==this.node.type?!1:(this.node=e,Sy(e,this.colgroup,this.table,this.cellMinWidth),!0)}ignoreMutation(e){return e.type==="attributes"&&(e.target===this.table||this.colgroup.contains(e.target))}}function lA(n,e,t,r){let i=0,o=!0;const s=[],a=n.firstChild;if(!a)return{};for(let h=0,g=0;h<a.childCount;h+=1){const{colspan:b,colwidth:p}=a.child(h).attrs;for(let v=0;v<b;v+=1,g+=1){const w=t===g?r:p&&p[v],S=w?`${w}px`:"";i+=w||e,w||(o=!1),s.push(["col",S?{style:`width: ${S}`}:{}])}}const l=o?`${i}px`:"",c=o?"":`${i}px`;return{colgroup:["colgroup",{},...s],tableWidth:l,tableMinWidth:c}}function Ey(n,e){return n.createAndFill()}function cA(n){if(n.cached.tableNodeTypes)return n.cached.tableNodeTypes;const e={};return Object.keys(n.nodes).forEach(t=>{const r=n.nodes[t];r.spec.tableRole&&(e[r.spec.tableRole]=r)}),n.cached.tableNodeTypes=e,e}function uA(n,e,t,r,i){const o=cA(n),s=[],a=[];for(let c=0;c<t;c+=1){const u=Ey(o.cell);if(u&&a.push(u),r){const h=Ey(o.header_cell);h&&s.push(h)}}const l=[];for(let c=0;c<e;c+=1)l.push(o.row.createChecked(null,r&&c===0?s:a));return o.table.createChecked(null,l)}function dA(n){return n instanceof Dt}const vc=({editor:n})=>{const{selection:e}=n.state;if(!dA(e))return!1;let t=0;const r=J1(e.ranges[0].$from,o=>o.type.name==="table");return r==null||r.node.descendants(o=>{if(o.type.name==="table")return!1;["tableCell","tableHeader"].includes(o.type.name)&&(t+=1)}),t===e.ranges.length?(n.commands.deleteTable(),!0):!1},Cy=Hn.create({name:"table",addOptions(){return{HTMLAttributes:{},resizable:!1,handleWidth:5,cellMinWidth:25,View:aA,lastColumnResizable:!0,allowTableNodeSelection:!1}},content:"tableRow+",tableRole:"table",isolating:!0,group:"block",parseHTML(){return[{tag:"table"}]},renderHTML({node:n,HTMLAttributes:e}){const{colgroup:t,tableWidth:r,tableMinWidth:i}=lA(n,this.options.cellMinWidth);return["table",jt(this.options.HTMLAttributes,e,{style:r?`width: ${r}`:`minWidth: ${i}`}),t,["tbody",0]]},addCommands(){return{insertTable:({rows:n=3,cols:e=3,withHeaderRow:t=!0}={})=>({tr:r,dispatch:i,editor:o})=>{const s=uA(o.schema,n,e,t);if(i){const a=r.selection.anchor+1;r.replaceSelectionWith(s).scrollIntoView().setSelection(Ne.near(r.doc.resolve(a)))}return!0},addColumnBefore:()=>({state:n,dispatch:e})=>ET(n,e),addColumnAfter:()=>({state:n,dispatch:e})=>CT(n,e),deleteColumn:()=>({state:n,dispatch:e})=>AT(n,e),addRowBefore:()=>({state:n,dispatch:e})=>NT(n,e),addRowAfter:()=>({state:n,dispatch:e})=>DT(n,e),deleteRow:()=>({state:n,dispatch:e})=>OT(n,e),deleteTable:()=>({state:n,dispatch:e})=>qT(n,e),mergeCells:()=>({state:n,dispatch:e})=>dy(n,e),splitCell:()=>({state:n,dispatch:e})=>hy(n,e),toggleHeaderColumn:()=>({state:n,dispatch:e})=>ua("column")(n,e),toggleHeaderRow:()=>({state:n,dispatch:e})=>ua("row")(n,e),toggleHeaderCell:()=>({state:n,dispatch:e})=>FT(n,e),mergeOrSplit:()=>({state:n,dispatch:e})=>dy(n,e)?!0:hy(n,e),setCellAttribute:(n,e)=>({state:t,dispatch:r})=>BT(n,e)(t,r),goToNextCell:()=>({state:n,dispatch:e})=>py(1)(n,e),goToPreviousCell:()=>({state:n,dispatch:e})=>py(-1)(n,e),fixTables:()=>({state:n,dispatch:e})=>(e&&ay(n),!0),setCellSelection:n=>({tr:e,dispatch:t})=>{if(t){const r=Dt.create(e.doc,n.anchorCell,n.headCell);e.setSelection(r)}return!0}}},addKeyboardShortcuts(){return{Tab:()=>this.editor.commands.goToNextCell()?!0:this.editor.can().addRowAfter()?this.editor.chain().addRowAfter().goToNextCell().run():!1,"Shift-Tab":()=>this.editor.commands.goToPreviousCell(),Backspace:vc,"Mod-Backspace":vc,Delete:vc,"Mod-Delete":vc}},addProseMirrorPlugins(){return[...this.options.resizable&&this.editor.isEditable?[YT({handleWidth:this.options.handleWidth,cellMinWidth:this.options.cellMinWidth,View:this.options.View,lastColumnResizable:this.options.lastColumnResizable})]:[],sA({allowTableNodeSelection:this.options.allowTableNodeSelection})]},extendNodeSchema(n){const e={name:n.name,options:n.options,storage:n.storage};return{tableRole:et(Re(n,"tableRole",e))}}}),Ty=Hn.create({name:"tableRow",addOptions(){return{HTMLAttributes:{}}},content:"(tableCell | tableHeader)*",tableRole:"row",parseHTML(){return[{tag:"tr"}]},renderHTML({HTMLAttributes:n}){return["tr",jt(this.options.HTMLAttributes,n),0]}}),Ay=Hn.create({name:"tableCell",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const e=n.getAttribute("colwidth");return e?[parseInt(e,10)]:null}}}},tableRole:"cell",isolating:!0,parseHTML(){return[{tag:"td"}]},renderHTML({HTMLAttributes:n}){return["td",jt(this.options.HTMLAttributes,n),0]}}),My=Hn.create({name:"tableHeader",addOptions(){return{HTMLAttributes:{}}},content:"block+",addAttributes(){return{colspan:{default:1},rowspan:{default:1},colwidth:{default:null,parseHTML:n=>{const e=n.getAttribute("colwidth");return e?[parseInt(e,10)]:null}}}},tableRole:"header_cell",isolating:!0,parseHTML(){return[{tag:"th"}]},renderHTML({HTMLAttributes:n}){return["th",jt(this.options.HTMLAttributes,n),0]}});class hA{constructor({editor:e,element:t,view:r,tippyOptions:i={},updateDelay:o=250,shouldShow:s}){this.preventHide=!1,this.shouldShow=({view:a,state:l,from:c,to:u})=>{const{doc:h,selection:g}=l,{empty:b}=g,p=!h.textBetween(c,u).length&&pl(l.selection),v=this.element.contains(document.activeElement);return!(!(a.hasFocus()||v)||b||p||!this.editor.isEditable)},this.mousedownHandler=()=>{this.preventHide=!0},this.dragstartHandler=()=>{this.hide()},this.focusHandler=()=>{setTimeout(()=>this.update(this.editor.view))},this.blurHandler=({event:a})=>{var l;if(this.preventHide){this.preventHide=!1;return}a!=null&&a.relatedTarget&&(!((l=this.element.parentNode)===null||l===void 0)&&l.contains(a.relatedTarget))||this.hide()},this.tippyBlurHandler=a=>{this.blurHandler({event:a})},this.handleDebouncedUpdate=(a,l)=>{const c=!(l!=null&&l.selection.eq(a.state.selection)),u=!(l!=null&&l.doc.eq(a.state.doc));!c&&!u||(this.updateDebounceTimer&&clearTimeout(this.updateDebounceTimer),this.updateDebounceTimer=window.setTimeout(()=>{this.updateHandler(a,c,u,l)},this.updateDelay))},this.updateHandler=(a,l,c,u)=>{var h,g,b;const{state:p,composing:v}=a,{selection:w}=p;if(v||!l&&!c)return;this.createTooltip();const{ranges:C}=w,E=Math.min(...C.map(O=>O.$from.pos)),A=Math.max(...C.map(O=>O.$to.pos));if(!((h=this.shouldShow)===null||h===void 0?void 0:h.call(this,{editor:this.editor,view:a,state:p,oldState:u,from:E,to:A}))){this.hide();return}(g=this.tippy)===null||g===void 0||g.setProps({getReferenceClientRect:((b=this.tippyOptions)===null||b===void 0?void 0:b.getReferenceClientRect)||(()=>{if(rb(p.selection)){let O=a.nodeDOM(E);const H=O.dataset.nodeViewWrapper?O:O.querySelector("[data-node-view-wrapper]");if(H&&(O=H.firstChild),O)return O.getBoundingClientRect()}return M0(a,E,A)})}),this.show()},this.editor=e,this.element=t,this.view=r,this.updateDelay=o,s&&(this.shouldShow=s),this.element.addEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.addEventListener("dragstart",this.dragstartHandler),this.editor.on("focus",this.focusHandler),this.editor.on("blur",this.blurHandler),this.tippyOptions=i,this.element.remove(),this.element.style.visibility="visible"}createTooltip(){const{element:e}=this.editor.options,t=!!e.parentElement;this.tippy||!t||(this.tippy=ro(e,{duration:0,getReferenceClientRect:null,content:this.element,interactive:!0,trigger:"manual",placement:"top",hideOnClick:"toggle",...this.tippyOptions}),this.tippy.popper.firstChild&&this.tippy.popper.firstChild.addEventListener("blur",this.tippyBlurHandler))}update(e,t){const{state:r}=e,i=r.selection.$from.pos!==r.selection.$to.pos;if(this.updateDelay>0&&i){this.handleDebouncedUpdate(e,t);return}const o=!(t!=null&&t.selection.eq(e.state.selection)),s=!(t!=null&&t.doc.eq(e.state.doc));this.updateHandler(e,o,s,t)}show(){var e;(e=this.tippy)===null||e===void 0||e.show()}hide(){var e;(e=this.tippy)===null||e===void 0||e.hide()}destroy(){var e,t;!((e=this.tippy)===null||e===void 0)&&e.popper.firstChild&&this.tippy.popper.firstChild.removeEventListener("blur",this.tippyBlurHandler),(t=this.tippy)===null||t===void 0||t.destroy(),this.element.removeEventListener("mousedown",this.mousedownHandler,{capture:!0}),this.view.dom.removeEventListener("dragstart",this.dragstartHandler),this.editor.off("focus",this.focusHandler),this.editor.off("blur",this.blurHandler)}}const fA=n=>new _t({key:typeof n.pluginKey=="string"?new At(n.pluginKey):n.pluginKey,view:e=>new hA({view:e,...n})}),pA=Mn.create({name:"bubbleMenu",addOptions(){return{element:null,tippyOptions:{},pluginKey:"bubbleMenu",updateDelay:void 0,shouldShow:null}},addProseMirrorPlugins(){return this.options.element?[fA({pluginKey:this.options.pluginKey,editor:this.editor,element:this.options.element,tippyOptions:this.options.tippyOptions,updateDelay:this.options.updateDelay,shouldShow:this.options.shouldShow})]:[]}}),Ny="[A-Za-z$_][0-9A-Za-z$_]*",mA=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],gA=["true","false","null","undefined","NaN","Infinity"],Dy=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Ry=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Oy=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],bA=["arguments","this","super","console","window","document","localStorage","module","global"],_A=[].concat(Oy,Dy,Ry);function Iy(n){const e=n.regex,t=(Q,{after:ie})=>{const Z="</"+Q[0].slice(1);return Q.input.indexOf(Z,ie)!==-1},r=Ny,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ie)=>{const Z=Q[0].length+Q.index,J=Q.input[Z];if(J==="<"||J===","){ie.ignoreMatch();return}J===">"&&(t(Q,{after:Z})||ie.ignoreMatch());let ue;if((ue=Q.input.substring(Z).match(/^\s+extends\s+/))&&ue.index===0){ie.ignoreMatch();return}}},a={$pattern:Ny,keyword:mA,literal:gA,built_in:_A,"variable.language":bA},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},b={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},p={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,g],subLanguage:"css"}},v={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,g]},S={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},C=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,b,p,v,h];g.contains=C.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(C)});const E=[].concat(S,g.contains),A=E.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(E)}]),R={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:A},O={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},H={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Dy,...Ry]}},q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],illegal:/%/},F={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(Q){return e.concat("(?!",Q.join("|"),")")}const X={match:e.concat(/\b/,Y([...Oy,"super"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},oe={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},R]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),q,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,b,p,v,S,h,H,{className:"attr",begin:r+e.lookahead(":"),relevance:0},$,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[S,n.REGEXP_MODE,{className:"function",begin:ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[R,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[R]},X,F,O,K,{match:/\$[(.]/}]}}const wc="[A-Za-z$_][0-9A-Za-z$_]*",Ly=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],By=["true","false","null","undefined","NaN","Infinity"],Py=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],Fy=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],zy=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],qy=["arguments","this","super","console","window","document","localStorage","module","global"],Hy=[].concat(zy,Py,Fy);function yA(n){const e=n.regex,t=(Q,{after:ie})=>{const Z="</"+Q[0].slice(1);return Q.input.indexOf(Z,ie)!==-1},r=wc,i={begin:"<>",end:"</>"},o=/<[A-Za-z0-9\\._:-]+\s*\/>/,s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(Q,ie)=>{const Z=Q[0].length+Q.index,J=Q.input[Z];if(J==="<"||J===","){ie.ignoreMatch();return}J===">"&&(t(Q,{after:Z})||ie.ignoreMatch());let ue;if((ue=Q.input.substring(Z).match(/^\s+extends\s+/))&&ue.index===0){ie.ignoreMatch();return}}},a={$pattern:wc,keyword:Ly,literal:By,built_in:Hy,"variable.language":qy},l="[0-9](_?[0-9])*",c=`\\.(${l})`,u="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",h={className:"number",variants:[{begin:`(\\b(${u})((${c})|\\.)?|(${c}))[eE][+-]?(${l})\\b`},{begin:`\\b(${u})\\b((${c})\\b|\\.)?|(${c})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:a,contains:[]},b={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},p={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[n.BACKSLASH_ESCAPE,g],subLanguage:"css"}},v={className:"string",begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE,g]},S={className:"comment",variants:[n.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),n.C_BLOCK_COMMENT_MODE,n.C_LINE_COMMENT_MODE]},C=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,b,p,v,h];g.contains=C.concat({begin:/\{/,end:/\}/,keywords:a,contains:["self"].concat(C)});const E=[].concat(S,g.contains),A=E.concat([{begin:/\(/,end:/\)/,keywords:a,contains:["self"].concat(E)}]),R={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:A},O={variants:[{match:[/class/,/\s+/,r,/\s+/,/extends/,/\s+/,e.concat(r,"(",e.concat(/\./,r),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,r],scope:{1:"keyword",3:"title.class"}}]},H={relevance:0,match:e.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...Py,...Fy]}},q={label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},U={variants:[{match:[/function/,/\s+/,r,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],illegal:/%/},F={relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"};function Y(Q){return e.concat("(?!",Q.join("|"),")")}const X={match:e.concat(/\b/,Y([...zy,"super"]),r,e.lookahead(/\(/)),className:"title.function",relevance:0},oe={begin:e.concat(/\./,e.lookahead(e.concat(r,/(?![0-9A-Za-z$_(])/))),end:r,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},K={match:[/get|set/,/\s+/,r,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},R]},ee="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+n.UNDERSCORE_IDENT_RE+")\\s*=>",$={match:[/const|var|let/,/\s+/,r,/\s*/,/=\s*/,/(async\s*)?/,e.lookahead(ee)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:a,exports:{PARAMS_CONTAINS:A,CLASS_REFERENCE:H},illegal:/#(?![$_A-z])/,contains:[n.SHEBANG({label:"shebang",binary:"node",relevance:5}),q,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,b,p,v,S,h,H,{className:"attr",begin:r+e.lookahead(":"),relevance:0},$,{begin:"("+n.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[S,n.REGEXP_MODE,{className:"function",begin:ee,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:A}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:i.begin,end:i.end},{match:o},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}]},U,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+n.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[R,n.inherit(n.TITLE_MODE,{begin:r,className:"title.function"})]},{match:/\.\.\./,relevance:0},oe,{match:"\\$"+r,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[R]},X,F,O,K,{match:/\$[(.]/}]}}function Vy(n){const e=yA(n),t=wc,r=["any","void","number","boolean","string","object","never","symbol","bigint","unknown"],i={beginKeywords:"namespace",end:/\{/,excludeEnd:!0,contains:[e.exports.CLASS_REFERENCE]},o={beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:{keyword:"interface extends",built_in:r},contains:[e.exports.CLASS_REFERENCE]},s={className:"meta",relevance:10,begin:/^\s*['"]use strict['"]/},a=["type","namespace","interface","public","private","protected","implements","declare","abstract","readonly","enum","override"],l={$pattern:wc,keyword:Ly.concat(a),literal:By,built_in:Hy.concat(r),"variable.language":qy},c={className:"meta",begin:"@"+t},u=(g,b,p)=>{const v=g.contains.findIndex(w=>w.label===b);if(v===-1)throw new Error("can not find mode to replace");g.contains.splice(v,1,p)};Object.assign(e.keywords,l),e.exports.PARAMS_CONTAINS.push(c),e.contains=e.contains.concat([c,i,o]),u(e,"shebang",n.SHEBANG()),u(e,"use_strict",s);const h=e.contains.find(g=>g.label==="func.def");return h.relevance=0,Object.assign(e,{name:"TypeScript",aliases:["ts","tsx"]}),e}function vA(n){const e={className:"number",begin:/[$%]\d+/},t={className:"number",begin:/\b\d+/},r={className:"number",begin:/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}(:\d{1,5})?/},i={className:"number",begin:/:\d{1,5}/};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[n.HASH_COMMENT_MODE,{className:"section",begin:/<\/?/,end:/>/,contains:[r,i,n.inherit(n.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{_:["order","deny","allow","setenv","rewriterule","rewriteengine","rewritecond","documentroot","sethandler","errordocument","loadmodule","options","header","listen","serverroot","servername"]},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:/\s\[/,end:/\]$/},{className:"variable",begin:/[\$%]\{/,end:/\}/,contains:["self",e]},r,t,n.QUOTE_STRING_MODE]}}],illegal:/\S/}}function Uy(n){const e=n.regex,t=e.concat(/[\p{L}_]/u,e.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),r=/[\p{L}0-9._:-]+/u,i={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=n.inherit(o,{begin:/\(/,end:/\)/}),a=n.inherit(n.APOS_STRING_MODE,{className:"string"}),l=n.inherit(n.QUOTE_STRING_MODE,{className:"string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[i]},{begin:/'/,end:/'/,contains:[i]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[o,l,a,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[o,s,l,a]}]}]},n.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},i,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[l]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:e.concat(/</,e.lookahead(e.concat(t,e.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:t,relevance:0,starts:c}]},{className:"tag",begin:e.concat(/<\//,e.lookahead(e.concat(t,/>/))),contains:[{className:"name",begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}function wA(n){const e=n.regex,t={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[t]}]};Object.assign(t,{className:"variable",variants:[{begin:e.concat(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const i={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},s={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,t,i]};i.contains.push(s);const a={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},c={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,t]},u=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],h=n.SHEBANG({binary:`(${u.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0},b=["if","then","else","elif","fi","for","while","in","do","done","case","esac","function"],p=["true","false"],v={match:/(\/[a-z._-]+)+/},w=["break","cd","continue","eval","exec","exit","export","getopts","hash","pwd","readonly","return","shift","test","times","trap","umask","unset"],S=["alias","bind","builtin","caller","command","declare","echo","enable","help","let","local","logout","mapfile","printf","read","readarray","source","type","typeset","ulimit","unalias"],C=["autoload","bg","bindkey","bye","cap","chdir","clone","comparguments","compcall","compctl","compdescribe","compfiles","compgroups","compquote","comptags","comptry","compvalues","dirs","disable","disown","echotc","echoti","emulate","fc","fg","float","functions","getcap","getln","history","integer","jobs","kill","limit","log","noglob","popd","print","pushd","pushln","rehash","sched","setcap","setopt","stat","suspend","ttyctl","unfunction","unhash","unlimit","unsetopt","vared","wait","whence","where","which","zcompile","zformat","zftp","zle","zmodload","zparseopts","zprof","zpty","zregexparse","zsocket","zstyle","ztcp"],E=["chcon","chgrp","chown","chmod","cp","dd","df","dir","dircolors","ln","ls","mkdir","mkfifo","mknod","mktemp","mv","realpath","rm","rmdir","shred","sync","touch","truncate","vdir","b2sum","base32","base64","cat","cksum","comm","csplit","cut","expand","fmt","fold","head","join","md5sum","nl","numfmt","od","paste","ptx","pr","sha1sum","sha224sum","sha256sum","sha384sum","sha512sum","shuf","sort","split","sum","tac","tail","tr","tsort","unexpand","uniq","wc","arch","basename","chroot","date","dirname","du","echo","env","expr","factor","groups","hostid","id","link","logname","nice","nohup","nproc","pathchk","pinky","printenv","printf","pwd","readlink","runcon","seq","sleep","stat","stdbuf","stty","tee","test","timeout","tty","uname","unlink","uptime","users","who","whoami","yes"];return{name:"Bash",aliases:["sh"],keywords:{$pattern:/\b[a-z][a-z0-9._-]+\b/,keyword:b,literal:p,built_in:[...w,...S,"set","shopt",...C,...E]},contains:[h,n.SHEBANG(),g,c,n.HASH_COMMENT_MODE,o,v,s,a,l,t]}}function xA(n){const e=n.regex,t=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",variants:[{begin:"\\b[a-z\\d_]*_t\\b"},{match:/\batomic_[a-z]{3,6}\b/}]},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},t,n.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:e.optional(i)+n.IDENT_RE,relevance:0},b=e.optional(i)+n.IDENT_RE+"\\s*\\(",w={keyword:["asm","auto","break","case","continue","default","do","else","enum","extern","for","fortran","goto","if","inline","register","restrict","return","sizeof","struct","switch","typedef","union","volatile","while","_Alignas","_Alignof","_Atomic","_Generic","_Noreturn","_Static_assert","_Thread_local","alignas","alignof","noreturn","static_assert","thread_local","_Pragma"],type:["float","double","signed","unsigned","int","short","long","char","void","_Bool","_Complex","_Imaginary","_Decimal32","_Decimal64","_Decimal128","const","static","complex","bool","imaginary"],literal:"true false NULL",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr"},S=[h,a,t,n.C_BLOCK_COMMENT_MODE,u,c],C={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:w,contains:S.concat([{begin:/\(/,end:/\)/,keywords:w,contains:S.concat(["self"]),relevance:0}]),relevance:0},E={begin:"("+s+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:w,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:w,relevance:0},{begin:b,returnBegin:!0,contains:[n.inherit(g,{className:"title.function"})],relevance:0},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:[t,n.C_BLOCK_COMMENT_MODE,c,u,a,{begin:/\(/,end:/\)/,keywords:w,relevance:0,contains:["self",t,n.C_BLOCK_COMMENT_MODE,c,u,a]}]},a,t,n.C_BLOCK_COMMENT_MODE,h]};return{name:"C",aliases:["h"],keywords:w,disableAutodetect:!0,illegal:"</",contains:[].concat(C,E,S,[h,{begin:n.IDENT_RE+"::",keywords:w},{className:"class",beginKeywords:"enum class struct union",end:/[{;:<>=]/,contains:[{beginKeywords:"final class struct"},n.TITLE_MODE]}]),exports:{preprocessor:h,strings:c,keywords:w}}}function kA(n){const e=n.regex,t=n.COMMENT("//","$",{contains:[{begin:/\\\n/}]}),r="decltype\\(auto\\)",i="[a-zA-Z_]\\w*::",s="(?!struct)("+r+"|"+e.optional(i)+"[a-zA-Z_]\\w*"+e.optional("<[^<>]+>")+")",a={className:"type",begin:"\\b[a-z\\d_]*_t\\b"},c={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'("+"\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)"+"|.)",end:"'",illegal:"."},n.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},u={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)((ll|LL|l|L)(u|U)?|(u|U)(ll|LL|l|L)?|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},h={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{keyword:"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},n.inherit(c,{className:"string"}),{className:"string",begin:/<.*?>/},t,n.C_BLOCK_COMMENT_MODE]},g={className:"title",begin:e.optional(i)+n.IDENT_RE,relevance:0},b=e.optional(i)+n.IDENT_RE+"\\s*\\(",p=["alignas","alignof","and","and_eq","asm","atomic_cancel","atomic_commit","atomic_noexcept","auto","bitand","bitor","break","case","catch","class","co_await","co_return","co_yield","compl","concept","const_cast|10","consteval","constexpr","constinit","continue","decltype","default","delete","do","dynamic_cast|10","else","enum","explicit","export","extern","false","final","for","friend","goto","if","import","inline","module","mutable","namespace","new","noexcept","not","not_eq","nullptr","operator","or","or_eq","override","private","protected","public","reflexpr","register","reinterpret_cast|10","requires","return","sizeof","static_assert","static_cast|10","struct","switch","synchronized","template","this","thread_local","throw","transaction_safe","transaction_safe_dynamic","true","try","typedef","typeid","typename","union","using","virtual","volatile","while","xor","xor_eq"],v=["bool","char","char16_t","char32_t","char8_t","double","float","int","long","short","void","wchar_t","unsigned","signed","const","static"],w=["any","auto_ptr","barrier","binary_semaphore","bitset","complex","condition_variable","condition_variable_any","counting_semaphore","deque","false_type","future","imaginary","initializer_list","istringstream","jthread","latch","lock_guard","multimap","multiset","mutex","optional","ostringstream","packaged_task","pair","promise","priority_queue","queue","recursive_mutex","recursive_timed_mutex","scoped_lock","set","shared_future","shared_lock","shared_mutex","shared_timed_mutex","shared_ptr","stack","string_view","stringstream","timed_mutex","thread","true_type","tuple","unique_lock","unique_ptr","unordered_map","unordered_multimap","unordered_multiset","unordered_set","variant","vector","weak_ptr","wstring","wstring_view"],S=["abort","abs","acos","apply","as_const","asin","atan","atan2","calloc","ceil","cerr","cin","clog","cos","cosh","cout","declval","endl","exchange","exit","exp","fabs","floor","fmod","forward","fprintf","fputs","free","frexp","fscanf","future","invoke","isalnum","isalpha","iscntrl","isdigit","isgraph","islower","isprint","ispunct","isspace","isupper","isxdigit","labs","launder","ldexp","log","log10","make_pair","make_shared","make_shared_for_overwrite","make_tuple","make_unique","malloc","memchr","memcmp","memcpy","memset","modf","move","pow","printf","putchar","puts","realloc","scanf","sin","sinh","snprintf","sprintf","sqrt","sscanf","std","stderr","stdin","stdout","strcat","strchr","strcmp","strcpy","strcspn","strlen","strncat","strncmp","strncpy","strpbrk","strrchr","strspn","strstr","swap","tan","tanh","terminate","to_underlying","tolower","toupper","vfprintf","visit","vprintf","vsprintf"],A={type:v,keyword:p,literal:["NULL","false","nullopt","nullptr","true"],built_in:["_Pragma"],_type_hints:w},R={className:"function.dispatch",relevance:0,keywords:{_hint:S},begin:e.concat(/\b/,/(?!decltype)/,/(?!if)/,/(?!for)/,/(?!switch)/,/(?!while)/,n.IDENT_RE,e.lookahead(/(<[^<>]+>|)\s*\(/))},O=[R,h,a,t,n.C_BLOCK_COMMENT_MODE,u,c],H={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:A,contains:O.concat([{begin:/\(/,end:/\)/,keywords:A,contains:O.concat(["self"]),relevance:0}]),relevance:0},q={className:"function",begin:"("+s+"[\\*&\\s]+)+"+b,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:A,illegal:/[^\w\s\*&:<>.]/,contains:[{begin:r,keywords:A,relevance:0},{begin:b,returnBegin:!0,contains:[g],relevance:0},{begin:/::/,relevance:0},{begin:/:/,endsWithParent:!0,contains:[c,u]},{relevance:0,match:/,/},{className:"params",begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:[t,n.C_BLOCK_COMMENT_MODE,c,u,a,{begin:/\(/,end:/\)/,keywords:A,relevance:0,contains:["self",t,n.C_BLOCK_COMMENT_MODE,c,u,a]}]},a,t,n.C_BLOCK_COMMENT_MODE,h]};return{name:"C++",aliases:["cc","c++","h++","hpp","hh","hxx","cxx"],keywords:A,illegal:"</",classNameAliases:{"function.dispatch":"built_in"},contains:[].concat(H,q,R,O,[h,{begin:"\\b(deque|list|queue|priority_queue|pair|stack|vector|map|set|bitset|multiset|multimap|unordered_map|unordered_set|unordered_multiset|unordered_multimap|array|tuple|optional|variant|function)\\s*<(?!<)",end:">",keywords:A,contains:["self",a]},{begin:n.IDENT_RE+"::",keywords:A},{match:[/\b(?:enum(?:\s+(?:class|struct))?|class|struct|union)/,/\s+/,/\w+/],className:{1:"keyword",3:"title.class"}}])}}function SA(n){const e=["bool","byte","char","decimal","delegate","double","dynamic","enum","float","int","long","nint","nuint","object","sbyte","short","string","ulong","uint","ushort"],t=["public","private","protected","static","internal","protected","abstract","async","extern","override","unsafe","virtual","new","sealed","partial"],r=["default","false","null","true"],i=["abstract","as","base","break","case","catch","class","const","continue","do","else","event","explicit","extern","finally","fixed","for","foreach","goto","if","implicit","in","interface","internal","is","lock","namespace","new","operator","out","override","params","private","protected","public","readonly","record","ref","return","scoped","sealed","sizeof","stackalloc","static","struct","switch","this","throw","try","typeof","unchecked","unsafe","using","virtual","void","volatile","while"],o=["add","alias","and","ascending","async","await","by","descending","equals","from","get","global","group","init","into","join","let","nameof","not","notnull","on","or","orderby","partial","remove","select","set","unmanaged","value|0","var","when","where","with","yield"],s={keyword:i.concat(o),built_in:e,literal:r},a=n.inherit(n.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),l={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},c={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},u=n.inherit(c,{illegal:/\n/}),h={className:"subst",begin:/\{/,end:/\}/,keywords:s},g=n.inherit(h,{illegal:/\n/}),b={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},n.BACKSLASH_ESCAPE,g]},p={className:"string",begin:/\$@"/,end:'"',contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},h]},v=n.inherit(p,{illegal:/\n/,contains:[{begin:/\{\{/},{begin:/\}\}/},{begin:'""'},g]});h.contains=[p,b,c,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,n.C_BLOCK_COMMENT_MODE],g.contains=[v,b,u,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,l,n.inherit(n.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];const w={variants:[p,b,c,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},S={begin:"<",end:">",contains:[{beginKeywords:"in out"},a]},C=n.IDENT_RE+"(<"+n.IDENT_RE+"(\\s*,\\s*"+n.IDENT_RE+")*>)?(\\[\\])?",E={begin:"@"+n.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:s,illegal:/::/,contains:[n.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"<!--|-->"},{begin:"</?",end:">"}]}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{keyword:"if else elif endif define undef warning error line region endregion pragma checksum"}},w,l,{beginKeywords:"class interface",relevance:0,end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},a,S,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",relevance:0,end:/[{;=]/,illegal:/[^\s:]/,contains:[a,S,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[(?=[\\w])",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+C+"\\s+)+"+n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:s,contains:[{beginKeywords:t.join(" "),relevance:0},{begin:n.IDENT_RE+"\\s*(<[^=]+>\\s*)?\\(",returnBegin:!0,contains:[n.TITLE_MODE,S],relevance:0},{match:/\(\)/},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:s,relevance:0,contains:[w,l,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},E]}}const EA=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),CA=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],TA=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],AA=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],MA=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],NA=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function Gy(n){const e=n.regex,t=EA(n),r={begin:/-(webkit|moz|ms|o)-(?=[a-z])/},i="and or not only",o=/@-?\w[\w]*(-\w+)*/,s="[a-zA-Z-][a-zA-Z0-9_-]*",a=[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE];return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,keywords:{keyframePosition:"from to"},classNameAliases:{keyframePosition:"selector-tag"},contains:[t.BLOCK_COMMENT,r,t.CSS_NUMBER_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/,relevance:0},{className:"selector-class",begin:"\\."+s,relevance:0},t.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",variants:[{begin:":("+AA.join("|")+")"},{begin:":(:)?("+MA.join("|")+")"}]},t.CSS_VARIABLE,{className:"attribute",begin:"\\b("+NA.join("|")+")\\b"},{begin:/:/,end:/[;}{]/,contains:[t.BLOCK_COMMENT,t.HEXCOLOR,t.IMPORTANT,t.CSS_NUMBER_MODE,...a,{begin:/(url|data-uri)\(/,end:/\)/,relevance:0,keywords:{built_in:"url data-uri"},contains:[...a,{className:"string",begin:/[^)]/,endsWithParent:!0,excludeEnd:!0}]},t.FUNCTION_DISPATCH]},{begin:e.lookahead(/@/),end:"[{;]",relevance:0,illegal:/:/,contains:[{className:"keyword",begin:o},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:{$pattern:/[a-z-]+/,keyword:i,attribute:TA.join(" ")},contains:[{begin:/[a-z-]+(?=:)/,className:"attribute"},...a,t.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"\\b("+CA.join("|")+")\\b"}]}}function DA(n){const e=n.regex,t={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},r={begin:"^[-\\*]{3,}",end:"$"},i={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},o={className:"bullet",begin:"^[ ]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},s={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},a=/[A-Za-z][A-Za-z0-9+.-]*/,l={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:e.concat(/\[.+?\]\(/,a,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.*?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{match:/\[(?=\])/},{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]},h=n.inherit(c,{contains:[]}),g=n.inherit(u,{contains:[]});c.contains.push(g),u.contains.push(h);let b=[t,l];return[c,u,h,g].forEach(w=>{w.contains=w.contains.concat(b)}),b=b.concat(c,u),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:b},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:b}]}]},t,o,c,u,{className:"quote",begin:"^>\\s+",contains:b,end:"$"},i,r,l,s]}}function RA(n){const e={className:"subst",variants:[{begin:"\\$[A-Za-z0-9_]+"}]},t={className:"subst",variants:[{begin:/\$\{/,end:/\}/}],keywords:"true false null this is new super"},r={className:"string",variants:[{begin:"r'''",end:"'''"},{begin:'r"""',end:'"""'},{begin:"r'",end:"'",illegal:"\\n"},{begin:'r"',end:'"',illegal:"\\n"},{begin:"'''",end:"'''",contains:[n.BACKSLASH_ESCAPE,e,t]},{begin:'"""',end:'"""',contains:[n.BACKSLASH_ESCAPE,e,t]},{begin:"'",end:"'",illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,e,t]},{begin:'"',end:'"',illegal:"\\n",contains:[n.BACKSLASH_ESCAPE,e,t]}]};t.contains=[n.C_NUMBER_MODE,r];const i=["Comparable","DateTime","Duration","Function","Iterable","Iterator","List","Map","Match","Object","Pattern","RegExp","Set","Stopwatch","String","StringBuffer","StringSink","Symbol","Type","Uri","bool","double","int","num","Element","ElementList"],o=i.map(l=>`${l}?`);return{name:"Dart",keywords:{keyword:["abstract","as","assert","async","await","break","case","catch","class","const","continue","covariant","default","deferred","do","dynamic","else","enum","export","extends","extension","external","factory","false","final","finally","for","Function","get","hide","if","implements","import","in","inferface","is","late","library","mixin","new","null","on","operator","part","required","rethrow","return","set","show","static","super","switch","sync","this","throw","true","try","typedef","var","void","while","with","yield"],built_in:i.concat(o).concat(["Never","Null","dynamic","print","document","querySelector","querySelectorAll","window"]),$pattern:/[A-Za-z][A-Za-z0-9_]*\??/},contains:[r,n.COMMENT(/\/\*\*(?!\/)/,/\*\//,{subLanguage:"markdown",relevance:0}),n.COMMENT(/\/{3,} ?/,/$/,{contains:[{subLanguage:"markdown",begin:".",end:"$",relevance:0}]}),n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"class",beginKeywords:"class interface",end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},n.C_NUMBER_MODE,{className:"meta",begin:"@[A-Za-z]+"},{begin:"=>"}]}}function OA(n){const e=["exports","register","file","shl","array","record","property","for","mod","while","set","ally","label","uses","raise","not","stored","class","safecall","var","interface","or","private","static","exit","index","inherited","to","else","stdcall","override","shr","asm","far","resourcestring","finalization","packed","virtual","out","and","protected","library","do","xorwrite","goto","near","function","end","div","overload","object","unit","begin","string","on","inline","repeat","until","destructor","write","message","program","with","read","initialization","except","default","nil","if","case","cdecl","in","downto","threadvar","of","try","pascal","const","external","constructor","type","public","then","implementation","finally","published","procedure","absolute","reintroduce","operator","as","is","abstract","alias","assembler","bitpacked","break","continue","cppdecl","cvar","enumerator","experimental","platform","deprecated","unimplemented","dynamic","export","far16","forward","generic","helper","implements","interrupt","iochecks","local","name","nodefault","noreturn","nostackframe","oldfpccall","otherwise","saveregisters","softfloat","specialize","strict","unaligned","varargs"],t=[n.C_LINE_COMMENT_MODE,n.COMMENT(/\{/,/\}/,{relevance:0}),n.COMMENT(/\(\*/,/\*\)/,{relevance:10})],r={className:"meta",variants:[{begin:/\{\$/,end:/\}/},{begin:/\(\*\$/,end:/\*\)/}]},i={className:"string",begin:/'/,end:/'/,contains:[{begin:/''/}]},o={className:"number",relevance:0,variants:[{begin:"\\$[0-9A-Fa-f]+"},{begin:"&[0-7]+"},{begin:"%[01]+"}]},s={className:"string",begin:/(#\d+)+/},a={begin:n.IDENT_RE+"\\s*=\\s*class\\s*\\(",returnBegin:!0,contains:[n.TITLE_MODE]},l={className:"function",beginKeywords:"function constructor destructor procedure",end:/[:;]/,keywords:"function constructor|10 destructor|10 procedure|10",contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,keywords:e,contains:[i,s,r].concat(t)},r].concat(t)};return{name:"Delphi",aliases:["dpr","dfm","pas","pascal"],case_insensitive:!0,keywords:e,illegal:/"|\$[G-Zg-z]|\/\*|<\/|\|/,contains:[i,s,n.NUMBER_MODE,o,a,l,r].concat(t)}}function IA(n){const e={begin:/\|[A-Za-z]+:?/,keywords:{name:"truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone"},contains:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE]};return{name:"Django",aliases:["jinja"],case_insensitive:!0,subLanguage:"xml",contains:[n.COMMENT(/\{%\s*comment\s*%\}/,/\{%\s*endcomment\s*%\}/),n.COMMENT(/\{#/,/#\}/),{className:"template-tag",begin:/\{%/,end:/%\}/,contains:[{className:"name",begin:/\w+/,keywords:{name:"comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim"},starts:{endsWithParent:!0,keywords:"in by as",contains:[e],relevance:0}}]},{className:"template-variable",begin:/\{\{/,end:/\}\}/,contains:[e]}]}}function LA(n){return{name:"DNS Zone",aliases:["bind","zone"],keywords:["IN","A","AAAA","AFSDB","APL","CAA","CDNSKEY","CDS","CERT","CNAME","DHCID","DLV","DNAME","DNSKEY","DS","HIP","IPSECKEY","KEY","KX","LOC","MX","NAPTR","NS","NSEC","NSEC3","NSEC3PARAM","PTR","RRSIG","RP","SIG","SOA","SRV","SSHFP","TA","TKEY","TLSA","TSIG","TXT"],contains:[n.COMMENT(";","$",{relevance:0}),{className:"meta",begin:/^\$(TTL|GENERATE|INCLUDE|ORIGIN)\b/},{className:"number",begin:"((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))\\b"},{className:"number",begin:"((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]).){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\\b"},n.inherit(n.NUMBER_MODE,{begin:/\b\d+[dhwm]?/})]}}function BA(n){return{name:"Dockerfile",aliases:["docker"],case_insensitive:!0,keywords:["from","maintainer","expose","env","arg","user","onbuild","stopsignal"],contains:[n.HASH_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.NUMBER_MODE,{beginKeywords:"run cmd entrypoint volume add copy workdir label healthcheck shell",starts:{end:/[^\\]$/,subLanguage:"bash"}}],illegal:"</"}}function PA(n){const e=n.COMMENT(/^\s*@?rem\b/,/$/,{relevance:10});return{name:"Batch file (DOS)",aliases:["bat","cmd"],case_insensitive:!0,illegal:/\/\*/,keywords:{keyword:["if","else","goto","for","in","do","call","exit","not","exist","errorlevel","defined","equ","neq","lss","leq","gtr","geq"],built_in:["prn","nul","lpt3","lpt2","lpt1","con","com4","com3","com2","com1","aux","shift","cd","dir","echo","setlocal","endlocal","set","pause","copy","append","assoc","at","attrib","break","cacls","cd","chcp","chdir","chkdsk","chkntfs","cls","cmd","color","comp","compact","convert","date","dir","diskcomp","diskcopy","doskey","erase","fs","find","findstr","format","ftype","graftabl","help","keyb","label","md","mkdir","mode","more","move","path","pause","print","popd","pushd","promt","rd","recover","rem","rename","replace","restore","rmdir","shift","sort","start","subst","time","title","tree","type","ver","verify","vol","ping","net","ipconfig","taskkill","xcopy","ren","del"]},contains:[{className:"variable",begin:/%%[^ ]|%[^ ]+?%|![^ ]+?!/},{className:"function",begin:{begin:"^\\s*[A-Za-z._?][A-Za-z0-9_$#@~.?]*(:|\\s+label)"}.begin,end:"goto:eof",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),e]},{className:"number",begin:"\\b\\d+",relevance:0},e]}}function FA(n){return{name:"Dust",aliases:["dst"],case_insensitive:!0,subLanguage:"xml",contains:[{className:"template-tag",begin:/\{[#\/]/,end:/\}/,illegal:/;/,contains:[{className:"name",begin:/[a-zA-Z\.-]+/,starts:{endsWithParent:!0,relevance:0,contains:[n.QUOTE_STRING_MODE]}}]},{className:"template-variable",begin:/\{/,end:/\}/,illegal:/;/,keywords:"if eq ne lt lte gt gte select default math sep"}]}}function zA(n){const e=n.regex,t="([a-zA-Z_]\\w*[!?=]?|[-+~]@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?)",r=e.either(/\b([A-Z]+[a-z0-9]+)+/,/\b([A-Z]+[a-z0-9]+)+[A-Z]+/),i=e.concat(r,/(::\w+)*/),o={"variable.constant":["__FILE__","__LINE__"],"variable.language":["self","super"],keyword:["alias","and","attr_accessor","attr_reader","attr_writer","begin","BEGIN","break","case","class","defined","do","else","elsif","end","END","ensure","for","if","in","include","module","next","not","or","redo","require","rescue","retry","return","then","undef","unless","until","when","while","yield"],built_in:["proc","lambda"],literal:["true","false","nil"]},s={className:"doctag",begin:"@[A-Za-z]+"},a={begin:"#<",end:">"},l=[n.COMMENT("#","$",{contains:[s]}),n.COMMENT("^=begin","^=end",{contains:[s],relevance:10}),n.COMMENT("^__END__",n.MATCH_NOTHING_RE)],c={className:"subst",begin:/#\{/,end:/\}/,keywords:o},u={className:"string",contains:[n.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:/%[qQwWx]?\(/,end:/\)/},{begin:/%[qQwWx]?\[/,end:/\]/},{begin:/%[qQwWx]?\{/,end:/\}/},{begin:/%[qQwWx]?</,end:/>/},{begin:/%[qQwWx]?\//,end:/\//},{begin:/%[qQwWx]?%/,end:/%/},{begin:/%[qQwWx]?-/,end:/-/},{begin:/%[qQwWx]?\|/,end:/\|/},{begin:/\B\?(\\\d{1,3})/},{begin:/\B\?(\\x[A-Fa-f0-9]{1,2})/},{begin:/\B\?(\\u\{?[A-Fa-f0-9]{1,6}\}?)/},{begin:/\B\?(\\M-\\C-|\\M-\\c|\\c\\M-|\\M-|\\C-\\M-)[\x20-\x7e]/},{begin:/\B\?\\(c|C-)[\x20-\x7e]/},{begin:/\B\?\\?\S/},{begin:e.concat(/<<[-~]?'?/,e.lookahead(/(\w+)(?=\W)[^\n]*\n(?:[^\n]*\n)*?\s*\1\b/)),contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[n.BACKSLASH_ESCAPE,c]})]}]},h="[1-9](_?[0-9])*|0",g="[0-9](_?[0-9])*",b={className:"number",relevance:0,variants:[{begin:`\\b(${h})(\\.(${g}))?([eE][+-]?(${g})|r)?i?\\b`},{begin:"\\b0[dD][0-9](_?[0-9])*r?i?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*r?i?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*r?i?\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*r?i?\\b"},{begin:"\\b0(_?[0-7])+r?i?\\b"}]},p={variants:[{match:/\(\)/},{className:"params",begin:/\(/,end:/(?=\))/,excludeBegin:!0,endsParent:!0,keywords:o}]},E=[u,{variants:[{match:[/class\s+/,i,/\s+<\s+/,i]},{match:[/class\s+/,i]}],scope:{2:"title.class",4:"title.class.inherited"},keywords:o},{relevance:0,match:[i,/\.new[ (]/],scope:{1:"title.class"}},{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},{match:[/def/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[p]},{begin:n.IDENT_RE+"::"},{className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"(!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[u,{begin:t}],relevance:0},b,{className:"variable",begin:"(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])(?![A-Za-z])(?![@$?'])"},{className:"params",begin:/\|/,end:/\|/,excludeBegin:!0,excludeEnd:!0,relevance:0,keywords:o},{begin:"("+n.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[{className:"regexp",contains:[n.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:/%r\{/,end:/\}[a-z]*/},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(a,l),relevance:0}].concat(a,l);c.contains=E,p.contains=E;const H=[{begin:/^\s*=>/,starts:{end:"$",contains:E}},{className:"meta.prompt",begin:"^("+"[>?]>"+"|"+"[\\w#]+\\(\\w+\\):\\d+:\\d+[>*]"+"|"+"(\\w+-)?\\d+\\.\\d+\\.\\d+(p\\d+)?[^\\d][^>]+>"+")(?=[ ])",starts:{end:"$",keywords:o,contains:E}}];return l.unshift(a),{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:o,illegal:/\/\*/,contains:[n.SHEBANG({binary:"ruby"})].concat(H).concat(l).concat(E)}}function qA(n){return{name:"Excel formulae",aliases:["xlsx","xls"],case_insensitive:!0,keywords:{$pattern:/[a-zA-Z][\w\.]*/,built_in:["ABS","ACCRINT","ACCRINTM","ACOS","ACOSH","ACOT","ACOTH","AGGREGATE","ADDRESS","AMORDEGRC","AMORLINC","AND","ARABIC","AREAS","ASC","ASIN","ASINH","ATAN","ATAN2","ATANH","AVEDEV","AVERAGE","AVERAGEA","AVERAGEIF","AVERAGEIFS","BAHTTEXT","BASE","BESSELI","BESSELJ","BESSELK","BESSELY","BETADIST","BETA.DIST","BETAINV","BETA.INV","BIN2DEC","BIN2HEX","BIN2OCT","BINOMDIST","BINOM.DIST","BINOM.DIST.RANGE","BINOM.INV","BITAND","BITLSHIFT","BITOR","BITRSHIFT","BITXOR","CALL","CEILING","CEILING.MATH","CEILING.PRECISE","CELL","CHAR","CHIDIST","CHIINV","CHITEST","CHISQ.DIST","CHISQ.DIST.RT","CHISQ.INV","CHISQ.INV.RT","CHISQ.TEST","CHOOSE","CLEAN","CODE","COLUMN","COLUMNS","COMBIN","COMBINA","COMPLEX","CONCAT","CONCATENATE","CONFIDENCE","CONFIDENCE.NORM","CONFIDENCE.T","CONVERT","CORREL","COS","COSH","COT","COTH","COUNT","COUNTA","COUNTBLANK","COUNTIF","COUNTIFS","COUPDAYBS","COUPDAYS","COUPDAYSNC","COUPNCD","COUPNUM","COUPPCD","COVAR","COVARIANCE.P","COVARIANCE.S","CRITBINOM","CSC","CSCH","CUBEKPIMEMBER","CUBEMEMBER","CUBEMEMBERPROPERTY","CUBERANKEDMEMBER","CUBESET","CUBESETCOUNT","CUBEVALUE","CUMIPMT","CUMPRINC","DATE","DATEDIF","DATEVALUE","DAVERAGE","DAY","DAYS","DAYS360","DB","DBCS","DCOUNT","DCOUNTA","DDB","DEC2BIN","DEC2HEX","DEC2OCT","DECIMAL","DEGREES","DELTA","DEVSQ","DGET","DISC","DMAX","DMIN","DOLLAR","DOLLARDE","DOLLARFR","DPRODUCT","DSTDEV","DSTDEVP","DSUM","DURATION","DVAR","DVARP","EDATE","EFFECT","ENCODEURL","EOMONTH","ERF","ERF.PRECISE","ERFC","ERFC.PRECISE","ERROR.TYPE","EUROCONVERT","EVEN","EXACT","EXP","EXPON.DIST","EXPONDIST","FACT","FACTDOUBLE","FALSE|0","F.DIST","FDIST","F.DIST.RT","FILTERXML","FIND","FINDB","F.INV","F.INV.RT","FINV","FISHER","FISHERINV","FIXED","FLOOR","FLOOR.MATH","FLOOR.PRECISE","FORECAST","FORECAST.ETS","FORECAST.ETS.CONFINT","FORECAST.ETS.SEASONALITY","FORECAST.ETS.STAT","FORECAST.LINEAR","FORMULATEXT","FREQUENCY","F.TEST","FTEST","FV","FVSCHEDULE","GAMMA","GAMMA.DIST","GAMMADIST","GAMMA.INV","GAMMAINV","GAMMALN","GAMMALN.PRECISE","GAUSS","GCD","GEOMEAN","GESTEP","GETPIVOTDATA","GROWTH","HARMEAN","HEX2BIN","HEX2DEC","HEX2OCT","HLOOKUP","HOUR","HYPERLINK","HYPGEOM.DIST","HYPGEOMDIST","IF","IFERROR","IFNA","IFS","IMABS","IMAGINARY","IMARGUMENT","IMCONJUGATE","IMCOS","IMCOSH","IMCOT","IMCSC","IMCSCH","IMDIV","IMEXP","IMLN","IMLOG10","IMLOG2","IMPOWER","IMPRODUCT","IMREAL","IMSEC","IMSECH","IMSIN","IMSINH","IMSQRT","IMSUB","IMSUM","IMTAN","INDEX","INDIRECT","INFO","INT","INTERCEPT","INTRATE","IPMT","IRR","ISBLANK","ISERR","ISERROR","ISEVEN","ISFORMULA","ISLOGICAL","ISNA","ISNONTEXT","ISNUMBER","ISODD","ISREF","ISTEXT","ISO.CEILING","ISOWEEKNUM","ISPMT","JIS","KURT","LARGE","LCM","LEFT","LEFTB","LEN","LENB","LINEST","LN","LOG","LOG10","LOGEST","LOGINV","LOGNORM.DIST","LOGNORMDIST","LOGNORM.INV","LOOKUP","LOWER","MATCH","MAX","MAXA","MAXIFS","MDETERM","MDURATION","MEDIAN","MID","MIDBs","MIN","MINIFS","MINA","MINUTE","MINVERSE","MIRR","MMULT","MOD","MODE","MODE.MULT","MODE.SNGL","MONTH","MROUND","MULTINOMIAL","MUNIT","N","NA","NEGBINOM.DIST","NEGBINOMDIST","NETWORKDAYS","NETWORKDAYS.INTL","NOMINAL","NORM.DIST","NORMDIST","NORMINV","NORM.INV","NORM.S.DIST","NORMSDIST","NORM.S.INV","NORMSINV","NOT","NOW","NPER","NPV","NUMBERVALUE","OCT2BIN","OCT2DEC","OCT2HEX","ODD","ODDFPRICE","ODDFYIELD","ODDLPRICE","ODDLYIELD","OFFSET","OR","PDURATION","PEARSON","PERCENTILE.EXC","PERCENTILE.INC","PERCENTILE","PERCENTRANK.EXC","PERCENTRANK.INC","PERCENTRANK","PERMUT","PERMUTATIONA","PHI","PHONETIC","PI","PMT","POISSON.DIST","POISSON","POWER","PPMT","PRICE","PRICEDISC","PRICEMAT","PROB","PRODUCT","PROPER","PV","QUARTILE","QUARTILE.EXC","QUARTILE.INC","QUOTIENT","RADIANS","RAND","RANDBETWEEN","RANK.AVG","RANK.EQ","RANK","RATE","RECEIVED","REGISTER.ID","REPLACE","REPLACEB","REPT","RIGHT","RIGHTB","ROMAN","ROUND","ROUNDDOWN","ROUNDUP","ROW","ROWS","RRI","RSQ","RTD","SEARCH","SEARCHB","SEC","SECH","SECOND","SERIESSUM","SHEET","SHEETS","SIGN","SIN","SINH","SKEW","SKEW.P","SLN","SLOPE","SMALL","SQL.REQUEST","SQRT","SQRTPI","STANDARDIZE","STDEV","STDEV.P","STDEV.S","STDEVA","STDEVP","STDEVPA","STEYX","SUBSTITUTE","SUBTOTAL","SUM","SUMIF","SUMIFS","SUMPRODUCT","SUMSQ","SUMX2MY2","SUMX2PY2","SUMXMY2","SWITCH","SYD","T","TAN","TANH","TBILLEQ","TBILLPRICE","TBILLYIELD","T.DIST","T.DIST.2T","T.DIST.RT","TDIST","TEXT","TEXTJOIN","TIME","TIMEVALUE","T.INV","T.INV.2T","TINV","TODAY","TRANSPOSE","TREND","TRIM","TRIMMEAN","TRUE|0","TRUNC","T.TEST","TTEST","TYPE","UNICHAR","UNICODE","UPPER","VALUE","VAR","VAR.P","VAR.S","VARA","VARP","VARPA","VDB","VLOOKUP","WEBSERVICE","WEEKDAY","WEEKNUM","WEIBULL","WEIBULL.DIST","WORKDAY","WORKDAY.INTL","XIRR","XNPV","XOR","YEAR","YEARFRAC","YIELD","YIELDDISC","YIELDMAT","Z.TEST","ZTEST"]},contains:[{begin:/^=/,end:/[^=]/,returnEnd:!0,illegal:/=/,relevance:10},{className:"symbol",begin:/\b[A-Z]{1,2}\d+\b/,end:/[^\d]/,excludeEnd:!0,relevance:0},{className:"symbol",begin:/[A-Z]{0,2}\d*:[A-Z]{0,2}\d*/,relevance:0},n.BACKSLASH_ESCAPE,n.QUOTE_STRING_MODE,{className:"number",begin:n.NUMBER_RE+"(%)?",relevance:0},n.COMMENT(/\bN\(/,/\)/,{excludeBegin:!0,excludeEnd:!0,illegal:/\n/})]}}function HA(n){return new RegExp(n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function $y(n){return n?typeof n=="string"?n:n.source:null}function da(n){return pr("(?=",n,")")}function pr(...n){return n.map(t=>$y(t)).join("")}function VA(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function fo(...n){return"("+(VA(n).capture?"":"?:")+n.map(r=>$y(r)).join("|")+")"}function UA(n){const e=["abstract","and","as","assert","base","begin","class","default","delegate","do","done","downcast","downto","elif","else","end","exception","extern","finally","fixed","for","fun","function","global","if","in","inherit","inline","interface","internal","lazy","let","match","member","module","mutable","namespace","new","of","open","or","override","private","public","rec","return","static","struct","then","to","try","type","upcast","use","val","void","when","while","with","yield"],t={scope:"keyword",match:/\b(yield|return|let|do|match|use)!/},r=["if","else","endif","line","nowarn","light","r","i","I","load","time","help","quit"],i=["true","false","null","Some","None","Ok","Error","infinity","infinityf","nan","nanf"],o=["__LINE__","__SOURCE_DIRECTORY__","__SOURCE_FILE__"],s=["bool","byte","sbyte","int8","int16","int32","uint8","uint16","uint32","int","uint","int64","uint64","nativeint","unativeint","decimal","float","double","float32","single","char","string","unit","bigint","option","voption","list","array","seq","byref","exn","inref","nativeptr","obj","outref","voidptr","Result"],l={keyword:e,literal:i,built_in:["not","ref","raise","reraise","dict","readOnlyDict","set","get","enum","sizeof","typeof","typedefof","nameof","nullArg","invalidArg","invalidOp","id","fst","snd","ignore","lock","using","box","unbox","tryUnbox","printf","printfn","sprintf","eprintf","eprintfn","fprintf","fprintfn","failwith","failwithf"],"variable.constant":o},u={variants:[n.COMMENT(/\(\*(?!\))/,/\*\)/,{contains:["self"]}),n.C_LINE_COMMENT_MODE]},h=/[a-zA-Z_](\w|')*/,g={scope:"variable",begin:/``/,end:/``/},b=/\B('|\^)/,p={scope:"symbol",variants:[{match:pr(b,/``.*?``/)},{match:pr(b,n.UNDERSCORE_IDENT_RE)}],relevance:0},v=function({includeEqual:ie}){let Z;ie?Z="!%&*+-/<=>@^|~?":Z="!%&*+-/<>@^|~?";const J=Array.from(Z),ue=pr("[",...J.map(HA),"]"),fe=fo(ue,/\./),ke=pr(fe,da(fe)),Te=fo(pr(ke,fe,"*"),pr(ue,"+"));return{scope:"operator",match:fo(Te,/:\?>/,/:\?/,/:>/,/:=/,/::?/,/\$/),relevance:0}},w=v({includeEqual:!0}),S=v({includeEqual:!1}),C=function(ie,Z){return{begin:pr(ie,da(pr(/\s*/,fo(/\w/,/'/,/\^/,/#/,/``/,/\(/,/{\|/)))),beginScope:Z,end:da(fo(/\n/,/=/)),relevance:0,keywords:n.inherit(l,{type:s}),contains:[u,p,n.inherit(g,{scope:null}),S]}},E=C(/:/,"operator"),A=C(/\bof\b/,"keyword"),R={begin:[/(^|\s+)/,/type/,/\s+/,h],beginScope:{2:"keyword",4:"title.class"},end:da(/\(|=|$/),keywords:l,contains:[u,n.inherit(g,{scope:null}),p,{scope:"operator",match:/<|>/},E]},O={scope:"computation-expression",match:/\b[_a-z]\w*(?=\s*\{)/},H={begin:[/^\s*/,pr(/#/,fo(...r)),/\b/],beginScope:{2:"meta"},end:da(/\s|$/)},q={variants:[n.BINARY_NUMBER_MODE,n.C_NUMBER_MODE]},U={scope:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE]},F={scope:"string",begin:/@"/,end:/"/,contains:[{match:/""/},n.BACKSLASH_ESCAPE]},Y={scope:"string",begin:/"""/,end:/"""/,relevance:2},X={scope:"subst",begin:/\{/,end:/\}/,keywords:l},oe={scope:"string",begin:/\$"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},n.BACKSLASH_ESCAPE,X]},K={scope:"string",begin:/(\$@|@\$)"/,end:/"/,contains:[{match:/\{\{/},{match:/\}\}/},{match:/""/},n.BACKSLASH_ESCAPE,X]},ee={scope:"string",begin:/\$"""/,end:/"""/,contains:[{match:/\{\{/},{match:/\}\}/},X],relevance:2},$={scope:"string",match:pr(/'/,fo(/[^\\']/,/\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8})/),/'/)};return X.contains=[K,oe,F,U,$,t,u,g,E,O,H,q,p,w],{name:"F#",aliases:["fs","f#"],keywords:l,illegal:/\/\*/,classNameAliases:{"computation-expression":"keyword"},contains:[t,{variants:[ee,K,oe,Y,F,U,$]},u,g,R,{scope:"meta",begin:/\[</,end:/>\]/,relevance:2,contains:[g,Y,F,U,$,q]},A,E,O,H,q,p,w]}}function GA(n){return{name:"GML",case_insensitive:!1,keywords:{keyword:["#endregion","#macro","#region","and","begin","break","case","constructor","continue","default","delete","div","do","else","end","enum","exit","for","function","globalvar","if","mod","not","or","repeat","return","switch","then","until","var","while","with","xor"],built_in:["abs","achievement_available","achievement_event","achievement_get_challenges","achievement_get_info","achievement_get_pic","achievement_increment","achievement_load_friends","achievement_load_leaderboard","achievement_load_progress","achievement_login","achievement_login_status","achievement_logout","achievement_post","achievement_post_score","achievement_reset","achievement_send_challenge","achievement_show","achievement_show_achievements","achievement_show_challenge_notifications","achievement_show_leaderboards","action_inherited","action_kill_object","ads_disable","ads_enable","ads_engagement_active","ads_engagement_available","ads_engagement_launch","ads_event","ads_event_preload","ads_get_display_height","ads_get_display_width","ads_interstitial_available","ads_interstitial_display","ads_move","ads_set_reward_callback","ads_setup","alarm_get","alarm_set","analytics_event","analytics_event_ext","angle_difference","ansi_char","application_get_position","application_surface_draw_enable","application_surface_enable","application_surface_is_enabled","arccos","arcsin","arctan","arctan2","array_copy","array_create","array_delete","array_equals","array_height_2d","array_insert","array_length","array_length_1d","array_length_2d","array_pop","array_push","array_resize","array_sort","asset_get_index","asset_get_type","audio_channel_num","audio_create_buffer_sound","audio_create_play_queue","audio_create_stream","audio_create_sync_group","audio_debug","audio_destroy_stream","audio_destroy_sync_group","audio_emitter_create","audio_emitter_exists","audio_emitter_falloff","audio_emitter_free","audio_emitter_gain","audio_emitter_get_gain","audio_emitter_get_listener_mask","audio_emitter_get_pitch","audio_emitter_get_vx","audio_emitter_get_vy","audio_emitter_get_vz","audio_emitter_get_x","audio_emitter_get_y","audio_emitter_get_z","audio_emitter_pitch","audio_emitter_position","audio_emitter_set_listener_mask","audio_emitter_velocity","audio_exists","audio_falloff_set_model","audio_free_buffer_sound","audio_free_play_queue","audio_get_listener_count","audio_get_listener_info","audio_get_listener_mask","audio_get_master_gain","audio_get_name","audio_get_recorder_count","audio_get_recorder_info","audio_get_type","audio_group_is_loaded","audio_group_load","audio_group_load_progress","audio_group_name","audio_group_set_gain","audio_group_stop_all","audio_group_unload","audio_is_paused","audio_is_playing","audio_listener_get_data","audio_listener_orientation","audio_listener_position","audio_listener_set_orientation","audio_listener_set_position","audio_listener_set_velocity","audio_listener_velocity","audio_master_gain","audio_music_gain","audio_music_is_playing","audio_pause_all","audio_pause_music","audio_pause_sound","audio_pause_sync_group","audio_play_in_sync_group","audio_play_music","audio_play_sound","audio_play_sound_at","audio_play_sound_on","audio_queue_sound","audio_resume_all","audio_resume_music","audio_resume_sound","audio_resume_sync_group","audio_set_listener_mask","audio_set_master_gain","audio_sound_gain","audio_sound_get_gain","audio_sound_get_listener_mask","audio_sound_get_pitch","audio_sound_get_track_position","audio_sound_length","audio_sound_pitch","audio_sound_set_listener_mask","audio_sound_set_track_position","audio_start_recording","audio_start_sync_group","audio_stop_all","audio_stop_music","audio_stop_recording","audio_stop_sound","audio_stop_sync_group","audio_sync_group_debug","audio_sync_group_get_track_pos","audio_sync_group_is_playing","audio_system","background_get_height","background_get_width","base64_decode","base64_encode","browser_input_capture","buffer_async_group_begin","buffer_async_group_end","buffer_async_group_option","buffer_base64_decode","buffer_base64_decode_ext","buffer_base64_encode","buffer_copy","buffer_copy_from_vertex_buffer","buffer_create","buffer_create_from_vertex_buffer","buffer_create_from_vertex_buffer_ext","buffer_delete","buffer_exists","buffer_fill","buffer_get_address","buffer_get_alignment","buffer_get_size","buffer_get_surface","buffer_get_type","buffer_load","buffer_load_async","buffer_load_ext","buffer_load_partial","buffer_md5","buffer_peek","buffer_poke","buffer_read","buffer_resize","buffer_save","buffer_save_async","buffer_save_ext","buffer_seek","buffer_set_surface","buffer_sha1","buffer_sizeof","buffer_tell","buffer_write","camera_apply","camera_create","camera_create_view","camera_destroy","camera_get_active","camera_get_begin_script","camera_get_default","camera_get_end_script","camera_get_proj_mat","camera_get_update_script","camera_get_view_angle","camera_get_view_border_x","camera_get_view_border_y","camera_get_view_height","camera_get_view_mat","camera_get_view_speed_x","camera_get_view_speed_y","camera_get_view_target","camera_get_view_width","camera_get_view_x","camera_get_view_y","camera_set_begin_script","camera_set_default","camera_set_end_script","camera_set_proj_mat","camera_set_update_script","camera_set_view_angle","camera_set_view_border","camera_set_view_mat","camera_set_view_pos","camera_set_view_size","camera_set_view_speed","camera_set_view_target","ceil","choose","chr","clamp","clickable_add","clickable_add_ext","clickable_change","clickable_change_ext","clickable_delete","clickable_exists","clickable_set_style","clipboard_get_text","clipboard_has_text","clipboard_set_text","cloud_file_save","cloud_string_save","cloud_synchronise","code_is_compiled","collision_circle","collision_circle_list","collision_ellipse","collision_ellipse_list","collision_line","collision_line_list","collision_point","collision_point_list","collision_rectangle","collision_rectangle_list","color_get_blue","color_get_green","color_get_hue","color_get_red","color_get_saturation","color_get_value","colour_get_blue","colour_get_green","colour_get_hue","colour_get_red","colour_get_saturation","colour_get_value","cos","darccos","darcsin","darctan","darctan2","date_compare_date","date_compare_datetime","date_compare_time","date_create_datetime","date_current_datetime","date_date_of","date_date_string","date_datetime_string","date_day_span","date_days_in_month","date_days_in_year","date_get_day","date_get_day_of_year","date_get_hour","date_get_hour_of_year","date_get_minute","date_get_minute_of_year","date_get_month","date_get_second","date_get_second_of_year","date_get_timezone","date_get_week","date_get_weekday","date_get_year","date_hour_span","date_inc_day","date_inc_hour","date_inc_minute","date_inc_month","date_inc_second","date_inc_week","date_inc_year","date_is_today","date_leap_year","date_minute_span","date_month_span","date_second_span","date_set_timezone","date_time_of","date_time_string","date_valid_datetime","date_week_span","date_year_span","dcos","debug_event","debug_get_callstack","degtorad","device_get_tilt_x","device_get_tilt_y","device_get_tilt_z","device_is_keypad_open","device_mouse_check_button","device_mouse_check_button_pressed","device_mouse_check_button_released","device_mouse_dbclick_enable","device_mouse_raw_x","device_mouse_raw_y","device_mouse_x","device_mouse_x_to_gui","device_mouse_y","device_mouse_y_to_gui","directory_create","directory_destroy","directory_exists","display_get_dpi_x","display_get_dpi_y","display_get_gui_height","display_get_gui_width","display_get_height","display_get_orientation","display_get_sleep_margin","display_get_timing_method","display_get_width","display_mouse_get_x","display_mouse_get_y","display_mouse_set","display_reset","display_set_gui_maximise","display_set_gui_maximize","display_set_gui_size","display_set_sleep_margin","display_set_timing_method","display_set_ui_visibility","distance_to_object","distance_to_point","dot_product","dot_product_3d","dot_product_3d_normalised","dot_product_3d_normalized","dot_product_normalised","dot_product_normalized","draw_arrow","draw_background","draw_background_ext","draw_background_part_ext","draw_background_tiled","draw_button","draw_circle","draw_circle_color","draw_circle_colour","draw_clear","draw_clear_alpha","draw_ellipse","draw_ellipse_color","draw_ellipse_colour","draw_enable_alphablend","draw_enable_drawevent","draw_enable_swf_aa","draw_flush","draw_get_alpha","draw_get_color","draw_get_colour","draw_get_lighting","draw_get_swf_aa_level","draw_getpixel","draw_getpixel_ext","draw_healthbar","draw_highscore","draw_light_define_ambient","draw_light_define_direction","draw_light_define_point","draw_light_enable","draw_light_get","draw_light_get_ambient","draw_line","draw_line_color","draw_line_colour","draw_line_width","draw_line_width_color","draw_line_width_colour","draw_path","draw_point","draw_point_color","draw_point_colour","draw_primitive_begin","draw_primitive_begin_texture","draw_primitive_end","draw_rectangle","draw_rectangle_color","draw_rectangle_colour","draw_roundrect","draw_roundrect_color","draw_roundrect_color_ext","draw_roundrect_colour","draw_roundrect_colour_ext","draw_roundrect_ext","draw_self","draw_set_alpha","draw_set_alpha_test","draw_set_alpha_test_ref_value","draw_set_blend_mode","draw_set_blend_mode_ext","draw_set_circle_precision","draw_set_color","draw_set_color_write_enable","draw_set_colour","draw_set_font","draw_set_halign","draw_set_lighting","draw_set_swf_aa_level","draw_set_valign","draw_skeleton","draw_skeleton_collision","draw_skeleton_instance","draw_skeleton_time","draw_sprite","draw_sprite_ext","draw_sprite_general","draw_sprite_part","draw_sprite_part_ext","draw_sprite_pos","draw_sprite_stretched","draw_sprite_stretched_ext","draw_sprite_tiled","draw_sprite_tiled_ext","draw_surface","draw_surface_ext","draw_surface_general","draw_surface_part","draw_surface_part_ext","draw_surface_stretched","draw_surface_stretched_ext","draw_surface_tiled","draw_surface_tiled_ext","draw_text","draw_text_color","draw_text_colour","draw_text_ext","draw_text_ext_color","draw_text_ext_colour","draw_text_ext_transformed","draw_text_ext_transformed_color","draw_text_ext_transformed_colour","draw_text_transformed","draw_text_transformed_color","draw_text_transformed_colour","draw_texture_flush","draw_tile","draw_tilemap","draw_triangle","draw_triangle_color","draw_triangle_colour","draw_vertex","draw_vertex_color","draw_vertex_colour","draw_vertex_texture","draw_vertex_texture_color","draw_vertex_texture_colour","ds_exists","ds_grid_add","ds_grid_add_disk","ds_grid_add_grid_region","ds_grid_add_region","ds_grid_clear","ds_grid_copy","ds_grid_create","ds_grid_destroy","ds_grid_get","ds_grid_get_disk_max","ds_grid_get_disk_mean","ds_grid_get_disk_min","ds_grid_get_disk_sum","ds_grid_get_max","ds_grid_get_mean","ds_grid_get_min","ds_grid_get_sum","ds_grid_height","ds_grid_multiply","ds_grid_multiply_disk","ds_grid_multiply_grid_region","ds_grid_multiply_region","ds_grid_read","ds_grid_resize","ds_grid_set","ds_grid_set_disk","ds_grid_set_grid_region","ds_grid_set_region","ds_grid_shuffle","ds_grid_sort","ds_grid_value_disk_exists","ds_grid_value_disk_x","ds_grid_value_disk_y","ds_grid_value_exists","ds_grid_value_x","ds_grid_value_y","ds_grid_width","ds_grid_write","ds_list_add","ds_list_clear","ds_list_copy","ds_list_create","ds_list_delete","ds_list_destroy","ds_list_empty","ds_list_find_index","ds_list_find_value","ds_list_insert","ds_list_mark_as_list","ds_list_mark_as_map","ds_list_read","ds_list_replace","ds_list_set","ds_list_shuffle","ds_list_size","ds_list_sort","ds_list_write","ds_map_add","ds_map_add_list","ds_map_add_map","ds_map_clear","ds_map_copy","ds_map_create","ds_map_delete","ds_map_destroy","ds_map_empty","ds_map_exists","ds_map_find_first","ds_map_find_last","ds_map_find_next","ds_map_find_previous","ds_map_find_value","ds_map_read","ds_map_replace","ds_map_replace_list","ds_map_replace_map","ds_map_secure_load","ds_map_secure_load_buffer","ds_map_secure_save","ds_map_secure_save_buffer","ds_map_set","ds_map_size","ds_map_write","ds_priority_add","ds_priority_change_priority","ds_priority_clear","ds_priority_copy","ds_priority_create","ds_priority_delete_max","ds_priority_delete_min","ds_priority_delete_value","ds_priority_destroy","ds_priority_empty","ds_priority_find_max","ds_priority_find_min","ds_priority_find_priority","ds_priority_read","ds_priority_size","ds_priority_write","ds_queue_clear","ds_queue_copy","ds_queue_create","ds_queue_dequeue","ds_queue_destroy","ds_queue_empty","ds_queue_enqueue","ds_queue_head","ds_queue_read","ds_queue_size","ds_queue_tail","ds_queue_write","ds_set_precision","ds_stack_clear","ds_stack_copy","ds_stack_create","ds_stack_destroy","ds_stack_empty","ds_stack_pop","ds_stack_push","ds_stack_read","ds_stack_size","ds_stack_top","ds_stack_write","dsin","dtan","effect_clear","effect_create_above","effect_create_below","environment_get_variable","event_inherited","event_perform","event_perform_object","event_user","exp","external_call","external_define","external_free","facebook_accesstoken","facebook_check_permission","facebook_dialog","facebook_graph_request","facebook_init","facebook_launch_offerwall","facebook_login","facebook_logout","facebook_post_message","facebook_request_publish_permissions","facebook_request_read_permissions","facebook_send_invite","facebook_status","facebook_user_id","file_attributes","file_bin_close","file_bin_open","file_bin_position","file_bin_read_byte","file_bin_rewrite","file_bin_seek","file_bin_size","file_bin_write_byte","file_copy","file_delete","file_exists","file_find_close","file_find_first","file_find_next","file_rename","file_text_close","file_text_eof","file_text_eoln","file_text_open_append","file_text_open_from_string","file_text_open_read","file_text_open_write","file_text_read_real","file_text_read_string","file_text_readln","file_text_write_real","file_text_write_string","file_text_writeln","filename_change_ext","filename_dir","filename_drive","filename_ext","filename_name","filename_path","floor","font_add","font_add_enable_aa","font_add_get_enable_aa","font_add_sprite","font_add_sprite_ext","font_delete","font_exists","font_get_bold","font_get_first","font_get_fontname","font_get_italic","font_get_last","font_get_name","font_get_size","font_get_texture","font_get_uvs","font_replace","font_replace_sprite","font_replace_sprite_ext","font_set_cache_size","font_texture_page_size","frac","game_end","game_get_speed","game_load","game_load_buffer","game_restart","game_save","game_save_buffer","game_set_speed","gamepad_axis_count","gamepad_axis_value","gamepad_button_check","gamepad_button_check_pressed","gamepad_button_check_released","gamepad_button_count","gamepad_button_value","gamepad_get_axis_deadzone","gamepad_get_button_threshold","gamepad_get_description","gamepad_get_device_count","gamepad_is_connected","gamepad_is_supported","gamepad_set_axis_deadzone","gamepad_set_button_threshold","gamepad_set_color","gamepad_set_colour","gamepad_set_vibration","gesture_double_tap_distance","gesture_double_tap_time","gesture_drag_distance","gesture_drag_time","gesture_flick_speed","gesture_get_double_tap_distance","gesture_get_double_tap_time","gesture_get_drag_distance","gesture_get_drag_time","gesture_get_flick_speed","gesture_get_pinch_angle_away","gesture_get_pinch_angle_towards","gesture_get_pinch_distance","gesture_get_rotate_angle","gesture_get_rotate_time","gesture_get_tap_count","gesture_pinch_angle_away","gesture_pinch_angle_towards","gesture_pinch_distance","gesture_rotate_angle","gesture_rotate_time","gesture_tap_count","get_integer","get_integer_async","get_login_async","get_open_filename","get_open_filename_ext","get_save_filename","get_save_filename_ext","get_string","get_string_async","get_timer","gml_pragma","gml_release_mode","gpu_get_alphatestenable","gpu_get_alphatestfunc","gpu_get_alphatestref","gpu_get_blendenable","gpu_get_blendmode","gpu_get_blendmode_dest","gpu_get_blendmode_destalpha","gpu_get_blendmode_ext","gpu_get_blendmode_ext_sepalpha","gpu_get_blendmode_src","gpu_get_blendmode_srcalpha","gpu_get_colorwriteenable","gpu_get_colourwriteenable","gpu_get_cullmode","gpu_get_fog","gpu_get_lightingenable","gpu_get_state","gpu_get_tex_filter","gpu_get_tex_filter_ext","gpu_get_tex_max_aniso","gpu_get_tex_max_aniso_ext","gpu_get_tex_max_mip","gpu_get_tex_max_mip_ext","gpu_get_tex_min_mip","gpu_get_tex_min_mip_ext","gpu_get_tex_mip_bias","gpu_get_tex_mip_bias_ext","gpu_get_tex_mip_enable","gpu_get_tex_mip_enable_ext","gpu_get_tex_mip_filter","gpu_get_tex_mip_filter_ext","gpu_get_tex_repeat","gpu_get_tex_repeat_ext","gpu_get_texfilter","gpu_get_texfilter_ext","gpu_get_texrepeat","gpu_get_texrepeat_ext","gpu_get_zfunc","gpu_get_ztestenable","gpu_get_zwriteenable","gpu_pop_state","gpu_push_state","gpu_set_alphatestenable","gpu_set_alphatestfunc","gpu_set_alphatestref","gpu_set_blendenable","gpu_set_blendmode","gpu_set_blendmode_ext","gpu_set_blendmode_ext_sepalpha","gpu_set_colorwriteenable","gpu_set_colourwriteenable","gpu_set_cullmode","gpu_set_fog","gpu_set_lightingenable","gpu_set_state","gpu_set_tex_filter","gpu_set_tex_filter_ext","gpu_set_tex_max_aniso","gpu_set_tex_max_aniso_ext","gpu_set_tex_max_mip","gpu_set_tex_max_mip_ext","gpu_set_tex_min_mip","gpu_set_tex_min_mip_ext","gpu_set_tex_mip_bias","gpu_set_tex_mip_bias_ext","gpu_set_tex_mip_enable","gpu_set_tex_mip_enable_ext","gpu_set_tex_mip_filter","gpu_set_tex_mip_filter_ext","gpu_set_tex_repeat","gpu_set_tex_repeat_ext","gpu_set_texfilter","gpu_set_texfilter_ext","gpu_set_texrepeat","gpu_set_texrepeat_ext","gpu_set_zfunc","gpu_set_ztestenable","gpu_set_zwriteenable","highscore_add","highscore_clear","highscore_name","highscore_value","http_get","http_get_file","http_post_string","http_request","iap_acquire","iap_activate","iap_consume","iap_enumerate_products","iap_product_details","iap_purchase_details","iap_restore_all","iap_status","ini_close","ini_key_delete","ini_key_exists","ini_open","ini_open_from_string","ini_read_real","ini_read_string","ini_section_delete","ini_section_exists","ini_write_real","ini_write_string","instance_activate_all","instance_activate_layer","instance_activate_object","instance_activate_region","instance_change","instance_copy","instance_create","instance_create_depth","instance_create_layer","instance_deactivate_all","instance_deactivate_layer","instance_deactivate_object","instance_deactivate_region","instance_destroy","instance_exists","instance_find","instance_furthest","instance_id_get","instance_nearest","instance_number","instance_place","instance_place_list","instance_position","instance_position_list","int64","io_clear","irandom","irandom_range","is_array","is_bool","is_infinity","is_int32","is_int64","is_matrix","is_method","is_nan","is_numeric","is_ptr","is_real","is_string","is_struct","is_undefined","is_vec3","is_vec4","json_decode","json_encode","keyboard_check","keyboard_check_direct","keyboard_check_pressed","keyboard_check_released","keyboard_clear","keyboard_get_map","keyboard_get_numlock","keyboard_key_press","keyboard_key_release","keyboard_set_map","keyboard_set_numlock","keyboard_unset_map","keyboard_virtual_height","keyboard_virtual_hide","keyboard_virtual_show","keyboard_virtual_status","layer_add_instance","layer_background_alpha","layer_background_blend","layer_background_change","layer_background_create","layer_background_destroy","layer_background_exists","layer_background_get_alpha","layer_background_get_blend","layer_background_get_htiled","layer_background_get_id","layer_background_get_index","layer_background_get_speed","layer_background_get_sprite","layer_background_get_stretch","layer_background_get_visible","layer_background_get_vtiled","layer_background_get_xscale","layer_background_get_yscale","layer_background_htiled","layer_background_index","layer_background_speed","layer_background_sprite","layer_background_stretch","layer_background_visible","layer_background_vtiled","layer_background_xscale","layer_background_yscale","layer_create","layer_depth","layer_destroy","layer_destroy_instances","layer_element_move","layer_exists","layer_force_draw_depth","layer_get_all","layer_get_all_elements","layer_get_depth","layer_get_element_layer","layer_get_element_type","layer_get_forced_depth","layer_get_hspeed","layer_get_id","layer_get_id_at_depth","layer_get_name","layer_get_script_begin","layer_get_script_end","layer_get_shader","layer_get_target_room","layer_get_visible","layer_get_vspeed","layer_get_x","layer_get_y","layer_has_instance","layer_hspeed","layer_instance_get_instance","layer_is_draw_depth_forced","layer_reset_target_room","layer_script_begin","layer_script_end","layer_set_target_room","layer_set_visible","layer_shader","layer_sprite_alpha","layer_sprite_angle","layer_sprite_blend","layer_sprite_change","layer_sprite_create","layer_sprite_destroy","layer_sprite_exists","layer_sprite_get_alpha","layer_sprite_get_angle","layer_sprite_get_blend","layer_sprite_get_id","layer_sprite_get_index","layer_sprite_get_speed","layer_sprite_get_sprite","layer_sprite_get_x","layer_sprite_get_xscale","layer_sprite_get_y","layer_sprite_get_yscale","layer_sprite_index","layer_sprite_speed","layer_sprite_x","layer_sprite_xscale","layer_sprite_y","layer_sprite_yscale","layer_tile_alpha","layer_tile_blend","layer_tile_change","layer_tile_create","layer_tile_destroy","layer_tile_exists","layer_tile_get_alpha","layer_tile_get_blend","layer_tile_get_region","layer_tile_get_sprite","layer_tile_get_visible","layer_tile_get_x","layer_tile_get_xscale","layer_tile_get_y","layer_tile_get_yscale","layer_tile_region","layer_tile_visible","layer_tile_x","layer_tile_xscale","layer_tile_y","layer_tile_yscale","layer_tilemap_create","layer_tilemap_destroy","layer_tilemap_exists","layer_tilemap_get_id","layer_vspeed","layer_x","layer_y","lengthdir_x","lengthdir_y","lerp","ln","load_csv","log10","log2","logn","make_color_hsv","make_color_rgb","make_colour_hsv","make_colour_rgb","math_get_epsilon","math_set_epsilon","matrix_build","matrix_build_identity","matrix_build_lookat","matrix_build_projection_ortho","matrix_build_projection_perspective","matrix_build_projection_perspective_fov","matrix_get","matrix_multiply","matrix_set","matrix_stack_clear","matrix_stack_is_empty","matrix_stack_multiply","matrix_stack_pop","matrix_stack_push","matrix_stack_set","matrix_stack_top","matrix_transform_vertex","max","md5_file","md5_string_unicode","md5_string_utf8","mean","median","merge_color","merge_colour","min","motion_add","motion_set","mouse_check_button","mouse_check_button_pressed","mouse_check_button_released","mouse_clear","mouse_wheel_down","mouse_wheel_up","move_bounce_all","move_bounce_solid","move_contact_all","move_contact_solid","move_outside_all","move_outside_solid","move_random","move_snap","move_towards_point","move_wrap","mp_grid_add_cell","mp_grid_add_instances","mp_grid_add_rectangle","mp_grid_clear_all","mp_grid_clear_cell","mp_grid_clear_rectangle","mp_grid_create","mp_grid_destroy","mp_grid_draw","mp_grid_get_cell","mp_grid_path","mp_grid_to_ds_grid","mp_linear_path","mp_linear_path_object","mp_linear_step","mp_linear_step_object","mp_potential_path","mp_potential_path_object","mp_potential_settings","mp_potential_step","mp_potential_step_object","network_connect","network_connect_raw","network_create_server","network_create_server_raw","network_create_socket","network_create_socket_ext","network_destroy","network_resolve","network_send_broadcast","network_send_packet","network_send_raw","network_send_udp","network_send_udp_raw","network_set_config","network_set_timeout","object_exists","object_get_depth","object_get_mask","object_get_name","object_get_parent","object_get_persistent","object_get_physics","object_get_solid","object_get_sprite","object_get_visible","object_is_ancestor","object_set_mask","object_set_persistent","object_set_solid","object_set_sprite","object_set_visible","ord","os_get_config","os_get_info","os_get_language","os_get_region","os_is_network_connected","os_is_paused","os_lock_orientation","os_powersave_enable","parameter_count","parameter_string","part_emitter_burst","part_emitter_clear","part_emitter_create","part_emitter_destroy","part_emitter_destroy_all","part_emitter_exists","part_emitter_region","part_emitter_stream","part_particles_clear","part_particles_count","part_particles_create","part_particles_create_color","part_particles_create_colour","part_system_automatic_draw","part_system_automatic_update","part_system_clear","part_system_create","part_system_create_layer","part_system_depth","part_system_destroy","part_system_draw_order","part_system_drawit","part_system_exists","part_system_get_layer","part_system_layer","part_system_position","part_system_update","part_type_alpha1","part_type_alpha2","part_type_alpha3","part_type_blend","part_type_clear","part_type_color1","part_type_color2","part_type_color3","part_type_color_hsv","part_type_color_mix","part_type_color_rgb","part_type_colour1","part_type_colour2","part_type_colour3","part_type_colour_hsv","part_type_colour_mix","part_type_colour_rgb","part_type_create","part_type_death","part_type_destroy","part_type_direction","part_type_exists","part_type_gravity","part_type_life","part_type_orientation","part_type_scale","part_type_shape","part_type_size","part_type_speed","part_type_sprite","part_type_step","path_add","path_add_point","path_append","path_assign","path_change_point","path_clear_points","path_delete","path_delete_point","path_duplicate","path_end","path_exists","path_flip","path_get_closed","path_get_kind","path_get_length","path_get_name","path_get_number","path_get_point_speed","path_get_point_x","path_get_point_y","path_get_precision","path_get_speed","path_get_time","path_get_x","path_get_y","path_insert_point","path_mirror","path_rescale","path_reverse","path_rotate","path_set_closed","path_set_kind","path_set_precision","path_shift","path_start","physics_apply_angular_impulse","physics_apply_force","physics_apply_impulse","physics_apply_local_force","physics_apply_local_impulse","physics_apply_torque","physics_draw_debug","physics_fixture_add_point","physics_fixture_bind","physics_fixture_bind_ext","physics_fixture_create","physics_fixture_delete","physics_fixture_set_angular_damping","physics_fixture_set_awake","physics_fixture_set_box_shape","physics_fixture_set_chain_shape","physics_fixture_set_circle_shape","physics_fixture_set_collision_group","physics_fixture_set_density","physics_fixture_set_edge_shape","physics_fixture_set_friction","physics_fixture_set_kinematic","physics_fixture_set_linear_damping","physics_fixture_set_polygon_shape","physics_fixture_set_restitution","physics_fixture_set_sensor","physics_get_density","physics_get_friction","physics_get_restitution","physics_joint_delete","physics_joint_distance_create","physics_joint_enable_motor","physics_joint_friction_create","physics_joint_gear_create","physics_joint_get_value","physics_joint_prismatic_create","physics_joint_pulley_create","physics_joint_revolute_create","physics_joint_rope_create","physics_joint_set_value","physics_joint_weld_create","physics_joint_wheel_create","physics_mass_properties","physics_particle_count","physics_particle_create","physics_particle_delete","physics_particle_delete_region_box","physics_particle_delete_region_circle","physics_particle_delete_region_poly","physics_particle_draw","physics_particle_draw_ext","physics_particle_get_damping","physics_particle_get_data","physics_particle_get_data_particle","physics_particle_get_density","physics_particle_get_gravity_scale","physics_particle_get_group_flags","physics_particle_get_max_count","physics_particle_get_radius","physics_particle_group_add_point","physics_particle_group_begin","physics_particle_group_box","physics_particle_group_circle","physics_particle_group_count","physics_particle_group_delete","physics_particle_group_end","physics_particle_group_get_ang_vel","physics_particle_group_get_angle","physics_particle_group_get_centre_x","physics_particle_group_get_centre_y","physics_particle_group_get_data","physics_particle_group_get_inertia","physics_particle_group_get_mass","physics_particle_group_get_vel_x","physics_particle_group_get_vel_y","physics_particle_group_get_x","physics_particle_group_get_y","physics_particle_group_join","physics_particle_group_polygon","physics_particle_set_category_flags","physics_particle_set_damping","physics_particle_set_density","physics_particle_set_flags","physics_particle_set_gravity_scale","physics_particle_set_group_flags","physics_particle_set_max_count","physics_particle_set_radius","physics_pause_enable","physics_remove_fixture","physics_set_density","physics_set_friction","physics_set_restitution","physics_test_overlap","physics_world_create","physics_world_draw_debug","physics_world_gravity","physics_world_update_iterations","physics_world_update_speed","place_empty","place_free","place_meeting","place_snapped","point_direction","point_distance","point_distance_3d","point_in_circle","point_in_rectangle","point_in_triangle","position_change","position_destroy","position_empty","position_meeting","power","ptr","push_cancel_local_notification","push_get_first_local_notification","push_get_next_local_notification","push_local_notification","radtodeg","random","random_get_seed","random_range","random_set_seed","randomise","randomize","real","rectangle_in_circle","rectangle_in_rectangle","rectangle_in_triangle","room_add","room_assign","room_duplicate","room_exists","room_get_camera","room_get_name","room_get_viewport","room_goto","room_goto_next","room_goto_previous","room_instance_add","room_instance_clear","room_next","room_previous","room_restart","room_set_background_color","room_set_background_colour","room_set_camera","room_set_height","room_set_persistent","room_set_view","room_set_view_enabled","room_set_viewport","room_set_width","round","screen_save","screen_save_part","script_execute","script_exists","script_get_name","sha1_file","sha1_string_unicode","sha1_string_utf8","shader_current","shader_enable_corner_id","shader_get_name","shader_get_sampler_index","shader_get_uniform","shader_is_compiled","shader_reset","shader_set","shader_set_uniform_f","shader_set_uniform_f_array","shader_set_uniform_i","shader_set_uniform_i_array","shader_set_uniform_matrix","shader_set_uniform_matrix_array","shaders_are_supported","shop_leave_rating","show_debug_message","show_debug_overlay","show_error","show_message","show_message_async","show_question","show_question_async","sign","sin","skeleton_animation_clear","skeleton_animation_get","skeleton_animation_get_duration","skeleton_animation_get_ext","skeleton_animation_get_frame","skeleton_animation_get_frames","skeleton_animation_list","skeleton_animation_mix","skeleton_animation_set","skeleton_animation_set_ext","skeleton_animation_set_frame","skeleton_attachment_create","skeleton_attachment_get","skeleton_attachment_set","skeleton_bone_data_get","skeleton_bone_data_set","skeleton_bone_state_get","skeleton_bone_state_set","skeleton_collision_draw_set","skeleton_get_bounds","skeleton_get_minmax","skeleton_get_num_bounds","skeleton_skin_get","skeleton_skin_list","skeleton_skin_set","skeleton_slot_data","sprite_add","sprite_add_from_surface","sprite_assign","sprite_collision_mask","sprite_create_from_surface","sprite_delete","sprite_duplicate","sprite_exists","sprite_flush","sprite_flush_multi","sprite_get_bbox_bottom","sprite_get_bbox_left","sprite_get_bbox_right","sprite_get_bbox_top","sprite_get_height","sprite_get_name","sprite_get_number","sprite_get_speed","sprite_get_speed_type","sprite_get_texture","sprite_get_tpe","sprite_get_uvs","sprite_get_width","sprite_get_xoffset","sprite_get_yoffset","sprite_merge","sprite_prefetch","sprite_prefetch_multi","sprite_replace","sprite_save","sprite_save_strip","sprite_set_alpha_from_sprite","sprite_set_cache_size","sprite_set_cache_size_ext","sprite_set_offset","sprite_set_speed","sqr","sqrt","steam_activate_overlay","steam_activate_overlay_browser","steam_activate_overlay_store","steam_activate_overlay_user","steam_available_languages","steam_clear_achievement","steam_create_leaderboard","steam_current_game_language","steam_download_friends_scores","steam_download_scores","steam_download_scores_around_user","steam_file_delete","steam_file_exists","steam_file_persisted","steam_file_read","steam_file_share","steam_file_size","steam_file_write","steam_file_write_file","steam_get_achievement","steam_get_app_id","steam_get_persona_name","steam_get_quota_free","steam_get_quota_total","steam_get_stat_avg_rate","steam_get_stat_float","steam_get_stat_int","steam_get_user_account_id","steam_get_user_persona_name","steam_get_user_steam_id","steam_initialised","steam_is_cloud_enabled_for_account","steam_is_cloud_enabled_for_app","steam_is_overlay_activated","steam_is_overlay_enabled","steam_is_screenshot_requested","steam_is_user_logged_on","steam_reset_all_stats","steam_reset_all_stats_achievements","steam_send_screenshot","steam_set_achievement","steam_set_stat_avg_rate","steam_set_stat_float","steam_set_stat_int","steam_stats_ready","steam_ugc_create_item","steam_ugc_create_query_all","steam_ugc_create_query_all_ex","steam_ugc_create_query_user","steam_ugc_create_query_user_ex","steam_ugc_download","steam_ugc_get_item_install_info","steam_ugc_get_item_update_info","steam_ugc_get_item_update_progress","steam_ugc_get_subscribed_items","steam_ugc_num_subscribed_items","steam_ugc_query_add_excluded_tag","steam_ugc_query_add_required_tag","steam_ugc_query_set_allow_cached_response","steam_ugc_query_set_cloud_filename_filter","steam_ugc_query_set_match_any_tag","steam_ugc_query_set_ranked_by_trend_days","steam_ugc_query_set_return_long_description","steam_ugc_query_set_return_total_only","steam_ugc_query_set_search_text","steam_ugc_request_item_details","steam_ugc_send_query","steam_ugc_set_item_content","steam_ugc_set_item_description","steam_ugc_set_item_preview","steam_ugc_set_item_tags","steam_ugc_set_item_title","steam_ugc_set_item_visibility","steam_ugc_start_item_update","steam_ugc_submit_item_update","steam_ugc_subscribe_item","steam_ugc_unsubscribe_item","steam_upload_score","steam_upload_score_buffer","steam_upload_score_buffer_ext","steam_upload_score_ext","steam_user_installed_dlc","steam_user_owns_dlc","string","string_byte_at","string_byte_length","string_char_at","string_copy","string_count","string_delete","string_digits","string_format","string_hash_to_newline","string_height","string_height_ext","string_insert","string_length","string_letters","string_lettersdigits","string_lower","string_ord_at","string_pos","string_repeat","string_replace","string_replace_all","string_set_byte_at","string_upper","string_width","string_width_ext","surface_copy","surface_copy_part","surface_create","surface_create_ext","surface_depth_disable","surface_exists","surface_free","surface_get_depth_disable","surface_get_height","surface_get_texture","surface_get_width","surface_getpixel","surface_getpixel_ext","surface_reset_target","surface_resize","surface_save","surface_save_part","surface_set_target","surface_set_target_ext","tan","texture_get_height","texture_get_texel_height","texture_get_texel_width","texture_get_uvs","texture_get_width","texture_global_scale","texture_set_stage","tile_get_empty","tile_get_flip","tile_get_index","tile_get_mirror","tile_get_rotate","tile_set_empty","tile_set_flip","tile_set_index","tile_set_mirror","tile_set_rotate","tilemap_clear","tilemap_get","tilemap_get_at_pixel","tilemap_get_cell_x_at_pixel","tilemap_get_cell_y_at_pixel","tilemap_get_frame","tilemap_get_global_mask","tilemap_get_height","tilemap_get_mask","tilemap_get_tile_height","tilemap_get_tile_width","tilemap_get_tileset","tilemap_get_width","tilemap_get_x","tilemap_get_y","tilemap_set","tilemap_set_at_pixel","tilemap_set_global_mask","tilemap_set_mask","tilemap_tileset","tilemap_x","tilemap_y","timeline_add","timeline_clear","timeline_delete","timeline_exists","timeline_get_name","timeline_max_moment","timeline_moment_add_script","timeline_moment_clear","timeline_size","typeof","url_get_domain","url_open","url_open_ext","url_open_full","variable_global_exists","variable_global_get","variable_global_set","variable_instance_exists","variable_instance_get","variable_instance_get_names","variable_instance_set","variable_struct_exists","variable_struct_get","variable_struct_get_names","variable_struct_names_count","variable_struct_remove","variable_struct_set","vertex_argb","vertex_begin","vertex_color","vertex_colour","vertex_create_buffer","vertex_create_buffer_ext","vertex_create_buffer_from_buffer","vertex_create_buffer_from_buffer_ext","vertex_delete_buffer","vertex_end","vertex_float1","vertex_float2","vertex_float3","vertex_float4","vertex_format_add_color","vertex_format_add_colour","vertex_format_add_custom","vertex_format_add_normal","vertex_format_add_position","vertex_format_add_position_3d","vertex_format_add_texcoord","vertex_format_add_textcoord","vertex_format_begin","vertex_format_delete","vertex_format_end","vertex_freeze","vertex_get_buffer_size","vertex_get_number","vertex_normal","vertex_position","vertex_position_3d","vertex_submit","vertex_texcoord","vertex_ubyte4","view_get_camera","view_get_hport","view_get_surface_id","view_get_visible","view_get_wport","view_get_xport","view_get_yport","view_set_camera","view_set_hport","view_set_surface_id","view_set_visible","view_set_wport","view_set_xport","view_set_yport","virtual_key_add","virtual_key_delete","virtual_key_hide","virtual_key_show","win8_appbar_add_element","win8_appbar_enable","win8_appbar_remove_element","win8_device_touchscreen_available","win8_license_initialize_sandbox","win8_license_trial_version","win8_livetile_badge_clear","win8_livetile_badge_notification","win8_livetile_notification_begin","win8_livetile_notification_end","win8_livetile_notification_expiry","win8_livetile_notification_image_add","win8_livetile_notification_secondary_begin","win8_livetile_notification_tag","win8_livetile_notification_text_add","win8_livetile_queue_enable","win8_livetile_tile_clear","win8_livetile_tile_notification","win8_search_add_suggestions","win8_search_disable","win8_search_enable","win8_secondarytile_badge_notification","win8_secondarytile_delete","win8_secondarytile_pin","win8_settingscharm_add_entry","win8_settingscharm_add_html_entry","win8_settingscharm_add_xaml_entry","win8_settingscharm_get_xaml_property","win8_settingscharm_remove_entry","win8_settingscharm_set_xaml_property","win8_share_file","win8_share_image","win8_share_screenshot","win8_share_text","win8_share_url","window_center","window_device","window_get_caption","window_get_color","window_get_colour","window_get_cursor","window_get_fullscreen","window_get_height","window_get_visible_rects","window_get_width","window_get_x","window_get_y","window_handle","window_has_focus","window_mouse_get_x","window_mouse_get_y","window_mouse_set","window_set_caption","window_set_color","window_set_colour","window_set_cursor","window_set_fullscreen","window_set_max_height","window_set_max_width","window_set_min_height","window_set_min_width","window_set_position","window_set_rectangle","window_set_size","window_view_mouse_get_x","window_view_mouse_get_y","window_views_mouse_get_x","window_views_mouse_get_y","winphone_license_trial_version","winphone_tile_back_content","winphone_tile_back_content_wide","winphone_tile_back_image","winphone_tile_back_image_wide","winphone_tile_back_title","winphone_tile_background_color","winphone_tile_background_colour","winphone_tile_count","winphone_tile_cycle_images","winphone_tile_front_image","winphone_tile_front_image_small","winphone_tile_front_image_wide","winphone_tile_icon_image","winphone_tile_small_background_image","winphone_tile_small_icon_image","winphone_tile_title","winphone_tile_wide_content","zip_unzip"],literal:["all","false","noone","pointer_invalid","pointer_null","true","undefined"],symbol:["ANSI_CHARSET","ARABIC_CHARSET","BALTIC_CHARSET","CHINESEBIG5_CHARSET","DEFAULT_CHARSET","EASTEUROPE_CHARSET","GB2312_CHARSET","GM_build_date","GM_runtime_version","GM_version","GREEK_CHARSET","HANGEUL_CHARSET","HEBREW_CHARSET","JOHAB_CHARSET","MAC_CHARSET","OEM_CHARSET","RUSSIAN_CHARSET","SHIFTJIS_CHARSET","SYMBOL_CHARSET","THAI_CHARSET","TURKISH_CHARSET","VIETNAMESE_CHARSET","achievement_achievement_info","achievement_filter_all_players","achievement_filter_favorites_only","achievement_filter_friends_only","achievement_friends_info","achievement_leaderboard_info","achievement_our_info","achievement_pic_loaded","achievement_show_achievement","achievement_show_bank","achievement_show_friend_picker","achievement_show_leaderboard","achievement_show_profile","achievement_show_purchase_prompt","achievement_show_ui","achievement_type_achievement_challenge","achievement_type_score_challenge","asset_font","asset_object","asset_path","asset_room","asset_script","asset_shader","asset_sound","asset_sprite","asset_tiles","asset_timeline","asset_unknown","audio_3d","audio_falloff_exponent_distance","audio_falloff_exponent_distance_clamped","audio_falloff_inverse_distance","audio_falloff_inverse_distance_clamped","audio_falloff_linear_distance","audio_falloff_linear_distance_clamped","audio_falloff_none","audio_mono","audio_new_system","audio_old_system","audio_stereo","bm_add","bm_complex","bm_dest_alpha","bm_dest_color","bm_dest_colour","bm_inv_dest_alpha","bm_inv_dest_color","bm_inv_dest_colour","bm_inv_src_alpha","bm_inv_src_color","bm_inv_src_colour","bm_max","bm_normal","bm_one","bm_src_alpha","bm_src_alpha_sat","bm_src_color","bm_src_colour","bm_subtract","bm_zero","browser_chrome","browser_edge","browser_firefox","browser_ie","browser_ie_mobile","browser_not_a_browser","browser_opera","browser_safari","browser_safari_mobile","browser_tizen","browser_unknown","browser_windows_store","buffer_bool","buffer_f16","buffer_f32","buffer_f64","buffer_fast","buffer_fixed","buffer_generalerror","buffer_grow","buffer_invalidtype","buffer_network","buffer_outofbounds","buffer_outofspace","buffer_s16","buffer_s32","buffer_s8","buffer_seek_end","buffer_seek_relative","buffer_seek_start","buffer_string","buffer_surface_copy","buffer_text","buffer_u16","buffer_u32","buffer_u64","buffer_u8","buffer_vbuffer","buffer_wrap","button_type","c_aqua","c_black","c_blue","c_dkgray","c_fuchsia","c_gray","c_green","c_lime","c_ltgray","c_maroon","c_navy","c_olive","c_orange","c_purple","c_red","c_silver","c_teal","c_white","c_yellow","cmpfunc_always","cmpfunc_equal","cmpfunc_greater","cmpfunc_greaterequal","cmpfunc_less","cmpfunc_lessequal","cmpfunc_never","cmpfunc_notequal","cr_appstart","cr_arrow","cr_beam","cr_cross","cr_default","cr_drag","cr_handpoint","cr_hourglass","cr_none","cr_size_all","cr_size_nesw","cr_size_ns","cr_size_nwse","cr_size_we","cr_uparrow","cull_clockwise","cull_counterclockwise","cull_noculling","device_emulator","device_ios_ipad","device_ios_ipad_retina","device_ios_iphone","device_ios_iphone5","device_ios_iphone6","device_ios_iphone6plus","device_ios_iphone_retina","device_ios_unknown","device_tablet","display_landscape","display_landscape_flipped","display_portrait","display_portrait_flipped","dll_cdecl","dll_stdcall","ds_type_grid","ds_type_list","ds_type_map","ds_type_priority","ds_type_queue","ds_type_stack","ef_cloud","ef_ellipse","ef_explosion","ef_firework","ef_flare","ef_rain","ef_ring","ef_smoke","ef_smokeup","ef_snow","ef_spark","ef_star","ev_alarm","ev_animation_end","ev_boundary","ev_cleanup","ev_close_button","ev_collision","ev_create","ev_destroy","ev_draw","ev_draw_begin","ev_draw_end","ev_draw_post","ev_draw_pre","ev_end_of_path","ev_game_end","ev_game_start","ev_gesture","ev_gesture_double_tap","ev_gesture_drag_end","ev_gesture_drag_start","ev_gesture_dragging","ev_gesture_flick","ev_gesture_pinch_end","ev_gesture_pinch_in","ev_gesture_pinch_out","ev_gesture_pinch_start","ev_gesture_rotate_end","ev_gesture_rotate_start","ev_gesture_rotating","ev_gesture_tap","ev_global_gesture_double_tap","ev_global_gesture_drag_end","ev_global_gesture_drag_start","ev_global_gesture_dragging","ev_global_gesture_flick","ev_global_gesture_pinch_end","ev_global_gesture_pinch_in","ev_global_gesture_pinch_out","ev_global_gesture_pinch_start","ev_global_gesture_rotate_end","ev_global_gesture_rotate_start","ev_global_gesture_rotating","ev_global_gesture_tap","ev_global_left_button","ev_global_left_press","ev_global_left_release","ev_global_middle_button","ev_global_middle_press","ev_global_middle_release","ev_global_right_button","ev_global_right_press","ev_global_right_release","ev_gui","ev_gui_begin","ev_gui_end","ev_joystick1_button1","ev_joystick1_button2","ev_joystick1_button3","ev_joystick1_button4","ev_joystick1_button5","ev_joystick1_button6","ev_joystick1_button7","ev_joystick1_button8","ev_joystick1_down","ev_joystick1_left","ev_joystick1_right","ev_joystick1_up","ev_joystick2_button1","ev_joystick2_button2","ev_joystick2_button3","ev_joystick2_button4","ev_joystick2_button5","ev_joystick2_button6","ev_joystick2_button7","ev_joystick2_button8","ev_joystick2_down","ev_joystick2_left","ev_joystick2_right","ev_joystick2_up","ev_keyboard","ev_keypress","ev_keyrelease","ev_left_button","ev_left_press","ev_left_release","ev_middle_button","ev_middle_press","ev_middle_release","ev_mouse","ev_mouse_enter","ev_mouse_leave","ev_mouse_wheel_down","ev_mouse_wheel_up","ev_no_button","ev_no_more_health","ev_no_more_lives","ev_other","ev_outside","ev_right_button","ev_right_press","ev_right_release","ev_room_end","ev_room_start","ev_step","ev_step_begin","ev_step_end","ev_step_normal","ev_trigger","ev_user0","ev_user1","ev_user2","ev_user3","ev_user4","ev_user5","ev_user6","ev_user7","ev_user8","ev_user9","ev_user10","ev_user11","ev_user12","ev_user13","ev_user14","ev_user15","fa_archive","fa_bottom","fa_center","fa_directory","fa_hidden","fa_left","fa_middle","fa_readonly","fa_right","fa_sysfile","fa_top","fa_volumeid","fb_login_default","fb_login_fallback_to_webview","fb_login_forcing_safari","fb_login_forcing_webview","fb_login_no_fallback_to_webview","fb_login_use_system_account","gamespeed_fps","gamespeed_microseconds","ge_lose","global","gp_axislh","gp_axislv","gp_axisrh","gp_axisrv","gp_face1","gp_face2","gp_face3","gp_face4","gp_padd","gp_padl","gp_padr","gp_padu","gp_select","gp_shoulderl","gp_shoulderlb","gp_shoulderr","gp_shoulderrb","gp_start","gp_stickl","gp_stickr","iap_available","iap_canceled","iap_ev_consume","iap_ev_product","iap_ev_purchase","iap_ev_restore","iap_ev_storeload","iap_failed","iap_purchased","iap_refunded","iap_status_available","iap_status_loading","iap_status_processing","iap_status_restoring","iap_status_unavailable","iap_status_uninitialised","iap_storeload_failed","iap_storeload_ok","iap_unavailable","input_type","kbv_autocapitalize_characters","kbv_autocapitalize_none","kbv_autocapitalize_sentences","kbv_autocapitalize_words","kbv_returnkey_continue","kbv_returnkey_default","kbv_returnkey_done","kbv_returnkey_emergency","kbv_returnkey_go","kbv_returnkey_google","kbv_returnkey_join","kbv_returnkey_next","kbv_returnkey_route","kbv_returnkey_search","kbv_returnkey_send","kbv_returnkey_yahoo","kbv_type_ascii","kbv_type_default","kbv_type_email","kbv_type_numbers","kbv_type_phone","kbv_type_phone_name","kbv_type_url","layerelementtype_background","layerelementtype_instance","layerelementtype_oldtilemap","layerelementtype_particlesystem","layerelementtype_sprite","layerelementtype_tile","layerelementtype_tilemap","layerelementtype_undefined","lb_disp_none","lb_disp_numeric","lb_disp_time_ms","lb_disp_time_sec","lb_sort_ascending","lb_sort_descending","lb_sort_none","leaderboard_type_number","leaderboard_type_time_mins_secs","lighttype_dir","lighttype_point","local","matrix_projection","matrix_view","matrix_world","mb_any","mb_left","mb_middle","mb_none","mb_right","mip_markedonly","mip_off","mip_on","network_config_connect_timeout","network_config_disable_reliable_udp","network_config_enable_reliable_udp","network_config_use_non_blocking_socket","network_socket_bluetooth","network_socket_tcp","network_socket_udp","network_type_connect","network_type_data","network_type_disconnect","network_type_non_blocking_connect","of_challen","of_challenge_tie","of_challenge_win","os_3ds","os_android","os_bb10","os_ios","os_linux","os_macosx","os_ps3","os_ps4","os_psvita","os_switch","os_symbian","os_tizen","os_tvos","os_unknown","os_uwp","os_wiiu","os_win32","os_win8native","os_windows","os_winphone","os_xbox360","os_xboxone","other","ov_achievements","ov_community","ov_friends","ov_gamegroup","ov_players","ov_settings","path_action_continue","path_action_restart","path_action_reverse","path_action_stop","phy_debug_render_aabb","phy_debug_render_collision_pairs","phy_debug_render_coms","phy_debug_render_core_shapes","phy_debug_render_joints","phy_debug_render_obb","phy_debug_render_shapes","phy_joint_anchor_1_x","phy_joint_anchor_1_y","phy_joint_anchor_2_x","phy_joint_anchor_2_y","phy_joint_angle","phy_joint_angle_limits","phy_joint_damping_ratio","phy_joint_frequency","phy_joint_length_1","phy_joint_length_2","phy_joint_lower_angle_limit","phy_joint_max_force","phy_joint_max_length","phy_joint_max_motor_force","phy_joint_max_motor_torque","phy_joint_max_torque","phy_joint_motor_force","phy_joint_motor_speed","phy_joint_motor_torque","phy_joint_reaction_force_x","phy_joint_reaction_force_y","phy_joint_reaction_torque","phy_joint_speed","phy_joint_translation","phy_joint_upper_angle_limit","phy_particle_data_flag_category","phy_particle_data_flag_color","phy_particle_data_flag_colour","phy_particle_data_flag_position","phy_particle_data_flag_typeflags","phy_particle_data_flag_velocity","phy_particle_flag_colormixing","phy_particle_flag_colourmixing","phy_particle_flag_elastic","phy_particle_flag_powder","phy_particle_flag_spring","phy_particle_flag_tensile","phy_particle_flag_viscous","phy_particle_flag_wall","phy_particle_flag_water","phy_particle_flag_zombie","phy_particle_group_flag_rigid","phy_particle_group_flag_solid","pi","pr_linelist","pr_linestrip","pr_pointlist","pr_trianglefan","pr_trianglelist","pr_trianglestrip","ps_distr_gaussian","ps_distr_invgaussian","ps_distr_linear","ps_shape_diamond","ps_shape_ellipse","ps_shape_line","ps_shape_rectangle","pt_shape_circle","pt_shape_cloud","pt_shape_disk","pt_shape_explosion","pt_shape_flare","pt_shape_line","pt_shape_pixel","pt_shape_ring","pt_shape_smoke","pt_shape_snow","pt_shape_spark","pt_shape_sphere","pt_shape_square","pt_shape_star","spritespeed_framespergameframe","spritespeed_framespersecond","text_type","tf_anisotropic","tf_linear","tf_point","tile_flip","tile_index_mask","tile_mirror","tile_rotate","timezone_local","timezone_utc","tm_countvsyncs","tm_sleep","ty_real","ty_string","ugc_filetype_community","ugc_filetype_microtrans","ugc_list_Favorited","ugc_list_Followed","ugc_list_Published","ugc_list_Subscribed","ugc_list_UsedOrPlayed","ugc_list_VotedDown","ugc_list_VotedOn","ugc_list_VotedUp","ugc_list_WillVoteLater","ugc_match_AllGuides","ugc_match_Artwork","ugc_match_Collections","ugc_match_ControllerBindings","ugc_match_IntegratedGuides","ugc_match_Items","ugc_match_Items_Mtx","ugc_match_Items_ReadyToUse","ugc_match_Screenshots","ugc_match_UsableInGame","ugc_match_Videos","ugc_match_WebGuides","ugc_query_AcceptedForGameRankedByAcceptanceDate","ugc_query_CreatedByFollowedUsersRankedByPublicationDate","ugc_query_CreatedByFriendsRankedByPublicationDate","ugc_query_FavoritedByFriendsRankedByPublicationDate","ugc_query_NotYetRated","ugc_query_RankedByNumTimesReported","ugc_query_RankedByPublicationDate","ugc_query_RankedByTextSearch","ugc_query_RankedByTotalVotesAsc","ugc_query_RankedByTrend","ugc_query_RankedByVote","ugc_query_RankedByVotesUp","ugc_result_success","ugc_sortorder_CreationOrderAsc","ugc_sortorder_CreationOrderDesc","ugc_sortorder_ForModeration","ugc_sortorder_LastUpdatedDesc","ugc_sortorder_SubscriptionDateDesc","ugc_sortorder_TitleAsc","ugc_sortorder_VoteScoreDesc","ugc_visibility_friends_only","ugc_visibility_private","ugc_visibility_public","vertex_type_color","vertex_type_colour","vertex_type_float1","vertex_type_float2","vertex_type_float3","vertex_type_float4","vertex_type_ubyte4","vertex_usage_binormal","vertex_usage_blendindices","vertex_usage_blendweight","vertex_usage_color","vertex_usage_colour","vertex_usage_depth","vertex_usage_fog","vertex_usage_normal","vertex_usage_position","vertex_usage_psize","vertex_usage_sample","vertex_usage_tangent","vertex_usage_texcoord","vertex_usage_textcoord","vk_add","vk_alt","vk_anykey","vk_backspace","vk_control","vk_decimal","vk_delete","vk_divide","vk_down","vk_end","vk_enter","vk_escape","vk_f1","vk_f2","vk_f3","vk_f4","vk_f5","vk_f6","vk_f7","vk_f8","vk_f9","vk_f10","vk_f11","vk_f12","vk_home","vk_insert","vk_lalt","vk_lcontrol","vk_left","vk_lshift","vk_multiply","vk_nokey","vk_numpad0","vk_numpad1","vk_numpad2","vk_numpad3","vk_numpad4","vk_numpad5","vk_numpad6","vk_numpad7","vk_numpad8","vk_numpad9","vk_pagedown","vk_pageup","vk_pause","vk_printscreen","vk_ralt","vk_rcontrol","vk_return","vk_right","vk_rshift","vk_shift","vk_space","vk_subtract","vk_tab","vk_up"],"variable.language":["alarm","application_surface","argument","argument0","argument1","argument2","argument3","argument4","argument5","argument6","argument7","argument8","argument9","argument10","argument11","argument12","argument13","argument14","argument15","argument_count","argument_relative","async_load","background_color","background_colour","background_showcolor","background_showcolour","bbox_bottom","bbox_left","bbox_right","bbox_top","browser_height","browser_width","caption_health","caption_lives","caption_score","current_day","current_hour","current_minute","current_month","current_second","current_time","current_weekday","current_year","cursor_sprite","debug_mode","delta_time","depth","direction","display_aa","error_last","error_occurred","event_action","event_data","event_number","event_object","event_type","fps","fps_real","friction","game_display_name","game_id","game_project_name","game_save_id","gamemaker_pro","gamemaker_registered","gamemaker_version","gravity","gravity_direction","health","hspeed","iap_data","id|0","image_alpha","image_angle","image_blend","image_index","image_number","image_speed","image_xscale","image_yscale","instance_count","instance_id","keyboard_key","keyboard_lastchar","keyboard_lastkey","keyboard_string","layer","lives","mask_index","mouse_button","mouse_lastbutton","mouse_x","mouse_y","object_index","os_browser","os_device","os_type","os_version","path_endaction","path_index","path_orientation","path_position","path_positionprevious","path_scale","path_speed","persistent","phy_active","phy_angular_damping","phy_angular_velocity","phy_bullet","phy_col_normal_x","phy_col_normal_y","phy_collision_points","phy_collision_x","phy_collision_y","phy_com_x","phy_com_y","phy_dynamic","phy_fixed_rotation","phy_inertia","phy_kinematic","phy_linear_damping","phy_linear_velocity_x","phy_linear_velocity_y","phy_mass","phy_position_x","phy_position_xprevious","phy_position_y","phy_position_yprevious","phy_rotation","phy_sleeping","phy_speed","phy_speed_x","phy_speed_y","program_directory","room","room_caption","room_first","room_height","room_last","room_persistent","room_speed","room_width","score","self","show_health","show_lives","show_score","solid","speed","sprite_height","sprite_index","sprite_width","sprite_xoffset","sprite_yoffset","temp_directory","timeline_index","timeline_loop","timeline_position","timeline_running","timeline_speed","view_angle","view_camera","view_current","view_enabled","view_hborder","view_hport","view_hspeed","view_hview","view_object","view_surface_id","view_vborder","view_visible","view_vspeed","view_wport","view_wview","view_xport","view_xview","view_yport","view_yview","visible","vspeed","webgl_enabled","working_directory","xprevious","xstart","x|0","yprevious","ystart","y|0"]},contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,n.C_NUMBER_MODE]}}function $A(n){const o={keyword:["break","case","chan","const","continue","default","defer","else","fallthrough","for","func","go","goto","if","import","interface","map","package","range","return","select","struct","switch","type","var"],type:["bool","byte","complex64","complex128","error","float32","float64","int8","int16","int32","int64","string","uint8","uint16","uint32","uint64","int","uint","uintptr","rune"],literal:["true","false","iota","nil"],built_in:["append","cap","close","complex","copy","imag","len","make","new","panic","print","println","real","recover","delete"]};return{name:"Go",aliases:["golang"],keywords:o,illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{className:"string",variants:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,{begin:"`",end:"`"}]},{className:"number",variants:[{begin:n.C_NUMBER_RE+"[i]",relevance:1},n.C_NUMBER_MODE]},{begin:/:=/},{className:"function",beginKeywords:"func",end:"\\s*(\\{|$)",excludeEnd:!0,contains:[n.TITLE_MODE,{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:o,illegal:/["']/}]}]}}function WA(n){const e=n.regex,t="HTTP/(2|1\\.[01])",r=/[A-Za-z][A-Za-z0-9-]*/,i={className:"attribute",begin:e.concat("^",r,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[i,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+t+" \\d{3})",end:/$/,contains:[{className:"meta",begin:t},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+t+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:t},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},n.inherit(i,{relevance:0})]}}function KA(n){const e=n.regex,t={className:"number",relevance:0,variants:[{begin:/([+-]+)?[\d]+_[\d_]+/},{begin:n.NUMBER_RE}]},r=n.COMMENT();r.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];const i={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)\}/}]},o={className:"literal",begin:/\bon|off|true|false|yes|no\b/},s={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},a={begin:/\[/,end:/\]/,contains:[r,o,i,s,t,"self"],relevance:0},l=/[A-Za-z0-9_-]+/,c=/"(\\"|[^"])*"/,u=/'[^']*'/,h=e.either(l,c,u),g=e.concat(h,"(\\s*\\.\\s*",h,")*",e.lookahead(/\s*=\s*[^#\s]/));return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[r,{className:"section",begin:/\[+/,end:/\]+/},{begin:g,className:"attr",starts:{end:/$/,contains:[r,a,o,i,s,t]}}]}}var Qo="[0-9](_*[0-9])*",xc=`\\.(${Qo})`,kc="[0-9a-fA-F](_*[0-9a-fA-F])*",Wy={className:"number",variants:[{begin:`(\\b(${Qo})((${xc})|\\.)?|(${xc}))[eE][+-]?(${Qo})[fFdD]?\\b`},{begin:`\\b(${Qo})((${xc})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${xc})[fFdD]?\\b`},{begin:`\\b(${Qo})[fFdD]\\b`},{begin:`\\b0[xX]((${kc})\\.?|(${kc})?\\.(${kc}))[pP][+-]?(${Qo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${kc})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function Ky(n,e,t){return t===-1?"":n.replace(e,r=>Ky(n,e,t-1))}function jA(n){const e=n.regex,t="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",r=t+Ky("(?:<"+t+"~~~(?:\\s*,\\s*"+t+"~~~)*>)?",/~~~/g,2),l={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","protected","import","native","final","void","enum","else","break","transient","catch","instanceof","volatile","case","assert","package","default","public","try","switch","continue","throws","protected","public","private","module","requires","exports","do","sealed"],literal:["false","true","null"],type:["char","boolean","long","float","int","byte","short","double"],built_in:["super","this"]},c={className:"meta",begin:"@"+t,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},u={className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[n.C_BLOCK_COMMENT_MODE],endsParent:!0};return{name:"Java",aliases:["jsp"],keywords:l,illegal:/<\/|#/,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,{begin:/"""/,end:/"""/,className:"string",contains:[n.BACKSLASH_ESCAPE]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{match:[/\b(?:class|interface|enum|extends|implements|new)/,/\s+/,t],className:{1:"keyword",3:"title.class"}},{match:/non-sealed/,scope:"keyword"},{begin:[e.concat(/(?!else)/,t),/\s+/,t,/\s+/,/=(?!=)/],className:{1:"type",3:"variable",5:"operator"}},{begin:[/record/,/\s+/,t],className:{1:"keyword",3:"title.class"},contains:[u,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},{beginKeywords:"new throw return else",relevance:0},{begin:["(?:"+r+"\\s+)",n.UNDERSCORE_IDENT_RE,/\s*(?=\()/],className:{2:"title.function"},keywords:l,contains:[{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[c,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,Wy,n.C_BLOCK_COMMENT_MODE]},n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE]},Wy,c]}}function QA(n){const e={className:"attr",begin:/"(\\.|[^\\"\r\n])*"(?=\s*:)/,relevance:1.01},t={match:/[{}[\],:]/,className:"punctuation",relevance:0},r=["true","false","null"],i={scope:"literal",beginKeywords:r.join(" ")};return{name:"JSON",keywords:{literal:r},contains:[e,t,n.QUOTE_STRING_MODE,i,n.C_NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],illegal:"\\S"}}function YA(n){const e="[A-Za-z_\\u00A1-\\uFFFF][A-Za-z_0-9\\u00A1-\\uFFFF]*",o={$pattern:e,keyword:["baremodule","begin","break","catch","ccall","const","continue","do","else","elseif","end","export","false","finally","for","function","global","if","import","in","isa","let","local","macro","module","quote","return","true","try","using","where","while"],literal:["ARGS","C_NULL","DEPOT_PATH","ENDIAN_BOM","ENV","Inf","Inf16","Inf32","Inf64","InsertionSort","LOAD_PATH","MergeSort","NaN","NaN16","NaN32","NaN64","PROGRAM_FILE","QuickSort","RoundDown","RoundFromZero","RoundNearest","RoundNearestTiesAway","RoundNearestTiesUp","RoundToZero","RoundUp","VERSION|0","devnull","false","im","missing","nothing","pi","stderr","stdin","stdout","true","undef","π","ℯ"],built_in:["AbstractArray","AbstractChannel","AbstractChar","AbstractDict","AbstractDisplay","AbstractFloat","AbstractIrrational","AbstractMatrix","AbstractRange","AbstractSet","AbstractString","AbstractUnitRange","AbstractVecOrMat","AbstractVector","Any","ArgumentError","Array","AssertionError","BigFloat","BigInt","BitArray","BitMatrix","BitSet","BitVector","Bool","BoundsError","CapturedException","CartesianIndex","CartesianIndices","Cchar","Cdouble","Cfloat","Channel","Char","Cint","Cintmax_t","Clong","Clonglong","Cmd","Colon","Complex","ComplexF16","ComplexF32","ComplexF64","CompositeException","Condition","Cptrdiff_t","Cshort","Csize_t","Cssize_t","Cstring","Cuchar","Cuint","Cuintmax_t","Culong","Culonglong","Cushort","Cvoid","Cwchar_t","Cwstring","DataType","DenseArray","DenseMatrix","DenseVecOrMat","DenseVector","Dict","DimensionMismatch","Dims","DivideError","DomainError","EOFError","Enum","ErrorException","Exception","ExponentialBackOff","Expr","Float16","Float32","Float64","Function","GlobalRef","HTML","IO","IOBuffer","IOContext","IOStream","IdDict","IndexCartesian","IndexLinear","IndexStyle","InexactError","InitError","Int","Int128","Int16","Int32","Int64","Int8","Integer","InterruptException","InvalidStateException","Irrational","KeyError","LinRange","LineNumberNode","LinearIndices","LoadError","MIME","Matrix","Method","MethodError","Missing","MissingException","Module","NTuple","NamedTuple","Nothing","Number","OrdinalRange","OutOfMemoryError","OverflowError","Pair","PartialQuickSort","PermutedDimsArray","Pipe","ProcessFailedException","Ptr","QuoteNode","Rational","RawFD","ReadOnlyMemoryError","Real","ReentrantLock","Ref","Regex","RegexMatch","RoundingMode","SegmentationFault","Set","Signed","Some","StackOverflowError","StepRange","StepRangeLen","StridedArray","StridedMatrix","StridedVecOrMat","StridedVector","String","StringIndexError","SubArray","SubString","SubstitutionString","Symbol","SystemError","Task","TaskFailedException","Text","TextDisplay","Timer","Tuple","Type","TypeError","TypeVar","UInt","UInt128","UInt16","UInt32","UInt64","UInt8","UndefInitializer","UndefKeywordError","UndefRefError","UndefVarError","Union","UnionAll","UnitRange","Unsigned","Val","Vararg","VecElement","VecOrMat","Vector","VersionNumber","WeakKeyDict","WeakRef"]},s={keywords:o,illegal:/<\//},a={className:"number",begin:/(\b0x[\d_]*(\.[\d_]*)?|0x\.\d[\d_]*)p[-+]?\d+|\b0[box][a-fA-F0-9][a-fA-F0-9_]*|(\b\d[\d_]*(\.[\d_]*)?|\.\d[\d_]*)([eEfF][-+]?\d+)?/,relevance:0},l={className:"string",begin:/'(.|\\[xXuU][a-zA-Z0-9]+)'/},c={className:"subst",begin:/\$\(/,end:/\)/,keywords:o},u={className:"variable",begin:"\\$"+e},h={className:"string",contains:[n.BACKSLASH_ESCAPE,c,u],variants:[{begin:/\w*"""/,end:/"""\w*/,relevance:10},{begin:/\w*"/,end:/"\w*/}]},g={className:"string",contains:[n.BACKSLASH_ESCAPE,c,u],begin:"`",end:"`"},b={className:"meta",begin:"@"+e},p={className:"comment",variants:[{begin:"#=",end:"=#",relevance:10},{begin:"#",end:"$"}]};return s.name="Julia",s.contains=[a,l,h,g,b,p,n.HASH_COMMENT_MODE,{className:"keyword",begin:"\\b(((abstract|primitive)\\s+)type|(mutable\\s+)?struct)\\b"},{begin:/<:/}],c.contains=s.contains,s}var Yo="[0-9](_*[0-9])*",Sc=`\\.(${Yo})`,Ec="[0-9a-fA-F](_*[0-9a-fA-F])*",ZA={className:"number",variants:[{begin:`(\\b(${Yo})((${Sc})|\\.)?|(${Sc}))[eE][+-]?(${Yo})[fFdD]?\\b`},{begin:`\\b(${Yo})((${Sc})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${Sc})[fFdD]?\\b`},{begin:`\\b(${Yo})[fFdD]\\b`},{begin:`\\b0[xX]((${Ec})\\.?|(${Ec})?\\.(${Ec}))[pP][+-]?(${Yo})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${Ec})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function XA(n){const e={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},t={className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},r={className:"symbol",begin:n.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:/\$\{/,end:/\}/,contains:[n.C_NUMBER_MODE]},o={className:"variable",begin:"\\$"+n.UNDERSCORE_IDENT_RE},s={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[o,i]},{begin:"'",end:"'",illegal:/\n/,contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[n.BACKSLASH_ESCAPE,o,i]}]};i.contains.push(s);const a={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+n.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+n.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[n.inherit(s,{className:"string"}),"self"]}]},c=ZA,u=n.COMMENT("/\\*","\\*/",{contains:[n.C_BLOCK_COMMENT_MODE]}),h={variants:[{className:"type",begin:n.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},g=h;return g.variants[1].contains=[h],h.variants[1].contains=[g],{name:"Kotlin",aliases:["kt","kts"],keywords:e,contains:[n.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),n.C_LINE_COMMENT_MODE,u,t,r,a,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:e,relevance:5,contains:[{begin:n.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[n.UNDERSCORE_TITLE_MODE]},{className:"type",begin:/</,end:/>/,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:e,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[h,n.C_LINE_COMMENT_MODE,u],relevance:0},n.C_LINE_COMMENT_MODE,u,a,l,s,n.C_NUMBER_MODE]},u]},{begin:[/class|interface|trait/,/\s+/,n.UNDERSCORE_IDENT_RE],beginScope:{3:"title.class"},keywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},n.UNDERSCORE_TITLE_MODE,{className:"type",begin:/</,end:/>/,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,){\s]|$/,excludeBegin:!0,returnEnd:!0},a,l]},s,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:`
125
+ `},c]}}function JA(n){const t=n.regex.either(...["(?:NeedsTeXFormat|RequirePackage|GetIdInfo)","Provides(?:Expl)?(?:Package|Class|File)","(?:DeclareOption|ProcessOptions)","(?:documentclass|usepackage|input|include)","makeat(?:letter|other)","ExplSyntax(?:On|Off)","(?:new|renew|provide)?command","(?:re)newenvironment","(?:New|Renew|Provide|Declare)(?:Expandable)?DocumentCommand","(?:New|Renew|Provide|Declare)DocumentEnvironment","(?:(?:e|g|x)?def|let)","(?:begin|end)","(?:part|chapter|(?:sub){0,2}section|(?:sub)?paragraph)","caption","(?:label|(?:eq|page|name)?ref|(?:paren|foot|super)?cite)","(?:alpha|beta|[Gg]amma|[Dd]elta|(?:var)?epsilon|zeta|eta|[Tt]heta|vartheta)","(?:iota|(?:var)?kappa|[Ll]ambda|mu|nu|[Xx]i|[Pp]i|varpi|(?:var)rho)","(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)","(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)","(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"].map(F=>F+"(?![a-zA-Z@:_])")),r=new RegExp(["(?:__)?[a-zA-Z]{2,}_[a-zA-Z](?:_?[a-zA-Z])+:[a-zA-Z]*","[lgc]__?[a-zA-Z](?:_?[a-zA-Z])*_[a-zA-Z]{2,}","[qs]__?[a-zA-Z](?:_?[a-zA-Z])+","use(?:_i)?:[a-zA-Z]*","(?:else|fi|or):","(?:if|cs|exp):w","(?:hbox|vbox):n","::[a-zA-Z]_unbraced","::[a-zA-Z:]"].map(F=>F+"(?![a-zA-Z:_])").join("|")),i=[{begin:/[a-zA-Z@]+/},{begin:/[^a-zA-Z@]?/}],o=[{begin:/\^{6}[0-9a-f]{6}/},{begin:/\^{5}[0-9a-f]{5}/},{begin:/\^{4}[0-9a-f]{4}/},{begin:/\^{3}[0-9a-f]{3}/},{begin:/\^{2}[0-9a-f]{2}/},{begin:/\^{2}[\u0000-\u007f]/}],s={className:"keyword",begin:/\\/,relevance:0,contains:[{endsParent:!0,begin:t},{endsParent:!0,begin:r},{endsParent:!0,variants:o},{endsParent:!0,relevance:0,variants:i}]},a={className:"params",relevance:0,begin:/#+\d?/},l={variants:o},c={className:"built_in",relevance:0,begin:/[$&^_]/},u={className:"meta",begin:/% ?!(T[eE]X|tex|BIB|bib)/,end:"$",relevance:10},h=n.COMMENT("%","$",{relevance:0}),g=[s,a,l,c,u,h],b={begin:/\{/,end:/\}/,relevance:0,contains:["self",...g]},p=n.inherit(b,{relevance:0,endsParent:!0,contains:[b,...g]}),v={begin:/\[/,end:/\]/,endsParent:!0,relevance:0,contains:[b,...g]},w={begin:/\s+/,relevance:0},S=[p],C=[v],E=function(F,Y){return{contains:[w],starts:{relevance:0,contains:F,starts:Y}}},A=function(F,Y){return{begin:"\\\\"+F+"(?![a-zA-Z@:_])",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\"+F},relevance:0,contains:[w],starts:Y}},R=function(F,Y){return n.inherit({begin:"\\\\begin(?=[ ]*(\\r?\\n[ ]*)?\\{"+F+"\\})",keywords:{$pattern:/\\[a-zA-Z]+/,keyword:"\\begin"},relevance:0},E(S,Y))},O=(F="string")=>n.END_SAME_AS_BEGIN({className:F,begin:/(.|\r?\n)/,end:/(.|\r?\n)/,excludeBegin:!0,excludeEnd:!0,endsParent:!0}),H=function(F){return{className:"string",end:"(?=\\\\end\\{"+F+"\\})"}},q=(F="string")=>({relevance:0,begin:/\{/,starts:{endsParent:!0,contains:[{className:F,end:/(?=\})/,endsParent:!0,contains:[{begin:/\{/,end:/\}/,relevance:0,contains:["self"]}]}]}}),U=[...["verb","lstinline"].map(F=>A(F,{contains:[O()]})),A("mint",E(S,{contains:[O()]})),A("mintinline",E(S,{contains:[q(),O()]})),A("url",{contains:[q("link"),q("link")]}),A("hyperref",{contains:[q("link")]}),A("href",E(C,{contains:[q("link")]})),...[].concat(...["","\\*"].map(F=>[R("verbatim"+F,H("verbatim"+F)),R("filecontents"+F,E(S,H("filecontents"+F))),...["","B","L"].map(Y=>R(Y+"Verbatim"+F,E(C,H(Y+"Verbatim"+F))))])),R("minted",E(C,E(S,H("minted"))))];return{name:"LaTeX",aliases:["tex"],contains:[...U,...g]}}const eM=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),tM=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],nM=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],jy=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],Qy=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],rM=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse(),iM=jy.concat(Qy);function oM(n){const e=eM(n),t=iM,r="and or not only",i="[\\w-]+",o="("+i+"|@\\{"+i+"\\})",s=[],a=[],l=function(E){return{className:"string",begin:"~?"+E+".*?"+E}},c=function(E,A,R){return{className:E,begin:A,relevance:R}},u={$pattern:/[a-z-]+/,keyword:r,attribute:nM.join(" ")},h={begin:"\\(",end:"\\)",contains:a,keywords:u,relevance:0};a.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,l("'"),l('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},e.HEXCOLOR,h,c("variable","@@?"+i,10),c("variable","@\\{"+i+"\\}"),c("built_in","~?`[^`]*?`"),{className:"attribute",begin:i+"\\s*:",end:":",returnBegin:!0,excludeEnd:!0},e.IMPORTANT,{beginKeywords:"and not"},e.FUNCTION_DISPATCH);const g=a.concat({begin:/\{/,end:/\}/,contains:s}),b={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(a)},p={begin:o+"\\s*:",returnBegin:!0,end:/[;}]/,relevance:0,contains:[{begin:/-(webkit|moz|ms|o)-/},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+rM.join("|")+")\\b",end:/(?=:)/,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:a}}]},v={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",keywords:u,returnEnd:!0,contains:a,relevance:0}},w={className:"variable",variants:[{begin:"@"+i+"\\s*:",relevance:15},{begin:"@"+i}],starts:{end:"[;}]",returnEnd:!0,contains:g}},S={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:o,end:/\{/}],returnBegin:!0,returnEnd:!0,illegal:`[<='$"]`,relevance:0,contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,b,c("keyword","all\\b"),c("variable","@\\{"+i+"\\}"),{begin:"\\b("+tM.join("|")+")\\b",className:"selector-tag"},e.CSS_NUMBER_MODE,c("selector-tag",o,0),c("selector-id","#"+o),c("selector-class","\\."+o,0),c("selector-tag","&",0),e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-pseudo",begin:":("+jy.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+Qy.join("|")+")"},{begin:/\(/,end:/\)/,relevance:0,contains:g},{begin:"!important"},e.FUNCTION_DISPATCH]},C={begin:i+`:(:)?(${t.join("|")})`,returnBegin:!0,contains:[S]};return s.push(n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,v,w,C,p,S,b,e.FUNCTION_DISPATCH),{name:"Less",case_insensitive:!0,illegal:`[=>'/<($"]`,contains:s}}function sM(n){const e="\\[=*\\[",t="\\]=*\\]",r={begin:e,end:t,contains:["self"]},i=[n.COMMENT("--(?!"+e+")","$"),n.COMMENT("--"+e,t,{contains:[r],relevance:10})];return{name:"Lua",keywords:{$pattern:n.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:i.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[n.inherit(n.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:i}].concat(i)},n.C_NUMBER_MODE,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:e,end:t,contains:[r],relevance:5}])}}function aM(n){const e={className:"variable",variants:[{begin:"\\$\\("+n.UNDERSCORE_IDENT_RE+"\\)",contains:[n.BACKSLASH_ESCAPE]},{begin:/\$[@%<?\^\+\*]/}]},t={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,e]},r={className:"variable",begin:/\$\([\w-]+\s/,end:/\)/,keywords:{built_in:"subst patsubst strip findstring filter filter-out sort word wordlist firstword lastword dir notdir suffix basename addsuffix addprefix join wildcard realpath abspath error warning shell origin flavor foreach if or and call eval file value"},contains:[e]},i={begin:"^"+n.UNDERSCORE_IDENT_RE+"\\s*(?=[:+?]?=)"},o={className:"meta",begin:/^\.PHONY:/,end:/$/,keywords:{$pattern:/[\.\w]+/,keyword:".PHONY"}},s={className:"section",begin:/^[^\s]+:/,end:/$/,contains:[e]};return{name:"Makefile",aliases:["mk","mak","make"],keywords:{$pattern:/[\w-]+/,keyword:"define endef undefine ifdef ifndef ifeq ifneq else endif include -include sinclude override export unexport private vpath"},contains:[n.HASH_COMMENT_MODE,e,t,r,i,o,s]}}const lM=["AASTriangle","AbelianGroup","Abort","AbortKernels","AbortProtect","AbortScheduledTask","Above","Abs","AbsArg","AbsArgPlot","Absolute","AbsoluteCorrelation","AbsoluteCorrelationFunction","AbsoluteCurrentValue","AbsoluteDashing","AbsoluteFileName","AbsoluteOptions","AbsolutePointSize","AbsoluteThickness","AbsoluteTime","AbsoluteTiming","AcceptanceThreshold","AccountingForm","Accumulate","Accuracy","AccuracyGoal","ActionDelay","ActionMenu","ActionMenuBox","ActionMenuBoxOptions","Activate","Active","ActiveClassification","ActiveClassificationObject","ActiveItem","ActivePrediction","ActivePredictionObject","ActiveStyle","AcyclicGraphQ","AddOnHelpPath","AddSides","AddTo","AddToSearchIndex","AddUsers","AdjacencyGraph","AdjacencyList","AdjacencyMatrix","AdjacentMeshCells","AdjustmentBox","AdjustmentBoxOptions","AdjustTimeSeriesForecast","AdministrativeDivisionData","AffineHalfSpace","AffineSpace","AffineStateSpaceModel","AffineTransform","After","AggregatedEntityClass","AggregationLayer","AircraftData","AirportData","AirPressureData","AirTemperatureData","AiryAi","AiryAiPrime","AiryAiZero","AiryBi","AiryBiPrime","AiryBiZero","AlgebraicIntegerQ","AlgebraicNumber","AlgebraicNumberDenominator","AlgebraicNumberNorm","AlgebraicNumberPolynomial","AlgebraicNumberTrace","AlgebraicRules","AlgebraicRulesData","Algebraics","AlgebraicUnitQ","Alignment","AlignmentMarker","AlignmentPoint","All","AllowAdultContent","AllowedCloudExtraParameters","AllowedCloudParameterExtensions","AllowedDimensions","AllowedFrequencyRange","AllowedHeads","AllowGroupClose","AllowIncomplete","AllowInlineCells","AllowKernelInitialization","AllowLooseGrammar","AllowReverseGroupClose","AllowScriptLevelChange","AllowVersionUpdate","AllTrue","Alphabet","AlphabeticOrder","AlphabeticSort","AlphaChannel","AlternateImage","AlternatingFactorial","AlternatingGroup","AlternativeHypothesis","Alternatives","AltitudeMethod","AmbientLight","AmbiguityFunction","AmbiguityList","Analytic","AnatomyData","AnatomyForm","AnatomyPlot3D","AnatomySkinStyle","AnatomyStyling","AnchoredSearch","And","AndersonDarlingTest","AngerJ","AngleBisector","AngleBracket","AnglePath","AnglePath3D","AngleVector","AngularGauge","Animate","AnimationCycleOffset","AnimationCycleRepetitions","AnimationDirection","AnimationDisplayTime","AnimationRate","AnimationRepetitions","AnimationRunning","AnimationRunTime","AnimationTimeIndex","Animator","AnimatorBox","AnimatorBoxOptions","AnimatorElements","Annotate","Annotation","AnnotationDelete","AnnotationKeys","AnnotationRules","AnnotationValue","Annuity","AnnuityDue","Annulus","AnomalyDetection","AnomalyDetector","AnomalyDetectorFunction","Anonymous","Antialiasing","AntihermitianMatrixQ","Antisymmetric","AntisymmetricMatrixQ","Antonyms","AnyOrder","AnySubset","AnyTrue","Apart","ApartSquareFree","APIFunction","Appearance","AppearanceElements","AppearanceRules","AppellF1","Append","AppendCheck","AppendLayer","AppendTo","Apply","ApplySides","ArcCos","ArcCosh","ArcCot","ArcCoth","ArcCsc","ArcCsch","ArcCurvature","ARCHProcess","ArcLength","ArcSec","ArcSech","ArcSin","ArcSinDistribution","ArcSinh","ArcTan","ArcTanh","Area","Arg","ArgMax","ArgMin","ArgumentCountQ","ARIMAProcess","ArithmeticGeometricMean","ARMAProcess","Around","AroundReplace","ARProcess","Array","ArrayComponents","ArrayDepth","ArrayFilter","ArrayFlatten","ArrayMesh","ArrayPad","ArrayPlot","ArrayQ","ArrayResample","ArrayReshape","ArrayRules","Arrays","Arrow","Arrow3DBox","ArrowBox","Arrowheads","ASATriangle","Ask","AskAppend","AskConfirm","AskDisplay","AskedQ","AskedValue","AskFunction","AskState","AskTemplateDisplay","AspectRatio","AspectRatioFixed","Assert","AssociateTo","Association","AssociationFormat","AssociationMap","AssociationQ","AssociationThread","AssumeDeterministic","Assuming","Assumptions","AstronomicalData","Asymptotic","AsymptoticDSolveValue","AsymptoticEqual","AsymptoticEquivalent","AsymptoticGreater","AsymptoticGreaterEqual","AsymptoticIntegrate","AsymptoticLess","AsymptoticLessEqual","AsymptoticOutputTracker","AsymptoticProduct","AsymptoticRSolveValue","AsymptoticSolve","AsymptoticSum","Asynchronous","AsynchronousTaskObject","AsynchronousTasks","Atom","AtomCoordinates","AtomCount","AtomDiagramCoordinates","AtomList","AtomQ","AttentionLayer","Attributes","Audio","AudioAmplify","AudioAnnotate","AudioAnnotationLookup","AudioBlockMap","AudioCapture","AudioChannelAssignment","AudioChannelCombine","AudioChannelMix","AudioChannels","AudioChannelSeparate","AudioData","AudioDelay","AudioDelete","AudioDevice","AudioDistance","AudioEncoding","AudioFade","AudioFrequencyShift","AudioGenerator","AudioIdentify","AudioInputDevice","AudioInsert","AudioInstanceQ","AudioIntervals","AudioJoin","AudioLabel","AudioLength","AudioLocalMeasurements","AudioLooping","AudioLoudness","AudioMeasurements","AudioNormalize","AudioOutputDevice","AudioOverlay","AudioPad","AudioPan","AudioPartition","AudioPause","AudioPitchShift","AudioPlay","AudioPlot","AudioQ","AudioRecord","AudioReplace","AudioResample","AudioReverb","AudioReverse","AudioSampleRate","AudioSpectralMap","AudioSpectralTransformation","AudioSplit","AudioStop","AudioStream","AudioStreams","AudioTimeStretch","AudioTracks","AudioTrim","AudioType","AugmentedPolyhedron","AugmentedSymmetricPolynomial","Authenticate","Authentication","AuthenticationDialog","AutoAction","Autocomplete","AutocompletionFunction","AutoCopy","AutocorrelationTest","AutoDelete","AutoEvaluateEvents","AutoGeneratedPackage","AutoIndent","AutoIndentSpacings","AutoItalicWords","AutoloadPath","AutoMatch","Automatic","AutomaticImageSize","AutoMultiplicationSymbol","AutoNumberFormatting","AutoOpenNotebooks","AutoOpenPalettes","AutoQuoteCharacters","AutoRefreshed","AutoRemove","AutorunSequencing","AutoScaling","AutoScroll","AutoSpacing","AutoStyleOptions","AutoStyleWords","AutoSubmitting","Axes","AxesEdge","AxesLabel","AxesOrigin","AxesStyle","AxiomaticTheory","Axis","BabyMonsterGroupB","Back","Background","BackgroundAppearance","BackgroundTasksSettings","Backslash","Backsubstitution","Backward","Ball","Band","BandpassFilter","BandstopFilter","BarabasiAlbertGraphDistribution","BarChart","BarChart3D","BarcodeImage","BarcodeRecognize","BaringhausHenzeTest","BarLegend","BarlowProschanImportance","BarnesG","BarOrigin","BarSpacing","BartlettHannWindow","BartlettWindow","BaseDecode","BaseEncode","BaseForm","Baseline","BaselinePosition","BaseStyle","BasicRecurrentLayer","BatchNormalizationLayer","BatchSize","BatesDistribution","BattleLemarieWavelet","BayesianMaximization","BayesianMaximizationObject","BayesianMinimization","BayesianMinimizationObject","Because","BeckmannDistribution","Beep","Before","Begin","BeginDialogPacket","BeginFrontEndInteractionPacket","BeginPackage","BellB","BellY","Below","BenfordDistribution","BeniniDistribution","BenktanderGibratDistribution","BenktanderWeibullDistribution","BernoulliB","BernoulliDistribution","BernoulliGraphDistribution","BernoulliProcess","BernsteinBasis","BesselFilterModel","BesselI","BesselJ","BesselJZero","BesselK","BesselY","BesselYZero","Beta","BetaBinomialDistribution","BetaDistribution","BetaNegativeBinomialDistribution","BetaPrimeDistribution","BetaRegularized","Between","BetweennessCentrality","BeveledPolyhedron","BezierCurve","BezierCurve3DBox","BezierCurve3DBoxOptions","BezierCurveBox","BezierCurveBoxOptions","BezierFunction","BilateralFilter","Binarize","BinaryDeserialize","BinaryDistance","BinaryFormat","BinaryImageQ","BinaryRead","BinaryReadList","BinarySerialize","BinaryWrite","BinCounts","BinLists","Binomial","BinomialDistribution","BinomialProcess","BinormalDistribution","BiorthogonalSplineWavelet","BipartiteGraphQ","BiquadraticFilterModel","BirnbaumImportance","BirnbaumSaundersDistribution","BitAnd","BitClear","BitGet","BitLength","BitNot","BitOr","BitSet","BitShiftLeft","BitShiftRight","BitXor","BiweightLocation","BiweightMidvariance","Black","BlackmanHarrisWindow","BlackmanNuttallWindow","BlackmanWindow","Blank","BlankForm","BlankNullSequence","BlankSequence","Blend","Block","BlockchainAddressData","BlockchainBase","BlockchainBlockData","BlockchainContractValue","BlockchainData","BlockchainGet","BlockchainKeyEncode","BlockchainPut","BlockchainTokenData","BlockchainTransaction","BlockchainTransactionData","BlockchainTransactionSign","BlockchainTransactionSubmit","BlockMap","BlockRandom","BlomqvistBeta","BlomqvistBetaTest","Blue","Blur","BodePlot","BohmanWindow","Bold","Bond","BondCount","BondList","BondQ","Bookmarks","Boole","BooleanConsecutiveFunction","BooleanConvert","BooleanCountingFunction","BooleanFunction","BooleanGraph","BooleanMaxterms","BooleanMinimize","BooleanMinterms","BooleanQ","BooleanRegion","Booleans","BooleanStrings","BooleanTable","BooleanVariables","BorderDimensions","BorelTannerDistribution","Bottom","BottomHatTransform","BoundaryDiscretizeGraphics","BoundaryDiscretizeRegion","BoundaryMesh","BoundaryMeshRegion","BoundaryMeshRegionQ","BoundaryStyle","BoundedRegionQ","BoundingRegion","Bounds","Box","BoxBaselineShift","BoxData","BoxDimensions","Boxed","Boxes","BoxForm","BoxFormFormatTypes","BoxFrame","BoxID","BoxMargins","BoxMatrix","BoxObject","BoxRatios","BoxRotation","BoxRotationPoint","BoxStyle","BoxWhiskerChart","Bra","BracketingBar","BraKet","BrayCurtisDistance","BreadthFirstScan","Break","BridgeData","BrightnessEqualize","BroadcastStationData","Brown","BrownForsytheTest","BrownianBridgeProcess","BrowserCategory","BSplineBasis","BSplineCurve","BSplineCurve3DBox","BSplineCurve3DBoxOptions","BSplineCurveBox","BSplineCurveBoxOptions","BSplineFunction","BSplineSurface","BSplineSurface3DBox","BSplineSurface3DBoxOptions","BubbleChart","BubbleChart3D","BubbleScale","BubbleSizes","BuildingData","BulletGauge","BusinessDayQ","ButterflyGraph","ButterworthFilterModel","Button","ButtonBar","ButtonBox","ButtonBoxOptions","ButtonCell","ButtonContents","ButtonData","ButtonEvaluator","ButtonExpandable","ButtonFrame","ButtonFunction","ButtonMargins","ButtonMinHeight","ButtonNote","ButtonNotebook","ButtonSource","ButtonStyle","ButtonStyleMenuListing","Byte","ByteArray","ByteArrayFormat","ByteArrayQ","ByteArrayToString","ByteCount","ByteOrdering","C","CachedValue","CacheGraphics","CachePersistence","CalendarConvert","CalendarData","CalendarType","Callout","CalloutMarker","CalloutStyle","CallPacket","CanberraDistance","Cancel","CancelButton","CandlestickChart","CanonicalGraph","CanonicalizePolygon","CanonicalizePolyhedron","CanonicalName","CanonicalWarpingCorrespondence","CanonicalWarpingDistance","CantorMesh","CantorStaircase","Cap","CapForm","CapitalDifferentialD","Capitalize","CapsuleShape","CaptureRunning","CardinalBSplineBasis","CarlemanLinearize","CarmichaelLambda","CaseOrdering","Cases","CaseSensitive","Cashflow","Casoratian","Catalan","CatalanNumber","Catch","CategoricalDistribution","Catenate","CatenateLayer","CauchyDistribution","CauchyWindow","CayleyGraph","CDF","CDFDeploy","CDFInformation","CDFWavelet","Ceiling","CelestialSystem","Cell","CellAutoOverwrite","CellBaseline","CellBoundingBox","CellBracketOptions","CellChangeTimes","CellContents","CellContext","CellDingbat","CellDynamicExpression","CellEditDuplicate","CellElementsBoundingBox","CellElementSpacings","CellEpilog","CellEvaluationDuplicate","CellEvaluationFunction","CellEvaluationLanguage","CellEventActions","CellFrame","CellFrameColor","CellFrameLabelMargins","CellFrameLabels","CellFrameMargins","CellGroup","CellGroupData","CellGrouping","CellGroupingRules","CellHorizontalScrolling","CellID","CellLabel","CellLabelAutoDelete","CellLabelMargins","CellLabelPositioning","CellLabelStyle","CellLabelTemplate","CellMargins","CellObject","CellOpen","CellPrint","CellProlog","Cells","CellSize","CellStyle","CellTags","CellularAutomaton","CensoredDistribution","Censoring","Center","CenterArray","CenterDot","CentralFeature","CentralMoment","CentralMomentGeneratingFunction","Cepstrogram","CepstrogramArray","CepstrumArray","CForm","ChampernowneNumber","ChangeOptions","ChannelBase","ChannelBrokerAction","ChannelDatabin","ChannelHistoryLength","ChannelListen","ChannelListener","ChannelListeners","ChannelListenerWait","ChannelObject","ChannelPreSendFunction","ChannelReceiverFunction","ChannelSend","ChannelSubscribers","ChanVeseBinarize","Character","CharacterCounts","CharacterEncoding","CharacterEncodingsPath","CharacteristicFunction","CharacteristicPolynomial","CharacterName","CharacterNormalize","CharacterRange","Characters","ChartBaseStyle","ChartElementData","ChartElementDataFunction","ChartElementFunction","ChartElements","ChartLabels","ChartLayout","ChartLegends","ChartStyle","Chebyshev1FilterModel","Chebyshev2FilterModel","ChebyshevDistance","ChebyshevT","ChebyshevU","Check","CheckAbort","CheckAll","Checkbox","CheckboxBar","CheckboxBox","CheckboxBoxOptions","ChemicalData","ChessboardDistance","ChiDistribution","ChineseRemainder","ChiSquareDistribution","ChoiceButtons","ChoiceDialog","CholeskyDecomposition","Chop","ChromaticityPlot","ChromaticityPlot3D","ChromaticPolynomial","Circle","CircleBox","CircleDot","CircleMinus","CirclePlus","CirclePoints","CircleThrough","CircleTimes","CirculantGraph","CircularOrthogonalMatrixDistribution","CircularQuaternionMatrixDistribution","CircularRealMatrixDistribution","CircularSymplecticMatrixDistribution","CircularUnitaryMatrixDistribution","Circumsphere","CityData","ClassifierFunction","ClassifierInformation","ClassifierMeasurements","ClassifierMeasurementsObject","Classify","ClassPriors","Clear","ClearAll","ClearAttributes","ClearCookies","ClearPermissions","ClearSystemCache","ClebschGordan","ClickPane","Clip","ClipboardNotebook","ClipFill","ClippingStyle","ClipPlanes","ClipPlanesStyle","ClipRange","Clock","ClockGauge","ClockwiseContourIntegral","Close","Closed","CloseKernels","ClosenessCentrality","Closing","ClosingAutoSave","ClosingEvent","ClosingSaveDialog","CloudAccountData","CloudBase","CloudConnect","CloudConnections","CloudDeploy","CloudDirectory","CloudDisconnect","CloudEvaluate","CloudExport","CloudExpression","CloudExpressions","CloudFunction","CloudGet","CloudImport","CloudLoggingData","CloudObject","CloudObjectInformation","CloudObjectInformationData","CloudObjectNameFormat","CloudObjects","CloudObjectURLType","CloudPublish","CloudPut","CloudRenderingMethod","CloudSave","CloudShare","CloudSubmit","CloudSymbol","CloudUnshare","CloudUserID","ClusterClassify","ClusterDissimilarityFunction","ClusteringComponents","ClusteringTree","CMYKColor","Coarse","CodeAssistOptions","Coefficient","CoefficientArrays","CoefficientDomain","CoefficientList","CoefficientRules","CoifletWavelet","Collect","Colon","ColonForm","ColorBalance","ColorCombine","ColorConvert","ColorCoverage","ColorData","ColorDataFunction","ColorDetect","ColorDistance","ColorFunction","ColorFunctionScaling","Colorize","ColorNegate","ColorOutput","ColorProfileData","ColorQ","ColorQuantize","ColorReplace","ColorRules","ColorSelectorSettings","ColorSeparate","ColorSetter","ColorSetterBox","ColorSetterBoxOptions","ColorSlider","ColorsNear","ColorSpace","ColorToneMapping","Column","ColumnAlignments","ColumnBackgrounds","ColumnForm","ColumnLines","ColumnsEqual","ColumnSpacings","ColumnWidths","CombinedEntityClass","CombinerFunction","CometData","CommonDefaultFormatTypes","Commonest","CommonestFilter","CommonName","CommonUnits","CommunityBoundaryStyle","CommunityGraphPlot","CommunityLabels","CommunityRegionStyle","CompanyData","CompatibleUnitQ","CompilationOptions","CompilationTarget","Compile","Compiled","CompiledCodeFunction","CompiledFunction","CompilerOptions","Complement","ComplementedEntityClass","CompleteGraph","CompleteGraphQ","CompleteKaryTree","CompletionsListPacket","Complex","ComplexContourPlot","Complexes","ComplexExpand","ComplexInfinity","ComplexityFunction","ComplexListPlot","ComplexPlot","ComplexPlot3D","ComplexRegionPlot","ComplexStreamPlot","ComplexVectorPlot","ComponentMeasurements","ComponentwiseContextMenu","Compose","ComposeList","ComposeSeries","CompositeQ","Composition","CompoundElement","CompoundExpression","CompoundPoissonDistribution","CompoundPoissonProcess","CompoundRenewalProcess","Compress","CompressedData","CompressionLevel","ComputeUncertainty","Condition","ConditionalExpression","Conditioned","Cone","ConeBox","ConfidenceLevel","ConfidenceRange","ConfidenceTransform","ConfigurationPath","ConformAudio","ConformImages","Congruent","ConicHullRegion","ConicHullRegion3DBox","ConicHullRegionBox","ConicOptimization","Conjugate","ConjugateTranspose","Conjunction","Connect","ConnectedComponents","ConnectedGraphComponents","ConnectedGraphQ","ConnectedMeshComponents","ConnectedMoleculeComponents","ConnectedMoleculeQ","ConnectionSettings","ConnectLibraryCallbackFunction","ConnectSystemModelComponents","ConnesWindow","ConoverTest","ConsoleMessage","ConsoleMessagePacket","Constant","ConstantArray","ConstantArrayLayer","ConstantImage","ConstantPlusLayer","ConstantRegionQ","Constants","ConstantTimesLayer","ConstellationData","ConstrainedMax","ConstrainedMin","Construct","Containing","ContainsAll","ContainsAny","ContainsExactly","ContainsNone","ContainsOnly","ContentFieldOptions","ContentLocationFunction","ContentObject","ContentPadding","ContentsBoundingBox","ContentSelectable","ContentSize","Context","ContextMenu","Contexts","ContextToFileName","Continuation","Continue","ContinuedFraction","ContinuedFractionK","ContinuousAction","ContinuousMarkovProcess","ContinuousTask","ContinuousTimeModelQ","ContinuousWaveletData","ContinuousWaveletTransform","ContourDetect","ContourGraphics","ContourIntegral","ContourLabels","ContourLines","ContourPlot","ContourPlot3D","Contours","ContourShading","ContourSmoothing","ContourStyle","ContraharmonicMean","ContrastiveLossLayer","Control","ControlActive","ControlAlignment","ControlGroupContentsBox","ControllabilityGramian","ControllabilityMatrix","ControllableDecomposition","ControllableModelQ","ControllerDuration","ControllerInformation","ControllerInformationData","ControllerLinking","ControllerManipulate","ControllerMethod","ControllerPath","ControllerState","ControlPlacement","ControlsRendering","ControlType","Convergents","ConversionOptions","ConversionRules","ConvertToBitmapPacket","ConvertToPostScript","ConvertToPostScriptPacket","ConvexHullMesh","ConvexPolygonQ","ConvexPolyhedronQ","ConvolutionLayer","Convolve","ConwayGroupCo1","ConwayGroupCo2","ConwayGroupCo3","CookieFunction","Cookies","CoordinateBoundingBox","CoordinateBoundingBoxArray","CoordinateBounds","CoordinateBoundsArray","CoordinateChartData","CoordinatesToolOptions","CoordinateTransform","CoordinateTransformData","CoprimeQ","Coproduct","CopulaDistribution","Copyable","CopyDatabin","CopyDirectory","CopyFile","CopyTag","CopyToClipboard","CornerFilter","CornerNeighbors","Correlation","CorrelationDistance","CorrelationFunction","CorrelationTest","Cos","Cosh","CoshIntegral","CosineDistance","CosineWindow","CosIntegral","Cot","Coth","Count","CountDistinct","CountDistinctBy","CounterAssignments","CounterBox","CounterBoxOptions","CounterClockwiseContourIntegral","CounterEvaluator","CounterFunction","CounterIncrements","CounterStyle","CounterStyleMenuListing","CountRoots","CountryData","Counts","CountsBy","Covariance","CovarianceEstimatorFunction","CovarianceFunction","CoxianDistribution","CoxIngersollRossProcess","CoxModel","CoxModelFit","CramerVonMisesTest","CreateArchive","CreateCellID","CreateChannel","CreateCloudExpression","CreateDatabin","CreateDataStructure","CreateDataSystemModel","CreateDialog","CreateDirectory","CreateDocument","CreateFile","CreateIntermediateDirectories","CreateManagedLibraryExpression","CreateNotebook","CreatePacletArchive","CreatePalette","CreatePalettePacket","CreatePermissionsGroup","CreateScheduledTask","CreateSearchIndex","CreateSystemModel","CreateTemporary","CreateUUID","CreateWindow","CriterionFunction","CriticalityFailureImportance","CriticalitySuccessImportance","CriticalSection","Cross","CrossEntropyLossLayer","CrossingCount","CrossingDetect","CrossingPolygon","CrossMatrix","Csc","Csch","CTCLossLayer","Cube","CubeRoot","Cubics","Cuboid","CuboidBox","Cumulant","CumulantGeneratingFunction","Cup","CupCap","Curl","CurlyDoubleQuote","CurlyQuote","CurrencyConvert","CurrentDate","CurrentImage","CurrentlySpeakingPacket","CurrentNotebookImage","CurrentScreenImage","CurrentValue","Curry","CurryApplied","CurvatureFlowFilter","CurveClosed","Cyan","CycleGraph","CycleIndexPolynomial","Cycles","CyclicGroup","Cyclotomic","Cylinder","CylinderBox","CylindricalDecomposition","D","DagumDistribution","DamData","DamerauLevenshteinDistance","DampingFactor","Darker","Dashed","Dashing","DatabaseConnect","DatabaseDisconnect","DatabaseReference","Databin","DatabinAdd","DatabinRemove","Databins","DatabinUpload","DataCompression","DataDistribution","DataRange","DataReversed","Dataset","DatasetDisplayPanel","DataStructure","DataStructureQ","Date","DateBounds","Dated","DateDelimiters","DateDifference","DatedUnit","DateFormat","DateFunction","DateHistogram","DateInterval","DateList","DateListLogPlot","DateListPlot","DateListStepPlot","DateObject","DateObjectQ","DateOverlapsQ","DatePattern","DatePlus","DateRange","DateReduction","DateString","DateTicksFormat","DateValue","DateWithinQ","DaubechiesWavelet","DavisDistribution","DawsonF","DayCount","DayCountConvention","DayHemisphere","DaylightQ","DayMatchQ","DayName","DayNightTerminator","DayPlus","DayRange","DayRound","DeBruijnGraph","DeBruijnSequence","Debug","DebugTag","Decapitalize","Decimal","DecimalForm","DeclareKnownSymbols","DeclarePackage","Decompose","DeconvolutionLayer","Decrement","Decrypt","DecryptFile","DedekindEta","DeepSpaceProbeData","Default","DefaultAxesStyle","DefaultBaseStyle","DefaultBoxStyle","DefaultButton","DefaultColor","DefaultControlPlacement","DefaultDuplicateCellStyle","DefaultDuration","DefaultElement","DefaultFaceGridsStyle","DefaultFieldHintStyle","DefaultFont","DefaultFontProperties","DefaultFormatType","DefaultFormatTypeForStyle","DefaultFrameStyle","DefaultFrameTicksStyle","DefaultGridLinesStyle","DefaultInlineFormatType","DefaultInputFormatType","DefaultLabelStyle","DefaultMenuStyle","DefaultNaturalLanguage","DefaultNewCellStyle","DefaultNewInlineCellStyle","DefaultNotebook","DefaultOptions","DefaultOutputFormatType","DefaultPrintPrecision","DefaultStyle","DefaultStyleDefinitions","DefaultTextFormatType","DefaultTextInlineFormatType","DefaultTicksStyle","DefaultTooltipStyle","DefaultValue","DefaultValues","Defer","DefineExternal","DefineInputStreamMethod","DefineOutputStreamMethod","DefineResourceFunction","Definition","Degree","DegreeCentrality","DegreeGraphDistribution","DegreeLexicographic","DegreeReverseLexicographic","DEigensystem","DEigenvalues","Deinitialization","Del","DelaunayMesh","Delayed","Deletable","Delete","DeleteAnomalies","DeleteBorderComponents","DeleteCases","DeleteChannel","DeleteCloudExpression","DeleteContents","DeleteDirectory","DeleteDuplicates","DeleteDuplicatesBy","DeleteFile","DeleteMissing","DeleteObject","DeletePermissionsKey","DeleteSearchIndex","DeleteSmallComponents","DeleteStopwords","DeleteWithContents","DeletionWarning","DelimitedArray","DelimitedSequence","Delimiter","DelimiterFlashTime","DelimiterMatching","Delimiters","DeliveryFunction","Dendrogram","Denominator","DensityGraphics","DensityHistogram","DensityPlot","DensityPlot3D","DependentVariables","Deploy","Deployed","Depth","DepthFirstScan","Derivative","DerivativeFilter","DerivedKey","DescriptorStateSpace","DesignMatrix","DestroyAfterEvaluation","Det","DeviceClose","DeviceConfigure","DeviceExecute","DeviceExecuteAsynchronous","DeviceObject","DeviceOpen","DeviceOpenQ","DeviceRead","DeviceReadBuffer","DeviceReadLatest","DeviceReadList","DeviceReadTimeSeries","Devices","DeviceStreams","DeviceWrite","DeviceWriteBuffer","DGaussianWavelet","DiacriticalPositioning","Diagonal","DiagonalizableMatrixQ","DiagonalMatrix","DiagonalMatrixQ","Dialog","DialogIndent","DialogInput","DialogLevel","DialogNotebook","DialogProlog","DialogReturn","DialogSymbols","Diamond","DiamondMatrix","DiceDissimilarity","DictionaryLookup","DictionaryWordQ","DifferenceDelta","DifferenceOrder","DifferenceQuotient","DifferenceRoot","DifferenceRootReduce","Differences","DifferentialD","DifferentialRoot","DifferentialRootReduce","DifferentiatorFilter","DigitalSignature","DigitBlock","DigitBlockMinimum","DigitCharacter","DigitCount","DigitQ","DihedralAngle","DihedralGroup","Dilation","DimensionalCombinations","DimensionalMeshComponents","DimensionReduce","DimensionReducerFunction","DimensionReduction","Dimensions","DiracComb","DiracDelta","DirectedEdge","DirectedEdges","DirectedGraph","DirectedGraphQ","DirectedInfinity","Direction","Directive","Directory","DirectoryName","DirectoryQ","DirectoryStack","DirichletBeta","DirichletCharacter","DirichletCondition","DirichletConvolve","DirichletDistribution","DirichletEta","DirichletL","DirichletLambda","DirichletTransform","DirichletWindow","DisableConsolePrintPacket","DisableFormatting","DiscreteAsymptotic","DiscreteChirpZTransform","DiscreteConvolve","DiscreteDelta","DiscreteHadamardTransform","DiscreteIndicator","DiscreteLimit","DiscreteLQEstimatorGains","DiscreteLQRegulatorGains","DiscreteLyapunovSolve","DiscreteMarkovProcess","DiscreteMaxLimit","DiscreteMinLimit","DiscretePlot","DiscretePlot3D","DiscreteRatio","DiscreteRiccatiSolve","DiscreteShift","DiscreteTimeModelQ","DiscreteUniformDistribution","DiscreteVariables","DiscreteWaveletData","DiscreteWaveletPacketTransform","DiscreteWaveletTransform","DiscretizeGraphics","DiscretizeRegion","Discriminant","DisjointQ","Disjunction","Disk","DiskBox","DiskMatrix","DiskSegment","Dispatch","DispatchQ","DispersionEstimatorFunction","Display","DisplayAllSteps","DisplayEndPacket","DisplayFlushImagePacket","DisplayForm","DisplayFunction","DisplayPacket","DisplayRules","DisplaySetSizePacket","DisplayString","DisplayTemporary","DisplayWith","DisplayWithRef","DisplayWithVariable","DistanceFunction","DistanceMatrix","DistanceTransform","Distribute","Distributed","DistributedContexts","DistributeDefinitions","DistributionChart","DistributionDomain","DistributionFitTest","DistributionParameterAssumptions","DistributionParameterQ","Dithering","Div","Divergence","Divide","DivideBy","Dividers","DivideSides","Divisible","Divisors","DivisorSigma","DivisorSum","DMSList","DMSString","Do","DockedCells","DocumentGenerator","DocumentGeneratorInformation","DocumentGeneratorInformationData","DocumentGenerators","DocumentNotebook","DocumentWeightingRules","Dodecahedron","DomainRegistrationInformation","DominantColors","DOSTextFormat","Dot","DotDashed","DotEqual","DotLayer","DotPlusLayer","Dotted","DoubleBracketingBar","DoubleContourIntegral","DoubleDownArrow","DoubleLeftArrow","DoubleLeftRightArrow","DoubleLeftTee","DoubleLongLeftArrow","DoubleLongLeftRightArrow","DoubleLongRightArrow","DoubleRightArrow","DoubleRightTee","DoubleUpArrow","DoubleUpDownArrow","DoubleVerticalBar","DoublyInfinite","Down","DownArrow","DownArrowBar","DownArrowUpArrow","DownLeftRightVector","DownLeftTeeVector","DownLeftVector","DownLeftVectorBar","DownRightTeeVector","DownRightVector","DownRightVectorBar","Downsample","DownTee","DownTeeArrow","DownValues","DragAndDrop","DrawEdges","DrawFrontFaces","DrawHighlighted","Drop","DropoutLayer","DSolve","DSolveValue","Dt","DualLinearProgramming","DualPolyhedron","DualSystemsModel","DumpGet","DumpSave","DuplicateFreeQ","Duration","Dynamic","DynamicBox","DynamicBoxOptions","DynamicEvaluationTimeout","DynamicGeoGraphics","DynamicImage","DynamicLocation","DynamicModule","DynamicModuleBox","DynamicModuleBoxOptions","DynamicModuleParent","DynamicModuleValues","DynamicName","DynamicNamespace","DynamicReference","DynamicSetting","DynamicUpdating","DynamicWrapper","DynamicWrapperBox","DynamicWrapperBoxOptions","E","EarthImpactData","EarthquakeData","EccentricityCentrality","Echo","EchoFunction","EclipseType","EdgeAdd","EdgeBetweennessCentrality","EdgeCapacity","EdgeCapForm","EdgeColor","EdgeConnectivity","EdgeContract","EdgeCost","EdgeCount","EdgeCoverQ","EdgeCycleMatrix","EdgeDashing","EdgeDelete","EdgeDetect","EdgeForm","EdgeIndex","EdgeJoinForm","EdgeLabeling","EdgeLabels","EdgeLabelStyle","EdgeList","EdgeOpacity","EdgeQ","EdgeRenderingFunction","EdgeRules","EdgeShapeFunction","EdgeStyle","EdgeTaggedGraph","EdgeTaggedGraphQ","EdgeTags","EdgeThickness","EdgeWeight","EdgeWeightedGraphQ","Editable","EditButtonSettings","EditCellTagsSettings","EditDistance","EffectiveInterest","Eigensystem","Eigenvalues","EigenvectorCentrality","Eigenvectors","Element","ElementData","ElementwiseLayer","ElidedForms","Eliminate","EliminationOrder","Ellipsoid","EllipticE","EllipticExp","EllipticExpPrime","EllipticF","EllipticFilterModel","EllipticK","EllipticLog","EllipticNomeQ","EllipticPi","EllipticReducedHalfPeriods","EllipticTheta","EllipticThetaPrime","EmbedCode","EmbeddedHTML","EmbeddedService","EmbeddingLayer","EmbeddingObject","EmitSound","EmphasizeSyntaxErrors","EmpiricalDistribution","Empty","EmptyGraphQ","EmptyRegion","EnableConsolePrintPacket","Enabled","Encode","Encrypt","EncryptedObject","EncryptFile","End","EndAdd","EndDialogPacket","EndFrontEndInteractionPacket","EndOfBuffer","EndOfFile","EndOfLine","EndOfString","EndPackage","EngineEnvironment","EngineeringForm","Enter","EnterExpressionPacket","EnterTextPacket","Entity","EntityClass","EntityClassList","EntityCopies","EntityFunction","EntityGroup","EntityInstance","EntityList","EntityPrefetch","EntityProperties","EntityProperty","EntityPropertyClass","EntityRegister","EntityStore","EntityStores","EntityTypeName","EntityUnregister","EntityValue","Entropy","EntropyFilter","Environment","Epilog","EpilogFunction","Equal","EqualColumns","EqualRows","EqualTilde","EqualTo","EquatedTo","Equilibrium","EquirippleFilterKernel","Equivalent","Erf","Erfc","Erfi","ErlangB","ErlangC","ErlangDistribution","Erosion","ErrorBox","ErrorBoxOptions","ErrorNorm","ErrorPacket","ErrorsDialogSettings","EscapeRadius","EstimatedBackground","EstimatedDistribution","EstimatedProcess","EstimatorGains","EstimatorRegulator","EuclideanDistance","EulerAngles","EulerCharacteristic","EulerE","EulerGamma","EulerianGraphQ","EulerMatrix","EulerPhi","Evaluatable","Evaluate","Evaluated","EvaluatePacket","EvaluateScheduledTask","EvaluationBox","EvaluationCell","EvaluationCompletionAction","EvaluationData","EvaluationElements","EvaluationEnvironment","EvaluationMode","EvaluationMonitor","EvaluationNotebook","EvaluationObject","EvaluationOrder","Evaluator","EvaluatorNames","EvenQ","EventData","EventEvaluator","EventHandler","EventHandlerTag","EventLabels","EventSeries","ExactBlackmanWindow","ExactNumberQ","ExactRootIsolation","ExampleData","Except","ExcludedForms","ExcludedLines","ExcludedPhysicalQuantities","ExcludePods","Exclusions","ExclusionsStyle","Exists","Exit","ExitDialog","ExoplanetData","Exp","Expand","ExpandAll","ExpandDenominator","ExpandFileName","ExpandNumerator","Expectation","ExpectationE","ExpectedValue","ExpGammaDistribution","ExpIntegralE","ExpIntegralEi","ExpirationDate","Exponent","ExponentFunction","ExponentialDistribution","ExponentialFamily","ExponentialGeneratingFunction","ExponentialMovingAverage","ExponentialPowerDistribution","ExponentPosition","ExponentStep","Export","ExportAutoReplacements","ExportByteArray","ExportForm","ExportPacket","ExportString","Expression","ExpressionCell","ExpressionGraph","ExpressionPacket","ExpressionUUID","ExpToTrig","ExtendedEntityClass","ExtendedGCD","Extension","ExtentElementFunction","ExtentMarkers","ExtentSize","ExternalBundle","ExternalCall","ExternalDataCharacterEncoding","ExternalEvaluate","ExternalFunction","ExternalFunctionName","ExternalIdentifier","ExternalObject","ExternalOptions","ExternalSessionObject","ExternalSessions","ExternalStorageBase","ExternalStorageDownload","ExternalStorageGet","ExternalStorageObject","ExternalStoragePut","ExternalStorageUpload","ExternalTypeSignature","ExternalValue","Extract","ExtractArchive","ExtractLayer","ExtractPacletArchive","ExtremeValueDistribution","FaceAlign","FaceForm","FaceGrids","FaceGridsStyle","FacialFeatures","Factor","FactorComplete","Factorial","Factorial2","FactorialMoment","FactorialMomentGeneratingFunction","FactorialPower","FactorInteger","FactorList","FactorSquareFree","FactorSquareFreeList","FactorTerms","FactorTermsList","Fail","Failure","FailureAction","FailureDistribution","FailureQ","False","FareySequence","FARIMAProcess","FeatureDistance","FeatureExtract","FeatureExtraction","FeatureExtractor","FeatureExtractorFunction","FeatureNames","FeatureNearest","FeatureSpacePlot","FeatureSpacePlot3D","FeatureTypes","FEDisableConsolePrintPacket","FeedbackLinearize","FeedbackSector","FeedbackSectorStyle","FeedbackType","FEEnableConsolePrintPacket","FetalGrowthData","Fibonacci","Fibonorial","FieldCompletionFunction","FieldHint","FieldHintStyle","FieldMasked","FieldSize","File","FileBaseName","FileByteCount","FileConvert","FileDate","FileExistsQ","FileExtension","FileFormat","FileHandler","FileHash","FileInformation","FileName","FileNameDepth","FileNameDialogSettings","FileNameDrop","FileNameForms","FileNameJoin","FileNames","FileNameSetter","FileNameSplit","FileNameTake","FilePrint","FileSize","FileSystemMap","FileSystemScan","FileTemplate","FileTemplateApply","FileType","FilledCurve","FilledCurveBox","FilledCurveBoxOptions","Filling","FillingStyle","FillingTransform","FilteredEntityClass","FilterRules","FinancialBond","FinancialData","FinancialDerivative","FinancialIndicator","Find","FindAnomalies","FindArgMax","FindArgMin","FindChannels","FindClique","FindClusters","FindCookies","FindCurvePath","FindCycle","FindDevices","FindDistribution","FindDistributionParameters","FindDivisions","FindEdgeCover","FindEdgeCut","FindEdgeIndependentPaths","FindEquationalProof","FindEulerianCycle","FindExternalEvaluators","FindFaces","FindFile","FindFit","FindFormula","FindFundamentalCycles","FindGeneratingFunction","FindGeoLocation","FindGeometricConjectures","FindGeometricTransform","FindGraphCommunities","FindGraphIsomorphism","FindGraphPartition","FindHamiltonianCycle","FindHamiltonianPath","FindHiddenMarkovStates","FindImageText","FindIndependentEdgeSet","FindIndependentVertexSet","FindInstance","FindIntegerNullVector","FindKClan","FindKClique","FindKClub","FindKPlex","FindLibrary","FindLinearRecurrence","FindList","FindMatchingColor","FindMaximum","FindMaximumCut","FindMaximumFlow","FindMaxValue","FindMeshDefects","FindMinimum","FindMinimumCostFlow","FindMinimumCut","FindMinValue","FindMoleculeSubstructure","FindPath","FindPeaks","FindPermutation","FindPostmanTour","FindProcessParameters","FindRepeat","FindRoot","FindSequenceFunction","FindSettings","FindShortestPath","FindShortestTour","FindSpanningTree","FindSystemModelEquilibrium","FindTextualAnswer","FindThreshold","FindTransientRepeat","FindVertexCover","FindVertexCut","FindVertexIndependentPaths","Fine","FinishDynamic","FiniteAbelianGroupCount","FiniteGroupCount","FiniteGroupData","First","FirstCase","FirstPassageTimeDistribution","FirstPosition","FischerGroupFi22","FischerGroupFi23","FischerGroupFi24Prime","FisherHypergeometricDistribution","FisherRatioTest","FisherZDistribution","Fit","FitAll","FitRegularization","FittedModel","FixedOrder","FixedPoint","FixedPointList","FlashSelection","Flat","Flatten","FlattenAt","FlattenLayer","FlatTopWindow","FlipView","Floor","FlowPolynomial","FlushPrintOutputPacket","Fold","FoldList","FoldPair","FoldPairList","FollowRedirects","Font","FontColor","FontFamily","FontForm","FontName","FontOpacity","FontPostScriptName","FontProperties","FontReencoding","FontSize","FontSlant","FontSubstitutions","FontTracking","FontVariations","FontWeight","For","ForAll","ForceVersionInstall","Format","FormatRules","FormatType","FormatTypeAutoConvert","FormatValues","FormBox","FormBoxOptions","FormControl","FormFunction","FormLayoutFunction","FormObject","FormPage","FormTheme","FormulaData","FormulaLookup","FortranForm","Forward","ForwardBackward","Fourier","FourierCoefficient","FourierCosCoefficient","FourierCosSeries","FourierCosTransform","FourierDCT","FourierDCTFilter","FourierDCTMatrix","FourierDST","FourierDSTMatrix","FourierMatrix","FourierParameters","FourierSequenceTransform","FourierSeries","FourierSinCoefficient","FourierSinSeries","FourierSinTransform","FourierTransform","FourierTrigSeries","FractionalBrownianMotionProcess","FractionalGaussianNoiseProcess","FractionalPart","FractionBox","FractionBoxOptions","FractionLine","Frame","FrameBox","FrameBoxOptions","Framed","FrameInset","FrameLabel","Frameless","FrameMargins","FrameRate","FrameStyle","FrameTicks","FrameTicksStyle","FRatioDistribution","FrechetDistribution","FreeQ","FrenetSerretSystem","FrequencySamplingFilterKernel","FresnelC","FresnelF","FresnelG","FresnelS","Friday","FrobeniusNumber","FrobeniusSolve","FromAbsoluteTime","FromCharacterCode","FromCoefficientRules","FromContinuedFraction","FromDate","FromDigits","FromDMS","FromEntity","FromJulianDate","FromLetterNumber","FromPolarCoordinates","FromRomanNumeral","FromSphericalCoordinates","FromUnixTime","Front","FrontEndDynamicExpression","FrontEndEventActions","FrontEndExecute","FrontEndObject","FrontEndResource","FrontEndResourceString","FrontEndStackSize","FrontEndToken","FrontEndTokenExecute","FrontEndValueCache","FrontEndVersion","FrontFaceColor","FrontFaceOpacity","Full","FullAxes","FullDefinition","FullForm","FullGraphics","FullInformationOutputRegulator","FullOptions","FullRegion","FullSimplify","Function","FunctionCompile","FunctionCompileExport","FunctionCompileExportByteArray","FunctionCompileExportLibrary","FunctionCompileExportString","FunctionDomain","FunctionExpand","FunctionInterpolation","FunctionPeriod","FunctionRange","FunctionSpace","FussellVeselyImportance","GaborFilter","GaborMatrix","GaborWavelet","GainMargins","GainPhaseMargins","GalaxyData","GalleryView","Gamma","GammaDistribution","GammaRegularized","GapPenalty","GARCHProcess","GatedRecurrentLayer","Gather","GatherBy","GaugeFaceElementFunction","GaugeFaceStyle","GaugeFrameElementFunction","GaugeFrameSize","GaugeFrameStyle","GaugeLabels","GaugeMarkers","GaugeStyle","GaussianFilter","GaussianIntegers","GaussianMatrix","GaussianOrthogonalMatrixDistribution","GaussianSymplecticMatrixDistribution","GaussianUnitaryMatrixDistribution","GaussianWindow","GCD","GegenbauerC","General","GeneralizedLinearModelFit","GenerateAsymmetricKeyPair","GenerateConditions","GeneratedCell","GeneratedDocumentBinding","GenerateDerivedKey","GenerateDigitalSignature","GenerateDocument","GeneratedParameters","GeneratedQuantityMagnitudes","GenerateFileSignature","GenerateHTTPResponse","GenerateSecuredAuthenticationKey","GenerateSymmetricKey","GeneratingFunction","GeneratorDescription","GeneratorHistoryLength","GeneratorOutputType","Generic","GenericCylindricalDecomposition","GenomeData","GenomeLookup","GeoAntipode","GeoArea","GeoArraySize","GeoBackground","GeoBoundingBox","GeoBounds","GeoBoundsRegion","GeoBubbleChart","GeoCenter","GeoCircle","GeoContourPlot","GeoDensityPlot","GeodesicClosing","GeodesicDilation","GeodesicErosion","GeodesicOpening","GeoDestination","GeodesyData","GeoDirection","GeoDisk","GeoDisplacement","GeoDistance","GeoDistanceList","GeoElevationData","GeoEntities","GeoGraphics","GeogravityModelData","GeoGridDirectionDifference","GeoGridLines","GeoGridLinesStyle","GeoGridPosition","GeoGridRange","GeoGridRangePadding","GeoGridUnitArea","GeoGridUnitDistance","GeoGridVector","GeoGroup","GeoHemisphere","GeoHemisphereBoundary","GeoHistogram","GeoIdentify","GeoImage","GeoLabels","GeoLength","GeoListPlot","GeoLocation","GeologicalPeriodData","GeomagneticModelData","GeoMarker","GeometricAssertion","GeometricBrownianMotionProcess","GeometricDistribution","GeometricMean","GeometricMeanFilter","GeometricOptimization","GeometricScene","GeometricTransformation","GeometricTransformation3DBox","GeometricTransformation3DBoxOptions","GeometricTransformationBox","GeometricTransformationBoxOptions","GeoModel","GeoNearest","GeoPath","GeoPosition","GeoPositionENU","GeoPositionXYZ","GeoProjection","GeoProjectionData","GeoRange","GeoRangePadding","GeoRegionValuePlot","GeoResolution","GeoScaleBar","GeoServer","GeoSmoothHistogram","GeoStreamPlot","GeoStyling","GeoStylingImageFunction","GeoVariant","GeoVector","GeoVectorENU","GeoVectorPlot","GeoVectorXYZ","GeoVisibleRegion","GeoVisibleRegionBoundary","GeoWithinQ","GeoZoomLevel","GestureHandler","GestureHandlerTag","Get","GetBoundingBoxSizePacket","GetContext","GetEnvironment","GetFileName","GetFrontEndOptionsDataPacket","GetLinebreakInformationPacket","GetMenusPacket","GetPageBreakInformationPacket","Glaisher","GlobalClusteringCoefficient","GlobalPreferences","GlobalSession","Glow","GoldenAngle","GoldenRatio","GompertzMakehamDistribution","GoochShading","GoodmanKruskalGamma","GoodmanKruskalGammaTest","Goto","Grad","Gradient","GradientFilter","GradientOrientationFilter","GrammarApply","GrammarRules","GrammarToken","Graph","Graph3D","GraphAssortativity","GraphAutomorphismGroup","GraphCenter","GraphComplement","GraphData","GraphDensity","GraphDiameter","GraphDifference","GraphDisjointUnion","GraphDistance","GraphDistanceMatrix","GraphElementData","GraphEmbedding","GraphHighlight","GraphHighlightStyle","GraphHub","Graphics","Graphics3D","Graphics3DBox","Graphics3DBoxOptions","GraphicsArray","GraphicsBaseline","GraphicsBox","GraphicsBoxOptions","GraphicsColor","GraphicsColumn","GraphicsComplex","GraphicsComplex3DBox","GraphicsComplex3DBoxOptions","GraphicsComplexBox","GraphicsComplexBoxOptions","GraphicsContents","GraphicsData","GraphicsGrid","GraphicsGridBox","GraphicsGroup","GraphicsGroup3DBox","GraphicsGroup3DBoxOptions","GraphicsGroupBox","GraphicsGroupBoxOptions","GraphicsGrouping","GraphicsHighlightColor","GraphicsRow","GraphicsSpacing","GraphicsStyle","GraphIntersection","GraphLayout","GraphLinkEfficiency","GraphPeriphery","GraphPlot","GraphPlot3D","GraphPower","GraphPropertyDistribution","GraphQ","GraphRadius","GraphReciprocity","GraphRoot","GraphStyle","GraphUnion","Gray","GrayLevel","Greater","GreaterEqual","GreaterEqualLess","GreaterEqualThan","GreaterFullEqual","GreaterGreater","GreaterLess","GreaterSlantEqual","GreaterThan","GreaterTilde","Green","GreenFunction","Grid","GridBaseline","GridBox","GridBoxAlignment","GridBoxBackground","GridBoxDividers","GridBoxFrame","GridBoxItemSize","GridBoxItemStyle","GridBoxOptions","GridBoxSpacings","GridCreationSettings","GridDefaultElement","GridElementStyleOptions","GridFrame","GridFrameMargins","GridGraph","GridLines","GridLinesStyle","GroebnerBasis","GroupActionBase","GroupBy","GroupCentralizer","GroupElementFromWord","GroupElementPosition","GroupElementQ","GroupElements","GroupElementToWord","GroupGenerators","Groupings","GroupMultiplicationTable","GroupOrbits","GroupOrder","GroupPageBreakWithin","GroupSetwiseStabilizer","GroupStabilizer","GroupStabilizerChain","GroupTogetherGrouping","GroupTogetherNestedGrouping","GrowCutComponents","Gudermannian","GuidedFilter","GumbelDistribution","HaarWavelet","HadamardMatrix","HalfLine","HalfNormalDistribution","HalfPlane","HalfSpace","HalftoneShading","HamiltonianGraphQ","HammingDistance","HammingWindow","HandlerFunctions","HandlerFunctionsKeys","HankelH1","HankelH2","HankelMatrix","HankelTransform","HannPoissonWindow","HannWindow","HaradaNortonGroupHN","HararyGraph","HarmonicMean","HarmonicMeanFilter","HarmonicNumber","Hash","HatchFilling","HatchShading","Haversine","HazardFunction","Head","HeadCompose","HeaderAlignment","HeaderBackground","HeaderDisplayFunction","HeaderLines","HeaderSize","HeaderStyle","Heads","HeavisideLambda","HeavisidePi","HeavisideTheta","HeldGroupHe","HeldPart","HelpBrowserLookup","HelpBrowserNotebook","HelpBrowserSettings","Here","HermiteDecomposition","HermiteH","HermitianMatrixQ","HessenbergDecomposition","Hessian","HeunB","HeunBPrime","HeunC","HeunCPrime","HeunD","HeunDPrime","HeunG","HeunGPrime","HeunT","HeunTPrime","HexadecimalCharacter","Hexahedron","HexahedronBox","HexahedronBoxOptions","HiddenItems","HiddenMarkovProcess","HiddenSurface","Highlighted","HighlightGraph","HighlightImage","HighlightMesh","HighpassFilter","HigmanSimsGroupHS","HilbertCurve","HilbertFilter","HilbertMatrix","Histogram","Histogram3D","HistogramDistribution","HistogramList","HistogramTransform","HistogramTransformInterpolation","HistoricalPeriodData","HitMissTransform","HITSCentrality","HjorthDistribution","HodgeDual","HoeffdingD","HoeffdingDTest","Hold","HoldAll","HoldAllComplete","HoldComplete","HoldFirst","HoldForm","HoldPattern","HoldRest","HolidayCalendar","HomeDirectory","HomePage","Horizontal","HorizontalForm","HorizontalGauge","HorizontalScrollPosition","HornerForm","HostLookup","HotellingTSquareDistribution","HoytDistribution","HTMLSave","HTTPErrorResponse","HTTPRedirect","HTTPRequest","HTTPRequestData","HTTPResponse","Hue","HumanGrowthData","HumpDownHump","HumpEqual","HurwitzLerchPhi","HurwitzZeta","HyperbolicDistribution","HypercubeGraph","HyperexponentialDistribution","Hyperfactorial","Hypergeometric0F1","Hypergeometric0F1Regularized","Hypergeometric1F1","Hypergeometric1F1Regularized","Hypergeometric2F1","Hypergeometric2F1Regularized","HypergeometricDistribution","HypergeometricPFQ","HypergeometricPFQRegularized","HypergeometricU","Hyperlink","HyperlinkAction","HyperlinkCreationSettings","Hyperplane","Hyphenation","HyphenationOptions","HypoexponentialDistribution","HypothesisTestData","I","IconData","Iconize","IconizedObject","IconRules","Icosahedron","Identity","IdentityMatrix","If","IgnoreCase","IgnoreDiacritics","IgnorePunctuation","IgnoreSpellCheck","IgnoringInactive","Im","Image","Image3D","Image3DProjection","Image3DSlices","ImageAccumulate","ImageAdd","ImageAdjust","ImageAlign","ImageApply","ImageApplyIndexed","ImageAspectRatio","ImageAssemble","ImageAugmentationLayer","ImageBoundingBoxes","ImageCache","ImageCacheValid","ImageCapture","ImageCaptureFunction","ImageCases","ImageChannels","ImageClip","ImageCollage","ImageColorSpace","ImageCompose","ImageContainsQ","ImageContents","ImageConvolve","ImageCooccurrence","ImageCorners","ImageCorrelate","ImageCorrespondingPoints","ImageCrop","ImageData","ImageDeconvolve","ImageDemosaic","ImageDifference","ImageDimensions","ImageDisplacements","ImageDistance","ImageEffect","ImageExposureCombine","ImageFeatureTrack","ImageFileApply","ImageFileFilter","ImageFileScan","ImageFilter","ImageFocusCombine","ImageForestingComponents","ImageFormattingWidth","ImageForwardTransformation","ImageGraphics","ImageHistogram","ImageIdentify","ImageInstanceQ","ImageKeypoints","ImageLabels","ImageLegends","ImageLevels","ImageLines","ImageMargins","ImageMarker","ImageMarkers","ImageMeasurements","ImageMesh","ImageMultiply","ImageOffset","ImagePad","ImagePadding","ImagePartition","ImagePeriodogram","ImagePerspectiveTransformation","ImagePosition","ImagePreviewFunction","ImagePyramid","ImagePyramidApply","ImageQ","ImageRangeCache","ImageRecolor","ImageReflect","ImageRegion","ImageResize","ImageResolution","ImageRestyle","ImageRotate","ImageRotated","ImageSaliencyFilter","ImageScaled","ImageScan","ImageSize","ImageSizeAction","ImageSizeCache","ImageSizeMultipliers","ImageSizeRaw","ImageSubtract","ImageTake","ImageTransformation","ImageTrim","ImageType","ImageValue","ImageValuePositions","ImagingDevice","ImplicitRegion","Implies","Import","ImportAutoReplacements","ImportByteArray","ImportOptions","ImportString","ImprovementImportance","In","Inactivate","Inactive","IncidenceGraph","IncidenceList","IncidenceMatrix","IncludeAromaticBonds","IncludeConstantBasis","IncludeDefinitions","IncludeDirectories","IncludeFileExtension","IncludeGeneratorTasks","IncludeHydrogens","IncludeInflections","IncludeMetaInformation","IncludePods","IncludeQuantities","IncludeRelatedTables","IncludeSingularTerm","IncludeWindowTimes","Increment","IndefiniteMatrixQ","Indent","IndentingNewlineSpacings","IndentMaxFraction","IndependenceTest","IndependentEdgeSetQ","IndependentPhysicalQuantity","IndependentUnit","IndependentUnitDimension","IndependentVertexSetQ","Indeterminate","IndeterminateThreshold","IndexCreationOptions","Indexed","IndexEdgeTaggedGraph","IndexGraph","IndexTag","Inequality","InexactNumberQ","InexactNumbers","InfiniteFuture","InfiniteLine","InfinitePast","InfinitePlane","Infinity","Infix","InflationAdjust","InflationMethod","Information","InformationData","InformationDataGrid","Inherited","InheritScope","InhomogeneousPoissonProcess","InitialEvaluationHistory","Initialization","InitializationCell","InitializationCellEvaluation","InitializationCellWarning","InitializationObjects","InitializationValue","Initialize","InitialSeeding","InlineCounterAssignments","InlineCounterIncrements","InlineRules","Inner","InnerPolygon","InnerPolyhedron","Inpaint","Input","InputAliases","InputAssumptions","InputAutoReplacements","InputField","InputFieldBox","InputFieldBoxOptions","InputForm","InputGrouping","InputNamePacket","InputNotebook","InputPacket","InputSettings","InputStream","InputString","InputStringPacket","InputToBoxFormPacket","Insert","InsertionFunction","InsertionPointObject","InsertLinebreaks","InsertResults","Inset","Inset3DBox","Inset3DBoxOptions","InsetBox","InsetBoxOptions","Insphere","Install","InstallService","InstanceNormalizationLayer","InString","Integer","IntegerDigits","IntegerExponent","IntegerLength","IntegerName","IntegerPart","IntegerPartitions","IntegerQ","IntegerReverse","Integers","IntegerString","Integral","Integrate","Interactive","InteractiveTradingChart","Interlaced","Interleaving","InternallyBalancedDecomposition","InterpolatingFunction","InterpolatingPolynomial","Interpolation","InterpolationOrder","InterpolationPoints","InterpolationPrecision","Interpretation","InterpretationBox","InterpretationBoxOptions","InterpretationFunction","Interpreter","InterpretTemplate","InterquartileRange","Interrupt","InterruptSettings","IntersectedEntityClass","IntersectingQ","Intersection","Interval","IntervalIntersection","IntervalMarkers","IntervalMarkersStyle","IntervalMemberQ","IntervalSlider","IntervalUnion","Into","Inverse","InverseBetaRegularized","InverseCDF","InverseChiSquareDistribution","InverseContinuousWaveletTransform","InverseDistanceTransform","InverseEllipticNomeQ","InverseErf","InverseErfc","InverseFourier","InverseFourierCosTransform","InverseFourierSequenceTransform","InverseFourierSinTransform","InverseFourierTransform","InverseFunction","InverseFunctions","InverseGammaDistribution","InverseGammaRegularized","InverseGaussianDistribution","InverseGudermannian","InverseHankelTransform","InverseHaversine","InverseImagePyramid","InverseJacobiCD","InverseJacobiCN","InverseJacobiCS","InverseJacobiDC","InverseJacobiDN","InverseJacobiDS","InverseJacobiNC","InverseJacobiND","InverseJacobiNS","InverseJacobiSC","InverseJacobiSD","InverseJacobiSN","InverseLaplaceTransform","InverseMellinTransform","InversePermutation","InverseRadon","InverseRadonTransform","InverseSeries","InverseShortTimeFourier","InverseSpectrogram","InverseSurvivalFunction","InverseTransformedRegion","InverseWaveletTransform","InverseWeierstrassP","InverseWishartMatrixDistribution","InverseZTransform","Invisible","InvisibleApplication","InvisibleTimes","IPAddress","IrreduciblePolynomialQ","IslandData","IsolatingInterval","IsomorphicGraphQ","IsotopeData","Italic","Item","ItemAspectRatio","ItemBox","ItemBoxOptions","ItemDisplayFunction","ItemSize","ItemStyle","ItoProcess","JaccardDissimilarity","JacobiAmplitude","Jacobian","JacobiCD","JacobiCN","JacobiCS","JacobiDC","JacobiDN","JacobiDS","JacobiNC","JacobiND","JacobiNS","JacobiP","JacobiSC","JacobiSD","JacobiSN","JacobiSymbol","JacobiZeta","JankoGroupJ1","JankoGroupJ2","JankoGroupJ3","JankoGroupJ4","JarqueBeraALMTest","JohnsonDistribution","Join","JoinAcross","Joined","JoinedCurve","JoinedCurveBox","JoinedCurveBoxOptions","JoinForm","JordanDecomposition","JordanModelDecomposition","JulianDate","JuliaSetBoettcher","JuliaSetIterationCount","JuliaSetPlot","JuliaSetPoints","K","KagiChart","KaiserBesselWindow","KaiserWindow","KalmanEstimator","KalmanFilter","KarhunenLoeveDecomposition","KaryTree","KatzCentrality","KCoreComponents","KDistribution","KEdgeConnectedComponents","KEdgeConnectedGraphQ","KeepExistingVersion","KelvinBei","KelvinBer","KelvinKei","KelvinKer","KendallTau","KendallTauTest","KernelExecute","KernelFunction","KernelMixtureDistribution","KernelObject","Kernels","Ket","Key","KeyCollisionFunction","KeyComplement","KeyDrop","KeyDropFrom","KeyExistsQ","KeyFreeQ","KeyIntersection","KeyMap","KeyMemberQ","KeypointStrength","Keys","KeySelect","KeySort","KeySortBy","KeyTake","KeyUnion","KeyValueMap","KeyValuePattern","Khinchin","KillProcess","KirchhoffGraph","KirchhoffMatrix","KleinInvariantJ","KnapsackSolve","KnightTourGraph","KnotData","KnownUnitQ","KochCurve","KolmogorovSmirnovTest","KroneckerDelta","KroneckerModelDecomposition","KroneckerProduct","KroneckerSymbol","KuiperTest","KumaraswamyDistribution","Kurtosis","KuwaharaFilter","KVertexConnectedComponents","KVertexConnectedGraphQ","LABColor","Label","Labeled","LabeledSlider","LabelingFunction","LabelingSize","LabelStyle","LabelVisibility","LaguerreL","LakeData","LambdaComponents","LambertW","LaminaData","LanczosWindow","LandauDistribution","Language","LanguageCategory","LanguageData","LanguageIdentify","LanguageOptions","LaplaceDistribution","LaplaceTransform","Laplacian","LaplacianFilter","LaplacianGaussianFilter","Large","Larger","Last","Latitude","LatitudeLongitude","LatticeData","LatticeReduce","Launch","LaunchKernels","LayeredGraphPlot","LayerSizeFunction","LayoutInformation","LCHColor","LCM","LeaderSize","LeafCount","LeapYearQ","LearnDistribution","LearnedDistribution","LearningRate","LearningRateMultipliers","LeastSquares","LeastSquaresFilterKernel","Left","LeftArrow","LeftArrowBar","LeftArrowRightArrow","LeftDownTeeVector","LeftDownVector","LeftDownVectorBar","LeftRightArrow","LeftRightVector","LeftTee","LeftTeeArrow","LeftTeeVector","LeftTriangle","LeftTriangleBar","LeftTriangleEqual","LeftUpDownVector","LeftUpTeeVector","LeftUpVector","LeftUpVectorBar","LeftVector","LeftVectorBar","LegendAppearance","Legended","LegendFunction","LegendLabel","LegendLayout","LegendMargins","LegendMarkers","LegendMarkerSize","LegendreP","LegendreQ","LegendreType","Length","LengthWhile","LerchPhi","Less","LessEqual","LessEqualGreater","LessEqualThan","LessFullEqual","LessGreater","LessLess","LessSlantEqual","LessThan","LessTilde","LetterCharacter","LetterCounts","LetterNumber","LetterQ","Level","LeveneTest","LeviCivitaTensor","LevyDistribution","Lexicographic","LibraryDataType","LibraryFunction","LibraryFunctionError","LibraryFunctionInformation","LibraryFunctionLoad","LibraryFunctionUnload","LibraryLoad","LibraryUnload","LicenseID","LiftingFilterData","LiftingWaveletTransform","LightBlue","LightBrown","LightCyan","Lighter","LightGray","LightGreen","Lighting","LightingAngle","LightMagenta","LightOrange","LightPink","LightPurple","LightRed","LightSources","LightYellow","Likelihood","Limit","LimitsPositioning","LimitsPositioningTokens","LindleyDistribution","Line","Line3DBox","Line3DBoxOptions","LinearFilter","LinearFractionalOptimization","LinearFractionalTransform","LinearGradientImage","LinearizingTransformationData","LinearLayer","LinearModelFit","LinearOffsetFunction","LinearOptimization","LinearProgramming","LinearRecurrence","LinearSolve","LinearSolveFunction","LineBox","LineBoxOptions","LineBreak","LinebreakAdjustments","LineBreakChart","LinebreakSemicolonWeighting","LineBreakWithin","LineColor","LineGraph","LineIndent","LineIndentMaxFraction","LineIntegralConvolutionPlot","LineIntegralConvolutionScale","LineLegend","LineOpacity","LineSpacing","LineWrapParts","LinkActivate","LinkClose","LinkConnect","LinkConnectedQ","LinkCreate","LinkError","LinkFlush","LinkFunction","LinkHost","LinkInterrupt","LinkLaunch","LinkMode","LinkObject","LinkOpen","LinkOptions","LinkPatterns","LinkProtocol","LinkRankCentrality","LinkRead","LinkReadHeld","LinkReadyQ","Links","LinkService","LinkWrite","LinkWriteHeld","LiouvilleLambda","List","Listable","ListAnimate","ListContourPlot","ListContourPlot3D","ListConvolve","ListCorrelate","ListCurvePathPlot","ListDeconvolve","ListDensityPlot","ListDensityPlot3D","Listen","ListFormat","ListFourierSequenceTransform","ListInterpolation","ListLineIntegralConvolutionPlot","ListLinePlot","ListLogLinearPlot","ListLogLogPlot","ListLogPlot","ListPicker","ListPickerBox","ListPickerBoxBackground","ListPickerBoxOptions","ListPlay","ListPlot","ListPlot3D","ListPointPlot3D","ListPolarPlot","ListQ","ListSliceContourPlot3D","ListSliceDensityPlot3D","ListSliceVectorPlot3D","ListStepPlot","ListStreamDensityPlot","ListStreamPlot","ListSurfacePlot3D","ListVectorDensityPlot","ListVectorPlot","ListVectorPlot3D","ListZTransform","Literal","LiteralSearch","LocalAdaptiveBinarize","LocalCache","LocalClusteringCoefficient","LocalizeDefinitions","LocalizeVariables","LocalObject","LocalObjects","LocalResponseNormalizationLayer","LocalSubmit","LocalSymbol","LocalTime","LocalTimeZone","LocationEquivalenceTest","LocationTest","Locator","LocatorAutoCreate","LocatorBox","LocatorBoxOptions","LocatorCentering","LocatorPane","LocatorPaneBox","LocatorPaneBoxOptions","LocatorRegion","Locked","Log","Log10","Log2","LogBarnesG","LogGamma","LogGammaDistribution","LogicalExpand","LogIntegral","LogisticDistribution","LogisticSigmoid","LogitModelFit","LogLikelihood","LogLinearPlot","LogLogisticDistribution","LogLogPlot","LogMultinormalDistribution","LogNormalDistribution","LogPlot","LogRankTest","LogSeriesDistribution","LongEqual","Longest","LongestCommonSequence","LongestCommonSequencePositions","LongestCommonSubsequence","LongestCommonSubsequencePositions","LongestMatch","LongestOrderedSequence","LongForm","Longitude","LongLeftArrow","LongLeftRightArrow","LongRightArrow","LongShortTermMemoryLayer","Lookup","Loopback","LoopFreeGraphQ","Looping","LossFunction","LowerCaseQ","LowerLeftArrow","LowerRightArrow","LowerTriangularize","LowerTriangularMatrixQ","LowpassFilter","LQEstimatorGains","LQGRegulator","LQOutputRegulatorGains","LQRegulatorGains","LUBackSubstitution","LucasL","LuccioSamiComponents","LUDecomposition","LunarEclipse","LUVColor","LyapunovSolve","LyonsGroupLy","MachineID","MachineName","MachineNumberQ","MachinePrecision","MacintoshSystemPageSetup","Magenta","Magnification","Magnify","MailAddressValidation","MailExecute","MailFolder","MailItem","MailReceiverFunction","MailResponseFunction","MailSearch","MailServerConnect","MailServerConnection","MailSettings","MainSolve","MaintainDynamicCaches","Majority","MakeBoxes","MakeExpression","MakeRules","ManagedLibraryExpressionID","ManagedLibraryExpressionQ","MandelbrotSetBoettcher","MandelbrotSetDistance","MandelbrotSetIterationCount","MandelbrotSetMemberQ","MandelbrotSetPlot","MangoldtLambda","ManhattanDistance","Manipulate","Manipulator","MannedSpaceMissionData","MannWhitneyTest","MantissaExponent","Manual","Map","MapAll","MapAt","MapIndexed","MAProcess","MapThread","MarchenkoPasturDistribution","MarcumQ","MardiaCombinedTest","MardiaKurtosisTest","MardiaSkewnessTest","MarginalDistribution","MarkovProcessProperties","Masking","MatchingDissimilarity","MatchLocalNameQ","MatchLocalNames","MatchQ","Material","MathematicalFunctionData","MathematicaNotation","MathieuC","MathieuCharacteristicA","MathieuCharacteristicB","MathieuCharacteristicExponent","MathieuCPrime","MathieuGroupM11","MathieuGroupM12","MathieuGroupM22","MathieuGroupM23","MathieuGroupM24","MathieuS","MathieuSPrime","MathMLForm","MathMLText","Matrices","MatrixExp","MatrixForm","MatrixFunction","MatrixLog","MatrixNormalDistribution","MatrixPlot","MatrixPower","MatrixPropertyDistribution","MatrixQ","MatrixRank","MatrixTDistribution","Max","MaxBend","MaxCellMeasure","MaxColorDistance","MaxDate","MaxDetect","MaxDuration","MaxExtraBandwidths","MaxExtraConditions","MaxFeatureDisplacement","MaxFeatures","MaxFilter","MaximalBy","Maximize","MaxItems","MaxIterations","MaxLimit","MaxMemoryUsed","MaxMixtureKernels","MaxOverlapFraction","MaxPlotPoints","MaxPoints","MaxRecursion","MaxStableDistribution","MaxStepFraction","MaxSteps","MaxStepSize","MaxTrainingRounds","MaxValue","MaxwellDistribution","MaxWordGap","McLaughlinGroupMcL","Mean","MeanAbsoluteLossLayer","MeanAround","MeanClusteringCoefficient","MeanDegreeConnectivity","MeanDeviation","MeanFilter","MeanGraphDistance","MeanNeighborDegree","MeanShift","MeanShiftFilter","MeanSquaredLossLayer","Median","MedianDeviation","MedianFilter","MedicalTestData","Medium","MeijerG","MeijerGReduce","MeixnerDistribution","MellinConvolve","MellinTransform","MemberQ","MemoryAvailable","MemoryConstrained","MemoryConstraint","MemoryInUse","MengerMesh","Menu","MenuAppearance","MenuCommandKey","MenuEvaluator","MenuItem","MenuList","MenuPacket","MenuSortingValue","MenuStyle","MenuView","Merge","MergeDifferences","MergingFunction","MersennePrimeExponent","MersennePrimeExponentQ","Mesh","MeshCellCentroid","MeshCellCount","MeshCellHighlight","MeshCellIndex","MeshCellLabel","MeshCellMarker","MeshCellMeasure","MeshCellQuality","MeshCells","MeshCellShapeFunction","MeshCellStyle","MeshConnectivityGraph","MeshCoordinates","MeshFunctions","MeshPrimitives","MeshQualityGoal","MeshRange","MeshRefinementFunction","MeshRegion","MeshRegionQ","MeshShading","MeshStyle","Message","MessageDialog","MessageList","MessageName","MessageObject","MessageOptions","MessagePacket","Messages","MessagesNotebook","MetaCharacters","MetaInformation","MeteorShowerData","Method","MethodOptions","MexicanHatWavelet","MeyerWavelet","Midpoint","Min","MinColorDistance","MinDate","MinDetect","MineralData","MinFilter","MinimalBy","MinimalPolynomial","MinimalStateSpaceModel","Minimize","MinimumTimeIncrement","MinIntervalSize","MinkowskiQuestionMark","MinLimit","MinMax","MinorPlanetData","Minors","MinRecursion","MinSize","MinStableDistribution","Minus","MinusPlus","MinValue","Missing","MissingBehavior","MissingDataMethod","MissingDataRules","MissingQ","MissingString","MissingStyle","MissingValuePattern","MittagLefflerE","MixedFractionParts","MixedGraphQ","MixedMagnitude","MixedRadix","MixedRadixQuantity","MixedUnit","MixtureDistribution","Mod","Modal","Mode","Modular","ModularInverse","ModularLambda","Module","Modulus","MoebiusMu","Molecule","MoleculeContainsQ","MoleculeEquivalentQ","MoleculeGraph","MoleculeModify","MoleculePattern","MoleculePlot","MoleculePlot3D","MoleculeProperty","MoleculeQ","MoleculeRecognize","MoleculeValue","Moment","Momentary","MomentConvert","MomentEvaluate","MomentGeneratingFunction","MomentOfInertia","Monday","Monitor","MonomialList","MonomialOrder","MonsterGroupM","MoonPhase","MoonPosition","MorletWavelet","MorphologicalBinarize","MorphologicalBranchPoints","MorphologicalComponents","MorphologicalEulerNumber","MorphologicalGraph","MorphologicalPerimeter","MorphologicalTransform","MortalityData","Most","MountainData","MouseAnnotation","MouseAppearance","MouseAppearanceTag","MouseButtons","Mouseover","MousePointerNote","MousePosition","MovieData","MovingAverage","MovingMap","MovingMedian","MoyalDistribution","Multicolumn","MultiedgeStyle","MultigraphQ","MultilaunchWarning","MultiLetterItalics","MultiLetterStyle","MultilineFunction","Multinomial","MultinomialDistribution","MultinormalDistribution","MultiplicativeOrder","Multiplicity","MultiplySides","Multiselection","MultivariateHypergeometricDistribution","MultivariatePoissonDistribution","MultivariateTDistribution","N","NakagamiDistribution","NameQ","Names","NamespaceBox","NamespaceBoxOptions","Nand","NArgMax","NArgMin","NBernoulliB","NBodySimulation","NBodySimulationData","NCache","NDEigensystem","NDEigenvalues","NDSolve","NDSolveValue","Nearest","NearestFunction","NearestMeshCells","NearestNeighborGraph","NearestTo","NebulaData","NeedCurrentFrontEndPackagePacket","NeedCurrentFrontEndSymbolsPacket","NeedlemanWunschSimilarity","Needs","Negative","NegativeBinomialDistribution","NegativeDefiniteMatrixQ","NegativeIntegers","NegativeMultinomialDistribution","NegativeRationals","NegativeReals","NegativeSemidefiniteMatrixQ","NeighborhoodData","NeighborhoodGraph","Nest","NestedGreaterGreater","NestedLessLess","NestedScriptRules","NestGraph","NestList","NestWhile","NestWhileList","NetAppend","NetBidirectionalOperator","NetChain","NetDecoder","NetDelete","NetDrop","NetEncoder","NetEvaluationMode","NetExtract","NetFlatten","NetFoldOperator","NetGANOperator","NetGraph","NetInformation","NetInitialize","NetInsert","NetInsertSharedArrays","NetJoin","NetMapOperator","NetMapThreadOperator","NetMeasurements","NetModel","NetNestOperator","NetPairEmbeddingOperator","NetPort","NetPortGradient","NetPrepend","NetRename","NetReplace","NetReplacePart","NetSharedArray","NetStateObject","NetTake","NetTrain","NetTrainResultsObject","NetworkPacketCapture","NetworkPacketRecording","NetworkPacketRecordingDuring","NetworkPacketTrace","NeumannValue","NevilleThetaC","NevilleThetaD","NevilleThetaN","NevilleThetaS","NewPrimitiveStyle","NExpectation","Next","NextCell","NextDate","NextPrime","NextScheduledTaskTime","NHoldAll","NHoldFirst","NHoldRest","NicholsGridLines","NicholsPlot","NightHemisphere","NIntegrate","NMaximize","NMaxValue","NMinimize","NMinValue","NominalVariables","NonAssociative","NoncentralBetaDistribution","NoncentralChiSquareDistribution","NoncentralFRatioDistribution","NoncentralStudentTDistribution","NonCommutativeMultiply","NonConstants","NondimensionalizationTransform","None","NoneTrue","NonlinearModelFit","NonlinearStateSpaceModel","NonlocalMeansFilter","NonNegative","NonNegativeIntegers","NonNegativeRationals","NonNegativeReals","NonPositive","NonPositiveIntegers","NonPositiveRationals","NonPositiveReals","Nor","NorlundB","Norm","Normal","NormalDistribution","NormalGrouping","NormalizationLayer","Normalize","Normalized","NormalizedSquaredEuclideanDistance","NormalMatrixQ","NormalsFunction","NormFunction","Not","NotCongruent","NotCupCap","NotDoubleVerticalBar","Notebook","NotebookApply","NotebookAutoSave","NotebookClose","NotebookConvertSettings","NotebookCreate","NotebookCreateReturnObject","NotebookDefault","NotebookDelete","NotebookDirectory","NotebookDynamicExpression","NotebookEvaluate","NotebookEventActions","NotebookFileName","NotebookFind","NotebookFindReturnObject","NotebookGet","NotebookGetLayoutInformationPacket","NotebookGetMisspellingsPacket","NotebookImport","NotebookInformation","NotebookInterfaceObject","NotebookLocate","NotebookObject","NotebookOpen","NotebookOpenReturnObject","NotebookPath","NotebookPrint","NotebookPut","NotebookPutReturnObject","NotebookRead","NotebookResetGeneratedCells","Notebooks","NotebookSave","NotebookSaveAs","NotebookSelection","NotebookSetupLayoutInformationPacket","NotebooksMenu","NotebookTemplate","NotebookWrite","NotElement","NotEqualTilde","NotExists","NotGreater","NotGreaterEqual","NotGreaterFullEqual","NotGreaterGreater","NotGreaterLess","NotGreaterSlantEqual","NotGreaterTilde","Nothing","NotHumpDownHump","NotHumpEqual","NotificationFunction","NotLeftTriangle","NotLeftTriangleBar","NotLeftTriangleEqual","NotLess","NotLessEqual","NotLessFullEqual","NotLessGreater","NotLessLess","NotLessSlantEqual","NotLessTilde","NotNestedGreaterGreater","NotNestedLessLess","NotPrecedes","NotPrecedesEqual","NotPrecedesSlantEqual","NotPrecedesTilde","NotReverseElement","NotRightTriangle","NotRightTriangleBar","NotRightTriangleEqual","NotSquareSubset","NotSquareSubsetEqual","NotSquareSuperset","NotSquareSupersetEqual","NotSubset","NotSubsetEqual","NotSucceeds","NotSucceedsEqual","NotSucceedsSlantEqual","NotSucceedsTilde","NotSuperset","NotSupersetEqual","NotTilde","NotTildeEqual","NotTildeFullEqual","NotTildeTilde","NotVerticalBar","Now","NoWhitespace","NProbability","NProduct","NProductFactors","NRoots","NSolve","NSum","NSumTerms","NuclearExplosionData","NuclearReactorData","Null","NullRecords","NullSpace","NullWords","Number","NumberCompose","NumberDecompose","NumberExpand","NumberFieldClassNumber","NumberFieldDiscriminant","NumberFieldFundamentalUnits","NumberFieldIntegralBasis","NumberFieldNormRepresentatives","NumberFieldRegulator","NumberFieldRootsOfUnity","NumberFieldSignature","NumberForm","NumberFormat","NumberLinePlot","NumberMarks","NumberMultiplier","NumberPadding","NumberPoint","NumberQ","NumberSeparator","NumberSigns","NumberString","Numerator","NumeratorDenominator","NumericalOrder","NumericalSort","NumericArray","NumericArrayQ","NumericArrayType","NumericFunction","NumericQ","NuttallWindow","NValues","NyquistGridLines","NyquistPlot","O","ObservabilityGramian","ObservabilityMatrix","ObservableDecomposition","ObservableModelQ","OceanData","Octahedron","OddQ","Off","Offset","OLEData","On","ONanGroupON","Once","OneIdentity","Opacity","OpacityFunction","OpacityFunctionScaling","Open","OpenAppend","Opener","OpenerBox","OpenerBoxOptions","OpenerView","OpenFunctionInspectorPacket","Opening","OpenRead","OpenSpecialOptions","OpenTemporary","OpenWrite","Operate","OperatingSystem","OperatorApplied","OptimumFlowData","Optional","OptionalElement","OptionInspectorSettings","OptionQ","Options","OptionsPacket","OptionsPattern","OptionValue","OptionValueBox","OptionValueBoxOptions","Or","Orange","Order","OrderDistribution","OrderedQ","Ordering","OrderingBy","OrderingLayer","Orderless","OrderlessPatternSequence","OrnsteinUhlenbeckProcess","Orthogonalize","OrthogonalMatrixQ","Out","Outer","OuterPolygon","OuterPolyhedron","OutputAutoOverwrite","OutputControllabilityMatrix","OutputControllableModelQ","OutputForm","OutputFormData","OutputGrouping","OutputMathEditExpression","OutputNamePacket","OutputResponse","OutputSizeLimit","OutputStream","Over","OverBar","OverDot","Overflow","OverHat","Overlaps","Overlay","OverlayBox","OverlayBoxOptions","Overscript","OverscriptBox","OverscriptBoxOptions","OverTilde","OverVector","OverwriteTarget","OwenT","OwnValues","Package","PackingMethod","PackPaclet","PacletDataRebuild","PacletDirectoryAdd","PacletDirectoryLoad","PacletDirectoryRemove","PacletDirectoryUnload","PacletDisable","PacletEnable","PacletFind","PacletFindRemote","PacletInformation","PacletInstall","PacletInstallSubmit","PacletNewerQ","PacletObject","PacletObjectQ","PacletSite","PacletSiteObject","PacletSiteRegister","PacletSites","PacletSiteUnregister","PacletSiteUpdate","PacletUninstall","PacletUpdate","PaddedForm","Padding","PaddingLayer","PaddingSize","PadeApproximant","PadLeft","PadRight","PageBreakAbove","PageBreakBelow","PageBreakWithin","PageFooterLines","PageFooters","PageHeaderLines","PageHeaders","PageHeight","PageRankCentrality","PageTheme","PageWidth","Pagination","PairedBarChart","PairedHistogram","PairedSmoothHistogram","PairedTTest","PairedZTest","PaletteNotebook","PalettePath","PalindromeQ","Pane","PaneBox","PaneBoxOptions","Panel","PanelBox","PanelBoxOptions","Paneled","PaneSelector","PaneSelectorBox","PaneSelectorBoxOptions","PaperWidth","ParabolicCylinderD","ParagraphIndent","ParagraphSpacing","ParallelArray","ParallelCombine","ParallelDo","Parallelepiped","ParallelEvaluate","Parallelization","Parallelize","ParallelMap","ParallelNeeds","Parallelogram","ParallelProduct","ParallelSubmit","ParallelSum","ParallelTable","ParallelTry","Parameter","ParameterEstimator","ParameterMixtureDistribution","ParameterVariables","ParametricFunction","ParametricNDSolve","ParametricNDSolveValue","ParametricPlot","ParametricPlot3D","ParametricRampLayer","ParametricRegion","ParentBox","ParentCell","ParentConnect","ParentDirectory","ParentForm","Parenthesize","ParentList","ParentNotebook","ParetoDistribution","ParetoPickandsDistribution","ParkData","Part","PartBehavior","PartialCorrelationFunction","PartialD","ParticleAcceleratorData","ParticleData","Partition","PartitionGranularity","PartitionsP","PartitionsQ","PartLayer","PartOfSpeech","PartProtection","ParzenWindow","PascalDistribution","PassEventsDown","PassEventsUp","Paste","PasteAutoQuoteCharacters","PasteBoxFormInlineCells","PasteButton","Path","PathGraph","PathGraphQ","Pattern","PatternFilling","PatternSequence","PatternTest","PauliMatrix","PaulWavelet","Pause","PausedTime","PDF","PeakDetect","PeanoCurve","PearsonChiSquareTest","PearsonCorrelationTest","PearsonDistribution","PercentForm","PerfectNumber","PerfectNumberQ","PerformanceGoal","Perimeter","PeriodicBoundaryCondition","PeriodicInterpolation","Periodogram","PeriodogramArray","Permanent","Permissions","PermissionsGroup","PermissionsGroupMemberQ","PermissionsGroups","PermissionsKey","PermissionsKeys","PermutationCycles","PermutationCyclesQ","PermutationGroup","PermutationLength","PermutationList","PermutationListQ","PermutationMax","PermutationMin","PermutationOrder","PermutationPower","PermutationProduct","PermutationReplace","Permutations","PermutationSupport","Permute","PeronaMalikFilter","Perpendicular","PerpendicularBisector","PersistenceLocation","PersistenceTime","PersistentObject","PersistentObjects","PersistentValue","PersonData","PERTDistribution","PetersenGraph","PhaseMargins","PhaseRange","PhysicalSystemData","Pi","Pick","PIDData","PIDDerivativeFilter","PIDFeedforward","PIDTune","Piecewise","PiecewiseExpand","PieChart","PieChart3D","PillaiTrace","PillaiTraceTest","PingTime","Pink","PitchRecognize","Pivoting","PixelConstrained","PixelValue","PixelValuePositions","Placed","Placeholder","PlaceholderReplace","Plain","PlanarAngle","PlanarGraph","PlanarGraphQ","PlanckRadiationLaw","PlaneCurveData","PlanetaryMoonData","PlanetData","PlantData","Play","PlayRange","Plot","Plot3D","Plot3Matrix","PlotDivision","PlotJoined","PlotLabel","PlotLabels","PlotLayout","PlotLegends","PlotMarkers","PlotPoints","PlotRange","PlotRangeClipping","PlotRangeClipPlanesStyle","PlotRangePadding","PlotRegion","PlotStyle","PlotTheme","Pluralize","Plus","PlusMinus","Pochhammer","PodStates","PodWidth","Point","Point3DBox","Point3DBoxOptions","PointBox","PointBoxOptions","PointFigureChart","PointLegend","PointSize","PoissonConsulDistribution","PoissonDistribution","PoissonProcess","PoissonWindow","PolarAxes","PolarAxesOrigin","PolarGridLines","PolarPlot","PolarTicks","PoleZeroMarkers","PolyaAeppliDistribution","PolyGamma","Polygon","Polygon3DBox","Polygon3DBoxOptions","PolygonalNumber","PolygonAngle","PolygonBox","PolygonBoxOptions","PolygonCoordinates","PolygonDecomposition","PolygonHoleScale","PolygonIntersections","PolygonScale","Polyhedron","PolyhedronAngle","PolyhedronCoordinates","PolyhedronData","PolyhedronDecomposition","PolyhedronGenus","PolyLog","PolynomialExtendedGCD","PolynomialForm","PolynomialGCD","PolynomialLCM","PolynomialMod","PolynomialQ","PolynomialQuotient","PolynomialQuotientRemainder","PolynomialReduce","PolynomialRemainder","Polynomials","PoolingLayer","PopupMenu","PopupMenuBox","PopupMenuBoxOptions","PopupView","PopupWindow","Position","PositionIndex","Positive","PositiveDefiniteMatrixQ","PositiveIntegers","PositiveRationals","PositiveReals","PositiveSemidefiniteMatrixQ","PossibleZeroQ","Postfix","PostScript","Power","PowerDistribution","PowerExpand","PowerMod","PowerModList","PowerRange","PowerSpectralDensity","PowersRepresentations","PowerSymmetricPolynomial","Precedence","PrecedenceForm","Precedes","PrecedesEqual","PrecedesSlantEqual","PrecedesTilde","Precision","PrecisionGoal","PreDecrement","Predict","PredictionRoot","PredictorFunction","PredictorInformation","PredictorMeasurements","PredictorMeasurementsObject","PreemptProtect","PreferencesPath","Prefix","PreIncrement","Prepend","PrependLayer","PrependTo","PreprocessingRules","PreserveColor","PreserveImageOptions","Previous","PreviousCell","PreviousDate","PriceGraphDistribution","PrimaryPlaceholder","Prime","PrimeNu","PrimeOmega","PrimePi","PrimePowerQ","PrimeQ","Primes","PrimeZetaP","PrimitivePolynomialQ","PrimitiveRoot","PrimitiveRootList","PrincipalComponents","PrincipalValue","Print","PrintableASCIIQ","PrintAction","PrintForm","PrintingCopies","PrintingOptions","PrintingPageRange","PrintingStartingPageNumber","PrintingStyleEnvironment","Printout3D","Printout3DPreviewer","PrintPrecision","PrintTemporary","Prism","PrismBox","PrismBoxOptions","PrivateCellOptions","PrivateEvaluationOptions","PrivateFontOptions","PrivateFrontEndOptions","PrivateKey","PrivateNotebookOptions","PrivatePaths","Probability","ProbabilityDistribution","ProbabilityPlot","ProbabilityPr","ProbabilityScalePlot","ProbitModelFit","ProcessConnection","ProcessDirectory","ProcessEnvironment","Processes","ProcessEstimator","ProcessInformation","ProcessObject","ProcessParameterAssumptions","ProcessParameterQ","ProcessStateDomain","ProcessStatus","ProcessTimeDomain","Product","ProductDistribution","ProductLog","ProgressIndicator","ProgressIndicatorBox","ProgressIndicatorBoxOptions","Projection","Prolog","PromptForm","ProofObject","Properties","Property","PropertyList","PropertyValue","Proportion","Proportional","Protect","Protected","ProteinData","Pruning","PseudoInverse","PsychrometricPropertyData","PublicKey","PublisherID","PulsarData","PunctuationCharacter","Purple","Put","PutAppend","Pyramid","PyramidBox","PyramidBoxOptions","QBinomial","QFactorial","QGamma","QHypergeometricPFQ","QnDispersion","QPochhammer","QPolyGamma","QRDecomposition","QuadraticIrrationalQ","QuadraticOptimization","Quantile","QuantilePlot","Quantity","QuantityArray","QuantityDistribution","QuantityForm","QuantityMagnitude","QuantityQ","QuantityUnit","QuantityVariable","QuantityVariableCanonicalUnit","QuantityVariableDimensions","QuantityVariableIdentifier","QuantityVariablePhysicalQuantity","Quartics","QuartileDeviation","Quartiles","QuartileSkewness","Query","QueueingNetworkProcess","QueueingProcess","QueueProperties","Quiet","Quit","Quotient","QuotientRemainder","RadialGradientImage","RadialityCentrality","RadicalBox","RadicalBoxOptions","RadioButton","RadioButtonBar","RadioButtonBox","RadioButtonBoxOptions","Radon","RadonTransform","RamanujanTau","RamanujanTauL","RamanujanTauTheta","RamanujanTauZ","Ramp","Random","RandomChoice","RandomColor","RandomComplex","RandomEntity","RandomFunction","RandomGeoPosition","RandomGraph","RandomImage","RandomInstance","RandomInteger","RandomPermutation","RandomPoint","RandomPolygon","RandomPolyhedron","RandomPrime","RandomReal","RandomSample","RandomSeed","RandomSeeding","RandomVariate","RandomWalkProcess","RandomWord","Range","RangeFilter","RangeSpecification","RankedMax","RankedMin","RarerProbability","Raster","Raster3D","Raster3DBox","Raster3DBoxOptions","RasterArray","RasterBox","RasterBoxOptions","Rasterize","RasterSize","Rational","RationalFunctions","Rationalize","Rationals","Ratios","RawArray","RawBoxes","RawData","RawMedium","RayleighDistribution","Re","Read","ReadByteArray","ReadLine","ReadList","ReadProtected","ReadString","Real","RealAbs","RealBlockDiagonalForm","RealDigits","RealExponent","Reals","RealSign","Reap","RebuildPacletData","RecognitionPrior","RecognitionThreshold","Record","RecordLists","RecordSeparators","Rectangle","RectangleBox","RectangleBoxOptions","RectangleChart","RectangleChart3D","RectangularRepeatingElement","RecurrenceFilter","RecurrenceTable","RecurringDigitsForm","Red","Reduce","RefBox","ReferenceLineStyle","ReferenceMarkers","ReferenceMarkerStyle","Refine","ReflectionMatrix","ReflectionTransform","Refresh","RefreshRate","Region","RegionBinarize","RegionBoundary","RegionBoundaryStyle","RegionBounds","RegionCentroid","RegionDifference","RegionDimension","RegionDisjoint","RegionDistance","RegionDistanceFunction","RegionEmbeddingDimension","RegionEqual","RegionFillingStyle","RegionFunction","RegionImage","RegionIntersection","RegionMeasure","RegionMember","RegionMemberFunction","RegionMoment","RegionNearest","RegionNearestFunction","RegionPlot","RegionPlot3D","RegionProduct","RegionQ","RegionResize","RegionSize","RegionSymmetricDifference","RegionUnion","RegionWithin","RegisterExternalEvaluator","RegularExpression","Regularization","RegularlySampledQ","RegularPolygon","ReIm","ReImLabels","ReImPlot","ReImStyle","Reinstall","RelationalDatabase","RelationGraph","Release","ReleaseHold","ReliabilityDistribution","ReliefImage","ReliefPlot","RemoteAuthorizationCaching","RemoteConnect","RemoteConnectionObject","RemoteFile","RemoteRun","RemoteRunProcess","Remove","RemoveAlphaChannel","RemoveAsynchronousTask","RemoveAudioStream","RemoveBackground","RemoveChannelListener","RemoveChannelSubscribers","Removed","RemoveDiacritics","RemoveInputStreamMethod","RemoveOutputStreamMethod","RemoveProperty","RemoveScheduledTask","RemoveUsers","RemoveVideoStream","RenameDirectory","RenameFile","RenderAll","RenderingOptions","RenewalProcess","RenkoChart","RepairMesh","Repeated","RepeatedNull","RepeatedString","RepeatedTiming","RepeatingElement","Replace","ReplaceAll","ReplaceHeldPart","ReplaceImageValue","ReplaceList","ReplacePart","ReplacePixelValue","ReplaceRepeated","ReplicateLayer","RequiredPhysicalQuantities","Resampling","ResamplingAlgorithmData","ResamplingMethod","Rescale","RescalingTransform","ResetDirectory","ResetMenusPacket","ResetScheduledTask","ReshapeLayer","Residue","ResizeLayer","Resolve","ResourceAcquire","ResourceData","ResourceFunction","ResourceObject","ResourceRegister","ResourceRemove","ResourceSearch","ResourceSubmissionObject","ResourceSubmit","ResourceSystemBase","ResourceSystemPath","ResourceUpdate","ResourceVersion","ResponseForm","Rest","RestartInterval","Restricted","Resultant","ResumePacket","Return","ReturnEntersInput","ReturnExpressionPacket","ReturnInputFormPacket","ReturnPacket","ReturnReceiptFunction","ReturnTextPacket","Reverse","ReverseApplied","ReverseBiorthogonalSplineWavelet","ReverseElement","ReverseEquilibrium","ReverseGraph","ReverseSort","ReverseSortBy","ReverseUpEquilibrium","RevolutionAxis","RevolutionPlot3D","RGBColor","RiccatiSolve","RiceDistribution","RidgeFilter","RiemannR","RiemannSiegelTheta","RiemannSiegelZ","RiemannXi","Riffle","Right","RightArrow","RightArrowBar","RightArrowLeftArrow","RightComposition","RightCosetRepresentative","RightDownTeeVector","RightDownVector","RightDownVectorBar","RightTee","RightTeeArrow","RightTeeVector","RightTriangle","RightTriangleBar","RightTriangleEqual","RightUpDownVector","RightUpTeeVector","RightUpVector","RightUpVectorBar","RightVector","RightVectorBar","RiskAchievementImportance","RiskReductionImportance","RogersTanimotoDissimilarity","RollPitchYawAngles","RollPitchYawMatrix","RomanNumeral","Root","RootApproximant","RootIntervals","RootLocusPlot","RootMeanSquare","RootOfUnityQ","RootReduce","Roots","RootSum","Rotate","RotateLabel","RotateLeft","RotateRight","RotationAction","RotationBox","RotationBoxOptions","RotationMatrix","RotationTransform","Round","RoundImplies","RoundingRadius","Row","RowAlignments","RowBackgrounds","RowBox","RowHeights","RowLines","RowMinHeight","RowReduce","RowsEqual","RowSpacings","RSolve","RSolveValue","RudinShapiro","RudvalisGroupRu","Rule","RuleCondition","RuleDelayed","RuleForm","RulePlot","RulerUnits","Run","RunProcess","RunScheduledTask","RunThrough","RuntimeAttributes","RuntimeOptions","RussellRaoDissimilarity","SameQ","SameTest","SameTestProperties","SampledEntityClass","SampleDepth","SampledSoundFunction","SampledSoundList","SampleRate","SamplingPeriod","SARIMAProcess","SARMAProcess","SASTriangle","SatelliteData","SatisfiabilityCount","SatisfiabilityInstances","SatisfiableQ","Saturday","Save","Saveable","SaveAutoDelete","SaveConnection","SaveDefinitions","SavitzkyGolayMatrix","SawtoothWave","Scale","Scaled","ScaleDivisions","ScaledMousePosition","ScaleOrigin","ScalePadding","ScaleRanges","ScaleRangeStyle","ScalingFunctions","ScalingMatrix","ScalingTransform","Scan","ScheduledTask","ScheduledTaskActiveQ","ScheduledTaskInformation","ScheduledTaskInformationData","ScheduledTaskObject","ScheduledTasks","SchurDecomposition","ScientificForm","ScientificNotationThreshold","ScorerGi","ScorerGiPrime","ScorerHi","ScorerHiPrime","ScreenRectangle","ScreenStyleEnvironment","ScriptBaselineShifts","ScriptForm","ScriptLevel","ScriptMinSize","ScriptRules","ScriptSizeMultipliers","Scrollbars","ScrollingOptions","ScrollPosition","SearchAdjustment","SearchIndexObject","SearchIndices","SearchQueryString","SearchResultObject","Sec","Sech","SechDistribution","SecondOrderConeOptimization","SectionGrouping","SectorChart","SectorChart3D","SectorOrigin","SectorSpacing","SecuredAuthenticationKey","SecuredAuthenticationKeys","SeedRandom","Select","Selectable","SelectComponents","SelectedCells","SelectedNotebook","SelectFirst","Selection","SelectionAnimate","SelectionCell","SelectionCellCreateCell","SelectionCellDefaultStyle","SelectionCellParentStyle","SelectionCreateCell","SelectionDebuggerTag","SelectionDuplicateCell","SelectionEvaluate","SelectionEvaluateCreateCell","SelectionMove","SelectionPlaceholder","SelectionSetStyle","SelectWithContents","SelfLoops","SelfLoopStyle","SemanticImport","SemanticImportString","SemanticInterpretation","SemialgebraicComponentInstances","SemidefiniteOptimization","SendMail","SendMessage","Sequence","SequenceAlignment","SequenceAttentionLayer","SequenceCases","SequenceCount","SequenceFold","SequenceFoldList","SequenceForm","SequenceHold","SequenceLastLayer","SequenceMostLayer","SequencePosition","SequencePredict","SequencePredictorFunction","SequenceReplace","SequenceRestLayer","SequenceReverseLayer","SequenceSplit","Series","SeriesCoefficient","SeriesData","SeriesTermGoal","ServiceConnect","ServiceDisconnect","ServiceExecute","ServiceObject","ServiceRequest","ServiceResponse","ServiceSubmit","SessionSubmit","SessionTime","Set","SetAccuracy","SetAlphaChannel","SetAttributes","Setbacks","SetBoxFormNamesPacket","SetCloudDirectory","SetCookies","SetDelayed","SetDirectory","SetEnvironment","SetEvaluationNotebook","SetFileDate","SetFileLoadingContext","SetNotebookStatusLine","SetOptions","SetOptionsPacket","SetPermissions","SetPrecision","SetProperty","SetSecuredAuthenticationKey","SetSelectedNotebook","SetSharedFunction","SetSharedVariable","SetSpeechParametersPacket","SetStreamPosition","SetSystemModel","SetSystemOptions","Setter","SetterBar","SetterBox","SetterBoxOptions","Setting","SetUsers","SetValue","Shading","Shallow","ShannonWavelet","ShapiroWilkTest","Share","SharingList","Sharpen","ShearingMatrix","ShearingTransform","ShellRegion","ShenCastanMatrix","ShiftedGompertzDistribution","ShiftRegisterSequence","Short","ShortDownArrow","Shortest","ShortestMatch","ShortestPathFunction","ShortLeftArrow","ShortRightArrow","ShortTimeFourier","ShortTimeFourierData","ShortUpArrow","Show","ShowAutoConvert","ShowAutoSpellCheck","ShowAutoStyles","ShowCellBracket","ShowCellLabel","ShowCellTags","ShowClosedCellArea","ShowCodeAssist","ShowContents","ShowControls","ShowCursorTracker","ShowGroupOpenCloseIcon","ShowGroupOpener","ShowInvisibleCharacters","ShowPageBreaks","ShowPredictiveInterface","ShowSelection","ShowShortBoxForm","ShowSpecialCharacters","ShowStringCharacters","ShowSyntaxStyles","ShrinkingDelay","ShrinkWrapBoundingBox","SiderealTime","SiegelTheta","SiegelTukeyTest","SierpinskiCurve","SierpinskiMesh","Sign","Signature","SignedRankTest","SignedRegionDistance","SignificanceLevel","SignPadding","SignTest","SimilarityRules","SimpleGraph","SimpleGraphQ","SimplePolygonQ","SimplePolyhedronQ","Simplex","Simplify","Sin","Sinc","SinghMaddalaDistribution","SingleEvaluation","SingleLetterItalics","SingleLetterStyle","SingularValueDecomposition","SingularValueList","SingularValuePlot","SingularValues","Sinh","SinhIntegral","SinIntegral","SixJSymbol","Skeleton","SkeletonTransform","SkellamDistribution","Skewness","SkewNormalDistribution","SkinStyle","Skip","SliceContourPlot3D","SliceDensityPlot3D","SliceDistribution","SliceVectorPlot3D","Slider","Slider2D","Slider2DBox","Slider2DBoxOptions","SliderBox","SliderBoxOptions","SlideView","Slot","SlotSequence","Small","SmallCircle","Smaller","SmithDecomposition","SmithDelayCompensator","SmithWatermanSimilarity","SmoothDensityHistogram","SmoothHistogram","SmoothHistogram3D","SmoothKernelDistribution","SnDispersion","Snippet","SnubPolyhedron","SocialMediaData","Socket","SocketConnect","SocketListen","SocketListener","SocketObject","SocketOpen","SocketReadMessage","SocketReadyQ","Sockets","SocketWaitAll","SocketWaitNext","SoftmaxLayer","SokalSneathDissimilarity","SolarEclipse","SolarSystemFeatureData","SolidAngle","SolidData","SolidRegionQ","Solve","SolveAlways","SolveDelayed","Sort","SortBy","SortedBy","SortedEntityClass","Sound","SoundAndGraphics","SoundNote","SoundVolume","SourceLink","Sow","Space","SpaceCurveData","SpaceForm","Spacer","Spacings","Span","SpanAdjustments","SpanCharacterRounding","SpanFromAbove","SpanFromBoth","SpanFromLeft","SpanLineThickness","SpanMaxSize","SpanMinSize","SpanningCharacters","SpanSymmetric","SparseArray","SpatialGraphDistribution","SpatialMedian","SpatialTransformationLayer","Speak","SpeakerMatchQ","SpeakTextPacket","SpearmanRankTest","SpearmanRho","SpeciesData","SpecificityGoal","SpectralLineData","Spectrogram","SpectrogramArray","Specularity","SpeechCases","SpeechInterpreter","SpeechRecognize","SpeechSynthesize","SpellingCorrection","SpellingCorrectionList","SpellingDictionaries","SpellingDictionariesPath","SpellingOptions","SpellingSuggestionsPacket","Sphere","SphereBox","SpherePoints","SphericalBesselJ","SphericalBesselY","SphericalHankelH1","SphericalHankelH2","SphericalHarmonicY","SphericalPlot3D","SphericalRegion","SphericalShell","SpheroidalEigenvalue","SpheroidalJoiningFactor","SpheroidalPS","SpheroidalPSPrime","SpheroidalQS","SpheroidalQSPrime","SpheroidalRadialFactor","SpheroidalS1","SpheroidalS1Prime","SpheroidalS2","SpheroidalS2Prime","Splice","SplicedDistribution","SplineClosed","SplineDegree","SplineKnots","SplineWeights","Split","SplitBy","SpokenString","Sqrt","SqrtBox","SqrtBoxOptions","Square","SquaredEuclideanDistance","SquareFreeQ","SquareIntersection","SquareMatrixQ","SquareRepeatingElement","SquaresR","SquareSubset","SquareSubsetEqual","SquareSuperset","SquareSupersetEqual","SquareUnion","SquareWave","SSSTriangle","StabilityMargins","StabilityMarginsStyle","StableDistribution","Stack","StackBegin","StackComplete","StackedDateListPlot","StackedListPlot","StackInhibit","StadiumShape","StandardAtmosphereData","StandardDeviation","StandardDeviationFilter","StandardForm","Standardize","Standardized","StandardOceanData","StandbyDistribution","Star","StarClusterData","StarData","StarGraph","StartAsynchronousTask","StartExternalSession","StartingStepSize","StartOfLine","StartOfString","StartProcess","StartScheduledTask","StartupSound","StartWebSession","StateDimensions","StateFeedbackGains","StateOutputEstimator","StateResponse","StateSpaceModel","StateSpaceRealization","StateSpaceTransform","StateTransformationLinearize","StationaryDistribution","StationaryWaveletPacketTransform","StationaryWaveletTransform","StatusArea","StatusCentrality","StepMonitor","StereochemistryElements","StieltjesGamma","StippleShading","StirlingS1","StirlingS2","StopAsynchronousTask","StoppingPowerData","StopScheduledTask","StrataVariables","StratonovichProcess","StreamColorFunction","StreamColorFunctionScaling","StreamDensityPlot","StreamMarkers","StreamPlot","StreamPoints","StreamPosition","Streams","StreamScale","StreamStyle","String","StringBreak","StringByteCount","StringCases","StringContainsQ","StringCount","StringDelete","StringDrop","StringEndsQ","StringExpression","StringExtract","StringForm","StringFormat","StringFreeQ","StringInsert","StringJoin","StringLength","StringMatchQ","StringPadLeft","StringPadRight","StringPart","StringPartition","StringPosition","StringQ","StringRepeat","StringReplace","StringReplaceList","StringReplacePart","StringReverse","StringRiffle","StringRotateLeft","StringRotateRight","StringSkeleton","StringSplit","StringStartsQ","StringTake","StringTemplate","StringToByteArray","StringToStream","StringTrim","StripBoxes","StripOnInput","StripWrapperBoxes","StrokeForm","StructuralImportance","StructuredArray","StructuredArrayHeadQ","StructuredSelection","StruveH","StruveL","Stub","StudentTDistribution","Style","StyleBox","StyleBoxAutoDelete","StyleData","StyleDefinitions","StyleForm","StyleHints","StyleKeyMapping","StyleMenuListing","StyleNameDialogSettings","StyleNames","StylePrint","StyleSheetPath","Subdivide","Subfactorial","Subgraph","SubMinus","SubPlus","SubresultantPolynomialRemainders","SubresultantPolynomials","Subresultants","Subscript","SubscriptBox","SubscriptBoxOptions","Subscripted","Subsequences","Subset","SubsetCases","SubsetCount","SubsetEqual","SubsetMap","SubsetPosition","SubsetQ","SubsetReplace","Subsets","SubStar","SubstitutionSystem","Subsuperscript","SubsuperscriptBox","SubsuperscriptBoxOptions","SubtitleEncoding","SubtitleTracks","Subtract","SubtractFrom","SubtractSides","SubValues","Succeeds","SucceedsEqual","SucceedsSlantEqual","SucceedsTilde","Success","SuchThat","Sum","SumConvergence","SummationLayer","Sunday","SunPosition","Sunrise","Sunset","SuperDagger","SuperMinus","SupernovaData","SuperPlus","Superscript","SuperscriptBox","SuperscriptBoxOptions","Superset","SupersetEqual","SuperStar","Surd","SurdForm","SurfaceAppearance","SurfaceArea","SurfaceColor","SurfaceData","SurfaceGraphics","SurvivalDistribution","SurvivalFunction","SurvivalModel","SurvivalModelFit","SuspendPacket","SuzukiDistribution","SuzukiGroupSuz","SwatchLegend","Switch","Symbol","SymbolName","SymletWavelet","Symmetric","SymmetricGroup","SymmetricKey","SymmetricMatrixQ","SymmetricPolynomial","SymmetricReduction","Symmetrize","SymmetrizedArray","SymmetrizedArrayRules","SymmetrizedDependentComponents","SymmetrizedIndependentComponents","SymmetrizedReplacePart","SynchronousInitialization","SynchronousUpdating","Synonyms","Syntax","SyntaxForm","SyntaxInformation","SyntaxLength","SyntaxPacket","SyntaxQ","SynthesizeMissingValues","SystemCredential","SystemCredentialData","SystemCredentialKey","SystemCredentialKeys","SystemCredentialStoreObject","SystemDialogInput","SystemException","SystemGet","SystemHelpPath","SystemInformation","SystemInformationData","SystemInstall","SystemModel","SystemModeler","SystemModelExamples","SystemModelLinearize","SystemModelParametricSimulate","SystemModelPlot","SystemModelProgressReporting","SystemModelReliability","SystemModels","SystemModelSimulate","SystemModelSimulateSensitivity","SystemModelSimulationData","SystemOpen","SystemOptions","SystemProcessData","SystemProcesses","SystemsConnectionsModel","SystemsModelDelay","SystemsModelDelayApproximate","SystemsModelDelete","SystemsModelDimensions","SystemsModelExtract","SystemsModelFeedbackConnect","SystemsModelLabels","SystemsModelLinearity","SystemsModelMerge","SystemsModelOrder","SystemsModelParallelConnect","SystemsModelSeriesConnect","SystemsModelStateFeedbackConnect","SystemsModelVectorRelativeOrders","SystemStub","SystemTest","Tab","TabFilling","Table","TableAlignments","TableDepth","TableDirections","TableForm","TableHeadings","TableSpacing","TableView","TableViewBox","TableViewBoxBackground","TableViewBoxItemSize","TableViewBoxOptions","TabSpacings","TabView","TabViewBox","TabViewBoxOptions","TagBox","TagBoxNote","TagBoxOptions","TaggingRules","TagSet","TagSetDelayed","TagStyle","TagUnset","Take","TakeDrop","TakeLargest","TakeLargestBy","TakeList","TakeSmallest","TakeSmallestBy","TakeWhile","Tally","Tan","Tanh","TargetDevice","TargetFunctions","TargetSystem","TargetUnits","TaskAbort","TaskExecute","TaskObject","TaskRemove","TaskResume","Tasks","TaskSuspend","TaskWait","TautologyQ","TelegraphProcess","TemplateApply","TemplateArgBox","TemplateBox","TemplateBoxOptions","TemplateEvaluate","TemplateExpression","TemplateIf","TemplateObject","TemplateSequence","TemplateSlot","TemplateSlotSequence","TemplateUnevaluated","TemplateVerbatim","TemplateWith","TemporalData","TemporalRegularity","Temporary","TemporaryVariable","TensorContract","TensorDimensions","TensorExpand","TensorProduct","TensorQ","TensorRank","TensorReduce","TensorSymmetry","TensorTranspose","TensorWedge","TestID","TestReport","TestReportObject","TestResultObject","Tetrahedron","TetrahedronBox","TetrahedronBoxOptions","TeXForm","TeXSave","Text","Text3DBox","Text3DBoxOptions","TextAlignment","TextBand","TextBoundingBox","TextBox","TextCases","TextCell","TextClipboardType","TextContents","TextData","TextElement","TextForm","TextGrid","TextJustification","TextLine","TextPacket","TextParagraph","TextPosition","TextRecognize","TextSearch","TextSearchReport","TextSentences","TextString","TextStructure","TextStyle","TextTranslation","Texture","TextureCoordinateFunction","TextureCoordinateScaling","TextWords","Therefore","ThermodynamicData","ThermometerGauge","Thick","Thickness","Thin","Thinning","ThisLink","ThompsonGroupTh","Thread","ThreadingLayer","ThreeJSymbol","Threshold","Through","Throw","ThueMorse","Thumbnail","Thursday","Ticks","TicksStyle","TideData","Tilde","TildeEqual","TildeFullEqual","TildeTilde","TimeConstrained","TimeConstraint","TimeDirection","TimeFormat","TimeGoal","TimelinePlot","TimeObject","TimeObjectQ","TimeRemaining","Times","TimesBy","TimeSeries","TimeSeriesAggregate","TimeSeriesForecast","TimeSeriesInsert","TimeSeriesInvertibility","TimeSeriesMap","TimeSeriesMapThread","TimeSeriesModel","TimeSeriesModelFit","TimeSeriesResample","TimeSeriesRescale","TimeSeriesShift","TimeSeriesThread","TimeSeriesWindow","TimeUsed","TimeValue","TimeWarpingCorrespondence","TimeWarpingDistance","TimeZone","TimeZoneConvert","TimeZoneOffset","Timing","Tiny","TitleGrouping","TitsGroupT","ToBoxes","ToCharacterCode","ToColor","ToContinuousTimeModel","ToDate","Today","ToDiscreteTimeModel","ToEntity","ToeplitzMatrix","ToExpression","ToFileName","Together","Toggle","ToggleFalse","Toggler","TogglerBar","TogglerBox","TogglerBoxOptions","ToHeldExpression","ToInvertibleTimeSeries","TokenWords","Tolerance","ToLowerCase","Tomorrow","ToNumberField","TooBig","Tooltip","TooltipBox","TooltipBoxOptions","TooltipDelay","TooltipStyle","ToonShading","Top","TopHatTransform","ToPolarCoordinates","TopologicalSort","ToRadicals","ToRules","ToSphericalCoordinates","ToString","Total","TotalHeight","TotalLayer","TotalVariationFilter","TotalWidth","TouchPosition","TouchscreenAutoZoom","TouchscreenControlPlacement","ToUpperCase","Tr","Trace","TraceAbove","TraceAction","TraceBackward","TraceDepth","TraceDialog","TraceForward","TraceInternal","TraceLevel","TraceOff","TraceOn","TraceOriginal","TracePrint","TraceScan","TrackedSymbols","TrackingFunction","TracyWidomDistribution","TradingChart","TraditionalForm","TraditionalFunctionNotation","TraditionalNotation","TraditionalOrder","TrainingProgressCheckpointing","TrainingProgressFunction","TrainingProgressMeasurements","TrainingProgressReporting","TrainingStoppingCriterion","TrainingUpdateSchedule","TransferFunctionCancel","TransferFunctionExpand","TransferFunctionFactor","TransferFunctionModel","TransferFunctionPoles","TransferFunctionTransform","TransferFunctionZeros","TransformationClass","TransformationFunction","TransformationFunctions","TransformationMatrix","TransformedDistribution","TransformedField","TransformedProcess","TransformedRegion","TransitionDirection","TransitionDuration","TransitionEffect","TransitiveClosureGraph","TransitiveReductionGraph","Translate","TranslationOptions","TranslationTransform","Transliterate","Transparent","TransparentColor","Transpose","TransposeLayer","TrapSelection","TravelDirections","TravelDirectionsData","TravelDistance","TravelDistanceList","TravelMethod","TravelTime","TreeForm","TreeGraph","TreeGraphQ","TreePlot","TrendStyle","Triangle","TriangleCenter","TriangleConstruct","TriangleMeasurement","TriangleWave","TriangularDistribution","TriangulateMesh","Trig","TrigExpand","TrigFactor","TrigFactorList","Trigger","TrigReduce","TrigToExp","TrimmedMean","TrimmedVariance","TropicalStormData","True","TrueQ","TruncatedDistribution","TruncatedPolyhedron","TsallisQExponentialDistribution","TsallisQGaussianDistribution","TTest","Tube","TubeBezierCurveBox","TubeBezierCurveBoxOptions","TubeBox","TubeBoxOptions","TubeBSplineCurveBox","TubeBSplineCurveBoxOptions","Tuesday","TukeyLambdaDistribution","TukeyWindow","TunnelData","Tuples","TuranGraph","TuringMachine","TuttePolynomial","TwoWayRule","Typed","TypeSpecifier","UnateQ","Uncompress","UnconstrainedParameters","Undefined","UnderBar","Underflow","Underlined","Underoverscript","UnderoverscriptBox","UnderoverscriptBoxOptions","Underscript","UnderscriptBox","UnderscriptBoxOptions","UnderseaFeatureData","UndirectedEdge","UndirectedGraph","UndirectedGraphQ","UndoOptions","UndoTrackedVariables","Unequal","UnequalTo","Unevaluated","UniformDistribution","UniformGraphDistribution","UniformPolyhedron","UniformSumDistribution","Uninstall","Union","UnionedEntityClass","UnionPlus","Unique","UnitaryMatrixQ","UnitBox","UnitConvert","UnitDimensions","Unitize","UnitRootTest","UnitSimplify","UnitStep","UnitSystem","UnitTriangle","UnitVector","UnitVectorLayer","UnityDimensions","UniverseModelData","UniversityData","UnixTime","Unprotect","UnregisterExternalEvaluator","UnsameQ","UnsavedVariables","Unset","UnsetShared","UntrackedVariables","Up","UpArrow","UpArrowBar","UpArrowDownArrow","Update","UpdateDynamicObjects","UpdateDynamicObjectsSynchronous","UpdateInterval","UpdatePacletSites","UpdateSearchIndex","UpDownArrow","UpEquilibrium","UpperCaseQ","UpperLeftArrow","UpperRightArrow","UpperTriangularize","UpperTriangularMatrixQ","Upsample","UpSet","UpSetDelayed","UpTee","UpTeeArrow","UpTo","UpValues","URL","URLBuild","URLDecode","URLDispatcher","URLDownload","URLDownloadSubmit","URLEncode","URLExecute","URLExpand","URLFetch","URLFetchAsynchronous","URLParse","URLQueryDecode","URLQueryEncode","URLRead","URLResponseTime","URLSave","URLSaveAsynchronous","URLShorten","URLSubmit","UseGraphicsRange","UserDefinedWavelet","Using","UsingFrontEnd","UtilityFunction","V2Get","ValenceErrorHandling","ValidationLength","ValidationSet","Value","ValueBox","ValueBoxOptions","ValueDimensions","ValueForm","ValuePreprocessingFunction","ValueQ","Values","ValuesData","Variables","Variance","VarianceEquivalenceTest","VarianceEstimatorFunction","VarianceGammaDistribution","VarianceTest","VectorAngle","VectorAround","VectorAspectRatio","VectorColorFunction","VectorColorFunctionScaling","VectorDensityPlot","VectorGlyphData","VectorGreater","VectorGreaterEqual","VectorLess","VectorLessEqual","VectorMarkers","VectorPlot","VectorPlot3D","VectorPoints","VectorQ","VectorRange","Vectors","VectorScale","VectorScaling","VectorSizes","VectorStyle","Vee","Verbatim","Verbose","VerboseConvertToPostScriptPacket","VerificationTest","VerifyConvergence","VerifyDerivedKey","VerifyDigitalSignature","VerifyFileSignature","VerifyInterpretation","VerifySecurityCertificates","VerifySolutions","VerifyTestAssumptions","Version","VersionedPreferences","VersionNumber","VertexAdd","VertexCapacity","VertexColors","VertexComponent","VertexConnectivity","VertexContract","VertexCoordinateRules","VertexCoordinates","VertexCorrelationSimilarity","VertexCosineSimilarity","VertexCount","VertexCoverQ","VertexDataCoordinates","VertexDegree","VertexDelete","VertexDiceSimilarity","VertexEccentricity","VertexInComponent","VertexInDegree","VertexIndex","VertexJaccardSimilarity","VertexLabeling","VertexLabels","VertexLabelStyle","VertexList","VertexNormals","VertexOutComponent","VertexOutDegree","VertexQ","VertexRenderingFunction","VertexReplace","VertexShape","VertexShapeFunction","VertexSize","VertexStyle","VertexTextureCoordinates","VertexWeight","VertexWeightedGraphQ","Vertical","VerticalBar","VerticalForm","VerticalGauge","VerticalSeparator","VerticalSlider","VerticalTilde","Video","VideoEncoding","VideoExtractFrames","VideoFrameList","VideoFrameMap","VideoPause","VideoPlay","VideoQ","VideoStop","VideoStream","VideoStreams","VideoTimeSeries","VideoTracks","VideoTrim","ViewAngle","ViewCenter","ViewMatrix","ViewPoint","ViewPointSelectorSettings","ViewPort","ViewProjection","ViewRange","ViewVector","ViewVertical","VirtualGroupData","Visible","VisibleCell","VoiceStyleData","VoigtDistribution","VolcanoData","Volume","VonMisesDistribution","VoronoiMesh","WaitAll","WaitAsynchronousTask","WaitNext","WaitUntil","WakebyDistribution","WalleniusHypergeometricDistribution","WaringYuleDistribution","WarpingCorrespondence","WarpingDistance","WatershedComponents","WatsonUSquareTest","WattsStrogatzGraphDistribution","WaveletBestBasis","WaveletFilterCoefficients","WaveletImagePlot","WaveletListPlot","WaveletMapIndexed","WaveletMatrixPlot","WaveletPhi","WaveletPsi","WaveletScale","WaveletScalogram","WaveletThreshold","WeaklyConnectedComponents","WeaklyConnectedGraphComponents","WeaklyConnectedGraphQ","WeakStationarity","WeatherData","WeatherForecastData","WebAudioSearch","WebElementObject","WeberE","WebExecute","WebImage","WebImageSearch","WebSearch","WebSessionObject","WebSessions","WebWindowObject","Wedge","Wednesday","WeibullDistribution","WeierstrassE1","WeierstrassE2","WeierstrassE3","WeierstrassEta1","WeierstrassEta2","WeierstrassEta3","WeierstrassHalfPeriods","WeierstrassHalfPeriodW1","WeierstrassHalfPeriodW2","WeierstrassHalfPeriodW3","WeierstrassInvariantG2","WeierstrassInvariantG3","WeierstrassInvariants","WeierstrassP","WeierstrassPPrime","WeierstrassSigma","WeierstrassZeta","WeightedAdjacencyGraph","WeightedAdjacencyMatrix","WeightedData","WeightedGraphQ","Weights","WelchWindow","WheelGraph","WhenEvent","Which","While","White","WhiteNoiseProcess","WhitePoint","Whitespace","WhitespaceCharacter","WhittakerM","WhittakerW","WienerFilter","WienerProcess","WignerD","WignerSemicircleDistribution","WikidataData","WikidataSearch","WikipediaData","WikipediaSearch","WilksW","WilksWTest","WindDirectionData","WindingCount","WindingPolygon","WindowClickSelect","WindowElements","WindowFloating","WindowFrame","WindowFrameElements","WindowMargins","WindowMovable","WindowOpacity","WindowPersistentStyles","WindowSelected","WindowSize","WindowStatusArea","WindowTitle","WindowToolbars","WindowWidth","WindSpeedData","WindVectorData","WinsorizedMean","WinsorizedVariance","WishartMatrixDistribution","With","WolframAlpha","WolframAlphaDate","WolframAlphaQuantity","WolframAlphaResult","WolframLanguageData","Word","WordBoundary","WordCharacter","WordCloud","WordCount","WordCounts","WordData","WordDefinition","WordFrequency","WordFrequencyData","WordList","WordOrientation","WordSearch","WordSelectionFunction","WordSeparators","WordSpacings","WordStem","WordTranslation","WorkingPrecision","WrapAround","Write","WriteLine","WriteString","Wronskian","XMLElement","XMLObject","XMLTemplate","Xnor","Xor","XYZColor","Yellow","Yesterday","YuleDissimilarity","ZernikeR","ZeroSymmetric","ZeroTest","ZeroWidthTimes","Zeta","ZetaZero","ZIPCodeData","ZipfDistribution","ZoomCenter","ZoomFactor","ZTest","ZTransform","$Aborted","$ActivationGroupID","$ActivationKey","$ActivationUserRegistered","$AddOnsDirectory","$AllowDataUpdates","$AllowExternalChannelFunctions","$AllowInternet","$AssertFunction","$Assumptions","$AsynchronousTask","$AudioDecoders","$AudioEncoders","$AudioInputDevices","$AudioOutputDevices","$BaseDirectory","$BasePacletsDirectory","$BatchInput","$BatchOutput","$BlockchainBase","$BoxForms","$ByteOrdering","$CacheBaseDirectory","$Canceled","$ChannelBase","$CharacterEncoding","$CharacterEncodings","$CloudAccountName","$CloudBase","$CloudConnected","$CloudConnection","$CloudCreditsAvailable","$CloudEvaluation","$CloudExpressionBase","$CloudObjectNameFormat","$CloudObjectURLType","$CloudRootDirectory","$CloudSymbolBase","$CloudUserID","$CloudUserUUID","$CloudVersion","$CloudVersionNumber","$CloudWolframEngineVersionNumber","$CommandLine","$CompilationTarget","$ConditionHold","$ConfiguredKernels","$Context","$ContextPath","$ControlActiveSetting","$Cookies","$CookieStore","$CreationDate","$CurrentLink","$CurrentTask","$CurrentWebSession","$DataStructures","$DateStringFormat","$DefaultAudioInputDevice","$DefaultAudioOutputDevice","$DefaultFont","$DefaultFrontEnd","$DefaultImagingDevice","$DefaultLocalBase","$DefaultMailbox","$DefaultNetworkInterface","$DefaultPath","$DefaultProxyRules","$DefaultSystemCredentialStore","$Display","$DisplayFunction","$DistributedContexts","$DynamicEvaluation","$Echo","$EmbedCodeEnvironments","$EmbeddableServices","$EntityStores","$Epilog","$EvaluationCloudBase","$EvaluationCloudObject","$EvaluationEnvironment","$ExportFormats","$ExternalIdentifierTypes","$ExternalStorageBase","$Failed","$FinancialDataSource","$FontFamilies","$FormatType","$FrontEnd","$FrontEndSession","$GeoEntityTypes","$GeoLocation","$GeoLocationCity","$GeoLocationCountry","$GeoLocationPrecision","$GeoLocationSource","$HistoryLength","$HomeDirectory","$HTMLExportRules","$HTTPCookies","$HTTPRequest","$IgnoreEOF","$ImageFormattingWidth","$ImageResolution","$ImagingDevice","$ImagingDevices","$ImportFormats","$IncomingMailSettings","$InitialDirectory","$Initialization","$InitializationContexts","$Input","$InputFileName","$InputStreamMethods","$Inspector","$InstallationDate","$InstallationDirectory","$InterfaceEnvironment","$InterpreterTypes","$IterationLimit","$KernelCount","$KernelID","$Language","$LaunchDirectory","$LibraryPath","$LicenseExpirationDate","$LicenseID","$LicenseProcesses","$LicenseServer","$LicenseSubprocesses","$LicenseType","$Line","$Linked","$LinkSupported","$LoadedFiles","$LocalBase","$LocalSymbolBase","$MachineAddresses","$MachineDomain","$MachineDomains","$MachineEpsilon","$MachineID","$MachineName","$MachinePrecision","$MachineType","$MaxExtraPrecision","$MaxLicenseProcesses","$MaxLicenseSubprocesses","$MaxMachineNumber","$MaxNumber","$MaxPiecewiseCases","$MaxPrecision","$MaxRootDegree","$MessageGroups","$MessageList","$MessagePrePrint","$Messages","$MinMachineNumber","$MinNumber","$MinorReleaseNumber","$MinPrecision","$MobilePhone","$ModuleNumber","$NetworkConnected","$NetworkInterfaces","$NetworkLicense","$NewMessage","$NewSymbol","$NotebookInlineStorageLimit","$Notebooks","$NoValue","$NumberMarks","$Off","$OperatingSystem","$Output","$OutputForms","$OutputSizeLimit","$OutputStreamMethods","$Packages","$ParentLink","$ParentProcessID","$PasswordFile","$PatchLevelID","$Path","$PathnameSeparator","$PerformanceGoal","$Permissions","$PermissionsGroupBase","$PersistenceBase","$PersistencePath","$PipeSupported","$PlotTheme","$Post","$Pre","$PreferencesDirectory","$PreInitialization","$PrePrint","$PreRead","$PrintForms","$PrintLiteral","$Printout3DPreviewer","$ProcessID","$ProcessorCount","$ProcessorType","$ProductInformation","$ProgramName","$PublisherID","$RandomState","$RecursionLimit","$RegisteredDeviceClasses","$RegisteredUserName","$ReleaseNumber","$RequesterAddress","$RequesterWolframID","$RequesterWolframUUID","$RootDirectory","$ScheduledTask","$ScriptCommandLine","$ScriptInputString","$SecuredAuthenticationKeyTokens","$ServiceCreditsAvailable","$Services","$SessionID","$SetParentLink","$SharedFunctions","$SharedVariables","$SoundDisplay","$SoundDisplayFunction","$SourceLink","$SSHAuthentication","$SubtitleDecoders","$SubtitleEncoders","$SummaryBoxDataSizeLimit","$SuppressInputFormHeads","$SynchronousEvaluation","$SyntaxHandler","$System","$SystemCharacterEncoding","$SystemCredentialStore","$SystemID","$SystemMemory","$SystemShell","$SystemTimeZone","$SystemWordLength","$TemplatePath","$TemporaryDirectory","$TemporaryPrefix","$TestFileName","$TextStyle","$TimedOut","$TimeUnit","$TimeZone","$TimeZoneEntity","$TopDirectory","$TraceOff","$TraceOn","$TracePattern","$TracePostAction","$TracePreAction","$UnitSystem","$Urgent","$UserAddOnsDirectory","$UserAgentLanguages","$UserAgentMachine","$UserAgentName","$UserAgentOperatingSystem","$UserAgentString","$UserAgentVersion","$UserBaseDirectory","$UserBasePacletsDirectory","$UserDocumentsDirectory","$Username","$UserName","$UserURLBase","$Version","$VersionNumber","$VideoDecoders","$VideoEncoders","$VoiceStyles","$WolframDocumentsDirectory","$WolframID","$WolframUUID"];function cM(n){const e=n.regex,t=/([2-9]|[1-2]\d|[3][0-5])\^\^/,r=/(\w*\.\w+|\w+\.\w*|\w+)/,i=/(\d*\.\d+|\d+\.\d*|\d+)/,o=e.either(e.concat(t,r),i),s=/``[+-]?(\d*\.\d+|\d+\.\d*|\d+)/,a=/`([+-]?(\d*\.\d+|\d+\.\d*|\d+))?/,l=e.either(s,a),c=/\*\^[+-]?\d+/,h={className:"number",relevance:0,begin:e.concat(o,e.optional(l),e.optional(c))},g=/[a-zA-Z$][a-zA-Z0-9$]*/,b=new Set(lM),p={variants:[{className:"builtin-symbol",begin:g,"on:begin":(R,O)=>{b.has(R[0])||O.ignoreMatch()}},{className:"symbol",relevance:0,begin:g}]},v={className:"named-character",begin:/\\\[[$a-zA-Z][$a-zA-Z0-9]+\]/},w={className:"operator",relevance:0,begin:/[+\-*/,;.:@~=><&|_`'^?!%]+/},S={className:"pattern",relevance:0,begin:/([a-zA-Z$][a-zA-Z0-9$]*)?_+([a-zA-Z$][a-zA-Z0-9$]*)?/},C={className:"slot",relevance:0,begin:/#[a-zA-Z$][a-zA-Z0-9$]*|#+[0-9]?/},E={className:"brace",relevance:0,begin:/[[\](){}]/},A={className:"message-name",relevance:0,begin:e.concat("::",g)};return{name:"Mathematica",aliases:["mma","wl"],classNameAliases:{brace:"punctuation",pattern:"type",slot:"type",symbol:"variable","named-character":"variable","builtin-symbol":"built_in","message-name":"string"},contains:[n.COMMENT(/\(\*/,/\*\)/,{contains:["self"]}),S,C,A,p,v,n.QUOTE_STRING_MODE,h,w,E]}}function uM(n){const e="('|\\.')+",t={relevance:0,contains:[{begin:e}]};return{name:"Matlab",keywords:{keyword:"arguments break case catch classdef continue else elseif end enumeration events for function global if methods otherwise parfor persistent properties return spmd switch try while",built_in:"sin sind sinh asin asind asinh cos cosd cosh acos acosd acosh tan tand tanh atan atand atan2 atanh sec secd sech asec asecd asech csc cscd csch acsc acscd acsch cot cotd coth acot acotd acoth hypot exp expm1 log log1p log10 log2 pow2 realpow reallog realsqrt sqrt nthroot nextpow2 abs angle complex conj imag real unwrap isreal cplxpair fix floor ceil round mod rem sign airy besselj bessely besselh besseli besselk beta betainc betaln ellipj ellipke erf erfc erfcx erfinv expint gamma gammainc gammaln psi legendre cross dot factor isprime primes gcd lcm rat rats perms nchoosek factorial cart2sph cart2pol pol2cart sph2cart hsv2rgb rgb2hsv zeros ones eye repmat rand randn linspace logspace freqspace meshgrid accumarray size length ndims numel disp isempty isequal isequalwithequalnans cat reshape diag blkdiag tril triu fliplr flipud flipdim rot90 find sub2ind ind2sub bsxfun ndgrid permute ipermute shiftdim circshift squeeze isscalar isvector ans eps realmax realmin pi i|0 inf nan isnan isinf isfinite j|0 why compan gallery hadamard hankel hilb invhilb magic pascal rosser toeplitz vander wilkinson max min nanmax nanmin mean nanmean type table readtable writetable sortrows sort figure plot plot3 scatter scatter3 cellfun legend intersect ismember procrustes hold num2cell "},illegal:'(//|"|#|/\\*|\\s+/\\w+)',contains:[{className:"function",beginKeywords:"function",end:"$",contains:[n.UNDERSCORE_TITLE_MODE,{className:"params",variants:[{begin:"\\(",end:"\\)"},{begin:"\\[",end:"\\]"}]}]},{className:"built_in",begin:/true|false/,relevance:0,starts:t},{begin:"[a-zA-Z][a-zA-Z_0-9]*"+e,relevance:0},{className:"number",begin:n.C_NUMBER_RE,relevance:0,starts:t},{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{begin:/\]|\}|\)/,relevance:0,starts:t},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}],starts:t},n.COMMENT("^\\s*%\\{\\s*$","^\\s*%\\}\\s*$"),n.COMMENT("%","$")]}}function dM(n){const e=n.regex,t=["abs","accept","alarm","and","atan2","bind","binmode","bless","break","caller","chdir","chmod","chomp","chop","chown","chr","chroot","close","closedir","connect","continue","cos","crypt","dbmclose","dbmopen","defined","delete","die","do","dump","each","else","elsif","endgrent","endhostent","endnetent","endprotoent","endpwent","endservent","eof","eval","exec","exists","exit","exp","fcntl","fileno","flock","for","foreach","fork","format","formline","getc","getgrent","getgrgid","getgrnam","gethostbyaddr","gethostbyname","gethostent","getlogin","getnetbyaddr","getnetbyname","getnetent","getpeername","getpgrp","getpriority","getprotobyname","getprotobynumber","getprotoent","getpwent","getpwnam","getpwuid","getservbyname","getservbyport","getservent","getsockname","getsockopt","given","glob","gmtime","goto","grep","gt","hex","if","index","int","ioctl","join","keys","kill","last","lc","lcfirst","length","link","listen","local","localtime","log","lstat","lt","ma","map","mkdir","msgctl","msgget","msgrcv","msgsnd","my","ne","next","no","not","oct","open","opendir","or","ord","our","pack","package","pipe","pop","pos","print","printf","prototype","push","q|0","qq","quotemeta","qw","qx","rand","read","readdir","readline","readlink","readpipe","recv","redo","ref","rename","require","reset","return","reverse","rewinddir","rindex","rmdir","say","scalar","seek","seekdir","select","semctl","semget","semop","send","setgrent","sethostent","setnetent","setpgrp","setpriority","setprotoent","setpwent","setservent","setsockopt","shift","shmctl","shmget","shmread","shmwrite","shutdown","sin","sleep","socket","socketpair","sort","splice","split","sprintf","sqrt","srand","stat","state","study","sub","substr","symlink","syscall","sysopen","sysread","sysseek","system","syswrite","tell","telldir","tie","tied","time","times","tr","truncate","uc","ucfirst","umask","undef","unless","unlink","unpack","unshift","untie","until","use","utime","values","vec","wait","waitpid","wantarray","warn","when","while","write","x|0","xor","y|0"],r=/[dualxmsipngr]{0,12}/,i={$pattern:/[\w.]+/,keyword:t.join(" ")},o={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:i},s={begin:/->\{/,end:/\}/},a={variants:[{begin:/\$\d/},{begin:e.concat(/[$%@](\^\w\b|#\w+(::\w+)*|\{\w+\}|\w+(::\w*)*)/,"(?![A-Za-z])(?![@$%])")},{begin:/[$%@][^\s\w{]/,relevance:0}]},l=[n.BACKSLASH_ESCAPE,o,a],c=[/!/,/\//,/\|/,/\?/,/'/,/"/,/#/],u=(b,p,v="\\1")=>{const w=v==="\\1"?v:e.concat(v,p);return e.concat(e.concat("(?:",b,")"),p,/(?:\\.|[^\\\/])*?/,w,/(?:\\.|[^\\\/])*?/,v,r)},h=(b,p,v)=>e.concat(e.concat("(?:",b,")"),p,/(?:\\.|[^\\\/])*?/,v,r),g=[a,n.HASH_COMMENT_MODE,n.COMMENT(/^=\w/,/=cut/,{endsWithParent:!0}),s,{className:"string",contains:l,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*<",end:">",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[n.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[n.BACKSLASH_ESCAPE]},{begin:/\{\w+\}/,relevance:0},{begin:"-?\\w+\\s*=>",relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+n.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[n.HASH_COMMENT_MODE,{className:"regexp",variants:[{begin:u("s|tr|y",e.either(...c,{capture:!0}))},{begin:u("s|tr|y","\\(","\\)")},{begin:u("s|tr|y","\\[","\\]")},{begin:u("s|tr|y","\\{","\\}")}],relevance:2},{className:"regexp",variants:[{begin:/(m|qr)\/\//,relevance:0},{begin:h("(?:m|qr)?",/\//,/\//)},{begin:h("m|qr",e.either(...c,{capture:!0}),/\1/)},{begin:h("m|qr",/\(/,/\)/)},{begin:h("m|qr",/\[/,/\]/)},{begin:h("m|qr",/\{/,/\}/)}]}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[n.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return o.contains=g,s.contains=g,{name:"Perl",aliases:["pl","pm"],keywords:i,contains:g}}function hM(n){const e=n.regex,t={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{\w+\}/},{begin:e.concat(/[$@]/,n.UNDERSCORE_IDENT_RE)}]},i={endsWithParent:!0,keywords:{$pattern:/[a-z_]{2,}|\/dev\/poll/,literal:["on","off","yes","no","true","false","none","blocked","debug","info","notice","warn","error","crit","select","break","last","permanent","redirect","kqueue","rtsig","epoll","poll","/dev/poll"]},relevance:0,illegal:"=>",contains:[n.HASH_COMMENT_MODE,{className:"string",contains:[n.BACKSLASH_ESCAPE,t],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[t]},{className:"regexp",contains:[n.BACKSLASH_ESCAPE,t],variants:[{begin:"\\s\\^",end:"\\s|\\{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|\\{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]?\\b",relevance:0},t]};return{name:"Nginx config",aliases:["nginxconf"],contains:[n.HASH_COMMENT_MODE,{beginKeywords:"upstream location",end:/;|\{/,contains:i.contains,keywords:{section:"upstream location"}},{className:"section",begin:e.concat(n.UNDERSCORE_IDENT_RE+e.lookahead(/\s+\{/)),relevance:0},{begin:e.lookahead(n.UNDERSCORE_IDENT_RE+"\\s"),end:";|\\{",contains:[{className:"attribute",begin:n.UNDERSCORE_IDENT_RE,starts:i}],relevance:0}],illegal:"[^\\s\\}\\{]"}}function fM(n){const e=n.regex,t=/(?![A-Za-z0-9])(?![$])/,r=e.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,t),i=e.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,t),o={scope:"variable",match:"\\$+"+r},s={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},a={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},l=n.inherit(n.APOS_STRING_MODE,{illegal:null}),c=n.inherit(n.QUOTE_STRING_MODE,{illegal:null,contains:n.QUOTE_STRING_MODE.contains.concat(a)}),u=n.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:n.QUOTE_STRING_MODE.contains.concat(a)}),h=`[
126
+ ]`,g={scope:"string",variants:[c,l,u]},b={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},p=["false","null","true"],v=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],w=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],C={keyword:v,literal:(X=>{const oe=[];return X.forEach(K=>{oe.push(K),K.toLowerCase()===K?oe.push(K.toUpperCase()):oe.push(K.toLowerCase())}),oe})(p),built_in:w},E=X=>X.map(oe=>oe.replace(/\|\d+$/,"")),A={variants:[{match:[/new/,e.concat(h,"+"),e.concat("(?!",E(w).join("\\b|"),"\\b)"),i],scope:{1:"keyword",4:"title.class"}}]},R=e.concat(r,"\\b(?!\\()"),O={variants:[{match:[e.concat(/::/,e.lookahead(/(?!class\b)/)),R],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[i,e.concat(/::/,e.lookahead(/(?!class\b)/)),R],scope:{1:"title.class",3:"variable.constant"}},{match:[i,e.concat("::",e.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[i,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},H={scope:"attr",match:e.concat(r,e.lookahead(":"),e.lookahead(/(?!::)/))},q={relevance:0,begin:/\(/,end:/\)/,keywords:C,contains:[H,o,O,n.C_BLOCK_COMMENT_MODE,g,b,A]},U={relevance:0,match:[/\b/,e.concat("(?!fn\\b|function\\b|",E(v).join("\\b|"),"|",E(w).join("\\b|"),"\\b)"),r,e.concat(h,"*"),e.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[q]};q.contains.push(U);const F=[H,O,n.C_BLOCK_COMMENT_MODE,g,b,A],Y={begin:e.concat(/#\[\s*/,i),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:p,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:p,keyword:["new","array"]},contains:["self",...F]},...F,{scope:"meta",match:i}]};return{case_insensitive:!1,keywords:C,contains:[Y,n.HASH_COMMENT_MODE,n.COMMENT("//","$"),n.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:n.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},s,{scope:"variable.language",match:/\$this\b/},o,U,O,{match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},A,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},n.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:C,contains:["self",o,O,n.C_BLOCK_COMMENT_MODE,g,b]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},n.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[n.inherit(n.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},n.UNDERSCORE_TITLE_MODE]},g,b]}}function pM(n){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}function mM(n){const e=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],t="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",r="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",i={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},o=/\w[\w\d]*((-)[\w\d]+)*/,s={begin:"`[\\s\\S]",relevance:0},a={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[s,a,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},u={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},h={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},g=n.inherit(n.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[h]}),b={className:"built_in",variants:[{begin:"(".concat(t,")+(-)[\\w\\d]+")}]},p={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[n.TITLE_MODE]},v={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:o,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[a]}]},w={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,u,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},S={variants:[{className:"operator",begin:"(".concat(r,")\\b")},{className:"literal",begin:/(-){1,2}[\w\d-]+/,relevance:0}]},C={className:"selector-tag",begin:/@\B/,relevance:0},E={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(i.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},n.inherit(n.TITLE_MODE,{endsParent:!0})]},A=[E,g,s,n.NUMBER_MODE,c,u,b,a,l,C],R={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",A,{begin:"("+e.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return E.contains.unshift(R),{name:"PowerShell",aliases:["pwsh","ps","ps1"],case_insensitive:!0,keywords:i,contains:A.concat(p,v,w,S,R)}}function gM(n){return{name:"Python profiler",contains:[n.C_NUMBER_MODE,{begin:"[a-zA-Z_][\\da-zA-Z_]+\\.[\\da-zA-Z_]{1,3}",end:":",excludeEnd:!0},{begin:"(ncalls|tottime|cumtime)",end:"$",keywords:"ncalls tottime|10 cumtime|10 filename",relevance:10},{begin:"function calls",end:"$",contains:[n.C_NUMBER_MODE],relevance:10},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,{className:"string",begin:"\\(",end:"\\)$",excludeBegin:!0,excludeEnd:!0,relevance:0}]}}function bM(n){const e=["package","import","option","optional","required","repeated","group","oneof"],t=["double","float","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","bool","string","bytes"],r={match:[/(message|enum|service)\s+/,n.IDENT_RE],scope:{1:"keyword",2:"title.class"}};return{name:"Protocol Buffers",keywords:{keyword:e,type:t,literal:["true","false"]},contains:[n.QUOTE_STRING_MODE,n.NUMBER_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,r,{className:"function",beginKeywords:"rpc",end:/[{;]/,excludeEnd:!0,keywords:"rpc returns"},{begin:/^\s*[A-Z_]+(?=\s*=[^\n]+;$)/}]}}function _M(n){const e=n.regex,t=new RegExp("[\\p{XID_Start}_]\\p{XID_Continue}*","u"),r=["and","as","assert","async","await","break","case","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","match","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],a={$pattern:/[A-Za-z]\w+|__\w+__/,keyword:r,built_in:["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],literal:["__debug__","Ellipsis","False","None","NotImplemented","True"],type:["Any","Callable","Coroutine","Dict","List","Literal","Generic","Optional","Sequence","Set","Tuple","Type","Union"]},l={className:"meta",begin:/^(>>>|\.\.\.) /},c={className:"subst",begin:/\{/,end:/\}/,keywords:a,illegal:/#/},u={begin:/\{\{/,relevance:0},h={className:"string",contains:[n.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,l],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[n.BACKSLASH_ESCAPE,l,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[n.BACKSLASH_ESCAPE,l,u,c]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[n.BACKSLASH_ESCAPE,u,c]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,u,c]},n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},g="[0-9](_?[0-9])*",b=`(\\b(${g}))?\\.(${g})|\\b(${g})\\.`,p=`\\b|${r.join("|")}`,v={className:"number",relevance:0,variants:[{begin:`(\\b(${g})|(${b}))[eE][+-]?(${g})[jJ]?(?=${p})`},{begin:`(${b})[jJ]?`},{begin:`\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?(?=${p})`},{begin:`\\b0[bB](_?[01])+[lL]?(?=${p})`},{begin:`\\b0[oO](_?[0-7])+[lL]?(?=${p})`},{begin:`\\b0[xX](_?[0-9a-fA-F])+[lL]?(?=${p})`},{begin:`\\b(${g})[jJ](?=${p})`}]},w={className:"comment",begin:e.lookahead(/# type:/),end:/$/,keywords:a,contains:[{begin:/# type:/},{begin:/#/,end:/\b\B/,endsWithParent:!0}]},S={className:"params",variants:[{className:"",begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:a,contains:["self",l,v,h,n.HASH_COMMENT_MODE]}]};return c.contains=[h,v,l],{name:"Python",aliases:["py","gyp","ipython"],unicodeRegex:!0,keywords:a,illegal:/(<\/|->|\?)|=>/,contains:[l,v,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},h,w,n.HASH_COMMENT_MODE,{match:[/\bdef/,/\s+/,t],scope:{1:"keyword",3:"title.function"},contains:[S]},{variants:[{match:[/\bclass/,/\s+/,t,/\s*/,/\(\s*/,t,/\s*\)/]},{match:[/\bclass/,/\s+/,t]}],scope:{1:"keyword",3:"title.class",6:"title.class.inherited"}},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[v,S,h]}]}}function yM(n){const e=n.regex,t={className:"title.function.invoke",relevance:0,begin:e.concat(/\b/,/(?!let\b)/,n.IDENT_RE,e.lookahead(/\s*\(/))},r="([ui](8|16|32|64|128|size)|f(32|64))?",i=["abstract","as","async","await","become","box","break","const","continue","crate","do","dyn","else","enum","extern","false","final","fn","for","if","impl","in","let","loop","macro","match","mod","move","mut","override","priv","pub","ref","return","self","Self","static","struct","super","trait","true","try","type","typeof","unsafe","unsized","use","virtual","where","while","yield"],o=["true","false","Some","None","Ok","Err"],s=["drop ","Copy","Send","Sized","Sync","Drop","Fn","FnMut","FnOnce","ToOwned","Clone","Debug","PartialEq","PartialOrd","Eq","Ord","AsRef","AsMut","Into","From","Default","Iterator","Extend","IntoIterator","DoubleEndedIterator","ExactSizeIterator","SliceConcatExt","ToString","assert!","assert_eq!","bitflags!","bytes!","cfg!","col!","concat!","concat_idents!","debug_assert!","debug_assert_eq!","env!","panic!","file!","format!","format_args!","include_bytes!","include_str!","line!","local_data_key!","module_path!","option_env!","print!","println!","select!","stringify!","try!","unimplemented!","unreachable!","vec!","write!","writeln!","macro_rules!","assert_ne!","debug_assert_ne!"],a=["i8","i16","i32","i64","i128","isize","u8","u16","u32","u64","u128","usize","f32","f64","str","char","bool","Box","Option","Result","String","Vec"];return{name:"Rust",aliases:["rs"],keywords:{$pattern:n.IDENT_RE+"!?",type:a,keyword:i,literal:o,built_in:s},illegal:"</",contains:[n.C_LINE_COMMENT_MODE,n.COMMENT("/\\*","\\*/",{contains:["self"]}),n.inherit(n.QUOTE_STRING_MODE,{begin:/b?"/,illegal:null}),{className:"string",variants:[{begin:/b?r(#*)"(.|\n)*?"\1(?!#)/},{begin:/b?'\\?(x\w{2}|u\w{4}|U\w{8}|.)'/}]},{className:"symbol",begin:/'[a-zA-Z_][a-zA-Z0-9_]*/},{className:"number",variants:[{begin:"\\b0b([01_]+)"+r},{begin:"\\b0o([0-7_]+)"+r},{begin:"\\b0x([A-Fa-f0-9_]+)"+r},{begin:"\\b(\\d[\\d_]*(\\.[0-9_]+)?([eE][+-]?[0-9_]+)?)"+r}],relevance:0},{begin:[/fn/,/\s+/,n.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.function"}},{className:"meta",begin:"#!?\\[",end:"\\]",contains:[{className:"string",begin:/"/,end:/"/}]},{begin:[/let/,/\s+/,/(?:mut\s+)?/,n.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"keyword",4:"variable"}},{begin:[/for/,/\s+/,n.UNDERSCORE_IDENT_RE,/\s+/,/in/],className:{1:"keyword",3:"variable",5:"keyword"}},{begin:[/type/,/\s+/,n.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:[/(?:trait|enum|struct|union|impl|for)/,/\s+/,n.UNDERSCORE_IDENT_RE],className:{1:"keyword",3:"title.class"}},{begin:n.IDENT_RE+"::",keywords:{keyword:"Self",built_in:s,type:a}},{className:"punctuation",begin:"->"},t]}}const vM=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),wM=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],xM=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],kM=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],SM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],EM=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function CM(n){const e=vM(n),t=SM,r=kM,i="@[a-z-]+",o="and or not only",a={className:"variable",begin:"(\\$"+"[a-zA-Z-][a-zA-Z0-9_-]*"+")\\b",relevance:0};return{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,e.CSS_NUMBER_MODE,{className:"selector-id",begin:"#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},e.ATTRIBUTE_SELECTOR_MODE,{className:"selector-tag",begin:"\\b("+wM.join("|")+")\\b",relevance:0},{className:"selector-pseudo",begin:":("+r.join("|")+")"},{className:"selector-pseudo",begin:":(:)?("+t.join("|")+")"},a,{begin:/\(/,end:/\)/,contains:[e.CSS_NUMBER_MODE]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+EM.join("|")+")\\b"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:/:/,end:/[;}{]/,relevance:0,contains:[e.BLOCK_COMMENT,a,e.HEXCOLOR,e.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH]},{begin:"@(page|font-face)",keywords:{$pattern:i,keyword:"@page @font-face"}},{begin:"@",end:"[{;]",returnBegin:!0,keywords:{$pattern:/[a-z-]+/,keyword:o,attribute:xM.join(" ")},contains:[{begin:i,className:"keyword"},{begin:/[a-z-]+(?=:)/,className:"attribute"},a,n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,e.HEXCOLOR,e.CSS_NUMBER_MODE]},e.FUNCTION_DISPATCH]}}function TM(n){const e=n.regex,t=n.COMMENT("--","$"),r={className:"string",variants:[{begin:/'/,end:/'/,contains:[{begin:/''/}]}]},i={begin:/"/,end:/"/,contains:[{begin:/""/}]},o=["true","false","unknown"],s=["double precision","large object","with timezone","without timezone"],a=["bigint","binary","blob","boolean","char","character","clob","date","dec","decfloat","decimal","float","int","integer","interval","nchar","nclob","national","numeric","real","row","smallint","time","timestamp","varchar","varying","varbinary"],l=["add","asc","collation","desc","final","first","last","view"],c=["abs","acos","all","allocate","alter","and","any","are","array","array_agg","array_max_cardinality","as","asensitive","asin","asymmetric","at","atan","atomic","authorization","avg","begin","begin_frame","begin_partition","between","bigint","binary","blob","boolean","both","by","call","called","cardinality","cascaded","case","cast","ceil","ceiling","char","char_length","character","character_length","check","classifier","clob","close","coalesce","collate","collect","column","commit","condition","connect","constraint","contains","convert","copy","corr","corresponding","cos","cosh","count","covar_pop","covar_samp","create","cross","cube","cume_dist","current","current_catalog","current_date","current_default_transform_group","current_path","current_role","current_row","current_schema","current_time","current_timestamp","current_path","current_role","current_transform_group_for_type","current_user","cursor","cycle","date","day","deallocate","dec","decimal","decfloat","declare","default","define","delete","dense_rank","deref","describe","deterministic","disconnect","distinct","double","drop","dynamic","each","element","else","empty","end","end_frame","end_partition","end-exec","equals","escape","every","except","exec","execute","exists","exp","external","extract","false","fetch","filter","first_value","float","floor","for","foreign","frame_row","free","from","full","function","fusion","get","global","grant","group","grouping","groups","having","hold","hour","identity","in","indicator","initial","inner","inout","insensitive","insert","int","integer","intersect","intersection","interval","into","is","join","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","language","large","last_value","lateral","lead","leading","left","like","like_regex","listagg","ln","local","localtime","localtimestamp","log","log10","lower","match","match_number","match_recognize","matches","max","member","merge","method","min","minute","mod","modifies","module","month","multiset","national","natural","nchar","nclob","new","no","none","normalize","not","nth_value","ntile","null","nullif","numeric","octet_length","occurrences_regex","of","offset","old","omit","on","one","only","open","or","order","out","outer","over","overlaps","overlay","parameter","partition","pattern","per","percent","percent_rank","percentile_cont","percentile_disc","period","portion","position","position_regex","power","precedes","precision","prepare","primary","procedure","ptf","range","rank","reads","real","recursive","ref","references","referencing","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","release","result","return","returns","revoke","right","rollback","rollup","row","row_number","rows","running","savepoint","scope","scroll","search","second","seek","select","sensitive","session_user","set","show","similar","sin","sinh","skip","smallint","some","specific","specifictype","sql","sqlexception","sqlstate","sqlwarning","sqrt","start","static","stddev_pop","stddev_samp","submultiset","subset","substring","substring_regex","succeeds","sum","symmetric","system","system_time","system_user","table","tablesample","tan","tanh","then","time","timestamp","timezone_hour","timezone_minute","to","trailing","translate","translate_regex","translation","treat","trigger","trim","trim_array","true","truncate","uescape","union","unique","unknown","unnest","update","upper","user","using","value","values","value_of","var_pop","var_samp","varbinary","varchar","varying","versioning","when","whenever","where","width_bucket","window","with","within","without","year"],u=["abs","acos","array_agg","asin","atan","avg","cast","ceil","ceiling","coalesce","corr","cos","cosh","count","covar_pop","covar_samp","cume_dist","dense_rank","deref","element","exp","extract","first_value","floor","json_array","json_arrayagg","json_exists","json_object","json_objectagg","json_query","json_table","json_table_primitive","json_value","lag","last_value","lead","listagg","ln","log","log10","lower","max","min","mod","nth_value","ntile","nullif","percent_rank","percentile_cont","percentile_disc","position","position_regex","power","rank","regr_avgx","regr_avgy","regr_count","regr_intercept","regr_r2","regr_slope","regr_sxx","regr_sxy","regr_syy","row_number","sin","sinh","sqrt","stddev_pop","stddev_samp","substring","substring_regex","sum","tan","tanh","translate","translate_regex","treat","trim","trim_array","unnest","upper","value_of","var_pop","var_samp","width_bucket"],h=["current_catalog","current_date","current_default_transform_group","current_path","current_role","current_schema","current_transform_group_for_type","current_user","session_user","system_time","system_user","current_time","localtime","current_timestamp","localtimestamp"],g=["create table","insert into","primary key","foreign key","not null","alter table","add constraint","grouping sets","on overflow","character set","respect nulls","ignore nulls","nulls first","nulls last","depth first","breadth first"],b=u,p=[...c,...l].filter(E=>!u.includes(E)),v={className:"variable",begin:/@[a-z0-9]+/},w={className:"operator",begin:/[-+*/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?/,relevance:0},S={begin:e.concat(/\b/,e.either(...b),/\s*\(/),relevance:0,keywords:{built_in:b}};function C(E,{exceptions:A,when:R}={}){const O=R;return A=A||[],E.map(H=>H.match(/\|\d+$/)||A.includes(H)?H:O(H)?`${H}|0`:H)}return{name:"SQL",case_insensitive:!0,illegal:/[{}]|<\//,keywords:{$pattern:/\b[\w\.]+/,keyword:C(p,{when:E=>E.length<3}),literal:o,type:a,built_in:h},contains:[{begin:e.either(...g),relevance:0,keywords:{$pattern:/[\w\.]+/,keyword:p.concat(g),literal:o,type:a}},{className:"type",begin:e.either(...s)},S,v,r,i,n.C_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,t,w]}}const AM=n=>({IMPORTANT:{scope:"meta",begin:"!important"},BLOCK_COMMENT:n.C_BLOCK_COMMENT_MODE,HEXCOLOR:{scope:"number",begin:/#(([0-9a-fA-F]{3,4})|(([0-9a-fA-F]{2}){3,4}))\b/},FUNCTION_DISPATCH:{className:"built_in",begin:/[\w-]+(?=\()/},ATTRIBUTE_SELECTOR_MODE:{scope:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[n.APOS_STRING_MODE,n.QUOTE_STRING_MODE]},CSS_NUMBER_MODE:{scope:"number",begin:n.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},CSS_VARIABLE:{className:"attr",begin:/--[A-Za-z][A-Za-z0-9_-]*/}}),MM=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","html","i","iframe","img","input","ins","kbd","label","legend","li","main","mark","menu","nav","object","ol","p","q","quote","samp","section","span","strong","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","ul","var","video"],NM=["any-hover","any-pointer","aspect-ratio","color","color-gamut","color-index","device-aspect-ratio","device-height","device-width","display-mode","forced-colors","grid","height","hover","inverted-colors","monochrome","orientation","overflow-block","overflow-inline","pointer","prefers-color-scheme","prefers-contrast","prefers-reduced-motion","prefers-reduced-transparency","resolution","scan","scripting","update","width","min-width","max-width","min-height","max-height"],DM=["active","any-link","blank","checked","current","default","defined","dir","disabled","drop","empty","enabled","first","first-child","first-of-type","fullscreen","future","focus","focus-visible","focus-within","has","host","host-context","hover","indeterminate","in-range","invalid","is","lang","last-child","last-of-type","left","link","local-link","not","nth-child","nth-col","nth-last-child","nth-last-col","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","past","placeholder-shown","read-only","read-write","required","right","root","scope","target","target-within","user-invalid","valid","visited","where"],RM=["after","backdrop","before","cue","cue-region","first-letter","first-line","grammar-error","marker","part","placeholder","selection","slotted","spelling-error"],OM=["align-content","align-items","align-self","all","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","block-size","border","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","clip-path","clip-rule","color","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","content-visibility","counter-increment","counter-reset","cue","cue-after","cue-before","cursor","direction","display","empty-cells","filter","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","flow","font","font-display","font-family","font-feature-settings","font-kerning","font-language-override","font-size","font-size-adjust","font-smoothing","font-stretch","font-style","font-synthesis","font-variant","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","glyph-orientation-vertical","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","ime-mode","inline-size","isolation","justify-content","left","letter-spacing","line-break","line-height","list-style","list-style-image","list-style-position","list-style-type","margin","margin-block","margin-block-end","margin-block-start","margin-bottom","margin-inline","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","marks","mask","mask-border","mask-border-mode","mask-border-outset","mask-border-repeat","mask-border-slice","mask-border-source","mask-border-width","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","nav-down","nav-index","nav-left","nav-right","nav-up","none","normal","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-wrap","overflow-x","overflow-y","padding","padding-block","padding-block-end","padding-block-start","padding-bottom","padding-inline","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","page-break-after","page-break-before","page-break-inside","pause","pause-after","pause-before","perspective","perspective-origin","pointer-events","position","quotes","resize","rest","rest-after","rest-before","right","row-gap","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-stop","scroll-snap-type","scrollbar-color","scrollbar-gutter","scrollbar-width","shape-image-threshold","shape-margin","shape-outside","speak","speak-as","src","tab-size","table-layout","text-align","text-align-all","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-indent","text-justify","text-orientation","text-overflow","text-rendering","text-shadow","text-transform","text-underline-position","top","transform","transform-box","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index"].reverse();function IM(n){const e=AM(n),t="and or not only",r={className:"variable",begin:"\\$"+n.IDENT_RE},i=["charset","css","debug","extend","font-face","for","import","include","keyframes","media","mixin","page","warn","while"],o="(?=[.\\s\\n[:,(])";return{name:"Stylus",aliases:["styl"],case_insensitive:!1,keywords:"if else for in",illegal:"("+["\\?","(\\bReturn\\b)","(\\bEnd\\b)","(\\bend\\b)","(\\bdef\\b)",";","#\\s","\\*\\s","===\\s","\\|","%"].join("|")+")",contains:[n.QUOTE_STRING_MODE,n.APOS_STRING_MODE,n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE,e.HEXCOLOR,{begin:"\\.[a-zA-Z][a-zA-Z0-9_-]*"+o,className:"selector-class"},{begin:"#[a-zA-Z][a-zA-Z0-9_-]*"+o,className:"selector-id"},{begin:"\\b("+MM.join("|")+")"+o,className:"selector-tag"},{className:"selector-pseudo",begin:"&?:("+DM.join("|")+")"+o},{className:"selector-pseudo",begin:"&?:(:)?("+RM.join("|")+")"+o},e.ATTRIBUTE_SELECTOR_MODE,{className:"keyword",begin:/@media/,starts:{end:/[{;}]/,keywords:{$pattern:/[a-z-]+/,keyword:t,attribute:NM.join(" ")},contains:[e.CSS_NUMBER_MODE]}},{className:"keyword",begin:"@((-(o|moz|ms|webkit)-)?("+i.join("|")+"))\\b"},r,e.CSS_NUMBER_MODE,{className:"function",begin:"^[a-zA-Z][a-zA-Z0-9_-]*\\(.*\\)",illegal:"[\\n]",returnBegin:!0,contains:[{className:"title",begin:"\\b[a-zA-Z][a-zA-Z0-9_-]*"},{className:"params",begin:/\(/,end:/\)/,contains:[e.HEXCOLOR,r,n.APOS_STRING_MODE,e.CSS_NUMBER_MODE,n.QUOTE_STRING_MODE]}]},e.CSS_VARIABLE,{className:"attribute",begin:"\\b("+OM.join("|")+")\\b",starts:{end:/;|$/,contains:[e.HEXCOLOR,r,n.APOS_STRING_MODE,n.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE,n.C_BLOCK_COMMENT_MODE,e.IMPORTANT,e.FUNCTION_DISPATCH],illegal:/\./,relevance:0}},e.FUNCTION_DISPATCH]}}function Yy(n){return n?typeof n=="string"?n:n.source:null}function Cc(n){return Rt("(?=",n,")")}function Rt(...n){return n.map(t=>Yy(t)).join("")}function LM(n){const e=n[n.length-1];return typeof e=="object"&&e.constructor===Object?(n.splice(n.length-1,1),e):{}}function Ln(...n){return"("+(LM(n).capture?"":"?:")+n.map(r=>Yy(r)).join("|")+")"}const Vd=n=>Rt(/\b/,n,/\w$/.test(n)?/\b/:/\B/),BM=["Protocol","Type"].map(Vd),Zy=["init","self"].map(Vd),PM=["Any","Self"],Ud=["actor","any","associatedtype","async","await",/as\?/,/as!/,"as","break","case","catch","class","continue","convenience","default","defer","deinit","didSet","distributed","do","dynamic","else","enum","extension","fallthrough",/fileprivate\(set\)/,"fileprivate","final","for","func","get","guard","if","import","indirect","infix",/init\?/,/init!/,"inout",/internal\(set\)/,"internal","in","is","isolated","nonisolated","lazy","let","mutating","nonmutating",/open\(set\)/,"open","operator","optional","override","postfix","precedencegroup","prefix",/private\(set\)/,"private","protocol",/public\(set\)/,"public","repeat","required","rethrows","return","set","some","static","struct","subscript","super","switch","throws","throw",/try\?/,/try!/,"try","typealias",/unowned\(safe\)/,/unowned\(unsafe\)/,"unowned","var","weak","where","while","willSet"],Xy=["false","nil","true"],FM=["assignment","associativity","higherThan","left","lowerThan","none","right"],zM=["#colorLiteral","#column","#dsohandle","#else","#elseif","#endif","#error","#file","#fileID","#fileLiteral","#filePath","#function","#if","#imageLiteral","#keyPath","#line","#selector","#sourceLocation","#warn_unqualified_access","#warning"],Jy=["abs","all","any","assert","assertionFailure","debugPrint","dump","fatalError","getVaList","isKnownUniquelyReferenced","max","min","numericCast","pointwiseMax","pointwiseMin","precondition","preconditionFailure","print","readLine","repeatElement","sequence","stride","swap","swift_unboxFromSwiftValueWithType","transcode","type","unsafeBitCast","unsafeDowncast","withExtendedLifetime","withUnsafeMutablePointer","withUnsafePointer","withVaList","withoutActuallyEscaping","zip"],e4=Ln(/[/=\-+!*%<>&|^~?]/,/[\u00A1-\u00A7]/,/[\u00A9\u00AB]/,/[\u00AC\u00AE]/,/[\u00B0\u00B1]/,/[\u00B6\u00BB\u00BF\u00D7\u00F7]/,/[\u2016-\u2017]/,/[\u2020-\u2027]/,/[\u2030-\u203E]/,/[\u2041-\u2053]/,/[\u2055-\u205E]/,/[\u2190-\u23FF]/,/[\u2500-\u2775]/,/[\u2794-\u2BFF]/,/[\u2E00-\u2E7F]/,/[\u3001-\u3003]/,/[\u3008-\u3020]/,/[\u3030]/),t4=Ln(e4,/[\u0300-\u036F]/,/[\u1DC0-\u1DFF]/,/[\u20D0-\u20FF]/,/[\uFE00-\uFE0F]/,/[\uFE20-\uFE2F]/),Gd=Rt(e4,t4,"*"),n4=Ln(/[a-zA-Z_]/,/[\u00A8\u00AA\u00AD\u00AF\u00B2-\u00B5\u00B7-\u00BA]/,/[\u00BC-\u00BE\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF]/,/[\u0100-\u02FF\u0370-\u167F\u1681-\u180D\u180F-\u1DBF]/,/[\u1E00-\u1FFF]/,/[\u200B-\u200D\u202A-\u202E\u203F-\u2040\u2054\u2060-\u206F]/,/[\u2070-\u20CF\u2100-\u218F\u2460-\u24FF\u2776-\u2793]/,/[\u2C00-\u2DFF\u2E80-\u2FFF]/,/[\u3004-\u3007\u3021-\u302F\u3031-\u303F\u3040-\uD7FF]/,/[\uF900-\uFD3D\uFD40-\uFDCF\uFDF0-\uFE1F\uFE30-\uFE44]/,/[\uFE47-\uFEFE\uFF00-\uFFFD]/),Tc=Ln(n4,/\d/,/[\u0300-\u036F\u1DC0-\u1DFF\u20D0-\u20FF\uFE20-\uFE2F]/),Qr=Rt(n4,Tc,"*"),$d=Rt(/[A-Z]/,Tc,"*"),qM=["autoclosure",Rt(/convention\(/,Ln("swift","block","c"),/\)/),"discardableResult","dynamicCallable","dynamicMemberLookup","escaping","frozen","GKInspectable","IBAction","IBDesignable","IBInspectable","IBOutlet","IBSegueAction","inlinable","main","nonobjc","NSApplicationMain","NSCopying","NSManaged",Rt(/objc\(/,Qr,/\)/),"objc","objcMembers","propertyWrapper","requires_stored_property_inits","resultBuilder","testable","UIApplicationMain","unknown","usableFromInline"],HM=["iOS","iOSApplicationExtension","macOS","macOSApplicationExtension","macCatalyst","macCatalystApplicationExtension","watchOS","watchOSApplicationExtension","tvOS","tvOSApplicationExtension","swift"];function VM(n){const e={match:/\s+/,relevance:0},t=n.COMMENT("/\\*","\\*/",{contains:["self"]}),r=[n.C_LINE_COMMENT_MODE,t],i={match:[/\./,Ln(...BM,...Zy)],className:{2:"keyword"}},o={match:Rt(/\./,Ln(...Ud)),relevance:0},s=Ud.filter(Be=>typeof Be=="string").concat(["_|0"]),a=Ud.filter(Be=>typeof Be!="string").concat(PM).map(Vd),l={variants:[{className:"keyword",match:Ln(...a,...Zy)}]},c={$pattern:Ln(/\b\w+/,/#\w+/),keyword:s.concat(zM),literal:Xy},u=[i,o,l],h={match:Rt(/\./,Ln(...Jy)),relevance:0},g={className:"built_in",match:Rt(/\b/,Ln(...Jy),/(?=\()/)},b=[h,g],p={match:/->/,relevance:0},v={className:"operator",relevance:0,variants:[{match:Gd},{match:`\\.(\\.|${t4})+`}]},w=[p,v],S="([0-9]_*)+",C="([0-9a-fA-F]_*)+",E={className:"number",relevance:0,variants:[{match:`\\b(${S})(\\.(${S}))?([eE][+-]?(${S}))?\\b`},{match:`\\b0x(${C})(\\.(${C}))?([pP][+-]?(${S}))?\\b`},{match:/\b0o([0-7]_*)+\b/},{match:/\b0b([01]_*)+\b/}]},A=(Be="")=>({className:"subst",variants:[{match:Rt(/\\/,Be,/[0\\tnr"']/)},{match:Rt(/\\/,Be,/u\{[0-9a-fA-F]{1,8}\}/)}]}),R=(Be="")=>({className:"subst",match:Rt(/\\/,Be,/[\t ]*(?:[\r\n]|\r\n)/)}),O=(Be="")=>({className:"subst",label:"interpol",begin:Rt(/\\/,Be,/\(/),end:/\)/}),H=(Be="")=>({begin:Rt(Be,/"""/),end:Rt(/"""/,Be),contains:[A(Be),R(Be),O(Be)]}),q=(Be="")=>({begin:Rt(Be,/"/),end:Rt(/"/,Be),contains:[A(Be),O(Be)]}),U={className:"string",variants:[H(),H("#"),H("##"),H("###"),q(),q("#"),q("##"),q("###")]},F={match:Rt(/`/,Qr,/`/)},Y={className:"variable",match:/\$\d+/},X={className:"variable",match:`\\$${Tc}+`},oe=[F,Y,X],K={match:/(@|#(un)?)available/,className:"keyword",starts:{contains:[{begin:/\(/,end:/\)/,keywords:HM,contains:[...w,E,U]}]}},ee={className:"keyword",match:Rt(/@/,Ln(...qM))},$={className:"meta",match:Rt(/@/,Qr)},Q=[K,ee,$],ie={match:Cc(/\b[A-Z]/),relevance:0,contains:[{className:"type",match:Rt(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/,Tc,"+")},{className:"type",match:$d,relevance:0},{match:/[?!]+/,relevance:0},{match:/\.\.\./,relevance:0},{match:Rt(/\s+&\s+/,Cc($d)),relevance:0}]},Z={begin:/</,end:/>/,keywords:c,contains:[...r,...u,...Q,p,ie]};ie.contains.push(Z);const J={match:Rt(Qr,/\s*:/),keywords:"_|0",relevance:0},ue={begin:/\(/,end:/\)/,relevance:0,keywords:c,contains:["self",J,...r,...u,...b,...w,E,U,...oe,...Q,ie]},fe={begin:/</,end:/>/,contains:[...r,ie]},ke={begin:Ln(Cc(Rt(Qr,/\s*:/)),Cc(Rt(Qr,/\s+/,Qr,/\s*:/))),end:/:/,relevance:0,contains:[{className:"keyword",match:/\b_\b/},{className:"params",match:Qr}]},Te={begin:/\(/,end:/\)/,keywords:c,contains:[ke,...r,...u,...w,E,U,...Q,ie,ue],endsParent:!0,illegal:/["']/},Ke={match:[/func/,/\s+/,Ln(F.match,Qr,Gd)],className:{1:"keyword",3:"title.function"},contains:[fe,Te,e],illegal:[/\[/,/%/]},Qe={match:[/\b(?:subscript|init[?!]?)/,/\s*(?=[<(])/],className:{1:"keyword"},contains:[fe,Te,e],illegal:/\[|%/},Ze={match:[/operator/,/\s+/,Gd],className:{1:"keyword",3:"title"}},ot={begin:[/precedencegroup/,/\s+/,$d],className:{1:"keyword",3:"title"},contains:[ie],keywords:[...FM,...Xy],end:/}/};for(const Be of U.variants){const dt=Be.contains.find(at=>at.label==="interpol");dt.keywords=c;const tt=[...u,...b,...w,E,U,...oe];dt.contains=[...tt,{begin:/\(/,end:/\)/,contains:["self",...tt]}]}return{name:"Swift",keywords:c,contains:[...r,Ke,Qe,{beginKeywords:"struct protocol class extension enum actor",end:"\\{",excludeEnd:!0,keywords:c,contains:[n.inherit(n.TITLE_MODE,{className:"title.class",begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/}),...u]},Ze,ot,{beginKeywords:"import",end:/$/,contains:[...r],relevance:0},...u,...b,...w,E,U,...oe,...Q,ie,ue]}}function UM(n){const e="true false yes no null",t="[\\w#;/?:@&=+$,.~*'()[\\]]+",r={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},i={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},o={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[n.BACKSLASH_ESCAPE,i]},s=n.inherit(o,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),h={className:"number",begin:"\\b"+"[0-9]{4}(-[0-9][0-9]){0,2}"+"([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?"+"(\\.[0-9]*)?"+"([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?"+"\\b"},g={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},b={begin:/\{/,end:/\}/,contains:[g],illegal:"\\n",relevance:0},p={begin:"\\[",end:"\\]",contains:[g],illegal:"\\n",relevance:0},v=[r,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+t},{className:"type",begin:"!<"+t+">"},{className:"type",begin:"!"+t},{className:"type",begin:"!!"+t},{className:"meta",begin:"&"+n.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+n.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},n.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},h,{className:"number",begin:n.C_NUMBER_RE+"\\b",relevance:0},b,p,o],w=[...v];return w.pop(),w.push(s),g.contains=w,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}function GM(n){const e=n.regex,t=["lcase","month","vartype","instrrev","ubound","setlocale","getobject","rgb","getref","string","weekdayname","rnd","dateadd","monthname","now","day","minute","isarray","cbool","round","formatcurrency","conversions","csng","timevalue","second","year","space","abs","clng","timeserial","fixs","len","asc","isempty","maths","dateserial","atn","timer","isobject","filter","weekday","datevalue","ccur","isdate","instr","datediff","formatdatetime","replace","isnull","right","sgn","array","snumeric","log","cdbl","hex","chr","lbound","msgbox","ucase","getlocale","cos","cdate","cbyte","rtrim","join","hour","oct","typename","trim","strcomp","int","createobject","loadpicture","tan","formatnumber","mid","split","cint","sin","datepart","ltrim","sqr","time","derived","eval","date","formatpercent","exp","inputbox","left","ascw","chrw","regexp","cstr","err"],r=["server","response","request","scriptengine","scriptenginebuildversion","scriptengineminorversion","scriptenginemajorversion"],i={begin:e.concat(e.either(...t),"\\s*\\("),relevance:0,keywords:{built_in:t}};return{name:"VBScript",aliases:["vbs"],case_insensitive:!0,keywords:{keyword:["call","class","const","dim","do","loop","erase","execute","executeglobal","exit","for","each","next","function","if","then","else","on","error","option","explicit","new","private","property","let","get","public","randomize","redim","rem","select","case","set","stop","sub","while","wend","with","end","to","elseif","is","or","xor","and","not","class_initialize","class_terminate","default","preserve","in","me","byval","byref","step","resume","goto"],built_in:r,literal:["true","false","null","nothing","empty"]},illegal:"//",contains:[i,n.inherit(n.QUOTE_STRING_MODE,{contains:[{begin:'""'}]}),n.COMMENT(/'/,/$/,{relevance:0}),n.C_NUMBER_MODE]}}function $M(n){return{name:"Vim Script",keywords:{$pattern:/[!#@\w]+/,keyword:"N|0 P|0 X|0 a|0 ab abc abo al am an|0 ar arga argd arge argdo argg argl argu as au aug aun b|0 bN ba bad bd be bel bf bl bm bn bo bp br brea breaka breakd breakl bro bufdo buffers bun bw c|0 cN cNf ca cabc caddb cad caddf cal cat cb cc ccl cd ce cex cf cfir cgetb cgete cg changes chd che checkt cl cla clo cm cmapc cme cn cnew cnf cno cnorea cnoreme co col colo com comc comp con conf cope cp cpf cq cr cs cst cu cuna cunme cw delm deb debugg delc delf dif diffg diffo diffp diffpu diffs diffthis dig di dl dell dj dli do doautoa dp dr ds dsp e|0 ea ec echoe echoh echom echon el elsei em en endfo endf endt endw ene ex exe exi exu f|0 files filet fin fina fini fir fix fo foldc foldd folddoc foldo for fu go gr grepa gu gv ha helpf helpg helpt hi hid his ia iabc if ij il im imapc ime ino inorea inoreme int is isp iu iuna iunme j|0 ju k|0 keepa kee keepj lN lNf l|0 lad laddb laddf la lan lat lb lc lch lcl lcs le lefta let lex lf lfir lgetb lgete lg lgr lgrepa lh ll lla lli lmak lm lmapc lne lnew lnf ln loadk lo loc lockv lol lope lp lpf lr ls lt lu lua luad luaf lv lvimgrepa lw m|0 ma mak map mapc marks mat me menut mes mk mks mksp mkv mkvie mod mz mzf nbc nb nbs new nm nmapc nme nn nnoreme noa no noh norea noreme norm nu nun nunme ol o|0 om omapc ome on ono onoreme opt ou ounme ow p|0 profd prof pro promptr pc ped pe perld po popu pp pre prev ps pt ptN ptf ptj ptl ptn ptp ptr pts pu pw py3 python3 py3d py3f py pyd pyf quita qa rec red redi redr redraws reg res ret retu rew ri rightb rub rubyd rubyf rund ru rv sN san sa sal sav sb sbN sba sbf sbl sbm sbn sbp sbr scrip scripte scs se setf setg setl sf sfir sh sim sig sil sl sla sm smap smapc sme sn sni sno snor snoreme sor so spelld spe spelli spellr spellu spellw sp spr sre st sta startg startr star stopi stj sts sun sunm sunme sus sv sw sy synti sync tN tabN tabc tabdo tabe tabf tabfir tabl tabm tabnew tabn tabo tabp tabr tabs tab ta tags tc tcld tclf te tf th tj tl tm tn to tp tr try ts tu u|0 undoj undol una unh unl unlo unm unme uns up ve verb vert vim vimgrepa vi viu vie vm vmapc vme vne vn vnoreme vs vu vunme windo w|0 wN wa wh wi winc winp wn wp wq wqa ws wu wv x|0 xa xmapc xm xme xn xnoreme xu xunme y|0 z|0 ~ Next Print append abbreviate abclear aboveleft all amenu anoremenu args argadd argdelete argedit argglobal arglocal argument ascii autocmd augroup aunmenu buffer bNext ball badd bdelete behave belowright bfirst blast bmodified bnext botright bprevious brewind break breakadd breakdel breaklist browse bunload bwipeout change cNext cNfile cabbrev cabclear caddbuffer caddexpr caddfile call catch cbuffer cclose center cexpr cfile cfirst cgetbuffer cgetexpr cgetfile chdir checkpath checktime clist clast close cmap cmapclear cmenu cnext cnewer cnfile cnoremap cnoreabbrev cnoremenu copy colder colorscheme command comclear compiler continue confirm copen cprevious cpfile cquit crewind cscope cstag cunmap cunabbrev cunmenu cwindow delete delmarks debug debuggreedy delcommand delfunction diffupdate diffget diffoff diffpatch diffput diffsplit digraphs display deletel djump dlist doautocmd doautoall deletep drop dsearch dsplit edit earlier echo echoerr echohl echomsg else elseif emenu endif endfor endfunction endtry endwhile enew execute exit exusage file filetype find finally finish first fixdel fold foldclose folddoopen folddoclosed foldopen function global goto grep grepadd gui gvim hardcopy help helpfind helpgrep helptags highlight hide history insert iabbrev iabclear ijump ilist imap imapclear imenu inoremap inoreabbrev inoremenu intro isearch isplit iunmap iunabbrev iunmenu join jumps keepalt keepmarks keepjumps lNext lNfile list laddexpr laddbuffer laddfile last language later lbuffer lcd lchdir lclose lcscope left leftabove lexpr lfile lfirst lgetbuffer lgetexpr lgetfile lgrep lgrepadd lhelpgrep llast llist lmake lmap lmapclear lnext lnewer lnfile lnoremap loadkeymap loadview lockmarks lockvar lolder lopen lprevious lpfile lrewind ltag lunmap luado luafile lvimgrep lvimgrepadd lwindow move mark make mapclear match menu menutranslate messages mkexrc mksession mkspell mkvimrc mkview mode mzscheme mzfile nbclose nbkey nbsart next nmap nmapclear nmenu nnoremap nnoremenu noautocmd noremap nohlsearch noreabbrev noremenu normal number nunmap nunmenu oldfiles open omap omapclear omenu only onoremap onoremenu options ounmap ounmenu ownsyntax print profdel profile promptfind promptrepl pclose pedit perl perldo pop popup ppop preserve previous psearch ptag ptNext ptfirst ptjump ptlast ptnext ptprevious ptrewind ptselect put pwd py3do py3file python pydo pyfile quit quitall qall read recover redo redir redraw redrawstatus registers resize retab return rewind right rightbelow ruby rubydo rubyfile rundo runtime rviminfo substitute sNext sandbox sargument sall saveas sbuffer sbNext sball sbfirst sblast sbmodified sbnext sbprevious sbrewind scriptnames scriptencoding scscope set setfiletype setglobal setlocal sfind sfirst shell simalt sign silent sleep slast smagic smapclear smenu snext sniff snomagic snoremap snoremenu sort source spelldump spellgood spellinfo spellrepall spellundo spellwrong split sprevious srewind stop stag startgreplace startreplace startinsert stopinsert stjump stselect sunhide sunmap sunmenu suspend sview swapname syntax syntime syncbind tNext tabNext tabclose tabedit tabfind tabfirst tablast tabmove tabnext tabonly tabprevious tabrewind tag tcl tcldo tclfile tearoff tfirst throw tjump tlast tmenu tnext topleft tprevious trewind tselect tunmenu undo undojoin undolist unabbreviate unhide unlet unlockvar unmap unmenu unsilent update vglobal version verbose vertical vimgrep vimgrepadd visual viusage view vmap vmapclear vmenu vnew vnoremap vnoremenu vsplit vunmap vunmenu write wNext wall while winsize wincmd winpos wnext wprevious wqall wsverb wundo wviminfo xit xall xmapclear xmap xmenu xnoremap xnoremenu xunmap xunmenu yank",built_in:"synIDtrans atan2 range matcharg did_filetype asin feedkeys xor argv complete_check add getwinposx getqflist getwinposy screencol clearmatches empty extend getcmdpos mzeval garbagecollect setreg ceil sqrt diff_hlID inputsecret get getfperm getpid filewritable shiftwidth max sinh isdirectory synID system inputrestore winline atan visualmode inputlist tabpagewinnr round getregtype mapcheck hasmapto histdel argidx findfile sha256 exists toupper getcmdline taglist string getmatches bufnr strftime winwidth bufexists strtrans tabpagebuflist setcmdpos remote_read printf setloclist getpos getline bufwinnr float2nr len getcmdtype diff_filler luaeval resolve libcallnr foldclosedend reverse filter has_key bufname str2float strlen setline getcharmod setbufvar index searchpos shellescape undofile foldclosed setqflist buflisted strchars str2nr virtcol floor remove undotree remote_expr winheight gettabwinvar reltime cursor tabpagenr finddir localtime acos getloclist search tanh matchend rename gettabvar strdisplaywidth type abs py3eval setwinvar tolower wildmenumode log10 spellsuggest bufloaded synconcealed nextnonblank server2client complete settabwinvar executable input wincol setmatches getftype hlID inputsave searchpair or screenrow line settabvar histadd deepcopy strpart remote_peek and eval getftime submatch screenchar winsaveview matchadd mkdir screenattr getfontname libcall reltimestr getfsize winnr invert pow getbufline byte2line soundfold repeat fnameescape tagfiles sin strwidth spellbadword trunc maparg log lispindent hostname setpos globpath remote_foreground getchar synIDattr fnamemodify cscope_connection stridx winbufnr indent min complete_add nr2char searchpairpos inputdialog values matchlist items hlexists strridx browsedir expand fmod pathshorten line2byte argc count getwinvar glob foldtextresult getreg foreground cosh matchdelete has char2nr simplify histget searchdecl iconv winrestcmd pumvisible writefile foldlevel haslocaldir keys cos matchstr foldtext histnr tan tempname getcwd byteidx getbufvar islocked escape eventhandler remote_send serverlist winrestview synstack pyeval prevnonblank readfile cindent filereadable changenr exp"},illegal:/;/,contains:[n.NUMBER_MODE,{className:"string",begin:"'",end:"'",illegal:"\\n"},{className:"string",begin:/"(\\"|\n\\|[^"\n])*"/},n.COMMENT('"',"$"),{className:"variable",begin:/[bwtglsav]:[\w\d_]+/},{begin:[/\b(?:function|function!)/,/\s+/,n.IDENT_RE],className:{1:"keyword",3:"title"},end:"$",relevance:0,contains:[{className:"params",begin:"\\(",end:"\\)"}]},{className:"symbol",begin:/<[\w-]+>/}]}}var r4=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nr(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Wd,i4;function WM(){if(i4)return Wd;i4=1;var n={exports:{}};function e(D){return D instanceof Map?D.clear=D.delete=D.set=function(){throw new Error("map is read-only")}:D instanceof Set&&(D.add=D.clear=D.delete=function(){throw new Error("set is read-only")}),Object.freeze(D),Object.getOwnPropertyNames(D).forEach(function(re){var ne=D[re];typeof ne=="object"&&!Object.isFrozen(ne)&&e(ne)}),D}n.exports=e,n.exports.default=e;class t{constructor(re){re.data===void 0&&(re.data={}),this.data=re.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function r(D){return D.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function i(D,...re){const ne=Object.create(null);for(const Ie in D)ne[Ie]=D[Ie];return re.forEach(function(Ie){for(const pt in Ie)ne[pt]=Ie[pt]}),ne}const o="</span>",s=D=>!!D.scope||D.sublanguage&&D.language,a=(D,{prefix:re})=>{if(D.includes(".")){const ne=D.split(".");return[`${re}${ne.shift()}`,...ne.map((Ie,pt)=>`${Ie}${"_".repeat(pt+1)}`)].join(" ")}return`${re}${D}`};class l{constructor(re,ne){this.buffer="",this.classPrefix=ne.classPrefix,re.walk(this)}addText(re){this.buffer+=r(re)}openNode(re){if(!s(re))return;let ne="";re.sublanguage?ne=`language-${re.language}`:ne=a(re.scope,{prefix:this.classPrefix}),this.span(ne)}closeNode(re){s(re)&&(this.buffer+=o)}value(){return this.buffer}span(re){this.buffer+=`<span class="${re}">`}}const c=(D={})=>{const re={children:[]};return Object.assign(re,D),re};class u{constructor(){this.rootNode=c(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(re){this.top.children.push(re)}openNode(re){const ne=c({scope:re});this.add(ne),this.stack.push(ne)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(re){return this.constructor._walk(re,this.rootNode)}static _walk(re,ne){return typeof ne=="string"?re.addText(ne):ne.children&&(re.openNode(ne),ne.children.forEach(Ie=>this._walk(re,Ie)),re.closeNode(ne)),re}static _collapse(re){typeof re!="string"&&re.children&&(re.children.every(ne=>typeof ne=="string")?re.children=[re.children.join("")]:re.children.forEach(ne=>{u._collapse(ne)}))}}class h extends u{constructor(re){super(),this.options=re}addKeyword(re,ne){re!==""&&(this.openNode(ne),this.addText(re),this.closeNode())}addText(re){re!==""&&this.add(re)}addSublanguage(re,ne){const Ie=re.root;Ie.sublanguage=!0,Ie.language=ne,this.add(Ie)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function g(D){return D?typeof D=="string"?D:D.source:null}function b(D){return w("(?=",D,")")}function p(D){return w("(?:",D,")*")}function v(D){return w("(?:",D,")?")}function w(...D){return D.map(ne=>g(ne)).join("")}function S(D){const re=D[D.length-1];return typeof re=="object"&&re.constructor===Object?(D.splice(D.length-1,1),re):{}}function C(...D){return"("+(S(D).capture?"":"?:")+D.map(Ie=>g(Ie)).join("|")+")"}function E(D){return new RegExp(D.toString()+"|").exec("").length-1}function A(D,re){const ne=D&&D.exec(re);return ne&&ne.index===0}const R=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function O(D,{joinWith:re}){let ne=0;return D.map(Ie=>{ne+=1;const pt=ne;let Se=g(Ie),_e="";for(;Se.length>0;){const we=R.exec(Se);if(!we){_e+=Se;break}_e+=Se.substring(0,we.index),Se=Se.substring(we.index+we[0].length),we[0][0]==="\\"&&we[1]?_e+="\\"+String(Number(we[1])+pt):(_e+=we[0],we[0]==="("&&ne++)}return _e}).map(Ie=>`(${Ie})`).join(re)}const H=/\b\B/,q="[a-zA-Z]\\w*",U="[a-zA-Z_]\\w*",F="\\b\\d+(\\.\\d+)?",Y="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",X="\\b(0b[01]+)",oe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",K=(D={})=>{const re=/^#![ ]*\//;return D.binary&&(D.begin=w(re,/.*\b/,D.binary,/\b.*/)),i({scope:"meta",begin:re,end:/$/,relevance:0,"on:begin":(ne,Ie)=>{ne.index!==0&&Ie.ignoreMatch()}},D)},ee={begin:"\\\\[\\s\\S]",relevance:0},$={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[ee]},Q={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[ee]},ie={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Z=function(D,re,ne={}){const Ie=i({scope:"comment",begin:D,end:re,contains:[]},ne);Ie.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const pt=C("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return Ie.contains.push({begin:w(/[ ]+/,"(",pt,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),Ie},J=Z("//","$"),ue=Z("/\\*","\\*/"),fe=Z("#","$"),ke={scope:"number",begin:F,relevance:0},Te={scope:"number",begin:Y,relevance:0},Ke={scope:"number",begin:X,relevance:0},Qe={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[ee,{begin:/\[/,end:/\]/,relevance:0,contains:[ee]}]}]},Ze={scope:"title",begin:q,relevance:0},ot={scope:"title",begin:U,relevance:0},Be={begin:"\\.\\s*"+U,relevance:0};var tt=Object.freeze({__proto__:null,MATCH_NOTHING_RE:H,IDENT_RE:q,UNDERSCORE_IDENT_RE:U,NUMBER_RE:F,C_NUMBER_RE:Y,BINARY_NUMBER_RE:X,RE_STARTERS_RE:oe,SHEBANG:K,BACKSLASH_ESCAPE:ee,APOS_STRING_MODE:$,QUOTE_STRING_MODE:Q,PHRASAL_WORDS_MODE:ie,COMMENT:Z,C_LINE_COMMENT_MODE:J,C_BLOCK_COMMENT_MODE:ue,HASH_COMMENT_MODE:fe,NUMBER_MODE:ke,C_NUMBER_MODE:Te,BINARY_NUMBER_MODE:Ke,REGEXP_MODE:Qe,TITLE_MODE:Ze,UNDERSCORE_TITLE_MODE:ot,METHOD_GUARD:Be,END_SAME_AS_BEGIN:function(D){return Object.assign(D,{"on:begin":(re,ne)=>{ne.data._beginMatch=re[1]},"on:end":(re,ne)=>{ne.data._beginMatch!==re[1]&&ne.ignoreMatch()}})}});function at(D,re){D.input[D.index-1]==="."&&re.ignoreMatch()}function ht(D,re){D.className!==void 0&&(D.scope=D.className,delete D.className)}function it(D,re){re&&D.beginKeywords&&(D.begin="\\b("+D.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",D.__beforeBegin=at,D.keywords=D.keywords||D.beginKeywords,delete D.beginKeywords,D.relevance===void 0&&(D.relevance=0))}function ct(D,re){Array.isArray(D.illegal)&&(D.illegal=C(...D.illegal))}function Et(D,re){if(D.match){if(D.begin||D.end)throw new Error("begin & end are not supported with match");D.begin=D.match,delete D.match}}function He(D,re){D.relevance===void 0&&(D.relevance=1)}const sr=(D,re)=>{if(!D.beforeMatch)return;if(D.starts)throw new Error("beforeMatch cannot be used with starts");const ne=Object.assign({},D);Object.keys(D).forEach(Ie=>{delete D[Ie]}),D.keywords=ne.keywords,D.begin=w(ne.beforeMatch,b(ne.begin)),D.starts={relevance:0,contains:[Object.assign(ne,{endsParent:!0})]},D.relevance=0,delete ne.beforeMatch},Ct=["of","and","for","in","not","or","if","then","parent","list","value"],Xe="keyword";function Zt(D,re,ne=Xe){const Ie=Object.create(null);return typeof D=="string"?pt(ne,D.split(" ")):Array.isArray(D)?pt(ne,D):Object.keys(D).forEach(function(Se){Object.assign(Ie,Zt(D[Se],re,Se))}),Ie;function pt(Se,_e){re&&(_e=_e.map(we=>we.toLowerCase())),_e.forEach(function(we){const $e=we.split("|");Ie[$e[0]]=[Se,hn($e[0],$e[1])]})}}function hn(D,re){return re?Number(re):Tn(D)?0:1}function Tn(D){return Ct.includes(D.toLowerCase())}const Lt={},ge=D=>{console.error(D)},Ce=(D,...re)=>{console.log(`WARN: ${D}`,...re)},qe=(D,re)=>{Lt[`${D}/${re}`]||(console.log(`Deprecated as of ${D}. ${re}`),Lt[`${D}/${re}`]=!0)},Je=new Error;function Ht(D,re,{key:ne}){let Ie=0;const pt=D[ne],Se={},_e={};for(let we=1;we<=re.length;we++)_e[we+Ie]=pt[we],Se[we+Ie]=!0,Ie+=E(re[we-1]);D[ne]=_e,D[ne]._emit=Se,D[ne]._multi=!0}function Pt(D){if(Array.isArray(D.begin)){if(D.skip||D.excludeBegin||D.returnBegin)throw ge("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Je;if(typeof D.beginScope!="object"||D.beginScope===null)throw ge("beginScope must be object"),Je;Ht(D,D.begin,{key:"beginScope"}),D.begin=O(D.begin,{joinWith:""})}}function Or(D){if(Array.isArray(D.end)){if(D.skip||D.excludeEnd||D.returnEnd)throw ge("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Je;if(typeof D.endScope!="object"||D.endScope===null)throw ge("endScope must be object"),Je;Ht(D,D.end,{key:"endScope"}),D.end=O(D.end,{joinWith:""})}}function Ni(D){D.scope&&typeof D.scope=="object"&&D.scope!==null&&(D.beginScope=D.scope,delete D.scope)}function Ea(D){Ni(D),typeof D.beginScope=="string"&&(D.beginScope={_wrap:D.beginScope}),typeof D.endScope=="string"&&(D.endScope={_wrap:D.endScope}),Pt(D),Or(D)}function se(D){function re(_e,we){return new RegExp(g(_e),"m"+(D.case_insensitive?"i":"")+(D.unicodeRegex?"u":"")+(we?"g":""))}class ne{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(we,$e){$e.position=this.position++,this.matchIndexes[this.matchAt]=$e,this.regexes.push([$e,we]),this.matchAt+=E(we)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const we=this.regexes.map($e=>$e[1]);this.matcherRe=re(O(we,{joinWith:"|"}),!0),this.lastIndex=0}exec(we){this.matcherRe.lastIndex=this.lastIndex;const $e=this.matcherRe.exec(we);if(!$e)return null;const V=$e.findIndex((W,rs)=>rs>0&&W!==void 0),vt=this.matchIndexes[V];return $e.splice(0,V),Object.assign($e,vt)}}class Ie{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(we){if(this.multiRegexes[we])return this.multiRegexes[we];const $e=new ne;return this.rules.slice(we).forEach(([V,vt])=>$e.addRule(V,vt)),$e.compile(),this.multiRegexes[we]=$e,$e}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(we,$e){this.rules.push([we,$e]),$e.type==="begin"&&this.count++}exec(we){const $e=this.getMatcher(this.regexIndex);$e.lastIndex=this.lastIndex;let V=$e.exec(we);if(this.resumingScanAtSamePosition()&&!(V&&V.index===this.lastIndex)){const vt=this.getMatcher(0);vt.lastIndex=this.lastIndex+1,V=vt.exec(we)}return V&&(this.regexIndex+=V.position+1,this.regexIndex===this.count&&this.considerAll()),V}}function pt(_e){const we=new Ie;return _e.contains.forEach($e=>we.addRule($e.begin,{rule:$e,type:"begin"})),_e.terminatorEnd&&we.addRule(_e.terminatorEnd,{type:"end"}),_e.illegal&&we.addRule(_e.illegal,{type:"illegal"}),we}function Se(_e,we){const $e=_e;if(_e.isCompiled)return $e;[ht,Et,Ea,sr].forEach(vt=>vt(_e,we)),D.compilerExtensions.forEach(vt=>vt(_e,we)),_e.__beforeBegin=null,[it,ct,He].forEach(vt=>vt(_e,we)),_e.isCompiled=!0;let V=null;return typeof _e.keywords=="object"&&_e.keywords.$pattern&&(_e.keywords=Object.assign({},_e.keywords),V=_e.keywords.$pattern,delete _e.keywords.$pattern),V=V||/\w+/,_e.keywords&&(_e.keywords=Zt(_e.keywords,D.case_insensitive)),$e.keywordPatternRe=re(V,!0),we&&(_e.begin||(_e.begin=/\B|\b/),$e.beginRe=re($e.begin),!_e.end&&!_e.endsWithParent&&(_e.end=/\B|\b/),_e.end&&($e.endRe=re($e.end)),$e.terminatorEnd=g($e.end)||"",_e.endsWithParent&&we.terminatorEnd&&($e.terminatorEnd+=(_e.end?"|":"")+we.terminatorEnd)),_e.illegal&&($e.illegalRe=re(_e.illegal)),_e.contains||(_e.contains=[]),_e.contains=[].concat(..._e.contains.map(function(vt){return Ge(vt==="self"?_e:vt)})),_e.contains.forEach(function(vt){Se(vt,$e)}),_e.starts&&Se(_e.starts,we),$e.matcher=pt($e),$e}if(D.compilerExtensions||(D.compilerExtensions=[]),D.contains&&D.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return D.classNameAliases=i(D.classNameAliases||{}),Se(D)}function Me(D){return D?D.endsWithParent||Me(D.starts):!1}function Ge(D){return D.variants&&!D.cachedVariants&&(D.cachedVariants=D.variants.map(function(re){return i(D,{variants:null},re)})),D.cachedVariants?D.cachedVariants:Me(D)?i(D,{starts:D.starts?i(D.starts):null}):Object.isFrozen(D)?i(D):D}var ft="11.6.0";class ut extends Error{constructor(re,ne){super(re),this.name="HTMLInjectionError",this.html=ne}}const Ft=r,st=i,k=Symbol("nomatch"),N=7;var L=function(D){const re=Object.create(null),ne=Object.create(null),Ie=[];let pt=!0;const Se="Could not find the language '{}', did you forget to load/include a language module?",_e={disableAutodetect:!0,name:"Plain text",contains:[]};let we={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:h};function $e(be){return we.noHighlightRe.test(be)}function V(be){let We=be.className+" ";We+=be.parentNode?be.parentNode.className:"";const lt=we.languageDetectRe.exec(We);if(lt){const xt=wn(lt[1]);return xt||(Ce(Se.replace("{}",lt[1])),Ce("Falling back to no-highlight mode for this block.",be)),xt?lt[1]:"no-highlight"}return We.split(/\s+/).find(xt=>$e(xt)||wn(xt))}function vt(be,We,lt){let xt="",Kt="";typeof We=="object"?(xt=be,lt=We.ignoreIllegals,Kt=We.language):(qe("10.7.0","highlight(lang, code, ...args) has been deprecated."),qe("10.7.0",`Please use highlight(code, options) instead.
127
+ https://github.com/highlightjs/highlight.js/issues/2277`),Kt=be,xt=We),lt===void 0&&(lt=!0);const Wn={code:xt,language:Kt};Jr("before:highlight",Wn);const ar=Wn.result?Wn.result:W(Wn.language,Wn.code,lt);return ar.code=Wn.code,Jr("after:highlight",ar),ar}function W(be,We,lt,xt){const Kt=Object.create(null);function Wn(Ee,Pe){return Ee.keywords[Pe]}function ar(){if(!Ye.keywords){Xt.addText(Mt);return}let Ee=0;Ye.keywordPatternRe.lastIndex=0;let Pe=Ye.keywordPatternRe.exec(Mt),j="";for(;Pe;){j+=Mt.substring(Ee,Pe.index);const Ve=Vt.case_insensitive?Pe[0].toLowerCase():Pe[0],zt=Wn(Ye,Ve);if(zt){const[rn,Sp]=zt;if(Xt.addText(j),j="",Kt[Ve]=(Kt[Ve]||0)+1,Kt[Ve]<=N&&(fs+=Sp),rn.startsWith("_"))j+=Pe[0];else{const Ep=Vt.classNameAliases[rn]||rn;Xt.addKeyword(Pe[0],Ep)}}else j+=Pe[0];Ee=Ye.keywordPatternRe.lastIndex,Pe=Ye.keywordPatternRe.exec(Mt)}j+=Mt.substring(Ee),Xt.addText(j)}function us(){if(Mt==="")return;let Ee=null;if(typeof Ye.subLanguage=="string"){if(!re[Ye.subLanguage]){Xt.addText(Mt);return}Ee=W(Ye.subLanguage,Mt,!0,Na[Ye.subLanguage]),Na[Ye.subLanguage]=Ee._top}else Ee=is(Mt,Ye.subLanguage.length?Ye.subLanguage:null);Ye.relevance>0&&(fs+=Ee.relevance),Xt.addSublanguage(Ee._emitter,Ee.language)}function xn(){Ye.subLanguage!=null?us():ar(),Mt=""}function bt(Ee,Pe){let j=1;const Ve=Pe.length-1;for(;j<=Ve;){if(!Ee._emit[j]){j++;continue}const zt=Vt.classNameAliases[Ee[j]]||Ee[j],rn=Pe[j];zt?Xt.addKeyword(rn,zt):(Mt=rn,ar(),Mt=""),j++}}function xo(Ee,Pe){return Ee.scope&&typeof Ee.scope=="string"&&Xt.openNode(Vt.classNameAliases[Ee.scope]||Ee.scope),Ee.beginScope&&(Ee.beginScope._wrap?(Xt.addKeyword(Mt,Vt.classNameAliases[Ee.beginScope._wrap]||Ee.beginScope._wrap),Mt=""):Ee.beginScope._multi&&(bt(Ee.beginScope,Pe),Mt="")),Ye=Object.create(Ee,{parent:{value:Ye}}),Ye}function Pn(Ee,Pe,j){let Ve=A(Ee.endRe,j);if(Ve){if(Ee["on:end"]){const zt=new t(Ee);Ee["on:end"](Pe,zt),zt.isMatchIgnored&&(Ve=!1)}if(Ve){for(;Ee.endsParent&&Ee.parent;)Ee=Ee.parent;return Ee}}if(Ee.endsWithParent)return Pn(Ee.parent,Pe,j)}function vp(Ee){return Ye.matcher.regexIndex===0?(Mt+=Ee[0],1):(ps=!0,0)}function wp(Ee){const Pe=Ee[0],j=Ee.rule,Ve=new t(j),zt=[j.__beforeBegin,j["on:begin"]];for(const rn of zt)if(rn&&(rn(Ee,Ve),Ve.isMatchIgnored))return vp(Pe);return j.skip?Mt+=Pe:(j.excludeBegin&&(Mt+=Pe),xn(),!j.returnBegin&&!j.excludeBegin&&(Mt=Pe)),xo(j,Ee),j.returnBegin?0:Pe.length}function xp(Ee){const Pe=Ee[0],j=We.substring(Ee.index),Ve=Pn(Ye,Ee,j);if(!Ve)return k;const zt=Ye;Ye.endScope&&Ye.endScope._wrap?(xn(),Xt.addKeyword(Pe,Ye.endScope._wrap)):Ye.endScope&&Ye.endScope._multi?(xn(),bt(Ye.endScope,Ee)):zt.skip?Mt+=Pe:(zt.returnEnd||zt.excludeEnd||(Mt+=Pe),xn(),zt.excludeEnd&&(Mt=Pe));do Ye.scope&&Xt.closeNode(),!Ye.skip&&!Ye.subLanguage&&(fs+=Ye.relevance),Ye=Ye.parent;while(Ye!==Ve.parent);return Ve.starts&&xo(Ve.starts,Ee),zt.returnEnd?0:Pe.length}function kp(){const Ee=[];for(let Pe=Ye;Pe!==Vt;Pe=Pe.parent)Pe.scope&&Ee.unshift(Pe.scope);Ee.forEach(Pe=>Xt.openNode(Pe))}let ds={};function hs(Ee,Pe){const j=Pe&&Pe[0];if(Mt+=Ee,j==null)return xn(),0;if(ds.type==="begin"&&Pe.type==="end"&&ds.index===Pe.index&&j===""){if(Mt+=We.slice(Pe.index,Pe.index+1),!pt){const Ve=new Error(`0 width match regex (${be})`);throw Ve.languageName=be,Ve.badRule=ds.rule,Ve}return 1}if(ds=Pe,Pe.type==="begin")return wp(Pe);if(Pe.type==="illegal"&&!lt){const Ve=new Error('Illegal lexeme "'+j+'" for mode "'+(Ye.scope||"<unnamed>")+'"');throw Ve.mode=Ye,Ve}else if(Pe.type==="end"){const Ve=xp(Pe);if(Ve!==k)return Ve}if(Pe.type==="illegal"&&j==="")return 1;if(Ri>1e5&&Ri>Pe.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Mt+=j,j.length}const Vt=wn(be);if(!Vt)throw ge(Se.replace("{}",be)),new Error('Unknown language: "'+be+'"');const nu=se(Vt);let Ma="",Ye=xt||nu;const Na={},Xt=new we.__emitter(we);kp();let Mt="",fs=0,ei=0,Ri=0,ps=!1;try{for(Ye.matcher.considerAll();;){Ri++,ps?ps=!1:Ye.matcher.considerAll(),Ye.matcher.lastIndex=ei;const Ee=Ye.matcher.exec(We);if(!Ee)break;const Pe=We.substring(ei,Ee.index),j=hs(Pe,Ee);ei=Ee.index+j}return hs(We.substring(ei)),Xt.closeAllNodes(),Xt.finalize(),Ma=Xt.toHTML(),{language:be,value:Ma,relevance:fs,illegal:!1,_emitter:Xt,_top:Ye}}catch(Ee){if(Ee.message&&Ee.message.includes("Illegal"))return{language:be,value:Ft(We),illegal:!0,relevance:0,_illegalBy:{message:Ee.message,index:ei,context:We.slice(ei-100,ei+100),mode:Ee.mode,resultSoFar:Ma},_emitter:Xt};if(pt)return{language:be,value:Ft(We),illegal:!1,relevance:0,errorRaised:Ee,_emitter:Xt,_top:Ye};throw Ee}}function rs(be){const We={value:Ft(be),illegal:!1,relevance:0,_top:_e,_emitter:new we.__emitter(we)};return We._emitter.addText(be),We}function is(be,We){We=We||we.languages||Object.keys(re);const lt=rs(be),xt=We.filter(wn).filter(ls).map(xn=>W(xn,be,!1));xt.unshift(lt);const Kt=xt.sort((xn,bt)=>{if(xn.relevance!==bt.relevance)return bt.relevance-xn.relevance;if(xn.language&&bt.language){if(wn(xn.language).supersetOf===bt.language)return 1;if(wn(bt.language).supersetOf===xn.language)return-1}return 0}),[Wn,ar]=Kt,us=Wn;return us.secondBest=ar,us}function Ca(be,We,lt){const xt=We&&ne[We]||lt;be.classList.add("hljs"),be.classList.add(`language-${xt}`)}function ss(be){let We=null;const lt=V(be);if($e(lt))return;if(Jr("before:highlightElement",{el:be,language:lt}),be.children.length>0&&(we.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(be)),we.throwUnescapedHTML))throw new ut("One of your code blocks includes unescaped HTML.",be.innerHTML);We=be;const xt=We.textContent,Kt=lt?vt(xt,{language:lt,ignoreIllegals:!0}):is(xt);be.innerHTML=Kt.value,Ca(be,lt,Kt.language),be.result={language:Kt.language,re:Kt.relevance,relevance:Kt.relevance},Kt.secondBest&&(be.secondBest={language:Kt.secondBest.language,relevance:Kt.secondBest.relevance}),Jr("after:highlightElement",{el:be,result:Kt,text:xt})}function Jc(be){we=st(we,be)}const Ta=()=>{Di(),qe("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function eu(){Di(),qe("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let wo=!1;function Di(){if(document.readyState==="loading"){wo=!0;return}document.querySelectorAll(we.cssSelector).forEach(ss)}function as(){wo&&Di()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",as,!1);function je(be,We){let lt=null;try{lt=We(D)}catch(xt){if(ge("Language definition for '{}' could not be registered.".replace("{}",be)),pt)ge(xt);else throw xt;lt=_e}lt.name||(lt.name=be),re[be]=lt,lt.rawDefinition=We.bind(null,D),lt.aliases&&_r(lt.aliases,{languageName:be})}function vn(be){delete re[be];for(const We of Object.keys(ne))ne[We]===be&&delete ne[We]}function Wt(){return Object.keys(re)}function wn(be){return be=(be||"").toLowerCase(),re[be]||re[ne[be]]}function _r(be,{languageName:We}){typeof be=="string"&&(be=[be]),be.forEach(lt=>{ne[lt.toLowerCase()]=We})}function ls(be){const We=wn(be);return We&&!We.disableAutodetect}function Aa(be){be["before:highlightBlock"]&&!be["before:highlightElement"]&&(be["before:highlightElement"]=We=>{be["before:highlightBlock"](Object.assign({block:We.el},We))}),be["after:highlightBlock"]&&!be["after:highlightElement"]&&(be["after:highlightElement"]=We=>{be["after:highlightBlock"](Object.assign({block:We.el},We))})}function cs(be){Aa(be),Ie.push(be)}function Jr(be,We){const lt=be;Ie.forEach(function(xt){xt[lt]&&xt[lt](We)})}function tu(be){return qe("10.7.0","highlightBlock will be removed entirely in v12.0"),qe("10.7.0","Please use highlightElement now."),ss(be)}Object.assign(D,{highlight:vt,highlightAuto:is,highlightAll:Di,highlightElement:ss,highlightBlock:tu,configure:Jc,initHighlighting:Ta,initHighlightingOnLoad:eu,registerLanguage:je,unregisterLanguage:vn,listLanguages:Wt,getLanguage:wn,registerAliases:_r,autoDetection:ls,inherit:st,addPlugin:cs}),D.debugMode=function(){pt=!1},D.safeMode=function(){pt=!0},D.versionString=ft,D.regex={concat:w,lookahead:b,either:C,optional:v,anyNumberOfTimes:p};for(const be in tt)typeof tt[be]=="object"&&n.exports(tt[be]);return Object.assign(D,tt),D}({});return Wd=L,L.HighlightJS=L,L.default=L,Wd}var KM=WM();const mr=Nr(KM);var Kd={exports:{}},o4;function jM(){return o4||(o4=1,function(n){(function(){var e;e=n.exports=i,e.format=i,e.vsprintf=r,typeof console<"u"&&typeof console.log=="function"&&(e.printf=t);function t(){console.log(i.apply(null,arguments))}function r(o,s){return i.apply(null,[o].concat(s))}function i(o){for(var s=1,a=[].slice.call(arguments),l=0,c=o.length,u="",h,g=!1,b,p,v=!1,w,S=function(){return a[s++]},C=function(){for(var E="";/\d/.test(o[l]);)E+=o[l++],h=o[l];return E.length>0?parseInt(E):null};l<c;++l)if(h=o[l],g)switch(g=!1,h=="."?(v=!1,h=o[++l]):h=="0"&&o[l+1]=="."?(v=!0,l+=2,h=o[l]):v=!0,w=C(),h){case"b":u+=parseInt(S(),10).toString(2);break;case"c":b=S(),typeof b=="string"||b instanceof String?u+=b:u+=String.fromCharCode(parseInt(b,10));break;case"d":u+=parseInt(S(),10);break;case"f":p=String(parseFloat(S()).toFixed(w||6)),u+=v?p:p.replace(/^0/,"");break;case"j":u+=JSON.stringify(S());break;case"o":u+="0"+parseInt(S(),10).toString(8);break;case"s":u+=S();break;case"x":u+="0x"+parseInt(S(),10).toString(16);break;case"X":u+="0x"+parseInt(S(),10).toString(16).toUpperCase();break;default:u+=h;break}else h==="%"?g=!0:u+=h;return u}})()}(Kd)),Kd.exports}var QM=jM();const YM=Nr(QM),Ac=Object.assign(po(Error),{eval:po(EvalError),range:po(RangeError),reference:po(ReferenceError),syntax:po(SyntaxError),type:po(TypeError),uri:po(URIError)});function po(n){return e.displayName=n.displayName||n.name,e;function e(t,...r){const i=t&&YM(t,...r);return new n(i)}}const ZM={}.hasOwnProperty,XM="hljs-";function s4(n,e,t={}){let r=t.prefix;if(typeof n!="string")throw Ac("Expected `string` for name, got `%s`",n);if(!mr.getLanguage(n))throw Ac("Unknown language: `%s` is not registered",n);if(typeof e!="string")throw Ac("Expected `string` for value, got `%s`",e);r==null&&(r=XM),mr.configure({__emitter:iN,classPrefix:r});const i=mr.highlight(e,{language:n,ignoreIllegals:!0});if(mr.configure({}),i.errorRaised)throw i.errorRaised;return i._emitter.root.data.language=i.language,i._emitter.root.data.relevance=i.relevance,i._emitter.root}function JM(n,e={}){const t=e.subset||mr.listLanguages();e.prefix;let r=-1,i={type:"root",data:{language:null,relevance:0},children:[]};if(typeof n!="string")throw Ac("Expected `string` for value, got `%s`",n);for(;++r<t.length;){const o=t[r];if(!mr.getLanguage(o))continue;const s=s4(o,n,e);s.data.relevance>i.data.relevance&&(i=s)}return i}function eN(n,e){mr.registerLanguage(n,e)}const tN=function(n,e){if(typeof n=="string")mr.registerAliases(e,{languageName:n});else{let t;for(t in n)ZM.call(n,t)&&mr.registerAliases(n[t],{languageName:t})}};function nN(n){return!!mr.getLanguage(n)}function rN(){return mr.listLanguages()}class iN{constructor(e){this.options=e,this.root={type:"root",data:{language:null,relevance:0},children:[]},this.stack=[this.root]}addText(e){if(e==="")return;const t=this.stack[this.stack.length-1],r=t.children[t.children.length-1];r&&r.type==="text"?r.value+=e:t.children.push({type:"text",value:e})}addKeyword(e,t){this.openNode(t),this.addText(e),this.closeNode()}addSublanguage(e,t){const r=this.stack[this.stack.length-1],i=e.root.children;t?r.children.push({type:"element",tagName:"span",properties:{className:[t]},children:i}):r.children.push(...i)}openNode(e){const t=e.split(".").map((o,s)=>s?o+"_".repeat(s):this.options.classPrefix+o),r=this.stack[this.stack.length-1],i={type:"element",tagName:"span",properties:{className:t},children:[]};r.children.push(i),this.stack.push(i)}closeNode(){this.stack.pop()}closeAllNodes(){}finalize(){}toHTML(){return""}}const ze={highlight:s4,highlightAuto:JM,registerLanguage:eN,registered:nN,listLanguages:rN,registerAlias:tN};ze.registerLanguage("html",Uy),ze.registerLanguage("css",Gy),ze.registerLanguage("js",Iy),ze.registerLanguage("ts",Vy),ze.registerLanguage("apache",vA),ze.registerLanguage("xml",Uy),ze.registerLanguage("bash",wA),ze.registerLanguage("c",xA),ze.registerLanguage("cpp",kA),ze.registerLanguage("csharp",SA),ze.registerLanguage("css",Gy),ze.registerLanguage("markdown",DA),ze.registerLanguage("dart",RA),ze.registerLanguage("delphi",OA),ze.registerLanguage("django",IA),ze.registerLanguage("dns",LA),ze.registerLanguage("dockerfile",BA),ze.registerLanguage("dos",PA),ze.registerLanguage("dust",FA),ze.registerLanguage("ruby",zA),ze.registerLanguage("excel",qA),ze.registerLanguage("fsharp",UA),ze.registerLanguage("gml",GA),ze.registerLanguage("go",$A),ze.registerLanguage("http",WA),ze.registerLanguage("ini",KA),ze.registerLanguage("java",jA),ze.registerLanguage("javascript",Iy),ze.registerLanguage("json",QA),ze.registerLanguage("julia",YA),ze.registerLanguage("kotlin",XA),ze.registerLanguage("latex",JA),ze.registerLanguage("less",oM),ze.registerLanguage("lua",sM),ze.registerLanguage("makefile",aM),ze.registerLanguage("mathematica",cM),ze.registerLanguage("matlab",uM),ze.registerLanguage("perl",dM),ze.registerLanguage("nginx",hM),ze.registerLanguage("php",fM),ze.registerLanguage("plaintext",pM),ze.registerLanguage("powershell",mM),ze.registerLanguage("profile",gM),ze.registerLanguage("protobuf",bM),ze.registerLanguage("python",_M),ze.registerLanguage("rust",yM),ze.registerLanguage("scss",CM),ze.registerLanguage("sql",TM),ze.registerLanguage("stylus",IM),ze.registerLanguage("swift",VM),ze.registerLanguage("yaml",UM),ze.registerLanguage("typescript",Vy),ze.registerLanguage("vbscript",GM),ze.registerLanguage("vim",$M);var jd={};const oN={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:`
128
+ `,nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:" ",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"};var Qd,a4;function l4(){return a4||(a4=1,Qd=oN),Qd}var Yd,c4;function Zd(){return c4||(c4=1,Yd=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/),Yd}var Zo={},Xd,u4;function sN(){if(u4)return Xd;u4=1;var n={};function e(r){var i,o,s=n[r];if(s)return s;for(s=n[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),/^[0-9a-z]$/i.test(o)?s.push(o):s.push("%"+("0"+i.toString(16).toUpperCase()).slice(-2));for(i=0;i<r.length;i++)s[r.charCodeAt(i)]=r[i];return s}function t(r,i,o){var s,a,l,c,u,h="";for(typeof i!="string"&&(o=i,i=t.defaultChars),typeof o>"u"&&(o=!0),u=e(i),s=0,a=r.length;s<a;s++){if(l=r.charCodeAt(s),o&&l===37&&s+2<a&&/^[0-9a-f]{2}$/i.test(r.slice(s+1,s+3))){h+=r.slice(s,s+3),s+=2;continue}if(l<128){h+=u[l];continue}if(l>=55296&&l<=57343){if(l>=55296&&l<=56319&&s+1<a&&(c=r.charCodeAt(s+1),c>=56320&&c<=57343)){h+=encodeURIComponent(r[s]+r[s+1]),s++;continue}h+="%EF%BF%BD";continue}h+=encodeURIComponent(r[s])}return h}return t.defaultChars=";/?:@&=+$,-_.!~*'()#",t.componentChars="-_.!~*'()",Xd=t,Xd}var Jd,d4;function aN(){if(d4)return Jd;d4=1;var n={};function e(r){var i,o,s=n[r];if(s)return s;for(s=n[r]=[],i=0;i<128;i++)o=String.fromCharCode(i),s.push(o);for(i=0;i<r.length;i++)o=r.charCodeAt(i),s[o]="%"+("0"+o.toString(16).toUpperCase()).slice(-2);return s}function t(r,i){var o;return typeof i!="string"&&(i=t.defaultChars),o=e(i),r.replace(/(%[a-f0-9]{2})+/gi,function(s){var a,l,c,u,h,g,b,p="";for(a=0,l=s.length;a<l;a+=3){if(c=parseInt(s.slice(a+1,a+3),16),c<128){p+=o[c];continue}if((c&224)===192&&a+3<l&&(u=parseInt(s.slice(a+4,a+6),16),(u&192)===128)){b=c<<6&1984|u&63,b<128?p+="��":p+=String.fromCharCode(b),a+=3;continue}if((c&240)===224&&a+6<l&&(u=parseInt(s.slice(a+4,a+6),16),h=parseInt(s.slice(a+7,a+9),16),(u&192)===128&&(h&192)===128)){b=c<<12&61440|u<<6&4032|h&63,b<2048||b>=55296&&b<=57343?p+="���":p+=String.fromCharCode(b),a+=6;continue}if((c&248)===240&&a+9<l&&(u=parseInt(s.slice(a+4,a+6),16),h=parseInt(s.slice(a+7,a+9),16),g=parseInt(s.slice(a+10,a+12),16),(u&192)===128&&(h&192)===128&&(g&192)===128)){b=c<<18&1835008|u<<12&258048|h<<6&4032|g&63,b<65536||b>1114111?p+="����":(b-=65536,p+=String.fromCharCode(55296+(b>>10),56320+(b&1023))),a+=9;continue}p+="�"}return p})}return t.defaultChars=";/?:@&=+$,#",t.componentChars="",Jd=t,Jd}var eh,h4;function lN(){return h4||(h4=1,eh=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}),eh}var th,f4;function cN(){if(f4)return th;f4=1;function n(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var e=/^([a-z0-9.+-]+:)/i,t=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["<",">",'"',"`"," ","\r",`
129
+ `," "],o=["{","}","|","\\","^","`"].concat(i),s=["'"].concat(o),a=["%","/","?",";","#"].concat(s),l=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function p(v,w){if(v&&v instanceof n)return v;var S=new n;return S.parse(v,w),S}return n.prototype.parse=function(v,w){var S,C,E,A,R,O=v;if(O=O.trim(),!w&&v.split("#").length===1){var H=r.exec(O);if(H)return this.pathname=H[1],H[2]&&(this.search=H[2]),this}var q=e.exec(O);if(q&&(q=q[0],E=q.toLowerCase(),this.protocol=q,O=O.substr(q.length)),(w||q||O.match(/^\/\/[^@\/]+@[^@\/]+/))&&(R=O.substr(0,2)==="//",R&&!(q&&g[q])&&(O=O.substr(2),this.slashes=!0)),!g[q]&&(R||q&&!b[q])){var U=-1;for(S=0;S<l.length;S++)A=O.indexOf(l[S]),A!==-1&&(U===-1||A<U)&&(U=A);var F,Y;for(U===-1?Y=O.lastIndexOf("@"):Y=O.lastIndexOf("@",U),Y!==-1&&(F=O.slice(0,Y),O=O.slice(Y+1),this.auth=F),U=-1,S=0;S<a.length;S++)A=O.indexOf(a[S]),A!==-1&&(U===-1||A<U)&&(U=A);U===-1&&(U=O.length),O[U-1]===":"&&U--;var X=O.slice(0,U);O=O.slice(U),this.parseHost(X),this.hostname=this.hostname||"";var oe=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!oe){var K=this.hostname.split(/\./);for(S=0,C=K.length;S<C;S++){var ee=K[S];if(ee&&!ee.match(u)){for(var $="",Q=0,ie=ee.length;Q<ie;Q++)ee.charCodeAt(Q)>127?$+="x":$+=ee[Q];if(!$.match(u)){var Z=K.slice(0,S),J=K.slice(S+1),ue=ee.match(h);ue&&(Z.push(ue[1]),J.unshift(ue[2])),J.length&&(O=J.join(".")+O),this.hostname=Z.join(".");break}}}}this.hostname.length>c&&(this.hostname=""),oe&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var fe=O.indexOf("#");fe!==-1&&(this.hash=O.substr(fe),O=O.slice(0,fe));var ke=O.indexOf("?");return ke!==-1&&(this.search=O.substr(ke),O=O.slice(0,ke)),O&&(this.pathname=O),b[E]&&this.hostname&&!this.pathname&&(this.pathname=""),this},n.prototype.parseHost=function(v){var w=t.exec(v);w&&(w=w[0],w!==":"&&(this.port=w.substr(1)),v=v.substr(0,v.length-w.length)),v&&(this.hostname=v)},th=p,th}var p4;function m4(){return p4||(p4=1,Zo.encode=sN(),Zo.decode=aN(),Zo.format=lN(),Zo.parse=cN()),Zo}var mo={},nh,g4;function b4(){return g4||(g4=1,nh=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/),nh}var rh,_4;function y4(){return _4||(_4=1,rh=/[\0-\x1F\x7F-\x9F]/),rh}var ih,v4;function uN(){return v4||(v4=1,ih=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),ih}var oh,w4;function x4(){return w4||(w4=1,oh=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/),oh}var k4;function dN(){return k4||(k4=1,mo.Any=b4(),mo.Cc=y4(),mo.Cf=uN(),mo.P=Zd(),mo.Z=x4()),mo}var S4;function yt(){return S4||(S4=1,function(n){function e(K){return Object.prototype.toString.call(K)}function t(K){return e(K)==="[object String]"}var r=Object.prototype.hasOwnProperty;function i(K,ee){return r.call(K,ee)}function o(K){var ee=Array.prototype.slice.call(arguments,1);return ee.forEach(function($){if($){if(typeof $!="object")throw new TypeError($+"must be object");Object.keys($).forEach(function(Q){K[Q]=$[Q]})}}),K}function s(K,ee,$){return[].concat(K.slice(0,ee),$,K.slice(ee+1))}function a(K){return!(K>=55296&&K<=57343||K>=64976&&K<=65007||(K&65535)===65535||(K&65535)===65534||K>=0&&K<=8||K===11||K>=14&&K<=31||K>=127&&K<=159||K>1114111)}function l(K){if(K>65535){K-=65536;var ee=55296+(K>>10),$=56320+(K&1023);return String.fromCharCode(ee,$)}return String.fromCharCode(K)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,h=new RegExp(c.source+"|"+u.source,"gi"),g=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i,b=l4();function p(K,ee){var $;return i(b,ee)?b[ee]:ee.charCodeAt(0)===35&&g.test(ee)&&($=ee[1].toLowerCase()==="x"?parseInt(ee.slice(2),16):parseInt(ee.slice(1),10),a($))?l($):K}function v(K){return K.indexOf("\\")<0?K:K.replace(c,"$1")}function w(K){return K.indexOf("\\")<0&&K.indexOf("&")<0?K:K.replace(h,function(ee,$,Q){return $||p(ee,Q)})}var S=/[&<>"]/,C=/[&<>"]/g,E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function A(K){return E[K]}function R(K){return S.test(K)?K.replace(C,A):K}var O=/[.?*+^$[\]\\(){}|-]/g;function H(K){return K.replace(O,"\\$&")}function q(K){switch(K){case 9:case 32:return!0}return!1}function U(K){if(K>=8192&&K<=8202)return!0;switch(K){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var F=Zd();function Y(K){return F.test(K)}function X(K){switch(K){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function oe(K){return K=K.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(K=K.replace(/ẞ/g,"ß")),K.toLowerCase().toUpperCase()}n.lib={},n.lib.mdurl=m4(),n.lib.ucmicro=dN(),n.assign=o,n.isString=t,n.has=i,n.unescapeMd=v,n.unescapeAll=w,n.isValidEntityCode=a,n.fromCodePoint=l,n.escapeHtml=R,n.arrayReplaceAt=s,n.isSpace=q,n.isWhiteSpace=U,n.isMdAsciiPunct=X,n.isPunctChar=Y,n.escapeRE=H,n.normalizeReference=oe}(jd)),jd}var ha={},sh,E4;function hN(){return E4||(E4=1,sh=function(e,t,r){var i,o,s,a,l=-1,c=e.posMax,u=e.pos;for(e.pos=t+1,i=1;e.pos<c;){if(s=e.src.charCodeAt(e.pos),s===93&&(i--,i===0)){o=!0;break}if(a=e.pos,e.md.inline.skipToken(e),s===91){if(a===e.pos-1)i++;else if(r)return e.pos=u,-1}}return o&&(l=e.pos),e.pos=u,l}),sh}var ah,C4;function fN(){if(C4)return ah;C4=1;var n=yt().unescapeAll;return ah=function(t,r,i){var o,s,a=r,l={ok:!1,pos:0,lines:0,str:""};if(t.charCodeAt(a)===60){for(a++;a<i;){if(o=t.charCodeAt(a),o===10||o===60)return l;if(o===62)return l.pos=a+1,l.str=n(t.slice(r+1,a)),l.ok=!0,l;if(o===92&&a+1<i){a+=2;continue}a++}return l}for(s=0;a<i&&(o=t.charCodeAt(a),!(o===32||o<32||o===127));){if(o===92&&a+1<i){if(t.charCodeAt(a+1)===32)break;a+=2;continue}if(o===40&&(s++,s>32))return l;if(o===41){if(s===0)break;s--}a++}return r===a||s!==0||(l.str=n(t.slice(r,a)),l.pos=a,l.ok=!0),l},ah}var lh,T4;function pN(){if(T4)return lh;T4=1;var n=yt().unescapeAll;return lh=function(t,r,i){var o,s,a=0,l=r,c={ok:!1,pos:0,lines:0,str:""};if(l>=i||(s=t.charCodeAt(l),s!==34&&s!==39&&s!==40))return c;for(l++,s===40&&(s=41);l<i;){if(o=t.charCodeAt(l),o===s)return c.pos=l+1,c.lines=a,c.str=n(t.slice(r+1,l)),c.ok=!0,c;if(o===40&&s===41)return c;o===10?a++:o===92&&l+1<i&&(l++,t.charCodeAt(l)===10&&a++),l++}return c},lh}var A4;function mN(){return A4||(A4=1,ha.parseLinkLabel=hN(),ha.parseLinkDestination=fN(),ha.parseLinkTitle=pN()),ha}var ch,M4;function gN(){if(M4)return ch;M4=1;var n=yt().assign,e=yt().unescapeAll,t=yt().escapeHtml,r={};r.code_inline=function(o,s,a,l,c){var u=o[s];return"<code"+c.renderAttrs(u)+">"+t(u.content)+"</code>"},r.code_block=function(o,s,a,l,c){var u=o[s];return"<pre"+c.renderAttrs(u)+"><code>"+t(o[s].content)+`</code></pre>
130
+ `},r.fence=function(o,s,a,l,c){var u=o[s],h=u.info?e(u.info).trim():"",g="",b="",p,v,w,S,C;return h&&(w=h.split(/(\s+)/g),g=w[0],b=w.slice(2).join("")),a.highlight?p=a.highlight(u.content,g,b)||t(u.content):p=t(u.content),p.indexOf("<pre")===0?p+`
131
+ `:h?(v=u.attrIndex("class"),S=u.attrs?u.attrs.slice():[],v<0?S.push(["class",a.langPrefix+g]):(S[v]=S[v].slice(),S[v][1]+=" "+a.langPrefix+g),C={attrs:S},"<pre><code"+c.renderAttrs(C)+">"+p+`</code></pre>
132
+ `):"<pre><code"+c.renderAttrs(u)+">"+p+`</code></pre>
133
+ `},r.image=function(o,s,a,l,c){var u=o[s];return u.attrs[u.attrIndex("alt")][1]=c.renderInlineAsText(u.children,a,l),c.renderToken(o,s,a)},r.hardbreak=function(o,s,a){return a.xhtmlOut?`<br />
134
+ `:`<br>
135
+ `},r.softbreak=function(o,s,a){return a.breaks?a.xhtmlOut?`<br />
136
+ `:`<br>
137
+ `:`
138
+ `},r.text=function(o,s){return t(o[s].content)},r.html_block=function(o,s){return o[s].content},r.html_inline=function(o,s){return o[s].content};function i(){this.rules=n({},r)}return i.prototype.renderAttrs=function(s){var a,l,c;if(!s.attrs)return"";for(c="",a=0,l=s.attrs.length;a<l;a++)c+=" "+t(s.attrs[a][0])+'="'+t(s.attrs[a][1])+'"';return c},i.prototype.renderToken=function(s,a,l){var c,u="",h=!1,g=s[a];return g.hidden?"":(g.block&&g.nesting!==-1&&a&&s[a-1].hidden&&(u+=`
139
+ `),u+=(g.nesting===-1?"</":"<")+g.tag,u+=this.renderAttrs(g),g.nesting===0&&l.xhtmlOut&&(u+=" /"),g.block&&(h=!0,g.nesting===1&&a+1<s.length&&(c=s[a+1],(c.type==="inline"||c.hidden||c.nesting===-1&&c.tag===g.tag)&&(h=!1))),u+=h?`>
140
+ `:">",u)},i.prototype.renderInline=function(o,s,a){for(var l,c="",u=this.rules,h=0,g=o.length;h<g;h++)l=o[h].type,typeof u[l]<"u"?c+=u[l](o,h,s,a,this):c+=this.renderToken(o,h,s);return c},i.prototype.renderInlineAsText=function(o,s,a){for(var l="",c=0,u=o.length;c<u;c++)o[c].type==="text"?l+=o[c].content:o[c].type==="image"?l+=this.renderInlineAsText(o[c].children,s,a):o[c].type==="softbreak"&&(l+=`
141
+ `);return l},i.prototype.render=function(o,s,a){var l,c,u,h="",g=this.rules;for(l=0,c=o.length;l<c;l++)u=o[l].type,u==="inline"?h+=this.renderInline(o[l].children,s,a):typeof g[u]<"u"?h+=g[u](o,l,s,a,this):h+=this.renderToken(o,l,s,a);return h},ch=i,ch}var uh,N4;function dh(){if(N4)return uh;N4=1;function n(){this.__rules__=[],this.__cache__=null}return n.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},n.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(i){t.indexOf(i)<0&&t.push(i)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(i){i.enabled&&(r&&i.alt.indexOf(r)<0||e.__cache__[r].push(i.fn))})})},n.prototype.at=function(e,t,r){var i=this.__find__(e),o=r||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__[i].fn=t,this.__rules__[i].alt=o.alt||[],this.__cache__=null},n.prototype.before=function(e,t,r,i){var o=this.__find__(e),s=i||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},n.prototype.after=function(e,t,r,i){var o=this.__find__(e),s=i||{};if(o===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null},n.prototype.push=function(e,t,r){var i=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:i.alt||[]}),this.__cache__=null},n.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(i){var o=this.__find__(i);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!0,r.push(i)},this),this.__cache__=null,r},n.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(r){r.enabled=!1}),this.enable(e,t)},n.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var r=[];return e.forEach(function(i){var o=this.__find__(i);if(o<0){if(t)return;throw new Error("Rules manager: invalid rule name "+i)}this.__rules__[o].enabled=!1,r.push(i)},this),this.__cache__=null,r},n.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]},uh=n,uh}var hh,D4;function bN(){if(D4)return hh;D4=1;var n=/\r\n?|\n/g,e=/\0/g;return hh=function(r){var i;i=r.src.replace(n,`
142
+ `),i=i.replace(e,"�"),r.src=i},hh}var fh,R4;function _N(){return R4||(R4=1,fh=function(e){var t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}),fh}var ph,O4;function yN(){return O4||(O4=1,ph=function(e){var t=e.tokens,r,i,o;for(i=0,o=t.length;i<o;i++)r=t[i],r.type==="inline"&&e.md.inline.parse(r.content,e.md,e.env,r.children)}),ph}var mh,I4;function vN(){if(I4)return mh;I4=1;var n=yt().arrayReplaceAt;function e(r){return/^<a[>\s]/i.test(r)}function t(r){return/^<\/a\s*>/i.test(r)}return mh=function(i){var o,s,a,l,c,u,h,g,b,p,v,w,S,C,E,A,R=i.tokens,O;if(i.md.options.linkify){for(s=0,a=R.length;s<a;s++)if(!(R[s].type!=="inline"||!i.md.linkify.pretest(R[s].content)))for(l=R[s].children,S=0,o=l.length-1;o>=0;o--){if(u=l[o],u.type==="link_close"){for(o--;l[o].level!==u.level&&l[o].type!=="link_open";)o--;continue}if(u.type==="html_inline"&&(e(u.content)&&S>0&&S--,t(u.content)&&S++),!(S>0)&&u.type==="text"&&i.md.linkify.test(u.content)){for(b=u.content,O=i.md.linkify.match(b),h=[],w=u.level,v=0,O.length>0&&O[0].index===0&&o>0&&l[o-1].type==="text_special"&&(O=O.slice(1)),g=0;g<O.length;g++)C=O[g].url,E=i.md.normalizeLink(C),i.md.validateLink(E)&&(A=O[g].text,O[g].schema?O[g].schema==="mailto:"&&!/^mailto:/i.test(A)?A=i.md.normalizeLinkText("mailto:"+A).replace(/^mailto:/,""):A=i.md.normalizeLinkText(A):A=i.md.normalizeLinkText("http://"+A).replace(/^http:\/\//,""),p=O[g].index,p>v&&(c=new i.Token("text","",0),c.content=b.slice(v,p),c.level=w,h.push(c)),c=new i.Token("link_open","a",1),c.attrs=[["href",E]],c.level=w++,c.markup="linkify",c.info="auto",h.push(c),c=new i.Token("text","",0),c.content=A,c.level=w,h.push(c),c=new i.Token("link_close","a",-1),c.level=--w,c.markup="linkify",c.info="auto",h.push(c),v=O[g].lastIndex);v<b.length&&(c=new i.Token("text","",0),c.content=b.slice(v),c.level=w,h.push(c)),R[s].children=l=n(l,o,h)}}}},mh}var gh,L4;function wN(){if(L4)return gh;L4=1;var n=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,e=/\((c|tm|r)\)/i,t=/\((c|tm|r)\)/ig,r={c:"©",r:"®",tm:"™"};function i(a,l){return r[l.toLowerCase()]}function o(a){var l,c,u=0;for(l=a.length-1;l>=0;l--)c=a[l],c.type==="text"&&!u&&(c.content=c.content.replace(t,i)),c.type==="link_open"&&c.info==="auto"&&u--,c.type==="link_close"&&c.info==="auto"&&u++}function s(a){var l,c,u=0;for(l=a.length-1;l>=0;l--)c=a[l],c.type==="text"&&!u&&n.test(c.content)&&(c.content=c.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),c.type==="link_open"&&c.info==="auto"&&u--,c.type==="link_close"&&c.info==="auto"&&u++}return gh=function(l){var c;if(l.md.options.typographer)for(c=l.tokens.length-1;c>=0;c--)l.tokens[c].type==="inline"&&(e.test(l.tokens[c].content)&&o(l.tokens[c].children),n.test(l.tokens[c].content)&&s(l.tokens[c].children))},gh}var bh,B4;function xN(){if(B4)return bh;B4=1;var n=yt().isWhiteSpace,e=yt().isPunctChar,t=yt().isMdAsciiPunct,r=/['"]/,i=/['"]/g,o="’";function s(l,c,u){return l.slice(0,c)+u+l.slice(c+1)}function a(l,c){var u,h,g,b,p,v,w,S,C,E,A,R,O,H,q,U,F,Y,X,oe,K;for(X=[],u=0;u<l.length;u++){for(h=l[u],w=l[u].level,F=X.length-1;F>=0&&!(X[F].level<=w);F--);if(X.length=F+1,h.type==="text"){g=h.content,p=0,v=g.length;e:for(;p<v&&(i.lastIndex=p,b=i.exec(g),!!b);){if(q=U=!0,p=b.index+1,Y=b[0]==="'",C=32,b.index-1>=0)C=g.charCodeAt(b.index-1);else for(F=u-1;F>=0&&!(l[F].type==="softbreak"||l[F].type==="hardbreak");F--)if(l[F].content){C=l[F].content.charCodeAt(l[F].content.length-1);break}if(E=32,p<v)E=g.charCodeAt(p);else for(F=u+1;F<l.length&&!(l[F].type==="softbreak"||l[F].type==="hardbreak");F++)if(l[F].content){E=l[F].content.charCodeAt(0);break}if(A=t(C)||e(String.fromCharCode(C)),R=t(E)||e(String.fromCharCode(E)),O=n(C),H=n(E),H?q=!1:R&&(O||A||(q=!1)),O?U=!1:A&&(H||R||(U=!1)),E===34&&b[0]==='"'&&C>=48&&C<=57&&(U=q=!1),q&&U&&(q=A,U=R),!q&&!U){Y&&(h.content=s(h.content,b.index,o));continue}if(U){for(F=X.length-1;F>=0&&(S=X[F],!(X[F].level<w));F--)if(S.single===Y&&X[F].level===w){S=X[F],Y?(oe=c.md.options.quotes[2],K=c.md.options.quotes[3]):(oe=c.md.options.quotes[0],K=c.md.options.quotes[1]),h.content=s(h.content,b.index,K),l[S.token].content=s(l[S.token].content,S.pos,oe),p+=K.length-1,S.token===u&&(p+=oe.length-1),g=h.content,v=g.length,X.length=F;continue e}}q?X.push({token:u,pos:b.index,single:Y,level:w}):U&&Y&&(h.content=s(h.content,b.index,o))}}}}return bh=function(c){var u;if(c.md.options.typographer)for(u=c.tokens.length-1;u>=0;u--)c.tokens[u].type!=="inline"||!r.test(c.tokens[u].content)||a(c.tokens[u].children,c)},bh}var _h,P4;function kN(){return P4||(P4=1,_h=function(e){var t,r,i,o,s,a,l=e.tokens;for(t=0,r=l.length;t<r;t++)if(l[t].type==="inline"){for(i=l[t].children,s=i.length,o=0;o<s;o++)i[o].type==="text_special"&&(i[o].type="text");for(o=a=0;o<s;o++)i[o].type==="text"&&o+1<s&&i[o+1].type==="text"?i[o+1].content=i[o].content+i[o+1].content:(o!==a&&(i[a]=i[o]),a++);o!==a&&(i.length=a)}}),_h}var yh,F4;function vh(){if(F4)return yh;F4=1;function n(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}return n.prototype.attrIndex=function(t){var r,i,o;if(!this.attrs)return-1;for(r=this.attrs,i=0,o=r.length;i<o;i++)if(r[i][0]===t)return i;return-1},n.prototype.attrPush=function(t){this.attrs?this.attrs.push(t):this.attrs=[t]},n.prototype.attrSet=function(t,r){var i=this.attrIndex(t),o=[t,r];i<0?this.attrPush(o):this.attrs[i]=o},n.prototype.attrGet=function(t){var r=this.attrIndex(t),i=null;return r>=0&&(i=this.attrs[r][1]),i},n.prototype.attrJoin=function(t,r){var i=this.attrIndex(t);i<0?this.attrPush([t,r]):this.attrs[i][1]=this.attrs[i][1]+" "+r},yh=n,yh}var wh,z4;function SN(){if(z4)return wh;z4=1;var n=vh();function e(t,r,i){this.src=t,this.env=i,this.tokens=[],this.inlineMode=!1,this.md=r}return e.prototype.Token=n,wh=e,wh}var xh,q4;function EN(){if(q4)return xh;q4=1;var n=dh(),e=[["normalize",bN()],["block",_N()],["inline",yN()],["linkify",vN()],["replacements",wN()],["smartquotes",xN()],["text_join",kN()]];function t(){this.ruler=new n;for(var r=0;r<e.length;r++)this.ruler.push(e[r][0],e[r][1])}return t.prototype.process=function(r){var i,o,s;for(s=this.ruler.getRules(""),i=0,o=s.length;i<o;i++)s[i](r)},t.prototype.State=SN(),xh=t,xh}var kh,H4;function CN(){if(H4)return kh;H4=1;var n=yt().isSpace;function e(r,i){var o=r.bMarks[i]+r.tShift[i],s=r.eMarks[i];return r.src.slice(o,s)}function t(r){var i=[],o=0,s=r.length,a,l=!1,c=0,u="";for(a=r.charCodeAt(o);o<s;)a===124&&(l?(u+=r.substring(c,o-1),c=o):(i.push(u+r.substring(c,o)),u="",c=o+1)),l=a===92,o++,a=r.charCodeAt(o);return i.push(u+r.substring(c)),i}return kh=function(i,o,s,a){var l,c,u,h,g,b,p,v,w,S,C,E,A,R,O,H,q,U;if(o+2>s||(b=o+1,i.sCount[b]<i.blkIndent)||i.sCount[b]-i.blkIndent>=4||(u=i.bMarks[b]+i.tShift[b],u>=i.eMarks[b])||(q=i.src.charCodeAt(u++),q!==124&&q!==45&&q!==58)||u>=i.eMarks[b]||(U=i.src.charCodeAt(u++),U!==124&&U!==45&&U!==58&&!n(U))||q===45&&n(U))return!1;for(;u<i.eMarks[b];){if(l=i.src.charCodeAt(u),l!==124&&l!==45&&l!==58&&!n(l))return!1;u++}for(c=e(i,o+1),p=c.split("|"),S=[],h=0;h<p.length;h++){if(C=p[h].trim(),!C){if(h===0||h===p.length-1)continue;return!1}if(!/^:?-+:?$/.test(C))return!1;C.charCodeAt(C.length-1)===58?S.push(C.charCodeAt(0)===58?"center":"right"):C.charCodeAt(0)===58?S.push("left"):S.push("")}if(c=e(i,o).trim(),c.indexOf("|")===-1||i.sCount[o]-i.blkIndent>=4||(p=t(c),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),v=p.length,v===0||v!==S.length))return!1;if(a)return!0;for(R=i.parentType,i.parentType="table",H=i.md.block.ruler.getRules("blockquote"),w=i.push("table_open","table",1),w.map=E=[o,0],w=i.push("thead_open","thead",1),w.map=[o,o+1],w=i.push("tr_open","tr",1),w.map=[o,o+1],h=0;h<p.length;h++)w=i.push("th_open","th",1),S[h]&&(w.attrs=[["style","text-align:"+S[h]]]),w=i.push("inline","",0),w.content=p[h].trim(),w.children=[],w=i.push("th_close","th",-1);for(w=i.push("tr_close","tr",-1),w=i.push("thead_close","thead",-1),b=o+2;b<s&&!(i.sCount[b]<i.blkIndent);b++){for(O=!1,h=0,g=H.length;h<g;h++)if(H[h](i,b,s,!0)){O=!0;break}if(O||(c=e(i,b).trim(),!c)||i.sCount[b]-i.blkIndent>=4)break;for(p=t(c),p.length&&p[0]===""&&p.shift(),p.length&&p[p.length-1]===""&&p.pop(),b===o+2&&(w=i.push("tbody_open","tbody",1),w.map=A=[o+2,0]),w=i.push("tr_open","tr",1),w.map=[b,b+1],h=0;h<v;h++)w=i.push("td_open","td",1),S[h]&&(w.attrs=[["style","text-align:"+S[h]]]),w=i.push("inline","",0),w.content=p[h]?p[h].trim():"",w.children=[],w=i.push("td_close","td",-1);w=i.push("tr_close","tr",-1)}return A&&(w=i.push("tbody_close","tbody",-1),A[1]=b),w=i.push("table_close","table",-1),E[1]=b,i.parentType=R,i.line=b,!0},kh}var Sh,V4;function TN(){return V4||(V4=1,Sh=function(e,t,r){var i,o,s;if(e.sCount[t]-e.blkIndent<4)return!1;for(o=i=t+1;i<r;){if(e.isEmpty(i)){i++;continue}if(e.sCount[i]-e.blkIndent>=4){i++,o=i;continue}break}return e.line=o,s=e.push("code_block","code",0),s.content=e.getLines(t,o,4+e.blkIndent,!1)+`
143
+ `,s.map=[t,e.line],!0}),Sh}var Eh,U4;function AN(){return U4||(U4=1,Eh=function(e,t,r,i){var o,s,a,l,c,u,h,g=!1,b=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||b+3>p||(o=e.src.charCodeAt(b),o!==126&&o!==96)||(c=b,b=e.skipChars(b,o),s=b-c,s<3)||(h=e.src.slice(c,b),a=e.src.slice(b,p),o===96&&a.indexOf(String.fromCharCode(o))>=0))return!1;if(i)return!0;for(l=t;l++,!(l>=r||(b=c=e.bMarks[l]+e.tShift[l],p=e.eMarks[l],b<p&&e.sCount[l]<e.blkIndent));)if(e.src.charCodeAt(b)===o&&!(e.sCount[l]-e.blkIndent>=4)&&(b=e.skipChars(b,o),!(b-c<s)&&(b=e.skipSpaces(b),!(b<p)))){g=!0;break}return s=e.sCount[t],e.line=l+(g?1:0),u=e.push("fence","code",0),u.info=a,u.content=e.getLines(t+1,l,s,!0),u.markup=h,u.map=[t,e.line],!0}),Eh}var Ch,G4;function MN(){if(G4)return Ch;G4=1;var n=yt().isSpace;return Ch=function(t,r,i,o){var s,a,l,c,u,h,g,b,p,v,w,S,C,E,A,R,O,H,q,U,F=t.lineMax,Y=t.bMarks[r]+t.tShift[r],X=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||t.src.charCodeAt(Y)!==62)return!1;if(o)return!0;for(v=[],w=[],E=[],A=[],H=t.md.block.ruler.getRules("blockquote"),C=t.parentType,t.parentType="blockquote",b=r;b<i&&(U=t.sCount[b]<t.blkIndent,Y=t.bMarks[b]+t.tShift[b],X=t.eMarks[b],!(Y>=X));b++){if(t.src.charCodeAt(Y++)===62&&!U){for(c=t.sCount[b]+1,t.src.charCodeAt(Y)===32?(Y++,c++,s=!1,R=!0):t.src.charCodeAt(Y)===9?(R=!0,(t.bsCount[b]+c)%4===3?(Y++,c++,s=!1):s=!0):R=!1,p=c,v.push(t.bMarks[b]),t.bMarks[b]=Y;Y<X&&(a=t.src.charCodeAt(Y),n(a));){a===9?p+=4-(p+t.bsCount[b]+(s?1:0))%4:p++;Y++}h=Y>=X,w.push(t.bsCount[b]),t.bsCount[b]=t.sCount[b]+1+(R?1:0),E.push(t.sCount[b]),t.sCount[b]=p-c,A.push(t.tShift[b]),t.tShift[b]=Y-t.bMarks[b];continue}if(h)break;for(O=!1,l=0,u=H.length;l<u;l++)if(H[l](t,b,i,!0)){O=!0;break}if(O){t.lineMax=b,t.blkIndent!==0&&(v.push(t.bMarks[b]),w.push(t.bsCount[b]),A.push(t.tShift[b]),E.push(t.sCount[b]),t.sCount[b]-=t.blkIndent);break}v.push(t.bMarks[b]),w.push(t.bsCount[b]),A.push(t.tShift[b]),E.push(t.sCount[b]),t.sCount[b]=-1}for(S=t.blkIndent,t.blkIndent=0,q=t.push("blockquote_open","blockquote",1),q.markup=">",q.map=g=[r,0],t.md.block.tokenize(t,r,b),q=t.push("blockquote_close","blockquote",-1),q.markup=">",t.lineMax=F,t.parentType=C,g[1]=t.line,l=0;l<A.length;l++)t.bMarks[l+r]=v[l],t.tShift[l+r]=A[l],t.sCount[l+r]=E[l],t.bsCount[l+r]=w[l];return t.blkIndent=S,!0},Ch}var Th,$4;function NN(){if($4)return Th;$4=1;var n=yt().isSpace;return Th=function(t,r,i,o){var s,a,l,c,u=t.bMarks[r]+t.tShift[r],h=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(s=t.src.charCodeAt(u++),s!==42&&s!==45&&s!==95))return!1;for(a=1;u<h;){if(l=t.src.charCodeAt(u++),l!==s&&!n(l))return!1;l===s&&a++}return a<3?!1:(o||(t.line=r+1,c=t.push("hr","hr",0),c.map=[r,t.line],c.markup=Array(a+1).join(String.fromCharCode(s))),!0)},Th}var Ah,W4;function DN(){if(W4)return Ah;W4=1;var n=yt().isSpace;function e(i,o){var s,a,l,c;return a=i.bMarks[o]+i.tShift[o],l=i.eMarks[o],s=i.src.charCodeAt(a++),s!==42&&s!==45&&s!==43||a<l&&(c=i.src.charCodeAt(a),!n(c))?-1:a}function t(i,o){var s,a=i.bMarks[o]+i.tShift[o],l=a,c=i.eMarks[o];if(l+1>=c||(s=i.src.charCodeAt(l++),s<48||s>57))return-1;for(;;){if(l>=c)return-1;if(s=i.src.charCodeAt(l++),s>=48&&s<=57){if(l-a>=10)return-1;continue}if(s===41||s===46)break;return-1}return l<c&&(s=i.src.charCodeAt(l),!n(s))?-1:l}function r(i,o){var s,a,l=i.level+2;for(s=o+2,a=i.tokens.length-2;s<a;s++)i.tokens[s].level===l&&i.tokens[s].type==="paragraph_open"&&(i.tokens[s+2].hidden=!0,i.tokens[s].hidden=!0,s+=2)}return Ah=function(o,s,a,l){var c,u,h,g,b,p,v,w,S,C,E,A,R,O,H,q,U,F,Y,X,oe,K,ee,$,Q,ie,Z,J=s,ue=!1,fe=!0;if(o.sCount[J]-o.blkIndent>=4||o.listIndent>=0&&o.sCount[J]-o.listIndent>=4&&o.sCount[J]<o.blkIndent)return!1;if(l&&o.parentType==="paragraph"&&o.sCount[J]>=o.blkIndent&&(ue=!0),(K=t(o,J))>=0){if(v=!0,$=o.bMarks[J]+o.tShift[J],R=Number(o.src.slice($,K-1)),ue&&R!==1)return!1}else if((K=e(o,J))>=0)v=!1;else return!1;if(ue&&o.skipSpaces(K)>=o.eMarks[J])return!1;if(l)return!0;for(A=o.src.charCodeAt(K-1),E=o.tokens.length,v?(Z=o.push("ordered_list_open","ol",1),R!==1&&(Z.attrs=[["start",R]])):Z=o.push("bullet_list_open","ul",1),Z.map=C=[J,0],Z.markup=String.fromCharCode(A),ee=!1,ie=o.md.block.ruler.getRules("list"),U=o.parentType,o.parentType="list";J<a;){for(oe=K,O=o.eMarks[J],p=H=o.sCount[J]+K-(o.bMarks[J]+o.tShift[J]);oe<O;){if(c=o.src.charCodeAt(oe),c===9)H+=4-(H+o.bsCount[J])%4;else if(c===32)H++;else break;oe++}if(u=oe,u>=O?b=1:b=H-p,b>4&&(b=1),g=p+b,Z=o.push("list_item_open","li",1),Z.markup=String.fromCharCode(A),Z.map=w=[J,0],v&&(Z.info=o.src.slice($,K-1)),X=o.tight,Y=o.tShift[J],F=o.sCount[J],q=o.listIndent,o.listIndent=o.blkIndent,o.blkIndent=g,o.tight=!0,o.tShift[J]=u-o.bMarks[J],o.sCount[J]=H,u>=O&&o.isEmpty(J+1)?o.line=Math.min(o.line+2,a):o.md.block.tokenize(o,J,a,!0),(!o.tight||ee)&&(fe=!1),ee=o.line-J>1&&o.isEmpty(o.line-1),o.blkIndent=o.listIndent,o.listIndent=q,o.tShift[J]=Y,o.sCount[J]=F,o.tight=X,Z=o.push("list_item_close","li",-1),Z.markup=String.fromCharCode(A),J=o.line,w[1]=J,J>=a||o.sCount[J]<o.blkIndent||o.sCount[J]-o.blkIndent>=4)break;for(Q=!1,h=0,S=ie.length;h<S;h++)if(ie[h](o,J,a,!0)){Q=!0;break}if(Q)break;if(v){if(K=t(o,J),K<0)break;$=o.bMarks[J]+o.tShift[J]}else if(K=e(o,J),K<0)break;if(A!==o.src.charCodeAt(K-1))break}return v?Z=o.push("ordered_list_close","ol",-1):Z=o.push("bullet_list_close","ul",-1),Z.markup=String.fromCharCode(A),C[1]=J,o.line=J,o.parentType=U,fe&&r(o,E),!0},Ah}var Mh,K4;function RN(){if(K4)return Mh;K4=1;var n=yt().normalizeReference,e=yt().isSpace;return Mh=function(r,i,o,s){var a,l,c,u,h,g,b,p,v,w,S,C,E,A,R,O,H=0,q=r.bMarks[i]+r.tShift[i],U=r.eMarks[i],F=i+1;if(r.sCount[i]-r.blkIndent>=4||r.src.charCodeAt(q)!==91)return!1;for(;++q<U;)if(r.src.charCodeAt(q)===93&&r.src.charCodeAt(q-1)!==92){if(q+1===U||r.src.charCodeAt(q+1)!==58)return!1;break}for(u=r.lineMax,R=r.md.block.ruler.getRules("reference"),w=r.parentType,r.parentType="reference";F<u&&!r.isEmpty(F);F++)if(!(r.sCount[F]-r.blkIndent>3)&&!(r.sCount[F]<0)){for(A=!1,g=0,b=R.length;g<b;g++)if(R[g](r,F,u,!0)){A=!0;break}if(A)break}for(E=r.getLines(i,F,r.blkIndent,!1).trim(),U=E.length,q=1;q<U;q++){if(a=E.charCodeAt(q),a===91)return!1;if(a===93){v=q;break}else a===10?H++:a===92&&(q++,q<U&&E.charCodeAt(q)===10&&H++)}if(v<0||E.charCodeAt(v+1)!==58)return!1;for(q=v+2;q<U;q++)if(a=E.charCodeAt(q),a===10)H++;else if(!e(a))break;if(S=r.md.helpers.parseLinkDestination(E,q,U),!S.ok||(h=r.md.normalizeLink(S.str),!r.md.validateLink(h)))return!1;for(q=S.pos,H+=S.lines,l=q,c=H,C=q;q<U;q++)if(a=E.charCodeAt(q),a===10)H++;else if(!e(a))break;for(S=r.md.helpers.parseLinkTitle(E,q,U),q<U&&C!==q&&S.ok?(O=S.str,q=S.pos,H+=S.lines):(O="",q=l,H=c);q<U&&(a=E.charCodeAt(q),!!e(a));)q++;if(q<U&&E.charCodeAt(q)!==10&&O)for(O="",q=l,H=c;q<U&&(a=E.charCodeAt(q),!!e(a));)q++;return q<U&&E.charCodeAt(q)!==10||(p=n(E.slice(1,v)),!p)?!1:(s||(typeof r.env.references>"u"&&(r.env.references={}),typeof r.env.references[p]>"u"&&(r.env.references[p]={title:O,href:h}),r.parentType=w,r.line=i+H+1),!0)},Mh}var Nh,j4;function ON(){return j4||(j4=1,Nh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]),Nh}var Mc={},Q4;function Y4(){if(Q4)return Mc;Q4=1;var n="[a-zA-Z_:][a-zA-Z0-9:._-]*",e="[^\"'=<>`\\x00-\\x20]+",t="'[^']*'",r='"[^"]*"',i="(?:"+e+"|"+t+"|"+r+")",o="(?:\\s+"+n+"(?:\\s*=\\s*"+i+")?)",s="<[A-Za-z][A-Za-z0-9\\-]*"+o+"*\\s*\\/?>",a="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",l="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",c="<[?][\\s\\S]*?[?]>",u="<![A-Z]+\\s+[^>]*>",h="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>",g=new RegExp("^(?:"+s+"|"+a+"|"+l+"|"+c+"|"+u+"|"+h+")"),b=new RegExp("^(?:"+s+"|"+a+")");return Mc.HTML_TAG_RE=g,Mc.HTML_OPEN_CLOSE_TAG_RE=b,Mc}var Dh,Z4;function IN(){if(Z4)return Dh;Z4=1;var n=ON(),e=Y4().HTML_OPEN_CLOSE_TAG_RE,t=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+n.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(e.source+"\\s*$"),/^$/,!1]];return Dh=function(i,o,s,a){var l,c,u,h,g=i.bMarks[o]+i.tShift[o],b=i.eMarks[o];if(i.sCount[o]-i.blkIndent>=4||!i.md.options.html||i.src.charCodeAt(g)!==60)return!1;for(h=i.src.slice(g,b),l=0;l<t.length&&!t[l][0].test(h);l++);if(l===t.length)return!1;if(a)return t[l][2];if(c=o+1,!t[l][1].test(h)){for(;c<s&&!(i.sCount[c]<i.blkIndent);c++)if(g=i.bMarks[c]+i.tShift[c],b=i.eMarks[c],h=i.src.slice(g,b),t[l][1].test(h)){h.length!==0&&c++;break}}return i.line=c,u=i.push("html_block","",0),u.map=[o,c],u.content=i.getLines(o,c,i.blkIndent,!0),!0},Dh}var Rh,X4;function LN(){if(X4)return Rh;X4=1;var n=yt().isSpace;return Rh=function(t,r,i,o){var s,a,l,c,u=t.bMarks[r]+t.tShift[r],h=t.eMarks[r];if(t.sCount[r]-t.blkIndent>=4||(s=t.src.charCodeAt(u),s!==35||u>=h))return!1;for(a=1,s=t.src.charCodeAt(++u);s===35&&u<h&&a<=6;)a++,s=t.src.charCodeAt(++u);return a>6||u<h&&!n(s)?!1:(o||(h=t.skipSpacesBack(h,u),l=t.skipCharsBack(h,35,u),l>u&&n(t.src.charCodeAt(l-1))&&(h=l),t.line=r+1,c=t.push("heading_open","h"+String(a),1),c.markup="########".slice(0,a),c.map=[r,t.line],c=t.push("inline","",0),c.content=t.src.slice(u,h).trim(),c.map=[r,t.line],c.children=[],c=t.push("heading_close","h"+String(a),-1),c.markup="########".slice(0,a)),!0)},Rh}var Oh,J4;function BN(){return J4||(J4=1,Oh=function(e,t,r){var i,o,s,a,l,c,u,h,g,b=t+1,p,v=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";b<r&&!e.isEmpty(b);b++)if(!(e.sCount[b]-e.blkIndent>3)){if(e.sCount[b]>=e.blkIndent&&(c=e.bMarks[b]+e.tShift[b],u=e.eMarks[b],c<u&&(g=e.src.charCodeAt(c),(g===45||g===61)&&(c=e.skipChars(c,g),c=e.skipSpaces(c),c>=u)))){h=g===61?1:2;break}if(!(e.sCount[b]<0)){for(o=!1,s=0,a=v.length;s<a;s++)if(v[s](e,b,r,!0)){o=!0;break}if(o)break}}return h?(i=e.getLines(t,b,e.blkIndent,!1).trim(),e.line=b+1,l=e.push("heading_open","h"+String(h),1),l.markup=String.fromCharCode(g),l.map=[t,e.line],l=e.push("inline","",0),l.content=i,l.map=[t,e.line-1],l.children=[],l=e.push("heading_close","h"+String(h),-1),l.markup=String.fromCharCode(g),e.parentType=p,!0):!1}),Oh}var Ih,ev;function PN(){return ev||(ev=1,Ih=function(e,t,r){var i,o,s,a,l,c,u=t+1,h=e.md.block.ruler.getRules("paragraph");for(c=e.parentType,e.parentType="paragraph";u<r&&!e.isEmpty(u);u++)if(!(e.sCount[u]-e.blkIndent>3)&&!(e.sCount[u]<0)){for(o=!1,s=0,a=h.length;s<a;s++)if(h[s](e,u,r,!0)){o=!0;break}if(o)break}return i=e.getLines(t,u,e.blkIndent,!1).trim(),e.line=u,l=e.push("paragraph_open","p",1),l.map=[t,e.line],l=e.push("inline","",0),l.content=i,l.map=[t,e.line],l.children=[],l=e.push("paragraph_close","p",-1),e.parentType=c,!0}),Ih}var Lh,tv;function FN(){if(tv)return Lh;tv=1;var n=vh(),e=yt().isSpace;function t(r,i,o,s){var a,l,c,u,h,g,b,p;for(this.src=r,this.md=i,this.env=o,this.tokens=s,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",l=this.src,p=!1,c=u=g=b=0,h=l.length;u<h;u++){if(a=l.charCodeAt(u),!p)if(e(a)){g++,a===9?b+=4-b%4:b++;continue}else p=!0;(a===10||u===h-1)&&(a!==10&&u++,this.bMarks.push(c),this.eMarks.push(u),this.tShift.push(g),this.sCount.push(b),this.bsCount.push(0),p=!1,g=0,b=0,c=u+1)}this.bMarks.push(l.length),this.eMarks.push(l.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}return t.prototype.push=function(r,i,o){var s=new n(r,i,o);return s.block=!0,o<0&&this.level--,s.level=this.level,o>0&&this.level++,this.tokens.push(s),s},t.prototype.isEmpty=function(i){return this.bMarks[i]+this.tShift[i]>=this.eMarks[i]},t.prototype.skipEmptyLines=function(i){for(var o=this.lineMax;i<o&&!(this.bMarks[i]+this.tShift[i]<this.eMarks[i]);i++);return i},t.prototype.skipSpaces=function(i){for(var o,s=this.src.length;i<s&&(o=this.src.charCodeAt(i),!!e(o));i++);return i},t.prototype.skipSpacesBack=function(i,o){if(i<=o)return i;for(;i>o;)if(!e(this.src.charCodeAt(--i)))return i+1;return i},t.prototype.skipChars=function(i,o){for(var s=this.src.length;i<s&&this.src.charCodeAt(i)===o;i++);return i},t.prototype.skipCharsBack=function(i,o,s){if(i<=s)return i;for(;i>s;)if(o!==this.src.charCodeAt(--i))return i+1;return i},t.prototype.getLines=function(i,o,s,a){var l,c,u,h,g,b,p,v=i;if(i>=o)return"";for(b=new Array(o-i),l=0;v<o;v++,l++){for(c=0,p=h=this.bMarks[v],v+1<o||a?g=this.eMarks[v]+1:g=this.eMarks[v];h<g&&c<s;){if(u=this.src.charCodeAt(h),e(u))u===9?c+=4-(c+this.bsCount[v])%4:c++;else if(h-p<this.tShift[v])c++;else break;h++}c>s?b[l]=new Array(c-s+1).join(" ")+this.src.slice(h,g):b[l]=this.src.slice(h,g)}return b.join("")},t.prototype.Token=n,Lh=t,Lh}var Bh,nv;function zN(){if(nv)return Bh;nv=1;var n=dh(),e=[["table",CN(),["paragraph","reference"]],["code",TN()],["fence",AN(),["paragraph","reference","blockquote","list"]],["blockquote",MN(),["paragraph","reference","blockquote","list"]],["hr",NN(),["paragraph","reference","blockquote","list"]],["list",DN(),["paragraph","reference","blockquote"]],["reference",RN()],["html_block",IN(),["paragraph","reference","blockquote"]],["heading",LN(),["paragraph","reference","blockquote"]],["lheading",BN()],["paragraph",PN()]];function t(){this.ruler=new n;for(var r=0;r<e.length;r++)this.ruler.push(e[r][0],e[r][1],{alt:(e[r][2]||[]).slice()})}return t.prototype.tokenize=function(r,i,o){for(var s,a,l,c=this.ruler.getRules(""),u=c.length,h=i,g=!1,b=r.md.options.maxNesting;h<o&&(r.line=h=r.skipEmptyLines(h),!(h>=o||r.sCount[h]<r.blkIndent));){if(r.level>=b){r.line=o;break}for(l=r.line,a=0;a<u;a++)if(s=c[a](r,h,o,!1),s){if(l>=r.line)throw new Error("block rule didn't increment state.line");break}if(!s)throw new Error("none of the block rules matched");r.tight=!g,r.isEmpty(r.line-1)&&(g=!0),h=r.line,h<o&&r.isEmpty(h)&&(g=!0,h++,r.line=h)}},t.prototype.parse=function(r,i,o,s){var a;r&&(a=new this.State(r,i,o,s),this.tokenize(a,a.line,a.lineMax))},t.prototype.State=FN(),Bh=t,Bh}var Ph,rv;function qN(){if(rv)return Ph;rv=1;function n(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}return Ph=function(t,r){for(var i=t.pos;i<t.posMax&&!n(t.src.charCodeAt(i));)i++;return i===t.pos?!1:(r||(t.pending+=t.src.slice(t.pos,i)),t.pos=i,!0)},Ph}var Fh,iv;function HN(){if(iv)return Fh;iv=1;var n=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;return Fh=function(t,r){var i,o,s,a,l,c,u,h;return!t.md.options.linkify||t.linkLevel>0||(i=t.pos,o=t.posMax,i+3>o)||t.src.charCodeAt(i)!==58||t.src.charCodeAt(i+1)!==47||t.src.charCodeAt(i+2)!==47||(s=t.pending.match(n),!s)||(a=s[1],l=t.md.linkify.matchAtStart(t.src.slice(i-a.length)),!l)||(c=l.url,c.length<=a.length)||(c=c.replace(/\*+$/,""),u=t.md.normalizeLink(c),!t.md.validateLink(u))?!1:(r||(t.pending=t.pending.slice(0,-a.length),h=t.push("link_open","a",1),h.attrs=[["href",u]],h.markup="linkify",h.info="auto",h=t.push("text","",0),h.content=t.md.normalizeLinkText(c),h=t.push("link_close","a",-1),h.markup="linkify",h.info="auto"),t.pos+=c.length-a.length,!0)},Fh}var zh,ov;function VN(){if(ov)return zh;ov=1;var n=yt().isSpace;return zh=function(t,r){var i,o,s,a=t.pos;if(t.src.charCodeAt(a)!==10)return!1;if(i=t.pending.length-1,o=t.posMax,!r)if(i>=0&&t.pending.charCodeAt(i)===32)if(i>=1&&t.pending.charCodeAt(i-1)===32){for(s=i-1;s>=1&&t.pending.charCodeAt(s-1)===32;)s--;t.pending=t.pending.slice(0,s),t.push("hardbreak","br",0)}else t.pending=t.pending.slice(0,-1),t.push("softbreak","br",0);else t.push("softbreak","br",0);for(a++;a<o&&n(t.src.charCodeAt(a));)a++;return t.pos=a,!0},zh}var qh,sv;function UN(){if(sv)return qh;sv=1;for(var n=yt().isSpace,e=[],t=0;t<256;t++)e.push(0);return"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(r){e[r.charCodeAt(0)]=1}),qh=function(i,o){var s,a,l,c,u,h=i.pos,g=i.posMax;if(i.src.charCodeAt(h)!==92||(h++,h>=g))return!1;if(s=i.src.charCodeAt(h),s===10){for(o||i.push("hardbreak","br",0),h++;h<g&&(s=i.src.charCodeAt(h),!!n(s));)h++;return i.pos=h,!0}return c=i.src[h],s>=55296&&s<=56319&&h+1<g&&(a=i.src.charCodeAt(h+1),a>=56320&&a<=57343&&(c+=i.src[h+1],h++)),l="\\"+c,o||(u=i.push("text_special","",0),s<256&&e[s]!==0?u.content=c:u.content=l,u.markup=l,u.info="escape"),i.pos=h+1,!0},qh}var Hh,av;function GN(){return av||(av=1,Hh=function(e,t){var r,i,o,s,a,l,c,u,h=e.pos,g=e.src.charCodeAt(h);if(g!==96)return!1;for(r=h,h++,i=e.posMax;h<i&&e.src.charCodeAt(h)===96;)h++;if(o=e.src.slice(r,h),c=o.length,e.backticksScanned&&(e.backticks[c]||0)<=r)return t||(e.pending+=o),e.pos+=c,!0;for(l=h;(a=e.src.indexOf("`",l))!==-1;){for(l=a+1;l<i&&e.src.charCodeAt(l)===96;)l++;if(u=l-a,u===c)return t||(s=e.push("code_inline","code",0),s.markup=o,s.content=e.src.slice(h,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=l,!0;e.backticks[u]=a}return e.backticksScanned=!0,t||(e.pending+=o),e.pos+=c,!0}),Hh}var Nc={},lv;function cv(){if(lv)return Nc;lv=1,Nc.tokenize=function(t,r){var i,o,s,a,l,c=t.pos,u=t.src.charCodeAt(c);if(r||u!==126||(o=t.scanDelims(t.pos,!0),a=o.length,l=String.fromCharCode(u),a<2))return!1;for(a%2&&(s=t.push("text","",0),s.content=l,a--),i=0;i<a;i+=2)s=t.push("text","",0),s.content=l+l,t.delimiters.push({marker:u,length:0,token:t.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return t.pos+=o.length,!0};function n(e,t){var r,i,o,s,a,l=[],c=t.length;for(r=0;r<c;r++)o=t[r],o.marker===126&&o.end!==-1&&(s=t[o.end],a=e.tokens[o.token],a.type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",a=e.tokens[s.token],a.type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="",e.tokens[s.token-1].type==="text"&&e.tokens[s.token-1].content==="~"&&l.push(s.token-1));for(;l.length;){for(r=l.pop(),i=r+1;i<e.tokens.length&&e.tokens[i].type==="s_close";)i++;i--,r!==i&&(a=e.tokens[i],e.tokens[i]=e.tokens[r],e.tokens[r]=a)}}return Nc.postProcess=function(t){var r,i=t.tokens_meta,o=t.tokens_meta.length;for(n(t,t.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&n(t,i[r].delimiters)},Nc}var Dc={},uv;function dv(){if(uv)return Dc;uv=1,Dc.tokenize=function(t,r){var i,o,s,a=t.pos,l=t.src.charCodeAt(a);if(r||l!==95&&l!==42)return!1;for(o=t.scanDelims(t.pos,l===42),i=0;i<o.length;i++)s=t.push("text","",0),s.content=String.fromCharCode(l),t.delimiters.push({marker:l,length:o.length,token:t.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return t.pos+=o.length,!0};function n(e,t){var r,i,o,s,a,l,c=t.length;for(r=c-1;r>=0;r--)i=t[r],!(i.marker!==95&&i.marker!==42)&&i.end!==-1&&(o=t[i.end],l=r>0&&t[r-1].end===i.end+1&&t[r-1].marker===i.marker&&t[r-1].token===i.token-1&&t[i.end+1].token===o.token+1,a=String.fromCharCode(i.marker),s=e.tokens[i.token],s.type=l?"strong_open":"em_open",s.tag=l?"strong":"em",s.nesting=1,s.markup=l?a+a:a,s.content="",s=e.tokens[o.token],s.type=l?"strong_close":"em_close",s.tag=l?"strong":"em",s.nesting=-1,s.markup=l?a+a:a,s.content="",l&&(e.tokens[t[r-1].token].content="",e.tokens[t[i.end+1].token].content="",r--))}return Dc.postProcess=function(t){var r,i=t.tokens_meta,o=t.tokens_meta.length;for(n(t,t.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&n(t,i[r].delimiters)},Dc}var Vh,hv;function $N(){if(hv)return Vh;hv=1;var n=yt().normalizeReference,e=yt().isSpace;return Vh=function(r,i){var o,s,a,l,c,u,h,g,b,p="",v="",w=r.pos,S=r.posMax,C=r.pos,E=!0;if(r.src.charCodeAt(r.pos)!==91||(c=r.pos+1,l=r.md.helpers.parseLinkLabel(r,r.pos,!0),l<0))return!1;if(u=l+1,u<S&&r.src.charCodeAt(u)===40){for(E=!1,u++;u<S&&(s=r.src.charCodeAt(u),!(!e(s)&&s!==10));u++);if(u>=S)return!1;if(C=u,h=r.md.helpers.parseLinkDestination(r.src,u,r.posMax),h.ok){for(p=r.md.normalizeLink(h.str),r.md.validateLink(p)?u=h.pos:p="",C=u;u<S&&(s=r.src.charCodeAt(u),!(!e(s)&&s!==10));u++);if(h=r.md.helpers.parseLinkTitle(r.src,u,r.posMax),u<S&&C!==u&&h.ok)for(v=h.str,u=h.pos;u<S&&(s=r.src.charCodeAt(u),!(!e(s)&&s!==10));u++);}(u>=S||r.src.charCodeAt(u)!==41)&&(E=!0),u++}if(E){if(typeof r.env.references>"u")return!1;if(u<S&&r.src.charCodeAt(u)===91?(C=u+1,u=r.md.helpers.parseLinkLabel(r,u),u>=0?a=r.src.slice(C,u++):u=l+1):u=l+1,a||(a=r.src.slice(c,l)),g=r.env.references[n(a)],!g)return r.pos=w,!1;p=g.href,v=g.title}return i||(r.pos=c,r.posMax=l,b=r.push("link_open","a",1),b.attrs=o=[["href",p]],v&&o.push(["title",v]),r.linkLevel++,r.md.inline.tokenize(r),r.linkLevel--,b=r.push("link_close","a",-1)),r.pos=u,r.posMax=S,!0},Vh}var Uh,fv;function WN(){if(fv)return Uh;fv=1;var n=yt().normalizeReference,e=yt().isSpace;return Uh=function(r,i){var o,s,a,l,c,u,h,g,b,p,v,w,S,C="",E=r.pos,A=r.posMax;if(r.src.charCodeAt(r.pos)!==33||r.src.charCodeAt(r.pos+1)!==91||(u=r.pos+2,c=r.md.helpers.parseLinkLabel(r,r.pos+1,!1),c<0))return!1;if(h=c+1,h<A&&r.src.charCodeAt(h)===40){for(h++;h<A&&(s=r.src.charCodeAt(h),!(!e(s)&&s!==10));h++);if(h>=A)return!1;for(S=h,b=r.md.helpers.parseLinkDestination(r.src,h,r.posMax),b.ok&&(C=r.md.normalizeLink(b.str),r.md.validateLink(C)?h=b.pos:C=""),S=h;h<A&&(s=r.src.charCodeAt(h),!(!e(s)&&s!==10));h++);if(b=r.md.helpers.parseLinkTitle(r.src,h,r.posMax),h<A&&S!==h&&b.ok)for(p=b.str,h=b.pos;h<A&&(s=r.src.charCodeAt(h),!(!e(s)&&s!==10));h++);else p="";if(h>=A||r.src.charCodeAt(h)!==41)return r.pos=E,!1;h++}else{if(typeof r.env.references>"u")return!1;if(h<A&&r.src.charCodeAt(h)===91?(S=h+1,h=r.md.helpers.parseLinkLabel(r,h),h>=0?l=r.src.slice(S,h++):h=c+1):h=c+1,l||(l=r.src.slice(u,c)),g=r.env.references[n(l)],!g)return r.pos=E,!1;C=g.href,p=g.title}return i||(a=r.src.slice(u,c),r.md.inline.parse(a,r.md,r.env,w=[]),v=r.push("image","img",0),v.attrs=o=[["src",C],["alt",""]],v.children=w,v.content=a,p&&o.push(["title",p])),r.pos=h,r.posMax=A,!0},Uh}var Gh,pv;function KN(){if(pv)return Gh;pv=1;var n=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,e=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/;return Gh=function(r,i){var o,s,a,l,c,u,h=r.pos;if(r.src.charCodeAt(h)!==60)return!1;for(c=r.pos,u=r.posMax;;){if(++h>=u||(l=r.src.charCodeAt(h),l===60))return!1;if(l===62)break}return o=r.src.slice(c+1,h),e.test(o)?(s=r.md.normalizeLink(o),r.md.validateLink(s)?(i||(a=r.push("link_open","a",1),a.attrs=[["href",s]],a.markup="autolink",a.info="auto",a=r.push("text","",0),a.content=r.md.normalizeLinkText(o),a=r.push("link_close","a",-1),a.markup="autolink",a.info="auto"),r.pos+=o.length+2,!0):!1):n.test(o)?(s=r.md.normalizeLink("mailto:"+o),r.md.validateLink(s)?(i||(a=r.push("link_open","a",1),a.attrs=[["href",s]],a.markup="autolink",a.info="auto",a=r.push("text","",0),a.content=r.md.normalizeLinkText(o),a=r.push("link_close","a",-1),a.markup="autolink",a.info="auto"),r.pos+=o.length+2,!0):!1):!1},Gh}var $h,mv;function jN(){if(mv)return $h;mv=1;var n=Y4().HTML_TAG_RE;function e(i){return/^<a[>\s]/i.test(i)}function t(i){return/^<\/a\s*>/i.test(i)}function r(i){var o=i|32;return o>=97&&o<=122}return $h=function(o,s){var a,l,c,u,h=o.pos;return!o.md.options.html||(c=o.posMax,o.src.charCodeAt(h)!==60||h+2>=c)||(a=o.src.charCodeAt(h+1),a!==33&&a!==63&&a!==47&&!r(a))||(l=o.src.slice(h).match(n),!l)?!1:(s||(u=o.push("html_inline","",0),u.content=l[0],e(u.content)&&o.linkLevel++,t(u.content)&&o.linkLevel--),o.pos+=l[0].length,!0)},$h}var Wh,gv;function QN(){if(gv)return Wh;gv=1;var n=l4(),e=yt().has,t=yt().isValidEntityCode,r=yt().fromCodePoint,i=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,o=/^&([a-z][a-z0-9]{1,31});/i;return Wh=function(a,l){var c,u,h,g,b=a.pos,p=a.posMax;if(a.src.charCodeAt(b)!==38||b+1>=p)return!1;if(c=a.src.charCodeAt(b+1),c===35){if(h=a.src.slice(b).match(i),h)return l||(u=h[1][0].toLowerCase()==="x"?parseInt(h[1].slice(1),16):parseInt(h[1],10),g=a.push("text_special","",0),g.content=t(u)?r(u):r(65533),g.markup=h[0],g.info="entity"),a.pos+=h[0].length,!0}else if(h=a.src.slice(b).match(o),h&&e(n,h[1]))return l||(g=a.push("text_special","",0),g.content=n[h[1]],g.markup=h[0],g.info="entity"),a.pos+=h[0].length,!0;return!1},Wh}var Kh,bv;function YN(){if(bv)return Kh;bv=1;function n(e){var t,r,i,o,s,a,l,c,u={},h=e.length;if(h){var g=0,b=-2,p=[];for(t=0;t<h;t++)if(i=e[t],p.push(0),(e[g].marker!==i.marker||b!==i.token-1)&&(g=t),b=i.token,i.length=i.length||0,!!i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),s=u[i.marker][(i.open?3:0)+i.length%3],r=g-p[g]-1,a=r;r>s;r-=p[r]+1)if(o=e[r],o.marker===i.marker&&o.open&&o.end<0&&(l=!1,(o.close||i.open)&&(o.length+i.length)%3===0&&(o.length%3!==0||i.length%3!==0)&&(l=!0),!l)){c=r>0&&!e[r-1].open?p[r-1]+1:0,p[t]=t-r+c,p[r]=c,i.open=!1,o.end=t,o.close=!1,a=-1,b=-2;break}a!==-1&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=a)}}}return Kh=function(t){var r,i=t.tokens_meta,o=t.tokens_meta.length;for(n(t.delimiters),r=0;r<o;r++)i[r]&&i[r].delimiters&&n(i[r].delimiters)},Kh}var jh,_v;function ZN(){return _v||(_v=1,jh=function(e){var t,r,i=0,o=e.tokens,s=e.tokens.length;for(t=r=0;t<s;t++)o[t].nesting<0&&i--,o[t].level=i,o[t].nesting>0&&i++,o[t].type==="text"&&t+1<s&&o[t+1].type==="text"?o[t+1].content=o[t].content+o[t+1].content:(t!==r&&(o[r]=o[t]),r++);t!==r&&(o.length=r)}),jh}var Qh,yv;function XN(){if(yv)return Qh;yv=1;var n=vh(),e=yt().isWhiteSpace,t=yt().isPunctChar,r=yt().isMdAsciiPunct;function i(o,s,a,l){this.src=o,this.env=a,this.md=s,this.tokens=l,this.tokens_meta=Array(l.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}return i.prototype.pushPending=function(){var o=new n("text","",0);return o.content=this.pending,o.level=this.pendingLevel,this.tokens.push(o),this.pending="",o},i.prototype.push=function(o,s,a){this.pending&&this.pushPending();var l=new n(o,s,a),c=null;return a<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),l.level=this.level,a>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],c={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(c),l},i.prototype.scanDelims=function(o,s){var a=o,l,c,u,h,g,b,p,v,w,S=!0,C=!0,E=this.posMax,A=this.src.charCodeAt(o);for(l=o>0?this.src.charCodeAt(o-1):32;a<E&&this.src.charCodeAt(a)===A;)a++;return u=a-o,c=a<E?this.src.charCodeAt(a):32,p=r(l)||t(String.fromCharCode(l)),w=r(c)||t(String.fromCharCode(c)),b=e(l),v=e(c),v?S=!1:w&&(b||p||(S=!1)),b?C=!1:p&&(v||w||(C=!1)),s?(h=S,g=C):(h=S&&(!C||p),g=C&&(!S||w)),{can_open:h,can_close:g,length:u}},i.prototype.Token=n,Qh=i,Qh}var Yh,vv;function JN(){if(vv)return Yh;vv=1;var n=dh(),e=[["text",qN()],["linkify",HN()],["newline",VN()],["escape",UN()],["backticks",GN()],["strikethrough",cv().tokenize],["emphasis",dv().tokenize],["link",$N()],["image",WN()],["autolink",KN()],["html_inline",jN()],["entity",QN()]],t=[["balance_pairs",YN()],["strikethrough",cv().postProcess],["emphasis",dv().postProcess],["fragments_join",ZN()]];function r(){var i;for(this.ruler=new n,i=0;i<e.length;i++)this.ruler.push(e[i][0],e[i][1]);for(this.ruler2=new n,i=0;i<t.length;i++)this.ruler2.push(t[i][0],t[i][1])}return r.prototype.skipToken=function(i){var o,s,a=i.pos,l=this.ruler.getRules(""),c=l.length,u=i.md.options.maxNesting,h=i.cache;if(typeof h[a]<"u"){i.pos=h[a];return}if(i.level<u){for(s=0;s<c;s++)if(i.level++,o=l[s](i,!0),i.level--,o){if(a>=i.pos)throw new Error("inline rule didn't increment state.pos");break}}else i.pos=i.posMax;o||i.pos++,h[a]=i.pos},r.prototype.tokenize=function(i){for(var o,s,a,l=this.ruler.getRules(""),c=l.length,u=i.posMax,h=i.md.options.maxNesting;i.pos<u;){if(a=i.pos,i.level<h){for(s=0;s<c;s++)if(o=l[s](i,!1),o){if(a>=i.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(i.pos>=u)break;continue}i.pending+=i.src[i.pos++]}i.pending&&i.pushPending()},r.prototype.parse=function(i,o,s,a){var l,c,u,h=new this.State(i,o,s,a);for(this.tokenize(h),c=this.ruler2.getRules(""),u=c.length,l=0;l<u;l++)c[l](h)},r.prototype.State=XN(),Yh=r,Yh}var Zh,wv;function eD(){return wv||(wv=1,Zh=function(n){var e={};n=n||{},e.src_Any=b4().source,e.src_Cc=y4().source,e.src_Z=x4().source,e.src_P=Zd().source,e.src_ZPCc=[e.src_Z,e.src_P,e.src_Cc].join("|"),e.src_ZCc=[e.src_Z,e.src_Cc].join("|");var t="[><|]";return e.src_pseudo_letter="(?:(?!"+t+"|"+e.src_ZPCc+")"+e.src_Any+")",e.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",e.src_auth="(?:(?:(?!"+e.src_ZCc+"|[@/\\[\\]()]).)+@)?",e.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",e.src_host_terminator="(?=$|"+t+"|"+e.src_ZPCc+")(?!"+(n["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+e.src_ZPCc+"))",e.src_path="(?:[/?#](?:(?!"+e.src_ZCc+"|"+t+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+e.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+e.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+e.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+e.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+e.src_ZCc+"|[']).)+\\'|\\'(?="+e.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+e.src_ZCc+"|[.]|$)|"+(n["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+e.src_ZCc+"|$)|;(?!"+e.src_ZCc+"|$)|\\!+(?!"+e.src_ZCc+"|[!]|$)|\\?(?!"+e.src_ZCc+"|[?]|$))+|\\/)?",e.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',e.src_xn="xn--[a-z0-9\\-]{1,59}",e.src_domain_root="(?:"+e.src_xn+"|"+e.src_pseudo_letter+"{1,63})",e.src_domain="(?:"+e.src_xn+"|(?:"+e.src_pseudo_letter+")|(?:"+e.src_pseudo_letter+"(?:-|"+e.src_pseudo_letter+"){0,61}"+e.src_pseudo_letter+"))",e.src_host="(?:(?:(?:(?:"+e.src_domain+")\\.)*"+e.src_domain+"))",e.tpl_host_fuzzy="(?:"+e.src_ip4+"|(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%)))",e.tpl_host_no_ip_fuzzy="(?:(?:(?:"+e.src_domain+")\\.)+(?:%TLDS%))",e.src_host_strict=e.src_host+e.src_host_terminator,e.tpl_host_fuzzy_strict=e.tpl_host_fuzzy+e.src_host_terminator,e.src_host_port_strict=e.src_host+e.src_port+e.src_host_terminator,e.tpl_host_port_fuzzy_strict=e.tpl_host_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_port_no_ip_fuzzy_strict=e.tpl_host_no_ip_fuzzy+e.src_port+e.src_host_terminator,e.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+e.src_ZPCc+"|>|$))",e.tpl_email_fuzzy="(^|"+t+'|"|\\(|'+e.src_ZCc+")("+e.src_email_name+"@"+e.tpl_host_fuzzy_strict+")",e.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_fuzzy_strict+e.src_path+")",e.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+e.src_ZPCc+"))((?![$+<=>^`||])"+e.tpl_host_port_no_ip_fuzzy_strict+e.src_path+")",e}),Zh}var Xh,xv;function tD(){if(xv)return Xh;xv=1;function n(E){var A=Array.prototype.slice.call(arguments,1);return A.forEach(function(R){R&&Object.keys(R).forEach(function(O){E[O]=R[O]})}),E}function e(E){return Object.prototype.toString.call(E)}function t(E){return e(E)==="[object String]"}function r(E){return e(E)==="[object Object]"}function i(E){return e(E)==="[object RegExp]"}function o(E){return e(E)==="[object Function]"}function s(E){return E.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var a={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function l(E){return Object.keys(E||{}).reduce(function(A,R){return A||a.hasOwnProperty(R)},!1)}var c={"http:":{validate:function(E,A,R){var O=E.slice(A);return R.re.http||(R.re.http=new RegExp("^\\/\\/"+R.re.src_auth+R.re.src_host_port_strict+R.re.src_path,"i")),R.re.http.test(O)?O.match(R.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(E,A,R){var O=E.slice(A);return R.re.no_http||(R.re.no_http=new RegExp("^"+R.re.src_auth+"(?:localhost|(?:(?:"+R.re.src_domain+")\\.)+"+R.re.src_domain_root+")"+R.re.src_port+R.re.src_host_terminator+R.re.src_path,"i")),R.re.no_http.test(O)?A>=3&&E[A-3]===":"||A>=3&&E[A-3]==="/"?0:O.match(R.re.no_http)[0].length:0}},"mailto:":{validate:function(E,A,R){var O=E.slice(A);return R.re.mailto||(R.re.mailto=new RegExp("^"+R.re.src_email_name+"@"+R.re.src_host_strict,"i")),R.re.mailto.test(O)?O.match(R.re.mailto)[0].length:0}}},u="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",h="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function g(E){E.__index__=-1,E.__text_cache__=""}function b(E){return function(A,R){var O=A.slice(R);return E.test(O)?O.match(E)[0].length:0}}function p(){return function(E,A){A.normalize(E)}}function v(E){var A=E.re=eD()(E.__opts__),R=E.__tlds__.slice();E.onCompile(),E.__tlds_replaced__||R.push(u),R.push(A.src_xn),A.src_tlds=R.join("|");function O(F){return F.replace("%TLDS%",A.src_tlds)}A.email_fuzzy=RegExp(O(A.tpl_email_fuzzy),"i"),A.link_fuzzy=RegExp(O(A.tpl_link_fuzzy),"i"),A.link_no_ip_fuzzy=RegExp(O(A.tpl_link_no_ip_fuzzy),"i"),A.host_fuzzy_test=RegExp(O(A.tpl_host_fuzzy_test),"i");var H=[];E.__compiled__={};function q(F,Y){throw new Error('(LinkifyIt) Invalid schema "'+F+'": '+Y)}Object.keys(E.__schemas__).forEach(function(F){var Y=E.__schemas__[F];if(Y!==null){var X={validate:null,link:null};if(E.__compiled__[F]=X,r(Y)){i(Y.validate)?X.validate=b(Y.validate):o(Y.validate)?X.validate=Y.validate:q(F,Y),o(Y.normalize)?X.normalize=Y.normalize:Y.normalize?q(F,Y):X.normalize=p();return}if(t(Y)){H.push(F);return}q(F,Y)}}),H.forEach(function(F){E.__compiled__[E.__schemas__[F]]&&(E.__compiled__[F].validate=E.__compiled__[E.__schemas__[F]].validate,E.__compiled__[F].normalize=E.__compiled__[E.__schemas__[F]].normalize)}),E.__compiled__[""]={validate:null,normalize:p()};var U=Object.keys(E.__compiled__).filter(function(F){return F.length>0&&E.__compiled__[F]}).map(s).join("|");E.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+A.src_ZPCc+"))("+U+")","i"),E.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+A.src_ZPCc+"))("+U+")","ig"),E.re.schema_at_start=RegExp("^"+E.re.schema_search.source,"i"),E.re.pretest=RegExp("("+E.re.schema_test.source+")|("+E.re.host_fuzzy_test.source+")|@","i"),g(E)}function w(E,A){var R=E.__index__,O=E.__last_index__,H=E.__text_cache__.slice(R,O);this.schema=E.__schema__.toLowerCase(),this.index=R+A,this.lastIndex=O+A,this.raw=H,this.text=H,this.url=H}function S(E,A){var R=new w(E,A);return E.__compiled__[R.schema].normalize(R,E),R}function C(E,A){if(!(this instanceof C))return new C(E,A);A||l(E)&&(A=E,E={}),this.__opts__=n({},a,A),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=n({},c,E),this.__compiled__={},this.__tlds__=h,this.__tlds_replaced__=!1,this.re={},v(this)}return C.prototype.add=function(A,R){return this.__schemas__[A]=R,v(this),this},C.prototype.set=function(A){return this.__opts__=n(this.__opts__,A),this},C.prototype.test=function(A){if(this.__text_cache__=A,this.__index__=-1,!A.length)return!1;var R,O,H,q,U,F,Y,X,oe;if(this.re.schema_test.test(A)){for(Y=this.re.schema_search,Y.lastIndex=0;(R=Y.exec(A))!==null;)if(q=this.testSchemaAt(A,R[2],Y.lastIndex),q){this.__schema__=R[2],this.__index__=R.index+R[1].length,this.__last_index__=R.index+R[0].length+q;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(X=A.search(this.re.host_fuzzy_test),X>=0&&(this.__index__<0||X<this.__index__)&&(O=A.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(U=O.index+O[1].length,(this.__index__<0||U<this.__index__)&&(this.__schema__="",this.__index__=U,this.__last_index__=O.index+O[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(oe=A.indexOf("@"),oe>=0&&(H=A.match(this.re.email_fuzzy))!==null&&(U=H.index+H[1].length,F=H.index+H[0].length,(this.__index__<0||U<this.__index__||U===this.__index__&&F>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=U,this.__last_index__=F))),this.__index__>=0},C.prototype.pretest=function(A){return this.re.pretest.test(A)},C.prototype.testSchemaAt=function(A,R,O){return this.__compiled__[R.toLowerCase()]?this.__compiled__[R.toLowerCase()].validate(A,O,this):0},C.prototype.match=function(A){var R=0,O=[];this.__index__>=0&&this.__text_cache__===A&&(O.push(S(this,R)),R=this.__last_index__);for(var H=R?A.slice(R):A;this.test(H);)O.push(S(this,R)),H=H.slice(this.__last_index__),R+=this.__last_index__;return O.length?O:null},C.prototype.matchAtStart=function(A){if(this.__text_cache__=A,this.__index__=-1,!A.length)return null;var R=this.re.schema_at_start.exec(A);if(!R)return null;var O=this.testSchemaAt(A,R[2],R[0].length);return O?(this.__schema__=R[2],this.__index__=R.index+R[1].length,this.__last_index__=R.index+R[0].length+O,S(this,0)):null},C.prototype.tlds=function(A,R){return A=Array.isArray(A)?A:[A],R?(this.__tlds__=this.__tlds__.concat(A).sort().filter(function(O,H,q){return O!==q[H-1]}).reverse(),v(this),this):(this.__tlds__=A.slice(),this.__tlds_replaced__=!0,v(this),this)},C.prototype.normalize=function(A){A.schema||(A.url="http://"+A.url),A.schema==="mailto:"&&!/^mailto:/i.test(A.url)&&(A.url="mailto:"+A.url)},C.prototype.onCompile=function(){},Xh=C,Xh}var fa={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */var nD=fa.exports,kv;function rD(){return kv||(kv=1,function(n,e){(function(t){var r=e&&!e.nodeType&&e,i=n&&!n.nodeType&&n,o=typeof r4=="object"&&r4;(o.global===o||o.window===o||o.self===o)&&(t=o);var s,a=2147483647,l=36,c=1,u=26,h=38,g=700,b=72,p=128,v="-",w=/^xn--/,S=/[^\x20-\x7E]/,C=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},A=l-c,R=Math.floor,O=String.fromCharCode,H;function q(J){throw new RangeError(E[J])}function U(J,ue){for(var fe=J.length,ke=[];fe--;)ke[fe]=ue(J[fe]);return ke}function F(J,ue){var fe=J.split("@"),ke="";fe.length>1&&(ke=fe[0]+"@",J=fe[1]),J=J.replace(C,".");var Te=J.split("."),Ke=U(Te,ue).join(".");return ke+Ke}function Y(J){for(var ue=[],fe=0,ke=J.length,Te,Ke;fe<ke;)Te=J.charCodeAt(fe++),Te>=55296&&Te<=56319&&fe<ke?(Ke=J.charCodeAt(fe++),(Ke&64512)==56320?ue.push(((Te&1023)<<10)+(Ke&1023)+65536):(ue.push(Te),fe--)):ue.push(Te);return ue}function X(J){return U(J,function(ue){var fe="";return ue>65535&&(ue-=65536,fe+=O(ue>>>10&1023|55296),ue=56320|ue&1023),fe+=O(ue),fe}).join("")}function oe(J){return J-48<10?J-22:J-65<26?J-65:J-97<26?J-97:l}function K(J,ue){return J+22+75*(J<26)-((ue!=0)<<5)}function ee(J,ue,fe){var ke=0;for(J=fe?R(J/g):J>>1,J+=R(J/ue);J>A*u>>1;ke+=l)J=R(J/A);return R(ke+(A+1)*J/(J+h))}function $(J){var ue=[],fe=J.length,ke,Te=0,Ke=p,Qe=b,Ze,ot,Be,dt,tt,at,ht,it,ct;for(Ze=J.lastIndexOf(v),Ze<0&&(Ze=0),ot=0;ot<Ze;++ot)J.charCodeAt(ot)>=128&&q("not-basic"),ue.push(J.charCodeAt(ot));for(Be=Ze>0?Ze+1:0;Be<fe;){for(dt=Te,tt=1,at=l;Be>=fe&&q("invalid-input"),ht=oe(J.charCodeAt(Be++)),(ht>=l||ht>R((a-Te)/tt))&&q("overflow"),Te+=ht*tt,it=at<=Qe?c:at>=Qe+u?u:at-Qe,!(ht<it);at+=l)ct=l-it,tt>R(a/ct)&&q("overflow"),tt*=ct;ke=ue.length+1,Qe=ee(Te-dt,ke,dt==0),R(Te/ke)>a-Ke&&q("overflow"),Ke+=R(Te/ke),Te%=ke,ue.splice(Te++,0,Ke)}return X(ue)}function Q(J){var ue,fe,ke,Te,Ke,Qe,Ze,ot,Be,dt,tt,at=[],ht,it,ct,Et;for(J=Y(J),ht=J.length,ue=p,fe=0,Ke=b,Qe=0;Qe<ht;++Qe)tt=J[Qe],tt<128&&at.push(O(tt));for(ke=Te=at.length,Te&&at.push(v);ke<ht;){for(Ze=a,Qe=0;Qe<ht;++Qe)tt=J[Qe],tt>=ue&&tt<Ze&&(Ze=tt);for(it=ke+1,Ze-ue>R((a-fe)/it)&&q("overflow"),fe+=(Ze-ue)*it,ue=Ze,Qe=0;Qe<ht;++Qe)if(tt=J[Qe],tt<ue&&++fe>a&&q("overflow"),tt==ue){for(ot=fe,Be=l;dt=Be<=Ke?c:Be>=Ke+u?u:Be-Ke,!(ot<dt);Be+=l)Et=ot-dt,ct=l-dt,at.push(O(K(dt+Et%ct,0))),ot=R(Et/ct);at.push(O(K(ot,0))),Ke=ee(fe,it,ke==Te),fe=0,++ke}++fe,++ue}return at.join("")}function ie(J){return F(J,function(ue){return w.test(ue)?$(ue.slice(4).toLowerCase()):ue})}function Z(J){return F(J,function(ue){return S.test(ue)?"xn--"+Q(ue):ue})}if(s={version:"1.4.1",ucs2:{decode:Y,encode:X},decode:$,encode:Q,toASCII:Z,toUnicode:ie},r&&i)if(n.exports==r)i.exports=s;else for(H in s)s.hasOwnProperty(H)&&(r[H]=s[H]);else t.punycode=s})(nD)}(fa,fa.exports)),fa.exports}var Jh,Sv;function iD(){return Sv||(Sv=1,Jh={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}}),Jh}var ef,Ev;function oD(){return Ev||(Ev=1,ef={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}}),ef}var tf,Cv;function sD(){return Cv||(Cv=1,tf={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}),tf}var nf,Tv;function aD(){if(Tv)return nf;Tv=1;var n=yt(),e=mN(),t=gN(),r=EN(),i=zN(),o=JN(),s=tD(),a=m4(),l=rD(),c={default:iD(),zero:oD(),commonmark:sD()},u=/^(vbscript|javascript|file|data):/,h=/^data:image\/(gif|png|jpeg|webp);/;function g(S){var C=S.trim().toLowerCase();return u.test(C)?!!h.test(C):!0}var b=["http:","https:","mailto:"];function p(S){var C=a.parse(S,!0);if(C.hostname&&(!C.protocol||b.indexOf(C.protocol)>=0))try{C.hostname=l.toASCII(C.hostname)}catch{}return a.encode(a.format(C))}function v(S){var C=a.parse(S,!0);if(C.hostname&&(!C.protocol||b.indexOf(C.protocol)>=0))try{C.hostname=l.toUnicode(C.hostname)}catch{}return a.decode(a.format(C),a.decode.defaultChars+"%")}function w(S,C){if(!(this instanceof w))return new w(S,C);C||n.isString(S)||(C=S||{},S="default"),this.inline=new o,this.block=new i,this.core=new r,this.renderer=new t,this.linkify=new s,this.validateLink=g,this.normalizeLink=p,this.normalizeLinkText=v,this.utils=n,this.helpers=n.assign({},e),this.options={},this.configure(S),C&&this.set(C)}return w.prototype.set=function(S){return n.assign(this.options,S),this},w.prototype.configure=function(S){var C=this,E;if(n.isString(S)&&(E=S,S=c[E],!S))throw new Error('Wrong `markdown-it` preset "'+E+'", check name');if(!S)throw new Error("Wrong `markdown-it` preset, can't be empty");return S.options&&C.set(S.options),S.components&&Object.keys(S.components).forEach(function(A){S.components[A].rules&&C[A].ruler.enableOnly(S.components[A].rules),S.components[A].rules2&&C[A].ruler2.enableOnly(S.components[A].rules2)}),this},w.prototype.enable=function(S,C){var E=[];Array.isArray(S)||(S=[S]),["core","block","inline"].forEach(function(R){E=E.concat(this[R].ruler.enable(S,!0))},this),E=E.concat(this.inline.ruler2.enable(S,!0));var A=S.filter(function(R){return E.indexOf(R)<0});if(A.length&&!C)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+A);return this},w.prototype.disable=function(S,C){var E=[];Array.isArray(S)||(S=[S]),["core","block","inline"].forEach(function(R){E=E.concat(this[R].ruler.disable(S,!0))},this),E=E.concat(this.inline.ruler2.disable(S,!0));var A=S.filter(function(R){return E.indexOf(R)<0});if(A.length&&!C)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+A);return this},w.prototype.use=function(S){var C=[this].concat(Array.prototype.slice.call(arguments,1));return S.apply(S,C),this},w.prototype.parse=function(S,C){if(typeof S!="string")throw new Error("Input data should be a String");var E=new this.core.State(S,this,C);return this.core.process(E),E.tokens},w.prototype.render=function(S,C){return C=C||{},this.renderer.render(this.parse(S,C),this.options,C)},w.prototype.parseInline=function(S,C){var E=new this.core.State(S,this,C);return E.inlineMode=!0,this.core.process(E),E.tokens},w.prototype.renderInline=function(S,C){return C=C||{},this.renderer.render(this.parseInline(S,C),this.options,C)},nf=w,nf}var rf,Av;function lD(){return Av||(Av=1,rf=aD()),rf}var cD=lD();const uD=Nr(cD);var of,Mv;function Ai(){if(Mv)return of;Mv=1;function n(e,t,r){var i="KaTeX parse error: "+e;if(t!==void 0&&r!==void 0){i+=" at position "+r+": ";var o=t._input;o=o.slice(0,r)+"̲"+o.slice(r);var s=Math.max(0,r-15),a=r+15;i+=o.slice(s,a)}var l=new Error(i);return l.name="ParseError",l.__proto__=n.prototype,l.position=r,l}return n.prototype.__proto__=Error.prototype,of=n,of}var sf,Nv;function Dv(){if(Nv)return sf;Nv=1;function n(t,r){return t===void 0?r:t}function e(t){t=t||{},this.displayMode=n(t.displayMode,!1),this.throwOnError=n(t.throwOnError,!0),this.errorColor=n(t.errorColor,"#cc0000")}return sf=e,sf}var af,Rv;function Rc(){if(Rv)return af;Rv=1;function n(S,C,E,A){this.id=S,this.size=C,this.cramped=A,this.sizeMultiplier=E}n.prototype.sup=function(){return h[g[this.id]]},n.prototype.sub=function(){return h[b[this.id]]},n.prototype.fracNum=function(){return h[p[this.id]]},n.prototype.fracDen=function(){return h[v[this.id]]},n.prototype.cramp=function(){return h[w[this.id]]},n.prototype.cls=function(){return c[this.size]+(this.cramped?" cramped":" uncramped")},n.prototype.reset=function(){return u[this.size]};var e=0,t=1,r=2,i=3,o=4,s=5,a=6,l=7,c=["displaystyle textstyle","textstyle","scriptstyle","scriptscriptstyle"],u=["reset-textstyle","reset-textstyle","reset-scriptstyle","reset-scriptscriptstyle"],h=[new n(e,0,1,!1),new n(t,0,1,!0),new n(r,1,1,!1),new n(i,1,1,!0),new n(o,2,.7,!1),new n(s,2,.7,!0),new n(a,3,.5,!1),new n(l,3,.5,!0)],g=[o,s,o,s,a,l,a,l],b=[s,s,s,s,l,l,l,l],p=[r,i,o,s,a,l,a,l],v=[i,i,s,s,l,l,l,l],w=[t,t,i,i,s,s,l,l];return af={DISPLAY:h[e],TEXT:h[r],SCRIPT:h[o],SCRIPTSCRIPT:h[a]},af}var lf,Ov;function Yr(){if(Ov)return lf;Ov=1;var n=Array.prototype.indexOf,e=function(b,p){if(b==null)return-1;if(n&&b.indexOf===n)return b.indexOf(p);for(var v=0,w=b.length;v<w;v++)if(b[v]===p)return v;return-1},t=function(b,p){return e(b,p)!==-1},r=function(b,p){return b===void 0?p:b},i=/([A-Z])/g,o=function(b){return b.replace(i,"-$1").toLowerCase()},s={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a=/[&><"']/g;function l(b){return s[b]}function c(b){return(""+b).replace(a,l)}var u;if(typeof document<"u"){var h=document.createElement("span");"textContent"in h?u=function(b,p){b.textContent=p}:u=function(b,p){b.innerText=p}}function g(b){u(b,"")}return lf={contains:t,deflt:r,escape:c,hyphenate:o,indexOf:e,setTextContent:u,clearNode:g},lf}var cf,Iv;function Lv(){if(Iv)return cf;Iv=1;var n=Yr(),e=function(o){o=o.slice();for(var s=o.length-1;s>=0;s--)o[s]||o.splice(s,1);return o.join(" ")};function t(o,s,a,l,c,u){this.classes=o||[],this.children=s||[],this.height=a||0,this.depth=l||0,this.maxFontSize=c||0,this.style=u||{},this.attributes={}}t.prototype.setAttribute=function(o,s){this.attributes[o]=s},t.prototype.toNode=function(){var o=document.createElement("span");o.className=e(this.classes);for(var s in this.style)Object.prototype.hasOwnProperty.call(this.style,s)&&(o.style[s]=this.style[s]);for(var a in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,a)&&o.setAttribute(a,this.attributes[a]);for(var l=0;l<this.children.length;l++)o.appendChild(this.children[l].toNode());return o},t.prototype.toMarkup=function(){var o="<span";this.classes.length&&(o+=' class="',o+=n.escape(e(this.classes)),o+='"');var s="";for(var a in this.style)this.style.hasOwnProperty(a)&&(s+=n.hyphenate(a)+":"+this.style[a]+";");s&&(o+=' style="'+n.escape(s)+'"');for(var l in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,l)&&(o+=" "+l+'="',o+=n.escape(this.attributes[l]),o+='"');o+=">";for(var c=0;c<this.children.length;c++)o+=this.children[c].toMarkup();return o+="</span>",o};function r(o,s,a,l){this.children=o||[],this.height=s||0,this.depth=a||0,this.maxFontSize=l||0}r.prototype.toNode=function(){for(var o=document.createDocumentFragment(),s=0;s<this.children.length;s++)o.appendChild(this.children[s].toNode());return o},r.prototype.toMarkup=function(){for(var o="",s=0;s<this.children.length;s++)o+=this.children[s].toMarkup();return o};function i(o,s,a,l,c,u,h){this.value=o||"",this.height=s||0,this.depth=a||0,this.italic=l||0,this.skew=c||0,this.classes=u||[],this.style=h||{},this.maxFontSize=0}return i.prototype.toNode=function(){var o=document.createTextNode(this.value),s=null;this.italic>0&&(s=document.createElement("span"),s.style.marginRight=this.italic+"em"),this.classes.length>0&&(s=s||document.createElement("span"),s.className=e(this.classes));for(var a in this.style)this.style.hasOwnProperty(a)&&(s=s||document.createElement("span"),s.style[a]=this.style[a]);return s?(s.appendChild(o),s):o},i.prototype.toMarkup=function(){var o=!1,s="<span";this.classes.length&&(o=!0,s+=' class="',s+=n.escape(e(this.classes)),s+='"');var a="";this.italic>0&&(a+="margin-right:"+this.italic+"em;");for(var l in this.style)this.style.hasOwnProperty(l)&&(a+=n.hyphenate(l)+":"+this.style[l]+";");a&&(o=!0,s+=' style="'+n.escape(a)+'"');var c=n.escape(this.value);return o?(s+=">",s+=c,s+="</span>",s):c},cf={span:t,documentFragment:r,symbolNode:i},cf}var uf,Bv;function dD(){return Bv||(Bv=1,uf={"AMS-Regular":{65:[0,.68889,0,0],66:[0,.68889,0,0],67:[0,.68889,0,0],68:[0,.68889,0,0],69:[0,.68889,0,0],70:[0,.68889,0,0],71:[0,.68889,0,0],72:[0,.68889,0,0],73:[0,.68889,0,0],74:[.16667,.68889,0,0],75:[0,.68889,0,0],76:[0,.68889,0,0],77:[0,.68889,0,0],78:[0,.68889,0,0],79:[.16667,.68889,0,0],80:[0,.68889,0,0],81:[.16667,.68889,0,0],82:[0,.68889,0,0],83:[0,.68889,0,0],84:[0,.68889,0,0],85:[0,.68889,0,0],86:[0,.68889,0,0],87:[0,.68889,0,0],88:[0,.68889,0,0],89:[0,.68889,0,0],90:[0,.68889,0,0],107:[0,.68889,0,0],165:[0,.675,.025,0],174:[.15559,.69224,0,0],240:[0,.68889,0,0],295:[0,.68889,0,0],710:[0,.825,0,0],732:[0,.9,0,0],770:[0,.825,0,0],771:[0,.9,0,0],989:[.08167,.58167,0,0],1008:[0,.43056,.04028,0],8245:[0,.54986,0,0],8463:[0,.68889,0,0],8487:[0,.68889,0,0],8498:[0,.68889,0,0],8502:[0,.68889,0,0],8503:[0,.68889,0,0],8504:[0,.68889,0,0],8513:[0,.68889,0,0],8592:[-.03598,.46402,0,0],8594:[-.03598,.46402,0,0],8602:[-.13313,.36687,0,0],8603:[-.13313,.36687,0,0],8606:[.01354,.52239,0,0],8608:[.01354,.52239,0,0],8610:[.01354,.52239,0,0],8611:[.01354,.52239,0,0],8619:[0,.54986,0,0],8620:[0,.54986,0,0],8621:[-.13313,.37788,0,0],8622:[-.13313,.36687,0,0],8624:[0,.69224,0,0],8625:[0,.69224,0,0],8630:[0,.43056,0,0],8631:[0,.43056,0,0],8634:[.08198,.58198,0,0],8635:[.08198,.58198,0,0],8638:[.19444,.69224,0,0],8639:[.19444,.69224,0,0],8642:[.19444,.69224,0,0],8643:[.19444,.69224,0,0],8644:[.1808,.675,0,0],8646:[.1808,.675,0,0],8647:[.1808,.675,0,0],8648:[.19444,.69224,0,0],8649:[.1808,.675,0,0],8650:[.19444,.69224,0,0],8651:[.01354,.52239,0,0],8652:[.01354,.52239,0,0],8653:[-.13313,.36687,0,0],8654:[-.13313,.36687,0,0],8655:[-.13313,.36687,0,0],8666:[.13667,.63667,0,0],8667:[.13667,.63667,0,0],8669:[-.13313,.37788,0,0],8672:[-.064,.437,0,0],8674:[-.064,.437,0,0],8705:[0,.825,0,0],8708:[0,.68889,0,0],8709:[.08167,.58167,0,0],8717:[0,.43056,0,0],8722:[-.03598,.46402,0,0],8724:[.08198,.69224,0,0],8726:[.08167,.58167,0,0],8733:[0,.69224,0,0],8736:[0,.69224,0,0],8737:[0,.69224,0,0],8738:[.03517,.52239,0,0],8739:[.08167,.58167,0,0],8740:[.25142,.74111,0,0],8741:[.08167,.58167,0,0],8742:[.25142,.74111,0,0],8756:[0,.69224,0,0],8757:[0,.69224,0,0],8764:[-.13313,.36687,0,0],8765:[-.13313,.37788,0,0],8769:[-.13313,.36687,0,0],8770:[-.03625,.46375,0,0],8774:[.30274,.79383,0,0],8776:[-.01688,.48312,0,0],8778:[.08167,.58167,0,0],8782:[.06062,.54986,0,0],8783:[.06062,.54986,0,0],8785:[.08198,.58198,0,0],8786:[.08198,.58198,0,0],8787:[.08198,.58198,0,0],8790:[0,.69224,0,0],8791:[.22958,.72958,0,0],8796:[.08198,.91667,0,0],8806:[.25583,.75583,0,0],8807:[.25583,.75583,0,0],8808:[.25142,.75726,0,0],8809:[.25142,.75726,0,0],8812:[.25583,.75583,0,0],8814:[.20576,.70576,0,0],8815:[.20576,.70576,0,0],8816:[.30274,.79383,0,0],8817:[.30274,.79383,0,0],8818:[.22958,.72958,0,0],8819:[.22958,.72958,0,0],8822:[.1808,.675,0,0],8823:[.1808,.675,0,0],8828:[.13667,.63667,0,0],8829:[.13667,.63667,0,0],8830:[.22958,.72958,0,0],8831:[.22958,.72958,0,0],8832:[.20576,.70576,0,0],8833:[.20576,.70576,0,0],8840:[.30274,.79383,0,0],8841:[.30274,.79383,0,0],8842:[.13597,.63597,0,0],8843:[.13597,.63597,0,0],8847:[.03517,.54986,0,0],8848:[.03517,.54986,0,0],8858:[.08198,.58198,0,0],8859:[.08198,.58198,0,0],8861:[.08198,.58198,0,0],8862:[0,.675,0,0],8863:[0,.675,0,0],8864:[0,.675,0,0],8865:[0,.675,0,0],8872:[0,.69224,0,0],8873:[0,.69224,0,0],8874:[0,.69224,0,0],8876:[0,.68889,0,0],8877:[0,.68889,0,0],8878:[0,.68889,0,0],8879:[0,.68889,0,0],8882:[.03517,.54986,0,0],8883:[.03517,.54986,0,0],8884:[.13667,.63667,0,0],8885:[.13667,.63667,0,0],8888:[0,.54986,0,0],8890:[.19444,.43056,0,0],8891:[.19444,.69224,0,0],8892:[.19444,.69224,0,0],8901:[0,.54986,0,0],8903:[.08167,.58167,0,0],8905:[.08167,.58167,0,0],8906:[.08167,.58167,0,0],8907:[0,.69224,0,0],8908:[0,.69224,0,0],8909:[-.03598,.46402,0,0],8910:[0,.54986,0,0],8911:[0,.54986,0,0],8912:[.03517,.54986,0,0],8913:[.03517,.54986,0,0],8914:[0,.54986,0,0],8915:[0,.54986,0,0],8916:[0,.69224,0,0],8918:[.0391,.5391,0,0],8919:[.0391,.5391,0,0],8920:[.03517,.54986,0,0],8921:[.03517,.54986,0,0],8922:[.38569,.88569,0,0],8923:[.38569,.88569,0,0],8926:[.13667,.63667,0,0],8927:[.13667,.63667,0,0],8928:[.30274,.79383,0,0],8929:[.30274,.79383,0,0],8934:[.23222,.74111,0,0],8935:[.23222,.74111,0,0],8936:[.23222,.74111,0,0],8937:[.23222,.74111,0,0],8938:[.20576,.70576,0,0],8939:[.20576,.70576,0,0],8940:[.30274,.79383,0,0],8941:[.30274,.79383,0,0],8994:[.19444,.69224,0,0],8995:[.19444,.69224,0,0],9416:[.15559,.69224,0,0],9484:[0,.69224,0,0],9488:[0,.69224,0,0],9492:[0,.37788,0,0],9496:[0,.37788,0,0],9585:[.19444,.68889,0,0],9586:[.19444,.74111,0,0],9632:[0,.675,0,0],9633:[0,.675,0,0],9650:[0,.54986,0,0],9651:[0,.54986,0,0],9654:[.03517,.54986,0,0],9660:[0,.54986,0,0],9661:[0,.54986,0,0],9664:[.03517,.54986,0,0],9674:[.11111,.69224,0,0],9733:[.19444,.69224,0,0],10003:[0,.69224,0,0],10016:[0,.69224,0,0],10731:[.11111,.69224,0,0],10846:[.19444,.75583,0,0],10877:[.13667,.63667,0,0],10878:[.13667,.63667,0,0],10885:[.25583,.75583,0,0],10886:[.25583,.75583,0,0],10887:[.13597,.63597,0,0],10888:[.13597,.63597,0,0],10889:[.26167,.75726,0,0],10890:[.26167,.75726,0,0],10891:[.48256,.98256,0,0],10892:[.48256,.98256,0,0],10901:[.13667,.63667,0,0],10902:[.13667,.63667,0,0],10933:[.25142,.75726,0,0],10934:[.25142,.75726,0,0],10935:[.26167,.75726,0,0],10936:[.26167,.75726,0,0],10937:[.26167,.75726,0,0],10938:[.26167,.75726,0,0],10949:[.25583,.75583,0,0],10950:[.25583,.75583,0,0],10955:[.28481,.79383,0,0],10956:[.28481,.79383,0,0],57350:[.08167,.58167,0,0],57351:[.08167,.58167,0,0],57352:[.08167,.58167,0,0],57353:[0,.43056,.04028,0],57356:[.25142,.75726,0,0],57357:[.25142,.75726,0,0],57358:[.41951,.91951,0,0],57359:[.30274,.79383,0,0],57360:[.30274,.79383,0,0],57361:[.41951,.91951,0,0],57366:[.25142,.75726,0,0],57367:[.25142,.75726,0,0],57368:[.25142,.75726,0,0],57369:[.25142,.75726,0,0],57370:[.13597,.63597,0,0],57371:[.13597,.63597,0,0]},"Caligraphic-Regular":{48:[0,.43056,0,0],49:[0,.43056,0,0],50:[0,.43056,0,0],51:[.19444,.43056,0,0],52:[.19444,.43056,0,0],53:[.19444,.43056,0,0],54:[0,.64444,0,0],55:[.19444,.43056,0,0],56:[0,.64444,0,0],57:[.19444,.43056,0,0],65:[0,.68333,0,.19445],66:[0,.68333,.03041,.13889],67:[0,.68333,.05834,.13889],68:[0,.68333,.02778,.08334],69:[0,.68333,.08944,.11111],70:[0,.68333,.09931,.11111],71:[.09722,.68333,.0593,.11111],72:[0,.68333,.00965,.11111],73:[0,.68333,.07382,0],74:[.09722,.68333,.18472,.16667],75:[0,.68333,.01445,.05556],76:[0,.68333,0,.13889],77:[0,.68333,0,.13889],78:[0,.68333,.14736,.08334],79:[0,.68333,.02778,.11111],80:[0,.68333,.08222,.08334],81:[.09722,.68333,0,.11111],82:[0,.68333,0,.08334],83:[0,.68333,.075,.13889],84:[0,.68333,.25417,0],85:[0,.68333,.09931,.08334],86:[0,.68333,.08222,0],87:[0,.68333,.08222,.08334],88:[0,.68333,.14643,.13889],89:[.09722,.68333,.08222,.08334],90:[0,.68333,.07944,.13889]},"Fraktur-Regular":{33:[0,.69141,0,0],34:[0,.69141,0,0],38:[0,.69141,0,0],39:[0,.69141,0,0],40:[.24982,.74947,0,0],41:[.24982,.74947,0,0],42:[0,.62119,0,0],43:[.08319,.58283,0,0],44:[0,.10803,0,0],45:[.08319,.58283,0,0],46:[0,.10803,0,0],47:[.24982,.74947,0,0],48:[0,.47534,0,0],49:[0,.47534,0,0],50:[0,.47534,0,0],51:[.18906,.47534,0,0],52:[.18906,.47534,0,0],53:[.18906,.47534,0,0],54:[0,.69141,0,0],55:[.18906,.47534,0,0],56:[0,.69141,0,0],57:[.18906,.47534,0,0],58:[0,.47534,0,0],59:[.12604,.47534,0,0],61:[-.13099,.36866,0,0],63:[0,.69141,0,0],65:[0,.69141,0,0],66:[0,.69141,0,0],67:[0,.69141,0,0],68:[0,.69141,0,0],69:[0,.69141,0,0],70:[.12604,.69141,0,0],71:[0,.69141,0,0],72:[.06302,.69141,0,0],73:[0,.69141,0,0],74:[.12604,.69141,0,0],75:[0,.69141,0,0],76:[0,.69141,0,0],77:[0,.69141,0,0],78:[0,.69141,0,0],79:[0,.69141,0,0],80:[.18906,.69141,0,0],81:[.03781,.69141,0,0],82:[0,.69141,0,0],83:[0,.69141,0,0],84:[0,.69141,0,0],85:[0,.69141,0,0],86:[0,.69141,0,0],87:[0,.69141,0,0],88:[0,.69141,0,0],89:[.18906,.69141,0,0],90:[.12604,.69141,0,0],91:[.24982,.74947,0,0],93:[.24982,.74947,0,0],94:[0,.69141,0,0],97:[0,.47534,0,0],98:[0,.69141,0,0],99:[0,.47534,0,0],100:[0,.62119,0,0],101:[0,.47534,0,0],102:[.18906,.69141,0,0],103:[.18906,.47534,0,0],104:[.18906,.69141,0,0],105:[0,.69141,0,0],106:[0,.69141,0,0],107:[0,.69141,0,0],108:[0,.69141,0,0],109:[0,.47534,0,0],110:[0,.47534,0,0],111:[0,.47534,0,0],112:[.18906,.52396,0,0],113:[.18906,.47534,0,0],114:[0,.47534,0,0],115:[0,.47534,0,0],116:[0,.62119,0,0],117:[0,.47534,0,0],118:[0,.52396,0,0],119:[0,.52396,0,0],120:[.18906,.47534,0,0],121:[.18906,.47534,0,0],122:[.18906,.47534,0,0],8216:[0,.69141,0,0],8217:[0,.69141,0,0],58112:[0,.62119,0,0],58113:[0,.62119,0,0],58114:[.18906,.69141,0,0],58115:[.18906,.69141,0,0],58116:[.18906,.47534,0,0],58117:[0,.69141,0,0],58118:[0,.62119,0,0],58119:[0,.47534,0,0]},"Main-Bold":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.13333,.63333,0,0],44:[.19444,.15556,0,0],45:[0,.44444,0,0],46:[0,.15556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.44444,0,0],59:[.19444,.44444,0,0],60:[.08556,.58556,0,0],61:[-.10889,.39111,0,0],62:[.08556,.58556,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68611,0,0],66:[0,.68611,0,0],67:[0,.68611,0,0],68:[0,.68611,0,0],69:[0,.68611,0,0],70:[0,.68611,0,0],71:[0,.68611,0,0],72:[0,.68611,0,0],73:[0,.68611,0,0],74:[0,.68611,0,0],75:[0,.68611,0,0],76:[0,.68611,0,0],77:[0,.68611,0,0],78:[0,.68611,0,0],79:[0,.68611,0,0],80:[0,.68611,0,0],81:[.19444,.68611,0,0],82:[0,.68611,0,0],83:[0,.68611,0,0],84:[0,.68611,0,0],85:[0,.68611,0,0],86:[0,.68611,.01597,0],87:[0,.68611,.01597,0],88:[0,.68611,0,0],89:[0,.68611,.02875,0],90:[0,.68611,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.13444,.03194,0],96:[0,.69444,0,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.10903,0],103:[.19444,.44444,.01597,0],104:[0,.69444,0,0],105:[0,.69444,0,0],106:[.19444,.69444,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,0,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.01597,0],119:[0,.44444,.01597,0],120:[0,.44444,0,0],121:[.19444,.44444,.01597,0],122:[0,.44444,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.34444,0,0],168:[0,.69444,0,0],172:[0,.44444,0,0],175:[0,.59611,0,0],176:[0,.69444,0,0],177:[.13333,.63333,0,0],180:[0,.69444,0,0],215:[.13333,.63333,0,0],247:[.13333,.63333,0,0],305:[0,.44444,0,0],567:[.19444,.44444,0,0],710:[0,.69444,0,0],711:[0,.63194,0,0],713:[0,.59611,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.69444,0,0],730:[0,.69444,0,0],732:[0,.69444,0,0],768:[0,.69444,0,0],769:[0,.69444,0,0],770:[0,.69444,0,0],771:[0,.69444,0,0],772:[0,.59611,0,0],774:[0,.69444,0,0],775:[0,.69444,0,0],776:[0,.69444,0,0],778:[0,.69444,0,0],779:[0,.69444,0,0],780:[0,.63194,0,0],824:[.19444,.69444,0,0],915:[0,.68611,0,0],916:[0,.68611,0,0],920:[0,.68611,0,0],923:[0,.68611,0,0],926:[0,.68611,0,0],928:[0,.68611,0,0],931:[0,.68611,0,0],933:[0,.68611,0,0],934:[0,.68611,0,0],936:[0,.68611,0,0],937:[0,.68611,0,0],8211:[0,.44444,.03194,0],8212:[0,.44444,.03194,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8242:[0,.55556,0,0],8407:[0,.72444,.15486,0],8463:[0,.69444,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,0],8472:[.19444,.44444,0,0],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.10889,.39111,0,0],8593:[.19444,.69444,0,0],8594:[-.10889,.39111,0,0],8595:[.19444,.69444,0,0],8596:[-.10889,.39111,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8636:[-.10889,.39111,0,0],8637:[-.10889,.39111,0,0],8640:[-.10889,.39111,0,0],8641:[-.10889,.39111,0,0],8656:[-.10889,.39111,0,0],8657:[.19444,.69444,0,0],8658:[-.10889,.39111,0,0],8659:[.19444,.69444,0,0],8660:[-.10889,.39111,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.06389,0],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68611,0,0],8712:[.08556,.58556,0,0],8715:[.08556,.58556,0,0],8722:[.13333,.63333,0,0],8723:[.13333,.63333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.02778,.47222,0,0],8728:[-.02639,.47361,0,0],8729:[-.02639,.47361,0,0],8730:[.18,.82,0,0],8733:[0,.44444,0,0],8734:[0,.44444,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.12778,0],8764:[-.10889,.39111,0,0],8768:[.19444,.69444,0,0],8771:[.00222,.50222,0,0],8776:[.02444,.52444,0,0],8781:[.00222,.50222,0,0],8801:[.00222,.50222,0,0],8804:[.19667,.69667,0,0],8805:[.19667,.69667,0,0],8810:[.08556,.58556,0,0],8811:[.08556,.58556,0,0],8826:[.08556,.58556,0,0],8827:[.08556,.58556,0,0],8834:[.08556,.58556,0,0],8835:[.08556,.58556,0,0],8838:[.19667,.69667,0,0],8839:[.19667,.69667,0,0],8846:[0,.55556,0,0],8849:[.19667,.69667,0,0],8850:[.19667,.69667,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.13333,.63333,0,0],8854:[.13333,.63333,0,0],8855:[.13333,.63333,0,0],8856:[.13333,.63333,0,0],8857:[.13333,.63333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8900:[-.02639,.47361,0,0],8901:[-.02639,.47361,0,0],8902:[-.02778,.47222,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.13889,.36111,0,0],8995:[-.13889,.36111,0,0],9651:[.19444,.69444,0,0],9657:[-.02778,.47222,0,0],9661:[.19444,.69444,0,0],9667:[-.02778,.47222,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10815:[0,.68611,0,0],10927:[.19667,.69667,0,0],10928:[.19667,.69667,0,0]},"Main-Italic":{33:[0,.69444,.12417,0],34:[0,.69444,.06961,0],35:[.19444,.69444,.06616,0],37:[.05556,.75,.13639,0],38:[0,.69444,.09694,0],39:[0,.69444,.12417,0],40:[.25,.75,.16194,0],41:[.25,.75,.03694,0],42:[0,.75,.14917,0],43:[.05667,.56167,.03694,0],44:[.19444,.10556,0,0],45:[0,.43056,.02826,0],46:[0,.10556,0,0],47:[.25,.75,.16194,0],48:[0,.64444,.13556,0],49:[0,.64444,.13556,0],50:[0,.64444,.13556,0],51:[0,.64444,.13556,0],52:[.19444,.64444,.13556,0],53:[0,.64444,.13556,0],54:[0,.64444,.13556,0],55:[.19444,.64444,.13556,0],56:[0,.64444,.13556,0],57:[0,.64444,.13556,0],58:[0,.43056,.0582,0],59:[.19444,.43056,.0582,0],61:[-.13313,.36687,.06616,0],63:[0,.69444,.1225,0],64:[0,.69444,.09597,0],65:[0,.68333,0,0],66:[0,.68333,.10257,0],67:[0,.68333,.14528,0],68:[0,.68333,.09403,0],69:[0,.68333,.12028,0],70:[0,.68333,.13305,0],71:[0,.68333,.08722,0],72:[0,.68333,.16389,0],73:[0,.68333,.15806,0],74:[0,.68333,.14028,0],75:[0,.68333,.14528,0],76:[0,.68333,0,0],77:[0,.68333,.16389,0],78:[0,.68333,.16389,0],79:[0,.68333,.09403,0],80:[0,.68333,.10257,0],81:[.19444,.68333,.09403,0],82:[0,.68333,.03868,0],83:[0,.68333,.11972,0],84:[0,.68333,.13305,0],85:[0,.68333,.16389,0],86:[0,.68333,.18361,0],87:[0,.68333,.18361,0],88:[0,.68333,.15806,0],89:[0,.68333,.19383,0],90:[0,.68333,.14528,0],91:[.25,.75,.1875,0],93:[.25,.75,.10528,0],94:[0,.69444,.06646,0],95:[.31,.12056,.09208,0],97:[0,.43056,.07671,0],98:[0,.69444,.06312,0],99:[0,.43056,.05653,0],100:[0,.69444,.10333,0],101:[0,.43056,.07514,0],102:[.19444,.69444,.21194,0],103:[.19444,.43056,.08847,0],104:[0,.69444,.07671,0],105:[0,.65536,.1019,0],106:[.19444,.65536,.14467,0],107:[0,.69444,.10764,0],108:[0,.69444,.10333,0],109:[0,.43056,.07671,0],110:[0,.43056,.07671,0],111:[0,.43056,.06312,0],112:[.19444,.43056,.06312,0],113:[.19444,.43056,.08847,0],114:[0,.43056,.10764,0],115:[0,.43056,.08208,0],116:[0,.61508,.09486,0],117:[0,.43056,.07671,0],118:[0,.43056,.10764,0],119:[0,.43056,.10764,0],120:[0,.43056,.12042,0],121:[.19444,.43056,.08847,0],122:[0,.43056,.12292,0],126:[.35,.31786,.11585,0],163:[0,.69444,0,0],305:[0,.43056,0,.02778],567:[.19444,.43056,0,.08334],768:[0,.69444,0,0],769:[0,.69444,.09694,0],770:[0,.69444,.06646,0],771:[0,.66786,.11585,0],772:[0,.56167,.10333,0],774:[0,.69444,.10806,0],775:[0,.66786,.11752,0],776:[0,.66786,.10474,0],778:[0,.69444,0,0],779:[0,.69444,.1225,0],780:[0,.62847,.08295,0],915:[0,.68333,.13305,0],916:[0,.68333,0,0],920:[0,.68333,.09403,0],923:[0,.68333,0,0],926:[0,.68333,.15294,0],928:[0,.68333,.16389,0],931:[0,.68333,.12028,0],933:[0,.68333,.11111,0],934:[0,.68333,.05986,0],936:[0,.68333,.11111,0],937:[0,.68333,.10257,0],8211:[0,.43056,.09208,0],8212:[0,.43056,.09208,0],8216:[0,.69444,.12417,0],8217:[0,.69444,.12417,0],8220:[0,.69444,.1685,0],8221:[0,.69444,.06961,0],8463:[0,.68889,0,0]},"Main-Regular":{32:[0,0,0,0],33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.19444,.10556,0,0],45:[0,.43056,0,0],46:[0,.10556,0,0],47:[.25,.75,0,0],48:[0,.64444,0,0],49:[0,.64444,0,0],50:[0,.64444,0,0],51:[0,.64444,0,0],52:[0,.64444,0,0],53:[0,.64444,0,0],54:[0,.64444,0,0],55:[0,.64444,0,0],56:[0,.64444,0,0],57:[0,.64444,0,0],58:[0,.43056,0,0],59:[.19444,.43056,0,0],60:[.0391,.5391,0,0],61:[-.13313,.36687,0,0],62:[.0391,.5391,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.68333,0,0],66:[0,.68333,0,0],67:[0,.68333,0,0],68:[0,.68333,0,0],69:[0,.68333,0,0],70:[0,.68333,0,0],71:[0,.68333,0,0],72:[0,.68333,0,0],73:[0,.68333,0,0],74:[0,.68333,0,0],75:[0,.68333,0,0],76:[0,.68333,0,0],77:[0,.68333,0,0],78:[0,.68333,0,0],79:[0,.68333,0,0],80:[0,.68333,0,0],81:[.19444,.68333,0,0],82:[0,.68333,0,0],83:[0,.68333,0,0],84:[0,.68333,0,0],85:[0,.68333,0,0],86:[0,.68333,.01389,0],87:[0,.68333,.01389,0],88:[0,.68333,0,0],89:[0,.68333,.025,0],90:[0,.68333,0,0],91:[.25,.75,0,0],92:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.31,.12056,.02778,0],96:[0,.69444,0,0],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,0],100:[0,.69444,0,0],101:[0,.43056,0,0],102:[0,.69444,.07778,0],103:[.19444,.43056,.01389,0],104:[0,.69444,0,0],105:[0,.66786,0,0],106:[.19444,.66786,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.19444,.43056,0,0],113:[.19444,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.61508,0,0],117:[0,.43056,0,0],118:[0,.43056,.01389,0],119:[0,.43056,.01389,0],120:[0,.43056,0,0],121:[.19444,.43056,.01389,0],122:[0,.43056,0,0],123:[.25,.75,0,0],124:[.25,.75,0,0],125:[.25,.75,0,0],126:[.35,.31786,0,0],160:[0,0,0,0],168:[0,.66786,0,0],172:[0,.43056,0,0],175:[0,.56778,0,0],176:[0,.69444,0,0],177:[.08333,.58333,0,0],180:[0,.69444,0,0],215:[.08333,.58333,0,0],247:[.08333,.58333,0,0],305:[0,.43056,0,0],567:[.19444,.43056,0,0],710:[0,.69444,0,0],711:[0,.62847,0,0],713:[0,.56778,0,0],714:[0,.69444,0,0],715:[0,.69444,0,0],728:[0,.69444,0,0],729:[0,.66786,0,0],730:[0,.69444,0,0],732:[0,.66786,0,0],768:[0,.69444,0,0],769:[0,.69444,0,0],770:[0,.69444,0,0],771:[0,.66786,0,0],772:[0,.56778,0,0],774:[0,.69444,0,0],775:[0,.66786,0,0],776:[0,.66786,0,0],778:[0,.69444,0,0],779:[0,.69444,0,0],780:[0,.62847,0,0],824:[.19444,.69444,0,0],915:[0,.68333,0,0],916:[0,.68333,0,0],920:[0,.68333,0,0],923:[0,.68333,0,0],926:[0,.68333,0,0],928:[0,.68333,0,0],931:[0,.68333,0,0],933:[0,.68333,0,0],934:[0,.68333,0,0],936:[0,.68333,0,0],937:[0,.68333,0,0],8211:[0,.43056,.02778,0],8212:[0,.43056,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0],8224:[.19444,.69444,0,0],8225:[.19444,.69444,0,0],8230:[0,.12,0,0],8242:[0,.55556,0,0],8407:[0,.71444,.15382,0],8463:[0,.68889,0,0],8465:[0,.69444,0,0],8467:[0,.69444,0,.11111],8472:[.19444,.43056,0,.11111],8476:[0,.69444,0,0],8501:[0,.69444,0,0],8592:[-.13313,.36687,0,0],8593:[.19444,.69444,0,0],8594:[-.13313,.36687,0,0],8595:[.19444,.69444,0,0],8596:[-.13313,.36687,0,0],8597:[.25,.75,0,0],8598:[.19444,.69444,0,0],8599:[.19444,.69444,0,0],8600:[.19444,.69444,0,0],8601:[.19444,.69444,0,0],8614:[.011,.511,0,0],8617:[.011,.511,0,0],8618:[.011,.511,0,0],8636:[-.13313,.36687,0,0],8637:[-.13313,.36687,0,0],8640:[-.13313,.36687,0,0],8641:[-.13313,.36687,0,0],8652:[.011,.671,0,0],8656:[-.13313,.36687,0,0],8657:[.19444,.69444,0,0],8658:[-.13313,.36687,0,0],8659:[.19444,.69444,0,0],8660:[-.13313,.36687,0,0],8661:[.25,.75,0,0],8704:[0,.69444,0,0],8706:[0,.69444,.05556,.08334],8707:[0,.69444,0,0],8709:[.05556,.75,0,0],8711:[0,.68333,0,0],8712:[.0391,.5391,0,0],8715:[.0391,.5391,0,0],8722:[.08333,.58333,0,0],8723:[.08333,.58333,0,0],8725:[.25,.75,0,0],8726:[.25,.75,0,0],8727:[-.03472,.46528,0,0],8728:[-.05555,.44445,0,0],8729:[-.05555,.44445,0,0],8730:[.2,.8,0,0],8733:[0,.43056,0,0],8734:[0,.43056,0,0],8736:[0,.69224,0,0],8739:[.25,.75,0,0],8741:[.25,.75,0,0],8743:[0,.55556,0,0],8744:[0,.55556,0,0],8745:[0,.55556,0,0],8746:[0,.55556,0,0],8747:[.19444,.69444,.11111,0],8764:[-.13313,.36687,0,0],8768:[.19444,.69444,0,0],8771:[-.03625,.46375,0,0],8773:[-.022,.589,0,0],8776:[-.01688,.48312,0,0],8781:[-.03625,.46375,0,0],8784:[-.133,.67,0,0],8800:[.215,.716,0,0],8801:[-.03625,.46375,0,0],8804:[.13597,.63597,0,0],8805:[.13597,.63597,0,0],8810:[.0391,.5391,0,0],8811:[.0391,.5391,0,0],8826:[.0391,.5391,0,0],8827:[.0391,.5391,0,0],8834:[.0391,.5391,0,0],8835:[.0391,.5391,0,0],8838:[.13597,.63597,0,0],8839:[.13597,.63597,0,0],8846:[0,.55556,0,0],8849:[.13597,.63597,0,0],8850:[.13597,.63597,0,0],8851:[0,.55556,0,0],8852:[0,.55556,0,0],8853:[.08333,.58333,0,0],8854:[.08333,.58333,0,0],8855:[.08333,.58333,0,0],8856:[.08333,.58333,0,0],8857:[.08333,.58333,0,0],8866:[0,.69444,0,0],8867:[0,.69444,0,0],8868:[0,.69444,0,0],8869:[0,.69444,0,0],8872:[.249,.75,0,0],8900:[-.05555,.44445,0,0],8901:[-.05555,.44445,0,0],8902:[-.03472,.46528,0,0],8904:[.005,.505,0,0],8942:[.03,.9,0,0],8943:[-.19,.31,0,0],8945:[-.1,.82,0,0],8968:[.25,.75,0,0],8969:[.25,.75,0,0],8970:[.25,.75,0,0],8971:[.25,.75,0,0],8994:[-.14236,.35764,0,0],8995:[-.14236,.35764,0,0],9136:[.244,.744,0,0],9137:[.244,.744,0,0],9651:[.19444,.69444,0,0],9657:[-.03472,.46528,0,0],9661:[.19444,.69444,0,0],9667:[-.03472,.46528,0,0],9711:[.19444,.69444,0,0],9824:[.12963,.69444,0,0],9825:[.12963,.69444,0,0],9826:[.12963,.69444,0,0],9827:[.12963,.69444,0,0],9837:[0,.75,0,0],9838:[.19444,.69444,0,0],9839:[.19444,.69444,0,0],10216:[.25,.75,0,0],10217:[.25,.75,0,0],10222:[.244,.744,0,0],10223:[.244,.744,0,0],10229:[.011,.511,0,0],10230:[.011,.511,0,0],10231:[.011,.511,0,0],10232:[.024,.525,0,0],10233:[.024,.525,0,0],10234:[.024,.525,0,0],10236:[.011,.511,0,0],10815:[0,.68333,0,0],10927:[.13597,.63597,0,0],10928:[.13597,.63597,0,0]},"Math-BoldItalic":{47:[.19444,.69444,0,0],65:[0,.68611,0,0],66:[0,.68611,.04835,0],67:[0,.68611,.06979,0],68:[0,.68611,.03194,0],69:[0,.68611,.05451,0],70:[0,.68611,.15972,0],71:[0,.68611,0,0],72:[0,.68611,.08229,0],73:[0,.68611,.07778,0],74:[0,.68611,.10069,0],75:[0,.68611,.06979,0],76:[0,.68611,0,0],77:[0,.68611,.11424,0],78:[0,.68611,.11424,0],79:[0,.68611,.03194,0],80:[0,.68611,.15972,0],81:[.19444,.68611,0,0],82:[0,.68611,.00421,0],83:[0,.68611,.05382,0],84:[0,.68611,.15972,0],85:[0,.68611,.11424,0],86:[0,.68611,.25555,0],87:[0,.68611,.15972,0],88:[0,.68611,.07778,0],89:[0,.68611,.25555,0],90:[0,.68611,.06979,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[.19444,.69444,.11042,0],103:[.19444,.44444,.03704,0],104:[0,.69444,0,0],105:[0,.69326,0,0],106:[.19444,.69326,.0622,0],107:[0,.69444,.01852,0],108:[0,.69444,.0088,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,.03704,0],114:[0,.44444,.03194,0],115:[0,.44444,0,0],116:[0,.63492,0,0],117:[0,.44444,0,0],118:[0,.44444,.03704,0],119:[0,.44444,.02778,0],120:[0,.44444,0,0],121:[.19444,.44444,.03704,0],122:[0,.44444,.04213,0],915:[0,.68611,.15972,0],916:[0,.68611,0,0],920:[0,.68611,.03194,0],923:[0,.68611,0,0],926:[0,.68611,.07458,0],928:[0,.68611,.08229,0],931:[0,.68611,.05451,0],933:[0,.68611,.15972,0],934:[0,.68611,0,0],936:[0,.68611,.11653,0],937:[0,.68611,.04835,0],945:[0,.44444,0,0],946:[.19444,.69444,.03403,0],947:[.19444,.44444,.06389,0],948:[0,.69444,.03819,0],949:[0,.44444,0,0],950:[.19444,.69444,.06215,0],951:[.19444,.44444,.03704,0],952:[0,.69444,.03194,0],953:[0,.44444,0,0],954:[0,.44444,0,0],955:[0,.69444,0,0],956:[.19444,.44444,0,0],957:[0,.44444,.06898,0],958:[.19444,.69444,.03021,0],959:[0,.44444,0,0],960:[0,.44444,.03704,0],961:[.19444,.44444,0,0],962:[.09722,.44444,.07917,0],963:[0,.44444,.03704,0],964:[0,.44444,.13472,0],965:[0,.44444,.03704,0],966:[.19444,.44444,0,0],967:[.19444,.44444,0,0],968:[.19444,.69444,.03704,0],969:[0,.44444,.03704,0],977:[0,.69444,0,0],981:[.19444,.69444,0,0],982:[0,.44444,.03194,0],1009:[.19444,.44444,0,0],1013:[0,.44444,0,0]},"Math-Italic":{47:[.19444,.69444,0,0],65:[0,.68333,0,.13889],66:[0,.68333,.05017,.08334],67:[0,.68333,.07153,.08334],68:[0,.68333,.02778,.05556],69:[0,.68333,.05764,.08334],70:[0,.68333,.13889,.08334],71:[0,.68333,0,.08334],72:[0,.68333,.08125,.05556],73:[0,.68333,.07847,.11111],74:[0,.68333,.09618,.16667],75:[0,.68333,.07153,.05556],76:[0,.68333,0,.02778],77:[0,.68333,.10903,.08334],78:[0,.68333,.10903,.08334],79:[0,.68333,.02778,.08334],80:[0,.68333,.13889,.08334],81:[.19444,.68333,0,.08334],82:[0,.68333,.00773,.08334],83:[0,.68333,.05764,.08334],84:[0,.68333,.13889,.08334],85:[0,.68333,.10903,.02778],86:[0,.68333,.22222,0],87:[0,.68333,.13889,0],88:[0,.68333,.07847,.08334],89:[0,.68333,.22222,0],90:[0,.68333,.07153,.08334],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,.05556],100:[0,.69444,0,.16667],101:[0,.43056,0,.05556],102:[.19444,.69444,.10764,.16667],103:[.19444,.43056,.03588,.02778],104:[0,.69444,0,0],105:[0,.65952,0,0],106:[.19444,.65952,.05724,0],107:[0,.69444,.03148,0],108:[0,.69444,.01968,.08334],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,.05556],112:[.19444,.43056,0,.08334],113:[.19444,.43056,.03588,.08334],114:[0,.43056,.02778,.05556],115:[0,.43056,0,.05556],116:[0,.61508,0,.08334],117:[0,.43056,0,.02778],118:[0,.43056,.03588,.02778],119:[0,.43056,.02691,.08334],120:[0,.43056,0,.02778],121:[.19444,.43056,.03588,.05556],122:[0,.43056,.04398,.05556],915:[0,.68333,.13889,.08334],916:[0,.68333,0,.16667],920:[0,.68333,.02778,.08334],923:[0,.68333,0,.16667],926:[0,.68333,.07569,.08334],928:[0,.68333,.08125,.05556],931:[0,.68333,.05764,.08334],933:[0,.68333,.13889,.05556],934:[0,.68333,0,.08334],936:[0,.68333,.11,.05556],937:[0,.68333,.05017,.08334],945:[0,.43056,.0037,.02778],946:[.19444,.69444,.05278,.08334],947:[.19444,.43056,.05556,0],948:[0,.69444,.03785,.05556],949:[0,.43056,0,.08334],950:[.19444,.69444,.07378,.08334],951:[.19444,.43056,.03588,.05556],952:[0,.69444,.02778,.08334],953:[0,.43056,0,.05556],954:[0,.43056,0,0],955:[0,.69444,0,0],956:[.19444,.43056,0,.02778],957:[0,.43056,.06366,.02778],958:[.19444,.69444,.04601,.11111],959:[0,.43056,0,.05556],960:[0,.43056,.03588,0],961:[.19444,.43056,0,.08334],962:[.09722,.43056,.07986,.08334],963:[0,.43056,.03588,0],964:[0,.43056,.1132,.02778],965:[0,.43056,.03588,.02778],966:[.19444,.43056,0,.08334],967:[.19444,.43056,0,.05556],968:[.19444,.69444,.03588,.11111],969:[0,.43056,.03588,0],977:[0,.69444,0,.08334],981:[.19444,.69444,0,.08334],982:[0,.43056,.02778,0],1009:[.19444,.43056,0,.08334],1013:[0,.43056,0,.05556]},"Math-Regular":{65:[0,.68333,0,.13889],66:[0,.68333,.05017,.08334],67:[0,.68333,.07153,.08334],68:[0,.68333,.02778,.05556],69:[0,.68333,.05764,.08334],70:[0,.68333,.13889,.08334],71:[0,.68333,0,.08334],72:[0,.68333,.08125,.05556],73:[0,.68333,.07847,.11111],74:[0,.68333,.09618,.16667],75:[0,.68333,.07153,.05556],76:[0,.68333,0,.02778],77:[0,.68333,.10903,.08334],78:[0,.68333,.10903,.08334],79:[0,.68333,.02778,.08334],80:[0,.68333,.13889,.08334],81:[.19444,.68333,0,.08334],82:[0,.68333,.00773,.08334],83:[0,.68333,.05764,.08334],84:[0,.68333,.13889,.08334],85:[0,.68333,.10903,.02778],86:[0,.68333,.22222,0],87:[0,.68333,.13889,0],88:[0,.68333,.07847,.08334],89:[0,.68333,.22222,0],90:[0,.68333,.07153,.08334],97:[0,.43056,0,0],98:[0,.69444,0,0],99:[0,.43056,0,.05556],100:[0,.69444,0,.16667],101:[0,.43056,0,.05556],102:[.19444,.69444,.10764,.16667],103:[.19444,.43056,.03588,.02778],104:[0,.69444,0,0],105:[0,.65952,0,0],106:[.19444,.65952,.05724,0],107:[0,.69444,.03148,0],108:[0,.69444,.01968,.08334],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,.05556],112:[.19444,.43056,0,.08334],113:[.19444,.43056,.03588,.08334],114:[0,.43056,.02778,.05556],115:[0,.43056,0,.05556],116:[0,.61508,0,.08334],117:[0,.43056,0,.02778],118:[0,.43056,.03588,.02778],119:[0,.43056,.02691,.08334],120:[0,.43056,0,.02778],121:[.19444,.43056,.03588,.05556],122:[0,.43056,.04398,.05556],915:[0,.68333,.13889,.08334],916:[0,.68333,0,.16667],920:[0,.68333,.02778,.08334],923:[0,.68333,0,.16667],926:[0,.68333,.07569,.08334],928:[0,.68333,.08125,.05556],931:[0,.68333,.05764,.08334],933:[0,.68333,.13889,.05556],934:[0,.68333,0,.08334],936:[0,.68333,.11,.05556],937:[0,.68333,.05017,.08334],945:[0,.43056,.0037,.02778],946:[.19444,.69444,.05278,.08334],947:[.19444,.43056,.05556,0],948:[0,.69444,.03785,.05556],949:[0,.43056,0,.08334],950:[.19444,.69444,.07378,.08334],951:[.19444,.43056,.03588,.05556],952:[0,.69444,.02778,.08334],953:[0,.43056,0,.05556],954:[0,.43056,0,0],955:[0,.69444,0,0],956:[.19444,.43056,0,.02778],957:[0,.43056,.06366,.02778],958:[.19444,.69444,.04601,.11111],959:[0,.43056,0,.05556],960:[0,.43056,.03588,0],961:[.19444,.43056,0,.08334],962:[.09722,.43056,.07986,.08334],963:[0,.43056,.03588,0],964:[0,.43056,.1132,.02778],965:[0,.43056,.03588,.02778],966:[.19444,.43056,0,.08334],967:[.19444,.43056,0,.05556],968:[.19444,.69444,.03588,.11111],969:[0,.43056,.03588,0],977:[0,.69444,0,.08334],981:[.19444,.69444,0,.08334],982:[0,.43056,.02778,0],1009:[.19444,.43056,0,.08334],1013:[0,.43056,0,.05556]},"SansSerif-Regular":{33:[0,.69444,0,0],34:[0,.69444,0,0],35:[.19444,.69444,0,0],36:[.05556,.75,0,0],37:[.05556,.75,0,0],38:[0,.69444,0,0],39:[0,.69444,0,0],40:[.25,.75,0,0],41:[.25,.75,0,0],42:[0,.75,0,0],43:[.08333,.58333,0,0],44:[.125,.08333,0,0],45:[0,.44444,0,0],46:[0,.08333,0,0],47:[.25,.75,0,0],48:[0,.65556,0,0],49:[0,.65556,0,0],50:[0,.65556,0,0],51:[0,.65556,0,0],52:[0,.65556,0,0],53:[0,.65556,0,0],54:[0,.65556,0,0],55:[0,.65556,0,0],56:[0,.65556,0,0],57:[0,.65556,0,0],58:[0,.44444,0,0],59:[.125,.44444,0,0],61:[-.13,.37,0,0],63:[0,.69444,0,0],64:[0,.69444,0,0],65:[0,.69444,0,0],66:[0,.69444,0,0],67:[0,.69444,0,0],68:[0,.69444,0,0],69:[0,.69444,0,0],70:[0,.69444,0,0],71:[0,.69444,0,0],72:[0,.69444,0,0],73:[0,.69444,0,0],74:[0,.69444,0,0],75:[0,.69444,0,0],76:[0,.69444,0,0],77:[0,.69444,0,0],78:[0,.69444,0,0],79:[0,.69444,0,0],80:[0,.69444,0,0],81:[.125,.69444,0,0],82:[0,.69444,0,0],83:[0,.69444,0,0],84:[0,.69444,0,0],85:[0,.69444,0,0],86:[0,.69444,.01389,0],87:[0,.69444,.01389,0],88:[0,.69444,0,0],89:[0,.69444,.025,0],90:[0,.69444,0,0],91:[.25,.75,0,0],93:[.25,.75,0,0],94:[0,.69444,0,0],95:[.35,.09444,.02778,0],97:[0,.44444,0,0],98:[0,.69444,0,0],99:[0,.44444,0,0],100:[0,.69444,0,0],101:[0,.44444,0,0],102:[0,.69444,.06944,0],103:[.19444,.44444,.01389,0],104:[0,.69444,0,0],105:[0,.67937,0,0],106:[.19444,.67937,0,0],107:[0,.69444,0,0],108:[0,.69444,0,0],109:[0,.44444,0,0],110:[0,.44444,0,0],111:[0,.44444,0,0],112:[.19444,.44444,0,0],113:[.19444,.44444,0,0],114:[0,.44444,.01389,0],115:[0,.44444,0,0],116:[0,.57143,0,0],117:[0,.44444,0,0],118:[0,.44444,.01389,0],119:[0,.44444,.01389,0],120:[0,.44444,0,0],121:[.19444,.44444,.01389,0],122:[0,.44444,0,0],126:[.35,.32659,0,0],305:[0,.44444,0,0],567:[.19444,.44444,0,0],768:[0,.69444,0,0],769:[0,.69444,0,0],770:[0,.69444,0,0],771:[0,.67659,0,0],772:[0,.60889,0,0],774:[0,.69444,0,0],775:[0,.67937,0,0],776:[0,.67937,0,0],778:[0,.69444,0,0],779:[0,.69444,0,0],780:[0,.63194,0,0],915:[0,.69444,0,0],916:[0,.69444,0,0],920:[0,.69444,0,0],923:[0,.69444,0,0],926:[0,.69444,0,0],928:[0,.69444,0,0],931:[0,.69444,0,0],933:[0,.69444,0,0],934:[0,.69444,0,0],936:[0,.69444,0,0],937:[0,.69444,0,0],8211:[0,.44444,.02778,0],8212:[0,.44444,.02778,0],8216:[0,.69444,0,0],8217:[0,.69444,0,0],8220:[0,.69444,0,0],8221:[0,.69444,0,0]},"Script-Regular":{65:[0,.7,.22925,0],66:[0,.7,.04087,0],67:[0,.7,.1689,0],68:[0,.7,.09371,0],69:[0,.7,.18583,0],70:[0,.7,.13634,0],71:[0,.7,.17322,0],72:[0,.7,.29694,0],73:[0,.7,.19189,0],74:[.27778,.7,.19189,0],75:[0,.7,.31259,0],76:[0,.7,.19189,0],77:[0,.7,.15981,0],78:[0,.7,.3525,0],79:[0,.7,.08078,0],80:[0,.7,.08078,0],81:[0,.7,.03305,0],82:[0,.7,.06259,0],83:[0,.7,.19189,0],84:[0,.7,.29087,0],85:[0,.7,.25815,0],86:[0,.7,.27523,0],87:[0,.7,.27523,0],88:[0,.7,.26006,0],89:[0,.7,.2939,0],90:[0,.7,.24037,0]},"Size1-Regular":{40:[.35001,.85,0,0],41:[.35001,.85,0,0],47:[.35001,.85,0,0],91:[.35001,.85,0,0],92:[.35001,.85,0,0],93:[.35001,.85,0,0],123:[.35001,.85,0,0],125:[.35001,.85,0,0],710:[0,.72222,0,0],732:[0,.72222,0,0],770:[0,.72222,0,0],771:[0,.72222,0,0],8214:[-99e-5,.601,0,0],8593:[1e-5,.6,0,0],8595:[1e-5,.6,0,0],8657:[1e-5,.6,0,0],8659:[1e-5,.6,0,0],8719:[.25001,.75,0,0],8720:[.25001,.75,0,0],8721:[.25001,.75,0,0],8730:[.35001,.85,0,0],8739:[-.00599,.606,0,0],8741:[-.00599,.606,0,0],8747:[.30612,.805,.19445,0],8748:[.306,.805,.19445,0],8749:[.306,.805,.19445,0],8750:[.30612,.805,.19445,0],8896:[.25001,.75,0,0],8897:[.25001,.75,0,0],8898:[.25001,.75,0,0],8899:[.25001,.75,0,0],8968:[.35001,.85,0,0],8969:[.35001,.85,0,0],8970:[.35001,.85,0,0],8971:[.35001,.85,0,0],9168:[-99e-5,.601,0,0],10216:[.35001,.85,0,0],10217:[.35001,.85,0,0],10752:[.25001,.75,0,0],10753:[.25001,.75,0,0],10754:[.25001,.75,0,0],10756:[.25001,.75,0,0],10758:[.25001,.75,0,0]},"Size2-Regular":{40:[.65002,1.15,0,0],41:[.65002,1.15,0,0],47:[.65002,1.15,0,0],91:[.65002,1.15,0,0],92:[.65002,1.15,0,0],93:[.65002,1.15,0,0],123:[.65002,1.15,0,0],125:[.65002,1.15,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8719:[.55001,1.05,0,0],8720:[.55001,1.05,0,0],8721:[.55001,1.05,0,0],8730:[.65002,1.15,0,0],8747:[.86225,1.36,.44445,0],8748:[.862,1.36,.44445,0],8749:[.862,1.36,.44445,0],8750:[.86225,1.36,.44445,0],8896:[.55001,1.05,0,0],8897:[.55001,1.05,0,0],8898:[.55001,1.05,0,0],8899:[.55001,1.05,0,0],8968:[.65002,1.15,0,0],8969:[.65002,1.15,0,0],8970:[.65002,1.15,0,0],8971:[.65002,1.15,0,0],10216:[.65002,1.15,0,0],10217:[.65002,1.15,0,0],10752:[.55001,1.05,0,0],10753:[.55001,1.05,0,0],10754:[.55001,1.05,0,0],10756:[.55001,1.05,0,0],10758:[.55001,1.05,0,0]},"Size3-Regular":{40:[.95003,1.45,0,0],41:[.95003,1.45,0,0],47:[.95003,1.45,0,0],91:[.95003,1.45,0,0],92:[.95003,1.45,0,0],93:[.95003,1.45,0,0],123:[.95003,1.45,0,0],125:[.95003,1.45,0,0],710:[0,.75,0,0],732:[0,.75,0,0],770:[0,.75,0,0],771:[0,.75,0,0],8730:[.95003,1.45,0,0],8968:[.95003,1.45,0,0],8969:[.95003,1.45,0,0],8970:[.95003,1.45,0,0],8971:[.95003,1.45,0,0],10216:[.95003,1.45,0,0],10217:[.95003,1.45,0,0]},"Size4-Regular":{40:[1.25003,1.75,0,0],41:[1.25003,1.75,0,0],47:[1.25003,1.75,0,0],91:[1.25003,1.75,0,0],92:[1.25003,1.75,0,0],93:[1.25003,1.75,0,0],123:[1.25003,1.75,0,0],125:[1.25003,1.75,0,0],710:[0,.825,0,0],732:[0,.825,0,0],770:[0,.825,0,0],771:[0,.825,0,0],8730:[1.25003,1.75,0,0],8968:[1.25003,1.75,0,0],8969:[1.25003,1.75,0,0],8970:[1.25003,1.75,0,0],8971:[1.25003,1.75,0,0],9115:[.64502,1.155,0,0],9116:[1e-5,.6,0,0],9117:[.64502,1.155,0,0],9118:[.64502,1.155,0,0],9119:[1e-5,.6,0,0],9120:[.64502,1.155,0,0],9121:[.64502,1.155,0,0],9122:[-99e-5,.601,0,0],9123:[.64502,1.155,0,0],9124:[.64502,1.155,0,0],9125:[-99e-5,.601,0,0],9126:[.64502,1.155,0,0],9127:[1e-5,.9,0,0],9128:[.65002,1.15,0,0],9129:[.90001,0,0,0],9130:[0,.3,0,0],9131:[1e-5,.9,0,0],9132:[.65002,1.15,0,0],9133:[.90001,0,0,0],9143:[.88502,.915,0,0],10216:[1.25003,1.75,0,0],10217:[1.25003,1.75,0,0],57344:[-.00499,.605,0,0],57345:[-.00499,.605,0,0],57680:[0,.12,0,0],57681:[0,.12,0,0],57682:[0,.12,0,0],57683:[0,.12,0,0]},"Typewriter-Regular":{33:[0,.61111,0,0],34:[0,.61111,0,0],35:[0,.61111,0,0],36:[.08333,.69444,0,0],37:[.08333,.69444,0,0],38:[0,.61111,0,0],39:[0,.61111,0,0],40:[.08333,.69444,0,0],41:[.08333,.69444,0,0],42:[0,.52083,0,0],43:[-.08056,.53055,0,0],44:[.13889,.125,0,0],45:[-.08056,.53055,0,0],46:[0,.125,0,0],47:[.08333,.69444,0,0],48:[0,.61111,0,0],49:[0,.61111,0,0],50:[0,.61111,0,0],51:[0,.61111,0,0],52:[0,.61111,0,0],53:[0,.61111,0,0],54:[0,.61111,0,0],55:[0,.61111,0,0],56:[0,.61111,0,0],57:[0,.61111,0,0],58:[0,.43056,0,0],59:[.13889,.43056,0,0],60:[-.05556,.55556,0,0],61:[-.19549,.41562,0,0],62:[-.05556,.55556,0,0],63:[0,.61111,0,0],64:[0,.61111,0,0],65:[0,.61111,0,0],66:[0,.61111,0,0],67:[0,.61111,0,0],68:[0,.61111,0,0],69:[0,.61111,0,0],70:[0,.61111,0,0],71:[0,.61111,0,0],72:[0,.61111,0,0],73:[0,.61111,0,0],74:[0,.61111,0,0],75:[0,.61111,0,0],76:[0,.61111,0,0],77:[0,.61111,0,0],78:[0,.61111,0,0],79:[0,.61111,0,0],80:[0,.61111,0,0],81:[.13889,.61111,0,0],82:[0,.61111,0,0],83:[0,.61111,0,0],84:[0,.61111,0,0],85:[0,.61111,0,0],86:[0,.61111,0,0],87:[0,.61111,0,0],88:[0,.61111,0,0],89:[0,.61111,0,0],90:[0,.61111,0,0],91:[.08333,.69444,0,0],92:[.08333,.69444,0,0],93:[.08333,.69444,0,0],94:[0,.61111,0,0],95:[.09514,0,0,0],96:[0,.61111,0,0],97:[0,.43056,0,0],98:[0,.61111,0,0],99:[0,.43056,0,0],100:[0,.61111,0,0],101:[0,.43056,0,0],102:[0,.61111,0,0],103:[.22222,.43056,0,0],104:[0,.61111,0,0],105:[0,.61111,0,0],106:[.22222,.61111,0,0],107:[0,.61111,0,0],108:[0,.61111,0,0],109:[0,.43056,0,0],110:[0,.43056,0,0],111:[0,.43056,0,0],112:[.22222,.43056,0,0],113:[.22222,.43056,0,0],114:[0,.43056,0,0],115:[0,.43056,0,0],116:[0,.55358,0,0],117:[0,.43056,0,0],118:[0,.43056,0,0],119:[0,.43056,0,0],120:[0,.43056,0,0],121:[.22222,.43056,0,0],122:[0,.43056,0,0],123:[.08333,.69444,0,0],124:[.08333,.69444,0,0],125:[.08333,.69444,0,0],126:[0,.61111,0,0],127:[0,.61111,0,0],305:[0,.43056,0,0],567:[.22222,.43056,0,0],768:[0,.61111,0,0],769:[0,.61111,0,0],770:[0,.61111,0,0],771:[0,.61111,0,0],772:[0,.56555,0,0],774:[0,.61111,0,0],776:[0,.61111,0,0],778:[0,.61111,0,0],780:[0,.56597,0,0],915:[0,.61111,0,0],916:[0,.61111,0,0],920:[0,.61111,0,0],923:[0,.61111,0,0],926:[0,.61111,0,0],928:[0,.61111,0,0],931:[0,.61111,0,0],933:[0,.61111,0,0],934:[0,.61111,0,0],936:[0,.61111,0,0],937:[0,.61111,0,0],2018:[0,.61111,0,0],2019:[0,.61111,0,0],8242:[0,.61111,0,0]}}),uf}var df,Pv;function pa(){if(Pv)return df;Pv=1;var n=Rc(),e=.431,t=1,r=.677,i=.394,o=.444,s=.686,a=.345,l=.413,c=.363,u=.289,h=.15,g=.247,b=.386,p=.05,v=2.39,w=1.01,S=.81,C=.71,E=.25,A=.04,R=.111,O=.166,H=.2,q=.6,U=.1,F=10,Y=2/F,X={xHeight:e,quad:t,num1:r,num2:i,num3:o,denom1:s,denom2:a,sup1:l,sup2:c,sup3:u,sub1:h,sub2:g,supDrop:b,subDrop:p,axisHeight:E,defaultRuleThickness:A,bigOpSpacing1:R,bigOpSpacing2:O,bigOpSpacing3:H,bigOpSpacing4:q,bigOpSpacing5:U,ptPerEm:F,emPerEx:e/t,doubleRuleSep:Y,delim1:v,getDelim2:function(ee){if(ee.size===n.TEXT.size)return w;if(ee.size===n.SCRIPT.size)return S;if(ee.size===n.SCRIPTSCRIPT.size)return C;throw new Error("Unexpected style size: "+ee.size)}},oe=dD(),K=function(ee,$){var Q=oe[$][ee.charCodeAt(0)];if(Q)return{depth:Q[0],height:Q[1],italic:Q[2],skew:Q[3],width:Q[4]}};return df={metrics:X,getCharacterMetrics:K},df}var hf={exports:{}},Fv;function Oc(){return Fv||(Fv=1,function(n){n.exports={math:{},text:{}};function e(O,H,q,U,F){n.exports[O][F]={font:H,group:q,replace:U}}var t="math",r="text",i="main",o="ams",s="accent",a="bin",l="close",c="inner",u="mathord",h="op",g="open",b="punct",p="rel",v="spacing",w="textord";e(t,i,p,"≡","\\equiv"),e(t,i,p,"≺","\\prec"),e(t,i,p,"≻","\\succ"),e(t,i,p,"∼","\\sim"),e(t,i,p,"⊥","\\perp"),e(t,i,p,"⪯","\\preceq"),e(t,i,p,"⪰","\\succeq"),e(t,i,p,"≃","\\simeq"),e(t,i,p,"∣","\\mid"),e(t,i,p,"≪","\\ll"),e(t,i,p,"≫","\\gg"),e(t,i,p,"≍","\\asymp"),e(t,i,p,"∥","\\parallel"),e(t,i,p,"⋈","\\bowtie"),e(t,i,p,"⌣","\\smile"),e(t,i,p,"⊑","\\sqsubseteq"),e(t,i,p,"⊒","\\sqsupseteq"),e(t,i,p,"≐","\\doteq"),e(t,i,p,"⌢","\\frown"),e(t,i,p,"∋","\\ni"),e(t,i,p,"∝","\\propto"),e(t,i,p,"⊢","\\vdash"),e(t,i,p,"⊣","\\dashv"),e(t,i,p,"∋","\\owns"),e(t,i,b,".","\\ldotp"),e(t,i,b,"⋅","\\cdotp"),e(t,i,w,"#","\\#"),e(t,i,w,"&","\\&"),e(t,i,w,"ℵ","\\aleph"),e(t,i,w,"∀","\\forall"),e(t,i,w,"ℏ","\\hbar"),e(t,i,w,"∃","\\exists"),e(t,i,w,"∇","\\nabla"),e(t,i,w,"♭","\\flat"),e(t,i,w,"ℓ","\\ell"),e(t,i,w,"♮","\\natural"),e(t,i,w,"♣","\\clubsuit"),e(t,i,w,"℘","\\wp"),e(t,i,w,"♯","\\sharp"),e(t,i,w,"♢","\\diamondsuit"),e(t,i,w,"ℜ","\\Re"),e(t,i,w,"♡","\\heartsuit"),e(t,i,w,"ℑ","\\Im"),e(t,i,w,"♠","\\spadesuit"),e(t,i,w,"†","\\dag"),e(t,i,w,"‡","\\ddag"),e(t,i,l,"⎱","\\rmoustache"),e(t,i,g,"⎰","\\lmoustache"),e(t,i,l,"⟯","\\rgroup"),e(t,i,g,"⟮","\\lgroup"),e(t,i,a,"∓","\\mp"),e(t,i,a,"⊖","\\ominus"),e(t,i,a,"⊎","\\uplus"),e(t,i,a,"⊓","\\sqcap"),e(t,i,a,"∗","\\ast"),e(t,i,a,"⊔","\\sqcup"),e(t,i,a,"◯","\\bigcirc"),e(t,i,a,"∙","\\bullet"),e(t,i,a,"‡","\\ddagger"),e(t,i,a,"≀","\\wr"),e(t,i,a,"⨿","\\amalg"),e(t,i,p,"⟵","\\longleftarrow"),e(t,i,p,"⇐","\\Leftarrow"),e(t,i,p,"⟸","\\Longleftarrow"),e(t,i,p,"⟶","\\longrightarrow"),e(t,i,p,"⇒","\\Rightarrow"),e(t,i,p,"⟹","\\Longrightarrow"),e(t,i,p,"↔","\\leftrightarrow"),e(t,i,p,"⟷","\\longleftrightarrow"),e(t,i,p,"⇔","\\Leftrightarrow"),e(t,i,p,"⟺","\\Longleftrightarrow"),e(t,i,p,"↦","\\mapsto"),e(t,i,p,"⟼","\\longmapsto"),e(t,i,p,"↗","\\nearrow"),e(t,i,p,"↩","\\hookleftarrow"),e(t,i,p,"↪","\\hookrightarrow"),e(t,i,p,"↘","\\searrow"),e(t,i,p,"↼","\\leftharpoonup"),e(t,i,p,"⇀","\\rightharpoonup"),e(t,i,p,"↙","\\swarrow"),e(t,i,p,"↽","\\leftharpoondown"),e(t,i,p,"⇁","\\rightharpoondown"),e(t,i,p,"↖","\\nwarrow"),e(t,i,p,"⇌","\\rightleftharpoons"),e(t,o,p,"≮","\\nless"),e(t,o,p,"","\\nleqslant"),e(t,o,p,"","\\nleqq"),e(t,o,p,"⪇","\\lneq"),e(t,o,p,"≨","\\lneqq"),e(t,o,p,"","\\lvertneqq"),e(t,o,p,"⋦","\\lnsim"),e(t,o,p,"⪉","\\lnapprox"),e(t,o,p,"⊀","\\nprec"),e(t,o,p,"⋠","\\npreceq"),e(t,o,p,"⋨","\\precnsim"),e(t,o,p,"⪹","\\precnapprox"),e(t,o,p,"≁","\\nsim"),e(t,o,p,"","\\nshortmid"),e(t,o,p,"∤","\\nmid"),e(t,o,p,"⊬","\\nvdash"),e(t,o,p,"⊭","\\nvDash"),e(t,o,p,"⋪","\\ntriangleleft"),e(t,o,p,"⋬","\\ntrianglelefteq"),e(t,o,p,"⊊","\\subsetneq"),e(t,o,p,"","\\varsubsetneq"),e(t,o,p,"⫋","\\subsetneqq"),e(t,o,p,"","\\varsubsetneqq"),e(t,o,p,"≯","\\ngtr"),e(t,o,p,"","\\ngeqslant"),e(t,o,p,"","\\ngeqq"),e(t,o,p,"⪈","\\gneq"),e(t,o,p,"≩","\\gneqq"),e(t,o,p,"","\\gvertneqq"),e(t,o,p,"⋧","\\gnsim"),e(t,o,p,"⪊","\\gnapprox"),e(t,o,p,"⊁","\\nsucc"),e(t,o,p,"⋡","\\nsucceq"),e(t,o,p,"⋩","\\succnsim"),e(t,o,p,"⪺","\\succnapprox"),e(t,o,p,"≆","\\ncong"),e(t,o,p,"","\\nshortparallel"),e(t,o,p,"∦","\\nparallel"),e(t,o,p,"⊯","\\nVDash"),e(t,o,p,"⋫","\\ntriangleright"),e(t,o,p,"⋭","\\ntrianglerighteq"),e(t,o,p,"","\\nsupseteqq"),e(t,o,p,"⊋","\\supsetneq"),e(t,o,p,"","\\varsupsetneq"),e(t,o,p,"⫌","\\supsetneqq"),e(t,o,p,"","\\varsupsetneqq"),e(t,o,p,"⊮","\\nVdash"),e(t,o,p,"⪵","\\precneqq"),e(t,o,p,"⪶","\\succneqq"),e(t,o,p,"","\\nsubseteqq"),e(t,o,a,"⊴","\\unlhd"),e(t,o,a,"⊵","\\unrhd"),e(t,o,p,"↚","\\nleftarrow"),e(t,o,p,"↛","\\nrightarrow"),e(t,o,p,"⇍","\\nLeftarrow"),e(t,o,p,"⇏","\\nRightarrow"),e(t,o,p,"↮","\\nleftrightarrow"),e(t,o,p,"⇎","\\nLeftrightarrow"),e(t,o,p,"△","\\vartriangle"),e(t,o,w,"ℏ","\\hslash"),e(t,o,w,"▽","\\triangledown"),e(t,o,w,"◊","\\lozenge"),e(t,o,w,"Ⓢ","\\circledS"),e(t,o,w,"®","\\circledR"),e(t,o,w,"∡","\\measuredangle"),e(t,o,w,"∄","\\nexists"),e(t,o,w,"℧","\\mho"),e(t,o,w,"Ⅎ","\\Finv"),e(t,o,w,"⅁","\\Game"),e(t,o,w,"k","\\Bbbk"),e(t,o,w,"‵","\\backprime"),e(t,o,w,"▲","\\blacktriangle"),e(t,o,w,"▼","\\blacktriangledown"),e(t,o,w,"■","\\blacksquare"),e(t,o,w,"⧫","\\blacklozenge"),e(t,o,w,"★","\\bigstar"),e(t,o,w,"∢","\\sphericalangle"),e(t,o,w,"∁","\\complement"),e(t,o,w,"ð","\\eth"),e(t,o,w,"╱","\\diagup"),e(t,o,w,"╲","\\diagdown"),e(t,o,w,"□","\\square"),e(t,o,w,"□","\\Box"),e(t,o,w,"◊","\\Diamond"),e(t,o,w,"¥","\\yen"),e(t,o,w,"✓","\\checkmark"),e(t,o,w,"ℶ","\\beth"),e(t,o,w,"ℸ","\\daleth"),e(t,o,w,"ℷ","\\gimel"),e(t,o,w,"ϝ","\\digamma"),e(t,o,w,"ϰ","\\varkappa"),e(t,o,g,"┌","\\ulcorner"),e(t,o,l,"┐","\\urcorner"),e(t,o,g,"└","\\llcorner"),e(t,o,l,"┘","\\lrcorner"),e(t,o,p,"≦","\\leqq"),e(t,o,p,"⩽","\\leqslant"),e(t,o,p,"⪕","\\eqslantless"),e(t,o,p,"≲","\\lesssim"),e(t,o,p,"⪅","\\lessapprox"),e(t,o,p,"≊","\\approxeq"),e(t,o,a,"⋖","\\lessdot"),e(t,o,p,"⋘","\\lll"),e(t,o,p,"≶","\\lessgtr"),e(t,o,p,"⋚","\\lesseqgtr"),e(t,o,p,"⪋","\\lesseqqgtr"),e(t,o,p,"≑","\\doteqdot"),e(t,o,p,"≓","\\risingdotseq"),e(t,o,p,"≒","\\fallingdotseq"),e(t,o,p,"∽","\\backsim"),e(t,o,p,"⋍","\\backsimeq"),e(t,o,p,"⫅","\\subseteqq"),e(t,o,p,"⋐","\\Subset"),e(t,o,p,"⊏","\\sqsubset"),e(t,o,p,"≼","\\preccurlyeq"),e(t,o,p,"⋞","\\curlyeqprec"),e(t,o,p,"≾","\\precsim"),e(t,o,p,"⪷","\\precapprox"),e(t,o,p,"⊲","\\vartriangleleft"),e(t,o,p,"⊴","\\trianglelefteq"),e(t,o,p,"⊨","\\vDash"),e(t,o,p,"⊪","\\Vvdash"),e(t,o,p,"⌣","\\smallsmile"),e(t,o,p,"⌢","\\smallfrown"),e(t,o,p,"≏","\\bumpeq"),e(t,o,p,"≎","\\Bumpeq"),e(t,o,p,"≧","\\geqq"),e(t,o,p,"⩾","\\geqslant"),e(t,o,p,"⪖","\\eqslantgtr"),e(t,o,p,"≳","\\gtrsim"),e(t,o,p,"⪆","\\gtrapprox"),e(t,o,a,"⋗","\\gtrdot"),e(t,o,p,"⋙","\\ggg"),e(t,o,p,"≷","\\gtrless"),e(t,o,p,"⋛","\\gtreqless"),e(t,o,p,"⪌","\\gtreqqless"),e(t,o,p,"≖","\\eqcirc"),e(t,o,p,"≗","\\circeq"),e(t,o,p,"≜","\\triangleq"),e(t,o,p,"∼","\\thicksim"),e(t,o,p,"≈","\\thickapprox"),e(t,o,p,"⫆","\\supseteqq"),e(t,o,p,"⋑","\\Supset"),e(t,o,p,"⊐","\\sqsupset"),e(t,o,p,"≽","\\succcurlyeq"),e(t,o,p,"⋟","\\curlyeqsucc"),e(t,o,p,"≿","\\succsim"),e(t,o,p,"⪸","\\succapprox"),e(t,o,p,"⊳","\\vartriangleright"),e(t,o,p,"⊵","\\trianglerighteq"),e(t,o,p,"⊩","\\Vdash"),e(t,o,p,"∣","\\shortmid"),e(t,o,p,"∥","\\shortparallel"),e(t,o,p,"≬","\\between"),e(t,o,p,"⋔","\\pitchfork"),e(t,o,p,"∝","\\varpropto"),e(t,o,p,"◀","\\blacktriangleleft"),e(t,o,p,"∴","\\therefore"),e(t,o,p,"∍","\\backepsilon"),e(t,o,p,"▶","\\blacktriangleright"),e(t,o,p,"∵","\\because"),e(t,o,p,"⋘","\\llless"),e(t,o,p,"⋙","\\gggtr"),e(t,o,a,"⊲","\\lhd"),e(t,o,a,"⊳","\\rhd"),e(t,o,p,"≂","\\eqsim"),e(t,i,p,"⋈","\\Join"),e(t,o,p,"≑","\\Doteq"),e(t,o,a,"∔","\\dotplus"),e(t,o,a,"∖","\\smallsetminus"),e(t,o,a,"⋒","\\Cap"),e(t,o,a,"⋓","\\Cup"),e(t,o,a,"⩞","\\doublebarwedge"),e(t,o,a,"⊟","\\boxminus"),e(t,o,a,"⊞","\\boxplus"),e(t,o,a,"⋇","\\divideontimes"),e(t,o,a,"⋉","\\ltimes"),e(t,o,a,"⋊","\\rtimes"),e(t,o,a,"⋋","\\leftthreetimes"),e(t,o,a,"⋌","\\rightthreetimes"),e(t,o,a,"⋏","\\curlywedge"),e(t,o,a,"⋎","\\curlyvee"),e(t,o,a,"⊝","\\circleddash"),e(t,o,a,"⊛","\\circledast"),e(t,o,a,"⋅","\\centerdot"),e(t,o,a,"⊺","\\intercal"),e(t,o,a,"⋒","\\doublecap"),e(t,o,a,"⋓","\\doublecup"),e(t,o,a,"⊠","\\boxtimes"),e(t,o,p,"⇢","\\dashrightarrow"),e(t,o,p,"⇠","\\dashleftarrow"),e(t,o,p,"⇇","\\leftleftarrows"),e(t,o,p,"⇆","\\leftrightarrows"),e(t,o,p,"⇚","\\Lleftarrow"),e(t,o,p,"↞","\\twoheadleftarrow"),e(t,o,p,"↢","\\leftarrowtail"),e(t,o,p,"↫","\\looparrowleft"),e(t,o,p,"⇋","\\leftrightharpoons"),e(t,o,p,"↶","\\curvearrowleft"),e(t,o,p,"↺","\\circlearrowleft"),e(t,o,p,"↰","\\Lsh"),e(t,o,p,"⇈","\\upuparrows"),e(t,o,p,"↿","\\upharpoonleft"),e(t,o,p,"⇃","\\downharpoonleft"),e(t,o,p,"⊸","\\multimap"),e(t,o,p,"↭","\\leftrightsquigarrow"),e(t,o,p,"⇉","\\rightrightarrows"),e(t,o,p,"⇄","\\rightleftarrows"),e(t,o,p,"↠","\\twoheadrightarrow"),e(t,o,p,"↣","\\rightarrowtail"),e(t,o,p,"↬","\\looparrowright"),e(t,o,p,"↷","\\curvearrowright"),e(t,o,p,"↻","\\circlearrowright"),e(t,o,p,"↱","\\Rsh"),e(t,o,p,"⇊","\\downdownarrows"),e(t,o,p,"↾","\\upharpoonright"),e(t,o,p,"⇂","\\downharpoonright"),e(t,o,p,"⇝","\\rightsquigarrow"),e(t,o,p,"⇝","\\leadsto"),e(t,o,p,"⇛","\\Rrightarrow"),e(t,o,p,"↾","\\restriction"),e(t,i,w,"‘","`"),e(t,i,w,"$","\\$"),e(t,i,w,"%","\\%"),e(t,i,w,"_","\\_"),e(t,i,w,"∠","\\angle"),e(t,i,w,"∞","\\infty"),e(t,i,w,"′","\\prime"),e(t,i,w,"△","\\triangle"),e(t,i,w,"Γ","\\Gamma"),e(t,i,w,"Δ","\\Delta"),e(t,i,w,"Θ","\\Theta"),e(t,i,w,"Λ","\\Lambda"),e(t,i,w,"Ξ","\\Xi"),e(t,i,w,"Π","\\Pi"),e(t,i,w,"Σ","\\Sigma"),e(t,i,w,"Υ","\\Upsilon"),e(t,i,w,"Φ","\\Phi"),e(t,i,w,"Ψ","\\Psi"),e(t,i,w,"Ω","\\Omega"),e(t,i,w,"¬","\\neg"),e(t,i,w,"¬","\\lnot"),e(t,i,w,"⊤","\\top"),e(t,i,w,"⊥","\\bot"),e(t,i,w,"∅","\\emptyset"),e(t,o,w,"∅","\\varnothing"),e(t,i,u,"α","\\alpha"),e(t,i,u,"β","\\beta"),e(t,i,u,"γ","\\gamma"),e(t,i,u,"δ","\\delta"),e(t,i,u,"ϵ","\\epsilon"),e(t,i,u,"ζ","\\zeta"),e(t,i,u,"η","\\eta"),e(t,i,u,"θ","\\theta"),e(t,i,u,"ι","\\iota"),e(t,i,u,"κ","\\kappa"),e(t,i,u,"λ","\\lambda"),e(t,i,u,"μ","\\mu"),e(t,i,u,"ν","\\nu"),e(t,i,u,"ξ","\\xi"),e(t,i,u,"o","\\omicron"),e(t,i,u,"π","\\pi"),e(t,i,u,"ρ","\\rho"),e(t,i,u,"σ","\\sigma"),e(t,i,u,"τ","\\tau"),e(t,i,u,"υ","\\upsilon"),e(t,i,u,"ϕ","\\phi"),e(t,i,u,"χ","\\chi"),e(t,i,u,"ψ","\\psi"),e(t,i,u,"ω","\\omega"),e(t,i,u,"ε","\\varepsilon"),e(t,i,u,"ϑ","\\vartheta"),e(t,i,u,"ϖ","\\varpi"),e(t,i,u,"ϱ","\\varrho"),e(t,i,u,"ς","\\varsigma"),e(t,i,u,"φ","\\varphi"),e(t,i,a,"∗","*"),e(t,i,a,"+","+"),e(t,i,a,"−","-"),e(t,i,a,"⋅","\\cdot"),e(t,i,a,"∘","\\circ"),e(t,i,a,"÷","\\div"),e(t,i,a,"±","\\pm"),e(t,i,a,"×","\\times"),e(t,i,a,"∩","\\cap"),e(t,i,a,"∪","\\cup"),e(t,i,a,"∖","\\setminus"),e(t,i,a,"∧","\\land"),e(t,i,a,"∨","\\lor"),e(t,i,a,"∧","\\wedge"),e(t,i,a,"∨","\\vee"),e(t,i,w,"√","\\surd"),e(t,i,g,"(","("),e(t,i,g,"[","["),e(t,i,g,"⟨","\\langle"),e(t,i,g,"∣","\\lvert"),e(t,i,g,"∥","\\lVert"),e(t,i,l,")",")"),e(t,i,l,"]","]"),e(t,i,l,"?","?"),e(t,i,l,"!","!"),e(t,i,l,"⟩","\\rangle"),e(t,i,l,"∣","\\rvert"),e(t,i,l,"∥","\\rVert"),e(t,i,p,"=","="),e(t,i,p,"<","<"),e(t,i,p,">",">"),e(t,i,p,":",":"),e(t,i,p,"≈","\\approx"),e(t,i,p,"≅","\\cong"),e(t,i,p,"≥","\\ge"),e(t,i,p,"≥","\\geq"),e(t,i,p,"←","\\gets"),e(t,i,p,">","\\gt"),e(t,i,p,"∈","\\in"),e(t,i,p,"∉","\\notin"),e(t,i,p,"⊂","\\subset"),e(t,i,p,"⊃","\\supset"),e(t,i,p,"⊆","\\subseteq"),e(t,i,p,"⊇","\\supseteq"),e(t,o,p,"⊈","\\nsubseteq"),e(t,o,p,"⊉","\\nsupseteq"),e(t,i,p,"⊨","\\models"),e(t,i,p,"←","\\leftarrow"),e(t,i,p,"≤","\\le"),e(t,i,p,"≤","\\leq"),e(t,i,p,"<","\\lt"),e(t,i,p,"≠","\\ne"),e(t,i,p,"≠","\\neq"),e(t,i,p,"→","\\rightarrow"),e(t,i,p,"→","\\to"),e(t,o,p,"≱","\\ngeq"),e(t,o,p,"≰","\\nleq"),e(t,i,v,null,"\\!"),e(t,i,v," ","\\ "),e(t,i,v," ","~"),e(t,i,v,null,"\\,"),e(t,i,v,null,"\\:"),e(t,i,v,null,"\\;"),e(t,i,v,null,"\\enspace"),e(t,i,v,null,"\\qquad"),e(t,i,v,null,"\\quad"),e(t,i,v," ","\\space"),e(t,i,b,",",","),e(t,i,b,";",";"),e(t,i,b,":","\\colon"),e(t,o,a,"⊼","\\barwedge"),e(t,o,a,"⊻","\\veebar"),e(t,i,a,"⊙","\\odot"),e(t,i,a,"⊕","\\oplus"),e(t,i,a,"⊗","\\otimes"),e(t,i,w,"∂","\\partial"),e(t,i,a,"⊘","\\oslash"),e(t,o,a,"⊚","\\circledcirc"),e(t,o,a,"⊡","\\boxdot"),e(t,i,a,"△","\\bigtriangleup"),e(t,i,a,"▽","\\bigtriangledown"),e(t,i,a,"†","\\dagger"),e(t,i,a,"⋄","\\diamond"),e(t,i,a,"⋆","\\star"),e(t,i,a,"◃","\\triangleleft"),e(t,i,a,"▹","\\triangleright"),e(t,i,g,"{","\\{"),e(t,i,l,"}","\\}"),e(t,i,g,"{","\\lbrace"),e(t,i,l,"}","\\rbrace"),e(t,i,g,"[","\\lbrack"),e(t,i,l,"]","\\rbrack"),e(t,i,g,"⌊","\\lfloor"),e(t,i,l,"⌋","\\rfloor"),e(t,i,g,"⌈","\\lceil"),e(t,i,l,"⌉","\\rceil"),e(t,i,w,"\\","\\backslash"),e(t,i,w,"∣","|"),e(t,i,w,"∣","\\vert"),e(t,i,w,"∥","\\|"),e(t,i,w,"∥","\\Vert"),e(t,i,p,"↑","\\uparrow"),e(t,i,p,"⇑","\\Uparrow"),e(t,i,p,"↓","\\downarrow"),e(t,i,p,"⇓","\\Downarrow"),e(t,i,p,"↕","\\updownarrow"),e(t,i,p,"⇕","\\Updownarrow"),e(t,t,h,"∐","\\coprod"),e(t,t,h,"⋁","\\bigvee"),e(t,t,h,"⋀","\\bigwedge"),e(t,t,h,"⨄","\\biguplus"),e(t,t,h,"⋂","\\bigcap"),e(t,t,h,"⋃","\\bigcup"),e(t,t,h,"∫","\\int"),e(t,t,h,"∫","\\intop"),e(t,t,h,"∬","\\iint"),e(t,t,h,"∭","\\iiint"),e(t,t,h,"∏","\\prod"),e(t,t,h,"∑","\\sum"),e(t,t,h,"⨂","\\bigotimes"),e(t,t,h,"⨁","\\bigoplus"),e(t,t,h,"⨀","\\bigodot"),e(t,t,h,"∮","\\oint"),e(t,t,h,"⨆","\\bigsqcup"),e(t,t,h,"∫","\\smallint"),e(t,i,c,"…","\\ldots"),e(t,i,c,"⋯","\\cdots"),e(t,i,c,"⋱","\\ddots"),e(t,i,w,"⋮","\\vdots"),e(t,i,s,"´","\\acute"),e(t,i,s,"`","\\grave"),e(t,i,s,"¨","\\ddot"),e(t,i,s,"~","\\tilde"),e(t,i,s,"¯","\\bar"),e(t,i,s,"˘","\\breve"),e(t,i,s,"ˇ","\\check"),e(t,i,s,"^","\\hat"),e(t,i,s,"⃗","\\vec"),e(t,i,s,"˙","\\dot"),e(t,i,u,"ı","\\imath"),e(t,i,u,"ȷ","\\jmath"),e(r,i,v," ","\\ "),e(r,i,v," "," "),e(r,i,v," ","~");var S,C,E='0123456789/@."';for(S=0;S<E.length;S++)C=E.charAt(S),e(t,i,w,C,C);var A="0123456789`!@*()-=+[]'\";:?/.,";for(S=0;S<A.length;S++)C=A.charAt(S),e(r,i,w,C,C);var R="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(S=0;S<R.length;S++)C=R.charAt(S),e(t,i,u,C,C),e(r,i,w,C,C)}(hf)),hf.exports}var ff,zv;function Ic(){if(zv)return ff;zv=1;var n=Lv(),e=pa(),t=Oc(),r=Yr(),i=["\\Gamma","\\Delta","\\Theta","\\Lambda","\\Xi","\\Pi","\\Sigma","\\Upsilon","\\Phi","\\Psi","\\Omega"],o=["ı","ȷ"],s=function(E,A,R,O,H){t[R][E]&&t[R][E].replace&&(E=t[R][E].replace);var q=e.getCharacterMetrics(E,A),U;return q?U=new n.symbolNode(E,q.height,q.depth,q.italic,q.skew,H):(typeof console<"u"&&console.warn("No character metrics for '"+E+"' in style '"+A+"'"),U=new n.symbolNode(E,0,0,0,0,H)),O&&(U.style.color=O),U},a=function(E,A,R,O){return E==="\\"||t[A][E].font==="main"?s(E,"Main-Regular",A,R,O):s(E,"AMS-Regular",A,R,O.concat(["amsrm"]))},l=function(E,A,R,O,H){if(H==="mathord")return c(E,A,R,O);if(H==="textord")return s(E,"Main-Regular",A,R,O.concat(["mathrm"]));throw new Error("unexpected type: "+H+" in mathDefault")},c=function(E,A,R,O){return/[0-9]/.test(E.charAt(0))||r.contains(o,E)||r.contains(i,E)?s(E,"Main-Italic",A,R,O.concat(["mainit"])):s(E,"Math-Italic",A,R,O.concat(["mathit"]))},u=function(E,A,R){var O=E.mode,H=E.value;t[O][H]&&t[O][H].replace&&(H=t[O][H].replace);var q=["mord"],U=A.getColor(),F=A.font;if(F){if(F==="mathit"||r.contains(o,H))return c(H,O,U,q);var Y=C[F].fontName;return e.getCharacterMetrics(H,Y)?s(H,Y,O,U,q.concat([F])):l(H,O,U,q,R)}else return l(H,O,U,q,R)},h=function(E){var A=0,R=0,O=0;if(E.children)for(var H=0;H<E.children.length;H++)E.children[H].height>A&&(A=E.children[H].height),E.children[H].depth>R&&(R=E.children[H].depth),E.children[H].maxFontSize>O&&(O=E.children[H].maxFontSize);E.height=A,E.depth=R,E.maxFontSize=O},g=function(E,A,R){var O=new n.span(E,A);return h(O),R&&(O.style.color=R),O},b=function(E){var A=new n.documentFragment(E);return h(A),A},p=function(E,A){var R=g([],[new n.symbolNode("​")]);R.style.fontSize=A/E.style.sizeMultiplier+"em";var O=g(["fontsize-ensurer","reset-"+E.size,"size5"],[R]);return O},v=function(E,A,R,O){var H,q,U;if(A==="individualShift"){var F=E;for(E=[F[0]],H=-F[0].shift-F[0].elem.depth,q=H,U=1;U<F.length;U++){var Y=-F[U].shift-q-F[U].elem.depth,X=Y-(F[U-1].elem.height+F[U-1].elem.depth);q=q+Y,E.push({type:"kern",size:X}),E.push(F[U])}}else if(A==="top"){var oe=R;for(U=0;U<E.length;U++)E[U].type==="kern"?oe-=E[U].size:oe-=E[U].elem.height+E[U].elem.depth;H=oe}else A==="bottom"?H=-R:A==="shift"?H=-E[0].elem.depth-R:A==="firstBaseline"?H=-E[0].elem.depth:H=0;var K=0;for(U=0;U<E.length;U++)E[U].type==="elem"&&(K=Math.max(K,E[U].elem.maxFontSize));var ee=p(O,K),$=[];for(q=H,U=0;U<E.length;U++)if(E[U].type==="kern")q+=E[U].size;else{var Q=E[U].elem,ie=-Q.depth-q;q+=Q.height+Q.depth;var Z=g([],[ee,Q]);Z.height-=ie,Z.depth+=ie,Z.style.top=ie+"em",$.push(Z)}var J=g(["baseline-fix"],[ee,new n.symbolNode("​")]);$.push(J);var ue=g(["vlist"],$);return ue.height=Math.max(q,ue.height),ue.depth=Math.max(-H,ue.depth),ue},w={size1:.5,size2:.7,size3:.8,size4:.9,size5:1,size6:1.2,size7:1.44,size8:1.73,size9:2.07,size10:2.49},S={"\\qquad":{size:"2em",className:"qquad"},"\\quad":{size:"1em",className:"quad"},"\\enspace":{size:"0.5em",className:"enspace"},"\\;":{size:"0.277778em",className:"thickspace"},"\\:":{size:"0.22222em",className:"mediumspace"},"\\,":{size:"0.16667em",className:"thinspace"},"\\!":{size:"-0.16667em",className:"negativethinspace"}},C={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}};return ff={fontMap:C,makeSymbol:s,mathsym:a,makeSpan:g,makeFragment:b,makeVList:v,makeOrd:u,sizingMultiplier:w,spacingFunctions:S},ff}var pf,qv;function hD(){if(qv)return pf;qv=1;var n=Ai(),e=Rc(),t=Ic(),r=pa(),i=Oc(),o=Yr(),s=t.makeSpan,a=function(F,Y){return i.math[F]&&i.math[F].replace?r.getCharacterMetrics(i.math[F].replace,Y):r.getCharacterMetrics(F,Y)},l=function(F,Y,X){return t.makeSymbol(F,"Size"+Y+"-Regular",X)},c=function(F,Y,X){var oe=s(["style-wrap",X.style.reset(),Y.cls()],[F]),K=Y.sizeMultiplier/X.style.sizeMultiplier;return oe.height*=K,oe.depth*=K,oe.maxFontSize=Y.sizeMultiplier,oe},u=function(F,Y,X,oe,K){var ee=t.makeSymbol(F,"Main-Regular",K),$=c(ee,Y,oe);if(X){var Q=(1-oe.style.sizeMultiplier/Y.sizeMultiplier)*r.metrics.axisHeight;$.style.top=Q+"em",$.height-=Q,$.depth+=Q}return $},h=function(F,Y,X,oe,K){var ee=l(F,Y,K),$=c(s(["delimsizing","size"+Y],[ee],oe.getColor()),e.TEXT,oe);if(X){var Q=(1-oe.style.sizeMultiplier)*r.metrics.axisHeight;$.style.top=Q+"em",$.height-=Q,$.depth+=Q}return $},g=function(F,Y,X){var oe;Y==="Size1-Regular"?oe="delim-size1":Y==="Size4-Regular"&&(oe="delim-size4");var K=s(["delimsizinginner",oe],[s([],[t.makeSymbol(F,Y,X)])]);return{type:"elem",elem:K}},b=function(F,Y,X,oe,K){var ee,$,Q,ie;ee=Q=ie=F,$=null;var Z="Size1-Regular";F==="\\uparrow"?Q=ie="⏐":F==="\\Uparrow"?Q=ie="‖":F==="\\downarrow"?ee=Q="⏐":F==="\\Downarrow"?ee=Q="‖":F==="\\updownarrow"?(ee="\\uparrow",Q="⏐",ie="\\downarrow"):F==="\\Updownarrow"?(ee="\\Uparrow",Q="‖",ie="\\Downarrow"):F==="["||F==="\\lbrack"?(ee="⎡",Q="⎢",ie="⎣",Z="Size4-Regular"):F==="]"||F==="\\rbrack"?(ee="⎤",Q="⎥",ie="⎦",Z="Size4-Regular"):F==="\\lfloor"?(Q=ee="⎢",ie="⎣",Z="Size4-Regular"):F==="\\lceil"?(ee="⎡",Q=ie="⎢",Z="Size4-Regular"):F==="\\rfloor"?(Q=ee="⎥",ie="⎦",Z="Size4-Regular"):F==="\\rceil"?(ee="⎤",Q=ie="⎥",Z="Size4-Regular"):F==="("?(ee="⎛",Q="⎜",ie="⎝",Z="Size4-Regular"):F===")"?(ee="⎞",Q="⎟",ie="⎠",Z="Size4-Regular"):F==="\\{"||F==="\\lbrace"?(ee="⎧",$="⎨",ie="⎩",Q="⎪",Z="Size4-Regular"):F==="\\}"||F==="\\rbrace"?(ee="⎫",$="⎬",ie="⎭",Q="⎪",Z="Size4-Regular"):F==="\\lgroup"?(ee="⎧",ie="⎩",Q="⎪",Z="Size4-Regular"):F==="\\rgroup"?(ee="⎫",ie="⎭",Q="⎪",Z="Size4-Regular"):F==="\\lmoustache"?(ee="⎧",ie="⎭",Q="⎪",Z="Size4-Regular"):F==="\\rmoustache"?(ee="⎫",ie="⎩",Q="⎪",Z="Size4-Regular"):F==="\\surd"&&(ee="",ie="⎷",Q="",Z="Size4-Regular");var J=a(ee,Z),ue=J.height+J.depth,fe=a(Q,Z),ke=fe.height+fe.depth,Te=a(ie,Z),Ke=Te.height+Te.depth,Qe=0,Ze=1;if($!==null){var ot=a($,Z);Qe=ot.height+ot.depth,Ze=2}var Be=ue+Ke+Qe,dt=Math.ceil((Y-Be)/(Ze*ke)),tt=Be+dt*Ze*ke,at=r.metrics.axisHeight;X&&(at*=oe.style.sizeMultiplier);var ht=tt/2-at,it=[];it.push(g(ie,Z,K));var ct;if($===null)for(ct=0;ct<dt;ct++)it.push(g(Q,Z,K));else{for(ct=0;ct<dt;ct++)it.push(g(Q,Z,K));for(it.push(g($,Z,K)),ct=0;ct<dt;ct++)it.push(g(Q,Z,K))}it.push(g(ee,Z,K));var Et=t.makeVList(it,"bottom",ht,oe);return c(s(["delimsizing","mult"],[Et],oe.getColor()),e.TEXT,oe)},p=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd"],v=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache"],w=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],S=[0,1.2,1.8,2.4,3],C=function(F,Y,X,oe){if(F==="<"||F==="\\lt"?F="\\langle":(F===">"||F==="\\gt")&&(F="\\rangle"),o.contains(p,F)||o.contains(w,F))return h(F,Y,!1,X,oe);if(o.contains(v,F))return b(F,S[Y],!1,X,oe);throw new n("Illegal delimiter: '"+F+"'")},E=[{type:"small",style:e.SCRIPTSCRIPT},{type:"small",style:e.SCRIPT},{type:"small",style:e.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],A=[{type:"small",style:e.SCRIPTSCRIPT},{type:"small",style:e.SCRIPT},{type:"small",style:e.TEXT},{type:"stack"}],R=[{type:"small",style:e.SCRIPTSCRIPT},{type:"small",style:e.SCRIPT},{type:"small",style:e.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],O=function(F){if(F.type==="small")return"Main-Regular";if(F.type==="large")return"Size"+F.size+"-Regular";if(F.type==="stack")return"Size4-Regular"},H=function(F,Y,X,oe){for(var K=Math.min(2,3-oe.style.size),ee=K;ee<X.length&&X[ee].type!=="stack";ee++){var $=a(F,O(X[ee])),Q=$.height+$.depth;if(X[ee].type==="small"&&(Q*=X[ee].style.sizeMultiplier),Q>Y)return X[ee]}return X[X.length-1]},q=function(F,Y,X,oe,K){F==="<"||F==="\\lt"?F="\\langle":(F===">"||F==="\\gt")&&(F="\\rangle");var ee;o.contains(w,F)?ee=E:o.contains(p,F)?ee=R:ee=A;var $=H(F,Y,ee,oe);if($.type==="small")return u(F,$.style,X,oe,K);if($.type==="large")return h(F,$.size,X,oe,K);if($.type==="stack")return b(F,Y,X,oe,K)},U=function(F,Y,X,oe,K){var ee=r.metrics.axisHeight*oe.style.sizeMultiplier,$=901,Q=5/r.metrics.ptPerEm,ie=Math.max(Y-ee,X+ee),Z=Math.max(ie/500*$,2*ie-Q);return q(F,Z,!0,oe,K)};return pf={sizedDelim:C,customSizedDelim:q,leftRightDelim:U},pf}var mf,Hv;function fD(){if(Hv)return mf;Hv=1;var n=Ai(),e=Rc(),t=Ic(),r=hD(),i=Lv(),o=pa(),s=Yr(),a=t.makeSpan,l=function(C,E,A){for(var R=[],O=0;O<C.length;O++){var H=C[O];R.push(w(H,E,A)),A=H}return R},c={mathord:"mord",textord:"mord",bin:"mbin",rel:"mrel",text:"mord",open:"mopen",close:"mclose",inner:"minner",genfrac:"mord",array:"mord",spacing:"mord",punct:"mpunct",ordgroup:"mord",op:"mop",katex:"mord",overline:"mord",underline:"mord",rule:"mord",leftright:"minner",sqrt:"mord",accent:"mord"},u=function(C){return C==null?c.mathord:C.type==="supsub"?u(C.value.base):C.type==="llap"||C.type==="rlap"?u(C.value):C.type==="color"||C.type==="sizing"||C.type==="styling"?u(C.value.value):C.type==="delimsizing"?c[C.value.delimType]:c[C.type]},h=function(C,E){return C?C.type==="op"?C.value.limits&&(E.style.size===e.DISPLAY.size||C.value.alwaysHandleSupSub):C.type==="accent"?b(C.value.base):null:!1},g=function(C){return C?C.type==="ordgroup"?C.value.length===1?g(C.value[0]):C:C.type==="color"&&C.value.value.length===1?g(C.value.value[0]):C:!1},b=function(C){var E=g(C);return E.type==="mathord"||E.type==="textord"||E.type==="bin"||E.type==="rel"||E.type==="inner"||E.type==="open"||E.type==="close"||E.type==="punct"},p=function(C){return a(["sizing","reset-"+C.size,"size5",C.style.reset(),e.TEXT.cls(),"nulldelimiter"])},v={};v.mathord=function(C,E,A){return t.makeOrd(C,E,"mathord")},v.textord=function(C,E,A){return t.makeOrd(C,E,"textord")},v.bin=function(C,E,A){for(var R="mbin",O=A;O&&O.type==="color";){var H=O.value.value;O=H[H.length-1]}return(!A||s.contains(["mbin","mopen","mrel","mop","mpunct"],u(O)))&&(C.type="textord",R="mord"),t.mathsym(C.value,C.mode,E.getColor(),[R])},v.rel=function(C,E,A){return t.mathsym(C.value,C.mode,E.getColor(),["mrel"])},v.open=function(C,E,A){return t.mathsym(C.value,C.mode,E.getColor(),["mopen"])},v.close=function(C,E,A){return t.mathsym(C.value,C.mode,E.getColor(),["mclose"])},v.inner=function(C,E,A){return t.mathsym(C.value,C.mode,E.getColor(),["minner"])},v.punct=function(C,E,A){return t.mathsym(C.value,C.mode,E.getColor(),["mpunct"])},v.ordgroup=function(C,E,A){return a(["mord",E.style.cls()],l(C.value,E.reset()))},v.text=function(C,E,A){return a(["text","mord",E.style.cls()],l(C.value.body,E.reset()))},v.color=function(C,E,A){var R=l(C.value.value,E.withColor(C.value.color),A);return new t.makeFragment(R)},v.supsub=function(C,E,A){if(h(C.value.base,E))return v[C.value.base.type](C,E,A);var R=w(C.value.base,E.reset()),O,H,q,U;C.value.sup&&(q=w(C.value.sup,E.withStyle(E.style.sup())),O=a([E.style.reset(),E.style.sup().cls()],[q])),C.value.sub&&(U=w(C.value.sub,E.withStyle(E.style.sub())),H=a([E.style.reset(),E.style.sub().cls()],[U]));var F,Y;b(C.value.base)?(F=0,Y=0):(F=R.height-o.metrics.supDrop,Y=R.depth+o.metrics.subDrop);var X;E.style===e.DISPLAY?X=o.metrics.sup1:E.style.cramped?X=o.metrics.sup3:X=o.metrics.sup2;var oe=e.TEXT.sizeMultiplier*E.style.sizeMultiplier,K=.5/o.metrics.ptPerEm/oe+"em",ee;if(!C.value.sup)Y=Math.max(Y,o.metrics.sub1,U.height-.8*o.metrics.xHeight),ee=t.makeVList([{type:"elem",elem:H}],"shift",Y,E),ee.children[0].style.marginRight=K,R instanceof i.symbolNode&&(ee.children[0].style.marginLeft=-R.italic+"em");else if(!C.value.sub)F=Math.max(F,X,q.depth+.25*o.metrics.xHeight),ee=t.makeVList([{type:"elem",elem:O}],"shift",-F,E),ee.children[0].style.marginRight=K;else{F=Math.max(F,X,q.depth+.25*o.metrics.xHeight),Y=Math.max(Y,o.metrics.sub2);var $=o.metrics.defaultRuleThickness;if(F-q.depth-(U.height-Y)<4*$){Y=4*$-(F-q.depth)+U.height;var Q=.8*o.metrics.xHeight-(F-q.depth);Q>0&&(F+=Q,Y-=Q)}ee=t.makeVList([{type:"elem",elem:H,shift:Y},{type:"elem",elem:O,shift:-F}],"individualShift",null,E),R instanceof i.symbolNode&&(ee.children[0].style.marginLeft=-R.italic+"em"),ee.children[0].style.marginRight=K,ee.children[1].style.marginRight=K}return a([u(C.value.base)],[R,ee])},v.genfrac=function(C,E,A){var R=E.style;C.value.size==="display"?R=e.DISPLAY:C.value.size==="text"&&(R=e.TEXT);var O=R.fracNum(),H=R.fracDen(),q=w(C.value.numer,E.withStyle(O)),U=a([R.reset(),O.cls()],[q]),F=w(C.value.denom,E.withStyle(H)),Y=a([R.reset(),H.cls()],[F]),X;C.value.hasBarLine?X=o.metrics.defaultRuleThickness/E.style.sizeMultiplier:X=0;var oe,K,ee;R.size===e.DISPLAY.size?(oe=o.metrics.num1,X>0?K=3*X:K=7*o.metrics.defaultRuleThickness,ee=o.metrics.denom1):(X>0?(oe=o.metrics.num2,K=X):(oe=o.metrics.num3,K=3*o.metrics.defaultRuleThickness),ee=o.metrics.denom2);var $;if(X===0){var Q=oe-q.depth-(F.height-ee);Q<K&&(oe+=.5*(K-Q),ee+=.5*(K-Q)),$=t.makeVList([{type:"elem",elem:Y,shift:ee},{type:"elem",elem:U,shift:-oe}],"individualShift",null,E)}else{var ie=o.metrics.axisHeight;oe-q.depth-(ie+.5*X)<K&&(oe+=K-(oe-q.depth-(ie+.5*X))),ie-.5*X-(F.height-ee)<K&&(ee+=K-(ie-.5*X-(F.height-ee)));var Z=a([E.style.reset(),e.TEXT.cls(),"frac-line"]);Z.height=X;var J=-(ie-.5*X);$=t.makeVList([{type:"elem",elem:Y,shift:ee},{type:"elem",elem:Z,shift:J},{type:"elem",elem:U,shift:-oe}],"individualShift",null,E)}$.height*=R.sizeMultiplier/E.style.sizeMultiplier,$.depth*=R.sizeMultiplier/E.style.sizeMultiplier;var ue;R.size===e.DISPLAY.size?ue=o.metrics.delim1:ue=o.metrics.getDelim2(R);var fe,ke;return C.value.leftDelim==null?fe=p(E):fe=r.customSizedDelim(C.value.leftDelim,ue,!0,E.withStyle(R),C.mode),C.value.rightDelim==null?ke=p(E):ke=r.customSizedDelim(C.value.rightDelim,ue,!0,E.withStyle(R),C.mode),a(["mord",E.style.reset(),R.cls()],[fe,a(["mfrac"],[$]),ke],E.getColor())},v.array=function(C,E,A){var R,O,H=C.value.body.length,q=0,U=new Array(H),F=1/o.metrics.ptPerEm,Y=5*F,X=12*F,oe=s.deflt(C.value.arraystretch,1),K=oe*X,ee=.7*K,$=.3*K,Q=0;for(R=0;R<C.value.body.length;++R){var ie=C.value.body[R],Z=ee,J=$;q<ie.length&&(q=ie.length);var ue=new Array(ie.length);for(O=0;O<ie.length;++O){var fe=w(ie[O],E);J<fe.depth&&(J=fe.depth),Z<fe.height&&(Z=fe.height),ue[O]=fe}var ke=0;if(C.value.rowGaps[R]){switch(ke=C.value.rowGaps[R].value,ke.unit){case"em":ke=ke.number;break;case"ex":ke=ke.number*o.metrics.emPerEx;break;default:console.error("Can't handle unit "+ke.unit),ke=0}ke>0&&(ke+=$,J<ke&&(J=ke),ke=0)}ue.height=Z,ue.depth=J,Q+=Z,ue.pos=Q,Q+=J+ke,U[R]=ue}var Te=Q/2+o.metrics.axisHeight,Ke=C.value.cols||[],Qe=[],Ze,ot;for(O=0,ot=0;O<q||ot<Ke.length;++O,++ot){for(var Be=Ke[ot]||{},dt=!0;Be.type==="separator";){if(dt||(Ze=a(["arraycolsep"],[]),Ze.style.width=o.metrics.doubleRuleSep+"em",Qe.push(Ze)),Be.separator==="|"){var tt=a(["vertical-separator"],[]);tt.style.height=Q+"em",tt.style.verticalAlign=-(Q-Te)+"em",Qe.push(tt)}else throw new n("Invalid separator type: "+Be.separator);ot++,Be=Ke[ot]||{},dt=!1}if(!(O>=q)){var at;(O>0||C.value.hskipBeforeAndAfter)&&(at=s.deflt(Be.pregap,Y),at!==0&&(Ze=a(["arraycolsep"],[]),Ze.style.width=at+"em",Qe.push(Ze)));var ht=[];for(R=0;R<H;++R){var it=U[R],ct=it[O];if(ct){var Et=it.pos-Te;ct.depth=it.depth,ct.height=it.height,ht.push({type:"elem",elem:ct,shift:Et})}}ht=t.makeVList(ht,"individualShift",null,E),ht=a(["col-align-"+(Be.align||"c")],[ht]),Qe.push(ht),(O<q-1||C.value.hskipBeforeAndAfter)&&(at=s.deflt(Be.postgap,Y),at!==0&&(Ze=a(["arraycolsep"],[]),Ze.style.width=at+"em",Qe.push(Ze)))}}return U=a(["mtable"],Qe),a(["mord"],[U],E.getColor())},v.spacing=function(C,E,A){return C.value==="\\ "||C.value==="\\space"||C.value===" "||C.value==="~"?a(["mord","mspace"],[t.mathsym(C.value,C.mode)]):a(["mord","mspace",t.spacingFunctions[C.value].className])},v.llap=function(C,E,A){var R=a(["inner"],[w(C.value.body,E.reset())]),O=a(["fix"],[]);return a(["llap",E.style.cls()],[R,O])},v.rlap=function(C,E,A){var R=a(["inner"],[w(C.value.body,E.reset())]),O=a(["fix"],[]);return a(["rlap",E.style.cls()],[R,O])},v.op=function(C,E,A){var R,O,H=!1;C.type==="supsub"&&(R=C.value.sup,O=C.value.sub,C=C.value.base,H=!0);var q=["\\smallint"],U=!1;E.style.size===e.DISPLAY.size&&C.value.symbol&&!s.contains(q,C.value.body)&&(U=!0);var F,Y=0,X=0;if(C.value.symbol){var oe=U?"Size2-Regular":"Size1-Regular";F=t.makeSymbol(C.value.body,oe,"math",E.getColor(),["op-symbol",U?"large-op":"small-op","mop"]),Y=(F.height-F.depth)/2-o.metrics.axisHeight*E.style.sizeMultiplier,X=F.italic}else{for(var K=[],ee=1;ee<C.value.body.length;ee++)K.push(t.mathsym(C.value.body[ee],C.mode));F=a(["mop"],K,E.getColor())}if(H){F=a([],[F]);var $,Q,ie,Z;if(R){var J=w(R,E.withStyle(E.style.sup()));$=a([E.style.reset(),E.style.sup().cls()],[J]),Q=Math.max(o.metrics.bigOpSpacing1,o.metrics.bigOpSpacing3-J.depth)}if(O){var ue=w(O,E.withStyle(E.style.sub()));ie=a([E.style.reset(),E.style.sub().cls()],[ue]),Z=Math.max(o.metrics.bigOpSpacing2,o.metrics.bigOpSpacing4-ue.height)}var fe,ke,Te;if(!R)ke=F.height-Y,fe=t.makeVList([{type:"kern",size:o.metrics.bigOpSpacing5},{type:"elem",elem:ie},{type:"kern",size:Z},{type:"elem",elem:F}],"top",ke,E),fe.children[0].style.marginLeft=-X+"em";else if(!O)Te=F.depth+Y,fe=t.makeVList([{type:"elem",elem:F},{type:"kern",size:Q},{type:"elem",elem:$},{type:"kern",size:o.metrics.bigOpSpacing5}],"bottom",Te,E),fe.children[1].style.marginLeft=X+"em";else{if(!R&&!O)return F;Te=o.metrics.bigOpSpacing5+ie.height+ie.depth+Z+F.depth+Y,fe=t.makeVList([{type:"kern",size:o.metrics.bigOpSpacing5},{type:"elem",elem:ie},{type:"kern",size:Z},{type:"elem",elem:F},{type:"kern",size:Q},{type:"elem",elem:$},{type:"kern",size:o.metrics.bigOpSpacing5}],"bottom",Te,E),fe.children[0].style.marginLeft=-X+"em",fe.children[2].style.marginLeft=X+"em"}return a(["mop","op-limits"],[fe])}else return C.value.symbol&&(F.style.top=Y+"em"),F},v.katex=function(C,E,A){var R=a(["k"],[t.mathsym("K",C.mode)]),O=a(["a"],[t.mathsym("A",C.mode)]);O.height=(O.height+.2)*.75,O.depth=(O.height-.2)*.75;var H=a(["t"],[t.mathsym("T",C.mode)]),q=a(["e"],[t.mathsym("E",C.mode)]);q.height=q.height-.2155,q.depth=q.depth+.2155;var U=a(["x"],[t.mathsym("X",C.mode)]);return a(["katex-logo","mord"],[R,O,H,q,U],E.getColor())},v.overline=function(C,E,A){var R=w(C.value.body,E.withStyle(E.style.cramp())),O=o.metrics.defaultRuleThickness/E.style.sizeMultiplier,H=a([E.style.reset(),e.TEXT.cls(),"overline-line"]);H.height=O,H.maxFontSize=1;var q=t.makeVList([{type:"elem",elem:R},{type:"kern",size:3*O},{type:"elem",elem:H},{type:"kern",size:O}],"firstBaseline",null,E);return a(["overline","mord"],[q],E.getColor())},v.underline=function(C,E,A){var R=w(C.value.body,E),O=o.metrics.defaultRuleThickness/E.style.sizeMultiplier,H=a([E.style.reset(),e.TEXT.cls(),"underline-line"]);H.height=O,H.maxFontSize=1;var q=t.makeVList([{type:"kern",size:O},{type:"elem",elem:H},{type:"kern",size:3*O},{type:"elem",elem:R}],"top",R.height,E);return a(["underline","mord"],[q],E.getColor())},v.sqrt=function(C,E,A){var R=w(C.value.body,E.withStyle(E.style.cramp())),O=o.metrics.defaultRuleThickness/E.style.sizeMultiplier,H=a([E.style.reset(),e.TEXT.cls(),"sqrt-line"],[],E.getColor());H.height=O,H.maxFontSize=1;var q=O;E.style.id<e.TEXT.id&&(q=o.metrics.xHeight);var U=O+q/4,F=(R.height+R.depth)*E.style.sizeMultiplier,Y=F+U+O,X=a(["sqrt-sign"],[r.customSizedDelim("\\surd",Y,!1,E,C.mode)],E.getColor()),oe=X.height+X.depth-O;oe>R.height+R.depth+U&&(U=(U+oe-R.height-R.depth)/2);var K=-(R.height+U+O)+X.height;X.style.top=K+"em",X.height-=K,X.depth+=K;var ee;if(R.height===0&&R.depth===0?ee=a():ee=t.makeVList([{type:"elem",elem:R},{type:"kern",size:U},{type:"elem",elem:H},{type:"kern",size:O}],"firstBaseline",null,E),C.value.index){var $=w(C.value.index,E.withStyle(e.SCRIPTSCRIPT)),Q=a([E.style.reset(),e.SCRIPTSCRIPT.cls()],[$]),ie=Math.max(X.height,ee.height),Z=Math.max(X.depth,ee.depth),J=.6*(ie-Z),ue=t.makeVList([{type:"elem",elem:Q}],"shift",-J,E),fe=a(["root"],[ue]);return a(["sqrt","mord"],[fe,X,ee])}else return a(["sqrt","mord"],[X,ee])},v.sizing=function(C,E,A){var R=l(C.value.value,E.withSize(C.value.size),A),O=a(["mord"],[a(["sizing","reset-"+E.size,C.value.size,E.style.cls()],R)]),H=t.sizingMultiplier[C.value.size];return O.maxFontSize=H*E.style.sizeMultiplier,O},v.styling=function(C,E,A){var R={display:e.DISPLAY,text:e.TEXT,script:e.SCRIPT,scriptscript:e.SCRIPTSCRIPT},O=R[C.value.style],H=l(C.value.value,E.withStyle(O),A);return a([E.style.reset(),O.cls()],H)},v.font=function(C,E,A){var R=C.value.font;return w(C.value.body,E.withFont(R),A)},v.delimsizing=function(C,E,A){var R=C.value.value;return R==="."?a([c[C.value.delimType]]):a([c[C.value.delimType]],[r.sizedDelim(R,C.value.size,E,C.mode)])},v.leftright=function(C,E,A){for(var R=l(C.value.body,E.reset()),O=0,H=0,q=0;q<R.length;q++)O=Math.max(R[q].height,O),H=Math.max(R[q].depth,H);O*=E.style.sizeMultiplier,H*=E.style.sizeMultiplier;var U;C.value.left==="."?U=p(E):U=r.leftRightDelim(C.value.left,O,H,E,C.mode),R.unshift(U);var F;return C.value.right==="."?F=p(E):F=r.leftRightDelim(C.value.right,O,H,E,C.mode),R.push(F),a(["minner",E.style.cls()],R,E.getColor())},v.rule=function(C,E,A){var R=a(["mord","rule"],[],E.getColor()),O=0;C.value.shift&&(O=C.value.shift.number,C.value.shift.unit==="ex"&&(O*=o.metrics.xHeight));var H=C.value.width.number;C.value.width.unit==="ex"&&(H*=o.metrics.xHeight);var q=C.value.height.number;return C.value.height.unit==="ex"&&(q*=o.metrics.xHeight),O/=E.style.sizeMultiplier,H/=E.style.sizeMultiplier,q/=E.style.sizeMultiplier,R.style.borderRightWidth=H+"em",R.style.borderTopWidth=q+"em",R.style.bottom=O+"em",R.width=H,R.height=q+O,R.depth=-O,R},v.accent=function(C,E,A){var R=C.value.base,O;if(C.type==="supsub"){var H=C;C=H.value.base,R=C.value.base,H.value.base=R,O=w(H,E.reset(),A)}var q=w(R,E.withStyle(E.style.cramp())),U;if(b(R)){var F=g(R),Y=w(F,E.withStyle(E.style.cramp()));U=Y.skew}else U=0;var X=Math.min(q.height,o.metrics.xHeight),oe=t.makeSymbol(C.value.accent,"Main-Regular","math",E.getColor());oe.italic=0;var K=C.value.accent==="\\vec"?"accent-vec":null,ee=a(["accent-body",K],[a([],[oe])]);ee=t.makeVList([{type:"elem",elem:q},{type:"kern",size:-X},{type:"elem",elem:ee}],"firstBaseline",null,E),ee.children[1].style.marginLeft=2*U+"em";var $=a(["mord","accent"],[ee]);return O?(O.children[0]=$,O.height=Math.max($.height,O.height),O.classes[0]="mord",O):$},v.phantom=function(C,E,A){var R=l(C.value.value,E.withPhantom(),A);return new t.makeFragment(R)};var w=function(C,E,A){if(!C)return a();if(v[C.type]){var R=v[C.type](C,E,A),O;return E.style!==E.parentStyle&&(O=E.style.sizeMultiplier/E.parentStyle.sizeMultiplier,R.height*=O,R.depth*=O),E.size!==E.parentSize&&(O=t.sizingMultiplier[E.size]/t.sizingMultiplier[E.parentSize],R.height*=O,R.depth*=O),R}else throw new n("Got group of unknown type: '"+C.type+"'")},S=function(C,E){C=JSON.parse(JSON.stringify(C));var A=l(C,E),R=a(["base",E.style.cls()],A),O=a(["strut"]),H=a(["strut","bottom"]);O.style.height=R.height+"em",H.style.height=R.height+R.depth+"em",H.style.verticalAlign=-R.depth+"em";var q=a(["katex-html"],[O,H,R]);return q.setAttribute("aria-hidden","true"),q};return mf=S,mf}var gf,Vv;function pD(){if(Vv)return gf;Vv=1;var n=Yr();function e(r,i){this.type=r,this.attributes={},this.children=i||[]}e.prototype.setAttribute=function(r,i){this.attributes[r]=i},e.prototype.toNode=function(){var r=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&r.setAttribute(i,this.attributes[i]);for(var o=0;o<this.children.length;o++)r.appendChild(this.children[o].toNode());return r},e.prototype.toMarkup=function(){var r="<"+this.type;for(var i in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,i)&&(r+=" "+i+'="',r+=n.escape(this.attributes[i]),r+='"');r+=">";for(var o=0;o<this.children.length;o++)r+=this.children[o].toMarkup();return r+="</"+this.type+">",r};function t(r){this.text=r}return t.prototype.toNode=function(){return document.createTextNode(this.text)},t.prototype.toMarkup=function(){return n.escape(this.text)},gf={MathNode:e,TextNode:t},gf}var bf,Uv;function mD(){if(Uv)return bf;Uv=1;var n=Ic(),e=pa(),t=pD(),r=Ai(),i=Oc(),o=Yr(),s=n.makeSpan,a=n.fontMap,l=function(p,v){return i[v][p]&&i[v][p].replace&&(p=i[v][p].replace),new t.TextNode(p)},c=function(p,v){var w=v.font;if(!w)return null;var S=p.mode;if(w==="mathit")return"italic";var C=p.value;if(o.contains(["\\imath","\\jmath"],C))return null;i[S][C]&&i[S][C].replace&&(C=i[S][C].replace);var E=a[w].fontName;return e.getCharacterMetrics(C,E)?a[v.font].variant:null},u={};u.mathord=function(p,v){var w=new t.MathNode("mi",[l(p.value,p.mode)]),S=c(p,v);return S&&w.setAttribute("mathvariant",S),w},u.textord=function(p,v){var w=l(p.value,p.mode),S=c(p,v)||"normal",C;return/[0-9]/.test(p.value)?(C=new t.MathNode("mn",[w]),v.font&&C.setAttribute("mathvariant",S)):(C=new t.MathNode("mi",[w]),C.setAttribute("mathvariant",S)),C},u.bin=function(p){var v=new t.MathNode("mo",[l(p.value,p.mode)]);return v},u.rel=function(p){var v=new t.MathNode("mo",[l(p.value,p.mode)]);return v},u.open=function(p){var v=new t.MathNode("mo",[l(p.value,p.mode)]);return v},u.close=function(p){var v=new t.MathNode("mo",[l(p.value,p.mode)]);return v},u.inner=function(p){var v=new t.MathNode("mo",[l(p.value,p.mode)]);return v},u.punct=function(p){var v=new t.MathNode("mo",[l(p.value,p.mode)]);return v.setAttribute("separator","true"),v},u.ordgroup=function(p,v){var w=h(p.value,v),S=new t.MathNode("mrow",w);return S},u.text=function(p,v){var w=h(p.value.body,v),S=new t.MathNode("mtext",w);return S},u.color=function(p,v){var w=h(p.value.value,v),S=new t.MathNode("mstyle",w);return S.setAttribute("mathcolor",p.value.color),S},u.supsub=function(p,v){var w=[g(p.value.base,v)];p.value.sub&&w.push(g(p.value.sub,v)),p.value.sup&&w.push(g(p.value.sup,v));var S;p.value.sub?p.value.sup?S="msubsup":S="msub":S="msup";var C=new t.MathNode(S,w);return C},u.genfrac=function(p,v){var w=new t.MathNode("mfrac",[g(p.value.numer,v),g(p.value.denom,v)]);if(p.value.hasBarLine||w.setAttribute("linethickness","0px"),p.value.leftDelim!=null||p.value.rightDelim!=null){var S=[];if(p.value.leftDelim!=null){var C=new t.MathNode("mo",[new t.TextNode(p.value.leftDelim)]);C.setAttribute("fence","true"),S.push(C)}if(S.push(w),p.value.rightDelim!=null){var E=new t.MathNode("mo",[new t.TextNode(p.value.rightDelim)]);E.setAttribute("fence","true"),S.push(E)}var A=new t.MathNode("mrow",S);return A}return w},u.array=function(p,v){return new t.MathNode("mtable",p.value.body.map(function(w){return new t.MathNode("mtr",w.map(function(S){return new t.MathNode("mtd",[g(S,v)])}))}))},u.sqrt=function(p,v){var w;return p.value.index?w=new t.MathNode("mroot",[g(p.value.body,v),g(p.value.index,v)]):w=new t.MathNode("msqrt",[g(p.value.body,v)]),w},u.leftright=function(p,v){var w=h(p.value.body,v);if(p.value.left!=="."){var S=new t.MathNode("mo",[l(p.value.left,p.mode)]);S.setAttribute("fence","true"),w.unshift(S)}if(p.value.right!=="."){var C=new t.MathNode("mo",[l(p.value.right,p.mode)]);C.setAttribute("fence","true"),w.push(C)}var E=new t.MathNode("mrow",w);return E},u.accent=function(p,v){var w=new t.MathNode("mo",[l(p.value.accent,p.mode)]),S=new t.MathNode("mover",[g(p.value.base,v),w]);return S.setAttribute("accent","true"),S},u.spacing=function(p){var v;return p.value==="\\ "||p.value==="\\space"||p.value===" "||p.value==="~"?v=new t.MathNode("mtext",[new t.TextNode(" ")]):(v=new t.MathNode("mspace"),v.setAttribute("width",n.spacingFunctions[p.value].size)),v},u.op=function(p){var v;return p.value.symbol?v=new t.MathNode("mo",[l(p.value.body,p.mode)]):v=new t.MathNode("mi",[new t.TextNode(p.value.body.slice(1))]),v},u.katex=function(p){var v=new t.MathNode("mtext",[new t.TextNode("KaTeX")]);return v},u.font=function(p,v){var w=p.value.font;return g(p.value.body,v.withFont(w))},u.delimsizing=function(p){var v=[];p.value.value!=="."&&v.push(l(p.value.value,p.mode));var w=new t.MathNode("mo",v);return p.value.delimType==="open"||p.value.delimType==="close"?w.setAttribute("fence","true"):w.setAttribute("fence","false"),w},u.styling=function(p,v){var w=h(p.value.value,v),S=new t.MathNode("mstyle",w),C={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},E=C[p.value.style];return S.setAttribute("scriptlevel",E[0]),S.setAttribute("displaystyle",E[1]),S},u.sizing=function(p,v){var w=h(p.value.value,v),S=new t.MathNode("mstyle",w);return S.setAttribute("mathsize",n.sizingMultiplier[p.value.size]+"em"),S},u.overline=function(p,v){var w=new t.MathNode("mo",[new t.TextNode("‾")]);w.setAttribute("stretchy","true");var S=new t.MathNode("mover",[g(p.value.body,v),w]);return S.setAttribute("accent","true"),S},u.underline=function(p,v){var w=new t.MathNode("mo",[new t.TextNode("‾")]);w.setAttribute("stretchy","true");var S=new t.MathNode("munder",[g(p.value.body,v),w]);return S.setAttribute("accentunder","true"),S},u.rule=function(p){var v=new t.MathNode("mrow");return v},u.llap=function(p,v){var w=new t.MathNode("mpadded",[g(p.value.body,v)]);return w.setAttribute("lspace","-1width"),w.setAttribute("width","0px"),w},u.rlap=function(p,v){var w=new t.MathNode("mpadded",[g(p.value.body,v)]);return w.setAttribute("width","0px"),w},u.phantom=function(p,v,w){var S=h(p.value.value,v);return new t.MathNode("mphantom",S)};var h=function(p,v){for(var w=[],S=0;S<p.length;S++){var C=p[S];w.push(g(C,v))}return w},g=function(p,v){if(!p)return new t.MathNode("mrow");if(u[p.type])return u[p.type](p,v);throw new r("Got group of unknown type: '"+p.type+"'")},b=function(p,v,w){var S=h(p,w),C=new t.MathNode("mrow",S),E=new t.MathNode("annotation",[new t.TextNode(v)]);E.setAttribute("encoding","application/x-tex");var A=new t.MathNode("semantics",[C,E]),R=new t.MathNode("math",[A]);return s(["katex-mathml"],[R])};return bf=b,bf}var _f,Gv;function gD(){if(Gv)return _f;Gv=1;function n(t){this.style=t.style,this.color=t.color,this.size=t.size,this.phantom=t.phantom,this.font=t.font,t.parentStyle===void 0?this.parentStyle=t.style:this.parentStyle=t.parentStyle,t.parentSize===void 0?this.parentSize=t.size:this.parentSize=t.parentSize}n.prototype.extend=function(t){var r={style:this.style,size:this.size,color:this.color,parentStyle:this.style,parentSize:this.size,phantom:this.phantom,font:this.font};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);return new n(r)},n.prototype.withStyle=function(t){return this.extend({style:t})},n.prototype.withSize=function(t){return this.extend({size:t})},n.prototype.withColor=function(t){return this.extend({color:t})},n.prototype.withPhantom=function(){return this.extend({phantom:!0})},n.prototype.withFont=function(t){return this.extend({font:t})},n.prototype.reset=function(){return this.extend({})};var e={"katex-blue":"#6495ed","katex-orange":"#ffa500","katex-pink":"#ff00af","katex-red":"#df0030","katex-green":"#28ae7b","katex-gray":"gray","katex-purple":"#9d38bd","katex-blueA":"#c7e9f1","katex-blueB":"#9cdceb","katex-blueC":"#58c4dd","katex-blueD":"#29abca","katex-blueE":"#1c758a","katex-tealA":"#acead7","katex-tealB":"#76ddc0","katex-tealC":"#5cd0b3","katex-tealD":"#55c1a7","katex-tealE":"#49a88f","katex-greenA":"#c9e2ae","katex-greenB":"#a6cf8c","katex-greenC":"#83c167","katex-greenD":"#77b05d","katex-greenE":"#699c52","katex-goldA":"#f7c797","katex-goldB":"#f9b775","katex-goldC":"#f0ac5f","katex-goldD":"#e1a158","katex-goldE":"#c78d46","katex-redA":"#f7a1a3","katex-redB":"#ff8080","katex-redC":"#fc6255","katex-redD":"#e65a4c","katex-redE":"#cf5044","katex-maroonA":"#ecabc1","katex-maroonB":"#ec92ab","katex-maroonC":"#c55f73","katex-maroonD":"#a24d61","katex-maroonE":"#94424f","katex-purpleA":"#caa3e8","katex-purpleB":"#b189c6","katex-purpleC":"#9a72ac","katex-purpleD":"#715582","katex-purpleE":"#644172","katex-mintA":"#f5f9e8","katex-mintB":"#edf2df","katex-mintC":"#e0e5cc","katex-grayA":"#fdfdfd","katex-grayB":"#f7f7f7","katex-grayC":"#eeeeee","katex-grayD":"#dddddd","katex-grayE":"#cccccc","katex-grayF":"#aaaaaa","katex-grayG":"#999999","katex-grayH":"#555555","katex-grayI":"#333333","katex-kaBlue":"#314453","katex-kaGreen":"#639b24"};return n.prototype.getColor=function(){return this.phantom?"transparent":e[this.color]||this.color},_f=n,_f}var yf,$v;function bD(){if($v)return yf;$v=1;var n=fD(),e=mD(),t=Ic(),r=gD(),i=Dv(),o=Rc(),s=t.makeSpan,a=function(l,c,u){u=u||new i({});var h=o.TEXT;u.displayMode&&(h=o.DISPLAY);var g=new r({style:h,size:"size5"}),b=e(l,c,g),p=n(l,g),v=s(["katex"],[b,p]);return u.displayMode?s(["katex-display"],[v]):v};return yf=a,yf}var vf={exports:{}},Wv;function _D(){return Wv||(Wv=1,function(n){var e=Yr(),t=Ai();function r(a,l,c){typeof a=="string"&&(a=[a]),typeof l=="number"&&(l={numArgs:l});for(var u={numArgs:l.numArgs,argTypes:l.argTypes,greediness:l.greediness===void 0?1:l.greediness,allowedInText:!!l.allowedInText,numOptionalArgs:l.numOptionalArgs||0,handler:c},h=0;h<a.length;++h)n.exports[a[h]]=u}r("\\sqrt",{numArgs:1,numOptionalArgs:1},function(a,l){var c=l[0],u=l[1];return{type:"sqrt",body:u,index:c}}),r("\\text",{numArgs:1,argTypes:["text"],greediness:2},function(a,l){var c=l[0],u;return c.type==="ordgroup"?u=c.value:u=[c],{type:"text",body:u}}),r("\\color",{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},function(a,l){var c=l[0],u=l[1],h;return u.type==="ordgroup"?h=u.value:h=[u],{type:"color",color:c.value,value:h}}),r("\\overline",{numArgs:1},function(a,l){var c=l[0];return{type:"overline",body:c}}),r("\\underline",{numArgs:1},function(a,l){var c=l[0];return{type:"underline",body:c}}),r("\\rule",{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},function(a,l){var c=l[0],u=l[1],h=l[2];return{type:"rule",shift:c&&c.value,width:u.value,height:h.value}}),r("\\KaTeX",{numArgs:0},function(a){return{type:"katex"}}),r("\\phantom",{numArgs:1},function(a,l){var c=l[0],u;return c.type==="ordgroup"?u=c.value:u=[c],{type:"phantom",value:u}});var i={"\\bigl":{type:"open",size:1},"\\Bigl":{type:"open",size:2},"\\biggl":{type:"open",size:3},"\\Biggl":{type:"open",size:4},"\\bigr":{type:"close",size:1},"\\Bigr":{type:"close",size:2},"\\biggr":{type:"close",size:3},"\\Biggr":{type:"close",size:4},"\\bigm":{type:"rel",size:1},"\\Bigm":{type:"rel",size:2},"\\biggm":{type:"rel",size:3},"\\Biggm":{type:"rel",size:4},"\\big":{type:"textord",size:1},"\\Big":{type:"textord",size:2},"\\bigg":{type:"textord",size:3},"\\Bigg":{type:"textord",size:4}},o=["(",")","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","<",">","\\langle","\\rangle","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."],s={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak"};r(["\\blue","\\orange","\\pink","\\red","\\green","\\gray","\\purple","\\blueA","\\blueB","\\blueC","\\blueD","\\blueE","\\tealA","\\tealB","\\tealC","\\tealD","\\tealE","\\greenA","\\greenB","\\greenC","\\greenD","\\greenE","\\goldA","\\goldB","\\goldC","\\goldD","\\goldE","\\redA","\\redB","\\redC","\\redD","\\redE","\\maroonA","\\maroonB","\\maroonC","\\maroonD","\\maroonE","\\purpleA","\\purpleB","\\purpleC","\\purpleD","\\purpleE","\\mintA","\\mintB","\\mintC","\\grayA","\\grayB","\\grayC","\\grayD","\\grayE","\\grayF","\\grayG","\\grayH","\\grayI","\\kaBlue","\\kaGreen"],{numArgs:1,allowedInText:!0,greediness:3},function(a,l){var c=l[0],u;return c.type==="ordgroup"?u=c.value:u=[c],{type:"color",color:"katex-"+a.funcName.slice(1),value:u}}),r(["\\arcsin","\\arccos","\\arctan","\\arg","\\cos","\\cosh","\\cot","\\coth","\\csc","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\tan","\\tanh"],{numArgs:0},function(a){return{type:"op",limits:!1,symbol:!1,body:a.funcName}}),r(["\\det","\\gcd","\\inf","\\lim","\\liminf","\\limsup","\\max","\\min","\\Pr","\\sup"],{numArgs:0},function(a){return{type:"op",limits:!0,symbol:!1,body:a.funcName}}),r(["\\int","\\iint","\\iiint","\\oint"],{numArgs:0},function(a){return{type:"op",limits:!1,symbol:!0,body:a.funcName}}),r(["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint"],{numArgs:0},function(a){return{type:"op",limits:!0,symbol:!0,body:a.funcName}}),r(["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom"],{numArgs:2,greediness:2},function(a,l){var c=l[0],u=l[1],h,g=null,b=null,p="auto";switch(a.funcName){case"\\dfrac":case"\\frac":case"\\tfrac":h=!0;break;case"\\dbinom":case"\\binom":case"\\tbinom":h=!1,g="(",b=")";break;default:throw new Error("Unrecognized genfrac command")}switch(a.funcName){case"\\dfrac":case"\\dbinom":p="display";break;case"\\tfrac":case"\\tbinom":p="text";break}return{type:"genfrac",numer:c,denom:u,hasBarLine:h,leftDelim:g,rightDelim:b,size:p}}),r(["\\llap","\\rlap"],{numArgs:1,allowedInText:!0},function(a,l){var c=l[0];return{type:a.funcName.slice(1),body:c}}),r(["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg","\\left","\\right"],{numArgs:1},function(a,l){var c=l[0];if(!e.contains(o,c.value))throw new t("Invalid delimiter: '"+c.value+"' after '"+a.funcName+"'",a.lexer,a.positions[1]);return a.funcName==="\\left"||a.funcName==="\\right"?{type:"leftright",value:c.value}:{type:"delimsizing",size:i[a.funcName].size,delimType:i[a.funcName].type,value:c.value}}),r(["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],0,null),r(["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],0,null),r(["\\mathrm","\\mathit","\\mathbf","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],{numArgs:1,greediness:2},function(a,l){var c=l[0],u=a.funcName;return u in s&&(u=s[u]),{type:"font",font:u.slice(1),body:c}}),r(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot"],{numArgs:1},function(a,l){var c=l[0];return{type:"accent",accent:a.funcName,base:c}}),r(["\\over","\\choose"],{numArgs:0},function(a){var l;switch(a.funcName){case"\\over":l="\\frac";break;case"\\choose":l="\\binom";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",replaceWith:l}}),r(["\\\\","\\cr"],{numArgs:0,numOptionalArgs:1,argTypes:["size"]},function(a,l){var c=l[0];return{type:"cr",size:c}}),r(["\\begin","\\end"],{numArgs:1,argTypes:["text"]},function(a,l){var c=l[0];if(c.type!=="ordgroup")throw new t("Invalid environment name",a.lexer,a.positions[1]);for(var u="",h=0;h<c.value.length;++h)u+=c.value[h].value;return{type:"environment",name:u,namepos:a.positions[1]}})}(vf)),vf.exports}var wf={exports:{}},xf,Kv;function jv(){if(Kv)return xf;Kv=1;function n(e,t,r){this.type=e,this.value=t,this.mode=r}return xf={ParseNode:n},xf}var Qv;function yD(){return Qv||(Qv=1,function(n){var e=pa(),t=jv(),r=Ai(),i=t.ParseNode;function o(a,l){for(var c=[],u=[c],h=[];;){var g=a.parseExpression(!1,null);c.push(new i("ordgroup",g,a.mode));var b=a.nextToken.text;if(b==="&")a.consume();else{if(b==="\\end")break;if(b==="\\\\"||b==="\\cr"){var p=a.parseFunction();h.push(p.value.size),c=[],u.push(c)}else{var v=Math.min(a.pos+1,a.lexer._input.length);throw new r("Expected & or \\\\ or \\end",a.lexer,v)}}}return l.body=u,l.rowGaps=h,new i(l.type,l,a.mode)}function s(a,l,c){typeof a=="string"&&(a=[a]),typeof l=="number"&&(l={numArgs:l});for(var u={numArgs:l.numArgs||0,argTypes:l.argTypes,greediness:1,allowedInText:!!l.allowedInText,numOptionalArgs:l.numOptionalArgs||0,handler:c},h=0;h<a.length;++h)n.exports[a[h]]=u}s("array",{numArgs:1},function(a,l){var c=l[0];c=c.value.map?c.value:[c];var u=c.map(function(g){var b=g.value;if("lcr".indexOf(b)!==-1)return{type:"align",align:b};if(b==="|")return{type:"separator",separator:"|"};throw new r("Unknown column alignment: "+g.value,a.lexer,a.positions[1])}),h={type:"array",cols:u,hskipBeforeAndAfter:!0};return h=o(a.parser,h),h}),s(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],{},function(a){var l={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[a.envName],c={type:"array",hskipBeforeAndAfter:!1};return c=o(a.parser,c),l&&(c=new i("leftright",{body:[c],left:l[0],right:l[1]},a.mode)),c}),s("cases",{},function(a){var l={type:"array",arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:e.metrics.quad},{type:"align",align:"l",pregap:0,postgap:0}]};return l=o(a.parser,l),l=new i("leftright",{body:[l],left:"\\{",right:"."},a.mode),l}),s("aligned",{},function(a){var l={type:"array",cols:[]};l=o(a.parser,l);var c=new i("ordgroup",[],a.mode),u=0;l.value.body.forEach(function(p){var v;for(v=1;v<p.length;v+=2)p[v].value.unshift(c);u<p.length&&(u=p.length)});for(var h=0;h<u;++h){var g="r",b=0;h%2===1?g="l":h>0&&(b=2),l.value.cols[h]={type:"align",align:g,pregap:b,postgap:0}}return l})}(wf)),wf.exports}var kf,Yv;function vD(){if(Yv)return kf;Yv=1;function n(t){if(!t.__matchAtRelocatable){var r=t.source+"|()",i="g"+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"");t.__matchAtRelocatable=new RegExp(r,i)}return t.__matchAtRelocatable}function e(t,r,i){if(t.global||t.sticky)throw new Error("matchAt(...): Only non-global regexes are supported");var o=n(t);o.lastIndex=i;var s=o.exec(r);return s[s.length-1]==null?(s.length=s.length-1,s):null}return kf=e,kf}var Sf,Zv;function wD(){if(Zv)return Sf;Zv=1;var n=vD(),e=Ai();function t(l){this._input=l}function r(l,c,u){this.text=l,this.data=c,this.position=u}var i=new RegExp(`([ \r
144
+ ]+)|(---?|[!-\\[\\]-‧‪-퟿豈-￿]|[\uD800-\uDBFF][\uDC00-\uDFFF]|\\\\(?:[a-zA-Z]+|[^\uD800-\uDFFF]))`),o=/\s*/;t.prototype._innerLex=function(l,c){var u=this._input;if(l===u.length)return new r("EOF",null,l);var h=n(i,u,l);if(h===null)throw new e("Unexpected character: '"+u[l]+"'",this,l);return h[2]?new r(h[2],null,l+h[2].length):c?this._innerLex(l+h[1].length,!0):new r(" ",null,l+h[1].length)};var s=/#[a-z0-9]+|[a-z]+/i;t.prototype._innerLexColor=function(l){var c=this._input,u=n(o,c,l)[0];l+=u.length;var h;if(h=n(s,c,l))return new r(h[0],null,l+h[0].length);throw new e("Invalid color",this,l)};var a=/(-?)\s*(\d+(?:\.\d*)?|\.\d+)\s*([a-z]{2})/;return t.prototype._innerLexSize=function(l){var c=this._input,u=n(o,c,l)[0];l+=u.length;var h;if(h=n(a,c,l)){var g=h[3];if(g!=="em"&&g!=="ex")throw new e("Invalid unit: '"+g+"'",this,l);return new r(h[0],{number:+(h[1]+h[2]),unit:g},l+h[0].length)}throw new e("Invalid size",this,l)},t.prototype._innerLexWhitespace=function(l){var c=this._input,u=n(o,c,l)[0];return l+=u.length,new r(u[0],null,l)},t.prototype.lex=function(l,c){if(c==="math")return this._innerLex(l,!0);if(c==="text")return this._innerLex(l,!1);if(c==="color")return this._innerLexColor(l);if(c==="size")return this._innerLexSize(l);if(c==="whitespace")return this._innerLexWhitespace(l)},Sf=t,Sf}var Ef,Xv;function xD(){if(Xv)return Ef;Xv=1;var n=_D(),e=yD(),t=wD(),r=Oc(),i=Yr(),o=jv(),s=Ai();function a(p,v){this.lexer=new t(p),this.settings=v}var l=o.ParseNode;function c(p,v){this.result=p,this.isFunction=v}a.prototype.expect=function(p,v){if(this.nextToken.text!==p)throw new s("Expected '"+p+"', got '"+this.nextToken.text+"'",this.lexer,this.nextToken.position);v!==!1&&this.consume()},a.prototype.consume=function(){this.pos=this.nextToken.position,this.nextToken=this.lexer.lex(this.pos,this.mode)},a.prototype.parse=function(){this.mode="math",this.pos=0,this.nextToken=this.lexer.lex(this.pos,this.mode);var p=this.parseInput();return p},a.prototype.parseInput=function(){var p=this.parseExpression(!1);return this.expect("EOF",!1),p};var u=["}","\\end","\\right","&","\\\\","\\cr"];a.prototype.parseExpression=function(p,v){for(var w=[];;){var S=this.nextToken,C=this.pos;if(u.indexOf(S.text)!==-1||v&&S.text===v)break;var E=this.parseAtom();if(!E){if(!this.settings.throwOnError&&S.text[0]==="\\"){var A=this.handleUnsupportedCmd();w.push(A),C=S.position;continue}break}if(p&&E.type==="infix"){this.pos=C,this.nextToken=S;break}w.push(E)}return this.handleInfixNodes(w)},a.prototype.handleInfixNodes=function(p){for(var v=-1,w,S=0;S<p.length;S++){var C=p[S];if(C.type==="infix"){if(v!==-1)throw new s("only one infix operator per group",this.lexer,-1);v=S,w=C.value.replaceWith}}if(v!==-1){var E,A,R=p.slice(0,v),O=p.slice(v+1);R.length===1&&R[0].type==="ordgroup"?E=R[0]:E=new l("ordgroup",R,this.mode),O.length===1&&O[0].type==="ordgroup"?A=O[0]:A=new l("ordgroup",O,this.mode);var H=this.callFunction(w,[E,A],null);return[new l(H.type,H,this.mode)]}else return p};var h=1;a.prototype.handleSupSubscript=function(p){var v=this.nextToken.text,w=this.pos;this.consume();var S=this.parseGroup();if(S)if(S.isFunction){var C=n[S.result].greediness;if(C>h)return this.parseFunction(S);throw new s("Got function '"+S.result+"' with no arguments as "+p,this.lexer,w+1)}else return S.result;else{if(!this.settings.throwOnError&&this.nextToken.text[0]==="\\")return this.handleUnsupportedCmd();throw new s("Expected group after '"+v+"'",this.lexer,w+1)}},a.prototype.handleUnsupportedCmd=function(){for(var p=this.nextToken.text,v=[],w=0;w<p.length;w++)v.push(new l("textord",p[w],"text"));var S=new l("text",{body:v,type:"text"},this.mode),C=new l("color",{color:this.settings.errorColor,value:[S],type:"color"},this.mode);return this.consume(),C},a.prototype.parseAtom=function(){var p=this.parseImplicitGroup();if(this.mode==="text")return p;for(var v,w;;){var S=this.nextToken;if(S.text==="\\limits"||S.text==="\\nolimits"){if(!p||p.type!=="op")throw new s("Limit controls must follow a math operator",this.lexer,this.pos);var C=S.text==="\\limits";p.value.limits=C,p.value.alwaysHandleSupSub=!0,this.consume()}else if(S.text==="^"){if(v)throw new s("Double superscript",this.lexer,this.pos);v=this.handleSupSubscript("superscript")}else if(S.text==="_"){if(w)throw new s("Double subscript",this.lexer,this.pos);w=this.handleSupSubscript("subscript")}else if(S.text==="'"){var E=new l("textord","\\prime",this.mode),A=[E];for(this.consume();this.nextToken.text==="'";)A.push(E),this.consume();v=new l("ordgroup",A,this.mode)}else break}return v||w?new l("supsub",{base:p,sup:v,sub:w},this.mode):p};var g=["\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],b=["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"];return a.prototype.parseImplicitGroup=function(){var p=this.parseSymbol();if(p==null)return this.parseFunction();var v=p.result,w;if(v==="\\left"){var S=this.parseFunction(p);w=this.parseExpression(!1),this.expect("\\right",!1);var C=this.parseFunction();return new l("leftright",{body:w,left:S.value.value,right:C.value.value},this.mode)}else if(v==="\\begin"){var E=this.parseFunction(p),A=E.value.name;if(!e.hasOwnProperty(A))throw new s("No such environment: "+A,this.lexer,E.value.namepos);var R=e[A],O=this.parseArguments("\\begin{"+A+"}",R),H={mode:this.mode,envName:A,parser:this,lexer:this.lexer,positions:O.pop()},q=R.handler(H,O);this.expect("\\end",!1);var U=this.parseFunction();if(U.value.name!==A)throw new s("Mismatch: \\begin{"+A+"} matched by \\end{"+U.value.name+"}",this.lexer);return q.position=U.position,q}else return i.contains(g,v)?(w=this.parseExpression(!1),new l("sizing",{size:"size"+(i.indexOf(g,v)+1),value:w},this.mode)):i.contains(b,v)?(w=this.parseExpression(!0),new l("styling",{style:v.slice(1,v.length-5),value:w},this.mode)):this.parseFunction(p)},a.prototype.parseFunction=function(p){if(p||(p=this.parseGroup()),p)if(p.isFunction){var v=p.result,w=n[v];if(this.mode==="text"&&!w.allowedInText)throw new s("Can't use function '"+v+"' in text mode",this.lexer,p.position);var S=this.parseArguments(v,w),C=this.callFunction(v,S,S.pop());return new l(C.type,C,this.mode)}else return p.result;else return null},a.prototype.callFunction=function(p,v,w){var S={funcName:p,parser:this,lexer:this.lexer,positions:w};return n[p].handler(S,v)},a.prototype.parseArguments=function(p,v){var w=v.numArgs+v.numOptionalArgs;if(w===0)return[[this.pos]];for(var S=v.greediness,C=[this.pos],E=[],A=0;A<w;A++){var R=v.argTypes&&v.argTypes[A],O;if(A<v.numOptionalArgs){if(R?O=this.parseSpecialGroup(R,!0):O=this.parseOptionalGroup(),!O){E.push(null),C.push(this.pos);continue}}else if(R?O=this.parseSpecialGroup(R):O=this.parseGroup(),!O)if(!this.settings.throwOnError&&this.nextToken.text[0]==="\\")O=new c(this.handleUnsupportedCmd(this.nextToken.text),!1);else throw new s("Expected group after '"+p+"'",this.lexer,this.pos);var H;if(O.isFunction){var q=n[O.result].greediness;if(q>S)H=this.parseFunction(O);else throw new s("Got function '"+O.result+"' as argument to '"+p+"'",this.lexer,this.pos-1)}else H=O.result;E.push(H),C.push(this.pos)}return E.push(C),E},a.prototype.parseSpecialGroup=function(p,v){var w=this.mode;if(p==="original"&&(p=w),p==="color"||p==="size"){var S=this.nextToken;if(v&&S.text!=="[")return null;this.mode=p,this.expect(v?"[":"{");var C=this.nextToken;this.mode=w;var E;return p==="color"?E=C.text:E=C.data,this.consume(),this.expect(v?"]":"}"),new c(new l(p,E,w),!1)}else if(p==="text"){var A=this.lexer.lex(this.pos,"whitespace");this.pos=A.position}this.mode=p,this.nextToken=this.lexer.lex(this.pos,p);var R;return v?R=this.parseOptionalGroup():R=this.parseGroup(),this.mode=w,this.nextToken=this.lexer.lex(this.pos,w),R},a.prototype.parseGroup=function(){if(this.nextToken.text==="{"){this.consume();var p=this.parseExpression(!1);return this.expect("}"),new c(new l("ordgroup",p,this.mode),!1)}else return this.parseSymbol()},a.prototype.parseOptionalGroup=function(){if(this.nextToken.text==="["){this.consume();var p=this.parseExpression(!1,"]");return this.expect("]"),new c(new l("ordgroup",p,this.mode),!1)}else return null},a.prototype.parseSymbol=function(){var p=this.nextToken;return n[p.text]?(this.consume(),new c(p.text,!0)):r[this.mode][p.text]?(this.consume(),new c(new l(r[this.mode][p.text].group,p.text,this.mode),!1)):null},a.prototype.ParseNode=l,Ef=a,Ef}var Cf,Jv;function kD(){if(Jv)return Cf;Jv=1;var n=xD(),e=function(t,r){var i=new n(t,r);return i.parse()};return Cf=e,Cf}var Tf,e2;function SD(){if(e2)return Tf;e2=1;var n=Ai(),e=Dv(),t=bD(),r=kD(),i=Yr(),o=function(l,c,u){i.clearNode(c);var h=new e(u),g=r(l,h),b=t(g,l,h).toNode();c.appendChild(b)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),o=function(){throw new n("KaTeX doesn't work in quirks mode.")});var s=function(l,c){var u=new e(c),h=r(l,u);return t(h,l,u).toMarkup()},a=function(l,c){var u=new e(c);return r(l,u)};return Tf={render:o,renderToString:s,__parse:a,ParseError:n},Tf}var Af,t2;function ED(){if(t2)return Af;t2=1;var n=SD();function e(i,o){var s,a,l=i.posMax,c=!0,u=!0;return s=o>0?i.src.charCodeAt(o-1):-1,a=o+1<=l?i.src.charCodeAt(o+1):-1,(s===32||s===9||a>=48&&a<=57)&&(u=!1),(a===32||a===9)&&(c=!1),{can_open:c,can_close:u}}function t(i,o){var s,a,l,c,u;if(i.src[i.pos]!=="$")return!1;if(c=e(i,i.pos),!c.can_open)return o||(i.pending+="$"),i.pos+=1,!0;for(s=i.pos+1,a=s;(a=i.src.indexOf("$",a))!==-1;){for(u=a-1;i.src[u]==="\\";)u-=1;if((a-u)%2==1)break;a+=1}return a===-1?(o||(i.pending+="$"),i.pos=s,!0):a-s===0?(o||(i.pending+="$$"),i.pos=s+1,!0):(c=e(i,a),c.can_close?(o||(l=i.push("math_inline","math",0),l.markup="$",l.content=i.src.slice(s,a)),i.pos=a+1,!0):(o||(i.pending+="$"),i.pos=s,!0))}function r(i,o,s,a){var l,c,u,h,g=!1,b,p=i.bMarks[o]+i.tShift[o],v=i.eMarks[o];if(p+2>v||i.src.slice(p,p+2)!=="$$")return!1;if(p+=2,l=i.src.slice(p,v),a)return!0;for(l.trim().slice(-2)==="$$"&&(l=l.trim().slice(0,-2),g=!0),u=o;!g&&(u++,!(u>=s||(p=i.bMarks[u]+i.tShift[u],v=i.eMarks[u],p<v&&i.tShift[u]<i.blkIndent)));)i.src.slice(p,v).trim().slice(-2)==="$$"&&(h=i.src.slice(0,v).lastIndexOf("$$"),c=i.src.slice(p,h),g=!0);return i.line=u+1,b=i.push("math_block","math",0),b.block=!0,b.content=(l&&l.trim()?l+`
145
+ `:"")+i.getLines(o+1,u,i.tShift[o],!0)+(c&&c.trim()?c:""),b.map=[o,i.line],b.markup="$$",!0}return Af=function(o,s){s=s||{};var a=function(h){s.displayMode=!1;try{return n.renderToString(h,s)}catch(g){return s.throwOnError&&console.log(g),h}},l=function(h,g){return a(h[g].content)},c=function(h){s.displayMode=!0;try{return"<p>"+n.renderToString(h,s)+"</p>"}catch(g){return s.throwOnError&&console.log(g),h}},u=function(h,g){return c(h[g].content)+`
146
+ `};o.inline.ruler.after("escape","math_inline",t),o.block.ruler.after("blockquote","math_block",r,{alt:["paragraph","reference","blockquote","list"]}),o.renderer.rules.math_inline=l,o.renderer.rules.math_block=u},Af}var CD=ED();const TD=Nr(CD);var Mf,n2;function AD(){if(n2)return Mf;n2=1;var n=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function e(t,r){var i,o,s,a=t.posMax,l=t.pos;if(t.src.charCodeAt(l)!==126||r||l+2>=a)return!1;for(t.pos=l+1;t.pos<a;){if(t.src.charCodeAt(t.pos)===126){i=!0;break}t.md.inline.skipToken(t)}return!i||l+1===t.pos||(o=t.src.slice(l+1,t.pos),o.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=l,!1):(t.posMax=t.pos,t.pos=l+1,s=t.push("sub_open","sub",1),s.markup="~",s=t.push("text","",0),s.content=o.replace(n,"$1"),s=t.push("sub_close","sub",-1),s.markup="~",t.pos=t.posMax+1,t.posMax=a,!0)}return Mf=function(r){r.inline.ruler.after("emphasis","sub",e)},Mf}var MD=AD();const ND=Nr(MD);var Nf,r2;function DD(){if(r2)return Nf;r2=1;var n=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function e(t,r){var i,o,s,a=t.posMax,l=t.pos;if(t.src.charCodeAt(l)!==94||r||l+2>=a)return!1;for(t.pos=l+1;t.pos<a;){if(t.src.charCodeAt(t.pos)===94){i=!0;break}t.md.inline.skipToken(t)}return!i||l+1===t.pos||(o=t.src.slice(l+1,t.pos),o.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=l,!1):(t.posMax=t.pos,t.pos=l+1,s=t.push("sup_open","sup",1),s.markup="^",s=t.push("text","",0),s.content=o.replace(n,"$1"),s=t.push("sup_close","sup",-1),s.markup="^",t.pos=t.posMax+1,t.posMax=a,!0)}return Nf=function(r){r.inline.ruler.after("emphasis","sup",e)},Nf}var RD=DD();const OD=Nr(RD);var Df,i2;function ID(){return i2||(i2=1,Df=function(e){function t(i,o){var s,a,l,c,u,h=i.pos,g=i.src.charCodeAt(h);if(o||g!==61||(a=i.scanDelims(i.pos,!0),c=a.length,u=String.fromCharCode(g),c<2))return!1;for(c%2&&(l=i.push("text","",0),l.content=u,c--),s=0;s<c;s+=2)l=i.push("text","",0),l.content=u+u,!(!a.can_open&&!a.can_close)&&i.delimiters.push({marker:g,length:0,jump:s/2,token:i.tokens.length-1,end:-1,open:a.can_open,close:a.can_close});return i.pos+=a.length,!0}function r(i,o){var s,a,l,c,u,h=[],g=o.length;for(s=0;s<g;s++)l=o[s],l.marker===61&&l.end!==-1&&(c=o[l.end],u=i.tokens[l.token],u.type="mark_open",u.tag="mark",u.nesting=1,u.markup="==",u.content="",u=i.tokens[c.token],u.type="mark_close",u.tag="mark",u.nesting=-1,u.markup="==",u.content="",i.tokens[c.token-1].type==="text"&&i.tokens[c.token-1].content==="="&&h.push(c.token-1));for(;h.length;){for(s=h.pop(),a=s+1;a<i.tokens.length&&i.tokens[a].type==="mark_close";)a++;a--,s!==a&&(u=i.tokens[a],i.tokens[a]=i.tokens[s],i.tokens[s]=u)}}e.inline.ruler.before("emphasis","mark",t),e.inline.ruler2.before("emphasis","mark",function(i){var o,s=i.tokens_meta,a=(i.tokens_meta||[]).length;for(r(i,i.delimiters),o=0;o<a;o++)s[o]&&s[o].delimiters&&r(i,s[o].delimiters)})}),Df}var LD=ID();const BD=Nr(LD);class PD{constructor(e=[]){this.md=new uD({html:!0,linkify:!0,typographer:!0}).use(TD).use(ND).use(OD).use(BD),this.htmlParseNodes=e}encoder(e){const t=this.md.parse(e,{}),r={type:"doc",content:[]};let i=r,o=[];const s={},a=new Set(["paragraph","heading"]),l={link:!1,strike:!1,strong:!1,sub:!1,sup:!1,em:!1,mark:!1},c={link:{href:null}},u=h=>h==null||h.length==0?" ":h;for(const h of t)switch(h.type){case"hr":{i.content.push({type:"horizontalRule"});break}case"inline":{if(Array.isArray(h.children))for(const g of h.children)switch(g.type){case"text":{const b={type:"text",text:u(g.content)};let p=!1;for(let v in l)if(l[v]){p=!0;break}if(p&&(b.marks=[]),l.link===!0){const v=/\[([^\]]+)\]\(([^\)]+)\)/.exec(h.content);v!==null&&(b.text=v[1]),b.marks.push({attrs:{target:"_blank",href:c.link.href,class:null},type:"link"})}if(l.strike===!0&&b.marks.push({type:"strike"}),l.strong===!0&&b.marks.push({type:"bold"}),l.sub===!0&&b.marks.push({type:"subscript"}),l.sup===!0&&b.marks.push({type:"superscript"}),l.em===!0&&b.marks.push({type:"italic"}),l.mark===!0&&b.marks.push({type:"highlight",attrs:{color:"#FAF594"}}),b.text.length==0)break;a.has(i.type)?i.content.push(b):i.content.push({type:"paragraph",content:[b]});break}case"hardbreak":{const b={type:"hardBreak"};i.content.push(b);break}case"strong_open":{l.strong=!0;break}case"strong_close":{l.strong=!1;break}case"s_open":{l.strike=!0;break}case"s_close":{l.strike=!1;break}case"sub_open":{l.sub=!0;break}case"sub_close":{l.sub=!1;break}case"sup_open":{l.sup=!0;break}case"sup_close":{l.sup=!1;break}case"em_open":{l.em=!0;break}case"em_close":{l.em=!1;break}case"mark_open":{l.mark=!0;break}case"mark_close":{l.mark=!1;break}case"code_inline":{const b={marks:[{type:"code"}],type:"text",text:u(g.content)};if(b.text.length==0)break;a.has(i.type)?i.content.push(b):i.content.push({type:"paragraph",content:[b]});break}case"link_open":{l.link=!0,c.link.href=g.attrGet("href");break}case"link_close":{l.link=!1,c.link.href=null;break}case"hardbreak":case"softbreak":{const b={type:"hardBreak"};i.content.push(b);break}case"image":{let b=g.attrGet("src");const p={type:"imageblock",attrs:{src:b||"",width:50,caption:""}};if(Array.isArray(g.children)){const v=[];for(const w of g.children)w.type==="text"&&v.push(w.content);p.attrs.caption=v.join(" ")}i.content.push(p);break}case"html_inline":{const b={marks:[{type:"code"}],type:"text",text:u(g.content)};if(b.text.length==0)break;a.has(i.type)?i.content.push(b):i.content.push({type:"paragraph",content:[b]});break}case"math_inline":{const b={type:"inlineEquation",attrs:{value:g.content,placeholder:"Y=WX^T+b",emptyPlaceholder:"New Equation",showPopper:!1,tag:"span"}};a.has(i.type)?i.content.push(b):i.content.push({type:"paragraph",content:[b]});break}default:s["!"+g.type]===void 0&&(s["!"+g.type]=[]),s["!"+g.type].push(g)}break}case"heading_open":{const b={type:"heading",attrs:{level:parseInt(h.tag.substring(1)),textAlign:"left"},content:[]};i.content.push(b),o.push(i),i=b;break}case"heading_close":{i=o.pop();break}case"paragraph_open":{const g={type:"paragraph",content:[]};i.content.push(g),o.push(i),i=g;break}case"paragraph_close":{i.content.length===0&&o[o.length-1].content.pop(),i=o.pop();break}case"table_open":{const g={type:"table",content:[]};i.content.push(g),o.push(i),i=g;break}case"table_close":{i=o.pop();break}case"tr_open":{const g={type:"tableRow",content:[]};i.content.push(g),o.push(i),i=g;break}case"tr_close":{i=o.pop();break}case"th_open":{const g={type:"tableHeader",content:[]};i.content.push(g),o.push(i),i=g;break}case"th_close":{Array.isArray(i.content)&&i.content.length===0&&i.content.push({type:"paragraph",content:[]}),i=o.pop();break}case"td_open":{const g={type:"tableCell",content:[]};i.content.push(g),o.push(i),i=g;break}case"td_close":{Array.isArray(i.content)&&i.content.length===0&&i.content.push({type:"paragraph",content:[]}),i=o.pop();break}case"thead_open":case"tbody_open":case"tfoot_open":case"thead_close":case"tbody_close":case"tfoot_close":break;case"fence":{const g={type:"codeBlock",attrs:{language:h.info},content:[{type:"text",text:u(h.content)}]};i.content.push(g);break}case"code_block":{const g={type:"codeBlock",attrs:{language:h.info},content:[{type:"text",text:u(h.content)}]};i.content.push(g);break}case"blockquote_open":{const g={type:"blockquote",content:[]};i.content.push(g),o.push(i),i=g;break}case"blockquote_close":{i=o.pop();break}case"bullet_list_open":{const g={type:"bulletList",content:[]};i.content.push(g),o.push(i),i=g;break}case"bullet_list_close":{i=o.pop();break}case"list_item_open":{const g={type:"listItem",content:[]};i.content.push(g),o.push(i),i=g;break}case"list_item_close":{i=o.pop();break}case"ordered_list_open":{const g={type:"orderedList",content:[]};i.content.push(g),o.push(i),i=g;break}case"ordered_list_close":{i=o.pop();break}case"html_block":{let g=Kk(h.content,this.htmlParseNodes);i.content.push(g.content[0]);break}case"math_block":{const g={type:"equationBlock",attrs:{value:h.content,placeholder:"Y=WX^T+b",emptyPlaceholder:"New Equation",showPopper:!1,tag:"div"}};i.content.push(g);break}default:s[h.type]===void 0&&(s[h.type]=[]),s[h.type].push(h)}return r}}let FD={heading(n,e){const{level:t}=n.attrs;let r="";for(let i=0;i<t;i++)r+="#";return`
147
+ ${r} `},paragraph(n,e){return e.bulletList||e.orderedList||e.blockquote||e.powerTaskItem||e.tableHeader||e.tableCell?"":`
148
+ `},blockquote(n,e){const{blockquote:t}=e;let r="";for(let i=0;i<t;i++)r+=">";return`
149
+ ${r} `},horizontalRule(n,e){return`
150
+ ---
151
+ `},hardBreak(n,e){return`
152
+ `},powerTaskItem(n,e){return`
153
+ - [${n.attrs.checked?"x":" "}] `},powerTaskList(n,e){return""},listItem(n,e){const{bulletList:t,orderedList:r}=e;let i="";if(t){const o=["+","-","*"];let s="";for(let a=1;a<t;a++)s+=" ";i=`${s}${o[(t-1)%o.length]} `}else if(r){let o=n.parent.attrs.start+n.childIdx,s="";for(let a=1;a<r;a++)s+=" ";i=`${s}${o}. `}return`
154
+ ${i}`},bulletList(n,e){return""},orderedList(n,e){return""},codeBlock(n,e){return{prefix:`
155
+
156
+ \`\`\`${n.attrs.language?n.attrs.language:""}
157
+ `,suffix:"\n```\n"}},inlineEquation(n,e){return`$${n.attrs.value}$`},equationBlock(n,e){return`
158
+ $$${n.attrs.value}$$
159
+ `},drawingBlock(n,e){let t=n.attrs.lines,r=[];for(let i of t)r.push(`<path d="${i.path}" stroke="${i.color}" stroke-width="${i.width}" fill="none"></path>`);return`
160
+ <div width="100%" style="overflow-x: auto;">
161
+ <svg width="${n.attrs.width}%" viewBox="0 0 500 250">${r.join(`
162
+ `)}</svg>
163
+ </div>
164
+ `},imageblock(n,e){return`
165
+ ![${n.attrs.caption}](${n.attrs.src})
166
+ `},tableHeader(n,e){let t="";return e.table&&(t+=" "),e.tableRow&&(t+=" "),{prefix:`${n.childIdx===0?"":`
167
+ `}${t}<th colspan="${n.attrs.colspan}" colspan="${n.attrs.rowspan}" colwidth="${n.attrs.colwidth}">`,suffix:`${t}</th>`}},tableCell(n,e){let t="";return e.table&&(t+=" "),e.tableRow&&(t+=" "),{prefix:`${n.childIdx===0?"":`
168
+ `}${t}<td colspan="${n.attrs.colspan}" colspan="${n.attrs.rowspan}" colwidth="${n.attrs.colwidth}">`,suffix:`${t}</td>`}},tableRow(n,e){let t="";return e.table&&(t+=" "),{prefix:`${n.childIdx===0?"":`
169
+ `}${t}<tr>
170
+ `,suffix:`
171
+ ${t}</tr>`}},table(n,e){return{prefix:`
172
+ <table>
173
+ `,suffix:`
174
+ </table>
175
+ `}},mentionItem(n,e){return`\`@${n.attrs.value}\``},embedblock(n,e){return`
176
+ <video src="${n.attrs.src}" width="800px" height="600px" controls="controls"></video>
177
+ `},text(n,e){let t=n.text,r=n.marks;Array.isArray(r)||(r=[]);for(let i of r)this[i.type]?t=this[i.type](t,i):console.warn(`Unknown mark type: ${i.type}`);return t},bold(n){return`**${n}**`},italic(n){return`*${n}*`},strike(n){return`~~${n}~~`},subscript(n){return`~${n}~`},superscript(n){return`^${n}^`},link(n,e){return`[${n}](${e.attrs.href})`},highlight(n){return`==${n}==`},code(n){return`\`${n}\``}};class zD{constructor(e={},t={}){this.flags={inline:!1,inlineWrapper:!1,heading:!1,bulletList:!1,orderedList:!1,blockquote:!1,powerTaskItem:!1,powerTaskList:!1,tableHeader:!1,tableCell:!1,tableRow:!1,table:!1},this.flags=Object.assign(this.flags,t),this.DecNodeFuncs=FD;for(let r in e)this.DecNodeFuncs.hasOwnProperty(r)&&console.warn(`Decoder already has a function named ${r}, the function will be overwritten.`),this.DecNodeFuncs[r]=e[r]}decode(e){e=JSON.parse(JSON.stringify(e));let t="";Array.isArray(e.content)||(e.content=[]);for(let r of e.content)t+=this.renderNode(r);return t}renderNode(e){e.parent?e.flags=Object.assign({},e.parent.flags):e.flags=Object.assign({},this.flags);let t=e.type;if(t==="text")return this.DecNodeFuncs.text(e);e.flags.hasOwnProperty(t)&&(e.flags[t]!==!1?e.flags[t]+=1:e.flags[t]=1),t==="paragraph"&&(e.flags.inlineWrapper=!0,e.flags.inline=!0);let r="",i=e.content;Array.isArray(i)||(i=[]);for(let s of i)s.parent=e,s.childIdx=i.indexOf(s),r+=this.renderNode(s);if(!this.DecNodeFuncs.hasOwnProperty(t))return console.warn(`Unknown node type: ${t}`),r;let o=this.DecNodeFuncs[t](e,e.flags);return typeof o=="string"?o+r:o.prefix+r+o.suffix}}let qD={Bold:{en:"Bold",cn:"粗体"},Italic:{en:"Italic",cn:"斜体"},Strikethrough:{en:"Strikethrough",cn:"删除线"},Underline:{en:"Underline",cn:"下划线"},"Block Quote":{en:"Block Quote",cn:"引用"},"Horizontal Rule":{en:"Horizontal Rule",cn:"水平线"},Header:{en:"Header",cn:"标题"},Task:{en:"Task",cn:"任务清单"},ClearFormatting:{en:"Clear Formatting",cn:"清除格式"},BulletedList:{en:"Bulleted List",cn:"项目符号"},NumberedList:{en:"Numbered List",cn:"编号"},DetailsList:{en:"Details List",cn:"详细列表"},AlignLeft:{en:"Align Left",cn:"左对齐"},AlignCenter:{en:"Align Center",cn:"居中"},AlignRight:{en:"Align Right",cn:"右对齐"},AlignJustify:{en:"Align Justify",cn:"两端对齐"},IncreaseIndent:{en:"Increase Indent",cn:"增加缩进"},DecreaseIndent:{en:"Decrease Indent",cn:"减少缩进"},Color:{en:"Color",cn:"颜色"},Draw:{en:"Draw",cn:"绘图"},Emoji:{en:"Emoji",cn:"表情"},Table:{en:"Table",cn:"表格"},Code:{en:"Code",cn:"代码"},"Code Block":{en:"Code Block",cn:"代码块"},Equation:{en:"Equation",cn:"公式"},Image:{en:"Image",cn:"图片"},Link:{en:"Link",cn:"链接"},Embed:{en:"Embed",cn:"嵌入"},Undo:{en:"Undo",cn:"撤销"},Redo:{en:"Redo",cn:"重做"},Save:{en:"Save",cn:"保存"},Cancel:{en:"Cancel",cn:"取消"},TextField:{en:"Text Field",cn:"文本框"},"Write a caption...":{en:"Write a caption...",cn:"输入标题..."},removeColor:{en:"Remove Color",cn:"清除颜色"},removeHighlight:{en:"Remove Highlight",cn:"清除高亮"},Row:{en:"Row",cn:"行"},Column:{en:"Column",cn:"列"},"Delete Column":{en:"Delete Column",cn:"删除列"},"Delete Row":{en:"Delete Row",cn:"删除行"},"Add Row Before":{en:"Add Row Before",cn:"在上方插入行"},"Add Row After":{en:"Add Row After",cn:"在下方插入行"},"Add Column Before":{en:"Add Column Before",cn:"在左侧插入列"},"Add Column After":{en:"Add Column After",cn:"在右侧插入列"},"Merge Cells":{en:"Merge Cells",cn:"合并单元格"},"Split Cell":{en:"Split Cell",cn:"拆分单元格"},Headers:{en:"Headers",cn:"标题"},Heading:{en:"Heading",cn:"标题"},"Text Color":{en:"Text Color",cn:"文本颜色"},Foreground:{en:"Foreground",cn:"前景色"},"Highlight Background":{en:"Highlight Background",cn:"高亮色"},purple:{en:"purple",cn:"紫色"},red:{en:"red",cn:"红色"},orange:{en:"orange",cn:"橙色"},yellow:{en:"yellow",cn:"黄色"},blue:{en:"blue",cn:"蓝色"},teal:{en:"teal",cn:"青色"},green:{en:"green",cn:"绿色"},Random:{en:"Random",cn:"随机"},"People and Fantasy":{en:"People and Fantasy",cn:"人物与范例"},"Animals & Nature":{en:"Animals & Nature",cn:"动物与自然"},"Food & Drink":{en:"Food & Drink",cn:"食物与饮料"},"Activity and Sports":{en:"Activity and Sports",cn:"活动与体育"},"Travel & Places":{en:"Travel & Places",cn:"旅行与地点"},Objects:{en:"Objects",cn:"物件"},Symbols:{en:"Symbols",cn:"符号"},Flags:{en:"Flags",cn:"旗帜"},"Fill the Form":{en:"Fill the Form",cn:"填写表单"},Caption:{en:"Caption",cn:"标题"},"Insert Embed Url...":{en:"Insert Embed Url...",cn:"插入嵌入链接..."},Insert:{en:"Insert",cn:"插入"},"Insert Embed":{en:"Insert Embed",cn:"插入嵌入"},"Insert Image":{en:"Insert Image",cn:"插入图片"},Method:{en:"Method",cn:"方法"},"Choose Local Image as Base64 (multiple).":{en:"Choose Local Image as Base64 (multiple).",cn:"选择本地图片为Base64 (支持多个)"},"Insert Image Url.":{en:"Insert Image Url.",cn:"插入图片链接"},"Insert Link Url...":{en:"Insert Link Url...",cn:"插入链接..."},"Insert Link":{en:"Insert Link",cn:"插入链接"},Newline:{en:"Newline",cn:"换行"},"Format Painter":{en:"Format Painter",cn:"格式刷"},Done:{en:"Done",cn:"完成"},gray:{en:"Gray",cn:"灰色"},pink:{en:"Pink",cn:"粉色"},rose:{en:"Rose",cn:"玫瑰色"},fresh_blue:{en:"Fresh Blue",cn:"鲜艳蓝"},ice_blue:{en:"Ice Blue",cn:"冰蓝色"},dark_blue:{en:"Dark Blue",cn:"深蓝色"},fresh_green:{en:"Fresh Green",cn:"鲜艳绿"},light_green:{en:"Light Green",cn:"浅绿色"},light_yellow:{en:"Light Yellow",cn:"浅黄色"},light_red:{en:"Light Red",cn:"浅红色"},light_purple:{en:"Light Purple",cn:"浅紫色"},light_orange:{en:"Light Orange",cn:"浅橙色"}};const or=(n,e="en")=>{let t=qD[n];return t?t[e]:n},HD={emits:["container-dblclick","container-click","update:width","update:alignCenter","update:caption"],props:{width:{default:100},editor:{default:()=>({})},caption:{default:""},alignCenter:{default:!0},foreground:{default:""},node:{default:()=>({})},getPos:{default:()=>{}},theme:{default:"light"}},data(){return{thisCaption:this.caption?this.caption.toString():"",thisAlignCenter:this.alignCenter,elWidthStart:0,elWidthEnd:0,ppi:0,active:!1,moveable:!1,direction:1,disX:0,currentWidth:this.width,outsideEvent:n=>{let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||(this.show.captionBox=!1)},show:{captionBox:!1}}},watch:{width(n){this.currentWidth=n},currentWidth(n){this.$emit("update:width",n)},alignCenter(n){this.thisAlignCenter=n},thisAlignCenter(n){this.$emit("update:alignCenter",n)},caption(n){this.thisCaption=n?n.toString():""},thisCaption(n){this.$emit("update:caption",n)}},mounted(){this.Init(),this.outSideClickInit()},methods:{Init(){let n=e=>(e.clientX-this.disX)*this.direction+this.elWidthStart*1;window.addEventListener("mousemove",e=>{this.moveable&&(this.elWidthEnd=n(e))}),window.addEventListener("touchmove",e=>{e=e.targetTouches[0],this.moveable&&(this.elWidthEnd=n(e))}),window.addEventListener("mouseup",e=>(this.active=!1,this.moveable&&this.stop(),e)),window.addEventListener("touchup",e=>(this.active=!1,this.moveable&&this.stop(),e))},forward(n,e=1){this.active=!0,this.moveable=!0,this.disX=n.clientX,this.direction=e,this.elWidthStart=this.$el.clientWidth,this.elWidthEnd=this.elWidthStart,this.ppi=(this.currentWidth>100?100:this.currentWidth)/this.elWidthStart},stop(){this.active=!1,this.moveable=!1,this.elWidthEnd<50&&(this.elWidthEnd=50),this.currentWidth=this.elWidthEnd*this.ppi,this.currentWidth>100&&(this.currentWidth=100)},outSideClickInit(){window.addEventListener("click",this.outsideEvent)},getTitle(n){return or(n,this.editor.storage.defaultStorage.language)},showCaptionBox(){this.editor.isEditable&&(this.show.captionBox=!0,this.$nextTick(()=>{this.$refs.caption.focus()}))},newline(){this.editor.isEditable&&(this.editor.commands.focus(),this.editor.commands.insertContentAt(this.getPos()+this.node.nodeSize,"<br>"))}},beforeUnmount(){window.removeEventListener("click",this.outsideEvent)}},VD={class:"power-editor-media-control-btn-block"},UD={class:"power-editor-media-control-btn-block bottom"},GD={class:"power-editor-media-mask-block"};function $D(n,e,t,r,i,o){const s=y.resolveComponent("fv-button"),a=y.resolveComponent("fv-text-box");return y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["power-editor-media-container",[{dark:t.theme==="dark"},{"active-effects":i.active}]]),style:y.normalizeStyle({width:i.moveable?`${i.elWidthEnd}px`:`${i.currentWidth}%`})},[y.withDirectives(y.createElementVNode("div",{class:"power-editor-media-control-resize-block",onMousedown:e[0]||(e[0]=l=>o.forward(l,-1)),onMouseup:e[1]||(e[1]=(...l)=>o.stop&&o.stop(...l)),onTouchstart:e[2]||(e[2]=l=>o.forward(l.targetTouches[0],-1)),onTouchend:e[3]||(e[3]=(...l)=>o.stop&&o.stop(...l))},e[19]||(e[19]=[y.createElementVNode("i",null,null,-1)]),544),[[y.vShow,t.alignCenter&&(t.editor.isEditable||t.editor.storage.defaultStorage.showControlOnReadonly)]]),y.createElementVNode("div",{class:"power-editor-media-slot-container",onDblclick:e[4]||(e[4]=l=>n.$emit("container-dblclick",l)),onClick:e[5]||(e[5]=l=>n.$emit("container-click",l))},[y.renderSlot(n.$slots,"default",{},()=>[e[20]||(e[20]=y.createTextVNode(" Media Container "))])],32),y.withDirectives(y.createElementVNode("div",{class:"power-editor-media-control-resize-block sec",onMousedown:e[6]||(e[6]=(...l)=>o.forward&&o.forward(...l)),onMouseup:e[7]||(e[7]=(...l)=>o.stop&&o.stop(...l)),onTouchstart:e[8]||(e[8]=l=>o.forward(l.targetTouches[0])),onTouchend:e[9]||(e[9]=(...l)=>o.stop&&o.stop(...l))},e[21]||(e[21]=[y.createElementVNode("i",null,null,-1)]),544),[[y.vShow,t.editor.isEditable||t.editor.storage.defaultStorage.showControlOnReadonly]]),y.withDirectives(y.createElementVNode("div",{draggable:"true","data-drag-handle":"",class:"power-editor-media-drag-btn",onMousedown:e[10]||(e[10]=l=>i.active=!0),onMouseup:e[11]||(e[11]=l=>i.active=!1),onTouchstart:e[12]||(e[12]=l=>i.active=!0),onTouchend:e[13]||(e[13]=l=>i.active=!1)},e[22]||(e[22]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--GripperDotsVertical"},null,-1)]),544),[[y.vShow,t.editor.isEditable]]),y.withDirectives(y.createElementVNode("div",VD,[y.withDirectives(y.createVNode(s,{class:"power-editor-media-cmd-btn",background:t.theme==="dark"?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.3)",theme:t.theme,fontSize:"10",title:o.getTitle("Caption"),onClick:o.showCaptionBox},{default:y.withCtx(()=>e[23]||(e[23]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--TextField"},null,-1)])),_:1,__:[23]},8,["background","theme","title","onClick"]),[[y.vShow,t.editor.isEditable]]),y.createVNode(s,{class:"power-editor-media-cmd-btn",background:t.theme==="dark"?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.3)",theme:t.theme,fontSize:"10",title:o.getTitle("AlignLeft"),onClick:e[14]||(e[14]=l=>i.thisAlignCenter=!1)},{default:y.withCtx(()=>e[24]||(e[24]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--AlignLeft"},null,-1)])),_:1,__:[24]},8,["background","theme","title"]),y.createVNode(s,{class:"power-editor-media-cmd-btn",background:t.theme==="dark"?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.3)",theme:t.theme,fontSize:"10",title:o.getTitle("AlignCenter"),onClick:e[15]||(e[15]=l=>i.thisAlignCenter=!0)},{default:y.withCtx(()=>e[25]||(e[25]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--AlignCenter"},null,-1)])),_:1,__:[25]},8,["background","theme","title"])],512),[[y.vShow,t.editor.isEditable||t.editor.storage.defaultStorage.showControlOnReadonly]]),y.withDirectives(y.createElementVNode("div",UD,[y.createVNode(s,{class:"power-editor-media-cmd-btn",background:t.theme==="dark"?"rgba(0, 0, 0, 0.8)":"rgba(255, 255, 255, 0.3)",theme:t.theme,icon:"ReturnKeySm",fontSize:"10",title:o.getTitle("TextField"),style:{width:"60px"},onClick:o.newline},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(o.getTitle("Newline")),1)]),_:1},8,["background","theme","title","onClick"])],512),[[y.vShow,t.editor.isEditable]]),y.withDirectives(y.createElementVNode("div",GD,null,512),[[y.vShow,i.active]]),y.withDirectives(y.createElementVNode("p",{class:"power-editor-media-container-caption",onClick:e[16]||(e[16]=(...l)=>o.showCaptionBox&&o.showCaptionBox(...l))},y.toDisplayString(i.thisCaption),513),[[y.vShow,i.thisCaption!==""&&!i.show.captionBox]]),y.withDirectives(y.createVNode(a,{modelValue:i.thisCaption,"onUpdate:modelValue":e[17]||(e[17]=l=>i.thisCaption=l),theme:t.theme,class:"power-editor-media-caption-block",placeholder:o.getTitle("Write a caption..."),ref:"caption",background:"transparent",underline:"","border-width":2,"is-box-shadow":!0,"border-color":"rgba(200, 200, 200, 0.1)","focus-border-color":t.foreground,onKeyup:e[18]||(e[18]=y.withKeys(()=>{i.show.captionBox=!1,o.newline()},["enter"]))},null,8,["modelValue","theme","placeholder","focus-border-color"]),[[y.vShow,i.show.captionBox]])],6)}const Rf=an(HD,[["render",$D]]),WD={components:{NodeViewWrapper:io,mediaContainer:Rf},props:{editor:{type:Object},node:{type:Object},decorations:{type:Array},selected:{type:Boolean},extension:{type:Object},getPos:{type:Function},updateAttributes:{type:Function},deleteNode:{type:Function}},data(){return{statusInfo:{show:!1,progress:0,loading:!1,info:"",tmpSrc:"",tmpHeight:0,lock:!0},previewImg:{scalePercent:"100",show:!1},thisTheme:this.editor.storage.defaultStorage.theme,thisLazyLoad:this.editor.storage.defaultStorage.imgLazyLoad,thisForeground:this.editor.storage.defaultStorage.foreground,thisImgPreview:this.editor.storage.defaultStorage.imgPreview,imgInterceptor:this.editor.storage.defaultStorage.imgInterceptor}},watch:{"node.attrs.src"(){this.imgInterceptorFunc()},"editor.storage.defaultStorage.theme"(n){this.thisTheme=n},"editor.storage.defaultStorage.imgLazyLoad"(n){this.thisLazyLoad=n},"editor.storage.defaultStorage.imgPreview"(n){this.thisImgPreview=n},"editor.storage.defaultStorage.foreground"(n){this.thisForeground=n},"editor.storage.defaultStorage.imgInterceptor"(n){this.imgInterceptor=n,this.imgInterceptorFunc()}},mounted(){this.imgInterceptorFunc()},methods:{showStatus(n){this.statusInfo.show=n},updateStatus(n,e,t=""){this.statusInfo.loading=n,this.statusInfo.progress=e,this.statusInfo.info=t},getImage(){return this.node.attrs.src},interceptImage(n=""){return this.statusInfo.tmpSrc=this.node.attrs.src,this.statusInfo.tmpHeight=this.$refs.image.$el.clientHeight,this.updateAttributes({src:n}),this.statusInfo.tmpSrc},updateImage(n){this.updateAttributes({src:n})},updateLock(n){this.statusInfo.lock=n},imgInterceptorFunc(){let n={node:this.node,extension:this.extension,getPos:this.getPos,updateAttributes:this.updateAttributes,deleteNode:this.deleteNode,showStatus:this.showStatus,updateStatus:this.updateStatus,getImage:this.getImage,interceptImage:this.interceptImage,updateImage:this.updateImage,updateLock:this.updateLock};this.imgInterceptor&&this.imgInterceptor(n)},preview(n="readonly"){this.editor.isEditable&&n!=="editable"||!this.editor.isEditable&&n!=="readonly"||this.node.attrs.src&&this.thisImgPreview&&(this.previewImg.show=!0)},scale(n,e){n.stopPropagation&&n.stopPropagation();let t=parseInt(this.previewImg.scalePercent);t+=e,t<50?t=50:t>200&&(t=200),this.previewImg.scalePercent=t.toString()},setScale(n,e){n.stopPropagation&&n.stopPropagation(),e<50?e=50:e>200&&(e=200),this.previewImg.scalePercent=e.toString()}}},KD={class:"power-editor-image-status-container"},jD={class:"power-editor-preview-img-container"};function QD(n,e,t,r,i,o){const s=y.resolveComponent("fv-image"),a=y.resolveComponent("fv-progress-ring"),l=y.resolveComponent("media-container"),c=y.resolveComponent("fv-img"),u=y.resolveComponent("fv-button"),h=y.resolveComponent("fv-text-box"),g=y.resolveComponent("node-view-wrapper");return t.node?(y.openBlock(),y.createBlock(g,{key:0,class:y.normalizeClass(["power-editor-image-container",[{dark:i.thisTheme==="dark"}]]),style:y.normalizeStyle({"justify-content":t.node.attrs.alignCenter?"center":"flex-start"})},{default:y.withCtx(()=>[y.createVNode(l,{width:t.node.attrs.width,caption:t.node.attrs.caption,alignCenter:t.node.attrs.alignCenter,editor:t.editor,theme:i.thisTheme,foreground:i.thisForeground,node:t.node,getPos:t.getPos,"onUpdate:caption":e[1]||(e[1]=b=>t.updateAttributes({caption:b})),onContainerDblclick:e[2]||(e[2]=b=>o.preview("editable")),onContainerClick:e[3]||(e[3]=b=>o.preview("readonly"))},{default:y.withCtx(()=>[y.createVNode(s,{src:t.node.attrs.src?t.node.attrs.src:i.statusInfo.tmpSrc?i.statusInfo.tmpSrc:"",ref:"image",onlazy:i.thisLazyLoad,style:y.normalizeStyle([{width:"100%",height:"auto"},{height:!t.node.attrs.src&&i.statusInfo.show?i.statusInfo.tmpHeight+"px":""}])},null,8,["src","onlazy","style"]),y.withDirectives(y.createElementVNode("div",KD,[y.createVNode(a,{modelValue:i.statusInfo.progress,"onUpdate:modelValue":e[0]||(e[0]=b=>i.statusInfo.progress=b),loading:i.statusInfo.loading,r:"20",borderWidth:"3",color:i.thisTheme==="dark"?"white":"black",background:i.thisTheme==="dark"?"rgba(0, 0, 0, 0.3)":"rgba(255, 255, 255, 0.3)"},null,8,["modelValue","loading","color","background"]),y.withDirectives(y.createElementVNode("p",{class:"power-editor-image-status-title"},y.toDisplayString(i.statusInfo.info),513),[[y.vShow,i.statusInfo.info]])],512),[[y.vShow,i.statusInfo.show]]),y.createElementVNode("div",{class:y.normalizeClass(["power-editor-image-selection-mask",[{selected:t.selected}]]),style:y.normalizeStyle({"--selected-bg":i.thisForeground})},null,6)]),_:1},8,["width","caption","alignCenter","editor","theme","foreground","node","getPos"]),y.createVNode(y.Transition,{name:"show-preview"},{default:y.withCtx(()=>[y.withDirectives(y.createElementVNode("div",{class:"power-editor-image-preview-block",onClick:e[10]||(e[10]=b=>i.previewImg.show=!1)},[y.createElementVNode("div",jD,[y.createVNode(c,{src:t.node.attrs.src,class:"power-editor-preview-img",style:y.normalizeStyle({scale:i.previewImg.scalePercent+"%",cursor:i.previewImg.scalePercent<150?"zoom-in":"zoom-out"}),onClick:e[4]||(e[4]=b=>i.previewImg.scalePercent<100?o.setScale(b,100):i.previewImg.scalePercent<150?o.setScale(b,150):o.setScale(b,100))},null,8,["src","style"])]),y.createElementVNode("div",{class:"power-editor-preview-tool-bar",onClick:e[9]||(e[9]=b=>b.stopPropagation())},[y.createVNode(u,{class:"power-editor-preview-img-btn",theme:"dark",disabled:i.previewImg.scalePercent<=50,background:"rgba(36, 36, 36, 0.3)",onClick:e[5]||(e[5]=b=>o.scale(b,-50))},{default:y.withCtx(()=>e[11]||(e[11]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--CalculatorSubtract"},null,-1)])),_:1,__:[11]},8,["disabled"]),y.createVNode(h,{modelValue:i.previewImg.scalePercent,theme:"dark",underline:"","border-color":"rgba(120, 120, 120, 0.1)","focus-border-color":i.thisForeground,"border-width":2,"is-box-shadow":!0,suffix:"%",style:{width:"80px",height:"35px"},onDebounceInput:e[6]||(e[6]=b=>o.setScale(b,b))},null,8,["modelValue","focus-border-color"]),y.createVNode(u,{class:"power-editor-preview-img-btn",theme:"dark",disabled:i.previewImg.scalePercent>=200,background:"rgba(36, 36, 36, 0.3)","border-color":"transparent",onClick:e[7]||(e[7]=b=>o.scale(b,50))},{default:y.withCtx(()=>e[12]||(e[12]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--CalculatorAddition"},null,-1)])),_:1,__:[12]},8,["disabled"]),y.createVNode(u,{class:"power-editor-preview-img-btn",theme:"dark",background:"rgba(36, 36, 36, 0.3)",onClick:e[8]||(e[8]=b=>i.previewImg.show=!1)},{default:y.withCtx(()=>e[13]||(e[13]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--BackToWindow"},null,-1)])),_:1,__:[13]})])],512),[[y.vShow,i.previewImg.show]])]),_:1})]),_:1},8,["class","style"])):y.createCommentVNode("",!0)}const YD=an(WD,[["render",QD]]),ZD=Hn.create({name:"imageblock",group:"block",draggable:!0,atom:!0,addAttributes(){return{src:{default:""},width:{default:100},caption:{default:""},alignCenter:{default:!0}}},parseHTML(){return[{tag:"img[src]"}]},renderHTML({HTMLAttributes:n}){return["img",jt(this.options.HTMLAttributes,n)]},addNodeView(){return vi(YD)}}),XD={components:{NodeViewWrapper:io,mediaContainer:Rf},props:{editor:{type:Object},node:{type:Object},decorations:{type:Array},selected:{type:Boolean},extension:{type:Object},getPos:{type:Function},updateAttributes:{type:Function},deleteNode:{type:Function}},data(){return{width:0,thisTheme:this.editor.storage.defaultStorage.theme,thisForeground:this.editor.storage.defaultStorage.foreground,timer:{}}},watch:{"editor.storage.defaultStorage.theme"(n){this.thisTheme=n},"editor.storage.defaultStorage.foreground"(n){this.thisForeground=n}},mounted(){this.timerInit()},methods:{timerInit(){this.timer=setInterval(()=>{this.width=this.$refs.media.$el.clientWidth},300)}},beforeUnmount(){clearInterval(this.timer)}},JD=["src"];function eR(n,e,t,r,i,o){const s=y.resolveComponent("media-container"),a=y.resolveComponent("node-view-wrapper");return t.node?(y.openBlock(),y.createBlock(a,{key:0,class:"power-editor-embed-container",style:y.normalizeStyle({"justify-content":t.node.attrs.alignCenter?"center":"flex-start"})},{default:y.withCtx(()=>[y.createVNode(s,{width:t.node.attrs.width,caption:t.node.attrs.caption,alignCenter:t.node.attrs.alignCenter,editor:t.editor,theme:i.thisTheme,foreground:i.thisForeground,node:t.node,getPos:t.getPos,ref:"media","onUpdate:caption":e[0]||(e[0]=l=>t.updateAttributes({caption:l}))},{default:y.withCtx(()=>[y.createElementVNode("iframe",{src:t.node.attrs.src,frameborder:"0",allowfullscreen:"",style:y.normalizeStyle([{width:"100%",height:"auto"},{height:`${i.width/1.778}px`}])},null,12,JD)]),_:1},8,["width","caption","alignCenter","editor","theme","foreground","node","getPos"])]),_:1},8,["style"])):y.createCommentVNode("",!0)}const tR=an(XD,[["render",eR]]),nR=Hn.create({name:"embedblock",group:"block",draggable:!0,atom:!0,addAttributes(){return{src:{default:""},width:{default:100},caption:{default:""},alignCenter:{default:!0}}},parseHTML(){return[{tag:"embed-block"}]},renderHTML({HTMLAttributes:n}){return["embed-block",jt(n)]},addNodeView(){return vi(tR)}});function Lc({find:n,type:e,getAttributes:t}){return new W1({find:n,handler({match:r,chain:i,range:o}){const s=et(t,void 0,r);if(s===!1||s===null)return null;if(r.input){const{from:a,to:l}=o;s.powerContent?i().deleteRange(o).insertContentAt(a,[{type:e.name,attrs:s,content:s.powerContent}]):i().deleteRange(o).insertContentAt(a,[{type:e.name,attrs:s}])}}})}const rR=/^-(\[([ |x])\])\s$/,iR=/^-(\s*)(\[([ |x])\])\s+(.*)/g,oR=Hn.create({name:"powerTaskList",group:"block list",content:"powerTaskItem+",parseHTML(){return[{tag:'ul[data-type="powerTaskList"]',priority:51}]},renderHTML({HTMLAttributes:n}){return["ul",jt(n,{"data-type":this.name}),0]},addCommands(){return{togglePowerTaskList:()=>({commands:n})=>n.toggleList("powerTaskList","powerTaskItem"),setPowerTaskList:()=>({editor:n,commands:e})=>{if(!n.isActive("powerTaskList"))return e.toggleList("powerTaskList","powerTaskItem")}}},addKeyboardShortcuts(){return{"Mod-Shift-9":()=>this.editor.commands.togglePowerTaskList()}},addInputRules(){return[sb({find:rR,type:this.type,getAttributes:n=>({checked:n[n.length-1]==="x",theme:this.editor.storage.defaultStorage.theme})})]},addPasteRules(){return[Lc({find:iR,type:this.type,getAttributes:n=>({powerContent:[{type:"powerTaskItem",content:[{type:"paragraph",content:[{type:"text",text:n[4]}]}],attrs:{checked:n[3]==="x",theme:this.editor.storage.defaultStorage.theme}}]})})]}}),sR={components:{NodeViewWrapper:io,NodeViewContent:Xb},props:{editor:{type:Object},node:{type:Object},decorations:{type:Array},selected:{type:Boolean},extension:{type:Object},getPos:{type:Function},updateAttributes:{type:Function},deleteNode:{type:Function}},data(){return{thisTheme:this.editor.storage.defaultStorage.theme,thisForeground:this.editor.storage.defaultStorage.foreground,timer:{}}},watch:{"editor.storage.defaultStorage.theme"(n){this.thisTheme=n},"editor.storage.defaultStorage.foreground"(n){this.thisForeground=n}},mounted(){},methods:{preventEnter(n){console.log(n)},updateValue(n){this.updateAttributes({checked:n})}},beforeUnmount(){clearInterval(this.timer)}};function aR(n,e,t,r,i,o){const s=y.resolveComponent("fv-check-box"),a=y.resolveComponent("node-view-content"),l=y.resolveComponent("node-view-wrapper");return t.node?(y.openBlock(),y.createBlock(l,{key:0,as:"li",class:"power-editor-task-item-container"},{default:y.withCtx(()=>[y.createVNode(s,{modelValue:t.node.attrs.checked,"onUpdate:modelValue":e[0]||(e[0]=c=>t.node.attrs.checked=c),theme:i.thisTheme,disabled:!t.editor.isEditable,background:i.thisForeground,contenteditable:"false",onClick:o.updateValue},null,8,["modelValue","theme","disabled","background","onClick"]),y.createVNode(a,{ref:"n",class:"power-editor-task-item-content"},null,512)]),_:1})):y.createCommentVNode("",!0)}const lR=an(sR,[["render",aR]]),cR=/^\s*(\[([ |x])\])\s$/,uR=/^(\s*)(\[([ |x])\])\s+(.*)/g,dR=Hn.create({name:"powerTaskItem",group:"block",content:"paragraph block*",draggable:!0,addAttributes(){return{value:{default:""},checked:{default:!1},placeholder:{default:"To-Do"}}},parseHTML(){return[{tag:'li[data-type="powerTaskItem"]',priority:51}]},renderHTML({HTMLAttributes:n}){return["li",jt(this.options.HTMLAttributes,n,{"data-type":"powerTaskItem"}),0]},addKeyboardShortcuts(){const n={Enter:()=>this.editor.commands.splitListItem("powerTaskItem"),"Shift-Tab":()=>this.editor.commands.liftListItem("powerTaskItem")};return this.options.nested?{...n,Tab:()=>this.editor.commands.sinkListItem("powerTaskItem")}:n},addNodeView(){return vi(lR)},addInputRules(){return[sb({find:cR,type:this.type,getAttributes:n=>({checked:n[n.length-1]==="x",theme:this.editor.storage.defaultStorage.theme})})]},addPasteRules(){return[Lc({find:uR,type:this.type,getAttributes:n=>({powerContent:[{type:"paragraph",content:[{type:"text",text:n[4]}]}],checked:n[3]==="x",theme:this.editor.storage.defaultStorage.theme})})]}});var Of,o2;function hR(){if(o2)return Of;o2=1;var n=[],e=function(a){return typeof a>"u"},t=/\s*(\.\d+|\d+(?:\.\d+)?)(%|deg)?\s*/,r=/\s*(\.\d+|100|\d?\d(?:\.\d+)?)%\s*/,i=new RegExp("^(rgb|hsl|hsv)a?\\("+t.source+"[, ]"+t.source+"[, ]"+t.source+"(?:[,/]"+t.source+")?\\)$","i");function o(a,l,c){if(a==="%")return 100;if(a==="deg"||c&&l===0)return 360;if(!a)return 255}function s(a){if(Array.isArray(a)){if(typeof a[0]=="string"&&typeof s[a[0]]=="function")return new s[a[0]](a.slice(1,a.length));if(a.length===4)return new s.RGB(a[0]/255,a[1]/255,a[2]/255,a[3]/255)}else if(typeof a=="string"){var l=a.toLowerCase();s.namedColors[l]&&(a="#"+s.namedColors[l]),l==="transparent"&&(a="rgba(0,0,0,0)");var c=a.match(i);if(c){var u=c[1].toUpperCase(),h=u[0]==="H";if(e(s[u]))throw new Error("color."+u+" is not installed.");let p=e(c[8])?1:void 0;return p===void 0&&(c[9]==="%"?p=parseFloat(c[8])/100:p=parseFloat(c[8])),new s[u](parseFloat(c[2])/o(c[3],0,h),parseFloat(c[4])/o(c[5],1,h),parseFloat(c[6])/o(c[7],2,h),p)}a.length<6&&(a=a.replace(/^#?([0-9a-f])([0-9a-f])([0-9a-f])([0-9a-f])?$/i,"$1$1$2$2$3$3$4$4"));var g=a.match(/^#?([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])?$/i);if(g)return new s.RGB(parseInt(g[1],16)/255,parseInt(g[2],16)/255,parseInt(g[3],16)/255,g[4]?parseInt(g[4],16)/255:1);if(s.CMYK){var b=a.match(new RegExp("^cmyk\\("+r.source+","+r.source+","+r.source+","+r.source+"\\)$","i"));if(b)return new s.CMYK(parseFloat(b[1])/100,parseFloat(b[2])/100,parseFloat(b[3])/100,parseFloat(b[4])/100)}}else if(typeof a=="object"&&a.isColor)return a;return!1}return s.namedColors={},s.installColorSpace=function(a,l,c){s[a]=function(p){var v=Array.isArray(p)?p:arguments;l.forEach(function(w,S){var C=v[S];if(w==="alpha")this._alpha=isNaN(C)||C>1?1:C<0?0:C;else{if(isNaN(C))throw new Error("["+a+"]: Invalid color: ("+l.join(",")+")");w==="hue"?this._hue=C<0?C-Math.floor(C):C%1:this["_"+w]=C<0?0:C>1?1:C}},this)},s[a].propertyNames=l;var u=s[a].prototype;["valueOf","hex","hexa","css","cssa"].forEach(function(p){u[p]=u[p]||(a==="RGB"?u.hex:function(){return this.rgb()[p]()})}),u.isColor=!0,u.equals=function(p,v){e(v)&&(v=1e-10),p=p[a.toLowerCase()]();for(var w=0;w<l.length;w=w+1)if(Math.abs(this["_"+l[w]]-p["_"+l[w]])>v)return!1;return!0},u.toJSON=function(){return[a].concat(l.map(function(p){return this["_"+p]},this))};for(var h in c)if(Object.prototype.hasOwnProperty.call(c,h)){var g=h.match(/^from(.*)$/);g?s[g[1].toUpperCase()].prototype[a.toLowerCase()]=c[h]:u[h]=c[h]}u[a.toLowerCase()]=function(){return this},u.toString=function(){return"["+a+" "+l.map(function(p){return this["_"+p]},this).join(", ")+"]"},l.forEach(function(p){var v=p==="black"?"k":p.charAt(0);u[p]=u[v]=function(w,S){return typeof w>"u"?this["_"+p]:S?new this.constructor(l.map(function(C){return this["_"+C]+(p===C?w:0)},this)):new this.constructor(l.map(function(C){return p===C?w:this["_"+C]},this))}});function b(p,v){var w={};w[v.toLowerCase()]=function(){return this.rgb()[v.toLowerCase()]()},s[v].propertyNames.forEach(function(C){var E=C==="black"?"k":C.charAt(0);w[C]=w[E]=function(A,R){return this[v.toLowerCase()]()[C](A,R)}});for(var S in w)Object.prototype.hasOwnProperty.call(w,S)&&s[p].prototype[S]===void 0&&(s[p].prototype[S]=w[S])}return n.forEach(function(p){b(a,p),b(p,a)}),n.push(a),s},s.pluginList=[],s.use=function(a){return s.pluginList.indexOf(a)===-1&&(this.pluginList.push(a),a(s)),s},s.installMethod=function(a,l){return n.forEach(function(c){s[c].prototype[a]=l}),this},s.installColorSpace("RGB",["red","green","blue","alpha"],{hex:function(){var a=(Math.round(255*this._red)*65536+Math.round(255*this._green)*256+Math.round(255*this._blue)).toString(16);return"#"+"00000".substr(0,6-a.length)+a},hexa:function(){var a=Math.round(this._alpha*255).toString(16);return this.hex()+"00".substr(0,2-a.length)+a},css:function(){return"rgb("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+")"},cssa:function(){return"rgba("+Math.round(255*this._red)+","+Math.round(255*this._green)+","+Math.round(255*this._blue)+","+this._alpha+")"}}),Of=s,Of}var If,s2;function a2(){return s2||(s2=1,If=function(e){e.installColorSpace("XYZ",["x","y","z","alpha"],{fromRgb:function(){var t=function(s){return s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92},r=t(this._red),i=t(this._green),o=t(this._blue);return new e.XYZ(r*.4124564+i*.3575761+o*.1804375,r*.2126729+i*.7151522+o*.072175,r*.0193339+i*.119192+o*.9503041,this._alpha)},rgb:function(){var t=this._x,r=this._y,i=this._z,o=function(s){return s>.0031308?1.055*Math.pow(s,1/2.4)-.055:12.92*s};return new e.RGB(o(t*3.2404542+r*-1.5371385+i*-.4985314),o(t*-.969266+r*1.8760108+i*.041556),o(t*.0556434+r*-.2040259+i*1.0572252),this._alpha)},lab:function(){var t=function(s){return s>.008856?Math.pow(s,.3333333333333333):7.787037*s+.13793103448275862},r=t(this._x/95.047),i=t(this._y/100),o=t(this._z/108.883);return new e.LAB(116*i-16,500*(r-i),200*(i-o),this._alpha)}})}),If}var Lf,l2;function fR(){return l2||(l2=1,Lf=function(e){e.use(a2()),e.installColorSpace("LAB",["l","a","b","alpha"],{fromRgb:function(){return this.xyz().lab()},rgb:function(){return this.xyz().rgb()},xyz:function(){var t=function(s){var a=Math.pow(s,3);return a>.008856?a:(s-.13793103448275862)/7.87},r=(this._l+16)/116,i=this._a/500+r,o=r-this._b/200;return new e.XYZ(t(i)*95.047,t(r)*100,t(o)*108.883,this._alpha)}})}),Lf}var Bf,c2;function u2(){return c2||(c2=1,Bf=function(e){e.installColorSpace("HSV",["hue","saturation","value","alpha"],{rgb:function(){var t=this._hue,r=this._saturation,i=this._value,o=Math.min(5,Math.floor(t*6)),s=t*6-o,a=i*(1-r),l=i*(1-s*r),c=i*(1-(1-s)*r),u,h,g;switch(o){case 0:u=i,h=c,g=a;break;case 1:u=l,h=i,g=a;break;case 2:u=a,h=i,g=c;break;case 3:u=a,h=l,g=i;break;case 4:u=c,h=a,g=i;break;case 5:u=i,h=a,g=l;break}return new e.RGB(u,h,g,this._alpha)},hsl:function(){var t=(2-this._saturation)*this._value,r=this._saturation*this._value,i=t<=1?t:2-t,o;return i<1e-9?o=0:o=r/i,new e.HSL(this._hue,o,t/2,this._alpha)},fromRgb:function(){var t=this._red,r=this._green,i=this._blue,o=Math.max(t,r,i),s=Math.min(t,r,i),a=o-s,l,c=o===0?0:a/o,u=o;if(a===0)l=0;else switch(o){case t:l=(r-i)/a/6+(r<i?1:0);break;case r:l=(i-t)/a/6+1/3;break;case i:l=(t-r)/a/6+2/3;break}return new e.HSV(l,c,u,this._alpha)}})}),Bf}var Pf,d2;function Xo(){return d2||(d2=1,Pf=function(e){e.use(u2()),e.installColorSpace("HSL",["hue","saturation","lightness","alpha"],{hsv:function(){var t=this._lightness*2,r=this._saturation*(t<=1?t:2-t),i;return t+r<1e-9?i=0:i=2*r/(t+r),new e.HSV(this._hue,i,(t+r)/2,this._alpha)},rgb:function(){return this.hsv().rgb()},fromRgb:function(){return this.hsv().hsl()}})}),Pf}var Ff,h2;function pR(){return h2||(h2=1,Ff=function(e){e.installColorSpace("CMYK",["cyan","magenta","yellow","black","alpha"],{rgb:function(){return new e.RGB(1-this._cyan*(1-this._black)-this._black,1-this._magenta*(1-this._black)-this._black,1-this._yellow*(1-this._black)-this._black,this._alpha)},fromRgb:function(){var t=this._red,r=this._green,i=this._blue,o=1-t,s=1-r,a=1-i,l=1;return t||r||i?(l=Math.min(o,Math.min(s,a)),o=(o-l)/(1-l),s=(s-l)/(1-l),a=(a-l)/(1-l)):l=1,new e.CMYK(o,s,a,l,this._alpha)}})}),Ff}var zf,f2;function mR(){return f2||(f2=1,zf=function(e){e.namedColors={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgrey:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",grey:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"}}),zf}var qf,p2;function gR(){return p2||(p2=1,qf=function(e){e.installMethod("clearer",function(t){return this.alpha(isNaN(t)?-.1:-t,!0)})}),qf}var Hf,m2;function g2(){return m2||(m2=1,Hf=function(e){function t(r){return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}e.installMethod("luminance",function(){var r=this.rgb();return .2126*t(r._red)+.7152*t(r._green)+.0722*t(r._blue)})}),Hf}var Vf,b2;function bR(){return b2||(b2=1,Vf=function(e){e.use(g2()),e.installMethod("contrast",function(t){var r=this.luminance(),i=t.luminance();return r>i?(r+.05)/(i+.05):(i+.05)/(r+.05)})}),Vf}var Uf,_2;function _R(){return _2||(_2=1,Uf=function(e){e.use(Xo()),e.installMethod("darken",function(t){return this.lightness(isNaN(t)?-.1:-t,!0)})}),Uf}var Gf,y2;function yR(){return y2||(y2=1,Gf=function(e){e.use(Xo()),e.installMethod("desaturate",function(t){return this.saturation(isNaN(t)?-.1:-t,!0)})}),Gf}var $f,v2;function vR(){return v2||(v2=1,$f=function(e){function t(){var r=this.rgb(),i=r._red*.3+r._green*.59+r._blue*.11;return new e.RGB(i,i,i,r._alpha)}e.installMethod("greyscale",t).installMethod("grayscale",t)}),$f}var Wf,w2;function x2(){return w2||(w2=1,Wf=function(e){e.installMethod("isDark",function(){var t=this.rgb(),r=(t._red*255*299+t._green*255*587+t._blue*255*114)/1e3;return r<128})}),Wf}var Kf,k2;function wR(){return k2||(k2=1,Kf=function(e){e.use(x2()),e.installMethod("isLight",function(){return!this.isDark()})}),Kf}var jf,S2;function xR(){return S2||(S2=1,jf=function(e){e.use(Xo()),e.installMethod("lighten",function(t){return this.lightness(isNaN(t)?.1:t,!0)})}),jf}var Qf,E2;function kR(){return E2||(E2=1,Qf=function(e){e.installMethod("mix",function(t,r){t=e(t).rgb(),r=1-(isNaN(r)?.5:r);var i=r*2-1,o=this._alpha-t._alpha,s=((i*o===-1?i:(i+o)/(1+i*o))+1)/2,a=1-s,l=this.rgb();return new e.RGB(l._red*s+t._red*a,l._green*s+t._green*a,l._blue*s+t._blue*a,l._alpha*r+t._alpha*(1-r))})}),Qf}var Yf,C2;function SR(){return C2||(C2=1,Yf=function(e){e.installMethod("negate",function(){var t=this.rgb();return new e.RGB(1-t._red,1-t._green,1-t._blue,this._alpha)})}),Yf}var Zf,T2;function ER(){return T2||(T2=1,Zf=function(e){e.installMethod("opaquer",function(t){return this.alpha(isNaN(t)?.1:t,!0)})}),Zf}var Xf,A2;function CR(){return A2||(A2=1,Xf=function(e){e.use(Xo()),e.installMethod("rotate",function(t){return this.hue((t||0)/360,!0)})}),Xf}var Jf,M2;function TR(){return M2||(M2=1,Jf=function(e){e.use(Xo()),e.installMethod("saturate",function(t){return this.saturation(isNaN(t)?.1:t,!0)})}),Jf}var ep,N2;function AR(){return N2||(N2=1,ep=function(e){e.installMethod("toAlpha",function(t){var r=this.rgb(),i=t(t).rgb(),o=1e-10,s=new t.RGB(0,0,0,r._alpha),a=["_red","_green","_blue"];return a.forEach(function(l){r[l]<o?s[l]=r[l]:r[l]>i[l]?s[l]=(r[l]-i[l])/(1-i[l]):r[l]>i[l]?s[l]=(i[l]-r[l])/i[l]:s[l]=0}),s._red>s._green?s._red>s._blue?r._alpha=s._red:r._alpha=s._blue:s._green>s._blue?r._alpha=s._green:r._alpha=s._blue,r._alpha<o||(a.forEach(function(l){r[l]=(r[l]-i[l])/r._alpha+i[l]}),r._alpha*=s._alpha),r})}),ep}var tp,D2;function MR(){return D2||(D2=1,tp=hR().use(a2()).use(fR()).use(u2()).use(Xo()).use(pR()).use(mR()).use(gR()).use(bR()).use(_R()).use(yR()).use(vR()).use(x2()).use(wR()).use(xR()).use(g2()).use(kR()).use(SR()).use(ER()).use(CR()).use(TR()).use(AR())),tp}var NR=MR();const Bc=Nr(NR);var Pc={exports:{}},DR=Pc.exports,R2;function RR(){return R2||(R2=1,function(n,e){(function(r,i){n.exports=i()})(typeof self<"u"?self:DR,function(){return function(){var t={};(function(){t.d=function(M,d){for(var f in d)t.o(d,f)&&!t.o(M,f)&&Object.defineProperty(M,f,{enumerable:!0,get:d[f]})}})(),function(){t.o=function(M,d){return Object.prototype.hasOwnProperty.call(M,d)}}();var r={};t.d(r,{default:function(){return JF}});var i=function M(d,f){this.position=void 0;var m="KaTeX parse error: "+d,_,x=f&&f.loc;if(x&&x.start<=x.end){var T=x.lexer.input;_=x.start;var I=x.end;_===T.length?m+=" at end of input: ":m+=" at position "+(_+1)+": ";var B=T.slice(_,I).replace(/[^]/g,"$&̲"),z;_>15?z="…"+T.slice(_-15,_):z=T.slice(0,_);var G;I+15<T.length?G=T.slice(I,I+15)+"…":G=T.slice(I),m+=z+B+G}var te=new Error(m);return te.name="ParseError",te.__proto__=M.prototype,te.position=_,te};i.prototype.__proto__=Error.prototype;var o=i,s=function(d,f){return d.indexOf(f)!==-1},a=function(d,f){return d===void 0?f:d},l=/([A-Z])/g,c=function(d){return d.replace(l,"-$1").toLowerCase()},u={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},h=/[&><"']/g;function g(M){return String(M).replace(h,function(d){return u[d]})}var b=function M(d){return d.type==="ordgroup"||d.type==="color"?d.body.length===1?M(d.body[0]):d:d.type==="font"?M(d.body):d},p=function(d){var f=b(d);return f.type==="mathord"||f.type==="textord"||f.type==="atom"},v=function(d){if(!d)throw new Error("Expected non-null, but got "+String(d));return d},w=function(d){var f=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(d);return f!=null?f[1]:"_relative"},S={contains:s,deflt:a,escape:g,hyphenate:c,getBaseElem:b,isCharacterBox:p,protocolFromUrl:w},C=function(){function M(f){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,f=f||{},this.displayMode=S.deflt(f.displayMode,!1),this.output=S.deflt(f.output,"htmlAndMathml"),this.leqno=S.deflt(f.leqno,!1),this.fleqn=S.deflt(f.fleqn,!1),this.throwOnError=S.deflt(f.throwOnError,!0),this.errorColor=S.deflt(f.errorColor,"#cc0000"),this.macros=f.macros||{},this.minRuleThickness=Math.max(0,S.deflt(f.minRuleThickness,0)),this.colorIsTextColor=S.deflt(f.colorIsTextColor,!1),this.strict=S.deflt(f.strict,"warn"),this.trust=S.deflt(f.trust,!1),this.maxSize=Math.max(0,S.deflt(f.maxSize,1/0)),this.maxExpand=Math.max(0,S.deflt(f.maxExpand,1e3)),this.globalGroup=S.deflt(f.globalGroup,!1)}var d=M.prototype;return d.reportNonstrict=function(m,_,x){var T=this.strict;if(typeof T=="function"&&(T=T(m,_,x)),!(!T||T==="ignore")){if(T===!0||T==="error")throw new o("LaTeX-incompatible input and strict mode is set to 'error': "+(_+" ["+m+"]"),x);T==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(_+" ["+m+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+T+"': "+_+" ["+m+"]"))}},d.useStrictBehavior=function(m,_,x){var T=this.strict;if(typeof T=="function")try{T=T(m,_,x)}catch{T="error"}return!T||T==="ignore"?!1:T===!0||T==="error"?!0:T==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(_+" ["+m+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+T+"': "+_+" ["+m+"]")),!1)},d.isTrusted=function(m){m.url&&!m.protocol&&(m.protocol=S.protocolFromUrl(m.url));var _=typeof this.trust=="function"?this.trust(m):this.trust;return!!_},M}(),E=function(){function M(f,m,_){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=f,this.size=m,this.cramped=_}var d=M.prototype;return d.sup=function(){return X[oe[this.id]]},d.sub=function(){return X[K[this.id]]},d.fracNum=function(){return X[ee[this.id]]},d.fracDen=function(){return X[$[this.id]]},d.cramp=function(){return X[Q[this.id]]},d.text=function(){return X[ie[this.id]]},d.isTight=function(){return this.size>=2},M}(),A=0,R=1,O=2,H=3,q=4,U=5,F=6,Y=7,X=[new E(A,0,!1),new E(R,0,!0),new E(O,1,!1),new E(H,1,!0),new E(q,2,!1),new E(U,2,!0),new E(F,3,!1),new E(Y,3,!0)],oe=[q,U,q,U,F,Y,F,Y],K=[U,U,U,U,Y,Y,Y,Y],ee=[O,H,q,U,F,Y,F,Y],$=[H,H,U,U,Y,Y,Y,Y],Q=[R,R,H,H,U,U,Y,Y],ie=[A,R,O,H,O,H,O,H],Z={DISPLAY:X[A],TEXT:X[O],SCRIPT:X[q],SCRIPTSCRIPT:X[F]},J=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function ue(M){for(var d=0;d<J.length;d++)for(var f=J[d],m=0;m<f.blocks.length;m++){var _=f.blocks[m];if(M>=_[0]&&M<=_[1])return f.name}return null}var fe=[];J.forEach(function(M){return M.blocks.forEach(function(d){return fe.push.apply(fe,d)})});function ke(M){for(var d=0;d<fe.length;d+=2)if(M>=fe[d]&&M<=fe[d+1])return!0;return!1}var Te=80,Ke=function(d,f){return"M95,"+(622+d+f)+`
178
+ c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
179
+ c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
180
+ c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
181
+ s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
182
+ c69,-144,104.5,-217.7,106.5,-221
183
+ l`+d/2.075+" -"+d+`
184
+ c5.3,-9.3,12,-14,20,-14
185
+ H400000v`+(40+d)+`H845.2724
186
+ s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
187
+ c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
188
+ M`+(834+d)+" "+f+"h400000v"+(40+d)+"h-400000z"},Qe=function(d,f){return"M263,"+(601+d+f)+`c0.7,0,18,39.7,52,119
189
+ c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
190
+ c340,-704.7,510.7,-1060.3,512,-1067
191
+ l`+d/2.084+" -"+d+`
192
+ c4.7,-7.3,11,-11,19,-11
193
+ H40000v`+(40+d)+`H1012.3
194
+ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
195
+ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
196
+ s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
197
+ c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
198
+ M`+(1001+d)+" "+f+"h400000v"+(40+d)+"h-400000z"},Ze=function(d,f){return"M983 "+(10+d+f)+`
199
+ l`+d/3.13+" -"+d+`
200
+ c4,-6.7,10,-10,18,-10 H400000v`+(40+d)+`
201
+ H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
202
+ s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
203
+ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
204
+ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
205
+ c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
206
+ c53.7,-170.3,84.5,-266.8,92.5,-289.5z
207
+ M`+(1001+d)+" "+f+"h400000v"+(40+d)+"h-400000z"},ot=function(d,f){return"M424,"+(2398+d+f)+`
208
+ c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
209
+ c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
210
+ s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
211
+ s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
212
+ l`+d/4.223+" -"+d+`c4,-6.7,10,-10,18,-10 H400000
213
+ v`+(40+d)+`H1014.6
214
+ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
215
+ c-2,6,-10,9,-24,9
216
+ c-8,0,-12,-0.7,-12,-2z M`+(1001+d)+" "+f+`
217
+ h400000v`+(40+d)+"h-400000z"},Be=function(d,f){return"M473,"+(2713+d+f)+`
218
+ c339.3,-1799.3,509.3,-2700,510,-2702 l`+d/5.298+" -"+d+`
219
+ c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+d)+`H1017.7
220
+ s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
221
+ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
222
+ c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
223
+ s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
224
+ 606zM`+(1001+d)+" "+f+"h400000v"+(40+d)+"H1017.7z"},dt=function(d){var f=d/2;return"M400000 "+d+" H0 L"+f+" 0 l65 45 L145 "+(d-80)+" H400000z"},tt=function(d,f,m){var _=m-54-f-d;return"M702 "+(d+f)+"H400000"+(40+d)+`
225
+ H742v`+_+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
226
+ h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
227
+ c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
228
+ 219 661 l218 661zM702 `+f+"H400000v"+(40+d)+"H742z"},at=function(d,f,m){f=1e3*f;var _="";switch(d){case"sqrtMain":_=Ke(f,Te);break;case"sqrtSize1":_=Qe(f,Te);break;case"sqrtSize2":_=Ze(f,Te);break;case"sqrtSize3":_=ot(f,Te);break;case"sqrtSize4":_=Be(f,Te);break;case"sqrtTall":_=tt(f,Te,m)}return _},ht=function(d,f){switch(d){case"⎜":return"M291 0 H417 V"+f+" H291z M291 0 H417 V"+f+" H291z";case"∣":return"M145 0 H188 V"+f+" H145z M145 0 H188 V"+f+" H145z";case"∥":return"M145 0 H188 V"+f+" H145z M145 0 H188 V"+f+" H145z"+("M367 0 H410 V"+f+" H367z M367 0 H410 V"+f+" H367z");case"⎟":return"M457 0 H583 V"+f+" H457z M457 0 H583 V"+f+" H457z";case"⎢":return"M319 0 H403 V"+f+" H319z M319 0 H403 V"+f+" H319z";case"⎥":return"M263 0 H347 V"+f+" H263z M263 0 H347 V"+f+" H263z";case"⎪":return"M384 0 H504 V"+f+" H384z M384 0 H504 V"+f+" H384z";case"⏐":return"M312 0 H355 V"+f+" H312z M312 0 H355 V"+f+" H312z";case"‖":return"M257 0 H300 V"+f+" H257z M257 0 H300 V"+f+" H257z"+("M478 0 H521 V"+f+" H478z M478 0 H521 V"+f+" H478z");default:return""}},it={doubleleftarrow:`M262 157
229
+ l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
230
+ 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
231
+ 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
232
+ c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
233
+ 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
234
+ -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
235
+ -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
236
+ m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
237
+ -10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
238
+ 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
239
+ -33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
240
+ -17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
241
+ -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
242
+ c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
243
+ -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
244
+ 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
245
+ -5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
246
+ c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
247
+ 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
248
+ 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
249
+ l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
250
+ -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
251
+ 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
252
+ 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
253
+ 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
254
+ -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
255
+ H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
256
+ 435 0h399565z`,leftgroupunder:`M400000 262
257
+ H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
258
+ 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
259
+ -3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
260
+ -18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
261
+ -196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
262
+ 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
263
+ -4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
264
+ -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
265
+ m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
266
+ 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
267
+ 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
268
+ -152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
269
+ 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
270
+ -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
271
+ v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
272
+ -83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
273
+ -68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
274
+ 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
275
+ M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
276
+ M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
277
+ -.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
278
+ c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
279
+ 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
280
+ M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
281
+ c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
282
+ -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
283
+ 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
284
+ 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
285
+ c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
286
+ 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
287
+ 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
288
+ -5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
289
+ -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
290
+ m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
291
+ 60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
292
+ -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
293
+ m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
294
+ c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
295
+ -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
296
+ m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
297
+ 85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
298
+ -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
299
+ m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
300
+ c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
301
+ -16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
302
+ 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
303
+ 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
304
+ -40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
305
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
306
+ 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
307
+ -6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
308
+ s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
309
+ c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
310
+ 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
311
+ -174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
312
+ 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
313
+ 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
314
+ -3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
315
+ -10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
316
+ 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
317
+ -18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
318
+ 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
319
+ m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
320
+ 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
321
+ -7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
322
+ -27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
323
+ 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
324
+ 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
325
+ -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
326
+ m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
327
+ 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
328
+ -13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
329
+ 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
330
+ M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
331
+ 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
332
+ -52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
333
+ -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
334
+ 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
335
+ -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
336
+ -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
337
+ -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
338
+ 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
339
+ c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
340
+ 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
341
+ 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
342
+ -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
343
+ 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
344
+ -2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
345
+ 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
346
+ 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
347
+ -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
348
+ -8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
349
+ 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
350
+ c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
351
+ 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
352
+ -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
353
+ 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
354
+ 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
355
+ -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
356
+ -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
357
+ 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
358
+ 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
359
+ -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
360
+ 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
361
+ 10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
362
+ -1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
363
+ -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
364
+ H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
365
+ c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
366
+ c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
367
+ -11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
368
+ -11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
369
+ -11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
370
+ -5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
371
+ -11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
372
+ -11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
373
+ -11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
374
+ c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
375
+ c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
376
+ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
377
+ 121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
378
+ s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
379
+ c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
380
+ M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
381
+ -27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
382
+ 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
383
+ -84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
384
+ -119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
385
+ -12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
386
+ 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
387
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
388
+ c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
389
+ c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
390
+ c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
391
+ M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
392
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
393
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
394
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
395
+ M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
396
+ c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
397
+ 1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
398
+ -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
399
+ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
400
+ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
401
+ -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
402
+ c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
403
+ M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},ct=function(){function M(f){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=f,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var d=M.prototype;return d.hasClass=function(m){return S.contains(this.classes,m)},d.toNode=function(){for(var m=document.createDocumentFragment(),_=0;_<this.children.length;_++)m.appendChild(this.children[_].toNode());return m},d.toMarkup=function(){for(var m="",_=0;_<this.children.length;_++)m+=this.children[_].toMarkup();return m},d.toText=function(){var m=function(x){return x.toText()};return this.children.map(m).join("")},M}(),Et=function(d){return d.filter(function(f){return f}).join(" ")},He=function(d,f,m){if(this.classes=d||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=m||{},f){f.style.isTight()&&this.classes.push("mtight");var _=f.getColor();_&&(this.style.color=_)}},sr=function(d){var f=document.createElement(d);f.className=Et(this.classes);for(var m in this.style)this.style.hasOwnProperty(m)&&(f.style[m]=this.style[m]);for(var _ in this.attributes)this.attributes.hasOwnProperty(_)&&f.setAttribute(_,this.attributes[_]);for(var x=0;x<this.children.length;x++)f.appendChild(this.children[x].toNode());return f},Ct=function(d){var f="<"+d;this.classes.length&&(f+=' class="'+S.escape(Et(this.classes))+'"');var m="";for(var _ in this.style)this.style.hasOwnProperty(_)&&(m+=S.hyphenate(_)+":"+this.style[_]+";");m&&(f+=' style="'+S.escape(m)+'"');for(var x in this.attributes)this.attributes.hasOwnProperty(x)&&(f+=" "+x+'="'+S.escape(this.attributes[x])+'"');f+=">";for(var T=0;T<this.children.length;T++)f+=this.children[T].toMarkup();return f+="</"+d+">",f},Xe=function(){function M(f,m,_,x){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,He.call(this,f,_,x),this.children=m||[]}var d=M.prototype;return d.setAttribute=function(m,_){this.attributes[m]=_},d.hasClass=function(m){return S.contains(this.classes,m)},d.toNode=function(){return sr.call(this,"span")},d.toMarkup=function(){return Ct.call(this,"span")},M}(),Zt=function(){function M(f,m,_,x){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,He.call(this,m,x),this.children=_||[],this.setAttribute("href",f)}var d=M.prototype;return d.setAttribute=function(m,_){this.attributes[m]=_},d.hasClass=function(m){return S.contains(this.classes,m)},d.toNode=function(){return sr.call(this,"a")},d.toMarkup=function(){return Ct.call(this,"a")},M}(),hn=function(){function M(f,m,_){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=m,this.src=f,this.classes=["mord"],this.style=_}var d=M.prototype;return d.hasClass=function(m){return S.contains(this.classes,m)},d.toNode=function(){var m=document.createElement("img");m.src=this.src,m.alt=this.alt,m.className="mord";for(var _ in this.style)this.style.hasOwnProperty(_)&&(m.style[_]=this.style[_]);return m},d.toMarkup=function(){var m="<img src='"+this.src+" 'alt='"+this.alt+"' ",_="";for(var x in this.style)this.style.hasOwnProperty(x)&&(_+=S.hyphenate(x)+":"+this.style[x]+";");return _&&(m+=' style="'+S.escape(_)+'"'),m+="'/>",m},M}(),Tn={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"},Lt=function(){function M(f,m,_,x,T,I,B,z){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=f,this.height=m||0,this.depth=_||0,this.italic=x||0,this.skew=T||0,this.width=I||0,this.classes=B||[],this.style=z||{},this.maxFontSize=0;var G=ue(this.text.charCodeAt(0));G&&this.classes.push(G+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=Tn[this.text])}var d=M.prototype;return d.hasClass=function(m){return S.contains(this.classes,m)},d.toNode=function(){var m=document.createTextNode(this.text),_=null;this.italic>0&&(_=document.createElement("span"),_.style.marginRight=this.italic+"em"),this.classes.length>0&&(_=_||document.createElement("span"),_.className=Et(this.classes));for(var x in this.style)this.style.hasOwnProperty(x)&&(_=_||document.createElement("span"),_.style[x]=this.style[x]);return _?(_.appendChild(m),_):m},d.toMarkup=function(){var m=!1,_="<span";this.classes.length&&(m=!0,_+=' class="',_+=S.escape(Et(this.classes)),_+='"');var x="";this.italic>0&&(x+="margin-right:"+this.italic+"em;");for(var T in this.style)this.style.hasOwnProperty(T)&&(x+=S.hyphenate(T)+":"+this.style[T]+";");x&&(m=!0,_+=' style="'+S.escape(x)+'"');var I=S.escape(this.text);return m?(_+=">",_+=I,_+="</span>",_):I},M}(),ge=function(){function M(f,m){this.children=void 0,this.attributes=void 0,this.children=f||[],this.attributes=m||{}}var d=M.prototype;return d.toNode=function(){var m="http://www.w3.org/2000/svg",_=document.createElementNS(m,"svg");for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&_.setAttribute(x,this.attributes[x]);for(var T=0;T<this.children.length;T++)_.appendChild(this.children[T].toNode());return _},d.toMarkup=function(){var m='<svg xmlns="http://www.w3.org/2000/svg"';for(var _ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,_)&&(m+=" "+_+"='"+this.attributes[_]+"'");m+=">";for(var x=0;x<this.children.length;x++)m+=this.children[x].toMarkup();return m+="</svg>",m},M}(),Ce=function(){function M(f,m){this.pathName=void 0,this.alternate=void 0,this.pathName=f,this.alternate=m}var d=M.prototype;return d.toNode=function(){var m="http://www.w3.org/2000/svg",_=document.createElementNS(m,"path");return this.alternate?_.setAttribute("d",this.alternate):_.setAttribute("d",it[this.pathName]),_},d.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+it[this.pathName]+"'/>"},M}(),qe=function(){function M(f){this.attributes=void 0,this.attributes=f||{}}var d=M.prototype;return d.toNode=function(){var m="http://www.w3.org/2000/svg",_=document.createElementNS(m,"line");for(var x in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,x)&&_.setAttribute(x,this.attributes[x]);return _},d.toMarkup=function(){var m="<line";for(var _ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,_)&&(m+=" "+_+"='"+this.attributes[_]+"'");return m+="/>",m},M}();function Je(M){if(M instanceof Lt)return M;throw new Error("Expected symbolNode but got "+String(M)+".")}function Ht(M){if(M instanceof Xe)return M;throw new Error("Expected span<HtmlDomNode> but got "+String(M)+".")}var Pt={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Or={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ni={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function Ea(M,d){Pt[M]=d}function se(M,d,f){if(!Pt[d])throw new Error("Font metrics not found for font: "+d+".");var m=M.charCodeAt(0),_=Pt[d][m];if(!_&&M[0]in Ni&&(m=Ni[M[0]].charCodeAt(0),_=Pt[d][m]),!_&&f==="text"&&ke(m)&&(_=Pt[d][77]),_)return{depth:_[0],height:_[1],italic:_[2],skew:_[3],width:_[4]}}var Me={};function Ge(M){var d;if(M>=5?d=0:M>=3?d=1:d=2,!Me[d]){var f=Me[d]={cssEmPerMu:Or.quad[d]/18};for(var m in Or)Or.hasOwnProperty(m)&&(f[m]=Or[m][d])}return Me[d]}var ft={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ut={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ft={math:{},text:{}},st=Ft;function k(M,d,f,m,_,x){Ft[M][_]={font:d,group:f,replace:m},x&&m&&(Ft[M][m]=Ft[M][_])}var N="math",ce="text",L="main",D="ams",re="accent-token",ne="bin",Ie="close",pt="inner",Se="mathord",_e="op-token",we="open",$e="punct",V="rel",vt="spacing",W="textord";k(N,L,V,"≡","\\equiv",!0),k(N,L,V,"≺","\\prec",!0),k(N,L,V,"≻","\\succ",!0),k(N,L,V,"∼","\\sim",!0),k(N,L,V,"⊥","\\perp"),k(N,L,V,"⪯","\\preceq",!0),k(N,L,V,"⪰","\\succeq",!0),k(N,L,V,"≃","\\simeq",!0),k(N,L,V,"∣","\\mid",!0),k(N,L,V,"≪","\\ll",!0),k(N,L,V,"≫","\\gg",!0),k(N,L,V,"≍","\\asymp",!0),k(N,L,V,"∥","\\parallel"),k(N,L,V,"⋈","\\bowtie",!0),k(N,L,V,"⌣","\\smile",!0),k(N,L,V,"⊑","\\sqsubseteq",!0),k(N,L,V,"⊒","\\sqsupseteq",!0),k(N,L,V,"≐","\\doteq",!0),k(N,L,V,"⌢","\\frown",!0),k(N,L,V,"∋","\\ni",!0),k(N,L,V,"∝","\\propto",!0),k(N,L,V,"⊢","\\vdash",!0),k(N,L,V,"⊣","\\dashv",!0),k(N,L,V,"∋","\\owns"),k(N,L,$e,".","\\ldotp"),k(N,L,$e,"⋅","\\cdotp"),k(N,L,W,"#","\\#"),k(ce,L,W,"#","\\#"),k(N,L,W,"&","\\&"),k(ce,L,W,"&","\\&"),k(N,L,W,"ℵ","\\aleph",!0),k(N,L,W,"∀","\\forall",!0),k(N,L,W,"ℏ","\\hbar",!0),k(N,L,W,"∃","\\exists",!0),k(N,L,W,"∇","\\nabla",!0),k(N,L,W,"♭","\\flat",!0),k(N,L,W,"ℓ","\\ell",!0),k(N,L,W,"♮","\\natural",!0),k(N,L,W,"♣","\\clubsuit",!0),k(N,L,W,"℘","\\wp",!0),k(N,L,W,"♯","\\sharp",!0),k(N,L,W,"♢","\\diamondsuit",!0),k(N,L,W,"ℜ","\\Re",!0),k(N,L,W,"♡","\\heartsuit",!0),k(N,L,W,"ℑ","\\Im",!0),k(N,L,W,"♠","\\spadesuit",!0),k(N,L,W,"§","\\S",!0),k(ce,L,W,"§","\\S"),k(N,L,W,"¶","\\P",!0),k(ce,L,W,"¶","\\P"),k(N,L,W,"†","\\dag"),k(ce,L,W,"†","\\dag"),k(ce,L,W,"†","\\textdagger"),k(N,L,W,"‡","\\ddag"),k(ce,L,W,"‡","\\ddag"),k(ce,L,W,"‡","\\textdaggerdbl"),k(N,L,Ie,"⎱","\\rmoustache",!0),k(N,L,we,"⎰","\\lmoustache",!0),k(N,L,Ie,"⟯","\\rgroup",!0),k(N,L,we,"⟮","\\lgroup",!0),k(N,L,ne,"∓","\\mp",!0),k(N,L,ne,"⊖","\\ominus",!0),k(N,L,ne,"⊎","\\uplus",!0),k(N,L,ne,"⊓","\\sqcap",!0),k(N,L,ne,"∗","\\ast"),k(N,L,ne,"⊔","\\sqcup",!0),k(N,L,ne,"◯","\\bigcirc",!0),k(N,L,ne,"∙","\\bullet"),k(N,L,ne,"‡","\\ddagger"),k(N,L,ne,"≀","\\wr",!0),k(N,L,ne,"⨿","\\amalg"),k(N,L,ne,"&","\\And"),k(N,L,V,"⟵","\\longleftarrow",!0),k(N,L,V,"⇐","\\Leftarrow",!0),k(N,L,V,"⟸","\\Longleftarrow",!0),k(N,L,V,"⟶","\\longrightarrow",!0),k(N,L,V,"⇒","\\Rightarrow",!0),k(N,L,V,"⟹","\\Longrightarrow",!0),k(N,L,V,"↔","\\leftrightarrow",!0),k(N,L,V,"⟷","\\longleftrightarrow",!0),k(N,L,V,"⇔","\\Leftrightarrow",!0),k(N,L,V,"⟺","\\Longleftrightarrow",!0),k(N,L,V,"↦","\\mapsto",!0),k(N,L,V,"⟼","\\longmapsto",!0),k(N,L,V,"↗","\\nearrow",!0),k(N,L,V,"↩","\\hookleftarrow",!0),k(N,L,V,"↪","\\hookrightarrow",!0),k(N,L,V,"↘","\\searrow",!0),k(N,L,V,"↼","\\leftharpoonup",!0),k(N,L,V,"⇀","\\rightharpoonup",!0),k(N,L,V,"↙","\\swarrow",!0),k(N,L,V,"↽","\\leftharpoondown",!0),k(N,L,V,"⇁","\\rightharpoondown",!0),k(N,L,V,"↖","\\nwarrow",!0),k(N,L,V,"⇌","\\rightleftharpoons",!0),k(N,D,V,"≮","\\nless",!0),k(N,D,V,"","\\@nleqslant"),k(N,D,V,"","\\@nleqq"),k(N,D,V,"⪇","\\lneq",!0),k(N,D,V,"≨","\\lneqq",!0),k(N,D,V,"","\\@lvertneqq"),k(N,D,V,"⋦","\\lnsim",!0),k(N,D,V,"⪉","\\lnapprox",!0),k(N,D,V,"⊀","\\nprec",!0),k(N,D,V,"⋠","\\npreceq",!0),k(N,D,V,"⋨","\\precnsim",!0),k(N,D,V,"⪹","\\precnapprox",!0),k(N,D,V,"≁","\\nsim",!0),k(N,D,V,"","\\@nshortmid"),k(N,D,V,"∤","\\nmid",!0),k(N,D,V,"⊬","\\nvdash",!0),k(N,D,V,"⊭","\\nvDash",!0),k(N,D,V,"⋪","\\ntriangleleft"),k(N,D,V,"⋬","\\ntrianglelefteq",!0),k(N,D,V,"⊊","\\subsetneq",!0),k(N,D,V,"","\\@varsubsetneq"),k(N,D,V,"⫋","\\subsetneqq",!0),k(N,D,V,"","\\@varsubsetneqq"),k(N,D,V,"≯","\\ngtr",!0),k(N,D,V,"","\\@ngeqslant"),k(N,D,V,"","\\@ngeqq"),k(N,D,V,"⪈","\\gneq",!0),k(N,D,V,"≩","\\gneqq",!0),k(N,D,V,"","\\@gvertneqq"),k(N,D,V,"⋧","\\gnsim",!0),k(N,D,V,"⪊","\\gnapprox",!0),k(N,D,V,"⊁","\\nsucc",!0),k(N,D,V,"⋡","\\nsucceq",!0),k(N,D,V,"⋩","\\succnsim",!0),k(N,D,V,"⪺","\\succnapprox",!0),k(N,D,V,"≆","\\ncong",!0),k(N,D,V,"","\\@nshortparallel"),k(N,D,V,"∦","\\nparallel",!0),k(N,D,V,"⊯","\\nVDash",!0),k(N,D,V,"⋫","\\ntriangleright"),k(N,D,V,"⋭","\\ntrianglerighteq",!0),k(N,D,V,"","\\@nsupseteqq"),k(N,D,V,"⊋","\\supsetneq",!0),k(N,D,V,"","\\@varsupsetneq"),k(N,D,V,"⫌","\\supsetneqq",!0),k(N,D,V,"","\\@varsupsetneqq"),k(N,D,V,"⊮","\\nVdash",!0),k(N,D,V,"⪵","\\precneqq",!0),k(N,D,V,"⪶","\\succneqq",!0),k(N,D,V,"","\\@nsubseteqq"),k(N,D,ne,"⊴","\\unlhd"),k(N,D,ne,"⊵","\\unrhd"),k(N,D,V,"↚","\\nleftarrow",!0),k(N,D,V,"↛","\\nrightarrow",!0),k(N,D,V,"⇍","\\nLeftarrow",!0),k(N,D,V,"⇏","\\nRightarrow",!0),k(N,D,V,"↮","\\nleftrightarrow",!0),k(N,D,V,"⇎","\\nLeftrightarrow",!0),k(N,D,V,"△","\\vartriangle"),k(N,D,W,"ℏ","\\hslash"),k(N,D,W,"▽","\\triangledown"),k(N,D,W,"◊","\\lozenge"),k(N,D,W,"Ⓢ","\\circledS"),k(N,D,W,"®","\\circledR"),k(ce,D,W,"®","\\circledR"),k(N,D,W,"∡","\\measuredangle",!0),k(N,D,W,"∄","\\nexists"),k(N,D,W,"℧","\\mho"),k(N,D,W,"Ⅎ","\\Finv",!0),k(N,D,W,"⅁","\\Game",!0),k(N,D,W,"‵","\\backprime"),k(N,D,W,"▲","\\blacktriangle"),k(N,D,W,"▼","\\blacktriangledown"),k(N,D,W,"■","\\blacksquare"),k(N,D,W,"⧫","\\blacklozenge"),k(N,D,W,"★","\\bigstar"),k(N,D,W,"∢","\\sphericalangle",!0),k(N,D,W,"∁","\\complement",!0),k(N,D,W,"ð","\\eth",!0),k(ce,L,W,"ð","ð"),k(N,D,W,"╱","\\diagup"),k(N,D,W,"╲","\\diagdown"),k(N,D,W,"□","\\square"),k(N,D,W,"□","\\Box"),k(N,D,W,"◊","\\Diamond"),k(N,D,W,"¥","\\yen",!0),k(ce,D,W,"¥","\\yen",!0),k(N,D,W,"✓","\\checkmark",!0),k(ce,D,W,"✓","\\checkmark"),k(N,D,W,"ℶ","\\beth",!0),k(N,D,W,"ℸ","\\daleth",!0),k(N,D,W,"ℷ","\\gimel",!0),k(N,D,W,"ϝ","\\digamma",!0),k(N,D,W,"ϰ","\\varkappa"),k(N,D,we,"┌","\\@ulcorner",!0),k(N,D,Ie,"┐","\\@urcorner",!0),k(N,D,we,"└","\\@llcorner",!0),k(N,D,Ie,"┘","\\@lrcorner",!0),k(N,D,V,"≦","\\leqq",!0),k(N,D,V,"⩽","\\leqslant",!0),k(N,D,V,"⪕","\\eqslantless",!0),k(N,D,V,"≲","\\lesssim",!0),k(N,D,V,"⪅","\\lessapprox",!0),k(N,D,V,"≊","\\approxeq",!0),k(N,D,ne,"⋖","\\lessdot"),k(N,D,V,"⋘","\\lll",!0),k(N,D,V,"≶","\\lessgtr",!0),k(N,D,V,"⋚","\\lesseqgtr",!0),k(N,D,V,"⪋","\\lesseqqgtr",!0),k(N,D,V,"≑","\\doteqdot"),k(N,D,V,"≓","\\risingdotseq",!0),k(N,D,V,"≒","\\fallingdotseq",!0),k(N,D,V,"∽","\\backsim",!0),k(N,D,V,"⋍","\\backsimeq",!0),k(N,D,V,"⫅","\\subseteqq",!0),k(N,D,V,"⋐","\\Subset",!0),k(N,D,V,"⊏","\\sqsubset",!0),k(N,D,V,"≼","\\preccurlyeq",!0),k(N,D,V,"⋞","\\curlyeqprec",!0),k(N,D,V,"≾","\\precsim",!0),k(N,D,V,"⪷","\\precapprox",!0),k(N,D,V,"⊲","\\vartriangleleft"),k(N,D,V,"⊴","\\trianglelefteq"),k(N,D,V,"⊨","\\vDash",!0),k(N,D,V,"⊪","\\Vvdash",!0),k(N,D,V,"⌣","\\smallsmile"),k(N,D,V,"⌢","\\smallfrown"),k(N,D,V,"≏","\\bumpeq",!0),k(N,D,V,"≎","\\Bumpeq",!0),k(N,D,V,"≧","\\geqq",!0),k(N,D,V,"⩾","\\geqslant",!0),k(N,D,V,"⪖","\\eqslantgtr",!0),k(N,D,V,"≳","\\gtrsim",!0),k(N,D,V,"⪆","\\gtrapprox",!0),k(N,D,ne,"⋗","\\gtrdot"),k(N,D,V,"⋙","\\ggg",!0),k(N,D,V,"≷","\\gtrless",!0),k(N,D,V,"⋛","\\gtreqless",!0),k(N,D,V,"⪌","\\gtreqqless",!0),k(N,D,V,"≖","\\eqcirc",!0),k(N,D,V,"≗","\\circeq",!0),k(N,D,V,"≜","\\triangleq",!0),k(N,D,V,"∼","\\thicksim"),k(N,D,V,"≈","\\thickapprox"),k(N,D,V,"⫆","\\supseteqq",!0),k(N,D,V,"⋑","\\Supset",!0),k(N,D,V,"⊐","\\sqsupset",!0),k(N,D,V,"≽","\\succcurlyeq",!0),k(N,D,V,"⋟","\\curlyeqsucc",!0),k(N,D,V,"≿","\\succsim",!0),k(N,D,V,"⪸","\\succapprox",!0),k(N,D,V,"⊳","\\vartriangleright"),k(N,D,V,"⊵","\\trianglerighteq"),k(N,D,V,"⊩","\\Vdash",!0),k(N,D,V,"∣","\\shortmid"),k(N,D,V,"∥","\\shortparallel"),k(N,D,V,"≬","\\between",!0),k(N,D,V,"⋔","\\pitchfork",!0),k(N,D,V,"∝","\\varpropto"),k(N,D,V,"◀","\\blacktriangleleft"),k(N,D,V,"∴","\\therefore",!0),k(N,D,V,"∍","\\backepsilon"),k(N,D,V,"▶","\\blacktriangleright"),k(N,D,V,"∵","\\because",!0),k(N,D,V,"⋘","\\llless"),k(N,D,V,"⋙","\\gggtr"),k(N,D,ne,"⊲","\\lhd"),k(N,D,ne,"⊳","\\rhd"),k(N,D,V,"≂","\\eqsim",!0),k(N,L,V,"⋈","\\Join"),k(N,D,V,"≑","\\Doteq",!0),k(N,D,ne,"∔","\\dotplus",!0),k(N,D,ne,"∖","\\smallsetminus"),k(N,D,ne,"⋒","\\Cap",!0),k(N,D,ne,"⋓","\\Cup",!0),k(N,D,ne,"⩞","\\doublebarwedge",!0),k(N,D,ne,"⊟","\\boxminus",!0),k(N,D,ne,"⊞","\\boxplus",!0),k(N,D,ne,"⋇","\\divideontimes",!0),k(N,D,ne,"⋉","\\ltimes",!0),k(N,D,ne,"⋊","\\rtimes",!0),k(N,D,ne,"⋋","\\leftthreetimes",!0),k(N,D,ne,"⋌","\\rightthreetimes",!0),k(N,D,ne,"⋏","\\curlywedge",!0),k(N,D,ne,"⋎","\\curlyvee",!0),k(N,D,ne,"⊝","\\circleddash",!0),k(N,D,ne,"⊛","\\circledast",!0),k(N,D,ne,"⋅","\\centerdot"),k(N,D,ne,"⊺","\\intercal",!0),k(N,D,ne,"⋒","\\doublecap"),k(N,D,ne,"⋓","\\doublecup"),k(N,D,ne,"⊠","\\boxtimes",!0),k(N,D,V,"⇢","\\dashrightarrow",!0),k(N,D,V,"⇠","\\dashleftarrow",!0),k(N,D,V,"⇇","\\leftleftarrows",!0),k(N,D,V,"⇆","\\leftrightarrows",!0),k(N,D,V,"⇚","\\Lleftarrow",!0),k(N,D,V,"↞","\\twoheadleftarrow",!0),k(N,D,V,"↢","\\leftarrowtail",!0),k(N,D,V,"↫","\\looparrowleft",!0),k(N,D,V,"⇋","\\leftrightharpoons",!0),k(N,D,V,"↶","\\curvearrowleft",!0),k(N,D,V,"↺","\\circlearrowleft",!0),k(N,D,V,"↰","\\Lsh",!0),k(N,D,V,"⇈","\\upuparrows",!0),k(N,D,V,"↿","\\upharpoonleft",!0),k(N,D,V,"⇃","\\downharpoonleft",!0),k(N,L,V,"⊶","\\origof",!0),k(N,L,V,"⊷","\\imageof",!0),k(N,D,V,"⊸","\\multimap",!0),k(N,D,V,"↭","\\leftrightsquigarrow",!0),k(N,D,V,"⇉","\\rightrightarrows",!0),k(N,D,V,"⇄","\\rightleftarrows",!0),k(N,D,V,"↠","\\twoheadrightarrow",!0),k(N,D,V,"↣","\\rightarrowtail",!0),k(N,D,V,"↬","\\looparrowright",!0),k(N,D,V,"↷","\\curvearrowright",!0),k(N,D,V,"↻","\\circlearrowright",!0),k(N,D,V,"↱","\\Rsh",!0),k(N,D,V,"⇊","\\downdownarrows",!0),k(N,D,V,"↾","\\upharpoonright",!0),k(N,D,V,"⇂","\\downharpoonright",!0),k(N,D,V,"⇝","\\rightsquigarrow",!0),k(N,D,V,"⇝","\\leadsto"),k(N,D,V,"⇛","\\Rrightarrow",!0),k(N,D,V,"↾","\\restriction"),k(N,L,W,"‘","`"),k(N,L,W,"$","\\$"),k(ce,L,W,"$","\\$"),k(ce,L,W,"$","\\textdollar"),k(N,L,W,"%","\\%"),k(ce,L,W,"%","\\%"),k(N,L,W,"_","\\_"),k(ce,L,W,"_","\\_"),k(ce,L,W,"_","\\textunderscore"),k(N,L,W,"∠","\\angle",!0),k(N,L,W,"∞","\\infty",!0),k(N,L,W,"′","\\prime"),k(N,L,W,"△","\\triangle"),k(N,L,W,"Γ","\\Gamma",!0),k(N,L,W,"Δ","\\Delta",!0),k(N,L,W,"Θ","\\Theta",!0),k(N,L,W,"Λ","\\Lambda",!0),k(N,L,W,"Ξ","\\Xi",!0),k(N,L,W,"Π","\\Pi",!0),k(N,L,W,"Σ","\\Sigma",!0),k(N,L,W,"Υ","\\Upsilon",!0),k(N,L,W,"Φ","\\Phi",!0),k(N,L,W,"Ψ","\\Psi",!0),k(N,L,W,"Ω","\\Omega",!0),k(N,L,W,"A","Α"),k(N,L,W,"B","Β"),k(N,L,W,"E","Ε"),k(N,L,W,"Z","Ζ"),k(N,L,W,"H","Η"),k(N,L,W,"I","Ι"),k(N,L,W,"K","Κ"),k(N,L,W,"M","Μ"),k(N,L,W,"N","Ν"),k(N,L,W,"O","Ο"),k(N,L,W,"P","Ρ"),k(N,L,W,"T","Τ"),k(N,L,W,"X","Χ"),k(N,L,W,"¬","\\neg",!0),k(N,L,W,"¬","\\lnot"),k(N,L,W,"⊤","\\top"),k(N,L,W,"⊥","\\bot"),k(N,L,W,"∅","\\emptyset"),k(N,D,W,"∅","\\varnothing"),k(N,L,Se,"α","\\alpha",!0),k(N,L,Se,"β","\\beta",!0),k(N,L,Se,"γ","\\gamma",!0),k(N,L,Se,"δ","\\delta",!0),k(N,L,Se,"ϵ","\\epsilon",!0),k(N,L,Se,"ζ","\\zeta",!0),k(N,L,Se,"η","\\eta",!0),k(N,L,Se,"θ","\\theta",!0),k(N,L,Se,"ι","\\iota",!0),k(N,L,Se,"κ","\\kappa",!0),k(N,L,Se,"λ","\\lambda",!0),k(N,L,Se,"μ","\\mu",!0),k(N,L,Se,"ν","\\nu",!0),k(N,L,Se,"ξ","\\xi",!0),k(N,L,Se,"ο","\\omicron",!0),k(N,L,Se,"π","\\pi",!0),k(N,L,Se,"ρ","\\rho",!0),k(N,L,Se,"σ","\\sigma",!0),k(N,L,Se,"τ","\\tau",!0),k(N,L,Se,"υ","\\upsilon",!0),k(N,L,Se,"ϕ","\\phi",!0),k(N,L,Se,"χ","\\chi",!0),k(N,L,Se,"ψ","\\psi",!0),k(N,L,Se,"ω","\\omega",!0),k(N,L,Se,"ε","\\varepsilon",!0),k(N,L,Se,"ϑ","\\vartheta",!0),k(N,L,Se,"ϖ","\\varpi",!0),k(N,L,Se,"ϱ","\\varrho",!0),k(N,L,Se,"ς","\\varsigma",!0),k(N,L,Se,"φ","\\varphi",!0),k(N,L,ne,"∗","*",!0),k(N,L,ne,"+","+"),k(N,L,ne,"−","-",!0),k(N,L,ne,"⋅","\\cdot",!0),k(N,L,ne,"∘","\\circ"),k(N,L,ne,"÷","\\div",!0),k(N,L,ne,"±","\\pm",!0),k(N,L,ne,"×","\\times",!0),k(N,L,ne,"∩","\\cap",!0),k(N,L,ne,"∪","\\cup",!0),k(N,L,ne,"∖","\\setminus"),k(N,L,ne,"∧","\\land"),k(N,L,ne,"∨","\\lor"),k(N,L,ne,"∧","\\wedge",!0),k(N,L,ne,"∨","\\vee",!0),k(N,L,W,"√","\\surd"),k(N,L,we,"⟨","\\langle",!0),k(N,L,we,"∣","\\lvert"),k(N,L,we,"∥","\\lVert"),k(N,L,Ie,"?","?"),k(N,L,Ie,"!","!"),k(N,L,Ie,"⟩","\\rangle",!0),k(N,L,Ie,"∣","\\rvert"),k(N,L,Ie,"∥","\\rVert"),k(N,L,V,"=","="),k(N,L,V,":",":"),k(N,L,V,"≈","\\approx",!0),k(N,L,V,"≅","\\cong",!0),k(N,L,V,"≥","\\ge"),k(N,L,V,"≥","\\geq",!0),k(N,L,V,"←","\\gets"),k(N,L,V,">","\\gt",!0),k(N,L,V,"∈","\\in",!0),k(N,L,V,"","\\@not"),k(N,L,V,"⊂","\\subset",!0),k(N,L,V,"⊃","\\supset",!0),k(N,L,V,"⊆","\\subseteq",!0),k(N,L,V,"⊇","\\supseteq",!0),k(N,D,V,"⊈","\\nsubseteq",!0),k(N,D,V,"⊉","\\nsupseteq",!0),k(N,L,V,"⊨","\\models"),k(N,L,V,"←","\\leftarrow",!0),k(N,L,V,"≤","\\le"),k(N,L,V,"≤","\\leq",!0),k(N,L,V,"<","\\lt",!0),k(N,L,V,"→","\\rightarrow",!0),k(N,L,V,"→","\\to"),k(N,D,V,"≱","\\ngeq",!0),k(N,D,V,"≰","\\nleq",!0),k(N,L,vt," ","\\ "),k(N,L,vt," ","\\space"),k(N,L,vt," ","\\nobreakspace"),k(ce,L,vt," ","\\ "),k(ce,L,vt," "," "),k(ce,L,vt," ","\\space"),k(ce,L,vt," ","\\nobreakspace"),k(N,L,vt,null,"\\nobreak"),k(N,L,vt,null,"\\allowbreak"),k(N,L,$e,",",","),k(N,L,$e,";",";"),k(N,D,ne,"⊼","\\barwedge",!0),k(N,D,ne,"⊻","\\veebar",!0),k(N,L,ne,"⊙","\\odot",!0),k(N,L,ne,"⊕","\\oplus",!0),k(N,L,ne,"⊗","\\otimes",!0),k(N,L,W,"∂","\\partial",!0),k(N,L,ne,"⊘","\\oslash",!0),k(N,D,ne,"⊚","\\circledcirc",!0),k(N,D,ne,"⊡","\\boxdot",!0),k(N,L,ne,"△","\\bigtriangleup"),k(N,L,ne,"▽","\\bigtriangledown"),k(N,L,ne,"†","\\dagger"),k(N,L,ne,"⋄","\\diamond"),k(N,L,ne,"⋆","\\star"),k(N,L,ne,"◃","\\triangleleft"),k(N,L,ne,"▹","\\triangleright"),k(N,L,we,"{","\\{"),k(ce,L,W,"{","\\{"),k(ce,L,W,"{","\\textbraceleft"),k(N,L,Ie,"}","\\}"),k(ce,L,W,"}","\\}"),k(ce,L,W,"}","\\textbraceright"),k(N,L,we,"{","\\lbrace"),k(N,L,Ie,"}","\\rbrace"),k(N,L,we,"[","\\lbrack",!0),k(ce,L,W,"[","\\lbrack",!0),k(N,L,Ie,"]","\\rbrack",!0),k(ce,L,W,"]","\\rbrack",!0),k(N,L,we,"(","\\lparen",!0),k(N,L,Ie,")","\\rparen",!0),k(ce,L,W,"<","\\textless",!0),k(ce,L,W,">","\\textgreater",!0),k(N,L,we,"⌊","\\lfloor",!0),k(N,L,Ie,"⌋","\\rfloor",!0),k(N,L,we,"⌈","\\lceil",!0),k(N,L,Ie,"⌉","\\rceil",!0),k(N,L,W,"\\","\\backslash"),k(N,L,W,"∣","|"),k(N,L,W,"∣","\\vert"),k(ce,L,W,"|","\\textbar",!0),k(N,L,W,"∥","\\|"),k(N,L,W,"∥","\\Vert"),k(ce,L,W,"∥","\\textbardbl"),k(ce,L,W,"~","\\textasciitilde"),k(ce,L,W,"\\","\\textbackslash"),k(ce,L,W,"^","\\textasciicircum"),k(N,L,V,"↑","\\uparrow",!0),k(N,L,V,"⇑","\\Uparrow",!0),k(N,L,V,"↓","\\downarrow",!0),k(N,L,V,"⇓","\\Downarrow",!0),k(N,L,V,"↕","\\updownarrow",!0),k(N,L,V,"⇕","\\Updownarrow",!0),k(N,L,_e,"∐","\\coprod"),k(N,L,_e,"⋁","\\bigvee"),k(N,L,_e,"⋀","\\bigwedge"),k(N,L,_e,"⨄","\\biguplus"),k(N,L,_e,"⋂","\\bigcap"),k(N,L,_e,"⋃","\\bigcup"),k(N,L,_e,"∫","\\int"),k(N,L,_e,"∫","\\intop"),k(N,L,_e,"∬","\\iint"),k(N,L,_e,"∭","\\iiint"),k(N,L,_e,"∏","\\prod"),k(N,L,_e,"∑","\\sum"),k(N,L,_e,"⨂","\\bigotimes"),k(N,L,_e,"⨁","\\bigoplus"),k(N,L,_e,"⨀","\\bigodot"),k(N,L,_e,"∮","\\oint"),k(N,L,_e,"∯","\\oiint"),k(N,L,_e,"∰","\\oiiint"),k(N,L,_e,"⨆","\\bigsqcup"),k(N,L,_e,"∫","\\smallint"),k(ce,L,pt,"…","\\textellipsis"),k(N,L,pt,"…","\\mathellipsis"),k(ce,L,pt,"…","\\ldots",!0),k(N,L,pt,"…","\\ldots",!0),k(N,L,pt,"⋯","\\@cdots",!0),k(N,L,pt,"⋱","\\ddots",!0),k(N,L,W,"⋮","\\varvdots"),k(N,L,re,"ˊ","\\acute"),k(N,L,re,"ˋ","\\grave"),k(N,L,re,"¨","\\ddot"),k(N,L,re,"~","\\tilde"),k(N,L,re,"ˉ","\\bar"),k(N,L,re,"˘","\\breve"),k(N,L,re,"ˇ","\\check"),k(N,L,re,"^","\\hat"),k(N,L,re,"⃗","\\vec"),k(N,L,re,"˙","\\dot"),k(N,L,re,"˚","\\mathring"),k(N,L,Se,"","\\@imath"),k(N,L,Se,"","\\@jmath"),k(N,L,W,"ı","ı"),k(N,L,W,"ȷ","ȷ"),k(ce,L,W,"ı","\\i",!0),k(ce,L,W,"ȷ","\\j",!0),k(ce,L,W,"ß","\\ss",!0),k(ce,L,W,"æ","\\ae",!0),k(ce,L,W,"œ","\\oe",!0),k(ce,L,W,"ø","\\o",!0),k(ce,L,W,"Æ","\\AE",!0),k(ce,L,W,"Œ","\\OE",!0),k(ce,L,W,"Ø","\\O",!0),k(ce,L,re,"ˊ","\\'"),k(ce,L,re,"ˋ","\\`"),k(ce,L,re,"ˆ","\\^"),k(ce,L,re,"˜","\\~"),k(ce,L,re,"ˉ","\\="),k(ce,L,re,"˘","\\u"),k(ce,L,re,"˙","\\."),k(ce,L,re,"¸","\\c"),k(ce,L,re,"˚","\\r"),k(ce,L,re,"ˇ","\\v"),k(ce,L,re,"¨",'\\"'),k(ce,L,re,"˝","\\H"),k(ce,L,re,"◯","\\textcircled");var rs={"--":!0,"---":!0,"``":!0,"''":!0};k(ce,L,W,"–","--",!0),k(ce,L,W,"–","\\textendash"),k(ce,L,W,"—","---",!0),k(ce,L,W,"—","\\textemdash"),k(ce,L,W,"‘","`",!0),k(ce,L,W,"‘","\\textquoteleft"),k(ce,L,W,"’","'",!0),k(ce,L,W,"’","\\textquoteright"),k(ce,L,W,"“","``",!0),k(ce,L,W,"“","\\textquotedblleft"),k(ce,L,W,"”","''",!0),k(ce,L,W,"”","\\textquotedblright"),k(N,L,W,"°","\\degree",!0),k(ce,L,W,"°","\\degree"),k(ce,L,W,"°","\\textdegree",!0),k(N,L,W,"£","\\pounds"),k(N,L,W,"£","\\mathsterling",!0),k(ce,L,W,"£","\\pounds"),k(ce,L,W,"£","\\textsterling",!0),k(N,D,W,"✠","\\maltese"),k(ce,D,W,"✠","\\maltese");for(var is='0123456789/@."',Ca=0;Ca<is.length;Ca++){var ss=is.charAt(Ca);k(N,L,W,ss,ss)}for(var Jc='0123456789!@*()-=+";:?/.,',Ta=0;Ta<Jc.length;Ta++){var eu=Jc.charAt(Ta);k(ce,L,W,eu,eu)}for(var wo="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Di=0;Di<wo.length;Di++){var as=wo.charAt(Di);k(N,L,Se,as,as),k(ce,L,W,as,as)}k(N,D,W,"C","ℂ"),k(ce,D,W,"C","ℂ"),k(N,D,W,"H","ℍ"),k(ce,D,W,"H","ℍ"),k(N,D,W,"N","ℕ"),k(ce,D,W,"N","ℕ"),k(N,D,W,"P","ℙ"),k(ce,D,W,"P","ℙ"),k(N,D,W,"Q","ℚ"),k(ce,D,W,"Q","ℚ"),k(N,D,W,"R","ℝ"),k(ce,D,W,"R","ℝ"),k(N,D,W,"Z","ℤ"),k(ce,D,W,"Z","ℤ"),k(N,L,Se,"h","ℎ"),k(ce,L,Se,"h","ℎ");for(var je="",vn=0;vn<wo.length;vn++){var Wt=wo.charAt(vn);je=String.fromCharCode(55349,56320+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),je=String.fromCharCode(55349,56372+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),je=String.fromCharCode(55349,56424+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),je=String.fromCharCode(55349,56580+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),je=String.fromCharCode(55349,56736+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),je=String.fromCharCode(55349,56788+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),je=String.fromCharCode(55349,56840+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),je=String.fromCharCode(55349,56944+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),vn<26&&(je=String.fromCharCode(55349,56632+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je),je=String.fromCharCode(55349,56476+vn),k(N,L,Se,Wt,je),k(ce,L,W,Wt,je))}je="𝕜",k(N,L,Se,"k",je),k(ce,L,W,"k",je);for(var wn=0;wn<10;wn++){var _r=wn.toString();je=String.fromCharCode(55349,57294+wn),k(N,L,Se,_r,je),k(ce,L,W,_r,je),je=String.fromCharCode(55349,57314+wn),k(N,L,Se,_r,je),k(ce,L,W,_r,je),je=String.fromCharCode(55349,57324+wn),k(N,L,Se,_r,je),k(ce,L,W,_r,je),je=String.fromCharCode(55349,57334+wn),k(N,L,Se,_r,je),k(ce,L,W,_r,je)}for(var ls="ÐÞþ",Aa=0;Aa<ls.length;Aa++){var cs=ls.charAt(Aa);k(N,L,Se,cs,cs),k(ce,L,W,cs,cs)}var Jr=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],tu=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],be=function(d,f){var m=d.charCodeAt(0),_=d.charCodeAt(1),x=(m-55296)*1024+(_-56320)+65536,T=f==="math"?0:1;if(119808<=x&&x<120484){var I=Math.floor((x-119808)/26);return[Jr[I][2],Jr[I][T]]}else if(120782<=x&&x<=120831){var B=Math.floor((x-120782)/10);return[tu[B][2],tu[B][T]]}else{if(x===120485||x===120486)return[Jr[0][2],Jr[0][T]];if(120486<x&&x<120782)return["",""];throw new o("Unsupported character: "+d)}},We=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],lt=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],xt=function(d,f){return f.size<2?d:We[d-1][f.size-1]},Kt=function(){function M(f){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=f.style,this.color=f.color,this.size=f.size||M.BASESIZE,this.textSize=f.textSize||this.size,this.phantom=!!f.phantom,this.font=f.font||"",this.fontFamily=f.fontFamily||"",this.fontWeight=f.fontWeight||"",this.fontShape=f.fontShape||"",this.sizeMultiplier=lt[this.size-1],this.maxSize=f.maxSize,this.minRuleThickness=f.minRuleThickness,this._fontMetrics=void 0}var d=M.prototype;return d.extend=function(m){var _={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var x in m)m.hasOwnProperty(x)&&(_[x]=m[x]);return new M(_)},d.havingStyle=function(m){return this.style===m?this:this.extend({style:m,size:xt(this.textSize,m)})},d.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},d.havingSize=function(m){return this.size===m&&this.textSize===m?this:this.extend({style:this.style.text(),size:m,textSize:m,sizeMultiplier:lt[m-1]})},d.havingBaseStyle=function(m){m=m||this.style.text();var _=xt(M.BASESIZE,m);return this.size===_&&this.textSize===M.BASESIZE&&this.style===m?this:this.extend({style:m,size:_})},d.havingBaseSizing=function(){var m;switch(this.style.id){case 4:case 5:m=3;break;case 6:case 7:m=1;break;default:m=6}return this.extend({style:this.style.text(),size:m})},d.withColor=function(m){return this.extend({color:m})},d.withPhantom=function(){return this.extend({phantom:!0})},d.withFont=function(m){return this.extend({font:m})},d.withTextFontFamily=function(m){return this.extend({fontFamily:m,font:""})},d.withTextFontWeight=function(m){return this.extend({fontWeight:m,font:""})},d.withTextFontShape=function(m){return this.extend({fontShape:m,font:""})},d.sizingClasses=function(m){return m.size!==this.size?["sizing","reset-size"+m.size,"size"+this.size]:[]},d.baseSizingClasses=function(){return this.size!==M.BASESIZE?["sizing","reset-size"+this.size,"size"+M.BASESIZE]:[]},d.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ge(this.size)),this._fontMetrics},d.getColor=function(){return this.phantom?"transparent":this.color},M}();Kt.BASESIZE=6;var Wn=Kt,ar={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},us={ex:!0,em:!0,mu:!0},xn=function(d){return typeof d!="string"&&(d=d.unit),d in ar||d in us||d==="ex"},bt=function(d,f){var m;if(d.unit in ar)m=ar[d.unit]/f.fontMetrics().ptPerEm/f.sizeMultiplier;else if(d.unit==="mu")m=f.fontMetrics().cssEmPerMu;else{var _;if(f.style.isTight()?_=f.havingStyle(f.style.text()):_=f,d.unit==="ex")m=_.fontMetrics().xHeight;else if(d.unit==="em")m=_.fontMetrics().quad;else throw new o("Invalid unit: '"+d.unit+"'");_!==f&&(m*=_.sizeMultiplier/f.sizeMultiplier)}return Math.min(d.number*m,f.maxSize)},xo=function(d,f,m){return st[m][d]&&st[m][d].replace&&(d=st[m][d].replace),{value:d,metrics:se(d,f,m)}},Pn=function(d,f,m,_,x){var T=xo(d,f,m),I=T.metrics;d=T.value;var B;if(I){var z=I.italic;(m==="text"||_&&_.font==="mathit")&&(z=0),B=new Lt(d,I.height,I.depth,z,I.skew,I.width,x)}else typeof console<"u"&&console.warn("No character metrics "+("for '"+d+"' in style '"+f+"' and mode '"+m+"'")),B=new Lt(d,0,0,0,0,0,x);if(_){B.maxFontSize=_.sizeMultiplier,_.style.isTight()&&B.classes.push("mtight");var G=_.getColor();G&&(B.style.color=G)}return B},vp=function(d,f,m,_){return _===void 0&&(_=[]),m.font==="boldsymbol"&&xo(d,"Main-Bold",f).metrics?Pn(d,"Main-Bold",f,m,_.concat(["mathbf"])):d==="\\"||st[f][d].font==="main"?Pn(d,"Main-Regular",f,m,_):Pn(d,"AMS-Regular",f,m,_.concat(["amsrm"]))},wp=function(d,f,m,_,x){return x!=="textord"&&xo(d,"Math-BoldItalic",f).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},xp=function(d,f,m){var _=d.mode,x=d.text,T=["mord"],I=_==="math"||_==="text"&&f.font,B=I?f.font:f.fontFamily;if(x.charCodeAt(0)===55349){var z=be(x,_),G=z[0],te=z[1];return Pn(x,G,_,f,T.concat(te))}else if(B){var ae,de;if(B==="boldsymbol"){var he=wp(x,_,f,T,m);ae=he.fontName,de=[he.fontClass]}else I?(ae=ps[B].fontName,de=[B]):(ae=Ri(B,f.fontWeight,f.fontShape),de=[B,f.fontWeight,f.fontShape]);if(xo(x,ae,_).metrics)return Pn(x,ae,_,f,T.concat(de));if(rs.hasOwnProperty(x)&&ae.substr(0,10)==="Typewriter"){for(var ye=[],xe=0;xe<x.length;xe++)ye.push(Pn(x[xe],ae,_,f,T.concat(de)));return Na(ye)}}if(m==="mathord")return Pn(x,"Math-Italic",_,f,T.concat(["mathnormal"]));if(m==="textord"){var De=st[_][x]&&st[_][x].font;if(De==="ams"){var Le=Ri("amsrm",f.fontWeight,f.fontShape);return Pn(x,Le,_,f,T.concat("amsrm",f.fontWeight,f.fontShape))}else if(De==="main"||!De){var Ue=Ri("textrm",f.fontWeight,f.fontShape);return Pn(x,Ue,_,f,T.concat(f.fontWeight,f.fontShape))}else{var gt=Ri(De,f.fontWeight,f.fontShape);return Pn(x,gt,_,f,T.concat(gt,f.fontWeight,f.fontShape))}}else throw new Error("unexpected type: "+m+" in makeOrd")},kp=function(d,f){if(Et(d.classes)!==Et(f.classes)||d.skew!==f.skew||d.maxFontSize!==f.maxFontSize)return!1;if(d.classes.length===1){var m=d.classes[0];if(m==="mbin"||m==="mord")return!1}for(var _ in d.style)if(d.style.hasOwnProperty(_)&&d.style[_]!==f.style[_])return!1;for(var x in f.style)if(f.style.hasOwnProperty(x)&&d.style[x]!==f.style[x])return!1;return!0},ds=function(d){for(var f=0;f<d.length-1;f++){var m=d[f],_=d[f+1];m instanceof Lt&&_ instanceof Lt&&kp(m,_)&&(m.text+=_.text,m.height=Math.max(m.height,_.height),m.depth=Math.max(m.depth,_.depth),m.italic=_.italic,d.splice(f+1,1),f--)}return d},hs=function(d){for(var f=0,m=0,_=0,x=0;x<d.children.length;x++){var T=d.children[x];T.height>f&&(f=T.height),T.depth>m&&(m=T.depth),T.maxFontSize>_&&(_=T.maxFontSize)}d.height=f,d.depth=m,d.maxFontSize=_},Vt=function(d,f,m,_){var x=new Xe(d,f,m,_);return hs(x),x},nu=function(d,f,m,_){return new Xe(d,f,m,_)},Ma=function(d,f,m){var _=Vt([d],[],f);return _.height=Math.max(m||f.fontMetrics().defaultRuleThickness,f.minRuleThickness),_.style.borderBottomWidth=_.height+"em",_.maxFontSize=1,_},Ye=function(d,f,m,_){var x=new Zt(d,f,m,_);return hs(x),x},Na=function(d){var f=new ct(d);return hs(f),f},Xt=function(d,f){return d instanceof ct?Vt([],[d],f):d},Mt=function(d){if(d.positionType==="individualShift"){for(var f=d.children,m=[f[0]],_=-f[0].shift-f[0].elem.depth,x=_,T=1;T<f.length;T++){var I=-f[T].shift-x-f[T].elem.depth,B=I-(f[T-1].elem.height+f[T-1].elem.depth);x=x+I,m.push({type:"kern",size:B}),m.push(f[T])}return{children:m,depth:_}}var z;if(d.positionType==="top"){for(var G=d.positionData,te=0;te<d.children.length;te++){var ae=d.children[te];G-=ae.type==="kern"?ae.size:ae.elem.height+ae.elem.depth}z=G}else if(d.positionType==="bottom")z=-d.positionData;else{var de=d.children[0];if(de.type!=="elem")throw new Error('First child must have type "elem".');if(d.positionType==="shift")z=-de.elem.depth-d.positionData;else if(d.positionType==="firstBaseline")z=-de.elem.depth;else throw new Error("Invalid positionType "+d.positionType+".")}return{children:d.children,depth:z}},fs=function(d,f){for(var m=Mt(d),_=m.children,x=m.depth,T=0,I=0;I<_.length;I++){var B=_[I];if(B.type==="elem"){var z=B.elem;T=Math.max(T,z.maxFontSize,z.height)}}T+=2;var G=Vt(["pstrut"],[]);G.style.height=T+"em";for(var te=[],ae=x,de=x,he=x,ye=0;ye<_.length;ye++){var xe=_[ye];if(xe.type==="kern")he+=xe.size;else{var De=xe.elem,Le=xe.wrapperClasses||[],Ue=xe.wrapperStyle||{},gt=Vt(Le,[G,De],void 0,Ue);gt.style.top=-T-he-De.depth+"em",xe.marginLeft&&(gt.style.marginLeft=xe.marginLeft),xe.marginRight&&(gt.style.marginRight=xe.marginRight),te.push(gt),he+=De.height+De.depth}ae=Math.min(ae,he),de=Math.max(de,he)}var kt=Vt(["vlist"],te);kt.style.height=de+"em";var qt;if(ae<0){var wt=Vt([],[]),St=Vt(["vlist"],[wt]);St.style.height=-ae+"em";var Qt=Vt(["vlist-s"],[new Lt("​")]);qt=[Vt(["vlist-r"],[kt,Qt]),Vt(["vlist-r"],[St])]}else qt=[Vt(["vlist-r"],[kt])];var Ot=Vt(["vlist-t"],qt);return qt.length===2&&Ot.classes.push("vlist-t2"),Ot.height=de,Ot.depth=-ae,Ot},ei=function(d,f){var m=Vt(["mspace"],[],f),_=bt(d,f);return m.style.marginRight=_+"em",m},Ri=function(d,f,m){var _="";switch(d){case"amsrm":_="AMS";break;case"textrm":_="Main";break;case"textsf":_="SansSerif";break;case"texttt":_="Typewriter";break;default:_=d}var x;return f==="textbf"&&m==="textit"?x="BoldItalic":f==="textbf"?x="Bold":f==="textit"?x="Italic":x="Regular",_+"-"+x},ps={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ee={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Pe=function(d,f){var m=Ee[d],_=m[0],x=m[1],T=m[2],I=new Ce(_),B=new ge([I],{width:x+"em",height:T+"em",style:"width:"+x+"em",viewBox:"0 0 "+1e3*x+" "+1e3*T,preserveAspectRatio:"xMinYMin"}),z=nu(["overlay"],[B],f);return z.height=T,z.style.height=T+"em",z.style.width=x+"em",z},j={fontMap:ps,makeSymbol:Pn,mathsym:vp,makeSpan:Vt,makeSvgSpan:nu,makeLineSpan:Ma,makeAnchor:Ye,makeFragment:Na,wrapFragment:Xt,makeVList:fs,makeOrd:xp,makeGlue:ei,staticSvg:Pe,svgData:Ee,tryCombineChars:ds},Ve={number:3,unit:"mu"},zt={number:4,unit:"mu"},rn={number:5,unit:"mu"},Sp={mord:{mop:Ve,mbin:zt,mrel:rn,minner:Ve},mop:{mord:Ve,mop:Ve,mrel:rn,minner:Ve},mbin:{mord:zt,mop:zt,mopen:zt,minner:zt},mrel:{mord:rn,mop:rn,mopen:rn,minner:rn},mopen:{},mclose:{mop:Ve,mbin:zt,mrel:rn,minner:Ve},mpunct:{mord:Ve,mop:Ve,mrel:rn,mopen:Ve,mclose:Ve,mpunct:Ve,minner:Ve},minner:{mord:Ve,mop:Ve,mbin:zt,mrel:rn,mopen:Ve,mpunct:Ve,minner:Ve}},Ep={mord:{mop:Ve},mop:{mord:Ve,mop:Ve},mbin:{},mrel:{},mopen:{},mclose:{mop:Ve},mpunct:{},minner:{mop:Ve}},L3={},ru={},iu={};function Ae(M){for(var d=M.type,f=M.names,m=M.props,_=M.handler,x=M.htmlBuilder,T=M.mathmlBuilder,I={type:d,numArgs:m.numArgs,argTypes:m.argTypes,allowedInArgument:!!m.allowedInArgument,allowedInText:!!m.allowedInText,allowedInMath:m.allowedInMath===void 0?!0:m.allowedInMath,numOptionalArgs:m.numOptionalArgs||0,infix:!!m.infix,primitive:!!m.primitive,handler:_},B=0;B<f.length;++B)L3[f[B]]=I;d&&(x&&(ru[d]=x),T&&(iu[d]=T))}function ko(M){var d=M.type,f=M.htmlBuilder,m=M.mathmlBuilder;Ae({type:d,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:f,mathmlBuilder:m})}var ou=function(d){return d.type==="ordgroup"&&d.body.length===1?d.body[0]:d},Jt=function(d){return d.type==="ordgroup"?d.body:[d]},ti=j.makeSpan,QP=["leftmost","mbin","mopen","mrel","mop","mpunct"],YP=["rightmost","mrel","mclose","mpunct"],ZP={display:Z.DISPLAY,text:Z.TEXT,script:Z.SCRIPT,scriptscript:Z.SCRIPTSCRIPT},XP={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},fn=function(d,f,m,_){_===void 0&&(_=[null,null]);for(var x=[],T=0;T<d.length;T++){var I=mt(d[T],f);if(I instanceof ct){var B=I.children;x.push.apply(x,B)}else x.push(I)}if(j.tryCombineChars(x),!m)return x;var z=f;if(d.length===1){var G=d[0];G.type==="sizing"?z=f.havingSize(G.size):G.type==="styling"&&(z=f.havingStyle(ZP[G.style]))}var te=ti([_[0]||"leftmost"],[],f),ae=ti([_[1]||"rightmost"],[],f),de=m==="root";return B3(x,function(he,ye){var xe=ye.classes[0],De=he.classes[0];xe==="mbin"&&S.contains(YP,De)?ye.classes[0]="mord":De==="mbin"&&S.contains(QP,xe)&&(he.classes[0]="mord")},{node:te},ae,de),B3(x,function(he,ye){var xe=Cp(ye),De=Cp(he),Le=xe&&De?he.hasClass("mtight")?Ep[xe][De]:Sp[xe][De]:null;if(Le)return j.makeGlue(Le,z)},{node:te},ae,de),x},B3=function M(d,f,m,_,x){_&&d.push(_);for(var T=0;T<d.length;T++){var I=d[T],B=P3(I);if(B){M(B.children,f,m,null,x);continue}var z=!I.hasClass("mspace");if(z){var G=f(I,m.node);G&&(m.insertAfter?m.insertAfter(G):(d.unshift(G),T++))}z?m.node=I:x&&I.hasClass("newline")&&(m.node=ti(["leftmost"])),m.insertAfter=function(te){return function(ae){d.splice(te+1,0,ae),T++}}(T)}_&&d.pop()},P3=function(d){return d instanceof ct||d instanceof Zt||d instanceof Xe&&d.hasClass("enclosing")?d:null},JP=function M(d,f){var m=P3(d);if(m){var _=m.children;if(_.length){if(f==="right")return M(_[_.length-1],"right");if(f==="left")return M(_[0],"left")}}return d},Cp=function(d,f){return d?(f&&(d=JP(d,f)),XP[d.classes[0]]||null):null},Da=function(d,f){var m=["nulldelimiter"].concat(d.baseSizingClasses());return ti(f.concat(m))},mt=function(d,f,m){if(!d)return ti();if(ru[d.type]){var _=ru[d.type](d,f);if(m&&f.size!==m.size){_=ti(f.sizingClasses(m),[_],f);var x=f.sizeMultiplier/m.sizeMultiplier;_.height*=x,_.depth*=x}return _}else throw new o("Got group of unknown type: '"+d.type+"'")};function su(M,d){var f=ti(["base"],M,d),m=ti(["strut"]);return m.style.height=f.height+f.depth+"em",m.style.verticalAlign=-f.depth+"em",f.children.unshift(m),f}function Tp(M,d){var f=null;M.length===1&&M[0].type==="tag"&&(f=M[0].tag,M=M[0].body);var m=fn(M,d,"root"),_;m.length===2&&m[1].hasClass("tag")&&(_=m.pop());for(var x=[],T=[],I=0;I<m.length;I++)if(T.push(m[I]),m[I].hasClass("mbin")||m[I].hasClass("mrel")||m[I].hasClass("allowbreak")){for(var B=!1;I<m.length-1&&m[I+1].hasClass("mspace")&&!m[I+1].hasClass("newline");)I++,T.push(m[I]),m[I].hasClass("nobreak")&&(B=!0);B||(x.push(su(T,d)),T=[])}else m[I].hasClass("newline")&&(T.pop(),T.length>0&&(x.push(su(T,d)),T=[]),x.push(m[I]));T.length>0&&x.push(su(T,d));var z;f?(z=su(fn(f,d,!0)),z.classes=["tag"],x.push(z)):_&&x.push(_);var G=ti(["katex-html"],x);if(G.setAttribute("aria-hidden","true"),z){var te=z.children[0];te.style.height=G.height+G.depth+"em",te.style.verticalAlign=-G.depth+"em"}return G}function F3(M){return new ct(M)}var lr=function(){function M(f,m,_){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=f,this.attributes={},this.children=m||[],this.classes=_||[]}var d=M.prototype;return d.setAttribute=function(m,_){this.attributes[m]=_},d.getAttribute=function(m){return this.attributes[m]},d.toNode=function(){var m=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var _ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,_)&&m.setAttribute(_,this.attributes[_]);this.classes.length>0&&(m.className=Et(this.classes));for(var x=0;x<this.children.length;x++)m.appendChild(this.children[x].toNode());return m},d.toMarkup=function(){var m="<"+this.type;for(var _ in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,_)&&(m+=" "+_+'="',m+=S.escape(this.attributes[_]),m+='"');this.classes.length>0&&(m+=' class ="'+S.escape(Et(this.classes))+'"'),m+=">";for(var x=0;x<this.children.length;x++)m+=this.children[x].toMarkup();return m+="</"+this.type+">",m},d.toText=function(){return this.children.map(function(m){return m.toText()}).join("")},M}(),Ra=function(){function M(f){this.text=void 0,this.text=f}var d=M.prototype;return d.toNode=function(){return document.createTextNode(this.text)},d.toMarkup=function(){return S.escape(this.toText())},d.toText=function(){return this.text},M}(),eF=function(){function M(f){this.width=void 0,this.character=void 0,this.width=f,f>=.05555&&f<=.05556?this.character=" ":f>=.1666&&f<=.1667?this.character=" ":f>=.2222&&f<=.2223?this.character=" ":f>=.2777&&f<=.2778?this.character="  ":f>=-.05556&&f<=-.05555?this.character=" ⁣":f>=-.1667&&f<=-.1666?this.character=" ⁣":f>=-.2223&&f<=-.2222?this.character=" ⁣":f>=-.2778&&f<=-.2777?this.character=" ⁣":this.character=null}var d=M.prototype;return d.toNode=function(){if(this.character)return document.createTextNode(this.character);var m=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return m.setAttribute("width",this.width+"em"),m},d.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},d.toText=function(){return this.character?this.character:" "},M}(),pe={MathNode:lr,TextNode:Ra,SpaceNode:eF,newDocumentFragment:F3},cr=function(d,f,m){return st[f][d]&&st[f][d].replace&&d.charCodeAt(0)!==55349&&!(rs.hasOwnProperty(d)&&m&&(m.fontFamily&&m.fontFamily.substr(4,2)==="tt"||m.font&&m.font.substr(4,2)==="tt"))&&(d=st[f][d].replace),new pe.TextNode(d)},Ap=function(d){return d.length===1?d[0]:new pe.MathNode("mrow",d)},Mp=function(d,f){if(f.fontFamily==="texttt")return"monospace";if(f.fontFamily==="textsf")return f.fontShape==="textit"&&f.fontWeight==="textbf"?"sans-serif-bold-italic":f.fontShape==="textit"?"sans-serif-italic":f.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(f.fontShape==="textit"&&f.fontWeight==="textbf")return"bold-italic";if(f.fontShape==="textit")return"italic";if(f.fontWeight==="textbf")return"bold";var m=f.font;if(!m||m==="mathnormal")return null;var _=d.mode;if(m==="mathit")return"italic";if(m==="boldsymbol")return d.type==="textord"?"bold":"bold-italic";if(m==="mathbf")return"bold";if(m==="mathbb")return"double-struck";if(m==="mathfrak")return"fraktur";if(m==="mathscr"||m==="mathcal")return"script";if(m==="mathsf")return"sans-serif";if(m==="mathtt")return"monospace";var x=d.text;if(S.contains(["\\imath","\\jmath"],x))return null;st[_][x]&&st[_][x].replace&&(x=st[_][x].replace);var T=j.fontMap[m].fontName;return se(x,T,_)?j.fontMap[m].variant:null},Kn=function(d,f,m){if(d.length===1){var _=Nt(d[0],f);return m&&_ instanceof lr&&_.type==="mo"&&(_.setAttribute("lspace","0em"),_.setAttribute("rspace","0em")),[_]}for(var x=[],T,I=0;I<d.length;I++){var B=Nt(d[I],f);if(B instanceof lr&&T instanceof lr){if(B.type==="mtext"&&T.type==="mtext"&&B.getAttribute("mathvariant")===T.getAttribute("mathvariant")){var z;(z=T.children).push.apply(z,B.children);continue}else if(B.type==="mn"&&T.type==="mn"){var G;(G=T.children).push.apply(G,B.children);continue}else if(B.type==="mi"&&B.children.length===1&&T.type==="mn"){var te=B.children[0];if(te instanceof Ra&&te.text==="."){var ae;(ae=T.children).push.apply(ae,B.children);continue}}else if(T.type==="mi"&&T.children.length===1){var de=T.children[0];if(de instanceof Ra&&de.text==="̸"&&(B.type==="mo"||B.type==="mi"||B.type==="mn")){var he=B.children[0];he instanceof Ra&&he.text.length>0&&(he.text=he.text.slice(0,1)+"̸"+he.text.slice(1),x.pop())}}}x.push(B),T=B}return x},Oi=function(d,f,m){return Ap(Kn(d,f,m))},Nt=function(d,f){if(!d)return new pe.MathNode("mrow");if(iu[d.type]){var m=iu[d.type](d,f);return m}else throw new o("Got group of unknown type: '"+d.type+"'")};function z3(M,d,f,m,_){var x=Kn(M,f),T;x.length===1&&x[0]instanceof lr&&S.contains(["mrow","mtable"],x[0].type)?T=x[0]:T=new pe.MathNode("mrow",x);var I=new pe.MathNode("annotation",[new pe.TextNode(d)]);I.setAttribute("encoding","application/x-tex");var B=new pe.MathNode("semantics",[T,I]),z=new pe.MathNode("math",[B]);z.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),m&&z.setAttribute("display","block");var G=_?"katex":"katex-mathml";return j.makeSpan([G],[z])}var q3=function(d){return new Wn({style:d.displayMode?Z.DISPLAY:Z.TEXT,maxSize:d.maxSize,minRuleThickness:d.minRuleThickness})},H3=function(d,f){if(f.displayMode){var m=["katex-display"];f.leqno&&m.push("leqno"),f.fleqn&&m.push("fleqn"),d=j.makeSpan(m,[d])}return d},tF=function(d,f,m){var _=q3(m),x;if(m.output==="mathml")return z3(d,f,_,m.displayMode,!0);if(m.output==="html"){var T=Tp(d,_);x=j.makeSpan(["katex"],[T])}else{var I=z3(d,f,_,m.displayMode,!1),B=Tp(d,_);x=j.makeSpan(["katex"],[I,B])}return H3(x,m)},nF=function(d,f,m){var _=q3(m),x=Tp(d,_),T=j.makeSpan(["katex"],[x]);return H3(T,m)},rF={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},iF=function(d){var f=new pe.MathNode("mo",[new pe.TextNode(rF[d.replace(/^\\/,"")])]);return f.setAttribute("stretchy","true"),f},oF={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},sF=function(d){return d.type==="ordgroup"?d.body.length:1},aF=function(d,f){function m(){var B=4e5,z=d.label.substr(1);if(S.contains(["widehat","widecheck","widetilde","utilde"],z)){var G=d,te=sF(G.base),ae,de,he;if(te>5)z==="widehat"||z==="widecheck"?(ae=420,B=2364,he=.42,de=z+"4"):(ae=312,B=2340,he=.34,de="tilde4");else{var ye=[1,1,2,2,3,3][te];z==="widehat"||z==="widecheck"?(B=[0,1062,2364,2364,2364][ye],ae=[0,239,300,360,420][ye],he=[0,.24,.3,.3,.36,.42][ye],de=z+ye):(B=[0,600,1033,2339,2340][ye],ae=[0,260,286,306,312][ye],he=[0,.26,.286,.3,.306,.34][ye],de="tilde"+ye)}var xe=new Ce(de),De=new ge([xe],{width:"100%",height:he+"em",viewBox:"0 0 "+B+" "+ae,preserveAspectRatio:"none"});return{span:j.makeSvgSpan([],[De],f),minWidth:0,height:he}}else{var Le=[],Ue=oF[z],gt=Ue[0],kt=Ue[1],qt=Ue[2],wt=qt/1e3,St=gt.length,Qt,Ot;if(St===1){var jn=Ue[3];Qt=["hide-tail"],Ot=[jn]}else if(St===2)Qt=["halfarrow-left","halfarrow-right"],Ot=["xMinYMin","xMaxYMin"];else if(St===3)Qt=["brace-left","brace-center","brace-right"],Ot=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
404
+ `+St+" children.");for(var Qn=0;Qn<St;Qn++){var Bi=new Ce(gt[Qn]),Fr=new ge([Bi],{width:"400em",height:wt+"em",viewBox:"0 0 "+B+" "+qt,preserveAspectRatio:Ot[Qn]+" slice"}),Yn=j.makeSvgSpan([Qt[Qn]],[Fr],f);if(St===1)return{span:Yn,minWidth:kt,height:wt};Yn.style.height=wt+"em",Le.push(Yn)}return{span:j.makeSpan(["stretchy"],Le,f),minWidth:kt,height:wt}}}var _=m(),x=_.span,T=_.minWidth,I=_.height;return x.height=I,x.style.height=I+"em",T>0&&(x.style.minWidth=T+"em"),x},lF=function(d,f,m,_,x){var T,I=d.height+d.depth+m+_;if(/fbox|color|angl/.test(f)){if(T=j.makeSpan(["stretchy",f],[],x),f==="fbox"){var B=x.color&&x.getColor();B&&(T.style.borderColor=B)}}else{var z=[];/^[bx]cancel$/.test(f)&&z.push(new qe({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(f)&&z.push(new qe({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var G=new ge(z,{width:"100%",height:I+"em"});T=j.makeSvgSpan([],[G],x)}return T.height=I,T.style.height=I+"em",T},ni={encloseSpan:lF,mathMLnode:iF,svgSpan:aF};function nt(M,d){if(!M||M.type!==d)throw new Error("Expected node of type "+d+", but got "+(M?"node of type "+M.type:String(M)));return M}function Np(M){var d=au(M);if(!d)throw new Error("Expected node of symbol group type, but got "+(M?"node of type "+M.type:String(M)));return d}function au(M){return M&&(M.type==="atom"||ut.hasOwnProperty(M.type))?M:null}var Dp=function(d,f){var m,_,x;d&&d.type==="supsub"?(_=nt(d.base,"accent"),m=_.base,d.base=m,x=Ht(mt(d,f)),d.base=_):(_=nt(d,"accent"),m=_.base);var T=mt(m,f.havingCrampedStyle()),I=_.isShifty&&S.isCharacterBox(m),B=0;if(I){var z=S.getBaseElem(m),G=mt(z,f.havingCrampedStyle());B=Je(G).skew}var te=_.label==="\\c",ae=te?T.height+T.depth:Math.min(T.height,f.fontMetrics().xHeight),de;if(_.isStretchy)de=ni.svgSpan(_,f),de=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:T},{type:"elem",elem:de,wrapperClasses:["svg-align"],wrapperStyle:B>0?{width:"calc(100% - "+2*B+"em)",marginLeft:2*B+"em"}:void 0}]},f);else{var he,ye;_.label==="\\vec"?(he=j.staticSvg("vec",f),ye=j.svgData.vec[1]):(he=j.makeOrd({mode:_.mode,text:_.label},f,"textord"),he=Je(he),he.italic=0,ye=he.width,te&&(ae+=he.depth)),de=j.makeSpan(["accent-body"],[he]);var xe=_.label==="\\textcircled";xe&&(de.classes.push("accent-full"),ae=T.height);var De=B;xe||(De-=ye/2),de.style.left=De+"em",_.label==="\\textcircled"&&(de.style.top=".2em"),de=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:T},{type:"kern",size:-ae},{type:"elem",elem:de}]},f)}var Le=j.makeSpan(["mord","accent"],[de],f);return x?(x.children[0]=Le,x.height=Math.max(Le.height,x.height),x.classes[0]="mord",x):Le},V3=function(d,f){var m=d.isStretchy?ni.mathMLnode(d.label):new pe.MathNode("mo",[cr(d.label,d.mode)]),_=new pe.MathNode("mover",[Nt(d.base,f),m]);return _.setAttribute("accent","true"),_},cF=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(M){return"\\"+M}).join("|"));Ae({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(d,f){var m=ou(f[0]),_=!cF.test(d.funcName),x=!_||d.funcName==="\\widehat"||d.funcName==="\\widetilde"||d.funcName==="\\widecheck";return{type:"accent",mode:d.parser.mode,label:d.funcName,isStretchy:_,isShifty:x,base:m}},htmlBuilder:Dp,mathmlBuilder:V3}),Ae({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:function(d,f){var m=f[0],_=d.parser.mode;return _==="math"&&(d.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+d.funcName+" works only in text mode"),_="text"),{type:"accent",mode:_,label:d.funcName,isStretchy:!1,isShifty:!0,base:m}},htmlBuilder:Dp,mathmlBuilder:V3}),Ae({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[0];return{type:"accentUnder",mode:m.mode,label:_,base:x}},htmlBuilder:function(d,f){var m=mt(d.base,f),_=ni.svgSpan(d,f),x=d.label==="\\utilde"?.12:0,T=j.makeVList({positionType:"top",positionData:m.height,children:[{type:"elem",elem:_,wrapperClasses:["svg-align"]},{type:"kern",size:x},{type:"elem",elem:m}]},f);return j.makeSpan(["mord","accentunder"],[T],f)},mathmlBuilder:function(d,f){var m=ni.mathMLnode(d.label),_=new pe.MathNode("munder",[Nt(d.base,f),m]);return _.setAttribute("accentunder","true"),_}});var lu=function(d){var f=new pe.MathNode("mpadded",d?[d]:[]);return f.setAttribute("width","+0.6em"),f.setAttribute("lspace","0.3em"),f};Ae({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler:function(d,f,m){var _=d.parser,x=d.funcName;return{type:"xArrow",mode:_.mode,label:x,body:f[0],below:m[0]}},htmlBuilder:function(d,f){var m=f.style,_=f.havingStyle(m.sup()),x=j.wrapFragment(mt(d.body,_,f),f),T=d.label.slice(0,2)==="\\x"?"x":"cd";x.classes.push(T+"-arrow-pad");var I;d.below&&(_=f.havingStyle(m.sub()),I=j.wrapFragment(mt(d.below,_,f),f),I.classes.push(T+"-arrow-pad"));var B=ni.svgSpan(d,f),z=-f.fontMetrics().axisHeight+.5*B.height,G=-f.fontMetrics().axisHeight-.5*B.height-.111;(x.depth>.25||d.label==="\\xleftequilibrium")&&(G-=x.depth);var te;if(I){var ae=-f.fontMetrics().axisHeight+I.height+.5*B.height+.111;te=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:G},{type:"elem",elem:B,shift:z},{type:"elem",elem:I,shift:ae}]},f)}else te=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:x,shift:G},{type:"elem",elem:B,shift:z}]},f);return te.children[0].children[0].children[1].classes.push("svg-align"),j.makeSpan(["mrel","x-arrow"],[te],f)},mathmlBuilder:function(d,f){var m=ni.mathMLnode(d.label);m.setAttribute("minsize",d.label.charAt(0)==="x"?"1.75em":"3.0em");var _;if(d.body){var x=lu(Nt(d.body,f));if(d.below){var T=lu(Nt(d.below,f));_=new pe.MathNode("munderover",[m,T,x])}else _=new pe.MathNode("mover",[m,x])}else if(d.below){var I=lu(Nt(d.below,f));_=new pe.MathNode("munder",[m,I])}else _=lu(),_=new pe.MathNode("mover",[m,_]);return _}});var uF={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},U3=function(){return{type:"styling",body:[],mode:"math",style:"display"}},G3=function(d){return d.type==="textord"&&d.text==="@"},dF=function(d,f){return(d.type==="mathord"||d.type==="atom")&&d.text===f};function hF(M,d,f){var m=uF[M];switch(m){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return f.callFunction(m,[d[0]],[d[1]]);case"\\uparrow":case"\\downarrow":{var _=f.callFunction("\\\\cdleft",[d[0]],[]),x={type:"atom",text:m,mode:"math",family:"rel"},T=f.callFunction("\\Big",[x],[]),I=f.callFunction("\\\\cdright",[d[1]],[]),B={type:"ordgroup",mode:"math",body:[_,T,I]};return f.callFunction("\\\\cdparent",[B],[])}case"\\\\cdlongequal":return f.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var z={type:"textord",text:"\\Vert",mode:"math"};return f.callFunction("\\Big",[z],[])}default:return{type:"textord",text:" ",mode:"math"}}}function fF(M){var d=[];for(M.gullet.beginGroup(),M.gullet.macros.set("\\cr","\\\\\\relax"),M.gullet.beginGroup();;){d.push(M.parseExpression(!1,"\\\\")),M.gullet.endGroup(),M.gullet.beginGroup();var f=M.fetch().text;if(f==="&"||f==="\\\\")M.consume();else if(f==="\\end"){d[d.length-1].length===0&&d.pop();break}else throw new o("Expected \\\\ or \\cr or \\end",M.nextToken)}for(var m=[],_=[m],x=0;x<d.length;x++){for(var T=d[x],I=U3(),B=0;B<T.length;B++)if(!G3(T[B]))I.body.push(T[B]);else{m.push(I),B+=1;var z=Np(T[B]).text,G=new Array(2);if(G[0]={type:"ordgroup",mode:"math",body:[]},G[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(z)>-1))if("<>AV".indexOf(z)>-1)for(var te=0;te<2;te++){for(var ae=!0,de=B+1;de<T.length;de++){if(dF(T[de],z)){ae=!1,B=de;break}if(G3(T[de]))throw new o("Missing a "+z+" character to complete a CD arrow.",T[de]);G[te].body.push(T[de])}if(ae)throw new o("Missing a "+z+" character to complete a CD arrow.",T[B])}else throw new o('Expected one of "<>AV=|." after @',T[B]);var he=hF(z,G,M),ye={type:"styling",body:[he],mode:"math",style:"display"};m.push(ye),I=U3()}x%2===0?m.push(I):m.shift(),m=[],_.push(m)}M.gullet.endGroup(),M.gullet.endGroup();var xe=new Array(_[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:_,arraystretch:1,addJot:!0,rowGaps:[null],cols:xe,colSeparationType:"CD",hLinesBeforeRow:new Array(_.length+1).fill([])}}Ae({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler:function(d,f){var m=d.parser,_=d.funcName;return{type:"cdlabel",mode:m.mode,side:_.slice(4),label:f[0]}},htmlBuilder:function(d,f){var m=f.havingStyle(f.style.sup()),_=j.wrapFragment(mt(d.label,m,f),f);return _.classes.push("cd-label-"+d.side),_.style.bottom=.8-_.depth+"em",_.height=0,_.depth=0,_},mathmlBuilder:function(d,f){var m=new pe.MathNode("mrow",[Nt(d.label,f)]);return m=new pe.MathNode("mpadded",[m]),m.setAttribute("width","0"),d.side==="left"&&m.setAttribute("lspace","-1width"),m.setAttribute("voffset","0.7em"),m=new pe.MathNode("mstyle",[m]),m.setAttribute("displaystyle","false"),m.setAttribute("scriptlevel","1"),m}}),Ae({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler:function(d,f){var m=d.parser;return{type:"cdlabelparent",mode:m.mode,fragment:f[0]}},htmlBuilder:function(d,f){var m=j.wrapFragment(mt(d.fragment,f),f);return m.classes.push("cd-vert-arrow"),m},mathmlBuilder:function(d,f){return new pe.MathNode("mrow",[Nt(d.fragment,f)])}}),Ae({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(d,f){for(var m=d.parser,_=nt(f[0],"ordgroup"),x=_.body,T="",I=0;I<x.length;I++){var B=nt(x[I],"textord");T+=B.text}var z=parseInt(T),G;if(isNaN(z))throw new o("\\@char has non-numeric argument "+T);if(z<0||z>=1114111)throw new o("\\@char with invalid code point "+T);return z<=65535?G=String.fromCharCode(z):(z-=65536,G=String.fromCharCode((z>>10)+55296,(z&1023)+56320)),{type:"textord",mode:m.mode,text:G}}});var $3=function(d,f){var m=fn(d.body,f.withColor(d.color),!1);return j.makeFragment(m)},W3=function(d,f){var m=Kn(d.body,f.withColor(d.color)),_=new pe.MathNode("mstyle",m);return _.setAttribute("mathcolor",d.color),_};Ae({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler:function(d,f){var m=d.parser,_=nt(f[0],"color-token").color,x=f[1];return{type:"color",mode:m.mode,color:_,body:Jt(x)}},htmlBuilder:$3,mathmlBuilder:W3}),Ae({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler:function(d,f){var m=d.parser,_=d.breakOnTokenText,x=nt(f[0],"color-token").color;m.gullet.macros.set("\\current@color",x);var T=m.parseExpression(!0,_);return{type:"color",mode:m.mode,color:x,body:T}},htmlBuilder:$3,mathmlBuilder:W3}),Ae({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(d,f,m){var _=d.parser,x=m[0],T=!_.settings.displayMode||!_.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:_.mode,newLine:T,size:x&&nt(x,"size").value}},htmlBuilder:function(d,f){var m=j.makeSpan(["mspace"],[],f);return d.newLine&&(m.classes.push("newline"),d.size&&(m.style.marginTop=bt(d.size,f)+"em")),m},mathmlBuilder:function(d,f){var m=new pe.MathNode("mspace");return d.newLine&&(m.setAttribute("linebreak","newline"),d.size&&m.setAttribute("height",bt(d.size,f)+"em")),m}});var Rp={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},K3=function(d){var f=d.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(f))throw new o("Expected a control sequence",d);return f},pF=function(d){var f=d.gullet.popToken();return f.text==="="&&(f=d.gullet.popToken(),f.text===" "&&(f=d.gullet.popToken())),f},j3=function(d,f,m,_){var x=d.gullet.macros.get(m.text);x==null&&(m.noexpand=!0,x={tokens:[m],numArgs:0,unexpandable:!d.gullet.isExpandable(m.text)}),d.gullet.macros.set(f,x,_)};Ae({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler:function(d){var f=d.parser,m=d.funcName;f.consumeSpaces();var _=f.fetch();if(Rp[_.text])return(m==="\\global"||m==="\\\\globallong")&&(_.text=Rp[_.text]),nt(f.parseFunction(),"internal");throw new o("Invalid token after macro prefix",_)}}),Ae({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(d){var f=d.parser,m=d.funcName,_=f.gullet.popToken(),x=_.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(x))throw new o("Expected a control sequence",_);for(var T=0,I,B=[[]];f.gullet.future().text!=="{";)if(_=f.gullet.popToken(),_.text==="#"){if(f.gullet.future().text==="{"){I=f.gullet.future(),B[T].push("{");break}if(_=f.gullet.popToken(),!/^[1-9]$/.test(_.text))throw new o('Invalid argument number "'+_.text+'"');if(parseInt(_.text)!==T+1)throw new o('Argument number "'+_.text+'" out of order');T++,B.push([])}else{if(_.text==="EOF")throw new o("Expected a macro definition");B[T].push(_.text)}var z=f.gullet.consumeArg(),G=z.tokens;return I&&G.unshift(I),(m==="\\edef"||m==="\\xdef")&&(G=f.gullet.expandTokens(G),G.reverse()),f.gullet.macros.set(x,{tokens:G,numArgs:T,delimiters:B},m===Rp[m]),{type:"internal",mode:f.mode}}}),Ae({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(d){var f=d.parser,m=d.funcName,_=K3(f.gullet.popToken());f.gullet.consumeSpaces();var x=pF(f);return j3(f,_,x,m==="\\\\globallet"),{type:"internal",mode:f.mode}}}),Ae({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(d){var f=d.parser,m=d.funcName,_=K3(f.gullet.popToken()),x=f.gullet.popToken(),T=f.gullet.popToken();return j3(f,_,T,m==="\\\\globalfuture"),f.gullet.pushToken(T),f.gullet.pushToken(x),{type:"internal",mode:f.mode}}});var Oa=function(d,f,m){var _=st.math[d]&&st.math[d].replace,x=se(_||d,f,m);if(!x)throw new Error("Unsupported symbol "+d+" and font size "+f+".");return x},Op=function(d,f,m,_){var x=m.havingBaseStyle(f),T=j.makeSpan(_.concat(x.sizingClasses(m)),[d],m),I=x.sizeMultiplier/m.sizeMultiplier;return T.height*=I,T.depth*=I,T.maxFontSize=x.sizeMultiplier,T},Q3=function(d,f,m){var _=f.havingBaseStyle(m),x=(1-f.sizeMultiplier/_.sizeMultiplier)*f.fontMetrics().axisHeight;d.classes.push("delimcenter"),d.style.top=x+"em",d.height-=x,d.depth+=x},mF=function(d,f,m,_,x,T){var I=j.makeSymbol(d,"Main-Regular",x,_),B=Op(I,f,_,T);return m&&Q3(B,_,f),B},gF=function(d,f,m,_){return j.makeSymbol(d,"Size"+f+"-Regular",m,_)},Y3=function(d,f,m,_,x,T){var I=gF(d,f,x,_),B=Op(j.makeSpan(["delimsizing","size"+f],[I],_),Z.TEXT,_,T);return m&&Q3(B,_,Z.TEXT),B},Ip=function(d,f,m){var _;f==="Size1-Regular"?_="delim-size1":_="delim-size4";var x=j.makeSpan(["delimsizinginner",_],[j.makeSpan([],[j.makeSymbol(d,f,m)])]);return{type:"elem",elem:x}},Lp=function(d,f,m){var _=Pt["Size4-Regular"][d.charCodeAt(0)]?Pt["Size4-Regular"][d.charCodeAt(0)][4].toFixed(3):Pt["Size1-Regular"][d.charCodeAt(0)][4].toFixed(3),x=new Ce("inner",ht(d,Math.round(1e3*f))),T=new ge([x],{width:_+"em",height:f+"em",style:"width:"+_+"em",viewBox:"0 0 "+1e3*_+" "+Math.round(1e3*f),preserveAspectRatio:"xMinYMin"}),I=j.makeSvgSpan([],[T],m);return I.height=f,I.style.height=f+"em",I.style.width=_+"em",{type:"elem",elem:I}},Bp=.008,cu={type:"kern",size:-1*Bp},bF=["|","\\lvert","\\rvert","\\vert"],_F=["\\|","\\lVert","\\rVert","\\Vert"],Z3=function(d,f,m,_,x,T){var I,B,z,G;I=z=G=d,B=null;var te="Size1-Regular";d==="\\uparrow"?z=G="⏐":d==="\\Uparrow"?z=G="‖":d==="\\downarrow"?I=z="⏐":d==="\\Downarrow"?I=z="‖":d==="\\updownarrow"?(I="\\uparrow",z="⏐",G="\\downarrow"):d==="\\Updownarrow"?(I="\\Uparrow",z="‖",G="\\Downarrow"):S.contains(bF,d)?z="∣":S.contains(_F,d)?z="∥":d==="["||d==="\\lbrack"?(I="⎡",z="⎢",G="⎣",te="Size4-Regular"):d==="]"||d==="\\rbrack"?(I="⎤",z="⎥",G="⎦",te="Size4-Regular"):d==="\\lfloor"||d==="⌊"?(z=I="⎢",G="⎣",te="Size4-Regular"):d==="\\lceil"||d==="⌈"?(I="⎡",z=G="⎢",te="Size4-Regular"):d==="\\rfloor"||d==="⌋"?(z=I="⎥",G="⎦",te="Size4-Regular"):d==="\\rceil"||d==="⌉"?(I="⎤",z=G="⎥",te="Size4-Regular"):d==="("||d==="\\lparen"?(I="⎛",z="⎜",G="⎝",te="Size4-Regular"):d===")"||d==="\\rparen"?(I="⎞",z="⎟",G="⎠",te="Size4-Regular"):d==="\\{"||d==="\\lbrace"?(I="⎧",B="⎨",G="⎩",z="⎪",te="Size4-Regular"):d==="\\}"||d==="\\rbrace"?(I="⎫",B="⎬",G="⎭",z="⎪",te="Size4-Regular"):d==="\\lgroup"||d==="⟮"?(I="⎧",G="⎩",z="⎪",te="Size4-Regular"):d==="\\rgroup"||d==="⟯"?(I="⎫",G="⎭",z="⎪",te="Size4-Regular"):d==="\\lmoustache"||d==="⎰"?(I="⎧",G="⎭",z="⎪",te="Size4-Regular"):(d==="\\rmoustache"||d==="⎱")&&(I="⎫",G="⎩",z="⎪",te="Size4-Regular");var ae=Oa(I,te,x),de=ae.height+ae.depth,he=Oa(z,te,x),ye=he.height+he.depth,xe=Oa(G,te,x),De=xe.height+xe.depth,Le=0,Ue=1;if(B!==null){var gt=Oa(B,te,x);Le=gt.height+gt.depth,Ue=2}var kt=de+De+Le,qt=Math.max(0,Math.ceil((f-kt)/(Ue*ye))),wt=kt+qt*Ue*ye,St=_.fontMetrics().axisHeight;m&&(St*=_.sizeMultiplier);var Qt=wt/2-St,Ot=[];if(Ot.push(Ip(G,te,x)),Ot.push(cu),B===null){var jn=wt-de-De+2*Bp;Ot.push(Lp(z,jn,_))}else{var Qn=(wt-de-De-Le)/2+2*Bp;Ot.push(Lp(z,Qn,_)),Ot.push(cu),Ot.push(Ip(B,te,x)),Ot.push(cu),Ot.push(Lp(z,Qn,_))}Ot.push(cu),Ot.push(Ip(I,te,x));var Bi=_.havingBaseStyle(Z.TEXT),Fr=j.makeVList({positionType:"bottom",positionData:Qt,children:Ot},Bi);return Op(j.makeSpan(["delimsizing","mult"],[Fr],Bi),Z.TEXT,_,T)},Pp=80,Fp=.08,zp=function(d,f,m,_,x){var T=at(d,_,m),I=new Ce(d,T),B=new ge([I],{width:"400em",height:f+"em",viewBox:"0 0 400000 "+m,preserveAspectRatio:"xMinYMin slice"});return j.makeSvgSpan(["hide-tail"],[B],x)},yF=function(d,f){var m=f.havingBaseSizing(),_=tw("\\surd",d*m.sizeMultiplier,ew,m),x=m.sizeMultiplier,T=Math.max(0,f.minRuleThickness-f.fontMetrics().sqrtRuleThickness),I,B=0,z=0,G=0,te;return _.type==="small"?(G=1e3+1e3*T+Pp,d<1?x=1:d<1.4&&(x=.7),B=(1+T+Fp)/x,z=(1+T)/x,I=zp("sqrtMain",B,G,T,f),I.style.minWidth="0.853em",te=.833/x):_.type==="large"?(G=(1e3+Pp)*Ia[_.size],z=(Ia[_.size]+T)/x,B=(Ia[_.size]+T+Fp)/x,I=zp("sqrtSize"+_.size,B,G,T,f),I.style.minWidth="1.02em",te=1/x):(B=d+T+Fp,z=d+T,G=Math.floor(1e3*d+T)+Pp,I=zp("sqrtTall",B,G,T,f),I.style.minWidth="0.742em",te=1.056),I.height=z,I.style.height=B+"em",{span:I,advanceWidth:te,ruleWidth:(f.fontMetrics().sqrtRuleThickness+T)*x}},X3=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],vF=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],J3=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ia=[0,1.2,1.8,2.4,3],wF=function(d,f,m,_,x){if(d==="<"||d==="\\lt"||d==="⟨"?d="\\langle":(d===">"||d==="\\gt"||d==="⟩")&&(d="\\rangle"),S.contains(X3,d)||S.contains(J3,d))return Y3(d,f,!1,m,_,x);if(S.contains(vF,d))return Z3(d,Ia[f],!1,m,_,x);throw new o("Illegal delimiter: '"+d+"'")},xF=[{type:"small",style:Z.SCRIPTSCRIPT},{type:"small",style:Z.SCRIPT},{type:"small",style:Z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],kF=[{type:"small",style:Z.SCRIPTSCRIPT},{type:"small",style:Z.SCRIPT},{type:"small",style:Z.TEXT},{type:"stack"}],ew=[{type:"small",style:Z.SCRIPTSCRIPT},{type:"small",style:Z.SCRIPT},{type:"small",style:Z.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],SF=function(d){if(d.type==="small")return"Main-Regular";if(d.type==="large")return"Size"+d.size+"-Regular";if(d.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+d.type+"' here.")},tw=function(d,f,m,_){for(var x=Math.min(2,3-_.style.size),T=x;T<m.length&&m[T].type!=="stack";T++){var I=Oa(d,SF(m[T]),"math"),B=I.height+I.depth;if(m[T].type==="small"){var z=_.havingBaseStyle(m[T].style);B*=z.sizeMultiplier}if(B>f)return m[T]}return m[m.length-1]},nw=function(d,f,m,_,x,T){d==="<"||d==="\\lt"||d==="⟨"?d="\\langle":(d===">"||d==="\\gt"||d==="⟩")&&(d="\\rangle");var I;S.contains(J3,d)?I=xF:S.contains(X3,d)?I=ew:I=kF;var B=tw(d,f,I,_);return B.type==="small"?mF(d,B.style,m,_,x,T):B.type==="large"?Y3(d,B.size,m,_,x,T):Z3(d,f,m,_,x,T)},EF=function(d,f,m,_,x,T){var I=_.fontMetrics().axisHeight*_.sizeMultiplier,B=901,z=5/_.fontMetrics().ptPerEm,G=Math.max(f-I,m+I),te=Math.max(G/500*B,2*G-z);return nw(d,te,!0,_,x,T)},Ir={sqrtImage:yF,sizedDelim:wF,sizeToMaxHeight:Ia,customSizedDelim:nw,leftRightDelim:EF},rw={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},CF=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function uu(M,d){var f=au(M);if(f&&S.contains(CF,f.text))return f;throw f?new o("Invalid delimiter '"+f.text+"' after '"+d.funcName+"'",M):new o("Invalid delimiter type '"+M.type+"'",M)}Ae({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:function(d,f){var m=uu(f[0],d);return{type:"delimsizing",mode:d.parser.mode,size:rw[d.funcName].size,mclass:rw[d.funcName].mclass,delim:m.text}},htmlBuilder:function(d,f){return d.delim==="."?j.makeSpan([d.mclass]):Ir.sizedDelim(d.delim,d.size,f,d.mode,[d.mclass])},mathmlBuilder:function(d){var f=[];d.delim!=="."&&f.push(cr(d.delim,d.mode));var m=new pe.MathNode("mo",f);return d.mclass==="mopen"||d.mclass==="mclose"?m.setAttribute("fence","true"):m.setAttribute("fence","false"),m.setAttribute("stretchy","true"),m.setAttribute("minsize",Ir.sizeToMaxHeight[d.size]+"em"),m.setAttribute("maxsize",Ir.sizeToMaxHeight[d.size]+"em"),m}});function iw(M){if(!M.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ae({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:function(d,f){var m=d.parser.gullet.macros.get("\\current@color");if(m&&typeof m!="string")throw new o("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:d.parser.mode,delim:uu(f[0],d).text,color:m}}}),Ae({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:function(d,f){var m=uu(f[0],d),_=d.parser;++_.leftrightDepth;var x=_.parseExpression(!1);--_.leftrightDepth,_.expect("\\right",!1);var T=nt(_.parseFunction(),"leftright-right");return{type:"leftright",mode:_.mode,body:x,left:m.text,right:T.delim,rightColor:T.color}},htmlBuilder:function(d,f){iw(d);for(var m=fn(d.body,f,!0,["mopen","mclose"]),_=0,x=0,T=!1,I=0;I<m.length;I++)m[I].isMiddle?T=!0:(_=Math.max(m[I].height,_),x=Math.max(m[I].depth,x));_*=f.sizeMultiplier,x*=f.sizeMultiplier;var B;if(d.left==="."?B=Da(f,["mopen"]):B=Ir.leftRightDelim(d.left,_,x,f,d.mode,["mopen"]),m.unshift(B),T)for(var z=1;z<m.length;z++){var G=m[z],te=G.isMiddle;te&&(m[z]=Ir.leftRightDelim(te.delim,_,x,te.options,d.mode,[]))}var ae;if(d.right===".")ae=Da(f,["mclose"]);else{var de=d.rightColor?f.withColor(d.rightColor):f;ae=Ir.leftRightDelim(d.right,_,x,de,d.mode,["mclose"])}return m.push(ae),j.makeSpan(["minner"],m,f)},mathmlBuilder:function(d,f){iw(d);var m=Kn(d.body,f);if(d.left!=="."){var _=new pe.MathNode("mo",[cr(d.left,d.mode)]);_.setAttribute("fence","true"),m.unshift(_)}if(d.right!=="."){var x=new pe.MathNode("mo",[cr(d.right,d.mode)]);x.setAttribute("fence","true"),d.rightColor&&x.setAttribute("mathcolor",d.rightColor),m.push(x)}return Ap(m)}}),Ae({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:function(d,f){var m=uu(f[0],d);if(!d.parser.leftrightDepth)throw new o("\\middle without preceding \\left",m);return{type:"middle",mode:d.parser.mode,delim:m.text}},htmlBuilder:function(d,f){var m;if(d.delim===".")m=Da(f,[]);else{m=Ir.sizedDelim(d.delim,1,f,d.mode,[]);var _={delim:d.delim,options:f};m.isMiddle=_}return m},mathmlBuilder:function(d,f){var m=d.delim==="\\vert"||d.delim==="|"?cr("|","text"):cr(d.delim,d.mode),_=new pe.MathNode("mo",[m]);return _.setAttribute("fence","true"),_.setAttribute("lspace","0.05em"),_.setAttribute("rspace","0.05em"),_}});var qp=function(d,f){var m=j.wrapFragment(mt(d.body,f),f),_=d.label.substr(1),x=f.sizeMultiplier,T,I=0,B=S.isCharacterBox(d.body);if(_==="sout")T=j.makeSpan(["stretchy","sout"]),T.height=f.fontMetrics().defaultRuleThickness/x,I=-.5*f.fontMetrics().xHeight;else if(_==="phase"){var z=bt({number:.6,unit:"pt"},f),G=bt({number:.35,unit:"ex"},f),te=f.havingBaseSizing();x=x/te.sizeMultiplier;var ae=m.height+m.depth+z+G;m.style.paddingLeft=ae/2+z+"em";var de=Math.floor(1e3*ae*x),he=dt(de),ye=new ge([new Ce("phase",he)],{width:"400em",height:de/1e3+"em",viewBox:"0 0 400000 "+de,preserveAspectRatio:"xMinYMin slice"});T=j.makeSvgSpan(["hide-tail"],[ye],f),T.style.height=ae+"em",I=m.depth+z+G}else{/cancel/.test(_)?B||m.classes.push("cancel-pad"):_==="angl"?m.classes.push("anglpad"):m.classes.push("boxpad");var xe=0,De=0,Le=0;/box/.test(_)?(Le=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness),xe=f.fontMetrics().fboxsep+(_==="colorbox"?0:Le),De=xe):_==="angl"?(Le=Math.max(f.fontMetrics().defaultRuleThickness,f.minRuleThickness),xe=4*Le,De=Math.max(0,.25-m.depth)):(xe=B?.2:0,De=xe),T=ni.encloseSpan(m,_,xe,De,f),/fbox|boxed|fcolorbox/.test(_)?(T.style.borderStyle="solid",T.style.borderWidth=Le+"em"):_==="angl"&&Le!==.049&&(T.style.borderTopWidth=Le+"em",T.style.borderRightWidth=Le+"em"),I=m.depth+De,d.backgroundColor&&(T.style.backgroundColor=d.backgroundColor,d.borderColor&&(T.style.borderColor=d.borderColor))}var Ue;if(d.backgroundColor)Ue=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:T,shift:I},{type:"elem",elem:m,shift:0}]},f);else{var gt=/cancel|phase/.test(_)?["svg-align"]:[];Ue=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:m,shift:0},{type:"elem",elem:T,shift:I,wrapperClasses:gt}]},f)}return/cancel/.test(_)&&(Ue.height=m.height,Ue.depth=m.depth),/cancel/.test(_)&&!B?j.makeSpan(["mord","cancel-lap"],[Ue],f):j.makeSpan(["mord"],[Ue],f)},Hp=function(d,f){var m=0,_=new pe.MathNode(d.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Nt(d.body,f)]);switch(d.label){case"\\cancel":_.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":_.setAttribute("notation","downdiagonalstrike");break;case"\\phase":_.setAttribute("notation","phasorangle");break;case"\\sout":_.setAttribute("notation","horizontalstrike");break;case"\\fbox":_.setAttribute("notation","box");break;case"\\angl":_.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(m=f.fontMetrics().fboxsep*f.fontMetrics().ptPerEm,_.setAttribute("width","+"+2*m+"pt"),_.setAttribute("height","+"+2*m+"pt"),_.setAttribute("lspace",m+"pt"),_.setAttribute("voffset",m+"pt"),d.label==="\\fcolorbox"){var x=Math.max(f.fontMetrics().fboxrule,f.minRuleThickness);_.setAttribute("style","border: "+x+"em solid "+String(d.borderColor))}break;case"\\xcancel":_.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return d.backgroundColor&&_.setAttribute("mathbackground",d.backgroundColor),_};Ae({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler:function(d,f,m){var _=d.parser,x=d.funcName,T=nt(f[0],"color-token").color,I=f[1];return{type:"enclose",mode:_.mode,label:x,backgroundColor:T,body:I}},htmlBuilder:qp,mathmlBuilder:Hp}),Ae({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler:function(d,f,m){var _=d.parser,x=d.funcName,T=nt(f[0],"color-token").color,I=nt(f[1],"color-token").color,B=f[2];return{type:"enclose",mode:_.mode,label:x,backgroundColor:I,borderColor:T,body:B}},htmlBuilder:qp,mathmlBuilder:Hp}),Ae({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(d,f){var m=d.parser;return{type:"enclose",mode:m.mode,label:"\\fbox",body:f[0]}}}),Ae({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[0];return{type:"enclose",mode:m.mode,label:_,body:x}},htmlBuilder:qp,mathmlBuilder:Hp}),Ae({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler:function(d,f){var m=d.parser;return{type:"enclose",mode:m.mode,label:"\\angl",body:f[0]}}});var ow={};function Lr(M){for(var d=M.type,f=M.names,m=M.props,_=M.handler,x=M.htmlBuilder,T=M.mathmlBuilder,I={type:d,numArgs:m.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:_},B=0;B<f.length;++B)ow[f[B]]=I;x&&(ru[d]=x),T&&(iu[d]=T)}function sw(M){var d=[];M.consumeSpaces();for(var f=M.fetch().text;f==="\\hline"||f==="\\hdashline";)M.consume(),d.push(f==="\\hdashline"),M.consumeSpaces(),f=M.fetch().text;return d}var du=function(d){var f=d.parser.settings;if(!f.displayMode)throw new o("{"+d.envName+"} can be used only in display mode.")};function Ii(M,d,f){var m=d.hskipBeforeAndAfter,_=d.addJot,x=d.cols,T=d.arraystretch,I=d.colSeparationType,B=d.addEqnNum,z=d.singleRow,G=d.emptySingleRow,te=d.maxNumCols,ae=d.leqno;if(M.gullet.beginGroup(),z||M.gullet.macros.set("\\cr","\\\\\\relax"),!T){var de=M.gullet.expandMacroAsText("\\arraystretch");if(de==null)T=1;else if(T=parseFloat(de),!T||T<0)throw new o("Invalid \\arraystretch: "+de)}M.gullet.beginGroup();var he=[],ye=[he],xe=[],De=[];for(De.push(sw(M));;){var Le=M.parseExpression(!1,z?"\\end":"\\\\");M.gullet.endGroup(),M.gullet.beginGroup(),Le={type:"ordgroup",mode:M.mode,body:Le},f&&(Le={type:"styling",mode:M.mode,style:f,body:[Le]}),he.push(Le);var Ue=M.fetch().text;if(Ue==="&"){if(te&&he.length===te){if(z||I)throw new o("Too many tab characters: &",M.nextToken);M.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}M.consume()}else if(Ue==="\\end"){he.length===1&&Le.type==="styling"&&Le.body[0].body.length===0&&(ye.length>1||!G)&&ye.pop(),De.length<ye.length+1&&De.push([]);break}else if(Ue==="\\\\"){M.consume();var gt=void 0;M.gullet.future().text!==" "&&(gt=M.parseSizeGroup(!0)),xe.push(gt?gt.value:null),De.push(sw(M)),he=[],ye.push(he)}else throw new o("Expected & or \\\\ or \\cr or \\end",M.nextToken)}return M.gullet.endGroup(),M.gullet.endGroup(),{type:"array",mode:M.mode,addJot:_,arraystretch:T,body:ye,cols:x,rowGaps:xe,hskipBeforeAndAfter:m,hLinesBeforeRow:De,colSeparationType:I,addEqnNum:B,leqno:ae}}function Vp(M){return M.substr(0,1)==="d"?"display":"text"}var Br=function(d,f){var m,_,x=d.body.length,T=d.hLinesBeforeRow,I=0,B=new Array(x),z=[],G=Math.max(f.fontMetrics().arrayRuleWidth,f.minRuleThickness),te=1/f.fontMetrics().ptPerEm,ae=5*te;if(d.colSeparationType&&d.colSeparationType==="small"){var de=f.havingStyle(Z.SCRIPT).sizeMultiplier;ae=.2778*(de/f.sizeMultiplier)}var he=d.colSeparationType==="CD"?bt({number:3,unit:"ex"},f):12*te,ye=3*te,xe=d.arraystretch*he,De=.7*xe,Le=.3*xe,Ue=0;function gt(Ww){for(var pu=0;pu<Ww.length;++pu)pu>0&&(Ue+=.25),z.push({pos:Ue,isDashed:Ww[pu]})}for(gt(T[0]),m=0;m<d.body.length;++m){var kt=d.body[m],qt=De,wt=Le;I<kt.length&&(I=kt.length);var St=new Array(kt.length);for(_=0;_<kt.length;++_){var Qt=mt(kt[_],f);wt<Qt.depth&&(wt=Qt.depth),qt<Qt.height&&(qt=Qt.height),St[_]=Qt}var Ot=d.rowGaps[m],jn=0;Ot&&(jn=bt(Ot,f),jn>0&&(jn+=Le,wt<jn&&(wt=jn),jn=0)),d.addJot&&(wt+=ye),St.height=qt,St.depth=wt,Ue+=qt,St.pos=Ue,Ue+=wt+jn,B[m]=St,gt(T[m+1])}var Qn=Ue/2+f.fontMetrics().axisHeight,Bi=d.cols||[],Fr=[],Yn,gs,Vw=[];if(d.addEqnNum)for(m=0;m<x;++m){var tm=B[m],ez=tm.pos-Qn,nm=j.makeSpan(["eqn-num"],[],f);nm.depth=tm.depth,nm.height=tm.height,Vw.push({type:"elem",elem:nm,shift:ez})}for(_=0,gs=0;_<I||gs<Bi.length;++_,++gs){for(var ri=Bi[gs]||{},Uw=!0;ri.type==="separator";){if(Uw||(Yn=j.makeSpan(["arraycolsep"],[]),Yn.style.width=f.fontMetrics().doubleRuleSep+"em",Fr.push(Yn)),ri.separator==="|"||ri.separator===":"){var tz=ri.separator==="|"?"solid":"dashed",bs=j.makeSpan(["vertical-separator"],[],f);bs.style.height=Ue+"em",bs.style.borderRightWidth=G+"em",bs.style.borderRightStyle=tz,bs.style.margin="0 -"+G/2+"em",bs.style.verticalAlign=-(Ue-Qn)+"em",Fr.push(bs)}else throw new o("Invalid separator type: "+ri.separator);gs++,ri=Bi[gs]||{},Uw=!1}if(!(_>=I)){var _s=void 0;(_>0||d.hskipBeforeAndAfter)&&(_s=S.deflt(ri.pregap,ae),_s!==0&&(Yn=j.makeSpan(["arraycolsep"],[]),Yn.style.width=_s+"em",Fr.push(Yn)));var ys=[];for(m=0;m<x;++m){var hu=B[m],fu=hu[_];if(fu){var nz=hu.pos-Qn;fu.depth=hu.depth,fu.height=hu.height,ys.push({type:"elem",elem:fu,shift:nz})}}ys=j.makeVList({positionType:"individualShift",children:ys},f),ys=j.makeSpan(["col-align-"+(ri.align||"c")],[ys]),Fr.push(ys),(_<I-1||d.hskipBeforeAndAfter)&&(_s=S.deflt(ri.postgap,ae),_s!==0&&(Yn=j.makeSpan(["arraycolsep"],[]),Yn.style.width=_s+"em",Fr.push(Yn)))}}if(B=j.makeSpan(["mtable"],Fr),z.length>0){for(var rz=j.makeLineSpan("hline",f,G),iz=j.makeLineSpan("hdashline",f,G),rm=[{type:"elem",elem:B,shift:0}];z.length>0;){var Gw=z.pop(),$w=Gw.pos-Qn;Gw.isDashed?rm.push({type:"elem",elem:iz,shift:$w}):rm.push({type:"elem",elem:rz,shift:$w})}B=j.makeVList({positionType:"individualShift",children:rm},f)}if(d.addEqnNum){var im=j.makeVList({positionType:"individualShift",children:Vw},f);return im=j.makeSpan(["tag"],[im],f),j.makeFragment([B,im])}else return j.makeSpan(["mord"],[B],f)},TF={c:"center ",l:"left ",r:"right "},Pr=function(d,f){for(var m=[],_=new pe.MathNode("mtd",[],["mtr-glue"]),x=new pe.MathNode("mtd",[],["mml-eqn-num"]),T=0;T<d.body.length;T++){for(var I=d.body[T],B=[],z=0;z<I.length;z++)B.push(new pe.MathNode("mtd",[Nt(I[z],f)]));d.addEqnNum&&(B.unshift(_),B.push(_),d.leqno?B.unshift(x):B.push(x)),m.push(new pe.MathNode("mtr",B))}var G=new pe.MathNode("mtable",m),te=d.arraystretch===.5?.1:.16+d.arraystretch-1+(d.addJot?.09:0);G.setAttribute("rowspacing",te.toFixed(4)+"em");var ae="",de="";if(d.cols&&d.cols.length>0){var he=d.cols,ye="",xe=!1,De=0,Le=he.length;he[0].type==="separator"&&(ae+="top ",De=1),he[he.length-1].type==="separator"&&(ae+="bottom ",Le-=1);for(var Ue=De;Ue<Le;Ue++)he[Ue].type==="align"?(de+=TF[he[Ue].align],xe&&(ye+="none "),xe=!0):he[Ue].type==="separator"&&xe&&(ye+=he[Ue].separator==="|"?"solid ":"dashed ",xe=!1);G.setAttribute("columnalign",de.trim()),/[sd]/.test(ye)&&G.setAttribute("columnlines",ye.trim())}if(d.colSeparationType==="align"){for(var gt=d.cols||[],kt="",qt=1;qt<gt.length;qt++)kt+=qt%2?"0em ":"1em ";G.setAttribute("columnspacing",kt.trim())}else d.colSeparationType==="alignat"||d.colSeparationType==="gather"?G.setAttribute("columnspacing","0em"):d.colSeparationType==="small"?G.setAttribute("columnspacing","0.2778em"):d.colSeparationType==="CD"?G.setAttribute("columnspacing","0.5em"):G.setAttribute("columnspacing","1em");var wt="",St=d.hLinesBeforeRow;ae+=St[0].length>0?"left ":"",ae+=St[St.length-1].length>0?"right ":"";for(var Qt=1;Qt<St.length-1;Qt++)wt+=St[Qt].length===0?"none ":St[Qt][0]?"dashed ":"solid ";return/[sd]/.test(wt)&&G.setAttribute("rowlines",wt.trim()),ae!==""&&(G=new pe.MathNode("menclose",[G]),G.setAttribute("notation",ae.trim())),d.arraystretch&&d.arraystretch<1&&(G=new pe.MathNode("mstyle",[G]),G.setAttribute("scriptlevel","1")),G},aw=function(d,f){d.envName.indexOf("ed")===-1&&du(d);var m=[],_=d.envName.indexOf("at")>-1?"alignat":"align",x=Ii(d.parser,{cols:m,addJot:!0,addEqnNum:d.envName==="align"||d.envName==="alignat",emptySingleRow:!0,colSeparationType:_,maxNumCols:d.envName==="split"?2:void 0,leqno:d.parser.settings.leqno},"display"),T,I=0,B={type:"ordgroup",mode:d.mode,body:[]};if(f[0]&&f[0].type==="ordgroup"){for(var z="",G=0;G<f[0].body.length;G++){var te=nt(f[0].body[G],"textord");z+=te.text}T=Number(z),I=T*2}var ae=!I;x.body.forEach(function(xe){for(var De=1;De<xe.length;De+=2){var Le=nt(xe[De],"styling"),Ue=nt(Le.body[0],"ordgroup");Ue.body.unshift(B)}if(ae)I<xe.length&&(I=xe.length);else{var gt=xe.length/2;if(T<gt)throw new o("Too many math in a row: "+("expected "+T+", but got "+gt),xe[0])}});for(var de=0;de<I;++de){var he="r",ye=0;de%2===1?he="l":de>0&&ae&&(ye=1),m[de]={type:"align",align:he,pregap:ye,postgap:0}}return x.colSeparationType=ae?"align":"alignat",x};Lr({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(d,f){var m=au(f[0]),_=m?[f[0]]:nt(f[0],"ordgroup").body,x=_.map(function(I){var B=Np(I),z=B.text;if("lcr".indexOf(z)!==-1)return{type:"align",align:z};if(z==="|")return{type:"separator",separator:"|"};if(z===":")return{type:"separator",separator:":"};throw new o("Unknown column alignment: "+z,I)}),T={cols:x,hskipBeforeAndAfter:!0,maxNumCols:x.length};return Ii(d.parser,T,Vp(d.envName))},htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler:function(d){var f={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[d.envName.replace("*","")],m="c",_={hskipBeforeAndAfter:!1,cols:[{type:"align",align:m}]};if(d.envName.charAt(d.envName.length-1)==="*"){var x=d.parser;if(x.consumeSpaces(),x.fetch().text==="["){if(x.consume(),x.consumeSpaces(),m=x.fetch().text,"lcr".indexOf(m)===-1)throw new o("Expected l or c or r",x.nextToken);x.consume(),x.consumeSpaces(),x.expect("]"),x.consume(),_.cols=[{type:"align",align:m}]}}var T=Ii(d.parser,_,Vp(d.envName)),I=Math.max.apply(Math,[0].concat(T.body.map(function(B){return B.length})));return T.cols=new Array(I).fill({type:"align",align:m}),f?{type:"leftright",mode:d.mode,body:[T],left:f[0],right:f[1],rightColor:void 0}:T},htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(d){var f={arraystretch:.5},m=Ii(d.parser,f,"script");return m.colSeparationType="small",m},htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["subarray"],props:{numArgs:1},handler:function(d,f){var m=au(f[0]),_=m?[f[0]]:nt(f[0],"ordgroup").body,x=_.map(function(I){var B=Np(I),z=B.text;if("lc".indexOf(z)!==-1)return{type:"align",align:z};throw new o("Unknown column alignment: "+z,I)});if(x.length>1)throw new o("{subarray} can contain only one column");var T={cols:x,hskipBeforeAndAfter:!1,arraystretch:.5};if(T=Ii(d.parser,T,"script"),T.body.length>0&&T.body[0].length>1)throw new o("{subarray} can contain only one column");return T},htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(d){var f={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},m=Ii(d.parser,f,Vp(d.envName));return{type:"leftright",mode:d.mode,body:[m],left:d.envName.indexOf("r")>-1?".":"\\{",right:d.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:aw,htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler:function(d){S.contains(["gather","gather*"],d.envName)&&du(d);var f={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",addEqnNum:d.envName==="gather",emptySingleRow:!0,leqno:d.parser.settings.leqno};return Ii(d.parser,f,"display")},htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:aw,htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["equation","equation*"],props:{numArgs:0},handler:function(d){du(d);var f={addEqnNum:d.envName==="equation",emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:d.parser.settings.leqno};return Ii(d.parser,f,"display")},htmlBuilder:Br,mathmlBuilder:Pr}),Lr({type:"array",names:["CD"],props:{numArgs:0},handler:function(d){return du(d),fF(d.parser)},htmlBuilder:Br,mathmlBuilder:Pr}),Ae({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(d,f){throw new o(d.funcName+" valid only within array environment")}});var AF=ow,lw=AF;Ae({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[0];if(x.type!=="ordgroup")throw new o("Invalid environment name",x);for(var T="",I=0;I<x.body.length;++I)T+=nt(x.body[I],"textord").text;if(_==="\\begin"){if(!lw.hasOwnProperty(T))throw new o("No such environment: "+T,x);var B=lw[T],z=m.parseArguments("\\begin{"+T+"}",B),G=z.args,te=z.optArgs,ae={mode:m.mode,envName:T,parser:m},de=B.handler(ae,G,te);m.expect("\\end",!1);var he=m.nextToken,ye=nt(m.parseFunction(),"environment");if(ye.name!==T)throw new o("Mismatch: \\begin{"+T+"} matched by \\end{"+ye.name+"}",he);return de}return{type:"environment",mode:m.mode,name:T,nameGroup:x}}});var MF=j.makeSpan;function cw(M,d){var f=fn(M.body,d,!0);return MF([M.mclass],f,d)}function uw(M,d){var f,m=Kn(M.body,d);return M.mclass==="minner"?pe.newDocumentFragment(m):(M.mclass==="mord"?M.isCharacterBox?(f=m[0],f.type="mi"):f=new pe.MathNode("mi",m):(M.isCharacterBox?(f=m[0],f.type="mo"):f=new pe.MathNode("mo",m),M.mclass==="mbin"?(f.attributes.lspace="0.22em",f.attributes.rspace="0.22em"):M.mclass==="mpunct"?(f.attributes.lspace="0em",f.attributes.rspace="0.17em"):(M.mclass==="mopen"||M.mclass==="mclose")&&(f.attributes.lspace="0em",f.attributes.rspace="0em")),f)}Ae({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[0];return{type:"mclass",mode:m.mode,mclass:"m"+_.substr(5),body:Jt(x),isCharacterBox:S.isCharacterBox(x)}},htmlBuilder:cw,mathmlBuilder:uw});var Up=function(d){var f=d.type==="ordgroup"&&d.body.length?d.body[0]:d;return f.type==="atom"&&(f.family==="bin"||f.family==="rel")?"m"+f.family:"mord"};Ae({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(d,f){var m=d.parser;return{type:"mclass",mode:m.mode,mclass:Up(f[0]),body:Jt(f[1]),isCharacterBox:S.isCharacterBox(f[1])}}}),Ae({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[1],T=f[0],I;_!=="\\stackrel"?I=Up(x):I="mrel";var B={type:"op",mode:x.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:_!=="\\stackrel",body:Jt(x)},z={type:"supsub",mode:T.mode,base:B,sup:_==="\\underset"?null:T,sub:_==="\\underset"?T:null};return{type:"mclass",mode:m.mode,mclass:I,body:[z],isCharacterBox:S.isCharacterBox(z)}},htmlBuilder:cw,mathmlBuilder:uw});var dw=function(d,f){var m=d.font,_=f.withFont(m);return mt(d.body,_)},hw=function(d,f){var m=d.font,_=f.withFont(m);return Nt(d.body,_)},fw={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ae({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:function(d,f){var m=d.parser,_=d.funcName,x=ou(f[0]),T=_;return T in fw&&(T=fw[T]),{type:"font",mode:m.mode,font:T.slice(1),body:x}},htmlBuilder:dw,mathmlBuilder:hw}),Ae({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:function(d,f){var m=d.parser,_=f[0],x=S.isCharacterBox(_);return{type:"mclass",mode:m.mode,mclass:Up(_),body:[{type:"font",mode:m.mode,font:"boldsymbol",body:_}],isCharacterBox:x}}}),Ae({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:function(d,f){var m=d.parser,_=d.funcName,x=d.breakOnTokenText,T=m.mode,I=m.parseExpression(!0,x),B="math"+_.slice(1);return{type:"font",mode:T,font:B,body:{type:"ordgroup",mode:m.mode,body:I}}},htmlBuilder:dw,mathmlBuilder:hw});var pw=function(d,f){var m=f;return d==="display"?m=m.id>=Z.SCRIPT.id?m.text():Z.DISPLAY:d==="text"&&m.size===Z.DISPLAY.size?m=Z.TEXT:d==="script"?m=Z.SCRIPT:d==="scriptscript"&&(m=Z.SCRIPTSCRIPT),m},Gp=function(d,f){var m=pw(d.size,f.style),_=m.fracNum(),x=m.fracDen(),T;T=f.havingStyle(_);var I=mt(d.numer,T,f);if(d.continued){var B=8.5/f.fontMetrics().ptPerEm,z=3.5/f.fontMetrics().ptPerEm;I.height=I.height<B?B:I.height,I.depth=I.depth<z?z:I.depth}T=f.havingStyle(x);var G=mt(d.denom,T,f),te,ae,de;d.hasBarLine?(d.barSize?(ae=bt(d.barSize,f),te=j.makeLineSpan("frac-line",f,ae)):te=j.makeLineSpan("frac-line",f),ae=te.height,de=te.height):(te=null,ae=0,de=f.fontMetrics().defaultRuleThickness);var he,ye,xe;m.size===Z.DISPLAY.size||d.size==="display"?(he=f.fontMetrics().num1,ae>0?ye=3*de:ye=7*de,xe=f.fontMetrics().denom1):(ae>0?(he=f.fontMetrics().num2,ye=de):(he=f.fontMetrics().num3,ye=3*de),xe=f.fontMetrics().denom2);var De;if(te){var Ue=f.fontMetrics().axisHeight;he-I.depth-(Ue+.5*ae)<ye&&(he+=ye-(he-I.depth-(Ue+.5*ae))),Ue-.5*ae-(G.height-xe)<ye&&(xe+=ye-(Ue-.5*ae-(G.height-xe)));var gt=-(Ue-.5*ae);De=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:G,shift:xe},{type:"elem",elem:te,shift:gt},{type:"elem",elem:I,shift:-he}]},f)}else{var Le=he-I.depth-(G.height-xe);Le<ye&&(he+=.5*(ye-Le),xe+=.5*(ye-Le)),De=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:G,shift:xe},{type:"elem",elem:I,shift:-he}]},f)}T=f.havingStyle(m),De.height*=T.sizeMultiplier/f.sizeMultiplier,De.depth*=T.sizeMultiplier/f.sizeMultiplier;var kt;m.size===Z.DISPLAY.size?kt=f.fontMetrics().delim1:m.size===Z.SCRIPTSCRIPT.size?kt=f.havingStyle(Z.SCRIPT).fontMetrics().delim2:kt=f.fontMetrics().delim2;var qt,wt;return d.leftDelim==null?qt=Da(f,["mopen"]):qt=Ir.customSizedDelim(d.leftDelim,kt,!0,f.havingStyle(m),d.mode,["mopen"]),d.continued?wt=j.makeSpan([]):d.rightDelim==null?wt=Da(f,["mclose"]):wt=Ir.customSizedDelim(d.rightDelim,kt,!0,f.havingStyle(m),d.mode,["mclose"]),j.makeSpan(["mord"].concat(T.sizingClasses(f)),[qt,j.makeSpan(["mfrac"],[De]),wt],f)},$p=function(d,f){var m=new pe.MathNode("mfrac",[Nt(d.numer,f),Nt(d.denom,f)]);if(!d.hasBarLine)m.setAttribute("linethickness","0px");else if(d.barSize){var _=bt(d.barSize,f);m.setAttribute("linethickness",_+"em")}var x=pw(d.size,f.style);if(x.size!==f.style.size){m=new pe.MathNode("mstyle",[m]);var T=x.size===Z.DISPLAY.size?"true":"false";m.setAttribute("displaystyle",T),m.setAttribute("scriptlevel","0")}if(d.leftDelim!=null||d.rightDelim!=null){var I=[];if(d.leftDelim!=null){var B=new pe.MathNode("mo",[new pe.TextNode(d.leftDelim.replace("\\",""))]);B.setAttribute("fence","true"),I.push(B)}if(I.push(m),d.rightDelim!=null){var z=new pe.MathNode("mo",[new pe.TextNode(d.rightDelim.replace("\\",""))]);z.setAttribute("fence","true"),I.push(z)}return Ap(I)}return m};Ae({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[0],T=f[1],I,B=null,z=null,G="auto";switch(_){case"\\dfrac":case"\\frac":case"\\tfrac":I=!0;break;case"\\\\atopfrac":I=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":I=!1,B="(",z=")";break;case"\\\\bracefrac":I=!1,B="\\{",z="\\}";break;case"\\\\brackfrac":I=!1,B="[",z="]";break;default:throw new Error("Unrecognized genfrac command")}switch(_){case"\\dfrac":case"\\dbinom":G="display";break;case"\\tfrac":case"\\tbinom":G="text";break}return{type:"genfrac",mode:m.mode,continued:!1,numer:x,denom:T,hasBarLine:I,leftDelim:B,rightDelim:z,size:G,barSize:null}},htmlBuilder:Gp,mathmlBuilder:$p}),Ae({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:function(d,f){var m=d.parser;d.funcName;var _=f[0],x=f[1];return{type:"genfrac",mode:m.mode,continued:!0,numer:_,denom:x,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Ae({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(d){var f=d.parser,m=d.funcName,_=d.token,x;switch(m){case"\\over":x="\\frac";break;case"\\choose":x="\\binom";break;case"\\atop":x="\\\\atopfrac";break;case"\\brace":x="\\\\bracefrac";break;case"\\brack":x="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:f.mode,replaceWith:x,token:_}}});var mw=["display","text","script","scriptscript"],gw=function(d){var f=null;return d.length>0&&(f=d,f=f==="."?null:f),f};Ae({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler:function(d,f){var m=d.parser,_=f[4],x=f[5],T=ou(f[0]),I=T.type==="atom"&&T.family==="open"?gw(T.text):null,B=ou(f[1]),z=B.type==="atom"&&B.family==="close"?gw(B.text):null,G=nt(f[2],"size"),te,ae=null;G.isBlank?te=!0:(ae=G.value,te=ae.number>0);var de="auto",he=f[3];if(he.type==="ordgroup"){if(he.body.length>0){var ye=nt(he.body[0],"textord");de=mw[Number(ye.text)]}}else he=nt(he,"textord"),de=mw[Number(he.text)];return{type:"genfrac",mode:m.mode,numer:_,denom:x,continued:!1,hasBarLine:te,barSize:ae,leftDelim:I,rightDelim:z,size:de}},htmlBuilder:Gp,mathmlBuilder:$p}),Ae({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(d,f){var m=d.parser;d.funcName;var _=d.token;return{type:"infix",mode:m.mode,replaceWith:"\\\\abovefrac",size:nt(f[0],"size").value,token:_}}}),Ae({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(d,f){var m=d.parser;d.funcName;var _=f[0],x=v(nt(f[1],"infix").size),T=f[2],I=x.number>0;return{type:"genfrac",mode:m.mode,numer:_,denom:T,continued:!1,hasBarLine:I,barSize:x,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Gp,mathmlBuilder:$p});var bw=function(d,f){var m=f.style,_,x;d.type==="supsub"?(_=d.sup?mt(d.sup,f.havingStyle(m.sup()),f):mt(d.sub,f.havingStyle(m.sub()),f),x=nt(d.base,"horizBrace")):x=nt(d,"horizBrace");var T=mt(x.base,f.havingBaseStyle(Z.DISPLAY)),I=ni.svgSpan(x,f),B;if(x.isOver?(B=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:T},{type:"kern",size:.1},{type:"elem",elem:I}]},f),B.children[0].children[0].children[1].classes.push("svg-align")):(B=j.makeVList({positionType:"bottom",positionData:T.depth+.1+I.height,children:[{type:"elem",elem:I},{type:"kern",size:.1},{type:"elem",elem:T}]},f),B.children[0].children[0].children[0].classes.push("svg-align")),_){var z=j.makeSpan(["mord",x.isOver?"mover":"munder"],[B],f);x.isOver?B=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:z},{type:"kern",size:.2},{type:"elem",elem:_}]},f):B=j.makeVList({positionType:"bottom",positionData:z.depth+.2+_.height+_.depth,children:[{type:"elem",elem:_},{type:"kern",size:.2},{type:"elem",elem:z}]},f)}return j.makeSpan(["mord",x.isOver?"mover":"munder"],[B],f)},NF=function(d,f){var m=ni.mathMLnode(d.label);return new pe.MathNode(d.isOver?"mover":"munder",[Nt(d.base,f),m])};Ae({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(d,f){var m=d.parser,_=d.funcName;return{type:"horizBrace",mode:m.mode,label:_,isOver:/^\\over/.test(_),base:f[0]}},htmlBuilder:bw,mathmlBuilder:NF}),Ae({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(d,f){var m=d.parser,_=f[1],x=nt(f[0],"url").url;return m.settings.isTrusted({command:"\\href",url:x})?{type:"href",mode:m.mode,href:x,body:Jt(_)}:m.formatUnsupportedCmd("\\href")},htmlBuilder:function(d,f){var m=fn(d.body,f,!1);return j.makeAnchor(d.href,[],m,f)},mathmlBuilder:function(d,f){var m=Oi(d.body,f);return m instanceof lr||(m=new lr("mrow",[m])),m.setAttribute("href",d.href),m}}),Ae({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(d,f){var m=d.parser,_=nt(f[0],"url").url;if(!m.settings.isTrusted({command:"\\url",url:_}))return m.formatUnsupportedCmd("\\url");for(var x=[],T=0;T<_.length;T++){var I=_[T];I==="~"&&(I="\\textasciitilde"),x.push({type:"textord",mode:"text",text:I})}var B={type:"text",mode:m.mode,font:"\\texttt",body:x};return{type:"href",mode:m.mode,href:_,body:Jt(B)}}}),Ae({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler:function(d,f){var m=d.parser;return{type:"hbox",mode:m.mode,body:Jt(f[0])}},htmlBuilder:function(d,f){var m=fn(d.body,f,!1);return j.makeFragment(m)},mathmlBuilder:function(d,f){return new pe.MathNode("mrow",Kn(d.body,f))}}),Ae({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:function(d,f){var m=d.parser,_=d.funcName;d.token;var x=nt(f[0],"raw").string,T=f[1];m.settings.strict&&m.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var I,B={};switch(_){case"\\htmlClass":B.class=x,I={command:"\\htmlClass",class:x};break;case"\\htmlId":B.id=x,I={command:"\\htmlId",id:x};break;case"\\htmlStyle":B.style=x,I={command:"\\htmlStyle",style:x};break;case"\\htmlData":{for(var z=x.split(","),G=0;G<z.length;G++){var te=z[G].split("=");if(te.length!==2)throw new o("Error parsing key-value for \\htmlData");B["data-"+te[0].trim()]=te[1].trim()}I={command:"\\htmlData",attributes:B};break}default:throw new Error("Unrecognized html command")}return m.settings.isTrusted(I)?{type:"html",mode:m.mode,attributes:B,body:Jt(T)}:m.formatUnsupportedCmd(_)},htmlBuilder:function(d,f){var m=fn(d.body,f,!1),_=["enclosing"];d.attributes.class&&_.push.apply(_,d.attributes.class.trim().split(/\s+/));var x=j.makeSpan(_,m,f);for(var T in d.attributes)T!=="class"&&d.attributes.hasOwnProperty(T)&&x.setAttribute(T,d.attributes[T]);return x},mathmlBuilder:function(d,f){return Oi(d.body,f)}}),Ae({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(d,f){var m=d.parser;return{type:"htmlmathml",mode:m.mode,html:Jt(f[0]),mathml:Jt(f[1])}},htmlBuilder:function(d,f){var m=fn(d.html,f,!1);return j.makeFragment(m)},mathmlBuilder:function(d,f){return Oi(d.mathml,f)}});var Wp=function(d){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(d))return{number:+d,unit:"bp"};var f=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(d);if(!f)throw new o("Invalid size: '"+d+"' in \\includegraphics");var m={number:+(f[1]+f[2]),unit:f[3]};if(!xn(m))throw new o("Invalid unit: '"+m.unit+"' in \\includegraphics.");return m};Ae({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(d,f,m){var _=d.parser,x={number:0,unit:"em"},T={number:.9,unit:"em"},I={number:0,unit:"em"},B="";if(m[0])for(var z=nt(m[0],"raw").string,G=z.split(","),te=0;te<G.length;te++){var ae=G[te].split("=");if(ae.length===2){var de=ae[1].trim();switch(ae[0].trim()){case"alt":B=de;break;case"width":x=Wp(de);break;case"height":T=Wp(de);break;case"totalheight":I=Wp(de);break;default:throw new o("Invalid key: '"+ae[0]+"' in \\includegraphics.")}}}var he=nt(f[0],"url").url;return B===""&&(B=he,B=B.replace(/^.*[\\/]/,""),B=B.substring(0,B.lastIndexOf("."))),_.settings.isTrusted({command:"\\includegraphics",url:he})?{type:"includegraphics",mode:_.mode,alt:B,width:x,height:T,totalheight:I,src:he}:_.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(d,f){var m=bt(d.height,f),_=0;d.totalheight.number>0&&(_=bt(d.totalheight,f)-m,_=Number(_.toFixed(2)));var x=0;d.width.number>0&&(x=bt(d.width,f));var T={height:m+_+"em"};x>0&&(T.width=x+"em"),_>0&&(T.verticalAlign=-_+"em");var I=new hn(d.src,d.alt,T);return I.height=m,I.depth=_,I},mathmlBuilder:function(d,f){var m=new pe.MathNode("mglyph",[]);m.setAttribute("alt",d.alt);var _=bt(d.height,f),x=0;if(d.totalheight.number>0&&(x=bt(d.totalheight,f)-_,x=x.toFixed(2),m.setAttribute("valign","-"+x+"em")),m.setAttribute("height",_+x+"em"),d.width.number>0){var T=bt(d.width,f);m.setAttribute("width",T+"em")}return m.setAttribute("src",d.src),m}}),Ae({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler:function(d,f){var m=d.parser,_=d.funcName,x=nt(f[0],"size");if(m.settings.strict){var T=_[1]==="m",I=x.value.unit==="mu";T?(I||m.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+_+" supports only mu units, "+("not "+x.value.unit+" units")),m.mode!=="math"&&m.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+_+" works only in math mode")):I&&m.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+_+" doesn't support mu units")}return{type:"kern",mode:m.mode,dimension:x.value}},htmlBuilder:function(d,f){return j.makeGlue(d.dimension,f)},mathmlBuilder:function(d,f){var m=bt(d.dimension,f);return new pe.SpaceNode(m)}}),Ae({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[0];return{type:"lap",mode:m.mode,alignment:_.slice(5),body:x}},htmlBuilder:function(d,f){var m;d.alignment==="clap"?(m=j.makeSpan([],[mt(d.body,f)]),m=j.makeSpan(["inner"],[m],f)):m=j.makeSpan(["inner"],[mt(d.body,f)]);var _=j.makeSpan(["fix"],[]),x=j.makeSpan([d.alignment],[m,_],f),T=j.makeSpan(["strut"]);return T.style.height=x.height+x.depth+"em",T.style.verticalAlign=-x.depth+"em",x.children.unshift(T),x=j.makeSpan(["thinbox"],[x],f),j.makeSpan(["mord","vbox"],[x],f)},mathmlBuilder:function(d,f){var m=new pe.MathNode("mpadded",[Nt(d.body,f)]);if(d.alignment!=="rlap"){var _=d.alignment==="llap"?"-1":"-0.5";m.setAttribute("lspace",_+"width")}return m.setAttribute("width","0px"),m}}),Ae({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(d,f){var m=d.funcName,_=d.parser,x=_.mode;_.switchMode("math");var T=m==="\\("?"\\)":"$",I=_.parseExpression(!1,T);return _.expect(T),_.switchMode(x),{type:"styling",mode:_.mode,style:"text",body:I}}}),Ae({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(d,f){throw new o("Mismatched "+d.funcName)}});var _w=function(d,f){switch(f.style.size){case Z.DISPLAY.size:return d.display;case Z.TEXT.size:return d.text;case Z.SCRIPT.size:return d.script;case Z.SCRIPTSCRIPT.size:return d.scriptscript;default:return d.text}};Ae({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:function(d,f){var m=d.parser;return{type:"mathchoice",mode:m.mode,display:Jt(f[0]),text:Jt(f[1]),script:Jt(f[2]),scriptscript:Jt(f[3])}},htmlBuilder:function(d,f){var m=_w(d,f),_=fn(m,f,!1);return j.makeFragment(_)},mathmlBuilder:function(d,f){var m=_w(d,f);return Oi(m,f)}});var yw=function(d,f,m,_,x,T,I){d=j.makeSpan([],[d]);var B=m&&S.isCharacterBox(m),z,G;if(f){var te=mt(f,_.havingStyle(x.sup()),_);G={elem:te,kern:Math.max(_.fontMetrics().bigOpSpacing1,_.fontMetrics().bigOpSpacing3-te.depth)}}if(m){var ae=mt(m,_.havingStyle(x.sub()),_);z={elem:ae,kern:Math.max(_.fontMetrics().bigOpSpacing2,_.fontMetrics().bigOpSpacing4-ae.height)}}var de;if(G&&z){var he=_.fontMetrics().bigOpSpacing5+z.elem.height+z.elem.depth+z.kern+d.depth+I;de=j.makeVList({positionType:"bottom",positionData:he,children:[{type:"kern",size:_.fontMetrics().bigOpSpacing5},{type:"elem",elem:z.elem,marginLeft:-T+"em"},{type:"kern",size:z.kern},{type:"elem",elem:d},{type:"kern",size:G.kern},{type:"elem",elem:G.elem,marginLeft:T+"em"},{type:"kern",size:_.fontMetrics().bigOpSpacing5}]},_)}else if(z){var ye=d.height-I;de=j.makeVList({positionType:"top",positionData:ye,children:[{type:"kern",size:_.fontMetrics().bigOpSpacing5},{type:"elem",elem:z.elem,marginLeft:-T+"em"},{type:"kern",size:z.kern},{type:"elem",elem:d}]},_)}else if(G){var xe=d.depth+I;de=j.makeVList({positionType:"bottom",positionData:xe,children:[{type:"elem",elem:d},{type:"kern",size:G.kern},{type:"elem",elem:G.elem,marginLeft:T+"em"},{type:"kern",size:_.fontMetrics().bigOpSpacing5}]},_)}else return d;var De=[de];if(z&&T!==0&&!B){var Le=j.makeSpan(["mspace"],[],_);Le.style.marginRight=T+"em",De.unshift(Le)}return j.makeSpan(["mop","op-limits"],De,_)},vw=["\\smallint"],ms=function(d,f){var m,_,x=!1,T;d.type==="supsub"?(m=d.sup,_=d.sub,T=nt(d.base,"op"),x=!0):T=nt(d,"op");var I=f.style,B=!1;I.size===Z.DISPLAY.size&&T.symbol&&!S.contains(vw,T.name)&&(B=!0);var z;if(T.symbol){var G=B?"Size2-Regular":"Size1-Regular",te="";if((T.name==="\\oiint"||T.name==="\\oiiint")&&(te=T.name.substr(1),T.name=te==="oiint"?"\\iint":"\\iiint"),z=j.makeSymbol(T.name,G,"math",f,["mop","op-symbol",B?"large-op":"small-op"]),te.length>0){var ae=z.italic,de=j.staticSvg(te+"Size"+(B?"2":"1"),f);z=j.makeVList({positionType:"individualShift",children:[{type:"elem",elem:z,shift:0},{type:"elem",elem:de,shift:B?.08:0}]},f),T.name="\\"+te,z.classes.unshift("mop"),z.italic=ae}}else if(T.body){var he=fn(T.body,f,!0);he.length===1&&he[0]instanceof Lt?(z=he[0],z.classes[0]="mop"):z=j.makeSpan(["mop"],he,f)}else{for(var ye=[],xe=1;xe<T.name.length;xe++)ye.push(j.mathsym(T.name[xe],T.mode,f));z=j.makeSpan(["mop"],ye,f)}var De=0,Le=0;return(z instanceof Lt||T.name==="\\oiint"||T.name==="\\oiiint")&&!T.suppressBaseShift&&(De=(z.height-z.depth)/2-f.fontMetrics().axisHeight,Le=z.italic),x?yw(z,m,_,f,I,Le,De):(De&&(z.style.position="relative",z.style.top=De+"em"),z)},La=function(d,f){var m;if(d.symbol)m=new lr("mo",[cr(d.name,d.mode)]),S.contains(vw,d.name)&&m.setAttribute("largeop","false");else if(d.body)m=new lr("mo",Kn(d.body,f));else{m=new lr("mi",[new Ra(d.name.slice(1))]);var _=new lr("mo",[cr("⁡","text")]);d.parentIsSupSub?m=new lr("mrow",[m,_]):m=F3([m,_])}return m},DF={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};Ae({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:function(d,f){var m=d.parser,_=d.funcName,x=_;return x.length===1&&(x=DF[x]),{type:"op",mode:m.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:x}},htmlBuilder:ms,mathmlBuilder:La}),Ae({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:function(d,f){var m=d.parser,_=f[0];return{type:"op",mode:m.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Jt(_)}},htmlBuilder:ms,mathmlBuilder:La});var RF={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};Ae({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(d){var f=d.parser,m=d.funcName;return{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:m}},htmlBuilder:ms,mathmlBuilder:La}),Ae({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(d){var f=d.parser,m=d.funcName;return{type:"op",mode:f.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:m}},htmlBuilder:ms,mathmlBuilder:La}),Ae({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler:function(d){var f=d.parser,m=d.funcName,_=m;return _.length===1&&(_=RF[_]),{type:"op",mode:f.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:_}},htmlBuilder:ms,mathmlBuilder:La});var ww={};function P(M,d){ww[M]=d}var xw=function(d,f){var m,_,x=!1,T;d.type==="supsub"?(m=d.sup,_=d.sub,T=nt(d.base,"operatorname"),x=!0):T=nt(d,"operatorname");var I;if(T.body.length>0){for(var B=T.body.map(function(ae){var de=ae.text;return typeof de=="string"?{type:"textord",mode:ae.mode,text:de}:ae}),z=fn(B,f.withFont("mathrm"),!0),G=0;G<z.length;G++){var te=z[G];te instanceof Lt&&(te.text=te.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}I=j.makeSpan(["mop"],z,f)}else I=j.makeSpan(["mop"],[],f);return x?yw(I,m,_,f,f.style,0,0):I},OF=function(d,f){for(var m=Kn(d.body,f.withFont("mathrm")),_=!0,x=0;x<m.length;x++){var T=m[x];if(!(T instanceof pe.SpaceNode))if(T instanceof pe.MathNode)switch(T.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var I=T.children[0];T.children.length===1&&I instanceof pe.TextNode?I.text=I.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):_=!1;break}default:_=!1}else _=!1}if(_){var B=m.map(function(te){return te.toText()}).join("");m=[new pe.TextNode(B)]}var z=new pe.MathNode("mi",m);z.setAttribute("mathvariant","normal");var G=new pe.MathNode("mo",[cr("⁡","text")]);return d.parentIsSupSub?new pe.MathNode("mrow",[z,G]):pe.newDocumentFragment([z,G])};Ae({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[0];return{type:"operatorname",mode:m.mode,body:Jt(x),alwaysHandleSupSub:_==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:xw,mathmlBuilder:OF}),P("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),ko({type:"ordgroup",htmlBuilder:function(d,f){return d.semisimple?j.makeFragment(fn(d.body,f,!1)):j.makeSpan(["mord"],fn(d.body,f,!0),f)},mathmlBuilder:function(d,f){return Oi(d.body,f,!0)}}),Ae({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(d,f){var m=d.parser,_=f[0];return{type:"overline",mode:m.mode,body:_}},htmlBuilder:function(d,f){var m=mt(d.body,f.havingCrampedStyle()),_=j.makeLineSpan("overline-line",f),x=f.fontMetrics().defaultRuleThickness,T=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m},{type:"kern",size:3*x},{type:"elem",elem:_},{type:"kern",size:x}]},f);return j.makeSpan(["mord","overline"],[T],f)},mathmlBuilder:function(d,f){var m=new pe.MathNode("mo",[new pe.TextNode("‾")]);m.setAttribute("stretchy","true");var _=new pe.MathNode("mover",[Nt(d.body,f),m]);return _.setAttribute("accent","true"),_}}),Ae({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(d,f){var m=d.parser,_=f[0];return{type:"phantom",mode:m.mode,body:Jt(_)}},htmlBuilder:function(d,f){var m=fn(d.body,f.withPhantom(),!1);return j.makeFragment(m)},mathmlBuilder:function(d,f){var m=Kn(d.body,f);return new pe.MathNode("mphantom",m)}}),Ae({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(d,f){var m=d.parser,_=f[0];return{type:"hphantom",mode:m.mode,body:_}},htmlBuilder:function(d,f){var m=j.makeSpan([],[mt(d.body,f.withPhantom())]);if(m.height=0,m.depth=0,m.children)for(var _=0;_<m.children.length;_++)m.children[_].height=0,m.children[_].depth=0;return m=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m}]},f),j.makeSpan(["mord"],[m],f)},mathmlBuilder:function(d,f){var m=Kn(Jt(d.body),f),_=new pe.MathNode("mphantom",m),x=new pe.MathNode("mpadded",[_]);return x.setAttribute("height","0px"),x.setAttribute("depth","0px"),x}}),Ae({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(d,f){var m=d.parser,_=f[0];return{type:"vphantom",mode:m.mode,body:_}},htmlBuilder:function(d,f){var m=j.makeSpan(["inner"],[mt(d.body,f.withPhantom())]),_=j.makeSpan(["fix"],[]);return j.makeSpan(["mord","rlap"],[m,_],f)},mathmlBuilder:function(d,f){var m=Kn(Jt(d.body),f),_=new pe.MathNode("mphantom",m),x=new pe.MathNode("mpadded",[_]);return x.setAttribute("width","0px"),x}}),Ae({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(d,f){var m=d.parser,_=nt(f[0],"size").value,x=f[1];return{type:"raisebox",mode:m.mode,dy:_,body:x}},htmlBuilder:function(d,f){var m=mt(d.body,f),_=bt(d.dy,f);return j.makeVList({positionType:"shift",positionData:-_,children:[{type:"elem",elem:m}]},f)},mathmlBuilder:function(d,f){var m=new pe.MathNode("mpadded",[Nt(d.body,f)]),_=d.dy.number+d.dy.unit;return m.setAttribute("voffset",_),m}}),Ae({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(d,f,m){var _=d.parser,x=m[0],T=nt(f[0],"size"),I=nt(f[1],"size");return{type:"rule",mode:_.mode,shift:x&&nt(x,"size").value,width:T.value,height:I.value}},htmlBuilder:function(d,f){var m=j.makeSpan(["mord","rule"],[],f),_=bt(d.width,f),x=bt(d.height,f),T=d.shift?bt(d.shift,f):0;return m.style.borderRightWidth=_+"em",m.style.borderTopWidth=x+"em",m.style.bottom=T+"em",m.width=_,m.height=x+T,m.depth=-T,m.maxFontSize=x*1.125*f.sizeMultiplier,m},mathmlBuilder:function(d,f){var m=bt(d.width,f),_=bt(d.height,f),x=d.shift?bt(d.shift,f):0,T=f.color&&f.getColor()||"black",I=new pe.MathNode("mspace");I.setAttribute("mathbackground",T),I.setAttribute("width",m+"em"),I.setAttribute("height",_+"em");var B=new pe.MathNode("mpadded",[I]);return x>=0?B.setAttribute("height","+"+x+"em"):(B.setAttribute("height",x+"em"),B.setAttribute("depth","+"+-x+"em")),B.setAttribute("voffset",x+"em"),B}});function kw(M,d,f){for(var m=fn(M,d,!1),_=d.sizeMultiplier/f.sizeMultiplier,x=0;x<m.length;x++){var T=m[x].classes.indexOf("sizing");T<0?Array.prototype.push.apply(m[x].classes,d.sizingClasses(f)):m[x].classes[T+1]==="reset-size"+d.size&&(m[x].classes[T+1]="reset-size"+f.size),m[x].height*=_,m[x].depth*=_}return j.makeFragment(m)}var Sw=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],IF=function(d,f){var m=f.havingSize(d.size);return kw(d.body,m,f)};Ae({type:"sizing",names:Sw,props:{numArgs:0,allowedInText:!0},handler:function(d,f){var m=d.breakOnTokenText,_=d.funcName,x=d.parser,T=x.parseExpression(!1,m);return{type:"sizing",mode:x.mode,size:Sw.indexOf(_)+1,body:T}},htmlBuilder:IF,mathmlBuilder:function(d,f){var m=f.havingSize(d.size),_=Kn(d.body,m),x=new pe.MathNode("mstyle",_);return x.setAttribute("mathsize",m.sizeMultiplier+"em"),x}}),Ae({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(d,f,m){var _=d.parser,x=!1,T=!1,I=m[0]&&nt(m[0],"ordgroup");if(I)for(var B="",z=0;z<I.body.length;++z){var G=I.body[z];if(B=G.text,B==="t")x=!0;else if(B==="b")T=!0;else{x=!1,T=!1;break}}else x=!0,T=!0;var te=f[0];return{type:"smash",mode:_.mode,body:te,smashHeight:x,smashDepth:T}},htmlBuilder:function(d,f){var m=j.makeSpan([],[mt(d.body,f)]);if(!d.smashHeight&&!d.smashDepth)return m;if(d.smashHeight&&(m.height=0,m.children))for(var _=0;_<m.children.length;_++)m.children[_].height=0;if(d.smashDepth&&(m.depth=0,m.children))for(var x=0;x<m.children.length;x++)m.children[x].depth=0;var T=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m}]},f);return j.makeSpan(["mord"],[T],f)},mathmlBuilder:function(d,f){var m=new pe.MathNode("mpadded",[Nt(d.body,f)]);return d.smashHeight&&m.setAttribute("height","0px"),d.smashDepth&&m.setAttribute("depth","0px"),m}}),Ae({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(d,f,m){var _=d.parser,x=m[0],T=f[0];return{type:"sqrt",mode:_.mode,body:T,index:x}},htmlBuilder:function(d,f){var m=mt(d.body,f.havingCrampedStyle());m.height===0&&(m.height=f.fontMetrics().xHeight),m=j.wrapFragment(m,f);var _=f.fontMetrics(),x=_.defaultRuleThickness,T=x;f.style.id<Z.TEXT.id&&(T=f.fontMetrics().xHeight);var I=x+T/4,B=m.height+m.depth+I+x,z=Ir.sqrtImage(B,f),G=z.span,te=z.ruleWidth,ae=z.advanceWidth,de=G.height-te;de>m.height+m.depth+I&&(I=(I+de-m.height-m.depth)/2);var he=G.height-m.height-I-te;m.style.paddingLeft=ae+"em";var ye=j.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:m,wrapperClasses:["svg-align"]},{type:"kern",size:-(m.height+he)},{type:"elem",elem:G},{type:"kern",size:te}]},f);if(d.index){var xe=f.havingStyle(Z.SCRIPTSCRIPT),De=mt(d.index,xe,f),Le=.6*(ye.height-ye.depth),Ue=j.makeVList({positionType:"shift",positionData:-Le,children:[{type:"elem",elem:De}]},f),gt=j.makeSpan(["root"],[Ue]);return j.makeSpan(["mord","sqrt"],[gt,ye],f)}else return j.makeSpan(["mord","sqrt"],[ye],f)},mathmlBuilder:function(d,f){var m=d.body,_=d.index;return _?new pe.MathNode("mroot",[Nt(m,f),Nt(_,f)]):new pe.MathNode("msqrt",[Nt(m,f)])}});var Ew={display:Z.DISPLAY,text:Z.TEXT,script:Z.SCRIPT,scriptscript:Z.SCRIPTSCRIPT};Ae({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler:function(d,f){var m=d.breakOnTokenText,_=d.funcName,x=d.parser,T=x.parseExpression(!0,m),I=_.slice(1,_.length-5);return{type:"styling",mode:x.mode,style:I,body:T}},htmlBuilder:function(d,f){var m=Ew[d.style],_=f.havingStyle(m).withFont("");return kw(d.body,_,f)},mathmlBuilder:function(d,f){var m=Ew[d.style],_=f.havingStyle(m),x=Kn(d.body,_),T=new pe.MathNode("mstyle",x),I={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},B=I[d.style];return T.setAttribute("scriptlevel",B[0]),T.setAttribute("displaystyle",B[1]),T}});var LF=function(d,f){var m=d.base;if(m)if(m.type==="op"){var _=m.limits&&(f.style.size===Z.DISPLAY.size||m.alwaysHandleSupSub);return _?ms:null}else if(m.type==="operatorname"){var x=m.alwaysHandleSupSub&&(f.style.size===Z.DISPLAY.size||m.limits);return x?xw:null}else{if(m.type==="accent")return S.isCharacterBox(m.base)?Dp:null;if(m.type==="horizBrace"){var T=!d.sub;return T===m.isOver?bw:null}else return null}else return null};ko({type:"supsub",htmlBuilder:function(d,f){var m=LF(d,f);if(m)return m(d,f);var _=d.base,x=d.sup,T=d.sub,I=mt(_,f),B,z,G=f.fontMetrics(),te=0,ae=0,de=_&&S.isCharacterBox(_);if(x){var he=f.havingStyle(f.style.sup());B=mt(x,he,f),de||(te=I.height-he.fontMetrics().supDrop*he.sizeMultiplier/f.sizeMultiplier)}if(T){var ye=f.havingStyle(f.style.sub());z=mt(T,ye,f),de||(ae=I.depth+ye.fontMetrics().subDrop*ye.sizeMultiplier/f.sizeMultiplier)}var xe;f.style===Z.DISPLAY?xe=G.sup1:f.style.cramped?xe=G.sup3:xe=G.sup2;var De=f.sizeMultiplier,Le=.5/G.ptPerEm/De+"em",Ue=null;if(z){var gt=d.base&&d.base.type==="op"&&d.base.name&&(d.base.name==="\\oiint"||d.base.name==="\\oiiint");(I instanceof Lt||gt)&&(Ue=-I.italic+"em")}var kt;if(B&&z){te=Math.max(te,xe,B.depth+.25*G.xHeight),ae=Math.max(ae,G.sub2);var qt=G.defaultRuleThickness,wt=4*qt;if(te-B.depth-(z.height-ae)<wt){ae=wt-(te-B.depth)+z.height;var St=.8*G.xHeight-(te-B.depth);St>0&&(te+=St,ae-=St)}var Qt=[{type:"elem",elem:z,shift:ae,marginRight:Le,marginLeft:Ue},{type:"elem",elem:B,shift:-te,marginRight:Le}];kt=j.makeVList({positionType:"individualShift",children:Qt},f)}else if(z){ae=Math.max(ae,G.sub1,z.height-.8*G.xHeight);var Ot=[{type:"elem",elem:z,marginLeft:Ue,marginRight:Le}];kt=j.makeVList({positionType:"shift",positionData:ae,children:Ot},f)}else if(B)te=Math.max(te,xe,B.depth+.25*G.xHeight),kt=j.makeVList({positionType:"shift",positionData:-te,children:[{type:"elem",elem:B,marginRight:Le}]},f);else throw new Error("supsub must have either sup or sub.");var jn=Cp(I,"right")||"mord";return j.makeSpan([jn],[I,j.makeSpan(["msupsub"],[kt])],f)},mathmlBuilder:function(d,f){var m=!1,_,x;d.base&&d.base.type==="horizBrace"&&(x=!!d.sup,x===d.base.isOver&&(m=!0,_=d.base.isOver)),d.base&&(d.base.type==="op"||d.base.type==="operatorname")&&(d.base.parentIsSupSub=!0);var T=[Nt(d.base,f)];d.sub&&T.push(Nt(d.sub,f)),d.sup&&T.push(Nt(d.sup,f));var I;if(m)I=_?"mover":"munder";else if(d.sub)if(d.sup){var G=d.base;G&&G.type==="op"&&G.limits&&f.style===Z.DISPLAY||G&&G.type==="operatorname"&&G.alwaysHandleSupSub&&(f.style===Z.DISPLAY||G.limits)?I="munderover":I="msubsup"}else{var z=d.base;z&&z.type==="op"&&z.limits&&(f.style===Z.DISPLAY||z.alwaysHandleSupSub)||z&&z.type==="operatorname"&&z.alwaysHandleSupSub&&(z.limits||f.style===Z.DISPLAY)?I="munder":I="msub"}else{var B=d.base;B&&B.type==="op"&&B.limits&&(f.style===Z.DISPLAY||B.alwaysHandleSupSub)||B&&B.type==="operatorname"&&B.alwaysHandleSupSub&&(B.limits||f.style===Z.DISPLAY)?I="mover":I="msup"}return new pe.MathNode(I,T)}}),ko({type:"atom",htmlBuilder:function(d,f){return j.mathsym(d.text,d.mode,f,["m"+d.family])},mathmlBuilder:function(d,f){var m=new pe.MathNode("mo",[cr(d.text,d.mode)]);if(d.family==="bin"){var _=Mp(d,f);_==="bold-italic"&&m.setAttribute("mathvariant",_)}else d.family==="punct"?m.setAttribute("separator","true"):(d.family==="open"||d.family==="close")&&m.setAttribute("stretchy","false");return m}});var Cw={mi:"italic",mn:"normal",mtext:"normal"};ko({type:"mathord",htmlBuilder:function(d,f){return j.makeOrd(d,f,"mathord")},mathmlBuilder:function(d,f){var m=new pe.MathNode("mi",[cr(d.text,d.mode,f)]),_=Mp(d,f)||"italic";return _!==Cw[m.type]&&m.setAttribute("mathvariant",_),m}}),ko({type:"textord",htmlBuilder:function(d,f){return j.makeOrd(d,f,"textord")},mathmlBuilder:function(d,f){var m=cr(d.text,d.mode,f),_=Mp(d,f)||"normal",x;return d.mode==="text"?x=new pe.MathNode("mtext",[m]):/[0-9]/.test(d.text)?x=new pe.MathNode("mn",[m]):d.text==="\\prime"?x=new pe.MathNode("mo",[m]):x=new pe.MathNode("mi",[m]),_!==Cw[x.type]&&x.setAttribute("mathvariant",_),x}});var Kp={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},jp={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ko({type:"spacing",htmlBuilder:function(d,f){if(jp.hasOwnProperty(d.text)){var m=jp[d.text].className||"";if(d.mode==="text"){var _=j.makeOrd(d,f,"textord");return _.classes.push(m),_}else return j.makeSpan(["mspace",m],[j.mathsym(d.text,d.mode,f)],f)}else{if(Kp.hasOwnProperty(d.text))return j.makeSpan(["mspace",Kp[d.text]],[],f);throw new o('Unknown type of space "'+d.text+'"')}},mathmlBuilder:function(d,f){var m;if(jp.hasOwnProperty(d.text))m=new pe.MathNode("mtext",[new pe.TextNode(" ")]);else{if(Kp.hasOwnProperty(d.text))return new pe.MathNode("mspace");throw new o('Unknown type of space "'+d.text+'"')}return m}});var Tw=function(){var d=new pe.MathNode("mtd",[]);return d.setAttribute("width","50%"),d};ko({type:"tag",mathmlBuilder:function(d,f){var m=new pe.MathNode("mtable",[new pe.MathNode("mtr",[Tw(),new pe.MathNode("mtd",[Oi(d.body,f)]),Tw(),new pe.MathNode("mtd",[Oi(d.tag,f)])])]);return m.setAttribute("width","100%"),m}});var Aw={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Mw={"\\textbf":"textbf","\\textmd":"textmd"},BF={"\\textit":"textit","\\textup":"textup"},Nw=function(d,f){var m=d.font;return m?Aw[m]?f.withTextFontFamily(Aw[m]):Mw[m]?f.withTextFontWeight(Mw[m]):f.withTextFontShape(BF[m]):f};Ae({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler:function(d,f){var m=d.parser,_=d.funcName,x=f[0];return{type:"text",mode:m.mode,body:Jt(x),font:_}},htmlBuilder:function(d,f){var m=Nw(d,f),_=fn(d.body,m,!0);return j.makeSpan(["mord","text"],_,m)},mathmlBuilder:function(d,f){var m=Nw(d,f);return Oi(d.body,m)}}),Ae({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(d,f){var m=d.parser;return{type:"underline",mode:m.mode,body:f[0]}},htmlBuilder:function(d,f){var m=mt(d.body,f),_=j.makeLineSpan("underline-line",f),x=f.fontMetrics().defaultRuleThickness,T=j.makeVList({positionType:"top",positionData:m.height,children:[{type:"kern",size:x},{type:"elem",elem:_},{type:"kern",size:3*x},{type:"elem",elem:m}]},f);return j.makeSpan(["mord","underline"],[T],f)},mathmlBuilder:function(d,f){var m=new pe.MathNode("mo",[new pe.TextNode("‾")]);m.setAttribute("stretchy","true");var _=new pe.MathNode("munder",[Nt(d.body,f),m]);return _.setAttribute("accentunder","true"),_}}),Ae({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler:function(d,f){var m=d.parser;return{type:"vcenter",mode:m.mode,body:f[0]}},htmlBuilder:function(d,f){var m=mt(d.body,f),_=f.fontMetrics().axisHeight,x=.5*(m.height-_-(m.depth+_));return j.makeVList({positionType:"shift",positionData:x,children:[{type:"elem",elem:m}]},f)},mathmlBuilder:function(d,f){return new pe.MathNode("mpadded",[Nt(d.body,f)],["vcenter"])}}),Ae({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(d,f,m){throw new o("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(d,f){for(var m=Dw(d),_=[],x=f.havingStyle(f.style.text()),T=0;T<m.length;T++){var I=m[T];I==="~"&&(I="\\textasciitilde"),_.push(j.makeSymbol(I,"Typewriter-Regular",d.mode,x,["mord","texttt"]))}return j.makeSpan(["mord","text"].concat(x.sizingClasses(f)),j.tryCombineChars(_),x)},mathmlBuilder:function(d,f){var m=new pe.TextNode(Dw(d)),_=new pe.MathNode("mtext",[m]);return _.setAttribute("mathvariant","monospace"),_}});var Dw=function(d){return d.body.replace(/ /g,d.star?"␣":" ")},PF=L3,Li=PF,yr=function(){function M(d,f,m){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=d,this.start=f,this.end=m}return M.range=function(f,m){return m?!f||!f.loc||!m.loc||f.loc.lexer!==m.loc.lexer?null:new M(f.loc.lexer,f.loc.start,m.loc.end):f&&f.loc},M}(),So=function(){function M(f,m){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=f,this.loc=m}var d=M.prototype;return d.range=function(m,_){return new M(_,yr.range(this,m))},M}(),Rw=`[ \r
405
+ ]`,FF="\\\\[a-zA-Z@]+",zF="\\\\[^\uD800-\uDFFF]",qF="("+FF+")"+Rw+"*",HF=`\\\\(
406
+ |[ \r ]+
407
+ ?)[ \r ]*`,Qp="[̀-ͯ]",VF=new RegExp(Qp+"+$"),UF="("+Rw+"+)|"+(HF+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(Qp+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Qp+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+qF)+("|"+zF+")"),Ow=function(){function M(f,m){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=f,this.settings=m,this.tokenRegex=new RegExp(UF,"g"),this.catcodes={"%":14,"~":13}}var d=M.prototype;return d.setCatcode=function(m,_){this.catcodes[m]=_},d.lex=function(){var m=this.input,_=this.tokenRegex.lastIndex;if(_===m.length)return new So("EOF",new yr(this,_,_));var x=this.tokenRegex.exec(m);if(x===null||x.index!==_)throw new o("Unexpected character: '"+m[_]+"'",new So(m[_],new yr(this,_,_+1)));var T=x[6]||x[3]||(x[2]?"\\ ":" ");if(this.catcodes[T]===14){var I=m.indexOf(`
408
+ `,this.tokenRegex.lastIndex);return I===-1?(this.tokenRegex.lastIndex=m.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=I+1,this.lex()}return new So(T,new yr(this,_,this.tokenRegex.lastIndex))},M}(),GF=function(){function M(f,m){f===void 0&&(f={}),m===void 0&&(m={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=m,this.builtins=f,this.undefStack=[]}var d=M.prototype;return d.beginGroup=function(){this.undefStack.push({})},d.endGroup=function(){if(this.undefStack.length===0)throw new o("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var m=this.undefStack.pop();for(var _ in m)m.hasOwnProperty(_)&&(m[_]===void 0?delete this.current[_]:this.current[_]=m[_])},d.endGroups=function(){for(;this.undefStack.length>0;)this.endGroup()},d.has=function(m){return this.current.hasOwnProperty(m)||this.builtins.hasOwnProperty(m)},d.get=function(m){return this.current.hasOwnProperty(m)?this.current[m]:this.builtins[m]},d.set=function(m,_,x){if(x===void 0&&(x=!1),x){for(var T=0;T<this.undefStack.length;T++)delete this.undefStack[T][m];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][m]=_)}else{var I=this.undefStack[this.undefStack.length-1];I&&!I.hasOwnProperty(m)&&(I[m]=this.current[m])}this.current[m]=_},M}(),$F=ww,WF=$F;P("\\noexpand",function(M){var d=M.popToken();return M.isExpandable(d.text)&&(d.noexpand=!0,d.treatAsRelax=!0),{tokens:[d],numArgs:0}}),P("\\expandafter",function(M){var d=M.popToken();return M.expandOnce(!0),{tokens:[d],numArgs:0}}),P("\\@firstoftwo",function(M){var d=M.consumeArgs(2);return{tokens:d[0],numArgs:0}}),P("\\@secondoftwo",function(M){var d=M.consumeArgs(2);return{tokens:d[1],numArgs:0}}),P("\\@ifnextchar",function(M){var d=M.consumeArgs(3);M.consumeSpaces();var f=M.future();return d[0].length===1&&d[0][0].text===f.text?{tokens:d[1],numArgs:0}:{tokens:d[2],numArgs:0}}),P("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),P("\\TextOrMath",function(M){var d=M.consumeArgs(2);return M.mode==="text"?{tokens:d[0],numArgs:0}:{tokens:d[1],numArgs:0}});var Iw={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};P("\\char",function(M){var d=M.popToken(),f,m="";if(d.text==="'")f=8,d=M.popToken();else if(d.text==='"')f=16,d=M.popToken();else if(d.text==="`")if(d=M.popToken(),d.text[0]==="\\")m=d.text.charCodeAt(1);else{if(d.text==="EOF")throw new o("\\char` missing argument");m=d.text.charCodeAt(0)}else f=10;if(f){if(m=Iw[d.text],m==null||m>=f)throw new o("Invalid base-"+f+" digit "+d.text);for(var _;(_=Iw[M.future().text])!=null&&_<f;)m*=f,m+=_,M.popToken()}return"\\@char{"+m+"}"});var Yp=function(d,f,m){var _=d.consumeArg().tokens;if(_.length!==1)throw new o("\\newcommand's first argument must be a macro name");var x=_[0].text,T=d.isDefined(x);if(T&&!f)throw new o("\\newcommand{"+x+"} attempting to redefine "+(x+"; use \\renewcommand"));if(!T&&!m)throw new o("\\renewcommand{"+x+"} when command "+x+" does not yet exist; use \\newcommand");var I=0;if(_=d.consumeArg().tokens,_.length===1&&_[0].text==="["){for(var B="",z=d.expandNextToken();z.text!=="]"&&z.text!=="EOF";)B+=z.text,z=d.expandNextToken();if(!B.match(/^\s*[0-9]+\s*$/))throw new o("Invalid number of arguments: "+B);I=parseInt(B),_=d.consumeArg().tokens}return d.macros.set(x,{tokens:_,numArgs:I}),""};P("\\newcommand",function(M){return Yp(M,!1,!0)}),P("\\renewcommand",function(M){return Yp(M,!0,!1)}),P("\\providecommand",function(M){return Yp(M,!0,!0)}),P("\\message",function(M){var d=M.consumeArgs(1)[0];return console.log(d.reverse().map(function(f){return f.text}).join("")),""}),P("\\errmessage",function(M){var d=M.consumeArgs(1)[0];return console.error(d.reverse().map(function(f){return f.text}).join("")),""}),P("\\show",function(M){var d=M.popToken(),f=d.text;return console.log(d,M.macros.get(f),Li[f],st.math[f],st.text[f]),""}),P("\\bgroup","{"),P("\\egroup","}"),P("~","\\nobreakspace"),P("\\lq","`"),P("\\rq","'"),P("\\aa","\\r a"),P("\\AA","\\r A"),P("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),P("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),P("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),P("ℬ","\\mathscr{B}"),P("ℰ","\\mathscr{E}"),P("ℱ","\\mathscr{F}"),P("ℋ","\\mathscr{H}"),P("ℐ","\\mathscr{I}"),P("ℒ","\\mathscr{L}"),P("ℳ","\\mathscr{M}"),P("ℛ","\\mathscr{R}"),P("ℭ","\\mathfrak{C}"),P("ℌ","\\mathfrak{H}"),P("ℨ","\\mathfrak{Z}"),P("\\Bbbk","\\Bbb{k}"),P("·","\\cdotp"),P("\\llap","\\mathllap{\\textrm{#1}}"),P("\\rlap","\\mathrlap{\\textrm{#1}}"),P("\\clap","\\mathclap{\\textrm{#1}}"),P("\\mathstrut","\\vphantom{(}"),P("\\underbar","\\underline{\\text{#1}}"),P("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),P("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),P("\\ne","\\neq"),P("≠","\\neq"),P("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),P("∉","\\notin"),P("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),P("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),P("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),P("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),P("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),P("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),P("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),P("⟂","\\perp"),P("‼","\\mathclose{!\\mkern-0.8mu!}"),P("∌","\\notni"),P("⌜","\\ulcorner"),P("⌝","\\urcorner"),P("⌞","\\llcorner"),P("⌟","\\lrcorner"),P("©","\\copyright"),P("®","\\textregistered"),P("️","\\textregistered"),P("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),P("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),P("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),P("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),P("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),P("⋮","\\vdots"),P("\\varGamma","\\mathit{\\Gamma}"),P("\\varDelta","\\mathit{\\Delta}"),P("\\varTheta","\\mathit{\\Theta}"),P("\\varLambda","\\mathit{\\Lambda}"),P("\\varXi","\\mathit{\\Xi}"),P("\\varPi","\\mathit{\\Pi}"),P("\\varSigma","\\mathit{\\Sigma}"),P("\\varUpsilon","\\mathit{\\Upsilon}"),P("\\varPhi","\\mathit{\\Phi}"),P("\\varPsi","\\mathit{\\Psi}"),P("\\varOmega","\\mathit{\\Omega}"),P("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),P("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),P("\\boxed","\\fbox{$\\displaystyle{#1}$}"),P("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),P("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),P("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Lw={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};P("\\dots",function(M){var d="\\dotso",f=M.expandAfterFuture().text;return f in Lw?d=Lw[f]:(f.substr(0,4)==="\\not"||f in st.math&&S.contains(["bin","rel"],st.math[f].group))&&(d="\\dotsb"),d});var Zp={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};P("\\dotso",function(M){var d=M.future().text;return d in Zp?"\\ldots\\,":"\\ldots"}),P("\\dotsc",function(M){var d=M.future().text;return d in Zp&&d!==","?"\\ldots\\,":"\\ldots"}),P("\\cdots",function(M){var d=M.future().text;return d in Zp?"\\@cdots\\,":"\\@cdots"}),P("\\dotsb","\\cdots"),P("\\dotsm","\\cdots"),P("\\dotsi","\\!\\cdots"),P("\\dotsx","\\ldots\\,"),P("\\DOTSI","\\relax"),P("\\DOTSB","\\relax"),P("\\DOTSX","\\relax"),P("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),P("\\,","\\tmspace+{3mu}{.1667em}"),P("\\thinspace","\\,"),P("\\>","\\mskip{4mu}"),P("\\:","\\tmspace+{4mu}{.2222em}"),P("\\medspace","\\:"),P("\\;","\\tmspace+{5mu}{.2777em}"),P("\\thickspace","\\;"),P("\\!","\\tmspace-{3mu}{.1667em}"),P("\\negthinspace","\\!"),P("\\negmedspace","\\tmspace-{4mu}{.2222em}"),P("\\negthickspace","\\tmspace-{5mu}{.277em}"),P("\\enspace","\\kern.5em "),P("\\enskip","\\hskip.5em\\relax"),P("\\quad","\\hskip1em\\relax"),P("\\qquad","\\hskip2em\\relax"),P("\\tag","\\@ifstar\\tag@literal\\tag@paren"),P("\\tag@paren","\\tag@literal{({#1})}"),P("\\tag@literal",function(M){if(M.macros.get("\\df@tag"))throw new o("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),P("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),P("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),P("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),P("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),P("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),P("\\newline","\\\\\\relax"),P("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Bw=Pt["Main-Regular"][84][1]-.7*Pt["Main-Regular"][65][1]+"em";P("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Bw+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),P("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Bw+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),P("\\hspace","\\@ifstar\\@hspacer\\@hspace"),P("\\@hspace","\\hskip #1\\relax"),P("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),P("\\ordinarycolon",":"),P("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),P("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),P("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),P("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),P("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),P("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),P("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),P("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),P("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),P("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),P("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),P("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),P("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),P("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),P("∷","\\dblcolon"),P("∹","\\eqcolon"),P("≔","\\coloneqq"),P("≕","\\eqqcolon"),P("⩴","\\Coloneqq"),P("\\ratio","\\vcentcolon"),P("\\coloncolon","\\dblcolon"),P("\\colonequals","\\coloneqq"),P("\\coloncolonequals","\\Coloneqq"),P("\\equalscolon","\\eqqcolon"),P("\\equalscoloncolon","\\Eqqcolon"),P("\\colonminus","\\coloneq"),P("\\coloncolonminus","\\Coloneq"),P("\\minuscolon","\\eqcolon"),P("\\minuscoloncolon","\\Eqcolon"),P("\\coloncolonapprox","\\Colonapprox"),P("\\coloncolonsim","\\Colonsim"),P("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),P("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),P("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),P("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),P("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),P("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),P("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),P("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),P("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),P("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),P("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),P("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),P("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),P("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),P("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),P("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),P("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),P("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),P("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),P("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),P("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),P("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),P("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),P("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),P("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),P("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),P("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),P("\\imath","\\html@mathml{\\@imath}{ı}"),P("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),P("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),P("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),P("⟦","\\llbracket"),P("⟧","\\rrbracket"),P("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),P("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),P("⦃","\\lBrace"),P("⦄","\\rBrace"),P("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),P("⦵","\\minuso"),P("\\darr","\\downarrow"),P("\\dArr","\\Downarrow"),P("\\Darr","\\Downarrow"),P("\\lang","\\langle"),P("\\rang","\\rangle"),P("\\uarr","\\uparrow"),P("\\uArr","\\Uparrow"),P("\\Uarr","\\Uparrow"),P("\\N","\\mathbb{N}"),P("\\R","\\mathbb{R}"),P("\\Z","\\mathbb{Z}"),P("\\alef","\\aleph"),P("\\alefsym","\\aleph"),P("\\Alpha","\\mathrm{A}"),P("\\Beta","\\mathrm{B}"),P("\\bull","\\bullet"),P("\\Chi","\\mathrm{X}"),P("\\clubs","\\clubsuit"),P("\\cnums","\\mathbb{C}"),P("\\Complex","\\mathbb{C}"),P("\\Dagger","\\ddagger"),P("\\diamonds","\\diamondsuit"),P("\\empty","\\emptyset"),P("\\Epsilon","\\mathrm{E}"),P("\\Eta","\\mathrm{H}"),P("\\exist","\\exists"),P("\\harr","\\leftrightarrow"),P("\\hArr","\\Leftrightarrow"),P("\\Harr","\\Leftrightarrow"),P("\\hearts","\\heartsuit"),P("\\image","\\Im"),P("\\infin","\\infty"),P("\\Iota","\\mathrm{I}"),P("\\isin","\\in"),P("\\Kappa","\\mathrm{K}"),P("\\larr","\\leftarrow"),P("\\lArr","\\Leftarrow"),P("\\Larr","\\Leftarrow"),P("\\lrarr","\\leftrightarrow"),P("\\lrArr","\\Leftrightarrow"),P("\\Lrarr","\\Leftrightarrow"),P("\\Mu","\\mathrm{M}"),P("\\natnums","\\mathbb{N}"),P("\\Nu","\\mathrm{N}"),P("\\Omicron","\\mathrm{O}"),P("\\plusmn","\\pm"),P("\\rarr","\\rightarrow"),P("\\rArr","\\Rightarrow"),P("\\Rarr","\\Rightarrow"),P("\\real","\\Re"),P("\\reals","\\mathbb{R}"),P("\\Reals","\\mathbb{R}"),P("\\Rho","\\mathrm{P}"),P("\\sdot","\\cdot"),P("\\sect","\\S"),P("\\spades","\\spadesuit"),P("\\sub","\\subset"),P("\\sube","\\subseteq"),P("\\supe","\\supseteq"),P("\\Tau","\\mathrm{T}"),P("\\thetasym","\\vartheta"),P("\\weierp","\\wp"),P("\\Zeta","\\mathrm{Z}"),P("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),P("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),P("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),P("\\bra","\\mathinner{\\langle{#1}|}"),P("\\ket","\\mathinner{|{#1}\\rangle}"),P("\\braket","\\mathinner{\\langle{#1}\\rangle}"),P("\\Bra","\\left\\langle#1\\right|"),P("\\Ket","\\left|#1\\right\\rangle"),P("\\angln","{\\angl n}"),P("\\blue","\\textcolor{##6495ed}{#1}"),P("\\orange","\\textcolor{##ffa500}{#1}"),P("\\pink","\\textcolor{##ff00af}{#1}"),P("\\red","\\textcolor{##df0030}{#1}"),P("\\green","\\textcolor{##28ae7b}{#1}"),P("\\gray","\\textcolor{gray}{#1}"),P("\\purple","\\textcolor{##9d38bd}{#1}"),P("\\blueA","\\textcolor{##ccfaff}{#1}"),P("\\blueB","\\textcolor{##80f6ff}{#1}"),P("\\blueC","\\textcolor{##63d9ea}{#1}"),P("\\blueD","\\textcolor{##11accd}{#1}"),P("\\blueE","\\textcolor{##0c7f99}{#1}"),P("\\tealA","\\textcolor{##94fff5}{#1}"),P("\\tealB","\\textcolor{##26edd5}{#1}"),P("\\tealC","\\textcolor{##01d1c1}{#1}"),P("\\tealD","\\textcolor{##01a995}{#1}"),P("\\tealE","\\textcolor{##208170}{#1}"),P("\\greenA","\\textcolor{##b6ffb0}{#1}"),P("\\greenB","\\textcolor{##8af281}{#1}"),P("\\greenC","\\textcolor{##74cf70}{#1}"),P("\\greenD","\\textcolor{##1fab54}{#1}"),P("\\greenE","\\textcolor{##0d923f}{#1}"),P("\\goldA","\\textcolor{##ffd0a9}{#1}"),P("\\goldB","\\textcolor{##ffbb71}{#1}"),P("\\goldC","\\textcolor{##ff9c39}{#1}"),P("\\goldD","\\textcolor{##e07d10}{#1}"),P("\\goldE","\\textcolor{##a75a05}{#1}"),P("\\redA","\\textcolor{##fca9a9}{#1}"),P("\\redB","\\textcolor{##ff8482}{#1}"),P("\\redC","\\textcolor{##f9685d}{#1}"),P("\\redD","\\textcolor{##e84d39}{#1}"),P("\\redE","\\textcolor{##bc2612}{#1}"),P("\\maroonA","\\textcolor{##ffbde0}{#1}"),P("\\maroonB","\\textcolor{##ff92c6}{#1}"),P("\\maroonC","\\textcolor{##ed5fa6}{#1}"),P("\\maroonD","\\textcolor{##ca337c}{#1}"),P("\\maroonE","\\textcolor{##9e034e}{#1}"),P("\\purpleA","\\textcolor{##ddd7ff}{#1}"),P("\\purpleB","\\textcolor{##c6b9fc}{#1}"),P("\\purpleC","\\textcolor{##aa87ff}{#1}"),P("\\purpleD","\\textcolor{##7854ab}{#1}"),P("\\purpleE","\\textcolor{##543b78}{#1}"),P("\\mintA","\\textcolor{##f5f9e8}{#1}"),P("\\mintB","\\textcolor{##edf2df}{#1}"),P("\\mintC","\\textcolor{##e0e5cc}{#1}"),P("\\grayA","\\textcolor{##f6f7f7}{#1}"),P("\\grayB","\\textcolor{##f0f1f2}{#1}"),P("\\grayC","\\textcolor{##e3e5e6}{#1}"),P("\\grayD","\\textcolor{##d6d8da}{#1}"),P("\\grayE","\\textcolor{##babec2}{#1}"),P("\\grayF","\\textcolor{##888d93}{#1}"),P("\\grayG","\\textcolor{##626569}{#1}"),P("\\grayH","\\textcolor{##3b3e40}{#1}"),P("\\grayI","\\textcolor{##21242c}{#1}"),P("\\kaBlue","\\textcolor{##314453}{#1}"),P("\\kaGreen","\\textcolor{##71B307}{#1}");var Pw={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},KF=function(){function M(f,m,_){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=m,this.expansionCount=0,this.feed(f),this.macros=new GF(WF,m.macros),this.mode=_,this.stack=[]}var d=M.prototype;return d.feed=function(m){this.lexer=new Ow(m,this.settings)},d.switchMode=function(m){this.mode=m},d.beginGroup=function(){this.macros.beginGroup()},d.endGroup=function(){this.macros.endGroup()},d.endGroups=function(){this.macros.endGroups()},d.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},d.popToken=function(){return this.future(),this.stack.pop()},d.pushToken=function(m){this.stack.push(m)},d.pushTokens=function(m){var _;(_=this.stack).push.apply(_,m)},d.scanArgument=function(m){var _,x,T;if(m){if(this.consumeSpaces(),this.future().text!=="[")return null;_=this.popToken();var I=this.consumeArg(["]"]);T=I.tokens,x=I.end}else{var B=this.consumeArg();T=B.tokens,_=B.start,x=B.end}return this.pushToken(new So("EOF",x.loc)),this.pushTokens(T),_.range(x,"")},d.consumeSpaces=function(){for(;;){var m=this.future();if(m.text===" ")this.stack.pop();else break}},d.consumeArg=function(m){var _=[],x=m&&m.length>0;x||this.consumeSpaces();var T=this.future(),I,B=0,z=0;do{if(I=this.popToken(),_.push(I),I.text==="{")++B;else if(I.text==="}"){if(--B,B===-1)throw new o("Extra }",I)}else if(I.text==="EOF")throw new o("Unexpected end of input in a macro argument, expected '"+(m&&x?m[z]:"}")+"'",I);if(m&&x)if((B===0||B===1&&m[z]==="{")&&I.text===m[z]){if(++z,z===m.length){_.splice(-z,z);break}}else z=0}while(B!==0||x);return T.text==="{"&&_[_.length-1].text==="}"&&(_.pop(),_.shift()),_.reverse(),{tokens:_,start:T,end:I}},d.consumeArgs=function(m,_){if(_){if(_.length!==m+1)throw new o("The length of delimiters doesn't match the number of args!");for(var x=_[0],T=0;T<x.length;T++){var I=this.popToken();if(x[T]!==I.text)throw new o("Use of the macro doesn't match its definition",I)}}for(var B=[],z=0;z<m;z++)B.push(this.consumeArg(_&&_[z+1]).tokens);return B},d.expandOnce=function(m){var _=this.popToken(),x=_.text,T=_.noexpand?null:this._getExpansion(x);if(T==null||m&&T.unexpandable){if(m&&T==null&&x[0]==="\\"&&!this.isDefined(x))throw new o("Undefined control sequence: "+x);return this.pushToken(_),_}if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new o("Too many expansions: infinite loop or need to increase maxExpand setting");var I=T.tokens,B=this.consumeArgs(T.numArgs,T.delimiters);if(T.numArgs){I=I.slice();for(var z=I.length-1;z>=0;--z){var G=I[z];if(G.text==="#"){if(z===0)throw new o("Incomplete placeholder at end of macro body",G);if(G=I[--z],G.text==="#")I.splice(z+1,1);else if(/^[1-9]$/.test(G.text)){var te;(te=I).splice.apply(te,[z,2].concat(B[+G.text-1]))}else throw new o("Not a valid argument number",G)}}}return this.pushTokens(I),I},d.expandAfterFuture=function(){return this.expandOnce(),this.future()},d.expandNextToken=function(){for(;;){var m=this.expandOnce();if(m instanceof So)if(m.text==="\\relax"||m.treatAsRelax)this.stack.pop();else return this.stack.pop()}throw new Error},d.expandMacro=function(m){return this.macros.has(m)?this.expandTokens([new So(m)]):void 0},d.expandTokens=function(m){var _=[],x=this.stack.length;for(this.pushTokens(m);this.stack.length>x;){var T=this.expandOnce(!0);T instanceof So&&(T.treatAsRelax&&(T.noexpand=!1,T.treatAsRelax=!1),_.push(this.stack.pop()))}return _},d.expandMacroAsText=function(m){var _=this.expandMacro(m);return _&&_.map(function(x){return x.text}).join("")},d._getExpansion=function(m){var _=this.macros.get(m);if(_==null)return _;if(m.length===1){var x=this.lexer.catcodes[m];if(x!=null&&x!==13)return}var T=typeof _=="function"?_(this):_;if(typeof T=="string"){var I=0;if(T.indexOf("#")!==-1)for(var B=T.replace(/##/g,"");B.indexOf("#"+(I+1))!==-1;)++I;for(var z=new Ow(T,this.settings),G=[],te=z.lex();te.text!=="EOF";)G.push(te),te=z.lex();G.reverse();var ae={tokens:G,numArgs:I};return ae}return T},d.isDefined=function(m){return this.macros.has(m)||Li.hasOwnProperty(m)||st.math.hasOwnProperty(m)||st.text.hasOwnProperty(m)||Pw.hasOwnProperty(m)},d.isExpandable=function(m){var _=this.macros.get(m);return _!=null?typeof _=="string"||typeof _=="function"||!_.unexpandable:Li.hasOwnProperty(m)&&!Li[m].primitive},M}(),Xp={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},Fw={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},zw=function(){function M(f,m){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new KF(f,m,this.mode),this.settings=m,this.leftrightDepth=0}var d=M.prototype;return d.expect=function(m,_){if(_===void 0&&(_=!0),this.fetch().text!==m)throw new o("Expected '"+m+"', got '"+this.fetch().text+"'",this.fetch());_&&this.consume()},d.consume=function(){this.nextToken=null},d.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},d.switchMode=function(m){this.mode=m,this.gullet.switchMode(m)},d.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var m=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),m}finally{this.gullet.endGroups()}},d.parseExpression=function(m,_){for(var x=[];;){this.mode==="math"&&this.consumeSpaces();var T=this.fetch();if(M.endOfExpression.indexOf(T.text)!==-1||_&&T.text===_||m&&Li[T.text]&&Li[T.text].infix)break;var I=this.parseAtom(_);if(I){if(I.type==="internal")continue}else break;x.push(I)}return this.mode==="text"&&this.formLigatures(x),this.handleInfixNodes(x)},d.handleInfixNodes=function(m){for(var _=-1,x,T=0;T<m.length;T++)if(m[T].type==="infix"){if(_!==-1)throw new o("only one infix operator per group",m[T].token);_=T,x=m[T].replaceWith}if(_!==-1&&x){var I,B,z=m.slice(0,_),G=m.slice(_+1);z.length===1&&z[0].type==="ordgroup"?I=z[0]:I={type:"ordgroup",mode:this.mode,body:z},G.length===1&&G[0].type==="ordgroup"?B=G[0]:B={type:"ordgroup",mode:this.mode,body:G};var te;return x==="\\\\abovefrac"?te=this.callFunction(x,[I,m[_],B],[]):te=this.callFunction(x,[I,B],[]),[te]}else return m},d.handleSupSubscript=function(m){var _=this.fetch(),x=_.text;this.consume(),this.consumeSpaces();var T=this.parseGroup(m);if(!T)throw new o("Expected group after '"+x+"'",_);return T},d.formatUnsupportedCmd=function(m){for(var _=[],x=0;x<m.length;x++)_.push({type:"textord",mode:"text",text:m[x]});var T={type:"text",mode:this.mode,body:_},I={type:"color",mode:this.mode,color:this.settings.errorColor,body:[T]};return I},d.parseAtom=function(m){var _=this.parseGroup("atom",m);if(this.mode==="text")return _;for(var x,T;;){this.consumeSpaces();var I=this.fetch();if(I.text==="\\limits"||I.text==="\\nolimits"){if(_&&_.type==="op"){var B=I.text==="\\limits";_.limits=B,_.alwaysHandleSupSub=!0}else if(_&&_.type==="operatorname")_.alwaysHandleSupSub&&(_.limits=I.text==="\\limits");else throw new o("Limit controls must follow a math operator",I);this.consume()}else if(I.text==="^"){if(x)throw new o("Double superscript",I);x=this.handleSupSubscript("superscript")}else if(I.text==="_"){if(T)throw new o("Double subscript",I);T=this.handleSupSubscript("subscript")}else if(I.text==="'"){if(x)throw new o("Double superscript",I);var z={type:"textord",mode:this.mode,text:"\\prime"},G=[z];for(this.consume();this.fetch().text==="'";)G.push(z),this.consume();this.fetch().text==="^"&&G.push(this.handleSupSubscript("superscript")),x={type:"ordgroup",mode:this.mode,body:G}}else break}return x||T?{type:"supsub",mode:this.mode,base:_,sup:x,sub:T}:_},d.parseFunction=function(m,_){var x=this.fetch(),T=x.text,I=Li[T];if(!I)return null;if(this.consume(),_&&_!=="atom"&&!I.allowedInArgument)throw new o("Got function '"+T+"' with no arguments"+(_?" as "+_:""),x);if(this.mode==="text"&&!I.allowedInText)throw new o("Can't use function '"+T+"' in text mode",x);if(this.mode==="math"&&I.allowedInMath===!1)throw new o("Can't use function '"+T+"' in math mode",x);var B=this.parseArguments(T,I),z=B.args,G=B.optArgs;return this.callFunction(T,z,G,x,m)},d.callFunction=function(m,_,x,T,I){var B={funcName:m,parser:this,token:T,breakOnTokenText:I},z=Li[m];if(z&&z.handler)return z.handler(B,_,x);throw new o("No function handler for "+m)},d.parseArguments=function(m,_){var x=_.numArgs+_.numOptionalArgs;if(x===0)return{args:[],optArgs:[]};for(var T=[],I=[],B=0;B<x;B++){var z=_.argTypes&&_.argTypes[B],G=B<_.numOptionalArgs;(_.primitive&&z==null||_.type==="sqrt"&&B===1&&I[0]==null)&&(z="primitive");var te=this.parseGroupOfType("argument to '"+m+"'",z,G);if(G)I.push(te);else if(te!=null)T.push(te);else throw new o("Null argument, please report this as a bug")}return{args:T,optArgs:I}},d.parseGroupOfType=function(m,_,x){switch(_){case"color":return this.parseColorGroup(x);case"size":return this.parseSizeGroup(x);case"url":return this.parseUrlGroup(x);case"math":case"text":return this.parseArgumentGroup(x,_);case"hbox":{var T=this.parseArgumentGroup(x,"text");return T!=null?{type:"styling",mode:T.mode,body:[T],style:"text"}:null}case"raw":{var I=this.parseStringGroup("raw",x);return I!=null?{type:"raw",mode:"text",string:I.text}:null}case"primitive":{if(x)throw new o("A primitive argument cannot be optional");var B=this.parseGroup(m);if(B==null)throw new o("Expected group as "+m,this.fetch());return B}case"original":case null:case void 0:return this.parseArgumentGroup(x);default:throw new o("Unknown group type as "+m,this.fetch())}},d.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},d.parseStringGroup=function(m,_){var x=this.gullet.scanArgument(_);if(x==null)return null;for(var T="",I;(I=this.fetch()).text!=="EOF";)T+=I.text,this.consume();return this.consume(),x.text=T,x},d.parseRegexGroup=function(m,_){for(var x=this.fetch(),T=x,I="",B;(B=this.fetch()).text!=="EOF"&&m.test(I+B.text);)T=B,I+=T.text,this.consume();if(I==="")throw new o("Invalid "+_+": '"+x.text+"'",x);return x.range(T,I)},d.parseColorGroup=function(m){var _=this.parseStringGroup("color",m);if(_==null)return null;var x=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(_.text);if(!x)throw new o("Invalid color: '"+_.text+"'",_);var T=x[0];return/^[0-9a-f]{6}$/i.test(T)&&(T="#"+T),{type:"color-token",mode:this.mode,color:T}},d.parseSizeGroup=function(m){var _,x=!1;if(this.gullet.consumeSpaces(),!m&&this.gullet.future().text!=="{"?_=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):_=this.parseStringGroup("size",m),!_)return null;!m&&_.text.length===0&&(_.text="0pt",x=!0);var T=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(_.text);if(!T)throw new o("Invalid size: '"+_.text+"'",_);var I={number:+(T[1]+T[2]),unit:T[3]};if(!xn(I))throw new o("Invalid unit: '"+I.unit+"'",_);return{type:"size",mode:this.mode,value:I,isBlank:x}},d.parseUrlGroup=function(m){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var _=this.parseStringGroup("url",m);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),_==null)return null;var x=_.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:x}},d.parseArgumentGroup=function(m,_){var x=this.gullet.scanArgument(m);if(x==null)return null;var T=this.mode;_&&this.switchMode(_),this.gullet.beginGroup();var I=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var B={type:"ordgroup",mode:this.mode,loc:x.loc,body:I};return _&&this.switchMode(T),B},d.parseGroup=function(m,_){var x=this.fetch(),T=x.text,I;if(T==="{"||T==="\\begingroup"){this.consume();var B=T==="{"?"}":"\\endgroup";this.gullet.beginGroup();var z=this.parseExpression(!1,B),G=this.fetch();this.expect(B),this.gullet.endGroup(),I={type:"ordgroup",mode:this.mode,loc:yr.range(x,G),body:z,semisimple:T==="\\begingroup"||void 0}}else if(I=this.parseFunction(_,m)||this.parseSymbol(),I==null&&T[0]==="\\"&&!Pw.hasOwnProperty(T)){if(this.settings.throwOnError)throw new o("Undefined control sequence: "+T,x);I=this.formatUnsupportedCmd(T),this.consume()}return I},d.formLigatures=function(m){for(var _=m.length-1,x=0;x<_;++x){var T=m[x],I=T.text;I==="-"&&m[x+1].text==="-"&&(x+1<_&&m[x+2].text==="-"?(m.splice(x,3,{type:"textord",mode:"text",loc:yr.range(T,m[x+2]),text:"---"}),_-=2):(m.splice(x,2,{type:"textord",mode:"text",loc:yr.range(T,m[x+1]),text:"--"}),_-=1)),(I==="'"||I==="`")&&m[x+1].text===I&&(m.splice(x,2,{type:"textord",mode:"text",loc:yr.range(T,m[x+1]),text:I+I}),_-=1)}},d.parseSymbol=function(){var m=this.fetch(),_=m.text;if(/^\\verb[^a-zA-Z]/.test(_)){this.consume();var x=_.slice(5),T=x.charAt(0)==="*";if(T&&(x=x.slice(1)),x.length<2||x.charAt(0)!==x.slice(-1))throw new o(`\\verb assertion failed --
409
+ please report what input caused this bug`);return x=x.slice(1,-1),{type:"verb",mode:"text",body:x,star:T}}Fw.hasOwnProperty(_[0])&&!st[this.mode][_[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+_[0]+'" used in math mode',m),_=Fw[_[0]]+_.substr(1));var I=VF.exec(_);I&&(_=_.substring(0,I.index),_==="i"?_="ı":_==="j"&&(_="ȷ"));var B;if(st[this.mode][_]){this.settings.strict&&this.mode==="math"&&ls.indexOf(_)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+_[0]+'" used in math mode',m);var z=st[this.mode][_].group,G=yr.range(m),te;if(ft.hasOwnProperty(z)){var ae=z;te={type:"atom",mode:this.mode,family:ae,loc:G,text:_}}else te={type:z,mode:this.mode,loc:G,text:_};B=te}else if(_.charCodeAt(0)>=128)this.settings.strict&&(ke(_.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+_[0]+'" used in math mode',m):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+_[0]+'"'+(" ("+_.charCodeAt(0)+")"),m)),B={type:"textord",mode:"text",loc:yr.range(m),text:_};else return null;if(this.consume(),I)for(var de=0;de<I[0].length;de++){var he=I[0][de];if(!Xp[he])throw new o("Unknown accent ' "+he+"'",m);var ye=Xp[he][this.mode]||Xp[he].text;if(!ye)throw new o("Accent "+he+" unsupported in "+this.mode+" mode",m);B={type:"accent",mode:this.mode,loc:yr.range(m),label:ye,isStretchy:!1,isShifty:!0,base:B}}return B},M}();zw.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var jF=function(d,f){if(!(typeof d=="string"||d instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var m=new zw(d,f);delete m.gullet.macros.current["\\df@tag"];var _=m.parse();if(delete m.gullet.macros.current["\\current@color"],delete m.gullet.macros.current["\\color"],m.gullet.macros.get("\\df@tag")){if(!f.displayMode)throw new o("\\tag works only in display equations");m.gullet.feed("\\df@tag"),_=[{type:"tag",mode:"text",body:_,tag:m.parse()}]}return _},Jp=jF,qw=function(d,f,m){f.textContent="";var _=em(d,m).toNode();f.appendChild(_)};typeof document<"u"&&document.compatMode!=="CSS1Compat"&&(typeof console<"u"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),qw=function(){throw new o("KaTeX doesn't work in quirks mode.")});var QF=function(d,f){var m=em(d,f).toMarkup();return m},YF=function(d,f){var m=new C(f);return Jp(d,m)},Hw=function(d,f,m){if(m.throwOnError||!(d instanceof o))throw d;var _=j.makeSpan(["katex-error"],[new Lt(f)]);return _.setAttribute("title",d.toString()),_.setAttribute("style","color:"+m.errorColor),_},em=function(d,f){var m=new C(f);try{var _=Jp(d,m);return tF(_,d,m)}catch(x){return Hw(x,d,m)}},ZF=function(d,f){var m=new C(f);try{var _=Jp(d,m);return nF(_,d,m)}catch(x){return Hw(x,d,m)}},XF={version:"0.13.18",render:qw,renderToString:QF,ParseError:o,__parse:YF,__renderToDomTree:em,__renderToHTMLTree:ZF,__setFontMetrics:Ea,__defineSymbol:k,__defineMacro:P,__domTree:{Span:Xe,Anchor:Zt,SymbolNode:Lt,SvgNode:ge,PathNode:Ce,LineNode:qe}},JF=XF;return r=r.default,r}()})}(Pc)),Pc.exports}var OR=RR();const O2=Nr(OR),IR={components:{NodeViewWrapper:io},props:{editor:{type:Object},node:{type:Object},decorations:{type:Array},selected:{type:Boolean},extension:{type:Object},getPos:{type:Function},updateAttributes:{type:Function},deleteNode:{type:Function}},data(){return{left:0,top:100,thisValue:this.node.attrs.value,showPopper:!1,equationString:"",errorMsg:"",active:!1,outsideEvent:n=>{if(!this.showPopper)return 0;let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||this.close(!1)},thisTheme:this.editor.storage.defaultStorage.theme,thisForeground:this.editor.storage.defaultStorage.foreground,getTitle:this.editor.storage.defaultStorage.getTitle,inputHight:"",lock:!1}},watch:{showPopper(n){n&&(this.showPos(),this.$nextTick(()=>{this.$refs.input&&(this.inputHight=this.$refs.input.scrollHeight)}))},thisValue(n){n===""?(this.equationString="",this.lock=!1):this.render(),this.$nextTick(()=>{this.$refs.input&&(this.inputHight=this.$refs.input.scrollHeight)})},"editor.storage.defaultStorage.theme"(n){this.thisTheme=n},"editor.storage.defaultStorage.foreground"(n){this.thisForeground=n},selected(n){n&&this.show()}},computed:{focusForeground(){try{let n=Bc(this.thisForeground);return n=n.alpha(.3),n.cssa()}catch{return""}}},mounted(){this.outSideClickInit(),this.render(),this.$nextTick(()=>{this.node.attrs.value===""&&this.show()})},methods:{outSideClickInit(){window.addEventListener("click",this.outsideEvent)},render(){try{this.equationString=O2.renderToString(this.thisValue.replace(/\\tag\{.*?\}/g,""),{throwOnError:!0,globalGroup:"my-katex-"}),this.lock=!1}catch(n){if(n instanceof O2.ParseError)this.errorMsg=("Error in LaTeX '"+this.thisValue+"': "+n.message).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");else throw n;this.lock=!0}},showPos(){this.$nextTick(()=>{let n=this.$refs.target,e=n.getBoundingClientRect().bottom,t=n.getBoundingClientRect().left;e<50?this.top=-100:this.top=100,t+300>document.body.clientWidth?this.left=document.body-300-t:this.left=0})},show(){this.editor.isEditable&&(this.showPopper=!0,setTimeout(()=>{this.$refs.input&&this.$refs.input.focus()},300))},close(n=!0){this.showPopper=!1,n?this.updateAttributes({value:this.thisValue}):this.thisValue=this.node.attrs.value,this.editor.commands.focus();const{tr:e}=this.editor.view.state;let t=null;this.$refs.input.selectionEnd===0?t=Ne.near(e.doc.resolve(this.getPos())):t=Ne.near(e.doc.resolve(this.getPos()+this.node.nodeSize-1)),e.setSelection(t),this.editor.view.dispatch(e)},closeWithLeftRight(n){let e=this.$refs.input.selectionStart,t=this.$refs.input.selectionEnd;e===t&&(n.key==="ArrowLeft"&&e===0&&this.close(!1),n.key==="ArrowRight"&&e===this.$refs.input.value.length&&this.close(!1),n.key==="ArrowUp"&&e===0&&this.close(!1),n.key==="ArrowDown"&&e===this.$refs.input.value.length&&this.close(!1))}},beforeUnmount(){window.removeEventListener("click",this.outsideEvent)}},LR=["placeholder"],BR=["placeholder","innerHTML"];function PR(n,e,t,r,i,o){const s=y.resolveComponent("fv-button"),a=y.resolveComponent("node-view-wrapper");return t.node?(y.openBlock(),y.createBlock(a,{key:0,as:t.node.attrs.tag,class:y.normalizeClass(["power-editor-equation-container",{dark:i.thisTheme==="dark",div:t.node.attrs.tag=="div",selected:t.selected}]),style:y.normalizeStyle({"--selected-bg":o.focusForeground})},{default:y.withCtx(()=>[y.createVNode(y.Transition,{name:"power-editor-equation-popper-fade"},{default:y.withCtx(()=>[y.withDirectives(y.createElementVNode("div",{class:"power-editor-equation-popper-container",style:y.normalizeStyle({left:`${i.left}px`,top:`${i.top}%`}),onKeyup:e[3]||(e[3]=y.withKeys(l=>i.lock?"":o.close(),["enter"]))},[y.withDirectives(y.createElementVNode("textarea",{"onUpdate:modelValue":e[0]||(e[0]=l=>i.thisValue=l),class:"power-editor-equation-popper-input",placeholder:t.node.attrs.placeholder,ref:"input",style:y.normalizeStyle({height:`${i.inputHight}px`}),onKeydown:[e[1]||(e[1]=y.withKeys(l=>l.preventDefault(),["enter"])),e[2]||(e[2]=l=>o.closeWithLeftRight(l))]},null,44,LR),[[y.vModelText,i.thisValue]]),y.createVNode(s,{class:"power-editor-equation-popper-btn",theme:"dark",disabled:i.lock,icon:"AcceptMedium",background:i.thisForeground,"is-box-shadow":!0,onClick:o.close},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(i.getTitle("Done")),1)]),_:1},8,["disabled","background","onClick"])],36),[[y.vShow,i.showPopper]])]),_:1}),t.node.attrs.tag=="div"?(y.openBlock(),y.createElementBlock("div",{key:0,draggable:"true","data-drag-handle":"",class:"power-editor-equation-drag-btn",onMousedown:e[4]||(e[4]=l=>i.active=!0),onMouseup:e[5]||(e[5]=l=>i.active=!1),onTouchstart:e[6]||(e[6]=l=>i.active=!0),onTouchend:e[7]||(e[7]=l=>i.active=!1)},e[9]||(e[9]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--GripperDotsVertical"},null,-1)]),32)):y.createCommentVNode("",!0),y.createElementVNode("span",{class:y.normalizeClass(["power-editor-equation-target",{empty:i.thisValue===""}]),placeholder:t.node.attrs.emptyPlaceholder,innerHTML:i.thisValue===""?t.node.attrs.emptyPlaceholder:i.equationString,ref:"target",style:y.normalizeStyle({color:`${i.lock?"red":""}`,"--selected-bg":o.focusForeground}),onClick:e[8]||(e[8]=(...l)=>o.show&&o.show(...l))},null,14,BR)]),_:1},8,["as","class","style"])):y.createCommentVNode("",!0)}const I2=an(IR,[["render",PR]]),FR=/(\$\s|\\\(\s)$/,zR=/(\$|\\\()(.+?)(\$|\\\))/g,qR=Hn.create({name:"inlineEquation",group:"inline",inline:!0,draggable:!0,addAttributes(){return{value:{default:""},tag:{default:"span"},placeholder:{default:"Y=WX^T+b"},emptyPlaceholder:{default:"New Equation"},showPopper:{default:!1}}},parseHTML(){return[{tag:"inline-equation"}]},renderHTML({HTMLAttributes:n}){return["inline-equation",jt(n)]},addNodeView(){return vi(I2)},addInputRules(){return[R0({find:FR,type:this.type,getAttributes:()=>({theme:this.editor.storage.defaultStorage.theme})})]},addPasteRules(){return[Lc({find:zR,type:this.type,getAttributes:n=>({value:n[2],theme:this.editor.storage.defaultStorage.theme})})]},addKeyboardShortcuts(){return{"Alt-=":()=>{let n=this.editor.view.state,e=this.editor.view.state.selection,t=n.doc.textBetween(e.from,e.to," "),r=!0;if(t=t.trim(),t.startsWith("$$")&&t.endsWith("$$")?(t=t.slice(2,-2),r=!1):t.startsWith("$")&&t.endsWith("$")?t=t.slice(1,-1):t.startsWith("\\(")&&t.endsWith("\\)")?t=t.slice(2,-2):t.startsWith("\\[")&&t.endsWith("\\]")&&(t=t.slice(2,-2),r=!1),t=t.trim(),t.length>0)return r?this.editor.chain().focus().insertContent(`<inline-equation theme="${this.editor.storage.defaultStorage.theme}" value="${t}"></inline-equation>`).run():this.editor.chain().focus().insertContent(`<equation-block theme="${this.editor.storage.defaultStorage.theme}" value="${t}"></equation-block><p></p>`).run()}}}}),HR=/(\${2}\s|\\\[\s)$/,VR=/(\s*\${2}|\\\[)([\s\S]+?)(\${2}|\\\])/g,UR=Hn.create({name:"equationBlock",group:"block",atom:!0,draggable:!0,addAttributes(){return{value:{default:""},tag:{default:"div"},placeholder:{default:"Y=WX^T+b"},emptyPlaceholder:{default:"New Equation"},showPopper:{default:!1}}},parseHTML(){return[{tag:"equation-block"}]},renderHTML({HTMLAttributes:n}){return["equation-block",jt(n)]},addNodeView(){return vi(I2)},addInputRules(){return[R0({find:HR,type:this.type,getAttributes:()=>({theme:this.editor.storage.defaultStorage.theme})})]},addPasteRules(){return[Lc({find:VR,type:this.type,getAttributes:n=>({value:n[2],theme:this.editor.storage.defaultStorage.theme})})]}}),GR={components:{NodeViewWrapper:io},props:{editor:{type:Object},node:{type:Object},decorations:{type:Array},selected:{type:Boolean},extension:{type:Object},getPos:{type:Function},updateAttributes:{type:Function},deleteNode:{type:Function}},data(){return{left:0,top:100,showPopper:!1,outsideEvent:n=>{if(!this.showPopper)return 0;let e=n.target,t=!1;for(;e&&e.tagName&&e.tagName.toLowerCase()!="body";){if(e==this.$el){t=!0;break}e=e.parentNode}t||this.close()},filterItems:[],loading:!1,thisTheme:this.editor.storage.defaultStorage.theme,thisForeground:this.editor.storage.defaultStorage.mentionItemTools.headerForeground()}},watch:{showPopper(n){n&&this.$nextTick(()=>{this.showPos()})},"node.attrs.value"(){this.delRecover(),this.getFilterItems()},"editor.storage.defaultStorage.theme"(n){this.thisTheme=n},"editor.storage.defaultStorage.mentionItemTools.headerForeground"(){this.thisForeground=this.editor.storage.defaultStorage.mentionItemTools.headerForeground()}},computed:{focusForeground(){try{let n=Bc(this.thisForeground);return n=n.alpha(.2),n.cssa()}catch{return""}},hoverForeground(){try{let n=Bc(this.thisForeground);return n=n.alpha(.3),n.cssa()}catch{return""}},activeForeground(){try{let n=Bc(this.thisForeground);return n=n.alpha(.4),n.cssa()}catch{return""}}},mounted(){this.outSideClickInit(),this.windowEventInit(),setTimeout(()=>{this.node.attrs.freeze||(this.show(),this.$refs.target.focus(),this.$refs.list.focus=!0)},300),this.getFilterItems()},methods:{outSideClickInit(){window.addEventListener("click",this.outsideEvent)},windowEventInit(){window.addEventListener("scroll",this.showPos),this.editor.storage.defaultStorage.editorContainer.addEventListener("scroll",this.showPos)},showPos(){let n=this.$refs.target;if(!n||!n.getBoundingClientRect)return;const{left:e,top:t}=n.getBoundingClientRect();window.innerWidth-e<260?this.left=window.innerWidth-260:this.left=e-20,window.innerHeight-t<300?this.top=window.innerHeight-300:this.top=t+30},show(){this.editor.isEditable&&(this.showPopper=!0,setTimeout(()=>{this.$refs.target.focus()},300))},async getFilterItems(){this.loading=!0;let n=[],e=await this.editor.storage.defaultStorage.mentionItemTools.mentionList(this.node.attrs.value);for(let t of e)await this.editor.storage.defaultStorage.mentionItemTools.filterFunc(t,this.node.attrs.value)&&n.push(t);this.filterItems=n,this.loading=!1},chooseItem(n){this.updateAttributes({value:n.item.name,currentItem:n.item,freeze:!0}),this.editor.storage.defaultStorage.mentionItemTools.chooseItemCallback(n.item,this.node.attrs.value),this.close()},valueTrigger(n){return typeof n=="function"?n():n},delRecover(){this.node.attrs.value===""&&(this.deleteNode(),this.editor.commands.focus(),this.editor.commands.insertContent("@"))},skipNode(n){n.preventDefault(),this.editor.commands.focus()},close(){this.showPopper=!1,this.$refs.list.focus=!1,this.editor.commands.focus()}},beforeUnmount(){window.removeEventListener("click",this.outsideEvent),window.removeEventListener("scroll",this.showPos),this.editor.storage.defaultStorage.editorContainer.removeEventListener("scroll",this.showPos)}},$R={class:"power-editor-mention-popper-list-loading-block"},WR=["src"],KR={key:0,class:"power-editor-mention-icon"},jR=["src"],QR=["placeholder","readonly","title"],YR=["title"];function ZR(n,e,t,r,i,o){const s=y.resolveComponent("fv-progressRing"),a=y.resolveComponent("fv-list-view"),l=y.resolveComponent("node-view-wrapper");return t.node?(y.openBlock(),y.createBlock(l,{key:0,as:"span",class:y.normalizeClass(["power-editor-mention-container",{dark:i.thisTheme==="dark",selected:t.selected}]),style:y.normalizeStyle({"--selected-bg":o.focusForeground,"--selected-bg-hover":o.hoverForeground,"--selected-bg-active":o.activeForeground})},{default:y.withCtx(()=>[y.createVNode(y.Transition,{name:"power-editor-mention-popper-fade"},{default:y.withCtx(()=>[y.withDirectives(y.createElementVNode("div",{class:"power-editor-mention-popper-container",style:y.normalizeStyle({left:`${i.left}px`,top:`${i.top}px`})},[y.withDirectives(y.createElementVNode("div",$R,[y.createVNode(s,{loading:"true",r:"10",borderWidth:"2",foreground:i.thisForeground,background:"white"},null,8,["foreground"])],512),[[y.vShow,i.loading]]),y.createVNode(a,{modelValue:i.filterItems,theme:i.thisTheme,class:"power-editor-mention-popper-list-view",ref:"list",onChooseItem:o.chooseItem},{listItem:y.withCtx(c=>[c.item.image?(y.openBlock(),y.createElementBlock("img",{key:0,src:c.valueTrigger(c.item.image),alt:"",style:{width:"auto",height:"30px","margin-right":"15px"}},null,8,WR)):y.createCommentVNode("",!0),c.item.icon?(y.openBlock(),y.createElementBlock("i",{key:1,class:y.normalizeClass(["ms-Icon",[`ms-Icon--${c.valueTrigger(c.item.icon)}`]]),style:y.normalizeStyle([{color:c.valueTrigger(c.item.iconColor)},{"margin-right":"15px"}])},null,6)):y.createCommentVNode("",!0),y.createElementVNode("p",{style:y.normalizeStyle([{color:c.valueTrigger(c.item.type)=="header"?i.thisForeground:""},{flex:"1"}])},y.toDisplayString(c.valueTrigger(c.item.name)),5)]),_:1},8,["modelValue","theme","onChooseItem"])],4),[[y.vShow,i.showPopper&&i.filterItems.length>0]])]),_:1}),y.createElementVNode("span",{class:"power-editor-mention-display-block",onClick:e[3]||(e[3]=c=>t.editor.storage.defaultStorage.mentionItemTools.mentionClickCallback(t.node.attrs.currentItem,t.node.attrs.value))},[!t.node.attrs.currentItem.image&&!t.node.attrs.currentItem.icon?(y.openBlock(),y.createElementBlock("p",KR," @ ")):y.createCommentVNode("",!0),t.node.attrs.currentItem.image?(y.openBlock(),y.createElementBlock("img",{key:1,src:o.valueTrigger(t.node.attrs.currentItem.image),alt:"",class:"power-editor-mention-icon"},null,8,jR)):y.createCommentVNode("",!0),t.node.attrs.currentItem.icon?(y.openBlock(),y.createElementBlock("i",{key:2,class:y.normalizeClass(["ms-Icon power-editor-mention-icon",[`ms-Icon--${o.valueTrigger(t.node.attrs.currentItem.icon)}`]]),style:y.normalizeStyle({color:o.valueTrigger(t.node.attrs.currentItem.iconColor)})},null,6)):y.createCommentVNode("",!0),y.withDirectives(y.createElementVNode("input",{"onUpdate:modelValue":e[0]||(e[0]=c=>t.node.attrs.value=c),class:y.normalizeClass(["power-editor-mention-input",[{freeze:t.node.attrs.freeze}]]),placeholder:t.node.attrs.placeholder,readonly:t.node.attrs.freeze,ref:"target",title:t.node.attrs.value,style:y.normalizeStyle({color:t.node.attrs.currentItem.color}),onKeydown:[e[1]||(e[1]=y.withKeys((...c)=>o.delRecover&&o.delRecover(...c),["backspace"])),e[2]||(e[2]=y.withKeys((...c)=>o.skipNode&&o.skipNode(...c),["tab"]))]},null,46,QR),[[y.vShow,!t.node.attrs.freeze],[y.vModelText,t.node.attrs.value]]),y.createElementVNode("p",{title:t.node.attrs.value,class:y.normalizeClass(["power-editor-mention-placeholder",[{show:t.node.attrs.freeze}]]),style:y.normalizeStyle({color:t.node.attrs.currentItem.color})},y.toDisplayString(t.node.attrs.value?t.node.attrs.value:t.node.attrs.placeholder),15,YR)])]),_:1},8,["class","style"])):y.createCommentVNode("",!0)}const XR=an(GR,[["render",ZR]]),JR=/(@)$/,eO=Hn.create({name:"mentionItem",group:"inline",inline:!0,draggable:!0,addAttributes(){return{value:{default:""},currentItem:{default:{}},placeholder:{default:"mention"},freeze:{default:!1},showPopper:{default:!1}}},parseHTML(){return[{tag:"mention-item"}]},renderHTML({HTMLAttributes:n}){return["mention-item",jt(n)]},addNodeView(){return vi(XR)},addInputRules(){return[R0({find:JR,type:this.type,getAttributes:()=>({theme:this.editor.storage.defaultStorage.theme})})]}});var tO={value:()=>{}};function L2(){for(var n=0,e=arguments.length,t={},r;n<e;++n){if(!(r=arguments[n]+"")||r in t||/[\s.]/.test(r))throw new Error("illegal type: "+r);t[r]=[]}return new Fc(t)}function Fc(n){this._=n}function nO(n,e){return n.trim().split(/^|\s+/).map(function(t){var r="",i=t.indexOf(".");if(i>=0&&(r=t.slice(i+1),t=t.slice(0,i)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:r}})}Fc.prototype=L2.prototype={constructor:Fc,on:function(n,e){var t=this._,r=nO(n+"",t),i,o=-1,s=r.length;if(arguments.length<2){for(;++o<s;)if((i=(n=r[o]).type)&&(i=rO(t[i],n.name)))return i;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(i=(n=r[o]).type)t[i]=B2(t[i],n.name,e);else if(e==null)for(i in t)t[i]=B2(t[i],n.name,null);return this},copy:function(){var n={},e=this._;for(var t in e)n[t]=e[t].slice();return new Fc(n)},call:function(n,e){if((i=arguments.length-2)>0)for(var t=new Array(i),r=0,i,o;r<i;++r)t[r]=arguments[r+2];if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(o=this._[n],r=0,i=o.length;r<i;++r)o[r].value.apply(e,t)},apply:function(n,e,t){if(!this._.hasOwnProperty(n))throw new Error("unknown type: "+n);for(var r=this._[n],i=0,o=r.length;i<o;++i)r[i].value.apply(e,t)}};function rO(n,e){for(var t=0,r=n.length,i;t<r;++t)if((i=n[t]).name===e)return i.value}function B2(n,e,t){for(var r=0,i=n.length;r<i;++r)if(n[r].name===e){n[r]=tO,n=n.slice(0,r).concat(n.slice(r+1));break}return t!=null&&n.push({name:e,value:t}),n}var np="http://www.w3.org/1999/xhtml";const P2={svg:"http://www.w3.org/2000/svg",xhtml:np,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function zc(n){var e=n+="",t=e.indexOf(":");return t>=0&&(e=n.slice(0,t))!=="xmlns"&&(n=n.slice(t+1)),P2.hasOwnProperty(e)?{space:P2[e],local:n}:n}function iO(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===np&&e.documentElement.namespaceURI===np?e.createElement(n):e.createElementNS(t,n)}}function oO(n){return function(){return this.ownerDocument.createElementNS(n.space,n.local)}}function F2(n){var e=zc(n);return(e.local?oO:iO)(e)}function sO(){}function rp(n){return n==null?sO:function(){return this.querySelector(n)}}function aO(n){typeof n!="function"&&(n=rp(n));for(var e=this._groups,t=e.length,r=new Array(t),i=0;i<t;++i)for(var o=e[i],s=o.length,a=r[i]=new Array(s),l,c,u=0;u<s;++u)(l=o[u])&&(c=n.call(l,l.__data__,u,o))&&("__data__"in l&&(c.__data__=l.__data__),a[u]=c);return new $n(r,this._parents)}function lO(n){return n==null?[]:Array.isArray(n)?n:Array.from(n)}function cO(){return[]}function z2(n){return n==null?cO:function(){return this.querySelectorAll(n)}}function uO(n){return function(){return lO(n.apply(this,arguments))}}function dO(n){typeof n=="function"?n=uO(n):n=z2(n);for(var e=this._groups,t=e.length,r=[],i=[],o=0;o<t;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(r.push(n.call(l,l.__data__,c,s)),i.push(l));return new $n(r,i)}function q2(n){return function(){return this.matches(n)}}function H2(n){return function(e){return e.matches(n)}}var hO=Array.prototype.find;function fO(n){return function(){return hO.call(this.children,n)}}function pO(){return this.firstElementChild}function mO(n){return this.select(n==null?pO:fO(typeof n=="function"?n:H2(n)))}var gO=Array.prototype.filter;function bO(){return Array.from(this.children)}function _O(n){return function(){return gO.call(this.children,n)}}function yO(n){return this.selectAll(n==null?bO:_O(typeof n=="function"?n:H2(n)))}function vO(n){typeof n!="function"&&(n=q2(n));for(var e=this._groups,t=e.length,r=new Array(t),i=0;i<t;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&n.call(l,l.__data__,c,o)&&a.push(l);return new $n(r,this._parents)}function V2(n){return new Array(n.length)}function wO(){return new $n(this._enter||this._groups.map(V2),this._parents)}function qc(n,e){this.ownerDocument=n.ownerDocument,this.namespaceURI=n.namespaceURI,this._next=null,this._parent=n,this.__data__=e}qc.prototype={constructor:qc,appendChild:function(n){return this._parent.insertBefore(n,this._next)},insertBefore:function(n,e){return this._parent.insertBefore(n,e)},querySelector:function(n){return this._parent.querySelector(n)},querySelectorAll:function(n){return this._parent.querySelectorAll(n)}};function xO(n){return function(){return n}}function kO(n,e,t,r,i,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],r[s]=a):t[s]=new qc(n,o[s]);for(;s<l;++s)(a=e[s])&&(i[s]=a)}function SO(n,e,t,r,i,o,s){var a,l,c=new Map,u=e.length,h=o.length,g=new Array(u),b;for(a=0;a<u;++a)(l=e[a])&&(g[a]=b=s.call(l,l.__data__,a,e)+"",c.has(b)?i[a]=l:c.set(b,l));for(a=0;a<h;++a)b=s.call(n,o[a],a,o)+"",(l=c.get(b))?(r[a]=l,l.__data__=o[a],c.delete(b)):t[a]=new qc(n,o[a]);for(a=0;a<u;++a)(l=e[a])&&c.get(g[a])===l&&(i[a]=l)}function EO(n){return n.__data__}function CO(n,e){if(!arguments.length)return Array.from(this,EO);var t=e?SO:kO,r=this._parents,i=this._groups;typeof n!="function"&&(n=xO(n));for(var o=i.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var u=r[c],h=i[c],g=h.length,b=TO(n.call(u,u&&u.__data__,c,r)),p=b.length,v=a[c]=new Array(p),w=s[c]=new Array(p),S=l[c]=new Array(g);t(u,h,v,w,S,b,e);for(var C=0,E=0,A,R;C<p;++C)if(A=v[C]){for(C>=E&&(E=C+1);!(R=w[E])&&++E<p;);A._next=R||null}}return s=new $n(s,r),s._enter=a,s._exit=l,s}function TO(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function AO(){return new $n(this._exit||this._groups.map(V2),this._parents)}function MO(n,e,t){var r=this.enter(),i=this,o=this.exit();return typeof n=="function"?(r=n(r),r&&(r=r.selection())):r=r.append(n+""),e!=null&&(i=e(i),i&&(i=i.selection())),t==null?o.remove():t(o),r&&i?r.merge(i).order():i}function NO(n){for(var e=n.selection?n.selection():n,t=this._groups,r=e._groups,i=t.length,o=r.length,s=Math.min(i,o),a=new Array(i),l=0;l<s;++l)for(var c=t[l],u=r[l],h=c.length,g=a[l]=new Array(h),b,p=0;p<h;++p)(b=c[p]||u[p])&&(g[p]=b);for(;l<i;++l)a[l]=t[l];return new $n(a,this._parents)}function DO(){for(var n=this._groups,e=-1,t=n.length;++e<t;)for(var r=n[e],i=r.length-1,o=r[i],s;--i>=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function RO(n){n||(n=OO);function e(h,g){return h&&g?n(h.__data__,g.__data__):!h-!g}for(var t=this._groups,r=t.length,i=new Array(r),o=0;o<r;++o){for(var s=t[o],a=s.length,l=i[o]=new Array(a),c,u=0;u<a;++u)(c=s[u])&&(l[u]=c);l.sort(e)}return new $n(i,this._parents).order()}function OO(n,e){return n<e?-1:n>e?1:n>=e?0:NaN}function IO(){var n=arguments[0];return arguments[0]=this,n.apply(null,arguments),this}function LO(){return Array.from(this)}function BO(){for(var n=this._groups,e=0,t=n.length;e<t;++e)for(var r=n[e],i=0,o=r.length;i<o;++i){var s=r[i];if(s)return s}return null}function PO(){let n=0;for(const e of this)++n;return n}function FO(){return!this.node()}function zO(n){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var i=e[t],o=0,s=i.length,a;o<s;++o)(a=i[o])&&n.call(a,a.__data__,o,i);return this}function qO(n){return function(){this.removeAttribute(n)}}function HO(n){return function(){this.removeAttributeNS(n.space,n.local)}}function VO(n,e){return function(){this.setAttribute(n,e)}}function UO(n,e){return function(){this.setAttributeNS(n.space,n.local,e)}}function GO(n,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttribute(n):this.setAttribute(n,t)}}function $O(n,e){return function(){var t=e.apply(this,arguments);t==null?this.removeAttributeNS(n.space,n.local):this.setAttributeNS(n.space,n.local,t)}}function WO(n,e){var t=zc(n);if(arguments.length<2){var r=this.node();return t.local?r.getAttributeNS(t.space,t.local):r.getAttribute(t)}return this.each((e==null?t.local?HO:qO:typeof e=="function"?t.local?$O:GO:t.local?UO:VO)(t,e))}function U2(n){return n.ownerDocument&&n.ownerDocument.defaultView||n.document&&n||n.defaultView}function KO(n){return function(){this.style.removeProperty(n)}}function jO(n,e,t){return function(){this.style.setProperty(n,e,t)}}function QO(n,e,t){return function(){var r=e.apply(this,arguments);r==null?this.style.removeProperty(n):this.style.setProperty(n,r,t)}}function YO(n,e,t){return arguments.length>1?this.each((e==null?KO:typeof e=="function"?QO:jO)(n,e,t??"")):Jo(this.node(),n)}function Jo(n,e){return n.style.getPropertyValue(e)||U2(n).getComputedStyle(n,null).getPropertyValue(e)}function ZO(n){return function(){delete this[n]}}function XO(n,e){return function(){this[n]=e}}function JO(n,e){return function(){var t=e.apply(this,arguments);t==null?delete this[n]:this[n]=t}}function eI(n,e){return arguments.length>1?this.each((e==null?ZO:typeof e=="function"?JO:XO)(n,e)):this.node()[n]}function G2(n){return n.trim().split(/^|\s+/)}function ip(n){return n.classList||new $2(n)}function $2(n){this._node=n,this._names=G2(n.getAttribute("class")||"")}$2.prototype={add:function(n){var e=this._names.indexOf(n);e<0&&(this._names.push(n),this._node.setAttribute("class",this._names.join(" ")))},remove:function(n){var e=this._names.indexOf(n);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(n){return this._names.indexOf(n)>=0}};function W2(n,e){for(var t=ip(n),r=-1,i=e.length;++r<i;)t.add(e[r])}function K2(n,e){for(var t=ip(n),r=-1,i=e.length;++r<i;)t.remove(e[r])}function tI(n){return function(){W2(this,n)}}function nI(n){return function(){K2(this,n)}}function rI(n,e){return function(){(e.apply(this,arguments)?W2:K2)(this,n)}}function iI(n,e){var t=G2(n+"");if(arguments.length<2){for(var r=ip(this.node()),i=-1,o=t.length;++i<o;)if(!r.contains(t[i]))return!1;return!0}return this.each((typeof e=="function"?rI:e?tI:nI)(t,e))}function oI(){this.textContent=""}function sI(n){return function(){this.textContent=n}}function aI(n){return function(){var e=n.apply(this,arguments);this.textContent=e??""}}function lI(n){return arguments.length?this.each(n==null?oI:(typeof n=="function"?aI:sI)(n)):this.node().textContent}function cI(){this.innerHTML=""}function uI(n){return function(){this.innerHTML=n}}function dI(n){return function(){var e=n.apply(this,arguments);this.innerHTML=e??""}}function hI(n){return arguments.length?this.each(n==null?cI:(typeof n=="function"?dI:uI)(n)):this.node().innerHTML}function fI(){this.nextSibling&&this.parentNode.appendChild(this)}function pI(){return this.each(fI)}function mI(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function gI(){return this.each(mI)}function bI(n){var e=typeof n=="function"?n:F2(n);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function _I(){return null}function yI(n,e){var t=typeof n=="function"?n:F2(n),r=e==null?_I:typeof e=="function"?e:rp(e);return this.select(function(){return this.insertBefore(t.apply(this,arguments),r.apply(this,arguments)||null)})}function vI(){var n=this.parentNode;n&&n.removeChild(this)}function wI(){return this.each(vI)}function xI(){var n=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(n,this.nextSibling):n}function kI(){var n=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(n,this.nextSibling):n}function SI(n){return this.select(n?kI:xI)}function EI(n){return arguments.length?this.property("__data__",n):this.node().__data__}function CI(n){return function(e){n.call(this,e,this.__data__)}}function TI(n){return n.trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");return r>=0&&(t=e.slice(r+1),e=e.slice(0,r)),{type:e,name:t}})}function AI(n){return function(){var e=this.__on;if(e){for(var t=0,r=-1,i=e.length,o;t<i;++t)o=e[t],(!n.type||o.type===n.type)&&o.name===n.name?this.removeEventListener(o.type,o.listener,o.options):e[++r]=o;++r?e.length=r:delete this.__on}}}function MI(n,e,t){return function(){var r=this.__on,i,o=CI(e);if(r){for(var s=0,a=r.length;s<a;++s)if((i=r[s]).type===n.type&&i.name===n.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=t),i.value=e;return}}this.addEventListener(n.type,o,t),i={type:n.type,name:n.name,value:e,listener:o,options:t},r?r.push(i):this.__on=[i]}}function NI(n,e,t){var r=TI(n+""),i,o=r.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,u;l<c;++l)for(i=0,u=a[l];i<o;++i)if((s=r[i]).type===u.type&&s.name===u.name)return u.value}return}for(a=e?MI:AI,i=0;i<o;++i)this.each(a(r[i],e,t));return this}function j2(n,e,t){var r=U2(n),i=r.CustomEvent;typeof i=="function"?i=new i(e,t):(i=r.document.createEvent("Event"),t?(i.initEvent(e,t.bubbles,t.cancelable),i.detail=t.detail):i.initEvent(e,!1,!1)),n.dispatchEvent(i)}function DI(n,e){return function(){return j2(this,n,e)}}function RI(n,e){return function(){return j2(this,n,e.apply(this,arguments))}}function OI(n,e){return this.each((typeof e=="function"?RI:DI)(n,e))}function*II(){for(var n=this._groups,e=0,t=n.length;e<t;++e)for(var r=n[e],i=0,o=r.length,s;i<o;++i)(s=r[i])&&(yield s)}var Q2=[null];function $n(n,e){this._groups=n,this._parents=e}function ma(){return new $n([[document.documentElement]],Q2)}function LI(){return this}$n.prototype=ma.prototype={constructor:$n,select:aO,selectAll:dO,selectChild:mO,selectChildren:yO,filter:vO,data:CO,enter:wO,exit:AO,join:MO,merge:NO,selection:LI,order:DO,sort:RO,call:IO,nodes:LO,node:BO,size:PO,empty:FO,each:zO,attr:WO,style:YO,property:eI,classed:iI,text:lI,html:hI,raise:pI,lower:gI,append:bI,insert:yI,remove:wI,clone:SI,datum:EI,on:NI,dispatch:OI,[Symbol.iterator]:II};function BI(n){return typeof n=="string"?new $n([[document.querySelector(n)]],[document.documentElement]):new $n([[n]],Q2)}function Y2(n){let e;for(;e=n.sourceEvent;)n=e;return n}function PI(n,e){if(n=Y2(n),e===void 0&&(e=n.currentTarget),e){var t=e.ownerSVGElement||e;if(t.createSVGPoint){var r=t.createSVGPoint();return r.x=n.clientX,r.y=n.clientY,r=r.matrixTransform(e.getScreenCTM().inverse()),[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[n.clientX-i.left-e.clientLeft,n.clientY-i.top-e.clientTop]}}return[n.pageX,n.pageY]}function FI(n,e){return n.target&&(n=Y2(n),e===void 0&&(e=n.currentTarget),n=n.touches||[n]),Array.from(n,t=>PI(t,e))}function op(n,e,t){n.prototype=e.prototype=t,t.constructor=n}function Z2(n,e){var t=Object.create(n.prototype);for(var r in e)t[r]=e[r];return t}function ga(){}var ba=.7,Hc=1/ba,es="\\s*([+-]?\\d+)\\s*",_a="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zI=/^#([0-9a-f]{3,8})$/,qI=new RegExp(`^rgb\\(${es},${es},${es}\\)$`),HI=new RegExp(`^rgb\\(${Dr},${Dr},${Dr}\\)$`),VI=new RegExp(`^rgba\\(${es},${es},${es},${_a}\\)$`),UI=new RegExp(`^rgba\\(${Dr},${Dr},${Dr},${_a}\\)$`),GI=new RegExp(`^hsl\\(${_a},${Dr},${Dr}\\)$`),$I=new RegExp(`^hsla\\(${_a},${Dr},${Dr},${_a}\\)$`),X2={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};op(ga,ya,{copy(n){return Object.assign(new this.constructor,this,n)},displayable(){return this.rgb().displayable()},hex:J2,formatHex:J2,formatHex8:WI,formatHsl:KI,formatRgb:e3,toString:e3});function J2(){return this.rgb().formatHex()}function WI(){return this.rgb().formatHex8()}function KI(){return o3(this).formatHsl()}function e3(){return this.rgb().formatRgb()}function ya(n){var e,t;return n=(n+"").trim().toLowerCase(),(e=zI.exec(n))?(t=e[1].length,e=parseInt(e[1],16),t===6?t3(e):t===3?new Bn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):t===8?Vc(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):t===4?Vc(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=qI.exec(n))?new Bn(e[1],e[2],e[3],1):(e=HI.exec(n))?new Bn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=VI.exec(n))?Vc(e[1],e[2],e[3],e[4]):(e=UI.exec(n))?Vc(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=GI.exec(n))?i3(e[1],e[2]/100,e[3]/100,1):(e=$I.exec(n))?i3(e[1],e[2]/100,e[3]/100,e[4]):X2.hasOwnProperty(n)?t3(X2[n]):n==="transparent"?new Bn(NaN,NaN,NaN,0):null}function t3(n){return new Bn(n>>16&255,n>>8&255,n&255,1)}function Vc(n,e,t,r){return r<=0&&(n=e=t=NaN),new Bn(n,e,t,r)}function jI(n){return n instanceof ga||(n=ya(n)),n?(n=n.rgb(),new Bn(n.r,n.g,n.b,n.opacity)):new Bn}function sp(n,e,t,r){return arguments.length===1?jI(n):new Bn(n,e,t,r??1)}function Bn(n,e,t,r){this.r=+n,this.g=+e,this.b=+t,this.opacity=+r}op(Bn,sp,Z2(ga,{brighter(n){return n=n==null?Hc:Math.pow(Hc,n),new Bn(this.r*n,this.g*n,this.b*n,this.opacity)},darker(n){return n=n==null?ba:Math.pow(ba,n),new Bn(this.r*n,this.g*n,this.b*n,this.opacity)},rgb(){return this},clamp(){return new Bn(go(this.r),go(this.g),go(this.b),Uc(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:n3,formatHex:n3,formatHex8:QI,formatRgb:r3,toString:r3}));function n3(){return`#${bo(this.r)}${bo(this.g)}${bo(this.b)}`}function QI(){return`#${bo(this.r)}${bo(this.g)}${bo(this.b)}${bo((isNaN(this.opacity)?1:this.opacity)*255)}`}function r3(){const n=Uc(this.opacity);return`${n===1?"rgb(":"rgba("}${go(this.r)}, ${go(this.g)}, ${go(this.b)}${n===1?")":`, ${n})`}`}function Uc(n){return isNaN(n)?1:Math.max(0,Math.min(1,n))}function go(n){return Math.max(0,Math.min(255,Math.round(n)||0))}function bo(n){return n=go(n),(n<16?"0":"")+n.toString(16)}function i3(n,e,t,r){return r<=0?n=e=t=NaN:t<=0||t>=1?n=e=NaN:e<=0&&(n=NaN),new gr(n,e,t,r)}function o3(n){if(n instanceof gr)return new gr(n.h,n.s,n.l,n.opacity);if(n instanceof ga||(n=ya(n)),!n)return new gr;if(n instanceof gr)return n;n=n.rgb();var e=n.r/255,t=n.g/255,r=n.b/255,i=Math.min(e,t,r),o=Math.max(e,t,r),s=NaN,a=o-i,l=(o+i)/2;return a?(e===o?s=(t-r)/a+(t<r)*6:t===o?s=(r-e)/a+2:s=(e-t)/a+4,a/=l<.5?o+i:2-o-i,s*=60):a=l>0&&l<1?0:s,new gr(s,a,l,n.opacity)}function YI(n,e,t,r){return arguments.length===1?o3(n):new gr(n,e,t,r??1)}function gr(n,e,t,r){this.h=+n,this.s=+e,this.l=+t,this.opacity=+r}op(gr,YI,Z2(ga,{brighter(n){return n=n==null?Hc:Math.pow(Hc,n),new gr(this.h,this.s,this.l*n,this.opacity)},darker(n){return n=n==null?ba:Math.pow(ba,n),new gr(this.h,this.s,this.l*n,this.opacity)},rgb(){var n=this.h%360+(this.h<0)*360,e=isNaN(n)||isNaN(this.s)?0:this.s,t=this.l,r=t+(t<.5?t:1-t)*e,i=2*t-r;return new Bn(ap(n>=240?n-240:n+120,i,r),ap(n,i,r),ap(n<120?n+240:n-120,i,r),this.opacity)},clamp(){return new gr(s3(this.h),Gc(this.s),Gc(this.l),Uc(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const n=Uc(this.opacity);return`${n===1?"hsl(":"hsla("}${s3(this.h)}, ${Gc(this.s)*100}%, ${Gc(this.l)*100}%${n===1?")":`, ${n})`}`}}));function s3(n){return n=(n||0)%360,n<0?n+360:n}function Gc(n){return Math.max(0,Math.min(1,n||0))}function ap(n,e,t){return(n<60?e+(t-e)*n/60:n<180?t:n<240?e+(t-e)*(240-n)/60:e)*255}const a3=n=>()=>n;function ZI(n,e){return function(t){return n+t*e}}function XI(n,e,t){return n=Math.pow(n,t),e=Math.pow(e,t)-n,t=1/t,function(r){return Math.pow(n+r*e,t)}}function JI(n){return(n=+n)==1?l3:function(e,t){return t-e?XI(e,t,n):a3(isNaN(e)?t:e)}}function l3(n,e){var t=e-n;return t?ZI(n,t):a3(isNaN(n)?e:n)}const c3=function n(e){var t=JI(e);function r(i,o){var s=t((i=sp(i)).r,(o=sp(o)).r),a=t(i.g,o.g),l=t(i.b,o.b),c=l3(i.opacity,o.opacity);return function(u){return i.r=s(u),i.g=a(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=n,r}(1);function Mi(n,e){return n=+n,e=+e,function(t){return n*(1-t)+e*t}}var lp=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cp=new RegExp(lp.source,"g");function eL(n){return function(){return n}}function tL(n){return function(e){return n(e)+""}}function nL(n,e){var t=lp.lastIndex=cp.lastIndex=0,r,i,o,s=-1,a=[],l=[];for(n=n+"",e=e+"";(r=lp.exec(n))&&(i=cp.exec(e));)(o=i.index)>t&&(o=e.slice(t,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,l.push({i:s,x:Mi(r,i)})),t=cp.lastIndex;return t<e.length&&(o=e.slice(t),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?tL(l[0].x):eL(e):(e=l.length,function(c){for(var u=0,h;u<e;++u)a[(h=l[u]).i]=h.x(c);return a.join("")})}var u3=180/Math.PI,up={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function d3(n,e,t,r,i,o){var s,a,l;return(s=Math.sqrt(n*n+e*e))&&(n/=s,e/=s),(l=n*t+e*r)&&(t-=n*l,r-=e*l),(a=Math.sqrt(t*t+r*r))&&(t/=a,r/=a,l/=a),n*r<e*t&&(n=-n,e=-e,l=-l,s=-s),{translateX:i,translateY:o,rotate:Math.atan2(e,n)*u3,skewX:Math.atan(l)*u3,scaleX:s,scaleY:a}}var $c;function rL(n){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(n+"");return e.isIdentity?up:d3(e.a,e.b,e.c,e.d,e.e,e.f)}function iL(n){return n==null||($c||($c=document.createElementNS("http://www.w3.org/2000/svg","g")),$c.setAttribute("transform",n),!(n=$c.transform.baseVal.consolidate()))?up:(n=n.matrix,d3(n.a,n.b,n.c,n.d,n.e,n.f))}function h3(n,e,t,r){function i(c){return c.length?c.pop()+" ":""}function o(c,u,h,g,b,p){if(c!==h||u!==g){var v=b.push("translate(",null,e,null,t);p.push({i:v-4,x:Mi(c,h)},{i:v-2,x:Mi(u,g)})}else(h||g)&&b.push("translate("+h+e+g+t)}function s(c,u,h,g){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),g.push({i:h.push(i(h)+"rotate(",null,r)-2,x:Mi(c,u)})):u&&h.push(i(h)+"rotate("+u+r)}function a(c,u,h,g){c!==u?g.push({i:h.push(i(h)+"skewX(",null,r)-2,x:Mi(c,u)}):u&&h.push(i(h)+"skewX("+u+r)}function l(c,u,h,g,b,p){if(c!==h||u!==g){var v=b.push(i(b)+"scale(",null,",",null,")");p.push({i:v-4,x:Mi(c,h)},{i:v-2,x:Mi(u,g)})}else(h!==1||g!==1)&&b.push(i(b)+"scale("+h+","+g+")")}return function(c,u){var h=[],g=[];return c=n(c),u=n(u),o(c.translateX,c.translateY,u.translateX,u.translateY,h,g),s(c.rotate,u.rotate,h,g),a(c.skewX,u.skewX,h,g),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,h,g),c=u=null,function(b){for(var p=-1,v=g.length,w;++p<v;)h[(w=g[p]).i]=w.x(b);return h.join("")}}}var oL=h3(rL,"px, ","px)","deg)"),sL=h3(iL,", ",")",")"),ts=0,va=0,wa=0,f3=1e3,Wc,xa,Kc=0,_o=0,jc=0,ka=typeof performance=="object"&&performance.now?performance:Date,p3=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(n){setTimeout(n,17)};function dp(){return _o||(p3(aL),_o=ka.now()+jc)}function aL(){_o=0}function Qc(){this._call=this._time=this._next=null}Qc.prototype=m3.prototype={constructor:Qc,restart:function(n,e,t){if(typeof n!="function")throw new TypeError("callback is not a function");t=(t==null?dp():+t)+(e==null?0:+e),!this._next&&xa!==this&&(xa?xa._next=this:Wc=this,xa=this),this._call=n,this._time=t,hp()},stop:function(){this._call&&(this._call=null,this._time=1/0,hp())}};function m3(n,e,t){var r=new Qc;return r.restart(n,e,t),r}function lL(){dp(),++ts;for(var n=Wc,e;n;)(e=_o-n._time)>=0&&n._call.call(void 0,e),n=n._next;--ts}function g3(){_o=(Kc=ka.now())+jc,ts=va=0;try{lL()}finally{ts=0,uL(),_o=0}}function cL(){var n=ka.now(),e=n-Kc;e>f3&&(jc-=e,Kc=n)}function uL(){for(var n,e=Wc,t,r=1/0;e;)e._call?(r>e._time&&(r=e._time),n=e,e=e._next):(t=e._next,e._next=null,e=n?n._next=t:Wc=t);xa=n,hp(r)}function hp(n){if(!ts){va&&(va=clearTimeout(va));var e=n-_o;e>24?(n<1/0&&(va=setTimeout(g3,n-ka.now()-jc)),wa&&(wa=clearInterval(wa))):(wa||(Kc=ka.now(),wa=setInterval(cL,f3)),ts=1,p3(g3))}}function b3(n,e,t){var r=new Qc;return e=e==null?0:+e,r.restart(i=>{r.stop(),n(i+e)},e,t),r}var dL=L2("start","end","cancel","interrupt"),hL=[],_3=0,y3=1,fp=2,Yc=3,v3=4,pp=5,Zc=6;function Xc(n,e,t,r,i,o){var s=n.__transition;if(!s)n.__transition={};else if(t in s)return;fL(n,t,{name:e,index:r,group:i,on:dL,tween:hL,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:_3})}function mp(n,e){var t=br(n,e);if(t.state>_3)throw new Error("too late; already scheduled");return t}function Rr(n,e){var t=br(n,e);if(t.state>Yc)throw new Error("too late; already running");return t}function br(n,e){var t=n.__transition;if(!t||!(t=t[e]))throw new Error("transition not found");return t}function fL(n,e,t){var r=n.__transition,i;r[e]=t,t.timer=m3(o,0,t.time);function o(c){t.state=y3,t.timer.restart(s,t.delay,t.time),t.delay<=c&&s(c-t.delay)}function s(c){var u,h,g,b;if(t.state!==y3)return l();for(u in r)if(b=r[u],b.name===t.name){if(b.state===Yc)return b3(s);b.state===v3?(b.state=Zc,b.timer.stop(),b.on.call("interrupt",n,n.__data__,b.index,b.group),delete r[u]):+u<e&&(b.state=Zc,b.timer.stop(),b.on.call("cancel",n,n.__data__,b.index,b.group),delete r[u])}if(b3(function(){t.state===Yc&&(t.state=v3,t.timer.restart(a,t.delay,t.time),a(c))}),t.state=fp,t.on.call("start",n,n.__data__,t.index,t.group),t.state===fp){for(t.state=Yc,i=new Array(g=t.tween.length),u=0,h=-1;u<g;++u)(b=t.tween[u].value.call(n,n.__data__,t.index,t.group))&&(i[++h]=b);i.length=h+1}}function a(c){for(var u=c<t.duration?t.ease.call(null,c/t.duration):(t.timer.restart(l),t.state=pp,1),h=-1,g=i.length;++h<g;)i[h].call(n,u);t.state===pp&&(t.on.call("end",n,n.__data__,t.index,t.group),l())}function l(){t.state=Zc,t.timer.stop(),delete r[e];for(var c in r)return;delete n.__transition}}function pL(n,e){var t=n.__transition,r,i,o=!0,s;if(t){e=e==null?null:e+"";for(s in t){if((r=t[s]).name!==e){o=!1;continue}i=r.state>fp&&r.state<pp,r.state=Zc,r.timer.stop(),r.on.call(i?"interrupt":"cancel",n,n.__data__,r.index,r.group),delete t[s]}o&&delete n.__transition}}function mL(n){return this.each(function(){pL(this,n)})}function gL(n,e){var t,r;return function(){var i=Rr(this,n),o=i.tween;if(o!==t){r=t=o;for(var s=0,a=r.length;s<a;++s)if(r[s].name===e){r=r.slice(),r.splice(s,1);break}}i.tween=r}}function bL(n,e,t){var r,i;if(typeof t!="function")throw new Error;return function(){var o=Rr(this,n),s=o.tween;if(s!==r){i=(r=s).slice();for(var a={name:e,value:t},l=0,c=i.length;l<c;++l)if(i[l].name===e){i[l]=a;break}l===c&&i.push(a)}o.tween=i}}function _L(n,e){var t=this._id;if(n+="",arguments.length<2){for(var r=br(this.node(),t).tween,i=0,o=r.length,s;i<o;++i)if((s=r[i]).name===n)return s.value;return null}return this.each((e==null?gL:bL)(t,n,e))}function gp(n,e,t){var r=n._id;return n.each(function(){var i=Rr(this,r);(i.value||(i.value={}))[e]=t.apply(this,arguments)}),function(i){return br(i,r).value[e]}}function w3(n,e){var t;return(typeof e=="number"?Mi:e instanceof ya?c3:(t=ya(e))?(e=t,c3):nL)(n,e)}function yL(n){return function(){this.removeAttribute(n)}}function vL(n){return function(){this.removeAttributeNS(n.space,n.local)}}function wL(n,e,t){var r,i=t+"",o;return function(){var s=this.getAttribute(n);return s===i?null:s===r?o:o=e(r=s,t)}}function xL(n,e,t){var r,i=t+"",o;return function(){var s=this.getAttributeNS(n.space,n.local);return s===i?null:s===r?o:o=e(r=s,t)}}function kL(n,e,t){var r,i,o;return function(){var s,a=t(this),l;return a==null?void this.removeAttribute(n):(s=this.getAttribute(n),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function SL(n,e,t){var r,i,o;return function(){var s,a=t(this),l;return a==null?void this.removeAttributeNS(n.space,n.local):(s=this.getAttributeNS(n.space,n.local),l=a+"",s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a)))}}function EL(n,e){var t=zc(n),r=t==="transform"?sL:w3;return this.attrTween(n,typeof e=="function"?(t.local?SL:kL)(t,r,gp(this,"attr."+n,e)):e==null?(t.local?vL:yL)(t):(t.local?xL:wL)(t,r,e))}function CL(n,e){return function(t){this.setAttribute(n,e.call(this,t))}}function TL(n,e){return function(t){this.setAttributeNS(n.space,n.local,e.call(this,t))}}function AL(n,e){var t,r;function i(){var o=e.apply(this,arguments);return o!==r&&(t=(r=o)&&TL(n,o)),t}return i._value=e,i}function ML(n,e){var t,r;function i(){var o=e.apply(this,arguments);return o!==r&&(t=(r=o)&&CL(n,o)),t}return i._value=e,i}function NL(n,e){var t="attr."+n;if(arguments.length<2)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;var r=zc(n);return this.tween(t,(r.local?AL:ML)(r,e))}function DL(n,e){return function(){mp(this,n).delay=+e.apply(this,arguments)}}function RL(n,e){return e=+e,function(){mp(this,n).delay=e}}function OL(n){var e=this._id;return arguments.length?this.each((typeof n=="function"?DL:RL)(e,n)):br(this.node(),e).delay}function IL(n,e){return function(){Rr(this,n).duration=+e.apply(this,arguments)}}function LL(n,e){return e=+e,function(){Rr(this,n).duration=e}}function BL(n){var e=this._id;return arguments.length?this.each((typeof n=="function"?IL:LL)(e,n)):br(this.node(),e).duration}function PL(n,e){if(typeof e!="function")throw new Error;return function(){Rr(this,n).ease=e}}function FL(n){var e=this._id;return arguments.length?this.each(PL(e,n)):br(this.node(),e).ease}function zL(n,e){return function(){var t=e.apply(this,arguments);if(typeof t!="function")throw new Error;Rr(this,n).ease=t}}function qL(n){if(typeof n!="function")throw new Error;return this.each(zL(this._id,n))}function HL(n){typeof n!="function"&&(n=q2(n));for(var e=this._groups,t=e.length,r=new Array(t),i=0;i<t;++i)for(var o=e[i],s=o.length,a=r[i]=[],l,c=0;c<s;++c)(l=o[c])&&n.call(l,l.__data__,c,o)&&a.push(l);return new Zr(r,this._parents,this._name,this._id)}function VL(n){if(n._id!==this._id)throw new Error;for(var e=this._groups,t=n._groups,r=e.length,i=t.length,o=Math.min(r,i),s=new Array(r),a=0;a<o;++a)for(var l=e[a],c=t[a],u=l.length,h=s[a]=new Array(u),g,b=0;b<u;++b)(g=l[b]||c[b])&&(h[b]=g);for(;a<r;++a)s[a]=e[a];return new Zr(s,this._parents,this._name,this._id)}function UL(n){return(n+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||e==="start"})}function GL(n,e,t){var r,i,o=UL(e)?mp:Rr;return function(){var s=o(this,n),a=s.on;a!==r&&(i=(r=a).copy()).on(e,t),s.on=i}}function $L(n,e){var t=this._id;return arguments.length<2?br(this.node(),t).on.on(n):this.each(GL(t,n,e))}function WL(n){return function(){var e=this.parentNode;for(var t in this.__transition)if(+t!==n)return;e&&e.removeChild(this)}}function KL(){return this.on("end.remove",WL(this._id))}function jL(n){var e=this._name,t=this._id;typeof n!="function"&&(n=rp(n));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s<i;++s)for(var a=r[s],l=a.length,c=o[s]=new Array(l),u,h,g=0;g<l;++g)(u=a[g])&&(h=n.call(u,u.__data__,g,a))&&("__data__"in u&&(h.__data__=u.__data__),c[g]=h,Xc(c[g],e,t,g,c,br(u,t)));return new Zr(o,this._parents,e,t)}function QL(n){var e=this._name,t=this._id;typeof n!="function"&&(n=z2(n));for(var r=this._groups,i=r.length,o=[],s=[],a=0;a<i;++a)for(var l=r[a],c=l.length,u,h=0;h<c;++h)if(u=l[h]){for(var g=n.call(u,u.__data__,h,l),b,p=br(u,t),v=0,w=g.length;v<w;++v)(b=g[v])&&Xc(b,e,t,v,g,p);o.push(g),s.push(u)}return new Zr(o,s,e,t)}var YL=ma.prototype.constructor;function ZL(){return new YL(this._groups,this._parents)}function XL(n,e){var t,r,i;return function(){var o=Jo(this,n),s=(this.style.removeProperty(n),Jo(this,n));return o===s?null:o===t&&s===r?i:i=e(t=o,r=s)}}function x3(n){return function(){this.style.removeProperty(n)}}function JL(n,e,t){var r,i=t+"",o;return function(){var s=Jo(this,n);return s===i?null:s===r?o:o=e(r=s,t)}}function eB(n,e,t){var r,i,o;return function(){var s=Jo(this,n),a=t(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(n),Jo(this,n))),s===l?null:s===r&&l===i?o:(i=l,o=e(r=s,a))}}function tB(n,e){var t,r,i,o="style."+e,s="end."+o,a;return function(){var l=Rr(this,n),c=l.on,u=l.value[o]==null?a||(a=x3(e)):void 0;(c!==t||i!==u)&&(r=(t=c).copy()).on(s,i=u),l.on=r}}function nB(n,e,t){var r=(n+="")=="transform"?oL:w3;return e==null?this.styleTween(n,XL(n,r)).on("end.style."+n,x3(n)):typeof e=="function"?this.styleTween(n,eB(n,r,gp(this,"style."+n,e))).each(tB(this._id,n)):this.styleTween(n,JL(n,r,e),t).on("end.style."+n,null)}function rB(n,e,t){return function(r){this.style.setProperty(n,e.call(this,r),t)}}function iB(n,e,t){var r,i;function o(){var s=e.apply(this,arguments);return s!==i&&(r=(i=s)&&rB(n,s,t)),r}return o._value=e,o}function oB(n,e,t){var r="style."+(n+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!="function")throw new Error;return this.tween(r,iB(n,e,t??""))}function sB(n){return function(){this.textContent=n}}function aB(n){return function(){var e=n(this);this.textContent=e??""}}function lB(n){return this.tween("text",typeof n=="function"?aB(gp(this,"text",n)):sB(n==null?"":n+""))}function cB(n){return function(e){this.textContent=n.call(this,e)}}function uB(n){var e,t;function r(){var i=n.apply(this,arguments);return i!==t&&(e=(t=i)&&cB(i)),e}return r._value=n,r}function dB(n){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(n==null)return this.tween(e,null);if(typeof n!="function")throw new Error;return this.tween(e,uB(n))}function hB(){for(var n=this._name,e=this._id,t=k3(),r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var u=br(l,e);Xc(l,n,t,c,s,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Zr(r,this._parents,n,t)}function fB(){var n,e,t=this,r=t._id,i=t.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--i===0&&o()}};t.each(function(){var c=Rr(this,r),u=c.on;u!==n&&(e=(n=u).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),i===0&&o()})}var pB=0;function Zr(n,e,t,r){this._groups=n,this._parents=e,this._name=t,this._id=r}function k3(){return++pB}var Xr=ma.prototype;Zr.prototype={constructor:Zr,select:jL,selectAll:QL,selectChild:Xr.selectChild,selectChildren:Xr.selectChildren,filter:HL,merge:VL,selection:ZL,transition:hB,call:Xr.call,nodes:Xr.nodes,node:Xr.node,size:Xr.size,empty:Xr.empty,each:Xr.each,on:$L,attr:EL,attrTween:NL,style:nB,styleTween:oB,text:lB,textTween:dB,remove:KL,tween:_L,delay:OL,duration:BL,ease:FL,easeVarying:qL,end:fB,[Symbol.iterator]:Xr[Symbol.iterator]};function mB(n){return((n*=2)<=1?n*n*n:(n-=2)*n*n+2)/2}var gB={time:null,delay:0,duration:250,ease:mB};function bB(n,e){for(var t;!(t=n.__transition)||!(t=t[e]);)if(!(n=n.parentNode))throw new Error(`transition ${e} not found`);return t}function _B(n){var e,t;n instanceof Zr?(e=n._id,n=n._name):(e=k3(),(t=gB).time=dp(),n=n==null?null:n+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var s=r[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&Xc(l,n,e,c,s,t||bB(l,e));return new Zr(r,this._parents,n,e)}ma.prototype.interrupt=mL,ma.prototype.transition=_B;const bp=Math.PI,_p=2*bp,yo=1e-6,yB=_p-yo;function S3(n){this._+=n[0];for(let e=1,t=n.length;e<t;++e)this._+=arguments[e]+n[e]}function vB(n){let e=Math.floor(n);if(!(e>=0))throw new Error(`invalid digits: ${n}`);if(e>15)return S3;const t=10**e;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*t)/t+r[i]}}class wB{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?S3:vB(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,i){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(e,t,r,i,o,s){this._append`C${+e},${+t},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(e,t,r,i,o){if(e=+e,t=+t,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=r-e,c=i-t,u=s-e,h=a-t,g=u*u+h*h;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(g>yo)if(!(Math.abs(h*l-c*u)>yo)||!o)this._append`L${this._x1=e},${this._y1=t}`;else{let b=r-s,p=i-a,v=l*l+c*c,w=b*b+p*p,S=Math.sqrt(v),C=Math.sqrt(g),E=o*Math.tan((bp-Math.acos((v+g-w)/(2*S*C)))/2),A=E/C,R=E/S;Math.abs(A-1)>yo&&this._append`L${e+A*u},${t+A*h}`,this._append`A${o},${o},0,0,${+(h*b>u*p)},${this._x1=e+R*l},${this._y1=t+R*c}`}}arc(e,t,r,i,o,s){if(e=+e,t=+t,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(i),l=r*Math.sin(i),c=e+a,u=t+l,h=1^s,g=s?i-o:o-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>yo||Math.abs(this._y1-u)>yo)&&this._append`L${c},${u}`,r&&(g<0&&(g=g%_p+_p),g>yB?this._append`A${r},${r},0,1,${h},${e-a},${t-l}A${r},${r},0,1,${h},${this._x1=c},${this._y1=u}`:g>yo&&this._append`A${r},${r},0,${+(g>=bp)},${h},${this._x1=e+r*Math.cos(o)},${this._y1=t+r*Math.sin(o)}`)}rect(e,t,r,i){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function ns(n){return function(){return n}}function xB(n){let e=3;return n.digits=function(t){if(!arguments.length)return e;if(t==null)e=null;else{const r=Math.floor(t);if(!(r>=0))throw new RangeError(`invalid digits: ${t}`);e=r}return n},()=>new wB(e)}function kB(n){return typeof n=="object"&&"length"in n?n:Array.from(n)}function E3(n){this._context=n}E3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,e){switch(n=+n,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;default:this._context.lineTo(n,e);break}}};function SB(n){return new E3(n)}function EB(n){return n[0]}function CB(n){return n[1]}function TB(n,e){var t=ns(!0),r=null,i=SB,o=null,s=xB(a);n=typeof n=="function"?n:n===void 0?EB:ns(n),e=typeof e=="function"?e:e===void 0?CB:ns(e);function a(l){var c,u=(l=kB(l)).length,h,g=!1,b;for(r==null&&(o=i(b=s())),c=0;c<=u;++c)!(c<u&&t(h=l[c],c,l))===g&&((g=!g)?o.lineStart():o.lineEnd()),g&&o.point(+n(h,c,l),+e(h,c,l));if(b)return o=null,b+""||null}return a.x=function(l){return arguments.length?(n=typeof l=="function"?l:ns(+l),a):n},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:ns(+l),a):e},a.defined=function(l){return arguments.length?(t=typeof l=="function"?l:ns(!!l),a):t},a.curve=function(l){return arguments.length?(i=l,r!=null&&(o=i(r)),a):i},a.context=function(l){return arguments.length?(l==null?r=o=null:o=i(r=l),a):r},a}function C3(n,e,t){n._context.bezierCurveTo((2*n._x0+n._x1)/3,(2*n._y0+n._y1)/3,(n._x0+2*n._x1)/3,(n._y0+2*n._y1)/3,(n._x0+4*n._x1+e)/6,(n._y0+4*n._y1+t)/6)}function T3(n){this._context=n}T3.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:C3(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(n,e){switch(n=+n,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(n,e):this._context.moveTo(n,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:C3(this,n,e);break}this._x0=this._x1,this._x1=n,this._y0=this._y1,this._y1=e}};function AB(n){return new T3(n)}function Sa(n,e,t){this.k=n,this.x=e,this.y=t}Sa.prototype={constructor:Sa,scale:function(n){return n===1?this:new Sa(this.k*n,this.x,this.y)},translate:function(n,e){return n===0&e===0?this:new Sa(this.k,this.x+this.k*n,this.y+this.k*e)},apply:function(n){return[n[0]*this.k+this.x,n[1]*this.k+this.y]},applyX:function(n){return n*this.k+this.x},applyY:function(n){return n*this.k+this.y},invert:function(n){return[(n[0]-this.x)/this.k,(n[1]-this.y)/this.k]},invertX:function(n){return(n-this.x)/this.k},invertY:function(n){return(n-this.y)/this.k},rescaleX:function(n){return n.copy().domain(n.range().map(this.invertX,this).map(n.invert,n))},rescaleY:function(n){return n.copy().domain(n.range().map(this.invertY,this).map(n.invert,n))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},Sa.prototype;var yp={exports:{}},A3;function MB(){return A3||(A3=1,function(n){(function(){function e(a,l){var c=a.x-l.x,u=a.y-l.y;return c*c+u*u}function t(a,l,c){var u=l.x,h=l.y,g=c.x-u,b=c.y-h;if(g!==0||b!==0){var p=((a.x-u)*g+(a.y-h)*b)/(g*g+b*b);p>1?(u=c.x,h=c.y):p>0&&(u+=g*p,h+=b*p)}return g=a.x-u,b=a.y-h,g*g+b*b}function r(a,l){for(var c=a[0],u=[c],h,g=1,b=a.length;g<b;g++)h=a[g],e(h,c)>l&&(u.push(h),c=h);return c!==h&&u.push(h),u}function i(a,l,c,u,h){for(var g=u,b,p=l+1;p<c;p++){var v=t(a[p],a[l],a[c]);v>g&&(b=p,g=v)}g>u&&(b-l>1&&i(a,l,b,u,h),h.push(a[b]),c-b>1&&i(a,b,c,u,h))}function o(a,l){var c=a.length-1,u=[a[0]];return i(a,0,c,l,u),u.push(a[c]),u}function s(a,l,c){if(a.length<=2)return a;var u=l!==void 0?l*l:1;return a=c?a:r(a,u),a=o(a,u),a}n.exports=s,n.exports.default=s})()}(yp)),yp.exports}var NB=MB();const DB=Nr(NB),RB={name:"drawingBlock",components:{NodeViewWrapper:io,mediaContainer:Rf},props:{editor:{type:Object},node:{type:Object},decorations:{type:Array},selected:{type:Boolean},extension:{type:Object},getPos:{type:Function},updateAttributes:{type:Function},deleteNode:{type:Function}},data(){return{color:"#000000",size:3,svg:null,path:null,points:[],drawing:!1,id:this.$SUtility.Guid(),colorList:[{name:"gray",color:"#787774"},{name:"purple",color:"#958DF1"},{name:"pink",color:"#f58eda"},{name:"red",color:"#F98181"},{name:"orange",color:"#FBBC88"},{name:"yellow",color:"#FAF594"},{name:"blue",color:"#4086cb"},{name:"teal",color:"#94FADB"},{name:"green",color:"#B9F18D"},{name:"rose",color:"#ee7686"},{name:"fresh_blue",color:"#70CFF8"},{name:"ice_blue",color:"#9fc2ca"},{name:"dark_blue",color:"#0c4a83"},{name:"fresh_green",color:"#55ddb6"}],activeErase:!1,mouseDown:!1,thisTheme:this.editor.storage.defaultStorage.theme,thisForeground:this.editor.storage.defaultStorage.foreground}},watch:{"editor.storage.defaultStorage.theme"(n){this.thisTheme=n},"editor.storage.defaultStorage.foreground"(n){this.thisForeground=n}},computed:{eraseBackground(){return this.activeErase?this.thisForeground:this.thisTheme==="dark"?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)"}},methods:{onStartDrawing(n){if(this.mouseDown=!0,!this.editor.isEditable||this.activeErase)return;this.drawing=!0,this.points=[],this.path=this.svg.append("path").data([this.points]).attr("id",`id-${this.id}`).attr("stroke",this.color).attr("stroke-width",this.size);const e=n.type==="mousedown"?"mousemove":"touchmove";this.svg.on(e,this.onMove)},onMove(n){this.editor.isEditable&&(this.activeErase||(n.preventDefault(),this.points.push(FI(n)[0]),this.tick()))},onEndDrawing(){this.mouseDown=!1,this.editor.isEditable&&(this.activeErase||(this.svg.on("mousemove",null),this.svg.on("touchmove",null),this.drawing&&(this.drawing=!1,this.svg.select(`#id-${this.id}`).remove(),this.id=this.$SUtility.Guid())))},delMe(n){this.activeErase&&this.updateAttributes({lines:this.node.attrs.lines.filter(e=>e.id!==n.id)})},moveDelMe(n){this.mouseDown&&this.activeErase&&this.updateAttributes({lines:this.node.attrs.lines.filter(e=>e.id!==n.id)})},simplifyPoints(n){return DB(n.map(e=>({x:e[0],y:e[1]}))).map(e=>[e.x,e.y])},tick(){requestAnimationFrame(()=>{this.path.attr("d",n=>{const e=TB().curve(AB)(n),t=this.node.attrs.lines.filter(r=>r.id!==this.id);return this.updateAttributes({lines:[...t,{id:this.id,color:this.color,size:this.size,path:e}]}),e})})},clear(){this.updateAttributes({lines:[]})}},mounted(){this.svg=BI(this.$refs.canvas),this.svg.on("mousedown",this.onStartDrawing).on("mouseup",this.onEndDrawing).on("mouseleave",this.onEndDrawing).on("touchstart",this.onStartDrawing).on("touchend",this.onEndDrawing).on("touchleave",this.onEndDrawing)}},OB={class:"power-editor-d-b-container"},IB={class:"power-editor-d-b-block l1"},LB={style:{height:"100%","margin-left":"5px","font-size":"12px",display:"flex","align-items":"center"}},BB={class:"power-editor-d-b-block overlay"},PB={class:"power-editor-d-b-block"},FB=["d","id","stroke","stroke-width","onMousemove","onClick"];function zB(n,e,t,r,i,o){const s=y.resolveComponent("fv-button"),a=y.resolveComponent("fv-slider"),l=y.resolveComponent("media-container"),c=y.resolveComponent("node-view-wrapper");return y.openBlock(),y.createBlock(c,{class:y.normalizeClass(["power-editor-drawing-block-container",[{dark:i.thisTheme==="dark"}]]),style:y.normalizeStyle({"justify-content":t.node.attrs.alignCenter?"center":"flex-start"})},{default:y.withCtx(()=>[y.withDirectives(y.createElementVNode("div",OB,[y.createElementVNode("div",IB,[y.createVNode(s,{theme:i.thisTheme,"font-size":12,borderRadius:50,disabled:i.size<=1,background:i.thisTheme==="dark"?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)",class:"power-editor-d-b-btn __size","border-color":"transparent",onClick:e[0]||(e[0]=u=>i.size=i.size>1?i.size-1:i.size)},{default:y.withCtx(()=>e[5]||(e[5]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Remove"},null,-1)])),_:1,__:[5]},8,["theme","disabled","background"]),y.createVNode(a,{modelValue:i.size,"onUpdate:modelValue":e[1]||(e[1]=u=>i.size=u),theme:i.thisTheme,mininum:1,maxinum:10,icon:"RadioBullet",showLabel:!0,color:i.thisForeground,background:"rgba(245, 245, 245, 0.3)",style:{width:"150px",height:"100%","margin-left":"5px","margin-right":"5px"}},{default:y.withCtx(u=>[y.createElementVNode("span",LB,y.toDisplayString(u.modelValue),1)]),_:1},8,["modelValue","theme","color"]),y.createVNode(s,{theme:i.thisTheme,"font-size":12,borderRadius:50,disabled:i.size>=10,background:i.thisTheme==="dark"?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)",class:"power-editor-d-b-btn __size","border-color":"transparent",onClick:e[2]||(e[2]=u=>i.size=i.size<10?i.size/1+1:i.size)},{default:y.withCtx(()=>e[6]||(e[6]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Add"},null,-1)])),_:1,__:[6]},8,["theme","disabled","background"])]),y.createElementVNode("div",BB,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(i.colorList,(u,h)=>(y.openBlock(),y.createBlock(s,{class:"power-editor-d-b-btn __color",key:"color:"+h,theme:"dark","font-size":12,borderRadius:50,background:u.color,isBoxShadow:i.color!==u.color,onClick:g=>i.color=u.color},{default:y.withCtx(()=>e[7]||(e[7]=[y.createTextVNode(y.toDisplayString(""))])),_:2,__:[7]},1032,["background","isBoxShadow","onClick"]))),128))]),y.createElementVNode("div",PB,[y.createVNode(s,{class:"power-editor-d-b-btn __clear","font-size":10,borderRadius:50,background:o.eraseBackground,theme:i.activeErase?"dark":i.thisTheme,"border-color":"transparent",style:{"margin-right":"5px"},onClick:e[3]||(e[3]=u=>i.activeErase^=!0)},{default:y.withCtx(()=>e[8]||(e[8]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--EraseTool"},null,-1)])),_:1,__:[8]},8,["background","theme"]),y.createVNode(s,{class:"power-editor-d-b-btn __clear","font-size":10,borderRadius:50,background:i.thisTheme==="dark"?"rgba(0, 0, 0, 1)":"rgba(255, 255, 255, 1)",theme:i.thisTheme,"border-color":"transparent",onClick:o.clear},{default:y.withCtx(()=>e[9]||(e[9]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Refresh"},null,-1)])),_:1,__:[9]},8,["background","theme","onClick"])])],512),[[y.vShow,t.editor.isEditable]]),y.createVNode(l,{width:t.node.attrs.width,caption:t.node.attrs.caption,alignCenter:t.node.attrs.alignCenter,editor:t.editor,theme:i.thisTheme,foreground:i.thisForeground,node:t.node,getPos:t.getPos,"onUpdate:caption":e[4]||(e[4]=u=>t.updateAttributes({caption:u}))},{default:y.withCtx(()=>[(y.openBlock(),y.createElementBlock("svg",{class:y.normalizeClass(["canvas-svg",[{readonly:!t.editor.isEditable}]]),viewBox:"0 0 500 250",ref:"canvas"},[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(t.node.attrs.lines,u=>(y.openBlock(),y.createElementBlock(y.Fragment,null,[u.id!==i.id?(y.openBlock(),y.createElementBlock("path",{key:u.id,d:u.path,id:`id-${u.id}`,stroke:u.color,"stroke-width":u.size,onMousemove:h=>o.moveDelMe(u),onClick:h=>o.delMe(u)},null,40,FB)):y.createCommentVNode("",!0)],64))),256))],2))]),_:1},8,["width","caption","alignCenter","editor","theme","foreground","node","getPos"])]),_:1},8,["class","style"])}const qB=an(RB,[["render",zB]]),HB=Hn.create({name:"drawingBlock",group:"block",draggable:!0,atom:!0,addAttributes(){return{lines:{default:[]},width:{default:100},caption:{default:""},alignCenter:{default:!0}}},parseHTML(){return[{tag:"drawing-block"}]},renderHTML({HTMLAttributes:n}){return["drawing-block",jt(n)]},addNodeView(){return vi(qB)}}),VB=Mn.create({name:"formatPainter",addOptions(){return{}},addStorage(){return{formatPainterStatus:"off",formatPainterList:{marks:[],attributes:[]}}},addCommands(){let n={bold:{func:"setBold",cancelFunc:"unsetBold"},italic:{func:"setItalic",cancelFunc:"unsetItalic"},underline:{func:"setUnderline",cancelFunc:"unsetUnderline"},strike:{func:"setStrike",cancelFunc:"unsetStrike"},blockquote:{func:"setBlockquote",cancelFunc:"unsetBlockquote"},superscript:{func:"setSuperscript",cancelFunc:"unsetSuperscript"},subscript:{func:"setSubscript",cancelFunc:"unsetSubscript"},powerTaskList:{func:"setPowerTaskList"},bulletList:{func:"setBulletList"},orderedList:{func:"setOrderedList"},textAlignLeft:{alias:"textAlign",func:"setTextAlign",value:"left"},textAlignCenter:{alias:"textAlign",func:"setTextAlign",value:"center"},textAlignRight:{alias:"textAlign",func:"setTextAlign",value:"right"},textAlignJustify:{alias:"textAlign",func:"setTextAlign",value:"justify"},code:{func:"setCode",cancelFunc:"unsetCode"},codeBlock:{func:"setCodeBlock"}},e={heading:{func:"setHeading",cancelFunc:"unsetHeading"},textStyle:{func:"setColor",deconstructKey:"color",cancelFunc:"unsetColor"},highlight:{func:"setHighlight",cancelFunc:"unsetHighlight"}};return{detectFormat:()=>({editor:t})=>{let r=[],i=[];for(let o in e){let s=t.getAttributes(o);if(Object.keys(s).length>0){let a=e[o];i.push({name:o,value:a.deconstructKey?s[a.deconstructKey]:s,func:a.func})}else if(e[o].cancelFunc){let a=e[o];i.push({name:o,func:a.cancelFunc})}}for(let o in n){let s=n[o].alias||o,a=!1;if(n[o].value){let l={};l[s]=n[o].value,a=t.isActive(l)}else a=t.isActive(o);if(a){let l={name:s,func:n[o].func};n[o].value&&(l.value=n[o].value),r.push(l)}else if(n[o].cancelFunc){let l={name:s,func:n[o].cancelFunc};r.push(l)}}return t.storage.formatPainter.formatPainterList={marks:r,attributes:i},{marks:r,attributes:i}},pasteFormat:()=>({editor:t,commands:r})=>{const{marks:i,attributes:o}=t.storage.formatPainter.formatPainterList;for(let s of i)s.value?r[s.func](s.value):r[s.func]();for(let s of o)s.value?r[s.func](s.value):r[s.func]();return!0},setFormatPainter:()=>({editor:t})=>{t.storage.formatPainter.formatPainterStatus="once"},stickyFormatPainter:()=>({editor:t})=>{t.storage.formatPainter.formatPainterStatus="on"},unsetFormatPainter:()=>({editor:t})=>{t.storage.formatPainter.formatPainterStatus="off"},unsetHeading:()=>({editor:t,commands:r})=>{let i=t.getAttributes("heading").level;if(i)return r.toggleHeading({level:i})},setBulletList:()=>({editor:t,commands:r})=>{if(!t.isActive("bulletList"))return r.toggleBulletList()},setOrderedList:()=>({editor:t,commands:r})=>{if(!t.isActive("orderedList"))return r.toggleOrderedList()}}},addKeyboardShortcuts(){return{"Alt-c":()=>this.editor.commands.detectFormat(),"Alt-v":()=>this.editor.commands.pasteFormat()}}}),UB={emits:["update:show"],props:{popperClass:{default:[]},title:{default:"Title"},show:{default:!1},mobileMode:{default:!1},foreground:{default:""},language:{default:"en"},theme:{default:"light"}},data(){return{thisShow:!1}},watch:{show(n){this.thisShow=n},thisShow(n){this.$emit("update:show",n)}},methods:{getTitle(n){return or(n,this.language)},triggerShow(){console.log(111),this.thisShow=!0}},beforeUnmount(){try{document.querySelector("body").removeChild(this.$el)}catch{}}},GB={style:{"font-size":"13.8px"}},$B={key:1},WB={class:"p-e-c-b-m-banner"},KB={class:"p-e-c-b-m-title"},jB={class:"main",style:{width:"100%",height:"100%"}};function QB(n,e,t,r,i,o){const s=y.resolveComponent("fv-callout"),a=y.resolveComponent("fv-drawer");return y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["power-editor-callout-base-container",[{dark:t.theme==="dark"}]])},[t.mobileMode?y.createCommentVNode("",!0):(y.openBlock(),y.createBlock(s,{key:0,modelValue:i.thisShow,"onUpdate:modelValue":e[0]||(e[0]=l=>i.thisShow=l),lockScroll:!0,position:"bottomCenter",disabled:t.mobileMode,beak:12,space:0,theme:t.theme,effect:"click",popperClass:[...t.popperClass,"power-editor-callout-base-pc-container"],"popper-style":{background:t.theme==="dark"?"rgba(56, 56, 56, 1)":"rgba(250, 250, 250, 1)"}},{header:y.withCtx(()=>[y.renderSlot(n.$slots,"header",{title:t.title},()=>[y.createElementVNode("p",GB,y.toDisplayString(t.title),1)])]),main:y.withCtx(()=>[y.renderSlot(n.$slots,"content",{index:"1"})]),default:y.withCtx(()=>[y.renderSlot(n.$slots,"trigger",{show:!1})]),_:3},8,["modelValue","disabled","theme","popperClass","popper-style"])),t.mobileMode?(y.openBlock(),y.createElementBlock("div",$B,[y.renderSlot(n.$slots,"trigger",{show:o.triggerShow}),y.createVNode(a,{modelValue:i.thisShow,"onUpdate:modelValue":e[2]||(e[2]=l=>i.thisShow=l),theme:t.theme,class:y.normalizeClass(["power-editor-callout-base-mobile-container",[{dark:t.theme==="dark"}]]),length:"calc(100% - 50px)",background:t.theme==="dark"?"rgba(56, 56, 56, 0.9)":"rgba(252, 252, 252, 0.9)",appendBody:!0,"z-index":20},{default:y.withCtx(()=>[y.createElementVNode("div",WB,[y.renderSlot(n.$slots,"header",{title:t.title},()=>[e[3]||(e[3]=y.createElementVNode("p",{style:{width:"50px"}},null,-1)),y.createElementVNode("p",KB,y.toDisplayString(t.title),1)]),y.createElementVNode("p",{class:"p-e-c-b-m-close",style:y.normalizeStyle({color:t.theme==="dark"?"whitesmoke":t.foreground}),onClick:e[1]||(e[1]=l=>i.thisShow=!1)},y.toDisplayString(o.getTitle("Cancel")),5)]),y.createElementVNode("div",{class:y.normalizeClass(["p-e-c-b-m-content-block",t.popperClass])},[y.createElementVNode("div",jB,[y.renderSlot(n.$slots,"content",{index:"2"})])],2)]),_:3},8,["modelValue","theme","class","background"])])):y.createCommentVNode("",!0)],2)}const vo=an(UB,[["render",QB]]),YB={components:{calloutBase:vo},emits:["insert-link"],props:{mobileMode:{default:!1},foreground:{default:""},language:{default:"en"},theme:{default:"light"}},data(){return{link:"",caption:"",show:!1}},watch:{show(n){n?this.getSelection():(this.link="",this.caption="")}},methods:{insert(){if(this.link==="")return 0;this.caption=this.caption==""?this.link:this.caption,this.$emit("insert-link",`<a href="${this.link}">${this.caption}</a>`),this.show=!1},getSelection(){try{this.caption=window.getSelection().toString()}catch(n){console.log(n)}},getTitle(n){return or(n,this.language)}}},ZB={class:"power-editor-l-c-control-block"};function XB(n,e,t,r,i,o){const s=y.resolveComponent("fv-text-box"),a=y.resolveComponent("fv-button"),l=y.resolveComponent("callout-base");return y.openBlock(),y.createBlock(l,{show:i.show,mobileMode:t.mobileMode,title:o.getTitle("Insert Link"),foreground:t.foreground,theme:t.theme,language:t.language,popperClass:["power-editor-link-callout"]},{trigger:y.withCtx(c=>[y.renderSlot(n.$slots,"default",{show:c.show})]),content:y.withCtx(()=>[y.createElementVNode("div",{class:y.normalizeClass(["power-editor-l-c-block",[{dark:t.theme==="dark"}]])},[y.createCommentVNode("",!0),y.createVNode(s,{modelValue:i.caption,"onUpdate:modelValue":e[0]||(e[0]=c=>i.caption=c),placeholder:o.getTitle("Caption"),theme:t.theme,icon:"TextField",underline:"","border-width":2,"is-box-shadow":!0,"border-color":"rgba(200, 200, 200, 0.1)",background:t.theme==="dark"?"#1a1a1a":"#fff","focus-border-color":t.foreground,style:{width:"100%","margin-top":"5px"}},null,8,["modelValue","placeholder","theme","background","focus-border-color"]),y.createVNode(s,{modelValue:i.link,"onUpdate:modelValue":e[1]||(e[1]=c=>i.link=c),icon:"Link",placeholder:o.getTitle("Insert Link Url..."),theme:t.theme,underline:"","border-width":2,"is-box-shadow":!0,"border-color":"rgba(200, 200, 200, 0.1)",background:t.theme==="dark"?"#1a1a1a":"#fff","focus-border-color":t.foreground,style:{width:"100%","margin-top":"15px"}},null,8,["modelValue","placeholder","theme","background","focus-border-color"])],2),y.createElementVNode("div",ZB,[y.createVNode(a,{theme:"dark",disabled:i.link==="",background:t.foreground,"is-box-shadow":!0,style:{width:"150px"},onClick:o.insert},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(o.getTitle("Insert")),1)]),_:1},8,["disabled","background","onClick"])])]),_:3},8,["show","mobileMode","title","foreground","theme","language"])}const JB=an(YB,[["render",XB]]),eP={components:{calloutBase:vo},emits:["insert-embed"],props:{mobileMode:{default:!1},foreground:{default:""},language:{default:"en"},theme:{default:"light"}},data(){return{link:"",caption:"",show:!1}},watch:{show(n){n||(this.link="",this.caption="")}},methods:{insert(){if(this.link==="")return 0;this.$emit("insert-embed",`<embed-block src="${this.link}" caption="${this.caption}" theme="${this.theme}"></embed-block>`),this.show=!1},getTitle(n){return or(n,this.language)}}},tP={class:"power-editor-e-c-control-block"};function nP(n,e,t,r,i,o){const s=y.resolveComponent("fv-text-box"),a=y.resolveComponent("fv-button"),l=y.resolveComponent("callout-base");return y.openBlock(),y.createBlock(l,{show:i.show,mobileMode:t.mobileMode,title:o.getTitle("Insert Embed"),foreground:t.foreground,theme:t.theme,language:t.language,popperClass:["power-editor-embed-callout"]},{trigger:y.withCtx(c=>[y.renderSlot(n.$slots,"default",{show:c.show})]),content:y.withCtx(()=>[y.createElementVNode("div",{class:y.normalizeClass(["power-editor-e-c-block",[{dark:t.theme==="dark"}]])},[y.createCommentVNode("",!0),y.createVNode(s,{modelValue:i.caption,"onUpdate:modelValue":e[0]||(e[0]=c=>i.caption=c),placeholder:o.getTitle("Caption"),theme:t.theme,icon:"TextField",underline:"","border-width":2,"is-box-shadow":!0,"border-color":"rgba(200, 200, 200, 0.1)","focus-border-color":t.foreground,background:t.theme==="dark"?"#1a1a1a":"#fff",style:{width:"100%","margin-top":"5px"}},null,8,["modelValue","placeholder","theme","focus-border-color","background"]),y.createVNode(s,{modelValue:i.link,"onUpdate:modelValue":e[1]||(e[1]=c=>i.link=c),icon:"Link",placeholder:o.getTitle("Insert Embed Url..."),theme:t.theme,underline:"","border-width":2,"is-box-shadow":!0,"border-color":"rgba(200, 200, 200, 0.1)","focus-border-color":t.foreground,background:t.theme==="dark"?"#1a1a1a":"#fff",style:{width:"100%","margin-top":"15px"}},null,8,["modelValue","placeholder","theme","focus-border-color","background"])],2),y.createElementVNode("div",tP,[y.createVNode(a,{theme:"dark",disabled:i.link==="",background:t.foreground,"is-box-shadow":!0,style:{width:"150px"},onClick:o.insert},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(o.getTitle("Insert")),1)]),_:1},8,["disabled","background","onClick"])])]),_:3},8,["show","mobileMode","title","foreground","theme","language"])}const rP=an(eP,[["render",nP]]),iP={components:{calloutBase:vo},props:{foreground:{default:""},getBackground:{default:()=>{}},getForeground:{default:()=>{}},exec:{default:()=>{}},execMore:{default:()=>{}},editor:{default:null},mobileMode:{default:!1},language:{default:"en"},theme:{default:"light"}},data(){return{show:!1,colorList:[{name:"gray",color:"#787774"},{name:"purple",color:"#958DF1"},{name:"pink",color:"#f58eda"},{name:"red",color:"#F98181"},{name:"orange",color:"#FBBC88"},{name:"yellow",color:"#FAF594"},{name:"blue",color:"#4086cb"},{name:"teal",color:"#94FADB"},{name:"green",color:"#B9F18D"},{name:"rose",color:"#ee7686"},{name:"fresh_blue",color:"#70CFF8"},{name:"ice_blue",color:"#9fc2ca"},{name:"dark_blue",color:"#0c4a83"},{name:"fresh_green",color:"#55ddb6"}],highlightList:[{name:"red",color:"red"},{name:"red",color:"#ffa8a8"},{name:"yellow",color:"#FAF594"},{name:"orange",color:"#ffc078"},{name:"green",color:"#8ce99a"},{name:"blue",color:"#74c0fc"},{name:"purple",color:"#b197fc"},{name:"light_green",color:"#d1f6e7"},{name:"light_yellow",color:"#fdf0c6"},{name:"light_red",color:"#ffe3e3"},{name:"light_purple",color:"#e9e1f9"},{name:"light_orange",color:"#ffe5c7"}]}},watch:{},methods:{getTitle(n){return or(n,this.language)},execX(n){this.exec(n),this.mobileMode&&(this.show=!1)},execMoreX(n,e){this.execMore(n,e),this.mobileMode&&(this.show=!1)}}},oP={class:"peci-comment"},sP=["onClick"],aP={class:"peci-comment"},lP={class:"peci-comment"},cP=["onClick"],uP={class:"peci-comment"};function dP(n,e,t,r,i,o){const s=y.resolveComponent("callout-base");return y.openBlock(),y.createBlock(s,{show:i.show,mobileMode:t.mobileMode,title:o.getTitle("Text Color"),foreground:t.foreground,theme:t.theme,language:t.language,popperClass:["power-editor-color-callout"]},{trigger:y.withCtx(a=>[y.renderSlot(n.$slots,"default",{show:a.show})]),content:y.withCtx(()=>[y.createElementVNode("p",{class:"power-menu-sec-title",style:y.normalizeStyle({"--power-menu-sec-title-background":t.foreground})},y.toDisplayString(o.getTitle("Foreground")),5),y.createElementVNode("div",{class:y.normalizeClass(["power-editor-color-item",[{dark:t.theme=="dark"}]]),onClick:e[0]||(e[0]=a=>o.execX("unsetColor"))},[e[2]||(e[2]=y.createElementVNode("p",{class:"peci-example"},"A",-1)),y.createElementVNode("p",oP,y.toDisplayString(o.getTitle("removeColor")),1)],2),(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(i.colorList,(a,l)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["power-editor-color-item",[{dark:t.theme=="dark",choosen:t.editor.isActive("textStyle",{color:a.color})}]]),key:"color:"+l,onClick:c=>o.execMoreX("setColor",a.color)},[y.createElementVNode("p",{class:"peci-example",style:y.normalizeStyle({color:a.color})},"A",4),y.createElementVNode("p",aP,y.toDisplayString(o.getTitle(a.name)),1)],10,sP))),128)),y.createElementVNode("p",{class:"power-menu-sec-title",style:y.normalizeStyle({"--power-menu-sec-title-background":t.foreground})},y.toDisplayString(o.getTitle("Highlight Background")),5),y.createElementVNode("div",{class:y.normalizeClass(["power-editor-color-item",[{dark:t.theme=="dark"}]]),onClick:e[1]||(e[1]=a=>o.execX("unsetHighlight"))},[e[3]||(e[3]=y.createElementVNode("p",{class:"peci-example"},"A",-1)),y.createElementVNode("p",lP,y.toDisplayString(o.getTitle("removeHighlight")),1)],2),(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(i.highlightList,(a,l)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["power-editor-color-item",[{dark:t.theme=="dark",choosen:t.editor.isActive("highlight",{color:a.color})}]]),key:"highlight:"+l,onClick:c=>o.execMoreX("setHighlight",{color:a.color})},[y.createElementVNode("p",{class:"peci-example",style:y.normalizeStyle({background:a.color})},"A",4),y.createElementVNode("p",uP,y.toDisplayString(o.getTitle(a.name)),1)],10,cP))),128))]),_:3},8,["show","mobileMode","title","foreground","theme","language"])}const M3=an(iP,[["render",dP]]),hP=[{name:"People and Fantasy",emojis:["😀","😃","😄","😁","😆","😅","😂","🤣","☺️","😊","😇","🙂","🙃","😉","😌","😍","🥰","😘","😗","😙","😚","😋","😛","😝","😜","🤪","🤨","🧐","🤓","😎","🤩","🥳","😏","😒","😞","😔","😟","😕","🙁","☹️","😣","😖","😫","😩","🥺","😢","😭","😤","😠","😡","🤬","🤯","😳","🥵","🥶","😱","😨","😰","😥","😓","🤗","🤔","🤭","🤫","🤥","😶","😐","😑","😬","🙄","😯","😦","😧","😮","😲","🥱","😴","🤤","😪","😵","🤐","🥴","🤢","🤮","🤧","😷","🤒","🤕","🤑","🤠","😈","👿","👹","👺","🤡","💩","👻","💀","☠️","👽","👾","🤖","🎃","😺","😸","😹","😻","😼","😽","🙀","😿","😾"]},{name:"Animals & Nature",emojis:["🐶","🐱","🐭","🐹","🐰","🦊","🐻","🐼","🐻‍","❄️","🐨","🐯","🦁","🐮","🐷","🐽","🐸","🐵","🙈","🙉","🙊","🐒","🐔","🐧","🐦","🐤","🐣","🐥","🦆","🦅","🦉","🦇","🐺","🐗","🐴","🦄","🐝","🐛","🦋","🐌","🐞","🐜","🦟","🦗","🕷","🕸","🦂","🐢","🐍","🦎","🦖","🦕","🐙","🦑","🦐","🦞","🦀","🐡","🐠","🐟","🐬","🐳","🐋","🦈","🐊","🐅","🐆","🦓","🦍","🦧","🐘","🦛","🦏","🐪","🐫","🦒","🦘","🐃","🐂","🐄","🐎","🐖","🐏","🐑","🦙","🐐","🦌","🐕","🐩","🦮","🐕‍🦺","🐈","🐓","🦃","🦚","🦜","🦢","🦩","🕊","🐇","🦝","🦨","🦡","🦦","🦥","🐁","🐀","🐿","🦔","🐾","🐉","🐲","🌵","🎄","🌲","🌳","🌴","🌱","🌿","☘️","🍀","🎍","🎋","🍃","🍂","🍁","🍄","🐚","🌾","💐","🌷","🌹","🥀","🌺","🌸","🌼","🌻","🌞","🌝","🌛","🌜","🌚","🌕","🌖","🌗","🌘","🌑","🌒","🌓","🌔","🌙","🌎","🌍","🌏","🪐","💫","⭐️","🌟","✨","⚡️","☄️","💥","🔥","🌪","🌈","☀️","🌤","⛅️","🌥","☁️","🌦","🌧","⛈","🌩","🌨","❄️","☃️","⛄️","🌬","💨","💧","💦","☔️","☂️","🌊","🌫"]},{name:"Food & Drink",emojis:["🍏","🍎","🍐","🍊","🍋","🍌","🍉","🍇","🍓","🍈","🍒","🍑","🥭","🍍","🥥","🥝","🍅","🍆","🥑","🥦","🥬","🥒","🌶","🌽","🥕","🧄","🧅","🥔","🍠","🥐","🥯","🍞","🥖","🥨","🧀","🥚","🍳","🧈","🥞","🧇","🥓","🥩","🍗","🍖","🦴","🌭","🍔","🍟","🍕","🥪","🥙","🧆","🌮","🌯","🥗","🥘","🥫","🍝","🍜","🍲","🍛","🍣","🍱","🥟","🦪","🍤","🍙","🍚","🍘","🍥","🥠","🥮","🍢","🍡","🍧","🍨","🍦","🥧","🧁","🍰","🎂","🍮","🍭","🍬","🍫","🍿","🍩","🍪","🌰","🥜","🍯","🥛","🍼","☕️","🍵","🧃","🥤","🍶","🍺","🍻","🥂","🍷","🥃","🍸","🍹","🧉","🍾","🧊","🥄","🍴","🍽","🥣","🥡","🥢","🧂",""]},{name:"Activity and Sports",emojis:["⚽️","🏀","🏈","⚾️","🥎","🎾","🏐","🏉","🥏","🎱","🪀","🏓","🏸","🏒","🏑","🥍","🏏","🥅","⛳️","🪁","🏹","🎣","🤿","🥊","🥋","🎽","🛹","🛷","⛸","🥌","🎿","⛷","🏂","🪂","🏋️‍♀️","🏋️","🏋️‍♂️","🤼‍♀️","🤼","🤼‍♂️","🤸‍♀️","🤸","🤸‍♂️","⛹️‍♀️","⛹️","⛹️‍♂️","🤺","🤾‍♀️","🤾","🤾‍♂️","🏌️‍♀️","🏌️","🏌️‍♂️","🏇","🧘‍♀️","🧘","🧘‍♂️","🏄‍♀️","🏄","🏄‍♂️","🏊‍♀️","🏊","🏊‍♂️","🤽‍♀️","🤽","🤽‍♂️","🚣‍♀️","🚣","🚣‍♂️","🧗‍♀️","🧗","🧗‍♂️","🚵‍♀️","🚵","🚵‍♂️","🚴‍♀️","🚴","🚴‍♂️","🏆","🥇","🥈","🥉","🏅","🎖","🏵","🎗","🎫","🎟","🎪","🤹","🤹‍♂️","🤹‍♀️","🎭","🩰","🎨","🎬","🎤","🎧","🎼","🎹","🥁","🪘","🎷","🎺","🎸","🪕","🎻","🎲","♟","🎯","🎳","🎮","🎰","🧩"]},{name:"Travel & Places",emojis:["🚗","🚕","🚙","🚌","🚎","🏎","🚓","🚑","🚒","🚐","🚚","🚛","🚜","🦯","🦽","🦼","🛴","🚲","🛵","🏍","🛺","🚨","🚔","🚍","🚘","🚖","🚡","🚠","🚟","🚃","🚋","🚞","🚝","🚄","🚅","🚈","🚂","🚆","🚇","🚊","🚉","✈️","🛫","🛬","🛩","💺","🛰","🚀","🛸","🚁","🛶","⛵️","🚤","🛥","🛳","⛴","🚢","⚓️","🪝","⛽️","🚧","🚦","🚥","🚏","🗺","🗿","🗽","🗼","🏰","🏯","🏟","🎡","🎢","🎠","⛲️","⛱","🏖","🏝","🏜","🌋","⛰","🏔","🗻","🏕","⛺️","🏠","🏡","🏘","🏚","🏗","🏭","🏢","🏬","🏣","🏤","🏥","🏦","🏨","🏪","🏫","🏩","💒","🏛","⛪️","🕌","🕍","🛕","🕋","⛩","🛤","🛣","🗾","🎑","🏞","🌅","🌄","🌠","🎇","🎆","🌇","🌆","🏙","🌃","🌌","🌉","🌁"]},{name:"Objects",emojis:["⌚️","📱","📲","💻","⌨️","🖥","🖨","🖱","🖲","🕹","🗜","💽","💾","💿","📀","📼","📷","📸","📹","🎥","📽","🎞","📞","☎️","📟","📠","📺","📻","🎙","🎚","🎛","🧭","⏱","⏲","⏰","🕰","⌛️","⏳","📡","🔋","🔌","💡","🔦","🕯","🪔","🧯","🛢","💸","💵","💴","💶","💷","💰","💳","💎","⚖️","🧰","🔧","🔨","⚒","🛠","⛏","🔩","⚙️","🧱","⛓","🧲","🔫","💣","🧨","🪓","🔪","🗡","⚔️","🛡","🚬","⚰️","⚱️","🏺","🔮","📿","🧿","💈","⚗️","🔭","🔬","🕳","🩹","🩺","💊","💉","🩸","🧬","🦠","🧫","🧪","🌡","🧹","🧺","🧻","🚽","🚰","🚿","🛁","🛀","🧼","🪒","🧽","🧴","🛎","🔑","🗝","🚪","🪑","🛋","🛏","🛌","🧸","🖼","🛍","🛒","🎁","🎈","🎏","🎀","🪄","🪅","🎊","🎉","🎎","🏮","🎐","🧧","✉️","📩","📨","📧","💌","📥","📤","📦","🏷","📪","📫","📬","📭","📮","📯","📜","📃","📄","📑","🧾","📊","📈","📉","🗒","🗓","📆","📅","🗑","📇","🗃","🗳","🗄","📋","📁","📂","🗂","🗞","📰","📓","📔","📒","📕","📗","📘","📙","📚","📖","🔖","🧷","🔗","📎","🖇","📐","📏","🧮","📌","📍","✂️","🖊","🖋","✒️","🖌","🖍","📝","✏️","🔍","🔎","🔏","🔐","🔒","🔓"]},{name:"Symbols",emojis:["❤️","🧡","💛","💚","💙","💜","🖤","🤍","🤎","💔","❣️","💕","💞","💓","💗","💖","💘","💝","💟","☮️","✝️","☪️","🕉","☸️","✡️","🔯","🕎","☯️","☦️","🛐","⛎","♈️","♉️","♊️","♋️","♌️","♍️","♎️","♏️","♐️","♑️","♒️","♓️","🆔","⚛️","🉑","☢️","☣️","📴","📳","🈶","🈚️","🈸","🈺","🈷️","✴️","🆚","💮","🉐","㊙️","㊗️","🈴","🈵","🈹","🈲","🅰️","🅱️","🆎","🆑","🅾️","🆘","❌","⭕️","🛑","⛔️","📛","🚫","💯","💢","♨️","🚷","🚯","🚳","🚱","🔞","📵","🚭","❗️","❕","❓","❔","‼️","⁉️","🔅","🔆","〽️","⚠️","🚸","🔱","⚜️","🔰","♻️","✅","🈯️","💹","❇️","✳️","❎","🌐","💠","Ⓜ️","🌀","💤","🏧","🚾","♿️","🅿️","🛗","🈳","🈂️","🛂","🛃","🛄","🛅","🚹","🚺","🚼","⚧","🚻","🚮","🎦","📶","🈁","🔣","ℹ️","🔤","🔡","🔠","🆖","🆗","🆙","🆒","🆕","🆓","0️⃣","1️⃣","2️⃣","3️⃣","4️⃣","5️⃣","6️⃣","7️⃣","8️⃣","9️⃣","🔟","🔢","#️⃣","*️⃣","⏏️","▶️","⏸","⏯","⏹","⏺","⏭","⏮","⏩","⏪","⏫","⏬","◀️","🔼","🔽","➡️","⬅️","⬆️","⬇️","↗️","↘️","↙️","↖️","↕️","↔️","↪️","↩️","⤴️","⤵️","🔀","🔁","🔂","🔄","🔃","🎵","🎶","➕","➖","➗","✖️","♾","💲","💱","™️","©️","®️","〰️","➰","➿","🔚","🔙","🔛","🔝","🔜","✔️","☑️","🔘","🔴","🟠","🟡","🟢","🔵","🟣","⚫️","⚪️","🟤","🔺","🔻","🔸","🔹","🔶","🔷","🔳","🔲","▪️","▫️","◾️","◽️","◼️","◻️","🟥","🟧","🟨","🟩","🟦","🟪","⬛️","⬜️","🟫","🔈","🔇","🔉","🔊","🔔","🔕","📣","📢","👁‍🗨","💬","💭","🗯","♠️","♣️","♥️","♦️","🃏","🎴","🀄️","🕐","🕑","🕒","🕓","🕔","🕕","🕖","🕗","🕘","🕙","🕚","🕛","🕜","🕝","🕞","🕟","🕠","🕡","🕢","🕣","🕤","🕥","🕦","🕧"]},{name:"Flags",emojis:["🏳️","🏴","🏁","🚩","🏳️‍🌈","🏳️","🏴‍☠️"]}],fP={components:{calloutBase:vo},emits:["insert-emoji"],props:{editor:{default:null},foreground:{default:""},mobileMode:{default:!1},language:{default:"en"},theme:{default:"light"}},data(){return{emoji_list:hP,show:!1}},watch:{},methods:{getTitle(n){return or(n,this.language)},insertEmoji(n){this.$emit("insert-emoji",n),this.mobileMode&&(this.show=!1)},insertRandom(){let n=(Math.random()*(this.emoji_list.length-1)).toFixed(0),e=(Math.random()*(this.emoji_list[n].emojis.length-1)).toFixed(0);this.$emit("insert-emoji",this.emoji_list[n].emojis[e]),this.mobileMode&&(this.show=!1)}}},pP={class:"power-editor-emoji-banner"},mP={style:{"font-size":"13.8px"}},gP={class:"title"},bP={class:"power-editor-emoji-group"},_P=["innerHTML","onClick"];function yP(n,e,t,r,i,o){const s=y.resolveComponent("fv-button"),a=y.resolveComponent("fv-infinite-scroll-view"),l=y.resolveComponent("callout-base");return y.openBlock(),y.createBlock(l,{show:i.show,mobileMode:t.mobileMode,title:"Emoji",foreground:t.foreground,theme:t.theme,language:t.language,popperClass:["power-editor-emoji-callout"]},{trigger:y.withCtx(c=>[y.renderSlot(n.$slots,"default",{show:c.show})]),header:y.withCtx(c=>[y.createElementVNode("div",pP,[y.createElementVNode("p",mP,y.toDisplayString(o.getTitle(c.title)),1),y.createVNode(s,{theme:t.theme,background:t.theme==="dark"?"rgba(0, 0, 0, 0.2)":"rgba(255, 255, 255, 0.3)",isBoxShadow:!0,onClick:o.insertRandom},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(o.getTitle("Random")),1)]),_:1},8,["theme","background","onClick"])])]),content:y.withCtx(()=>[y.createVNode(a,{modelValue:i.emoji_list,"onUpdate:modelValue":e[0]||(e[0]=c=>i.emoji_list=c),batchSize:1,style:{width:"100%",height:"100%"}},{default:y.withCtx(c=>[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(c.dynamicValue,(u,h)=>(y.openBlock(),y.createElementBlock("div",{class:"power-editor-emoji-list",key:`type:${h}`},[y.createElementVNode("p",gP,y.toDisplayString(o.getTitle(u.name)),1),y.createElementVNode("div",bP,[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(u.emojis,(g,b)=>(y.openBlock(),y.createElementBlock("i",{key:b,class:"emoji-item",innerHTML:g,onClick:p=>o.insertEmoji(g)},null,8,_P))),128))])]))),128))]),_:1},8,["modelValue"])]),_:3},8,["show","mobileMode","foreground","theme","language"])}const vP=an(fP,[["render",yP]]),wP={components:{calloutBase:vo},emits:["insert-image"],props:{mobileMode:{default:!1},foreground:{default:""},language:{default:"en"},theme:{default:"light"}},data(){return{url:"",show:!1,contentName:["content-1","content-2"]}},watch:{show(n){n||(this.url="",this.mobileMode?this.$refs.img_local_2.value="":this.$refs.img_local_1.value="")}},methods:{insert(){if(this.url==="")return 0;this.$emit("insert-image",[this.url]),this.show=!1},async insertLocal(n){let e=this.$refs[`img_local_${n}`].files;if(e.length<1)return 0;let t=[];for(let r of e){let i=new FileReader;i.readAsDataURL(r);let o=await new Promise(s=>{i.onload=a=>{s(a.target.result)}});t.push(o)}this.$emit("insert-image",t),this.show=!1},getTitle(n){return or(n,this.language)}}},xP={class:"power-editor-i-c-title"},kP=["onClick"],SP={class:"power-editor-i-c-t2"},EP=["onChange"],CP={class:"power-editor-i-c-title"},TP={class:"power-editor-i-c-control-block"};function AP(n,e,t,r,i,o){const s=y.resolveComponent("fv-text-box"),a=y.resolveComponent("fv-button"),l=y.resolveComponent("callout-base");return y.openBlock(),y.createBlock(l,{show:i.show,mobileMode:t.mobileMode,title:o.getTitle("Insert Image"),foreground:t.foreground,theme:t.theme,language:t.language,popperClass:["power-editor-image-callout"]},{trigger:y.withCtx(c=>[y.renderSlot(n.$slots,"default",{show:c.show})]),content:y.withCtx(c=>[y.createElementVNode("div",{class:y.normalizeClass(["power-editor-i-c-block",[{dark:t.theme==="dark"}]])},[y.createElementVNode("p",xP,y.toDisplayString(o.getTitle("Method"))+" 1",1),y.createElementVNode("i",{class:"ms-Icon ms-Icon--Photo2Add power-editor-i-c-icon-1",style:y.normalizeStyle({color:t.foreground}),onClick:u=>n.$refs[`img_local_${c.index}`].click()},null,12,kP),y.createElementVNode("p",SP,y.toDisplayString(o.getTitle("Choose Local Image as Base64 (multiple).")),1),y.createElementVNode("input",{type:"file",accept:"image/gif,image/png,image/jpeg,image/x-png,image/svg+xml",multiple:"true",style:{display:"none"},ref:`img_local_${c.index}`,onChange:u=>o.insertLocal(c.index)},null,40,EP)],2),y.createElementVNode("div",{class:y.normalizeClass(["power-editor-i-c-block",[{dark:t.theme==="dark"}]])},[y.createElementVNode("p",CP,y.toDisplayString(o.getTitle("Method"))+" 2",1),y.createVNode(s,{modelValue:i.url,"onUpdate:modelValue":e[0]||(e[0]=u=>i.url=u),placeholder:o.getTitle("Insert Image Url."),theme:t.theme,underline:"","border-width":2,"is-box-shadow":!0,"border-color":"rgba(200, 200, 200, 0.1)","focus-border-color":t.foreground,background:t.theme==="dark"?"#1a1a1a":"#fff",style:{width:"90%",border:"thin",outline:"none"},ref:"img_link"},null,8,["modelValue","placeholder","theme","focus-border-color","background"])],2),y.createElementVNode("div",TP,[y.createVNode(a,{theme:"dark",disabled:i.url==="",background:t.foreground,"is-box-shadow":!0,style:{width:"150px"},onClick:o.insert},{default:y.withCtx(()=>[y.createTextVNode(y.toDisplayString(o.getTitle("Insert")),1)]),_:1},8,["disabled","background","onClick"])])]),_:3},8,["show","mobileMode","title","foreground","theme","language"])}const MP=an(wP,[["render",AP]]),NP={components:{calloutBase:vo},props:{mobileMode:{default:!1},foreground:{default:""},getBackground:{default:()=>{}},getForeground:{default:()=>{}},execMore:{default:()=>{}},editor:{default:null},language:{default:"en"},theme:{default:"light"}},data(){return{show:!1}},watch:{},methods:{getTitle(n){return or(n,this.language)},execX(n){this.exec(n),this.mobileMode&&(this.show=!1)},execMoreX(n,e){this.execMore(n,e),this.mobileMode&&(this.show=!1)}}},DP=["onClick"],RP={class:"pehi-comment"};function OP(n,e,t,r,i,o){const s=y.resolveComponent("fv-button"),a=y.resolveComponent("callout-base");return y.openBlock(),y.createBlock(a,{show:i.show,mobileMode:t.mobileMode,title:o.getTitle("Headers"),foreground:t.foreground,theme:t.theme,language:t.language,popperClass:["power-editor-header-callout"]},{trigger:y.withCtx(l=>[y.renderSlot(n.$slots,"default",{show:l.show})]),content:y.withCtx(()=>[(y.openBlock(),y.createElementBlock(y.Fragment,null,y.renderList(6,l=>y.createElementVNode("div",{class:y.normalizeClass(["power-editor-heading-item",[{dark:t.theme=="dark",choosen:t.editor.isActive("heading",{level:l})}]]),key:"color:"+l,onClick:c=>o.execMoreX("toggleHeading",{level:l})},[y.createVNode(s,{class:"power-editor-cmd-btn",theme:t.theme,isBoxShadow:!0,background:t.getBackground(t.editor.isActive("heading",{level:l})),foreground:t.getForeground(t.editor.isActive("heading",{level:l})),title:o.getTitle("Heading")+l},{default:y.withCtx(()=>[y.createTextVNode("H"+y.toDisplayString(l),1)]),_:2},1032,["theme","background","foreground","title"]),y.createElementVNode("p",RP,y.toDisplayString(o.getTitle("Heading"))+" "+y.toDisplayString(l),1)],10,DP)),64))]),_:3},8,["show","mobileMode","title","foreground","theme","language"])}const IP=an(NP,[["render",OP]]),LP={components:{calloutBase:vo},props:{mobileMode:{default:!1},foreground:{default:""},getBackground:{default:()=>{}},getForeground:{default:()=>{}},exec:{default:()=>{}},execMore:{default:()=>{}},editor:{default:null},language:{default:"en"},theme:{default:"light"}},data(){return{row:"3",column:"3",show:!1}},watch:{},methods:{getTitle(n){return or(n,this.language)},execX(n){this.exec(n),this.mobileMode&&(this.show=!1)},execMoreX(n,e){this.execMore(n,e),this.mobileMode&&(this.show=!1)}}},BP={class:"power-editor-table-insert-block"},PP={class:"power-editor-table-control-block"};function FP(n,e,t,r,i,o){const s=y.resolveComponent("fv-text-box"),a=y.resolveComponent("fv-button"),l=y.resolveComponent("callout-base");return y.openBlock(),y.createBlock(l,{show:i.show,mobileMode:t.mobileMode,title:o.getTitle("Table"),foreground:t.foreground,theme:t.theme,language:t.language,popperClass:["power-editor-table-callout"]},{trigger:y.withCtx(c=>[y.renderSlot(n.$slots,"default",{show:c.show})]),content:y.withCtx(()=>[y.createElementVNode("div",BP,[y.createVNode(s,{modelValue:i.row,"onUpdate:modelValue":e[0]||(e[0]=c=>i.row=c),placeholder:o.getTitle("Row"),theme:t.theme,class:"power-editor-table-text-box",underline:"","border-width":2,"is-box-shadow":!0,"border-color":"rgba(200, 200, 200, 0.1)",background:t.theme==="dark"?"#1a1a1a":"#fff","focus-border-color":t.foreground,onKeydown:e[1]||(e[1]=y.withKeys(c=>o.execMoreX("insertTable",{rows:parseInt(i.row),cols:parseInt(i.column),withHeaderRow:!0}),["enter"]))},null,8,["modelValue","placeholder","theme","background","focus-border-color"]),y.createVNode(s,{modelValue:i.column,"onUpdate:modelValue":e[2]||(e[2]=c=>i.column=c),placeholder:o.getTitle("Column"),theme:t.theme,class:"power-editor-table-text-box",underline:"","border-width":2,"is-box-shadow":!0,"border-color":"rgba(200, 200, 200, 0.1)",background:t.theme==="dark"?"#1a1a1a":"#fff","focus-border-color":t.foreground,onKeydown:e[3]||(e[3]=y.withKeys(c=>o.execMoreX("insertTable",{rows:parseInt(i.row),cols:parseInt(i.column),withHeaderRow:!0}),["enter"]))},null,8,["modelValue","placeholder","theme","background","focus-border-color"]),y.createVNode(a,{theme:"dark",disabled:!i.row||!i.column||isNaN(i.row)||isNaN(i.column),"is-box-shadow":!0,background:t.foreground,"border-radius":6,style:{width:"40px",height:"40px"},onClick:e[4]||(e[4]=c=>o.execMoreX("insertTable",{rows:parseInt(i.row),cols:parseInt(i.column),withHeaderRow:!0}))},{default:y.withCtx(()=>e[13]||(e[13]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--AddBold"},null,-1)])),_:1,__:[13]},8,["disabled","background"])]),y.createElementVNode("div",PP,[y.createVNode(a,{theme:"dark",class:"power-editor-table-control-item",background:"rgba(212, 78, 82, 1)","is-box-shadow":!0,title:o.getTitle("Delete Column"),onClick:e[5]||(e[5]=c=>t.exec("deleteColumn"))},{default:y.withCtx(()=>e[14]||(e[14]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--DockLeft"},null,-1)])),_:1,__:[14]},8,["title"]),y.createVNode(a,{theme:"dark",class:"power-editor-table-control-item",background:"rgba(212, 78, 82, 1)","is-box-shadow":!0,title:o.getTitle("Delete Row"),onClick:e[6]||(e[6]=c=>o.execX("deleteRow"))},{default:y.withCtx(()=>e[15]||(e[15]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--DockBottom"},null,-1)])),_:1,__:[15]},8,["title"]),e[22]||(e[22]=y.createElementVNode("hr",null,null,-1)),y.createVNode(a,{theme:"dark",class:"power-editor-table-control-item",background:t.foreground,"is-box-shadow":!0,title:o.getTitle("Add Row Before"),onClick:e[7]||(e[7]=c=>o.execX("addRowBefore"))},{default:y.withCtx(()=>e[16]||(e[16]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--UpArrowShiftKey"},null,-1)])),_:1,__:[16]},8,["background","title"]),y.createVNode(a,{theme:"dark",class:"power-editor-table-control-item",background:t.foreground,"is-box-shadow":!0,title:o.getTitle("Add Row After"),onClick:e[8]||(e[8]=c=>o.execX("addRowAfter"))},{default:y.withCtx(()=>e[17]||(e[17]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--UpArrowShiftKey",style:{transform:"rotate(180deg)"}},null,-1)])),_:1,__:[17]},8,["background","title"]),y.createVNode(a,{theme:"dark",class:"power-editor-table-control-item",background:t.foreground,"is-box-shadow":!0,title:o.getTitle("Add Column Before"),onClick:e[9]||(e[9]=c=>o.execX("addColumnBefore"))},{default:y.withCtx(()=>e[18]||(e[18]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--UpArrowShiftKey",style:{transform:"rotate(-90deg)"}},null,-1)])),_:1,__:[18]},8,["background","title"]),y.createVNode(a,{theme:"dark",class:"power-editor-table-control-item",background:t.foreground,"is-box-shadow":!0,title:o.getTitle("Add Column After"),onClick:e[10]||(e[10]=c=>o.execX("addColumnAfter"))},{default:y.withCtx(()=>e[19]||(e[19]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--UpArrowShiftKey",style:{transform:"rotate(90deg)"}},null,-1)])),_:1,__:[19]},8,["background","title"]),e[23]||(e[23]=y.createElementVNode("hr",null,null,-1)),y.createVNode(a,{theme:t.theme,class:"power-editor-table-control-item","is-box-shadow":!0,title:o.getTitle("Merge Cells"),onClick:e[11]||(e[11]=c=>o.execX("mergeCells"))},{default:y.withCtx(()=>e[20]||(e[20]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--PPSOneLandscape"},null,-1)])),_:1,__:[20]},8,["theme","title"]),y.createVNode(a,{theme:t.theme,class:"power-editor-table-control-item","is-box-shadow":!0,title:o.getTitle("Split Cell"),onClick:e[12]||(e[12]=c=>o.execX("splitCell"))},{default:y.withCtx(()=>e[21]||(e[21]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--PPSTwoPortrait"},null,-1)])),_:1,__:[21]},8,["theme","title"])])]),_:3},8,["show","mobileMode","title","foreground","theme","language"])}const N3=an(LP,[["render",FP]]),zP={components:{linkCallout:JB,embedCallout:rP,colorCallout:M3,emojiCallout:vP,imageCallout:MP,headingCallout:IP,TableCallout:N3},emits:["update:theme","save-click"],props:{editor:{default:()=>({})},showSave:{default:!0},mobileMode:{default:!1},tippyOptions:{default:100},toolbarHeight:{default:70},toolbarBorderRadius:{default:""},foreground:{default:""},language:{default:"en"},theme:{default:"light"}},data(){return{thisTheme:this.theme,timer:{formatPainter:null}}},watch:{theme(n){this.thisTheme=n},thisTheme(n){this.$emit("update:theme",n)}},computed:{highlightColor(){return this.thisTheme==="dark"?{f:"rgba(36, 36, 36, 1)",b:"whitesmoke"}:{f:"whitesmoke",b:"rgba(36, 36, 36, 1)"}}},mounted(){this.thisTheme=this.theme},methods:{getTitle(n){return or(n,this.language)},getForeground(n,e={light:"rgba(65, 74, 90, 1)",dark:"rgba(245, 245, 245, 1)"}){return n?this.highlightColor.f:typeof e=="string"?e:e[this.thisTheme]},getBackground(n){return n?this.highlightColor.b:this.thisTheme==="dark"?"rgba(36, 36, 36, 0)":"rgba(255, 255, 255, 0)"},exec(n){n&&this.editor.chain().focus()[n]().run()},execMore(n,e){this.editor.chain().focus()[n](e).run()},insert(n){this.editor.commands.insertContent(n)},insertEmoji(n){this.editor.chain().focus().insertContent(n).run()},insertImg(n){n.forEach(e=>{this.insert(`<img src="${e}"></img>
410
+ `)})},insertLink(n){this.editor.chain().focus().insertContent(n).run()},insertEmbed(n){this.editor.chain().focus().insertContent(n).run()},insertInlineEquation(n=""){this.editor.chain().focus().insertContent({type:"inlineEquation",attrs:{theme:this.theme,value:n}}).run()},insertEquationBlock(){this.editor.chain().focus().insertContent({type:"equationBlock",attrs:{theme:this.theme}}).run()},insertEquation(){let n=this.editor.view.state,e=this.editor.view.state.selection,t=n.doc.textBetween(e.from,e.to," ");t.length>0?this.insertInlineEquation(t):this.insertEquationBlock()},insertDrawingBlock(){this.editor.chain().focus().insertContent("<drawing-block></drawing-block>").run()},formatPainterClick(){this.editor.storage.formatPainter.formatPainterStatus==="off"?(this.editor.commands.setFormatPainter(),this.editor.commands.detectFormat()):(clearTimeout(this.timer.formatPainter),this.timer.formatPainter=setTimeout(()=>{this.editor.commands.unsetFormatPainter()},300))},formatPainterDoubleClick(){clearTimeout(this.timer.formatPainter),this.editor.commands.stickyFormatPainter(),this.editor.commands.detectFormat()},save(){this.$emit("save-click")}}};function qP(n,e,t,r,i,o){const s=y.resolveComponent("fv-button"),a=y.resolveComponent("heading-callout"),l=y.resolveComponent("color-callout"),c=y.resolveComponent("emoji-callout"),u=y.resolveComponent("table-callout"),h=y.resolveComponent("image-callout"),g=y.resolveComponent("link-callout"),b=y.resolveComponent("embed-callout");return y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["power-editor-tool-bar-container",[{dark:i.thisTheme==="dark"}]]),style:y.normalizeStyle({height:`${t.toolbarHeight}px`,"border-radius":`${t.toolbarBorderRadius}px`})},[y.renderSlot(n.$slots,"custom-buttons-front",{defaultClass:"power-editor-cmd-btn"}),y.withDirectives(y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1,{light:"rgba(147, 79, 125, 1)",dark:"rgba(169, 58, 132, 1)"}),title:o.getTitle("Save"),onClick:o.save},{default:y.withCtx(()=>e[23]||(e[23]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Save"},null,-1)])),_:1,__:[23]},8,["theme","background","foreground","title","onClick"]),[[y.vShow,t.showSave]]),y.renderSlot(n.$slots,"custom-buttons-0",{defaultClass:"power-editor-cmd-btn"}),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1,t.foreground),title:o.getTitle("Undo"),onClick:e[0]||(e[0]=p=>o.exec("undo"))},{default:y.withCtx(()=>e[24]||(e[24]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Undo"},null,-1)])),_:1,__:[24]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1,t.foreground),title:o.getTitle("Redo"),onClick:e[1]||(e[1]=p=>o.exec("redo"))},{default:y.withCtx(()=>e[25]||(e[25]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Redo"},null,-1)])),_:1,__:[25]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("bold")),foreground:o.getForeground(t.editor.isActive("bold")),title:o.getTitle("Bold"),onClick:e[2]||(e[2]=p=>o.exec("toggleBold"))},{default:y.withCtx(()=>e[26]||(e[26]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Bold"},null,-1)])),_:1,__:[26]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("italic")),foreground:o.getForeground(t.editor.isActive("italic")),title:o.getTitle("Italic"),onClick:e[3]||(e[3]=p=>o.exec("toggleItalic"))},{default:y.withCtx(()=>e[27]||(e[27]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Italic"},null,-1)])),_:1,__:[27]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("strike")),foreground:o.getForeground(t.editor.isActive("strike")),title:o.getTitle("Strikethrough"),onClick:e[4]||(e[4]=p=>o.exec("toggleStrike"))},{default:y.withCtx(()=>e[28]||(e[28]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Strikethrough"},null,-1)])),_:1,__:[28]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("underline")),foreground:o.getForeground(t.editor.isActive("underline")),title:o.getTitle("Underline"),onClick:e[5]||(e[5]=p=>o.exec("toggleUnderline"))},{default:y.withCtx(()=>e[29]||(e[29]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Underline"},null,-1)])),_:1,__:[29]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.storage.formatPainter.formatPainterStatus!=="off"),foreground:o.getForeground(t.editor.storage.formatPainter.formatPainterStatus!=="off"),title:o.getTitle("Format Painter"),onClick:o.formatPainterClick,onDblclick:o.formatPainterDoubleClick},{default:y.withCtx(()=>e[30]||(e[30]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Personalize"},null,-1)])),_:1,__:[30]},8,["theme","background","foreground","title","onClick","onDblclick"]),y.renderSlot(n.$slots,"custom-buttons-1",{defaultClass:"power-editor-cmd-btn"}),e[57]||(e[57]=y.createElementVNode("hr",null,null,-1)),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("blockquote")),foreground:o.getForeground(t.editor.isActive("blockquote")),title:o.getTitle("Block Quote"),onClick:e[6]||(e[6]=p=>o.exec("toggleBlockquote"))},{default:y.withCtx(()=>e[31]||(e[31]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--LeftDoubleQuote"},null,-1)])),_:1,__:[31]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1),title:o.getTitle("Horizontal Rule"),onClick:e[7]||(e[7]=p=>o.exec("setHorizontalRule"))},{default:y.withCtx(()=>e[32]||(e[32]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--ChromeMinimize"},null,-1)])),_:1,__:[32]},8,["theme","background","foreground","title"]),y.createVNode(a,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,editor:t.editor,getBackground:o.getBackground,getForeground:o.getForeground,execMore:o.execMore},{default:y.withCtx(p=>[y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1),title:o.getTitle("Header"),onClick:v=>p.show!==!1?p.show():""},{default:y.withCtx(()=>e[33]||(e[33]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Header1"},null,-1)])),_:2,__:[33]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","editor","getBackground","getForeground","execMore"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("superscript")),foreground:o.getForeground(t.editor.isActive("superscript")),title:o.getTitle("Task"),onClick:e[8]||(e[8]=p=>o.exec("toggleSuperscript"))},{default:y.withCtx(()=>e[34]||(e[34]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Superscript"},null,-1)])),_:1,__:[34]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("subscript")),foreground:o.getForeground(t.editor.isActive("subscript")),title:o.getTitle("Task"),onClick:e[9]||(e[9]=p=>o.exec("toggleSubscript"))},{default:y.withCtx(()=>e[35]||(e[35]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Subscript"},null,-1)])),_:1,__:[35]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("powerTaskList")),foreground:o.getForeground(t.editor.isActive("powerTaskList")),title:o.getTitle("Task"),onClick:e[10]||(e[10]=p=>o.exec("togglePowerTaskList"))},{default:y.withCtx(()=>e[36]||(e[36]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--TaskLogo"},null,-1)])),_:1,__:[36]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1),title:o.getTitle("ClearFormatting"),onClick:e[11]||(e[11]=()=>{o.exec("clearNodes"),o.exec("unsetAllMarks")})},{default:y.withCtx(()=>e[37]||(e[37]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--ClearFormatting"},null,-1)])),_:1,__:[37]},8,["theme","background","foreground","title"]),y.renderSlot(n.$slots,"custom-buttons-2",{defaultClass:"power-editor-cmd-btn"}),e[58]||(e[58]=y.createElementVNode("hr",null,null,-1)),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("bulletList")),foreground:o.getForeground(t.editor.isActive("bulletList")),title:o.getTitle("BulletedList"),onClick:e[12]||(e[12]=p=>o.exec("toggleBulletList"))},{default:y.withCtx(()=>e[38]||(e[38]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--BulletedList"},null,-1)])),_:1,__:[38]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("orderedList")),foreground:o.getForeground(t.editor.isActive("orderedList")),title:o.getTitle("NumberedList"),onClick:e[13]||(e[13]=p=>o.exec("toggleOrderedList"))},{default:y.withCtx(()=>e[39]||(e[39]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--NumberedList"},null,-1)])),_:1,__:[39]},8,["theme","background","foreground","title"]),y.createCommentVNode("",!0),y.renderSlot(n.$slots,"custom-buttons-3",{defaultClass:"power-editor-cmd-btn"}),e[59]||(e[59]=y.createElementVNode("hr",null,null,-1)),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive({textAlign:"left"})),foreground:o.getForeground(t.editor.isActive({textAlign:"left"})),title:o.getTitle("AlignLeft"),onClick:e[15]||(e[15]=p=>o.execMore("setTextAlign","left"))},{default:y.withCtx(()=>e[41]||(e[41]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--AlignLeft"},null,-1)])),_:1,__:[41]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive({textAlign:"center"})),foreground:o.getForeground(t.editor.isActive({textAlign:"center"})),title:o.getTitle("AlignCenter"),onClick:e[16]||(e[16]=p=>o.execMore("setTextAlign","center"))},{default:y.withCtx(()=>e[42]||(e[42]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--AlignCenter"},null,-1)])),_:1,__:[42]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive({textAlign:"right"})),foreground:o.getForeground(t.editor.isActive({textAlign:"right"})),title:o.getTitle("AlignRight"),onClick:e[17]||(e[17]=p=>o.execMore("setTextAlign","right"))},{default:y.withCtx(()=>e[43]||(e[43]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--AlignRight"},null,-1)])),_:1,__:[43]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive({textAlign:"justify"})),foreground:o.getForeground(t.editor.isActive({textAlign:"justify"})),title:o.getTitle("AlignJustify"),onClick:e[18]||(e[18]=p=>o.execMore("setTextAlign","justify"))},{default:y.withCtx(()=>e[44]||(e[44]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--AlignJustify"},null,-1)])),_:1,__:[44]},8,["theme","background","foreground","title"]),y.createCommentVNode("",!0),y.createCommentVNode("",!0),y.createCommentVNode("",!0),y.renderSlot(n.$slots,"custom-buttons-4",{defaultClass:"power-editor-cmd-btn"}),e[60]||(e[60]=y.createElementVNode("hr",null,null,-1)),y.createVNode(l,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,editor:t.editor,getBackground:o.getBackground,getForeground:o.getForeground,exec:o.exec,execMore:o.execMore},{default:y.withCtx(p=>[y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1,"rgba(239, 107, 87, 1)"),title:o.getTitle("Color"),onClick:v=>p.show!==!1?p.show():""},{default:y.withCtx(()=>e[47]||(e[47]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--FontColor"},null,-1)])),_:2,__:[47]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","editor","getBackground","getForeground","exec","execMore"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1,"rgba(222, 81, 140, 1)"),title:o.getTitle("Draw"),onClick:o.insertDrawingBlock},{default:y.withCtx(()=>e[48]||(e[48]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--StrokeErase2"},null,-1)])),_:1,__:[48]},8,["theme","background","foreground","title","onClick"]),y.createVNode(c,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,editor:t.editor,onInsertEmoji:o.insertEmoji},{default:y.withCtx(p=>[y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1,"rgba(255, 180, 0, 1)"),title:o.getTitle("Emoji"),onClick:v=>p.show!==!1?p.show():""},{default:y.withCtx(()=>e[49]||(e[49]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Emoji2"},null,-1)])),_:2,__:[49]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","editor","onInsertEmoji"]),y.createVNode(u,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,editor:t.editor,exec:o.exec,execMore:o.execMore},{default:y.withCtx(p=>[y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1,"rgba(56, 171, 127, 1)"),title:o.getTitle("Table"),onClick:v=>p.show!==!1?p.show():""},{default:y.withCtx(()=>e[50]||(e[50]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--TiltDown"},null,-1)])),_:2,__:[50]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","editor","exec","execMore"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("code")),foreground:o.getForeground(t.editor.isActive("code")),title:o.getTitle("Code"),onClick:e[21]||(e[21]=p=>o.exec("toggleCode"))},{default:y.withCtx(()=>e[51]||(e[51]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--CSharp"},null,-1)])),_:1,__:[51]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("equationBlock")),foreground:o.getForeground(t.editor.isActive("equationBlock")),title:o.getTitle("Equation"),onClick:o.insertEquation},{default:y.withCtx(()=>e[52]||(e[52]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Variable"},null,-1)])),_:1,__:[52]},8,["theme","background","foreground","title","onClick"]),y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(t.editor.isActive("codeBlock")),foreground:o.getForeground(t.editor.isActive("codeBlock")),title:o.getTitle("Code Block"),onClick:e[22]||(e[22]=p=>o.exec("toggleCodeBlock"))},{default:y.withCtx(()=>e[53]||(e[53]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Code"},null,-1)])),_:1,__:[53]},8,["theme","background","foreground","title"]),y.createVNode(h,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,onInsertImage:o.insertImg},{default:y.withCtx(p=>[y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1),title:o.getTitle("Image"),onClick:v=>p.show!==!1?p.show():""},{default:y.withCtx(()=>e[54]||(e[54]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Photo2"},null,-1)])),_:2,__:[54]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","onInsertImage"]),y.createVNode(g,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,onInsertLink:o.insertLink},{default:y.withCtx(p=>[y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1),title:o.getTitle("Link"),onClick:v=>p.show!==!1?p.show():""},{default:y.withCtx(()=>e[55]||(e[55]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Link"},null,-1)])),_:2,__:[55]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","onInsertLink"]),y.createVNode(b,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,onInsertEmbed:o.insertEmbed},{default:y.withCtx(p=>[y.createVNode(s,{class:"power-editor-cmd-btn",theme:i.thisTheme,"border-color":"transparent",background:o.getBackground(!1),foreground:o.getForeground(!1),title:o.getTitle("Embed"),onClick:v=>p.show!==!1?p.show():""},{default:y.withCtx(()=>e[56]||(e[56]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--FileHTML"},null,-1)])),_:2,__:[56]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","onInsertEmbed"]),y.renderSlot(n.$slots,"custom-buttons",{defaultClass:"power-editor-cmd-btn"})],6)}const D3=an(zP,[["render",qP]]),HP={components:{colorCallout:M3,TableCallout:N3},emits:["update:theme","save-click"],props:{editor:{default:()=>({})},showSave:{default:!0},mobileMode:{default:!1},foreground:{default:""},language:{default:"en"},theme:{default:"light"}},data(){return{thisTheme:this.theme,timer:{formatPainter:null}}},watch:{theme(n){this.thisTheme=n},thisTheme(n){this.$emit("update:theme",n)}},computed:{highlightColor(){return this.thisTheme==="dark"?{f:"rgba(36, 36, 36, 1)",b:"whitesmoke"}:{f:"whitesmoke",b:"rgba(36, 36, 36, 1)"}}},mounted(){this.thisTheme=this.theme},methods:{getTitle(n){return or(n,this.language)},getForeground(n,e={light:"rgba(65, 74, 90, 1)",dark:"rgba(245, 245, 245, 1)"}){return n?this.highlightColor.f:typeof e=="string"?e:e[this.thisTheme]},getBackground(n){return n?this.highlightColor.b:this.thisTheme==="dark"?"rgba(50, 50, 50, 1)":"rgba(239, 239, 239, 1)"},exec(n){n&&this.editor.chain().focus()[n]().run()},execMore(n,e){this.editor.chain().focus()[n](e).run()},insert(n){this.editor.commands.insertContent(n)},insertEmoji(n){this.editor.chain().focus().insertContent(n).run()},insertImg(n){n.forEach(e=>{this.insert(`<img src="${e}"></img>
411
+ `)})},insertLink(n){this.editor.chain().focus().insertContent(n).run()},insertEmbed(n){this.editor.chain().focus().insertContent(n).run()},insertInlineEquation(n=""){this.editor.chain().focus().insertContent({type:"inlineEquation",attrs:{theme:this.theme,value:n}}).run()},insertEquationBlock(){this.editor.chain().focus().insertContent({type:"equationBlock",attrs:{theme:this.theme}}).run()},insertEquation(){let n=this.editor.view.state,e=this.editor.view.state.selection,t=n.doc.textBetween(e.from,e.to," ");t.length>0?this.insertInlineEquation(t):this.insertEquationBlock()},insertDrawingBlock(){this.editor.chain().focus().insertContent("<drawing-block></drawing-block>").run()},formatPainterClick(){this.editor.storage.formatPainter.formatPainterStatus==="off"?(this.editor.commands.setFormatPainter(),this.editor.commands.detectFormat()):(clearTimeout(this.timer.formatPainter),this.timer.formatPainter=setTimeout(()=>{this.editor.commands.unsetFormatPainter()},300))},formatPainterDoubleClick(){clearTimeout(this.timer.formatPainter),this.editor.commands.stickyFormatPainter(),this.editor.commands.detectFormat()},save(){this.$emit("save-click")}}};function VP(n,e,t,r,i,o){const s=y.resolveComponent("fv-button"),a=y.resolveComponent("color-callout"),l=y.resolveComponent("table-callout");return y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["power-editor-bubble-tool-bar-container",[{dark:i.thisTheme==="dark"}]])},[y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(t.editor.isActive("bold")),foreground:o.getForeground(t.editor.isActive("bold")),"border-color":"transparent",title:o.getTitle("Bold"),onClick:e[0]||(e[0]=c=>o.exec("toggleBold"))},{default:y.withCtx(()=>e[7]||(e[7]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Bold"},null,-1)])),_:1,__:[7]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(t.editor.isActive("italic")),foreground:o.getForeground(t.editor.isActive("italic")),"border-color":"transparent",title:o.getTitle("Italic"),onClick:e[1]||(e[1]=c=>o.exec("toggleItalic"))},{default:y.withCtx(()=>e[8]||(e[8]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Italic"},null,-1)])),_:1,__:[8]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(t.editor.isActive("strike")),foreground:o.getForeground(t.editor.isActive("strike")),"border-color":"transparent",title:o.getTitle("Strikethrough"),onClick:e[2]||(e[2]=c=>o.exec("toggleStrike"))},{default:y.withCtx(()=>e[9]||(e[9]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Strikethrough"},null,-1)])),_:1,__:[9]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(t.editor.isActive("underline")),foreground:o.getForeground(t.editor.isActive("underline")),"border-color":"transparent",title:o.getTitle("Underline"),onClick:e[3]||(e[3]=c=>o.exec("toggleUnderline"))},{default:y.withCtx(()=>e[10]||(e[10]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Underline"},null,-1)])),_:1,__:[10]},8,["theme","background","foreground","title"]),e[18]||(e[18]=y.createElementVNode("hr",null,null,-1)),y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(t.editor.storage.formatPainter.formatPainterStatus!=="off"),foreground:o.getForeground(t.editor.storage.formatPainter.formatPainterStatus!=="off"),"border-color":"transparent",title:o.getTitle("Format Painter"),onClick:o.formatPainterClick,onDblclick:o.formatPainterDoubleClick},{default:y.withCtx(()=>e[11]||(e[11]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Personalize"},null,-1)])),_:1,__:[11]},8,["theme","background","foreground","title","onClick","onDblclick"]),y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(!1),foreground:o.getForeground(!1),"border-color":"transparent",title:o.getTitle("ClearFormatting"),onClick:e[4]||(e[4]=()=>{o.exec("clearNodes"),o.exec("unsetAllMarks")})},{default:y.withCtx(()=>e[12]||(e[12]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--ClearFormatting"},null,-1)])),_:1,__:[12]},8,["theme","background","foreground","title"]),y.createVNode(a,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,editor:t.editor,getBackground:o.getBackground,getForeground:o.getForeground,exec:o.exec,execMore:o.execMore},{default:y.withCtx(c=>[y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(!1),foreground:o.getForeground(!1,"rgba(239, 107, 87, 1)"),"border-color":"transparent",title:o.getTitle("Color"),onClick:u=>c.show!==!1?c.show():""},{default:y.withCtx(()=>e[13]||(e[13]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--FontColor"},null,-1)])),_:2,__:[13]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","editor","getBackground","getForeground","exec","execMore"]),y.createVNode(l,{mobileMode:t.mobileMode,foreground:t.foreground,theme:i.thisTheme,language:t.language,editor:t.editor,exec:o.exec,execMore:o.execMore},{default:y.withCtx(c=>[y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(!1),foreground:o.getForeground(!1,"rgba(56, 171, 127, 1)"),"border-color":"transparent",title:o.getTitle("Table"),onClick:u=>c.show!==!1?c.show():""},{default:y.withCtx(()=>e[14]||(e[14]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--TiltDown"},null,-1)])),_:2,__:[14]},1032,["theme","background","foreground","title","onClick"])]),_:1},8,["mobileMode","foreground","theme","language","editor","exec","execMore"]),y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(t.editor.isActive("code")),foreground:o.getForeground(t.editor.isActive("code")),"border-color":"transparent",title:o.getTitle("Code"),onClick:e[5]||(e[5]=c=>o.exec("toggleCode"))},{default:y.withCtx(()=>e[15]||(e[15]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--CSharp"},null,-1)])),_:1,__:[15]},8,["theme","background","foreground","title"]),y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(t.editor.isActive("equationBlock")),foreground:o.getForeground(t.editor.isActive("equationBlock")),"border-color":"transparent",title:o.getTitle("Equation"),onClick:o.insertEquation},{default:y.withCtx(()=>e[16]||(e[16]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Variable"},null,-1)])),_:1,__:[16]},8,["theme","background","foreground","title","onClick"]),y.createVNode(s,{class:"power-editor-bubble-cmd-btn",theme:i.thisTheme,background:o.getBackground(t.editor.isActive("codeBlock")),foreground:o.getForeground(t.editor.isActive("codeBlock")),"border-color":"transparent",title:o.getTitle("Code Block"),onClick:e[6]||(e[6]=c=>o.exec("toggleCodeBlock"))},{default:y.withCtx(()=>e[17]||(e[17]=[y.createElementVNode("i",{class:"ms-Icon ms-Icon--Code"},null,-1)])),_:1,__:[17]},8,["theme","background","foreground","title"])],2)}const R3=an(HP,[["render",VP]]),UP={class:"power-editor-bubble-tool-bar"},GP=Object.assign({name:"PowerEditor",components:{EditorContent:Zb,toolBar:D3,bubbleToolBar:R3},data(){return{editor:null,mobileMode:!1,timer:{widthTimer:{}}}},watch:{modelValue(n){this.editor.commands.setContent(n),this.propsSync(),this.$emit("content-change",n)},editable(){this.editor.setEditable(this.editable)},language(){this.propsSync()},theme(){this.propsSync()}},computed:{formatPainterStatus(){return!this.editor||!this.editor.storage||!this.editor.storage.formatPainter?"off":this.editor.storage.formatPainter.formatPainterStatus}},mounted(){this.init(),this.eventInit(),this.propsSync(),this.widthTimerInit(),this.$emit("on-mounted",this.editor)},methods:{init(){let n=this;const e=[w_.configure({dropcursor:{color:this.foreground,width:3,class:"power-editor-drop-cursor-custom"},codeBlock:!1,...this.starterKit}),xC,kC.configure({types:["heading","paragraph"]}),SC,TC.configure({multicolor:!0}),AC,YC,ZC,XC,cT.configure({lowlight:ze,HTMLAttributes:{class:"tiptap-code"},languageClassPrefix:"language-"}),ZD,nR,oR,dR,qR,UR,eO,HB,Cy.configure({HTMLAttributes:{},resizable:!0}),Ty,My,Ay,this.defaultStorageInit(),pA.configure({element:document.querySelector(".power-editor-bubble-tool-bar"),tippyOptions:{maxWidth:"none"},shouldShow:({editor:t,view:r,state:i,oldState:o,from:s,to:a})=>i.selection.from===i.selection.to?!1:!(t.isActive("imageblock")||t.isActive("equationBlock")||t.isActive("embedblock")||t.isActive("drawingBlock"))}),VB,...this.extensions];this.disabledPlaceholder==!1&&e.push(JC.configure({emptyEditorClass:"is-editor-empty",placeholder:()=>this.placeholder})),this.editor=new n7({editable:this.editable,content:this.modelValue,extensions:e,editorProps:{},onUpdate(){n.$emit("change")}})},eventInit(){this.$refs.container.addEventListener("scroll",n=>{this.$refs.container&&this.$emit("container-scroll",{el:this.$refs.container,oriEvent:n})}),this.$refs.container.addEventListener("mouseup",()=>{let n=this.editor.storage.formatPainter.formatPainterStatus;n!=="off"&&(this.editor.commands.pasteFormat(),n==="once"&&(this.editor.storage.formatPainter.formatPainterStatus="off"))})},defaultStorageInit(){return Mn.create({name:"defaultStorage",addStorage(){return{showControlOnReadonly:!1,language:"en",theme:"light"}}})},propsSync(){this.editor.storage.defaultStorage.codeBlockLanguagesBox=this.codeBlockLanguagesBox,this.editor.storage.defaultStorage.codeBlockLineNumbers=this.codeBlockLineNumbers,this.editor.storage.defaultStorage.showControlOnReadonly=this.showControlOnReadonly,this.editor.storage.defaultStorage.imgLazyLoad=this.imgLazyLoad,this.editor.storage.defaultStorage.imgPreview=this.imgPreview,this.editor.storage.defaultStorage.foreground=this.foreground,this.editor.storage.defaultStorage.language=this.language,this.editor.storage.defaultStorage.theme=this.theme,this.editor.storage.defaultStorage.getTitle=e=>or(e,this.language),this.editor.storage.defaultStorage.editorContainer=this.$refs.container,this.editor.storage.defaultStorage.imgInterceptor=this.imgInterceptor;let n={mentionList:()=>[],filterFunc:()=>!0,chooseItemCallback:()=>{console.log("chooseItemCallback")},mentionClickCallback:()=>{console.log("mentionClickCallback")},headerForeground:()=>this.foreground};this.editor.storage.defaultStorage.mentionItemTools=Object.assign(n,this.mentionItemAttr)},insert(n){this.editor.commands.insertContent(n)},insertImg(n){n.forEach(e=>{this.insert(`<img src="${e}" theme="${this.theme}"></img>
412
+ `)})},widthTimerInit(){this.timer.widthTimer=setInterval(()=>{this.$el.clientWidth<this.mobileDisplayWidth?this.mobileMode=!0:this.mobileMode=!1},300)},async customPaste(n){let e=[],t=!1,r=!1,o=(n.clipboardData||window.clipboardData).items;for(let s=0;s<o.length;s++)if(o[s].type.indexOf("html")>-1&&(t=o[s]),o[s].type.indexOf("plain")>-1&&(r=o[s]),o[s].kind==="file"&&o[s].type.indexOf("image")>-1){let a=o[s].getAsFile(),l=new FileReader;l.readAsDataURL(a);let c=new Promise(u=>{l.onload=h=>{u(h.target.result)}});e.push(c)}if(t!==!1){let s=await new Promise(g=>{t.getAsString(b=>{g(b)})}),a=new DOMParser,l=a.parseFromString(s,"text/html");console.log(l);let c=a.parseFromString("","text/html"),u=[];l.body.children.forEach(g=>{let b=this.dfsDiv(g);u=u.concat(b)}),c.body.append(...u);let h=c.querySelectorAll("img");for(let g=0;g<h.length;g++){let b=h[g],p=h[g];for(;b&&b.parentNode!=c.body;)b=b.parentNode;b.parentNode.insertBefore(p,b)}console.log(c.body.innerHTML),this.insert(c.body.innerHTML)}else r!==!1?r.getAsString(s=>{const a=this.editor.state.tr.insertText(s);this.editor.view.dispatch(a)}):Promise.all(e).then(s=>{this.insertImg(s)})},dfsDiv(n){if(n.tagName.toUpperCase()!=="DIV")return[n];let e=n.children,t=[];return e.forEach(r=>{t=t.concat(this.dfsDiv(r))}),t},focus(){this.editor.commands.focus()},computeMarkdown(n){return new PD([w_,Cy,Ty,My,Ay]).encoder(n)},insertMarkdown(n){let e=this.computeMarkdown(n);return this.editor.commands.setContent(e),e},saveMarkdown(){return new zD(this.mdDecNodeFuncsPlugins,this.mdFlags).decode(this.editor.getJSON())},save(){this.$emit("save-json",this.editor.getJSON()),this.$emit("save-html",this.editor.getHTML())}},beforeDestroy(){this.editor.destroy();for(let n in this.timer)clearInterval(this.timer[n])},beforeUnmount(){this.editor.destroy()}},{props:{modelValue:{default:""},editable:{default:!0},placeholder:{default:"Write something …"},disabledPlaceholder:{default:!1,type:Boolean},contentMaxWidth:{default:"900px",type:String},foreground:{default:"#958DF1"},linkColor:{default:"#958DF1"},selectionBackground:{default:"rgba(144, 145, 234, 0.3)"},selectionForeground:{default:""},tableDragColor:{default:"rgba(144, 145, 234, 0.6)"},codeColor:{default:""},editorBackground:{default:""},editorOutSideBackground:{default:""},mobileDisplayWidth:{default:768},showToolBar:{default:!0},toolbarHeight:{default:65},toolbarBackground:{default:""},toolbarBorderRadius:{default:8},editablePaddingTop:{default:!1},readOnlyPaddingTop:{default:5},editablePaddingBottom:{default:315},readOnlyPaddingBottom:{default:55},codeBlockLanguagesBox:{default:!0},codeBlockLineNumbers:{default:!1},imgPreview:{default:!0},imgInterceptor:{default:null},mentionItemAttr:{default:()=>({})},imgLazyLoad:{default:!0},extensions:{default:()=>[]},starterKit:{default:()=>{}},showControlOnReadonly:{default:!0},mdDecNodeFuncsPlugins:{default:()=>({})},mdFlags:{default:()=>({})},showSave:{default:!0},language:{default:"cn"},theme:{default:"light"}},emits:["content-change","on-mounted","change","container-scroll","save-json","save-html"],setup(n,{emit:e}){return(t,r)=>(y.openBlock(),y.createElementBlock("div",{class:y.normalizeClass(["power-editor-container",[{dark:n.theme==="dark"}]])},[y.createVNode(y.Transition,{name:"power-editor-tool-bar-fade-in"},{default:y.withCtx(()=>[t.editor&&n.editable?y.withDirectives((y.openBlock(),y.createBlock(D3,{key:0,editor:t.editor,theme:n.theme,foreground:n.foreground,language:n.language,toolbarHeight:n.toolbarHeight,toolbarBorderRadius:n.toolbarBorderRadius,mobileMode:t.mobileMode,showSave:n.showSave,onSaveClick:t.save},{"custom-buttons":y.withCtx(i=>[y.renderSlot(t.$slots,"custom-buttons",{editor:t.editor,defaultClass:i.defaultClass})]),"custom-buttons-front":y.withCtx(i=>[y.renderSlot(t.$slots,"custom-buttons-front",{editor:t.editor,defaultClass:i.defaultClass})]),"custom-buttons-0":y.withCtx(i=>[y.renderSlot(t.$slots,"custom-buttons-0",{editor:t.editor,defaultClass:i.defaultClass})]),"custom-buttons-1":y.withCtx(i=>[y.renderSlot(t.$slots,"custom-buttons-1",{editor:t.editor,defaultClass:i.defaultClass})]),"custom-buttons-2":y.withCtx(i=>[y.renderSlot(t.$slots,"custom-buttons-2",{editor:t.editor,defaultClass:i.defaultClass})]),"custom-buttons-3":y.withCtx(i=>[y.renderSlot(t.$slots,"custom-buttons-3",{editor:t.editor,defaultClass:i.defaultClass})]),"custom-buttons-4":y.withCtx(i=>[y.renderSlot(t.$slots,"custom-buttons-4",{editor:t.editor,defaultClass:i.defaultClass})]),_:3},8,["editor","theme","foreground","language","toolbarHeight","toolbarBorderRadius","mobileMode","showSave","onSaveClick"])),[[y.vShow,n.showToolBar]]):y.createCommentVNode("",!0)]),_:3}),t.editor&&n.editable?y.withDirectives((y.openBlock(),y.createElementBlock("div",{key:0,class:"power-editor-tool-bar-acrylic-background",style:y.normalizeStyle({height:`${n.toolbarHeight}px`,background:n.toolbarBackground,"border-radius":`${n.toolbarBorderRadius}px`})},null,4)),[[y.vShow,n.showToolBar]]):y.createCommentVNode("",!0),y.createElementVNode("div",{class:y.normalizeClass([[{"read-only":!n.editable||!n.showToolBar}],"tip-tap-editor-container"]),ref:"container",style:y.normalizeStyle({"padding-top":n.editable&&n.showToolBar?`${n.editablePaddingTop?n.editablePaddingTop:n.toolbarHeight+10}px`:`${n.readOnlyPaddingTop}px`,background:n.editorOutSideBackground,"--link-color":n.linkColor,"--selection-background":n.selectionBackground,"--selection-color":n.selectionForeground,"--table-drag-color":n.tableDragColor,"--code-color":n.codeColor})},[y.renderSlot(t.$slots,"front-content"),y.createVNode(y.unref(Zb),{class:y.normalizeClass(["tip-tap-editor",[{"format-painter":t.formatPainterStatus!=="off"}]]),editor:t.editor,theme:n.theme,ref:"editor",style:y.normalizeStyle({"padding-bottom":n.editable?`${n.editablePaddingBottom}px`:`${n.readOnlyPaddingBottom}px`,background:n.editorBackground,"max-width":n.contentMaxWidth})},null,8,["class","editor","theme","style"])],6),y.createElementVNode("div",UP,[t.editor&&n.editable?(y.openBlock(),y.createBlock(R3,{key:0,editor:t.editor,theme:n.theme,foreground:n.foreground,language:n.language,"tippy-options":{duration:100},ref:"bubbleToolBar",mobileMode:t.mobileMode,showSave:n.showSave},null,8,["editor","theme","foreground","language","mobileMode","showSave"])):y.createCommentVNode("",!0)])],2))}}),O3=n=>(n.install=e=>{e.component(n.name,n)},n),$P=O3(GP),WP={class:"dev-c-container"},KP=O3(Object.assign({name:"DevC",data(){return{message:"Welcome to Dev C!"}},mounted(){console.log(this.message)}},{props:{title:{type:[String],default:"Dev C"}},setup(n){return(e,t)=>{const r=y.resolveComponent("fv-button");return y.openBlock(),y.createElementBlock("div",WP,[y.createElementVNode("h1",null,y.toDisplayString(n.title),1),y.createElementVNode("p",null,y.toDisplayString(e.message),1),y.createVNode(r,null,{default:y.withCtx(()=>t[0]||(t[0]=[y.createTextVNode("Confirm")])),_:1,__:[0]})])}}})),jP=[$P,KP],I3={install(n,e){for(const t of jP)n.use(t)}};oi.PowerEditorPlugins=I3,oi.default=I3,Object.defineProperties(oi,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});