const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/text-text.mjs'),window.OC.filePath('text', '', 'js/preload-helper-BorfeO-5.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-B7-PK3p1.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor-h9EWaODT.chunk.mjs'),window.OC.filePath('text', '', 'js/index-CdM8BgQf.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-hi3Hwbeu.chunk.mjs'),window.OC.filePath('text', '', 'js/index-kwZOOyqh.chunk.mjs'),window.OC.filePath('text', '', 'js/NcLoadingIcon-CBTC2zMe.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DCzdQJ7L.chunk.mjs'),window.OC.filePath('text', '', 'css/NcLoadingIcon-KhuNWNbx.chunk.css'),window.OC.filePath('text', '', 'js/NcNoteCard-CwNXZ4vV-Dyi378DT.chunk.mjs'),window.OC.filePath('text', '', 'js/index-D3wiQe9-.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Bnw2WuIx.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CwNXZ4vV-CAMZkS3U.chunk.css'),window.OC.filePath('text', '', 'js/MediaHandler.provider-BoQN9QHH.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-DS8A9d_w.chunk.mjs'),window.OC.filePath('text', '', 'js/MenuBar-yxPsXXVM.chunk.mjs'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-CgbTELjq-BFpDVXaF.chunk.mjs'),window.OC.filePath('text', '', 'css/NcCheckboxRadioSwitch-CgbTELjq-yZHRUesB.chunk.css'),window.OC.filePath('text', '', 'css/MenuBar-nIM-GMTV.chunk.css'),window.OC.filePath('text', '', 'css/Editor-WVhMK67-.chunk.css'),window.OC.filePath('text', '', 'css/text-BrKBJp1J.chunk.css'),window.OC.filePath('text', '', 'js/index-BMbtc3xh-CIFfGXha.chunk.mjs'),window.OC.filePath('text', '', 'js/mermaid.core-BHWH4e1q.chunk.mjs')])))=>i.map(i=>d[i]); import{e as Ku,g as C5,B as o3,n as qt,N as rp,c as qn,t as lt,G as Xs,r as ar,q as VI,b as Xe,s as Qx,u as jI,v as Jx,w as GI,x as qI,y as WI,z as KI,d as np,A as QI,C as Xx,D as JI,E as XI,F as eL,H as ek,I as tL,J as tk,K as rL,j as nL,L as iL,M as oL,O as sL,P as rk,Q as nk,R as aL,m as lL,S as uL,T as cL,U as dL,V as hL,W as pL,X as fL,Y as mL,Z as gL,_ as ik,$ as yL,a0 as TL,a1 as bL,a2 as vL,a3 as AL,a4 as EL,a5 as wL,a6 as SL,a7 as DL,a8 as xL,a9 as kL,aa as CL,ab as _L,ac as NL,ad as FL,ae as OL,af as ML,ag as RL}from"./NcLoadingIcon-CBTC2zMe.chunk.mjs";import{g as bo,a as _s,c as wA,d as BL,i as IL}from"./index-DCzdQJ7L.chunk.mjs";import{g as SA,i as wl,p as Sl,s as x2,r as _i,c as ri,f as ld,d as _5,w as u0,V as ea,n as s3,x as LL,a as Uf,u as ok,j as ud,h as zL,e as Mb,o as YL,z as sk}from"./vue.runtime.esm-B7-PK3p1.chunk.mjs";import{l as bi}from"./logger-DS8A9d_w.chunk.mjs";import{p as Ds,s as xu,e as Io,b as Rb,g as kh,u as jg,r as HL,c as PL,d as ZL}from"./index-CdM8BgQf.chunk.mjs";import{l as zu,d as $L}from"./index-D3wiQe9-.chunk.mjs";import{g as D0,c as i0,e as dh,d as ak,a as lk}from"./emoji-picker-hi3Hwbeu.chunk.mjs";import{_ as S1}from"./preload-helper-BorfeO-5.chunk.mjs";import{n as Ze,u as Ra}from"./NcCheckboxRadioSwitch-CgbTELjq-BFpDVXaF.chunk.mjs";import{i as UL,m as VL,k as uk,e as Nl,S as ck,N as as,l as pi,h as wa,o as dk,p as jL,q as GL,r as qL,v as WL,f as Fo,w as KL,x as QL,y as DA,z as Gg,A as Ry,B as JL,C as XL,D as hk,E as ez,d as a3,F as pk,G as fk,u as mk,H as tz,j as Vf,g as xA,I as rz,t as Hd,J as nz,K as iz,a as gk,s as uu,c as l3,L as oz,M as sz,O as az,P as lz,Q as uz,T as $m}from"./NcNoteCard-CwNXZ4vV-Dyi378DT.chunk.mjs";import{e as yk,f as cz,g as dz,c as hz,h as pz,d as Bb,i as fz,j as Ib,k as Lb,p as Tk,l as mz,S as gz,m as yz,n as Tz,b as bz}from"./MediaHandler.provider-BoQN9QHH.chunk.mjs";const $I="text",UI="7.0.0-dev.3";function vz(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(Ku()),r=e.getWeekInfo?.()??e.weekInfo;return r?r.firstDay%7:1}function Az(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=Ku();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"long"})]}function Ez(){if(typeof globalThis.dayNamesShort<"u")return globalThis.dayNamesShort;const e=Ku();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"short"})]}function wz(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=Ku();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"narrow"})]}function Sz(){if(typeof globalThis.monthNames<"u")return globalThis.monthNames;const e=Ku();return[new Date(1970,0).toLocaleDateString(e,{month:"long"}),new Date(1970,1).toLocaleDateString(e,{month:"long"}),new Date(1970,2).toLocaleDateString(e,{month:"long"}),new Date(1970,3).toLocaleDateString(e,{month:"long"}),new Date(1970,4).toLocaleDateString(e,{month:"long"}),new Date(1970,5).toLocaleDateString(e,{month:"long"}),new Date(1970,6).toLocaleDateString(e,{month:"long"}),new Date(1970,7).toLocaleDateString(e,{month:"long"}),new Date(1970,8).toLocaleDateString(e,{month:"long"}),new Date(1970,9).toLocaleDateString(e,{month:"long"}),new Date(1970,10).toLocaleDateString(e,{month:"long"}),new Date(1970,11).toLocaleDateString(e,{month:"long"})]}function Dz(){if(typeof globalThis.monthNamesShort<"u")return globalThis.monthNamesShort;const e=Ku();return[new Date(1970,0).toLocaleDateString(e,{month:"short"}),new Date(1970,1).toLocaleDateString(e,{month:"short"}),new Date(1970,2).toLocaleDateString(e,{month:"short"}),new Date(1970,3).toLocaleDateString(e,{month:"short"}),new Date(1970,4).toLocaleDateString(e,{month:"short"}),new Date(1970,5).toLocaleDateString(e,{month:"short"}),new Date(1970,6).toLocaleDateString(e,{month:"short"}),new Date(1970,7).toLocaleDateString(e,{month:"short"}),new Date(1970,8).toLocaleDateString(e,{month:"short"}),new Date(1970,9).toLocaleDateString(e,{month:"short"}),new Date(1970,10).toLocaleDateString(e,{month:"short"}),new Date(1970,11).toLocaleDateString(e,{month:"short"})]}function xz(e=Date.now(),r={}){const n={ignoreSeconds:!1,language:C5(),relativeTime:"long",...r},i=new Date(e),o=new Intl.RelativeTimeFormat([n.language,C5()],{numeric:"auto",style:n.relativeTime}),s=(i.getTime()-Date.now())/1e3;if(Math.abs(s)<59.5)return n.ignoreSeconds||o.format(Math.round(s),"second");const a=s/60;if(Math.abs(a)<=59)return o.format(Math.round(a),"minute");const l=a/60;if(Math.abs(l)<23.5)return o.format(Math.round(l),"hour");const u=l/24;if(Math.abs(u)<6.5)return o.format(Math.round(u),"day");if(Math.abs(u)<27.5){const h=u/7;return o.format(Math.round(h),"week")}const c=u/30,d=Math.abs(c)<11?{month:n.relativeTime,day:"numeric"}:{year:n.relativeTime==="narrow"?"2-digit":"numeric",month:n.relativeTime};return new Intl.DateTimeFormat([n.language,C5()],d).format(i)}function to(e){this.content=e}to.prototype={constructor:to,find:function(e){for(var r=0;r>1}},to.from=function(e){if(e instanceof to)return e;var r=[];if(e)for(var n in e)r.push(n,e[n]);return new to(r)};function bk(e,r,n){for(let i=0;;i++){if(i==e.childCount||i==r.childCount)return e.childCount==r.childCount?null:n;let o=e.child(i),s=r.child(i);if(o==s){n+=o.nodeSize;continue}if(!o.sameMarkup(s))return n;if(o.isText&&o.text!=s.text){for(let a=0;o.text[a]==s.text[a];a++)n++;return n}if(o.content.size||s.content.size){let a=bk(o.content,s.content,n+1);if(a!=null)return a}n+=o.nodeSize}}function vk(e,r,n,i){for(let o=e.childCount,s=r.childCount;;){if(o==0||s==0)return o==s?null:{a:n,b:i};let a=e.child(--o),l=r.child(--s),u=a.nodeSize;if(a==l){n-=u,i-=u;continue}if(!a.sameMarkup(l))return{a:n,b:i};if(a.isText&&a.text!=l.text){let c=0,d=Math.min(a.text.length,l.text.length);for(;cr&&i(u,o+l,s||null,a)!==!1&&u.content.size){let d=l+1;u.nodesBetween(Math.max(0,r-d),Math.min(u.content.size,n-d),i,o+d)}l=c}}descendants(r){this.nodesBetween(0,this.size,r)}textBetween(r,n,i,o){let s="",a=!0;return this.nodesBetween(r,n,(l,u)=>{let c=l.isText?l.text.slice(Math.max(r,u)-u,n-u):l.isLeaf?o?typeof o=="function"?o(l):o:l.type.spec.leafText?l.type.spec.leafText(l):"":"";l.isBlock&&(l.isLeaf&&c||l.isTextblock)&&i&&(a?a=!1:s+=i),s+=c},0),s}append(r){if(!r.size)return this;if(!this.size)return r;let n=this.lastChild,i=r.firstChild,o=this.content.slice(),s=0;for(n.isText&&n.sameMarkup(i)&&(o[o.length-1]=n.withText(n.text+i.text),s=1);sr)for(let s=0,a=0;ar&&((an)&&(l.isText?l=l.cut(Math.max(0,r-a),Math.min(l.text.length,n-a)):l=l.cut(Math.max(0,r-a-1),Math.min(l.content.size,n-a-1))),i.push(l),o+=l.nodeSize),a=u}return new ze(i,o)}cutByIndex(r,n){return r==n?ze.empty:r==0&&n==this.content.length?this:new ze(this.content.slice(r,n))}replaceChild(r,n){let i=this.content[r];if(i==n)return this;let o=this.content.slice(),s=this.size+n.nodeSize-i.nodeSize;return o[r]=n,new ze(o,s)}addToStart(r){return new ze([r].concat(this.content),this.size+r.nodeSize)}addToEnd(r){return new ze(this.content.concat(r),this.size+r.nodeSize)}eq(r){if(this.content.length!=r.content.length)return!1;for(let n=0;nthis.size||r<0)throw new RangeError(`Position ${r} outside of fragment (${this})`);for(let n=0,i=0;;n++){let o=this.child(n),s=i+o.nodeSize;if(s>=r)return s==r?Um(n+1,s):Um(n,i);i=s}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map(r=>r.toJSON()):null}static fromJSON(r,n){if(!n)return ze.empty;if(!Array.isArray(n))throw new RangeError("Invalid input for Fragment.fromJSON");return new ze(n.map(r.nodeFromJSON))}static fromArray(r){if(!r.length)return ze.empty;let n,i=0;for(let o=0;othis.type.rank&&(n||(n=r.slice(0,o)),n.push(this),i=!0),n&&n.push(s)}}return n||(n=r.slice()),i||n.push(this),n}removeFromSet(r){for(let n=0;ni.type.rank-o.type.rank),n}};en.none=[];class C2 extends Error{}class ht{constructor(r,n,i){this.content=r,this.openStart=n,this.openEnd=i}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(r,n){let i=Ek(this.content,r+this.openStart,n);return i&&new ht(i,this.openStart,this.openEnd)}removeBetween(r,n){return new ht(Ak(this.content,r+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(r){return this.content.eq(r.content)&&this.openStart==r.openStart&&this.openEnd==r.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let r={content:this.content.toJSON()};return this.openStart>0&&(r.openStart=this.openStart),this.openEnd>0&&(r.openEnd=this.openEnd),r}static fromJSON(r,n){if(!n)return ht.empty;let i=n.openStart||0,o=n.openEnd||0;if(typeof i!="number"||typeof o!="number")throw new RangeError("Invalid input for Slice.fromJSON");return new ht(ze.fromJSON(r,n.content),i,o)}static maxOpen(r,n=!0){let i=0,o=0;for(let s=r.firstChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.firstChild)i++;for(let s=r.lastChild;s&&!s.isLeaf&&(n||!s.type.spec.isolating);s=s.lastChild)o++;return new ht(r,i,o)}}ht.empty=new ht(ze.empty,0,0);function Ak(e,r,n){let{index:i,offset:o}=e.findIndex(r),s=e.maybeChild(i),{index:a,offset:l}=e.findIndex(n);if(o==r||s.isText){if(l!=n&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,r).append(e.cut(n))}if(i!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(i,s.copy(Ak(s.content,r-o-1,n-o-1)))}function Ek(e,r,n,i){let{index:o,offset:s}=e.findIndex(r),a=e.maybeChild(o);if(s==r||a.isText)return i&&!i.canReplace(o,o,n)?null:e.cut(0,r).append(n).append(e.cut(r));let l=Ek(a.content,r-s-1,n,a);return l&&e.replaceChild(o,a.copy(l))}function kz(e,r,n){if(n.openStart>e.depth)throw new C2("Inserted content deeper than insertion position");if(e.depth-n.openStart!=r.depth-n.openEnd)throw new C2("Inconsistent open depths");return wk(e,r,n,0)}function wk(e,r,n,i){let o=e.index(i),s=e.node(i);if(o==r.index(i)&&i=0&&e.isText&&e.sameMarkup(r[n])?r[n]=e.withText(r[n].text+e.text):r.push(e)}function D1(e,r,n,i){let o=(r||e).node(n),s=0,a=r?r.index(n):o.childCount;e&&(s=e.index(n),e.depth>n?s++:e.textOffset&&(zc(e.nodeAfter,i),s++));for(let l=s;lo&&Iy(e,r,o+1),a=i.depth>o&&Iy(n,i,o+1),l=[];return D1(null,e,o,l),s&&a&&r.index(o)==n.index(o)?(Sk(s,a),zc(Yc(s,Dk(e,r,n,i,o+1)),l)):(s&&zc(Yc(s,_2(e,r,o+1)),l),D1(r,n,o,l),a&&zc(Yc(a,_2(n,i,o+1)),l)),D1(i,null,o,l),new ze(l)}function _2(e,r,n){let i=[];if(D1(null,e,n,i),e.depth>n){let o=Iy(e,r,n+1);zc(Yc(o,_2(e,r,n+1)),i)}return D1(r,null,n,i),new ze(i)}function Cz(e,r){let n=r.depth-e.openStart,i=r.node(n).copy(e.content);for(let o=n-1;o>=0;o--)i=r.node(o).copy(ze.from(i));return{start:i.resolveNoCache(e.openStart+n),end:i.resolveNoCache(i.content.size-e.openEnd-n)}}class ef{constructor(r,n,i){this.pos=r,this.path=n,this.parentOffset=i,this.depth=n.length/3-1}resolveDepth(r){return r==null?this.depth:r<0?this.depth+r:r}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(r){return this.path[this.resolveDepth(r)*3]}index(r){return this.path[this.resolveDepth(r)*3+1]}indexAfter(r){return r=this.resolveDepth(r),this.index(r)+(r==this.depth&&!this.textOffset?0:1)}start(r){return r=this.resolveDepth(r),r==0?0:this.path[r*3-1]+1}end(r){return r=this.resolveDepth(r),this.start(r)+this.node(r).content.size}before(r){if(r=this.resolveDepth(r),!r)throw new RangeError("There is no position before the top-level node");return r==this.depth+1?this.pos:this.path[r*3-1]}after(r){if(r=this.resolveDepth(r),!r)throw new RangeError("There is no position after the top-level node");return r==this.depth+1?this.pos:this.path[r*3-1]+this.path[r*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let r=this.parent,n=this.index(this.depth);if(n==r.childCount)return null;let i=this.pos-this.path[this.path.length-1],o=r.child(n);return i?r.child(n).cut(i):o}get nodeBefore(){let r=this.index(this.depth),n=this.pos-this.path[this.path.length-1];return n?this.parent.child(r).cut(0,n):r==0?null:this.parent.child(r-1)}posAtIndex(r,n){n=this.resolveDepth(n);let i=this.path[n*3],o=n==0?0:this.path[n*3-1]+1;for(let s=0;s0;n--)if(this.start(n)<=r&&this.end(n)>=r)return n;return 0}blockRange(r=this,n){if(r.pos=0;i--)if(r.pos<=this.end(i)&&(!n||n(this.node(i))))return new tf(this,r,i);return null}sameParent(r){return this.pos-this.parentOffset==r.pos-r.parentOffset}max(r){return r.pos>this.pos?r:this}min(r){return r.pos=0&&n<=r.content.size))throw new RangeError("Position "+n+" out of range");let i=[],o=0,s=n;for(let a=r;;){let{index:l,offset:u}=a.content.findIndex(s),c=s-u;if(i.push(a,l,o+u),!c||(a=a.child(l),a.isText))break;s=c-1,o+=u+1}return new ef(n,i,s)}static resolveCached(r,n){let i=kA.get(r);if(i)for(let s=0;sr&&this.nodesBetween(r,n,s=>(i.isInSet(s.marks)&&(o=!0),!o)),o}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 r=this.type.name;return this.content.size&&(r+="("+this.content.toStringInner()+")"),xk(this.marks,r)}contentMatchAt(r){let n=this.type.contentMatch.matchFragment(this.content,0,r);if(!n)throw new Error("Called contentMatchAt on a node with invalid content");return n}canReplace(r,n,i=ze.empty,o=0,s=i.childCount){let a=this.contentMatchAt(r).matchFragment(i,o,s),l=a&&a.matchFragment(this.content,n);if(!l||!l.validEnd)return!1;for(let u=o;un.type.name)}`);this.content.forEach(n=>n.check())}toJSON(){let r={type:this.type.name};for(let n in this.attrs){r.attrs=this.attrs;break}return this.content.size&&(r.content=this.content.toJSON()),this.marks.length&&(r.marks=this.marks.map(n=>n.toJSON())),r}static fromJSON(r,n){if(!n)throw new RangeError("Invalid input for Node.fromJSON");let i;if(n.marks){if(!Array.isArray(n.marks))throw new RangeError("Invalid mark data for Node.fromJSON");i=n.marks.map(r.markFromJSON)}if(n.type=="text"){if(typeof n.text!="string")throw new RangeError("Invalid text node in JSON");return r.text(n.text,i)}let o=ze.fromJSON(r,n.content),s=r.nodeType(n.type).create(n.attrs,o,i);return s.type.checkAttrs(s.attrs),s}};c0.prototype.text=void 0;let Oz=class zy extends c0{constructor(r,n,i,o){if(super(r,n,null,o),!i)throw new RangeError("Empty text nodes are not allowed");this.text=i}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):xk(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(r,n){return this.text.slice(r,n)}get nodeSize(){return this.text.length}mark(r){return r==this.marks?this:new zy(this.type,this.attrs,this.text,r)}withText(r){return r==this.text?this:new zy(this.type,this.attrs,r,this.marks)}cut(r=0,n=this.text.length){return r==0&&n==this.text.length?this:this.withText(this.text.slice(r,n))}eq(r){return this.sameMarkup(r)&&this.text==r.text}toJSON(){let r=super.toJSON();return r.text=this.text,r}};function xk(e,r){for(let n=e.length-1;n>=0;n--)r=e[n].type.name+"("+r+")";return r}class Kc{constructor(r){this.validEnd=r,this.next=[],this.wrapCache=[]}static parse(r,n){let i=new Mz(r,n);if(i.next==null)return Kc.empty;let o=kk(i);i.next&&i.err("Unexpected trailing text");let s=Hz(Yz(o));return Pz(s,i),s}matchType(r){for(let n=0;nc.createAndFill()));for(let c=0;c=this.next.length)throw new RangeError(`There's no ${r}th edge in this content match`);return this.next[r]}toString(){let r=[];function n(i){r.push(i);for(let o=0;o{let s=o+(i.validEnd?"*":" ")+" ";for(let a=0;a"+r.indexOf(i.next[a].next);return s}).join(` `)}}Kc.empty=new Kc(!0);class Mz{constructor(r,n){this.string=r,this.nodeTypes=n,this.inline=null,this.pos=0,this.tokens=r.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(r){return this.next==r&&(this.pos++||!0)}err(r){throw new SyntaxError(r+" (in content expression '"+this.string+"')")}}function kk(e){let r=[];do r.push(Rz(e));while(e.eat("|"));return r.length==1?r[0]:{type:"choice",exprs:r}}function Rz(e){let r=[];do r.push(Bz(e));while(e.next&&e.next!=")"&&e.next!="|");return r.length==1?r[0]:{type:"seq",exprs:r}}function Bz(e){let r=zz(e);for(;;)if(e.eat("+"))r={type:"plus",expr:r};else if(e.eat("*"))r={type:"star",expr:r};else if(e.eat("?"))r={type:"opt",expr:r};else if(e.eat("{"))r=Iz(e,r);else break;return r}function CA(e){/\D/.test(e.next)&&e.err("Expected number, got '"+e.next+"'");let r=Number(e.next);return e.pos++,r}function Iz(e,r){let n=CA(e),i=n;return e.eat(",")&&(e.next!="}"?i=CA(e):i=-1),e.eat("}")||e.err("Unclosed braced range"),{type:"range",min:n,max:i,expr:r}}function Lz(e,r){let n=e.nodeTypes,i=n[r];if(i)return[i];let o=[];for(let s in n){let a=n[s];a.isInGroup(r)&&o.push(a)}return o.length==0&&e.err("No node type or group '"+r+"' found"),o}function zz(e){if(e.eat("(")){let r=kk(e);return e.eat(")")||e.err("Missing closing paren"),r}else if(/\W/.test(e.next))e.err("Unexpected token '"+e.next+"'");else{let r=Lz(e,e.next).map(n=>(e.inline==null?e.inline=n.isInline:e.inline!=n.isInline&&e.err("Mixing inline and block content"),{type:"name",value:n}));return e.pos++,r.length==1?r[0]:{type:"choice",exprs:r}}}function Yz(e){let r=[[]];return o(s(e,0),n()),r;function n(){return r.push([])-1}function i(a,l,u){let c={term:u,to:l};return r[a].push(c),c}function o(a,l){a.forEach(u=>u.to=l)}function s(a,l){if(a.type=="choice")return a.exprs.reduce((u,c)=>u.concat(s(c,l)),[]);if(a.type=="seq")for(let u=0;;u++){let c=s(a.exprs[u],l);if(u==a.exprs.length-1)return c;o(c,l=n())}else if(a.type=="star"){let u=n();return i(l,u),o(s(a.expr,u),u),[i(u)]}else if(a.type=="plus"){let u=n();return o(s(a.expr,l),u),o(s(a.expr,u),u),[i(u)]}else{if(a.type=="opt")return[i(l)].concat(s(a.expr,l));if(a.type=="range"){let u=l;for(let c=0;c{e[a].forEach(({term:l,to:u})=>{if(!l)return;let c;for(let d=0;d{c||o.push([l,c=[]]),c.indexOf(d)==-1&&c.push(d)})})});let s=r[i.join(",")]=new Kc(i.indexOf(e.length-1)>-1);for(let a=0;a-1}get whitespace(){return this.spec.whitespace||(this.spec.code?"pre":"normal")}hasRequiredAttrs(){for(let r in this.attrs)if(this.attrs[r].isRequired)return!0;return!1}compatibleContent(r){return this==r||this.contentMatch.compatible(r.contentMatch)}computeAttrs(r){return!r&&this.defaultAttrs?this.defaultAttrs:Nk(this.attrs,r)}create(r=null,n,i){if(this.isText)throw new Error("NodeType.create can't construct text nodes");return new c0(this,this.computeAttrs(r),ze.from(n),en.setFrom(i))}createChecked(r=null,n,i){return n=ze.from(n),this.checkContent(n),new c0(this,this.computeAttrs(r),n,en.setFrom(i))}createAndFill(r=null,n,i){if(r=this.computeAttrs(r),n=ze.from(n),n.size){let a=this.contentMatch.fillBefore(n);if(!a)return null;n=a.append(n)}let o=this.contentMatch.matchFragment(n),s=o&&o.fillBefore(ze.empty,!0);return s?new c0(this,r,n.append(s),en.setFrom(i)):null}validContent(r){let n=this.contentMatch.matchFragment(r);if(!n||!n.validEnd)return!1;for(let i=0;i-1}allowsMarks(r){if(this.markSet==null)return!0;for(let n=0;ni[s]=new Mk(s,n,a));let o=n.spec.topNode||"doc";if(!i[o])throw new RangeError("Schema is missing its top node type ('"+o+"')");if(!i.text)throw new RangeError("Every schema needs a 'text' type");for(let s in i.text.attrs)throw new RangeError("The text node type should not have attributes");return i}};function Zz(e,r,n){let i=n.split("|");return o=>{let s=o===null?"null":typeof o;if(i.indexOf(s)<0)throw new RangeError(`Expected value of type ${i} for attribute ${r} on type ${e}, got ${s}`)}}class $z{constructor(r,n,i){this.hasDefault=Object.prototype.hasOwnProperty.call(i,"default"),this.default=i.default,this.validate=typeof i.validate=="string"?Zz(r,n,i.validate):i.validate}get isRequired(){return!this.hasDefault}}class u3{constructor(r,n,i,o){this.name=r,this.rank=n,this.schema=i,this.spec=o,this.attrs=Ok(r,o.attrs),this.excluded=null;let s=_k(this.attrs);this.instance=s?new en(this,s):null}create(r=null){return!r&&this.instance?this.instance:new en(this,Nk(this.attrs,r))}static compile(r,n){let i=Object.create(null),o=0;return r.forEach((s,a)=>i[s]=new u3(s,o++,n,a)),i}removeFromSet(r){for(var n=0;n-1}}let zb=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let r=this.spec={};for(let i in e)r[i]=e[i];r.nodes=to.from(e.nodes),r.marks=to.from(e.marks||{}),this.nodes=NA.compile(this.spec.nodes,this),this.marks=u3.compile(this.spec.marks,this);let n=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=n[s]||(n[s]=Kc.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?FA(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==""?[]:FA(this,s.split(" "))}this.nodeFromJSON=i=>c0.fromJSON(this,i),this.markFromJSON=i=>en.fromJSON(this,i),this.topNodeType=this.nodes[this.spec.topNode||"doc"],this.cached.wrappings=Object.create(null)}node(e,r=null,n,i){if(typeof e=="string")e=this.nodeType(e);else if(e instanceof NA){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(r,n,i)}text(e,r){let n=this.nodes.text;return new Oz(n,n.defaultAttrs,e,en.setFrom(r))}mark(e,r){return typeof e=="string"&&(e=this.marks[e]),e.create(r)}nodeType(e){let r=this.nodes[e];if(!r)throw new RangeError("Unknown node type: "+e);return r}};function FA(e,r){let n=[];for(let i=0;i-1)&&n.push(a=u)}if(!a)throw new SyntaxError("Unknown mark type: '"+r[i]+"'")}return n}function Uz(e){return e.tag!=null}function Vz(e){return e.style!=null}let hh=class Yy{constructor(r,n){this.schema=r,this.rules=n,this.tags=[],this.styles=[];let i=this.matchedStyles=[];n.forEach(o=>{if(Uz(o))this.tags.push(o);else if(Vz(o)){let s=/[^=]*/.exec(o.style)[0];i.indexOf(s)<0&&i.push(s),this.styles.push(o)}}),this.normalizeLists=!this.tags.some(o=>{if(!/^(ul|ol)\b/.test(o.tag)||!o.node)return!1;let s=r.nodes[o.node];return s.contentMatch.matchType(s)})}parse(r,n={}){let i=new MA(this,n,!1);return i.addAll(r,en.none,n.from,n.to),i.finish()}parseSlice(r,n={}){let i=new MA(this,n,!0);return i.addAll(r,en.none,n.from,n.to),ht.maxOpen(i.finish())}matchTag(r,n,i){for(let o=i?this.tags.indexOf(i)+1:0;or.length&&(l.charCodeAt(r.length)!=61||l.slice(r.length+1)!=n))){if(a.getAttrs){let u=a.getAttrs(n);if(u===!1)continue;a.attrs=u||void 0}return a}}}static schemaRules(r){let n=[];function i(o){let s=o.priority==null?50:o.priority,a=0;for(;a{i(a=RA(a)),a.mark||a.ignore||a.clearMark||(a.mark=o)})}for(let o in r.nodes){let s=r.nodes[o].spec.parseDOM;s&&s.forEach(a=>{i(a=RA(a)),a.node||a.ignore||a.mark||(a.node=o)})}return n}static fromSchema(r){return r.cached.domParser||(r.cached.domParser=new Yy(r,Yy.schemaRules(r)))}};const Rk={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},jz={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},Bk={ol:!0,ul:!0},rf=1,Hy=2,x1=4;function OA(e,r,n){return r!=null?(r?rf:0)|(r==="full"?Hy:0):e&&e.whitespace=="pre"?rf|Hy:n&~x1}class Vm{constructor(r,n,i,o,s,a){this.type=r,this.attrs=n,this.marks=i,this.solid=o,this.options=a,this.content=[],this.activeMarks=en.none,this.match=s||(a&x1?null:r.contentMatch)}findWrapping(r){if(!this.match){if(!this.type)return[];let n=this.type.contentMatch.fillBefore(ze.from(r));if(n)this.match=this.type.contentMatch.matchFragment(n);else{let i=this.type.contentMatch,o;return(o=i.findWrapping(r.type))?(this.match=i,o):null}}return this.match.findWrapping(r.type)}finish(r){if(!(this.options&rf)){let i=this.content[this.content.length-1],o;if(i&&i.isText&&(o=/[ \t\r\n\u000c]+$/.exec(i.text))){let s=i;i.text.length==o[0].length?this.content.pop():this.content[this.content.length-1]=s.withText(s.text.slice(0,s.text.length-o[0].length))}}let n=ze.from(this.content);return!r&&this.match&&(n=n.append(this.match.fillBefore(ze.empty,!0))),this.type?this.type.create(this.attrs,n,this.marks):n}inlineContext(r){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:r.parentNode&&!Rk.hasOwnProperty(r.parentNode.nodeName.toLowerCase())}}class MA{constructor(r,n,i){this.parser=r,this.options=n,this.isOpen=i,this.open=0,this.localPreserveWS=!1;let o=n.topNode,s,a=OA(null,n.preserveWhitespace,0)|(i?x1:0);o?s=new Vm(o.type,o.attrs,en.none,!0,n.topMatch||o.type.contentMatch,a):i?s=new Vm(null,null,en.none,!0,null,a):s=new Vm(r.schema.topNodeType,null,en.none,!0,null,a),this.nodes=[s],this.find=n.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(r,n){r.nodeType==3?this.addTextNode(r,n):r.nodeType==1&&this.addElement(r,n)}addTextNode(r,n){let i=r.nodeValue,o=this.top,s=o.options&Hy?"full":this.localPreserveWS||(o.options&rf)>0,{schema:a}=this.parser;if(s==="full"||o.inlineContext(r)||/[^ \t\r\n\u000c]/.test(i)){if(s)if(s==="full")i=i.replace(/\r\n?/g,` `);else if(a.linebreakReplacement&&/[\r\n]/.test(i)&&this.top.findWrapping(a.linebreakReplacement.create())){let l=i.split(/\r?\n|\r/);for(let u=0;u!u.clearMark(c)):n=n.concat(this.parser.schema.marks[u.mark].create(u.attrs)),u.consuming===!1)l=u;else break}}return n}addElementByRule(r,n,i,o){let s,a;if(n.node)if(a=this.parser.schema.nodes[n.node],a.isLeaf)this.insertNode(a.create(n.attrs),i,r.nodeName=="BR")||this.leafFallback(r,i);else{let u=this.enter(a,n.attrs||null,i,n.preserveWhitespace);u&&(s=!0,i=u)}else{let u=this.parser.schema.marks[n.mark];i=i.concat(u.create(n.attrs))}let l=this.top;if(a&&a.isLeaf)this.findInside(r);else if(o)this.addElement(r,i,o);else if(n.getContent)this.findInside(r),n.getContent(r,this.parser.schema).forEach(u=>this.insertNode(u,i,!1));else{let u=r;typeof n.contentElement=="string"?u=r.querySelector(n.contentElement):typeof n.contentElement=="function"?u=n.contentElement(r):n.contentElement&&(u=n.contentElement),this.findAround(r,u,!0),this.addAll(u,i),this.findAround(r,u,!1)}s&&this.sync(l)&&this.open--}addAll(r,n,i,o){let s=i||0;for(let a=i?r.childNodes[i]:r.firstChild,l=o==null?null:r.childNodes[o];a!=l;a=a.nextSibling,++s)this.findAtPoint(r,s),this.addDOM(a,n);this.findAtPoint(r,s)}findPlace(r,n,i){let o,s;for(let a=this.open,l=0;a>=0;a--){let u=this.nodes[a],c=u.findWrapping(r);if(c&&(!o||o.length>c.length+l)&&(o=c,s=u,!c.length))break;if(u.solid){if(i)break;l+=2}}if(!o)return null;this.sync(s);for(let a=0;a(a.type?a.type.allowsMarkType(c.type):BA(c.type,r))?(u=c.addToSet(u),!1):!0),this.nodes.push(new Vm(r,n,u,o,null,l)),this.open++,i}closeExtra(r=!1){let n=this.nodes.length-1;if(n>this.open){for(;n>this.open;n--)this.nodes[n-1].content.push(this.nodes[n].finish(r));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(r){for(let n=this.open;n>=0;n--){if(this.nodes[n]==r)return this.open=n,!0;this.localPreserveWS&&(this.nodes[n].options|=rf)}return!1}get currentPos(){this.closeExtra();let r=0;for(let n=this.open;n>=0;n--){let i=this.nodes[n].content;for(let o=i.length-1;o>=0;o--)r+=i[o].nodeSize;n&&r++}return r}findAtPoint(r,n){if(this.find)for(let i=0;i-1)return r.split(/\s*\|\s*/).some(this.matchesContext,this);let n=r.split("/"),i=this.options.context,o=!this.isOpen&&(!i||i.parent.type==this.nodes[0].type),s=-(i?i.depth+1:0)+(o?0:1),a=(l,u)=>{for(;l>=0;l--){let c=n[l];if(c==""){if(l==n.length-1||l==0)continue;for(;u>=s;u--)if(a(l-1,u))return!0;return!1}else{let d=u>0||u==0&&o?this.nodes[u].type:i&&u>=s?i.node(u-s).type:null;if(!d||d.name!=c&&!d.isInGroup(c))return!1;u--}}return!0};return a(n.length-1,this.open)}textblockFromContext(){let r=this.options.context;if(r)for(let n=r.depth;n>=0;n--){let i=r.node(n).contentMatchAt(r.indexAfter(n)).defaultType;if(i&&i.isTextblock&&i.defaultAttrs)return i}for(let n in this.parser.schema.nodes){let i=this.parser.schema.nodes[n];if(i.isTextblock&&i.defaultAttrs)return i}}}function Gz(e){for(let r=e.firstChild,n=null;r;r=r.nextSibling){let i=r.nodeType==1?r.nodeName.toLowerCase():null;i&&Bk.hasOwnProperty(i)&&n?(n.appendChild(r),r=n):i=="li"?n=r:i&&(n=null)}}function qz(e,r){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,r)}function RA(e){let r={};for(let n in e)r[n]=e[n];return r}function BA(e,r){let n=r.schema.nodes;for(let i in n){let o=n[i];if(!o.allowsMarkType(e))continue;let s=[],a=l=>{s.push(l);for(let u=0;u{if(s.length||a.marks.length){let l=0,u=0;for(;l=0;o--){let s=this.serializeMark(r.marks[o],r.isInline,n);s&&((s.contentDOM||s.dom).appendChild(i),i=s.dom)}return i}serializeMark(r,n,i={}){let o=this.marks[r.type.name];return o&&qg(F5(i),o(r,n),null,r.attrs)}static renderSpec(r,n,i=null,o){return qg(r,n,i,o)}static fromSchema(r){return r.cached.domSerializer||(r.cached.domSerializer=new cd(this.nodesFromSchema(r),this.marksFromSchema(r)))}static nodesFromSchema(r){let n=IA(r.nodes);return n.text||(n.text=i=>i.text),n}static marksFromSchema(r){return IA(r.marks)}}function IA(e){let r={};for(let n in e){let i=e[n].spec.toDOM;i&&(r[n]=i)}return r}function F5(e){return e.document||window.document}const LA=new WeakMap;function Wz(e){let r=LA.get(e);return r===void 0&&LA.set(e,r=Kz(e)),r}function Kz(e){let r=null;function n(i){if(i&&typeof i=="object")if(Array.isArray(i))if(typeof i[0]=="string")r||(r=[]),r.push(i);else for(let o=0;o-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 a=o.indexOf(" ");a>0&&(n=o.slice(0,a),o=o.slice(a+1));let l,u=n?e.createElementNS(n,o):e.createElement(o),c=r[1],d=1;if(c&&typeof c=="object"&&c.nodeType==null&&!Array.isArray(c)){d=2;for(let h in c)if(c[h]!=null){let p=h.indexOf(" ");p>0?u.setAttributeNS(h.slice(0,p),h.slice(p+1),c[h]):h=="style"&&u.style?u.style.cssText=c[h]:u.setAttribute(h,c[h])}}for(let h=d;hd)throw new RangeError("Content hole must be the only child of its parent node");return{dom:u,contentDOM:u}}else{let{dom:f,contentDOM:m}=qg(e,p,n,i);if(u.appendChild(f),m){if(l)throw new RangeError("Multiple content holes");l=m}}}return{dom:u,contentDOM:l}}const Ik=65535,Lk=Math.pow(2,16);function Qz(e,r){return e+r*Lk}function zA(e){return e&Ik}function Jz(e){return(e-(e&Ik))/Lk}const zk=1,Yk=2,Wg=4,Hk=8;class Py{constructor(r,n,i){this.pos=r,this.delInfo=n,this.recover=i}get deleted(){return(this.delInfo&Hk)>0}get deletedBefore(){return(this.delInfo&(zk|Wg))>0}get deletedAfter(){return(this.delInfo&(Yk|Wg))>0}get deletedAcross(){return(this.delInfo&Wg)>0}}class xs{constructor(r,n=!1){if(this.ranges=r,this.inverted=n,!r.length&&xs.empty)return xs.empty}recover(r){let n=0,i=zA(r);if(!this.inverted)for(let o=0;or)break;let c=this.ranges[l+s],d=this.ranges[l+a],h=u+c;if(r<=h){let p=c?r==u?-1:r==h?1:n:n,f=u+o+(p<0?0:d);if(i)return f;let m=r==(n<0?u:h)?null:Qz(l/3,r-u),v=r==u?Yk:r==h?zk:Wg;return(n<0?r!=u:r!=h)&&(v|=Hk),new Py(f,v,m)}o+=d-c}return i?r+o:new Py(r+o,0,null)}touches(r,n){let i=0,o=zA(n),s=this.inverted?2:1,a=this.inverted?1:2;for(let l=0;lr)break;let c=this.ranges[l+s],d=u+c;if(r<=d&&l==o*3)return!0;i+=this.ranges[l+a]-c}return!1}forEach(r){let n=this.inverted?2:1,i=this.inverted?1:2;for(let o=0,s=0;o=0;n--){let o=r.getMirror(n);this.appendMap(r._maps[n].invert(),o!=null&&o>n?i-o-1:void 0)}}invert(){let r=new nf;return r.appendMappingInverted(this),r}map(r,n=1){if(this.mirror)return this._map(r,n,!0);for(let i=this.from;is&&u!a.isAtom||!l.type.allowsMarkType(this.mark.type)?a:a.mark(this.mark.addToSet(a.marks)),o),n.openStart,n.openEnd);return vi.fromReplace(r,this.from,this.to,s)}invert(){return new xa(this.from,this.to,this.mark)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new yu(n.pos,i.pos,this.mark)}merge(r){return r instanceof yu&&r.mark.eq(this.mark)&&this.from<=r.to&&this.to>=r.from?new yu(Math.min(this.from,r.from),Math.max(this.to,r.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(r,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new yu(n.from,n.to,r.markFromJSON(n.mark))}}Eo.jsonID("addMark",yu);class xa extends Eo{constructor(r,n,i){super(),this.from=r,this.to=n,this.mark=i}apply(r){let n=r.slice(this.from,this.to),i=new ht(Yb(n.content,o=>o.mark(this.mark.removeFromSet(o.marks)),r),n.openStart,n.openEnd);return vi.fromReplace(r,this.from,this.to,i)}invert(){return new yu(this.from,this.to,this.mark)}map(r){let n=r.mapResult(this.from,1),i=r.mapResult(this.to,-1);return n.deleted&&i.deleted||n.pos>=i.pos?null:new xa(n.pos,i.pos,this.mark)}merge(r){return r instanceof xa&&r.mark.eq(this.mark)&&this.from<=r.to&&this.to>=r.from?new xa(Math.min(this.from,r.from),Math.max(this.to,r.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(r,n){if(typeof n.from!="number"||typeof n.to!="number")throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new xa(n.from,n.to,r.markFromJSON(n.mark))}}Eo.jsonID("removeMark",xa);class Tu extends Eo{constructor(r,n){super(),this.pos=r,this.mark=n}apply(r){let n=r.nodeAt(this.pos);if(!n)return vi.fail("No node at mark step's position");let i=n.type.create(n.attrs,null,this.mark.addToSet(n.marks));return vi.fromReplace(r,this.pos,this.pos+1,new ht(ze.from(i),0,n.isLeaf?0:1))}invert(r){let n=r.nodeAt(this.pos);if(n){let i=this.mark.addToSet(n.marks);if(i.length==n.marks.length){for(let o=0;oi.pos?null:new ji(n.pos,i.pos,o,s,this.slice,this.insert,this.structure)}toJSON(){let r={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(r.slice=this.slice.toJSON()),this.structure&&(r.structure=!0),r}static fromJSON(r,n){if(typeof n.from!="number"||typeof n.to!="number"||typeof n.gapFrom!="number"||typeof n.gapTo!="number"||typeof n.insert!="number")throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new ji(n.from,n.to,n.gapFrom,n.gapTo,ht.fromJSON(r,n.slice),n.insert,!!n.structure)}}Eo.jsonID("replaceAround",ji);function Zy(e,r,n){let i=e.resolve(r),o=n-r,s=i.depth;for(;o>0&&s>0&&i.indexAfter(s)==i.node(s).childCount;)s--,o--;if(o>0){let a=i.node(s).maybeChild(i.indexAfter(s));for(;o>0;){if(!a||a.isLeaf)return!0;a=a.firstChild,o--}}return!1}function Xz(e,r,n,i){let o=[],s=[],a,l;e.doc.nodesBetween(r,n,(u,c,d)=>{if(!u.isInline)return;let h=u.marks;if(!i.isInSet(h)&&d.type.allowsMarkType(i.type)){let p=Math.max(c,r),f=Math.min(c+u.nodeSize,n),m=i.addToSet(h);for(let v=0;ve.step(u)),s.forEach(u=>e.step(u))}function eY(e,r,n,i){let o=[],s=0;e.doc.nodesBetween(r,n,(a,l)=>{if(!a.isInline)return;s++;let u=null;if(i instanceof u3){let c=a.marks,d;for(;d=i.isInSet(c);)(u||(u=[])).push(d),c=d.removeFromSet(c)}else i?i.isInSet(a.marks)&&(u=[i]):u=a.marks;if(u&&u.length){let c=Math.min(l+a.nodeSize,n);for(let d=0;de.step(new xa(a.from,a.to,a.style)))}function Hb(e,r,n,i=n.contentMatch,o=!0){let s=e.doc.nodeAt(r),a=[],l=r+1;for(let u=0;u=0;u--)e.step(a[u])}function tY(e,r,n){return(r==0||e.canReplace(r,e.childCount))&&(n==e.childCount||e.canReplace(0,n))}function ip(e){let r=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let n=e.depth,i=0,o=0;;--n){let s=e.$from.node(n),a=e.$from.index(n)+i,l=e.$to.indexAfter(n)-o;if(nn;m--)v||i.index(m)>0?(v=!0,d=ze.from(i.node(m).copy(d)),h++):u--;let p=ze.empty,f=0;for(let m=s,v=!1;m>n;m--)v||o.after(m+1)=0;a--){if(i.size){let l=n[a].type.contentMatch.matchFragment(i);if(!l||!l.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}i=ze.from(n[a].type.create(n[a].attrs,i))}let o=r.start,s=r.end;e.step(new ji(o,s,o,s,new ht(i,0,0),n.length,!0))}function sY(e,r,n,i,o){if(!i.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let s=e.steps.length;e.doc.nodesBetween(r,n,(a,l)=>{let u=typeof o=="function"?o(a):o;if(a.isTextblock&&!a.hasMarkup(i,u)&&aY(e.doc,e.mapping.slice(s).map(l),i)){let c=null;if(i.schema.linebreakReplacement){let f=i.whitespace=="pre",m=!!i.contentMatch.matchType(i.schema.linebreakReplacement);f&&!m?c=!1:!f&&m&&(c=!0)}c===!1&&Zk(e,a,l,s),Hb(e,e.mapping.slice(s).map(l,1),i,void 0,c===null);let d=e.mapping.slice(s),h=d.map(l,1),p=d.map(l+a.nodeSize,1);return e.step(new ji(h,p,h+1,p-1,new ht(ze.from(i.create(u,null,a.marks)),0,0),1,!0)),c===!0&&Pk(e,a,l,s),!1}})}function Pk(e,r,n,i){r.forEach((o,s)=>{if(o.isText){let a,l=/\r?\n|\r/g;for(;a=l.exec(o.text);){let u=e.mapping.slice(i).map(n+1+s+a.index);e.replaceWith(u,u+1,r.type.schema.linebreakReplacement.create())}}})}function Zk(e,r,n,i){r.forEach((o,s)=>{if(o.type==o.type.schema.linebreakReplacement){let a=e.mapping.slice(i).map(n+1+s);e.replaceWith(a,a+1,r.type.schema.text(` `))}})}function aY(e,r,n){let i=e.resolve(r),o=i.index();return i.parent.canReplaceWith(o,o+1,n)}function lY(e,r,n,i,o){let s=e.doc.nodeAt(r);if(!s)throw new RangeError("No node at given position");n||(n=s.type);let a=n.create(i,null,o||s.marks);if(s.isLeaf)return e.replaceWith(r,r+s.nodeSize,a);if(!n.validContent(s.content))throw new RangeError("Invalid content for node type "+n.name);e.step(new ji(r,r+s.nodeSize,r+1,r+s.nodeSize-1,new ht(ze.from(a),0,0),1,!0))}function d0(e,r,n=1,i){let o=e.resolve(r),s=o.depth-n,a=i&&i[i.length-1]||o.parent;if(s<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let c=o.depth-1,d=n-2;c>s;c--,d--){let h=o.node(c),p=o.index(c);if(h.type.spec.isolating)return!1;let f=h.content.cutByIndex(p,h.childCount),m=i&&i[d+1];m&&(f=f.replaceChild(0,m.type.create(m.attrs)));let v=i&&i[d]||h;if(!h.canReplace(p+1,h.childCount)||!v.type.validContent(f))return!1}let l=o.indexAfter(s),u=i&&i[0];return o.node(s).canReplaceWith(l,l,u?u.type:o.node(s+1).type)}function uY(e,r,n=1,i){let o=e.doc.resolve(r),s=ze.empty,a=ze.empty;for(let l=o.depth,u=o.depth-n,c=n-1;l>u;l--,c--){s=ze.from(o.node(l).copy(s));let d=i&&i[c];a=ze.from(d?d.type.create(d.attrs,a):o.node(l).copy(a))}e.step(new Ui(r,r,new ht(s.append(a),n,n),!0))}function Qu(e,r){let n=e.resolve(r),i=n.index();return $k(n.nodeBefore,n.nodeAfter)&&n.parent.canReplace(i,i+1)}function cY(e,r){r.content.size||e.type.compatibleContent(r.type);let n=e.contentMatchAt(e.childCount),{linebreakReplacement:i}=e.type.schema;for(let o=0;o0?(s=i.node(o+1),l++,a=i.node(o).maybeChild(l)):(s=i.node(o).maybeChild(l-1),a=i.node(o+1)),s&&!s.isTextblock&&$k(s,a)&&i.node(o).canReplace(l,l+1))return r;if(o==0)break;r=n<0?i.before(o):i.after(o)}}function dY(e,r,n){let i=null,{linebreakReplacement:o}=e.doc.type.schema,s=e.doc.resolve(r-n),a=s.node().type;if(o&&a.inlineContent){let d=a.whitespace=="pre",h=!!a.contentMatch.matchType(o);d&&!h?i=!1:!d&&h&&(i=!0)}let l=e.steps.length;if(i===!1){let d=e.doc.resolve(r+n);Zk(e,d.node(),d.before(),l)}a.inlineContent&&Hb(e,r+n-1,a,s.node().contentMatchAt(s.index()),i==null);let u=e.mapping.slice(l),c=u.map(r-n);if(e.step(new Ui(c,u.map(r+n,-1),ht.empty,!0)),i===!0){let d=e.doc.resolve(c);Pk(e,d.node(),d.before(),e.steps.length)}return e}function hY(e,r,n){let i=e.resolve(r);if(i.parent.canReplaceWith(i.index(),i.index(),n))return r;if(i.parentOffset==0)for(let o=i.depth-1;o>=0;o--){let s=i.index(o);if(i.node(o).canReplaceWith(s,s,n))return i.before(o+1);if(s>0)return null}if(i.parentOffset==i.parent.content.size)for(let o=i.depth-1;o>=0;o--){let s=i.indexAfter(o);if(i.node(o).canReplaceWith(s,s,n))return i.after(o+1);if(s=0;a--){let l=a==i.depth?0:i.pos<=(i.start(a+1)+i.end(a+1))/2?-1:1,u=i.index(a)+(l>0?1:0),c=i.node(a),d=!1;if(s==1)d=c.canReplace(u,u,o);else{let h=c.contentMatchAt(u).findWrapping(o.firstChild.type);d=h&&c.canReplaceWith(u,u,h[0])}if(d)return l==0?i.pos:l<0?i.before(a+1):i.after(a+1)}return null}function d3(e,r,n=r,i=ht.empty){if(r==n&&!i.size)return null;let o=e.resolve(r),s=e.resolve(n);return Vk(o,s,i)?new Ui(r,n,i):new pY(o,s,i).fit()}function Vk(e,r,n){return!n.openStart&&!n.openEnd&&e.start()==r.start()&&e.parent.canReplace(e.index(),r.index(),n.content)}class pY{constructor(r,n,i){this.$from=r,this.$to=n,this.unplaced=i,this.frontier=[],this.placed=ze.empty;for(let o=0;o<=r.depth;o++){let s=r.node(o);this.frontier.push({type:s.type,match:s.contentMatchAt(r.indexAfter(o))})}for(let o=r.depth;o>0;o--)this.placed=ze.from(r.node(o).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 r=this.mustMoveInline(),n=this.placed.size-this.depth-this.$from.depth,i=this.$from,o=this.close(r<0?this.$to:i.doc.resolve(r));if(!o)return null;let s=this.placed,a=i.depth,l=o.depth;for(;a&&l&&s.childCount==1;)s=s.firstChild.content,a--,l--;let u=new ht(s,a,l);return r>-1?new ji(i.pos,r,this.$to.pos,this.$to.end(),u,n):u.size||i.pos!=this.$to.pos?new Ui(i.pos,o.pos,u):null}findFittable(){let r=this.unplaced.openStart;for(let n=this.unplaced.content,i=0,o=this.unplaced.openEnd;i1&&(o=0),s.type.spec.isolating&&o<=i){r=i;break}n=s.content}for(let n=1;n<=2;n++)for(let i=n==1?r:this.unplaced.openStart;i>=0;i--){let o,s=null;i?(s=M5(this.unplaced.content,i-1).firstChild,o=s.content):o=this.unplaced.content;let a=o.firstChild;for(let l=this.depth;l>=0;l--){let{type:u,match:c}=this.frontier[l],d,h=null;if(n==1&&(a?c.matchType(a.type)||(h=c.fillBefore(ze.from(a),!1)):s&&u.compatibleContent(s.type)))return{sliceDepth:i,frontierDepth:l,parent:s,inject:h};if(n==2&&a&&(d=c.findWrapping(a.type)))return{sliceDepth:i,frontierDepth:l,parent:s,wrap:d};if(s&&c.matchType(s.type))break}}}openMore(){let{content:r,openStart:n,openEnd:i}=this.unplaced,o=M5(r,n);return!o.childCount||o.firstChild.isLeaf?!1:(this.unplaced=new ht(r,n+1,Math.max(i,o.size+n>=r.size-i?n+1:0)),!0)}dropNode(){let{content:r,openStart:n,openEnd:i}=this.unplaced,o=M5(r,n);if(o.childCount<=1&&n>0){let s=r.size-n<=n+o.size;this.unplaced=new ht(h1(r,n-1,1),n-1,s?n-1:i)}else this.unplaced=new ht(h1(r,n,1),n,i)}placeNodes({sliceDepth:r,frontierDepth:n,parent:i,inject:o,wrap:s}){for(;this.depth>n;)this.closeFrontierNode();if(s)for(let v=0;v1||u==0||v.content.size)&&(h=w,d.push(jk(v.mark(p.allowedMarks(v.marks)),c==1?u:0,c==l.childCount?f:-1)))}let m=c==l.childCount;m||(f=-1),this.placed=p1(this.placed,n,ze.from(d)),this.frontier[n].match=h,m&&f<0&&i&&i.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let v=0,w=l;v1&&o==this.$to.end(--i);)++o;return o}findCloseLevel(r){e:for(let n=Math.min(this.depth,r.depth);n>=0;n--){let{match:i,type:o}=this.frontier[n],s=n=0;l--){let{match:u,type:c}=this.frontier[l],d=R5(r,l,c,u,!0);if(!d||d.childCount)continue e}return{depth:n,fit:a,move:s?r.doc.resolve(r.after(n+1)):r}}}}close(r){let n=this.findCloseLevel(r);if(!n)return null;for(;this.depth>n.depth;)this.closeFrontierNode();n.fit.childCount&&(this.placed=p1(this.placed,n.depth,n.fit)),r=n.move;for(let i=n.depth+1;i<=r.depth;i++){let o=r.node(i),s=o.type.contentMatch.fillBefore(o.content,!0,r.index(i));this.openFrontierNode(o.type,o.attrs,s)}return r}openFrontierNode(r,n=null,i){let o=this.frontier[this.depth];o.match=o.match.matchType(r),this.placed=p1(this.placed,this.depth,ze.from(r.create(n,i))),this.frontier.push({type:r,match:r.contentMatch})}closeFrontierNode(){let r=this.frontier.pop().match.fillBefore(ze.empty,!0);r.childCount&&(this.placed=p1(this.placed,this.frontier.length,r))}}function h1(e,r,n){return r==0?e.cutByIndex(n,e.childCount):e.replaceChild(0,e.firstChild.copy(h1(e.firstChild.content,r-1,n)))}function p1(e,r,n){return r==0?e.append(n):e.replaceChild(e.childCount-1,e.lastChild.copy(p1(e.lastChild.content,r-1,n)))}function M5(e,r){for(let n=0;n1&&(i=i.replaceChild(0,jk(i.firstChild,r-1,i.childCount==1?n-1:0))),r>0&&(i=e.type.contentMatch.fillBefore(i).append(i),n<=0&&(i=i.append(e.type.contentMatch.matchFragment(i).fillBefore(ze.empty,!0)))),e.copy(i)}function R5(e,r,n,i,o){let s=e.node(r),a=o?e.indexAfter(r):e.index(r);if(a==s.childCount&&!n.compatibleContent(s.type))return null;let l=i.fillBefore(s.content,!0,a);return l&&!fY(n,s.content,a)?l:null}function fY(e,r,n){for(let i=n;i0;p--,f--){let m=o.node(p).type.spec;if(m.defining||m.definingAsContext||m.isolating)break;a.indexOf(p)>-1?l=p:o.before(p)==f&&a.splice(1,0,-p)}let u=a.indexOf(l),c=[],d=i.openStart;for(let p=i.content,f=0;;f++){let m=p.firstChild;if(c.push(m),f==i.openStart)break;p=m.content}for(let p=d-1;p>=0;p--){let f=c[p],m=mY(f.type);if(m&&!f.sameMarkup(o.node(Math.abs(l)-1)))d=p;else if(m||!f.type.isTextblock)break}for(let p=i.openStart;p>=0;p--){let f=(p+d+1)%(i.openStart+1),m=c[f];if(m)for(let v=0;v=0&&(e.replace(r,n,i),!(e.steps.length>h));p--){let f=a[p];f<0||(r=o.before(f),n=s.after(f))}}function Gk(e,r,n,i,o){if(ri){let s=o.contentMatchAt(0),a=s.fillBefore(e).append(e);e=a.append(s.matchFragment(a).fillBefore(ze.empty,!0))}return e}function yY(e,r,n,i){if(!i.isInline&&r==n&&e.doc.resolve(r).parent.content.size){let o=hY(e.doc,r,i.type);o!=null&&(r=n=o)}e.replaceRange(r,n,new ht(ze.from(i),0,0))}function TY(e,r,n){let i=e.doc.resolve(r),o=e.doc.resolve(n),s=qk(i,o);for(let a=0;a0&&(u||i.node(l-1).canReplace(i.index(l-1),o.indexAfter(l-1))))return e.delete(i.before(l),o.after(l))}for(let a=1;a<=i.depth&&a<=o.depth;a++)if(r-i.start(a)==i.depth-a&&n>i.end(a)&&o.end(a)-n!=o.depth-a&&i.start(a-1)==o.start(a-1)&&i.node(a-1).canReplace(i.index(a-1),o.index(a-1)))return e.delete(i.before(a),n);e.delete(r,n)}function qk(e,r){let n=[],i=Math.min(e.depth,r.depth);for(let o=i;o>=0;o--){let s=e.start(o);if(sr.pos+(r.depth-o)||e.node(o).type.spec.isolating||r.node(o).type.spec.isolating)break;(s==r.start(o)||o==e.depth&&o==r.depth&&e.parent.inlineContent&&r.parent.inlineContent&&o&&r.start(o-1)==s-1)&&n.push(o)}return n}class ph extends Eo{constructor(r,n,i){super(),this.pos=r,this.attr=n,this.value=i}apply(r){let n=r.nodeAt(this.pos);if(!n)return vi.fail("No node at attribute step's position");let i=Object.create(null);for(let s in n.attrs)i[s]=n.attrs[s];i[this.attr]=this.value;let o=n.type.create(i,null,n.marks);return vi.fromReplace(r,this.pos,this.pos+1,new ht(ze.from(o),0,n.isLeaf?0:1))}getMap(){return xs.empty}invert(r){return new ph(this.pos,this.attr,r.nodeAt(this.pos).attrs[this.attr])}map(r){let n=r.mapResult(this.pos,1);return n.deletedAfter?null:new ph(n.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(r,n){if(typeof n.pos!="number"||typeof n.attr!="string")throw new RangeError("Invalid input for AttrStep.fromJSON");return new ph(n.pos,n.attr,n.value)}}Eo.jsonID("attr",ph);class of extends Eo{constructor(r,n){super(),this.attr=r,this.value=n}apply(r){let n=Object.create(null);for(let o in r.attrs)n[o]=r.attrs[o];n[this.attr]=this.value;let i=r.type.create(n,r.content,r.marks);return vi.ok(i)}getMap(){return xs.empty}invert(r){return new of(this.attr,r.attrs[this.attr])}map(r){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(r,n){if(typeof n.attr!="string")throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new of(n.attr,n.value)}}Eo.jsonID("docAttr",of);let qd=class extends Error{};qd=function e(r){let n=Error.call(this,r);return n.__proto__=e.prototype,n},qd.prototype=Object.create(Error.prototype),qd.prototype.constructor=qd,qd.prototype.name="TransformError";class Zb{constructor(r){this.doc=r,this.steps=[],this.docs=[],this.mapping=new nf}get before(){return this.docs.length?this.docs[0]:this.doc}step(r){let n=this.maybeStep(r);if(n.failed)throw new qd(n.failed);return this}maybeStep(r){let n=r.apply(this.doc);return n.failed||this.addStep(r,n.doc),n}get docChanged(){return this.steps.length>0}addStep(r,n){this.docs.push(this.doc),this.steps.push(r),this.mapping.appendMap(r.getMap()),this.doc=n}replace(r,n=r,i=ht.empty){let o=d3(this.doc,r,n,i);return o&&this.step(o),this}replaceWith(r,n,i){return this.replace(r,n,new ht(ze.from(i),0,0))}delete(r,n){return this.replace(r,n,ht.empty)}insert(r,n){return this.replaceWith(r,r,n)}replaceRange(r,n,i){return gY(this,r,n,i),this}replaceRangeWith(r,n,i){return yY(this,r,n,i),this}deleteRange(r,n){return TY(this,r,n),this}lift(r,n){return rY(this,r,n),this}join(r,n=1){return dY(this,r,n),this}wrap(r,n){return oY(this,r,n),this}setBlockType(r,n=r,i,o=null){return sY(this,r,n,i,o),this}setNodeMarkup(r,n,i=null,o){return lY(this,r,n,i,o),this}setNodeAttribute(r,n,i){return this.step(new ph(r,n,i)),this}setDocAttribute(r,n){return this.step(new of(r,n)),this}addNodeMark(r,n){return this.step(new Tu(r,n)),this}removeNodeMark(r,n){let i=this.doc.nodeAt(r);if(!i)throw new RangeError("No node at position "+r);if(n instanceof en)n.isInSet(i.marks)&&this.step(new Qc(r,n));else{let o=i.marks,s,a=[];for(;s=n.isInSet(o);)a.push(new Qc(r,s)),o=s.removeFromSet(o);for(let l=a.length-1;l>=0;l--)this.step(a[l])}return this}split(r,n=1,i){return uY(this,r,n,i),this}addMark(r,n,i){return Xz(this,r,n,i),this}removeMark(r,n,i){return eY(this,r,n,i),this}clearIncompatible(r,n,i){return Hb(this,r,n,i),this}}const B5=Object.create(null);class rr{constructor(r,n,i){this.$anchor=r,this.$head=n,this.ranges=i||[new $b(r.min(n),r.max(n))]}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 r=this.ranges;for(let n=0;n=0;s--){let a=n<0?Wd(r.node(0),r.node(s),r.before(s+1),r.index(s),n,i):Wd(r.node(0),r.node(s),r.after(s+1),r.index(s)+1,n,i);if(a)return a}return null}static near(r,n=1){return this.findFrom(r,n)||this.findFrom(r,-n)||new Xo(r.node(0))}static atStart(r){return Wd(r,r,0,0,1)||new Xo(r)}static atEnd(r){return Wd(r,r,r.content.size,r.childCount,-1)||new Xo(r)}static fromJSON(r,n){if(!n||!n.type)throw new RangeError("Invalid input for Selection.fromJSON");let i=B5[n.type];if(!i)throw new RangeError(`No selection type ${n.type} defined`);return i.fromJSON(r,n)}static jsonID(r,n){if(r in B5)throw new RangeError("Duplicate use of selection JSON ID "+r);return B5[r]=n,n.prototype.jsonID=r,n}getBookmark(){return Lt.between(this.$anchor,this.$head).getBookmark()}}rr.prototype.visible=!0;class $b{constructor(r,n){this.$from=r,this.$to=n}}let HA=!1;function PA(e){!HA&&!e.parent.inlineContent&&(HA=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class Lt extends rr{constructor(r,n=r){PA(r),PA(n),super(r,n)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(r,n){let i=r.resolve(n.map(this.head));if(!i.parent.inlineContent)return rr.near(i);let o=r.resolve(n.map(this.anchor));return new Lt(o.parent.inlineContent?o:i,i)}replace(r,n=ht.empty){if(super.replace(r,n),n==ht.empty){let i=this.$from.marksAcross(this.$to);i&&r.ensureMarks(i)}}eq(r){return r instanceof Lt&&r.anchor==this.anchor&&r.head==this.head}getBookmark(){return new h3(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(r,n){if(typeof n.anchor!="number"||typeof n.head!="number")throw new RangeError("Invalid input for TextSelection.fromJSON");return new Lt(r.resolve(n.anchor),r.resolve(n.head))}static create(r,n,i=n){let o=r.resolve(n);return new this(o,i==n?o:r.resolve(i))}static between(r,n,i){let o=r.pos-n.pos;if((!i||o)&&(i=o>=0?1:-1),!n.parent.inlineContent){let s=rr.findFrom(n,i,!0)||rr.findFrom(n,-i,!0);if(s)n=s.$head;else return rr.near(n,i)}return r.parent.inlineContent||(o==0?r=n:(r=(rr.findFrom(r,-i,!0)||rr.findFrom(r,i,!0)).$anchor,r.pos0?0:1);o>0?a=0;a+=o){let l=r.child(a);if(l.isAtom){if(!s&&Ht.isSelectable(l))return Ht.create(e,n-(o<0?l.nodeSize:0))}else{let u=Wd(e,l,n+o,o<0?l.childCount:0,o,s);if(u)return u}n+=l.nodeSize*o}return null}function ZA(e,r,n){let i=e.steps.length-1;if(i{a==null&&(a=d)}),e.setSelection(rr.near(e.doc.resolve(a),n))}const $A=1,jm=2,UA=4;let vY=class extends Zb{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.curSelectionFor0}setStoredMarks(e){return this.storedMarks=e,this.updated|=jm,this}ensureMarks(e){return en.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&jm)>0}addStep(e,r){super.addStep(e,r),this.updated=this.updated&~jm,this.storedMarks=null}setTime(e){return this.time=e,this}replaceSelection(e){return this.selection.replace(this,e),this}replaceSelectionWith(e,r=!0){let n=this.selection;return r&&(e=e.mark(this.storedMarks||(n.empty?n.$from.marks():n.$from.marksAcross(n.$to)||en.none))),n.replaceWith(this,e),this}deleteSelection(){return this.selection.replace(this),this}insertText(e,r,n){let i=this.doc.type.schema;if(r==null)return e?this.replaceSelectionWith(i.text(e),!0):this.deleteSelection();{if(n==null&&(n=r),!e)return this.deleteRange(r,n);let o=this.storedMarks;if(!o){let s=this.doc.resolve(r);o=n==r?s.marks():s.marksAcross(this.doc.resolve(n))}return this.replaceRangeWith(r,n,i.text(e,o)),!this.selection.empty&&this.selection.to==r+e.length&&this.setSelection(rr.near(this.selection.$to)),this}}setMeta(e,r){return this.meta[typeof e=="string"?e:e.key]=r,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|=UA,this}get scrolledIntoView(){return(this.updated&UA)>0}};function VA(e,r){return!r||!e?e:e.bind(r)}class f1{constructor(r,n,i){this.name=r,this.init=VA(n.init,i),this.apply=VA(n.apply,i)}}const AY=[new f1("doc",{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new f1("selection",{init(e,r){return e.selection||rr.atStart(r.doc)},apply(e){return e.selection}}),new f1("storedMarks",{init(e){return e.storedMarks||null},apply(e,r,n,i){return i.selection.$cursor?e.storedMarks:null}}),new f1("scrollToSelection",{init(){return 0},apply(e,r){return e.scrolledIntoView?r+1:r}})];class I5{constructor(r,n){this.schema=r,this.plugins=[],this.pluginsByKey=Object.create(null),this.fields=AY.slice(),n&&n.forEach(i=>{if(this.pluginsByKey[i.key])throw new RangeError("Adding different instances of a keyed plugin ("+i.key+")");this.plugins.push(i),this.pluginsByKey[i.key]=i,i.spec.state&&this.fields.push(new f1(i.key,i.spec.state,i))})}}class sh{constructor(r){this.config=r}get schema(){return this.config.schema}get plugins(){return this.config.plugins}apply(r){return this.applyTransaction(r).state}filterTransaction(r,n=-1){for(let i=0;ii.toJSON())),r&&typeof r=="object")for(let i in r){if(i=="doc"||i=="selection")throw new RangeError("The JSON fields `doc` and `selection` are reserved");let o=r[i],s=o.spec.state;s&&s.toJSON&&(n[i]=s.toJSON.call(o,this[o.key]))}return n}static fromJSON(r,n,i){if(!n)throw new RangeError("Invalid input for EditorState.fromJSON");if(!r.schema)throw new RangeError("Required config field 'schema' missing");let o=new I5(r.schema,r.plugins),s=new sh(o);return o.fields.forEach(a=>{if(a.name=="doc")s.doc=c0.fromJSON(r.schema,n.doc);else if(a.name=="selection")s.selection=rr.fromJSON(s.doc,n.selection);else if(a.name=="storedMarks")n.storedMarks&&(s.storedMarks=n.storedMarks.map(r.schema.markFromJSON));else{if(i)for(let l in i){let u=i[l],c=u.spec.state;if(u.key==a.name&&c&&c.fromJSON&&Object.prototype.hasOwnProperty.call(n,l)){s[a.name]=c.fromJSON.call(u,r,n[l],s);return}}s[a.name]=a.init(r,s)}}),s}}function Wk(e,r,n){for(let i in e){let o=e[i];o instanceof Function?o=o.bind(r):i=="handleDOMEvents"&&(o=Wk(o,r,{})),n[i]=o}return n}class lr{constructor(r){this.spec=r,this.props={},r.props&&Wk(r.props,this,this.props),this.key=r.key?r.key.key:Kk("plugin")}getState(r){return r[this.key]}}const L5=Object.create(null);function Kk(e){return e in L5?e+"$"+ ++L5[e]:(L5[e]=0,e+"$")}class hr{constructor(r="key"){this.key=Kk(r)}get(r){return r.config.pluginsByKey[this.key]}getState(r){return r[this.key]}}const $y=(e,r)=>e.selection.empty?!1:(r&&r(e.tr.deleteSelection().scrollIntoView()),!0);function Qk(e,r){let{$cursor:n}=e.selection;return!n||(r?!r.endOfTextblock("backward",e):n.parentOffset>0)?null:n}const Jk=(e,r,n)=>{let i=Qk(e,n);if(!i)return!1;let o=Vb(i);if(!o){let a=i.blockRange(),l=a&&ip(a);return l==null?!1:(r&&r(e.tr.lift(a,l).scrollIntoView()),!0)}let s=o.nodeBefore;if(aC(e,o,r,-1))return!0;if(i.parent.content.size==0&&(Ch(s,"end")||Ht.isSelectable(s)))for(let a=i.depth;;a--){let l=d3(e.doc,i.before(a),i.after(a),ht.empty);if(l&&l.slice.size1)break}return s.isAtom&&o.depth==i.depth-1?(r&&r(e.tr.delete(o.pos-s.nodeSize,o.pos).scrollIntoView()),!0):!1},EY=(e,r,n)=>{let i=Qk(e,n);if(!i)return!1;let o=Vb(i);return o?Xk(e,o,r):!1},wY=(e,r,n)=>{let i=tC(e,n);if(!i)return!1;let o=jb(i);return o?Xk(e,o,r):!1};function Xk(e,r,n){let i=r.nodeBefore,o=i,s=r.pos-1;for(;!o.isTextblock;s--){if(o.type.spec.isolating)return!1;let d=o.lastChild;if(!d)return!1;o=d}let a=r.nodeAfter,l=a,u=r.pos+1;for(;!l.isTextblock;u++){if(l.type.spec.isolating)return!1;let d=l.firstChild;if(!d)return!1;l=d}let c=d3(e.doc,s,u,ht.empty);if(!c||c.from!=s||c instanceof Ui&&c.slice.size>=u-s)return!1;if(n){let d=e.tr.step(c);d.setSelection(Lt.create(d.doc,s)),n(d.scrollIntoView())}return!0}function Ch(e,r,n=!1){for(let i=e;i;i=r=="start"?i.firstChild:i.lastChild){if(i.isTextblock)return!0;if(n&&i.childCount!=1)return!1}return!1}const eC=(e,r,n)=>{let{$head:i,empty:o}=e.selection,s=i;if(!o)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("backward",e):i.parentOffset>0)return!1;s=Vb(i)}let a=s&&s.nodeBefore;return!a||!Ht.isSelectable(a)?!1:(r&&r(e.tr.setSelection(Ht.create(e.doc,s.pos-a.nodeSize)).scrollIntoView()),!0)};function Vb(e){if(!e.parent.type.spec.isolating)for(let r=e.depth-1;r>=0;r--){if(e.index(r)>0)return e.doc.resolve(e.before(r+1));if(e.node(r).type.spec.isolating)break}return null}function tC(e,r){let{$cursor:n}=e.selection;return!n||(r?!r.endOfTextblock("forward",e):n.parentOffset{let i=tC(e,n);if(!i)return!1;let o=jb(i);if(!o)return!1;let s=o.nodeAfter;if(aC(e,o,r,1))return!0;if(i.parent.content.size==0&&(Ch(s,"start")||Ht.isSelectable(s))){let a=d3(e.doc,i.before(),i.after(),ht.empty);if(a&&a.slice.size{let{$head:i,empty:o}=e.selection,s=i;if(!o)return!1;if(i.parent.isTextblock){if(n?!n.endOfTextblock("forward",e):i.parentOffset=0;r--){let n=e.node(r);if(e.index(r)+1{let n=e.selection,i=n instanceof Ht,o;if(i){if(n.node.isTextblock||!Qu(e.doc,n.from))return!1;o=n.from}else if(o=c3(e.doc,n.from,-1),o==null)return!1;if(r){let s=e.tr.join(o);i&&s.setSelection(Ht.create(s.doc,o-e.doc.resolve(o).nodeBefore.nodeSize)),r(s.scrollIntoView())}return!0},DY=(e,r)=>{let n=e.selection,i;if(n instanceof Ht){if(n.node.isTextblock||!Qu(e.doc,n.to))return!1;i=n.to}else if(i=c3(e.doc,n.to,1),i==null)return!1;return r&&r(e.tr.join(i).scrollIntoView()),!0},xY=(e,r)=>{let{$from:n,$to:i}=e.selection,o=n.blockRange(i),s=o&&ip(o);return s==null?!1:(r&&r(e.tr.lift(o,s).scrollIntoView()),!0)},iC=(e,r)=>{let{$head:n,$anchor:i}=e.selection;return!n.parent.type.spec.code||!n.sameParent(i)?!1:(r&&r(e.tr.insertText(` `).scrollIntoView()),!0)};function Gb(e){for(let r=0;r{let{$head:n,$anchor:i}=e.selection;if(!n.parent.type.spec.code||!n.sameParent(i))return!1;let o=n.node(-1),s=n.indexAfter(-1),a=Gb(o.contentMatchAt(s));if(!a||!o.canReplaceWith(s,s,a))return!1;if(r){let l=n.after(),u=e.tr.replaceWith(l,l,a.createAndFill());u.setSelection(rr.near(u.doc.resolve(l),1)),r(u.scrollIntoView())}return!0},oC=(e,r)=>{let n=e.selection,{$from:i,$to:o}=n;if(n instanceof Xo||i.parent.inlineContent||o.parent.inlineContent)return!1;let s=Gb(o.parent.contentMatchAt(o.indexAfter()));if(!s||!s.isTextblock)return!1;if(r){let a=(!i.parentOffset&&o.index(){let{$cursor:n}=e.selection;if(!n||n.parent.content.size)return!1;if(n.depth>1&&n.after()!=n.end(-1)){let s=n.before();if(d0(e.doc,s))return r&&r(e.tr.split(s).scrollIntoView()),!0}let i=n.blockRange(),o=i&&ip(i);return o==null?!1:(r&&r(e.tr.lift(i,o).scrollIntoView()),!0)};function CY(e){return(r,n)=>{let{$from:i,$to:o}=r.selection;if(r.selection instanceof Ht&&r.selection.node.isBlock)return!i.parentOffset||!d0(r.doc,i.pos)?!1:(n&&n(r.tr.split(i.pos).scrollIntoView()),!0);if(!i.depth)return!1;let s=[],a,l,u=!1,c=!1;for(let f=i.depth;;f--)if(i.node(f).isBlock){u=i.end(f)==i.pos+(i.depth-f),c=i.start(f)==i.pos-(i.depth-f),l=Gb(i.node(f-1).contentMatchAt(i.indexAfter(f-1))),s.unshift(u&&l?{type:l}:null),a=f;break}else{if(f==1)return!1;s.unshift(null)}let d=r.tr;(r.selection instanceof Lt||r.selection instanceof Xo)&&d.deleteSelection();let h=d.mapping.map(i.pos),p=d0(d.doc,h,s.length,s);if(p||(s[0]=l?{type:l}:null,p=d0(d.doc,h,s.length,s)),!p)return!1;if(d.split(h,s.length,s),!u&&c&&i.node(a).type!=l){let f=d.mapping.map(i.before(a)),m=d.doc.resolve(f);l&&i.node(a-1).canReplaceWith(m.index(),m.index()+1,l)&&d.setNodeMarkup(d.mapping.map(i.before(a)),l)}return n&&n(d.scrollIntoView()),!0}}const _Y=CY(),NY=(e,r)=>{let{$from:n,to:i}=e.selection,o,s=n.sharedDepth(i);return s==0?!1:(o=n.before(s),r&&r(e.tr.setSelection(Ht.create(e.doc,o))),!0)};function FY(e,r,n){let i=r.nodeBefore,o=r.nodeAfter,s=r.index();return!i||!o||!i.type.compatibleContent(o.type)?!1:!i.content.size&&r.parent.canReplace(s-1,s)?(n&&n(e.tr.delete(r.pos-i.nodeSize,r.pos).scrollIntoView()),!0):!r.parent.canReplace(s,s+1)||!(o.isTextblock||Qu(e.doc,r.pos))?!1:(n&&n(e.tr.join(r.pos).scrollIntoView()),!0)}function aC(e,r,n,i){let o=r.nodeBefore,s=r.nodeAfter,a,l,u=o.type.spec.isolating||s.type.spec.isolating;if(!u&&FY(e,r,n))return!0;let c=!u&&r.parent.canReplace(r.index(),r.index()+1);if(c&&(a=(l=o.contentMatchAt(o.childCount)).findWrapping(s.type))&&l.matchType(a[0]||s.type).validEnd){if(n){let f=r.pos+s.nodeSize,m=ze.empty;for(let x=a.length-1;x>=0;x--)m=ze.from(a[x].create(null,m));m=ze.from(o.copy(m));let v=e.tr.step(new ji(r.pos-1,f,r.pos,f,new ht(m,1,0),a.length,!0)),w=v.doc.resolve(f+2*a.length);w.nodeAfter&&w.nodeAfter.type==o.type&&Qu(v.doc,w.pos)&&v.join(w.pos),n(v.scrollIntoView())}return!0}let d=s.type.spec.isolating||i>0&&u?null:rr.findFrom(r,1),h=d&&d.$from.blockRange(d.$to),p=h&&ip(h);if(p!=null&&p>=r.depth)return n&&n(e.tr.lift(h,p).scrollIntoView()),!0;if(c&&Ch(s,"start",!0)&&Ch(o,"end")){let f=o,m=[];for(;m.push(f),!f.isTextblock;)f=f.lastChild;let v=s,w=1;for(;!v.isTextblock;v=v.firstChild)w++;if(f.canReplace(f.childCount,f.childCount,v.content)){if(n){let x=ze.empty;for(let R=m.length-1;R>=0;R--)x=ze.from(m[R].copy(x));let k=e.tr.step(new ji(r.pos-m.length,r.pos+s.nodeSize,r.pos+w,r.pos+s.nodeSize-w,new ht(x,m.length,0),0,!0));n(k.scrollIntoView())}return!0}}return!1}function lC(e){return function(r,n){let i=r.selection,o=e<0?i.$from:i.$to,s=o.depth;for(;o.node(s).isInline;){if(!s)return!1;s--}return o.node(s).isTextblock?(n&&n(r.tr.setSelection(Lt.create(r.doc,e<0?o.start(s):o.end(s)))),!0):!1}}const OY=lC(-1),MY=lC(1);function RY(e,r=null){return function(n,i){let{$from:o,$to:s}=n.selection,a=o.blockRange(s),l=a&&Pb(a,e,r);return l?(i&&i(n.tr.wrap(a,l).scrollIntoView()),!0):!1}}function jA(e,r=null){return function(n,i){let o=!1;for(let s=0;s{if(o)return!1;if(!(!u.isTextblock||u.hasMarkup(e,r)))if(u.type==e)o=!0;else{let d=n.doc.resolve(c),h=d.index();o=d.parent.canReplaceWith(h,h+1,e)}})}if(!o)return!1;if(i){let s=n.tr;for(let a=0;a=2&&r.$from.node(r.depth-1).type.compatibleContent(n)&&r.startIndex==0){if(r.$from.index(r.depth-1)==0)return!1;let u=a.resolve(r.start-2);s=new tf(u,u,r.depth),r.endIndex=0;d--)s=ze.from(n[d].type.create(n[d].attrs,s));e.step(new ji(r.start-(i?2:0),r.end,r.start,r.end,new ht(s,0,0),n.length,!0));let a=0;for(let d=0;da.childCount>0&&a.firstChild.type==e);return s?n?i.node(s.depth-1).type==e?YY(r,n,e,s):HY(r,n,s):!0:!1}}function YY(e,r,n,i){let o=e.tr,s=i.end,a=i.$to.end(i.depth);sv;m--)f-=o.child(m).nodeSize,i.delete(f-1,f+1);let s=i.doc.resolve(n.start),a=s.nodeAfter;if(i.mapping.map(n.end)!=n.start+s.nodeAfter.nodeSize)return!1;let l=n.startIndex==0,u=n.endIndex==o.childCount,c=s.node(-1),d=s.index(-1);if(!c.canReplace(d+(l?0:1),d+1,a.content.append(u?ze.empty:ze.from(o))))return!1;let h=s.pos,p=h+a.nodeSize;return i.step(new ji(h-(l?1:0),p+(u?1:0),h+1,p-1,new ht((l?ze.empty:ze.from(o.copy(ze.empty))).append(u?ze.empty:ze.from(o.copy(ze.empty))),l?0:1,u?0:1),l?0:1)),r(i.scrollIntoView()),!0}function PY(e){return function(r,n){let{$from:i,$to:o}=r.selection,s=i.blockRange(o,c=>c.childCount>0&&c.firstChild.type==e);if(!s)return!1;let a=s.startIndex;if(a==0)return!1;let l=s.parent,u=l.child(a-1);if(u.type!=e)return!1;if(n){let c=u.lastChild&&u.lastChild.type==l.type,d=ze.from(c?e.create():null),h=new ht(ze.from(e.create(null,ze.from(l.type.create(null,d)))),c?3:1,0),p=s.start,f=s.end;n(r.tr.step(new ji(p-(c?3:1),f,p,f,h,1,!0)).scrollIntoView())}return!0}}const ro=function(e){for(var r=0;;r++)if(e=e.previousSibling,!e)return r},_h=function(e){let r=e.assignedSlot||e.parentNode;return r&&r.nodeType==11?r.host:r};let Uy=null;const Xl=function(e,r,n){let i=Uy||(Uy=document.createRange());return i.setEnd(e,n??e.nodeValue.length),i.setStart(e,r||0),i},ZY=function(){Uy=null},Jc=function(e,r,n,i){return n&&(GA(e,r,n,i,-1)||GA(e,r,n,i,1))},$Y=/^(img|br|input|textarea|hr)$/i;function GA(e,r,n,i,o){for(var s;;){if(e==n&&r==i)return!0;if(r==(o<0?0:Us(e))){let a=e.parentNode;if(!a||a.nodeType!=1||jf(e)||$Y.test(e.nodeName)||e.contentEditable=="false")return!1;r=ro(e)+(o<0?0:1),e=a}else if(e.nodeType==1){let a=e.childNodes[r+(o<0?-1:0)];if(a.nodeType==1&&a.contentEditable=="false")if(!((s=a.pmViewDesc)===null||s===void 0)&&s.ignoreForSelection)r+=o;else return!1;else e=a,r=o<0?Us(e):0}else return!1}}function Us(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function UY(e,r){for(;;){if(e.nodeType==3&&r)return e;if(e.nodeType==1&&r>0){if(e.contentEditable=="false")return null;e=e.childNodes[r-1],r=Us(e)}else if(e.parentNode&&!jf(e))r=ro(e),e=e.parentNode;else return null}}function VY(e,r){for(;;){if(e.nodeType==3&&r2),Zs=Nh||(Dl?/Mac/.test(Dl.platform):!1),WY=Dl?/Win/.test(Dl.platform):!1,o0=/Android \d/.test(Ju),Gf=!!qA&&"webkitFontSmoothing"in qA.documentElement.style,KY=Gf?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function QY(e){let r=e.defaultView&&e.defaultView.visualViewport;return r?{left:0,right:r.width,top:0,bottom:r.height}:{left:0,right:e.documentElement.clientWidth,top:0,bottom:e.documentElement.clientHeight}}function Zl(e,r){return typeof e=="number"?e:e[r]}function JY(e){let r=e.getBoundingClientRect(),n=r.width/e.offsetWidth||1,i=r.height/e.offsetHeight||1;return{left:r.left,right:r.left+e.clientWidth*n,top:r.top,bottom:r.top+e.clientHeight*i}}function WA(e,r,n){let i=e.someProp("scrollThreshold")||0,o=e.someProp("scrollMargin")||5,s=e.dom.ownerDocument;for(let a=n||e.dom;a;){if(a.nodeType!=1){a=_h(a);continue}let l=a,u=l==s.body,c=u?QY(s):JY(l),d=0,h=0;if(r.topc.bottom-Zl(i,"bottom")&&(h=r.bottom-r.top>c.bottom-c.top?r.top+Zl(o,"top")-c.top:r.bottom-c.bottom+Zl(o,"bottom")),r.leftc.right-Zl(i,"right")&&(d=r.right-c.right+Zl(o,"right")),d||h)if(u)s.defaultView.scrollBy(d,h);else{let f=l.scrollLeft,m=l.scrollTop;h&&(l.scrollTop+=h),d&&(l.scrollLeft+=d);let v=l.scrollLeft-f,w=l.scrollTop-m;r={left:r.left-v,top:r.top-w,right:r.right-v,bottom:r.bottom-w}}let p=u?"fixed":getComputedStyle(a).position;if(/^(fixed|sticky)$/.test(p))break;a=p=="absolute"?a.offsetParent:_h(a)}}function XY(e){let r=e.dom.getBoundingClientRect(),n=Math.max(0,r.top),i,o;for(let s=(r.left+r.right)/2,a=n+1;a=n-20){i=l,o=u.top;break}}return{refDOM:i,refTop:o,stack:dC(e.dom)}}function dC(e){let r=[],n=e.ownerDocument;for(let i=e;i&&(r.push({dom:i,top:i.scrollTop,left:i.scrollLeft}),e!=n);i=_h(i));return r}function eH({refDOM:e,refTop:r,stack:n}){let i=e?e.getBoundingClientRect().top:0;hC(n,i==0?0:i-r)}function hC(e,r){for(let n=0;n=l){a=Math.max(m.bottom,a),l=Math.min(m.top,l);let v=m.left>r.left?m.left-r.left:m.right=(m.left+m.right)/2?1:0));continue}}else m.top>r.top&&!u&&m.left<=r.left&&m.right>=r.left&&(u=d,c={left:Math.max(m.left,Math.min(m.right,r.left)),top:m.top});!n&&(r.left>=m.right&&r.top>=m.top||r.left>=m.left&&r.top>=m.bottom)&&(s=h+1)}}return!n&&u&&(n=u,o=c,i=0),n&&n.nodeType==3?rH(n,o):!n||i&&n.nodeType==1?{node:e,offset:s}:pC(n,o)}function rH(e,r){let n=e.nodeValue.length,i=document.createRange();for(let o=0;o=(s.left+s.right)/2?1:0)}}return{node:e,offset:0}}function qb(e,r){return e.left>=r.left-1&&e.left<=r.right+1&&e.top>=r.top-1&&e.top<=r.bottom+1}function nH(e,r){let n=e.parentNode;return n&&/^li$/i.test(n.nodeName)&&r.left(a.left+a.right)/2?1:-1}return e.docView.posFromDOM(i,o,s)}function oH(e,r,n,i){let o=-1;for(let s=r,a=!1;s!=e.dom;){let l=e.docView.nearestDesc(s,!0),u;if(!l)return null;if(l.dom.nodeType==1&&(l.node.isBlock&&l.parent||!l.contentDOM)&&((u=l.dom.getBoundingClientRect()).width||u.height)&&(l.node.isBlock&&l.parent&&!/^T(R|BODY|HEAD|FOOT)$/.test(l.dom.nodeName)&&(!a&&u.left>i.left||u.top>i.top?o=l.posBefore:(!a&&u.right-1?o:e.docView.posFromDOM(r,n,-1)}function fC(e,r,n){let i=e.childNodes.length;if(i&&n.topr.top&&o++}let c;Gf&&o&&i.nodeType==1&&(c=i.childNodes[o-1]).nodeType==1&&c.contentEditable=="false"&&c.getBoundingClientRect().top>=r.top&&o--,i==e.dom&&o==i.childNodes.length-1&&i.lastChild.nodeType==1&&r.top>i.lastChild.getBoundingClientRect().bottom?l=e.state.doc.content.size:(o==0||i.nodeType!=1||i.childNodes[o-1].nodeName!="BR")&&(l=oH(e,i,o,r))}l==null&&(l=iH(e,a,r));let u=e.docView.nearestDesc(a,!0);return{pos:l,inside:u?u.posAtStart-u.border:-1}}function KA(e){return e.top=0&&o==i.nodeValue.length?(l--,c=1):n<0?l--:u++,Bp(tu(Xl(i,l,u),c),c<0)}if(!e.state.doc.resolve(r-(s||0)).parent.inlineContent){if(s==null&&o&&(n<0||o==Us(i))){let l=i.childNodes[o-1];if(l.nodeType==1)return Y5(l.getBoundingClientRect(),!1)}if(s==null&&o=0)}if(s==null&&o&&(n<0||o==Us(i))){let l=i.childNodes[o-1],u=l.nodeType==3?Xl(l,Us(l)-(a?0:1)):l.nodeType==1&&(l.nodeName!="BR"||!l.nextSibling)?l:null;if(u)return Bp(tu(u,1),!1)}if(s==null&&o=0)}function Bp(e,r){if(e.width==0)return e;let n=r?e.left:e.right;return{top:e.top,bottom:e.bottom,left:n,right:n}}function Y5(e,r){if(e.height==0)return e;let n=r?e.top:e.bottom;return{top:n,bottom:n,left:e.left,right:e.right}}function gC(e,r,n){let i=e.state,o=e.root.activeElement;i!=r&&e.updateState(r),o!=e.dom&&e.focus();try{return n()}finally{i!=r&&e.updateState(i),o!=e.dom&&o&&o.focus()}}function lH(e,r,n){let i=r.selection,o=n=="up"?i.$from:i.$to;return gC(e,r,()=>{let{node:s}=e.docView.domFromPos(o.pos,n=="up"?-1:1);for(;;){let l=e.docView.nearestDesc(s,!0);if(!l)break;if(l.node.isBlock){s=l.contentDOM||l.dom;break}s=l.dom.parentNode}let a=mC(e,o.pos,1);for(let l=s.firstChild;l;l=l.nextSibling){let u;if(l.nodeType==1)u=l.getClientRects();else if(l.nodeType==3)u=Xl(l,0,l.nodeValue.length).getClientRects();else continue;for(let c=0;cd.top+1&&(n=="up"?a.top-d.top>(d.bottom-a.top)*2:d.bottom-a.bottom>(a.bottom-d.top)*2))return!1}}return!0})}const uH=/[\u0590-\u08ac]/;function cH(e,r,n){let{$head:i}=r.selection;if(!i.parent.isTextblock)return!1;let o=i.parentOffset,s=!o,a=o==i.parent.content.size,l=e.domSelection();return l?!uH.test(i.parent.textContent)||!l.modify?n=="left"||n=="backward"?s:a:gC(e,r,()=>{let{focusNode:u,focusOffset:c,anchorNode:d,anchorOffset:h}=e.domSelectionRange(),p=l.caretBidiLevel;l.modify("move",n,"character");let f=i.depth?e.docView.domAfterPos(i.before()):e.dom,{focusNode:m,focusOffset:v}=e.domSelectionRange(),w=m&&!f.contains(m.nodeType==1?m:m.parentNode)||u==m&&c==v;try{l.collapse(d,h),u&&(u!=d||c!=h)&&l.extend&&l.extend(u,c)}catch{}return p!=null&&(l.caretBidiLevel=p),w}):i.pos==i.start()||i.pos==i.end()}let QA=null,JA=null,XA=!1;function dH(e,r,n){return QA==r&&JA==n?XA:(QA=r,JA=n,XA=n=="up"||n=="down"?lH(e,r,n):cH(e,r,n))}const Ks=0,e8=1,Mc=2,xl=3;class qf{constructor(r,n,i,o){this.parent=r,this.children=n,this.dom=i,this.contentDOM=o,this.dirty=Ks,i.pmViewDesc=this}matchesWidget(r){return!1}matchesMark(r){return!1}matchesNode(r,n,i){return!1}matchesHack(r){return!1}parseRule(){return null}stopEvent(r){return!1}get size(){let r=0;for(let n=0;nro(this.contentDOM);else if(this.contentDOM&&this.contentDOM!=this.dom&&this.dom.contains(this.contentDOM))o=r.compareDocumentPosition(this.contentDOM)&2;else if(this.dom.firstChild){if(n==0)for(let s=r;;s=s.parentNode){if(s==this.dom){o=!1;break}if(s.previousSibling)break}if(o==null&&n==r.childNodes.length)for(let s=r;;s=s.parentNode){if(s==this.dom){o=!0;break}if(s.nextSibling)break}}return o??i>0?this.posAtEnd:this.posAtStart}nearestDesc(r,n=!1){for(let i=!0,o=r;o;o=o.parentNode){let s=this.getDesc(o),a;if(s&&(!n||s.node))if(i&&(a=s.nodeDOM)&&!(a.nodeType==1?a.contains(r.nodeType==1?r:r.parentNode):a==r))i=!1;else return s}}getDesc(r){let n=r.pmViewDesc;for(let i=n;i;i=i.parent)if(i==this)return n}posFromDOM(r,n,i){for(let o=r;o;o=o.parentNode){let s=this.getDesc(o);if(s)return s.localPosFromDOM(r,n,i)}return-1}descAt(r){for(let n=0,i=0;nr||a instanceof TC){o=r-s;break}s=l}if(o)return this.children[i].domFromPos(o-this.children[i].border,n);for(let s;i&&!(s=this.children[i-1]).size&&s instanceof yC&&s.side>=0;i--);if(n<=0){let s,a=!0;for(;s=i?this.children[i-1]:null,!(!s||s.dom.parentNode==this.contentDOM);i--,a=!1);return s&&n&&a&&!s.border&&!s.domAtom?s.domFromPos(s.size,n):{node:this.contentDOM,offset:s?ro(s.dom)+1:0}}else{let s,a=!0;for(;s=i=d&&n<=c-u.border&&u.node&&u.contentDOM&&this.contentDOM.contains(u.contentDOM))return u.parseRange(r,n,d);r=a;for(let h=l;h>0;h--){let p=this.children[h-1];if(p.size&&p.dom.parentNode==this.contentDOM&&!p.emptyChildAt(1)){o=ro(p.dom)+1;break}r-=p.size}o==-1&&(o=0)}if(o>-1&&(c>n||l==this.children.length-1)){n=c;for(let d=l+1;dm&&an){let m=l;l=u,u=m}let f=document.createRange();f.setEnd(u.node,u.offset),f.setStart(l.node,l.offset),c.removeAllRanges(),c.addRange(f)}}ignoreMutation(r){return!this.contentDOM&&r.type!="selection"}get contentLost(){return this.contentDOM&&this.contentDOM!=this.dom&&!this.dom.contains(this.contentDOM)}markDirty(r,n){for(let i=0,o=0;o=i:ri){let l=i+s.border,u=a-s.border;if(r>=l&&n<=u){this.dirty=r==i||n==a?Mc:e8,r==l&&n==u&&(s.contentLost||s.dom.parentNode!=this.contentDOM)?s.dirty=xl:s.markDirty(r-l,n-l);return}else s.dirty=s.dom==s.contentDOM&&s.dom.parentNode==this.contentDOM&&!s.children.length?Mc:xl}i=a}this.dirty=Mc}markParentsDirty(){let r=1;for(let n=this.parent;n;n=n.parent,r++){let i=r==1?Mc:e8;n.dirty{if(!s)return o;if(s.parent)return s.parent.posBeforeChild(s)})),!n.type.spec.raw){if(a.nodeType!=1){let l=document.createElement("span");l.appendChild(a),a=l}a.contentEditable="false",a.classList.add("ProseMirror-widget")}super(r,[],a,null),this.widget=n,this.widget=n,s=this}matchesWidget(r){return this.dirty==Ks&&r.type.eq(this.widget.type)}parseRule(){return{ignore:!0}}stopEvent(r){let n=this.widget.spec.stopEvent;return n?n(r):!1}ignoreMutation(r){return r.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 hH extends qf{constructor(r,n,i,o){super(r,[],n,null),this.textDOM=i,this.text=o}get size(){return this.text.length}localPosFromDOM(r,n){return r!=this.textDOM?this.posAtStart+(n?this.size:0):this.posAtStart+n}domFromPos(r){return{node:this.textDOM,offset:r}}ignoreMutation(r){return r.type==="characterData"&&r.target.nodeValue==r.oldValue}}class Xc extends qf{constructor(r,n,i,o,s){super(r,[],i,o),this.mark=n,this.spec=s}static create(r,n,i,o){let s=o.nodeViews[n.type.name],a=s&&s(n,o,i);return(!a||!a.dom)&&(a=cd.renderSpec(document,n.type.spec.toDOM(n,i),null,n.attrs)),new Xc(r,n,a.dom,a.contentDOM||a.dom,a)}parseRule(){return this.dirty&xl||this.mark.type.spec.reparseInView?null:{mark:this.mark.type.name,attrs:this.mark.attrs,contentElement:this.contentDOM}}matchesMark(r){return this.dirty!=xl&&this.mark.eq(r)}markDirty(r,n){if(super.markDirty(r,n),this.dirty!=Ks){let i=this.parent;for(;!i.node;)i=i.parent;i.dirty0&&(s=Wy(s,0,r,i));for(let l=0;l{if(!u)return a;if(u.parent)return u.parent.posBeforeChild(u)},i,o),d=c&&c.dom,h=c&&c.contentDOM;if(n.isText){if(!d)d=document.createTextNode(n.text);else if(d.nodeType!=3)throw new RangeError("Text must be rendered as a DOM text node")}else d||({dom:d,contentDOM:h}=cd.renderSpec(document,n.type.spec.toDOM(n),null,n.attrs));!h&&!n.isText&&d.nodeName!="BR"&&(d.hasAttribute("contenteditable")||(d.contentEditable="false"),n.type.spec.draggable&&(d.draggable=!0));let p=d;return d=AC(d,i,n),c?u=new pH(r,n,i,o,d,h||null,p,c,s,a+1):n.isText?new f3(r,n,i,o,d,p,s):new Cu(r,n,i,o,d,h||null,p,s,a+1)}parseRule(){if(this.node.type.spec.reparseInView)return null;let r={node:this.node.type.name,attrs:this.node.attrs};if(this.node.type.whitespace=="pre"&&(r.preserveWhitespace="full"),!this.contentDOM)r.getContent=()=>this.node.content;else if(!this.contentLost)r.contentElement=this.contentDOM;else{for(let n=this.children.length-1;n>=0;n--){let i=this.children[n];if(this.dom.contains(i.dom.parentNode)){r.contentElement=i.dom.parentNode;break}}r.contentElement||(r.getContent=()=>ze.empty)}return r}matchesNode(r,n,i){return this.dirty==Ks&&r.eq(this.node)&&N2(n,this.outerDeco)&&i.eq(this.innerDeco)}get size(){return this.node.nodeSize}get border(){return this.node.isLeaf?0:1}updateChildren(r,n){let i=this.node.inlineContent,o=n,s=r.composing?this.localCompositionInfo(r,n):null,a=s&&s.pos>-1?s:null,l=s&&s.pos<0,u=new mH(this,a&&a.node,r);TH(this.node,this.innerDeco,(c,d,h)=>{c.spec.marks?u.syncToMarks(c.spec.marks,i,r):c.type.side>=0&&!h&&u.syncToMarks(d==this.node.childCount?en.none:this.node.child(d).marks,i,r),u.placeWidget(c,r,o)},(c,d,h,p)=>{u.syncToMarks(c.marks,i,r);let f;u.findNodeMatch(c,d,h,p)||l&&r.state.selection.from>o&&r.state.selection.to-1&&u.updateNodeAt(c,d,h,f,r)||u.updateNextNode(c,d,h,r,p,o)||u.addNode(c,d,h,r,o),o+=c.nodeSize}),u.syncToMarks([],i,r),this.node.isTextblock&&u.addTextblockHacks(),u.destroyRest(),(u.changed||this.dirty==Mc)&&(a&&this.protectLocalComposition(r,a),bC(this.contentDOM,this.children,r),Nh&&bH(this.dom))}localCompositionInfo(r,n){let{from:i,to:o}=r.state.selection;if(!(r.state.selection instanceof Lt)||in+this.node.content.size)return null;let s=r.input.compositionNode;if(!s||!this.dom.contains(s.parentNode))return null;if(this.node.inlineContent){let a=s.nodeValue,l=vH(this.node.content,a,i-n,o-n);return l<0?null:{node:s,pos:l,text:a}}else return{node:s,pos:-1,text:""}}protectLocalComposition(r,{node:n,pos:i,text:o}){if(this.getDesc(n))return;let s=n;for(;s.parentNode!=this.contentDOM;s=s.parentNode){for(;s.previousSibling;)s.parentNode.removeChild(s.previousSibling);for(;s.nextSibling;)s.parentNode.removeChild(s.nextSibling);s.pmViewDesc&&(s.pmViewDesc=void 0)}let a=new hH(this,s,n,o);r.input.compositionNodes.push(a),this.children=Wy(this.children,i,i+o.length,r,a)}update(r,n,i,o){return this.dirty==xl||!r.sameMarkup(this.node)?!1:(this.updateInner(r,n,i,o),!0)}updateInner(r,n,i,o){this.updateOuterDeco(n),this.node=r,this.innerDeco=i,this.contentDOM&&this.updateChildren(o,this.posAtStart),this.dirty=Ks}updateOuterDeco(r){if(N2(r,this.outerDeco))return;let n=this.nodeDOM.nodeType!=1,i=this.dom;this.dom=vC(this.dom,this.nodeDOM,qy(this.outerDeco,this.node,n),qy(r,this.node,n)),this.dom!=i&&(i.pmViewDesc=void 0,this.dom.pmViewDesc=this),this.outerDeco=r}selectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.add("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&(this.nodeDOM.draggable=!0))}deselectNode(){this.nodeDOM.nodeType==1&&(this.nodeDOM.classList.remove("ProseMirror-selectednode"),(this.contentDOM||!this.node.type.spec.draggable)&&this.nodeDOM.removeAttribute("draggable"))}get domAtom(){return this.node.isAtom}}function t8(e,r,n,i,o){AC(i,r,e);let s=new Cu(void 0,e,r,n,i,i,i,o,0);return s.contentDOM&&s.updateChildren(o,0),s}class f3 extends Cu{constructor(r,n,i,o,s,a,l){super(r,n,i,o,s,null,a,l,0)}parseRule(){let r=this.nodeDOM.parentNode;for(;r&&r!=this.dom&&!r.pmIsDeco;)r=r.parentNode;return{skip:r||!0}}update(r,n,i,o){return this.dirty==xl||this.dirty!=Ks&&!this.inParent()||!r.sameMarkup(this.node)?!1:(this.updateOuterDeco(n),(this.dirty!=Ks||r.text!=this.node.text)&&r.text!=this.nodeDOM.nodeValue&&(this.nodeDOM.nodeValue=r.text,o.trackWrites==this.nodeDOM&&(o.trackWrites=null)),this.node=r,this.dirty=Ks,!0)}inParent(){let r=this.parent.contentDOM;for(let n=this.nodeDOM;n;n=n.parentNode)if(n==r)return!0;return!1}domFromPos(r){return{node:this.nodeDOM,offset:r}}localPosFromDOM(r,n,i){return r==this.nodeDOM?this.posAtStart+Math.min(n,this.node.text.length):super.localPosFromDOM(r,n,i)}ignoreMutation(r){return r.type!="characterData"&&r.type!="selection"}slice(r,n,i){let o=this.node.cut(r,n),s=document.createTextNode(o.text);return new f3(this.parent,o,this.outerDeco,this.innerDeco,s,s,i)}markDirty(r,n){super.markDirty(r,n),this.dom!=this.nodeDOM&&(r==0||n==this.nodeDOM.nodeValue.length)&&(this.dirty=xl)}get domAtom(){return!1}isText(r){return this.node.text==r}}class TC extends qf{parseRule(){return{ignore:!0}}matchesHack(r){return this.dirty==Ks&&this.dom.nodeName==r}get domAtom(){return!0}get ignoreForCoords(){return this.dom.nodeName=="IMG"}}class pH extends Cu{constructor(r,n,i,o,s,a,l,u,c,d){super(r,n,i,o,s,a,l,c,d),this.spec=u}update(r,n,i,o){if(this.dirty==xl)return!1;if(this.spec.update&&(this.node.type==r.type||this.spec.multiType)){let s=this.spec.update(r,n,i);return s&&this.updateInner(r,n,i,o),s}else return!this.contentDOM&&!r.isLeaf?!1:super.update(r,n,i,o)}selectNode(){this.spec.selectNode?this.spec.selectNode():super.selectNode()}deselectNode(){this.spec.deselectNode?this.spec.deselectNode():super.deselectNode()}setSelection(r,n,i,o){this.spec.setSelection?this.spec.setSelection(r,n,i.root):super.setSelection(r,n,i,o)}destroy(){this.spec.destroy&&this.spec.destroy(),super.destroy()}stopEvent(r){return this.spec.stopEvent?this.spec.stopEvent(r):!1}ignoreMutation(r){return this.spec.ignoreMutation?this.spec.ignoreMutation(r):super.ignoreMutation(r)}}function bC(e,r,n){let i=e.firstChild,o=!1;for(let s=0;s>1,a=Math.min(s,r.length);for(;o-1)l>this.index&&(this.changed=!0,this.destroyBetween(this.index,l)),this.top=this.top.children[this.index];else{let u=Xc.create(this.top,r[s],n,i);this.top.children.splice(this.index,0,u),this.top=u,this.changed=!0}this.index=0,s++}}findNodeMatch(r,n,i,o){let s=-1,a;if(o>=this.preMatch.index&&(a=this.preMatch.matches[o-this.preMatch.index]).parent==this.top&&a.matchesNode(r,n,i))s=this.top.children.indexOf(a,this.index);else for(let l=this.index,u=Math.min(this.top.children.length,l+5);l0;){let l;for(;;)if(i){let c=n.children[i-1];if(c instanceof Xc)n=c,i=c.children.length;else{l=c,i--;break}}else{if(n==r)break e;i=n.parent.children.indexOf(n),n=n.parent}let u=l.node;if(u){if(u!=e.child(o-1))break;--o,s.set(l,o),a.push(l)}}return{index:o,matched:s,matches:a.reverse()}}function yH(e,r){return e.type.side-r.type.side}function TH(e,r,n,i){let o=r.locals(e),s=0;if(o.length==0){for(let c=0;cs;)l.push(o[a++]);let m=s+p.nodeSize;if(p.isText){let w=m;a!w.inline):l.slice();i(p,v,r.forChild(s,p),f),s=m}}function bH(e){if(e.nodeName=="UL"||e.nodeName=="OL"){let r=e.style.cssText;e.style.cssText=r+"; list-style: square !important",window.getComputedStyle(e).listStyle,e.style.cssText=r}}function vH(e,r,n,i){for(let o=0,s=0;o=n){if(s>=i&&u.slice(i-r.length-l,i-l)==r)return i-r.length;let c=l=0&&c+r.length+l>=n)return l+c;if(n==i&&u.length>=i+r.length-l&&u.slice(i-l,i-l+r.length)==r)return i}}return-1}function Wy(e,r,n,i,o){let s=[];for(let a=0,l=0;a=n||d<=r?s.push(u):(cn&&s.push(u.slice(n-c,u.size,i)))}return s}function Wb(e,r=null){let n=e.domSelectionRange(),i=e.state.doc;if(!n.focusNode)return null;let o=e.docView.nearestDesc(n.focusNode),s=o&&o.size==0,a=e.docView.posFromDOM(n.focusNode,n.focusOffset,1);if(a<0)return null;let l=i.resolve(a),u,c;if(p3(n)){for(u=a;o&&!o.node;)o=o.parent;let h=o.node;if(o&&h.isAtom&&Ht.isSelectable(h)&&o.parent&&!(h.isInline&&jY(n.focusNode,n.focusOffset,o.dom))){let p=o.posBefore;c=new Ht(a==p?l:i.resolve(p))}}else{if(n instanceof e.dom.ownerDocument.defaultView.Selection&&n.rangeCount>1){let h=a,p=a;for(let f=0;f{(n.anchorNode!=i||n.anchorOffset!=o)&&(r.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout(()=>{(!EC(e)||e.state.selection.visible)&&e.dom.classList.remove("ProseMirror-hideselection")},20))})}function EH(e){let r=e.domSelection();if(!r)return;let n=e.cursorWrapper.dom,i=n.nodeName=="IMG";i?r.collapse(n.parentNode,ro(n)+1):r.collapse(n,0),!i&&!e.state.selection.visible&&es&&ku<=11&&(n.disabled=!0,n.disabled=!1)}function wC(e,r){if(r instanceof Ht){let n=e.docView.descAt(r.from);n!=e.lastSelectedViewDesc&&(s8(e),n&&n.selectNode(),e.lastSelectedViewDesc=n)}else s8(e)}function s8(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function Kb(e,r,n,i){return e.someProp("createSelectionBetween",o=>o(e,r,n))||Lt.between(r,n,i)}function a8(e){return e.editable&&!e.hasFocus()?!1:SC(e)}function SC(e){let r=e.domSelectionRange();if(!r.anchorNode)return!1;try{return e.dom.contains(r.anchorNode.nodeType==3?r.anchorNode.parentNode:r.anchorNode)&&(e.editable||e.dom.contains(r.focusNode.nodeType==3?r.focusNode.parentNode:r.focusNode))}catch{return!1}}function wH(e){let r=e.docView.domFromPos(e.state.selection.anchor,0),n=e.domSelectionRange();return Jc(r.node,r.offset,n.anchorNode,n.anchorOffset)}function Ky(e,r){let{$anchor:n,$head:i}=e.selection,o=r>0?n.max(i):n.min(i),s=o.parent.inlineContent?o.depth?e.doc.resolve(r>0?o.after():o.before()):null:o;return s&&rr.findFrom(s,r)}function ou(e,r){return e.dispatch(e.state.tr.setSelection(r).scrollIntoView()),!0}function l8(e,r,n){let i=e.state.selection;if(i instanceof Lt)if(n.indexOf("s")>-1){let{$head:o}=i,s=o.textOffset?null:r<0?o.nodeBefore:o.nodeAfter;if(!s||s.isText||!s.isLeaf)return!1;let a=e.state.doc.resolve(o.pos+s.nodeSize*(r<0?-1:1));return ou(e,new Lt(i.$anchor,a))}else if(i.empty){if(e.endOfTextblock(r>0?"forward":"backward")){let o=Ky(e.state,r);return o&&o instanceof Ht?ou(e,o):!1}else if(!(Zs&&n.indexOf("m")>-1)){let o=i.$head,s=o.textOffset?null:r<0?o.nodeBefore:o.nodeAfter,a;if(!s||s.isText)return!1;let l=r<0?o.pos-s.nodeSize:o.pos;return s.isAtom||(a=e.docView.descAt(l))&&!a.contentDOM?Ht.isSelectable(s)?ou(e,new Ht(r<0?e.state.doc.resolve(o.pos-s.nodeSize):o)):Gf?ou(e,new Lt(e.state.doc.resolve(r<0?l:l+s.nodeSize))):!1:!1}}else return!1;else{if(i instanceof Ht&&i.node.isInline)return ou(e,new Lt(r>0?i.$to:i.$from));{let o=Ky(e.state,r);return o?ou(e,o):!1}}}function F2(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function C1(e,r){let n=e.pmViewDesc;return n&&n.size==0&&(r<0||e.nextSibling||e.nodeName!="BR")}function Zd(e,r){return r<0?SH(e):DH(e)}function SH(e){let r=e.domSelectionRange(),n=r.focusNode,i=r.focusOffset;if(!n)return;let o,s,a=!1;for(Ws&&n.nodeType==1&&i0){if(n.nodeType!=1)break;{let l=n.childNodes[i-1];if(C1(l,-1))o=n,s=--i;else if(l.nodeType==3)n=l,i=n.nodeValue.length;else break}}else{if(DC(n))break;{let l=n.previousSibling;for(;l&&C1(l,-1);)o=n.parentNode,s=ro(l),l=l.previousSibling;if(l)n=l,i=F2(n);else{if(n=n.parentNode,n==e.dom)break;i=0}}}a?Qy(e,n,i):o&&Qy(e,o,s)}function DH(e){let r=e.domSelectionRange(),n=r.focusNode,i=r.focusOffset;if(!n)return;let o=F2(n),s,a;for(;;)if(i{e.state==o&&h0(e)},50)}function u8(e,r){let n=e.state.doc.resolve(r);if(!(go||WY)&&n.parent.inlineContent){let i=e.coordsAtPos(r);if(r>n.start()){let o=e.coordsAtPos(r-1),s=(o.top+o.bottom)/2;if(s>i.top&&s1)return o.lefti.top&&s1)return o.left>i.left?"ltr":"rtl"}}return getComputedStyle(e.dom).direction=="rtl"?"rtl":"ltr"}function c8(e,r,n){let i=e.state.selection;if(i instanceof Lt&&!i.empty||n.indexOf("s")>-1||Zs&&n.indexOf("m")>-1)return!1;let{$from:o,$to:s}=i;if(!o.parent.inlineContent||e.endOfTextblock(r<0?"up":"down")){let a=Ky(e.state,r);if(a&&a instanceof Ht)return ou(e,a)}if(!o.parent.inlineContent){let a=r<0?o:s,l=i instanceof Xo?rr.near(a,r):rr.findFrom(a,r);return l?ou(e,l):!1}return!1}function d8(e,r){if(!(e.state.selection instanceof Lt))return!0;let{$head:n,$anchor:i,empty:o}=e.state.selection;if(!n.sameParent(i))return!0;if(!o)return!1;if(e.endOfTextblock(r>0?"forward":"backward"))return!0;let s=!n.textOffset&&(r<0?n.nodeBefore:n.nodeAfter);if(s&&!s.isText){let a=e.state.tr;return r<0?a.delete(n.pos-s.nodeSize,n.pos):a.delete(n.pos,n.pos+s.nodeSize),e.dispatch(a),!0}return!1}function h8(e,r,n){e.domObserver.stop(),r.contentEditable=n,e.domObserver.start()}function CH(e){if(!Lo||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:r,focusOffset:n}=e.domSelectionRange();if(r&&r.nodeType==1&&n==0&&r.firstChild&&r.firstChild.contentEditable=="false"){let i=r.firstChild;h8(e,i,"true"),setTimeout(()=>h8(e,i,"false"),20)}return!1}function _H(e){let r="";return e.ctrlKey&&(r+="c"),e.metaKey&&(r+="m"),e.altKey&&(r+="a"),e.shiftKey&&(r+="s"),r}function NH(e,r){let n=r.keyCode,i=_H(r);if(n==8||Zs&&n==72&&i=="c")return d8(e,-1)||Zd(e,-1);if(n==46&&!r.shiftKey||Zs&&n==68&&i=="c")return d8(e,1)||Zd(e,1);if(n==13||n==27)return!0;if(n==37||Zs&&n==66&&i=="c"){let o=n==37?u8(e,e.state.selection.from)=="ltr"?-1:1:-1;return l8(e,o,i)||Zd(e,o)}else if(n==39||Zs&&n==70&&i=="c"){let o=n==39?u8(e,e.state.selection.from)=="ltr"?1:-1:1;return l8(e,o,i)||Zd(e,o)}else{if(n==38||Zs&&n==80&&i=="c")return c8(e,-1,i)||Zd(e,-1);if(n==40||Zs&&n==78&&i=="c")return CH(e)||c8(e,1,i)||Zd(e,1);if(i==(Zs?"m":"c")&&(n==66||n==73||n==89||n==90))return!0}return!1}function Qb(e,r){e.someProp("transformCopied",f=>{r=f(r,e)});let n=[],{content:i,openStart:o,openEnd:s}=r;for(;o>1&&s>1&&i.childCount==1&&i.firstChild.childCount==1;){o--,s--;let f=i.firstChild;n.push(f.type.name,f.attrs!=f.type.defaultAttrs?f.attrs:null),i=f.content}let a=e.someProp("clipboardSerializer")||cd.fromSchema(e.state.schema),l=FC(),u=l.createElement("div");u.appendChild(a.serializeFragment(i,{document:l}));let c=u.firstChild,d,h=0;for(;c&&c.nodeType==1&&(d=NC[c.nodeName.toLowerCase()]);){for(let f=d.length-1;f>=0;f--){let m=l.createElement(d[f]);for(;u.firstChild;)m.appendChild(u.firstChild);u.appendChild(m),h++}c=u.firstChild}c&&c.nodeType==1&&c.setAttribute("data-pm-slice",`${o} ${s}${h?` -${h}`:""} ${JSON.stringify(n)}`);let p=e.someProp("clipboardTextSerializer",f=>f(r,e))||r.content.textBetween(0,r.content.size,` `);return{dom:u,text:p,slice:r}}function xC(e,r,n,i,o){let s=o.parent.type.spec.code,a,l;if(!n&&!r)return null;let u=!!r&&(i||s||!n);if(u){if(e.someProp("transformPastedText",p=>{r=p(r,s||i,e)}),s)return l=new ht(ze.from(e.state.schema.text(r.replace(/\r\n?/g,` `))),0,0),e.someProp("transformPasted",p=>{l=p(l,e,!0)}),l;let h=e.someProp("clipboardTextParser",p=>p(r,o,i,e));if(h)l=h;else{let p=o.marks(),{schema:f}=e.state,m=cd.fromSchema(f);a=document.createElement("div"),r.split(/(?:\r\n?|\n)+/).forEach(v=>{let w=a.appendChild(document.createElement("p"));v&&w.appendChild(m.serializeNode(f.text(v,p)))})}}else e.someProp("transformPastedHTML",h=>{n=h(n,e)}),a=RH(n),Gf&&BH(a);let c=a&&a.querySelector("[data-pm-slice]"),d=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(d&&d[3])for(let h=+d[3];h>0;h--){let p=a.firstChild;for(;p&&p.nodeType!=1;)p=p.nextSibling;if(!p)break;a=p}if(l||(l=(e.someProp("clipboardParser")||e.someProp("domParser")||hh.fromSchema(e.state.schema)).parseSlice(a,{preserveWhitespace:!!(u||d),context:o,ruleFromNode(h){return h.nodeName=="BR"&&!h.nextSibling&&h.parentNode&&!FH.test(h.parentNode.nodeName)?{ignore:!0}:null}})),d)l=IH(p8(l,+d[1],+d[2]),d[4]);else if(l=ht.maxOpen(OH(l.content,o),!0),l.openStart||l.openEnd){let h=0,p=0;for(let f=l.content.firstChild;h{l=h(l,e,u)}),l}const FH=/^(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 OH(e,r){if(e.childCount<2)return e;for(let n=r.depth;n>=0;n--){let i=r.node(n).contentMatchAt(r.index(n)),o,s=[];if(e.forEach(a=>{if(!s)return;let l=i.findWrapping(a.type),u;if(!l)return s=null;if(u=s.length&&o.length&&CC(l,o,a,s[s.length-1],0))s[s.length-1]=u;else{s.length&&(s[s.length-1]=_C(s[s.length-1],o.length));let c=kC(a,l);s.push(c),i=i.matchType(c.type),o=l}}),s)return ze.from(s)}return e}function kC(e,r,n=0){for(let i=r.length-1;i>=n;i--)e=r[i].create(null,ze.from(e));return e}function CC(e,r,n,i,o){if(o1&&(s=0),o=n&&(l=r<0?a.contentMatchAt(0).fillBefore(l,s<=o).append(l):l.append(a.contentMatchAt(a.childCount).fillBefore(ze.empty,!0))),e.replaceChild(r<0?0:e.childCount-1,a.copy(l))}function p8(e,r,n){return rn})),P5.createHTML(e)):e}function RH(e){let r=/^(\s*]*>)*/.exec(e);r&&(e=e.slice(r[0].length));let n=FC().createElement("div"),i=/<([a-z][^>\s]+)/i.exec(e),o;if((o=i&&NC[i[1].toLowerCase()])&&(e=o.map(s=>"<"+s+">").join("")+e+o.map(s=>"").reverse().join("")),n.innerHTML=MH(e),o)for(let s=0;s=0;l-=2){let u=n.nodes[i[l]];if(!u||u.hasRequiredAttrs())break;o=ze.from(u.create(i[l+1],o)),s++,a++}return new ht(o,s,a)}const No={},Mo={},LH={touchstart:!0,touchmove:!0};class zH{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 YH(e){for(let r in No){let n=No[r];e.dom.addEventListener(r,e.input.eventHandlers[r]=i=>{PH(e,i)&&!Jb(e,i)&&(e.editable||!(i.type in Mo))&&n(e,i)},LH[r]?{passive:!0}:void 0)}Lo&&e.dom.addEventListener("input",()=>null),Xy(e)}function bu(e,r){e.input.lastSelectionOrigin=r,e.input.lastSelectionTime=Date.now()}function HH(e){e.domObserver.stop();for(let r in e.input.eventHandlers)e.dom.removeEventListener(r,e.input.eventHandlers[r]);clearTimeout(e.input.composingTimeout),clearTimeout(e.input.lastIOSEnterFallbackTimeout)}function Xy(e){e.someProp("handleDOMEvents",r=>{for(let n in r)e.input.eventHandlers[n]||e.dom.addEventListener(n,e.input.eventHandlers[n]=i=>Jb(e,i))})}function Jb(e,r){return e.someProp("handleDOMEvents",n=>{let i=n[r.type];return i?i(e,r)||r.defaultPrevented:!1})}function PH(e,r){if(!r.bubbles)return!0;if(r.defaultPrevented)return!1;for(let n=r.target;n!=e.dom;n=n.parentNode)if(!n||n.nodeType==11||n.pmViewDesc&&n.pmViewDesc.stopEvent(r))return!1;return!0}function ZH(e,r){!Jb(e,r)&&No[r.type]&&(e.editable||!(r.type in Mo))&&No[r.type](e,r)}Mo.keydown=(e,r)=>{let n=r;if(e.input.shiftKey=n.keyCode==16||n.shiftKey,!m8(e,n)&&(e.input.lastKeyCode=n.keyCode,e.input.lastKeyCodeTime=Date.now(),!(o0&&go&&n.keyCode==13)))if(n.keyCode!=229&&e.domObserver.forceFlush(),Nh&&n.keyCode==13&&!n.ctrlKey&&!n.altKey&&!n.metaKey){let i=Date.now();e.input.lastIOSEnter=i,e.input.lastIOSEnterFallbackTimeout=setTimeout(()=>{e.input.lastIOSEnter==i&&(e.someProp("handleKeyDown",o=>o(e,Fc(13,"Enter"))),e.input.lastIOSEnter=0)},200)}else e.someProp("handleKeyDown",i=>i(e,n))||NH(e,n)?n.preventDefault():bu(e,"key")},Mo.keyup=(e,r)=>{r.keyCode==16&&(e.input.shiftKey=!1)},Mo.keypress=(e,r)=>{let n=r;if(m8(e,n)||!n.charCode||n.ctrlKey&&!n.altKey||Zs&&n.metaKey)return;if(e.someProp("handleKeyPress",o=>o(e,n))){n.preventDefault();return}let i=e.state.selection;if(!(i instanceof Lt)||!i.$from.sameParent(i.$to)){let o=String.fromCharCode(n.charCode),s=()=>e.state.tr.insertText(o).scrollIntoView();!/[\r\n]/.test(o)&&!e.someProp("handleTextInput",a=>a(e,i.$from.pos,i.$to.pos,o,s))&&e.dispatch(s()),n.preventDefault()}};function O2(e){return{left:e.clientX,top:e.clientY}}function $H(e,r){let n=r.x-e.clientX,i=r.y-e.clientY;return n*n+i*i<100}function Xb(e,r,n,i,o){if(i==-1)return!1;let s=e.state.doc.resolve(i);for(let a=s.depth+1;a>0;a--)if(e.someProp(r,l=>a>s.depth?l(e,n,s.nodeAfter,s.before(a),o,!0):l(e,n,s.node(a),s.before(a),o,!1)))return!0;return!1}function fh(e,r,n){if(e.focused||e.focus(),e.state.selection.eq(r))return;let i=e.state.tr.setSelection(r);i.setMeta("pointer",!0),e.dispatch(i)}function UH(e,r){if(r==-1)return!1;let n=e.state.doc.resolve(r),i=n.nodeAfter;return i&&i.isAtom&&Ht.isSelectable(i)?(fh(e,new Ht(n)),!0):!1}function VH(e,r){if(r==-1)return!1;let n=e.state.selection,i,o;n instanceof Ht&&(i=n.node);let s=e.state.doc.resolve(r);for(let a=s.depth+1;a>0;a--){let l=a>s.depth?s.nodeAfter:s.node(a);if(Ht.isSelectable(l)){i&&n.$from.depth>0&&a>=n.$from.depth&&s.before(n.$from.depth+1)==n.$from.pos?o=s.before(n.$from.depth):o=s.before(a);break}}return o!=null?(fh(e,Ht.create(e.state.doc,o)),!0):!1}function jH(e,r,n,i,o){return Xb(e,"handleClickOn",r,n,i)||e.someProp("handleClick",s=>s(e,r,i))||(o?VH(e,n):UH(e,n))}function GH(e,r,n,i){return Xb(e,"handleDoubleClickOn",r,n,i)||e.someProp("handleDoubleClick",o=>o(e,r,i))}function qH(e,r,n,i){return Xb(e,"handleTripleClickOn",r,n,i)||e.someProp("handleTripleClick",o=>o(e,r,i))||WH(e,n,i)}function WH(e,r,n){if(n.button!=0)return!1;let i=e.state.doc;if(r==-1)return i.inlineContent?(fh(e,Lt.create(i,0,i.content.size)),!0):!1;let o=i.resolve(r);for(let s=o.depth+1;s>0;s--){let a=s>o.depth?o.nodeAfter:o.node(s),l=o.before(s);if(a.inlineContent)fh(e,Lt.create(i,l+1,l+1+a.content.size));else if(Ht.isSelectable(a))fh(e,Ht.create(i,l));else continue;return!0}}function eT(e){return M2(e)}const MC=Zs?"metaKey":"ctrlKey";No.mousedown=(e,r)=>{let n=r;e.input.shiftKey=n.shiftKey;let i=eT(e),o=Date.now(),s="singleClick";o-e.input.lastClick.time<500&&$H(n,e.input.lastClick)&&!n[MC]&&e.input.lastClick.button==n.button&&(e.input.lastClick.type=="singleClick"?s="doubleClick":e.input.lastClick.type=="doubleClick"&&(s="tripleClick")),e.input.lastClick={time:o,x:n.clientX,y:n.clientY,type:s,button:n.button};let a=e.posAtCoords(O2(n));a&&(s=="singleClick"?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new KH(e,a,n,!!i)):(s=="doubleClick"?GH:qH)(e,a.pos,a.inside,n)?n.preventDefault():bu(e,"pointer"))};class KH{constructor(r,n,i,o){this.view=r,this.pos=n,this.event=i,this.flushed=o,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=r.state.doc,this.selectNode=!!i[MC],this.allowDefault=i.shiftKey;let s,a;if(n.inside>-1)s=r.state.doc.nodeAt(n.inside),a=n.inside;else{let d=r.state.doc.resolve(n.pos);s=d.parent,a=d.depth?d.before():0}const l=o?null:i.target,u=l?r.docView.nearestDesc(l,!0):null;this.target=u&&u.nodeDOM.nodeType==1?u.nodeDOM:null;let{selection:c}=r.state;(i.button==0&&s.type.spec.draggable&&s.type.spec.selectable!==!1||c instanceof Ht&&c.from<=a&&c.to>a)&&(this.mightDrag={node:s,pos:a,addAttr:!!(this.target&&!this.target.draggable),setUneditable:!!(this.target&&Ws&&!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()),r.root.addEventListener("mouseup",this.up=this.up.bind(this)),r.root.addEventListener("mousemove",this.move=this.move.bind(this)),bu(r,"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(()=>h0(this.view)),this.view.input.mouseDown=null}up(r){if(this.done(),!this.view.dom.contains(r.target))return;let n=this.pos;this.view.state.doc!=this.startDoc&&(n=this.view.posAtCoords(O2(r))),this.updateAllowDefault(r),this.allowDefault||!n?bu(this.view,"pointer"):jH(this.view,n.pos,n.inside,r,this.selectNode)?r.preventDefault():r.button==0&&(this.flushed||Lo&&this.mightDrag&&!this.mightDrag.node.isAtom||go&&!this.view.state.selection.visible&&Math.min(Math.abs(n.pos-this.view.state.selection.from),Math.abs(n.pos-this.view.state.selection.to))<=2)?(fh(this.view,rr.near(this.view.state.doc.resolve(n.pos))),r.preventDefault()):bu(this.view,"pointer")}move(r){this.updateAllowDefault(r),bu(this.view,"pointer"),r.buttons==0&&this.done()}updateAllowDefault(r){!this.allowDefault&&(Math.abs(this.event.x-r.clientX)>4||Math.abs(this.event.y-r.clientY)>4)&&(this.allowDefault=!0)}}No.touchstart=e=>{e.input.lastTouch=Date.now(),eT(e),bu(e,"pointer")},No.touchmove=e=>{e.input.lastTouch=Date.now(),bu(e,"pointer")},No.contextmenu=e=>eT(e);function m8(e,r){return e.composing?!0:Lo&&Math.abs(r.timeStamp-e.input.compositionEndedAt)<500?(e.input.compositionEndedAt=-2e8,!0):!1}const QH=o0?5e3:-1;Mo.compositionstart=Mo.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:r}=e,n=r.selection.$to;if(r.selection instanceof Lt&&(r.storedMarks||!n.textOffset&&n.parentOffset&&n.nodeBefore.marks.some(i=>i.type.spec.inclusive===!1)))e.markCursor=e.state.storedMarks||n.marks(),M2(e,!0),e.markCursor=null;else if(M2(e,!r.selection.empty),Ws&&r.selection.empty&&n.parentOffset&&!n.textOffset&&n.nodeBefore.marks.length){let i=e.domSelectionRange();for(let o=i.focusNode,s=i.focusOffset;o&&o.nodeType==1&&s!=0;){let a=s<0?o.lastChild:o.childNodes[s-1];if(!a)break;if(a.nodeType==3){let l=e.domSelection();l&&l.collapse(a,a.nodeValue.length);break}else o=a,s=-1}}e.input.composing=!0}g8(e,QH)},Mo.compositionend=(e,r)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=r.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionNode=null,e.input.compositionPendingChanges&&Promise.resolve().then(()=>e.domObserver.flush()),e.input.compositionID++,g8(e,20))};function g8(e,r){clearTimeout(e.input.composingTimeout),r>-1&&(e.input.composingTimeout=setTimeout(()=>M2(e),r))}function RC(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=XH());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function JH(e){let r=e.domSelectionRange();if(!r.focusNode)return null;let n=UY(r.focusNode,r.focusOffset),i=VY(r.focusNode,r.focusOffset);if(n&&i&&n!=i){let o=i.pmViewDesc,s=e.domObserver.lastChangedTextNode;if(n==s||i==s)return s;if(!o||!o.isText(i.nodeValue))return i;if(e.input.compositionNode==i){let a=n.pmViewDesc;if(!(!a||!a.isText(n.nodeValue)))return i}}return n||i}function XH(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}function M2(e,r=!1){if(!(o0&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),RC(e),r||e.docView&&e.docView.dirty){let n=Wb(e),i=e.state.selection;return n&&!n.eq(i)?e.dispatch(e.state.tr.setSelection(n)):(e.markCursor||r)&&!i.$from.node(i.$from.sharedDepth(i.to)).inlineContent?e.dispatch(e.state.tr.deleteSelection()):e.updateState(e.state),!0}return!1}}function eP(e,r){if(!e.dom.parentNode)return;let n=e.dom.parentNode.appendChild(document.createElement("div"));n.appendChild(r),n.style.cssText="position: fixed; left: -10000px; top: 10px";let i=getSelection(),o=document.createRange();o.selectNodeContents(r),e.dom.blur(),i.removeAllRanges(),i.addRange(o),setTimeout(()=>{n.parentNode&&n.parentNode.removeChild(n),e.focus()},50)}const _1=es&&ku<15||Nh&&KY<604;No.copy=Mo.cut=(e,r)=>{let n=r,i=e.state.selection,o=n.type=="cut";if(i.empty)return;let s=_1?null:n.clipboardData,a=i.content(),{dom:l,text:u}=Qb(e,a);s?(n.preventDefault(),s.clearData(),s.setData("text/html",l.innerHTML),s.setData("text/plain",u)):eP(e,l),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))};function tP(e){return e.openStart==0&&e.openEnd==0&&e.content.childCount==1?e.content.firstChild:null}function rP(e,r){if(!e.dom.parentNode)return;let n=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,i=e.dom.parentNode.appendChild(document.createElement(n?"textarea":"div"));n||(i.contentEditable="true"),i.style.cssText="position: fixed; left: -10000px; top: 10px",i.focus();let o=e.input.shiftKey&&e.input.lastKeyCode!=45;setTimeout(()=>{e.focus(),i.parentNode&&i.parentNode.removeChild(i),n?sf(e,i.value,null,o,r):sf(e,i.textContent,i.innerHTML,o,r)},50)}function sf(e,r,n,i,o){let s=xC(e,r,n,i,e.state.selection.$from);if(e.someProp("handlePaste",u=>u(e,o,s||ht.empty)))return!0;if(!s)return!1;let a=tP(s),l=a?e.state.tr.replaceSelectionWith(a,i):e.state.tr.replaceSelection(s);return e.dispatch(l.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function BC(e){let r=e.getData("text/plain")||e.getData("Text");if(r)return r;let n=e.getData("text/uri-list");return n?n.replace(/\r?\n/g," "):""}Mo.paste=(e,r)=>{let n=r;if(e.composing&&!o0)return;let i=_1?null:n.clipboardData,o=e.input.shiftKey&&e.input.lastKeyCode!=45;i&&sf(e,BC(i),i.getData("text/html"),o,n)?n.preventDefault():rP(e,n)};class IC{constructor(r,n,i){this.slice=r,this.move=n,this.node=i}}const nP=Zs?"altKey":"ctrlKey";function y8(e,r){return e.someProp("dragCopies",i=>!i(r))??!r[nP]}No.dragstart=(e,r)=>{let n=r,i=e.input.mouseDown;if(i&&i.done(),!n.dataTransfer)return;let o=e.state.selection,s=o.empty?null:e.posAtCoords(O2(n)),a;if(!(s&&s.pos>=o.from&&s.pos<=(o instanceof Ht?o.to-1:o.to))){if(i&&i.mightDrag)a=Ht.create(e.state.doc,i.mightDrag.pos);else if(n.target&&n.target.nodeType==1){let h=e.docView.nearestDesc(n.target,!0);h&&h.node.type.spec.draggable&&h!=e.docView&&(a=Ht.create(e.state.doc,h.posBefore))}}let l=(a||e.state.selection).content(),{dom:u,text:c,slice:d}=Qb(e,l);(!n.dataTransfer.files.length||!go||cC>120)&&n.dataTransfer.clearData(),n.dataTransfer.setData(_1?"Text":"text/html",u.innerHTML),n.dataTransfer.effectAllowed="copyMove",_1||n.dataTransfer.setData("text/plain",c),e.dragging=new IC(d,y8(e,n),a)},No.dragend=e=>{let r=e.dragging;window.setTimeout(()=>{e.dragging==r&&(e.dragging=null)},50)},Mo.dragover=Mo.dragenter=(e,r)=>r.preventDefault(),Mo.drop=(e,r)=>{let n=r,i=e.dragging;if(e.dragging=null,!n.dataTransfer)return;let o=e.posAtCoords(O2(n));if(!o)return;let s=e.state.doc.resolve(o.pos),a=i&&i.slice;a?e.someProp("transformPasted",m=>{a=m(a,e,!1)}):a=xC(e,BC(n.dataTransfer),_1?null:n.dataTransfer.getData("text/html"),!1,s);let l=!!(i&&y8(e,n));if(e.someProp("handleDrop",m=>m(e,n,a||ht.empty,l))){n.preventDefault();return}if(!a)return;n.preventDefault();let u=a?Uk(e.state.doc,s.pos,a):s.pos;u==null&&(u=s.pos);let c=e.state.tr;if(l){let{node:m}=i;m?m.replace(c):c.deleteSelection()}let d=c.mapping.map(u),h=a.openStart==0&&a.openEnd==0&&a.content.childCount==1,p=c.doc;if(h?c.replaceRangeWith(d,d,a.content.firstChild):c.replaceRange(d,d,a),c.doc.eq(p))return;let f=c.doc.resolve(d);if(h&&Ht.isSelectable(a.content.firstChild)&&f.nodeAfter&&f.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new Ht(f));else{let m=c.mapping.map(u);c.mapping.maps[c.mapping.maps.length-1].forEach((v,w,x,k)=>m=k),c.setSelection(Kb(e,f,c.doc.resolve(m)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},No.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout(()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&h0(e)},20))},No.blur=(e,r)=>{let n=r;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),n.relatedTarget&&e.dom.contains(n.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},No.beforeinput=(e,r)=>{if(go&&o0&&r.inputType=="deleteContentBackward"){e.domObserver.flushSoon();let{domChangeCount:n}=e.input;setTimeout(()=>{if(e.input.domChangeCount!=n||(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",o=>o(e,Fc(8,"Backspace")))))return;let{$cursor:i}=e.state.selection;i&&i.pos>0&&e.dispatch(e.state.tr.delete(i.pos-1,i.pos).scrollIntoView())},50)}};for(let e in Mo)No[e]=Mo[e];function af(e,r){if(e==r)return!0;for(let n in e)if(e[n]!==r[n])return!1;for(let n in r)if(!(n in e))return!1;return!0}class R2{constructor(r,n){this.toDOM=r,this.spec=n||Hc,this.side=this.spec.side||0}map(r,n,i,o){let{pos:s,deleted:a}=r.mapResult(n.from+o,this.side<0?-1:1);return a?null:new kn(s-i,s-i,this)}valid(){return!0}eq(r){return this==r||r instanceof R2&&(this.spec.key&&this.spec.key==r.spec.key||this.toDOM==r.toDOM&&af(this.spec,r.spec))}destroy(r){this.spec.destroy&&this.spec.destroy(r)}}class _u{constructor(r,n){this.attrs=r,this.spec=n||Hc}map(r,n,i,o){let s=r.map(n.from+o,this.spec.inclusiveStart?-1:1)-i,a=r.map(n.to+o,this.spec.inclusiveEnd?1:-1)-i;return s>=a?null:new kn(s,a,this)}valid(r,n){return n.from=r&&(!s||s(l.spec))&&i.push(l.copy(l.from+o,l.to+o))}for(let a=0;ar){let l=this.children[a]+1;this.children[a+2].findInner(r-l,n-l,i,o+l,s)}}map(r,n,i){return this==co||r.maps.length==0?this:this.mapInner(r,n,0,0,i||Hc)}mapInner(r,n,i,o,s){let a;for(let l=0;l{let c=u+i,d;if(d=zC(n,l,c)){for(o||(o=this.children.slice());sl&&h.to=r){this.children[l]==r&&(i=this.children[l+2]);break}let s=r+1,a=s+n.content.size;for(let l=0;ls&&u.type instanceof _u){let c=Math.max(s,u.from)-s,d=Math.min(a,u.to)-s;co.map(r,n,Hc));return cu.from(i)}forChild(r,n){if(n.isLeaf)return Nr.empty;let i=[];for(let o=0;on instanceof Nr)?r:r.reduce((n,i)=>n.concat(i instanceof Nr?i:i.members),[]))}}forEachSet(r){for(let n=0;n{let w=v-m-(f-p);for(let x=0;xk+d-h)continue;let R=l[x]+d-h;f>=R?l[x+1]=p<=R?-2:-1:p>=d&&w&&(l[x]+=w,l[x+1]+=w)}h+=w}),d=n.maps[c].map(d,-1)}let u=!1;for(let c=0;c=i.content.size){u=!0;continue}let p=n.map(e[c+1]+s,-1),f=p-o,{index:m,offset:v}=i.content.findIndex(h),w=i.maybeChild(m);if(w&&v==h&&v+w.nodeSize==f){let x=l[c+2].mapInner(n,w,d+1,e[c]+s+1,a);x!=co?(l[c]=h,l[c+1]=f,l[c+2]=x):(l[c+1]=-2,u=!0)}else u=!0}if(u){let c=oP(l,e,r,n,o,s,a),d=B2(c,i,0,a);r=d.local;for(let h=0;hn&&a.to{let c=zC(e,l,u+n);if(c){s=!0;let d=B2(c,l,n+u+1,i);d!=co&&o.push(u,u+l.nodeSize,d)}});let a=LC(s?YC(e):e,-n).sort(Pc);for(let l=0;l0;)r++;e.splice(r,0,n)}function Z5(e){let r=[];return e.someProp("decorations",n=>{let i=n(e.state);i&&i!=co&&r.push(i)}),e.cursorWrapper&&r.push(Nr.create(e.state.doc,[e.cursorWrapper.deco])),cu.from(r)}const sP={childList:!0,characterData:!0,characterDataOldValue:!0,attributes:!0,attributeOldValue:!0,subtree:!0},aP=es&&ku<=11;class lP{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}set(r){this.anchorNode=r.anchorNode,this.anchorOffset=r.anchorOffset,this.focusNode=r.focusNode,this.focusOffset=r.focusOffset}clear(){this.anchorNode=this.focusNode=null}eq(r){return r.anchorNode==this.anchorNode&&r.anchorOffset==this.anchorOffset&&r.focusNode==this.focusNode&&r.focusOffset==this.focusOffset}}class uP{constructor(r,n){this.view=r,this.handleDOMChange=n,this.queue=[],this.flushingSoon=-1,this.observer=null,this.currentSelection=new lP,this.onCharData=null,this.suppressingSelectionUpdates=!1,this.lastChangedTextNode=null,this.observer=window.MutationObserver&&new window.MutationObserver(i=>{for(let o=0;oo.type=="childList"&&o.removedNodes.length||o.type=="characterData"&&o.oldValue.length>o.target.nodeValue.length)?this.flushSoon():this.flush()}),aP&&(this.onCharData=i=>{this.queue.push({target:i.target,type:"characterData",oldValue:i.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,sP)),this.onCharData&&this.view.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.connectSelection()}stop(){if(this.observer){let r=this.observer.takeRecords();if(r.length){for(let n=0;nthis.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(a8(this.view)){if(this.suppressingSelectionUpdates)return h0(this.view);if(es&&ku<=11&&!this.view.state.selection.empty){let r=this.view.domSelectionRange();if(r.focusNode&&Jc(r.focusNode,r.focusOffset,r.anchorNode,r.anchorOffset))return this.flushSoon()}this.flush()}}setCurSelection(){this.currentSelection.set(this.view.domSelectionRange())}ignoreSelectionChange(r){if(!r.focusNode)return!0;let n=new Set,i;for(let s=r.focusNode;s;s=_h(s))n.add(s);for(let s=r.anchorNode;s;s=_h(s))if(n.has(s)){i=s;break}let o=i&&this.view.docView.nearestDesc(i);if(o&&o.ignoreMutation({type:"selection",target:i.nodeType==3?i.parentNode:i}))return this.setCurSelection(),!0}pendingRecords(){if(this.observer)for(let r of this.observer.takeRecords())this.queue.push(r);return this.queue}flush(){let{view:r}=this;if(!r.docView||this.flushingSoon>-1)return;let n=this.pendingRecords();n.length&&(this.queue=[]);let i=r.domSelectionRange(),o=!this.suppressingSelectionUpdates&&!this.currentSelection.eq(i)&&a8(r)&&!this.ignoreSelectionChange(i),s=-1,a=-1,l=!1,u=[];if(r.editable)for(let d=0;dh.nodeName=="BR");if(d.length==2){let[h,p]=d;h.parentNode&&h.parentNode.parentNode==p.parentNode?p.remove():h.remove()}else{let{focusNode:h}=this.currentSelection;for(let p of d){let f=p.parentNode;f&&f.nodeName=="LI"&&(!h||hP(r,h)!=f)&&p.remove()}}}let c=null;s<0&&o&&r.input.lastFocus>Date.now()-200&&Math.max(r.input.lastTouch,r.input.lastClick.time)-1||o)&&(s>-1&&(r.docView.markDirty(s,a),cP(r)),this.handleDOMChange(s,a,l,u),r.docView&&r.docView.dirty?r.updateState(r.state):this.currentSelection.eq(i)||h0(r),this.currentSelection.set(i))}registerMutation(r,n){if(n.indexOf(r.target)>-1)return null;let i=this.view.docView.nearestDesc(r.target);if(r.type=="attributes"&&(i==this.view.docView||r.attributeName=="contenteditable"||r.attributeName=="style"&&!r.oldValue&&!r.target.getAttribute("style"))||!i||i.ignoreMutation(r))return null;if(r.type=="childList"){for(let d=0;do;w--){let x=i.childNodes[w-1],k=x.pmViewDesc;if(x.nodeName=="BR"&&!k){s=w;break}if(!k||k.size)break}let h=e.state.doc,p=e.someProp("domParser")||hh.fromSchema(e.state.schema),f=h.resolve(a),m=null,v=p.parse(i,{topNode:f.parent,topMatch:f.parent.contentMatchAt(f.index()),topOpen:!0,from:o,to:s,preserveWhitespace:f.parent.type.whitespace=="pre"?"full":!0,findPositions:c,ruleFromNode:fP,context:f});if(c&&c[0].pos!=null){let w=c[0].pos,x=c[1]&&c[1].pos;x==null&&(x=w),m={anchor:w+a,head:x+a}}return{doc:v,sel:m,from:a,to:l}}function fP(e){let r=e.pmViewDesc;if(r)return r.parseRule();if(e.nodeName=="BR"&&e.parentNode){if(Lo&&/^(ul|ol)$/i.test(e.parentNode.nodeName)){let n=document.createElement("div");return n.appendChild(document.createElement("li")),{skip:n}}else if(e.parentNode.lastChild==e||Lo&&/^(tr|table)$/i.test(e.parentNode.nodeName))return{ignore:!0}}else if(e.nodeName=="IMG"&&e.getAttribute("mark-placeholder"))return{ignore:!0};return null}const mP=/^(a|abbr|acronym|b|bd[io]|big|br|button|cite|code|data(list)?|del|dfn|em|i|img|ins|kbd|label|map|mark|meter|output|q|ruby|s|samp|small|span|strong|su[bp]|time|u|tt|var)$/i;function gP(e,r,n,i,o){let s=e.input.compositionPendingChanges||(e.composing?e.input.compositionID:0);if(e.input.compositionPendingChanges=0,r<0){let W=e.input.lastSelectionTime>Date.now()-50?e.input.lastSelectionOrigin:null,ie=Wb(e,W);if(ie&&!e.state.selection.eq(ie)){if(go&&o0&&e.input.lastKeyCode===13&&Date.now()-100I(e,Fc(13,"Enter"))))return;let ue=e.state.tr.setSelection(ie);W=="pointer"?ue.setMeta("pointer",!0):W=="key"&&ue.scrollIntoView(),s&&ue.setMeta("composition",s),e.dispatch(ue)}return}let a=e.state.doc.resolve(r),l=a.sharedDepth(n);r=a.before(l+1),n=e.state.doc.resolve(n).after(l+1);let u=e.state.selection,c=pP(e,r,n),d=e.state.doc,h=d.slice(c.from,c.to),p,f;e.input.lastKeyCode===8&&Date.now()-100Date.now()-225||o0)&&o.some(W=>W.nodeType==1&&!mP.test(W.nodeName))&&(!m||m.endA>=m.endB)&&e.someProp("handleKeyDown",W=>W(e,Fc(13,"Enter")))){e.input.lastIOSEnter=0;return}if(!m)if(i&&u instanceof Lt&&!u.empty&&u.$head.sameParent(u.$anchor)&&!e.composing&&!(c.sel&&c.sel.anchor!=c.sel.head))m={start:u.from,endA:u.to,endB:u.to};else{if(c.sel){let W=E8(e,e.state.doc,c.sel);if(W&&!W.eq(e.state.selection)){let ie=e.state.tr.setSelection(W);s&&ie.setMeta("composition",s),e.dispatch(ie)}}return}e.state.selection.frome.state.selection.from&&m.start<=e.state.selection.from+2&&e.state.selection.from>=c.from?m.start=e.state.selection.from:m.endA=e.state.selection.to-2&&e.state.selection.to<=c.to&&(m.endB+=e.state.selection.to-m.endA,m.endA=e.state.selection.to)),es&&ku<=11&&m.endB==m.start+1&&m.endA==m.start&&m.start>c.from&&c.doc.textBetween(m.start-c.from-1,m.start-c.from+1)=="  "&&(m.start--,m.endA--,m.endB--);let v=c.doc.resolveNoCache(m.start-c.from),w=c.doc.resolveNoCache(m.endB-c.from),x=d.resolve(m.start),k=v.sameParent(w)&&v.parent.inlineContent&&x.end()>=m.endA;if((Nh&&e.input.lastIOSEnter>Date.now()-225&&(!k||o.some(W=>W.nodeName=="DIV"||W.nodeName=="P"))||!k&&v.posW(e,Fc(13,"Enter")))){e.input.lastIOSEnter=0;return}if(e.state.selection.anchor>m.start&&TP(d,m.start,m.endA,v,w)&&e.someProp("handleKeyDown",W=>W(e,Fc(8,"Backspace")))){o0&&go&&e.domObserver.suppressSelectionUpdates();return}go&&m.endB==m.start&&(e.input.lastChromeDelete=Date.now()),o0&&!k&&v.start()!=w.start()&&w.parentOffset==0&&v.depth==w.depth&&c.sel&&c.sel.anchor==c.sel.head&&c.sel.head==m.endA&&(m.endB-=2,w=c.doc.resolveNoCache(m.endB-c.from),setTimeout(()=>{e.someProp("handleKeyDown",function(W){return W(e,Fc(13,"Enter"))})},20));let R=m.start,O=m.endA,P=W=>{let ie=W||e.state.tr.replace(R,O,c.doc.slice(m.start-c.from,m.endB-c.from));if(c.sel){let ue=E8(e,ie.doc,c.sel);ue&&!(go&&e.composing&&ue.empty&&(m.start!=m.endB||e.input.lastChromeDeleteh0(e),20));let W=P(e.state.tr.delete(R,O)),ie=d.resolve(m.start).marksAcross(d.resolve(m.endA));ie&&W.ensureMarks(ie),e.dispatch(W)}else if(m.endA==m.endB&&(V=yP(v.parent.content.cut(v.parentOffset,w.parentOffset),x.parent.content.cut(x.parentOffset,m.endA-x.start())))){let W=P(e.state.tr);V.type=="add"?W.addMark(R,O,V.mark):W.removeMark(R,O,V.mark),e.dispatch(W)}else if(v.parent.child(v.index()).isText&&v.index()==w.index()-(w.textOffset?0:1)){let W=v.parent.textBetween(v.parentOffset,w.parentOffset),ie=()=>P(e.state.tr.insertText(W,R,O));e.someProp("handleTextInput",ue=>ue(e,R,O,W,ie))||e.dispatch(ie())}else e.dispatch(P());else e.dispatch(P())}function E8(e,r,n){return Math.max(n.anchor,n.head)>r.content.size?null:Kb(e,r.resolve(n.anchor),r.resolve(n.head))}function yP(e,r){let n=e.firstChild.marks,i=r.firstChild.marks,o=n,s=i,a,l,u;for(let d=0;dd.mark(l.addToSet(d.marks));else if(o.length==0&&s.length==1)l=s[0],a="remove",u=d=>d.mark(l.removeFromSet(d.marks));else return null;let c=[];for(let d=0;dn||$5(a,!0,!1)0&&(r||e.indexAfter(i)==e.node(i).childCount);)i--,o++,r=!1;if(n){let s=e.node(i).maybeChild(e.indexAfter(i));for(;s&&!s.isLeaf;)s=s.firstChild,o++}return o}function bP(e,r,n,i,o){let s=e.findDiffStart(r,n);if(s==null)return null;let{a,b:l}=e.findDiffEnd(r,n+e.size,n+r.size);if(o=="end"){let u=Math.max(0,s-Math.min(a,l));i-=a+u-s}if(a=a?s-i:0;s-=u,s&&s=l?s-i:0;s-=u,s&&s=56320&&r<=57343&&n>=55296&&n<=56319}class HC{constructor(r,n){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 zH,this.prevDirectPlugins=[],this.pluginViews=[],this.requiresGeckoHackNode=!1,this.dragging=null,this._props=n,this.state=n.state,this.directPlugins=n.plugins||[],this.directPlugins.forEach(C8),this.dispatch=this.dispatch.bind(this),this.dom=r&&r.mount||document.createElement("div"),r&&(r.appendChild?r.appendChild(this.dom):typeof r=="function"?r(this.dom):r.mount&&(this.mounted=!0)),this.editable=x8(this),D8(this),this.nodeViews=k8(this),this.docView=t8(this.state.doc,S8(this),Z5(this),this.dom,this),this.domObserver=new uP(this,(i,o,s,a)=>gP(this,i,o,s,a)),this.domObserver.start(),YH(this),this.updatePluginViews()}get composing(){return this.input.composing}get props(){if(this._props.state!=this.state){let r=this._props;this._props={};for(let n in r)this._props[n]=r[n];this._props.state=this.state}return this._props}update(r){r.handleDOMEvents!=this._props.handleDOMEvents&&Xy(this);let n=this._props;this._props=r,r.plugins&&(r.plugins.forEach(C8),this.directPlugins=r.plugins),this.updateStateInner(r.state,n)}setProps(r){let n={};for(let i in this._props)n[i]=this._props[i];n.state=this.state;for(let i in r)n[i]=r[i];this.update(n)}updateState(r){this.updateStateInner(r,this._props)}updateStateInner(r,n){var i;let o=this.state,s=!1,a=!1;r.storedMarks&&this.composing&&(RC(this),a=!0),this.state=r;let l=o.plugins!=r.plugins||this._props.plugins!=n.plugins;if(l||this._props.plugins!=n.plugins||this._props.nodeViews!=n.nodeViews){let f=k8(this);AP(f,this.nodeViews)&&(this.nodeViews=f,s=!0)}(l||n.handleDOMEvents!=this._props.handleDOMEvents)&&Xy(this),this.editable=x8(this),D8(this);let u=Z5(this),c=S8(this),d=o.plugins!=r.plugins&&!o.doc.eq(r.doc)?"reset":r.scrollToSelection>o.scrollToSelection?"to selection":"preserve",h=s||!this.docView.matchesNode(r.doc,c,u);(h||!r.selection.eq(o.selection))&&(a=!0);let p=d=="preserve"&&a&&this.dom.style.overflowAnchor==null&&XY(this);if(a){this.domObserver.stop();let f=h&&(es||go)&&!this.composing&&!o.selection.empty&&!r.selection.empty&&vP(o.selection,r.selection);if(h){let m=go?this.trackWrites=this.domSelectionRange().focusNode:null;this.composing&&(this.input.compositionNode=JH(this)),(s||!this.docView.update(r.doc,c,u,this))&&(this.docView.updateOuterDeco(c),this.docView.destroy(),this.docView=t8(r.doc,c,u,this.dom,this)),m&&!this.trackWrites&&(f=!0)}f||!(this.input.mouseDown&&this.domObserver.currentSelection.eq(this.domSelectionRange())&&wH(this))?h0(this,f):(wC(this,r.selection),this.domObserver.setCurSelection()),this.domObserver.start()}this.updatePluginViews(o),!((i=this.dragging)===null||i===void 0)&&i.node&&!o.doc.eq(r.doc)&&this.updateDraggedNode(this.dragging,o),d=="reset"?this.dom.scrollTop=0:d=="to selection"?this.scrollToSelection():p&&eH(p)}scrollToSelection(){let r=this.domSelectionRange().focusNode;if(!(!r||!this.dom.contains(r.nodeType==1?r:r.parentNode))&&!this.someProp("handleScrollToSelection",n=>n(this)))if(this.state.selection instanceof Ht){let n=this.docView.domAfterPos(this.state.selection.from);n.nodeType==1&&WA(this,n.getBoundingClientRect(),r)}else WA(this,this.coordsAtPos(this.state.selection.head,1),r)}destroyPluginViews(){let r;for(;r=this.pluginViews.pop();)r.destroy&&r.destroy()}updatePluginViews(r){if(!r||r.plugins!=this.state.plugins||this.directPlugins!=this.prevDirectPlugins){this.prevDirectPlugins=this.directPlugins,this.destroyPluginViews();for(let n=0;n0&&this.state.doc.nodeAt(s))==i.node&&(o=s)}this.dragging=new IC(r.slice,r.move,o<0?void 0:Ht.create(this.state.doc,o))}someProp(r,n){let i=this._props&&this._props[r],o;if(i!=null&&(o=n?n(i):i))return o;for(let a=0;an.ownerDocument.getSelection()),this._root=n}return r||document}updateRoot(){this._root=null}posAtCoords(r){return sH(this,r)}coordsAtPos(r,n=1){return mC(this,r,n)}domAtPos(r,n=0){return this.docView.domFromPos(r,n)}nodeDOM(r){let n=this.docView.descAt(r);return n?n.nodeDOM:null}posAtDOM(r,n,i=-1){let o=this.docView.posFromDOM(r,n,i);if(o==null)throw new RangeError("DOM position not inside the editor");return o}endOfTextblock(r,n){return dH(this,n||this.state,r)}pasteHTML(r,n){return sf(this,"",r,!1,n||new ClipboardEvent("paste"))}pasteText(r,n){return sf(this,r,null,!0,n||new ClipboardEvent("paste"))}serializeForClipboard(r){return Qb(this,r)}destroy(){this.docView&&(HH(this),this.destroyPluginViews(),this.mounted?(this.docView.update(this.state.doc,[],Z5(this),this),this.dom.textContent=""):this.dom.parentNode&&this.dom.parentNode.removeChild(this.dom),this.docView.destroy(),this.docView=null,ZY())}get isDestroyed(){return this.docView==null}dispatchEvent(r){return ZH(this,r)}domSelectionRange(){let r=this.domSelection();return r?Lo&&this.root.nodeType===11&&GY(this.dom.ownerDocument)==this.dom&&dP(this,r)||r:{focusNode:null,focusOffset:0,anchorNode:null,anchorOffset:0}}domSelection(){return this.root.getSelection()}}HC.prototype.dispatch=function(e){let r=this._props.dispatchTransaction;r?r.call(this,e):this.updateState(this.state.apply(e))};function S8(e){let r=Object.create(null);return r.class="ProseMirror",r.contenteditable=String(e.editable),e.someProp("attributes",n=>{if(typeof n=="function"&&(n=n(e.state)),n)for(let i in n)i=="class"?r.class+=" "+n[i]:i=="style"?r.style=(r.style?r.style+";":"")+n[i]:!r[i]&&i!="contenteditable"&&i!="nodeName"&&(r[i]=String(n[i]))}),r.translate||(r.translate="no"),[kn.node(0,e.state.doc.content.size,r)]}function D8(e){if(e.markCursor){let r=document.createElement("img");r.className="ProseMirror-separator",r.setAttribute("mark-placeholder","true"),r.setAttribute("alt",""),e.cursorWrapper={dom:r,deco:kn.widget(e.state.selection.from,r,{raw:!0,marks:e.markCursor})}}else e.cursorWrapper=null}function x8(e){return!e.someProp("editable",r=>r(e.state)===!1)}function vP(e,r){let n=Math.min(e.$anchor.sharedDepth(e.head),r.$anchor.sharedDepth(r.head));return e.$anchor.start(n)!=r.$anchor.start(n)}function k8(e){let r=Object.create(null);function n(i){for(let o in i)Object.prototype.hasOwnProperty.call(r,o)||(r[o]=i[o])}return e.someProp("nodeViews",n),e.someProp("markViews",n),r}function AP(e,r){let n=0,i=0;for(let o in e){if(e[o]!=r[o])return!0;n++}for(let o in r)i++;return n!=i}function C8(e){if(e.spec.state||e.spec.filterTransaction||e.spec.appendTransaction)throw new RangeError("Plugins passed directly to the view must not have a state component")}for(var Yu={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:"'"},I2={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},EP=typeof navigator<"u"&&/Mac/.test(navigator.platform),wP=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),no=0;no<10;no++)Yu[48+no]=Yu[96+no]=String(no);for(var no=1;no<=24;no++)Yu[no+111]="F"+no;for(var no=65;no<=90;no++)Yu[no]=String.fromCharCode(no+32),I2[no]=String.fromCharCode(no);for(var U5 in Yu)I2.hasOwnProperty(U5)||(I2[U5]=Yu[U5]);function SP(e){var r=EP&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||wP&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!r&&e.key||(e.shiftKey?I2:Yu)[e.keyCode]||e.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}const DP=typeof navigator<"u"&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),xP=typeof navigator<"u"&&/Win/.test(navigator.platform);function kP(e){let r=e.split(/-(?!$)/),n=r[r.length-1];n=="Space"&&(n=" ");let i,o,s,a;for(let l=0;l{for(var n in r)NP(e,n,{get:r[n],enumerable:!0})};function m3(e){const{state:r,transaction:n}=e;let{selection:i}=n,{doc:o}=n,{storedMarks:s}=n;return{...r,apply:r.apply.bind(r),applyTransaction:r.applyTransaction.bind(r),plugins:r.plugins,schema:r.schema,reconfigure:r.reconfigure.bind(r),toJSON:r.toJSON.bind(r),get storedMarks(){return s},get selection(){return i},get doc(){return o},get tr(){return i=n.selection,o=n.doc,s=n.storedMarks,n}}}var g3=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:r,state:n}=this,{view:i}=r,{tr:o}=n,s=this.buildProps(o);return Object.fromEntries(Object.entries(e).map(([a,l])=>[a,(...u)=>{const c=l(...u)(s);return!o.getMeta("preventDispatch")&&!this.hasCustomState&&i.dispatch(o),c}]))}get chain(){return()=>this.createChain()}get can(){return()=>this.createCan()}createChain(e,r=!0){const{rawCommands:n,editor:i,state:o}=this,{view:s}=i,a=[],l=!!e,u=e||o.tr,c=()=>(!l&&r&&!u.getMeta("preventDispatch")&&!this.hasCustomState&&s.dispatch(u),a.every(h=>h===!0)),d={...Object.fromEntries(Object.entries(n).map(([h,p])=>[h,(...f)=>{const m=this.buildProps(u,r),v=p(...f)(m);return a.push(v),d}])),run:c};return d}createCan(e){const{rawCommands:r,state:n}=this,i=!1,o=e||n.tr,s=this.buildProps(o,i);return{...Object.fromEntries(Object.entries(r).map(([a,l])=>[a,(...u)=>l(...u)({...s,dispatch:void 0})])),chain:()=>this.createChain(o,i)}}buildProps(e,r=!0){const{rawCommands:n,editor:i,state:o}=this,{view:s}=i,a={tr:e,editor:i,view:s,state:m3({state:o,transaction:e}),dispatch:r?()=>{}:void 0,chain:()=>this.createChain(e,r),can:()=>this.createCan(e),get commands(){return Object.fromEntries(Object.entries(n).map(([l,u])=>[l,(...c)=>u(...c)(a)]))}};return a}},PC={};nv(PC,{blur:()=>FP,clearContent:()=>OP,clearNodes:()=>MP,command:()=>RP,createParagraphNear:()=>BP,cut:()=>IP,deleteCurrentNode:()=>LP,deleteNode:()=>zP,deleteRange:()=>YP,deleteSelection:()=>HP,enter:()=>PP,exitCode:()=>ZP,extendMarkRange:()=>$P,first:()=>UP,focus:()=>jP,forEach:()=>GP,insertContent:()=>qP,insertContentAt:()=>QP,joinBackward:()=>eZ,joinDown:()=>XP,joinForward:()=>tZ,joinItemBackward:()=>rZ,joinItemForward:()=>nZ,joinTextblockBackward:()=>iZ,joinTextblockForward:()=>oZ,joinUp:()=>JP,keyboardShortcut:()=>aZ,lift:()=>lZ,liftEmptyBlock:()=>uZ,liftListItem:()=>cZ,newlineInCode:()=>dZ,resetAttributes:()=>hZ,scrollIntoView:()=>pZ,selectAll:()=>fZ,selectNodeBackward:()=>mZ,selectNodeForward:()=>gZ,selectParentNode:()=>yZ,selectTextblockEnd:()=>TZ,selectTextblockStart:()=>bZ,setContent:()=>vZ,setMark:()=>IZ,setMeta:()=>LZ,setNode:()=>zZ,setNodeSelection:()=>YZ,setTextDirection:()=>HZ,setTextSelection:()=>PZ,sinkListItem:()=>ZZ,splitBlock:()=>$Z,splitListItem:()=>UZ,toggleList:()=>VZ,toggleMark:()=>jZ,toggleNode:()=>GZ,toggleWrap:()=>qZ,undoInputRule:()=>WZ,unsetAllMarks:()=>KZ,unsetMark:()=>QZ,unsetTextDirection:()=>JZ,updateAttributes:()=>XZ,wrapIn:()=>e$,wrapInList:()=>t$});var FP=()=>({editor:e,view:r})=>(requestAnimationFrame(()=>{var n;e.isDestroyed||(r.dom.blur(),(n=window?.getSelection())==null||n.removeAllRanges())}),!0),OP=(e=!0)=>({commands:r})=>r.setContent("",{emitUpdate:e}),MP=()=>({state:e,tr:r,dispatch:n})=>{const{selection:i}=r,{ranges:o}=i;return n&&o.forEach(({$from:s,$to:a})=>{e.doc.nodesBetween(s.pos,a.pos,(l,u)=>{if(l.type.isText)return;const{doc:c,mapping:d}=r,h=c.resolve(d.map(u)),p=c.resolve(d.map(u+l.nodeSize)),f=h.blockRange(p);if(!f)return;const m=ip(f);if(l.type.isTextblock){const{defaultType:v}=h.parent.contentMatchAt(h.index());r.setNodeMarkup(f.start,v)}(m||m===0)&&r.lift(f,m)})}),!0},RP=e=>r=>e(r),BP=()=>({state:e,dispatch:r})=>oC(e,r),IP=(e,r)=>({editor:n,tr:i})=>{const{state:o}=n,s=o.doc.slice(e.from,e.to);i.deleteRange(e.from,e.to);const a=i.mapping.map(r);return i.insert(a,s.content),i.setSelection(new Lt(i.doc.resolve(Math.max(a-1,0)))),!0},LP=()=>({tr:e,dispatch:r})=>{const{selection:n}=e,i=n.$anchor.node();if(i.content.size>0)return!1;const o=e.selection.$anchor;for(let s=o.depth;s>0;s-=1)if(o.node(s).type===i.type){if(r){const a=o.before(s),l=o.after(s);e.delete(a,l).scrollIntoView()}return!0}return!1};function fi(e,r){if(typeof e=="string"){if(!r.nodes[e])throw Error(`There is no node type named '${e}'. Maybe you forgot to add the extension?`);return r.nodes[e]}return e}var zP=e=>({tr:r,state:n,dispatch:i})=>{const o=fi(e,n.schema),s=r.selection.$anchor;for(let a=s.depth;a>0;a-=1)if(s.node(a).type===o){if(i){const l=s.before(a),u=s.after(a);r.delete(l,u).scrollIntoView()}return!0}return!1},YP=e=>({tr:r,dispatch:n})=>{const{from:i,to:o}=e;return n&&r.delete(i,o),!0},HP=()=>({state:e,dispatch:r})=>$y(e,r),PP=()=>({commands:e})=>e.keyboardShortcut("Enter"),ZP=()=>({state:e,dispatch:r})=>kY(e,r);function iv(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function L2(e,r,n={strict:!0}){const i=Object.keys(r);return i.length?i.every(o=>n.strict?r[o]===e[o]:iv(r[o])?r[o].test(e[o]):r[o]===e[o]):!0}function ZC(e,r,n={}){return e.find(i=>i.type===r&&L2(Object.fromEntries(Object.keys(n).map(o=>[o,i.attrs[o]])),n))}function _8(e,r,n={}){return!!ZC(e,r,n)}function y3(e,r,n){var i;if(!e||!r)return;let o=e.parent.childAfter(e.parentOffset);if((!o.node||!o.node.marks.some(c=>c.type===r))&&(o=e.parent.childBefore(e.parentOffset)),!o.node||!o.node.marks.some(c=>c.type===r)||(n=n||((i=o.node.marks[0])==null?void 0:i.attrs),!ZC([...o.node.marks],r,n)))return;let s=o.index,a=e.start()+o.offset,l=s+1,u=a+o.node.nodeSize;for(;s>0&&_8([...e.parent.child(s-1).marks],r,n);)s-=1,a-=e.parent.child(s).nodeSize;for(;l({tr:n,state:i,dispatch:o})=>{const s=x0(e,i.schema),{doc:a,selection:l}=n,{$from:u,from:c,to:d}=l;if(o){const h=y3(u,s,r);if(h&&h.from<=c&&h.to>=d){const p=Lt.create(a,h.from,h.to);n.setSelection(p)}}return!0},UP=e=>r=>{const n=typeof e=="function"?e(r):e;for(let i=0;i({editor:n,view:i,tr:o,dispatch:s})=>{r={scrollIntoView:!0,...r};const a=()=>{(lf()||tT())&&i.dom.focus(),VP()&&!lf()&&!tT()&&i.dom.focus({preventScroll:!0}),requestAnimationFrame(()=>{n.isDestroyed||(i.focus(),r?.scrollIntoView&&n.commands.scrollIntoView())})};if(i.hasFocus()&&e===null||e===!1)return!0;if(s&&e===null&&!$C(n.state.selection))return a(),!0;const l=UC(o.doc,e)||n.state.selection,u=n.state.selection.eq(l);return s&&(u||o.setSelection(l),u&&o.storedMarks&&o.setStoredMarks(o.storedMarks),a()),!0},GP=(e,r)=>n=>e.every((i,o)=>r(i,{...n,index:o})),qP=(e,r)=>({tr:n,commands:i})=>i.insertContentAt({from:n.selection.from,to:n.selection.to},e,r),VC=e=>{const r=e.childNodes;for(let n=r.length-1;n>=0;n-=1){const i=r[n];i.nodeType===3&&i.nodeValue&&/^(\n\s\s|\n)$/.test(i.nodeValue)?e.removeChild(i):i.nodeType===1&&VC(i)}return e};function Gm(e){if(typeof window>"u")throw new Error("[tiptap error]: there is no window object available, so this function cannot be used");const r=`${e}`,n=new window.DOMParser().parseFromString(r,"text/html").body;return VC(n)}function uf(e,r,n){if(e instanceof c0||e instanceof ze)return e;n={slice:!0,parseOptions:{},...n};const i=typeof e=="object"&&e!==null,o=typeof e=="string";if(i)try{if(Array.isArray(e)&&e.length>0)return ze.fromArray(e.map(a=>r.nodeFromJSON(a)));const s=r.nodeFromJSON(e);return n.errorOnInvalidContent&&s.check(),s}catch(s){if(n.errorOnInvalidContent)throw new Error("[tiptap error]: Invalid JSON content",{cause:s});return console.warn("[tiptap warn]: Invalid content.","Passed value:",e,"Error:",s),uf("",r,n)}if(o){if(n.errorOnInvalidContent){let a=!1,l="";const u=new zb({topNode:r.spec.topNode,marks:r.spec.marks,nodes:r.spec.nodes.append({__tiptap__private__unknown__catch__all__node:{content:"inline*",group:"block",parseDOM:[{tag:"*",getAttrs:c=>(a=!0,l=typeof c=="string"?c:c.outerHTML,null)}]}})});if(n.slice?hh.fromSchema(u).parseSlice(Gm(e),n.parseOptions):hh.fromSchema(u).parse(Gm(e),n.parseOptions),n.errorOnInvalidContent&&a)throw new Error("[tiptap error]: Invalid HTML content",{cause:new Error(`Invalid element found: ${l}`)})}const s=hh.fromSchema(r);return n.slice?s.parseSlice(Gm(e),n.parseOptions).content:s.parse(Gm(e),n.parseOptions)}return uf("",r,n)}function WP(e,r,n){const i=e.steps.length-1;if(i{a===0&&(a=d)}),e.setSelection(rr.near(e.doc.resolve(a),n))}var KP=e=>!("type"in e),QP=(e,r,n)=>({tr:i,dispatch:o,editor:s})=>{var a;if(o){n={parseOptions:s.options.parseOptions,updateSelection:!0,applyInputRules:!1,applyPasteRules:!1,...n};let l;const u=v=>{s.emit("contentError",{editor:s,error:v,disableCollaboration:()=>{"collaboration"in s.storage&&typeof s.storage.collaboration=="object"&&s.storage.collaboration&&(s.storage.collaboration.isDisabled=!0)}})},c={preserveWhitespace:"full",...n.parseOptions};if(!n.errorOnInvalidContent&&!s.options.enableContentCheck&&s.options.emitContentError)try{uf(r,s.schema,{parseOptions:c,errorOnInvalidContent:!0})}catch(v){u(v)}try{l=uf(r,s.schema,{parseOptions:c,errorOnInvalidContent:(a=n.errorOnInvalidContent)!=null?a:s.options.enableContentCheck})}catch(v){return u(v),!1}let{from:d,to:h}=typeof e=="number"?{from:e,to:e}:{from:e.from,to:e.to},p=!0,f=!0;if((KP(l)?l:[l]).forEach(v=>{v.check(),p=p?v.isText&&v.marks.length===0:!1,f=f?v.isBlock:!1}),d===h&&f){const{parent:v}=i.doc.resolve(d);v.isTextblock&&!v.type.spec.code&&!v.childCount&&(d-=1,h+=1)}let m;if(p){if(Array.isArray(r))m=r.map(v=>v.text||"").join("");else if(r instanceof ze){let v="";r.forEach(w=>{w.text&&(v+=w.text)}),m=v}else typeof r=="object"&&r&&r.text?m=r.text:m=r;i.insertText(m,d,h)}else{m=l;const v=i.doc.resolve(d),w=v.node(),x=v.parentOffset===0,k=w.isText||w.isTextblock,R=w.content.size>0;x&&k&&R&&(d=Math.max(0,d-1)),i.replaceWith(d,h,m)}n.updateSelection&&WP(i,i.steps.length-1,-1),n.applyInputRules&&i.setMeta("applyInputRules",{from:d,text:m}),n.applyPasteRules&&i.setMeta("applyPasteRules",{from:d,text:m})}return!0},JP=()=>({state:e,dispatch:r})=>SY(e,r),XP=()=>({state:e,dispatch:r})=>DY(e,r),eZ=()=>({state:e,dispatch:r})=>Jk(e,r),tZ=()=>({state:e,dispatch:r})=>rC(e,r),rZ=()=>({state:e,dispatch:r,tr:n})=>{try{const i=c3(e.doc,e.selection.$from.pos,-1);return i==null?!1:(n.join(i,2),r&&r(n),!0)}catch{return!1}},nZ=()=>({state:e,dispatch:r,tr:n})=>{try{const i=c3(e.doc,e.selection.$from.pos,1);return i==null?!1:(n.join(i,2),r&&r(n),!0)}catch{return!1}},iZ=()=>({state:e,dispatch:r})=>EY(e,r),oZ=()=>({state:e,dispatch:r})=>wY(e,r);function jC(){return typeof navigator<"u"?/Mac/.test(navigator.platform):!1}function sZ(e){const r=e.split(/-(?!$)/);let n=r[r.length-1];n==="Space"&&(n=" ");let i,o,s,a;for(let l=0;l({editor:r,view:n,tr:i,dispatch:o})=>{const s=sZ(e).split(/-(?!$)/),a=s.find(c=>!["Alt","Ctrl","Meta","Shift"].includes(c)),l=new KeyboardEvent("keydown",{key:a==="Space"?" ":a,altKey:s.includes("Alt"),ctrlKey:s.includes("Ctrl"),metaKey:s.includes("Meta"),shiftKey:s.includes("Shift"),bubbles:!0,cancelable:!0});return r.captureTransaction(()=>{n.someProp("handleKeyDown",c=>c(n,l))})?.steps.forEach(c=>{const d=c.map(i.mapping);d&&o&&i.maybeStep(d)}),!0};function ta(e,r,n={}){const{from:i,to:o,empty:s}=e.selection,a=r?fi(r,e.schema):null,l=[];e.doc.nodesBetween(i,o,(d,h)=>{if(d.isText)return;const p=Math.max(i,h),f=Math.min(o,h+d.nodeSize);l.push({node:d,from:p,to:f})});const u=o-i,c=l.filter(d=>a?a.name===d.node.type.name:!0).filter(d=>L2(d.node.attrs,n,{strict:!1}));return s?!!c.length:c.reduce((d,h)=>d+h.to-h.from,0)>=u}var lZ=(e,r={})=>({state:n,dispatch:i})=>{const o=fi(e,n.schema);return ta(n,o,r)?xY(n,i):!1},uZ=()=>({state:e,dispatch:r})=>sC(e,r),cZ=e=>({state:r,dispatch:n})=>{const i=fi(e,r.schema);return zY(i)(r,n)},dZ=()=>({state:e,dispatch:r})=>iC(e,r);function T3(e,r){return r.nodes[e]?"node":r.marks[e]?"mark":null}function N8(e,r){const n=typeof r=="string"?[r]:r;return Object.keys(e).reduce((i,o)=>(n.includes(o)||(i[o]=e[o]),i),{})}var hZ=(e,r)=>({tr:n,state:i,dispatch:o})=>{let s=null,a=null;const l=T3(typeof e=="string"?e:e.name,i.schema);if(!l)return!1;l==="node"&&(s=fi(e,i.schema)),l==="mark"&&(a=x0(e,i.schema));let u=!1;return n.selection.ranges.forEach(c=>{i.doc.nodesBetween(c.$from.pos,c.$to.pos,(d,h)=>{s&&s===d.type&&(u=!0,o&&n.setNodeMarkup(h,void 0,N8(d.attrs,r))),a&&d.marks.length&&d.marks.forEach(p=>{a===p.type&&(u=!0,o&&n.addMark(h,h+d.nodeSize,a.create(N8(p.attrs,r))))})})}),u},pZ=()=>({tr:e,dispatch:r})=>(r&&e.scrollIntoView(),!0),fZ=()=>({tr:e,dispatch:r})=>{if(r){const n=new Xo(e.doc);e.setSelection(n)}return!0},mZ=()=>({state:e,dispatch:r})=>eC(e,r),gZ=()=>({state:e,dispatch:r})=>nC(e,r),yZ=()=>({state:e,dispatch:r})=>NY(e,r),TZ=()=>({state:e,dispatch:r})=>MY(e,r),bZ=()=>({state:e,dispatch:r})=>OY(e,r);function rT(e,r,n={},i={}){return uf(e,r,{slice:!1,parseOptions:n,errorOnInvalidContent:i.errorOnInvalidContent})}var vZ=(e,{errorOnInvalidContent:r,emitUpdate:n=!0,parseOptions:i={}}={})=>({editor:o,tr:s,dispatch:a,commands:l})=>{const{doc:u}=s;if(i.preserveWhitespace!=="full"){const c=rT(e,o.schema,i,{errorOnInvalidContent:r??o.options.enableContentCheck});return a&&s.replaceWith(0,u.content.size,c).setMeta("preventUpdate",!n),!0}return a&&s.setMeta("preventUpdate",!n),l.insertContentAt({from:0,to:u.content.size},e,{parseOptions:i,errorOnInvalidContent:r??o.options.enableContentCheck})};function ov(e,r){const n=x0(r,e.schema),{from:i,to:o,empty:s}=e.selection,a=[];s?(e.storedMarks&&a.push(...e.storedMarks),a.push(...e.selection.$head.marks())):e.doc.nodesBetween(i,o,u=>{a.push(...u.marks)});const l=a.find(u=>u.type.name===n.name);return l?{...l.attrs}:{}}function sv(e,r){const n=new Zb(e);return r.forEach(i=>{i.steps.forEach(o=>{n.step(o)})}),n}function AZ(e){for(let r=0;r{r(i)&&n.push({node:i,pos:o})}),n}function GC(e,r,n){const i=[];return e.nodesBetween(r.from,r.to,(o,s)=>{n(o)&&i.push({node:o,pos:s})}),i}function qC(e,r){for(let n=e.depth;n>0;n-=1){const i=e.node(n);if(r(i))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:i}}}function b3(e){return r=>qC(r.$from,e)}function zt(e,r,n){return e.config[r]===void 0&&e.parent?zt(e.parent,r,n):typeof e.config[r]=="function"?e.config[r].bind({...n,parent:e.parent?zt(e.parent,r,n):null}):e.config[r]}function av(e){return e.map(r=>{const n={name:r.name,options:r.options,storage:r.storage},i=zt(r,"addExtensions",n);return i?[r,...av(i())]:r}).flat(10)}function lv(e,r){const n=cd.fromSchema(r).serializeFragment(e),i=document.implementation.createHTMLDocument().createElement("div");return i.appendChild(n),i.innerHTML}function WC(e){return typeof e=="function"}function Xr(e,r=void 0,...n){return WC(e)?r?e.bind(r)(...n):e(...n):e}function EZ(e={}){return Object.keys(e).length===0&&e.constructor===Object}function Fh(e){const r=e.filter(o=>o.type==="extension"),n=e.filter(o=>o.type==="node"),i=e.filter(o=>o.type==="mark");return{baseExtensions:r,nodeExtensions:n,markExtensions:i}}function KC(e){const r=[],{nodeExtensions:n,markExtensions:i}=Fh(e),o=[...n,...i],s={default:null,validate:void 0,rendered:!0,renderHTML:null,parseHTML:null,keepOnSplit:!0,isRequired:!1};return e.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage,extensions:o},u=zt(a,"addGlobalAttributes",l);u&&u().forEach(c=>{c.types.forEach(d=>{Object.entries(c.attributes).forEach(([h,p])=>{r.push({type:d,name:h,attribute:{...s,...p}})})})})}),o.forEach(a=>{const l={name:a.name,options:a.options,storage:a.storage},u=zt(a,"addAttributes",l);if(!u)return;const c=u();Object.entries(c).forEach(([d,h])=>{const p={...s,...h};typeof p?.default=="function"&&(p.default=p.default()),p?.isRequired&&p?.default===void 0&&delete p.default,r.push({type:a.name,name:d,attribute:p})})}),r}function gr(...e){return e.filter(r=>!!r).reduce((r,n)=>{const i={...r};return Object.entries(n).forEach(([o,s])=>{if(!i[o]){i[o]=s;return}if(o==="class"){const a=s?String(s).split(" "):[],l=i[o]?i[o].split(" "):[],u=a.filter(c=>!l.includes(c));i[o]=[...l,...u].join(" ")}else if(o==="style"){const a=s?s.split(";").map(c=>c.trim()).filter(Boolean):[],l=i[o]?i[o].split(";").map(c=>c.trim()).filter(Boolean):[],u=new Map;l.forEach(c=>{const[d,h]=c.split(":").map(p=>p.trim());u.set(d,h)}),a.forEach(c=>{const[d,h]=c.split(":").map(p=>p.trim());u.set(d,h)}),i[o]=Array.from(u.entries()).map(([c,d])=>`${c}: ${d}`).join("; ")}else i[o]=s}),i},{})}function cf(e,r){return r.filter(n=>n.type===e.type.name).filter(n=>n.attribute.rendered).map(n=>n.attribute.renderHTML?n.attribute.renderHTML(e.attrs)||{}:{[n.name]:e.attrs[n.name]}).reduce((n,i)=>gr(n,i),{})}function wZ(e){return typeof e!="string"?e:e.match(/^[+-]?(?:\d*\.)?\d+$/)?Number(e):e==="true"?!0:e==="false"?!1:e}function F8(e,r){return"style"in e?e:{...e,getAttrs:n=>{const i=e.getAttrs?e.getAttrs(n):e.attrs;if(i===!1)return!1;const o=r.reduce((s,a)=>{const l=a.attribute.parseHTML?a.attribute.parseHTML(n):wZ(n.getAttribute(a.name));return l==null?s:{...s,[a.name]:l}},{});return{...i,...o}}}}function O8(e){return Object.fromEntries(Object.entries(e).filter(([r,n])=>r==="attrs"&&EZ(n)?!1:n!=null))}function M8(e){var r,n;const i={};return!((r=e?.attribute)!=null&&r.isRequired)&&"default"in(e?.attribute||{})&&(i.default=e.attribute.default),((n=e?.attribute)==null?void 0:n.validate)!==void 0&&(i.validate=e.attribute.validate),[e.name,i]}function SZ(e,r){var n;const i=KC(e),{nodeExtensions:o,markExtensions:s}=Fh(e),a=(n=o.find(c=>zt(c,"topNode")))==null?void 0:n.name,l=Object.fromEntries(o.map(c=>{const d=i.filter(x=>x.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:r},p=e.reduce((x,k)=>{const R=zt(k,"extendNodeSchema",h);return{...x,...R?R(c):{}}},{}),f=O8({...p,content:Xr(zt(c,"content",h)),marks:Xr(zt(c,"marks",h)),group:Xr(zt(c,"group",h)),inline:Xr(zt(c,"inline",h)),atom:Xr(zt(c,"atom",h)),selectable:Xr(zt(c,"selectable",h)),draggable:Xr(zt(c,"draggable",h)),code:Xr(zt(c,"code",h)),whitespace:Xr(zt(c,"whitespace",h)),linebreakReplacement:Xr(zt(c,"linebreakReplacement",h)),defining:Xr(zt(c,"defining",h)),isolating:Xr(zt(c,"isolating",h)),attrs:Object.fromEntries(d.map(M8))}),m=Xr(zt(c,"parseHTML",h));m&&(f.parseDOM=m.map(x=>F8(x,d)));const v=zt(c,"renderHTML",h);v&&(f.toDOM=x=>v({node:x,HTMLAttributes:cf(x,d)}));const w=zt(c,"renderText",h);return w&&(f.toText=w),[c.name,f]})),u=Object.fromEntries(s.map(c=>{const d=i.filter(w=>w.type===c.name),h={name:c.name,options:c.options,storage:c.storage,editor:r},p=e.reduce((w,x)=>{const k=zt(x,"extendMarkSchema",h);return{...w,...k?k(c):{}}},{}),f=O8({...p,inclusive:Xr(zt(c,"inclusive",h)),excludes:Xr(zt(c,"excludes",h)),group:Xr(zt(c,"group",h)),spanning:Xr(zt(c,"spanning",h)),code:Xr(zt(c,"code",h)),attrs:Object.fromEntries(d.map(M8))}),m=Xr(zt(c,"parseHTML",h));m&&(f.parseDOM=m.map(w=>F8(w,d)));const v=zt(c,"renderHTML",h);return v&&(f.toDOM=w=>v({mark:w,HTMLAttributes:cf(w,d)})),[c.name,f]}));return new zb({topNode:a,nodes:l,marks:u})}function DZ(e){const r=e.filter((n,i)=>e.indexOf(n)!==i);return Array.from(new Set(r))}function z2(e){return e.sort((r,n)=>{const i=zt(r,"priority")||100,o=zt(n,"priority")||100;return i>o?-1:ii.name));return n.length&&console.warn(`[tiptap warn]: Duplicate extension names found: [${n.map(i=>`'${i}'`).join(", ")}]. This can lead to issues.`),r}function JC(e,r,n){const{from:i,to:o}=r,{blockSeparator:s=` `,textSerializers:a={}}=n||{};let l="";return e.nodesBetween(i,o,(u,c,d,h)=>{var p;u.isBlock&&c>i&&(l+=s);const f=a?.[u.type.name];if(f)return d&&(l+=f({node:u,pos:c,parent:d,index:h,range:r})),!1;u.isText&&(l+=(p=u?.text)==null?void 0:p.slice(Math.max(i,c)-c,o-c))}),l}function xZ(e,r){const n={from:0,to:e.content.size};return JC(e,n,r)}function XC(e){return Object.fromEntries(Object.entries(e.nodes).filter(([,r])=>r.spec.toText).map(([r,n])=>[r,n.spec.toText]))}function kZ(e,r){const n=fi(r,e.schema),{from:i,to:o}=e.selection,s=[];e.doc.nodesBetween(i,o,l=>{s.push(l)});const a=s.reverse().find(l=>l.type.name===n.name);return a?{...a.attrs}:{}}function e_(e,r){const n=T3(typeof r=="string"?r:r.name,e.schema);return n==="node"?kZ(e,r):n==="mark"?ov(e,r):{}}function CZ(e,r=JSON.stringify){const n={};return e.filter(i=>{const o=r(i);return Object.prototype.hasOwnProperty.call(n,o)?!1:n[o]=!0})}function _Z(e){const r=CZ(e);return r.length===1?r:r.filter((n,i)=>!r.filter((o,s)=>s!==i).some(o=>n.oldRange.from>=o.oldRange.from&&n.oldRange.to<=o.oldRange.to&&n.newRange.from>=o.newRange.from&&n.newRange.to<=o.newRange.to))}function uv(e){const{mapping:r,steps:n}=e,i=[];return r.maps.forEach((o,s)=>{const a=[];if(o.ranges.length)o.forEach((l,u)=>{a.push({from:l,to:u})});else{const{from:l,to:u}=n[s];if(l===void 0||u===void 0)return;a.push({from:l,to:u})}a.forEach(({from:l,to:u})=>{const c=r.slice(s).map(l,-1),d=r.slice(s).map(u),h=r.invert().map(c,-1),p=r.invert().map(d);i.push({oldRange:{from:h,to:p},newRange:{from:c,to:d}})})}),_Z(i)}function cv(e,r,n){const i=[];return e===r?n.resolve(e).marks().forEach(o=>{const s=n.resolve(e),a=y3(s,o.type);a&&i.push({mark:o,...a})}):n.nodesBetween(e,r,(o,s)=>{!o||o?.nodeSize===void 0||i.push(...o.marks.map(a=>({from:s,to:s+o.nodeSize,mark:a})))}),i}var NZ=(e,r,n,i=20)=>{const o=e.doc.resolve(n);let s=i,a=null;for(;s>0&&a===null;){const l=o.node(s);l?.type.name===r?a=l:s-=1}return[a,s]};function qm(e,r){return r.nodes[e]||r.marks[e]||null}function Kg(e,r,n){return Object.fromEntries(Object.entries(n).filter(([i])=>{const o=e.find(s=>s.type===r&&s.name===i);return o?o.attribute.keepOnSplit:!1}))}var FZ=(e,r=500)=>{let n="";const i=e.parentOffset;return e.parent.nodesBetween(Math.max(0,i-r),i,(o,s,a,l)=>{var u,c;const d=((c=(u=o.type.spec).toText)==null?void 0:c.call(u,{node:o,pos:s,parent:a,index:l}))||o.textContent||"%leaf%";n+=o.isAtom&&!o.isText?d:d.slice(0,Math.max(0,i-s))}),n};function Y2(e,r,n={}){const{empty:i,ranges:o}=e.selection,s=r?x0(r,e.schema):null;if(i)return!!(e.storedMarks||e.selection.$from.marks()).filter(d=>s?s.name===d.type.name:!0).find(d=>L2(d.attrs,n,{strict:!1}));let a=0;const l=[];if(o.forEach(({$from:d,$to:h})=>{const p=d.pos,f=h.pos;e.doc.nodesBetween(p,f,(m,v)=>{if(!m.isText&&!m.marks.length)return;const w=Math.max(p,v),x=Math.min(f,v+m.nodeSize),k=x-w;a+=k,l.push(...m.marks.map(R=>({mark:R,from:w,to:x})))})}),a===0)return!1;const u=l.filter(d=>s?s.name===d.mark.type.name:!0).filter(d=>L2(d.mark.attrs,n,{strict:!1})).reduce((d,h)=>d+h.to-h.from,0),c=l.filter(d=>s?d.mark.type!==s&&d.mark.type.excludes(s):!0).reduce((d,h)=>d+h.to-h.from,0);return(u>0?u+c:u)>=a}function t_(e,r,n={}){if(!r)return ta(e,null,n)||Y2(e,null,n);const i=T3(r,e.schema);return i==="node"?ta(e,r,n):i==="mark"?Y2(e,r,n):!1}var OZ=(e,r)=>{const{$from:n,$to:i,$anchor:o}=e.selection;if(r){const s=b3(l=>l.type.name===r)(e.selection);if(!s)return!1;const a=e.doc.resolve(s.pos+1);return o.pos+1===a.end()}return!(i.parentOffset{const{$from:r,$to:n}=e.selection;return!(r.parentOffset>0||r.pos!==n.pos)};function R8(e,r){return Array.isArray(r)?r.some(n=>(typeof n=="string"?n:n.name)===e.name):r}function B8(e,r){const{nodeExtensions:n}=Fh(r),i=n.find(a=>a.name===e);if(!i)return!1;const o={name:i.name,options:i.options,storage:i.storage},s=Xr(zt(i,"group",o));return typeof s!="string"?!1:s.split(" ").includes("list")}function v3(e,{checkChildren:r=!0,ignoreWhitespace:n=!1}={}){var i;if(n){if(e.type.name==="hardBreak")return!0;if(e.isText)return/^\s*$/m.test((i=e.text)!=null?i:"")}if(e.isText)return!e.text;if(e.isAtom||e.isLeaf)return!1;if(e.content.childCount===0)return!0;if(r){let o=!0;return e.content.forEach(s=>{o!==!1&&(v3(s,{ignoreWhitespace:n,checkChildren:r})||(o=!1))}),o}return!1}function r_(e){return e instanceof Ht}var dv=class n_{constructor(r){this.position=r}static fromJSON(r){return new n_(r.position)}toJSON(){return{position:this.position}}};function i_(e,r){const n=r.mapping.mapResult(e.position);return{position:new dv(n.pos),mapResult:n}}function RZ(e){return new dv(e)}function BZ(e,r,n){var i;const{selection:o}=r;let s=null;if($C(o)&&(s=o.$cursor),s){const l=(i=e.storedMarks)!=null?i:s.marks();return s.parent.type.allowsMarkType(n)&&(!!n.isInSet(l)||!l.some(u=>u.type.excludes(n)))}const{ranges:a}=o;return a.some(({$from:l,$to:u})=>{let c=l.depth===0?e.doc.inlineContent&&e.doc.type.allowsMarkType(n):!1;return e.doc.nodesBetween(l.pos,u.pos,(d,h,p)=>{if(c)return!1;if(d.isInline){const f=!p||p.type.allowsMarkType(n),m=!!n.isInSet(d.marks)||!d.marks.some(v=>v.type.excludes(n));c=f&&m}return!c}),c})}var IZ=(e,r={})=>({tr:n,state:i,dispatch:o})=>{const{selection:s}=n,{empty:a,ranges:l}=s,u=x0(e,i.schema);if(o)if(a){const c=ov(i,u);n.addStoredMark(u.create({...c,...r}))}else l.forEach(c=>{const d=c.$from.pos,h=c.$to.pos;i.doc.nodesBetween(d,h,(p,f)=>{const m=Math.max(f,d),v=Math.min(f+p.nodeSize,h);p.marks.find(w=>w.type===u)?p.marks.forEach(w=>{u===w.type&&n.addMark(m,v,u.create({...w.attrs,...r}))}):n.addMark(m,v,u.create(r))})});return BZ(i,n,u)},LZ=(e,r)=>({tr:n})=>(n.setMeta(e,r),!0),zZ=(e,r={})=>({state:n,dispatch:i,chain:o})=>{const s=fi(e,n.schema);let a;return n.selection.$anchor.sameParent(n.selection.$head)&&(a=n.selection.$anchor.parent.attrs),s.isTextblock?o().command(({commands:l})=>jA(s,{...a,...r})(n)?!0:l.clearNodes()).command(({state:l})=>jA(s,{...a,...r})(l,i)).run():(console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'),!1)},YZ=e=>({tr:r,dispatch:n})=>{if(n){const{doc:i}=r,o=Bc(e,0,i.content.size),s=Ht.create(i,o);r.setSelection(s)}return!0},HZ=(e,r)=>({tr:n,state:i,dispatch:o})=>{const{selection:s}=i;let a,l;return typeof r=="number"?(a=r,l=r):r&&"from"in r&&"to"in r?(a=r.from,l=r.to):(a=s.from,l=s.to),o&&n.doc.nodesBetween(a,l,(u,c)=>{u.isText||n.setNodeMarkup(c,void 0,{...u.attrs,dir:e})}),!0},PZ=e=>({tr:r,dispatch:n})=>{if(n){const{doc:i}=r,{from:o,to:s}=typeof e=="number"?{from:e,to:e}:e,a=Lt.atStart(i).from,l=Lt.atEnd(i).to,u=Bc(o,a,l),c=Bc(s,a,l),d=Lt.create(i,u,c);r.setSelection(d)}return!0},ZZ=e=>({state:r,dispatch:n})=>{const i=fi(e,r.schema);return PY(i)(r,n)};function I8(e,r){const n=e.storedMarks||e.selection.$to.parentOffset&&e.selection.$from.marks();if(n){const i=n.filter(o=>r?.includes(o.type.name));e.tr.ensureMarks(i)}}var $Z=({keepMarks:e=!0}={})=>({tr:r,state:n,dispatch:i,editor:o})=>{const{selection:s,doc:a}=r,{$from:l,$to:u}=s,c=o.extensionManager.attributes,d=Kg(c,l.node().type.name,l.node().attrs);if(s instanceof Ht&&s.node.isBlock)return!l.parentOffset||!d0(a,l.pos)?!1:(i&&(e&&I8(n,o.extensionManager.splittableMarks),r.split(l.pos).scrollIntoView()),!0);if(!l.parent.isBlock)return!1;const h=u.parentOffset===u.parent.content.size,p=l.depth===0?void 0:AZ(l.node(-1).contentMatchAt(l.indexAfter(-1)));let f=h&&p?[{type:p,attrs:d}]:void 0,m=d0(r.doc,r.mapping.map(l.pos),1,f);if(!f&&!m&&d0(r.doc,r.mapping.map(l.pos),1,p?[{type:p}]:void 0)&&(m=!0,f=p?[{type:p,attrs:d}]:void 0),i){if(m&&(s instanceof Lt&&r.deleteSelection(),r.split(r.mapping.map(l.pos),1,f),p&&!h&&!l.parentOffset&&l.parent.type!==p)){const v=r.mapping.map(l.before()),w=r.doc.resolve(v);l.node(-1).canReplaceWith(w.index(),w.index()+1,p)&&r.setNodeMarkup(r.mapping.map(l.before()),p)}e&&I8(n,o.extensionManager.splittableMarks),r.scrollIntoView()}return m},UZ=(e,r={})=>({tr:n,state:i,dispatch:o,editor:s})=>{var a;const l=fi(e,i.schema),{$from:u,$to:c}=i.selection,d=i.selection.node;if(d&&d.isBlock||u.depth<2||!u.sameParent(c))return!1;const h=u.node(-1);if(h.type!==l)return!1;const p=s.extensionManager.attributes;if(u.parent.content.size===0&&u.node(-1).childCount===u.indexAfter(-1)){if(u.depth===2||u.node(-3).type!==l||u.index(-2)!==u.node(-2).childCount-1)return!1;if(o){let x=ze.empty;const k=u.index(-1)?1:u.index(-2)?2:3;for(let ie=u.depth-k;ie>=u.depth-3;ie-=1)x=ze.from(u.node(ie).copy(x));const R=u.indexAfter(-1){if(W>-1)return!1;ie.isTextblock&&ie.content.size===0&&(W=ue+1)}),W>-1&&n.setSelection(Lt.near(n.doc.resolve(W))),n.scrollIntoView()}return!0}const f=c.pos===u.end()?h.contentMatchAt(0).defaultType:null,m={...Kg(p,h.type.name,h.attrs),...r},v={...Kg(p,u.node().type.name,u.node().attrs),...r};n.delete(u.pos,c.pos);const w=f?[{type:l,attrs:m},{type:f,attrs:v}]:[{type:l,attrs:m}];if(!d0(n.doc,u.pos,2))return!1;if(o){const{selection:x,storedMarks:k}=i,{splittableMarks:R}=s.extensionManager,O=k||x.$to.parentOffset&&x.$from.marks();if(n.split(u.pos,2,w).scrollIntoView(),!O||!o)return!0;const P=O.filter(V=>R.includes(V.type.name));n.ensureMarks(P)}return!0},j5=(e,r)=>{const n=b3(s=>s.type===r)(e.selection);if(!n)return!0;const i=e.doc.resolve(Math.max(0,n.pos-1)).before(n.depth);if(i===void 0)return!0;const o=e.doc.nodeAt(i);return n.node.type===o?.type&&Qu(e.doc,n.pos)&&e.join(n.pos),!0},G5=(e,r)=>{const n=b3(s=>s.type===r)(e.selection);if(!n)return!0;const i=e.doc.resolve(n.start).after(n.depth);if(i===void 0)return!0;const o=e.doc.nodeAt(i);return n.node.type===o?.type&&Qu(e.doc,i)&&e.join(i),!0},VZ=(e,r,n,i={})=>({editor:o,tr:s,state:a,dispatch:l,chain:u,commands:c,can:d})=>{const{extensions:h,splittableMarks:p}=o.extensionManager,f=fi(e,a.schema),m=fi(r,a.schema),{selection:v,storedMarks:w}=a,{$from:x,$to:k}=v,R=x.blockRange(k),O=w||v.$to.parentOffset&&v.$from.marks();if(!R)return!1;const P=b3(V=>B8(V.type.name,h))(v);if(R.depth>=1&&P&&R.depth-P.depth<=1){if(P.node.type===f)return c.liftListItem(m);if(B8(P.node.type.name,h)&&f.validContent(P.node.content)&&l)return u().command(()=>(s.setNodeMarkup(P.pos,f),!0)).command(()=>j5(s,f)).command(()=>G5(s,f)).run()}return!n||!O||!l?u().command(()=>d().wrapInList(f,i)?!0:c.clearNodes()).wrapInList(f,i).command(()=>j5(s,f)).command(()=>G5(s,f)).run():u().command(()=>{const V=d().wrapInList(f,i),W=O.filter(ie=>p.includes(ie.type.name));return s.ensureMarks(W),V?!0:c.clearNodes()}).wrapInList(f,i).command(()=>j5(s,f)).command(()=>G5(s,f)).run()},jZ=(e,r={},n={})=>({state:i,commands:o})=>{const{extendEmptyMarkRange:s=!1}=n,a=x0(e,i.schema);return Y2(i,a,r)?o.unsetMark(a,{extendEmptyMarkRange:s}):o.setMark(a,r)},GZ=(e,r,n={})=>({state:i,commands:o})=>{const s=fi(e,i.schema),a=fi(r,i.schema),l=ta(i,s,n);let u;return i.selection.$anchor.sameParent(i.selection.$head)&&(u=i.selection.$anchor.parent.attrs),l?o.setNode(a,u):o.setNode(s,{...u,...n})},qZ=(e,r={})=>({state:n,commands:i})=>{const o=fi(e,n.schema);return ta(n,o,r)?i.lift(o):i.wrapIn(o,r)},WZ=()=>({state:e,dispatch:r})=>{const n=e.plugins;for(let i=0;i=0;u-=1)a.step(l.steps[u].invert(l.docs[u]));if(s.text){const u=a.doc.resolve(s.from).marks();a.replaceWith(s.from,s.to,e.schema.text(s.text,u))}else a.delete(s.from,s.to)}return!0}}return!1},KZ=()=>({tr:e,dispatch:r})=>{const{selection:n}=e,{empty:i,ranges:o}=n;return i||r&&o.forEach(s=>{e.removeMark(s.$from.pos,s.$to.pos)}),!0},QZ=(e,r={})=>({tr:n,state:i,dispatch:o})=>{var s;const{extendEmptyMarkRange:a=!1}=r,{selection:l}=n,u=x0(e,i.schema),{$from:c,empty:d,ranges:h}=l;if(!o)return!0;if(d&&a){let{from:p,to:f}=l;const m=(s=c.marks().find(w=>w.type===u))==null?void 0:s.attrs,v=y3(c,u,m);v&&(p=v.from,f=v.to),n.removeMark(p,f,u)}else h.forEach(p=>{n.removeMark(p.$from.pos,p.$to.pos,u)});return n.removeStoredMark(u),!0},JZ=e=>({tr:r,state:n,dispatch:i})=>{const{selection:o}=n;let s,a;return typeof e=="number"?(s=e,a=e):e&&"from"in e&&"to"in e?(s=e.from,a=e.to):(s=o.from,a=o.to),i&&r.doc.nodesBetween(s,a,(l,u)=>{if(l.isText)return;const c={...l.attrs};delete c.dir,r.setNodeMarkup(u,void 0,c)}),!0},XZ=(e,r={})=>({tr:n,state:i,dispatch:o})=>{let s=null,a=null;const l=T3(typeof e=="string"?e:e.name,i.schema);if(!l)return!1;l==="node"&&(s=fi(e,i.schema)),l==="mark"&&(a=x0(e,i.schema));let u=!1;return n.selection.ranges.forEach(c=>{const d=c.$from.pos,h=c.$to.pos;let p,f,m,v;n.selection.empty?i.doc.nodesBetween(d,h,(w,x)=>{s&&s===w.type&&(u=!0,m=Math.max(x,d),v=Math.min(x+w.nodeSize,h),p=x,f=w)}):i.doc.nodesBetween(d,h,(w,x)=>{x=d&&x<=h&&(s&&s===w.type&&(u=!0,o&&n.setNodeMarkup(x,void 0,{...w.attrs,...r})),a&&w.marks.length&&w.marks.forEach(k=>{if(a===k.type&&(u=!0,o)){const R=Math.max(x,d),O=Math.min(x+w.nodeSize,h);n.addMark(R,O,a.create({...k.attrs,...r}))}}))}),f&&(p!==void 0&&o&&n.setNodeMarkup(p,void 0,{...f.attrs,...r}),a&&f.marks.length&&f.marks.forEach(w=>{a===w.type&&o&&n.addMark(m,v,a.create({...w.attrs,...r}))}))}),u},e$=(e,r={})=>({state:n,dispatch:i})=>{const o=fi(e,n.schema);return RY(o,r)(n,i)},t$=(e,r={})=>({state:n,dispatch:i})=>{const o=fi(e,n.schema);return BY(o,r)(n,i)},r$=class{constructor(){this.callbacks={}}on(e,r){return this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r),this}emit(e,...r){const n=this.callbacks[e];return n&&n.forEach(i=>i.apply(this,r)),this}off(e,r){const n=this.callbacks[e];return n&&(r?this.callbacks[e]=n.filter(i=>i!==r):delete this.callbacks[e]),this}once(e,r){const n=(...i)=>{this.off(e,n),r.apply(this,i)};return this.on(e,n)}removeAllListeners(){this.callbacks={}}},Xu=class{constructor(e){var r;this.find=e.find,this.handler=e.handler,this.undoable=(r=e.undoable)!=null?r:!0}},n$=(e,r)=>{if(iv(r))return r.exec(e);const n=r(e);if(!n)return null;const i=[n.text];return i.index=n.index,i.input=e,i.data=n.data,n.replaceWith&&(n.text.includes(n.replaceWith)||console.warn('[tiptap warn]: "inputRuleMatch.replaceWith" must be part of "inputRuleMatch.text".'),i.push(n.replaceWith)),i};function Wm(e){var r;const{editor:n,from:i,to:o,text:s,rules:a,plugin:l}=e,{view:u}=n;if(u.composing)return!1;const c=u.state.doc.resolve(i);if(c.parent.type.spec.code||(r=c.nodeBefore||c.nodeAfter)!=null&&r.marks.find(p=>p.type.spec.code))return!1;let d=!1;const h=FZ(c)+s;return a.forEach(p=>{if(d)return;const f=n$(h,p.find);if(!f)return;const m=u.state.tr,v=m3({state:u.state,transaction:m}),w={from:i-(f[0].length-s.length),to:o},{commands:x,chain:k,can:R}=new g3({editor:n,state:v});p.handler({state:v,range:w,match:f,commands:x,chain:k,can:R})===null||!m.steps.length||(p.undoable&&m.setMeta(l,{transform:m,from:i,to:o,text:s}),u.dispatch(m),d=!0)}),d}function i$(e){const{editor:r,rules:n}=e,i=new lr({state:{init(){return null},apply(o,s,a){const l=o.getMeta(i);if(l)return l;const u=o.getMeta("applyInputRules");return u&&setTimeout(()=>{let{text:c}=u;typeof c=="string"?c=c:c=lv(ze.from(c),a.schema);const{from:d}=u,h=d+c.length;Wm({editor:r,from:d,to:h,text:c,rules:n,plugin:i})}),o.selectionSet||o.docChanged?null:s}},props:{handleTextInput(o,s,a,l){return Wm({editor:r,from:s,to:a,text:l,rules:n,plugin:i})},handleDOMEvents:{compositionend:o=>(setTimeout(()=>{const{$cursor:s}=o.state.selection;s&&Wm({editor:r,from:s.pos,to:s.pos,text:"",rules:n,plugin:i})}),!1)},handleKeyDown(o,s){if(s.key!=="Enter")return!1;const{$cursor:a}=o.state.selection;return a?Wm({editor:r,from:a.pos,to:a.pos,text:` `,rules:n,plugin:i}):!1}},isInputRules:!0});return i}function o$(e){return Object.prototype.toString.call(e).slice(8,-1)}function Km(e){return o$(e)!=="Object"?!1:e.constructor===Object&&Object.getPrototypeOf(e)===Object.prototype}function o_(e,r){const n={...e};return Km(e)&&Km(r)&&Object.keys(r).forEach(i=>{Km(r[i])&&Km(e[i])?n[i]=o_(e[i],r[i]):n[i]=r[i]}),n}var hv=class{constructor(e={}){this.type="extendable",this.parent=null,this.child=null,this.name="",this.config={name:this.name},this.config={...this.config,...e},this.name=this.config.name}get options(){return{...Xr(zt(this,"addOptions",{name:this.name}))||{}}}get storage(){return{...Xr(zt(this,"addStorage",{name:this.name,options:this.options}))||{}}}configure(e={}){const r=this.extend({...this.config,addOptions:()=>o_(this.options,e)});return r.name=this.name,r.parent=this.parent,r}extend(e={}){const r=new this.constructor({...this.config,...e});return r.parent=this,this.child=r,r.name="name"in e?e.name:r.parent.name,r}},ec=class s_ extends hv{constructor(){super(...arguments),this.type="mark"}static create(r={}){const n=typeof r=="function"?r():r;return new s_(n)}static handleExit({editor:r,mark:n}){const{tr:i}=r.state,o=r.state.selection.$from;if(o.pos===o.end()){const s=o.marks();if(!s.find(l=>l?.type.name===n.name))return!1;const a=s.find(l=>l?.type.name===n.name);return a&&i.removeStoredMark(a),i.insertText(" ",o.pos),r.view.dispatch(i),!0}return!1}configure(r){return super.configure(r)}extend(r){const n=typeof r=="function"?r():r;return super.extend(n)}};function s$(e){return typeof e=="number"}var a$=class{constructor(e){this.find=e.find,this.handler=e.handler}},l$=(e,r,n)=>{if(iv(r))return[...e.matchAll(r)];const i=r(e,n);return i?i.map(o=>{const s=[o.text];return s.index=o.index,s.input=e,s.data=o.data,o.replaceWith&&(o.text.includes(o.replaceWith)||console.warn('[tiptap warn]: "pasteRuleMatch.replaceWith" must be part of "pasteRuleMatch.text".'),s.push(o.replaceWith)),s}):[]};function u$(e){const{editor:r,state:n,from:i,to:o,rule:s,pasteEvent:a,dropEvent:l}=e,{commands:u,chain:c,can:d}=new g3({editor:r,state:n}),h=[];return n.doc.nodesBetween(i,o,(p,f)=>{var m,v,w,x,k;if((v=(m=p.type)==null?void 0:m.spec)!=null&&v.code||!(p.isText||p.isTextblock||p.isInline))return;const R=(k=(x=(w=p.content)==null?void 0:w.size)!=null?x:p.nodeSize)!=null?k:0,O=Math.max(i,f),P=Math.min(o,f+R);if(O>=P)return;const V=p.isText?p.text||"":p.textBetween(O-f,P-f,void 0,"");l$(V,s.find,a).forEach(W=>{if(W.index===void 0)return;const ie=O+W.index+1,ue=ie+W[0].length,I={from:n.tr.mapping.map(ie),to:n.tr.mapping.map(ue)},ne=s.handler({state:n,range:I,match:W,commands:u,chain:c,can:d,pasteEvent:a,dropEvent:l});h.push(ne)})}),h.every(p=>p!==null)}var Qm=null,c$=e=>{var r;const n=new ClipboardEvent("paste",{clipboardData:new DataTransfer});return(r=n.clipboardData)==null||r.setData("text/html",e),n};function d$(e){const{editor:r,rules:n}=e;let i=null,o=!1,s=!1,a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,l;try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}const u=({state:c,from:d,to:h,rule:p,pasteEvt:f})=>{const m=c.tr,v=m3({state:c,transaction:m});if(!(!u$({editor:r,state:v,from:Math.max(d-1,0),to:h.b-1,rule:p,pasteEvent:f,dropEvent:l})||!m.steps.length)){try{l=typeof DragEvent<"u"?new DragEvent("drop"):null}catch{l=null}return a=typeof ClipboardEvent<"u"?new ClipboardEvent("paste"):null,m}};return n.map(c=>new lr({view(d){const h=f=>{var m;i=(m=d.dom.parentElement)!=null&&m.contains(f.target)?d.dom.parentElement:null,i&&(Qm=r)},p=()=>{Qm&&(Qm=null)};return window.addEventListener("dragstart",h),window.addEventListener("dragend",p),{destroy(){window.removeEventListener("dragstart",h),window.removeEventListener("dragend",p)}}},props:{handleDOMEvents:{drop:(d,h)=>{if(s=i===d.dom.parentElement,l=h,!s){const p=Qm;p?.isEditable&&setTimeout(()=>{const f=p.state.selection;f&&p.commands.deleteRange({from:f.from,to:f.to})},10)}return!1},paste:(d,h)=>{var p;const f=(p=h.clipboardData)==null?void 0:p.getData("text/html");return a=h,o=!!f?.includes("data-pm-slice"),!1}}},appendTransaction:(d,h,p)=>{const f=d[0],m=f.getMeta("uiEvent")==="paste"&&!o,v=f.getMeta("uiEvent")==="drop"&&!s,w=f.getMeta("applyPasteRules"),x=!!w;if(!m&&!v&&!x)return;if(x){let{text:O}=w;typeof O=="string"?O=O:O=lv(ze.from(O),p.schema);const{from:P}=w,V=P+O.length,W=c$(O);return u({rule:c,state:p,from:P,to:{b:V},pasteEvt:W})}const k=h.doc.content.findDiffStart(p.doc.content),R=h.doc.content.findDiffEnd(p.doc.content);if(!(!s$(k)||!R||k===R.b))return u({rule:c,state:p,from:k,to:R,pasteEvt:a})}}))}var Qg=class{constructor(e,r){this.splittableMarks=[],this.editor=r,this.baseExtensions=e,this.extensions=QC(e),this.schema=SZ(this.extensions,r),this.setupExtensions()}get commands(){return this.extensions.reduce((e,r)=>{const n={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:this.editor,type:qm(r.name,this.schema)},i=zt(r,"addCommands",n);return i?{...e,...i()}:e},{})}get plugins(){const{editor:e}=this;return z2([...this.extensions].reverse()).flatMap(r=>{const n={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:e,type:qm(r.name,this.schema)},i=[],o=zt(r,"addKeyboardShortcuts",n);let s={};if(r.type==="mark"&&zt(r,"exitable",n)&&(s.ArrowRight=()=>ec.handleExit({editor:e,mark:r})),o){const d=Object.fromEntries(Object.entries(o()).map(([h,p])=>[h,()=>p({editor:e})]));s={...s,...d}}const a=_P(s);i.push(a);const l=zt(r,"addInputRules",n);if(R8(r,e.options.enableInputRules)&&l){const d=l();if(d&&d.length){const h=i$({editor:e,rules:d}),p=Array.isArray(h)?h:[h];i.push(...p)}}const u=zt(r,"addPasteRules",n);if(R8(r,e.options.enablePasteRules)&&u){const d=u();if(d&&d.length){const h=d$({editor:e,rules:d});i.push(...h)}}const c=zt(r,"addProseMirrorPlugins",n);if(c){const d=c();i.push(...d)}return i})}get attributes(){return KC(this.extensions)}get nodeViews(){const{editor:e}=this,{nodeExtensions:r}=Fh(this.extensions);return Object.fromEntries(r.filter(n=>!!zt(n,"addNodeView")).map(n=>{const i=this.attributes.filter(u=>u.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:fi(n.name,this.schema)},s=zt(n,"addNodeView",o);if(!s)return[];const a=s();if(!a)return[];const l=(u,c,d,h,p)=>{const f=cf(u,i);return a({node:u,view:c,getPos:d,decorations:h,innerDecorations:p,editor:e,extension:n,HTMLAttributes:f})};return[n.name,l]}))}dispatchTransaction(e){const{editor:r}=this;return z2([...this.extensions].reverse()).reduceRight((n,i)=>{const o={name:i.name,options:i.options,storage:this.editor.extensionStorage[i.name],editor:r,type:qm(i.name,this.schema)},s=zt(i,"dispatchTransaction",o);return s?a=>{s.call(o,{transaction:a,next:n})}:n},e)}get markViews(){const{editor:e}=this,{markExtensions:r}=Fh(this.extensions);return Object.fromEntries(r.filter(n=>!!zt(n,"addMarkView")).map(n=>{const i=this.attributes.filter(l=>l.type===n.name),o={name:n.name,options:n.options,storage:this.editor.extensionStorage[n.name],editor:e,type:x0(n.name,this.schema)},s=zt(n,"addMarkView",o);if(!s)return[];const a=(l,u,c)=>{const d=cf(l,i);return s()({mark:l,view:u,inline:c,editor:e,extension:n,HTMLAttributes:d,updateAttributes:h=>{D$(l,e,h)}})};return[n.name,a]}))}setupExtensions(){const e=this.extensions;this.editor.extensionStorage=Object.fromEntries(e.map(r=>[r.name,r.storage])),e.forEach(r=>{var n;const i={name:r.name,options:r.options,storage:this.editor.extensionStorage[r.name],editor:this.editor,type:qm(r.name,this.schema)};r.type==="mark"&&((n=Xr(zt(r,"keepOnSplit",i)))==null||n)&&this.splittableMarks.push(r.name);const o=zt(r,"onBeforeCreate",i),s=zt(r,"onCreate",i),a=zt(r,"onUpdate",i),l=zt(r,"onSelectionUpdate",i),u=zt(r,"onTransaction",i),c=zt(r,"onFocus",i),d=zt(r,"onBlur",i),h=zt(r,"onDestroy",i);o&&this.editor.on("beforeCreate",o),s&&this.editor.on("create",s),a&&this.editor.on("update",a),l&&this.editor.on("selectionUpdate",l),u&&this.editor.on("transaction",u),c&&this.editor.on("focus",c),d&&this.editor.on("blur",d),h&&this.editor.on("destroy",h)})}};Qg.resolve=QC,Qg.sort=z2,Qg.flatten=av;var h$={};nv(h$,{ClipboardTextSerializer:()=>l_,Commands:()=>u_,Delete:()=>c_,Drop:()=>d_,Editable:()=>h_,FocusEvents:()=>f_,Keymap:()=>m_,Paste:()=>g_,Tabindex:()=>y_,TextDirection:()=>T_,focusEventsPluginKey:()=>p_});var xr=class a_ extends hv{constructor(){super(...arguments),this.type="extension"}static create(r={}){const n=typeof r=="function"?r():r;return new a_(n)}configure(r){return super.configure(r)}extend(r){const n=typeof r=="function"?r():r;return super.extend(n)}},l_=xr.create({name:"clipboardTextSerializer",addOptions(){return{blockSeparator:void 0}},addProseMirrorPlugins(){return[new lr({key:new hr("clipboardTextSerializer"),props:{clipboardTextSerializer:()=>{const{editor:e}=this,{state:r,schema:n}=e,{doc:i,selection:o}=r,{ranges:s}=o,a=Math.min(...s.map(c=>c.$from.pos)),l=Math.max(...s.map(c=>c.$to.pos)),u=XC(n);return JC(i,{from:a,to:l},{...this.options.blockSeparator!==void 0?{blockSeparator:this.options.blockSeparator}:{},textSerializers:u})}}})]}}),u_=xr.create({name:"commands",addCommands(){return{...PC}}}),c_=xr.create({name:"delete",onUpdate({transaction:e,appendedTransactions:r}){var n,i,o;const s=()=>{var a,l,u,c;if((c=(u=(l=(a=this.editor.options.coreExtensionOptions)==null?void 0:a.delete)==null?void 0:l.filterTransaction)==null?void 0:u.call(l,e))!=null?c:e.getMeta("y-sync$"))return;const d=sv(e.before,[e,...r]);uv(d).forEach(p=>{d.mapping.mapResult(p.oldRange.from).deletedAfter&&d.mapping.mapResult(p.oldRange.to).deletedBefore&&d.before.nodesBetween(p.oldRange.from,p.oldRange.to,(f,m)=>{const v=m+f.nodeSize-2,w=p.oldRange.from<=m&&v<=p.oldRange.to;this.editor.emit("delete",{type:"node",node:f,from:m,to:v,newFrom:d.mapping.map(m),newTo:d.mapping.map(v),deletedRange:p.oldRange,newRange:p.newRange,partial:!w,editor:this.editor,transaction:e,combinedTransform:d})})});const h=d.mapping;d.steps.forEach((p,f)=>{var m,v;if(p instanceof xa){const w=h.slice(f).map(p.from,-1),x=h.slice(f).map(p.to),k=h.invert().map(w,-1),R=h.invert().map(x),O=(m=d.doc.nodeAt(w-1))==null?void 0:m.marks.some(V=>V.eq(p.mark)),P=(v=d.doc.nodeAt(x))==null?void 0:v.marks.some(V=>V.eq(p.mark));this.editor.emit("delete",{type:"mark",mark:p.mark,from:p.from,to:p.to,deletedRange:{from:k,to:R},newRange:{from:w,to:x},partial:!!(P||O),editor:this.editor,transaction:e,combinedTransform:d})}})};(o=(i=(n=this.editor.options.coreExtensionOptions)==null?void 0:n.delete)==null?void 0:i.async)==null||o?setTimeout(s,0):s()}}),d_=xr.create({name:"drop",addProseMirrorPlugins(){return[new lr({key:new hr("tiptapDrop"),props:{handleDrop:(e,r,n,i)=>{this.editor.emit("drop",{editor:this.editor,event:r,slice:n,moved:i})}}})]}}),h_=xr.create({name:"editable",addProseMirrorPlugins(){return[new lr({key:new hr("editable"),props:{editable:()=>this.editor.options.editable}})]}}),p_=new hr("focusEvents"),f_=xr.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:e}=this;return[new lr({key:p_,props:{handleDOMEvents:{focus:(r,n)=>{e.isFocused=!0;const i=e.state.tr.setMeta("focus",{event:n}).setMeta("addToHistory",!1);return r.dispatch(i),!1},blur:(r,n)=>{e.isFocused=!1;const i=e.state.tr.setMeta("blur",{event:n}).setMeta("addToHistory",!1);return r.dispatch(i),!1}}}})]}}),m_=xr.create({name:"keymap",addKeyboardShortcuts(){const e=()=>this.editor.commands.first(({commands:s})=>[()=>s.undoInputRule(),()=>s.command(({tr:a})=>{const{selection:l,doc:u}=a,{empty:c,$anchor:d}=l,{pos:h,parent:p}=d,f=d.parent.isTextblock&&h>0?a.doc.resolve(h-1):d,m=f.parent.type.spec.isolating,v=d.pos-d.parentOffset,w=m&&f.parent.childCount===1?v===d.pos:rr.atStart(u).from===h;return!c||!p.type.isTextblock||p.textContent.length||!w||w&&d.parent.type.name==="paragraph"?!1:s.clearNodes()}),()=>s.deleteSelection(),()=>s.joinBackward(),()=>s.selectNodeBackward()]),r=()=>this.editor.commands.first(({commands:s})=>[()=>s.deleteSelection(),()=>s.deleteCurrentNode(),()=>s.joinForward(),()=>s.selectNodeForward()]),n={Enter:()=>this.editor.commands.first(({commands:s})=>[()=>s.newlineInCode(),()=>s.createParagraphNear(),()=>s.liftEmptyBlock(),()=>s.splitBlock()]),"Mod-Enter":()=>this.editor.commands.exitCode(),Backspace:e,"Mod-Backspace":e,"Shift-Backspace":e,Delete:r,"Mod-Delete":r,"Mod-a":()=>this.editor.commands.selectAll()},i={...n},o={...n,"Ctrl-h":e,"Alt-Backspace":e,"Ctrl-d":r,"Ctrl-Alt-Backspace":r,"Alt-Delete":r,"Alt-d":r,"Ctrl-a":()=>this.editor.commands.selectTextblockStart(),"Ctrl-e":()=>this.editor.commands.selectTextblockEnd()};return lf()||jC()?o:i},addProseMirrorPlugins(){return[new lr({key:new hr("clearDocument"),appendTransaction:(e,r,n)=>{if(e.some(f=>f.getMeta("composition")))return;const i=e.some(f=>f.docChanged)&&!r.doc.eq(n.doc),o=e.some(f=>f.getMeta("preventClearDocument"));if(!i||o)return;const{empty:s,from:a,to:l}=r.selection,u=rr.atStart(r.doc).from,c=rr.atEnd(r.doc).to;if(s||!(a===u&&l===c)||!v3(n.doc))return;const d=n.tr,h=m3({state:n,transaction:d}),{commands:p}=new g3({editor:this.editor,state:h});if(p.clearNodes(),!!d.steps.length)return d}})]}}),g_=xr.create({name:"paste",addProseMirrorPlugins(){return[new lr({key:new hr("tiptapPaste"),props:{handlePaste:(e,r,n)=>{this.editor.emit("paste",{editor:this.editor,event:r,slice:n})}}})]}}),y_=xr.create({name:"tabindex",addProseMirrorPlugins(){return[new lr({key:new hr("tabindex"),props:{attributes:()=>this.editor.isEditable?{tabindex:"0"}:{}}})]}}),T_=xr.create({name:"textDirection",addOptions(){return{direction:void 0}},addGlobalAttributes(){if(!this.options.direction)return[];const{nodeExtensions:e}=Fh(this.extensions);return[{types:e.filter(r=>r.name!=="text").map(r=>r.name),attributes:{dir:{default:this.options.direction,parseHTML:r=>{const n=r.getAttribute("dir");return n&&(n==="ltr"||n==="rtl"||n==="auto")?n:this.options.direction},renderHTML:r=>r.dir?{dir:r.dir}:{}}}}]},addProseMirrorPlugins(){return[new lr({key:new hr("textDirection"),props:{attributes:()=>{const e=this.options.direction;return e?{dir:e}:{}}}})]}}),p$=class Qd{constructor(r,n,i=!1,o=null){this.currentNode=null,this.actualDepth=null,this.isBlock=i,this.resolvedPos=r,this.editor=n,this.currentNode=o}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 r;return(r=this.actualDepth)!=null?r:this.resolvedPos.depth}get pos(){return this.resolvedPos.pos}get content(){return this.node.content}set content(r){let n=this.from,i=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}n=this.from+1,i=this.to-1}this.editor.commands.insertContentAt({from:n,to:i},r)}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 r=this.resolvedPos.start(this.resolvedPos.depth-1),n=this.resolvedPos.doc.resolve(r);return new Qd(n,this.editor)}get before(){let r=this.resolvedPos.doc.resolve(this.from-(this.isBlock?1:2));return r.depth!==this.depth&&(r=this.resolvedPos.doc.resolve(this.from-3)),new Qd(r,this.editor)}get after(){let r=this.resolvedPos.doc.resolve(this.to+(this.isBlock?2:1));return r.depth!==this.depth&&(r=this.resolvedPos.doc.resolve(this.to+3)),new Qd(r,this.editor)}get children(){const r=[];return this.node.content.forEach((n,i)=>{const o=n.isBlock&&!n.isTextblock,s=n.isAtom&&!n.isText,a=this.pos+i+(s?0:1);if(a<0||a>this.resolvedPos.doc.nodeSize-2)return;const l=this.resolvedPos.doc.resolve(a);if(!o&&l.depth<=this.depth)return;const u=new Qd(l,this.editor,o,o?n:null);o&&(u.actualDepth=this.depth+1),r.push(new Qd(l,this.editor,o,o?n:null))}),r}get firstChild(){return this.children[0]||null}get lastChild(){const r=this.children;return r[r.length-1]||null}closest(r,n={}){let i=null,o=this.parent;for(;o&&!i;){if(o.node.type.name===r)if(Object.keys(n).length>0){const s=o.node.attrs,a=Object.keys(n);for(let l=0;l{i&&o.length>0||(a.node.type.name===r&&s.every(l=>n[l]===a.node.attrs[l])&&o.push(a),!(i&&o.length>0)&&(o=o.concat(a.querySelectorAll(r,n,i))))}),o}setAttribute(r){const{tr:n}=this.editor.state;n.setNodeMarkup(this.from,void 0,{...this.node.attrs,...r}),this.editor.view.dispatch(n)}},f$=`.ProseMirror { position: relative; } .ProseMirror { word-wrap: break-word; white-space: pre-wrap; white-space: break-spaces; -webkit-font-variant-ligatures: none; font-variant-ligatures: none; font-feature-settings: "liga" 0; /* the above doesn't seem to work in Edge */ } .ProseMirror [contenteditable="false"] { white-space: normal; } .ProseMirror [contenteditable="false"] [contenteditable="true"] { white-space: pre-wrap; } .ProseMirror pre { white-space: pre-wrap; } img.ProseMirror-separator { display: inline !important; border: none !important; margin: 0 !important; width: 0 !important; height: 0 !important; } .ProseMirror-gapcursor { display: none; pointer-events: none; position: absolute; margin: 0; } .ProseMirror-gapcursor:after { content: ""; display: block; position: absolute; top: -2px; width: 20px; border-top: 1px solid black; animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite; } @keyframes ProseMirror-cursor-blink { to { visibility: hidden; } } .ProseMirror-hideselection *::selection { background: transparent; } .ProseMirror-hideselection *::-moz-selection { background: transparent; } .ProseMirror-hideselection * { caret-color: transparent; } .ProseMirror-focused .ProseMirror-gapcursor { display: block; }`;function m$(e,r,n){const i=document.querySelector("style[data-tiptap-style]");if(i!==null)return i;const o=document.createElement("style");return r&&o.setAttribute("nonce",r),o.setAttribute("data-tiptap-style",""),o.innerHTML=e,document.getElementsByTagName("head")[0].appendChild(o),o}var w9e=class extends r${constructor(e={}){super(),this.css=null,this.className="tiptap",this.editorView=null,this.isFocused=!1,this.isInitialized=!1,this.extensionStorage={},this.instanceId=Math.random().toString(36).slice(2,9),this.options={element:typeof document<"u"?document.createElement("div"):null,content:"",injectCSS:!0,injectNonce:void 0,extensions:[],autofocus:!1,editable:!0,textDirection:void 0,editorProps:{},parseOptions:{},coreExtensionOptions:{},enableInputRules:!0,enablePasteRules:!0,enableCoreExtensions:!0,enableContentCheck:!1,emitContentError:!1,onBeforeCreate:()=>null,onCreate:()=>null,onMount:()=>null,onUnmount:()=>null,onUpdate:()=>null,onSelectionUpdate:()=>null,onTransaction:()=>null,onFocus:()=>null,onBlur:()=>null,onDestroy:()=>null,onContentError:({error:i})=>{throw i},onPaste:()=>null,onDrop:()=>null,onDelete:()=>null,enableExtensionDispatchTransaction:!0},this.isCapturingTransaction=!1,this.capturedTransaction=null,this.utils={getUpdatedPosition:i_,createMappablePosition:RZ},this.setOptions(e),this.createExtensionManager(),this.createCommandManager(),this.createSchema(),this.on("beforeCreate",this.options.onBeforeCreate),this.emit("beforeCreate",{editor:this}),this.on("mount",this.options.onMount),this.on("unmount",this.options.onUnmount),this.on("contentError",this.options.onContentError),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),this.on("drop",({event:i,slice:o,moved:s})=>this.options.onDrop(i,o,s)),this.on("paste",({event:i,slice:o})=>this.options.onPaste(i,o)),this.on("delete",this.options.onDelete);const r=this.createDoc(),n=UC(r,this.options.autofocus);this.editorState=sh.create({doc:r,schema:this.schema,selection:n||void 0}),this.options.element&&this.mount(this.options.element)}mount(e){if(typeof document>"u")throw new Error("[tiptap error]: The editor cannot be mounted because there is no 'document' defined in this environment.");this.createView(e),this.emit("mount",{editor:this}),this.css&&!document.head.contains(this.css)&&document.head.appendChild(this.css),window.setTimeout(()=>{this.isDestroyed||(this.options.autofocus!==!1&&this.options.autofocus!==null&&this.commands.focus(this.options.autofocus),this.emit("create",{editor:this}),this.isInitialized=!0)},0)}unmount(){if(this.editorView){const e=this.editorView.dom;e?.editor&&delete e.editor,this.editorView.destroy()}if(this.editorView=null,this.isInitialized=!1,this.css&&!document.querySelectorAll(`.${this.className}`).length)try{typeof this.css.remove=="function"?this.css.remove():this.css.parentNode&&this.css.parentNode.removeChild(this.css)}catch(e){console.warn("Failed to remove CSS element:",e)}this.css=null,this.emit("unmount",{editor:this})}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&&typeof document<"u"&&(this.css=m$(f$,this.options.injectNonce))}setOptions(e={}){this.options={...this.options,...e},!(!this.editorView||!this.state||this.isDestroyed)&&(this.options.editorProps&&this.view.setProps(this.options.editorProps),this.view.updateState(this.state))}setEditable(e,r=!0){this.setOptions({editable:e}),r&&this.emit("update",{editor:this,transaction:this.state.tr,appendedTransactions:[]})}get isEditable(){return this.options.editable&&this.view&&this.view.editable}get view(){return this.editorView?this.editorView:new Proxy({state:this.editorState,updateState:e=>{this.editorState=e},dispatch:e=>{this.dispatchTransaction(e)},composing:!1,dragging:null,editable:!0,isDestroyed:!1},{get:(e,r)=>{if(this.editorView)return this.editorView[r];if(r==="state")return this.editorState;if(r in e)return Reflect.get(e,r);throw new Error(`[tiptap error]: The editor view is not available. Cannot access view['${r}']. The editor may not be mounted yet.`)}})}get state(){return this.editorView&&(this.editorState=this.view.state),this.editorState}registerPlugin(e,r){const n=WC(r)?r(e,[...this.state.plugins]):[...this.state.plugins,e],i=this.state.reconfigure({plugins:n});return this.view.updateState(i),i}unregisterPlugin(e){if(this.isDestroyed)return;const r=this.state.plugins;let n=r;if([].concat(e).forEach(o=>{const s=typeof o=="string"?`${o}$`:o.key;n=n.filter(a=>!a.key.startsWith(s))}),r.length===n.length)return;const i=this.state.reconfigure({plugins:n});return this.view.updateState(i),i}createExtensionManager(){var e,r;const n=[...this.options.enableCoreExtensions?[h_,l_.configure({blockSeparator:(r=(e=this.options.coreExtensionOptions)==null?void 0:e.clipboardTextSerializer)==null?void 0:r.blockSeparator}),u_,f_,m_,y_,d_,g_,c_,T_.configure({direction:this.options.textDirection})].filter(i=>typeof this.options.enableCoreExtensions=="object"?this.options.enableCoreExtensions[i.name]!==!1:!0):[],...this.options.extensions].filter(i=>["extension","node","mark"].includes(i?.type));this.extensionManager=new Qg(n,this)}createCommandManager(){this.commandManager=new g3({editor:this})}createSchema(){this.schema=this.extensionManager.schema}createDoc(){let e;try{e=rT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:this.options.enableContentCheck})}catch(r){if(!(r instanceof Error)||!["[tiptap error]: Invalid JSON content","[tiptap error]: Invalid HTML content"].includes(r.message))throw r;this.emit("contentError",{editor:this,error:r,disableCollaboration:()=>{"collaboration"in this.storage&&typeof this.storage.collaboration=="object"&&this.storage.collaboration&&(this.storage.collaboration.isDisabled=!0),this.options.extensions=this.options.extensions.filter(n=>n.name!=="collaboration"),this.createExtensionManager()}}),e=rT(this.options.content,this.schema,this.options.parseOptions,{errorOnInvalidContent:!1})}return e}createView(e){const{editorProps:r,enableExtensionDispatchTransaction:n}=this.options,i=r.dispatchTransaction||this.dispatchTransaction.bind(this),o=n?this.extensionManager.dispatchTransaction(i):i;this.editorView=new HC(e,{...r,attributes:{role:"textbox",...r?.attributes},dispatchTransaction:o,state:this.editorState,markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews});const s=this.state.reconfigure({plugins:this.extensionManager.plugins});this.view.updateState(s),this.prependClass(),this.injectCSS();const a=this.view.dom;a.editor=this}createNodeViews(){this.view.isDestroyed||this.view.setProps({markViews:this.extensionManager.markViews,nodeViews:this.extensionManager.nodeViews})}prependClass(){this.view.dom.className=`${this.className} ${this.view.dom.className}`}captureTransaction(e){this.isCapturingTransaction=!0,e(),this.isCapturingTransaction=!1;const r=this.capturedTransaction;return this.capturedTransaction=null,r}dispatchTransaction(e){if(this.view.isDestroyed)return;if(this.isCapturingTransaction){if(!this.capturedTransaction){this.capturedTransaction=e;return}e.steps.forEach(c=>{var d;return(d=this.capturedTransaction)==null?void 0:d.step(c)});return}const{state:r,transactions:n}=this.state.applyTransaction(e),i=!this.state.selection.eq(r.selection),o=n.includes(e),s=this.state;if(this.emit("beforeTransaction",{editor:this,transaction:e,nextState:r}),!o)return;this.view.updateState(r),this.emit("transaction",{editor:this,transaction:e,appendedTransactions:n.slice(1)}),i&&this.emit("selectionUpdate",{editor:this,transaction:e});const a=n.findLast(c=>c.getMeta("focus")||c.getMeta("blur")),l=a?.getMeta("focus"),u=a?.getMeta("blur");l&&this.emit("focus",{editor:this,event:l.event,transaction:a}),u&&this.emit("blur",{editor:this,event:u.event,transaction:a}),!(e.getMeta("preventUpdate")||!n.some(c=>c.docChanged)||s.doc.eq(r.doc))&&this.emit("update",{editor:this,transaction:e,appendedTransactions:n.slice(1)})}getAttributes(e){return e_(this.state,e)}isActive(e,r){const n=typeof e=="string"?e:null,i=typeof e=="string"?r:e;return t_(this.state,n,i)}getJSON(){return this.state.doc.toJSON()}getHTML(){return lv(this.state.doc.content,this.schema)}getText(e){const{blockSeparator:r=` `,textSerializers:n={}}=e||{};return xZ(this.state.doc,{blockSeparator:r,textSerializers:{...XC(this.schema),...n}})}get isEmpty(){return v3(this.state.doc)}destroy(){this.emit("destroy"),this.unmount(),this.removeAllListeners()}get isDestroyed(){var e,r;return(r=(e=this.editorView)==null?void 0:e.isDestroyed)!=null?r:!0}$node(e,r){var n;return((n=this.$doc)==null?void 0:n.querySelector(e,r))||null}$nodes(e,r){var n;return((n=this.$doc)==null?void 0:n.querySelectorAll(e,r))||null}$pos(e){const r=this.state.doc.resolve(e);return new p$(r,this)}get $doc(){return this.$pos(0)}};function g0(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i})=>{const o=Xr(e.getAttributes,void 0,i);if(o===!1||o===null)return null;const{tr:s}=r,a=i[i.length-1],l=i[0];if(a){const u=l.search(/\S/),c=n.from+l.indexOf(a),d=c+a.length;if(cv(n.from,n.to,r.doc).filter(p=>p.mark.type.excluded.find(f=>f===e.type&&f!==p.mark.type)).filter(p=>p.to>c).length)return null;dn.from&&s.delete(n.from+u,c);const h=n.from+u+a.length;s.addMark(n.from+u,h,e.type.create(o||{})),s.removeStoredMark(e.type)}},undoable:e.undoable})}function b_(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i})=>{const o=Xr(e.getAttributes,void 0,i)||{},{tr:s}=r,a=n.from;let l=n.to;const u=e.type.create(o);if(i[1]){const c=i[0].lastIndexOf(i[1]);let d=a+c;d>l?d=l:l=d+i[1].length;const h=i[0][i[0].length-1];s.insertText(h,a+i[0].length-1),s.replaceWith(d,l,u)}else if(i[0]){const c=e.type.isInline?a:a-1;s.insert(c,e.type.create(o)).delete(s.mapping.map(a),s.mapping.map(l))}s.scrollIntoView()},undoable:e.undoable})}function iT(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i})=>{const o=r.doc.resolve(n.from),s=Xr(e.getAttributes,void 0,i)||{};if(!o.node(-1).canReplaceWith(o.index(-1),o.indexAfter(-1),e.type))return null;r.tr.delete(n.from,n.to).setBlockType(n.from,n.from,e.type,s)},undoable:e.undoable})}function Vr(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i})=>{let o=e.replace,s=n.from;const a=n.to;if(i[1]){const l=i[0].lastIndexOf(i[1]);o+=i[0].slice(l+i[1].length),s+=l;const u=s-a;u>0&&(o=i[0].slice(l-u,l)+o,s=a)}r.tr.insertText(o,s,a)},undoable:e.undoable})}function Hu(e){return new Xu({find:e.find,handler:({state:r,range:n,match:i,chain:o})=>{const s=Xr(e.getAttributes,void 0,i)||{},a=r.tr.delete(n.from,n.to),l=a.doc.resolve(n.from).blockRange(),u=l&&Pb(l,e.type,s);if(!u)return null;if(a.wrap(l,u),e.keepMarks&&e.editor){const{selection:d,storedMarks:h}=r,{splittableMarks:p}=e.editor.extensionManager,f=h||d.$to.parentOffset&&d.$from.marks();if(f){const m=f.filter(v=>p.includes(v.type.name));a.ensureMarks(m)}}if(e.keepAttributes){const d=e.type.name==="bulletList"||e.type.name==="orderedList"?"listItem":"taskList";o().updateAttributes(d,s).run()}const c=a.doc.resolve(n.from-1).nodeBefore;c&&c.type===e.type&&Qu(a.doc,n.from-1)&&(!e.joinPredicate||e.joinPredicate(i,c))&&a.join(n.from-1)},undoable:e.undoable})}var g$=e=>"touches"in e,y$=class{constructor(e){this.directions=["bottom-left","bottom-right","top-left","top-right"],this.minSize={height:8,width:8},this.preserveAspectRatio=!1,this.classNames={container:"",wrapper:"",handle:"",resizing:""},this.initialWidth=0,this.initialHeight=0,this.aspectRatio=1,this.isResizing=!1,this.activeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.isShiftKeyPressed=!1,this.lastEditableState=void 0,this.handleMap=new Map,this.handleMouseMove=l=>{if(!this.isResizing||!this.activeHandle)return;const u=l.clientX-this.startX,c=l.clientY-this.startY;this.handleResize(u,c)},this.handleTouchMove=l=>{if(!this.isResizing||!this.activeHandle)return;const u=l.touches[0];if(!u)return;const c=u.clientX-this.startX,d=u.clientY-this.startY;this.handleResize(c,d)},this.handleMouseUp=()=>{if(!this.isResizing)return;const l=this.element.offsetWidth,u=this.element.offsetHeight;this.onCommit(l,u),this.isResizing=!1,this.activeHandle=null,this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp)},this.handleKeyDown=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=!0)},this.handleKeyUp=l=>{l.key==="Shift"&&(this.isShiftKeyPressed=!1)};var r,n,i,o,s,a;this.node=e.node,this.editor=e.editor,this.element=e.element,this.contentElement=e.contentElement,this.getPos=e.getPos,this.onResize=e.onResize,this.onCommit=e.onCommit,this.onUpdate=e.onUpdate,(r=e.options)!=null&&r.min&&(this.minSize={...this.minSize,...e.options.min}),(n=e.options)!=null&&n.max&&(this.maxSize=e.options.max),(i=e?.options)!=null&&i.directions&&(this.directions=e.options.directions),(o=e.options)!=null&&o.preserveAspectRatio&&(this.preserveAspectRatio=e.options.preserveAspectRatio),(s=e.options)!=null&&s.className&&(this.classNames={container:e.options.className.container||"",wrapper:e.options.className.wrapper||"",handle:e.options.className.handle||"",resizing:e.options.className.resizing||""}),(a=e.options)!=null&&a.createCustomHandle&&(this.createCustomHandle=e.options.createCustomHandle),this.wrapper=this.createWrapper(),this.container=this.createContainer(),this.applyInitialSize(),this.attachHandles(),this.editor.on("update",this.handleEditorUpdate.bind(this))}get dom(){return this.container}get contentDOM(){return this.contentElement}handleEditorUpdate(){const e=this.editor.isEditable;e!==this.lastEditableState&&(this.lastEditableState=e,e?e&&this.handleMap.size===0&&this.attachHandles():this.removeHandles())}update(e,r,n){return e.type!==this.node.type?!1:(this.node=e,this.onUpdate?this.onUpdate(e,r,n):!0)}destroy(){this.isResizing&&(this.container.dataset.resizeState="false",this.classNames.resizing&&this.container.classList.remove(this.classNames.resizing),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),document.removeEventListener("keydown",this.handleKeyDown),document.removeEventListener("keyup",this.handleKeyUp),this.isResizing=!1,this.activeHandle=null),this.editor.off("update",this.handleEditorUpdate.bind(this)),this.container.remove()}createContainer(){const e=document.createElement("div");return e.dataset.resizeContainer="",e.dataset.node=this.node.type.name,e.style.display="flex",this.classNames.container&&(e.className=this.classNames.container),e.appendChild(this.wrapper),e}createWrapper(){const e=document.createElement("div");return e.style.position="relative",e.style.display="block",e.dataset.resizeWrapper="",this.classNames.wrapper&&(e.className=this.classNames.wrapper),e.appendChild(this.element),e}createHandle(e){const r=document.createElement("div");return r.dataset.resizeHandle=e,r.style.position="absolute",this.classNames.handle&&(r.className=this.classNames.handle),r}positionHandle(e,r){const n=r.includes("top"),i=r.includes("bottom"),o=r.includes("left"),s=r.includes("right");n&&(e.style.top="0"),i&&(e.style.bottom="0"),o&&(e.style.left="0"),s&&(e.style.right="0"),(r==="top"||r==="bottom")&&(e.style.left="0",e.style.right="0"),(r==="left"||r==="right")&&(e.style.top="0",e.style.bottom="0")}attachHandles(){this.directions.forEach(e=>{let r;this.createCustomHandle?r=this.createCustomHandle(e):r=this.createHandle(e),r instanceof HTMLElement||(console.warn(`[ResizableNodeView] createCustomHandle("${e}") did not return an HTMLElement. Falling back to default handle.`),r=this.createHandle(e)),this.createCustomHandle||this.positionHandle(r,e),r.addEventListener("mousedown",n=>this.handleResizeStart(n,e)),r.addEventListener("touchstart",n=>this.handleResizeStart(n,e)),this.handleMap.set(e,r),this.wrapper.appendChild(r)})}removeHandles(){this.handleMap.forEach(e=>e.remove()),this.handleMap.clear()}applyInitialSize(){const e=this.node.attrs.width,r=this.node.attrs.height;e?(this.element.style.width=`${e}px`,this.initialWidth=e):this.initialWidth=this.element.offsetWidth,r?(this.element.style.height=`${r}px`,this.initialHeight=r):this.initialHeight=this.element.offsetHeight,this.initialWidth>0&&this.initialHeight>0&&(this.aspectRatio=this.initialWidth/this.initialHeight)}handleResizeStart(e,r){e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.activeHandle=r,g$(e)?(this.startX=e.touches[0].clientX,this.startY=e.touches[0].clientY):(this.startX=e.clientX,this.startY=e.clientY),this.startWidth=this.element.offsetWidth,this.startHeight=this.element.offsetHeight,this.startWidth>0&&this.startHeight>0&&(this.aspectRatio=this.startWidth/this.startHeight),this.getPos(),this.container.dataset.resizeState="true",this.classNames.resizing&&this.container.classList.add(this.classNames.resizing),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("touchmove",this.handleTouchMove),document.addEventListener("mouseup",this.handleMouseUp),document.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keyup",this.handleKeyUp)}handleResize(e,r){if(!this.activeHandle)return;const n=this.preserveAspectRatio||this.isShiftKeyPressed,{width:i,height:o}=this.calculateNewDimensions(this.activeHandle,e,r),s=this.applyConstraints(i,o,n);this.element.style.width=`${s.width}px`,this.element.style.height=`${s.height}px`,this.onResize&&this.onResize(s.width,s.height)}calculateNewDimensions(e,r,n){let i=this.startWidth,o=this.startHeight;const s=e.includes("right"),a=e.includes("left"),l=e.includes("bottom"),u=e.includes("top");return s?i=this.startWidth+r:a&&(i=this.startWidth-r),l?o=this.startHeight+n:u&&(o=this.startHeight-n),(e==="right"||e==="left")&&(i=this.startWidth+(s?r:-r)),(e==="top"||e==="bottom")&&(o=this.startHeight+(l?n:-n)),this.preserveAspectRatio||this.isShiftKeyPressed?this.applyAspectRatio(i,o,e):{width:i,height:o}}applyConstraints(e,r,n){var i,o,s,a;if(!n){let c=Math.max(this.minSize.width,e),d=Math.max(this.minSize.height,r);return(i=this.maxSize)!=null&&i.width&&(c=Math.min(this.maxSize.width,c)),(o=this.maxSize)!=null&&o.height&&(d=Math.min(this.maxSize.height,d)),{width:c,height:d}}let l=e,u=r;return lthis.maxSize.width&&(l=this.maxSize.width,u=l/this.aspectRatio),(a=this.maxSize)!=null&&a.height&&u>this.maxSize.height&&(u=this.maxSize.height,l=u*this.aspectRatio),{width:l,height:u}}applyAspectRatio(e,r,n){return n==="left"||n==="right"?{width:e,height:e/this.aspectRatio}:n==="top"||n==="bottom"?{width:r*this.aspectRatio,height:r}:{width:e,height:e/this.aspectRatio}}};function T$(e,r){const{selection:n}=e,{$from:i}=n;if(n instanceof Ht){const s=i.index();return i.parent.canReplaceWith(s,s+1,r)}let o=i.depth;for(;o>=0;){const s=i.index(o);if(i.node(o).contentMatchAt(s).matchType(r))return!0;o-=1}return!1}function b$(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}var v$={};nv(v$,{createAtomBlockMarkdownSpec:()=>A$,createBlockMarkdownSpec:()=>E$,createInlineMarkdownSpec:()=>v_,parseAttributes:()=>pv,parseIndentedBlocks:()=>oT,renderNestedMarkdownContent:()=>mv,serializeAttributes:()=>fv});function pv(e){if(!e?.trim())return{};const r={},n=[],i=e.replace(/["']([^"']*)["']/g,u=>(n.push(u),`__QUOTED_${n.length-1}__`)),o=i.match(/(?:^|\s)\.([a-zA-Z][\w-]*)/g);if(o){const u=o.map(c=>c.trim().slice(1));r.class=u.join(" ")}const s=i.match(/(?:^|\s)#([a-zA-Z][\w-]*)/);s&&(r.id=s[1]);const a=/([a-zA-Z][\w-]*)\s*=\s*(__QUOTED_\d+__)/g;Array.from(i.matchAll(a)).forEach(([,u,c])=>{var d;const h=parseInt(((d=c.match(/__QUOTED_(\d+)__/))==null?void 0:d[1])||"0",10),p=n[h];p&&(r[u]=p.slice(1,-1))});const l=i.replace(/(?:^|\s)\.([a-zA-Z][\w-]*)/g,"").replace(/(?:^|\s)#([a-zA-Z][\w-]*)/g,"").replace(/([a-zA-Z][\w-]*)\s*=\s*__QUOTED_\d+__/g,"").trim();return l&&l.split(/\s+/).filter(Boolean).forEach(u=>{u.match(/^[a-zA-Z][\w-]*$/)&&(r[u]=!0)}),r}function fv(e){if(!e||Object.keys(e).length===0)return"";const r=[];return e.class&&String(e.class).split(/\s+/).filter(Boolean).forEach(n=>r.push(`.${n}`)),e.id&&r.push(`#${e.id}`),Object.entries(e).forEach(([n,i])=>{n==="class"||n==="id"||(i===!0?r.push(n):i!==!1&&i!=null&&r.push(`${n}="${String(i)}"`))}),r.join(" ")}function A$(e){const{nodeName:r,name:n,parseAttributes:i=pv,serializeAttributes:o=fv,defaultAttributes:s={},requiredAttributes:a=[],allowedAttributes:l}=e,u=n||r,c=d=>{if(!l)return d;const h={};return l.forEach(p=>{p in d&&(h[p]=d[p])}),h};return{parseMarkdown:(d,h)=>{const p={...s,...d.attributes};return h.createNode(r,p,[])},markdownTokenizer:{name:r,level:"block",start(d){var h;const p=new RegExp(`^:::${u}(?:\\s|$)`,"m"),f=(h=d.match(p))==null?void 0:h.index;return f!==void 0?f:-1},tokenize(d,h,p){const f=new RegExp(`^:::${u}(?:\\s+\\{([^}]*)\\})?\\s*:::(?:\\n|$)`),m=d.match(f);if(!m)return;const v=m[1]||"",w=i(v);if(!a.find(x=>!(x in w)))return{type:r,raw:m[0],attributes:w}}},renderMarkdown:d=>{const h=c(d.attrs||{}),p=o(h),f=p?` {${p}}`:"";return`:::${u}${f} :::`}}}function E$(e){const{nodeName:r,name:n,getContent:i,parseAttributes:o=pv,serializeAttributes:s=fv,defaultAttributes:a={},content:l="block",allowedAttributes:u}=e,c=n||r,d=h=>{if(!u)return h;const p={};return u.forEach(f=>{f in h&&(p[f]=h[f])}),p};return{parseMarkdown:(h,p)=>{let f;if(i){const v=i(h);f=typeof v=="string"?[{type:"text",text:v}]:v}else l==="block"?f=p.parseChildren(h.tokens||[]):f=p.parseInline(h.tokens||[]);const m={...a,...h.attributes};return p.createNode(r,m,f)},markdownTokenizer:{name:r,level:"block",start(h){var p;const f=new RegExp(`^:::${c}`,"m"),m=(p=h.match(f))==null?void 0:p.index;return m!==void 0?m:-1},tokenize(h,p,f){var m;const v=new RegExp(`^:::${c}(?:\\s+\\{([^}]*)\\})?\\s*\\n`),w=h.match(v);if(!w)return;const[x,k=""]=w,R=o(k);let O=1;const P=x.length;let V="";const W=/^:::([\w-]*)(\s.*)?/gm,ie=h.slice(P);for(W.lastIndex=0;;){const ue=W.exec(ie);if(ue===null)break;const I=ue.index,ne=ue[1];if(!((m=ue[2])!=null&&m.endsWith(":::"))){if(ne)O+=1;else if(O-=1,O===0){const he=ie.slice(0,I);V=he.trim();const re=h.slice(0,P+I+ue[0].length);let Ee=[];if(V)if(l==="block")for(Ee=f.blockTokens(he),Ee.forEach(ge=>{ge.text&&(!ge.tokens||ge.tokens.length===0)&&(ge.tokens=f.inlineTokens(ge.text))});Ee.length>0;){const ge=Ee[Ee.length-1];if(ge.type==="paragraph"&&(!ge.text||ge.text.trim()===""))Ee.pop();else break}else Ee=f.inlineTokens(V);return{type:r,raw:re,attributes:R,content:V,tokens:Ee}}}}}},renderMarkdown:(h,p)=>{const f=d(h.attrs||{}),m=s(f),v=m?` {${m}}`:"",w=p.renderChildren(h.content||[],` `);return`:::${c}${v} ${w} :::`}}}function w$(e){if(!e.trim())return{};const r={},n=/(\w+)=(?:"([^"]*)"|'([^']*)')/g;let i=n.exec(e);for(;i!==null;){const[,o,s,a]=i;r[o]=s||a,i=n.exec(e)}return r}function S$(e){return Object.entries(e).filter(([,r])=>r!=null).map(([r,n])=>`${r}="${n}"`).join(" ")}function v_(e){const{nodeName:r,name:n,getContent:i,parseAttributes:o=w$,serializeAttributes:s=S$,defaultAttributes:a={},selfClosing:l=!1,allowedAttributes:u}=e,c=n||r,d=p=>{if(!u)return p;const f={};return u.forEach(m=>{const v=typeof m=="string"?m:m.name,w=typeof m=="string"?void 0:m.skipIfDefault;if(v in p){const x=p[v];if(w!==void 0&&x===w)return;f[v]=x}}),f},h=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return{parseMarkdown:(p,f)=>{const m={...a,...p.attributes};if(l)return f.createNode(r,m);const v=i?i(p):p.content||"";return v?f.createNode(r,m,[f.createTextNode(v)]):f.createNode(r,m,[])},markdownTokenizer:{name:r,level:"inline",start(p){const f=l?new RegExp(`\\[${h}\\s*[^\\]]*\\]`):new RegExp(`\\[${h}\\s*[^\\]]*\\][\\s\\S]*?\\[\\/${h}\\]`),m=p.match(f),v=m?.index;return v!==void 0?v:-1},tokenize(p,f,m){const v=l?new RegExp(`^\\[${h}\\s*([^\\]]*)\\]`):new RegExp(`^\\[${h}\\s*([^\\]]*)\\]([\\s\\S]*?)\\[\\/${h}\\]`),w=p.match(v);if(!w)return;let x="",k="";if(l){const[,O]=w;k=O}else{const[,O,P]=w;k=O,x=P||""}const R=o(k.trim());return{type:r,raw:w[0],content:x.trim(),attributes:R}}},renderMarkdown:p=>{let f="";i?f=i(p):p.content&&p.content.length>0&&(f=p.content.filter(x=>x.type==="text").map(x=>x.text).join(""));const m=d(p.attrs||{}),v=s(m),w=v?` ${v}`:"";return l?`[${c}${w}]`:`[${c}${w}]${f}[/${c}]`}}}function oT(e,r,n){var i,o,s,a;const l=e.split(` `),u=[];let c="",d=0;const h=r.baseIndentSize||2;for(;d0)break;if(p.trim()===""){d+=1,c=`${c}${p} `;continue}else return}const m=r.extractItemData(f),{indentLevel:v,mainContent:w}=m;c=`${c}${p} `;const x=[w];for(d+=1;dW.trim()!=="");if(V===-1)break;if((((o=(i=l[d+1+V].match(/^(\s*)/))==null?void 0:i[1])==null?void 0:o.length)||0)>v){x.push(P),c=`${c}${P} `,d+=1;continue}else break}if((((a=(s=P.match(/^(\s*)/))==null?void 0:s[1])==null?void 0:a.length)||0)>v)x.push(P),c=`${c}${P} `,d+=1;else break}let k;const R=x.slice(1);if(R.length>0){const P=R.map(V=>V.slice(v+h)).join(` `);P.trim()&&(r.customNestedParser?k=r.customNestedParser(P):k=n.blockTokens(P))}const O=r.createToken(m,k);u.push(O)}if(u.length!==0)return{items:u,raw:c}}function mv(e,r,n,i){if(!e||!Array.isArray(e.content))return"";const o=typeof n=="function"?n(i):n,[s,...a]=e.content,l=r.renderChildren([s]),u=[`${o}${l}`];return a&&a.length>0&&a.forEach(c=>{const d=r.renderChildren([c]);if(d){const h=d.split(` `).map(p=>p?r.indent(p):"").join(` `);u.push(h)}}),u.join(` `)}function D$(e,r,n={}){const{state:i}=r,{doc:o,tr:s}=i,a=e;o.descendants((l,u)=>{const c=s.mapping.map(u),d=s.mapping.map(u)+l.nodeSize;let h=null;if(l.marks.forEach(f=>{if(f!==a)return!1;h=f}),!h)return;let p=!1;if(Object.keys(n).forEach(f=>{n[f]!==h.attrs[f]&&(p=!0)}),p){const f=e.type.create({...e.attrs,...n});s.removeMark(c,d,e.type),s.addMark(c,d,f)}}),s.docChanged&&r.view.dispatch(s)}var tn=class A_ extends hv{constructor(){super(...arguments),this.type="node"}static create(r={}){const n=typeof r=="function"?r():r;return new A_(n)}configure(r){return super.configure(r)}extend(r){const n=typeof r=="function"?r():r;return super.extend(n)}},x$=class{constructor(e,r,n){this.isDragging=!1,this.component=e,this.editor=r.editor,this.options={stopEvent:null,ignoreMutation:null,...n},this.extension=r.extension,this.node=r.node,this.decorations=r.decorations,this.innerDecorations=r.innerDecorations,this.view=r.view,this.HTMLAttributes=r.HTMLAttributes,this.getPos=r.getPos,this.mount()}mount(){}get dom(){return this.editor.view.dom}get contentDOM(){return null}onDragStart(e){var r,n,i,o,s,a,l;const{view:u}=this.editor,c=e.target,d=c.nodeType===3?(r=c.parentElement)==null?void 0:r.closest("[data-drag-handle]"):c.closest("[data-drag-handle]");if(!this.dom||(n=this.contentDOM)!=null&&n.contains(c)||!d)return;let h=0,p=0;if(this.dom!==d){const k=this.dom.getBoundingClientRect(),R=d.getBoundingClientRect(),O=(o=e.offsetX)!=null?o:(i=e.nativeEvent)==null?void 0:i.offsetX,P=(a=e.offsetY)!=null?a:(s=e.nativeEvent)==null?void 0:s.offsetY;h=R.x-k.x+O,p=R.y-k.y+P}const f=this.dom.cloneNode(!0);try{const k=this.dom.getBoundingClientRect();f.style.width=`${Math.round(k.width)}px`,f.style.height=`${Math.round(k.height)}px`,f.style.boxSizing="border-box",f.style.pointerEvents="none"}catch{}let m=null;try{m=document.createElement("div"),m.style.position="absolute",m.style.top="-9999px",m.style.left="-9999px",m.style.pointerEvents="none",m.appendChild(f),document.body.appendChild(m),(l=e.dataTransfer)==null||l.setDragImage(f,h,p)}finally{m&&setTimeout(()=>{try{m?.remove()}catch{}},0)}const v=this.getPos();if(typeof v!="number")return;const w=Ht.create(u.state.doc,v),x=u.state.tr.setSelection(w);u.dispatch(x)}stopEvent(e){var r;if(!this.dom)return!1;if(typeof this.options.stopEvent=="function")return this.options.stopEvent({event:e});const n=e.target;if(!(this.dom.contains(n)&&!((r=this.contentDOM)!=null&&r.contains(n))))return!1;const i=e.type.startsWith("drag"),o=e.type==="drop";if((["INPUT","BUTTON","SELECT","TEXTAREA"].includes(n.tagName)||n.isContentEditable)&&!o&&!i)return!0;const{isEditable:s}=this.editor,{isDragging:a}=this,l=!!this.node.type.spec.draggable,u=Ht.isSelectable(this.node),c=e.type==="copy",d=e.type==="paste",h=e.type==="cut",p=e.type==="mousedown";if(!l&&u&&i&&e.target===this.dom&&e.preventDefault(),l&&i&&!a&&e.target===this.dom)return e.preventDefault(),!1;if(l&&s&&!a&&p){const f=n.closest("[data-drag-handle]");f&&(this.dom===f||this.dom.contains(f))&&(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!(a||o||c||d||h||p&&u)}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"&&(lf()||tT())&&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:r})=>{const n=this.getPos();return typeof n!="number"?!1:(r.setNodeMarkup(n,void 0,{...this.node.attrs,...e}),!0)})}deleteNode(){const e=this.getPos();if(typeof e!="number")return;const r=e+this.node.nodeSize;this.editor.commands.deleteRange({from:e,to:r})}};function y0(e){return new a$({find:e.find,handler:({state:r,range:n,match:i,pasteEvent:o})=>{const s=Xr(e.getAttributes,void 0,i,o);if(s===!1||s===null)return null;const{tr:a}=r,l=i[i.length-1],u=i[0];let c=n.to;if(l){const d=u.search(/\S/),h=n.from+u.indexOf(l),p=h+l.length;if(cv(n.from,n.to,r.doc).filter(f=>f.mark.type.excluded.find(m=>m===e.type&&m!==f.mark.type)).filter(f=>f.to>h).length)return null;pn.from&&a.delete(n.from+d,h),c=n.from+d+l.length,a.addMark(n.from+d,c,e.type.create(s||{})),a.removeStoredMark(e.type)}}})}const Ro=()=>new Map,sT=e=>{const r=Ro();return e.forEach((n,i)=>{r.set(i,n)}),r},aa=(e,r,n)=>{let i=e.get(r);return i===void 0&&e.set(r,i=n()),i},k$=(e,r)=>{const n=[];for(const[i,o]of e)n.push(r(o,i));return n},C$=(e,r)=>{for(const[n,i]of e)if(r(i,n))return!0;return!1},T0=()=>new Set,q5=e=>e[e.length-1],_$=(e,r)=>{for(let n=0;n{for(let n=0;n{for(let n=0;n{const n=new Array(e);for(let i=0;i{this.off(r,i),n(...o)};this.on(r,i)}off(r,n){const i=this._observers.get(r);i!==void 0&&(i.delete(n),i.size===0&&this._observers.delete(r))}emit(r,n){return b0((this._observers.get(r)||Ro()).values()).forEach(i=>i(...n))}destroy(){this._observers=Ro()}}class w_{constructor(){this._observers=Ro()}on(r,n){aa(this._observers,r,T0).add(n)}once(r,n){const i=(...o)=>{this.off(r,i),n(...o)};this.on(r,i)}off(r,n){const i=this._observers.get(r);i!==void 0&&(i.delete(n),i.size===0&&this._observers.delete(r))}emit(r,n){return b0((this._observers.get(r)||Ro()).values()).forEach(i=>i(...n))}destroy(){this._observers=Ro()}}const ra=Math.floor,Jg=Math.abs,bl=(e,r)=>ee>r?e:r,F$=Math.pow,S_=e=>e!==0?e<0:1/e<0,L8=1,z8=2,W5=4,K5=8,df=32,p0=64,Bo=128,O$=1<<29,A3=31,aT=63,Zc=127,M$=2147483647,H2=Number.MAX_SAFE_INTEGER,Y8=Number.MIN_SAFE_INTEGER,R$=Number.isInteger||(e=>typeof e=="number"&&isFinite(e)&&ra(e)===e),D_=String.fromCharCode,B$=e=>e.toLowerCase(),I$=/^\s*/g,L$=e=>e.replace(I$,""),z$=/([A-Z])/g,H8=(e,r)=>L$(e.replace(z$,n=>`${r}${B$(n)}`)),Y$=e=>{const r=unescape(encodeURIComponent(e)),n=r.length,i=new Uint8Array(n);for(let o=0;ohf.encode(e),P$=hf?H$:Y$;let N1=typeof TextDecoder>"u"?null:new TextDecoder("utf-8",{fatal:!0,ignoreBOM:!0});N1&&N1.decode(new Uint8Array).length===1&&(N1=null);const Z$=(e,r)=>N$(r,()=>e).join("");class Wf{constructor(){this.cpos=0,this.cbuf=new Uint8Array(100),this.bufs=[]}}const $i=()=>new Wf,$$=e=>{const r=$i();return e(r),Gn(r)},Tv=e=>{let r=e.cpos;for(let n=0;n{const r=new Uint8Array(Tv(e));let n=0;for(let i=0;i{const n=e.cbuf.length;n-e.cpos{const n=e.cbuf.length;e.cpos===n&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(n*2),e.cpos=0),e.cbuf[e.cpos++]=r},lT=Pi,Ut=(e,r)=>{for(;r>Zc;)Pi(e,Bo|Zc&r),r=ra(r/128);Pi(e,Zc&r)},bv=(e,r)=>{const n=S_(r);for(n&&(r=-r),Pi(e,(r>aT?Bo:0)|(n?p0:0)|aT&r),r=ra(r/64);r>0;)Pi(e,(r>Zc?Bo:0)|Zc&r),r=ra(r/128)},uT=new Uint8Array(3e4),V$=uT.length/3,j$=(e,r)=>{if(r.length{const n=unescape(encodeURIComponent(r)),i=n.length;Ut(e,i);for(let o=0;o{const n=e.cbuf.length,i=e.cpos,o=bl(n-i,r.length),s=r.length-o;e.cbuf.set(r.subarray(0,o),i),e.cpos+=o,s>0&&(e.bufs.push(e.cbuf),e.cbuf=new Uint8Array(_a(n*2,s)),e.cbuf.set(r.subarray(o)),e.cpos=s)},ui=(e,r)=>{Ut(e,r.byteLength),E3(e,r)},vv=(e,r)=>{U$(e,r);const n=new DataView(e.cbuf.buffer,e.cpos,r);return e.cpos+=r,n},q$=(e,r)=>vv(e,4).setFloat32(0,r,!1),W$=(e,r)=>vv(e,8).setFloat64(0,r,!1),K$=(e,r)=>vv(e,8).setBigInt64(0,r,!1),P8=new DataView(new ArrayBuffer(4)),Q$=e=>(P8.setFloat32(0,e),P8.getFloat32(0)===e),Mh=(e,r)=>{switch(typeof r){case"string":Pi(e,119),$c(e,r);break;case"number":R$(r)&&Jg(r)<=M$?(Pi(e,125),bv(e,r)):Q$(r)?(Pi(e,124),q$(e,r)):(Pi(e,123),W$(e,r));break;case"bigint":Pi(e,122),K$(e,r);break;case"object":if(r===null)Pi(e,126);else if(Oh(r)){Pi(e,117),Ut(e,r.length);for(let n=0;n0&&Ut(this,this.count-1),this.count=1,this.w(this,r),this.s=r)}}const $8=e=>{e.count>0&&(bv(e.encoder,e.count===1?e.s:-e.s),e.count>1&&Ut(e.encoder,e.count-2))};class Xg{constructor(){this.encoder=new Wf,this.s=0,this.count=0}write(r){this.s===r?this.count++:($8(this),this.count=1,this.s=r)}toUint8Array(){return $8(this),Gn(this.encoder)}}const U8=e=>{if(e.count>0){const r=e.diff*2+(e.count===1?0:1);bv(e.encoder,r),e.count>1&&Ut(e.encoder,e.count-2)}};class Q5{constructor(){this.encoder=new Wf,this.s=0,this.count=0,this.diff=0}write(r){this.diff===r-this.s?(this.s=r,this.count++):(U8(this),this.count=1,this.diff=r-this.s,this.s=r)}toUint8Array(){return U8(this),Gn(this.encoder)}}class J${constructor(){this.sarr=[],this.s="",this.lensE=new Xg}write(r){this.s+=r,this.s.length>19&&(this.sarr.push(this.s),this.s=""),this.lensE.write(r.length)}toUint8Array(){const r=new Wf;return this.sarr.push(this.s),this.s="",$c(r,this.sarr.join("")),E3(r,this.lensE.toUint8Array()),Gn(r)}}const kl=e=>new Error(e),Qs=()=>{throw kl("Method unimplemented")},vo=()=>{throw kl("Unexpected case")},x_=kl("Unexpected end of array"),k_=kl("Integer out of Range");class w3{constructor(r){this.arr=r,this.pos=0}}const k0=e=>new w3(e),X$=e=>e.pos!==e.arr.length,eU=(e,r=e.pos)=>{const n=k0(e.arr);return n.pos=r,n},tU=(e,r)=>{const n=new Uint8Array(e.arr.buffer,e.pos+e.arr.byteOffset,r);return e.pos+=r,n},ho=e=>tU(e,pr(e)),Rh=e=>e.arr[e.pos++],pr=e=>{let r=0,n=1;const i=e.arr.length;for(;e.posH2)throw k_}throw x_},Av=e=>{let r=e.arr[e.pos++],n=r&aT,i=64;const o=(r&p0)>0?-1:1;if((r&Bo)===0)return o*n;const s=e.arr.length;for(;e.posH2)throw k_}throw x_},rU=e=>{let r=pr(e);if(r===0)return"";{let n=String.fromCodePoint(Rh(e));if(--r<100)for(;r--;)n+=String.fromCodePoint(Rh(e));else for(;r>0;){const i=r<1e4?r:1e4,o=e.arr.subarray(e.pos,e.pos+i);e.pos+=i,n+=String.fromCodePoint.apply(null,o),r-=i}return decodeURIComponent(escape(n))}},nU=e=>N1.decode(ho(e)),Nu=N1?nU:rU,Ev=(e,r)=>{const n=new DataView(e.arr.buffer,e.arr.byteOffset+e.pos,r);return e.pos+=r,n},iU=e=>Ev(e,4).getFloat32(0,!1),oU=e=>Ev(e,8).getFloat64(0,!1),sU=e=>Ev(e,8).getBigInt64(0,!1),aU=[e=>{},e=>null,Av,iU,oU,sU,e=>!1,e=>!0,Nu,e=>{const r=pr(e),n={};for(let i=0;i{const r=pr(e),n=[];for(let i=0;iaU[127-Rh(e)](e);class V8 extends w3{constructor(r,n){super(r),this.reader=n,this.s=null,this.count=0}read(){return this.count===0&&(this.s=this.reader(this),X$(this)?this.count=pr(this)+1:this.count=-1),this.count--,this.s}}class e2 extends w3{constructor(r){super(r),this.s=0,this.count=0}read(){if(this.count===0){this.s=Av(this);const r=S_(this.s);this.count=1,r&&(this.s=-this.s,this.count=pr(this)+2)}return this.count--,this.s}}class J5 extends w3{constructor(r){super(r),this.s=0,this.count=0,this.diff=0}read(){if(this.count===0){const r=Av(this),n=r&1;this.diff=ra(r/2),this.count=1,n&&(this.count=pr(this)+2)}return this.s+=this.diff,this.count--,this.s}}class lU{constructor(r){this.decoder=new e2(r),this.str=Nu(this.decoder),this.spos=0}read(){const r=this.spos+this.decoder.read(),n=this.str.slice(this.spos,r);return this.spos=r,n}}const uU=crypto.getRandomValues.bind(crypto),cU=Math.random,C_=()=>uU(new Uint32Array(1))[0],dU=e=>e[ra(cU()*e.length)],hU="10000000-1000-4000-8000"+-1e11,pU=()=>hU.replace(/[018]/g,e=>(e^C_()&15>>e/4).toString(16)),Pu=Date.now,j8=e=>new Promise(e);Promise.all.bind(Promise);const fU=e=>e===void 0?null:e;class mU{constructor(){this.map=new Map}setItem(r,n){this.map.set(r,n)}getItem(r){return this.map.get(r)}}let __=new mU,wv=!0;try{typeof localStorage<"u"&&localStorage&&(__=localStorage,wv=!1)}catch{}const N_=__,gU=e=>wv||addEventListener("storage",e),yU=e=>wv||removeEventListener("storage",e),ff=Symbol("Equality"),F_=(e,r)=>e===r||!!e?.[ff]?.(r)||!1,TU=e=>typeof e=="object",bU=Object.assign,O_=Object.keys,vU=(e,r)=>{for(const n in e)r(e[n],n)},AU=(e,r)=>{const n=[];for(const i in e)n.push(r(e[i],i));return n},P2=e=>O_(e).length,EU=e=>{for(const r in e)return!1;return!0},op=(e,r)=>{for(const n in e)if(!r(e[n],n))return!1;return!0},Sv=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),wU=(e,r)=>e===r||P2(e)===P2(r)&&op(e,(n,i)=>(n!==void 0||Sv(r,i))&&F_(r[i],n)),SU=Object.freeze,M_=e=>{for(const r in e){const n=e[r];(typeof n=="object"||typeof n=="function")&&M_(e[r])}return SU(e)},Dv=(e,r,n=0)=>{try{for(;ne,mh=(e,r)=>{if(e===r)return!0;if(e==null||r==null||e.constructor!==r.constructor&&(e.constructor||Object)!==(r.constructor||Object))return!1;if(e[ff]!=null)return e[ff](r);switch(e.constructor){case ArrayBuffer:e=new Uint8Array(e),r=new Uint8Array(r);case Uint8Array:{if(e.byteLength!==r.byteLength)return!1;for(let n=0;nr.includes(e);var R_={};const Zu=typeof Ds<"u"&&Ds.release&&/node|io\.js/.test(Ds.release.name)&&Object.prototype.toString.call(typeof Ds<"u"?Ds:0)==="[object process]",xv=typeof window<"u"&&typeof document<"u"&&!Zu;let el;const kU=()=>{if(el===void 0)if(Zu){el=Ro();const e=Ds.argv;let r=null;for(let n=0;n{if(e.length!==0){const[r,n]=e.split("=");el.set(`--${H8(r,"-")}`,n),el.set(`-${H8(r,"-")}`,n)}})):el=Ro();return el},cT=e=>kU().has(e),Z2=e=>fU(Zu?R_[e.toUpperCase().replaceAll("-","_")]:N_.getItem(e)),B_=e=>cT("--"+e)||Z2(e)!==null,CU=B_("production"),_U=Zu&&xU(R_.FORCE_COLOR,["true","1","2"]),NU=_U||!cT("--no-colors")&&!B_("no-color")&&(!Zu||Ds.stdout.isTTY)&&(!Zu||cT("--color")||Z2("COLORTERM")!==null||(Z2("TERM")||"").includes("color")),I_=e=>new Uint8Array(e),FU=(e,r,n)=>new Uint8Array(e,r,n),OU=e=>new Uint8Array(e),MU=e=>{let r="";for(let n=0;no3.from(e.buffer,e.byteOffset,e.byteLength).toString("base64"),BU=e=>{const r=atob(e),n=I_(r.length);for(let i=0;i{const r=o3.from(e,"base64");return FU(r.buffer,r.byteOffset,r.byteLength)},kv=xv?MU:RU,L_=xv?BU:IU,LU=e=>{const r=I_(e.byteLength);return r.set(e),r},zU=e=>$$(r=>Mh(r,e));class YU{constructor(r,n){this.left=r,this.right=n}}const $l=(e,r)=>new YU(e,r),G8=e=>e.next()>=.5,X5=(e,r,n)=>ra(e.next()*(n+1-r)+r),z_=(e,r,n)=>ra(e.next()*(n+1-r)+r),Cv=(e,r,n)=>z_(e,r,n),HU=e=>D_(Cv(e,97,122)),PU=(e,r=0,n=20)=>{const i=Cv(e,r,n);let o="";for(let s=0;sr[Cv(e,0,r.length-1)],ZU=Symbol("0schema");class $U{constructor(){this._rerrs=[]}extend(r,n,i,o=null){this._rerrs.push({path:r,expected:n,has:i,message:o})}toString(){const r=[];for(let n=this._rerrs.length-1;n>0;n--){const i=this._rerrs[n];r.push(Z$(" ",(this._rerrs.length-n)*2)+`${i.path!=null?`[${i.path}] `:""}${i.has} doesn't match ${i.expected}. ${i.message}`)}return r.join(` `)}}const dT=(e,r)=>e===r?!0:e==null||r==null||e.constructor!==r.constructor?!1:e[ff]?F_(e,r):Oh(e)?gv(e,n=>yv(r,i=>dT(n,i))):TU(e)?op(e,(n,i)=>dT(n,r[i])):!1;class zo{static _dilutes=!1;extends(r){let[n,i]=[this.shape,r.shape];return this.constructor._dilutes&&([i,n]=[n,i]),dT(n,i)}equals(r){return this.constructor===r.constructor&&mh(this.shape,r.shape)}[ZU](){return!0}[ff](r){return this.equals(r)}validate(r){return this.check(r)}check(r,n){Qs()}get nullable(){return sp(this,C3)}get optional(){return new P_(this)}cast(r){return q8(r,this),r}expect(r){return q8(r,this),r}}class _v extends zo{constructor(r,n){super(),this.shape=r,this._c=n}check(r,n=void 0){const i=r?.constructor===this.shape&&(this._c==null||this._c(r));return!i&&n?.extend(null,this.shape.name,r?.constructor.name,r?.constructor!==this.shape?"Constructor match failed":"Check failed"),i}}const Ai=(e,r=null)=>new _v(e,r);Ai(_v);class Nv extends zo{constructor(r){super(),this.shape=r}check(r,n){const i=this.shape(r);return!i&&n?.extend(null,"custom prop",r?.constructor.name,"failed to check custom prop"),i}}const Gi=e=>new Nv(e);Ai(Nv);class S3 extends zo{constructor(r){super(),this.shape=r}check(r,n){const i=this.shape.some(o=>o===r);return!i&&n?.extend(null,this.shape.join(" | "),r.toString()),i}}const D3=(...e)=>new S3(e),Y_=Ai(S3),UU=RegExp.escape||(e=>e.replace(/[().|&,$^[\]]/g,r=>"\\"+r)),H_=e=>{if(Bh.check(e))return[UU(e)];if(Y_.check(e))return e.shape.map(r=>r+"");if(K_.check(e))return["[+-]?\\d+.?\\d*"];if(Q_.check(e))return[".*"];if($2.check(e))return e.shape.map(H_).flat(1);vo()};class VU extends zo{constructor(r){super(),this.shape=r,this._r=new RegExp("^"+r.map(H_).map(n=>`(${n.join("|")})`).join("")+"$")}check(r,n){const i=this._r.exec(r)!=null;return!i&&n?.extend(null,this._r.toString(),r.toString(),"String doesn't match string template."),i}}Ai(VU);const jU=Symbol("optional");class P_ extends zo{constructor(r){super(),this.shape=r}check(r,n){const i=r===void 0||this.shape.check(r);return!i&&n?.extend(null,"undefined (optional)","()"),i}get[jU](){return!0}}const GU=Ai(P_);class qU extends zo{check(r,n){return n?.extend(null,"never",typeof r),!1}}Ai(qU);class x3 extends zo{constructor(r,n=!1){super(),this.shape=r,this._isPartial=n}static _dilutes=!0;get partial(){return new x3(this.shape,!0)}check(r,n){return r==null?(n?.extend(null,"object","null"),!1):op(this.shape,(i,o)=>{const s=this._isPartial&&!Sv(r,o)||i.check(r[o],n);return!s&&n?.extend(o.toString(),i.toString(),typeof r[o],"Object property does not match"),s})}}const WU=e=>new x3(e),KU=Ai(x3),QU=Gi(e=>e!=null&&(e.constructor===Object||e.constructor==null));class Z_ extends zo{constructor(r,n){super(),this.shape={keys:r,values:n}}check(r,n){return r!=null&&op(r,(i,o)=>{const s=this.shape.keys.check(o,n);return!s&&n?.extend(o+"","Record",typeof r,s?"Key doesn't match schema":"Value doesn't match value"),s&&this.shape.values.check(i,n)})}}const $_=(e,r)=>new Z_(e,r),JU=Ai(Z_);class U_ extends zo{constructor(r){super(),this.shape=r}check(r,n){return r!=null&&op(this.shape,(i,o)=>{const s=i.check(r[o],n);return!s&&n?.extend(o.toString(),"Tuple",typeof i),s})}}const XU=(...e)=>new U_(e);Ai(U_);class V_ extends zo{constructor(r){super(),this.shape=r.length===1?r[0]:new Fv(r)}check(r,n){const i=Oh(r)&&gv(r,o=>this.shape.check(o));return!i&&n?.extend(null,"Array",""),i}}const j_=(...e)=>new V_(e),eV=Ai(V_),tV=Gi(e=>Oh(e));class G_ extends zo{constructor(r,n){super(),this.shape=r,this._c=n}check(r,n){const i=r instanceof this.shape&&(this._c==null||this._c(r));return!i&&n?.extend(null,this.shape.name,r?.constructor.name),i}}const rV=(e,r=null)=>new G_(e,r);Ai(G_);const nV=rV(zo);class iV extends zo{constructor(r){super(),this.len=r.length-1,this.args=XU(...r.slice(-1)),this.res=r[this.len]}check(r,n){const i=r.constructor===Function&&r.length<=this.len;return!i&&n?.extend(null,"function",typeof r),i}}const oV=Ai(iV),sV=Gi(e=>typeof e=="function");class aV extends zo{constructor(r){super(),this.shape=r}check(r,n){const i=gv(this.shape,o=>o.check(r,n));return!i&&n?.extend(null,"Intersectinon",typeof r),i}}Ai(aV,e=>e.shape.length>0);class Fv extends zo{static _dilutes=!0;constructor(r){super(),this.shape=r}check(r,n){const i=yv(this.shape,o=>o.check(r,n));return n?.extend(null,"Union",typeof r),i}}const sp=(...e)=>e.findIndex(r=>$2.check(r))>=0?sp(...e.map(r=>mf(r)).map(r=>$2.check(r)?r.shape:[r]).flat(1)):e.length===1?e[0]:new Fv(e),$2=Ai(Fv),q_=()=>!0,U2=Gi(q_),lV=Ai(Nv,e=>e.shape===q_),Ov=Gi(e=>typeof e=="bigint"),uV=Gi(e=>e===Ov),W_=Gi(e=>typeof e=="symbol");Gi(e=>e===W_);const gh=Gi(e=>typeof e=="number"),K_=Gi(e=>e===gh),Bh=Gi(e=>typeof e=="string"),Q_=Gi(e=>e===Bh),k3=Gi(e=>typeof e=="boolean"),cV=Gi(e=>e===k3),J_=D3(void 0);Ai(S3,e=>e.shape.length===1&&e.shape[0]===void 0),D3(void 0);const C3=D3(null),dV=Ai(S3,e=>e.shape.length===1&&e.shape[0]===null);Ai(Uint8Array),Ai(_v,e=>e.shape===Uint8Array);const hV=sp(gh,Bh,C3,J_,Ov,k3,W_);(()=>{const e=j_(U2),r=$_(Bh,U2),n=sp(gh,Bh,C3,k3,e,r);return e.shape=n,r.shape.values=n,n})();const mf=e=>{if(nV.check(e))return e;if(QU.check(e)){const r={};for(const n in e)r[n]=mf(e[n]);return WU(r)}else{if(tV.check(e))return sp(...e.map(mf));if(hV.check(e))return D3(e);if(sV.check(e))return Ai(e)}vo()},q8=CU?()=>{}:(e,r)=>{const n=new $U;if(!r.check(e,n))throw kl(`Expected value to be of type ${r.constructor.name}. ${n.toString()}`)};class pV{constructor(r){this.patterns=[],this.$state=r}if(r,n){return this.patterns.push({if:mf(r),h:n}),this}else(r){return this.if(U2,r)}done(){return(r,n)=>{for(let i=0;inew pV(e),X_=fV(U2).if(K_,(e,r)=>X5(r,Y8,H2)).if(Q_,(e,r)=>PU(r)).if(cV,(e,r)=>G8(r)).if(uV,(e,r)=>BigInt(X5(r,Y8,H2))).if($2,(e,r)=>$d(r,e6(r,e.shape))).if(KU,(e,r)=>{const n={};for(const i in e.shape){let o=e.shape[i];if(GU.check(o)){if(G8(r))continue;o=o.shape}n[i]=X_(o,r)}return n}).if(eV,(e,r)=>{const n=[],i=z_(r,0,42);for(let o=0;oe6(r,e.shape)).if(dV,(e,r)=>null).if(oV,(e,r)=>{const n=$d(r,e.res);return()=>n}).if(lV,(e,r)=>$d(r,e6(r,[gh,Bh,C3,J_,Ov,k3,j_(gh),$_(sp("a","b","c"),gh)]))).if(JU,(e,r)=>{const n={},i=X5(r,0,3);for(let o=0;oX_(mf(r),e),Kf=typeof document<"u"?document:{};Gi(e=>e.nodeType===bV),typeof DOMParser<"u"&&new DOMParser,Gi(e=>e.nodeType===gV),Gi(e=>e.nodeType===yV);const mV=e=>k$(e,(r,n)=>`${n}:${r};`).join(""),gV=Kf.ELEMENT_NODE,yV=Kf.TEXT_NODE,TV=Kf.DOCUMENT_NODE,bV=Kf.DOCUMENT_FRAGMENT_NODE;Gi(e=>e.nodeType===TV);const vV=e=>class{constructor(r){this._=r}destroy(){e(this._)}},AV=vV(clearTimeout),Mv=(e,r)=>new AV(setTimeout(r,e)),C0=Symbol,eN=C0(),tN=C0(),EV=C0(),wV=C0(),SV=C0(),rN=C0(),DV=C0(),Rv=C0(),xV=C0(),kV=e=>{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const r=[],n=[];let i=0;for(;i0&&n.push(r.join(""));i{e.length===1&&e[0]?.constructor===Function&&(e=e[0]());const r=[],n=[],i=Ro();let o=[],s=0;for(;s0||u.length>0?(r.push("%c"+a),n.push(u)):r.push(a)}else break}}for(s>0&&(o=n,o.unshift(r.join("")));s{console.log(...nN(e)),oN.forEach(r=>r.print(e))},iN=(...e)=>{console.warn(...nN(e)),e.unshift(Rv),oN.forEach(r=>r.print(e))},oN=T0(),sN=e=>({[Symbol.iterator](){return this},next:e}),FV=(e,r)=>sN(()=>{let n;do n=e.next();while(!n.done&&!r(n.value));return n}),t6=(e,r)=>sN(()=>{const{done:n,value:i}=e.next();return{done:n,value:n?void 0:r(i)}});class Bv{constructor(r,n){this.clock=r,this.len=n}}class ap{constructor(){this.clients=new Map}}const $u=(e,r,n)=>r.clients.forEach((i,o)=>{const s=e.doc.store.clients.get(o);if(s!=null){const a=s[s.length-1],l=a.id.clock+a.length;for(let u=0,c=i[u];u{let n=0,i=e.length-1;for(;n<=i;){const o=ra((n+i)/2),s=e[o],a=s.clock;if(a<=r){if(r{const n=e.clients.get(r.client);return n!==void 0&&OV(n,r.clock)!==null},Iv=e=>{e.clients.forEach(r=>{r.sort((o,s)=>o.clock-s.clock);let n,i;for(n=1,i=1;n=s.clock?o.len=_a(o.len,s.clock+s.len-o.clock):(i{const r=new ap;for(let n=0;n{if(!r.clients.has(o)){const s=i.slice();for(let a=n+1;a{aa(e.clients,r,()=>[]).push(new Bv(n,i))},aN=()=>new ap,lN=e=>{const r=aN();return e.clients.forEach((n,i)=>{const o=[];for(let s=0;s0&&r.clients.set(i,o)}),r},up=(e,r)=>{Ut(e.restEncoder,r.clients.size),b0(r.clients.entries()).sort((n,i)=>i[0]-n[0]).forEach(([n,i])=>{e.resetDsCurVal(),Ut(e.restEncoder,n);const o=i.length;Ut(e.restEncoder,o);for(let s=0;s{const r=new ap,n=pr(e.restDecoder);for(let i=0;i0){const a=aa(r.clients,o,()=>[]);for(let l=0;l{const i=new ap,o=pr(e.restDecoder);for(let s=0;s0){const s=new ed;return Ut(s.restEncoder,0),up(s,i),s.toUint8Array()}return null},uN=C_;class tc extends E_{constructor({guid:r=pU(),collectionid:n=null,gc:i=!0,gcFilter:o=()=>!0,meta:s=null,autoLoad:a=!1,shouldLoad:l=!0}={}){super(),this.gc=i,this.gcFilter=o,this.clientID=uN(),this.guid=r,this.collectionid=n,this.share=new Map,this.store=new bN,this._transaction=null,this._transactionCleanups=[],this.subdocs=new Set,this._item=null,this.shouldLoad=l,this.autoLoad=a,this.meta=s,this.isLoaded=!1,this.isSynced=!1,this.isDestroyed=!1,this.whenLoaded=j8(c=>{this.on("load",()=>{this.isLoaded=!0,c(this)})});const u=()=>j8(c=>{const d=h=>{(h===void 0||h===!0)&&(this.off("sync",d),c())};this.on("sync",d)});this.on("sync",c=>{c===!1&&this.isSynced&&(this.whenSynced=u()),this.isSynced=c===void 0||c===!0,this.isSynced&&!this.isLoaded&&this.emit("load",[this])}),this.whenSynced=u()}load(){const r=this._item;r!==null&&!this.shouldLoad&&bn(r.parent.doc,n=>{n.subdocsLoaded.add(this)},null,!0),this.shouldLoad=!0}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(b0(this.subdocs).map(r=>r.guid))}transact(r,n=null){return bn(this,r,n)}get(r,n=qi){const i=aa(this.share,r,()=>{const s=new n;return s._integrate(this,null),s}),o=i.constructor;if(n!==qi&&o!==n)if(o===qi){const s=new n;s._map=i._map,i._map.forEach(a=>{for(;a!==null;a=a.left)a.parent=s}),s._start=i._start;for(let a=s._start;a!==null;a=a.right)a.parent=s;return s._length=i._length,this.share.set(r,s),s._integrate(this,null),s}else throw new Error(`Type with the name ${r} has already been defined with a different constructor`);return i}getArray(r=""){return this.get(r,bh)}getText(r=""){return this.get(r,Uu)}getMap(r=""){return this.get(r,Lh)}getXmlElement(r=""){return this.get(r,yo)}getXmlFragment(r=""){return this.get(r,td)}toJSON(){const r={};return this.share.forEach((n,i)=>{r[i]=n.toJSON()}),r}destroy(){this.isDestroyed=!0,b0(this.subdocs).forEach(n=>n.destroy());const r=this._item;if(r!==null){this._item=null;const n=r.content;n.doc=new tc({guid:this.guid,...n.opts,shouldLoad:!1}),n.doc._item=r,bn(r.parent.doc,i=>{const o=n.doc;r.deleted||i.subdocsAdded.add(o),i.subdocsRemoved.add(this)},null,!0)}this.emit("destroyed",[!0]),this.emit("destroy",[this]),super.destroy()}}class cN{constructor(r){this.restDecoder=r}resetDsCurVal(){}readDsClock(){return pr(this.restDecoder)}readDsLen(){return pr(this.restDecoder)}}class dN extends cN{readLeftID(){return fr(pr(this.restDecoder),pr(this.restDecoder))}readRightID(){return fr(pr(this.restDecoder),pr(this.restDecoder))}readClient(){return pr(this.restDecoder)}readInfo(){return Rh(this.restDecoder)}readString(){return Nu(this.restDecoder)}readParentInfo(){return pr(this.restDecoder)===1}readTypeRef(){return pr(this.restDecoder)}readLen(){return pr(this.restDecoder)}readAny(){return pf(this.restDecoder)}readBuf(){return LU(ho(this.restDecoder))}readJSON(){return JSON.parse(Nu(this.restDecoder))}readKey(){return Nu(this.restDecoder)}}class MV{constructor(r){this.dsCurrVal=0,this.restDecoder=r}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){return this.dsCurrVal+=pr(this.restDecoder),this.dsCurrVal}readDsLen(){const r=pr(this.restDecoder)+1;return this.dsCurrVal+=r,r}}class Ih extends MV{constructor(r){super(r),this.keys=[],pr(r),this.keyClockDecoder=new J5(ho(r)),this.clientDecoder=new e2(ho(r)),this.leftClockDecoder=new J5(ho(r)),this.rightClockDecoder=new J5(ho(r)),this.infoDecoder=new V8(ho(r),Rh),this.stringDecoder=new lU(ho(r)),this.parentInfoDecoder=new V8(ho(r),Rh),this.typeRefDecoder=new e2(ho(r)),this.lenDecoder=new e2(ho(r))}readLeftID(){return new yh(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new yh(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return pf(this.restDecoder)}readBuf(){return ho(this.restDecoder)}readJSON(){return pf(this.restDecoder)}readKey(){const r=this.keyClockDecoder.read();if(r{i=_a(i,r[0].id.clock);const o=Na(r,i);Ut(e.restEncoder,r.length-o),e.writeClient(n),Ut(e.restEncoder,i);const s=r[o];s.write(e,i-s.id.clock);for(let a=o+1;a{const i=new Map;n.forEach((o,s)=>{hi(r,s)>o&&i.set(s,o)}),Jf(r).forEach((o,s)=>{n.has(s)||i.set(s,0)}),Ut(e.restEncoder,i.size),b0(i.entries()).sort((o,s)=>s[0]-o[0]).forEach(([o,s])=>{RV(e,r.clients.get(o),o,s)})},BV=(e,r)=>{const n=Ro(),i=pr(e.restDecoder);for(let o=0;o{const i=[];let o=b0(n.keys()).sort((f,m)=>f-m);if(o.length===0)return null;const s=()=>{if(o.length===0)return null;let f=n.get(o[o.length-1]);for(;f.refs.length===f.i;)if(o.pop(),o.length>0)f=n.get(o[o.length-1]);else return null;return f};let a=s();if(a===null)return null;const l=new bN,u=new Map,c=(f,m)=>{const v=u.get(f);(v==null||v>m)&&u.set(f,m)};let d=a.refs[a.i++];const h=new Map,p=()=>{for(const f of i){const m=f.id.client,v=n.get(m);v?(v.i--,l.clients.set(m,v.refs.slice(v.i)),n.delete(m),v.i=0,v.refs=[]):l.clients.set(m,[f]),o=o.filter(w=>w!==m)}i.length=0};for(;;){if(d.constructor!==js){const f=aa(h,d.id.client,()=>hi(r,d.id.client))-d.id.clock;if(f<0)i.push(d),c(d.id.client,d.id.clock-1),p();else{const m=d.getMissing(e,r);if(m!==null){i.push(d);const v=n.get(m)||{refs:[],i:0};if(v.refs.length===v.i)c(m,hi(r,m)),p();else{d=v.refs[v.i++];continue}}else(f===0||f0)d=i.pop();else if(a!==null&&a.i0){const f=new ed;return zv(f,l,new Map),Ut(f.restEncoder,0),{missing:u,update:f.toUint8Array()}}return null},LV=(e,r)=>zv(e,r.doc.store,r.beforeState),zV=(e,r,n,i=new Ih(e))=>bn(r,o=>{o.local=!1;let s=!1;const a=o.doc,l=a.store,u=BV(i,a),c=IV(o,l,u),d=l.pendingStructs;if(d){for(const[p,f]of d.missing)if(ff)&&d.missing.set(p,f)}d.update=j2([d.update,c.update])}}else l.pendingStructs=c;const h=W8(i,o,l);if(l.pendingDs){const p=new Ih(k0(l.pendingDs));pr(p.restDecoder);const f=W8(p,o,l);h&&f?l.pendingDs=j2([h,f]):l.pendingDs=h||f}else l.pendingDs=h;if(s){const p=l.pendingStructs.update;l.pendingStructs=null,V2(o.doc,p)}},n,!1),V2=(e,r,n,i=Ih)=>{const o=k0(r);zV(o,e,n,new i(o))},YV=(e,r,n)=>V2(e,r,n,dN),HV=(e,r,n=new Map)=>{zv(e,r.store,n),up(e,lN(r.store))},PV=(e,r=new Uint8Array([0]),n=new ed)=>{const i=fN(r);HV(n,e,i);const o=[n.toUint8Array()];if(e.store.pendingDs&&o.push(e.store.pendingDs),e.store.pendingStructs&&o.push(oj(e.store.pendingStructs.update,r)),o.length>1){if(n.constructor===Qf)return nj(o.map((s,a)=>a===0?s:aj(s)));if(n.constructor===ed)return j2(o)}return o[0]},Yv=(e,r)=>PV(e,r,new Qf),ZV=e=>{const r=new Map,n=pr(e.restDecoder);for(let i=0;iZV(new cN(k0(e))),mN=(e,r)=>(Ut(e.restEncoder,r.size),b0(r.entries()).sort((n,i)=>i[0]-n[0]).forEach(([n,i])=>{Ut(e.restEncoder,n),Ut(e.restEncoder,i)}),e),$V=(e,r)=>mN(e,Jf(r.store)),UV=(e,r=new pN)=>(e instanceof Map?mN(r,e):$V(r,e),r.toUint8Array()),gN=e=>UV(e,new hN);class VV{constructor(){this.l=[]}}const K8=()=>new VV,Q8=(e,r)=>e.l.push(r),J8=(e,r)=>{const n=e.l,i=n.length;e.l=n.filter(o=>r!==o),i===e.l.length&&console.error("[yjs] Tried to remove event handler that doesn't exist.")},yN=(e,r,n)=>Dv(e.l,[r,n]);class yh{constructor(r,n){this.client=r,this.clock=n}}const ah=(e,r)=>e===r||e!==null&&r!==null&&e.client===r.client&&e.clock===r.clock,fr=(e,r)=>new yh(e,r),yf=e=>{for(const[r,n]of e.doc.share.entries())if(n===e)return r;throw vo()},Tf=(e,r)=>{for(;r!==null;){if(r.parent===e)return!0;r=r.parent._item}return!1};class bf{constructor(r,n,i,o=0){this.type=r,this.tname=n,this.item=i,this.assoc=o}}const F1=e=>new bf(e.type==null?null:fr(e.type.client,e.type.clock),e.tname??null,e.item==null?null:fr(e.item.client,e.item.clock),e.assoc==null?0:e.assoc);class jV{constructor(r,n,i=0){this.type=r,this.index=n,this.assoc=i}}const GV=(e,r,n=0)=>new jV(e,r,n),Jm=(e,r,n)=>{let i=null,o=null;return e._item===null?o=yf(e):i=fr(e._item.id.client,e._item.id.clock),new bf(i,o,r,n)},r6=(e,r,n=0)=>{let i=e._start;if(n<0){if(r===0)return Jm(e,null,n);r--}for(;i!==null;){if(!i.deleted&&i.countable){if(i.length>r)return Jm(e,fr(i.id.client,i.id.clock+r),n);r-=i.length}if(i.right===null&&n<0)return Jm(e,i.lastId,n);i=i.right}return Jm(e,null,n)},qV=(e,r)=>{const n=Th(e,r),i=r.clock-n.id.clock;return{item:n,diff:i}},WV=(e,r,n=!0)=>{const i=r.store,o=e.item,s=e.type,a=e.tname,l=e.assoc;let u=null,c=0;if(o!==null){if(hi(i,o.client)<=o.clock)return null;const d=n?gT(i,o):qV(i,o),h=d.item;if(!(h instanceof Cn))return null;if(u=h.parent,u._item===null||!u._item.deleted){c=h.deleted||!h.countable?0:d.diff+(l>=0?0:1);let p=h.left;for(;p!==null;)!p.deleted&&p.countable&&(c+=p.length),p=p.left}}else{if(a!==null)u=r.get(a);else if(s!==null){if(hi(i,s.client)<=s.clock)return null;const{item:d}=n?gT(i,s):{item:Th(i,s)};if(d instanceof Cn&&d.content instanceof Ba)u=d.content.type;else return null}else throw vo();l>=0?c=u._length:c=0}return GV(u,c,e.assoc)},X8=(e,r)=>e===r||e!==null&&r!==null&&e.tname===r.tname&&ah(e.item,r.item)&&ah(e.type,r.type)&&e.assoc===r.assoc;class Hv{constructor(r,n){this.ds=r,this.sv=n}}const TN=(e,r)=>new Hv(e,r),n6=e=>TN(lN(e.store),Jf(e.store)),Oc=(e,r)=>r===void 0?!e.deleted:r.sv.has(e.id.client)&&(r.sv.get(e.id.client)||0)>e.id.clock&&!lp(r.ds,e.id),pT=(e,r)=>{const n=aa(e.meta,pT,T0),i=e.doc.store;n.has(r)||(r.sv.forEach((o,s)=>{o{}),n.add(r))};class bN{constructor(){this.clients=new Map,this.pendingStructs=null,this.pendingDs=null}}const Jf=e=>{const r=new Map;return e.clients.forEach((n,i)=>{const o=n[n.length-1];r.set(i,o.id.clock+o.length)}),r},hi=(e,r)=>{const n=e.clients.get(r);if(n===void 0)return 0;const i=n[n.length-1];return i.id.clock+i.length},vN=(e,r)=>{let n=e.clients.get(r.id.client);if(n===void 0)n=[],e.clients.set(r.id.client,n);else{const i=n[n.length-1];if(i.id.clock+i.length!==r.id.clock)throw vo()}n.push(r)},Na=(e,r)=>{let n=0,i=e.length-1,o=e[i],s=o.id.clock;if(s===r)return i;let a=ra(r/(s+o.length-1)*i);for(;n<=i;){if(o=e[a],s=o.id.clock,s<=r){if(r{const n=e.clients.get(r.client);return n[Na(n,r.clock)]},Th=KV,fT=(e,r,n)=>{const i=Na(r,n),o=r[i];return o.id.clock{const n=e.doc.store.clients.get(r.client);return n[fT(e,n,r.clock)]},eE=(e,r,n)=>{const i=r.clients.get(n.client),o=Na(i,n.clock),s=i[o];return n.clock!==s.id.clock+s.length-1&&s.constructor!==Vs&&i.splice(o+1,0,Q2(e,s,n.clock-s.id.clock+1)),s},QV=(e,r,n)=>{const i=e.clients.get(r.id.client);i[Na(i,r.id.clock)]=n},AN=(e,r,n,i,o)=>{if(i===0)return;const s=n+i;let a=fT(e,r,n),l;do l=r[a++],sr.deleteSet.clients.size===0&&!C$(r.afterState,(n,i)=>r.beforeState.get(i)!==n)?!1:(Iv(r.deleteSet),LV(e,r),up(e,r.deleteSet),!0),rE=(e,r,n)=>{const i=r._item;(i===null||i.id.clock<(e.beforeState.get(i.id.client)||0)&&!i.deleted)&&aa(e.changed,r,T0).add(n)},t2=(e,r)=>{let n=e[r],i=e[r-1],o=r;for(;o>0;n=i,i=e[--o-1]){if(i.deleted===n.deleted&&i.constructor===n.constructor&&i.mergeWith(n)){n instanceof Cn&&n.parentSub!==null&&n.parent._map.get(n.parentSub)===n&&n.parent._map.set(n.parentSub,i);continue}break}const s=r-o;return s&&e.splice(r+1-s,s),s},XV=(e,r,n)=>{for(const[i,o]of e.clients.entries()){const s=r.clients.get(i);for(let a=o.length-1;a>=0;a--){const l=o[a],u=l.clock+l.len;for(let c=Na(s,l.clock),d=s[c];c{e.clients.forEach((n,i)=>{const o=r.clients.get(i);for(let s=n.length-1;s>=0;s--){const a=n[s],l=bl(o.length-1,1+Na(o,a.clock+a.len-1));for(let u=l,c=o[u];u>0&&c.id.clock>=a.clock;c=o[u])u-=1+t2(o,u)}})},EN=(e,r)=>{if(rl.push(()=>{(c._item===null||!c._item.deleted)&&c._callObserver(n,u)})),l.push(()=>{n.changedParentTypes.forEach((u,c)=>{c._dEH.l.length>0&&(c._item===null||!c._item.deleted)&&(u=u.filter(d=>d.target._item===null||!d.target._item.deleted),u.forEach(d=>{d.currentTarget=c,d._path=null}),u.sort((d,h)=>d.path.length-h.path.length),l.push(()=>{yN(c._dEH,u,n)}))}),l.push(()=>i.emit("afterTransaction",[n,i])),l.push(()=>{n._needFormattingCleanup&&Aj(n)})}),Dv(l,[])}finally{i.gc&&XV(s,o,i.gcFilter),ej(s,o),n.afterState.forEach((d,h)=>{const p=n.beforeState.get(h)||0;if(p!==d){const f=o.clients.get(h),m=_a(Na(f,p),1);for(let v=f.length-1;v>=m;)v-=1+t2(f,v)}});for(let d=a.length-1;d>=0;d--){const{client:h,clock:p}=a[d].id,f=o.clients.get(h),m=Na(f,p);m+11||m>0&&t2(f,m)}if(!n.local&&n.afterState.get(i.clientID)!==n.beforeState.get(i.clientID)&&(NV(Rv,eN,"[yjs] ",tN,rN,"Changed the client-id because another client seems to be using it."),i.clientID=uN()),i.emit("afterTransactionCleanup",[n,i]),i._observers.has("update")){const d=new Qf;tE(d,n)&&i.emit("update",[d.toUint8Array(),n.origin,i,n])}if(i._observers.has("updateV2")){const d=new ed;tE(d,n)&&i.emit("updateV2",[d.toUint8Array(),n.origin,i,n])}const{subdocsAdded:l,subdocsLoaded:u,subdocsRemoved:c}=n;(l.size>0||c.size>0||u.size>0)&&(l.forEach(d=>{d.clientID=i.clientID,d.collectionid==null&&(d.collectionid=i.collectionid),i.subdocs.add(d)}),c.forEach(d=>i.subdocs.delete(d)),i.emit("subdocs",[{loaded:u,added:l,removed:c},i,n]),c.forEach(d=>d.destroy())),e.length<=r+1?(i._transactionCleanups=[],i.emit("afterAllTransactions",[i,e])):EN(e,r+1)}}},bn=(e,r,n=null,i=!0)=>{const o=e._transactionCleanups;let s=!1,a=null;e._transaction===null&&(s=!0,e._transaction=new JV(e,n,i),o.push(e._transaction),o.length===1&&e.emit("beforeAllTransactions",[e]),e.emit("beforeTransaction",[e._transaction,e]));try{a=r(e._transaction)}finally{if(s){const l=e._transaction===o[0];e._transaction=null,l&&EN(o,0)}}return a};class tj{constructor(r,n){this.insertions=n,this.deletions=r,this.meta=new Map}}const nE=(e,r,n)=>{$u(e,n.deletions,i=>{i instanceof Cn&&r.scope.some(o=>o===e.doc||Tf(o,i))&&qv(i,!1)})},iE=(e,r,n)=>{let i=null;const o=e.doc,s=e.scope;bn(o,l=>{for(;r.length>0&&e.currStackItem===null;){const u=o.store,c=r.pop(),d=new Set,h=[];let p=!1;$u(l,c.insertions,f=>{if(f instanceof Cn){if(f.redone!==null){let{item:m,diff:v}=gT(u,f.id);v>0&&(m=Qo(l,fr(m.id.client,m.id.clock+v))),f=m}!f.deleted&&s.some(m=>m===l.doc||Tf(m,f))&&h.push(f)}}),$u(l,c.deletions,f=>{f instanceof Cn&&s.some(m=>m===l.doc||Tf(m,f))&&!lp(c.insertions,f.id)&&d.add(f)}),d.forEach(f=>{p=ZN(l,f,d,c.insertions,e.ignoreRemoteMapChanges,e)!==null||p});for(let f=h.length-1;f>=0;f--){const m=h[f];e.deleteFilter(m)&&(m.delete(l),p=!0)}e.currStackItem=p?c:null}l.changed.forEach((u,c)=>{u.has(null)&&c._searchMarker&&(c._searchMarker.length=0)}),i=l},e);const a=e.currStackItem;if(a!=null){const l=i.changedParentTypes;e.emit("stack-item-popped",[{stackItem:a,type:n,changedParentTypes:l,origin:e},e]),e.currStackItem=null}return a};class wN extends E_{constructor(r,{captureTimeout:n=500,captureTransaction:i=u=>!0,deleteFilter:o=()=>!0,trackedOrigins:s=new Set([null]),ignoreRemoteMapChanges:a=!1,doc:l=Oh(r)?r[0].doc:r instanceof tc?r:r.doc}={}){super(),this.scope=[],this.doc=l,this.addToScope(r),this.deleteFilter=o,s.add(this),this.trackedOrigins=s,this.captureTransaction=i,this.undoStack=[],this.redoStack=[],this.undoing=!1,this.redoing=!1,this.currStackItem=null,this.lastChange=0,this.ignoreRemoteMapChanges=a,this.captureTimeout=n,this.afterTransactionHandler=u=>{if(!this.captureTransaction(u)||!this.scope.some(w=>u.changedParentTypes.has(w)||w===this.doc)||!this.trackedOrigins.has(u.origin)&&(!u.origin||!this.trackedOrigins.has(u.origin.constructor)))return;const c=this.undoing,d=this.redoing,h=c?this.redoStack:this.undoStack;c?this.stopCapturing():d||this.clear(!1,!0);const p=new ap;u.afterState.forEach((w,x)=>{const k=u.beforeState.get(x)||0,R=w-k;R>0&&gf(p,x,k,R)});const f=Pu();let m=!1;if(this.lastChange>0&&f-this.lastChange0&&!c&&!d){const w=h[h.length-1];w.deletions=hT([w.deletions,u.deleteSet]),w.insertions=hT([w.insertions,p])}else h.push(new tj(u.deleteSet,p)),m=!0;!c&&!d&&(this.lastChange=f),$u(u,u.deleteSet,w=>{w instanceof Cn&&this.scope.some(x=>x===u.doc||Tf(x,w))&&qv(w,!0)});const v=[{stackItem:h[h.length-1],origin:u.origin,type:c?"redo":"undo",changedParentTypes:u.changedParentTypes},this];m?this.emit("stack-item-added",v):this.emit("stack-item-updated",v)},this.doc.on("afterTransaction",this.afterTransactionHandler),this.doc.on("destroy",()=>{this.destroy()})}addToScope(r){const n=new Set(this.scope);r=Oh(r)?r:[r],r.forEach(i=>{n.has(i)||(n.add(i),(i instanceof qi?i.doc!==this.doc:i!==this.doc)&&iN("[yjs#509] Not same Y.Doc"),this.scope.push(i))})}addTrackedOrigin(r){this.trackedOrigins.add(r)}removeTrackedOrigin(r){this.trackedOrigins.delete(r)}clear(r=!0,n=!0){(r&&this.canUndo()||n&&this.canRedo())&&this.doc.transact(i=>{r&&(this.undoStack.forEach(o=>nE(i,this,o)),this.undoStack=[]),n&&(this.redoStack.forEach(o=>nE(i,this,o)),this.redoStack=[]),this.emit("stack-cleared",[{undoStackCleared:r,redoStackCleared:n}])})}stopCapturing(){this.lastChange=0}undo(){this.undoing=!0;let r;try{r=iE(this,this.undoStack,"undo")}finally{this.undoing=!1}return r}redo(){this.redoing=!0;let r;try{r=iE(this,this.redoStack,"redo")}finally{this.redoing=!1}return r}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this),this.doc.off("afterTransaction",this.afterTransactionHandler),super.destroy()}}function*rj(e){const r=pr(e.restDecoder);for(let n=0;nj2(e,dN,Qf),ij=(e,r)=>{if(e.constructor===Vs){const{client:n,clock:i}=e.id;return new Vs(fr(n,i+r),e.length-r)}else if(e.constructor===js){const{client:n,clock:i}=e.id;return new js(fr(n,i+r),e.length-r)}else{const n=e,{client:i,clock:o}=n.id;return new Cn(fr(i,o+r),null,fr(i,o+r-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(r))}},j2=(e,r=Ih,n=ed)=>{if(e.length===1)return e[0];const i=e.map(d=>new r(k0(d)));let o=i.map(d=>new Pv(d,!0)),s=null;const a=new n,l=new Zv(a);for(;o=o.filter(d=>d.curr!==null),o.sort((d,h)=>{if(d.curr.id.client===h.curr.id.client){const p=d.curr.id.clock-h.curr.id.clock;return p===0?d.curr.constructor===h.curr.constructor?0:d.curr.constructor===js?1:-1:p}else return h.curr.id.client-d.curr.id.client}),o.length!==0;){const d=o[0],h=d.curr.id.client;if(s!==null){let p=d.curr,f=!1;for(;p!==null&&p.id.clock+p.length<=s.struct.id.clock+s.struct.length&&p.id.client>=s.struct.id.client;)p=d.next(),f=!0;if(p===null||p.id.client!==h||f&&p.id.clock>s.struct.id.clock+s.struct.length)continue;if(h!==s.struct.id.client)du(l,s.struct,s.offset),s={struct:p,offset:0},d.next();else if(s.struct.id.clock+s.struct.length0&&(s.struct.constructor===js?s.struct.length-=m:p=ij(p,m)),s.struct.mergeWith(p)||(du(l,s.struct,s.offset),s={struct:p,offset:0},d.next())}}else s={struct:d.curr,offset:0},d.next();for(let p=d.curr;p!==null&&p.id.client===h&&p.id.clock===s.struct.id.clock+s.struct.length&&p.constructor!==js;p=d.next())du(l,s.struct,s.offset),s={struct:p,offset:0}}s!==null&&(du(l,s.struct,s.offset),s=null),$v(l);const u=i.map(d=>Lv(d)),c=hT(u);return up(a,c),a.toUint8Array()},oj=(e,r,n=Ih,i=ed)=>{const o=fN(r),s=new i,a=new Zv(s),l=new n(k0(e)),u=new Pv(l,!1);for(;u.curr;){const d=u.curr,h=d.id.client,p=o.get(h)||0;if(u.curr.constructor===js){u.next();continue}if(d.id.clock+d.length>p)for(du(a,d,_a(p-d.id.clock,0)),u.next();u.curr&&u.curr.id.client===h;)du(a,u.curr,0),u.next();else for(;u.curr&&u.curr.id.client===h&&u.curr.id.clock+u.curr.length<=p;)u.next()}$v(a);const c=Lv(l);return up(s,c),s.toUint8Array()},SN=e=>{e.written>0&&(e.clientStructs.push({written:e.written,restEncoder:Gn(e.encoder.restEncoder)}),e.encoder.restEncoder=$i(),e.written=0)},du=(e,r,n)=>{e.written>0&&e.currClient!==r.id.client&&SN(e),e.written===0&&(e.currClient=r.id.client,e.encoder.writeClient(r.id.client),Ut(e.encoder.restEncoder,r.id.clock+n)),r.write(e.encoder,n),e.written++},$v=e=>{SN(e);const r=e.encoder.restEncoder;Ut(r,e.clientStructs.length);for(let n=0;n{const o=new n(k0(e)),s=new Pv(o,!1),a=new i,l=new Zv(a);for(let c=s.curr;c!==null;c=s.next())du(l,r(c),0);$v(l);const u=Lv(o);return up(a,u),a.toUint8Array()},aj=e=>sj(e,DU,Ih,Qf),oE="You must not compute changes after the event-handler fired.";class _3{constructor(r,n){this.target=r,this.currentTarget=r,this.transaction=n,this._changes=null,this._keys=null,this._delta=null,this._path=null}get path(){return this._path||(this._path=lj(this.currentTarget,this.target))}deletes(r){return lp(this.transaction.deleteSet,r.id)}get keys(){if(this._keys===null){if(this.transaction.doc._transactionCleanups.length===0)throw kl(oE);const r=new Map,n=this.target;this.transaction.changed.get(n).forEach(i=>{if(i!==null){const o=n._map.get(i);let s,a;if(this.adds(o)){let l=o.left;for(;l!==null&&this.adds(l);)l=l.left;if(this.deletes(o))if(l!==null&&this.deletes(l))s="delete",a=q5(l.content.getContent());else return;else l!==null&&this.deletes(l)?(s="update",a=q5(l.content.getContent())):(s="add",a=void 0)}else if(this.deletes(o))s="delete",a=q5(o.content.getContent());else return;r.set(i,{action:s,oldValue:a})}}),this._keys=r}return this._keys}get delta(){return this.changes.delta}adds(r){return r.id.clock>=(this.transaction.beforeState.get(r.id.client)||0)}get changes(){let r=this._changes;if(r===null){if(this.transaction.doc._transactionCleanups.length===0)throw kl(oE);const n=this.target,i=T0(),o=T0(),s=[];if(r={added:i,deleted:o,delta:s,keys:this.keys},this.transaction.changed.get(n).has(null)){let a=null;const l=()=>{a&&s.push(a)};for(let u=n._start;u!==null;u=u.right)u.deleted?this.deletes(u)&&!this.adds(u)&&((a===null||a.delete===void 0)&&(l(),a={delete:0}),a.delete+=u.length,o.add(u)):this.adds(u)?((a===null||a.insert===void 0)&&(l(),a={insert:[]}),a.insert=a.insert.concat(u.content.getContent()),i.add(u)):((a===null||a.retain===void 0)&&(l(),a={retain:0}),a.retain+=u.length);a!==null&&a.retain===void 0&&l()}this._changes=r}return r}}const lj=(e,r)=>{const n=[];for(;r._item!==null&&r!==e;){if(r._item.parentSub!==null)n.unshift(r._item.parentSub);else{let i=0,o=r._item.parent._start;for(;o!==r._item&&o!==null;)!o.deleted&&o.countable&&(i+=o.length),o=o.right;n.unshift(i)}r=r._item.parent}return n},To=()=>{iN("Invalid access: Add Yjs type to a document before reading data.")},DN=80;let Uv=0;class uj{constructor(r,n){r.marker=!0,this.p=r,this.index=n,this.timestamp=Uv++}}const cj=e=>{e.timestamp=Uv++},xN=(e,r,n)=>{e.p.marker=!1,e.p=r,r.marker=!0,e.index=n,e.timestamp=Uv++},dj=(e,r,n)=>{if(e.length>=DN){const i=e.reduce((o,s)=>o.timestamp{if(e._start===null||r===0||e._searchMarker===null)return null;const n=e._searchMarker.length===0?null:e._searchMarker.reduce((s,a)=>Jg(r-s.index)r;)i=i.left,!i.deleted&&i.countable&&(o-=i.length);for(;i.left!==null&&i.left.id.client===i.id.client&&i.left.id.clock+i.left.length===i.id.clock;)i=i.left,!i.deleted&&i.countable&&(o-=i.length);return n!==null&&Jg(n.index-o){for(let i=e.length-1;i>=0;i--){const o=e[i];if(n>0){let s=o.p;for(s.marker=!1;s&&(s.deleted||!s.countable);)s=s.left,s&&!s.deleted&&s.countable&&(o.index-=s.length);if(s===null||s.marker===!0){e.splice(i,1);continue}o.p=s,s.marker=!0}(r0&&r===o.index)&&(o.index=_a(r,o.index+n))}},F3=(e,r,n)=>{const i=e,o=r.changedParentTypes;for(;aa(o,e,()=>[]).push(n),e._item!==null;)e=e._item.parent;yN(i._eH,n,r)};class qi{constructor(){this._item=null,this._map=new Map,this._start=null,this.doc=null,this._length=0,this._eH=K8(),this._dEH=K8(),this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(r,n){this.doc=r,this._item=n}_copy(){throw Qs()}clone(){throw Qs()}_write(r){}get _first(){let r=this._start;for(;r!==null&&r.deleted;)r=r.right;return r}_callObserver(r,n){!r.local&&this._searchMarker&&(this._searchMarker.length=0)}observe(r){Q8(this._eH,r)}observeDeep(r){Q8(this._dEH,r)}unobserve(r){J8(this._eH,r)}unobserveDeep(r){J8(this._dEH,r)}toJSON(){}}const kN=(e,r,n)=>{e.doc??To(),r<0&&(r=e._length+r),n<0&&(n=e._length+n);let i=n-r;const o=[];let s=e._start;for(;s!==null&&i>0;){if(s.countable&&!s.deleted){const a=s.content.getContent();if(a.length<=r)r-=a.length;else{for(let l=r;l0;l++)o.push(a[l]),i--;r=0}}s=s.right}return o},CN=e=>{e.doc??To();const r=[];let n=e._start;for(;n!==null;){if(n.countable&&!n.deleted){const i=n.content.getContent();for(let o=0;o{const n=[];let i=e._start;for(;i!==null;){if(i.countable&&Oc(i,r)){const o=i.content.getContent();for(let s=0;s{let n=0,i=e._start;for(e.doc??To();i!==null;){if(i.countable&&!i.deleted){const o=i.content.getContent();for(let s=0;s{const n=[];return Af(e,(i,o)=>{n.push(r(i,o,e))}),n},hj=e=>{let r=e._start,n=null,i=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){for(;r!==null&&r.deleted;)r=r.right;if(r===null)return{done:!0,value:void 0};n=r.content.getContent(),i=0,r=r.right}const o=n[i++];return n.length<=i&&(n=null),{done:!1,value:o}}}},FN=(e,r)=>{e.doc??To();const n=N3(e,r);let i=e._start;for(n!==null&&(i=n.p,r-=n.index);i!==null;i=i.right)if(!i.deleted&&i.countable){if(r{let o=n;const s=e.doc,a=s.clientID,l=s.store,u=n===null?r._start:n.right;let c=[];const d=()=>{c.length>0&&(o=new Cn(fr(a,hi(l,a)),o,o&&o.lastId,u,u&&u.id,r,null,new rd(c)),o.integrate(e,0),c=[])};i.forEach(h=>{if(h===null)c.push(h);else switch(h.constructor){case Number:case Object:case Boolean:case Array:case String:c.push(h);break;default:switch(d(),h.constructor){case Uint8Array:case ArrayBuffer:o=new Cn(fr(a,hi(l,a)),o,o&&o.lastId,u,u&&u.id,r,null,new Xf(new Uint8Array(h))),o.integrate(e,0);break;case tc:o=new Cn(fr(a,hi(l,a)),o,o&&o.lastId,u,u&&u.id,r,null,new em(h)),o.integrate(e,0);break;default:if(h instanceof qi)o=new Cn(fr(a,hi(l,a)),o,o&&o.lastId,u,u&&u.id,r,null,new Ba(h)),o.integrate(e,0);else throw new Error("Unexpected content type in insert operation")}}}),d()},ON=()=>kl("Length exceeded!"),MN=(e,r,n,i)=>{if(n>r._length)throw ON();if(n===0)return r._searchMarker&&vf(r._searchMarker,n,i.length),G2(e,r,null,i);const o=n,s=N3(r,n);let a=r._start;for(s!==null&&(a=s.p,n-=s.index,n===0&&(a=a.prev,n+=a&&a.countable&&!a.deleted?a.length:0));a!==null;a=a.right)if(!a.deleted&&a.countable){if(n<=a.length){n{let i=(r._searchMarker||[]).reduce((o,s)=>s.index>o.index?s:o,{index:0,p:r._start}).p;if(i)for(;i.right;)i=i.right;return G2(e,r,i,n)},RN=(e,r,n,i)=>{if(i===0)return;const o=n,s=i,a=N3(r,n);let l=r._start;for(a!==null&&(l=a.p,n-=a.index);l!==null&&n>0;l=l.right)!l.deleted&&l.countable&&(n0&&l!==null;)l.deleted||(i0)throw ON();r._searchMarker&&vf(r._searchMarker,o,-s+i)},q2=(e,r,n)=>{const i=r._map.get(n);i!==void 0&&i.delete(e)},Vv=(e,r,n,i)=>{const o=r._map.get(n)||null,s=e.doc,a=s.clientID;let l;if(i==null)l=new rd([i]);else switch(i.constructor){case Number:case Object:case Boolean:case Array:case String:case Date:case BigInt:l=new rd([i]);break;case Uint8Array:l=new Xf(i);break;case tc:l=new em(i);break;default:if(i instanceof qi)l=new Ba(i);else throw new Error("Unexpected content type")}new Cn(fr(a,hi(s.store,a)),o,o&&o.lastId,null,null,r,n,l).integrate(e,0)},jv=(e,r)=>{e.doc??To();const n=e._map.get(r);return n!==void 0&&!n.deleted?n.content.getContent()[n.length-1]:void 0},BN=e=>{const r={};return e.doc??To(),e._map.forEach((n,i)=>{n.deleted||(r[i]=n.content.getContent()[n.length-1])}),r},IN=(e,r)=>{e.doc??To();const n=e._map.get(r);return n!==void 0&&!n.deleted},fj=(e,r)=>{const n={};return e._map.forEach((i,o)=>{let s=i;for(;s!==null&&(!r.sv.has(s.id.client)||s.id.clock>=(r.sv.get(s.id.client)||0));)s=s.left;s!==null&&Oc(s,r)&&(n[o]=s.content.getContent()[s.length-1])}),n},Xm=e=>(e.doc??To(),FV(e._map.entries(),r=>!r[1].deleted));class mj extends _3{}class bh extends qi{constructor(){super(),this._prelimContent=[],this._searchMarker=[]}static from(r){const n=new bh;return n.push(r),n}_integrate(r,n){super._integrate(r,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new bh}clone(){const r=new bh;return r.insert(0,this.toArray().map(n=>n instanceof qi?n.clone():n)),r}get length(){return this.doc??To(),this._length}_callObserver(r,n){super._callObserver(r,n),F3(this,r,new mj(this,r))}insert(r,n){this.doc!==null?bn(this.doc,i=>{MN(i,this,r,n)}):this._prelimContent.splice(r,0,...n)}push(r){this.doc!==null?bn(this.doc,n=>{pj(n,this,r)}):this._prelimContent.push(...r)}unshift(r){this.insert(0,r)}delete(r,n=1){this.doc!==null?bn(this.doc,i=>{RN(i,this,r,n)}):this._prelimContent.splice(r,n)}get(r){return FN(this,r)}toArray(){return CN(this)}slice(r=0,n=this.length){return kN(this,r,n)}toJSON(){return this.map(r=>r instanceof qi?r.toJSON():r)}map(r){return NN(this,r)}forEach(r){Af(this,r)}[Symbol.iterator](){return hj(this)}_write(r){r.writeTypeRef(Hj)}}const gj=e=>new bh;class yj extends _3{constructor(r,n,i){super(r,n),this.keysChanged=i}}class Lh extends qi{constructor(r){super(),this._prelimContent=null,r===void 0?this._prelimContent=new Map:this._prelimContent=new Map(r)}_integrate(r,n){super._integrate(r,n),this._prelimContent.forEach((i,o)=>{this.set(o,i)}),this._prelimContent=null}_copy(){return new Lh}clone(){const r=new Lh;return this.forEach((n,i)=>{r.set(i,n instanceof qi?n.clone():n)}),r}_callObserver(r,n){F3(this,r,new yj(this,r,n))}toJSON(){this.doc??To();const r={};return this._map.forEach((n,i)=>{if(!n.deleted){const o=n.content.getContent()[n.length-1];r[i]=o instanceof qi?o.toJSON():o}}),r}get size(){return[...Xm(this)].length}keys(){return t6(Xm(this),r=>r[0])}values(){return t6(Xm(this),r=>r[1].content.getContent()[r[1].length-1])}entries(){return t6(Xm(this),r=>[r[0],r[1].content.getContent()[r[1].length-1]])}forEach(r){this.doc??To(),this._map.forEach((n,i)=>{n.deleted||r(n.content.getContent()[n.length-1],i,this)})}[Symbol.iterator](){return this.entries()}delete(r){this.doc!==null?bn(this.doc,n=>{q2(n,this,r)}):this._prelimContent.delete(r)}set(r,n){return this.doc!==null?bn(this.doc,i=>{Vv(i,this,r,n)}):this._prelimContent.set(r,n),n}get(r){return jv(this,r)}has(r){return IN(this,r)}clear(){this.doc!==null?bn(this.doc,r=>{this.forEach(function(n,i,o){q2(r,o,i)})}):this._prelimContent.clear()}_write(r){r.writeTypeRef(Pj)}}const Tj=e=>new Lh,vu=(e,r)=>e===r||typeof e=="object"&&typeof r=="object"&&e&&r&&wU(e,r);class mT{constructor(r,n,i,o){this.left=r,this.right=n,this.index=i,this.currentAttributes=o}forward(){(this.right===null&&vo(),this.right.content.constructor)===Ei?this.right.deleted||cp(this.currentAttributes,this.right.content):this.right.deleted||(this.index+=this.right.length),this.left=this.right,this.right=this.right.right}}const sE=(e,r,n)=>{for(;r.right!==null&&n>0;)r.right.content.constructor===Ei?r.right.deleted||cp(r.currentAttributes,r.right.content):r.right.deleted||(n{const o=new Map,s=i?N3(r,n):null;if(s){const a=new mT(s.p.left,s.p,s.index,o);return sE(e,a,n-s.index)}else{const a=new mT(null,r._start,0,o);return sE(e,a,n)}},LN=(e,r,n,i)=>{for(;n.right!==null&&(n.right.deleted===!0||n.right.content.constructor===Ei&&vu(i.get(n.right.content.key),n.right.content.value));)n.right.deleted||i.delete(n.right.content.key),n.forward();const o=e.doc,s=o.clientID;i.forEach((a,l)=>{const u=n.left,c=n.right,d=new Cn(fr(s,hi(o.store,s)),u,u&&u.lastId,c,c&&c.id,r,null,new Ei(l,a));d.integrate(e,0),n.right=d,n.forward()})},cp=(e,r)=>{const{key:n,value:i}=r;i===null?e.delete(n):e.set(n,i)},zN=(e,r)=>{for(;e.right!==null&&(e.right.deleted||e.right.content.constructor===Ei&&vu(r[e.right.content.key]??null,e.right.content.value));)e.forward()},YN=(e,r,n,i)=>{const o=e.doc,s=o.clientID,a=new Map;for(const l in i){const u=i[l],c=n.currentAttributes.get(l)??null;if(!vu(c,u)){a.set(l,c);const{left:d,right:h}=n;n.right=new Cn(fr(s,hi(o.store,s)),d,d&&d.lastId,h,h&&h.id,r,null,new Ei(l,u)),n.right.integrate(e,0),n.forward()}}return a},i6=(e,r,n,i,o)=>{n.currentAttributes.forEach((p,f)=>{o[f]===void 0&&(o[f]=null)});const s=e.doc,a=s.clientID;zN(n,o);const l=YN(e,r,n,o),u=i.constructor===String?new Fa(i):i instanceof qi?new Ba(i):new dd(i);let{left:c,right:d,index:h}=n;r._searchMarker&&vf(r._searchMarker,n.index,u.getLength()),d=new Cn(fr(a,hi(s.store,a)),c,c&&c.lastId,d,d&&d.id,r,null,u),d.integrate(e,0),n.right=d,n.index=h,n.forward(),LN(e,r,n,l)},aE=(e,r,n,i,o)=>{const s=e.doc,a=s.clientID;zN(n,o);const l=YN(e,r,n,o);e:for(;n.right!==null&&(i>0||l.size>0&&(n.right.deleted||n.right.content.constructor===Ei));){if(!n.right.deleted)switch(n.right.content.constructor){case Ei:{const{key:u,value:c}=n.right.content,d=o[u];if(d!==void 0){if(vu(d,c))l.delete(u);else{if(i===0)break e;l.set(u,c)}n.right.delete(e)}else n.currentAttributes.set(u,c);break}default:i0){let u="";for(;i>0;i--)u+=` `;n.right=new Cn(fr(a,hi(s.store,a)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,r,null,new Fa(u)),n.right.integrate(e,0),n.forward()}LN(e,r,n,l)},HN=(e,r,n,i,o)=>{let s=r;const a=Ro();for(;s&&(!s.countable||s.deleted);){if(!s.deleted&&s.content.constructor===Ei){const c=s.content;a.set(c.key,c)}s=s.right}let l=0,u=!1;for(;r!==s;){if(n===r&&(u=!0),!r.deleted){const c=r.content;if(c.constructor===Ei){const{key:d,value:h}=c,p=i.get(d)??null;(a.get(d)!==c||p===h)&&(r.delete(e),l++,!u&&(o.get(d)??null)===h&&p!==h&&(p===null?o.delete(d):o.set(d,p))),!u&&!r.deleted&&cp(o,c)}}r=r.right}return l},bj=(e,r)=>{for(;r&&r.right&&(r.right.deleted||!r.right.countable);)r=r.right;const n=new Set;for(;r&&(r.deleted||!r.countable);){if(!r.deleted&&r.content.constructor===Ei){const i=r.content.key;n.has(i)?r.delete(e):n.add(i)}r=r.left}},vj=e=>{let r=0;return bn(e.doc,n=>{let i=e._start,o=e._start,s=Ro();const a=sT(s);for(;o;)o.deleted===!1&&(o.content.constructor===Ei?cp(a,o.content):(r+=HN(n,i,o,s,a),s=sT(a),i=o)),o=o.right}),r},Aj=e=>{const r=new Set,n=e.doc;for(const[i,o]of e.afterState.entries()){const s=e.beforeState.get(i)||0;o!==s&&AN(e,n.store.clients.get(i),s,o,a=>{!a.deleted&&a.content.constructor===Ei&&a.constructor!==Vs&&r.add(a.parent)})}bn(n,i=>{$u(e,e.deleteSet,o=>{if(o instanceof Vs||!o.parent._hasFormatting||r.has(o.parent))return;const s=o.parent;o.content.constructor===Ei?r.add(s):bj(i,o)});for(const o of r)vj(o)})},lE=(e,r,n)=>{const i=n,o=sT(r.currentAttributes),s=r.right;for(;n>0&&r.right!==null;){if(r.right.deleted===!1)switch(r.right.content.constructor){case Ba:case dd:case Fa:n{o===null?this.childListChanged=!0:this.keysChanged.add(o)})}get changes(){if(this._changes===null){const r={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=r}return this._changes}get delta(){if(this._delta===null){const r=this.target.doc,n=[];bn(r,i=>{const o=new Map,s=new Map;let a=this.target._start,l=null;const u={};let c="",d=0,h=0;const p=()=>{if(l!==null){let f=null;switch(l){case"delete":h>0&&(f={delete:h}),h=0;break;case"insert":(typeof c=="object"||c.length>0)&&(f={insert:c},o.size>0&&(f.attributes={},o.forEach((m,v)=>{m!==null&&(f.attributes[v]=m)}))),c="";break;case"retain":d>0&&(f={retain:d},EU(u)||(f.attributes=bU({},u))),d=0;break}f&&n.push(f),l=null}};for(;a!==null;){switch(a.content.constructor){case Ba:case dd:this.adds(a)?this.deletes(a)||(p(),l="insert",c=a.content.getContent()[0],p()):this.deletes(a)?(l!=="delete"&&(p(),l="delete"),h+=1):a.deleted||(l!=="retain"&&(p(),l="retain"),d+=1);break;case Fa:this.adds(a)?this.deletes(a)||(l!=="insert"&&(p(),l="insert"),c+=a.content.str):this.deletes(a)?(l!=="delete"&&(p(),l="delete"),h+=a.length):a.deleted||(l!=="retain"&&(p(),l="retain"),d+=a.length);break;case Ei:{const{key:f,value:m}=a.content;if(this.adds(a)){if(!this.deletes(a)){const v=o.get(f)??null;vu(v,m)?m!==null&&a.delete(i):(l==="retain"&&p(),vu(m,s.get(f)??null)?delete u[f]:u[f]=m)}}else if(this.deletes(a)){s.set(f,m);const v=o.get(f)??null;vu(v,m)||(l==="retain"&&p(),u[f]=v)}else if(!a.deleted){s.set(f,m);const v=u[f];v!==void 0&&(vu(v,m)?v!==null&&a.delete(i):(l==="retain"&&p(),m===null?delete u[f]:u[f]=m))}a.deleted||(l==="insert"&&p(),cp(o,a.content));break}}a=a.right}for(p();n.length>0;){const f=n[n.length-1];if(f.retain!==void 0&&f.attributes===void 0)n.pop();else break}}),this._delta=n}return this._delta}}class Uu extends qi{constructor(r){super(),this._pending=r!==void 0?[()=>this.insert(0,r)]:[],this._searchMarker=[],this._hasFormatting=!1}get length(){return this.doc??To(),this._length}_integrate(r,n){super._integrate(r,n);try{this._pending.forEach(i=>i())}catch(i){console.error(i)}this._pending=null}_copy(){return new Uu}clone(){const r=new Uu;return r.applyDelta(this.toDelta()),r}_callObserver(r,n){super._callObserver(r,n);const i=new Ej(this,r,n);F3(this,r,i),!r.local&&this._hasFormatting&&(r._needFormattingCleanup=!0)}toString(){this.doc??To();let r="",n=this._start;for(;n!==null;)!n.deleted&&n.countable&&n.content.constructor===Fa&&(r+=n.content.str),n=n.right;return r}toJSON(){return this.toString()}applyDelta(r,{sanitize:n=!0}={}){this.doc!==null?bn(this.doc,i=>{const o=new mT(null,this._start,0,new Map);for(let s=0;s0)&&i6(i,this,o,l,a.attributes||{})}else a.retain!==void 0?aE(i,this,o,a.retain,a.attributes||{}):a.delete!==void 0&&lE(i,o,a.delete)}}):this._pending.push(()=>this.applyDelta(r))}toDelta(r,n,i){this.doc??To();const o=[],s=new Map,a=this.doc;let l="",u=this._start;function c(){if(l.length>0){const h={};let p=!1;s.forEach((m,v)=>{p=!0,h[v]=m});const f={insert:l};p&&(f.attributes=h),o.push(f),l=""}}const d=()=>{for(;u!==null;){if(Oc(u,r)||n!==void 0&&Oc(u,n))switch(u.content.constructor){case Fa:{const h=s.get("ychange");r!==void 0&&!Oc(u,r)?(h===void 0||h.user!==u.id.client||h.type!=="removed")&&(c(),s.set("ychange",i?i("removed",u.id):{type:"removed"})):n!==void 0&&!Oc(u,n)?(h===void 0||h.user!==u.id.client||h.type!=="added")&&(c(),s.set("ychange",i?i("added",u.id):{type:"added"})):h!==void 0&&(c(),s.delete("ychange")),l+=u.content.str;break}case Ba:case dd:{c();const h={insert:u.content.getContent()[0]};if(s.size>0){const p={};h.attributes=p,s.forEach((f,m)=>{p[m]=f})}o.push(h);break}case Ei:Oc(u,r)&&(c(),cp(s,u.content));break}u=u.right}c()};return r||n?bn(a,h=>{r&&pT(h,r),n&&pT(h,n),d()},"cleanup"):d(),o}insert(r,n,i){if(n.length<=0)return;const o=this.doc;o!==null?bn(o,s=>{const a=eg(s,this,r,!i);i||(i={},a.currentAttributes.forEach((l,u)=>{i[u]=l})),i6(s,this,a,n,i)}):this._pending.push(()=>this.insert(r,n,i))}insertEmbed(r,n,i){const o=this.doc;o!==null?bn(o,s=>{const a=eg(s,this,r,!i);i6(s,this,a,n,i||{})}):this._pending.push(()=>this.insertEmbed(r,n,i||{}))}delete(r,n){if(n===0)return;const i=this.doc;i!==null?bn(i,o=>{lE(o,eg(o,this,r,!0),n)}):this._pending.push(()=>this.delete(r,n))}format(r,n,i){if(n===0)return;const o=this.doc;o!==null?bn(o,s=>{const a=eg(s,this,r,!1);a.right!==null&&aE(s,this,a,n,i)}):this._pending.push(()=>this.format(r,n,i))}removeAttribute(r){this.doc!==null?bn(this.doc,n=>{q2(n,this,r)}):this._pending.push(()=>this.removeAttribute(r))}setAttribute(r,n){this.doc!==null?bn(this.doc,i=>{Vv(i,this,r,n)}):this._pending.push(()=>this.setAttribute(r,n))}getAttribute(r){return jv(this,r)}getAttributes(){return BN(this)}_write(r){r.writeTypeRef(Zj)}}const wj=e=>new Uu;class o6{constructor(r,n=()=>!0){this._filter=n,this._root=r,this._currentNode=r._start,this._firstCall=!0,r.doc??To()}[Symbol.iterator](){return this}next(){let r=this._currentNode,n=r&&r.content&&r.content.type;if(r!==null&&(!this._firstCall||r.deleted||!this._filter(n)))do if(n=r.content.type,!r.deleted&&(n.constructor===yo||n.constructor===td)&&n._start!==null)r=n._start;else for(;r!==null;){const i=r.next;if(i!==null){r=i;break}else r.parent===this._root?r=null:r=r.parent._item}while(r!==null&&(r.deleted||!this._filter(r.content.type)));return this._firstCall=!1,r===null?{value:void 0,done:!0}:(this._currentNode=r,{value:r.content.type,done:!1})}}class td extends qi{constructor(){super(),this._prelimContent=[]}get firstChild(){const r=this._first;return r?r.content.getContent()[0]:null}_integrate(r,n){super._integrate(r,n),this.insert(0,this._prelimContent),this._prelimContent=null}_copy(){return new td}clone(){const r=new td;return r.insert(0,this.toArray().map(n=>n instanceof qi?n.clone():n)),r}get length(){return this.doc??To(),this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(r){return new o6(this,r)}querySelector(r){r=r.toUpperCase();const n=new o6(this,i=>i.nodeName&&i.nodeName.toUpperCase()===r).next();return n.done?null:n.value}querySelectorAll(r){return r=r.toUpperCase(),b0(new o6(this,n=>n.nodeName&&n.nodeName.toUpperCase()===r))}_callObserver(r,n){F3(this,r,new xj(this,n,r))}toString(){return NN(this,r=>r.toString()).join("")}toJSON(){return this.toString()}toDOM(r=document,n={},i){const o=r.createDocumentFragment();return i!==void 0&&i._createAssociation(o,this),Af(this,s=>{o.insertBefore(s.toDOM(r,n,i),null)}),o}insert(r,n){this.doc!==null?bn(this.doc,i=>{MN(i,this,r,n)}):this._prelimContent.splice(r,0,...n)}insertAfter(r,n){if(this.doc!==null)bn(this.doc,i=>{const o=r&&r instanceof qi?r._item:r;G2(i,this,o,n)});else{const i=this._prelimContent,o=r===null?0:i.findIndex(s=>s===r)+1;if(o===0&&r!==null)throw kl("Reference item not found");i.splice(o,0,...n)}}delete(r,n=1){this.doc!==null?bn(this.doc,i=>{RN(i,this,r,n)}):this._prelimContent.splice(r,n)}toArray(){return CN(this)}push(r){this.insert(this.length,r)}unshift(r){this.insert(0,r)}get(r){return FN(this,r)}slice(r=0,n=this.length){return kN(this,r,n)}forEach(r){Af(this,r)}_write(r){r.writeTypeRef(Uj)}}const Sj=e=>new td;class yo extends td{constructor(r="UNDEFINED"){super(),this.nodeName=r,this._prelimAttrs=new Map}get nextSibling(){const r=this._item?this._item.next:null;return r?r.content.type:null}get prevSibling(){const r=this._item?this._item.prev:null;return r?r.content.type:null}_integrate(r,n){super._integrate(r,n),this._prelimAttrs.forEach((i,o)=>{this.setAttribute(o,i)}),this._prelimAttrs=null}_copy(){return new yo(this.nodeName)}clone(){const r=new yo(this.nodeName),n=this.getAttributes();return vU(n,(i,o)=>{r.setAttribute(o,i)}),r.insert(0,this.toArray().map(i=>i instanceof qi?i.clone():i)),r}toString(){const r=this.getAttributes(),n=[],i=[];for(const l in r)i.push(l);i.sort();const o=i.length;for(let l=0;l0?" "+n.join(" "):"";return`<${s}${a}>${super.toString()}`}removeAttribute(r){this.doc!==null?bn(this.doc,n=>{q2(n,this,r)}):this._prelimAttrs.delete(r)}setAttribute(r,n){this.doc!==null?bn(this.doc,i=>{Vv(i,this,r,n)}):this._prelimAttrs.set(r,n)}getAttribute(r){return jv(this,r)}hasAttribute(r){return IN(this,r)}getAttributes(r){return r?fj(this,r):BN(this)}toDOM(r=document,n={},i){const o=r.createElement(this.nodeName),s=this.getAttributes();for(const a in s){const l=s[a];typeof l=="string"&&o.setAttribute(a,l)}return Af(this,a=>{o.appendChild(a.toDOM(r,n,i))}),i!==void 0&&i._createAssociation(o,this),o}_write(r){r.writeTypeRef($j),r.writeKey(this.nodeName)}}const Dj=e=>new yo(e.readKey());class xj extends _3{constructor(r,n,i){super(r,i),this.childListChanged=!1,this.attributesChanged=new Set,n.forEach(o=>{o===null?this.childListChanged=!0:this.attributesChanged.add(o)})}}class W2 extends Lh{constructor(r){super(),this.hookName=r}_copy(){return new W2(this.hookName)}clone(){const r=new W2(this.hookName);return this.forEach((n,i)=>{r.set(i,n)}),r}toDOM(r=document,n={},i){const o=n[this.hookName];let s;return o!==void 0?s=o.createDom(this):s=document.createElement(this.hookName),s.setAttribute("data-yjs-hook",this.hookName),i!==void 0&&i._createAssociation(s,this),s}_write(r){r.writeTypeRef(Vj),r.writeKey(this.hookName)}}const kj=e=>new W2(e.readKey());class ts extends Uu{get nextSibling(){const r=this._item?this._item.next:null;return r?r.content.type:null}get prevSibling(){const r=this._item?this._item.prev:null;return r?r.content.type:null}_copy(){return new ts}clone(){const r=new ts;return r.applyDelta(this.toDelta()),r}toDOM(r=document,n,i){const o=r.createTextNode(this.toString());return i!==void 0&&i._createAssociation(o,this),o}toString(){return this.toDelta().map(r=>{const n=[];for(const o in r.attributes){const s=[];for(const a in r.attributes[o])s.push({key:a,value:r.attributes[o][a]});s.sort((a,l)=>a.keyo.nodeName=0;o--)i+=``;return i}).join("")}toJSON(){return this.toString()}_write(r){r.writeTypeRef(jj)}}const Cj=e=>new ts;class Gv{constructor(r,n){this.id=r,this.length=n}get deleted(){throw Qs()}mergeWith(r){return!1}write(r,n,i){throw Qs()}integrate(r,n){throw Qs()}}const _j=0;class Vs extends Gv{get deleted(){return!0}delete(){}mergeWith(r){return this.constructor!==r.constructor?!1:(this.length+=r.length,!0)}integrate(r,n){n>0&&(this.id.clock+=n,this.length-=n),vN(r.doc.store,this)}write(r,n){r.writeInfo(_j),r.writeLen(this.length-n)}getMissing(r,n){return null}}class Xf{constructor(r){this.content=r}getLength(){return 1}getContent(){return[this.content]}isCountable(){return!0}copy(){return new Xf(this.content)}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){}delete(r){}gc(r){}write(r,n){r.writeBuf(this.content)}getRef(){return 3}}const Nj=e=>new Xf(e.readBuf());class Ef{constructor(r){this.len=r}getLength(){return this.len}getContent(){return[]}isCountable(){return!1}copy(){return new Ef(this.len)}splice(r){const n=new Ef(this.len-r);return this.len=r,n}mergeWith(r){return this.len+=r.len,!0}integrate(r,n){gf(r.deleteSet,n.id.client,n.id.clock,this.len),n.markDeleted()}delete(r){}gc(r){}write(r,n){r.writeLen(this.len-n)}getRef(){return 1}}const Fj=e=>new Ef(e.readLen()),PN=(e,r)=>new tc({guid:e,...r,shouldLoad:r.shouldLoad||r.autoLoad||!1});class em{constructor(r){r._item&&console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid."),this.doc=r;const n={};this.opts=n,r.gc||(n.gc=!1),r.autoLoad&&(n.autoLoad=!0),r.meta!==null&&(n.meta=r.meta)}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return!0}copy(){return new em(PN(this.doc.guid,this.opts))}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){this.doc._item=n,r.subdocsAdded.add(this.doc),this.doc.shouldLoad&&r.subdocsLoaded.add(this.doc)}delete(r){r.subdocsAdded.has(this.doc)?r.subdocsAdded.delete(this.doc):r.subdocsRemoved.add(this.doc)}gc(r){}write(r,n){r.writeString(this.doc.guid),r.writeAny(this.opts)}getRef(){return 9}}const Oj=e=>new em(PN(e.readString(),e.readAny()));class dd{constructor(r){this.embed=r}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return!0}copy(){return new dd(this.embed)}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){}delete(r){}gc(r){}write(r,n){r.writeJSON(this.embed)}getRef(){return 5}}const Mj=e=>new dd(e.readJSON());class Ei{constructor(r,n){this.key=r,this.value=n}getLength(){return 1}getContent(){return[]}isCountable(){return!1}copy(){return new Ei(this.key,this.value)}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){const i=n.parent;i._searchMarker=null,i._hasFormatting=!0}delete(r){}gc(r){}write(r,n){r.writeKey(this.key),r.writeJSON(this.value)}getRef(){return 6}}const Rj=e=>new Ei(e.readKey(),e.readJSON());class K2{constructor(r){this.arr=r}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return!0}copy(){return new K2(this.arr)}splice(r){const n=new K2(this.arr.slice(r));return this.arr=this.arr.slice(0,r),n}mergeWith(r){return this.arr=this.arr.concat(r.arr),!0}integrate(r,n){}delete(r){}gc(r){}write(r,n){const i=this.arr.length;r.writeLen(i-n);for(let o=n;o{const r=e.readLen(),n=[];for(let i=0;i{const r=e.readLen(),n=[];for(let i=0;i=55296&&i<=56319&&(this.str=this.str.slice(0,r-1)+"�",n.str="�"+n.str.slice(1)),n}mergeWith(r){return this.str+=r.str,!0}integrate(r,n){}delete(r){}gc(r){}write(r,n){r.writeString(n===0?this.str:this.str.slice(n))}getRef(){return 4}}const zj=e=>new Fa(e.readString()),Yj=[gj,Tj,wj,Dj,Sj,kj,Cj],Hj=0,Pj=1,Zj=2,$j=3,Uj=4,Vj=5,jj=6;class Ba{constructor(r){this.type=r}getLength(){return 1}getContent(){return[this.type]}isCountable(){return!0}copy(){return new Ba(this.type._copy())}splice(r){throw Qs()}mergeWith(r){return!1}integrate(r,n){this.type._integrate(r.doc,n)}delete(r){let n=this.type._start;for(;n!==null;)n.deleted?n.id.clock<(r.beforeState.get(n.id.client)||0)&&r._mergeStructs.push(n):n.delete(r),n=n.right;this.type._map.forEach(i=>{i.deleted?i.id.clock<(r.beforeState.get(i.id.client)||0)&&r._mergeStructs.push(i):i.delete(r)}),r.changed.delete(this.type)}gc(r){let n=this.type._start;for(;n!==null;)n.gc(r,!0),n=n.right;this.type._start=null,this.type._map.forEach(i=>{for(;i!==null;)i.gc(r,!0),i=i.left}),this.type._map=new Map}write(r,n){this.type._write(r)}getRef(){return 7}}const Gj=e=>new Ba(Yj[e.readTypeRef()](e)),gT=(e,r)=>{let n=r,i=0,o;do i>0&&(n=fr(n.client,n.clock+i)),o=Th(e,n),i=n.clock-o.id.clock,n=o.redone;while(n!==null&&o instanceof Cn);return{item:o,diff:i}},qv=(e,r)=>{for(;e!==null&&e.keep!==r;)e.keep=r,e=e.parent._item},Q2=(e,r,n)=>{const{client:i,clock:o}=r.id,s=new Cn(fr(i,o+n),r,fr(i,o+n-1),r.right,r.rightOrigin,r.parent,r.parentSub,r.content.splice(n));return r.deleted&&s.markDeleted(),r.keep&&(s.keep=!0),r.redone!==null&&(s.redone=fr(r.redone.client,r.redone.clock+n)),r.right=s,s.right!==null&&(s.right.left=s),e._mergeStructs.push(s),s.parentSub!==null&&s.right===null&&s.parent._map.set(s.parentSub,s),r.length=n,s},uE=(e,r)=>yv(e,n=>lp(n.deletions,r)),ZN=(e,r,n,i,o,s)=>{const a=e.doc,l=a.store,u=a.clientID,c=r.redone;if(c!==null)return Qo(e,c);let d=r.parent._item,h=null,p;if(d!==null&&d.deleted===!0){if(d.redone===null&&(!n.has(d)||ZN(e,d,n,i,o,s)===null))return null;for(;d.redone!==null;)d=Qo(e,d.redone)}const f=d===null?r.parent:d.content.type;if(r.parentSub===null){for(h=r.left,p=r;h!==null;){let x=h;for(;x!==null&&x.parent._item!==d;)x=x.redone===null?null:Qo(e,x.redone);if(x!==null&&x.parent._item===d){h=x;break}h=h.left}for(;p!==null;){let x=p;for(;x!==null&&x.parent._item!==d;)x=x.redone===null?null:Qo(e,x.redone);if(x!==null&&x.parent._item===d){p=x;break}p=p.right}}else if(p=null,r.right&&!o){for(h=r;h!==null&&h.right!==null&&(h.right.redone||lp(i,h.right.id)||uE(s.undoStack,h.right.id)||uE(s.redoStack,h.right.id));)for(h=h.right;h.redone;)h=Qo(e,h.redone);if(h&&h.right!==null)return null}else h=f._map.get(r.parentSub)||null;const m=hi(l,u),v=fr(u,m),w=new Cn(v,h,h&&h.lastId,p,p&&p.id,f,r.parentSub,r.content.copy());return r.redone=v,qv(w,!0),w.integrate(e,0),w};let Cn=class yT extends Gv{constructor(r,n,i,o,s,a,l,u){super(r,u.getLength()),this.origin=i,this.left=n,this.right=o,this.rightOrigin=s,this.parent=a,this.parentSub=l,this.redone=null,this.content=u,this.info=this.content.isCountable()?z8:0}set marker(r){(this.info&K5)>0!==r&&(this.info^=K5)}get marker(){return(this.info&K5)>0}get keep(){return(this.info&L8)>0}set keep(r){this.keep!==r&&(this.info^=L8)}get countable(){return(this.info&z8)>0}get deleted(){return(this.info&W5)>0}set deleted(r){this.deleted!==r&&(this.info^=W5)}markDeleted(){this.info|=W5}getMissing(r,n){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=hi(n,this.origin.client))return this.origin.client;if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=hi(n,this.rightOrigin.client))return this.rightOrigin.client;if(this.parent&&this.parent.constructor===yh&&this.id.client!==this.parent.client&&this.parent.clock>=hi(n,this.parent.client))return this.parent.client;if(this.origin&&(this.left=eE(r,n,this.origin),this.origin=this.left.lastId),this.rightOrigin&&(this.right=Qo(r,this.rightOrigin),this.rightOrigin=this.right.id),this.left&&this.left.constructor===Vs||this.right&&this.right.constructor===Vs)this.parent=null;else if(!this.parent)this.left&&this.left.constructor===yT?(this.parent=this.left.parent,this.parentSub=this.left.parentSub):this.right&&this.right.constructor===yT&&(this.parent=this.right.parent,this.parentSub=this.right.parentSub);else if(this.parent.constructor===yh){const i=Th(n,this.parent);i.constructor===Vs?this.parent=null:this.parent=i.content.type}return null}integrate(r,n){if(n>0&&(this.id.clock+=n,this.left=eE(r,r.doc.store,fr(this.id.client,this.id.clock-1)),this.origin=this.left.lastId,this.content=this.content.splice(n),this.length-=n),this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let i=this.left,o;if(i!==null)o=i.right;else if(this.parentSub!==null)for(o=this.parent._map.get(this.parentSub)||null;o!==null&&o.left!==null;)o=o.left;else o=this.parent._start;const s=new Set,a=new Set;for(;o!==null&&o!==this.right;){if(a.add(o),s.add(o),ah(this.origin,o.origin)){if(o.id.client{i.p===r&&(i.p=this,!this.deleted&&this.countable&&(i.index-=this.length))}),r.keep&&(this.keep=!0),this.right=r.right,this.right!==null&&(this.right.left=this),this.length+=r.length,!0}return!1}delete(r){if(!this.deleted){const n=this.parent;this.countable&&this.parentSub===null&&(n._length-=this.length),this.markDeleted(),gf(r.deleteSet,this.id.client,this.id.clock,this.length),rE(r,n,this.parentSub),this.content.delete(r)}}gc(r,n){if(!this.deleted)throw vo();this.content.gc(r),n?QV(r,this,new Vs(this.id,this.length)):this.content=new Ef(this.length)}write(r,n){const i=n>0?fr(this.id.client,this.id.clock+n-1):this.origin,o=this.rightOrigin,s=this.parentSub,a=this.content.getRef()&A3|(i===null?0:Bo)|(o===null?0:p0)|(s===null?0:df);if(r.writeInfo(a),i!==null&&r.writeLeftID(i),o!==null&&r.writeRightID(o),i===null&&o===null){const l=this.parent;if(l._item!==void 0){const u=l._item;if(u===null){const c=yf(l);r.writeParentInfo(!0),r.writeString(c)}else r.writeParentInfo(!1),r.writeLeftID(u.id)}else l.constructor===String?(r.writeParentInfo(!0),r.writeString(l)):l.constructor===yh?(r.writeParentInfo(!1),r.writeLeftID(l)):vo();s!==null&&r.writeString(s)}this.content.write(r,n)}};const $N=(e,r)=>qj[r&A3](e),qj=[()=>{vo()},Fj,Bj,Nj,zj,Mj,Rj,Gj,Lj,Oj,()=>{vo()}],Wj=10;class js extends Gv{get deleted(){return!0}delete(){}mergeWith(r){return this.constructor!==r.constructor?!1:(this.length+=r.length,!0)}integrate(r,n){vo()}write(r,n){r.writeInfo(Wj),Ut(r.restEncoder,this.length-n)}getMissing(r,n){return null}}const cE=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof SA<"u"?SA:{},dE="__ $YJS$ __";cE[dE]===!0&&console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438"),cE[dE]=!0;const s6=3e4;class Kj extends w_{constructor(r){super(),this.doc=r,this.clientID=r.clientID,this.states=new Map,this.meta=new Map,this._checkInterval=setInterval(()=>{const n=Pu();this.getLocalState()!==null&&s6/2<=n-this.meta.get(this.clientID).lastUpdated&&this.setLocalState(this.getLocalState());const i=[];this.meta.forEach((o,s)=>{s!==this.clientID&&s6<=n-o.lastUpdated&&this.states.has(s)&&i.push(s)}),i.length>0&&Wv(this,i,"timeout")},ra(s6/10)),r.on("destroy",()=>{this.destroy()}),this.setLocalState({})}destroy(){this.emit("destroy",[this]),this.setLocalState(null),super.destroy(),clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(r){const n=this.clientID,i=this.meta.get(n),o=i===void 0?0:i.clock+1,s=this.states.get(n);r===null?this.states.delete(n):this.states.set(n,r),this.meta.set(n,{clock:o,lastUpdated:Pu()});const a=[],l=[],u=[],c=[];r===null?c.push(n):s==null?r!=null&&a.push(n):(l.push(n),mh(s,r)||u.push(n)),(a.length>0||u.length>0||c.length>0)&&this.emit("change",[{added:a,updated:u,removed:c},"local"]),this.emit("update",[{added:a,updated:l,removed:c},"local"])}setLocalStateField(r,n){const i=this.getLocalState();i!==null&&this.setLocalState({...i,[r]:n})}getStates(){return this.states}}const Wv=(e,r,n)=>{const i=[];for(let o=0;o0&&(e.emit("change",[{added:[],updated:[],removed:i},n]),e.emit("update",[{added:[],updated:[],removed:i},n]))},O1=(e,r,n=e.states)=>{const i=r.length,o=$i();Ut(o,i);for(let s=0;s{const i=k0(r),o=Pu(),s=[],a=[],l=[],u=[],c=pr(i);for(let d=0;d0||l.length>0||u.length>0)&&e.emit("change",[{added:s,updated:l,removed:u},n]),(s.length>0||a.length>0||u.length>0)&&e.emit("update",[{added:s,updated:a,removed:u},n])},Jj=()=>{let e=!0;return(r,n)=>{if(e){e=!1;try{r()}finally{e=!0}}else n!==void 0&&n()}},Xj=/[\uD800-\uDBFF]/,eG=/[\uDC00-\uDFFF]/,tG=(e,r)=>{let n=0,i=0;for(;n0&&Xj.test(e[n-1])&&n--;i+n0&&eG.test(e[e.length-i])&&i--,{index:n,remove:e.length-n-i,insert:r.slice(n,r.length-i)}},rG=tG,vl=(e,r)=>e>>>r|e<<32-r,nG=e=>vl(e,2)^vl(e,13)^vl(e,22),iG=e=>vl(e,6)^vl(e,11)^vl(e,25),oG=e=>vl(e,7)^vl(e,18)^e>>>3,sG=e=>vl(e,17)^vl(e,19)^e>>>10,aG=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),lG=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);class uG{constructor(){const r=new ArrayBuffer(320);this._H=new Uint32Array(r,0,8),this._H.set(lG),this._W=new Uint32Array(r,64,64)}_updateHash(){const r=this._H,n=this._W;for(let h=16;h<64;h++)n[h]=sG(n[h-2])+n[h-7]+oG(n[h-15])+n[h-16];let i=r[0],o=r[1],s=r[2],a=r[3],l=r[4],u=r[5],c=r[6],d=r[7];for(let h=0,p,f;h<64;h++)p=d+iG(l)+(l&u^~l&c)+aG[h]+n[h]>>>0,f=nG(i)+(i&o^i&s^o&s)>>>0,d=c,c=u,u=l,l=a+p>>>0,a=s,s=o,o=i,i=p+f>>>0;r[0]+=i,r[1]+=o,r[2]+=s,r[3]+=a,r[4]+=l,r[5]+=u,r[6]+=c,r[7]+=d}digest(r){let n=0;for(;n+56<=r.length;){let a=0;for(;a<16&&n+3=0&&n>>(3-l)*8;return s}}const cG=e=>new uG().digest(e),fn=new hr("y-sync"),f0=new hr("y-undo"),tg=new hr("yjs-cursor"),dG=e=>{for(let r=6;rkv(dG(cG(zU(e)))),J2=(e,r)=>r===void 0?!e.deleted:r.sv.has(e.id.client)&&r.sv.get(e.id.client)>e.id.clock&&!lp(r.ds,e.id),pG=[{light:"#ecd44433",dark:"#ecd444"}],fG=(e,r,n)=>{if(!e.has(n)){if(e.sizei.add(o)),r=r.filter(o=>!i.has(o))}e.set(n,dU(r))}return e.get(n)},mG=(e,{colors:r=pG,colorMapping:n=new Map,permanentUserData:i=null,onFirstRender:o=()=>{},mapping:s}={})=>{let a=!1;const l=new TG(e,s),u=new lr({props:{editable:c=>{const d=fn.getState(c);return d.snapshot==null&&d.prevSnapshot==null}},key:fn,state:{init:(c,d)=>({type:e,doc:e.doc,binding:l,snapshot:null,prevSnapshot:null,isChangeOrigin:!1,isUndoRedoOperation:!1,addToHistory:!0,colors:r,colorMapping:n,permanentUserData:i}),apply:(c,d)=>{const h=c.getMeta(fn);if(h!==void 0){d=Object.assign({},d);for(const p in h)d[p]=h[p]}return d.addToHistory=c.getMeta("addToHistory")!==!1,d.isChangeOrigin=h!==void 0&&!!h.isChangeOrigin,d.isUndoRedoOperation=h!==void 0&&!!h.isChangeOrigin&&!!h.isUndoRedoOperation,l.prosemirrorView!==null&&h!==void 0&&(h.snapshot!=null||h.prevSnapshot!=null)&&Mv(0,()=>{l.prosemirrorView!=null&&(h.restore==null?l._renderSnapshot(h.snapshot,h.prevSnapshot,d):(l._renderSnapshot(h.snapshot,h.snapshot,d),delete d.restore,delete d.snapshot,delete d.prevSnapshot,l.mux(()=>{l._prosemirrorChanged(l.prosemirrorView.state.doc)})))}),d}},view:c=>(l.initView(c),s==null&&l._forceRerender(),o(),{update:()=>{const d=u.getState(c.state);if(d.snapshot==null&&d.prevSnapshot==null&&(a||c.state.doc.content.findDiffStart(c.state.doc.type.createAndFill().content)!==null)){if(a=!0,d.addToHistory===!1&&!d.isChangeOrigin){const h=f0.getState(c.state),p=h&&h.undoManager;p&&p.stopCapturing()}l.mux(()=>{d.doc.transact(h=>{h.meta.set("addToHistory",d.addToHistory),l._prosemirrorChanged(c.state.doc)},fn)})}},destroy:()=>{l.destroy()}})});return u},gG=(e,r,n)=>{if(r!==null&&r.anchor!==null&&r.head!==null)if(r.type==="all")e.setSelection(new Xo(e.doc));else if(r.type==="node"){const i=Fu(n.doc,n.type,r.anchor,n.mapping);e.setSelection(yG(e,i))}else{const i=Fu(n.doc,n.type,r.anchor,n.mapping),o=Fu(n.doc,n.type,r.head,n.mapping);i!==null&&o!==null&&e.setSelection(Lt.between(e.doc.resolve(i),e.doc.resolve(o)))}},yG=(e,r)=>{const n=e.doc.resolve(r);return n.nodeAfter?Ht.create(e.doc,r):Lt.near(n)},TT=(e,r)=>({type:r.selection.jsonID,anchor:zh(r.selection.anchor,e.type,e.mapping),head:zh(r.selection.head,e.type,e.mapping)});class TG{constructor(r,n=new Map){this.type=r,this.prosemirrorView=null,this.mux=Jj(),this.mapping=n,this.isOMark=new Map,this._observeFunction=this._typeChanged.bind(this),this.doc=r.doc,this.beforeTransactionSelection=null,this.beforeAllTransactions=()=>{this.beforeTransactionSelection===null&&this.prosemirrorView!=null&&(this.beforeTransactionSelection=TT(this,this.prosemirrorView.state))},this.afterAllTransactions=()=>{this.beforeTransactionSelection=null},this._domSelectionInView=null}get _tr(){return this.prosemirrorView.state.tr.setMeta("addToHistory",!1)}_isLocalCursorInView(){return this.prosemirrorView.hasFocus()?(xv&&this._domSelectionInView===null&&(Mv(0,()=>{this._domSelectionInView=null}),this._domSelectionInView=this._isDomSelectionInView()),this._domSelectionInView):!1}_isDomSelectionInView(){const r=this.prosemirrorView._root.getSelection();if(r==null||r.anchorNode==null)return!1;const n=this.prosemirrorView._root.createRange();n.setStart(r.anchorNode,r.anchorOffset),n.setEnd(r.focusNode,r.focusOffset),n.getClientRects().length===0&&n.startContainer&&n.collapsed&&n.selectNodeContents(n.startContainer);const i=n.getBoundingClientRect(),o=Kf.documentElement;return i.bottom>=0&&i.right>=0&&i.left<=(window.innerWidth||o.clientWidth||0)&&i.top<=(window.innerHeight||o.clientHeight||0)}renderSnapshot(r,n){n||(n=TN(aN(),new Map)),this.prosemirrorView.dispatch(this._tr.setMeta(fn,{snapshot:r,prevSnapshot:n}))}unrenderSnapshot(){this.mapping.clear(),this.mux(()=>{const r=this.type.toArray().map(i=>r2(i,this.prosemirrorView.state.schema,this)).filter(i=>i!==null),n=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new ht(ze.from(r),0,0));n.setMeta(fn,{snapshot:null,prevSnapshot:null}),this.prosemirrorView.dispatch(n)})}_forceRerender(){this.mapping.clear(),this.mux(()=>{const r=this.beforeTransactionSelection!==null?null:this.prosemirrorView.state.selection,n=this.type.toArray().map(o=>r2(o,this.prosemirrorView.state.schema,this)).filter(o=>o!==null),i=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new ht(ze.from(n),0,0));if(r){const o=bl(_a(r.anchor,0),i.doc.content.size),s=bl(_a(r.head,0),i.doc.content.size);i.setSelection(Lt.create(i.doc,o,s))}this.prosemirrorView.dispatch(i.setMeta(fn,{isChangeOrigin:!0,binding:this}))})}_renderSnapshot(r,n,i){let o=this.doc,s=this.type;if(r||(r=n6(this.doc)),r instanceof Uint8Array||n instanceof Uint8Array)if((!(r instanceof Uint8Array)||!(n instanceof Uint8Array))&&vo(),o=new tc({gc:!1}),V2(o,n),n=n6(o),V2(o,r),r=n6(o),s._item===null){const a=Array.from(this.doc.share.keys()).find(l=>this.doc.share.get(l)===this.type);s=o.getXmlFragment(a)}else{const a=o.store.clients.get(s._item.id.client)??[],l=Na(a,s._item.id.clock);s=a[l].content.type}this.mapping.clear(),this.mux(()=>{o.transact(a=>{const l=i.permanentUserData;l&&l.dss.forEach(h=>{$u(a,h,p=>{})});const u=(h,p)=>{const f=h==="added"?l.getUserByClientId(p.client):l.getUserByDeletedId(p);return{user:f,type:h,color:fG(i.colorMapping,i.colors,f)}},c=_N(s,new Hv(n.ds,r.sv)).map(h=>!h._item.deleted||J2(h._item,r)||J2(h._item,n)?r2(h,this.prosemirrorView.state.schema,{mapping:new Map,isOMark:new Map},r,n,u):null).filter(h=>h!==null),d=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new ht(ze.from(c),0,0));this.prosemirrorView.dispatch(d.setMeta(fn,{isChangeOrigin:!0}))},fn)})}_typeChanged(r,n){if(this.prosemirrorView==null)return;const i=fn.getState(this.prosemirrorView.state);if(r.length===0||i.snapshot!=null||i.prevSnapshot!=null){this.renderSnapshot(i.snapshot,i.prevSnapshot);return}this.mux(()=>{const o=(l,u)=>this.mapping.delete(u);$u(n,n.deleteSet,l=>{if(l.constructor===Cn){const u=l.content.type;u&&this.mapping.delete(u)}}),n.changed.forEach(o),n.changedParentTypes.forEach(o);const s=this.type.toArray().map(l=>UN(l,this.prosemirrorView.state.schema,this)).filter(l=>l!==null);let a=this._tr.replace(0,this.prosemirrorView.state.doc.content.size,new ht(ze.from(s),0,0));gG(a,this.beforeTransactionSelection,this),a=a.setMeta(fn,{isChangeOrigin:!0,isUndoRedoOperation:n.origin instanceof wN}),this.beforeTransactionSelection!==null&&this._isLocalCursorInView()&&a.scrollIntoView(),this.prosemirrorView.dispatch(a)})}_prosemirrorChanged(r){this.doc.transact(()=>{vT(this.doc,this.type,r,this),this.beforeTransactionSelection=TT(this,this.prosemirrorView.state)},fn)}initView(r){this.prosemirrorView!=null&&this.destroy(),this.prosemirrorView=r,this.doc.on("beforeAllTransactions",this.beforeAllTransactions),this.doc.on("afterAllTransactions",this.afterAllTransactions),this.type.observeDeep(this._observeFunction)}destroy(){this.prosemirrorView!=null&&(this.prosemirrorView=null,this.type.unobserveDeep(this._observeFunction),this.doc.off("beforeAllTransactions",this.beforeAllTransactions),this.doc.off("afterAllTransactions",this.afterAllTransactions))}}const UN=(e,r,n,i,o,s)=>{const a=n.mapping.get(e);if(a===void 0){if(e instanceof yo)return r2(e,r,n,i,o,s);throw Qs()}return a},r2=(e,r,n,i,o,s)=>{const a=[],l=u=>{if(u instanceof yo){const c=UN(u,r,n,i,o,s);c!==null&&a.push(c)}else{const c=u._item.right?.content?.type;c instanceof Uu&&!c._item.deleted&&c._item.id.client===c.doc.clientID&&(u.applyDelta([{retain:u.length},...c.toDelta()]),c.doc.transact(h=>{c._item.delete(h)}));const d=bG(u,r,n,i,o,s);d!==null&&d.forEach(h=>{h!==null&&a.push(h)})}};i===void 0||o===void 0?e.toArray().forEach(l):_N(e,new Hv(o.ds,i.sv)).forEach(l);try{const u=e.getAttributes(i);i!==void 0&&(J2(e._item,i)?J2(e._item,o)||(u.ychange=s?s("added",e._item.id):{type:"added"}):u.ychange=s?s("removed",e._item.id):{type:"removed"});const c=r.node(e.nodeName,u,a);return n.mapping.set(e,c),c}catch{return e.doc.transact(u=>{e._item.delete(u)},fn),n.mapping.delete(e),null}},bG=(e,r,n,i,o,s)=>{const a=[],l=e.toDelta(i,o,s);try{for(let u=0;u{e._item.delete(u)},fn),null}return a},vG=(e,r)=>{const n=new ts,i=e.map(o=>({insert:o.text,attributes:jN(o.marks,r)}));return n.applyDelta(i),r.mapping.set(n,e),n},AG=(e,r)=>{const n=new yo(e.type.name);for(const i in e.attrs){const o=e.attrs[i];o!==null&&i!=="ychange"&&n.setAttribute(i,o)}return n.insert(0,O3(e).map(i=>bT(i,r))),r.mapping.set(n,e),n},bT=(e,r)=>e instanceof Array?vG(e,r):AG(e,r),hE=e=>typeof e=="object"&&e!==null,Kv=(e,r)=>{const n=Object.keys(e).filter(o=>e[o]!==null);let i=n.length===Object.keys(r).filter(o=>r[o]!==null).length;for(let o=0;o{const r=e.content.content,n=[];for(let i=0;i{const n=e.toDelta();return n.length===r.length&&n.every((i,o)=>i.insert===r[o].text&&O_(i.attributes||{}).length===r[o].marks.length&&op(i.attributes,(s,a)=>{const l=Qv(a),u=r[o].marks;return u.find(c=>c.type.name===l)?Kv(s,u.find(c=>c.type.name===l)?.attrs):!1}))},wf=(e,r)=>{if(e instanceof yo&&!(r instanceof Array)&&AT(e,r)){const n=O3(r);return e._length===n.length&&Kv(e.getAttributes(),r.attrs)&&e.toArray().every((i,o)=>wf(i,n[o]))}return e instanceof ts&&r instanceof Array&&VN(e,r)},X2=(e,r)=>e===r||e instanceof Array&&r instanceof Array&&e.length===r.length&&e.every((n,i)=>r[i]===n),pE=(e,r,n)=>{const i=e.toArray(),o=O3(r),s=o.length,a=i.length,l=bl(a,s);let u=0,c=0,d=!1;for(;u{let r="",n=e._start;const i={};for(;n!==null;)n.deleted||(n.countable&&n.content instanceof Fa?r+=n.content.str:n.content instanceof Ei&&(i[n.content.key]=null)),n=n.right;return{str:r,nAttrs:i}},wG=(e,r,n)=>{n.mapping.set(e,r);const{nAttrs:i,str:o}=EG(e),s=r.map(c=>({insert:c.text,attributes:Object.assign({},i,jN(c.marks,n))})),{insert:a,remove:l,index:u}=rG(o,s.map(c=>c.insert).join(""));e.delete(u,l),e.insert(u,a),e.applyDelta(s.map(c=>({retain:c.insert.length,attributes:c.attributes})))},SG=/(.*)(--[a-zA-Z0-9+/=]{8})$/,Qv=e=>SG.exec(e)?.[1]??e,DG=(e,r)=>{const n=[];for(const i in e)n.push(r.mark(Qv(i),e[i]));return n},jN=(e,r)=>{const n={};return e.forEach(i=>{if(i.type.name!=="ychange"){const o=aa(r.isOMark,i.type,()=>!i.type.excludes(i.type));n[o?`${i.type.name}--${hG(i.toJSON())}`:i.type.name]=i.attrs}}),n},vT=(e,r,n,i)=>{if(r instanceof yo&&r.nodeName!==n.type.name)throw new Error("node name mismatch!");if(i.mapping.set(r,n),r instanceof yo){const h=r.getAttributes(),p=n.attrs;for(const f in p)p[f]!==null?h[f]!==p[f]&&f!=="ychange"&&r.setAttribute(f,p[f]):r.removeAttribute(f);for(const f in h)p[f]===void 0&&r.removeAttribute(f)}const o=O3(n),s=o.length,a=r.toArray(),l=a.length,u=bl(s,l);let c=0,d=0;for(;c{for(;l-c-d>0&&s-c-d>0;){const p=a[c],f=o[c],m=a[l-d-1],v=o[s-d-1];if(p instanceof ts&&f instanceof Array)VN(p,f)||wG(p,f,i),c+=1;else{let w=p instanceof yo&&AT(p,f),x=m instanceof yo&&AT(m,v);if(w&&x){const k=pE(p,f,i),R=pE(m,v,i);k.foundMappedChild&&!R.foundMappedChild?x=!1:!k.foundMappedChild&&R.foundMappedChild||k.equalityFactor0&&(r.slice(c,c+h).forEach(p=>i.mapping.delete(p)),r.delete(c,h)),c+d!(r instanceof Array)&&e.nodeName===r.type.name;let M1=null;const xG=()=>{const e=M1;M1=null,e.forEach((r,n)=>{const i=n.state.tr,o=fn.getState(n.state);o&&o.binding&&!o.binding.isDestroyed&&(r.forEach((s,a)=>{i.setMeta(a,s)}),n.dispatch(i))})},kG=(e,r,n)=>{M1||(M1=new Map,Mv(0,xG)),aa(M1,e,Ro).set(r,n)},zh=(e,r,n)=>{if(e===0)return r6(r,0,-1);let i=r._first===null?null:r._first.content.type;for(;i!==null&&r!==i;){if(i instanceof ts){if(i._length>=e)return r6(i,e,-1);if(e-=i._length,i._item!==null&&i._item.next!==null)i=i._item.next.content.type;else{do i=i._item===null?null:i._item.parent,e--;while(i!==r&&i!==null&&i._item!==null&&i._item.next===null);i!==null&&i!==r&&(i=i._item===null?null:i._item.next.content.type)}}else{const o=(n.get(i)||{nodeSize:0}).nodeSize;if(i._first!==null&&e1)return new bf(i._item===null?null:i._item.id,i._item===null?yf(i):null,null);if(e-=o,i._item!==null&&i._item.next!==null)i=i._item.next.content.type;else{if(e===0)return i=i._item===null?i:i._item.parent,new bf(i._item===null?null:i._item.id,i._item===null?yf(i):null,null);do i=i._item.parent,e--;while(i!==r&&i._item.next===null);i!==r&&(i=i._item.next.content.type)}}}if(i===null)throw vo();if(e===0&&i.constructor!==ts&&i!==r)return CG(i._item.parent,i._item)}return r6(r,r._length,-1)},CG=(e,r)=>{let n=null,i=null;return e._item===null?i=yf(e):n=fr(e._item.id.client,e._item.id.clock),new bf(n,i,r.id)},Fu=(e,r,n,i)=>{const o=WV(n,e);if(o===null||o.type!==r&&!Tf(r,o.type._item))return null;let s=o.type,a=0;if(s.constructor===ts)a=o.index;else if(s._item===null||!s._item.deleted){let l=s._first,u=0;for(;u{let o;if(i instanceof ts)o=i.toDelta().map(s=>{const a={type:"text",text:s.insert};return s.attributes&&(a.marks=Object.keys(s.attributes).map(l=>{const u=s.attributes[l],c={type:Qv(l)};return Object.keys(u)&&(c.attrs=u),c})),a});else if(i instanceof yo){o={type:i.nodeName};const s=i.getAttributes();Object.keys(s).length&&(o.attrs=s);const a=i.toArray();a.length&&(o.content=a.map(n).flat())}else vo();return o};return{type:"doc",content:r.map(n)}}const NG=(e,r,n)=>e!==r,FG=e=>{const r=document.createElement("span");r.classList.add("ProseMirror-yjs-cursor"),r.setAttribute("style",`border-color: ${e.color}`);const n=document.createElement("div");n.setAttribute("style",`background-color: ${e.color}`),n.insertBefore(document.createTextNode(e.name),null);const i=document.createTextNode("⁠"),o=document.createTextNode("⁠");return r.insertBefore(i,null),r.insertBefore(n,null),r.insertBefore(o,null),r},GN=e=>({style:`background-color: ${e.color}70`,class:"ProseMirror-yjs-selection"}),OG=/^#[0-9a-fA-F]{6}$/,fE=(e,r,n,i,o)=>{const s=fn.getState(e),a=s.doc,l=[];return s.snapshot!=null||s.prevSnapshot!=null||s.binding.mapping.size===0?Nr.create(e.doc,[]):(r.getStates().forEach((u,c)=>{if(n(a.clientID,c,u)&&u.cursor!=null){const d=u.user||{};d.color==null?d.color="#ffa500":OG.test(d.color)||console.warn("A user uses an unsupported color format",d),d.name==null&&(d.name=`User: ${c}`);let h=Fu(a,s.type,F1(u.cursor.anchor),s.binding.mapping),p=Fu(a,s.type,F1(u.cursor.head),s.binding.mapping);if(h!==null&&p!==null){const f=_a(e.doc.content.size-1,0);h=bl(h,f),p=bl(p,f),l.push(kn.widget(p,()=>i(d,c),{key:c+"",side:10}));const m=bl(h,p),v=_a(h,p);l.push(kn.inline(m,v,o(d,c),{inclusiveEnd:!0,inclusiveStart:!1}))}}}),Nr.create(e.doc,l))},MG=(e,{awarenessStateFilter:r=NG,cursorBuilder:n=FG,selectionBuilder:i=GN,getSelection:o=a=>a.selection}={},s="cursor")=>new lr({key:tg,state:{init(a,l){return fE(l,e,r,n,i)},apply(a,l,u,c){const d=fn.getState(c),h=a.getMeta(tg);return d&&d.isChangeOrigin||h&&h.awarenessUpdated?fE(c,e,r,n,i):l.map(a.mapping,a.doc)}},props:{decorations:a=>tg.getState(a)},view:a=>{const l=()=>{a.docView&&kG(a,tg,{awarenessUpdated:!0})},u=()=>{const c=fn.getState(a.state),d=e.getLocalState()||{};if(a.hasFocus()){const h=o(a.state),p=zh(h.anchor,c.type,c.binding.mapping),f=zh(h.head,c.type,c.binding.mapping);(d.cursor==null||!X8(F1(d.cursor.anchor),p)||!X8(F1(d.cursor.head),f))&&e.setLocalStateField(s,{anchor:p,head:f})}else d.cursor!=null&&Fu(c.doc,c.type,F1(d.cursor.anchor),c.binding.mapping)!==null&&e.setLocalStateField(s,null)};return e.on("change",l),a.dom.addEventListener("focusin",u),a.dom.addEventListener("focusout",u),{update:u,destroy:()=>{a.dom.removeEventListener("focusin",u),a.dom.removeEventListener("focusout",u),e.off("change",l),e.setLocalStateField(s,null)}}}}),RG=e=>{const r=f0.getState(e).undoManager;if(r!=null)return r.undo(),!0},BG=e=>{const r=f0.getState(e).undoManager;if(r!=null)return r.redo(),!0},IG=new Set(["paragraph"]),LG=(e,r)=>!(e instanceof Cn)||!(e.content instanceof Ba)||!(e.content.type instanceof Uu||e.content.type instanceof yo&&r.has(e.content.type.nodeName))||e.content.type._length===0,zG=({protectedNodes:e=IG,trackedOrigins:r=[],undoManager:n=null}={})=>new lr({key:f0,state:{init:(i,o)=>{const s=fn.getState(o),a=n||new wN(s.type,{trackedOrigins:new Set([fn].concat(r)),deleteFilter:l=>LG(l,e),captureTransaction:l=>l.meta.get("addToHistory")!==!1});return{undoManager:a,prevSel:null,hasUndoOps:a.undoStack.length>0,hasRedoOps:a.redoStack.length>0}},apply:(i,o,s,a)=>{const l=fn.getState(a).binding,u=o.undoManager,c=u.undoStack.length>0,d=u.redoStack.length>0;return l?{undoManager:u,prevSel:TT(l,s),hasUndoOps:c,hasRedoOps:d}:c!==o.hasUndoOps||d!==o.hasRedoOps?Object.assign({},o,{hasUndoOps:u.undoStack.length>0,hasRedoOps:u.redoStack.length>0}):o}},view:i=>{const o=fn.getState(i.state),s=f0.getState(i.state).undoManager;return s.on("stack-item-added",({stackItem:a})=>{const l=o.binding;l&&a.meta.set(l,f0.getState(i.state).prevSel)}),s.on("stack-item-popped",({stackItem:a})=>{const l=o.binding;l&&(l.beforeTransactionSelection=a.meta.get(l)||l.beforeTransactionSelection)}),{destroy:()=>{s.destroy()}}}});function qN(e){return!!e.getMeta(fn)}function YG(e,r){const n=fn.getState(e);return Fu(n.doc,n.type,r,n.binding.mapping)||0}function WN(e,r){const n=fn.getState(e);return zh(r,n.type,n.binding.mapping)}var n2=class KN extends dv{constructor(r,n){super(r),this.yRelativePosition=n}static fromJSON(r){return new KN(r.position,r.yRelativePosition)}toJSON(){return{position:this.position,yRelativePosition:this.yRelativePosition}}};function HG(e,r){const n=WN(r,e);return new n2(e,n)}function PG(e,r,n){const i=e instanceof n2?e.yRelativePosition:null;if(qN(r)&&i){const a=YG(n,i);return{position:new n2(a,i),mapResult:null}}const o=i_(e,r),s=o.position.position;return{position:new n2(s,i??WN(n,s)),mapResult:o.mapResult}}var S9e=xr.create({name:"collaboration",priority:1e3,addOptions(){return{document:null,field:"default",fragment:null,provider:null}},addStorage(){return{isDisabled:!1}},onCreate(){this.editor.extensionManager.extensions.find(e=>e.name==="undoRedo")&&console.warn('[tiptap warn]: "@tiptap/extension-collaboration" comes with its own history support and is not compatible with "@tiptap/extension-undo-redo".')},onBeforeCreate(){this.editor.utils.getUpdatedPosition=(e,r)=>PG(e,r,this.editor.state),this.editor.utils.createMappablePosition=e=>HG(e,this.editor.state)},addCommands(){return{undo:()=>({tr:e,state:r,dispatch:n})=>(e.setMeta("preventDispatch",!0),f0.getState(r).undoManager.undoStack.length===0?!1:n?RG(r):!0),redo:()=>({tr:e,state:r,dispatch:n})=>(e.setMeta("preventDispatch",!0),f0.getState(r).undoManager.redoStack.length===0?!1:n?BG(r):!0)}},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Mod-y":()=>this.editor.commands.redo(),"Shift-Mod-z":()=>this.editor.commands.redo()}},addProseMirrorPlugins(){var e;const r=this.options.fragment?this.options.fragment:this.options.document.getXmlFragment(this.options.field),n=zG(this.options.yUndoOptions),i=n.spec.view;n.spec.view=a=>{const{undoManager:l}=f0.getState(a.state);l.restore&&(l.restore(),l.restore=()=>{});const u=i?i(a):void 0;return{destroy:()=>{const c=l.trackedOrigins.has(l),d=l._observers;l.restore=()=>{c&&l.trackedOrigins.add(l),l.doc.on("afterTransaction",l.afterTransactionHandler),l._observers=d},u?.destroy&&u.destroy()}}};const o={...this.options.ySyncOptions,onFirstRender:this.options.onFirstRender},s=mG(r,o);return this.editor.options.enableContentCheck&&((e=r.doc)==null||e.on("beforeTransaction",()=>{try{const a=_G(r);if(a.content.length===0)return;this.editor.schema.nodeFromJSON(a).check()}catch(a){return this.editor.emit("contentError",{error:a,editor:this.editor,disableCollaboration:()=>{var l;(l=r.doc)==null||l.destroy(),this.storage.isDisabled=!0}}),!1}})),[s,n,this.editor.options.enableContentCheck&&new lr({key:new hr("filterInvalidContent"),filterTransaction:()=>{var a;return this.storage.isDisabled!==!1&&((a=r.doc)==null||a.destroy()),!0}})].filter(Boolean)}});const QN=Symbol("tiptap:editor"),D9e=e=>{Sl(QN,e)},hd=()=>{const e=wl(QN);if(!e)throw new Error("Failed to inject Editor");return{editor:e}},JN=Symbol("editor:flags"),x9e=e=>{const r=e.isDirectEditing||UL(),n=e.richWorkspace??!1,i=zu("text","rich_editing_enabled",!0)&&e.mime==="text/markdown",o=i&&!n;return Sl(JN,{isPublic:r,isRichEditor:i,isRichWorkspace:n,useTableOfContents:o}),{isPublic:r,isRichEditor:i,isRichWorkspace:n,useTableOfContents:o}},M3=()=>{const{isPublic:e,isRichEditor:r,isRichWorkspace:n,useTableOfContents:i}=wl(JN,{isPublic:!1,isRichEditor:!1,isRichWorkspace:!1,useTableOfContents:!1});return{isPublic:e,isRichEditor:r,isRichWorkspace:n,useTableOfContents:i}},ZG={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $G=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alert-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},UG=[],VG=Ze(ZG,$G,UG,!1,null,null);const jG=VG.exports,GG={name:"AlertDecagramIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qG=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alert-decagram-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},WG=[],KG=Ze(GG,qG,WG,!1,null,null);const QG=KG.exports,JG={name:"AlignHorizontalCenterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var XG=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon align-horizontal-center-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11 2H13V7H21V10H13V14H18V17H13V22H11V17H6V14H11V10H3V7H11V2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},eq=[],tq=Ze(JG,XG,eq,!1,null,null);const rq=tq.exports,nq={name:"AlignHorizontalLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var iq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon align-horizontal-left-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M4 22H2V2H4V22M22 7H6V10H22V7M16 14H6V17H16V14Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},oq=[],sq=Ze(nq,iq,oq,!1,null,null);const aq=sq.exports,lq={name:"AlignHorizontalRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var uq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon align-horizontal-right-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M20 2H22V22H20V2M2 10H18V7H2V10M8 17H18V14H8V17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},cq=[],dq=Ze(lq,uq,cq,!1,null,null);const hq=dq.exports,pq={name:"AlphabeticalVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var fq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alphabetical-variant-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3 7A2 2 0 0 0 1 9V17H3V13H5V17H7V9A2 2 0 0 0 5 7H3M3 9H5V11H3M15 10.5V9A2 2 0 0 0 13 7H9V17H13A2 2 0 0 0 15 15V13.5A1.54 1.54 0 0 0 13.5 12A1.54 1.54 0 0 0 15 10.5M13 15H11V13H13V15M13 11H11V9H13M19 7A2 2 0 0 0 17 9V15A2 2 0 0 0 19 17H21A2 2 0 0 0 23 15V14H21V15H19V9H21V10H23V9A2 2 0 0 0 21 7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},mq=[],gq=Ze(pq,fq,mq,!1,null,null);const yq=gq.exports,Tq={name:"ArrowULeftTopIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var bq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon arrow-u-left-top-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M20 13.5C20 17.09 17.09 20 13.5 20H6V18H13.5C16 18 18 16 18 13.5S16 9 13.5 9H7.83L10.91 12.09L9.5 13.5L4 8L9.5 2.5L10.92 3.91L7.83 7H13.5C17.09 7 20 9.91 20 13.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},vq=[],Aq=Ze(Tq,bq,vq,!1,null,null);const Eq=Aq.exports,wq={name:"ArrowURightTopIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Sq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon arrow-u-right-top-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M10.5 18H18V20H10.5C6.91 20 4 17.09 4 13.5S6.91 7 10.5 7H16.17L13.08 3.91L14.5 2.5L20 8L14.5 13.5L13.09 12.09L16.17 9H10.5C8 9 6 11 6 13.5S8 18 10.5 18Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Dq=[],xq=Ze(wq,Sq,Dq,!1,null,null);const kq=xq.exports,Cq={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _q=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Nq=[],Fq=Ze(Cq,_q,Nq,!1,null,null);const Jv=Fq.exports,Oq={name:"CheckboxMarkedCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Mq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon checkbox-marked-circle-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Rq=[],Bq=Ze(Oq,Mq,Rq,!1,null,null);const Iq=Bq.exports,Lq={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Yq=[],Hq=Ze(Lq,zq,Yq,!1,null,null);const XN=Hq.exports,Pq={name:"CodeBracketsIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Zq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon code-brackets-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M15,4V6H18V18H15V20H20V4M4,4V20H9V18H6V6H9V4H4Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},$q=[],Uq=Ze(Pq,Zq,$q,!1,null,null);const Vq=Uq.exports,jq={name:"CodeTagsIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Gq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon code-tags-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},qq=[],Wq=Ze(jq,Gq,qq,!1,null,null);const Kq=Wq.exports,Qq={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Jq=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon dots-horizontal-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Xq=[],eW=Ze(Qq,Jq,Xq,!1,null,null);const tW=eW.exports,rW={name:"EmoticonOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon emoticon-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,17.5C14.33,17.5 16.3,16.04 17.11,14H6.89C7.69,16.04 9.67,17.5 12,17.5M8.5,11A1.5,1.5 0 0,0 10,9.5A1.5,1.5 0 0,0 8.5,8A1.5,1.5 0 0,0 7,9.5A1.5,1.5 0 0,0 8.5,11M15.5,11A1.5,1.5 0 0,0 17,9.5A1.5,1.5 0 0,0 15.5,8A1.5,1.5 0 0,0 14,9.5A1.5,1.5 0 0,0 15.5,11M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},iW=[],oW=Ze(rW,nW,iW,!1,null,null);const sW=oW.exports,aW={name:"FileDocumentIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon file-document-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},uW=[],cW=Ze(aW,lW,uW,!1,null,null);const dW=cW.exports,hW={name:"FolderOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon folder-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},fW=[],mW=Ze(hW,pW,fW,!1,null,null);const gW=mW.exports,yW={name:"FormatBoldIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var TW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-bold-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13.5,15.5H10V12.5H13.5A1.5,1.5 0 0,1 15,14A1.5,1.5 0 0,1 13.5,15.5M10,6.5H13A1.5,1.5 0 0,1 14.5,8A1.5,1.5 0 0,1 13,9.5H10M15.6,10.79C16.57,10.11 17.25,9 17.25,8C17.25,5.74 15.5,4 13.25,4H7V18H14.04C16.14,18 17.75,16.3 17.75,14.21C17.75,12.69 16.89,11.39 15.6,10.79Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},bW=[],vW=Ze(yW,TW,bW,!1,null,null);const AW=vW.exports,EW={name:"FormatHeader1Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-header1-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M14,18V16H16V6.31L13.5,7.75V5.44L16,4H18V16H20V18H14Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},SW=[],DW=Ze(EW,wW,SW,!1,null,null);const eF=DW.exports,xW={name:"FormatHeader2Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var kW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-header2-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M21,18H15A2,2 0 0,1 13,16C13,15.47 13.2,15 13.54,14.64L18.41,9.41C18.78,9.05 19,8.55 19,8A2,2 0 0,0 17,6A2,2 0 0,0 15,8H13A4,4 0 0,1 17,4A4,4 0 0,1 21,8C21,9.1 20.55,10.1 19.83,10.83L15,16H21V18Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},CW=[],_W=Ze(xW,kW,CW,!1,null,null);const NW=_W.exports,FW={name:"FormatHeader3Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var OW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-header3-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V15H15V16H19V12H15V10H19V6H15V7H13V6A2,2 0 0,1 15,4Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},MW=[],RW=Ze(FW,OW,MW,!1,null,null);const BW=RW.exports,IW={name:"FormatHeader4Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var LW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-header4-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M18,18V13H13V11L18,4H20V11H21V13H20V18H18M18,11V7.42L15.45,11H18Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},zW=[],YW=Ze(IW,LW,zW,!1,null,null);const HW=YW.exports,PW={name:"FormatHeader5Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var ZW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-header5-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H20V6H15V10H17A4,4 0 0,1 21,14A4,4 0 0,1 17,18H15A2,2 0 0,1 13,16V15H15V16H17A2,2 0 0,0 19,14A2,2 0 0,0 17,12H15A2,2 0 0,1 13,10V6A2,2 0 0,1 15,4Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},$W=[],UW=Ze(PW,ZW,$W,!1,null,null);const VW=UW.exports,jW={name:"FormatHeader6Icon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var GW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-header6-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,4H5V10H9V4H11V18H9V12H5V18H3V4M15,4H19A2,2 0 0,1 21,6V7H19V6H15V10H19A2,2 0 0,1 21,12V16A2,2 0 0,1 19,18H15A2,2 0 0,1 13,16V6A2,2 0 0,1 15,4M15,12V16H19V12H15Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},qW=[],WW=Ze(jW,GW,qW,!1,null,null);const KW=WW.exports,QW={name:"FormatIndentDecreaseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var JW=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-indent-decrease-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M3,21H21V19H3M3,12L7,16V8M11,17H21V15H11V17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},XW=[],eK=Ze(QW,JW,XW,!1,null,null);const tK=eK.exports,rK={name:"FormatIndentIncreaseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-indent-increase-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,13H21V11H11M11,9H21V7H11M3,3V5H21V3M11,17H21V15H11M3,8V16L7,12M3,21H21V19H3V21Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},iK=[],oK=Ze(rK,nK,iK,!1,null,null);const sK=oK.exports,aK={name:"FormatItalicIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-italic-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M10,4V7H12.21L8.79,15H6V18H14V15H11.79L15.21,7H18V4H10Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},uK=[],cK=Ze(aK,lK,uK,!1,null,null);const dK=cK.exports,hK={name:"FormatListBulletedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-list-bulleted-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M7,5H21V7H7V5M7,13V11H21V13H7M4,4.5A1.5,1.5 0 0,1 5.5,6A1.5,1.5 0 0,1 4,7.5A1.5,1.5 0 0,1 2.5,6A1.5,1.5 0 0,1 4,4.5M4,10.5A1.5,1.5 0 0,1 5.5,12A1.5,1.5 0 0,1 4,13.5A1.5,1.5 0 0,1 2.5,12A1.5,1.5 0 0,1 4,10.5M7,19V17H21V19H7M4,16.5A1.5,1.5 0 0,1 5.5,18A1.5,1.5 0 0,1 4,19.5A1.5,1.5 0 0,1 2.5,18A1.5,1.5 0 0,1 4,16.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},fK=[],mK=Ze(hK,pK,fK,!1,null,null);const gK=mK.exports,yK={name:"FormatListCheckboxIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var TK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-list-checkbox-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M21,19V17H8V19H21M21,13V11H8V13H21M8,7H21V5H8V7M4,5V7H6V5H4M3,5A1,1 0 0,1 4,4H6A1,1 0 0,1 7,5V7A1,1 0 0,1 6,8H4A1,1 0 0,1 3,7V5M4,11V13H6V11H4M3,11A1,1 0 0,1 4,10H6A1,1 0 0,1 7,11V13A1,1 0 0,1 6,14H4A1,1 0 0,1 3,13V11M4,17V19H6V17H4M3,17A1,1 0 0,1 4,16H6A1,1 0 0,1 7,17V19A1,1 0 0,1 6,20H4A1,1 0 0,1 3,19V17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},bK=[],vK=Ze(yK,TK,bK,!1,null,null);const AK=vK.exports,EK={name:"FormatListNumberedIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-list-numbered-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},SK=[],DK=Ze(EK,wK,SK,!1,null,null);const xK=DK.exports,kK={name:"FormatQuoteCloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var CK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-quote-close-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},_K=[],NK=Ze(kK,CK,_K,!1,null,null);const FK=NK.exports,OK={name:"FormatSizeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var MK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-size-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M2 4V7H7V19H10V7H15V4H2M21 9H12V12H15V19H18V12H21V9Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},RK=[],BK=Ze(OK,MK,RK,!1,null,null);const IK=BK.exports,LK={name:"FormatStrikethroughIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var zK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-strikethrough-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3,14H21V12H3M5,4V7H10V10H14V7H19V4M10,19H14V16H10V19Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},YK=[],HK=Ze(LK,zK,YK,!1,null,null);const PK=HK.exports,ZK={name:"FormatUnderlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $K=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon format-underline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M5,21H19V19H5V21M12,17A6,6 0 0,0 18,11V3H15.5V11A3.5,3.5 0 0,1 12,14.5A3.5,3.5 0 0,1 8.5,11V3H6V11A6,6 0 0,0 12,17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},UK=[],VK=Ze(ZK,$K,UK,!1,null,null);const jK=VK.exports,GK={name:"HelpCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon help-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,18H13V16H11V18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,6A4,4 0 0,0 8,10H10A2,2 0 0,1 12,8A2,2 0 0,1 14,10C14,12 11,11.75 11,15H13C13,12.75 16,12.5 16,10A4,4 0 0,0 12,6Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},WK=[],KK=Ze(GK,qK,WK,!1,null,null);const tF=KK.exports,QK={name:"ImageOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var JK=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon image-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,19H5V5H19M19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M13.96,12.29L11.21,15.83L9.25,13.47L6.5,17H17.5L13.96,12.29Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},XK=[],eQ=Ze(QK,JK,XK,!1,null,null);const tQ=eQ.exports,rQ={name:"InformationOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon information-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},iQ=[],oQ=Ze(rQ,nQ,iQ,!1,null,null);const sQ=oQ.exports,aQ={name:"LinkIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon link-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3.9,12C3.9,10.29 5.29,8.9 7,8.9H11V7H7A5,5 0 0,0 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12M8,13H16V11H8V13M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.71 18.71,15.1 17,15.1H13V17H17A5,5 0 0,0 22,12A5,5 0 0,0 17,7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},uQ=[],cQ=Ze(aQ,lQ,uQ,!1,null,null);const dQ=cQ.exports,hQ={name:"LinkOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon link-off-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M17,7H13V8.9H17C18.71,8.9 20.1,10.29 20.1,12C20.1,13.43 19.12,14.63 17.79,15L19.25,16.44C20.88,15.61 22,13.95 22,12A5,5 0 0,0 17,7M16,11H13.81L15.81,13H16V11M2,4.27L5.11,7.38C3.29,8.12 2,9.91 2,12A5,5 0 0,0 7,17H11V15.1H7C5.29,15.1 3.9,13.71 3.9,12C3.9,10.41 5.11,9.1 6.66,8.93L8.73,11H8V13H10.73L13,15.27V17H14.73L18.74,21L20,19.74L3.27,3L2,4.27Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},fQ=[],mQ=Ze(hQ,pQ,fQ,!1,null,null);const gQ=mQ.exports,yQ={name:"LoadingIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var TQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon loading-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,4V2A10,10 0 0,0 2,12H4A8,8 0 0,1 12,4Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},bQ=[],vQ=Ze(yQ,TQ,bQ,!1,null,null);const AQ=vQ.exports,EQ={name:"PaperclipIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon paperclip-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},SQ=[],DQ=Ze(EQ,wQ,SQ,!1,null,null);const xQ=DQ.exports,kQ={name:"PencilOffOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var CQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon pencil-off-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M10,10.2L14,6.2L17.8,10L13.8,14L12.4,12.6L15,9.9L14.1,9L11.5,11.6L10,10.2M20.7,5.6L18.4,3.3C18.2,3.1 17.9,3 17.7,3C17.5,3 17.2,3.1 17,3.3L15.2,5.1L19,8.9L20.7,7C21.1,6.7 21.1,6 20.7,5.6M19,21.7L17.7,23L11.2,16.5L6.8,21H3V17.2L7.5,12.7L1,6.3L2.3,5L19,21.7M9.8,15.1L8.9,14.2L5,18.1V19H5.9L9.8,15.1Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},_Q=[],NQ=Ze(kQ,CQ,_Q,!1,null,null);const FQ=NQ.exports,OQ={name:"PencilOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var MQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon pencil-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M14.06,9L15,9.94L5.92,19H5V18.08L14.06,9M17.66,3C17.41,3 17.15,3.1 16.96,3.29L15.13,5.12L18.88,8.87L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18.17,3.09 17.92,3 17.66,3M14.06,6.19L3,17.25V21H6.75L17.81,9.94L14.06,6.19Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},RQ=[],BQ=Ze(OQ,MQ,RQ,!1,null,null);const Xv=BQ.exports,IQ={name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var LQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon plus-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},zQ=[],YQ=Ze(IQ,LQ,zQ,!1,null,null);const rF=YQ.exports,HQ={name:"ShapeOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var PQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon shape-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,13.5V21.5H3V13.5H11M9,15.5H5V19.5H9V15.5M12,2L17.5,11H6.5L12,2M12,5.86L10.08,9H13.92L12,5.86M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13M17.5,15A2.5,2.5 0 0,0 15,17.5A2.5,2.5 0 0,0 17.5,20A2.5,2.5 0 0,0 20,17.5A2.5,2.5 0 0,0 17.5,15Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},ZQ=[],$Q=Ze(HQ,PQ,ZQ,!1,null,null);const UQ=$Q.exports,VQ={name:"SigmaIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var jQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon sigma-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M18,6H8.83L14.83,12L8.83,18H18V20H6V18L12,12L6,6V4H18V6Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},GQ=[],qQ=Ze(VQ,jQ,GQ,!1,null,null);const WQ=qQ.exports,KQ={name:"TableIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var QQ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon table-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M5,4H19A2,2 0 0,1 21,6V18A2,2 0 0,1 19,20H5A2,2 0 0,1 3,18V6A2,2 0 0,1 5,4M5,8V12H11V8H5M13,8V12H19V8H13M5,14V18H11V14H5M13,14V18H19V14H13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},JQ=[],XQ=Ze(KQ,QQ,JQ,!1,null,null);const eJ=XQ.exports,tJ={name:"TableCogIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon table-cog-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M3 3H17C18.11 3 19 3.9 19 5V12.08C17.45 11.82 15.92 12.18 14.68 13H11V17H12.08C11.97 17.68 11.97 18.35 12.08 19H3C1.9 19 1 18.11 1 17V5C1 3.9 1.9 3 3 3M3 7V11H9V7H3M11 7V11H17V7H11M3 13V17H9V13H3M22.78 19.32L21.71 18.5C21.73 18.33 21.75 18.17 21.75 18S21.74 17.67 21.71 17.5L22.77 16.68C22.86 16.6 22.89 16.47 22.83 16.36L21.83 14.63C21.77 14.5 21.64 14.5 21.5 14.5L20.28 15C20 14.82 19.74 14.65 19.43 14.53L19.24 13.21C19.23 13.09 19.12 13 19 13H17C16.88 13 16.77 13.09 16.75 13.21L16.56 14.53C16.26 14.66 15.97 14.82 15.71 15L14.47 14.5C14.36 14.5 14.23 14.5 14.16 14.63L13.16 16.36C13.1 16.47 13.12 16.6 13.22 16.68L14.28 17.5C14.26 17.67 14.25 17.83 14.25 18S14.26 18.33 14.28 18.5L13.22 19.32C13.13 19.4 13.1 19.53 13.16 19.64L14.16 21.37C14.22 21.5 14.35 21.5 14.47 21.5L15.71 21C15.97 21.18 16.25 21.35 16.56 21.47L16.75 22.79C16.77 22.91 16.87 23 17 23H19C19.12 23 19.23 22.91 19.25 22.79L19.44 21.47C19.74 21.34 20 21.18 20.28 21L21.5 21.5C21.64 21.5 21.77 21.5 21.84 21.37L22.84 19.64C22.9 19.53 22.87 19.4 22.78 19.32M18 19.5C17.17 19.5 16.5 18.83 16.5 18S17.18 16.5 18 16.5 19.5 17.17 19.5 18 18.84 19.5 18 19.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},nJ=[],iJ=Ze(tJ,rJ,nJ,!1,null,null);const oJ=iJ.exports,sJ={name:"TableColumnPlusAfterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var aJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon table-column-plus-after-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,2A2,2 0 0,1 13,4V20A2,2 0 0,1 11,22H2V2H11M4,10V14H11V10H4M4,16V20H11V16H4M4,4V8H11V4H4M15,11H18V8H20V11H23V13H20V16H18V13H15V11Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},lJ=[],uJ=Ze(sJ,aJ,lJ,!1,null,null);const cJ=uJ.exports,dJ={name:"TableColumnPlusBeforeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var hJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon table-column-plus-before-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13,2A2,2 0 0,0 11,4V20A2,2 0 0,0 13,22H22V2H13M20,10V14H13V10H20M20,16V20H13V16H20M20,4V8H13V4H20M9,11H6V8H4V11H1V13H4V16H6V13H9V11Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},pJ=[],fJ=Ze(dJ,hJ,pJ,!1,null,null);const mJ=fJ.exports,gJ={name:"TableRowPlusAfterIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var yJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon table-row-plus-after-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M22,10A2,2 0 0,1 20,12H4A2,2 0 0,1 2,10V3H4V5H8V3H10V5H14V3H16V5H20V3H22V10M4,10H8V7H4V10M10,10H14V7H10V10M20,10V7H16V10H20M11,14H13V17H16V19H13V22H11V19H8V17H11V14Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},TJ=[],bJ=Ze(gJ,yJ,TJ,!1,null,null);const vJ=bJ.exports,AJ={name:"TableRowPlusBeforeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var EJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon table-row-plus-before-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M22,14A2,2 0 0,0 20,12H4A2,2 0 0,0 2,14V21H4V19H8V21H10V19H14V21H16V19H20V21H22V14M4,14H8V17H4V14M10,14H14V17H10V14M20,14V17H16V14H20M11,10H13V7H16V5H13V2H11V5H8V7H11V10Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},wJ=[],SJ=Ze(AJ,EJ,wJ,!1,null,null);const DJ=SJ.exports,xJ={name:"TranslateIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var kJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon translate-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12.87,15.07L10.33,12.56L10.36,12.53C12.1,10.59 13.34,8.36 14.07,6H17V4H10V2H8V4H1V6H12.17C11.5,7.92 10.44,9.75 9,11.35C8.07,10.32 7.3,9.19 6.69,8H4.69C5.42,9.63 6.42,11.17 7.67,12.56L2.58,17.58L4,19L9,14L12.11,17.11L12.87,15.07M18.5,10H16.5L12,22H14L15.12,19H19.87L21,22H23L18.5,10M15.88,17L17.5,12.67L19.12,17H15.88Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},CJ=[],_J=Ze(xJ,kJ,CJ,!1,null,null);const NJ=_J.exports,FJ={name:"TrashCanOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var OJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon trash-can-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},MJ=[],RJ=Ze(FJ,OJ,MJ,!1,null,null);const e7=RJ.exports,BJ={name:"TrayArrowUpIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var IJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon tray-arrow-up-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M2 12H4V17H20V12H22V17C22 18.11 21.11 19 20 19H4C2.9 19 2 18.11 2 17V12M12 2L6.46 7.46L7.88 8.88L11 5.75V15H13V5.75L16.13 8.88L17.55 7.45L12 2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},LJ=[],zJ=Ze(BJ,IJ,LJ,!1,null,null);const YJ=zJ.exports,HJ={name:"UnfoldMoreHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var PJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon unfold-more-horizontal-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},ZJ=[],$J=Ze(HJ,PJ,ZJ,!1,null,null);const UJ=$J.exports,VJ={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var jJ=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},GJ=[],qJ=Ze(VJ,jJ,GJ,!1,null,null);const WJ=qJ.exports,nF=20,Wt=e=>({functional:!0,render(r,{data:n,props:i}){return r(e,{data:n,key:n.key,staticClass:n.staticClass,props:{size:nF,...i}})}}),ET={functional:!0,render(e,{data:r,props:n}){return e(AQ,{data:r,staticClass:"animation-rotate",props:{size:nF,...n}})}},k9e=Wt(yq),KJ=Wt(rq),QJ=Wt(aq),JJ=Wt(hq),XJ=Wt(Vq),eX=Wt(Kq),iF=Wt(QG),tX=Wt(dW),C9e=Wt(tW),rX=Wt(sW),nX=Wt(gW),iX=Wt(AW),oX=Wt(IK),sX=Wt(eF),aX=Wt(NW),lX=Wt(BW),uX=Wt(HW),cX=Wt(VW),dX=Wt(KW),hX=Wt(tK),pX=Wt(sK),fX=Wt(dK),i2=Wt(gK),mX=Wt(AK),gX=Wt(xK),yX=Wt(FK),TX=Wt(PK),bX=Wt(jK),_9e=Wt(tF),vX=Wt(tQ),t7=Wt(sQ),AX=Wt(dQ),EX=Wt(gQ),wX=Wt(xQ),SX=Wt(Xv),DX=Wt(FQ),oF=Wt(Iq),xX=Wt(kq),kX=Wt(UQ),CX=Wt(eJ),sF=Wt(cJ),_X=Wt(mJ),aF=Wt(vJ),NX=Wt(DJ),FX=Wt(oJ),R3=Wt(e7),OX=Wt(Eq),MX=Wt(UJ),RX=Wt(YJ),lF=Wt(jG),BX=Wt(WJ),IX=Wt(rF),mE=Wt(WQ),r7={beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}};function LX(e,r){let n=e.$parent;for(;n;){if(n.$options.name===r)return n;n=n.$parent}}const B3={mixins:[r7],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return!!new URL(this.icon,this.icon.startsWith("/")?window.location.origin:void 0)}catch{return!1}}},methods:{onClick(e){if(this.$emit("click",e),this.closeAfterClick){const r=LX(this,"NcActions");r&&r.closeMenu&&r.closeMenu(!1)}}}},zX={name:"NcActionButton",components:{NcIconSvgWrapper:rp},mixins:[B3],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{ariaHidden:{type:Boolean,default:null},disabled:{type:Boolean,default:!1},isMenu:{type:Boolean,default:!1},type:{type:String,default:"button",validator:e=>["button","checkbox","radio","reset","submit"].includes(e)},modelValue:{type:[Boolean,String],default:null},value:{type:String,default:null},description:{type:String,default:""}},setup(){return{mdiCheck:uk,mdiChevronRight:VL}},computed:{isFocusable(){return!this.disabled},isChecked(){return this.type==="radio"&&typeof this.modelValue!="boolean"?this.modelValue===this.value:this.modelValue},nativeType(){return this.type==="submit"||this.type==="reset"?this.type:"button"},buttonAttributes(){const e={};return this.isInSemanticMenu?(e.role="menuitem",this.type==="radio"?(e.role="menuitemradio",e["aria-checked"]=this.isChecked?"true":"false"):(this.type==="checkbox"||this.nativeType==="button"&&this.modelValue!==null)&&(e.role="menuitemcheckbox",e["aria-checked"]=this.modelValue===null?"mixed":this.modelValue?"true":"false")):this.modelValue!==null&&this.nativeType==="button"&&(e["aria-pressed"]=this.modelValue?"true":"false"),e}},methods:{handleClick(e){this.onClick(e),(this.modelValue!==null||this.type!=="button")&&(this.type==="radio"?typeof this.modelValue!="boolean"?this.isChecked||this.$emit("update:modelValue",this.value):this.$emit("update:modelValue",!this.isChecked):this.$emit("update:modelValue",!this.isChecked))}}};var YX=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",class:{"action--disabled":e.disabled},attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("button",e._b({staticClass:"action-button button-vue",class:{"action-button--active":e.isChecked,focusable:e.isFocusable},attrs:{"aria-label":e.ariaLabel,disabled:e.disabled,title:e.title,type:e.nativeType},on:{click:e.handleClick}},"button",e.buttonAttributes,!1),[e._t("icon",function(){return[r("span",{staticClass:"action-button__icon",class:[e.isIconUrl?"action-button__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),r("span",{staticClass:"action-button__longtext-wrapper"},[e.name?r("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]):e._e(),e.isLongText?r("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-button__text"},[e._v(" "+e._s(e.text)+" ")]),e.description?r("span",{staticClass:"action-button__description",domProps:{textContent:e._s(e.description)}}):e._e()]),e.isMenu?r("NcIconSvgWrapper",{staticClass:"action-button__menu-icon",attrs:{directional:"",path:e.mdiChevronRight}}):e.isChecked?r("NcIconSvgWrapper",{staticClass:"action-button__pressed-icon",attrs:{path:e.mdiCheck}}):e.isChecked===!1?r("span",{staticClass:"action-button__pressed-icon material-design-icon"}):e._e(),e._e()],2)])},HX=[],PX=qt(zX,YX,HX,!1,null,"5b4c6c71");const _0=PX.exports,ZX={name:"NcActionSeparator"};var $X=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action action-separator action--disabled",attrs:{role:"separator"}})},UX=[],VX=qt(ZX,$X,UX,!1,null,"3e2324b7");const I3=VX.exports;async function jX(e){const r=`${e.token?bo("/apps/text/public"):bo("/apps/text")}/session/${e.fileId}/create`,n=await qn.put(r,e),{document:i,session:o}=n.data;return{connection:{documentId:i.id,sessionId:o.id,sessionToken:o.token,baseVersionEtag:i.baseVersionEtag,filePath:e.filePath,shareToken:e.token},data:n.data}}async function N9e(e,r){if(!r.shareToken)throw new Error("Cannot set guest name without a share token!");const n=r.documentId,i=bo(`/apps/text/public/session/${n}/session`);return(await qn.post(i,{documentId:r.documentId,sessionId:r.sessionId,sessionToken:r.sessionToken,token:r.shareToken,guestName:e})).data}async function GX(e){const r=e.documentId,n=bo(`/apps/text/session/${r}/close`);return(await qn.post(n,{documentId:e.documentId,sessionId:e.sessionId,sessionToken:e.sessionToken})).data}const uF=Symbol("text:connection"),cF=Symbol("text:opendata");function F9e(e){let r;const n=x2(void 0),i=x2(void 0),o=async()=>{const s=localStorage.getItem("nick")??"",{connection:a,data:l}=qX(e)||await jX({fileId:e.fileId,guestName:s,token:e.shareToken,filePath:e.relativePath,baseVersionEtag:r});return r=l.document.baseVersionEtag,n.value=a,i.value=l,l};return Sl(uF,n),Sl(cF,i),{connection:n,openConnection:o,openData:i}}const dF=()=>{const e=wl(uF),r=wl(cF);return{connection:e,openData:r}};function qX(e){if(e.initialSession){const{document:r,session:n}=e.initialSession;return{connection:{documentId:r.id,sessionId:n.id,sessionToken:n.token,baseVersionEtag:r.baseVersionEtag,filePath:e.relativePath,shareToken:e.shareToken},data:e.initialSession}}}function hF(){const e=_i(navigator.onLine?null:Date.now()),r=ri(()=>!e.value);return xu("networkOnline",n=>{n.success&&(e.value=null)}),xu("networkOffline",()=>{e.value=Date.now()}),{networkOnline:r,offlineSince:e}}function pF(e,r=100,n={}){if(typeof e!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof e}\`.`);if(r<0)throw new RangeError("`wait` must not be negative.");if(typeof n=="boolean")throw new TypeError("The `options` parameter must be an object, not a boolean. Use `{immediate: true}` instead.");const{immediate:i}=n;let o,s,a,l,u;function c(){const p=o,f=s;return o=void 0,s=void 0,u=e.apply(p,f),u}function d(){const p=Date.now()-l;p=0?a=setTimeout(d,r-p):(a=void 0,i||(u=c()))}const h=function(...p){if(o&&this!==o&&Object.getPrototypeOf(this)===Object.getPrototypeOf(o))throw new Error("Debounced method called with different contexts of the same prototype.");o=this,s=p,l=Date.now();const f=i&&!a;if(a||(a=setTimeout(d,r)),f)return u=c(),u};return Object.defineProperty(h,"isPending",{get(){return a!==void 0}}),h.clear=()=>{a&&(clearTimeout(a),a=void 0,o=void 0,s=void 0)},h.flush=()=>{a&&h.trigger()},h.trigger=()=>{u=c(),h.clear()},h}const n7=1024,fF=n7/2,e4=e=>document.documentElement.clientWidth{i7.value=e4(n7),WX.value=e4(fF)},{passive:!0});function dp(){return ld(i7)}ld(i7);let o2;typeof window<"u"?window.btoa?o2=function(e){return btoa(unescape(encodeURIComponent(e)))}:o2=function(e){const r=unescape(encodeURIComponent(e+""));let n="";for(let i,o,s=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.charAt(s|0)||(a="=",s%1);n+=a.charAt(63&i>>8-s%1*8)){if(o=r.charCodeAt(s+=3/4),o>255)throw new Error("'btoa' failed: The string to be encoded contains characters outside of the Latin1 range.");i=i<<8|o}return n}:o2=function(e){return o3.from(e).toString("base64")};function Dn(e,r){let n=gE(e,r);return(r&&r.fallback!==void 0?r.fallback:Dn.defaults.fallback)===!0&&n===""&&(n=gE(o2(e),r)),n}const mF={bg:{Й:"Y",й:"y",X:"H",x:"h",Ц:"Ts",ц:"ts",Щ:"Sht",щ:"sht",Ъ:"A",ъ:"a",Ь:"Y",ь:"y"},de:{Ä:"AE",ä:"ae",Ö:"OE",ö:"oe",Ü:"UE",ü:"ue"},sr:{đ:"dj",Đ:"DJ"},uk:{И:"Y",и:"y",Й:"Y",й:"y",Ц:"Ts",ц:"ts",Х:"Kh",х:"kh",Щ:"Shch",щ:"shch",Г:"H",г:"h"}};let wT={};function gE(e,r){if(typeof e!="string")throw new Error("slug() requires a string argument, received "+typeof e);if(!e.isWellFormed())throw new Error("slug() received a malformed string with lone surrogates");typeof r=="string"&&(r={replacement:r}),r=r?Object.assign({},r):{},r.mode=r.mode||Dn.defaults.mode;const n=Dn.defaults.modes[r.mode],i=["replacement","multicharmap","charmap","remove","lower","trim"];for(let u,c=0,d=i.length;c1?n[r[o]]=e[r[o]]:i[r[o]]=e[r[o]];Object.assign(Dn.charmap,i),Object.assign(Dn.multicharmap,n)},Dn.setLocale=function(e){wT=mF[e]||{}};function bE(e){const r=new Map,n=[],i=o=>{const s=Dn(o);if(r.has(s)){const a=r.get(s);return r.set(s,a+1),`h-${s}--${a}`}return r.set(s,1),"h-"+s};return e.descendants((o,s)=>{if(o.type.name!=="heading")return;const a=o.textContent;if(!a)return;const l=i(a),u=Object.freeze({level:o.attrs.level,text:a,id:l,offset:s});n.push(u)}),n}const gF=new hr("headingAnchor");function KX(){return new lr({key:gF,state:{init(e,{doc:r}){const n=bE(r);return{headings:n,decorations:vE(r,n)}},apply(e,r,n,i){if(!e.docChanged)return r;const o=bE(i.doc),s=QX(r,e,o)||vE(i.doc,o);return{headings:o,decorations:s}}},props:{decorations(e){return this.getState(e).decorations}}})}function QX(e,r,n){if(JX(n,e.headings))return!1;let i=!1;const o=e.decorations.map(r.mapping,r.doc,{onRemove:()=>{i=!0}});return i?!1:o}function JX(e,r){return e.length!==r.length||e.some(XX(r))}const XX=e=>(r,n)=>r.id!==e[n].id||r.level!==e[n].level;function vE(e,r){const n=r.map(eee);return Nr.create(e,n)}function eee(e){return kn.widget(e.offset+1,tee(e),{side:-1})}function tee(e){return r=>{const n=r.dom.querySelector(`#${e.id}`);if(n)return n;const i=document.createElement("a"),o=document.createTextNode("#");return i.appendChild(o),i.setAttribute("id",e.id),i.setAttribute("aria-hidden","true"),i.className="heading-anchor",i.setAttribute("href",`#${e.id}`),i.setAttribute("title",lt("text","Link to this section")),i.setAttribute("contenteditable","false"),i.addEventListener("click",ree),i}}function ree(e){e.stopPropagation(),e.preventDefault();const r=e.target;r.scrollIntoView({block:"start",behavior:"smooth"}),window.history.replaceState({},"",r.getAttribute("href"))}const yF=Symbol("text:headings"),TF=Symbol("text:displaytoc"),O9e=e=>{const r=x2([]),n=_i(!1),i=()=>{r.value=gF.getState(e.state)?.headings??[]};return i(),e.on("update",({transaction:o})=>{o.docChanged&&i()}),Sl(yF,r),Sl(TF,n),xu("text:toc:toggle",o=>{o?.visible!==void 0?n.value=o.visible:n.value=!n.value,Io("text:toc:toggled",n.value)}),{displayToc:n,headings:r,updateHeadings:i}},L3=()=>{const e=wl(yF);return{displayToc:wl(TF),headings:e}},bF=Symbol("wrapper:read-only-actions"),nee={inject:{$readOnlyActions:{from:bF,default:{toggle:()=>{}}}}},ST=navigator.userAgent.includes("Mac"),wr={Mod:ST?"Meta":"Control",Alt:"Alt",Control:"Control",Shift:"Shift"},iee={[wr.Mod]:ST?lt("text","Command"):lt("text","Ctrl"),[wr.Control]:lt("text","Ctrl"),[wr.Alt]:lt("text",ST?"Option":"Alt"),[wr.Shift]:lt("text","Shift")},oee=(e,r)=>({"is-active":r,[`action-menu-${e.key}`]:!0}),see=(e,r=[])=>r.map(n=>iee[n]).concat(e.toUpperCase()).join("+"),aee=({keyChar:e,keyModifiers:r=[]})=>r.map(n=>wr[n]).concat(e).join("+"),AE=(e,{keyChar:r,keyModifiers:n})=>!e&&r?`(${see(r,n)})`:"",lee=(e,r)=>e.action&&!e.action(r.can(),r),vF=({isActive:e},r)=>{if(!e)return!1;const n=Array.isArray(e)?e:[e];for(const i of n){let o;if(i!==null&&typeof i=="object"?o=i.name?[i.name,{...i.attributes}]:[{...i.attributes}]:o=[i],r.isActive(...o))return!0}return!1},uee=e=>Array.isArray(e.isActive)?"button":e.isActive&&typeof e.isActive=="object"?"radio":typeof e.isActive=="string"?"checkbox":"button",EE=(e,r)=>{const n=vF(e,r);return{disabled:lee(e,r),class:oee(e,n),active:n}},Yh={mixins:[nee],setup(){const e=dp(),{editor:r}=hd(),{displayToc:n}=L3();return{displayToc:n,editor:r,isMobile:e}},props:{actionEntry:{type:Object,required:!0},canBeFocussed:{type:Boolean,default:null}},data(){return{state:EE(this.actionEntry,this.editor),actionType:uee(this.actionEntry)}},computed:{label(){const{label:e}=this.actionEntry;return typeof e=="function"?e({displayToc:this.displayToc}):e},icon(){return this.actionEntry.icon},keyshortcuts(){return aee(this.actionEntry)},tooltip(){return[this.label,AE(this.isMobile,this.actionEntry)].join(" ")},listItemTooltip(){return[AE(this.isMobile,this.actionEntry)].join(" ")}},watch:{canBeFocussed(){this.setTabIndexOnButton()}},mounted(){this.$_updateState=pF(this.updateState.bind(this),50),this.editor.on("update",this.$_updateState),this.editor.on("selectionUpdate",this.$_updateState),this.$emit("disabled",this.state.disabled),this.setTabIndexOnButton()},beforeDestroy(){this.editor.off("update",this.$_updateState),this.editor.off("selectionUpdate",this.$_updateState)},methods:{updateState(){this.state=EE(this.actionEntry,this.editor),this.$emit("disabled",this.state.disabled)},setTabIndexOnButton(){const e=this.$el.tagName.toLowerCase()==="button"?this.$el:this.$el.querySelector("button");this.canBeFocussed===null?e.removeAttribute("tabindex"):e.setAttribute("tabindex",this.canBeFocussed?"0":"-1")},focusButton(){(this.$el.tagName.toLowerCase()==="button"?this.$el:this.$el.querySelector("button")).focus()}}},cee=Symbol("menu::id"),z3={inject:{$menuID:{from:cee,default:null}},computed:{menuIDSelector(){return`#${this.$menuID}`}}},dee={name:"ActionAttachmentUpload",components:{NcActions:Nl,NcActionSeparator:I3,NcActionButton:_0,NcIconSvgWrapper:rp,Loading:ET,Folder:nX,Upload:RX,Plus:IX},extends:Yh,mixins:[yk,cz,dz,hz,pz,z3],setup(){const{isPublic:e}=M3(),{openData:r}=dF(),{networkOnline:n}=hF();return{...Yh.setup(),isPublic:e,networkOnline:n,openData:r}},computed:{icon(){return this.isUploadingAttachments?ET:this.actionEntry.icon},isUploadingAttachments(){return this.$uploadingState.isUploadingAttachments},templates(){return zu("files","templates",[])},isUploadDisabled(){return!this.openData?.hasOwner||!this.networkOnline},menuTitle(){return this.networkOnline?this.openData?.hasOwner?this.actionEntry.label:lt("text","Attachments cannot be created or uploaded because this file is shared from another cloud."):lt("text","Disabled because you are currently offline.")}},methods:{createAttachment(e){this.$callCreateAttachment(e)},t:lt}};var hee=function(){var e=this,r=e._self._c;return r("NcActions",{staticClass:"entry-action entry-action__image-upload",attrs:{"data-text-action-entry":e.actionEntry.key,name:e.actionEntry.label,disabled:e.isUploadDisabled,title:e.menuTitle,"aria-label":e.actionEntry.label,container:e.menuIDSelector},scopedSlots:e._u([{key:"icon",fn:function(){return[r(e.icon,{tag:"component",attrs:{name:e.actionEntry.label,"aria-label":e.actionEntry.label}})]},proxy:!0}])},[e.$editorUpload?r("NcActionButton",{attrs:{"close-after-click":"",disabled:e.isUploadingAttachments,"data-text-action-entry":`${e.actionEntry.key}-upload`},on:{click:e.$callChooseLocalAttachment},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Upload")]},proxy:!0}],null,!1,933298848)},[e._v(" "+e._s(e.t("text","Upload from computer"))+" ")]):e._e(),e.isPublic?e._e():r("NcActionButton",{attrs:{"close-after-click":"",disabled:e.isUploadingAttachments,"data-text-action-entry":`${e.actionEntry.key}-insert`},on:{click:e.$callAttachmentPrompt},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Folder")]},proxy:!0}],null,!1,2750733237)},[e._v(" "+e._s(e.t("text","Insert from Files"))+" ")]),e.templates.length?[r("NcActionSeparator"),e._l(e.templates,function(n,i){return r("NcActionButton",{key:`${n.app}-${i}`,attrs:{"close-after-click":"",disabled:e.isUploadingAttachments,"data-text-action-entry":`${e.actionEntry.key}-add-${n.app}-${i}`},on:{click:function(o){return e.createAttachment(n)}},scopedSlots:e._u([{key:"icon",fn:function(){return[n.iconSvgInline?r("NcIconSvgWrapper",{attrs:{svg:n.iconSvgInline}}):r("Plus")]},proxy:!0}],null,!0)},[e._v(" "+e._s(n.actionLabel)+" ")])})]:e._e()],2)},pee=[],fee=Ze(dee,hee,pee,!1,null,null);const mee=fee.exports,gee=["date","datetime-local","month","time","week"],yee={name:"NcDateTimePickerNative",inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:Date,default:void 0},modelValue:{type:Date,default:null},id:{type:String,default:()=>"date-time-picker-"+Xs(),validator:e=>e.trim()!==""},type:{type:String,default:"date",validate:e=>gee.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Boolean,Date],default:null},max:{type:[Boolean,Date],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:Ra("value","input")}},computed:{formattedValue(){return this.formatValue(this.model)},formattedMin(){return this.min?this.formatValue(this.min):!1},formattedMax(){return this.max?this.formatValue(this.max):!1},listeners(){return{...this.$listeners,input:e=>{if(isNaN(e.target.valueAsNumber))this.model=null;else if(this.type==="time"){const r=e.target.value;if(this.model===""){const{yyyy:n,MM:i,dd:o}=this.getReadableDate(new Date);this.model=new Date(`${n}-${i}-${o}T${r}`)}else{const{yyyy:n,MM:i,dd:o}=this.getReadableDate(this.model);this.model=new Date(`${n}-${i}-${o}T${r}`)}}else if(this.type==="month"){const r=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.model===""){const{yyyy:n,dd:i,hh:o,mm:s}=this.getReadableDate(new Date);this.model=new Date(`${n}-${r}-${i}T${o}:${s}`)}else{const{yyyy:n,dd:i,hh:o,mm:s}=this.getReadableDate(this.model);this.model=new Date(`${n}-${r}-${i}T${o}:${s}`)}}else{const r=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,n=e.target.valueAsNumber+r;this.model=new Date(n)}}}}},methods:{getReadableDate(e){if(e instanceof Date){const r=e.getFullYear().toString().padStart(4,"0"),n=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),o=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0");return{yyyy:r,MM:n,dd:i,hh:o,mm:s}}},formatValue(e){if(e instanceof Date){const{yyyy:r,MM:n,dd:i,hh:o,mm:s}=this.getReadableDate(e);if(this.type==="datetime-local")return`${r}-${n}-${i}T${o}:${s}`;if(this.type==="date")return`${r}-${n}-${i}`;if(this.type==="month")return`${r}-${n}`;if(this.type==="time")return`${o}:${s}`;if(this.type==="week"){const a=new Date(r,0,1),l=Math.floor((e-a)/(1440*60*1e3)),u=Math.ceil(l/7);return`${r}-W${u}`}}else return""}}};var Tee=function(){var e=this,r=e._self._c;return r("div",{staticClass:"native-datetime-picker"},[r("label",{staticClass:"native-datetime-picker--label",class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" ")]),r("input",e._g(e._b({staticClass:"native-datetime-picker--input",class:e.inputClass,attrs:{id:e.id,type:e.type,min:e.formattedMin,max:e.formattedMax},domProps:{value:e.formattedValue}},"input",e.$attrs,!1),e.listeners))])},bee=[],vee=qt(yee,Tee,bee,!1,null,"6c1feae8");const AF=vee.exports;ck(AF);function Sf(e,r,n){const i=document.querySelector(`#initial-state-${e}-${r}`);if(i===null){if(n!==void 0)return n;throw new Error(`Could not find initial state ${r} of ${e}`)}try{return JSON.parse(atob(i.value))}catch{throw new Error(`Could not parse initial state ${r} of ${e}`)}}var rg={exports:{}},wE;function Aee(){if(wE)return rg.exports;wE=1;function e(r,n=100,i={}){if(typeof r!="function")throw new TypeError(`Expected the first parameter to be a function, got \`${typeof r}\`.`);if(n<0)throw new RangeError("`wait` must not be negative.");const{immediate:o}=typeof i=="boolean"?{immediate:i}:i;let s,a,l,u,c;function d(){const f=s,m=a;return s=void 0,a=void 0,c=r.apply(f,m),c}function h(){const f=Date.now()-u;f=0?l=setTimeout(h,n-f):(l=void 0,o||(c=d()))}const p=function(...f){if(s&&this!==s&&Object.getPrototypeOf(this)===Object.getPrototypeOf(s))throw new Error("Debounced method called with different contexts of the same prototype.");s=this,a=f,u=Date.now();const m=o&&!l;return l||(l=setTimeout(h,n)),m&&(c=d()),c};return Object.defineProperty(p,"isPending",{get(){return l!==void 0}}),p.clear=()=>{l&&(clearTimeout(l),l=void 0)},p.flush=()=>{l&&p.trigger()},p.trigger=()=>{c=d(),p.clear()},p}return rg.exports.debounce=e,rg.exports=e,rg.exports}var Eee=Aee();const EF=D0(Eee),wee={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var See=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Dee=[],xee=qt(wee,See,Dee,!1,null,null);const wF=xee.exports,kee={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Cee=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},_ee=[],Nee=qt(kee,Cee,_ee,!1,null,null);const SF=Nee.exports,Fee={name:"NcInputField",components:{NcButton:as,AlertCircle:wF,Check:SF},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","update:modelValue","update:model-value","trailing-button-click"],setup(){const e=Ra("value","update:value",!0);return{isLegacy32:wa,model:e}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+Xs()},hasTrailingIcon(){return this.success},computedPlaceholder(){if(this.placeholder)return this.placeholder;if(this.label)return wa?this.label:""},isValidLabel(){const e=this.label||this.labelOutside;return e||pi.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){const r=this.type==="number"&&typeof this.model=="number"?parseFloat(e.target.value,10):e.target.value;this.model=r},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var Oee=function(){var e=this,r=e._self._c;return r("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled,"input-field--error":e.error,"input-field--label-outside":e.labelOutside||!e.isValidLabel,"input-field--leading-icon":!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,"input-field--success":e.success,"input-field--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field--pill":e.pill,"input-field--legacy":e.isLegacy32}},[r("div",{staticClass:"input-field__main-wrapper"},[r("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.model?.toString()},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?r("label",{staticClass:"input-field__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,expression:"!!$scopedSlots.icon || !!$scopedSlots.default || !!$slots.default"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("icon",function(){return[e._t("default")]})],2),e.showTrailingButton?r("NcButton",{staticClass:"input-field__trailing-button",attrs:{"aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background"},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?r("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?r("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?r("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?r("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?r("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?r("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},Mee=[],Ree=qt(Fee,Oee,Mee,!1,null,"ab8d7671");const Hh=Ree.exports,Bee={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Iee=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon eye-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Lee=[],zee=qt(Bee,Iee,Lee,!1,null,null);const Yee=zee.exports,Hee={name:"EyeOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Pee=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon eye-off-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Zee=[],$ee=qt(Hee,Pee,Zee,!1,null,null);const Uee=$ee.exports;ar(VI);const SE=Sf("core","capabilities",{}).password_policy||null,Vee=new Set(Object.keys(Hh.props)),jee={name:"NcPasswordField",components:{NcInputField:Hh,IconEye:Yee,IconEyeOff:Uee},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{" ":{},...Hh.props,showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:void 0,checkPasswordStrength:{type:Boolean,default:!1},minlength:{type:Number,default:void 0},maxlength:{type:Number,default:null},asText:{type:Boolean,default:!1},visible:{type:Boolean,default:!1}},emits:["valid","invalid","update:value","update:modelValue","update:model-value","update:visible"],setup(e,{emit:r}){const n=Ra("value","update:value"),i=dk(e,"visible",r,{passive:!0});return{t:Xe,model:n,visibility:i}},data(){return{internalHelpMessage:"",isValid:null}},computed:{computedError(){return this.error||this.isValid===!1},computedSuccess(){return this.success||this.isValid===!0},computedHelperText(){return this.helperText.length>0?this.helperText:this.internalHelpMessage},rules(){const{minlength:e}=this;return{minlength:e??(this.checkPasswordStrength?SE?.minLength:void 0)}},trailingButtonLabelPassword(){return this.visibility?Xe("Hide password"):Xe("Show password")},propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>Vee.has(e)))}}},watch:{model(e){if(this.checkPasswordStrength){if(SE===null)return;this.checkPassword(e)}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.model=e.target.value},toggleVisibility(){this.visibility=!this.visibility},checkPassword:EF(async function(e){try{const{data:r}=await qn.post(_s("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=r.ocs.data.passed,r.ocs.data.passed){this.internalHelpMessage=Xe("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=r.ocs.data.reason,this.$emit("invalid")}catch(r){pi.error("Password policy returned an error",r)}},500)}};var Gee=function(){var e=this,r=e._self._c;return r("NcInputField",e._g(e._b({ref:"inputField",attrs:{type:e.visibility||e.asText?"text":"password","trailing-button-label":e.trailingButtonLabelPassword,"helper-text":e.computedHelperText,error:e.computedError,success:e.computedSuccess,minlength:e.rules.minlength,"input-class":{"password-field__input--secure-text":!e.visibility&&e.asText}},on:{"trailing-button-click":e.toggleVisibility,input:e.handleInput},scopedSlots:e._u([e.$scopedSlots.icon||e.$slots.default||e.$scopedSlots.default?{key:"icon",fn:function(){return[e._t("icon",function(){return[e._t("default")]})]},proxy:!0}:null,{key:"trailing-button-icon",fn:function(){return[e.visibility?r("IconEyeOff",{attrs:{size:18}}):r("IconEye",{attrs:{size:18}})]},proxy:!0}],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners))},qee=[],Wee=qt(jee,Gee,qee,!1,null,"5acba4dc");const Kee=Wee.exports;ar(jI,Qx);const Qee=new Set(Object.keys(Hh.props)),Jee={name:"NcTextField",components:{NcIconSvgWrapper:rp,NcInputField:Hh},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{" ":{},...Hh.props,trailingButtonLabel:{type:String,default:""},trailingButtonIcon:{type:String,default:"close",validator:e=>["close","arrowEnd","arrowRight","undo"].includes(e)}},emits:["update:value","update:modelValue","update:model-value"],setup(){return{model:Ra("value","update:value"),mdiArrowRight:qL,mdiClose:GL,mdiUndo:jL}},computed:{isArrow(){return this.trailingButtonIcon==="arrowEnd"||this.trailingButtonIcon==="arrowRight"},propsAndAttrsToForward(){const e={arrowEnd:Xe("Save changes"),arrowRight:Xe("Save changes"),close:Xe("Clear text"),undo:Xe("Undo changes")};return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([r])=>Qee.has(r))),trailingButtonLabel:this.trailingButtonLabel||e[this.trailingButtonIcon]}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()}}};var Xee=function(){var e=this,r=e._self._c;return r("NcInputField",e._g(e._b({ref:"inputField",scopedSlots:e._u([e.$scopedSlots.icon||e.$slots.default||e.$scopedSlots.default?{key:"icon",fn:function(){return[e._t("icon",function(){return[e._t("default")]})]},proxy:!0}:null,e.type!=="search"?{key:"trailing-button-icon",fn:function(){return[e.isArrow?r("NcIconSvgWrapper",{attrs:{directional:"",path:e.mdiArrowRight}}):r("NcIconSvgWrapper",{attrs:{path:e.trailingButtonIcon==="undo"?e.mdiUndo:e.mdiClose}})]},proxy:!0}:null],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners))},ete=[],tte=qt(Jee,Xee,ete,!1,null,null);const Y3=tte.exports;ar(Jx);const rte={name:"NcActionInput",components:{NcDateTimePickerNative:AF,NcPasswordField:Kee,NcTextField:Y3,NcColorPicker:_5(()=>S1(()=>import("./text-text.mjs").then(e=>e.a),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)),NcDateTimePicker:_5(()=>S1(()=>Promise.resolve().then(()=>U6e),void 0,import.meta.url)),NcSelect:_5(()=>S1(()=>import("./text-text.mjs").then(e=>e.N),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url))},mixins:[r7],model:{prop:"modelValue",event:"update:modelValue"},props:{id:{type:String,default:()=>"action-"+Xs(),validator:e=>e.trim()!==""},inputId:{type:String,default:()=>"action-input-"+Xs(),validator:e=>e.trim()!==""},icon:{type:String,default:""},type:{type:String,default:"text",validator(e){return["date","datetime-local","month","multiselect","number","password","search","tel","text","time","url","week","color","email"].indexOf(e)>-1}},idNativeDateTimePicker:{type:String,default:"date-time-picker_id"},isNativePicker:{type:Boolean,default:!1},label:{type:String,default:null},labelOutside:{type:Boolean,default:!0},value:{type:[String,Date,Number,Array],default:void 0},modelValue:{type:[String,Date,Number,Array],default:""},disabled:{type:Boolean,default:!1},ariaLabel:{type:String,default:""},ariaHidden:{type:Boolean,default:null},showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:{type:String,default:Xe("Submit")}},emits:["input","submit","change","update:value","update:modelValue","update:model-value"],setup(){return{model:Ra("value","update:value")}},computed:{isIconUrl(){try{return new URL(this.icon)}catch{return!1}},isMultiselectType(){return this.type==="multiselect"},nativeDatePickerType(){switch(this.type){case"date":case"month":case"time":case"week":case"datetime-local":return this.type}return!1},datePickerType(){if(!this.isNativePicker)switch(this.type){case"date":case"month":case"time":return this.type;case"datetime-local":return"datetime"}return!1},isFocusable(){return!this.disabled}},methods:{onLeave(){this.$refs.datetimepicker&&this.$refs.datetimepicker.$refs.datepicker&&this.$refs.datetimepicker.$refs.datepicker.closePopup()},onInput(e){this.$emit("input",e),this.model=e.target?e.target.value:e},onSubmit(e){if(e.preventDefault(),e.stopPropagation(),!this.disabled)this.$emit("submit",e);else return!1},onChange(e){this.$emit("change",e)}}};var nte=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",class:{"action--disabled":e.disabled}},[r("span",{staticClass:"action-input",class:{"action-input-picker--disabled":e.disabled,"action-input--visible-label":e.labelOutside&&e.label},on:{mouseleave:e.onLeave}},[r("span",{staticClass:"action-input__icon-wrapper"},[e._t("icon",function(){return[r("span",{staticClass:"action-input__icon",class:[e.isIconUrl?"action-input__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]})],2),r("form",{ref:"form",staticClass:"action-input__form",attrs:{disabled:e.disabled},on:{submit:function(n){return n.preventDefault(),e.onSubmit.apply(null,arguments)}}},[r("div",{staticClass:"action-input__container"},[e.label&&e.labelOutside&&!e.isNativePicker?r("label",{staticClass:"action-input__text-label",class:{"action-input__text-label--hidden":!e.labelOutside},attrs:{for:e.inputId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),r("div",{staticClass:"action-input__input-container"},[e.datePickerType?r("NcDateTimePicker",e._b({ref:"datetimepicker",staticClass:"action-input__datetimepicker",staticStyle:{"z-index":"99999999999"},attrs:{value:e.model,placeholder:e.text,disabled:e.disabled,type:e.datePickerType,"input-class":["mx-input",{focusable:e.isFocusable}]},on:{input:e.onInput,change:e.onChange}},"NcDateTimePicker",e.$attrs,!1)):e.isNativePicker?r("NcDateTimePickerNative",e._b({staticClass:"action-input__datetimepicker",attrs:{id:e.idNativeDateTimePicker,value:e.model,label:e.label,type:e.nativeDatePickerType,"input-class":{focusable:e.isFocusable}},on:{"update:model-value":function(n){e.model=n},change:function(n){return e.$emit("change",n)}}},"NcDateTimePickerNative",e.$attrs,!1)):e.isMultiselectType?r("NcSelect",e._g(e._b({staticClass:"action-input__multi",attrs:{value:e.model,placeholder:e.text,disabled:e.disabled,"append-to-body":e.$attrs.appendToBody||e.$attrs["append-to-body"]||!1,"input-class":{focusable:e.isFocusable}}},"NcSelect",e.$attrs,!1),e.$listeners)):e.type==="password"?r("NcPasswordField",e._g(e._b({attrs:{id:e.inputId,value:e.model,label:e.label,"label-outside":!e.label||e.labelOutside,placeholder:e.text,disabled:e.disabled,"input-class":{focusable:e.isFocusable},"show-trailing-button":e.showTrailingButton&&!e.disabled},on:{input:e.onInput,change:e.onChange}},"NcPasswordField",e.$attrs,!1),e.$listeners)):e.type==="color"?r("div",{staticClass:"action-input__container"},[e.label&&e.type==="color"?r("label",{staticClass:"action-input__text-label",class:{"action-input__text-label--hidden":!e.labelOutside},attrs:{for:e.inputId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),r("div",{staticClass:"action-input__input-container"},[r("NcColorPicker",e._g(e._b({staticClass:"colorpicker__trigger",attrs:{id:"inputId",value:e.model},on:{"update:model-value":e.onInput,submit:function(n){return e.$refs.form.requestSubmit()}}},"NcColorPicker",e.$attrs,!1),e.$listeners),[r("button",{staticClass:"colorpicker__preview",class:{focusable:e.isFocusable},style:{"background-color":e.model}})])],1)]):r("NcTextField",e._g(e._b({attrs:{id:e.inputId,value:e.model,label:e.label,"label-outside":!e.label||e.labelOutside,placeholder:e.text,disabled:e.disabled,"input-class":{focusable:e.isFocusable},type:e.type,"trailing-button-icon":"arrowRight","trailing-button-label":e.trailingButtonLabel,"show-trailing-button":e.showTrailingButton&&!e.disabled},on:{"trailing-button-click":function(n){return e.$refs.form.requestSubmit()},input:e.onInput,change:e.onChange}},"NcTextField",e.$attrs,!1),e.$listeners))],1)])])])])},ite=[],ote=qt(rte,nte,ite,!1,null,"3f545fde");const DF=ote.exports;function Sa(e,r){for(var n in r)e[n]=r[n];return e}var ste=/[!'()*]/g,ate=function(e){return"%"+e.charCodeAt(0).toString(16)},lte=/%2C/g,Ud=function(e){return encodeURIComponent(e).replace(ste,ate).replace(lte,",")};function DT(e){try{return decodeURIComponent(e)}catch{}return e}function ute(e,r,n){r===void 0&&(r={});var i=n||cte,o;try{o=i(e||"")}catch{o={}}for(var s in r){var a=r[s];o[s]=Array.isArray(a)?a.map(DE):DE(a)}return o}var DE=function(e){return e==null||typeof e=="object"?e:String(e)};function cte(e){var r={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var i=n.replace(/\+/g," ").split("="),o=DT(i.shift()),s=i.length>0?DT(i.join("=")):null;r[o]===void 0?r[o]=s:Array.isArray(r[o])?r[o].push(s):r[o]=[r[o],s]}),r}function dte(e){var r=e?Object.keys(e).map(function(n){var i=e[n];if(i===void 0)return"";if(i===null)return Ud(n);if(Array.isArray(i)){var o=[];return i.forEach(function(s){s!==void 0&&(s===null?o.push(Ud(n)):o.push(Ud(n)+"="+Ud(s)))}),o.join("&")}return Ud(n)+"="+Ud(i)}).filter(function(n){return n.length>0}).join("&"):null;return r?"?"+r:""}var t4=/\/?$/;function r4(e,r,n,i){var o=i&&i.options.stringifyQuery,s=r.query||{};try{s=xT(s)}catch{}var a={name:r.name||e&&e.name,meta:e&&e.meta||{},path:r.path||"/",hash:r.hash||"",query:s,params:r.params||{},fullPath:xE(r,o),matched:e?hte(e):[]};return n&&(a.redirectedFrom=xE(n,o)),Object.freeze(a)}function xT(e){if(Array.isArray(e))return e.map(xT);if(e&&typeof e=="object"){var r={};for(var n in e)r[n]=xT(e[n]);return r}else return e}var Vu=r4(null,{path:"/"});function hte(e){for(var r=[];e;)r.unshift(e),e=e.parent;return r}function xE(e,r){var n=e.path,i=e.query;i===void 0&&(i={});var o=e.hash;o===void 0&&(o="");var s=r||dte;return(n||"/")+s(i)+o}function xF(e,r,n){return r===Vu?e===r:r?e.path&&r.path?e.path.replace(t4,"")===r.path.replace(t4,"")&&(n||e.hash===r.hash&&s2(e.query,r.query)):e.name&&r.name?e.name===r.name&&(n||e.hash===r.hash&&s2(e.query,r.query)&&s2(e.params,r.params)):!1:!1}function s2(e,r){if(e===void 0&&(e={}),r===void 0&&(r={}),!e||!r)return e===r;var n=Object.keys(e).sort(),i=Object.keys(r).sort();return n.length!==i.length?!1:n.every(function(o,s){var a=e[o],l=i[s];if(l!==o)return!1;var u=r[o];return a==null||u==null?a===u:typeof a=="object"&&typeof u=="object"?s2(a,u):String(a)===String(u)})}function pte(e,r){return e.path.replace(t4,"/").indexOf(r.path.replace(t4,"/"))===0&&(!r.hash||e.hash===r.hash)&&fte(e.query,r.query)}function fte(e,r){for(var n in r)if(!(n in e))return!1;return!0}function kF(e){for(var r=0;r=0&&(r=e.slice(i),e=e.slice(0,i));var o=e.indexOf("?");return o>=0&&(n=e.slice(o+1),e=e.slice(0,o)),{path:e,query:n,hash:r}}function Ou(e){return e.replace(/\/(?:\s*\/)+/g,"/")}var n4=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},lh=FF,Tte=o7,bte=wte,vte=_F,Ate=NF,Ete=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o7(e,r){for(var n=[],i=0,o=0,s="",a=r&&r.delimiter||"/",l;(l=Ete.exec(e))!=null;){var u=l[0],c=l[1],d=l.index;if(s+=e.slice(o,d),o=d+u.length,c){s+=c[1];continue}var h=e[o],p=l[2],f=l[3],m=l[4],v=l[5],w=l[6],x=l[7];s&&(n.push(s),s="");var k=p!=null&&h!=null&&h!==p,R=w==="+"||w==="*",O=w==="?"||w==="*",P=l[2]||a,V=m||v;n.push({name:f||i++,prefix:p||"",delimiter:P,optional:O,repeat:R,partial:k,asterisk:!!x,pattern:V?xte(V):x?".*":"[^"+a2(P)+"]+?"})}return o1||!O.length)return O.length===0?e():e("span",{},O)}if(this.tag==="a")R.on=k,R.attrs={href:l,"aria-current":w};else{var P=OF(this.$slots.default);if(P){P.isStatic=!1;var V=P.data=Sa({},P.data);V.on=V.on||{};for(var W in V.on){var ie=V.on[W];W in k&&(V.on[W]=Array.isArray(ie)?ie:[ie])}for(var ue in k)ue in V.on?V.on[ue].push(k[ue]):V.on[ue]=x;var I=P.data.attrs=Sa({},P.data.attrs);I.href=l,I["aria-current"]=w}else R.on=k}return e(this.tag,R,this.$slots.default)}};function NE(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var r=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(r))return}return e.preventDefault&&e.preventDefault(),!0}}function OF(e){if(e){for(var r,n=0;n-1&&(w.params[O]=m.params[O]);return w.path=l2(k.path,w.params),p(k,w,v)}else if(w.path){w.params={};for(var P=0;P-1}function a4(e,r){return s4(e)&&e._isRouter&&(r==null||e.type===r)}function IE(e,r,n){var i=function(o){o>=e.length?n():e[o]?r(e[o],function(){i(o+1)}):i(o+1)};i(0)}function Gte(e){return function(r,n,i){var o=!1,s=0,a=null;YF(e,function(l,u,c,d){if(typeof l=="function"&&l.cid===void 0){o=!0,s++;var h=LE(function(v){Wte(v)&&(v=v.default),l.resolved=typeof v=="function"?v:i4.extend(v),c.components[d]=v,s--,s<=0&&i()}),p=LE(function(v){var w="Failed to resolve async component "+d+": "+v;a||(a=s4(v)?v:new Error(w),i(a))}),f;try{f=l(h,p)}catch(v){p(v)}if(f)if(typeof f.then=="function")f.then(h,p);else{var m=f.component;m&&typeof m.then=="function"&&m.then(h,p)}}}),o||i()}}function YF(e,r){return HF(e.map(function(n){return Object.keys(n.components).map(function(i){return r(n.components[i],n.instances[i],n,i)})}))}function HF(e){return Array.prototype.concat.apply([],e)}var qte=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Wte(e){return e.__esModule||qte&&e[Symbol.toStringTag]==="Module"}function LE(e){var r=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!r)return r=!0,e.apply(this,n)}}var Aa=function(e,r){this.router=e,this.base=Kte(r),this.current=Vu,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};Aa.prototype.listen=function(e){this.cb=e},Aa.prototype.onReady=function(e,r){this.ready?e():(this.readyCbs.push(e),r&&this.readyErrorCbs.push(r))},Aa.prototype.onError=function(e){this.errorCbs.push(e)},Aa.prototype.transitionTo=function(e,r,n){var i=this,o;try{o=this.router.match(e,this.current)}catch(a){throw this.errorCbs.forEach(function(l){l(a)}),a}var s=this.current;this.confirmTransition(o,function(){i.updateRoute(o),r&&r(o),i.ensureURL(),i.router.afterHooks.forEach(function(a){a&&a(o,s)}),i.ready||(i.ready=!0,i.readyCbs.forEach(function(a){a(o)}))},function(a){n&&n(a),a&&!i.ready&&(!a4(a,pd.redirected)||s!==Vu)&&(i.ready=!0,i.readyErrorCbs.forEach(function(l){l(a)}))})},Aa.prototype.confirmTransition=function(e,r,n){var i=this,o=this.current;this.pending=e;var s=function(m){!a4(m)&&s4(m)&&(i.errorCbs.length?i.errorCbs.forEach(function(v){v(m)}):console.error(m)),n&&n(m)},a=e.matched.length-1,l=o.matched.length-1;if(xF(e,o)&&a===l&&e.matched[a]===o.matched[l])return this.ensureURL(),e.hash&&Mu(this.router,o,e,!1),s($te(o,e));var u=Qte(this.current.matched,e.matched),c=u.updated,d=u.deactivated,h=u.activated,p=[].concat(Xte(d),this.router.beforeHooks,ere(c),h.map(function(m){return m.beforeEnter}),Gte(h)),f=function(m,v){if(i.pending!==e)return s(BE(o,e));try{m(e,o,function(w){w===!1?(i.ensureURL(!0),s(Ute(o,e))):s4(w)?(i.ensureURL(!0),s(w)):typeof w=="string"||typeof w=="object"&&(typeof w.path=="string"||typeof w.name=="string")?(s(Zte(o,e)),typeof w=="object"&&w.replace?i.replace(w):i.push(w)):v(w)})}catch(w){s(w)}};IE(p,f,function(){var m=tre(h),v=m.concat(i.router.resolveHooks);IE(v,f,function(){if(i.pending!==e)return s(BE(o,e));i.pending=null,r(e),i.router.app&&i.router.app.$nextTick(function(){kF(e)})})})},Aa.prototype.updateRoute=function(e){this.current=e,this.cb&&this.cb(e)},Aa.prototype.setupListeners=function(){},Aa.prototype.teardown=function(){this.listeners.forEach(function(e){e()}),this.listeners=[],this.current=Vu,this.pending=null};function Kte(e){if(!e)if(tm){var r=document.querySelector("base");e=r&&r.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function Qte(e,r){var n,i=Math.max(e.length,r.length);for(n=0;n0)){var i=this.router,o=i.options.scrollBehavior,s=Ru&&o;s&&this.listeners.push(LF());var a=function(){var l=n.current,u=m1(n.base);n.current===Vu&&u===n._startLocation||n.transitionTo(u,function(c){s&&Mu(i,c,l,!0)})};window.addEventListener("popstate",a),this.listeners.push(function(){window.removeEventListener("popstate",a)})}},r.prototype.go=function(n){window.history.go(n)},r.prototype.push=function(n,i,o){var s=this,a=this,l=a.current;this.transitionTo(n,function(u){o4(Ou(s.base+u.fullPath)),Mu(s.router,u,l,!1),i&&i(u)},o)},r.prototype.replace=function(n,i,o){var s=this,a=this,l=a.current;this.transitionTo(n,function(u){_T(Ou(s.base+u.fullPath)),Mu(s.router,u,l,!1),i&&i(u)},o)},r.prototype.ensureURL=function(n){if(m1(this.base)!==this.current.fullPath){var i=Ou(this.base+this.current.fullPath);n?o4(i):_T(i)}},r.prototype.getCurrentLocation=function(){return m1(this.base)},r})(Aa);function m1(e){var r=window.location.pathname,n=r.toLowerCase(),i=e.toLowerCase();return e&&(n===i||n.indexOf(Ou(i+"/"))===0)&&(r=r.slice(e.length)),(r||"/")+window.location.search+window.location.hash}var $F=(function(e){function r(n,i,o){e.call(this,n,i),!(o&&nre(this.base))&&zE()}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.setupListeners=function(){var n=this;if(!(this.listeners.length>0)){var i=this.router,o=i.options.scrollBehavior,s=Ru&&o;s&&this.listeners.push(LF());var a=function(){var u=n.current;zE()&&n.transitionTo(u2(),function(c){s&&Mu(n.router,c,u,!0),Ru||c2(c.fullPath)})},l=Ru?"popstate":"hashchange";window.addEventListener(l,a),this.listeners.push(function(){window.removeEventListener(l,a)})}},r.prototype.push=function(n,i,o){var s=this,a=this,l=a.current;this.transitionTo(n,function(u){YE(u.fullPath),Mu(s.router,u,l,!1),i&&i(u)},o)},r.prototype.replace=function(n,i,o){var s=this,a=this,l=a.current;this.transitionTo(n,function(u){c2(u.fullPath),Mu(s.router,u,l,!1),i&&i(u)},o)},r.prototype.go=function(n){window.history.go(n)},r.prototype.ensureURL=function(n){var i=this.current.fullPath;u2()!==i&&(n?YE(i):c2(i))},r.prototype.getCurrentLocation=function(){return u2()},r})(Aa);function nre(e){var r=m1(e);if(!/^\/#/.test(r))return window.location.replace(Ou(e+"/#"+r)),!0}function zE(){var e=u2();return e.charAt(0)==="/"?!0:(c2("/"+e),!1)}function u2(){var e=window.location.href,r=e.indexOf("#");return r<0?"":(e=e.slice(r+1),e)}function NT(e){var r=window.location.href,n=r.indexOf("#"),i=n>=0?r.slice(0,n):r;return i+"#"+e}function YE(e){Ru?o4(NT(e)):window.location.hash=e}function c2(e){Ru?_T(NT(e)):window.location.replace(NT(e))}var ire=(function(e){function r(n,i){e.call(this,n,i),this.stack=[],this.index=-1}return e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r,r.prototype.push=function(n,i,o){var s=this;this.transitionTo(n,function(a){s.stack=s.stack.slice(0,s.index+1).concat(a),s.index++,i&&i(a)},o)},r.prototype.replace=function(n,i,o){var s=this;this.transitionTo(n,function(a){s.stack=s.stack.slice(0,s.index).concat(a),i&&i(a)},o)},r.prototype.go=function(n){var i=this,o=this.index+n;if(!(o<0||o>=this.stack.length)){var s=this.stack[o];this.confirmTransition(s,function(){var a=i.current;i.index=o,i.updateRoute(s),i.router.afterHooks.forEach(function(l){l&&l(s,a)})},function(a){a4(a,pd.duplicated)&&(i.index=o)})}},r.prototype.getCurrentLocation=function(){var n=this.stack[this.stack.length-1];return n?n.fullPath:"/"},r.prototype.ensureURL=function(){},r})(Aa),jn=function(e){e===void 0&&(e={}),this.app=null,this.apps=[],this.options=e,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=Rte(e.routes||[],this);var r=e.mode||"hash";switch(this.fallback=r==="history"&&!Ru&&e.fallback!==!1,this.fallback&&(r="hash"),tm||(r="abstract"),this.mode=r,r){case"history":this.history=new ZF(this,e.base);break;case"hash":this.history=new $F(this,e.base,this.fallback);break;case"abstract":this.history=new ire(this,e.base);break}},HE={currentRoute:{configurable:!0}};jn.prototype.match=function(e,r,n){return this.matcher.match(e,r,n)},HE.currentRoute.get=function(){return this.history&&this.history.current},jn.prototype.init=function(e){var r=this;if(this.apps.push(e),e.$once("hook:destroyed",function(){var s=r.apps.indexOf(e);s>-1&&r.apps.splice(s,1),r.app===e&&(r.app=r.apps[0]||null),r.app||r.history.teardown()}),!this.app){this.app=e;var n=this.history;if(n instanceof ZF||n instanceof $F){var i=function(s){var a=n.current,l=r.options.scrollBehavior,u=Ru&&l;u&&"fullPath"in s&&Mu(r,s,a,!1)},o=function(s){n.setupListeners(),i(s)};n.transitionTo(n.getCurrentLocation(),o,o)}n.listen(function(s){r.apps.forEach(function(a){a._route=s})})}},jn.prototype.beforeEach=function(e){return a6(this.beforeHooks,e)},jn.prototype.beforeResolve=function(e){return a6(this.resolveHooks,e)},jn.prototype.afterEach=function(e){return a6(this.afterHooks,e)},jn.prototype.onReady=function(e,r){this.history.onReady(e,r)},jn.prototype.onError=function(e){this.history.onError(e)},jn.prototype.push=function(e,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(o,s){i.history.push(e,o,s)});this.history.push(e,r,n)},jn.prototype.replace=function(e,r,n){var i=this;if(!r&&!n&&typeof Promise<"u")return new Promise(function(o,s){i.history.replace(e,o,s)});this.history.replace(e,r,n)},jn.prototype.go=function(e){this.history.go(e)},jn.prototype.back=function(){this.go(-1)},jn.prototype.forward=function(){this.go(1)},jn.prototype.getMatchedComponents=function(e){var r=e?e.matched?e:this.resolve(e).route:this.currentRoute;return r?[].concat.apply([],r.matched.map(function(n){return Object.keys(n.components).map(function(i){return n.components[i]})})):[]},jn.prototype.resolve=function(e,r,n){r=r||this.history.current;var i=l7(e,r,n,this),o=this.match(i,r),s=o.redirectedFrom||o.fullPath,a=this.history.base,l=ore(a,s,this.mode);return{location:i,route:o,href:l,normalizedTo:i,resolved:o}},jn.prototype.getRoutes=function(){return this.matcher.getRoutes()},jn.prototype.addRoute=function(e,r){this.matcher.addRoute(e,r),this.history.current!==Vu&&this.history.transitionTo(this.history.getCurrentLocation())},jn.prototype.addRoutes=function(e){this.matcher.addRoutes(e),this.history.current!==Vu&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(jn.prototype,HE);function a6(e,r){return e.push(r),function(){var n=e.indexOf(r);n>-1&&e.splice(n,1)}}function ore(e,r,n){var i=n==="hash"?"#"+r:r;return e?Ou(e+"/"+i):i}jn.install=kT,jn.version="3.6.5",jn.isNavigationFailure=a4,jn.NavigationFailureType=pd,jn.START_LOCATION=Vu,tm&&window.Vue&&window.Vue.use(jn);const sre={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var are=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},lre=[],ure=qt(sre,are,lre,!1,null,null);const cre=ure.exports;window._vue_richtext_widgets??={},window._registerWidget??=(e,r,n,i)=>{dre(e,r,n,i)};function dre(e,r,n=()=>{},i){const o={hasInteractiveView:!0,fullWidth:!1,...i};if(window._vue_richtext_widgets[e]){pi.error(`[ReferencePicker]: Widget for id ${e} already registered`);return}window._vue_richtext_widgets[e]={id:e,callback:r,onDestroy:n,...o}}function hre(e,r){const{richObjectType:n,richObject:i,accessible:o,interactive:s}=r;if(n!=="open-graph"){if(!window._vue_richtext_widgets[n]){pi.error("Widget for rich object type "+n+" not registered");return}window._vue_richtext_widgets[n].callback(e,{richObjectType:n,richObject:i,accessible:o,interactive:s})}}function pre(e,r){e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(r)}function PE(e){return!!window._vue_richtext_widgets[e]}function fre(e){return!!window._vue_richtext_widgets[e]?.hasInteractiveView}function mre(e){return!!window._vue_richtext_widgets[e]?.fullWidth}window._vue_richtext_custom_picker_elements??={},window._registerCustomPickerElement??=yre;function Df(e){return!!window._vue_richtext_custom_picker_elements[e]}function gre(e){const r=window._vue_richtext_custom_picker_elements[e]?.size;return["small","normal","large","full"].includes(r)?r:null}function yre(e,r,n=()=>{},i="large"){if(window._vue_richtext_custom_picker_elements[e]){pi.error(`Custom reference picker element for id ${e} already registered`);return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:r,onDestroy:n,size:i}}function Tre(e,r){const{providerId:n,accessible:i}=r;if(!window._vue_richtext_custom_picker_elements[n]){pi.error(`Custom reference picker element for reference provider ID ${n} not registered`);return}return window._vue_richtext_custom_picker_elements[n].callback(e,{providerId:n,accessible:i})}function bre(e,r,n){window._vue_richtext_custom_picker_elements[e]&&window._vue_richtext_custom_picker_elements[e].onDestroy(r,n)}window._nc_vue_element_id=window._nc_vue_element_id??0;function d7(){return`nc-vue-${window._nc_vue_element_id++}`}const vre={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},setup(){return{nameId:d7()}},computed:{hasName(){return this.name!==""||this.$slots.name},hasDescription(){return this.description!==""||this.$slots.description?.[0]}}};var Are=function(){var e=this,r=e._self._c;return r("div",{staticClass:"empty-content",attrs:{"aria-labelledby":e.nameId,role:"note"}},[e.$slots.icon?r("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e.hasName?r("div",{staticClass:"empty-content__name",attrs:{id:e.nameId}},[e._t("name",function(){return[e._v(" "+e._s(e.name)+" ")]})],2):e._e(),e.hasDescription?r("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?r("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()])},Ere=[],wre=qt(vre,Are,Ere,!1,null,"c3123941");const h7=wre.exports;function UF(e,r){const n=[];let i=0,o=e.toLowerCase().indexOf(r.toLowerCase(),i),s=0;for(;o>-1&&s[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=UF(this.text,this.search),e.forEach((r,n)=>{r.end(n.start0&&r.push({start:n.start<0?0:n.start,end:n.end>this.text.length?this.text.length:n.end}),r),[]),e.sort((r,n)=>r.start-n.start),e=e.reduce((r,n)=>{if(!r.length)r.push(n);else{const i=r.length-1;r[i].end>=n.start?r[i]={start:r[i].start,end:Math.max(r[i].end,n.end)}:r.push(n)}return r},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let r=0,n=0;for(;r=this.ranges.length&&rr.highlight?e("strong",{},r.text):r.text)):e("span",{},this.text)}},Dre=null,xre=null;var kre=qt(Sre,Dre,xre,!1,null,null);const Z3=kre.exports,l4=Math.min,Uc=Math.max,u4=Math.round,ig=Math.floor,Al=e=>({x:e,y:e}),Cre={left:"right",right:"left",bottom:"top",top:"bottom"},_re={start:"end",end:"start"};function ZE(e,r,n){return Uc(e,l4(r,n))}function Zh(e,r){return typeof e=="function"?e(r):e}function ju(e){return e.split("-")[0]}function $3(e){return e.split("-")[1]}function p7(e){return e==="x"?"y":"x"}function VF(e){return e==="y"?"height":"width"}const Nre=new Set(["top","bottom"]);function s0(e){return Nre.has(ju(e))?"y":"x"}function jF(e){return p7(s0(e))}function Fre(e,r,n){n===void 0&&(n=!1);const i=$3(e),o=jF(e),s=VF(o);let a=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[s]>r.floating[s]&&(a=c4(a)),[a,c4(a)]}function Ore(e){const r=c4(e);return[FT(e),r,FT(r)]}function FT(e){return e.replace(/start|end/g,r=>_re[r])}const $E=["left","right"],UE=["right","left"],Mre=["top","bottom"],Rre=["bottom","top"];function Bre(e,r,n){switch(e){case"top":case"bottom":return n?r?UE:$E:r?$E:UE;case"left":case"right":return r?Mre:Rre;default:return[]}}function Ire(e,r,n,i){const o=$3(e);let s=Bre(ju(e),n==="start",i);return o&&(s=s.map(a=>a+"-"+o),r&&(s=s.concat(s.map(FT)))),s}function c4(e){return e.replace(/left|right|bottom|top/g,r=>Cre[r])}function Lre(e){return{top:0,right:0,bottom:0,left:0,...e}}function zre(e){return typeof e!="number"?Lre(e):{top:e,right:e,bottom:e,left:e}}function d4(e){const{x:r,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:r,right:r+i,bottom:n+o,x:r,y:n}}function VE(e,r,n){let{reference:i,floating:o}=e;const s=s0(r),a=jF(r),l=VF(a),u=ju(r),c=s==="y",d=i.x+i.width/2-o.width/2,h=i.y+i.height/2-o.height/2,p=i[l]/2-o[l]/2;let f;switch(u){case"top":f={x:d,y:i.y-o.height};break;case"bottom":f={x:d,y:i.y+i.height};break;case"right":f={x:i.x+i.width,y:h};break;case"left":f={x:i.x-o.width,y:h};break;default:f={x:i.x,y:i.y}}switch($3(r)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1);break}return f}const Yre=async(e,r,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:a}=n,l=s.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(r));let c=await a.getElementRects({reference:e,floating:r,strategy:o}),{x:d,y:h}=VE(c,i,u),p=i,f={},m=0;for(let v=0;vEe<=0)){var ne,he;const Ee=(((ne=s.flip)==null?void 0:ne.index)||0)+1,ge=W[Ee];if(ge&&(!(h==="alignment"&&k!==s0(ge))||I.every(Me=>s0(Me.placement)===k?Me.overflows[0]>0:!0)))return{data:{index:Ee,overflows:I},reset:{placement:ge}};let Oe=(he=I.filter(Me=>Me.overflows[0]<=0).sort((Me,Ve)=>Me.overflows[1]-Ve.overflows[1])[0])==null?void 0:he.placement;if(!Oe)switch(f){case"bestFit":{var re;const Me=(re=I.filter(Ve=>{if(V){const it=s0(Ve.placement);return it===k||it==="y"}return!0}).map(Ve=>[Ve.placement,Ve.overflows.filter(it=>it>0).reduce((it,ct)=>it+ct,0)]).sort((Ve,it)=>Ve[1]-it[1])[0])==null?void 0:re[0];Me&&(Oe=Me);break}case"initialPlacement":Oe=l;break}if(o!==Oe)return{reset:{placement:Oe}}}return{}}}},qF=new Set(["left","top"]);async function Pre(e,r){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),a=ju(n),l=$3(n),u=s0(n)==="y",c=qF.has(a)?-1:1,d=s&&u?-1:1,h=Zh(r,e);let{mainAxis:p,crossAxis:f,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return l&&typeof m=="number"&&(f=l==="end"?m*-1:m),u?{x:f*d,y:p*c}:{x:p*c,y:f*d}}const Zre=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var n,i;const{x:o,y:s,placement:a,middlewareData:l}=r,u=await Pre(r,e);return a===((n=l.offset)==null?void 0:n.placement)&&(i=l.arrow)!=null&&i.alignmentOffset?{}:{x:o+u.x,y:s+u.y,data:{...u,placement:a}}}}},$re=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:n,y:i,placement:o}=r,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:w=>{let{x,y:k}=w;return{x,y:k}}},...u}=Zh(e,r),c={x:n,y:i},d=await GF(r,u),h=s0(ju(o)),p=p7(h);let f=c[p],m=c[h];if(s){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",k=f+d[w],R=f-d[x];f=ZE(k,f,R)}if(a){const w=h==="y"?"top":"left",x=h==="y"?"bottom":"right",k=m+d[w],R=m-d[x];m=ZE(k,m,R)}const v=l.fn({...r,[p]:f,[h]:m});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[p]:s,[h]:a}}}}}},Ure=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:n,y:i,placement:o,rects:s,middlewareData:a}=r,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=Zh(e,r),d={x:n,y:i},h=s0(o),p=p7(h);let f=d[p],m=d[h];const v=Zh(l,r),w=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(u){const R=p==="y"?"height":"width",O=s.reference[p]-s.floating[R]+w.mainAxis,P=s.reference[p]+s.reference[R]-w.mainAxis;fP&&(f=P)}if(c){var x,k;const R=p==="y"?"width":"height",O=qF.has(ju(o)),P=s.reference[h]-s.floating[R]+(O&&((x=a.offset)==null?void 0:x[h])||0)+(O?0:w.crossAxis),V=s.reference[h]+s.reference[R]+(O?0:((k=a.offset)==null?void 0:k[h])||0)-(O?w.crossAxis:0);mV&&(m=V)}return{[p]:f,[h]:m}}}};function U3(){return typeof window<"u"}function hp(e){return WF(e)?(e.nodeName||"").toLowerCase():"#document"}function Fs(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Fl(e){var r;return(r=(WF(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function WF(e){return U3()?e instanceof Node||e instanceof Fs(e).Node:!1}function Oa(e){return U3()?e instanceof Element||e instanceof Fs(e).Element:!1}function Cl(e){return U3()?e instanceof HTMLElement||e instanceof Fs(e).HTMLElement:!1}function jE(e){return!U3()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Fs(e).ShadowRoot}const Vre=new Set(["inline","contents"]);function rm(e){const{overflow:r,overflowX:n,overflowY:i,display:o}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(r+i+n)&&!Vre.has(o)}const jre=new Set(["table","td","th"]);function Gre(e){return jre.has(hp(e))}const qre=[":popover-open",":modal"];function V3(e){return qre.some(r=>{try{return e.matches(r)}catch{return!1}})}const Wre=["transform","translate","scale","rotate","perspective"],Kre=["transform","translate","scale","rotate","perspective","filter"],Qre=["paint","layout","strict","content"];function f7(e){const r=m7(),n=Oa(e)?Ma(e):e;return Wre.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!r&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!r&&(n.filter?n.filter!=="none":!1)||Kre.some(i=>(n.willChange||"").includes(i))||Qre.some(i=>(n.contain||"").includes(i))}function Jre(e){let r=Gu(e);for(;Cl(r)&&!$h(r);){if(f7(r))return r;if(V3(r))return null;r=Gu(r)}return null}function m7(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Xre=new Set(["html","body","#document"]);function $h(e){return Xre.has(hp(e))}function Ma(e){return Fs(e).getComputedStyle(e)}function j3(e){return Oa(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Gu(e){if(hp(e)==="html")return e;const r=e.assignedSlot||e.parentNode||jE(e)&&e.host||Fl(e);return jE(r)?r.host:r}function KF(e){const r=Gu(e);return $h(r)?e.ownerDocument?e.ownerDocument.body:e.body:Cl(r)&&rm(r)?r:KF(r)}function xf(e,r,n){var i;r===void 0&&(r=[]),n===void 0&&(n=!0);const o=KF(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),a=Fs(o);if(s){const l=OT(a);return r.concat(a,a.visualViewport||[],rm(o)?o:[],l&&n?xf(l):[])}return r.concat(o,xf(o,[],n))}function OT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function QF(e){const r=Ma(e);let n=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const o=Cl(e),s=o?e.offsetWidth:n,a=o?e.offsetHeight:i,l=u4(n)!==s||u4(i)!==a;return l&&(n=s,i=a),{width:n,height:i,$:l}}function g7(e){return Oa(e)?e:e.contextElement}function vh(e){const r=g7(e);if(!Cl(r))return Al(1);const n=r.getBoundingClientRect(),{width:i,height:o,$:s}=QF(r);let a=(s?u4(n.width):n.width)/i,l=(s?u4(n.height):n.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!l||!Number.isFinite(l))&&(l=1),{x:a,y:l}}const ene=Al(0);function JF(e){const r=Fs(e);return!m7()||!r.visualViewport?ene:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function tne(e,r,n){return r===void 0&&(r=!1),!n||r&&n!==Fs(e)?!1:r}function nd(e,r,n,i){r===void 0&&(r=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=g7(e);let a=Al(1);r&&(i?Oa(i)&&(a=vh(i)):a=vh(e));const l=tne(s,n,i)?JF(s):Al(0);let u=(o.left+l.x)/a.x,c=(o.top+l.y)/a.y,d=o.width/a.x,h=o.height/a.y;if(s){const p=Fs(s),f=i&&Oa(i)?Fs(i):i;let m=p,v=OT(m);for(;v&&i&&f!==m;){const w=vh(v),x=v.getBoundingClientRect(),k=Ma(v),R=x.left+(v.clientLeft+parseFloat(k.paddingLeft))*w.x,O=x.top+(v.clientTop+parseFloat(k.paddingTop))*w.y;u*=w.x,c*=w.y,d*=w.x,h*=w.y,u+=R,c+=O,m=Fs(v),v=OT(m)}}return d4({width:d,height:h,x:u,y:c})}function G3(e,r){const n=j3(e).scrollLeft;return r?r.left+n:nd(Fl(e)).left+n}function XF(e,r){const n=e.getBoundingClientRect(),i=n.left+r.scrollLeft-G3(e,n),o=n.top+r.scrollTop;return{x:i,y:o}}function rne(e){let{elements:r,rect:n,offsetParent:i,strategy:o}=e;const s=o==="fixed",a=Fl(i),l=r?V3(r.floating):!1;if(i===a||l&&s)return n;let u={scrollLeft:0,scrollTop:0},c=Al(1);const d=Al(0),h=Cl(i);if((h||!h&&!s)&&((hp(i)!=="body"||rm(a))&&(u=j3(i)),Cl(i))){const f=nd(i);c=vh(i),d.x=f.x+i.clientLeft,d.y=f.y+i.clientTop}const p=a&&!h&&!s?XF(a,u):Al(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-u.scrollTop*c.y+d.y+p.y}}function nne(e){return Array.from(e.getClientRects())}function ine(e){const r=Fl(e),n=j3(e),i=e.ownerDocument.body,o=Uc(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),s=Uc(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+G3(e);const l=-n.scrollTop;return Ma(i).direction==="rtl"&&(a+=Uc(r.clientWidth,i.clientWidth)-o),{width:o,height:s,x:a,y:l}}const GE=25;function one(e,r){const n=Fs(e),i=Fl(e),o=n.visualViewport;let s=i.clientWidth,a=i.clientHeight,l=0,u=0;if(o){s=o.width,a=o.height;const d=m7();(!d||d&&r==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}const c=G3(i);if(c<=0){const d=i.ownerDocument,h=d.body,p=getComputedStyle(h),f=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(i.clientWidth-h.clientWidth-f);m<=GE&&(s-=m)}else c<=GE&&(s+=c);return{width:s,height:a,x:l,y:u}}const sne=new Set(["absolute","fixed"]);function ane(e,r){const n=nd(e,!0,r==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=Cl(e)?vh(e):Al(1),a=e.clientWidth*s.x,l=e.clientHeight*s.y,u=o*s.x,c=i*s.y;return{width:a,height:l,x:u,y:c}}function qE(e,r,n){let i;if(r==="viewport")i=one(e,n);else if(r==="document")i=ine(Fl(e));else if(Oa(r))i=ane(r,n);else{const o=JF(e);i={x:r.x-o.x,y:r.y-o.y,width:r.width,height:r.height}}return d4(i)}function eO(e,r){const n=Gu(e);return n===r||!Oa(n)||$h(n)?!1:Ma(n).position==="fixed"||eO(n,r)}function lne(e,r){const n=r.get(e);if(n)return n;let i=xf(e,[],!1).filter(l=>Oa(l)&&hp(l)!=="body"),o=null;const s=Ma(e).position==="fixed";let a=s?Gu(e):e;for(;Oa(a)&&!$h(a);){const l=Ma(a),u=f7(a);!u&&l.position==="fixed"&&(o=null),(s?!u&&!o:!u&&l.position==="static"&&o&&sne.has(o.position)||rm(a)&&!u&&eO(e,a))?i=i.filter(c=>c!==a):o=l,a=Gu(a)}return r.set(e,i),i}function une(e){let{element:r,boundary:n,rootBoundary:i,strategy:o}=e;const s=[...n==="clippingAncestors"?V3(r)?[]:lne(r,this._c):[].concat(n),i],a=s[0],l=s.reduce((u,c)=>{const d=qE(r,c,o);return u.top=Uc(d.top,u.top),u.right=l4(d.right,u.right),u.bottom=l4(d.bottom,u.bottom),u.left=Uc(d.left,u.left),u},qE(r,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function cne(e){const{width:r,height:n}=QF(e);return{width:r,height:n}}function dne(e,r,n){const i=Cl(r),o=Fl(r),s=n==="fixed",a=nd(e,!0,s,r);let l={scrollLeft:0,scrollTop:0};const u=Al(0);function c(){u.x=G3(o)}if(i||!i&&!s)if((hp(r)!=="body"||rm(o))&&(l=j3(r)),i){const f=nd(r,!0,s,r);u.x=f.x+r.clientLeft,u.y=f.y+r.clientTop}else o&&c();s&&!i&&o&&c();const d=o&&!i&&!s?XF(o,l):Al(0),h=a.left+l.scrollLeft-u.x-d.x,p=a.top+l.scrollTop-u.y-d.y;return{x:h,y:p,width:a.width,height:a.height}}function l6(e){return Ma(e).position==="static"}function WE(e,r){if(!Cl(e)||Ma(e).position==="fixed")return null;if(r)return r(e);let n=e.offsetParent;return Fl(e)===n&&(n=n.ownerDocument.body),n}function tO(e,r){const n=Fs(e);if(V3(e))return n;if(!Cl(e)){let o=Gu(e);for(;o&&!$h(o);){if(Oa(o)&&!l6(o))return o;o=Gu(o)}return n}let i=WE(e,r);for(;i&&Gre(i)&&l6(i);)i=WE(i,r);return i&&$h(i)&&l6(i)&&!f7(i)?n:i||Jre(e)||n}const hne=async function(e){const r=this.getOffsetParent||tO,n=this.getDimensions,i=await n(e.floating);return{reference:dne(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function pne(e){return Ma(e).direction==="rtl"}const fne={convertOffsetParentRelativeRectToViewportRelativeRect:rne,getDocumentElement:Fl,getClippingRect:une,getOffsetParent:tO,getElementRects:hne,getClientRects:nne,getDimensions:cne,getScale:vh,isElement:Oa,isRTL:pne};function rO(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function mne(e,r){let n=null,i;const o=Fl(e);function s(){var l;clearTimeout(i),(l=n)==null||l.disconnect(),n=null}function a(l,u){l===void 0&&(l=!1),u===void 0&&(u=1),s();const c=e.getBoundingClientRect(),{left:d,top:h,width:p,height:f}=c;if(l||r(),!p||!f)return;const m=ig(h),v=ig(o.clientWidth-(d+p)),w=ig(o.clientHeight-(h+f)),x=ig(d),k={rootMargin:-m+"px "+-v+"px "+-w+"px "+-x+"px",threshold:Uc(0,l4(1,u))||1};let R=!0;function O(P){const V=P[0].intersectionRatio;if(V!==u){if(!R)return a();V?a(!1,V):i=setTimeout(()=>{a(!1,1e-7)},1e3)}V===1&&!rO(c,e.getBoundingClientRect())&&a(),R=!1}try{n=new IntersectionObserver(O,{...k,root:o.ownerDocument})}catch{n=new IntersectionObserver(O,k)}n.observe(e)}return a(!0),s}function gne(e,r,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:u=!1}=i,c=g7(e),d=o||s?[...c?xf(c):[],...xf(r)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),s&&x.addEventListener("resize",n)});const h=c&&l?mne(c,n):null;let p=-1,f=null;a&&(f=new ResizeObserver(x=>{let[k]=x;k&&k.target===c&&f&&(f.unobserve(r),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var R;(R=f)==null||R.observe(r)})),n()}),c&&!u&&f.observe(c),f.observe(r));let m,v=u?nd(e):null;u&&w();function w(){const x=nd(e);v&&!rO(v,x)&&n(),v=x,m=requestAnimationFrame(w)}return n(),()=>{var x;d.forEach(k=>{o&&k.removeEventListener("scroll",n),s&&k.removeEventListener("resize",n)}),h?.(),(x=f)==null||x.disconnect(),f=null,u&&cancelAnimationFrame(m)}}const yne=Zre,Tne=$re,bne=Hre,vne=Ure,nO=(e,r,n)=>{const i=new Map,o={platform:fne,...n},s={...o.platform,_c:i};return Yre(e,r,{...o,platform:s})};var MT={exports:{}},Ane=MT.exports,KE;function Ene(){return KE||(KE=1,(function(e,r){(function(n,i){e.exports=i()})(typeof self<"u"?self:Ane,(function(){return(()=>{var n={646:a=>{a.exports=function(l){if(Array.isArray(l)){for(var u=0,c=new Array(l.length);u{a.exports=function(l,u,c){return u in l?Object.defineProperty(l,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):l[u]=c,l}},860:a=>{a.exports=function(l){if(Symbol.iterator in Object(l)||Object.prototype.toString.call(l)==="[object Arguments]")return Array.from(l)}},206:a=>{a.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(a,l,u)=>{var c=u(646),d=u(860),h=u(206);a.exports=function(p){return c(p)||d(p)||h()}},8:a=>{function l(u){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?a.exports=l=function(c){return typeof c}:a.exports=l=function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},l(u)}a.exports=l}},i={};function o(a){var l=i[a];if(l!==void 0)return l.exports;var u=i[a]={exports:{}};return n[a](u,u.exports,o),u.exports}o.n=a=>{var l=a&&a.__esModule?()=>a.default:()=>a;return o.d(l,{a:l}),l},o.d=(a,l)=>{for(var u in l)o.o(l,u)&&!o.o(a,u)&&Object.defineProperty(a,u,{enumerable:!0,get:l[u]})},o.o=(a,l)=>Object.prototype.hasOwnProperty.call(a,l),o.r=a=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{VueSelect:()=>W,default:()=>ue,mixins:()=>ie});var a=o(319),l=o.n(a),u=o(8),c=o.n(u),d=o(713),h=o.n(d);const p={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(I){var ne=this;this.autoscroll&&I&&this.$nextTick((function(){return ne.maybeAdjustScroll()}))}},methods:{maybeAdjustScroll:function(){var I,ne=((I=this.$refs.dropdownMenu)===null||I===void 0?void 0:I.children[this.typeAheadPointer])||!1;if(ne){var he=this.getDropdownViewport(),re=ne.getBoundingClientRect(),Ee=re.top,ge=re.bottom,Oe=re.height;if(Eehe.bottom)return this.$refs.dropdownMenu.scrollTop=ne.offsetTop-(he.height-Oe)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},f={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var I=0;I=0;I--)if(this.selectable(this.filteredOptions[I])){this.typeAheadPointer=I;break}},typeAheadDown:function(){for(var I=this.typeAheadPointer+1;I0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=I??!this.mutableLoading}}};function v(I,ne,he,re,Ee,ge,Oe,Me){var Ve,it=typeof I=="function"?I.options:I;return ne&&(it.render=ne,it.staticRenderFns=he,it._compiled=!0),{exports:I,options:it}}const w={Deselect:v({},(function(){var I=this.$createElement,ne=this._self._c||I;return ne("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[ne("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])}),[]).exports,OpenIndicator:v({},(function(){var I=this.$createElement,ne=this._self._c||I;return ne("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[ne("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])}),[]).exports},x={inserted:function(I,ne,he){var re=he.context;if(re.appendToBody){document.body.appendChild(I);var Ee=re.$refs.toggle.getBoundingClientRect(),ge=Ee.height,Oe=Ee.top,Me=Ee.left,Ve=Ee.width,it=window.scrollX||window.pageXOffset,ct=window.scrollY||window.pageYOffset;I.unbindPosition=re.calculatePosition(I,re,{width:Ve+"px",left:it+Me+"px",top:ct+Oe+ge+"px"})}},unbind:function(I,ne,he){he.context.appendToBody&&(I.unbindPosition&&typeof I.unbindPosition=="function"&&I.unbindPosition(),I.parentNode&&I.parentNode.removeChild(I))}},k=function(I){var ne={};return Object.keys(I).sort().forEach((function(he){ne[he]=I[he]})),JSON.stringify(ne)};var R=0;const O=function(){return++R};function P(I,ne){var he=Object.keys(I);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(I);ne&&(re=re.filter((function(Ee){return Object.getOwnPropertyDescriptor(I,Ee).enumerable}))),he.push.apply(he,re)}return he}function V(I){for(var ne=1;ne-1}},filter:{type:Function,default:function(I,ne){var he=this;return I.filter((function(re){var Ee=he.getOptionLabel(re);return typeof Ee=="number"&&(Ee=Ee.toString()),he.filterBy(re,Ee,ne)}))}},createOption:{type:Function,default:function(I){return c()(this.optionList[0])==="object"?h()({},this.label,I):I}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(I){return["function","boolean"].includes(c()(I))}},clearSearchOnBlur:{type:Function,default:function(I){var ne=I.clearSearchOnSelect,he=I.multiple;return ne&&!he}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(I,ne){return I}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(I,ne,he){var re=he.width,Ee=he.top,ge=he.left;I.style.top=Ee,I.style.left=ge,I.style.width=re}},dropdownShouldOpen:{type:Function,default:function(I){var ne=I.noDrop,he=I.open,re=I.mutableLoading;return!ne&&he&&!re}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return O()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var I=this.value;return this.isTrackingValues&&(I=this.$data._value),I!=null&&I!==""?[].concat(I):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var I=this,ne={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:V({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs-".concat(this.uid,"__listbox"),"aria-owns":"vs-".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs-".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return I.isComposing=!0},compositionend:function(){return I.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(he){return I.search=he.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:ne,listFooter:ne,header:V({},ne,{deselect:this.deselect}),footer:V({},ne,{deselect:this.deselect})}},childComponents:function(){return V({},w,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var I=this,ne=function(ge){return I.limit!==null?ge.slice(0,I.limit):ge},he=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return ne(he);var re=this.search.length?this.filter(he,this.search,this):he;if(this.taggable&&this.search.length)try{var Ee=this.createOption(this.search);this.optionExists(Ee)||re.unshift(Ee)}catch{}return ne(re)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(I,ne){var he=this;!this.taggable&&(typeof he.resetOnOptionsChange=="function"?he.resetOnOptionsChange(I,ne,he.selectedValue):he.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(I){this.isTrackingValues&&this.setInternalValueFromOptions(I)}},multiple:function(){this.clearSelection()},open:function(I){this.$emit(I?"open":"close")},search:function(I){I.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(I){var ne=this;Array.isArray(I)?this.$data._value=I.map((function(he){return ne.findOptionFromReducedValue(he)})):this.$data._value=this.findOptionFromReducedValue(I)},select:function(I){this.$emit("option:selecting",I),this.isOptionSelected(I)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(I):(this.taggable&&!this.optionExists(I)&&this.$emit("option:created",I),this.multiple&&(I=this.selectedValue.concat(I)),this.updateValue(I),this.$emit("option:selected",I)),this.onAfterSelect(I)},deselect:function(I){var ne=this;this.$emit("option:deselecting",I),this.updateValue(this.selectedValue.filter((function(he){return!ne.optionComparator(he,I)}))),this.$emit("option:deselected",I)},keyboardDeselect:function(I,ne){var he,re;this.deselect(I);var Ee=(he=this.$refs.deselectButtons)===null||he===void 0?void 0:he[ne+1],ge=(re=this.$refs.deselectButtons)===null||re===void 0?void 0:re[ne-1],Oe=Ee??ge;Oe?Oe.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(I){var ne=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick((function(){return ne.$refs.search.focus()}))},updateValue:function(I){var ne=this;this.value===void 0&&(this.$data._value=I),I!==null&&(I=Array.isArray(I)?I.map((function(he){return ne.reduce(he)})):this.reduce(I)),this.$emit("input",I)},toggleDropdown:function(I){var ne=I.target!==this.searchEl;ne&&I.preventDefault();var he=[].concat(l()(this.$refs.deselectButtons||[]),l()([this.$refs.clearButton]));this.searchEl===void 0||he.filter(Boolean).some((function(re){return re.contains(I.target)||re===I.target}))?I.preventDefault():this.open&&ne?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(I){var ne=this;return this.selectedValue.some((function(he){return ne.optionComparator(he,I)}))},isOptionDeselectable:function(I){return this.isOptionSelected(I)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(I){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&I===this.typeAheadPointer},optionComparator:function(I,ne){return this.getOptionKey(I)===this.getOptionKey(ne)},findOptionFromReducedValue:function(I){var ne=this,he=[].concat(l()(this.options),l()(this.pushedTags)).filter((function(re){return JSON.stringify(ne.reduce(re))===JSON.stringify(I)}));return he.length===1?he[0]:he.find((function(re){return ne.optionComparator(re,ne.$data._value)}))||I},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var I=null;this.multiple&&(I=l()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(I)}},optionExists:function(I){var ne=this;return this.optionList.some((function(he){return ne.optionComparator(he,I)}))},optionAriaSelected:function(I){return this.selectable(I)?String(this.isOptionSelected(I)):null},normalizeOptionForSlot:function(I){return c()(I)==="object"?I:h()({},this.label,I)},pushTag:function(I){this.pushedTags.push(I)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var I=this.clearSearchOnSelect,ne=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:I,multiple:ne})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(I,ne){this.isKeyboardNavigation=!1,this.selectable(I)&&(this.typeAheadPointer=ne)},onSearchKeyDown:function(I){var ne=this,he=function(ge){if(ge.preventDefault(),ne.open)return!ne.isComposing&&ne.typeAheadSelect();ne.open=!0},re={8:function(ge){return ne.maybeDeleteValue()},9:function(ge){return ne.onTab()},27:function(ge){return ne.onEscape()},38:function(ge){if(ge.preventDefault(),ne.isKeyboardNavigation=!0,ne.open)return ne.typeAheadUp();ne.open=!0},40:function(ge){if(ge.preventDefault(),ne.isKeyboardNavigation=!0,ne.open)return ne.typeAheadDown();ne.open=!0}};this.selectOnKeyCodes.forEach((function(ge){return re[ge]=he}));var Ee=this.mapKeydown(re,this);if(typeof Ee[I.keyCode]=="function")return Ee[I.keyCode](I)},onSearchKeyPress:function(I){this.open||I.keyCode!==32||(I.preventDefault(),this.open=!0)}}},(function(){var I=this,ne=I.$createElement,he=I._self._c||ne;return he("div",{staticClass:"v-select",class:I.stateClasses,attrs:{id:"v-select-"+I.uid,dir:I.dir}},[I._t("header",null,null,I.scope.header),I._v(" "),he("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[he("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:I.toggleDropdown}},[I._l(I.selectedValue,(function(re,Ee){return I._t("selected-option-container",[he("span",{key:I.getOptionKey(re),staticClass:"vs__selected"},[I._t("selected-option",[I._v(` `+I._s(I.getOptionLabel(re))+` `)],null,I.normalizeOptionForSlot(re)),I._v(" "),I.multiple?he("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:I.disabled,type:"button",title:I.ariaLabelDeselectOption(I.getOptionLabel(re)),"aria-label":I.ariaLabelDeselectOption(I.getOptionLabel(re))},on:{mousedown:function(ge){return ge.stopPropagation(),I.deselect(re)},keydown:function(ge){return!ge.type.indexOf("key")&&I._k(ge.keyCode,"enter",13,ge.key,"Enter")?null:I.keyboardDeselect(re,Ee)}}},[he(I.childComponents.Deselect,{tag:"component"})],1):I._e()],2)],{option:I.normalizeOptionForSlot(re),deselect:I.deselect,multiple:I.multiple,disabled:I.disabled})})),I._v(" "),I._t("search",[he("input",I._g(I._b({staticClass:"vs__search"},"input",I.scope.search.attributes,!1),I.scope.search.events))],null,I.scope.search)],2),I._v(" "),he("div",{ref:"actions",staticClass:"vs__actions"},[he("button",{directives:[{name:"show",rawName:"v-show",value:I.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:I.disabled,type:"button",title:I.ariaLabelClearSelected,"aria-label":I.ariaLabelClearSelected},on:{click:I.clearSelection}},[he(I.childComponents.Deselect,{tag:"component"})],1),I._v(" "),I.noDrop?I._e():he("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+I.uid+"__listbox","aria-controls":"vs-"+I.uid+"__listbox","aria-expanded":I.dropdownOpen.toString()},on:{mousedown:I.toggleDropdown}},[I._t("open-indicator",[he(I.childComponents.OpenIndicator,I._b({tag:"component"},"component",I.scope.openIndicator.attributes,!1))],null,I.scope.openIndicator)],2),I._v(" "),I._t("spinner",[he("div",{directives:[{name:"show",rawName:"v-show",value:I.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[I._v("Loading...")])],null,I.scope.spinner)],2)]),I._v(" "),he("transition",{attrs:{name:I.transition}},[I.dropdownOpen?he("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+I.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+I.uid+"__listbox",role:"listbox","aria-label":I.ariaLabelListbox,"aria-multiselectable":I.multiple,tabindex:"-1"},on:{mousedown:function(re){return re.preventDefault(),I.onMousedown(re)},mouseup:I.onMouseUp}},[I._t("list-header",null,null,I.scope.listHeader),I._v(" "),I._l(I.filteredOptions,(function(re,Ee){return he("li",{key:I.getOptionKey(re),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":I.isOptionDeselectable(re)&&Ee===I.typeAheadPointer,"vs__dropdown-option--selected":I.isOptionSelected(re),"vs__dropdown-option--highlight":Ee===I.typeAheadPointer,"vs__dropdown-option--kb-focus":I.hasKeyboardFocusBorder(Ee),"vs__dropdown-option--disabled":!I.selectable(re)},attrs:{id:"vs-"+I.uid+"__option-"+Ee,role:"option","aria-selected":I.optionAriaSelected(re)},on:{mousemove:function(ge){return I.onMouseMove(re,Ee)},click:function(ge){ge.preventDefault(),ge.stopPropagation(),I.selectable(re)&&I.select(re)}}},[I._t("option",[I._v(` `+I._s(I.getOptionLabel(re))+` `)],null,I.normalizeOptionForSlot(re))],2)})),I._v(" "),I.filteredOptions.length===0?he("li",{staticClass:"vs__no-options"},[I._t("no-options",[I._v(` Sorry, no matching options. `)],null,I.scope.noOptions)],2):I._e(),I._v(" "),I._t("list-footer",null,null,I.scope.listFooter)],2):he("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+I.uid+"__listbox",role:"listbox","aria-label":I.ariaLabelListbox}})]),I._v(" "),I._t("footer",null,null,I.scope.footer)],2)}),[]).exports,ie={ajax:m,pointer:f,pointerScroll:p},ue=W})(),s})()}))})(MT)),MT.exports}var Ec=Ene();const wne={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Sne=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Dne=[],xne=qt(wne,Sne,Dne,!1,null,null);const kne=xne.exports,Cne={name:"NcEllipsisedOption",components:{NcHighlight:Z3},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?UF(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var _ne=function(){var e=this,r=e._self._c;return r("span",{staticClass:"name-parts",attrs:{dir:"auto",title:e.name}},[r("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?r("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},Nne=[],Fne=qt(Cne,_ne,Nne,!1,null,"592b8444");const One=Fne.exports,iO=_i(oO());window.addEventListener("resize",()=>{iO.value=oO()});function oO(){return window.outerHeight===window.screen.height}ld(iO);var RT={exports:{}},Mne=RT.exports,QE;function Rne(){return QE||(QE=1,(function(e){(function(r){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const i=n("plaintext"),o=n("html"),s=n("comment"),a=/<(\w*)>/g,l=/<\/?([^\s\/>]+)/;function u(m,v,w){m=m||"",v=v||[],w=w||"";let x=d(v,w);return h(m,x)}function c(m,v){m=m||[],v=v||"";let w=d(m,v);return function(x){return h(x||"",w)}}u.init_streaming_mode=c;function d(m,v){return m=p(m),{allowable_tags:m,tag_replacement:v,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function h(m,v){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let w=v.allowable_tags,x=v.tag_replacement,k=v.state,R=v.tag_buffer,O=v.depth,P=v.in_quote_char,V="";for(let W=0,ie=m.length;W":if(P)break;if(O){O--;break}P="",k=i,R+=">",w.has(f(R))?V+=R:V+=x,R="";break;case'"':case"'":ue===P?P="":P=P||ue,R+=ue;break;case"-":R===""?(R.slice(-2)=="--"&&(k=i),R=""):R+=ue)}return v.state=k,v.tag_buffer=R,v.depth=O,v.in_quote_char=P,V}function p(m){let v=new Set;if(typeof m=="string"){let w;for(;w=a.exec(m);)v.add(w[1])}else!n.nonNative&&typeof m[n.iterator]=="function"?v=new Set(m):typeof m.forEach=="function"&&m.forEach(v.add,v);return v}function f(m){let v=l.exec(m);return v?v[1].toLowerCase():null}e.exports?e.exports=u:r.striptags=u})(Mne)})(RT)),RT.exports}Rne();function h4(e=document.body){const r=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return r!==void 0?r==="invert(100%)":!1}h4();const Bne=Symbol.for("nc:theme:enforced");function Ine(e){const r=ri(()=>Fo(e)??document.body),n=_i(h4(r.value)),i=KL();function o(){n.value=h4(r.value)}return QL(r,o,{attributes:!0}),u0(r,o),u0(i,o,{immediate:!0}),ld(n)}const Lne=WL(()=>Ine());function q3(){const e=Lne(),r=wl(Bne,void 0);return ri(()=>r?.value?r.value==="dark":e.value)}const sO=JL?window:void 0;function g1(e){var r;const n=Fo(e);return(r=n?.$el)!=null?r:n}function d2(...e){let r,n,i,o;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,i,o]=e,r=sO):[r,n,i,o]=e,!r)return Gg;Array.isArray(n)||(n=[n]),Array.isArray(i)||(i=[i]);const s=[],a=()=>{s.forEach(d=>d()),s.length=0},l=(d,h,p,f)=>(d.addEventListener(h,p,f),()=>d.removeEventListener(h,p,f)),u=u0(()=>[g1(r),Fo(o)],([d,h])=>{if(a(),!d)return;const p=XL(h)?{...h}:h;s.push(...n.flatMap(f=>i.map(m=>l(d,f,m,p))))},{immediate:!0,flush:"post"}),c=()=>{u(),a()};return hk(c),c}let JE=!1;function XE(e,r,n={}){const{window:i=sO,ignore:o=[],capture:s=!0,detectIframe:a=!1}=n;if(!i)return Gg;Ry&&!JE&&(JE=!0,Array.from(i.document.body.children).forEach(m=>m.addEventListener("click",Gg)),i.document.documentElement.addEventListener("click",Gg));let l=!0;const u=m=>Fo(o).some(v=>{if(typeof v=="string")return Array.from(i.document.querySelectorAll(v)).some(w=>w===m.target||m.composedPath().includes(w));{const w=g1(v);return w&&(m.target===w||m.composedPath().includes(w))}});function c(m){const v=Fo(m);return v&&v.$.subTree.shapeFlag===16}function d(m,v){const w=Fo(m),x=w.$.subTree&&w.$.subTree.children;return x==null||!Array.isArray(x)?!1:x.some(k=>k.el===v.target||v.composedPath().includes(k.el))}const h=m=>{const v=g1(e);if(m.target!=null&&!(!(v instanceof Element)&&c(e)&&d(e,m))&&!(!v||v===m.target||m.composedPath().includes(v))){if(m.detail===0&&(l=!u(m)),!l){l=!0;return}r(m)}};let p=!1;const f=[d2(i,"click",m=>{p||(p=!0,setTimeout(()=>{p=!1},0),h(m))},{passive:!0,capture:s}),d2(i,"pointerdown",m=>{const v=g1(e);l=!u(m)&&!!(v&&!m.composedPath().includes(v))},{passive:!0}),a&&d2(i,"blur",m=>{setTimeout(()=>{var v;const w=g1(e);((v=i.document.activeElement)==null?void 0:v.tagName)==="IFRAME"&&!w?.contains(i.document.activeElement)&&r(m)},0)})].filter(Boolean);return()=>f.forEach(m=>m())}const zne={[DA.mounted](e,r){const n=!r.modifiers.bubble;if(typeof r.value=="function")e.__onClickOutside_stop=XE(e,r.value,{capture:n});else{const[i,o]=r.value;e.__onClickOutside_stop=XE(e,i,Object.assign({capture:n},o))}},[DA.unmounted](e){e.__onClickOutside_stop()}};function u6(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function aO(e){const r=window.getComputedStyle(e);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&e.clientWidth1?!0:(r.preventDefault&&r.preventDefault(),!1)}const c6=new WeakMap;function Hne(e,r=!1){const n=_i(r);let i=null,o="";u0(ez(e),l=>{const u=u6(Fo(l));if(u){const c=u;if(c6.get(c)||c6.set(c,c.style.overflow),c.style.overflow!=="hidden"&&(o=c.style.overflow),c.style.overflow==="hidden")return n.value=!0;if(n.value)return c.style.overflow="hidden"}},{immediate:!0});const s=()=>{const l=u6(Fo(e));!l||n.value||(Ry&&(i=d2(l,"touchmove",u=>{Yne(u)},{passive:!1})),l.style.overflow="hidden",n.value=!0)},a=()=>{const l=u6(Fo(e));!l||!n.value||(Ry&&i?.(),l.style.overflow=o,c6.delete(l),n.value=!1)};return hk(a),ri({get(){return n.value},set(l){l?s():a()}})}function Pne(){let e=!1;const r=_i(!1);return(n,i)=>{if(r.value=i.value,e)return;e=!0;const o=Hne(n,i.value);u0(r,s=>o.value=s)}}Pne();const e9=/(\s|^)(https?:\/\/)([-A-Z0-9+_.]+(?::[0-9]+)?(?:\/[-A-Z0-9+&@#%?=~_|!:,.;()]*)*)(\s|$)/ig;function lO(e,r){const n=(d,h)=>d.startsWith(h)?d.slice(h.length):d,i=(d,...h)=>h.reduce((p,f)=>n(p,f),d);if(!e)return null;const o=/^https?:\/\//.test(r),s=/^[a-z][a-z0-9+.-]*:.+/.test(r);if(!o&&s||o&&!r.startsWith(wA())||!o&&!r.startsWith("/"))return null;const a=o?i(r,wA(),"/index.php"):r,l=i(e.history.base,BL(),"/index.php"),u=i(a,l)||"/",c=e.resolve(u).route;return c.matched.length?c.fullPath:null}function Zne(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(r=>r.enabled(e)):[]}var t9={exports:{}},r9={exports:{}},n9;function $ne(){return n9||(n9=1,(function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(n,i){return n<>>32-i},rotr:function(n,i){return n<<32-i|n>>>i},endian:function(n){if(n.constructor==Number)return r.rotl(n,8)&16711935|r.rotl(n,24)&4278255360;for(var i=0;i0;n--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(n){for(var i=[],o=0,s=0;o>>5]|=n[o]<<24-s%32;return i},wordsToBytes:function(n){for(var i=[],o=0;o>>5]>>>24-o%32&255);return i},bytesToHex:function(n){for(var i=[],o=0;o>>4).toString(16)),i.push((n[o]&15).toString(16));return i.join("")},hexToBytes:function(n){for(var i=[],o=0;o>>6*(3-a)&63)):i.push("=");return i.join("")},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],o=0,s=0;o>>6-s*2);return i}};r9.exports=r})()),r9.exports}var d6,i9;function o9(){if(i9)return d6;i9=1;var e={utf8:{stringToBytes:function(r){return e.bin.stringToBytes(unescape(encodeURIComponent(r)))},bytesToString:function(r){return decodeURIComponent(escape(e.bin.bytesToString(r)))}},bin:{stringToBytes:function(r){for(var n=[],i=0;i>>24)&16711935|(l[f]<<24|l[f]>>>8)&4278255360;l[u>>>5]|=128<>>9<<4)+14]=u;for(var m=o._ff,v=o._gg,w=o._hh,x=o._ii,f=0;f>>0,d=d+R>>>0,h=h+O>>>0,p=p+P>>>0}return e.endian([c,d,h,p])};o._ff=function(s,a,l,u,c,d,h){var p=s+(a&l|~a&u)+(c>>>0)+h;return(p<>>32-d)+a},o._gg=function(s,a,l,u,c,d,h){var p=s+(a&u|l&~u)+(c>>>0)+h;return(p<>>32-d)+a},o._hh=function(s,a,l,u,c,d,h){var p=s+(a^l^u)+(c>>>0)+h;return(p<>>32-d)+a},o._ii=function(s,a,l,u,c,d,h){var p=s+(l^(a|~u))+(c>>>0)+h;return(p<>>32-d)+a},o._blocksize=16,o._digestsize=16,t9.exports=function(s,a){if(s==null)throw new Error("Illegal argument "+s);var l=e.wordsToBytes(o(s,a));return a&&a.asBytes?l:a&&a.asString?i.bytesToString(l):e.bytesToHex(l)}})()),t9.exports}var jne=Vne();const Gne=D0(jne);ar(GI);class ci{constructor(r,n,i,o){this.r=r,this.g=n,this.b=i,this.name=o,this.r=Math.min(r,255),this.g=Math.min(n,255),this.b=Math.min(i,255),this.name=o}get color(){const r=n=>`00${n.toString(16)}`.slice(-2);return`#${r(this.r)}${r(this.g)}${r(this.b)}`}}function qne(e,r,n){return{r:(n.r-r.r)/e,g:(n.g-r.g)/e,b:(n.b-r.b)/e}}function p6(e,r,n){const i=[];i.push(r);const o=qne(e,r,n);for(let s=1;s `,Kne=` `,Qne=` `,Jne=` `,Xne=` `,p9=` `,f9=` `,eie=` `,tie=` `;ar(qI),ar(WI);function cO(e){switch(e){case"away":return Xe("away");case"busy":return Xe("busy");case"dnd":return Xe("do not disturb");case"online":return Xe("online");case"invisible":return Xe("invisible");case"offline":return Xe("offline");default:return e}}const rie={online:wa?eie:tie,away:wa?h9:Kne,busy:wa?h9:Qne,dnd:wa?Jne:Xne,invisible:wa?p9:f9,offline:wa?p9:f9},nie={name:"NcUserStatusIcon",props:{user:{type:String,default:null},status:{type:String,default:null,validator:e=>["online","away","busy","dnd","invisible","offline"].includes(e)},ariaHidden:{type:String,default:null,validator:e=>["true","false"].includes(e)}},data(){return{fetchedUserStatus:null}},computed:{activeStatus(){return this.status??this.fetchedUserStatus},activeSvg(){return rie[this.activeStatus]??null},ariaLabel(){return this.ariaHidden==="true"?null:Xe("User status: {status}",{status:cO(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(e){if(!e||!a3()?.user_status?.enabled){this.fetchedUserStatus=null;return}try{const{data:r}=await qn.get(_s("/apps/user_status/api/v1/statuses/{user}",{user:e}));this.fetchedUserStatus=r.ocs?.data?.status}catch{this.fetchedUserStatus=null}}}}};var iie=function(){var e=this,r=e._self._c;return e.activeStatus?r("span",{staticClass:"user-status-icon",class:{"user-status-icon--invisible":["invisible","offline"].includes(e.status)},attrs:{role:"img","aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel},domProps:{innerHTML:e._s(e.activeSvg)}}):e._e()},oie=[],sie=qt(nie,iie,oie,!1,null,"86b73d39");const dO=sie.exports,aie={name:"NcActionLink",mixins:[B3],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{href:{type:String,required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var lie=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("a",{staticClass:"action-link focusable",attrs:{download:e.download,href:e.href,"aria-label":e.ariaLabel,target:e.target,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},on:{click:e.onClick}},[e._t("icon",function(){return[r("span",{staticClass:"action-link__icon",class:[e.isIconUrl?"action-link__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),e.name?r("span",{staticClass:"action-link__longtext-wrapper"},[r("strong",{staticClass:"action-link__name"},[e._v(" "+e._s(e.name)+" ")]),r("br"),r("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-link__text"},[e._v(e._s(e.text))]),e._e()],2)])},uie=[],cie=qt(aie,lie,uie,!1,null,"86e09254");const hO=cie.exports,die={name:"NcActionRouter",mixins:[B3],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],required:!0},exact:{type:Boolean,default:!1}}};var hie=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("RouterLink",{staticClass:"action-router focusable",attrs:{to:e.to,"aria-label":e.ariaLabel,exact:e.exact,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},nativeOn:{click:function(n){return e.onClick.apply(null,arguments)}}},[e._t("icon",function(){return[r("span",{staticClass:"action-router__icon",class:[e.isIconUrl?"action-router__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),e.name?r("span",{staticClass:"action-router__longtext-wrapper"},[r("strong",{staticClass:"action-router__name"},[e._v(" "+e._s(e.name)+" ")]),r("br"),r("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-router__text"},[e._v(e._s(e.text))]),e._e()],2)],1)},pie=[],fie=qt(die,hie,pie,!1,null,"4dae1ff7");const mie=fie.exports,gie={name:"NcActionText",mixins:[B3],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var yie=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("span",{staticClass:"action-text",on:{click:e.onClick}},[e._t("icon",function(){return[e.icon!==""?r("span",{staticClass:"action-text__icon",class:[e.isIconUrl?"action-text__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}}):e._e()]}),e.name?r("span",{staticClass:"action-text__longtext-wrapper"},[r("strong",{staticClass:"action-text__name"},[e._v(" "+e._s(e.name)+" ")]),r("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-text__text"},[e._v(e._s(e.text))]),e._e()],2)])},Tie=[],bie=qt(gie,yie,Tie,!1,null,"2fe7eb92");const vie=bie.exports;ar(KI);const pO={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){if(!e)return;const r=a3();if(!(!Object.hasOwn(r,"user_status")||!r.user_status.enabled)&&kh())try{const{data:n}=await qn.get(_s("apps/user_status/api/v1/statuses/{userId}",{userId:e}));this.setUserStatus(n.ocs.data)}catch(n){if(n.response.status===404&&n.response.data.ocs?.data?.length===0)return;pi.error("Could not fetch user status",{error:n})}},setUserStatus({status:e,message:r,icon:n}){this.userStatus.status=e||"",this.userStatus.message=r||"",this.userStatus.icon=n||"",this.hasStatus=!!e}}},fO=Rb("nextcloud").persist().build();function Aie(e){const r=fO.getItem("user-has-avatar."+e);return typeof r=="string"?!!r:null}function m9(e,r){e&&fO.setItem("user-has-avatar."+e,r)}const Eie={name:"NcAvatar",directives:{ClickOutside:zne},components:{IconDotsHorizontal:pk,NcActions:Nl,NcButton:as,NcIconSvgWrapper:rp,NcLoadingIcon:np,NcUserStatusIcon:dO},mixins:[pO],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},hideStatus:{type:Boolean,default:!1},showUserStatus:{type:Boolean,default:!0},verboseStatus:{type:Boolean,default:!1},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},noPlaceholder:{type:Boolean,default:!1},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[Boolean,String,Object,Element],default:"body"}},setup(){return{isDarkTheme:q3()}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuData:{},contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?Xe("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:cO(this.userStatus.status)}):Xe("Avatar of {displayName}",{displayName:this.displayName??this.user})},canDisplayUserStatus(){return!this.hideStatus&&this.showUserStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return!this.hideStatus&&this.showUserStatus&&!this.verboseStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===kh()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$scopedSlots.icon)},avatarStyle(){return{"--avatar-size":this.size+"px",lineHeight:this.showInitials?this.size+"px":0,fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:r,b:n}=d9(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${r}, ${n}, 0.1)`}},initialsStyle(){const{r:e,g:r,b:n}=d9(this.userIdentifier);return{color:`rgb(${e}, ${r}, ${n})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const r=this.userIdentifier.trim();if(r==="")return e;const n=r.match(/[\p{L}\p{N}\s]/gu);if(!n)return e;const i=n.join(""),o=i.lastIndexOf(" ");e=String.fromCodePoint(i.codePointAt(0)),o!==-1&&(e=e.concat(String.fromCodePoint(i.codePointAt(o+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(n=>{const i=lO(this.$router,n.hyperlink);return{ncActionComponent:i?mie:hO,ncActionComponentProps:i?{to:i,icon:n.icon}:{href:n.hyperlink,icon:n.icon},text:n.title}});for(const n of Zne(this.contactsMenuData))try{e.push({ncActionComponent:_0,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>n.callback(this.contactsMenuData)},text:n.displayName(this.contactsMenuData),iconSvg:n.iconSvg(this.contactsMenuData)})}catch(i){pi.error(`Failed to render ContactsMenu action ${n.id}`,{error:i,action:n})}function r(n){const i=document.createTextNode(n),o=document.createElement("p");return o.appendChild(i),o.innerHTML}if(!this.hideStatus&&this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const n=` ${r(this.userStatus.icon)} `;return[{ncActionComponent:vie,ncActionComponentProps:{},iconSvg:this.userStatus.icon?n:void 0,text:`${this.userStatus.message}`}].concat(e)}return e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),xu("settings:avatar:updated",this.loadAvatarUrl),xu("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.showUserStatus&&this.user&&!this.isNoUser?(this.preloadedUserStatus?this.setUserStatus(this.preloadedUserStatus):this.fetchUserStatus(this.user),xu("user_status:status.updated",this.handleUserStatusUpdated)):!this.hideStatus&&this.preloadedUserStatus&&this.setUserStatus(this.preloadedUserStatus)},beforeDestroy(){jg("settings:avatar:updated",this.loadAvatarUrl),jg("settings:display-name:updated",this.loadAvatarUrl),jg("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:Xe,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message},this.hasStatus=e.status!==null)},async toggleMenu(e){e.type==="keydown"&&e.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const e=encodeURIComponent(this.user),{data:r}=await qn.post(bo("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuData=r,this.contactsMenuActions=r.topAction?[r.topAction].concat(r.actions):r.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser||this.iconClass||this.$scopedSlots.icon)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const e=this.avatarUrlGenerator(this.user,64),r=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,r)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,r){let n=uO(e,{size:r,isDarkTheme:this.isDarkTheme,isGuest:this.isGuest});return e===kh()?.uid&&typeof window.oc_userconfig<"u"&&(n+="?v="+window.oc_userconfig.avatar.version),n},updateImageIfValid(e,r=null){const n=Aie(this.user);if(this.isUserDefined&&typeof n=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,r&&(this.avatarSrcSetLoaded=r),n===!1&&(this.userDoesNotExist=!0);return}const i=new Image;i.onload=()=>{this.avatarUrlLoaded=e,r&&(this.avatarSrcSetLoaded=r),this.isAvatarLoaded=!0,m9(this.user,!0)},i.onerror=o=>{pi.debug("Invalid avatar url",{error:o,url:e}),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,m9(this.user,!1)},r&&(i.srcset=r),i.src=e}}};var wie=function(){var e=this,r=e._self._c;return r("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":e.userDoesNotExist,"avatardiv--with-menu":e.hasMenu,"avatardiv--with-menu-loading":e.contactsMenuLoading},style:e.avatarStyle,attrs:{title:e.tooltip}},[e._t("icon",function(){return[e.iconClass?r("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?r("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&e.menu.length===0?r("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.avatarAriaLabel,variant:"tertiary-no-background"},on:{click:e.toggleMenu},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?r("NcLoadingIcon"):r("IconDotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,1269954734)}):e.hasMenu?r("NcActions",{attrs:{"aria-label":e.avatarAriaLabel,container:e.menuContainer,"force-menu":"","manual-open":"",open:e.contactsMenuOpenState,variant:"tertiary-no-background"},on:{"update:open":function(n){e.contactsMenuOpenState=n},click:e.toggleMenu},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[r("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(n,i){return r(n.ncActionComponent,e._g(e._b({key:i,tag:"component",scopedSlots:e._u([n.iconSvg?{key:"icon",fn:function(){return[r("NcIconSvgWrapper",{attrs:{svg:n.iconSvg}})]},proxy:!0}:null],null,!0)},"component",n.ncActionComponentProps,!1),n.ncActionComponentHandlers),[e._v(" "+e._s(n.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?r("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?r("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:e.userStatus.status,"aria-hidden":String(e.hasMenu)}}):e._e(),e.showInitials?r("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[r("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},Sie=[],Die=qt(Eie,wie,Sie,!1,null,"a4de1e87");const mO=Die.exports,xie=8,g9=32,kie={name:"NcListItemIcon",components:{NcAvatar:mO,NcHighlight:Z3,NcIconSvgWrapper:rp},mixins:[pO],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:g9},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:xie,defaultSize:g9}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){return this.subname?.trim?.()!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,r=this.search.match(e);return this.isNoUser||!r?[this.search,this.search]:[r[1].trim(),r[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var Cie=function(){var e=this,r=e._self._c;return r("span",e._g({staticClass:"option",class:{"option--compact":e.avatarSize({...e,...r.props}),{}),ariaLabelClearSelected:{type:String,default:Xe("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:Xe("Options")},ariaLabelDeselectOption:{type:Function,default:e=>Xe("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:e=>e(fk,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:e,open:r})=>e?!1:r},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>`select-input-${Xs()}`},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(e,r){return{...e,27:n=>{r.open&&n.stopPropagation(),e[27](n)}}}},uid:{type:String,default:()=>Xs()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" ","input","update:modelValue","update:model-value"],setup(){const e=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),r=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),n=e-2*r,i=Ra("value","input");return{avatarSize:n,model:i,isLegacy:wa}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.model===null||Array.isArray(this.model)&&this.model.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,r,{width:n})=>{e.style.width=n;const i={name:"addClass",fn(){return e.classList.add("vs__dropdown-menu--floating"),{}}},o={name:"togglePlacementClass",fn({placement:a}){return r.$el.classList.toggle("select--drop-up",a==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",a==="top"),{}}},s=()=>{nO(r.$refs.toggle,e,{placement:this.placement,middleware:[yne(-1),i,o,bne(),Tne({limiter:vne()})]}).then(({x:a,y:l})=>{Object.assign(e.style,{left:`${a}px`,top:`${l}px`,width:`${r.$refs.toggle.getBoundingClientRect().width}px`})})};return gne(r.$refs.toggle,e,s)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(r,n,i)=>{const o=i.match(e);return o&&r.subname?.toLocaleLowerCase?.()?.indexOf(o[1].toLocaleLowerCase())>-1||`${n} ${r.subname}`.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}:Ec.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Ec.VueSelect.props.label.default},propsToForward(){const e=[...Object.keys(Ec.VueSelect.props),...Ec.VueSelect.mixins.flatMap(r=>Object.keys(r.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([r])=>e.includes(r))),value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel}},listenersToForward(){return{...this.$listeners,input:e=>{this.model=e}}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&ea.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&ea.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:Xe}};var Mie=function(){var e=this,r=e._self._c;return r("VueSelect",e._g(e._b({staticClass:"select",class:{"select--legacy":e.isLegacy,"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:n=>e.search=n},scopedSlots:e._u([!e.labelOutside&&e.inputLabel?{key:"header",fn:function(){return[r("label",{staticClass:"select__label",attrs:{for:e.inputId}},[e._v(" "+e._s(e.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:n,events:i}){return[r("input",e._g(e._b({staticClass:"vs__search",class:e.inputClass,attrs:{required:e.inputRequired,dir:"auto"}},"input",n,!1),i))]}},{key:"open-indicator",fn:function({attributes:n}){return[r("ChevronDown",e._b({style:{cursor:e.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",n,!1))]}},{key:"option",fn:function(n){return[e._t("option",function(){return[e.userSelect?r("NcListItemIcon",e._b({attrs:{"avatar-size":32,name:n[e.localLabel],search:e.search}},"NcListItemIcon",n,!1)):r("NcEllipsisedOption",{attrs:{name:String(n[e.localLabel]),search:e.search}})]},null,n)]}},{key:"selected-option",fn:function(n){return[e._t("selected-option",function(){return[e.userSelect?r("NcListItemIcon",e._b({attrs:{"avatar-size":e.avatarSize,name:n[e.localLabel],"no-margin":"",search:e.search}},"NcListItemIcon",n,!1)):r("NcEllipsisedOption",{attrs:{name:String(n[e.localLabel]),search:e.search}})]},{vBind:n})]}},{key:"spinner",fn:function(n){return[n.loading?r("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(n,i){return{key:i,fn:function(o){return[e._t(i,null,null,o)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.listenersToForward))},Rie=[],Bie=qt(Oie,Mie,Rie,!1,null,null);const W3=Bie.exports;ar(JI);const Iie=180*1e3,Lie={name:"NcReferenceWidget",components:{NcButton:as},props:{reference:{type:Object,required:!0},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},setup(){const e=_i(!1),r=_i(),{width:n}=mk(r);return tz(r,([i])=>{s3(()=>{e.value=i.isIntersecting})}),{width:n,isVisible:e,widgetRoot:r}},data(){return{showInteractive:!1,rendered:!1,idleTimeout:null}},computed:{isInteractive(){return!this.interactiveOptIn&&this.interactive||this.showInteractive},hasFullWidth(){return mre(this.reference.richObjectType)},hasCustomWidget(){return PE(this.reference.richObjectType)},hasInteractiveView(){return PE(this.reference.richObjectType)&&fre(this.reference.richObjectType)},noAccess(){return this.reference&&!this.reference.accessible},descriptionStyle(){if(this.numberOfLines===0)return{display:"none"};const e=this.numberOfLines;return{lineClamp:e,webkitLineClamp:e}},numberOfLines(){return[450,550,650,1/0].findIndex(e=>this.width{this.isVisible||this.destroyWidget()},Iie);return}this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.rendered||this.renderWidget()},immediate:!0}},beforeDestroy(){this.destroyWidget()},methods:{t:Xe,enableInteractive(){this.showInteractive=!0,this.renderWidget()},renderWidget(){if(!this.$refs.customWidget||this?.reference?.richObjectType==="open-graph")return;this.$refs.customWidget.innerHTML="";const e=document.createElement("div");e.style="width: 100%;",this.$refs.customWidget.appendChild(e),this.$nextTick(()=>{hre(e,{...this.reference,interactive:this.isInteractive}),this.rendered=!0})},destroyWidget(){this.rendered&&(pre(this.reference.richObjectType,this.$el),this.rendered=!1)}}};var zie=function(){var e=this,r=e._self._c;return r("div",{ref:"widgetRoot",class:{"toggle-interactive":e.hasInteractiveView&&!e.isInteractive}},[e.reference&&e.hasCustomWidget?r("div",{ref:"customWidget",staticClass:"widget-custom",class:{"full-width":e.hasFullWidth}}):!e.noAccess&&e.reference&&e.reference.openGraphObject&&!e.hasCustomWidget?r(e.referenceWidgetLinkComponent,e._b({tag:"component",staticClass:"widget-default",attrs:{rel:"noopener noreferrer"}},"component",e.referenceWidgetLinkProps,!1),[e.reference.openGraphObject.thumb?r("img",{staticClass:"widget-default--image",attrs:{src:e.reference.openGraphObject.thumb}}):e._e(),r("div",{staticClass:"widget-default--details"},[r("p",{staticClass:"widget-default--name"},[e._v(" "+e._s(e.reference.openGraphObject.name)+" ")]),r("p",{staticClass:"widget-default--description",style:e.descriptionStyle},[e._v(" "+e._s(e.reference.openGraphObject.description)+" ")]),r("p",{staticClass:"widget-default--link"},[e._v(" "+e._s(e.compactLink)+" ")])])]):e._e(),e.interactiveOptIn&&e.hasInteractiveView&&!e.isInteractive?r("NcButton",{staticClass:"toggle-interactive--button",on:{click:e.enableInteractive}},[e._v(" "+e._s(e.t("Enable interactive view"))+" ")]):e._e()],1)},Yie=[],Hie=qt(Lie,zie,Yie,!1,null,"f05dd81b");const gO=Hie.exports,Pie={name:"NcCustomPickerElement",props:{provider:{type:Object,required:!0}},emits:["cancel","submit"],data(){return{isRegistered:Df(this.provider.id),renderResult:null}},mounted(){this.isRegistered&&this.renderElement()},beforeDestroy(){this.isRegistered&&bre(this.provider.id,this.$el,this.renderResult)},methods:{renderElement(){this.$refs.domElement&&(this.$refs.domElement.innerHTML="");const e=Tre(this.$refs.domElement,{providerId:this.provider.id,accessible:!1});Promise.resolve(e).then(r=>{this.renderResult=r,this.renderResult.object?._isVue&&this.renderResult.object?.$on&&(this.renderResult.object.$on("submit",this.onSubmit),this.renderResult.object.$on("cancel",this.onCancel)),this.renderResult.element.addEventListener("submit",n=>{this.onSubmit(n.detail)}),this.renderResult.element.addEventListener("cancel",this.onCancel)})},onSubmit(e){this.$emit("submit",e)},onCancel(){this.$emit("cancel")}}};var Zie=function(){var e=this,r=e._self._c;return r("div",{ref:"domElement"})},$ie=[],Uie=qt(Pie,Zie,$ie,!1,null,"0547d92f");const Vie=Uie.exports,jie={name:"LinkVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Gie=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon link-variant-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},qie=[],Wie=qt(jie,Gie,qie,!1,null,null);const y7=Wie.exports;ar(XI);const yO="any-link",TO={id:yO,title:Xe("Any link"),order:0,icon_url:IL("core","filetypes/link.svg")};window._vue_richtext_reference_providers??=Sf("core","reference-provider-list",[]),window._vue_richtext_reference_provider_timestamps??=Sf("core","reference-provider-timestamps",{});function Kie(e){return e===yO?TO:bO().find(r=>r.id===e)}function bO(){return window._vue_richtext_reference_providers.filter(e=>{const r=!!e.search_providers_ids&&e.search_providers_ids.length>0||Df(e.id);return r||pi.debug(`[smart picker] ${e.id} reference provider is discoverable but does not have any related search provider or custom picker component registered`),r})}function Qie(e){const r=window._vue_richtext_reference_provider_timestamps;return e.sort((n,i)=>n.order===i.order?0:n.order>i.order?1:-1).sort((n,i)=>{const o=r[n.id],s=r[i.id];return o===s?0:s===void 0?-1:o===void 0?1:o>s?-1:1})}function vO(e,r){const n=bO(),i=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),o=new RegExp(i,"i"),s=Qie(n).filter(l=>l.title.match(o)),a=r?s.slice(0,r):s;return(e===""||a.length===0)&&a.push(TO),a}async function Jie(e){const r=Math.floor(Date.now()/1e3),n=_s("references/provider/{providerId}",{providerId:e});await qn.put(n,{timestamp:r}),window._vue_richtext_reference_provider_timestamps[e]=r}ar(ek,eL);let y9=0;function AO(e,r){return function(){const n=this,i=arguments;clearTimeout(y9),y9=setTimeout(function(){e.apply(n,i)},r)}}function T7(e){try{return!!new URL(e)}catch{return!1}}const Xie={name:"NcProviderList",components:{NcSelect:W3,NcHighlight:Z3,NcEmptyContent:h7,LinkVariantIcon:y7},emits:["select-provider","submit"],data(){return{selectedProvider:null,query:"",multiselectPlaceholder:Xe("Select provider"),providerIconAlt:Xe("Provider icon")}},computed:{options(){const e=[];return this.query!==""&&T7(this.query)&&e.push({id:this.query,title:this.query,isLink:!0}),e.push(...vO(this.query)),e}},methods:{focus(){setTimeout(()=>{this.$refs["provider-select"]?.$el?.querySelector("#provider-select-input")?.focus()},300)},onProviderSelected(e){e!==null&&(e.isLink?this.$emit("submit",e.title):this.$emit("select-provider",e),this.selectedProvider=null)},onSearch(e){this.query=e}}};var eoe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"provider-list"},[r("NcSelect",{ref:"provider-select",staticClass:"provider-list--select",attrs:{"input-id":"provider-select-input",label:"title",placeholder:e.multiselectPlaceholder,options:e.options,"append-to-body":!1,"clear-search-on-select":!0,"clear-search-on-blur":()=>!1,filterable:!1},on:{search:e.onSearch,input:e.onProviderSelected},scopedSlots:e._u([{key:"option",fn:function(n){return[n.isLink?r("div",{staticClass:"provider"},[r("LinkVariantIcon",{staticClass:"link-icon",attrs:{size:20}}),r("span",[e._v(e._s(n.title))])],1):r("div",{staticClass:"provider"},[r("img",{staticClass:"provider-icon",attrs:{src:n.icon_url,alt:e.providerIconAlt}}),r("NcHighlight",{staticClass:"option-text",attrs:{search:e.query,text:n.title}})],1)]}}]),model:{value:e.selectedProvider,callback:function(n){e.selectedProvider=n},expression:"selectedProvider"}}),r("NcEmptyContent",{staticClass:"provider-list--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[r("LinkVariantIcon")]},proxy:!0}])})],1)},toe=[],roe=qt(Xie,eoe,toe,!1,null,"f39d58d9");const noe=roe.exports;ar(tL);const ioe={name:"NcRawLinkInput",components:{LinkVariantIcon:y7,NcEmptyContent:h7,NcLoadingIcon:np,NcReferenceWidget:gO,NcTextField:Y3},props:{provider:{type:Object,required:!0}},emits:["submit"],data(){return{inputValue:"",loading:!1,reference:null,abortController:null,inputPlaceholder:Xe("Enter link")}},computed:{isLinkValid(){return T7(this.inputValue)}},methods:{focus(){this.$refs["url-input"].$el.getElementsByTagName("input")[0]?.focus()},onSubmit(e){const r=e.target.value;this.isLinkValid&&this.$emit("submit",r)},onClear(){this.inputValue="",this.reference=null},onInput(){this.reference=null,this.abortController&&this.abortController.abort(),this.isLinkValid&&AO(()=>{this.updateReference()},500)()},updateReference(){this.loading=!0,this.abortController=new AbortController,qn.get(_s("references/resolve",2)+"?reference="+encodeURIComponent(this.inputValue),{signal:this.abortController.signal}).then(e=>{this.reference=e.data.ocs.data.references[this.inputValue]}).catch(e=>{pi.error("Could not update reference",{error:e})}).then(()=>{this.loading=!1})}}};var ooe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"raw-link"},[r("div",{staticClass:"input-wrapper"},[r("NcTextField",{ref:"url-input",attrs:{value:e.inputValue,"show-trailing-button":e.inputValue!=="",label:e.inputPlaceholder},on:{"update:value":[function(n){e.inputValue=n},e.onInput],"trailing-button-click":e.onClear},nativeOn:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.onSubmit.apply(null,arguments)}}},[e.loading?r("NcLoadingIcon",{attrs:{size:16}}):r("LinkVariantIcon",{attrs:{size:16}})],1)],1),e.reference!==null?r("NcReferenceWidget",{staticClass:"reference-widget",attrs:{reference:e.reference}}):r("NcEmptyContent",{staticClass:"raw-link--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?r("img",{staticClass:"provider-icon",attrs:{src:e.provider.icon_url}}):r("LinkVariantIcon")]},proxy:!0}])})],1)},soe=[],aoe=qt(ioe,ooe,soe,!1,null,"be630586");const loe=aoe.exports,uoe={name:"NcSearchResult",components:{NcHighlight:Z3},props:{entry:{type:Object,required:!0},query:{type:String,required:!0}}};var coe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"result"},[e.entry.icon?r("div",{staticClass:"result--icon-class",class:{[e.entry.icon]:!0,rounded:e.entry.rounded}}):r("img",{staticClass:"result--image",class:{rounded:e.entry.rounded},attrs:{src:e.entry.thumbnailUrl}}),r("div",{staticClass:"result--content"},[r("span",{staticClass:"result--content--name"},[r("NcHighlight",{attrs:{search:e.query,text:e.entry.title}})],1),r("span",{staticClass:"result--content--subline"},[r("NcHighlight",{attrs:{search:e.query,text:e.entry.subline}})],1)])])},doe=[],hoe=qt(uoe,coe,doe,!1,null,"995c2758");const poe=hoe.exports;ar(rL,ek,tk);const T9=5,foe={name:"NcSearch",components:{LinkVariantIcon:y7,DotsHorizontalIcon:pk,NcEmptyContent:h7,NcSelect:W3,NcSearchResult:poe},props:{provider:{type:Object,required:!0},showEmptyContent:{type:Boolean,default:!0},searchPlaceholder:{type:String,default:null}},emits:["submit"],data(){return{searchQuery:"",selectedResult:null,resultsBySearchProvider:{},searching:!1,searchingMoreOf:null,abortController:null,noOptionsText:Xe("Start typing to search"),providerIconAlt:Xe("Provider icon")}},computed:{mySearchPlaceholder(){return this.searchPlaceholder||Xe("Search")},searchProviderIds(){return this.provider.search_providers_ids},options(){if(this.searchQuery==="")return[];const e=[];return T7(this.searchQuery)&&e.push(this.rawLinkEntry),e.push(...this.formattedSearchResults),e},rawLinkEntry(){return{id:"rawLinkEntry",resourceUrl:this.searchQuery,isRawLink:!0}},formattedSearchResults(){const e=[];return this.searchProviderIds.forEach(r=>{if(this.resultsBySearchProvider[r].entries.length>0){(this.searchProviderIds.length>1||this.resultsBySearchProvider[r].entries.length>1)&&e.push({id:"groupTitle-"+r,name:this.resultsBySearchProvider[r].name,isCustomGroupTitle:!0,providerId:r});const n=this.resultsBySearchProvider[r].entries.map((i,o)=>({id:"provider-"+r+"-entry-"+o,...i}));e.push(...n),this.resultsBySearchProvider[r].isPaginated&&e.push({id:"moreOf-"+r,name:this.resultsBySearchProvider[r].name,isMore:!0,providerId:r,isLoading:this.searchingMoreOf===r})}}),e}},mounted(){this.resetResults()},beforeDestroy(){this.cancelSearchRequests()},methods:{t:Xe,resetResults(){const e={};this.searchProviderIds.forEach(r=>{e[r]={entries:[]}}),this.resultsBySearchProvider=e},focus(){setTimeout(()=>{this.$refs["search-select"]?.$el?.querySelector("#search-select-input")?.focus()},300)},cancelSearchRequests(){this.abortController&&this.abortController.abort()},onSearchInput(e){this.searchQuery=e,AO(()=>{this.updateSearch()},500)()},onSelectResultSelected(e){e!==null&&(e.resourceUrl?(this.cancelSearchRequests(),this.$emit("submit",e.resourceUrl)):e.isMore&&this.searchMoreOf(e.providerId).then(()=>{this.selectedResult=null}))},searchMoreOf(e){return this.searchingMoreOf=e,this.cancelSearchRequests(),this.searchProviders(e)},updateSearch(){if(this.cancelSearchRequests(),this.resetResults(),this.searchQuery===""){this.searching=!1;return}return this.searchProviders()},searchProviders(e=null){this.abortController=new AbortController,this.searching=!0;const r=e===null?[...this.searchProviderIds].map(n=>this.searchOneProvider(n)):[this.searchOneProvider(e,this.resultsBySearchProvider[e]?.cursor??null)];return Promise.allSettled(r).then(n=>{n.find(i=>i.status==="rejected"&&(i.reason.name==="CanceledError"||i.reason.code==="ERR_CANCELED"))||(this.searching=!1,this.searchingMoreOf=null)})},searchOneProvider(e,r=null){const n=r===null?_s("search/providers/{providerId}/search?term={term}&limit={limit}",{providerId:e,term:this.searchQuery,limit:T9}):_s("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}",{providerId:e,term:this.searchQuery,limit:T9,cursor:r});return qn.get(n,{signal:this.abortController.signal}).then(i=>{const o=i.data.ocs.data;this.resultsBySearchProvider[e].name=o.name,this.resultsBySearchProvider[e].cursor=o.cursor,this.resultsBySearchProvider[e].isPaginated=o.isPaginated,this.resultsBySearchProvider[e].entries.push(...o.entries)})}}};var moe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"smart-picker-search",class:{"with-empty-content":e.showEmptyContent}},[r("NcSelect",{ref:"search-select",staticClass:"smart-picker-search--select",attrs:{"input-id":"search-select-input",label:"name",placeholder:e.mySearchPlaceholder,options:e.options,"append-to-body":!1,"close-on-select":!1,"clear-search-on-select":!1,"clear-search-on-blur":()=>!1,"reset-focus-on-options-change":!1,filterable:!1,autoscroll:!0,"reset-on-options-change":!1,loading:e.searching},on:{search:e.onSearchInput,input:e.onSelectResultSelected},scopedSlots:e._u([{key:"option",fn:function(n){return[n.isRawLink?r("div",{staticClass:"custom-option"},[r("LinkVariantIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),r("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t("Raw link {options}",{options:n.resourceUrl}))+" ")])],1):n.resourceUrl?r("NcSearchResult",{staticClass:"search-result",attrs:{entry:n,query:e.searchQuery}}):n.isCustomGroupTitle?r("span",{staticClass:"custom-option group-name"},[e.provider.icon_url?r("img",{staticClass:"provider-icon group-name-icon",attrs:{src:e.provider.icon_url}}):e._e(),r("span",{staticClass:"option-text"},[r("strong",[e._v(e._s(n.name))])])]):n.isMore?r("span",{staticClass:"custom-option"},[n.isLoading?r("span",{staticClass:"option-simple-icon icon-loading-small"}):r("DotsHorizontalIcon",{staticClass:"option-simple-icon",attrs:{size:20}}),r("span",{staticClass:"option-text"},[e._v(" "+e._s(e.t('Load more "{options}"',{options:n.name}))+" ")])],1):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.noOptionsText)+" ")]},proxy:!0}]),model:{value:e.selectedResult,callback:function(n){e.selectedResult=n},expression:"selectedResult"}}),e.showEmptyContent?r("NcEmptyContent",{staticClass:"smart-picker-search--empty-content",scopedSlots:e._u([{key:"icon",fn:function(){return[e.provider.icon_url?r("img",{staticClass:"provider-icon",attrs:{alt:e.providerIconAlt,src:e.provider.icon_url}}):r("LinkVariantIcon")]},proxy:!0}],null,!1,2922132592)}):e._e()],1)},goe=[],yoe=qt(foe,moe,goe,!1,null,"e61f71e3");const Toe=yoe.exports,Ip={providerList:1,standardLinkInput:2,searchInput:3,customElement:4},boe={name:"NcReferencePicker",components:{NcCustomPickerElement:Vie,NcProviderList:noe,NcRawLinkInput:loe,NcSearch:Toe},props:{initialProvider:{type:Object,default:()=>null},width:{type:Number,default:null},focusOnCreate:{type:Boolean,default:!0}},emits:["cancel","cancel-raw-link","cancel-search","provider-selected","submit"],data(){return{MODES:Ip,selectedProvider:this.initialProvider}},computed:{mode(){return this.selectedProvider===null?Ip.providerList:Df(this.selectedProvider.id)?Ip.customElement:this.selectedProvider.search_providers_ids?Ip.searchInput:Ip.standardLinkInput},pickerWrapperStyle(){return{width:this.width?this.width+"px":void 0}}},mounted(){this.focusOnCreate&&(this.initialProvider?setTimeout(()=>{this.$refs["url-input"]?.focus()},300):this.$nextTick(()=>{this.$refs["provider-list"]?.focus()}))},methods:{onEscapePressed(){this.selectedProvider!==null?this.deselectProvider():this.cancelProviderSelection()},onProviderSelected(e){this.selectedProvider=e,this.$emit("provider-selected",e),this.$nextTick(()=>{this.$refs["url-input"]?.focus()})},cancelCustomElement(){this.deselectProvider()},cancelSearch(){this.$emit("cancel-search",this.selectedProvider?.title),this.deselectProvider()},cancelRawLinkInput(){this.$emit("cancel-raw-link",this.selectedProvider?.title),this.deselectProvider()},cancelProviderSelection(){this.$emit("cancel")},submitLink(e){this.selectedProvider!==null&&Jie(this.selectedProvider.id),this.$emit("submit",e),this.deselectProvider()},deselectProvider(){this.selectedProvider=null,this.$emit("provider-selected",null),setTimeout(()=>{this.$refs["provider-list"]?.focus()},300)}}};var voe=function(){var e=this,r=e._self._c;return r("div",{staticClass:"reference-picker",style:e.pickerWrapperStyle,attrs:{tabindex:"-1"},on:{keydown:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"])?null:(n.stopPropagation(),n.preventDefault(),e.onEscapePressed.apply(null,arguments))}}},[e.mode===e.MODES.providerList?r("NcProviderList",{ref:"provider-list",on:{"select-provider":e.onProviderSelected,submit:e.submitLink,cancel:e.cancelProviderSelection}}):e.mode===e.MODES.standardLinkInput?r("NcRawLinkInput",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelRawLinkInput}}):e.mode===e.MODES.searchInput?r("NcSearch",{ref:"url-input",attrs:{provider:e.selectedProvider},on:{cancel:e.cancelSearch,submit:e.submitLink}}):e.mode===e.MODES.customElement?r("div",{staticClass:"custom-element-wrapper"},[r("NcCustomPickerElement",{staticClass:"custom-element",attrs:{provider:e.selectedProvider},on:{submit:e.submitLink,cancel:e.cancelCustomElement}})],1):e._e()],1)},Aoe=[],Eoe=qt(boe,voe,Aoe,!1,null,"646d5538");const woe=Eoe.exports;ar(iL,nL);const Soe={name:"NcReferencePickerModal",components:{NcReferencePicker:woe,NcModal:Vf,NcButton:as,ArrowLeftIcon:cre,CloseIcon:fk},props:{initialProvider:{type:Object,default:()=>null},focusOnCreate:{type:Boolean,default:!0},isInsideViewer:{type:Boolean,default:!1}},emits:["cancel","submit"],data(){return{show:!0,selectedProvider:this.initialProvider,backButtonTitle:Xe("Back to provider selection"),closeButtonTitle:Xe("Close"),closeButtonLabel:Xe("Close Smart Picker")}},computed:{isProviderSelected(){return this.selectedProvider!==null},showBackButton(){return this.initialProvider===null&&this.isProviderSelected},modalSize(){return this.isProviderSelected&&Df(this.selectedProvider.id)?gre(this.selectedProvider.id)??"large":"normal"},showModalName(){return!this.isProviderSelected||!Df(this.selectedProvider.id)},modalName(){return this.isProviderSelected?this.selectedProvider.title:Xe("Smart Picker")}},mounted(){if(this.isInsideViewer){const e=this.$refs.modal_content;Io("viewer:trapElements:changed",e)}},methods:{onCancel(){this.show=!1,this.$emit("cancel")},onSubmit(e){this.show=!1,this.$emit("submit",e)},onProviderSelect(e){this.selectedProvider=e,e===null&&this.initialProvider!==null&&this.onCancel()},onBackClicked(){this.$refs.referencePicker.deselectProvider()}}};var Doe=function(){var e=this,r=e._self._c;return e.show?r("NcModal",{staticClass:"reference-picker-modal",attrs:{size:e.modalSize,"can-close":!0},on:{close:e.onCancel}},[r("div",{ref:"modal_content",staticClass:"reference-picker-modal--content"},[e.showBackButton?r("NcButton",{staticClass:"back-button",attrs:{"aria-label":e.backButtonTitle,title:e.backButtonTitle},on:{click:e.onBackClicked},scopedSlots:e._u([{key:"icon",fn:function(){return[r("ArrowLeftIcon")]},proxy:!0}],null,!1,3001860362)}):e._e(),r("NcButton",{staticClass:"close-button",attrs:{"aria-label":e.closeButtonLabel,title:e.closeButtonTitle,variant:"tertiary"},on:{click:e.onCancel},scopedSlots:e._u([{key:"icon",fn:function(){return[r("CloseIcon")]},proxy:!0}],null,!1,2491825086)}),e.showModalName?r("h2",[e._v(" "+e._s(e.modalName)+" ")]):e._e(),r("NcReferencePicker",{ref:"referencePicker",attrs:{"initial-provider":e.initialProvider,"focus-on-create":e.focusOnCreate},on:{"provider-selected":e.onProviderSelect,submit:e.onSubmit,cancel:e.onCancel}})],1)]):e._e()},xoe=[],koe=qt(Soe,Doe,xoe,!1,null,"00990f2a");const Coe=koe.exports;async function EO(e,r){const n="referencePickerModal",i=document.createElement("div");i.id=n,document.body.append(i);const{promise:o,reject:s,resolve:a}=Promise.withResolvers(),l=e&&Kie(e)||null,u=ea.extend(Coe),c=new u({propsData:{initialProvider:l,isInsideViewer:r}}).$mount(i);return c.$on("cancel",()=>{c.$destroy(),s(new Error("User cancellation"))}),c.$on("submit",d=>{c.$destroy(),a(d)}),o}ar(oL);const _oe={name:"NcReferenceList",components:{NcReferenceWidget:gO},props:{text:{type:String,default:""},referenceData:{type:Array,default:null},limit:{type:Number,default:1},displayFallback:{type:Boolean,default:!1},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},data(){return{references:null,loading:!0}},computed:{isVisible(){return this.loading||this.displayedReferences.length!==0},values(){return this.referenceData?this.referenceData:this.displayFallback&&!this.loading&&!this.references?[this.fallbackReference]:this.references?Object.values(this.references):[]},firstReference(){return this.values[0]??null},displayedReferences(){return this.values.filter(Boolean).slice(0,this.limit)},fallbackReference(){return{accessible:!0,openGraphObject:{id:this.text,link:this.text,name:this.text},richObjectType:"open-graph"}}},watch:{text:"fetch"},mounted(){this.fetch()},methods:{fetch(){if(this.loading=!0,this.referenceData){this.references=null,this.loading=!1;return}if(!new RegExp(e9).exec(this.text)){this.references=null,this.loading=!1;return}this.resolve().then(e=>{this.references=e.data.ocs.data.references,this.loading=!1,this.$emit("loaded")}).catch(e=>{pi.error("Failed to extract references",{error:e}),this.loading=!1,this.$emit("loaded")})},resolve(){const e=new RegExp(e9).exec(this.text.trim()),r=kh()===null;return this.limit===1&&e?r?qn.get(_s("references/resolvePublic")+`?reference=${encodeURIComponent(e[0])}&sharingToken=${xA()}`):qn.get(_s("references/resolve")+`?reference=${encodeURIComponent(e[0])}`):r?qn.post(_s("references/extractPublic"),{text:this.text,resolve:!0,limit:this.limit,sharingToken:xA()}):qn.post(_s("references/extract"),{text:this.text,resolve:!0,limit:this.limit})}}};var Noe=function(){var e=this,r=e._self._c;return e.isVisible?r("div",{staticClass:"widgets--list",class:{"icon-loading":e.loading}},e._l(e.displayedReferences,function(n){return r("NcReferenceWidget",{key:n.openGraphObject?.id,attrs:{reference:n,interactive:e.interactive,"interactive-opt-in":e.interactiveOptIn}})}),1):e._e()},Foe=[],Ooe=qt(_oe,Noe,Foe,!1,null,"a50e616b");const wO=Ooe.exports,kf=K3(/[A-Za-z]/),b7=K3(/[\dA-Za-z]/);function Moe(e){return e!==null&&(e<32||e===127)}function Uh(e){return e!==null&&(e<0||e===32)}const SO=K3(new RegExp("\\p{P}|\\p{S}","u")),Cf=K3(/\s/);function K3(e){return r;function r(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}const DO=(function(e){if(e==null)return Loe;if(typeof e=="function")return Q3(e);if(typeof e=="object")return Array.isArray(e)?Roe(e):Boe(e);if(typeof e=="string")return Ioe(e);throw new Error("Expected function, string, or object as test")});function Roe(e){const r=[];let n=-1;for(;++n0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}_i(null);function OO(e,r){return e=e.replace(/\\/g,"/").replace(/\/+$/g,"").replace(/.*\//,""),e}function M9e(e){const r=OO(e),n=r.lastIndexOf(".");return n>0?r.substring(n):""}function Woe(e,r={},n={},i=()=>{}){typeof n=="function"&&(i=n,n={});let{container:o}=n;"container"in r&&typeof r.container=="string"&&(o??=r.container);const s=(typeof o=="string"&&document.querySelector(o)||document.body).appendChild(document.createElement("div")),a=new ea({el:s,name:"VueDialogHelper",render:l=>l(e,{props:{container:null,...r},on:{close:(...u)=>{i(...u.map(c=>LL(c))),a.$destroy(),s.remove()}}})});return a}const Koe=Uf({name:"NcDialog",components:{NcDialogButton:rz,NcModal:Vf},props:{name:{type:String,required:!0},message:{type:String,default:""},additionalTrapElements:{type:Array,validator:e=>Array.isArray(e)&&e.every(r=>typeof r=="string"||r instanceof HTMLElement),default:()=>[]},container:{type:String,required:!1,default:"body"},open:{type:Boolean,default:!0},size:{type:String,required:!1,default:"small",validator:e=>typeof e=="string"&&["small","normal","large","full"].includes(e)},buttons:{type:Array,required:!1,default:()=>[],validator:e=>Array.isArray(e)&&e.every(r=>typeof r=="object")},noClose:{type:Boolean,default:!1},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!1},isForm:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},navigationClasses:{type:[String,Array,Object],required:!1,default:""},navigationAriaLabel:{type:String,required:!1,default:""},navigationAriaLabelledby:{type:String,required:!1,default:""},contentClasses:{type:[String,Array,Object],required:!1,default:""},dialogClasses:{type:[String,Array,Object],required:!1,default:""}},emits:["closing","update:open","submit"],setup(e,{emit:r,slots:n}){const i=_i(),{width:o}=mk(i,{width:900}),s=ri(()=>o.value<876),a=ri(()=>n?.navigation!==void 0),l=Xs(),u=ri(()=>e.navigationAriaLabel||void 0),c=ri(()=>{if(!e.navigationAriaLabel)return e.navigationAriaLabelledby||l}),d=_i(),h=ri(()=>e.isForm&&!a.value?"form":"div"),p=ri(()=>h.value==="form"?{submit(k){k.preventDefault(),r("submit",k)},reset(k){k.preventDefault(),r("reset",k)}}:{}),f=_i(!0);function m(k,R){(k.type==="submit"||k.nativeType==="submit")&&h.value==="form"&&!d.value.reportValidity()||(v(R),window.setTimeout(()=>w(),300))}function v(k){f.value=!1,r("closing",k)}function w(){f.value=!0,r("update:open",!1)}const x=ri(()=>({noClose:e.noClose||!e.canClose,container:e.container===void 0?"body":e.container,labelId:l,size:e.size,show:e.open&&f.value,outTransition:e.outTransition,closeOnClickOutside:e.closeOnClickOutside,additionalTrapElements:e.additionalTrapElements}));return{dialogElement:d,dialogListeners:p,dialogTagName:h,handleButtonClose:m,handleClosing:v,handleClosed:w,hasNavigation:a,navigationId:l,navigationAriaLabelAttr:u,navigationAriaLabelledbyAttr:c,isNavigationCollapsed:s,modalProps:x,wrapper:i}}});var Qoe=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.open?r("NcModal",e._b({staticClass:"dialog__modal",attrs:{"enable-slideshow":!1,"enable-swipe":!1},on:{close:e.handleClosed,"update:show":function(n){return e.handleClosing()}}},"NcModal",e.modalProps,!1),[r("h2",{staticClass:"dialog__name",attrs:{id:e.navigationId},domProps:{textContent:e._s(e.name)}}),r(e.dialogTagName,e._g({ref:"dialogElement",tag:"component",staticClass:"dialog",class:e.dialogClasses},e.dialogListeners),[r("div",{ref:"wrapper",staticClass:"dialog__wrapper",class:{"dialog__wrapper--collapsed":e.isNavigationCollapsed}},[e.hasNavigation?r("nav",{staticClass:"dialog__navigation",class:e.navigationClasses,attrs:{"aria-label":e.navigationAriaLabelAttr,"aria-labelledby":e.navigationAriaLabelledbyAttr}},[e._t("navigation",null,{isCollapsed:e.isNavigationCollapsed})],2):e._e(),r("div",{staticClass:"dialog__content",class:e.contentClasses},[e._t("default",function(){return[r("p",{staticClass:"dialog__text"},[e._v(" "+e._s(e.message)+" ")])]})],2)]),r("div",{staticClass:"dialog__actions"},[e._t("actions",function(){return e._l(e.buttons,function(n,i){return r("NcDialogButton",e._b({key:i,on:{click:(o,s)=>e.handleButtonClose(n,s)}},"NcDialogButton",n,!1))})})],2)])],1):e._e()},Joe=[],Xoe=qt(Koe,Qoe,Joe,!1,null,"66c29e13");const ese=Xoe.exports,tse='',rse='';class nse extends Error{}class ise{title;multiSelect;mimeTypeFilter;directoriesAllowed;buttons;path;filter;canPick;container;disabledNavigation;constructor(r,n,i,o,s,a,l,u,c,d=!1){this.title=r,this.multiSelect=n,this.mimeTypeFilter=i,this.directoriesAllowed=o,this.path=a,this.filter=l,this.canPick=u,this.buttons=s,this.container=c,this.disabledNavigation=d}async pickNodes(){const{FilePickerVue:r}=await S1(async()=>{const{FilePickerVue:n}=await import("./index-BMbtc3xh-CIFfGXha.chunk.mjs");return{FilePickerVue:n}},__vite__mapDeps([22,1,2]),import.meta.url);return new Promise((n,i)=>{Woe(r,{allowPickDirectory:this.directoriesAllowed,buttons:this.buttons,container:this.container,name:this.title,path:this.path,mimetypeFilter:this.mimeTypeFilter,multiselect:this.multiSelect,filterFn:this.filter,canPickFn:this.canPick,disabledNavigation:this.disabledNavigation},(...o)=>{const[s]=o;!Array.isArray(s)||s.length===0?i(new nse("FilePicker: No nodes selected")):n(s)})})}async pick(){const r=await this.pickNodes();return this.multiSelect?r.map(n=>n.path):r[0]?.path??"/"}}class ose{title;multiSelect=!1;mimeTypeFilter=[];directoriesAllowed=!1;path;filter;canPick;buttons=[];container;disabledNavigation=!1;constructor(r){this.title=r}setContainer(r){return this.container=r,this}setMultiSelect(r){return this.multiSelect=r,this}addMimeTypeFilter(r){return this.mimeTypeFilter.push(r),this}setMimeTypeFilter(r){return this.mimeTypeFilter=r,this}addButton(r){return typeof this.buttons=="function"&&(console.warn("FilePicker buttons were set to factory, now overwritten with button object."),this.buttons=[]),this.buttons.push(r),this}setButtonFactory(r){return this.buttons=r,this}setType(r){return this.buttons=(n,i)=>{const o=[],s=n[0]?.displayname||OO(i);if(r===1){let a=Hd("Choose");n.length===1?a=Hd("Choose {file}",{file:s}):this.multiSelect&&(a=nz("Choose %n file","Choose %n files",n.length)),o.push({callback:()=>{},type:"primary",label:a})}return(r===4||r===3)&&o.push({callback:()=>{},label:s?Hd("Copy to {target}",{target:s}):Hd("Copy"),icon:rse,variant:r===3?"primary":"secondary"}),(r===4||r===2)&&o.push({callback:()=>{},label:s?Hd("Move to {target}",{target:s}):Hd("Move"),icon:tse,variant:"primary"}),o},this}allowDirectories(r=!0){return this.directoriesAllowed=r,this}startAt(r){return this.path=r,this}setFilter(r){return this.filter=r,this}setCanPick(r){return this.canPick=r,this}disableNavigation(){return this.disabledNavigation=!0,this}build(){return new ise(this.title,this.multiSelect,this.mimeTypeFilter,this.directoriesAllowed,this.buttons,this.path,this.filter,this.canPick,this.container,this.disabledNavigation)}}function sse(e){return new ose(e)}const ase=e=>sse(lt("text","Select file or folder to link to")).startAt(e).allowDirectories(!0).setMultiSelect(!1).setButtonFactory((r,n)=>{const i=[],o=r?.[0]?.attributes?.displayName||r?.[0]?.basename,s=r?.[0]?.root===r?.[0]?.attributes?.filename;let a=lt("text","Choose");return r.length===1&&!s&&(a=lt("text","Choose {file}",{file:o})),i.push({callback:()=>{},variant:"primary",label:a,disabled:s}),i}).build(),lse={name:"ActionInsertLink",components:{NcActions:Nl,NcActionButton:_0,NcActionInput:DF,Document:tX,Loading:ET,LinkOff:EX,Web:BX,Shape:kX},extends:Yh,mixins:[Bb,z3],setup(){const{networkOnline:e}=hF();return{...Yh.setup(),networkOnline:e}},data:()=>({href:"",isInputMode:!1,startPath:null,menuOpen:!1,isUsingDirectEditing:zu("text","directEditingToken",null)!==null}),computed:{activeClass(){return this.state.active?"is-active":""},relativePath(){return this.$file?.relativePath??"/"}},methods:{linkFile(){this.startPath===null&&(this.startPath=this.relativePath.split("/").slice(0,-1).join("/")),ase(this.startPath).pick().then(e=>{OC.Files.getClient().getFileInfo(e).then((r,n)=>{const i=new URL(bo(`/f/${n.id}`),window.origin);this.setLink(i.href,n.name),this.startPath=n.path+(n.type==="dir"?`/${n.name}/`:"")}),this.menuOpen=!1}).catch(()=>{this.$refs.buttonFile?.$el.focus()})},linkWebsite(e){if(e?.type==="submit"){const r=[...e.target.elements].filter(n=>n?.type==="text")[0].value;return this.menuOpen=!1,this.isInputMode=!1,this.href="",this.setLink(r,r)}if(t_(this.editor?.state,"link")){const r=ov(this.editor?.state,"link");this.href=r.href}this.isInputMode=!0},setLink(e,r){e&&![/^[a-zA-Z]+:/,/^\//,/\?fileId=/,/^\.\.?\//,/^[^.]*[/$]/,/^#/].find(o=>e.match(o))&&(e="https://"+e);const n=e.replaceAll(" ","%20"),i=this.editor?.chain();i.insertOrSetLink(r,{href:n}),i.focus().run()},removeLink(){this.editor?.chain().unsetLink().focus().run(),this.menuOpen=!1},linkPicker(){EO(null,!0).then(e=>{const r=this.editor?.chain();this.editor?.view.state?.selection.empty?r.focus().insertPreview(e).run():r.setLink({href:e}).focus().run()}).catch(e=>{console.error("Smart picker promise rejected",e)})},t:lt}};var use=function(){var e=this,r=e._self._c;return r("NcActions",{staticClass:"entry-action entry-action__insert-link",class:e.activeClass,attrs:{title:e.actionEntry.label,"aria-label":e.actionEntry.label,container:e.menuIDSelector,"data-text-action-entry":e.actionEntry.key,name:e.actionEntry.label,open:e.menuOpen},on:{"update:open":n=>{e.menuOpen=e.menuOpen||n}},scopedSlots:e._u([{key:"icon",fn:function(){return[r(e.icon,{tag:"component",attrs:{name:e.actionEntry.label,"aria-label":e.actionEntry.label}})]},proxy:!0}])},[e.state.active?r("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-remove`},on:{click:e.removeLink},scopedSlots:e._u([{key:"icon",fn:function(){return[r("LinkOff")]},proxy:!0}],null,!1,3589828876)},[e._v(" "+e._s(e.t("text","Remove link"))+" ")]):e._e(),e.isUsingDirectEditing?e._e():r("NcActionButton",{ref:"buttonFile",attrs:{disabled:!e.networkOnline,"data-text-action-entry":`${e.actionEntry.key}-file`},on:{click:e.linkFile},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Document")]},proxy:!0}],null,!1,1149029676)},[e._v(" "+e._s(e.t("text","Link to file or folder"))+" ")]),e.isInputMode?r("NcActionInput",{attrs:{type:"text",value:e.href,"data-text-action-entry":`${e.actionEntry.key}-input`},on:{"update:value":function(n){e.href=n},submit:e.linkWebsite},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Web")]},proxy:!0}],null,!1,1844845715)},[e._v(" "+e._s(e.t("text","Link to website"))+" ")]):r("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-website`},on:{click:e.linkWebsite},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Web")]},proxy:!0}])},[e._v(" "+e._s(e.state.active?e.t("text","Update link"):e.t("text","Link to website"))+" ")]),r("NcActionButton",{attrs:{"data-text-action-entry":`${e.actionEntry.key}-picker`},on:{click:e.linkPicker},scopedSlots:e._u([{key:"icon",fn:function(){return[r("Shape")]},proxy:!0}])},[e._v(" "+e._s(e.t("text","Open the Smart Picker"))+" ")])],1)},cse=[],dse=Ze(lse,use,cse,!1,null,"e7baf218");const hse=dse.exports,pse="_assistantIcon_1ndue_20",fse="_assistantIcon_inline_1ndue_25",mse="_assistantIcon__svg_1ndue_30",gse={"material-design-icon":"_material-design-icon_1ndue_12",assistantIcon:pse,assistantIcon_inline:fse,assistantIcon__svg:mse},yse={__name:"NcAssistantIcon",props:{inline:{type:Boolean,default:!1},size:{type:Number,default:20}},setup(e){const r=e;ok((s,a)=>({a843d9d2:a.sizePx}));const n=q3(),i=d7(),o=ri(()=>`${r.size}px`);return{__sfc:!0,props:r,isDarkTheme:n,gradientId:i,sizePx:o,mdiCreation:iz}}};var Tse=function(){var e=this,r=e._self._c,n=e._self._setupProxy;return r("span",{class:[e.$style.assistantIcon,e.inline&&e.$style.assistantIcon_inline],attrs:{"aria-hidden":"true",role:"img"}},[r("svg",{class:e.$style.assistantIcon__svg,attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[r("defs",[n.isDarkTheme?r("linearGradient",{attrs:{id:n.gradientId,gradientTransform:"rotateX(285)"}},[r("stop",{attrs:{offset:"15%","stop-color":"#CDACE7"}}),r("stop",{attrs:{offset:"40%","stop-color":"#008FDB"}}),r("stop",{attrs:{offset:"82%","stop-color":"#A180E0"}})],1):r("linearGradient",{attrs:{id:n.gradientId,gradientTransform:"rotateX(285)"}},[r("stop",{attrs:{offset:"15%","stop-color":"#9669D3"}}),r("stop",{attrs:{offset:"40%","stop-color":"#00679E"}}),r("stop",{attrs:{offset:"80%","stop-color":"#492083"}})],1)],1),r("path",{attrs:{d:n.mdiCreation,fill:`url('#${n.gradientId}')`}})])])},bse=[];const A9={$style:gse};function vse(e){for(var r in A9)this[r]=A9[r]}var Ase=qt(yse,Tse,bse,!1,vse,null);const Ese=Ase.exports,wse={name:"NcCounterBubble",props:{type:{type:String,default:"",validator(e){return["highlighted","outlined",""].includes(e)}},active:{type:Boolean,default:!1},count:{type:Number,required:!1,default:void 0},raw:{type:Boolean,required:!1,default:!1}},computed:{counterClassObject(){return{"counter-bubble__counter--highlighted":this.type==="highlighted","counter-bubble__counter--outlined":this.type==="outlined",active:this.active}},humanizedCount(){return this.humanizeCount(this.count)}},methods:{humanizeCount(e){return this.raw?e.toString():new Intl.NumberFormat(Ku(),{notation:"compact",compactDisplay:"short"}).format(e)},getHumanizedCount(){if(this.count!==void 0)return{humanized:this.humanizedCount,original:this.count.toString()};if(!this.raw&&this.$slots.default?.length===1){const e=this.$slots.default[0].text?.trim();if(e&&/^\d+$/.test(e)){const r=parseInt(e,10);return{humanized:this.humanizeCount(r),original:e}}}}},render(e){const r=this.getHumanizedCount();return e("div",{staticClass:"counter-bubble__counter",class:this.counterClassObject,attrs:{title:r&&r.original!==r.humanized?r.original:void 0}},[r?.humanized??this.$slots.default])}},Sse=null,Dse=null;var xse=qt(wse,Sse,Dse,!1,null,"7d9795d6");const kse=xse.exports,Cse={name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(){return this.vnodes||this.$slots?.default||this.$scopedSlots?.default?.()}},_se=null,Nse=null;var Fse=qt(Cse,_se,Nse,!1,null,null);const Ose=Fse.exports,[E9]=Sf("core","config",{version:"30.0"}).version.split(".",2)??[],Mse=E9&&Number.parseInt(E9)<30,Rse={name:"NcListItem",components:{NcActions:Nl,NcCounterBubble:kse,NcVNodes:Ose},props:{details:{type:String,default:""},name:{type:String,default:void 0},exact:{type:Boolean,default:!1},to:{type:[String,Object],default:null},href:{type:String,default:"#"},target:{type:String,default:""},anchorId:{type:String,default:""},bold:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},active:{type:Boolean,default:void 0},linkAriaLabel:{type:String,default:""},actionsAriaLabel:{type:String,default:void 0},counterNumber:{type:[Number,String],default:0},counterType:{type:String,default:"",validator(e){return["highlighted","outlined",""].indexOf(e)!==-1}},forceDisplayActions:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},oneLine:{type:Boolean,default:!1}},emits:["click","update:menuOpen"],setup(){return{isLegacy:Mse}},data(){return{hovered:!1,hasActions:!1,hasSubname:!1,displayActionsOnHoverFocus:!1,menuOpen:!1,hasIndicator:!1,hasDetails:!1}},computed:{showAdditionalElements(){return!this.displayActionsOnHoverFocus||this.forceDisplayActions},showDetails(){return(this.details!==""||this.hasDetails)&&(!this.displayActionsOnHoverFocus||this.forceDisplayActions)}},watch:{menuOpen(e){!e&&!this.hovered&&(this.displayActionsOnHoverFocus=!1)}},mounted(){this.checkSlots()},updated(){this.checkSlots()},methods:{onClick(e,r,n){this.$emit("click",e),!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&n&&(r?.(e),e.preventDefault())},showActions(){this.hasActions&&(this.displayActionsOnHoverFocus=!0),this.hovered=!1},hideActions(){this.displayActionsOnHoverFocus=!1},handleBlur(e){this.menuOpen||this.$refs["list-item"].contains(e.relatedTarget)||this.hideActions()},handleMouseleave(){this.menuOpen||(this.displayActionsOnHoverFocus=!1),this.hovered=!1},handleMouseover(){this.showActions(),this.hovered=!0},handleActionsUpdateOpen(e){this.menuOpen=e,this.$emit("update:menuOpen",e)},checkSlots(){this.hasActions!==!!this.$slots.actions&&(this.hasActions=!!this.$slots.actions),this.hasSubname!==!!this.$slots.subname&&(this.hasSubname=!!this.$slots.subname),this.hasIndicator!==!!this.$slots.indicator&&(this.hasIndicator=!!this.$slots.indicator),this.hasDetails!==!!this.$slots.details&&(this.hasDetails=!!this.$slots.details)}}};var Bse=function(){var e=this,r=e._self._c;return r(e.to?"router-link":"NcVNodes",{tag:"component",attrs:{custom:e.to?!0:null,to:e.to,exact:e.to?e.exact:null},scopedSlots:e._u([{key:"default",fn:function({href:n,navigate:i,isActive:o}){return[r("li",{staticClass:"list-item__wrapper",class:{"list-item__wrapper--active":e.active??o}},[r("div",{ref:"list-item",staticClass:"list-item",class:{"list-item--compact":e.compact,"list-item--legacy":e.isLegacy,"list-item--one-line":e.oneLine},on:{mouseover:e.handleMouseover,mouseleave:e.handleMouseleave}},[r("a",{staticClass:"list-item__anchor",attrs:{id:e.anchorId||void 0,"aria-label":e.linkAriaLabel,href:n||e.href,target:e.target||(e.href==="#"?void 0:"_blank"),rel:e.href==="#"?void 0:"noopener noreferrer"},on:{focus:e.showActions,focusout:e.handleBlur,click:function(s){return e.onClick(s,i,n)},keydown:function(s){return!s.type.indexOf("key")&&e._k(s.keyCode,"esc",27,s.key,["Esc","Escape"])?null:e.hideActions.apply(null,arguments)}}},[e._t("icon"),r("div",{staticClass:"list-item-content"},[r("div",{staticClass:"list-item-content__main"},[r("div",{staticClass:"list-item-content__name"},[e._t("name",function(){return[e._v(e._s(e.name))]})],2),e.hasSubname?r("div",{staticClass:"list-item-content__subname",class:{"list-item-content__subname--bold":e.bold}},[e._t("subname")],2):e._e()]),r("div",{staticClass:"list-item-content__details"},[e.showDetails?r("div",{staticClass:"list-item-details__details"},[e._t("details",function(){return[e._v(e._s(e.details))]})],2):e._e(),e.counterNumber||e.hasIndicator?r("div",{directives:[{name:"show",rawName:"v-show",value:e.showAdditionalElements,expression:"showAdditionalElements"}],staticClass:"list-item-details__extra"},[e.counterNumber?r("NcCounterBubble",{staticClass:"list-item-details__counter",attrs:{active:e.active??o,type:e.counterType}},[e._v(" "+e._s(e.counterNumber)+" ")]):e._e(),e.hasIndicator?r("span",{staticClass:"list-item-details__indicator"},[e._t("indicator")],2):e._e()],1):e._e()])])],2),e.$slots["extra-actions"]?r("div",{staticClass:"list-item-content__extra-actions"},[e._t("extra-actions")],2):e._e(),e.forceDisplayActions||e.displayActionsOnHoverFocus?r("div",{staticClass:"list-item-content__actions",on:{focusout:e.handleBlur}},[r("NcActions",{ref:"actions",attrs:{primary:e.active??o,"force-menu":e.forceMenu,"aria-label":e.actionsAriaLabel},on:{"update:open":e.handleActionsUpdateOpen},scopedSlots:e._u([e.$slots["actions-icon"]?{key:"icon",fn:function(){return[e._t("actions-icon")]},proxy:!0}:null],null,!0)},[e._t("actions")],2)],1):e._e(),e.$slots.extra?r("div",{staticClass:"list-item__extra"},[e._t("extra")],2):e._e()])])]}}],null,!0)})},Ise=[],Lse=qt(Rse,Bse,Ise,!1,null,"be68de56");const zse=Lse.exports,Yse={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Hse=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Pse=[],Zse=Ze(Yse,Hse,Pse,!1,null,null);const w9=Zse.exports,$se={name:"CheckCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Use=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon check-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Vse=[],jse=Ze($se,Use,Vse,!1,null,null);const S9=jse.exports,Gse={name:"ClipboardTextOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var qse=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon clipboard-text-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,3H14.82C14.25,1.44 12.53,0.64 11,1.2C10.14,1.5 9.5,2.16 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M7,7H17V5H19V19H5V5H7V7M17,11H7V9H17V11M15,15H7V13H15V15Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Wse=[],Kse=Ze(Gse,qse,Wse,!1,null,null);const Qse=Kse.exports,Jse={name:"ClockOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Xse=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon clock-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},eae=[],tae=Ze(Jse,Xse,eae,!1,null,null);const D9=tae.exports,rae={name:"ShuffleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nae=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon shuffle-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M14.83,13.41L13.42,14.82L16.55,17.95L14.5,20H20V14.5L17.96,16.54L14.83,13.41M14.5,4L16.54,6.04L4,18.59L5.41,20L17.96,7.46L20,9.5V4M10.59,9.17L5.41,4L4,5.41L9.17,10.58L10.59,9.17Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},iae=[],oae=Ze(rae,nae,iae,!1,null,null);const sae=oae.exports,aae={name:"TextBoxPlusOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var lae=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon text-box-plus-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M17,14H19V17H22V19H19V22H17V19H14V17H17V14M5,3H19C20.11,3 21,3.89 21,5V12.8C20.39,12.45 19.72,12.2 19,12.08V5H5V19H12.08C12.2,19.72 12.45,20.39 12.8,21H5C3.89,21 3,20.11 3,19V5C3,3.89 3.89,3 5,3M7,7H17V9H7V7M7,11H17V12.08C16.15,12.22 15.37,12.54 14.68,13H7V11M7,15H12V17H7V15Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},uae=[],cae=Ze(aae,lae,uae,!1,null,null);const dae=cae.exports,hae={name:"TextShortIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pae=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon text-short-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(n){return e.$emit("click",n)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M4,9H20V11H4V9M4,13H14V15H4V13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},fae=[],mae=Ze(hae,pae,fae,!1,null,null);const gae=mae.exports;var f6={exports:{}},x9,k9;function yae(){return k9||(k9=1,x9=function(e,r){if(r=r.split(":")[0],e=+e,!e)return!1;switch(r){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0}),x9}var og={},C9;function Tae(){if(C9)return og;C9=1;var e=Object.prototype.hasOwnProperty,r;function n(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch{return null}}function i(a){try{return encodeURIComponent(a)}catch{return null}}function o(a){for(var l=/([^=?#&]+)=?([^&]*)/g,u={},c;c=l.exec(a);){var d=n(c[1]),h=n(c[2]);d===null||h===null||d in u||(u[d]=h)}return u}function s(a,l){l=l||"";var u=[],c,d;typeof l!="string"&&(l="?");for(d in a)if(e.call(a,d)){if(c=a[d],!c&&(c===null||c===r||isNaN(c))&&(c=""),d=i(d),c=i(c),d===null||c===null)continue;u.push(d+"="+c)}return u.length?l+u.join("&"):""}return og.stringify=s,og.parse=o,og}var m6,_9;function bae(){if(_9)return m6;_9=1;var e=yae(),r=Tae(),n=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,i=/[\n\r\t]/g,o=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(k){return(k||"").toString().replace(n,"")}var c=[["#","hash"],["?","query"],function(k,R){return p(R.protocol)?k.replace(/\\/g,"/"):k},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],d={hash:1,query:1};function h(k){var R;typeof window<"u"?R=window:typeof i0<"u"?R=i0:typeof self<"u"?R=self:R={};var O=R.location||{};k=k||O;var P={},V=typeof k,W;if(k.protocol==="blob:")P=new v(unescape(k.pathname),{});else if(V==="string"){P=new v(k,{});for(W in d)delete P[W]}else if(V==="object"){for(W in k)W in d||(P[W]=k[W]);P.slashes===void 0&&(P.slashes=o.test(k.href))}return P}function p(k){return k==="file:"||k==="ftp:"||k==="http:"||k==="https:"||k==="ws:"||k==="wss:"}function f(k,R){k=u(k),k=k.replace(i,""),R=R||{};var O=a.exec(k),P=O[1]?O[1].toLowerCase():"",V=!!O[2],W=!!O[3],ie=0,ue;return V?W?(ue=O[2]+O[3]+O[4],ie=O[2].length+O[3].length):(ue=O[2]+O[4],ie=O[2].length):W?(ue=O[3]+O[4],ie=O[3].length):ue=O[4],P==="file:"?ie>=2&&(ue=ue.slice(2)):p(P)?ue=O[4]:P?V&&(ue=ue.slice(2)):ie>=2&&p(R.protocol)&&(ue=O[4]),{protocol:P,slashes:V||p(P),slashesCount:ie,rest:ue}}function m(k,R){if(k==="")return R;for(var O=(R||"/").split("/").slice(0,-1).concat(k.split("/")),P=O.length,V=O[P-1],W=!1,ie=0;P--;)O[P]==="."?O.splice(P,1):O[P]===".."?(O.splice(P,1),ie++):ie&&(P===0&&(W=!0),O.splice(P,1),ie--);return W&&O.unshift(""),(V==="."||V==="..")&&O.push(""),O.join("/")}function v(k,R,O){if(k=u(k),k=k.replace(i,""),!(this instanceof v))return new v(k,R,O);var P,V,W,ie,ue,I,ne=c.slice(),he=typeof R,re=this,Ee=0;for(he!=="object"&&he!=="string"&&(O=R,R=null),O&&typeof O!="function"&&(O=r.parse),R=h(R),V=f(k||"",R),P=!V.protocol&&!V.slashes,re.slashes=V.slashes||P&&R.slashes,re.protocol=V.protocol||R.protocol||"",k=V.rest,(V.protocol==="file:"&&(V.slashesCount!==2||l.test(k))||!V.slashes&&(V.protocol||V.slashesCount<2||!p(re.protocol)))&&(ne[3]=[/(.*)/,"pathname"]);Ee'+u[c].mention.label+""}function a(u){var c=i(u);return{type:c.host,id:c.pathname.slice(1)}}function l(u){var c=/@$/;u.tokens.forEach(function(d){if(d.type==="inline"){var h=d.children;h.forEach(function(p,f){if(!(f+3>h.length)){var m=h.slice(f,f+4),v=o(m,4),w=v[0],x=v[1],k=v[2],R=v[3],O=R===void 0?{}:R;if(k.type==="link_close"&&(O=k,k=null),w.type==="text"&&c.test(w.content)&&x.type==="link_open"&&O.type==="link_close"){var P=x.attrs.reduce(function(V,W){return W[0]==="href"?W[1]:V},"");w.content=w.content.slice(0,-1),x.type="mention",x.mention=a(P),x.mention.label=k&&k.content||"",h.splice(f+2,k?2:1)}}}),d.children=h}})}e.exports=function(u,c){u.renderer.rules.mention=s,u.core.ruler.after("inline","mention",l)},r.renderMention=s,r.parseUri=a,r.parseMentions=l})(f6,f6.exports)),f6.exports}var Aae=vae();const Eae=D0(Aae),F9={};function wae(e){let r=F9[e];if(r)return r;r=F9[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);r.push(i)}for(let n=0;n=55296&&d<=57343?o+="���":o+=String.fromCharCode(d),s+=6;continue}}if((l&248)===240&&s+91114111?o+="����":(h-=65536,o+=String.fromCharCode(55296+(h>>10),56320+(h&1023))),s+=9;continue}}o+="�"}return o})}Vh.defaultChars=";/?:@&=+$,#",Vh.componentChars="";const O9={};function Sae(e){let r=O9[e];if(r)return r;r=O9[e]=[];for(let n=0;n<128;n++){const i=String.fromCharCode(n);/^[0-9a-z]$/i.test(i)?r.push(i):r.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const i=Sae(r);let o="";for(let s=0,a=e.length;s=55296&&l<=57343){if(l>=55296&&l<=56319&&s+1=56320&&u<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}_f.defaultChars=";/?:@&=+$,-_.!~*'()#",_f.componentChars="-_.!~*'()";function A7(e){let r="";return r+=e.protocol||"",r+=e.slashes?"//":"",r+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?r+="["+e.hostname+"]":r+=e.hostname||"",r+=e.port?":"+e.port:"",r+=e.pathname||"",r+=e.search||"",r+=e.hash||"",r}function p4(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const Dae=/^([a-z0-9.+-]+:)/i,xae=/:[0-9]*$/,kae=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Cae=["<",">",'"',"`"," ","\r",` `," "],_ae=["{","}","|","\\","^","`"].concat(Cae),Nae=["'"].concat(_ae),M9=["%","/","?",";","#"].concat(Nae),R9=["/","?","#"],Fae=255,B9=/^[+a-z0-9A-Z_-]{0,63}$/,Oae=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,I9={javascript:!0,"javascript:":!0},L9={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function E7(e,r){if(e&&e instanceof p4)return e;const n=new p4;return n.parse(e,r),n}p4.prototype.parse=function(e,r){let n,i,o,s=e;if(s=s.trim(),!r&&e.split("#").length===1){const c=kae.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let a=Dae.exec(s);if(a&&(a=a[0],n=a.toLowerCase(),this.protocol=a,s=s.substr(a.length)),(r||a||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(a&&I9[a])&&(s=s.substr(2),this.slashes=!0)),!I9[a]&&(o||a&&!L9[a])){let c=-1;for(let m=0;m127?k+="x":k+=x[R];if(!k.match(B9)){const R=m.slice(0,v),O=m.slice(v+1),P=x.match(Oae);P&&(R.push(P[1]),O.unshift(P[2])),O.length&&(s=O.join(".")+s),this.hostname=R.join(".");break}}}}this.hostname.length>Fae&&(this.hostname=""),f&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const l=s.indexOf("#");l!==-1&&(this.hash=s.substr(l),s=s.slice(0,l));const u=s.indexOf("?");return u!==-1&&(this.search=s.substr(u),s=s.slice(0,u)),s&&(this.pathname=s),L9[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},p4.prototype.parseHost=function(e){let r=xae.exec(e);r&&(r=r[0],r!==":"&&(this.port=r.substr(1)),e=e.substr(0,e.length-r.length)),e&&(this.hostname=e)};const Mae=Object.freeze(Object.defineProperty({__proto__:null,decode:Vh,encode:_f,format:A7,parse:E7},Symbol.toStringTag,{value:"Module"})),MO=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,RO=/[\0-\x1F\x7F-\x9F]/,Rae=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,w7=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\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[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,BO=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,IO=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Bae=Object.freeze(Object.defineProperty({__proto__:null,Any:MO,Cc:RO,Cf:Rae,P:w7,S:BO,Z:IO},Symbol.toStringTag,{value:"Module"})),Iae=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),Lae=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var g6;const zae=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),Yae=(g6=String.fromCodePoint)!==null&&g6!==void 0?g6:function(e){let r="";return e>65535&&(e-=65536,r+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),r+=String.fromCharCode(e),r};function Hae(e){var r;return e>=55296&&e<=57343||e>1114111?65533:(r=zae.get(e))!==null&&r!==void 0?r:e}var Vi;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(Vi||(Vi={}));const Pae=32;var Au;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Au||(Au={}));function YT(e){return e>=Vi.ZERO&&e<=Vi.NINE}function Zae(e){return e>=Vi.UPPER_A&&e<=Vi.UPPER_F||e>=Vi.LOWER_A&&e<=Vi.LOWER_F}function $ae(e){return e>=Vi.UPPER_A&&e<=Vi.UPPER_Z||e>=Vi.LOWER_A&&e<=Vi.LOWER_Z||YT(e)}function Uae(e){return e===Vi.EQUALS||$ae(e)}var Yi;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(Yi||(Yi={}));var hu;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(hu||(hu={}));class Vae{constructor(r,n,i){this.decodeTree=r,this.emitCodePoint=n,this.errors=i,this.state=Yi.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=hu.Strict}startEntity(r){this.decodeMode=r,this.state=Yi.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(r,n){switch(this.state){case Yi.EntityStart:return r.charCodeAt(n)===Vi.NUM?(this.state=Yi.NumericStart,this.consumed+=1,this.stateNumericStart(r,n+1)):(this.state=Yi.NamedEntity,this.stateNamedEntity(r,n));case Yi.NumericStart:return this.stateNumericStart(r,n);case Yi.NumericDecimal:return this.stateNumericDecimal(r,n);case Yi.NumericHex:return this.stateNumericHex(r,n);case Yi.NamedEntity:return this.stateNamedEntity(r,n)}}stateNumericStart(r,n){return n>=r.length?-1:(r.charCodeAt(n)|Pae)===Vi.LOWER_X?(this.state=Yi.NumericHex,this.consumed+=1,this.stateNumericHex(r,n+1)):(this.state=Yi.NumericDecimal,this.stateNumericDecimal(r,n))}addToNumericResult(r,n,i,o){if(n!==i){const s=i-n;this.result=this.result*Math.pow(o,s)+parseInt(r.substr(n,s),o),this.consumed+=s}}stateNumericHex(r,n){const i=n;for(;n>14;for(;n>14,s!==0){if(a===Vi.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==hu.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var r;const{result:n,decodeTree:i}=this,o=(i[n]&Au.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,o,this.consumed),(r=this.errors)===null||r===void 0||r.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(r,n,i){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[r]&~Au.VALUE_LENGTH:o[r+1],i),n===3&&this.emitCodePoint(o[r+2],i),i}end(){var r;switch(this.state){case Yi.NamedEntity:return this.result!==0&&(this.decodeMode!==hu.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Yi.NumericDecimal:return this.emitNumericEntity(0,2);case Yi.NumericHex:return this.emitNumericEntity(0,3);case Yi.NumericStart:return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Yi.EntityStart:return 0}}}function LO(e){let r="";const n=new Vae(e,i=>r+=Yae(i));return function(i,o){let s=0,a=0;for(;(a=i.indexOf("&",a))>=0;){r+=i.slice(s,a),n.startEntity(o);const u=n.write(i,a+1);if(u<0){s=a+n.end();break}s=a+u,a=u===0?s+1:s}const l=r+i.slice(s);return r="",l}}function jae(e,r,n,i){const o=(r&Au.BRANCH_LENGTH)>>7,s=r&Au.JUMP_TABLE;if(o===0)return s!==0&&i===s?n:-1;if(s){const u=i-s;return u<0||u>=o?-1:e[n+u]-1}let a=n,l=a+o-1;for(;a<=l;){const u=a+l>>>1,c=e[u];if(ci)l=u-1;else return e[u+o]}return-1}const Gae=LO(Iae);LO(Lae);function zO(e,r=hu.Legacy){return Gae(e,r)}function qae(e){return Object.prototype.toString.call(e)}function S7(e){return qae(e)==="[object String]"}const Wae=Object.prototype.hasOwnProperty;function Kae(e,r){return Wae.call(e,r)}function J3(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function YO(e,r,n){return[].concat(e.slice(0,r),n,e.slice(r+1))}function D7(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function f4(e){if(e>65535){e-=65536;const r=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(r,n)}return String.fromCharCode(e)}const HO=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Qae=/&([a-z#][a-z0-9]{1,31});/gi,Jae=new RegExp(HO.source+"|"+Qae.source,"gi"),Xae=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ele(e,r){if(r.charCodeAt(0)===35&&Xae.test(r)){const i=r[1].toLowerCase()==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return D7(i)?f4(i):e}const n=zO(e);return n!==e?n:e}function tle(e){return e.indexOf("\\")<0?e:e.replace(HO,"$1")}function jh(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Jae,function(r,n,i){return n||ele(r,i)})}const rle=/[&<>"]/,nle=/[&<>"]/g,ile={"&":"&","<":"<",">":">",'"':"""};function ole(e){return ile[e]}function t0(e){return rle.test(e)?e.replace(nle,ole):e}const sle=/[.?*+^$[\]\\(){}|-]/g;function ale(e){return e.replace(sle,"\\$&")}function _n(e){switch(e){case 9:case 32:return!0}return!1}function Nf(e){if(e>=8192&&e<=8202)return!0;switch(e){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}function Ff(e){return w7.test(e)||BO.test(e)}function Of(e){switch(e){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 X3(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const lle={mdurl:Mae,ucmicro:Bae},ule=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:YO,assign:J3,escapeHtml:t0,escapeRE:ale,fromCodePoint:f4,has:Kae,isMdAsciiPunct:Of,isPunctChar:Ff,isSpace:_n,isString:S7,isValidEntityCode:D7,isWhiteSpace:Nf,lib:lle,normalizeReference:X3,unescapeAll:jh,unescapeMd:tle},Symbol.toStringTag,{value:"Module"}));function cle(e,r,n){let i,o,s,a;const l=e.posMax,u=e.pos;for(e.pos=r+1,i=1;e.pos32))return s;if(i===41){if(a===0)break;a--}o++}return r===o||a!==0||(s.str=jh(e.slice(r,o)),s.pos=o,s.ok=!0),s}function hle(e,r,n,i){let o,s=r;const a={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(i)a.str=i.str,a.marker=i.marker;else{if(s>=n)return a;let l=e.charCodeAt(s);if(l!==34&&l!==39&&l!==40)return a;r++,s++,l===40&&(l=41),a.marker=l}for(;s"+t0(s.content)+""},ol.code_block=function(e,r,n,i,o){const s=e[r];return""+t0(e[r].content)+` `},ol.fence=function(e,r,n,i,o){const s=e[r],a=s.info?jh(s.info).trim():"";let l="",u="";if(a){const d=a.split(/(\s+)/g);l=d[0],u=d.slice(2).join("")}let c;if(n.highlight?c=n.highlight(s.content,l,u)||t0(s.content):c=t0(s.content),c.indexOf("${c} `}return`
${c}
`},ol.image=function(e,r,n,i,o){const s=e[r];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,i),o.renderToken(e,r,n)},ol.hardbreak=function(e,r,n){return n.xhtmlOut?`
`:`
`},ol.softbreak=function(e,r,n){return n.breaks?n.xhtmlOut?`
`:`
`:` `},ol.text=function(e,r){return t0(e[r].content)},ol.html_block=function(e,r){return e[r].content},ol.html_inline=function(e,r){return e[r].content};function Jd(){this.rules=J3({},ol)}Jd.prototype.renderAttrs=function(e){let r,n,i;if(!e.attrs)return"";for(i="",r=0,n=e.attrs.length;r `:">",o},Jd.prototype.renderInline=function(e,r,n){let i="";const o=this.rules;for(let s=0,a=e.length;s=0&&(n=this.attrs[r][1]),n},Jo.prototype.attrJoin=function(e,r){const n=this.attrIndex(e);n<0?this.attrPush([e,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function PO(e,r,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=r}PO.prototype.Token=Jo;const fle=/\r\n?|\n/g,mle=/\0/g;function gle(e){let r;r=e.src.replace(fle,` `),r=r.replace(mle,"�"),e.src=r}function yle(e){let r;e.inlineMode?(r=new e.Token("inline","",0),r.content=e.src,r.map=[0,1],r.children=[],e.tokens.push(r)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function Tle(e){const r=e.tokens;for(let n=0,i=r.length;n\s]/i.test(e)}function vle(e){return/^<\/a\s*>/i.test(e)}function Ale(e){const r=e.tokens;if(e.md.options.linkify)for(let n=0,i=r.length;n=0;a--){const l=o[a];if(l.type==="link_close"){for(a--;o[a].level!==l.level&&o[a].type!=="link_open";)a--;continue}if(l.type==="html_inline"&&(ble(l.content)&&s>0&&s--,vle(l.content)&&s++),!(s>0)&&l.type==="text"&&e.md.linkify.test(l.content)){const u=l.content;let c=e.md.linkify.match(u);const d=[];let h=l.level,p=0;c.length>0&&c[0].index===0&&a>0&&o[a-1].type==="text_special"&&(c=c.slice(1));for(let f=0;fp){const P=new e.Token("text","",0);P.content=u.slice(p,x),P.level=h,d.push(P)}const k=new e.Token("link_open","a",1);k.attrs=[["href",v]],k.level=h++,k.markup="linkify",k.info="auto",d.push(k);const R=new e.Token("text","",0);R.content=w,R.level=h,d.push(R);const O=new e.Token("link_close","a",-1);O.level=--h,O.markup="linkify",O.info="auto",d.push(O),p=c[f].lastIndex}if(p=0;n--){const i=e[n];i.type==="text"&&!r&&(i.content=i.content.replace(wle,Dle)),i.type==="link_open"&&i.info==="auto"&&r--,i.type==="link_close"&&i.info==="auto"&&r++}}function kle(e){let r=0;for(let n=e.length-1;n>=0;n--){const i=e[n];i.type==="text"&&!r&&ZO.test(i.content)&&(i.content=i.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–")),i.type==="link_open"&&i.info==="auto"&&r--,i.type==="link_close"&&i.info==="auto"&&r++}}function Cle(e){let r;if(e.md.options.typographer)for(r=e.tokens.length-1;r>=0;r--)e.tokens[r].type==="inline"&&(Ele.test(e.tokens[r].content)&&xle(e.tokens[r].children),ZO.test(e.tokens[r].content)&&kle(e.tokens[r].children))}const _le=/['"]/,z9=/['"]/g,Y9="’";function sg(e,r,n){return e.slice(0,r)+n+e.slice(r+1)}function Nle(e,r){let n;const i=[];for(let o=0;o=0&&!(i[n].level<=a);n--);if(i.length=n+1,s.type!=="text")continue;let l=s.content,u=0,c=l.length;e:for(;u=0)m=l.charCodeAt(d.index-1);else for(n=o-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let v=32;if(u=48&&m<=57&&(p=h=!1),h&&p&&(h=w,p=x),!h&&!p){f&&(s.content=sg(s.content,d.index,Y9));continue}if(p)for(n=i.length-1;n>=0;n--){let O=i[n];if(i[n].level=0;r--)e.tokens[r].type!=="inline"||!_le.test(e.tokens[r].content)||Nle(e.tokens[r].children,e)}function Ole(e){let r,n;const i=e.tokens,o=i.length;for(let s=0;s0&&this.level++,this.tokens.push(i),i},sl.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},sl.prototype.skipEmptyLines=function(e){for(let r=this.lineMax;er;)if(!_n(this.src.charCodeAt(--e)))return e+1;return e},sl.prototype.skipChars=function(e,r){for(let n=this.src.length;en;)if(r!==this.src.charCodeAt(--e))return e+1;return e},sl.prototype.getLines=function(e,r,n,i){if(e>=r)return"";const o=new Array(r-e);for(let s=0,a=e;an?o[s]=new Array(l-n+1).join(" ")+this.src.slice(c,d):o[s]=this.src.slice(c,d)}return o.join("")},sl.prototype.Token=Jo;const Mle=65536;function T6(e,r){const n=e.bMarks[r]+e.tShift[r],i=e.eMarks[r];return e.src.slice(n,i)}function H9(e){const r=[],n=e.length;let i=0,o=e.charCodeAt(i),s=!1,a=0,l="";for(;in)return!1;let o=r+1;if(e.sCount[o]=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const a=e.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58||s>=e.eMarks[o])return!1;const l=e.src.charCodeAt(s++);if(l!==124&&l!==45&&l!==58&&!_n(l)||a===45&&_n(l))return!1;for(;s=4)return!1;c=H9(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const h=c.length;if(h===0||h!==d.length)return!1;if(i)return!0;const p=e.parentType;e.parentType="table";const f=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),v=[r,0];m.map=v;const w=e.push("thead_open","thead",1);w.map=[r,r+1];const x=e.push("tr_open","tr",1);x.map=[r,r+1];for(let O=0;O=4||(c=H9(u),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),R+=h-c.length,R>Mle))break;if(o===r+2){const V=e.push("tbody_open","tbody",1);V.map=k=[r+2,0]}const P=e.push("tr_open","tr",1);P.map=[o,o+1];for(let V=0;V=4){i++,o=i;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=e.getLines(r,o,4+e.blkIndent,!1)+` `,s.map=[r,e.line],!0}function Ile(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||o+3>s)return!1;const a=e.src.charCodeAt(o);if(a!==126&&a!==96)return!1;let l=o;o=e.skipChars(o,a);let u=o-l;if(u<3)return!1;const c=e.src.slice(l,o),d=e.src.slice(o,s);if(a===96&&d.indexOf(String.fromCharCode(a))>=0)return!1;if(i)return!0;let h=r,p=!1;for(;h++,!(h>=n||(o=l=e.bMarks[h]+e.tShift[h],s=e.eMarks[h],o=4)&&(o=e.skipChars(o,a),!(o-l=4||e.src.charCodeAt(o)!==62)return!1;if(i)return!0;const l=[],u=[],c=[],d=[],h=e.md.block.ruler.getRules("blockquote"),p=e.parentType;e.parentType="blockquote";let f=!1,m;for(m=r;m=s)break;if(e.src.charCodeAt(o++)===62&&!R){let P=e.sCount[m]+1,V,W;e.src.charCodeAt(o)===32?(o++,P++,W=!1,V=!0):e.src.charCodeAt(o)===9?(V=!0,(e.bsCount[m]+P)%4===3?(o++,P++,W=!1):W=!0):V=!1;let ie=P;for(l.push(e.bMarks[m]),e.bMarks[m]=o;o=s,u.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(V?1:0),c.push(e.sCount[m]),e.sCount[m]=ie-P,d.push(e.tShift[m]),e.tShift[m]=o-e.bMarks[m];continue}if(f)break;let O=!1;for(let P=0,V=h.length;P";const x=[r,0];w.map=x,e.md.block.tokenize(e,r,m);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=a,e.parentType=p,x[1]=e.line;for(let R=0;R=4)return!1;let s=e.bMarks[r]+e.tShift[r];const a=e.src.charCodeAt(s++);if(a!==42&&a!==45&&a!==95)return!1;let l=1;for(;s=i)return-1;let s=e.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=i)return-1;if(s=e.src.charCodeAt(o++),s>=48&&s<=57){if(o-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[u]-e.listIndent>=4&&e.sCount[u]=e.blkIndent&&(d=!0);let h,p,f;if((f=Z9(e,u))>=0){if(h=!0,a=e.bMarks[u]+e.tShift[u],p=Number(e.src.slice(a,f-1)),d&&p!==1)return!1}else if((f=P9(e,u))>=0)h=!1;else return!1;if(d&&e.skipSpaces(f)>=e.eMarks[u])return!1;if(i)return!0;const m=e.src.charCodeAt(f-1),v=e.tokens.length;h?(l=e.push("ordered_list_open","ol",1),p!==1&&(l.attrs=[["start",p]])):l=e.push("bullet_list_open","ul",1);const w=[u,0];l.map=w,l.markup=String.fromCharCode(m);let x=!1;const k=e.md.block.ruler.getRules("list"),R=e.parentType;for(e.parentType="list";u=o?W=1:W=P-O,W>4&&(W=1);const ie=O+W;l=e.push("list_item_open","li",1),l.markup=String.fromCharCode(m);const ue=[u,0];l.map=ue,h&&(l.info=e.src.slice(a,f-1));const I=e.tight,ne=e.tShift[u],he=e.sCount[u],re=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=ie,e.tight=!0,e.tShift[u]=V-e.bMarks[u],e.sCount[u]=P,V>=o&&e.isEmpty(u+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,u,n,!0),(!e.tight||x)&&(c=!1),x=e.line-u>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=re,e.tShift[u]=ne,e.sCount[u]=he,e.tight=I,l=e.push("list_item_close","li",-1),l.markup=String.fromCharCode(m),u=e.line,ue[1]=u,u>=n||e.sCount[u]=4)break;let Ee=!1;for(let ge=0,Oe=k.length;ge=4||e.src.charCodeAt(o)!==91)return!1;function l(k){const R=e.lineMax;if(k>=R||e.isEmpty(k))return null;let O=!1;if(e.sCount[k]-e.blkIndent>3&&(O=!0),e.sCount[k]<0&&(O=!0),!O){const W=e.md.block.ruler.getRules("reference"),ie=e.parentType;e.parentType="reference";let ue=!1;for(let I=0,ne=W.length;I"u"&&(e.env.references={}),typeof e.env.references[x]>"u"&&(e.env.references[x]={title:w,href:h}),e.line=a),!0):!1}const Zle=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],$le="[a-zA-Z_:][a-zA-Z0-9:._-]*",Ule="[^\"'=<>`\\x00-\\x20]+",Vle="'[^']*'",jle='"[^"]*"',Gle="(?:"+Ule+"|"+Vle+"|"+jle+")",qle="(?:\\s+"+$le+"(?:\\s*=\\s*"+Gle+")?)",$O="<[A-Za-z][A-Za-z0-9\\-]*"+qle+"*\\s*\\/?>",UO="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Wle="",Kle="<[?][\\s\\S]*?[?]>",Qle="]*>",Jle="",Xle=new RegExp("^(?:"+$O+"|"+UO+"|"+Wle+"|"+Kle+"|"+Qle+"|"+Jle+")"),e0e=new RegExp("^(?:"+$O+"|"+UO+")"),Vd=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(e0e.source+"\\s*$"),/^$/,!1]];function t0e(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r];if(e.sCount[r]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let a=e.src.slice(o,s),l=0;for(;l=4)return!1;let a=e.src.charCodeAt(o);if(a!==35||o>=s)return!1;let l=1;for(a=e.src.charCodeAt(++o);a===35&&o6||oo&&_n(e.src.charCodeAt(u-1))&&(s=u),e.line=r+1;const c=e.push("heading_open","h"+String(l),1);c.markup="########".slice(0,l),c.map=[r,e.line];const d=e.push("inline","",0);d.content=e.src.slice(o,s).trim(),d.map=[r,e.line],d.children=[];const h=e.push("heading_close","h"+String(l),-1);return h.markup="########".slice(0,l),!0}function n0e(e,r,n){const i=e.md.block.ruler.getRules("paragraph");if(e.sCount[r]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let s=0,a,l=r+1;for(;l3)continue;if(e.sCount[l]>=e.blkIndent){let f=e.bMarks[l]+e.tShift[l];const m=e.eMarks[l];if(f=m))){s=a===61?1:2;break}}if(e.sCount[l]<0)continue;let p=!1;for(let f=0,m=i.length;f3||e.sCount[s]<0)continue;let c=!1;for(let d=0,h=i.length;d=n||e.sCount[a]=s){e.line=n;break}const u=e.line;let c=!1;for(let d=0;d=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!l,e.isEmpty(e.line-1)&&(l=!0),a=e.line,a0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(i),this.tokens_meta.push(o),i},y1.prototype.scanDelims=function(e,r){const n=this.posMax,i=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let s=e;for(;s0)return!1;const n=e.pos,i=e.posMax;if(n+3>i||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=e.pending.match(a0e);if(!o)return!1;const s=o[1],a=e.md.linkify.matchAtStart(e.src.slice(n-s.length));if(!a)return!1;let l=a.url;if(l.length<=s.length)return!1;l=l.replace(/\*+$/,"");const u=e.md.normalizeLink(l);if(!e.md.validateLink(u))return!1;if(!r){e.pending=e.pending.slice(0,-s.length);const c=e.push("link_open","a",1);c.attrs=[["href",u]],c.markup="linkify",c.info="auto";const d=e.push("text","",0);d.content=e.md.normalizeLinkText(l);const h=e.push("link_close","a",-1);h.markup="linkify",h.info="auto"}return e.pos+=l.length-s.length,!0}function VO(e,r){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const i=e.pending.length-1,o=e.posMax;if(!r)if(i>=0&&e.pending.charCodeAt(i)===32)if(i>=1&&e.pending.charCodeAt(i-1)===32){let s=i-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){x7[e.charCodeAt(0)]=1});function jO(e,r){let n=e.pos;const i=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=i))return!1;let o=e.src.charCodeAt(n);if(o===10){for(r||e.push("hardbreak","br",0),n++;n=55296&&o<=56319&&n+1=56320&&l<=57343&&(s+=e.src[n+1],n++)}const a="\\"+s;if(!r){const l=e.push("text_special","",0);o<256&&x7[o]!==0?l.content=s:l.content=a,l.markup=a,l.info="escape"}return e.pos=n+1,!0}function u0e(e,r){let n=e.pos;if(e.src.charCodeAt(n)!==96)return!1;const i=n;n++;const o=e.posMax;for(;n=0;i--){const o=r[i];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const s=r[o.end],a=i>0&&r[i-1].end===o.end+1&&r[i-1].marker===o.marker&&r[i-1].token===o.token-1&&r[o.end+1].token===s.token+1,l=String.fromCharCode(o.marker),u=e.tokens[o.token];u.type=a?"strong_open":"em_open",u.tag=a?"strong":"em",u.nesting=1,u.markup=a?l+l:l,u.content="";const c=e.tokens[s.token];c.type=a?"strong_close":"em_close",c.tag=a?"strong":"em",c.nesting=-1,c.markup=a?l+l:l,c.content="",a&&(e.tokens[r[i-1].token].content="",e.tokens[r[o.end+1].token].content="",i--)}}function p0e(e){const r=e.tokens_meta,n=e.tokens_meta.length;U9(e,e.delimiters);for(let i=0;i=h)return!1;if(u=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(a=e.md.normalizeLink(o.str),e.md.validateLink(a)?m=o.pos:a="",u=m;m=h||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m=0?i=e.src.slice(u,m++):m=f+1):m=f+1,i||(i=e.src.slice(p,f)),s=e.env.references[X3(i)],!s)return e.pos=d,!1;a=s.href,l=s.title}if(!r){e.pos=p,e.posMax=f;const v=e.push("link_open","a",1),w=[["href",a]];v.attrs=w,l&&w.push(["title",l]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=h,!0}function m0e(e,r){let n,i,o,s,a,l,u,c,d="";const h=e.pos,p=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const f=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(s=m+1,s=p)return!1;for(c=s,l=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),l.ok&&(d=e.md.normalizeLink(l.str),e.md.validateLink(d)?s=l.pos:d=""),c=s;s=p||e.src.charCodeAt(s)!==41)return e.pos=h,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s=0?o=e.src.slice(c,s++):s=m+1):s=m+1,o||(o=e.src.slice(f,m)),a=e.env.references[X3(o)],!a)return e.pos=h,!1;d=a.href,u=a.title}if(!r){i=e.src.slice(f,m);const v=[];e.md.inline.parse(i,e.md,e.env,v);const w=e.push("image","img",0),x=[["src",d],["alt",""]];w.attrs=x,w.children=v,w.content=i,u&&x.push(["title",u])}return e.pos=s,e.posMax=p,!0}const g0e=/^([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])?)*)$/,y0e=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function T0e(e,r){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const i=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const a=e.src.charCodeAt(n);if(a===60)return!1;if(a===62)break}const s=e.src.slice(i+1,n);if(y0e.test(s)){const a=e.md.normalizeLink(s);if(!e.md.validateLink(a))return!1;if(!r){const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(s);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}if(g0e.test(s)){const a=e.md.normalizeLink("mailto:"+s);if(!e.md.validateLink(a))return!1;if(!r){const l=e.push("link_open","a",1);l.attrs=[["href",a]],l.markup="autolink",l.info="auto";const u=e.push("text","",0);u.content=e.md.normalizeLinkText(s);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}return!1}function b0e(e){return/^\s]/i.test(e)}function v0e(e){return/^<\/a\s*>/i.test(e)}function A0e(e){const r=e|32;return r>=97&&r<=122}function E0e(e,r){if(!e.md.options.html)return!1;const n=e.posMax,i=e.pos;if(e.src.charCodeAt(i)!==60||i+2>=n)return!1;const o=e.src.charCodeAt(i+1);if(o!==33&&o!==63&&o!==47&&!A0e(o))return!1;const s=e.src.slice(i).match(Xle);if(!s)return!1;if(!r){const a=e.push("html_inline","",0);a.content=s[0],b0e(a.content)&&e.linkLevel++,v0e(a.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}const w0e=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,S0e=/^&([a-z][a-z0-9]{1,31});/i;function D0e(e,r){const n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=i)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(w0e);if(o){if(!r){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),a=e.push("text_special","",0);a.content=D7(s)?f4(s):f4(65533),a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(S0e);if(o){const s=zO(o[0]);if(s!==o[0]){if(!r){const a=e.push("text_special","",0);a.content=s,a.markup=o[0],a.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function V9(e){const r={},n=e.length;if(!n)return;let i=0,o=-2;const s=[];for(let a=0;au;c-=s[c]+1){const h=e[c];if(h.marker===l.marker&&h.open&&h.end<0){let p=!1;if((h.close||l.open)&&(h.length+l.length)%3===0&&(h.length%3!==0||l.length%3!==0)&&(p=!0),!p){const f=c>0&&!e[c-1].open?s[c-1]+1:0;s[a]=a-c+f,s[c]=f,l.open=!1,h.end=a,h.close=!1,d=-1,o=-2;break}}}d!==-1&&(r[l.marker][(l.open?3:0)+(l.length||0)%3]=d)}}function x0e(e){const r=e.tokens_meta,n=e.tokens_meta.length;V9(e.delimiters);for(let i=0;i0&&i++,o[r].type==="text"&&r+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;a||e.pos++,s[r]=e.pos},T1.prototype.tokenize=function(e){const r=this.ruler.getRules(""),n=r.length,i=e.posMax,o=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(a){if(e.pos>=i)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},T1.prototype.parse=function(e,r,n,i){const o=new this.State(e,r,n,i);this.tokenize(o);const s=this.ruler2.getRules(""),a=s.length;for(let l=0;l|$))",r.tpl_email_fuzzy="(^|"+n+'|"|\\(|'+r.src_ZCc+")("+r.src_email_name+"@"+r.tpl_host_fuzzy_strict+")",r.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_fuzzy_strict+r.src_path+")",r.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+r.src_ZPCc+"))((?![$+<=>^`||])"+r.tpl_host_port_no_ip_fuzzy_strict+r.src_path+")",r}function PT(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function e5(e){return Object.prototype.toString.call(e)}function _0e(e){return e5(e)==="[object String]"}function N0e(e){return e5(e)==="[object Object]"}function F0e(e){return e5(e)==="[object RegExp]"}function j9(e){return e5(e)==="[object Function]"}function O0e(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const WO={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function M0e(e){return Object.keys(e||{}).reduce(function(r,n){return r||WO.hasOwnProperty(n)},!1)}const R0e={"http:":{validate:function(e,r,n){const i=e.slice(r);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(i)?i.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,r,n){const i=e.slice(r);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(i)?r>=3&&e[r-3]===":"||r>=3&&e[r-3]==="/"?0:i.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,r,n){const i=e.slice(r);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(i)?i.match(n.re.mailto)[0].length:0}}},B0e="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]",I0e="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function L0e(e){e.__index__=-1,e.__text_cache__=""}function z0e(e){return function(r,n){const i=r.slice(n);return e.test(i)?i.match(e)[0].length:0}}function G9(){return function(e,r){r.normalize(e)}}function p2(e){const r=e.re=C0e(e.__opts__),n=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||n.push(B0e),n.push(r.src_xn),r.src_tlds=n.join("|");function i(l){return l.replace("%TLDS%",r.src_tlds)}r.email_fuzzy=RegExp(i(r.tpl_email_fuzzy),"i"),r.link_fuzzy=RegExp(i(r.tpl_link_fuzzy),"i"),r.link_no_ip_fuzzy=RegExp(i(r.tpl_link_no_ip_fuzzy),"i"),r.host_fuzzy_test=RegExp(i(r.tpl_host_fuzzy_test),"i");const o=[];e.__compiled__={};function s(l,u){throw new Error('(LinkifyIt) Invalid schema "'+l+'": '+u)}Object.keys(e.__schemas__).forEach(function(l){const u=e.__schemas__[l];if(u===null)return;const c={validate:null,link:null};if(e.__compiled__[l]=c,N0e(u)){F0e(u.validate)?c.validate=z0e(u.validate):j9(u.validate)?c.validate=u.validate:s(l,u),j9(u.normalize)?c.normalize=u.normalize:u.normalize?s(l,u):c.normalize=G9();return}if(_0e(u)){o.push(l);return}s(l,u)}),o.forEach(function(l){e.__compiled__[e.__schemas__[l]]&&(e.__compiled__[l].validate=e.__compiled__[e.__schemas__[l]].validate,e.__compiled__[l].normalize=e.__compiled__[e.__schemas__[l]].normalize)}),e.__compiled__[""]={validate:null,normalize:G9()};const a=Object.keys(e.__compiled__).filter(function(l){return l.length>0&&e.__compiled__[l]}).map(O0e).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+r.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+r.src_ZPCc+"))("+a+")","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"),L0e(e)}function Y0e(e,r){const n=e.__index__,i=e.__last_index__,o=e.__text_cache__.slice(n,i);this.schema=e.__schema__.toLowerCase(),this.index=n+r,this.lastIndex=i+r,this.raw=o,this.text=o,this.url=o}function A6(e,r){const n=new Y0e(e,r);return e.__compiled__[n.schema].normalize(n,e),n}function Es(e,r){if(!(this instanceof Es))return new Es(e,r);r||M0e(e)&&(r=e,e={}),this.__opts__=PT({},WO,r),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=PT({},R0e,e),this.__compiled__={},this.__tlds__=I0e,this.__tlds_replaced__=!1,this.re={},p2(this)}Es.prototype.add=function(e,r){return this.__schemas__[e]=r,p2(this),this},Es.prototype.set=function(e){return this.__opts__=PT(this.__opts__,e),this},Es.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let r,n,i,o,s,a,l,u,c;if(this.re.schema_test.test(e)){for(l=this.re.schema_search,l.lastIndex=0;(r=l.exec(e))!==null;)if(o=this.testSchemaAt(e,r[2],l.lastIndex),o){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+o;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=e.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u=0&&(i=e.match(this.re.email_fuzzy))!==null&&(s=i.index+i[1].length,a=i.index+i[0].length,(this.__index__<0||sthis.__last_index__)&&(this.__schema__="mailto:",this.__index__=s,this.__last_index__=a))),this.__index__>=0},Es.prototype.pretest=function(e){return this.re.pretest.test(e)},Es.prototype.testSchemaAt=function(e,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(e,n,this):0},Es.prototype.match=function(e){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(r.push(A6(this,n)),n=this.__last_index__);let i=n?e.slice(n):e;for(;this.test(i);)r.push(A6(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null},Es.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const r=this.re.schema_at_start.exec(e);if(!r)return null;const n=this.testSchemaAt(e,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,A6(this,0)):null},Es.prototype.tlds=function(e,r){return e=Array.isArray(e)?e:[e],r?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(n,i,o){return n!==o[i-1]}).reverse(),p2(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,p2(this),this)},Es.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url="mailto:"+e.url)},Es.prototype.onCompile=function(){};const Ah=2147483647,ml=36,k7=1,Mf=26,H0e=38,P0e=700,KO=72,QO=128,JO="-",Z0e=/^xn--/,$0e=/[^\0-\x7F]/,U0e=/[\x2E\u3002\uFF0E\uFF61]/g,V0e={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E6=ml-k7,gl=Math.floor,w6=String.fromCharCode;function su(e){throw new RangeError(V0e[e])}function j0e(e,r){const n=[];let i=e.length;for(;i--;)n[i]=r(e[i]);return n}function XO(e,r){const n=e.split("@");let i="";n.length>1&&(i=n[0]+"@",e=n[1]),e=e.replace(U0e,".");const o=e.split("."),s=j0e(o,r).join(".");return i+s}function eM(e){const r=[];let n=0;const i=e.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...e),q0e=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:ml},q9=function(e,r){return e+22+75*(e<26)-((r!=0)<<5)},tM=function(e,r,n){let i=0;for(e=n?gl(e/P0e):e>>1,e+=gl(e/r);e>E6*Mf>>1;i+=ml)e=gl(e/E6);return gl(i+(E6+1)*e/(e+H0e))},rM=function(e){const r=[],n=e.length;let i=0,o=QO,s=KO,a=e.lastIndexOf(JO);a<0&&(a=0);for(let l=0;l=128&&su("not-basic"),r.push(e.charCodeAt(l));for(let l=a>0?a+1:0;l=n&&su("invalid-input");const p=q0e(e.charCodeAt(l++));p>=ml&&su("invalid-input"),p>gl((Ah-i)/d)&&su("overflow"),i+=p*d;const f=h<=s?k7:h>=s+Mf?Mf:h-s;if(pgl(Ah/m)&&su("overflow"),d*=m}const c=r.length+1;s=tM(i-u,c,u==0),gl(i/c)>Ah-o&&su("overflow"),o+=gl(i/c),i%=c,r.splice(i++,0,o)}return String.fromCodePoint(...r)},nM=function(e){const r=[];e=eM(e);const n=e.length;let i=QO,o=0,s=KO;for(const u of e)u<128&&r.push(w6(u));const a=r.length;let l=a;for(a&&r.push(JO);l=i&&dgl((Ah-o)/c)&&su("overflow"),o+=(u-i)*c,i=u;for(const d of e)if(dAh&&su("overflow"),d===i){let h=o;for(let p=ml;;p+=ml){const f=p<=s?k7:p>=s+Mf?Mf:p-s;if(h=0))try{r.hostname=iM.toASCII(r.hostname)}catch{}return _f(A7(r))}function oue(e){const r=E7(e,!0);if(r.hostname&&(!r.protocol||oM.indexOf(r.protocol)>=0))try{r.hostname=iM.toUnicode(r.hostname)}catch{}return Vh(A7(r),Vh.defaultChars+"%")}function ws(e,r){if(!(this instanceof ws))return new ws(e,r);r||S7(e)||(r=e||{},e="default"),this.inline=new T1,this.block=new h2,this.core=new HT,this.renderer=new Jd,this.linkify=new Es,this.validateLink=nue,this.normalizeLink=iue,this.normalizeLinkText=oue,this.utils=ule,this.helpers=J3({},ple),this.options={},this.configure(e),r&&this.set(r)}ws.prototype.set=function(e){return J3(this.options,e),this},ws.prototype.configure=function(e){const r=this;if(S7(e)){const n=e;if(e=eue[n],!e)throw new Error('Wrong `markdown-it` preset "'+n+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&r.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&r[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&r[n].ruler2.enableOnly(e.components[n].rules2)}),this},ws.prototype.enable=function(e,r){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const i=e.filter(function(o){return n.indexOf(o)<0});if(i.length&&!r)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+i);return this},ws.prototype.disable=function(e,r){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(o){n=n.concat(this[o].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const i=e.filter(function(o){return n.indexOf(o)<0});if(i.length&&!r)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+i);return this},ws.prototype.use=function(e){const r=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,r),this},ws.prototype.parse=function(e,r){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,r);return this.core.process(n),n.tokens},ws.prototype.render=function(e,r){return r=r||{},this.renderer.render(this.parse(e,r),this.options,r)},ws.prototype.parseInline=function(e,r){const n=new this.core.State(e,this,r);return n.inlineMode=!0,this.core.process(n),n.tokens},ws.prototype.renderInline=function(e,r){return r=r||{},this.renderer.render(this.parseInline(e,r),this.options,r)};var W9,K9;function sue(){return K9||(K9=1,W9=function(e,r){var n=3,i="-",o=i.charCodeAt(0),s=i.length;function a(l,u,c,d){var h,p,f,m,v,w,x,k=!1,R=l.bMarks[u]+l.tShift[u],O=l.eMarks[u];if(u!==0||o!==l.src.charCodeAt(0))return!1;for(h=R+1;h<=O;h++)if(i[(h-R)%s]!==l.src[h]){x=h+1;break}if(f=Math.floor((h-R)/s),f=c||l.src.slice(R,O)==="..."||(R=l.bMarks[p]+l.tShift[p],O=l.eMarks[p],R=4)){for(h=R+1;h<=O&&i[(h-R)%s]===l.src[h];h++);if(!(Math.floor((h-R)/s)n!==r)}function aM(e,r){e&&e.attrs&&(e.attrs=sM(e.attrs,r))}function uue(e,r){if(!Q9.has(e))throw new TypeError(`figcaption must be one of: ${[...Q9]}.`);if(e==="alt")return r.content;const n=r.attrs.find(([i])=>i==="title");return Array.isArray(n)&&n[1]?(aM(r,"title"),n[1]):void 0}function cue(e,r){r=r||{},e.core.ruler.before("linkify","image_figures",function(n){let i=1;for(let o=1,s=n.tokens.length;od.match(c)).map(d=>Array.from(d))}if(r.tabindex&&(n.tokens[o-1].attrPush(["tabindex",i]),i++),r.lazy&&(u.attrs.some(([c])=>c==="loading")||u.attrs.push(["loading","lazy"])),r.async&&(u.attrs.some(([c])=>c==="decoding")||u.attrs.push(["decoding","async"])),r.classes&&typeof r.classes=="string"){let c=!1;for(let d=0,h=u.attrs.length;dd==="src");u.attrs.push(["data-src",c[1]]),aM(u,"src")}}})}var S6,J9;function due(){if(J9)return S6;J9=1;function e(){this.__highest_alphabet__=0,this.__match_alphabets__={},this.__initial_state__=0,this.__accept_states__={},this.__transitions__={},this.__actions__={}}return e.prototype.set_highest_alphabet=function(r){this.__highest_alphabet__=r},e.prototype.set_match_alphabets=function(r){this.__match_alphabets__=r},e.prototype.set_initial_state=function(r){this.__initial_state__=r},e.prototype.set_accept_states=function(r){for(var n=0;n0&&!(i&s&&this.__match_alphabets__[s].call(this,o,i,s));s>>=4);if(this.__actions__(o,i,s),s===0)break;i=this.__transitions__[i][s]||0}return!!this.__accept_states__[i]},S6=e,S6}var D6,X9;function hue(){if(X9)return D6;X9=1;var e=due();return D6=function(r,n){var i={multiline:!1,rowspan:!1,headerless:!1,multibody:!0,autolabel:!0};n=r.utils.assign({},i,n||{});function o(d,h){var p=d.bMarks[h]+d.sCount[h],f=d.bMarks[h]+d.blkIndent,m=d.skipSpacesBack(d.eMarks[h],f),v=[],w,x,k=!1,R=!1,O=0;for(w=p;ww?(R||(O===0?O=x-w:O===x-w&&(O=0)),w=x):(R||!k&&!O)&&(R=!R),k=!1;break;case 124:!R&&!k&&v.push(w),k=!1;break;default:k=!1;break}return v.length===0||(v[0]>f&&v.unshift(f-1),v[v.length-1]=4||m.length===0)return!1;for(w=0;wp||(k=new d.Token("table_open","table",1),k.meta={sep:null,cap:null,tr:[]},m.set_highest_alphabet(65536),m.set_initial_state(65792),m.set_accept_states([65552,65553,0]),m.set_match_alphabets({65536:s.bind(this,d,!0),4096:l.bind(this,d,!0),256:a.bind(this,d,!0),16:a.bind(this,d,!0),1:u.bind(this,d,!0)}),m.set_transitions({65792:{65536:256,256:4352},256:{256:4352},4352:{4096:65552,256:4352},65552:{65536:0,16:65553},65553:{65536:0,16:65553,1:65552}}),n.headerless&&(m.set_initial_state(69888),m.update_transition(69888,{65536:4352,4096:65552,256:4352}),R=new d.Token("tr_placeholder","tr",0),R.meta=Object()),n.multibody||m.update_transition(65552,{65536:0,16:65552}),m.set_actions(function(ct,Ct,Ye){switch(Ye){case 65536:if(k.meta.cap)break;k.meta.cap=s(d,!1,ct),k.meta.cap.map=[ct,ct+1],k.meta.cap.first=ct===h;break;case 4096:k.meta.sep=l(d,!1,ct),k.meta.sep.map=[ct,ct+1],R.meta.grp|=1,v=16;break;case 256:case 16:R=new d.Token("tr_open","tr",1),R.map=[ct,ct+1],R.meta=a(d,!1,ct),R.meta.type=Ye,R.meta.grp=v,v=0,k.meta.tr.push(R),n.multiline&&(R.meta.multiline&&w<0?w=k.meta.tr.length-1:!R.meta.multiline&&w>=0&&(x=k.meta.tr[w],x.meta.mbounds=k.meta.tr.slice(w).map(function(Kt){return Kt.meta.bounds}),x.map[1]=R.map[1],k.meta.tr=k.meta.tr.slice(0,w+1),w=-1));break;case 1:R.meta.grp|=1,v=16;break}}),m.execute(h,p)===!1)||!k.meta.tr.length)return!1;if(f)return!0;if(k.meta.tr[k.meta.tr.length-1].meta.grp|=1,k.map=ie=[h,0],k.block=!0,k.level=d.level++,d.tokens.push(k),k.meta.cap){x=d.push("caption_open","caption",1),x.map=k.meta.cap.map;var Ve=[],it=k.meta.cap.first?"top":"bottom";k.meta.cap.label!==null&&Ve.push(["id",k.meta.cap.label]),it!=="top"&&Ve.push(["style","caption-side: "+it]),x.attrs=Ve,x=d.push("inline","",0),x.content=k.meta.cap.text,x.map=k.meta.cap.map,x.children=[],x=d.push("caption_close","caption",-1)}for(re=0;reR.meta.mbounds[ge].length-2||(he=[R.meta.mbounds[ge][Ee]+1,R.meta.mbounds[ge][Ee+1]],ne.push(d.src.slice.apply(d.src,he).trimRight()));for(Me=new d.md.block.State(ne.join(` `),d.md,d.env,[]),Me.level=R.level+1,d.md.block.tokenize(Me,R.map[0],Me.lineMax),Oe=0;Oe=m||(k=p.bMarks[W]+p.tShift[W],R=p.eMarks[W],k=4)){for(w=k+1;w<=R&&a[(w-k)%u]===p.src[w];w++);if(!(Math.floor((w-k)/u)(r,n,i,o,s)=>{const a=r[n];return a.nesting===1&&(a.attrSet("data-callout",e),a.attrJoin("class",`callout callout-${e}`)),s.renderToken(r,n,i,o,s)},yue=e=>(ZT.forEach(r=>{e.use(mue,r,{render:gue(r)})}),e),ew=/^
\s*$/,Tue=/(?<=^
\s*).*(?=<\/summary>\s*$)/,bue=/^<\/details>\s*$/,vue=/(?<=^).*(?=<\/summary>\s*$)/;function Aue(e,r,n,i){let o=e.bMarks[r]+e.tShift[r],s=e.eMarks[r],a=!1,l=null,u=2;const c=e.src.slice(o,s).match(Tue);if(c)l=c[0].trim(),u=1;else if(!e.src.slice(o,s).match(ew))return!1;if(i)return!0;let d=0,h=r;for(;h++,!(h>=n);){o=e.bMarks[h]+e.tShift[h],s=e.eMarks[h];const w=e.src.slice(o,s).match(vue);if(w&&l===null){l=w[0].trim();continue}if(e.src.slice(o,s).match(ew)&&d++,!!e.src.slice(o,s).match(bue))if(d>0)d--;else{a=!0;break}}if(!a||l===null)return!1;const p=e.parentType,f=e.lineMax;e.parentType="reference",e.lineMax=h;let m=e.push("details_open","details",1);m.block=!0,m.info=l,m.map=[r,h],m=e.push("details_summary","summary",1),m.block=!1;const v=[];e.md.inline.parse(l,e.md,e.env,v);for(const w of v)m=e.push(w.type,w.tag,w.nesting),m.block=w.block,m.markup=w.markup,m.content=w.content;return m=e.push("details_summary","summary",-1),e.md.block.tokenize(e,r+u,h),m=e.push("details_close","details",-1),m.block=!0,e.parentType=p,e.lineMax=f,e.line=h+1,!0}function Eue(e){e.block.ruler.before("fence","details",Aue,{alt:["paragraph","reference","blockquote","list"]})}function wue(e){e.inline.ruler.at("newline",(r,n)=>{const i=VO(r,n);return i&&r.tokens.length&&r.tokens[r.tokens.length-1].type==="hardbreak"&&r.tokens[r.tokens.length-1].attrSet("syntax"," "),i}),e.inline.ruler.at("escape",(r,n)=>{const i=jO(r,n);return i&&r.tokens.length&&r.tokens[r.tokens.length-1].type==="hardbreak"&&r.tokens[r.tokens.length-1].attrSet("syntax","\\"),i}),e.inline.ruler.after("html_inline","html_breaks",r=>{const n=r.src.slice(r.pos).match(/^\s*/);return n?(r.push("hardbreak","br",0).attrPush(["syntax","html"]),r.pos+=n[0].length,!0):!1}),e.renderer.rules.hardbreak=(r,n,i)=>`
`}function Sue(e){const r=/(\n(?[#\-*+>])|(?[`*\\~[\]]+))/;e.core.ruler.before("text_join","tag-markdown-syntax",n=>{const i=new n.Token("keep_md_open","span",1);i.attrSet("class","keep-md");const o=new n.Token("keep_md_close","span",-1);for(let s=0;s15?Te="…"+H.slice(C-15,C):Te=H.slice(0,C);var ve;K+15":">","<":"<",'"':""","'":"'"},m=/[&><"']/g;function v(g){return String(g).replace(m,function(T){return f[T]})}var w=function g(T){return T.type==="ordgroup"||T.type==="color"?T.body.length===1?g(T.body[0]):T:T.type==="font"?g(T.body):T},x=function(g){var T=w(g);return T.type==="mathord"||T.type==="textord"||T.type==="atom"},k=function(g){if(!g)throw new Error("Expected non-null, but got "+String(g));return g},R=function(g){var T=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(g);return T!=null?T[1]:"_relative"},O={contains:c,deflt:d,escape:v,hyphenate:p,getBaseElem:w,isCharacterBox:x,protocolFromUrl:R},P=(function(){function g(b){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,b=b||{},this.displayMode=O.deflt(b.displayMode,!1),this.output=O.deflt(b.output,"htmlAndMathml"),this.leqno=O.deflt(b.leqno,!1),this.fleqn=O.deflt(b.fleqn,!1),this.throwOnError=O.deflt(b.throwOnError,!0),this.errorColor=O.deflt(b.errorColor,"#cc0000"),this.macros=b.macros||{},this.minRuleThickness=Math.max(0,O.deflt(b.minRuleThickness,0)),this.colorIsTextColor=O.deflt(b.colorIsTextColor,!1),this.strict=O.deflt(b.strict,"warn"),this.trust=O.deflt(b.trust,!1),this.maxSize=Math.max(0,O.deflt(b.maxSize,1/0)),this.maxExpand=Math.max(0,O.deflt(b.maxExpand,1e3)),this.globalGroup=O.deflt(b.globalGroup,!1)}var T=g.prototype;return T.reportNonstrict=function(b,A,C){var L=this.strict;if(typeof L=="function"&&(L=L(b,A,C)),!(!L||L==="ignore")){if(L===!0||L==="error")throw new u("LaTeX-incompatible input and strict mode is set to 'error': "+(A+" ["+b+"]"),C);L==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(A+" ["+b+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+L+"': "+A+" ["+b+"]"))}},T.useStrictBehavior=function(b,A,C){var L=this.strict;if(typeof L=="function")try{L=L(b,A,C)}catch{L="error"}return!L||L==="ignore"?!1:L===!0||L==="error"?!0:L==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(A+" ["+b+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+L+"': "+A+" ["+b+"]")),!1)},T.isTrusted=function(b){b.url&&!b.protocol&&(b.protocol=O.protocolFromUrl(b.url));var A=typeof this.trust=="function"?this.trust(b):this.trust;return!!A},g})(),V=(function(){function g(b,A,C){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=b,this.size=A,this.cramped=C}var T=g.prototype;return T.sup=function(){return ge[Oe[this.id]]},T.sub=function(){return ge[Me[this.id]]},T.fracNum=function(){return ge[Ve[this.id]]},T.fracDen=function(){return ge[it[this.id]]},T.cramp=function(){return ge[ct[this.id]]},T.text=function(){return ge[Ct[this.id]]},T.isTight=function(){return this.size>=2},g})(),W=0,ie=1,ue=2,I=3,ne=4,he=5,re=6,Ee=7,ge=[new V(W,0,!1),new V(ie,0,!0),new V(ue,1,!1),new V(I,1,!0),new V(ne,2,!1),new V(he,2,!0),new V(re,3,!1),new V(Ee,3,!0)],Oe=[ne,he,ne,he,re,Ee,re,Ee],Me=[he,he,he,he,Ee,Ee,Ee,Ee],Ve=[ue,I,ne,he,re,Ee,re,Ee],it=[I,I,he,he,Ee,Ee,Ee,Ee],ct=[ie,ie,I,I,he,he,Ee,Ee],Ct=[W,ie,ue,I,ue,I,ue,I],Ye={DISPLAY:ge[W],TEXT:ge[ue],SCRIPT:ge[ne],SCRIPTSCRIPT:ge[re]},Kt=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{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 Vt(g){for(var T=0;T=C[0]&&g<=C[1])return b.name}return null}var Ot=[];Kt.forEach(function(g){return g.blocks.forEach(function(T){return Ot.push.apply(Ot,T)})});function jt(g){for(var T=0;T=Ot[T]&&g<=Ot[T+1])return!0;return!1}var _t=80,Fr=function(g,T){return"M95,"+(622+g+T)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 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 s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 c69,-144,104.5,-217.7,106.5,-221 l`+g/2.075+" -"+g+` c5.3,-9.3,12,-14,20,-14 H400000v`+(40+g)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M`+(834+g)+" "+T+"h400000v"+(40+g)+"h-400000z"},jr=function(g,T){return"M263,"+(601+g+T)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+g/2.084+" -"+g+` c4.7,-7.3,11,-11,19,-11 H40000v`+(40+g)+`H1012.3 s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 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 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M`+(1001+g)+" "+T+"h400000v"+(40+g)+"h-400000z"},pt=function(g,T){return"M983 "+(10+g+T)+` l`+g/3.13+" -"+g+` c4,-6.7,10,-10,18,-10 H400000v`+(40+g)+` 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 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 c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M`+(1001+g)+" "+T+"h400000v"+(40+g)+"h-400000z"},nr=function(g,T){return"M424,"+(2398+g+T)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 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 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 l`+g/4.223+" -"+g+`c4,-6.7,10,-10,18,-10 H400000 v`+(40+g)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+g)+" "+T+` h400000v`+(40+g)+"h-400000z"},Yt=function(g,T){return"M473,"+(2713+g+T)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+g/5.298+" -"+g+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+g)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 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 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 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM`+(1001+g)+" "+T+"h400000v"+(40+g)+"H1017.7z"},vr=function(g,T,b){var A=b-54-T-g;return"M702 "+(g+T)+"H400000"+(40+g)+` H742v`+A+`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 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 `+T+"H400000v"+(40+g)+"H742z"},Gr=function(g,T,b){T=1e3*T;var A="";switch(g){case"sqrtMain":A=Fr(T,_t);break;case"sqrtSize1":A=jr(T,_t);break;case"sqrtSize2":A=pt(T,_t);break;case"sqrtSize3":A=nr(T,_t);break;case"sqrtSize4":A=Yt(T,_t);break;case"sqrtTall":A=vr(T,_t,b)}return A},An={leftParenInner:"M291 0 H417 V300 H291 z",rightParenInner:"M457 0 H583 V300 H457 z",doubleleftarrow:`M262 157 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 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 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 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 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 -86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 -2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l -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 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 -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 -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 -13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 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 -107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 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 -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 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 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 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 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 -45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 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 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 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 -331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 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 435 0h399565z`,leftgroupunder:`M400000 262 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 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 -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 -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 -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 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 -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 -10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 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 -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 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 -2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 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 -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 -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 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 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-70-101l-7-8h399905v-40H95l7-8 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 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 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 -53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 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 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 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 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 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 -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 -320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z 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 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 -451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 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 -480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z 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 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 -707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 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 -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 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 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 -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 -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 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l -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 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 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 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 -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 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 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 -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 -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 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 -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 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 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 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 -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 -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 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 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 -64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z 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 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 -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 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 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 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 -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 -167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 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 -70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 -40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 -37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 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 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 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 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 -19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 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 -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 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 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 -68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 -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 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 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 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 -11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 -11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 -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 3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 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 -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 -7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 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 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 -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 -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 -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, -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, -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, -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, -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 c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 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 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 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 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 c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-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 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 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-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 -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 151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 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 c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 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, -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 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 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 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, 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, -152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z 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 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, -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 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 M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Ft=(function(){function g(b){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=b,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var T=g.prototype;return T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){for(var b=document.createDocumentFragment(),A=0;A",T},dt=(function(){function g(b,A,C,L){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,ye.call(this,b,C,L),this.children=A||[]}var T=g.prototype;return T.setAttribute=function(b,A){this.attributes[b]=A},T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){return se.call(this,"span")},T.toMarkup=function(){return Pe.call(this,"span")},g})(),ut=(function(){function g(b,A,C,L){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,ye.call(this,A,L),this.children=C||[],this.setAttribute("href",b)}var T=g.prototype;return T.setAttribute=function(b,A){this.attributes[b]=A},T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){return se.call(this,"a")},T.toMarkup=function(){return Pe.call(this,"a")},g})(),Be=(function(){function g(b,A,C){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=A,this.src=b,this.classes=["mord"],this.style=C}var T=g.prototype;return T.hasClass=function(b){return O.contains(this.classes,b)},T.toNode=function(){var b=document.createElement("img");b.src=this.src,b.alt=this.alt,b.className="mord";for(var A in this.style)this.style.hasOwnProperty(A)&&(b.style[A]=this.style[A]);return b},T.toMarkup=function(){var b=""+this.alt+"0&&(A=document.createElement("span"),A.style.marginRight=this.italic+"em"),this.classes.length>0&&(A=A||document.createElement("span"),A.className=ee(this.classes));for(var C in this.style)this.style.hasOwnProperty(C)&&(A=A||document.createElement("span"),A.style[C]=this.style[C]);return A?(A.appendChild(b),A):b},T.toMarkup=function(){var b=!1,A="0&&(C+="margin-right:"+this.italic+"em;");for(var L in this.style)this.style.hasOwnProperty(L)&&(C+=O.hyphenate(L)+":"+this.style[L]+";");C&&(b=!0,A+=' style="'+O.escape(C)+'"');var H=O.escape(this.text);return b?(A+=">",A+=H,A+="",A):H},g})(),We=(function(){function g(b,A){this.children=void 0,this.attributes=void 0,this.children=b||[],this.attributes=A||{}}var T=g.prototype;return T.toNode=function(){var b="http://www.w3.org/2000/svg",A=document.createElementNS(b,"svg");for(var C in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,C)&&A.setAttribute(C,this.attributes[C]);for(var L=0;L":""},g})(),kr=(function(){function g(b){this.attributes=void 0,this.attributes=b||{}}var T=g.prototype;return T.toNode=function(){var b="http://www.w3.org/2000/svg",A=document.createElementNS(b,"line");for(var C in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,C)&&A.setAttribute(C,this.attributes[C]);return A},T.toMarkup=function(){var b=" but got "+String(g)+".")}var wi={"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,.12,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,.67,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,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,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,.744,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,.744,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]}},ls={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]},Wn={Å:"A",Ç:"C",Ð:"D",Þ:"o",å:"a",ç:"c",ð:"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 Re(g,T){wi[g]=T}function vt(g,T,b){if(!wi[T])throw new Error("Font metrics not found for font: "+T+".");var A=g.charCodeAt(0),C=wi[T][A];if(!C&&g[0]in Wn&&(A=Wn[g[0]].charCodeAt(0),C=wi[T][A]),!C&&b==="text"&&jt(A)&&(C=wi[T][77]),C)return{depth:C[0],height:C[1],italic:C[2],skew:C[3],width:C[4]}}var Mt={};function mr(g){var T;if(g>=5?T=0:g>=3?T=1:T=2,!Mt[T]){var b=Mt[T]={cssEmPerMu:ls.quad[T]/18};for(var A in ls)ls.hasOwnProperty(A)&&(b[A]=ls[A][T])}return Mt[T]}var ur={bin:1,close:1,inner:1,open:1,punct:1,rel:1},On={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Mn={math:{},text:{}},Dr=Mn;function _(g,T,b,A,C,L){Mn[g][C]={font:T,group:b,replace:A},L&&A&&(Mn[g][A]=Mn[g][C])}var D="math",pe="text",z="main",J="ams",Zt="accent-token",je="bin",ft="close",bt="inner",Ge="mathord",sr="op-token",yr="open",Mr="punct",ae="rel",Rr="spacing",be="textord";_(D,z,ae,"≡","\\equiv",!0),_(D,z,ae,"≺","\\prec",!0),_(D,z,ae,"≻","\\succ",!0),_(D,z,ae,"∼","\\sim",!0),_(D,z,ae,"⊥","\\perp"),_(D,z,ae,"⪯","\\preceq",!0),_(D,z,ae,"⪰","\\succeq",!0),_(D,z,ae,"≃","\\simeq",!0),_(D,z,ae,"∣","\\mid",!0),_(D,z,ae,"≪","\\ll",!0),_(D,z,ae,"≫","\\gg",!0),_(D,z,ae,"≍","\\asymp",!0),_(D,z,ae,"∥","\\parallel"),_(D,z,ae,"⋈","\\bowtie",!0),_(D,z,ae,"⌣","\\smile",!0),_(D,z,ae,"⊑","\\sqsubseteq",!0),_(D,z,ae,"⊒","\\sqsupseteq",!0),_(D,z,ae,"≐","\\doteq",!0),_(D,z,ae,"⌢","\\frown",!0),_(D,z,ae,"∋","\\ni",!0),_(D,z,ae,"∝","\\propto",!0),_(D,z,ae,"⊢","\\vdash",!0),_(D,z,ae,"⊣","\\dashv",!0),_(D,z,ae,"∋","\\owns"),_(D,z,Mr,".","\\ldotp"),_(D,z,Mr,"⋅","\\cdotp"),_(D,z,be,"#","\\#"),_(pe,z,be,"#","\\#"),_(D,z,be,"&","\\&"),_(pe,z,be,"&","\\&"),_(D,z,be,"ℵ","\\aleph",!0),_(D,z,be,"∀","\\forall",!0),_(D,z,be,"ℏ","\\hbar",!0),_(D,z,be,"∃","\\exists",!0),_(D,z,be,"∇","\\nabla",!0),_(D,z,be,"♭","\\flat",!0),_(D,z,be,"ℓ","\\ell",!0),_(D,z,be,"♮","\\natural",!0),_(D,z,be,"♣","\\clubsuit",!0),_(D,z,be,"℘","\\wp",!0),_(D,z,be,"♯","\\sharp",!0),_(D,z,be,"♢","\\diamondsuit",!0),_(D,z,be,"ℜ","\\Re",!0),_(D,z,be,"♡","\\heartsuit",!0),_(D,z,be,"ℑ","\\Im",!0),_(D,z,be,"♠","\\spadesuit",!0),_(pe,z,be,"§","\\S",!0),_(pe,z,be,"¶","\\P",!0),_(D,z,be,"†","\\dag"),_(pe,z,be,"†","\\dag"),_(pe,z,be,"†","\\textdagger"),_(D,z,be,"‡","\\ddag"),_(pe,z,be,"‡","\\ddag"),_(pe,z,be,"‡","\\textdaggerdbl"),_(D,z,ft,"⎱","\\rmoustache",!0),_(D,z,yr,"⎰","\\lmoustache",!0),_(D,z,ft,"⟯","\\rgroup",!0),_(D,z,yr,"⟮","\\lgroup",!0),_(D,z,je,"∓","\\mp",!0),_(D,z,je,"⊖","\\ominus",!0),_(D,z,je,"⊎","\\uplus",!0),_(D,z,je,"⊓","\\sqcap",!0),_(D,z,je,"∗","\\ast"),_(D,z,je,"⊔","\\sqcup",!0),_(D,z,je,"◯","\\bigcirc"),_(D,z,je,"∙","\\bullet"),_(D,z,je,"‡","\\ddagger"),_(D,z,je,"≀","\\wr",!0),_(D,z,je,"⨿","\\amalg"),_(D,z,je,"&","\\And"),_(D,z,ae,"⟵","\\longleftarrow",!0),_(D,z,ae,"⇐","\\Leftarrow",!0),_(D,z,ae,"⟸","\\Longleftarrow",!0),_(D,z,ae,"⟶","\\longrightarrow",!0),_(D,z,ae,"⇒","\\Rightarrow",!0),_(D,z,ae,"⟹","\\Longrightarrow",!0),_(D,z,ae,"↔","\\leftrightarrow",!0),_(D,z,ae,"⟷","\\longleftrightarrow",!0),_(D,z,ae,"⇔","\\Leftrightarrow",!0),_(D,z,ae,"⟺","\\Longleftrightarrow",!0),_(D,z,ae,"↦","\\mapsto",!0),_(D,z,ae,"⟼","\\longmapsto",!0),_(D,z,ae,"↗","\\nearrow",!0),_(D,z,ae,"↩","\\hookleftarrow",!0),_(D,z,ae,"↪","\\hookrightarrow",!0),_(D,z,ae,"↘","\\searrow",!0),_(D,z,ae,"↼","\\leftharpoonup",!0),_(D,z,ae,"⇀","\\rightharpoonup",!0),_(D,z,ae,"↙","\\swarrow",!0),_(D,z,ae,"↽","\\leftharpoondown",!0),_(D,z,ae,"⇁","\\rightharpoondown",!0),_(D,z,ae,"↖","\\nwarrow",!0),_(D,z,ae,"⇌","\\rightleftharpoons",!0),_(D,J,ae,"≮","\\nless",!0),_(D,J,ae,"","\\@nleqslant"),_(D,J,ae,"","\\@nleqq"),_(D,J,ae,"⪇","\\lneq",!0),_(D,J,ae,"≨","\\lneqq",!0),_(D,J,ae,"","\\@lvertneqq"),_(D,J,ae,"⋦","\\lnsim",!0),_(D,J,ae,"⪉","\\lnapprox",!0),_(D,J,ae,"⊀","\\nprec",!0),_(D,J,ae,"⋠","\\npreceq",!0),_(D,J,ae,"⋨","\\precnsim",!0),_(D,J,ae,"⪹","\\precnapprox",!0),_(D,J,ae,"≁","\\nsim",!0),_(D,J,ae,"","\\@nshortmid"),_(D,J,ae,"∤","\\nmid",!0),_(D,J,ae,"⊬","\\nvdash",!0),_(D,J,ae,"⊭","\\nvDash",!0),_(D,J,ae,"⋪","\\ntriangleleft"),_(D,J,ae,"⋬","\\ntrianglelefteq",!0),_(D,J,ae,"⊊","\\subsetneq",!0),_(D,J,ae,"","\\@varsubsetneq"),_(D,J,ae,"⫋","\\subsetneqq",!0),_(D,J,ae,"","\\@varsubsetneqq"),_(D,J,ae,"≯","\\ngtr",!0),_(D,J,ae,"","\\@ngeqslant"),_(D,J,ae,"","\\@ngeqq"),_(D,J,ae,"⪈","\\gneq",!0),_(D,J,ae,"≩","\\gneqq",!0),_(D,J,ae,"","\\@gvertneqq"),_(D,J,ae,"⋧","\\gnsim",!0),_(D,J,ae,"⪊","\\gnapprox",!0),_(D,J,ae,"⊁","\\nsucc",!0),_(D,J,ae,"⋡","\\nsucceq",!0),_(D,J,ae,"⋩","\\succnsim",!0),_(D,J,ae,"⪺","\\succnapprox",!0),_(D,J,ae,"≆","\\ncong",!0),_(D,J,ae,"","\\@nshortparallel"),_(D,J,ae,"∦","\\nparallel",!0),_(D,J,ae,"⊯","\\nVDash",!0),_(D,J,ae,"⋫","\\ntriangleright"),_(D,J,ae,"⋭","\\ntrianglerighteq",!0),_(D,J,ae,"","\\@nsupseteqq"),_(D,J,ae,"⊋","\\supsetneq",!0),_(D,J,ae,"","\\@varsupsetneq"),_(D,J,ae,"⫌","\\supsetneqq",!0),_(D,J,ae,"","\\@varsupsetneqq"),_(D,J,ae,"⊮","\\nVdash",!0),_(D,J,ae,"⪵","\\precneqq",!0),_(D,J,ae,"⪶","\\succneqq",!0),_(D,J,ae,"","\\@nsubseteqq"),_(D,J,je,"⊴","\\unlhd"),_(D,J,je,"⊵","\\unrhd"),_(D,J,ae,"↚","\\nleftarrow",!0),_(D,J,ae,"↛","\\nrightarrow",!0),_(D,J,ae,"⇍","\\nLeftarrow",!0),_(D,J,ae,"⇏","\\nRightarrow",!0),_(D,J,ae,"↮","\\nleftrightarrow",!0),_(D,J,ae,"⇎","\\nLeftrightarrow",!0),_(D,J,ae,"△","\\vartriangle"),_(D,J,be,"ℏ","\\hslash"),_(D,J,be,"▽","\\triangledown"),_(D,J,be,"◊","\\lozenge"),_(D,J,be,"Ⓢ","\\circledS"),_(D,J,be,"®","\\circledR"),_(pe,J,be,"®","\\circledR"),_(D,J,be,"∡","\\measuredangle",!0),_(D,J,be,"∄","\\nexists"),_(D,J,be,"℧","\\mho"),_(D,J,be,"Ⅎ","\\Finv",!0),_(D,J,be,"⅁","\\Game",!0),_(D,J,be,"‵","\\backprime"),_(D,J,be,"▲","\\blacktriangle"),_(D,J,be,"▼","\\blacktriangledown"),_(D,J,be,"■","\\blacksquare"),_(D,J,be,"⧫","\\blacklozenge"),_(D,J,be,"★","\\bigstar"),_(D,J,be,"∢","\\sphericalangle",!0),_(D,J,be,"∁","\\complement",!0),_(D,J,be,"ð","\\eth",!0),_(pe,z,be,"ð","ð"),_(D,J,be,"╱","\\diagup"),_(D,J,be,"╲","\\diagdown"),_(D,J,be,"□","\\square"),_(D,J,be,"□","\\Box"),_(D,J,be,"◊","\\Diamond"),_(D,J,be,"¥","\\yen",!0),_(pe,J,be,"¥","\\yen",!0),_(D,J,be,"✓","\\checkmark",!0),_(pe,J,be,"✓","\\checkmark"),_(D,J,be,"ℶ","\\beth",!0),_(D,J,be,"ℸ","\\daleth",!0),_(D,J,be,"ℷ","\\gimel",!0),_(D,J,be,"ϝ","\\digamma",!0),_(D,J,be,"ϰ","\\varkappa"),_(D,J,yr,"┌","\\@ulcorner",!0),_(D,J,ft,"┐","\\@urcorner",!0),_(D,J,yr,"└","\\@llcorner",!0),_(D,J,ft,"┘","\\@lrcorner",!0),_(D,J,ae,"≦","\\leqq",!0),_(D,J,ae,"⩽","\\leqslant",!0),_(D,J,ae,"⪕","\\eqslantless",!0),_(D,J,ae,"≲","\\lesssim",!0),_(D,J,ae,"⪅","\\lessapprox",!0),_(D,J,ae,"≊","\\approxeq",!0),_(D,J,je,"⋖","\\lessdot"),_(D,J,ae,"⋘","\\lll",!0),_(D,J,ae,"≶","\\lessgtr",!0),_(D,J,ae,"⋚","\\lesseqgtr",!0),_(D,J,ae,"⪋","\\lesseqqgtr",!0),_(D,J,ae,"≑","\\doteqdot"),_(D,J,ae,"≓","\\risingdotseq",!0),_(D,J,ae,"≒","\\fallingdotseq",!0),_(D,J,ae,"∽","\\backsim",!0),_(D,J,ae,"⋍","\\backsimeq",!0),_(D,J,ae,"⫅","\\subseteqq",!0),_(D,J,ae,"⋐","\\Subset",!0),_(D,J,ae,"⊏","\\sqsubset",!0),_(D,J,ae,"≼","\\preccurlyeq",!0),_(D,J,ae,"⋞","\\curlyeqprec",!0),_(D,J,ae,"≾","\\precsim",!0),_(D,J,ae,"⪷","\\precapprox",!0),_(D,J,ae,"⊲","\\vartriangleleft"),_(D,J,ae,"⊴","\\trianglelefteq"),_(D,J,ae,"⊨","\\vDash",!0),_(D,J,ae,"⊪","\\Vvdash",!0),_(D,J,ae,"⌣","\\smallsmile"),_(D,J,ae,"⌢","\\smallfrown"),_(D,J,ae,"≏","\\bumpeq",!0),_(D,J,ae,"≎","\\Bumpeq",!0),_(D,J,ae,"≧","\\geqq",!0),_(D,J,ae,"⩾","\\geqslant",!0),_(D,J,ae,"⪖","\\eqslantgtr",!0),_(D,J,ae,"≳","\\gtrsim",!0),_(D,J,ae,"⪆","\\gtrapprox",!0),_(D,J,je,"⋗","\\gtrdot"),_(D,J,ae,"⋙","\\ggg",!0),_(D,J,ae,"≷","\\gtrless",!0),_(D,J,ae,"⋛","\\gtreqless",!0),_(D,J,ae,"⪌","\\gtreqqless",!0),_(D,J,ae,"≖","\\eqcirc",!0),_(D,J,ae,"≗","\\circeq",!0),_(D,J,ae,"≜","\\triangleq",!0),_(D,J,ae,"∼","\\thicksim"),_(D,J,ae,"≈","\\thickapprox"),_(D,J,ae,"⫆","\\supseteqq",!0),_(D,J,ae,"⋑","\\Supset",!0),_(D,J,ae,"⊐","\\sqsupset",!0),_(D,J,ae,"≽","\\succcurlyeq",!0),_(D,J,ae,"⋟","\\curlyeqsucc",!0),_(D,J,ae,"≿","\\succsim",!0),_(D,J,ae,"⪸","\\succapprox",!0),_(D,J,ae,"⊳","\\vartriangleright"),_(D,J,ae,"⊵","\\trianglerighteq"),_(D,J,ae,"⊩","\\Vdash",!0),_(D,J,ae,"∣","\\shortmid"),_(D,J,ae,"∥","\\shortparallel"),_(D,J,ae,"≬","\\between",!0),_(D,J,ae,"⋔","\\pitchfork",!0),_(D,J,ae,"∝","\\varpropto"),_(D,J,ae,"◀","\\blacktriangleleft"),_(D,J,ae,"∴","\\therefore",!0),_(D,J,ae,"∍","\\backepsilon"),_(D,J,ae,"▶","\\blacktriangleright"),_(D,J,ae,"∵","\\because",!0),_(D,J,ae,"⋘","\\llless"),_(D,J,ae,"⋙","\\gggtr"),_(D,J,je,"⊲","\\lhd"),_(D,J,je,"⊳","\\rhd"),_(D,J,ae,"≂","\\eqsim",!0),_(D,z,ae,"⋈","\\Join"),_(D,J,ae,"≑","\\Doteq",!0),_(D,J,je,"∔","\\dotplus",!0),_(D,J,je,"∖","\\smallsetminus"),_(D,J,je,"⋒","\\Cap",!0),_(D,J,je,"⋓","\\Cup",!0),_(D,J,je,"⩞","\\doublebarwedge",!0),_(D,J,je,"⊟","\\boxminus",!0),_(D,J,je,"⊞","\\boxplus",!0),_(D,J,je,"⋇","\\divideontimes",!0),_(D,J,je,"⋉","\\ltimes",!0),_(D,J,je,"⋊","\\rtimes",!0),_(D,J,je,"⋋","\\leftthreetimes",!0),_(D,J,je,"⋌","\\rightthreetimes",!0),_(D,J,je,"⋏","\\curlywedge",!0),_(D,J,je,"⋎","\\curlyvee",!0),_(D,J,je,"⊝","\\circleddash",!0),_(D,J,je,"⊛","\\circledast",!0),_(D,J,je,"⋅","\\centerdot"),_(D,J,je,"⊺","\\intercal",!0),_(D,J,je,"⋒","\\doublecap"),_(D,J,je,"⋓","\\doublecup"),_(D,J,je,"⊠","\\boxtimes",!0),_(D,J,ae,"⇢","\\dashrightarrow",!0),_(D,J,ae,"⇠","\\dashleftarrow",!0),_(D,J,ae,"⇇","\\leftleftarrows",!0),_(D,J,ae,"⇆","\\leftrightarrows",!0),_(D,J,ae,"⇚","\\Lleftarrow",!0),_(D,J,ae,"↞","\\twoheadleftarrow",!0),_(D,J,ae,"↢","\\leftarrowtail",!0),_(D,J,ae,"↫","\\looparrowleft",!0),_(D,J,ae,"⇋","\\leftrightharpoons",!0),_(D,J,ae,"↶","\\curvearrowleft",!0),_(D,J,ae,"↺","\\circlearrowleft",!0),_(D,J,ae,"↰","\\Lsh",!0),_(D,J,ae,"⇈","\\upuparrows",!0),_(D,J,ae,"↿","\\upharpoonleft",!0),_(D,J,ae,"⇃","\\downharpoonleft",!0),_(D,J,ae,"⊸","\\multimap",!0),_(D,J,ae,"↭","\\leftrightsquigarrow",!0),_(D,J,ae,"⇉","\\rightrightarrows",!0),_(D,J,ae,"⇄","\\rightleftarrows",!0),_(D,J,ae,"↠","\\twoheadrightarrow",!0),_(D,J,ae,"↣","\\rightarrowtail",!0),_(D,J,ae,"↬","\\looparrowright",!0),_(D,J,ae,"↷","\\curvearrowright",!0),_(D,J,ae,"↻","\\circlearrowright",!0),_(D,J,ae,"↱","\\Rsh",!0),_(D,J,ae,"⇊","\\downdownarrows",!0),_(D,J,ae,"↾","\\upharpoonright",!0),_(D,J,ae,"⇂","\\downharpoonright",!0),_(D,J,ae,"⇝","\\rightsquigarrow",!0),_(D,J,ae,"⇝","\\leadsto"),_(D,J,ae,"⇛","\\Rrightarrow",!0),_(D,J,ae,"↾","\\restriction"),_(D,z,be,"‘","`"),_(D,z,be,"$","\\$"),_(pe,z,be,"$","\\$"),_(pe,z,be,"$","\\textdollar"),_(D,z,be,"%","\\%"),_(pe,z,be,"%","\\%"),_(D,z,be,"_","\\_"),_(pe,z,be,"_","\\_"),_(pe,z,be,"_","\\textunderscore"),_(D,z,be,"∠","\\angle",!0),_(D,z,be,"∞","\\infty",!0),_(D,z,be,"′","\\prime"),_(D,z,be,"△","\\triangle"),_(D,z,be,"Γ","\\Gamma",!0),_(D,z,be,"Δ","\\Delta",!0),_(D,z,be,"Θ","\\Theta",!0),_(D,z,be,"Λ","\\Lambda",!0),_(D,z,be,"Ξ","\\Xi",!0),_(D,z,be,"Π","\\Pi",!0),_(D,z,be,"Σ","\\Sigma",!0),_(D,z,be,"Υ","\\Upsilon",!0),_(D,z,be,"Φ","\\Phi",!0),_(D,z,be,"Ψ","\\Psi",!0),_(D,z,be,"Ω","\\Omega",!0),_(D,z,be,"A","Α"),_(D,z,be,"B","Β"),_(D,z,be,"E","Ε"),_(D,z,be,"Z","Ζ"),_(D,z,be,"H","Η"),_(D,z,be,"I","Ι"),_(D,z,be,"K","Κ"),_(D,z,be,"M","Μ"),_(D,z,be,"N","Ν"),_(D,z,be,"O","Ο"),_(D,z,be,"P","Ρ"),_(D,z,be,"T","Τ"),_(D,z,be,"X","Χ"),_(D,z,be,"¬","\\neg",!0),_(D,z,be,"¬","\\lnot"),_(D,z,be,"⊤","\\top"),_(D,z,be,"⊥","\\bot"),_(D,z,be,"∅","\\emptyset"),_(D,J,be,"∅","\\varnothing"),_(D,z,Ge,"α","\\alpha",!0),_(D,z,Ge,"β","\\beta",!0),_(D,z,Ge,"γ","\\gamma",!0),_(D,z,Ge,"δ","\\delta",!0),_(D,z,Ge,"ϵ","\\epsilon",!0),_(D,z,Ge,"ζ","\\zeta",!0),_(D,z,Ge,"η","\\eta",!0),_(D,z,Ge,"θ","\\theta",!0),_(D,z,Ge,"ι","\\iota",!0),_(D,z,Ge,"κ","\\kappa",!0),_(D,z,Ge,"λ","\\lambda",!0),_(D,z,Ge,"μ","\\mu",!0),_(D,z,Ge,"ν","\\nu",!0),_(D,z,Ge,"ξ","\\xi",!0),_(D,z,Ge,"ο","\\omicron",!0),_(D,z,Ge,"π","\\pi",!0),_(D,z,Ge,"ρ","\\rho",!0),_(D,z,Ge,"σ","\\sigma",!0),_(D,z,Ge,"τ","\\tau",!0),_(D,z,Ge,"υ","\\upsilon",!0),_(D,z,Ge,"ϕ","\\phi",!0),_(D,z,Ge,"χ","\\chi",!0),_(D,z,Ge,"ψ","\\psi",!0),_(D,z,Ge,"ω","\\omega",!0),_(D,z,Ge,"ε","\\varepsilon",!0),_(D,z,Ge,"ϑ","\\vartheta",!0),_(D,z,Ge,"ϖ","\\varpi",!0),_(D,z,Ge,"ϱ","\\varrho",!0),_(D,z,Ge,"ς","\\varsigma",!0),_(D,z,Ge,"φ","\\varphi",!0),_(D,z,je,"∗","*"),_(D,z,je,"+","+"),_(D,z,je,"−","-"),_(D,z,je,"⋅","\\cdot",!0),_(D,z,je,"∘","\\circ"),_(D,z,je,"÷","\\div",!0),_(D,z,je,"±","\\pm",!0),_(D,z,je,"×","\\times",!0),_(D,z,je,"∩","\\cap",!0),_(D,z,je,"∪","\\cup",!0),_(D,z,je,"∖","\\setminus"),_(D,z,je,"∧","\\land"),_(D,z,je,"∨","\\lor"),_(D,z,je,"∧","\\wedge",!0),_(D,z,je,"∨","\\vee",!0),_(D,z,be,"√","\\surd"),_(D,z,yr,"⟨","\\langle",!0),_(D,z,yr,"∣","\\lvert"),_(D,z,yr,"∥","\\lVert"),_(D,z,ft,"?","?"),_(D,z,ft,"!","!"),_(D,z,ft,"⟩","\\rangle",!0),_(D,z,ft,"∣","\\rvert"),_(D,z,ft,"∥","\\rVert"),_(D,z,ae,"=","="),_(D,z,ae,":",":"),_(D,z,ae,"≈","\\approx",!0),_(D,z,ae,"≅","\\cong",!0),_(D,z,ae,"≥","\\ge"),_(D,z,ae,"≥","\\geq",!0),_(D,z,ae,"←","\\gets"),_(D,z,ae,">","\\gt",!0),_(D,z,ae,"∈","\\in",!0),_(D,z,ae,"","\\@not"),_(D,z,ae,"⊂","\\subset",!0),_(D,z,ae,"⊃","\\supset",!0),_(D,z,ae,"⊆","\\subseteq",!0),_(D,z,ae,"⊇","\\supseteq",!0),_(D,J,ae,"⊈","\\nsubseteq",!0),_(D,J,ae,"⊉","\\nsupseteq",!0),_(D,z,ae,"⊨","\\models"),_(D,z,ae,"←","\\leftarrow",!0),_(D,z,ae,"≤","\\le"),_(D,z,ae,"≤","\\leq",!0),_(D,z,ae,"<","\\lt",!0),_(D,z,ae,"→","\\rightarrow",!0),_(D,z,ae,"→","\\to"),_(D,J,ae,"≱","\\ngeq",!0),_(D,J,ae,"≰","\\nleq",!0),_(D,z,Rr," ","\\ "),_(D,z,Rr," ","~"),_(D,z,Rr," ","\\space"),_(D,z,Rr," ","\\nobreakspace"),_(pe,z,Rr," ","\\ "),_(pe,z,Rr," "," "),_(pe,z,Rr," ","~"),_(pe,z,Rr," ","\\space"),_(pe,z,Rr," ","\\nobreakspace"),_(D,z,Rr,null,"\\nobreak"),_(D,z,Rr,null,"\\allowbreak"),_(D,z,Mr,",",","),_(D,z,Mr,";",";"),_(D,J,je,"⊼","\\barwedge",!0),_(D,J,je,"⊻","\\veebar",!0),_(D,z,je,"⊙","\\odot",!0),_(D,z,je,"⊕","\\oplus",!0),_(D,z,je,"⊗","\\otimes",!0),_(D,z,be,"∂","\\partial",!0),_(D,z,je,"⊘","\\oslash",!0),_(D,J,je,"⊚","\\circledcirc",!0),_(D,J,je,"⊡","\\boxdot",!0),_(D,z,je,"△","\\bigtriangleup"),_(D,z,je,"▽","\\bigtriangledown"),_(D,z,je,"†","\\dagger"),_(D,z,je,"⋄","\\diamond"),_(D,z,je,"⋆","\\star"),_(D,z,je,"◃","\\triangleleft"),_(D,z,je,"▹","\\triangleright"),_(D,z,yr,"{","\\{"),_(pe,z,be,"{","\\{"),_(pe,z,be,"{","\\textbraceleft"),_(D,z,ft,"}","\\}"),_(pe,z,be,"}","\\}"),_(pe,z,be,"}","\\textbraceright"),_(D,z,yr,"{","\\lbrace"),_(D,z,ft,"}","\\rbrace"),_(D,z,yr,"[","\\lbrack",!0),_(pe,z,be,"[","\\lbrack",!0),_(D,z,ft,"]","\\rbrack",!0),_(pe,z,be,"]","\\rbrack",!0),_(D,z,yr,"(","\\lparen",!0),_(D,z,ft,")","\\rparen",!0),_(pe,z,be,"<","\\textless",!0),_(pe,z,be,">","\\textgreater",!0),_(D,z,yr,"⌊","\\lfloor",!0),_(D,z,ft,"⌋","\\rfloor",!0),_(D,z,yr,"⌈","\\lceil",!0),_(D,z,ft,"⌉","\\rceil",!0),_(D,z,be,"\\","\\backslash"),_(D,z,be,"∣","|"),_(D,z,be,"∣","\\vert"),_(pe,z,be,"|","\\textbar",!0),_(D,z,be,"∥","\\|"),_(D,z,be,"∥","\\Vert"),_(pe,z,be,"∥","\\textbardbl"),_(pe,z,be,"~","\\textasciitilde"),_(pe,z,be,"\\","\\textbackslash"),_(pe,z,be,"^","\\textasciicircum"),_(D,z,ae,"↑","\\uparrow",!0),_(D,z,ae,"⇑","\\Uparrow",!0),_(D,z,ae,"↓","\\downarrow",!0),_(D,z,ae,"⇓","\\Downarrow",!0),_(D,z,ae,"↕","\\updownarrow",!0),_(D,z,ae,"⇕","\\Updownarrow",!0),_(D,z,sr,"∐","\\coprod"),_(D,z,sr,"⋁","\\bigvee"),_(D,z,sr,"⋀","\\bigwedge"),_(D,z,sr,"⨄","\\biguplus"),_(D,z,sr,"⋂","\\bigcap"),_(D,z,sr,"⋃","\\bigcup"),_(D,z,sr,"∫","\\int"),_(D,z,sr,"∫","\\intop"),_(D,z,sr,"∬","\\iint"),_(D,z,sr,"∭","\\iiint"),_(D,z,sr,"∏","\\prod"),_(D,z,sr,"∑","\\sum"),_(D,z,sr,"⨂","\\bigotimes"),_(D,z,sr,"⨁","\\bigoplus"),_(D,z,sr,"⨀","\\bigodot"),_(D,z,sr,"∮","\\oint"),_(D,z,sr,"⨆","\\bigsqcup"),_(D,z,sr,"∫","\\smallint"),_(pe,z,bt,"…","\\textellipsis"),_(D,z,bt,"…","\\mathellipsis"),_(pe,z,bt,"…","\\ldots",!0),_(D,z,bt,"…","\\ldots",!0),_(D,z,bt,"⋯","\\@cdots",!0),_(D,z,bt,"⋱","\\ddots",!0),_(D,z,be,"⋮","\\varvdots"),_(D,z,Zt,"ˊ","\\acute"),_(D,z,Zt,"ˋ","\\grave"),_(D,z,Zt,"¨","\\ddot"),_(D,z,Zt,"~","\\tilde"),_(D,z,Zt,"ˉ","\\bar"),_(D,z,Zt,"˘","\\breve"),_(D,z,Zt,"ˇ","\\check"),_(D,z,Zt,"^","\\hat"),_(D,z,Zt,"⃗","\\vec"),_(D,z,Zt,"˙","\\dot"),_(D,z,Zt,"˚","\\mathring"),_(D,z,Ge,"","\\@imath"),_(D,z,Ge,"","\\@jmath"),_(D,z,be,"ı","ı"),_(D,z,be,"ȷ","ȷ"),_(pe,z,be,"ı","\\i",!0),_(pe,z,be,"ȷ","\\j",!0),_(pe,z,be,"ß","\\ss",!0),_(pe,z,be,"æ","\\ae",!0),_(pe,z,be,"œ","\\oe",!0),_(pe,z,be,"ø","\\o",!0),_(pe,z,be,"Æ","\\AE",!0),_(pe,z,be,"Œ","\\OE",!0),_(pe,z,be,"Ø","\\O",!0),_(pe,z,Zt,"ˊ","\\'"),_(pe,z,Zt,"ˋ","\\`"),_(pe,z,Zt,"ˆ","\\^"),_(pe,z,Zt,"˜","\\~"),_(pe,z,Zt,"ˉ","\\="),_(pe,z,Zt,"˘","\\u"),_(pe,z,Zt,"˙","\\."),_(pe,z,Zt,"˚","\\r"),_(pe,z,Zt,"ˇ","\\v"),_(pe,z,Zt,"¨",'\\"'),_(pe,z,Zt,"˝","\\H"),_(pe,z,Zt,"◯","\\textcircled");var Yo={"--":!0,"---":!0,"``":!0,"''":!0};_(pe,z,be,"–","--",!0),_(pe,z,be,"–","\\textendash"),_(pe,z,be,"—","---",!0),_(pe,z,be,"—","\\textemdash"),_(pe,z,be,"‘","`",!0),_(pe,z,be,"‘","\\textquoteleft"),_(pe,z,be,"’","'",!0),_(pe,z,be,"’","\\textquoteright"),_(pe,z,be,"“","``",!0),_(pe,z,be,"“","\\textquotedblleft"),_(pe,z,be,"”","''",!0),_(pe,z,be,"”","\\textquotedblright"),_(D,z,be,"°","\\degree",!0),_(pe,z,be,"°","\\degree"),_(pe,z,be,"°","\\textdegree",!0),_(D,z,be,"£","\\pounds"),_(D,z,be,"£","\\mathsterling",!0),_(pe,z,be,"£","\\pounds"),_(pe,z,be,"£","\\textsterling",!0),_(D,J,be,"✠","\\maltese"),_(pe,J,be,"✠","\\maltese");for(var Ol='0123456789/@."',ha=0;haT&&(T=L.height),L.depth>b&&(b=L.depth),L.maxFontSize>A&&(A=L.maxFontSize)}g.height=T,g.depth=b,g.maxFontSize=A},Xn=function(g,T,b,A){var C=new dt(g,T,b,A);return Ya(C),C},tr=function(g,T,b,A){return new dt(g,T,b,A)},Ha=function(g,T,b){var A=Xn([g],[],T);return A.height=Math.max(b||T.fontMetrics().defaultRuleThickness,T.minRuleThickness),A.style.borderBottomWidth=A.height+"em",A.maxFontSize=1,A},sn=function(g,T,b,A){var C=new ut(g,T,b,A);return Ya(C),C},Ir=function(g){var T=new Ft(g);return Ya(T),T},wo=function(g,T){return g instanceof Ft?Xn([],[g],T):g},Ri=function(g){if(g.positionType==="individualShift"){for(var T=g.children,b=[T[0]],A=-T[0].shift-T[0].elem.depth,C=A,L=1;L0&&(C.push(te(L,T)),L=[]),C.push(A[H]));L.length>0&&C.push(te(L,T));var X;b&&(X=te(Bn(b,T,!0)),X.classes=["tag"],C.push(X));var Te=Ii(["katex-html"],C);if(Te.setAttribute("aria-hidden","true"),X){var ve=X.children[0];ve.style.height=Te.height+Te.depth+"em",ve.style.verticalAlign=-Te.depth+"em"}return Te}function De(g){return new Ft(g)}var we=(function(){function g(b,A){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=b,this.attributes={},this.children=A||[]}var T=g.prototype;return T.setAttribute=function(b,A){this.attributes[b]=A},T.getAttribute=function(b){return this.attributes[b]},T.toNode=function(){var b=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var A in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,A)&&b.setAttribute(A,this.attributes[A]);for(var C=0;C",b},T.toText=function(){return this.children.map(function(b){return b.toText()}).join("")},g})(),$e=(function(){function g(b){this.text=void 0,this.text=b}var T=g.prototype;return T.toNode=function(){return document.createTextNode(this.text)},T.toMarkup=function(){return O.escape(this.toText())},T.toText=function(){return this.text},g})(),Et=(function(){function g(b){this.width=void 0,this.character=void 0,this.width=b,b>=.05555&&b<=.05556?this.character=" ":b>=.1666&&b<=.1667?this.character=" ":b>=.2222&&b<=.2223?this.character=" ":b>=.2777&&b<=.2778?this.character="  ":b>=-.05556&&b<=-.05555?this.character=" ⁣":b>=-.1667&&b<=-.1666?this.character=" ⁣":b>=-.2223&&b<=-.2222?this.character=" ⁣":b>=-.2778&&b<=-.2777?this.character=" ⁣":this.character=null}var T=g.prototype;return T.toNode=function(){if(this.character)return document.createTextNode(this.character);var b=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return b.setAttribute("width",this.width+"em"),b},T.toMarkup=function(){return this.character?""+this.character+"":''},T.toText=function(){return this.character?this.character:" "},g})(),Se={MathNode:we,TextNode:$e,SpaceNode:Et,newDocumentFragment:De},ot=function(g,T,b){return Dr[T][g]&&Dr[T][g].replace&&g.charCodeAt(0)!==55349&&!(Yo.hasOwnProperty(g)&&b&&(b.fontFamily&&b.fontFamily.substr(4,2)==="tt"||b.font&&b.font.substr(4,2)==="tt"))&&(g=Dr[T][g].replace),new Se.TextNode(g)},Jt=function(g){return g.length===1?g[0]:new Se.MathNode("mrow",g)},Lr=function(g,T){if(T.fontFamily==="texttt")return"monospace";if(T.fontFamily==="textsf")return T.fontShape==="textit"&&T.fontWeight==="textbf"?"sans-serif-bold-italic":T.fontShape==="textit"?"sans-serif-italic":T.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(T.fontShape==="textit"&&T.fontWeight==="textbf")return"bold-italic";if(T.fontShape==="textit")return"italic";if(T.fontWeight==="textbf")return"bold";var b=T.font;if(!b||b==="mathnormal")return null;var A=g.mode;if(b==="mathit")return"italic";if(b==="boldsymbol")return g.type==="textord"?"bold":"bold-italic";if(b==="mathbf")return"bold";if(b==="mathbb")return"double-struck";if(b==="mathfrak")return"fraktur";if(b==="mathscr"||b==="mathcal")return"script";if(b==="mathsf")return"sans-serif";if(b==="mathtt")return"monospace";var C=g.text;if(O.contains(["\\imath","\\jmath"],C))return null;Dr[A][C]&&Dr[A][C].replace&&(C=Dr[A][C].replace);var L=xe.fontMap[b].fontName;return vt(C,L,A)?xe.fontMap[b].variant:null},Bt=function(g,T,b){if(g.length===1){var A=et(g[0],T);return b&&A instanceof we&&A.type==="mo"&&(A.setAttribute("lspace","0em"),A.setAttribute("rspace","0em")),[A]}for(var C=[],L,H=0;H0&&(rt.text=rt.text.slice(0,1)+"̸"+rt.text.slice(1),C.pop())}}}C.push(K),L=K}return C},at=function(g,T,b){return Jt(Bt(g,T,b))},et=function(g,T){if(!g)return new Se.MathNode("mrow");if(Ho[g.type]){var b=Ho[g.type](g,T);return b}else throw new u("Got group of unknown type: '"+g.type+"'")};function In(g,T,b,A,C){var L=Bt(g,b),H;L.length===1&&L[0]instanceof we&&O.contains(["mrow","mtable"],L[0].type)?H=L[0]:H=new Se.MathNode("mrow",L);var K=new Se.MathNode("annotation",[new Se.TextNode(T)]);K.setAttribute("encoding","application/x-tex");var X=new Se.MathNode("semantics",[H,K]),Te=new Se.MathNode("math",[X]);Te.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),A&&Te.setAttribute("display","block");var ve=C?"katex":"katex-mathml";return xe.makeSpan([ve],[Te])}var Ln=function(g){return new si({style:g.displayMode?Ye.DISPLAY:Ye.TEXT,maxSize:g.maxSize,minRuleThickness:g.minRuleThickness})},$n=function(g,T){if(T.displayMode){var b=["katex-display"];T.leqno&&b.push("leqno"),T.fleqn&&b.push("fleqn"),g=xe.makeSpan(b,[g])}return g},Po=function(g,T,b){var A=Ln(b),C;if(b.output==="mathml")return In(g,T,A,b.displayMode,!0);if(b.output==="html"){var L=me(g,A);C=xe.makeSpan(["katex"],[L])}else{var H=In(g,T,A,b.displayMode,!1),K=me(g,A);C=xe.makeSpan(["katex"],[H,K])}return $n(C,b)},Bs=function(g,T,b){var A=Ln(b),C=me(g,A),L=xe.makeSpan(["katex"],[C]);return $n(L,b)},R0={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:"⇋"},Is=function(g){var T=new Se.MathNode("mo",[new Se.TextNode(R0[g.substr(1)])]);return T.setAttribute("stretchy","true"),T},ps={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"],xleftarrow:[["leftarrow"],1.469,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"],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]},B0=function(g){return g.type==="ordgroup"?g.body.length:1},$a=function(g,T){function b(){var K=4e5,X=g.label.substr(1);if(O.contains(["widehat","widecheck","widetilde","utilde"],X)){var Te=g,ve=B0(Te.base),Ne,Ke,rt;if(ve>5)X==="widehat"||X==="widecheck"?(Ne=420,K=2364,rt=.42,Ke=X+"4"):(Ne=312,K=2340,rt=.34,Ke="tilde4");else{var yt=[1,1,2,2,3,3][ve];X==="widehat"||X==="widecheck"?(K=[0,1062,2364,2364,2364][yt],Ne=[0,239,300,360,420][yt],rt=[0,.24,.3,.3,.36,.42][yt],Ke=X+yt):(K=[0,600,1033,2339,2340][yt],Ne=[0,260,286,306,312][yt],rt=[0,.26,.286,.3,.306,.34][yt],Ke="tilde"+yt)}var Nt=new Sr(Ke),Gt=new We([Nt],{width:"100%",height:rt+"em",viewBox:"0 0 "+K+" "+Ne,preserveAspectRatio:"none"});return{span:xe.makeSvgSpan([],[Gt],T),minWidth:0,height:rt}}else{var Tr=[],Cr=ps[X],rn=Cr[0],Wr=Cr[1],gn=Cr[2],yn=gn/1e3,En=rn.length,gi,Si;if(En===1){var zr=Cr[3];gi=["hide-tail"],Si=[zr]}else if(En===2)gi=["halfarrow-left","halfarrow-right"],Si=["xMinYMin","xMaxYMin"];else if(En===3)gi=["brace-left","brace-center","brace-right"],Si=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support `+En+" children.");for(var So=0;So0&&(C.style.minWidth=L+"em"),C},ac=function(g,T,b,A){var C,L=g.height+g.depth+2*b;if(/fbox|color/.test(T)){if(C=xe.makeSpan(["stretchy",T],[],A),T==="fbox"){var H=A.color&&A.getColor();H&&(C.style.borderColor=H)}}else{var K=[];/^[bx]cancel$/.test(T)&&K.push(new kr({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(T)&&K.push(new kr({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var X=new We(K,{width:"100%",height:L+"em"});C=xe.makeSvgSpan([],[X],A)}return C.height=L,C.style.height=L+"em",C},Un={encloseSpan:ac,mathMLnode:Is,svgSpan:$a};function Pt(g,T){if(!g||g.type!==T)throw new Error("Expected node of type "+T+", but got "+(g?"node of type "+g.type:String(g)));return g}function Ls(g){var T=Ji(g);if(!T)throw new Error("Expected node of symbol group type, but got "+(g?"node of type "+g.type:String(g)));return T}function Ji(g){return g&&(g.type==="atom"||On.hasOwnProperty(g.type))?g:null}var Ua=function(g,T){var b,A,C;g&&g.type==="supsub"?(A=Pt(g.base,"accent"),b=A.base,g.base=b,C=da(j(g,T)),g.base=A):(A=Pt(g,"accent"),b=A.base);var L=j(b,T.havingCrampedStyle()),H=A.isShifty&&O.isCharacterBox(b),K=0;if(H){var X=O.getBaseElem(b),Te=j(X,T.havingCrampedStyle());K=Wi(Te).skew}var ve=Math.min(L.height,T.fontMetrics().xHeight),Ne;if(A.isStretchy)Ne=Un.svgSpan(A,T),Ne=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"elem",elem:Ne,wrapperClasses:["svg-align"],wrapperStyle:K>0?{width:"calc(100% - "+2*K+"em)",marginLeft:2*K+"em"}:void 0}]},T);else{var Ke,rt;A.label==="\\vec"?(Ke=xe.staticSvg("vec",T),rt=xe.svgData.vec[1]):(Ke=xe.makeOrd({mode:A.mode,text:A.label},T,"textord"),Ke=Wi(Ke),Ke.italic=0,rt=Ke.width),Ne=xe.makeSpan(["accent-body"],[Ke]);var yt=A.label==="\\textcircled";yt&&(Ne.classes.push("accent-full"),ve=L.height);var Nt=K;yt||(Nt-=rt/2),Ne.style.left=Nt+"em",A.label==="\\textcircled"&&(Ne.style.top=".2em"),Ne=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"kern",size:-ve},{type:"elem",elem:Ne}]},T)}var Gt=xe.makeSpan(["mord","accent"],[Ne],T);return C?(C.children[0]=Gt,C.height=Math.max(Gt.height,C.height),C.classes[0]="mord",C):Gt},Xi=function(g,T){var b=g.isStretchy?Un.mathMLnode(g.label):new Se.MathNode("mo",[ot(g.label,g.mode)]),A=new Se.MathNode("mover",[et(g.base,T),b]);return A.setAttribute("accent","true"),A},ma=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(g){return"\\"+g}).join("|"));Tt({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(g,T){var b=T[0],A=!ma.test(g.funcName),C=!A||g.funcName==="\\widehat"||g.funcName==="\\widetilde"||g.funcName==="\\widecheck";return{type:"accent",mode:g.parser.mode,label:g.funcName,isStretchy:A,isShifty:C,base:b}},htmlBuilder:Ua,mathmlBuilder:Xi}),Tt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(g,T){var b=T[0];return{type:"accent",mode:g.parser.mode,label:g.funcName,isStretchy:!1,isShifty:!0,base:b}},htmlBuilder:Ua,mathmlBuilder:Xi}),Tt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];return{type:"accentUnder",mode:b.mode,label:A,base:C}},htmlBuilder:function(g,T){var b=j(g.base,T),A=Un.svgSpan(g,T),C=g.label==="\\utilde"?.12:0,L=xe.makeVList({positionType:"top",positionData:b.height,children:[{type:"elem",elem:A,wrapperClasses:["svg-align"]},{type:"kern",size:C},{type:"elem",elem:b}]},T);return xe.makeSpan(["mord","accentunder"],[L],T)},mathmlBuilder:function(g,T){var b=Un.mathMLnode(g.label),A=new Se.MathNode("munder",[et(g.base,T),b]);return A.setAttribute("accentunder","true"),A}});var lo=function(g){var T=new Se.MathNode("mpadded",g?[g]:[]);return T.setAttribute("width","+0.6em"),T.setAttribute("lspace","0.3em"),T};Tt({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"],props:{numArgs:1,numOptionalArgs:1},handler:function(g,T,b){var A=g.parser,C=g.funcName;return{type:"xArrow",mode:A.mode,label:C,body:T[0],below:b[0]}},htmlBuilder:function(g,T){var b=T.style,A=T.havingStyle(b.sup()),C=xe.wrapFragment(j(g.body,A,T),T);C.classes.push("x-arrow-pad");var L;g.below&&(A=T.havingStyle(b.sub()),L=xe.wrapFragment(j(g.below,A,T),T),L.classes.push("x-arrow-pad"));var H=Un.svgSpan(g,T),K=-T.fontMetrics().axisHeight+.5*H.height,X=-T.fontMetrics().axisHeight-.5*H.height-.111;(C.depth>.25||g.label==="\\xleftequilibrium")&&(X-=C.depth);var Te;if(L){var ve=-T.fontMetrics().axisHeight+L.height+.5*H.height+.111;Te=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:X},{type:"elem",elem:H,shift:K},{type:"elem",elem:L,shift:ve}]},T)}else Te=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:C,shift:X},{type:"elem",elem:H,shift:K}]},T);return Te.children[0].children[0].children[1].classes.push("svg-align"),xe.makeSpan(["mrel","x-arrow"],[Te],T)},mathmlBuilder:function(g,T){var b=Un.mathMLnode(g.label),A;if(g.body){var C=lo(et(g.body,T));if(g.below){var L=lo(et(g.below,T));A=new Se.MathNode("munderover",[b,L,C])}else A=new Se.MathNode("mover",[b,C])}else if(g.below){var H=lo(et(g.below,T));A=new Se.MathNode("munder",[b,H])}else A=lo(),A=new Se.MathNode("mover",[b,A]);return A}}),Tt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){for(var b=g.parser,A=Pt(T[0],"ordgroup"),C=A.body,L="",H=0;H","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],L0=[0,1.2,1.8,2.4,3],y5=function(g,T,b,A,C){if(g==="<"||g==="\\lt"||g==="⟨"?g="\\langle":(g===">"||g==="\\gt"||g==="⟩")&&(g="\\rangle"),O.contains(dm,g)||O.contains(cc,g))return gp(g,T,!1,b,A,C);if(O.contains(Hl,g))return ms(g,L0[T],!1,b,A,C);throw new u("Illegal delimiter: '"+g+"'")},yp=[{type:"small",style:Ye.SCRIPTSCRIPT},{type:"small",style:Ye.SCRIPT},{type:"small",style:Ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],hm=[{type:"small",style:Ye.SCRIPTSCRIPT},{type:"small",style:Ye.SCRIPT},{type:"small",style:Ye.TEXT},{type:"stack"}],Tp=[{type:"small",style:Ye.SCRIPTSCRIPT},{type:"small",style:Ye.SCRIPT},{type:"small",style:Ye.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],ja=function(g){if(g.type==="small")return"Main-Regular";if(g.type==="large")return"Size"+g.size+"-Regular";if(g.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+g.type+"' here.")},vd=function(g,T,b,A){for(var C=Math.min(2,3-A.style.size),L=C;LT)return b[L]}return b[b.length-1]},pm=function(g,T,b,A,C,L){g==="<"||g==="\\lt"||g==="⟨"?g="\\langle":(g===">"||g==="\\gt"||g==="⟩")&&(g="\\rangle");var H;O.contains(cc,g)?H=yp:O.contains(dm,g)?H=Tp:H=hm;var K=vd(g,T,H,A);return K.type==="small"?mp(g,K.style,b,A,C,L):K.type==="large"?gp(g,K.size,b,A,C,L):ms(g,T,b,A,C,L)},T5=function(g,T,b,A,C,L){var H=A.fontMetrics().axisHeight*A.sizeMultiplier,K=901,X=5/A.fontMetrics().ptPerEm,Te=Math.max(T-H,b+H),ve=Math.max(Te/500*K,2*Te-X);return pm(g,ve,!0,A,C,L)},Ta={sqrtImage:g5,sizedDelim:y5,customSizedDelim:pm,leftRightDelim:T5},bp={"\\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}},fm=["(","\\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 z0(g,T){var b=Ji(g);if(b&&O.contains(fm,b.text))return b;throw b?new u("Invalid delimiter '"+b.text+"' after '"+T.funcName+"'",g):new u("Invalid delimiter type '"+g.type+"'",g)}Tt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(g,T){var b=z0(T[0],g);return{type:"delimsizing",mode:g.parser.mode,size:bp[g.funcName].size,mclass:bp[g.funcName].mclass,delim:b.text}},htmlBuilder:function(g,T){return g.delim==="."?xe.makeSpan([g.mclass]):Ta.sizedDelim(g.delim,g.size,T,g.mode,[g.mclass])},mathmlBuilder:function(g){var T=[];g.delim!=="."&&T.push(ot(g.delim,g.mode));var b=new Se.MathNode("mo",T);return g.mclass==="mopen"||g.mclass==="mclose"?b.setAttribute("fence","true"):b.setAttribute("fence","false"),b}});function mm(g){if(!g.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Tt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(g,T){var b=g.parser.gullet.macros.get("\\current@color");if(b&&typeof b!="string")throw new u("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:g.parser.mode,delim:z0(T[0],g).text,color:b}}}),Tt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(g,T){var b=z0(T[0],g),A=g.parser;++A.leftrightDepth;var C=A.parseExpression(!1);--A.leftrightDepth,A.expect("\\right",!1);var L=Pt(A.parseFunction(),"leftright-right");return{type:"leftright",mode:A.mode,body:C,left:b.text,right:L.delim,rightColor:L.color}},htmlBuilder:function(g,T){mm(g);for(var b=Bn(g.body,T,!0,["mopen","mclose"]),A=0,C=0,L=!1,H=0;H-1?"mpadded":"menclose",[et(g.body,T)]);switch(g.label){case"\\cancel":A.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":A.setAttribute("notation","downdiagonalstrike");break;case"\\sout":A.setAttribute("notation","horizontalstrike");break;case"\\fbox":A.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(b=T.fontMetrics().fboxsep*T.fontMetrics().ptPerEm,A.setAttribute("width","+"+2*b+"pt"),A.setAttribute("height","+"+2*b+"pt"),A.setAttribute("lspace",b+"pt"),A.setAttribute("voffset",b+"pt"),g.label==="\\fcolorbox"){var C=Math.max(T.fontMetrics().fboxrule,T.minRuleThickness);A.setAttribute("style","border: "+C+"em solid "+String(g.borderColor))}break;case"\\xcancel":A.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return g.backgroundColor&&A.setAttribute("mathbackground",g.backgroundColor),A};Tt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(g,T,b){var A=g.parser,C=g.funcName,L=Pt(T[0],"color-token").color,H=T[1];return{type:"enclose",mode:A.mode,label:C,backgroundColor:L,body:H}},htmlBuilder:dc,mathmlBuilder:zn}),Tt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(g,T,b){var A=g.parser,C=g.funcName,L=Pt(T[0],"color-token").color,H=Pt(T[1],"color-token").color,K=T[2];return{type:"enclose",mode:A.mode,label:C,backgroundColor:H,borderColor:L,body:K}},htmlBuilder:dc,mathmlBuilder:zn}),Tt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(g,T){var b=g.parser;return{type:"enclose",mode:b.mode,label:"\\fbox",body:T[0]}}}),Tt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(g,T,b){var A=g.parser,C=g.funcName,L=T[0];return{type:"enclose",mode:A.mode,label:C,body:L}},htmlBuilder:dc,mathmlBuilder:zn});var gm={};function ba(g){for(var T=g.type,b=g.names,A=g.props,C=g.handler,L=g.htmlBuilder,H=g.mathmlBuilder,K={type:T,numArgs:A.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:C},X=0;X0&&(Cr+=.25),X.push({pos:Cr,isDashed:q[oe]})}for(rn(L[0]),b=0;b0&&(zr+=Tr,yn=H)){var V0=void 0;(A>0||g.hskipBeforeAndAfter)&&(V0=O.deflt(Ts.pregap,Ne),V0!==0&&(Di=xe.makeSpan(["arraycolsep"],[]),Di.style.width=V0+"em",$o.push(Di)));var j0=[];for(b=0;b0){for(var E=xe.makeLineSpan("hline",T,Te),S=xe.makeLineSpan("hdashline",T,Te),N=[{type:"elem",elem:K,shift:0}];X.length>0;){var M=X.pop(),Z=M.pos-So;M.isDashed?N.push({type:"elem",elem:S,shift:Z}):N.push({type:"elem",elem:E,shift:Z})}K=xe.makeVList({positionType:"individualShift",children:N},T)}return xe.makeSpan(["mord"],[K],T)},b5={c:"center ",l:"left ",r:"right "},qa=function(g,T){var b=new Se.MathNode("mtable",g.body.map(function(Cr){return new Se.MathNode("mtr",Cr.map(function(rn){return new Se.MathNode("mtd",[et(rn,T)])}))})),A=g.arraystretch===.5?.1:.16+g.arraystretch-1+(g.addJot?.09:0);b.setAttribute("rowspacing",A+"em");var C="",L="";if(g.cols&&g.cols.length>0){var H=g.cols,K="",X=!1,Te=0,ve=H.length;H[0].type==="separator"&&(C+="top ",Te=1),H[H.length-1].type==="separator"&&(C+="bottom ",ve-=1);for(var Ne=Te;Ne0?"left ":"",C+=Gt[Gt.length-1].length>0?"right ":"";for(var Tr=1;Tr0&&ve&&(rt=1),b[Ne]={type:"align",align:Ke,pregap:rt,postgap:0}}return A.colSeparationType=ve?"align":"alignat",A};ba({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(g,T){var b=Ji(T[0]),A=b?[T[0]]:Pt(T[0],"ordgroup").body,C=A.map(function(H){var K=Ls(H),X=K.text;if("lcr".indexOf(X)!==-1)return{type:"align",align:X};if(X==="|")return{type:"separator",separator:"|"};if(X===":")return{type:"separator",separator:":"};throw new u("Unknown column alignment: "+X,H)}),L={cols:C,hskipBeforeAndAfter:!0};return Ga(g.parser,L,pc(g.envName))},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(g){var T={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[g.envName],b={hskipBeforeAndAfter:!1},A=Ga(g.parser,b,pc(g.envName));return T?{type:"leftright",mode:g.mode,body:[A],left:T[0],right:T[1],rightColor:void 0}:A},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(g){var T={arraystretch:.5},b=Ga(g.parser,T,"script");return b.colSeparationType="small",b},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["subarray"],props:{numArgs:1},handler:function(g,T){var b=Ji(T[0]),A=b?[T[0]]:Pt(T[0],"ordgroup").body,C=A.map(function(H){var K=Ls(H),X=K.text;if("lc".indexOf(X)!==-1)return{type:"align",align:X};throw new u("Unknown column alignment: "+X,H)});if(C.length>1)throw new u("{subarray} can contain only one column");var L={cols:C,hskipBeforeAndAfter:!1,arraystretch:.5};if(L=Ga(g.parser,L,"script"),L.body.length>0&&L.body[0].length>1)throw new u("{subarray} can contain only one column");return L},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler:function(g){var T={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},b=Ga(g.parser,T,pc(g.envName));return{type:"leftright",mode:g.mode,body:[b],left:g.envName.indexOf("r")>-1?".":"\\{",right:g.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["aligned"],props:{numArgs:0},handler:ym,htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["gathered"],props:{numArgs:0},handler:function(g){var T={cols:[{type:"align",align:"c"}],addJot:!0};return Ga(g.parser,T,"display")},htmlBuilder:va,mathmlBuilder:qa}),ba({type:"array",names:["alignedat"],props:{numArgs:1},handler:ym,htmlBuilder:va,mathmlBuilder:qa}),Tt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(g,T){throw new u(g.funcName+" valid only within array environment")}});var Tm=gm,bm=Tm;Tt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];if(C.type!=="ordgroup")throw new u("Invalid environment name",C);for(var L="",H=0;H=Ye.SCRIPT.id?b.text():Ye.DISPLAY:g==="text"&&b.size===Ye.DISPLAY.size?b=Ye.TEXT:g==="script"?b=Ye.SCRIPT:g==="scriptscript"&&(b=Ye.SCRIPTSCRIPT),b},gc=function(g,T){var b=Ap(g.size,T.style),A=b.fracNum(),C=b.fracDen(),L;L=T.havingStyle(A);var H=j(g.numer,L,T);if(g.continued){var K=8.5/T.fontMetrics().ptPerEm,X=3.5/T.fontMetrics().ptPerEm;H.height=H.height0?yt=3*Ke:yt=7*Ke,Nt=T.fontMetrics().denom1):(Ne>0?(rt=T.fontMetrics().num2,yt=Ke):(rt=T.fontMetrics().num3,yt=3*Ke),Nt=T.fontMetrics().denom2);var Gt;if(ve){var Tr=T.fontMetrics().axisHeight;rt-H.depth-(Tr+.5*Ne)0&&(T=g,T=T==="."?null:T),T};Tt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(g,T){var b=g.parser,A=T[4],C=T[5],L=T[0].type==="atom"&&T[0].family==="open"?wm(T[0].text):null,H=T[1].type==="atom"&&T[1].family==="close"?wm(T[1].text):null,K=Pt(T[2],"size"),X,Te=null;K.isBlank?X=!0:(Te=K.value,X=Te.number>0);var ve="auto",Ne=T[3];if(Ne.type==="ordgroup"){if(Ne.body.length>0){var Ke=Pt(Ne.body[0],"textord");ve=Em[Number(Ke.text)]}}else Ne=Pt(Ne,"textord"),ve=Em[Number(Ne.text)];return{type:"genfrac",mode:b.mode,numer:A,denom:C,continued:!1,hasBarLine:X,barSize:Te,leftDelim:L,rightDelim:H,size:ve}},htmlBuilder:gc,mathmlBuilder:yc}),Tt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(g,T){var b=g.parser;g.funcName;var A=g.token;return{type:"infix",mode:b.mode,replaceWith:"\\\\abovefrac",size:Pt(T[0],"size").value,token:A}}}),Tt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(g,T){var b=g.parser;g.funcName;var A=T[0],C=k(Pt(T[1],"infix").size),L=T[2],H=C.number>0;return{type:"genfrac",mode:b.mode,numer:A,denom:L,continued:!1,hasBarLine:H,barSize:C,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:gc,mathmlBuilder:yc});var Ed=function(g,T){var b=T.style,A,C;g.type==="supsub"?(A=g.sup?j(g.sup,T.havingStyle(b.sup()),T):j(g.sub,T.havingStyle(b.sub()),T),C=Pt(g.base,"horizBrace")):C=Pt(g,"horizBrace");var L=j(C.base,T.havingBaseStyle(Ye.DISPLAY)),H=Un.svgSpan(C,T),K;if(C.isOver?(K=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:L},{type:"kern",size:.1},{type:"elem",elem:H}]},T),K.children[0].children[0].children[1].classes.push("svg-align")):(K=xe.makeVList({positionType:"bottom",positionData:L.depth+.1+H.height,children:[{type:"elem",elem:H},{type:"kern",size:.1},{type:"elem",elem:L}]},T),K.children[0].children[0].children[0].classes.push("svg-align")),A){var X=xe.makeSpan(["mord",C.isOver?"mover":"munder"],[K],T);C.isOver?K=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:X},{type:"kern",size:.2},{type:"elem",elem:A}]},T):K=xe.makeVList({positionType:"bottom",positionData:X.depth+.2+A.height+A.depth,children:[{type:"elem",elem:A},{type:"kern",size:.2},{type:"elem",elem:X}]},T)}return xe.makeSpan(["mord",C.isOver?"mover":"munder"],[K],T)},Sm=function(g,T){var b=Un.mathMLnode(g.label);return new Se.MathNode(g.isOver?"mover":"munder",[et(g.base,T),b])};Tt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(g,T){var b=g.parser,A=g.funcName;return{type:"horizBrace",mode:b.mode,label:A,isOver:/^\\over/.test(A),base:T[0]}},htmlBuilder:Ed,mathmlBuilder:Sm}),Tt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(g,T){var b=g.parser,A=T[1],C=Pt(T[0],"url").url;return b.settings.isTrusted({command:"\\href",url:C})?{type:"href",mode:b.mode,href:C,body:Rn(A)}:b.formatUnsupportedCmd("\\href")},htmlBuilder:function(g,T){var b=Bn(g.body,T,!1);return xe.makeAnchor(g.href,[],b,T)},mathmlBuilder:function(g,T){var b=at(g.body,T);return b instanceof we||(b=new we("mrow",[b])),b.setAttribute("href",g.href),b}}),Tt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(g,T){var b=g.parser,A=Pt(T[0],"url").url;if(!b.settings.isTrusted({command:"\\url",url:A}))return b.formatUnsupportedCmd("\\url");for(var C=[],L=0;L0&&(A=on(g.totalheight,T)-b,A=Number(A.toFixed(2)));var C=0;g.width.number>0&&(C=on(g.width,T));var L={height:b+A+"em"};C>0&&(L.width=C+"em"),A>0&&(L.verticalAlign=-A+"em");var H=new Be(g.src,g.alt,L);return H.height=b,H.depth=A,H},mathmlBuilder:function(g,T){var b=new Se.MathNode("mglyph",[]);b.setAttribute("alt",g.alt);var A=on(g.height,T),C=0;if(g.totalheight.number>0&&(C=on(g.totalheight,T)-A,C=C.toFixed(2),b.setAttribute("valign","-"+C+"em")),b.setAttribute("height",A+C+"em"),g.width.number>0){var L=on(g.width,T);b.setAttribute("width",L+"em")}return b.setAttribute("src",g.src),b}}),Tt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(g,T){var b=g.parser,A=g.funcName,C=Pt(T[0],"size");if(b.settings.strict){var L=A[1]==="m",H=C.value.unit==="mu";L?(H||b.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" supports only mu units, "+("not "+C.value.unit+" units")),b.mode!=="math"&&b.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" works only in math mode")):H&&b.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+A+" doesn't support mu units")}return{type:"kern",mode:b.mode,dimension:C.value}},htmlBuilder:function(g,T){return xe.makeGlue(g.dimension,T)},mathmlBuilder:function(g,T){var b=on(g.dimension,T);return new Se.SpaceNode(b)}}),Tt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];return{type:"lap",mode:b.mode,alignment:A.slice(5),body:C}},htmlBuilder:function(g,T){var b;g.alignment==="clap"?(b=xe.makeSpan([],[j(g.body,T)]),b=xe.makeSpan(["inner"],[b],T)):b=xe.makeSpan(["inner"],[j(g.body,T)]);var A=xe.makeSpan(["fix"],[]),C=xe.makeSpan([g.alignment],[b,A],T),L=xe.makeSpan(["strut"]);return L.style.height=C.height+C.depth+"em",L.style.verticalAlign=-C.depth+"em",C.children.unshift(L),C=xe.makeSpan(["thinbox"],[C],T),xe.makeSpan(["mord","vbox"],[C],T)},mathmlBuilder:function(g,T){var b=new Se.MathNode("mpadded",[et(g.body,T)]);if(g.alignment!=="rlap"){var A=g.alignment==="llap"?"-1":"-0.5";b.setAttribute("lspace",A+"width")}return b.setAttribute("width","0px"),b}}),Tt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(g,T){var b=g.funcName,A=g.parser,C=A.mode;A.switchMode("math");var L=b==="\\("?"\\)":"$",H=A.parseExpression(!1,L);return A.expect(L),A.switchMode(C),{type:"styling",mode:A.mode,style:"text",body:H}}}),Tt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(g,T){throw new u("Mismatched "+g.funcName)}});var wd=function(g,T){switch(T.style.size){case Ye.DISPLAY.size:return g.display;case Ye.TEXT.size:return g.text;case Ye.SCRIPT.size:return g.script;case Ye.SCRIPTSCRIPT.size:return g.scriptscript;default:return g.text}};Tt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(g,T){var b=g.parser;return{type:"mathchoice",mode:b.mode,display:Rn(T[0]),text:Rn(T[1]),script:Rn(T[2]),scriptscript:Rn(T[3])}},htmlBuilder:function(g,T){var b=wd(g,T),A=Bn(b,T,!1);return xe.makeFragment(A)},mathmlBuilder:function(g,T){var b=wd(g,T);return at(b,T)}});var Dm=function(g,T,b,A,C,L,H){g=xe.makeSpan([],[g]);var K,X;if(T){var Te=j(T,A.havingStyle(C.sup()),A);X={elem:Te,kern:Math.max(A.fontMetrics().bigOpSpacing1,A.fontMetrics().bigOpSpacing3-Te.depth)}}if(b){var ve=j(b,A.havingStyle(C.sub()),A);K={elem:ve,kern:Math.max(A.fontMetrics().bigOpSpacing2,A.fontMetrics().bigOpSpacing4-ve.height)}}var Ne;if(X&&K){var Ke=A.fontMetrics().bigOpSpacing5+K.elem.height+K.elem.depth+K.kern+g.depth+H;Ne=xe.makeVList({positionType:"bottom",positionData:Ke,children:[{type:"kern",size:A.fontMetrics().bigOpSpacing5},{type:"elem",elem:K.elem,marginLeft:-L+"em"},{type:"kern",size:K.kern},{type:"elem",elem:g},{type:"kern",size:X.kern},{type:"elem",elem:X.elem,marginLeft:L+"em"},{type:"kern",size:A.fontMetrics().bigOpSpacing5}]},A)}else if(K){var rt=g.height-H;Ne=xe.makeVList({positionType:"top",positionData:rt,children:[{type:"kern",size:A.fontMetrics().bigOpSpacing5},{type:"elem",elem:K.elem,marginLeft:-L+"em"},{type:"kern",size:K.kern},{type:"elem",elem:g}]},A)}else if(X){var yt=g.depth+H;Ne=xe.makeVList({positionType:"bottom",positionData:yt,children:[{type:"elem",elem:g},{type:"kern",size:X.kern},{type:"elem",elem:X.elem,marginLeft:L+"em"},{type:"kern",size:A.fontMetrics().bigOpSpacing5}]},A)}else return g;return xe.makeSpan(["mop","op-limits"],[Ne],A)},xm=["\\smallint"],gs=function(g,T){var b,A,C=!1,L;g.type==="supsub"?(b=g.sup,A=g.sub,L=Pt(g.base,"op"),C=!0):L=Pt(g,"op");var H=T.style,K=!1;H.size===Ye.DISPLAY.size&&L.symbol&&!O.contains(xm,L.name)&&(K=!0);var X;if(L.symbol){var Te=K?"Size2-Regular":"Size1-Regular",ve="";if((L.name==="\\oiint"||L.name==="\\oiiint")&&(ve=L.name.substr(1),L.name=ve==="oiint"?"\\iint":"\\iiint"),X=xe.makeSymbol(L.name,Te,"math",T,["mop","op-symbol",K?"large-op":"small-op"]),ve.length>0){var Ne=X.italic,Ke=xe.staticSvg(ve+"Size"+(K?"2":"1"),T);X=xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:X,shift:0},{type:"elem",elem:Ke,shift:K?.08:0}]},T),L.name="\\"+ve,X.classes.unshift("mop"),X.italic=Ne}}else if(L.body){var rt=Bn(L.body,T,!0);rt.length===1&&rt[0]instanceof de?(X=rt[0],X.classes[0]="mop"):X=xe.makeSpan(["mop"],xe.tryCombineChars(rt),T)}else{for(var yt=[],Nt=1;Nt0){for(var K=L.body.map(function(Ne){var Ke=Ne.text;return typeof Ke=="string"?{type:"textord",mode:Ne.mode,text:Ke}:Ne}),X=Bn(K,T.withFont("mathrm"),!0),Te=0;Te=0?K.setAttribute("height","+"+C+"em"):(K.setAttribute("height",C+"em"),K.setAttribute("depth","+"+-C+"em")),K.setAttribute("voffset",C+"em"),K}});function km(g,T,b){for(var A=Bn(g,T,!1),C=T.sizeMultiplier/b.sizeMultiplier,L=0;Lb.height+b.depth+H&&(H=(H+Ke-b.height-b.depth)/2);var rt=Te.height-b.height-H-ve;b.style.paddingLeft=Ne+"em";var yt=xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:b,wrapperClasses:["svg-align"]},{type:"kern",size:-(b.height+rt)},{type:"elem",elem:Te},{type:"kern",size:ve}]},T);if(g.index){var Nt=T.havingStyle(Ye.SCRIPTSCRIPT),Gt=j(g.index,Nt,T),Tr=.6*(yt.height-yt.depth),Cr=xe.makeVList({positionType:"shift",positionData:-Tr,children:[{type:"elem",elem:Gt}]},T),rn=xe.makeSpan(["root"],[Cr]);return xe.makeSpan(["mord","sqrt"],[rn,yt],T)}else return xe.makeSpan(["mord","sqrt"],[yt],T)},mathmlBuilder:function(g,T){var b=g.body,A=g.index;return A?new Se.MathNode("mroot",[et(b,T),et(A,T)]):new Se.MathNode("msqrt",[et(b,T)])}});var Ep={display:Ye.DISPLAY,text:Ye.TEXT,script:Ye.SCRIPT,scriptscript:Ye.SCRIPTSCRIPT};Tt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(g,T){var b=g.breakOnTokenText,A=g.funcName,C=g.parser,L=C.parseExpression(!0,b),H=A.slice(1,A.length-5);return{type:"styling",mode:C.mode,style:H,body:L}},htmlBuilder:function(g,T){var b=Ep[g.style],A=T.havingStyle(b).withFont("");return km(g.body,A,T)},mathmlBuilder:function(g,T){var b=Ep[g.style],A=T.havingStyle(b),C=Bt(g.body,A),L=new Se.MathNode("mstyle",C),H={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},K=H[g.style];return L.setAttribute("scriptlevel",K[0]),L.setAttribute("displaystyle",K[1]),L}});var w5=function(g,T){var b=g.base;if(b)if(b.type==="op"){var A=b.limits&&(T.style.size===Ye.DISPLAY.size||b.alwaysHandleSupSub);return A?gs:null}else if(b.type==="operatorname"){var C=b.alwaysHandleSupSub&&(T.style.size===Ye.DISPLAY.size||b.limits);return C?Ka:null}else{if(b.type==="accent")return O.isCharacterBox(b.base)?Ua:null;if(b.type==="horizBrace"){var L=!g.sub;return L===b.isOver?Ed:null}else return null}else return null};ai({type:"supsub",htmlBuilder:function(g,T){var b=w5(g,T);if(b)return b(g,T);var A=g.base,C=g.sup,L=g.sub,H=j(A,T),K,X,Te=T.fontMetrics(),ve=0,Ne=0,Ke=A&&O.isCharacterBox(A);if(C){var rt=T.havingStyle(T.style.sup());K=j(C,rt,T),Ke||(ve=H.height-rt.fontMetrics().supDrop*rt.sizeMultiplier/T.sizeMultiplier)}if(L){var yt=T.havingStyle(T.style.sub());X=j(L,yt,T),Ke||(Ne=H.depth+yt.fontMetrics().subDrop*yt.sizeMultiplier/T.sizeMultiplier)}var Nt;T.style===Ye.DISPLAY?Nt=Te.sup1:T.style.cramped?Nt=Te.sup3:Nt=Te.sup2;var Gt=T.sizeMultiplier,Tr=.5/Te.ptPerEm/Gt+"em",Cr=null;if(X){var rn=g.base&&g.base.type==="op"&&g.base.name&&(g.base.name==="\\oiint"||g.base.name==="\\oiiint");(H instanceof de||rn)&&(Cr=-H.italic+"em")}var Wr;if(K&&X){ve=Math.max(ve,Nt,K.depth+.25*Te.xHeight),Ne=Math.max(Ne,Te.sub2);var gn=Te.defaultRuleThickness,yn=4*gn;if(ve-K.depth-(X.height-Ne)0&&(ve+=En,Ne-=En)}var gi=[{type:"elem",elem:X,shift:Ne,marginRight:Tr,marginLeft:Cr},{type:"elem",elem:K,shift:-ve,marginRight:Tr}];Wr=xe.makeVList({positionType:"individualShift",children:gi},T)}else if(X){Ne=Math.max(Ne,Te.sub1,X.height-.8*Te.xHeight);var Si=[{type:"elem",elem:X,marginLeft:Cr,marginRight:Tr}];Wr=xe.makeVList({positionType:"shift",positionData:Ne,children:Si},T)}else if(K)ve=Math.max(ve,Nt,K.depth+.25*Te.xHeight),Wr=xe.makeVList({positionType:"shift",positionData:-ve,children:[{type:"elem",elem:K,marginRight:Tr}]},T);else throw new Error("supsub must have either sup or sub.");var zr=Y(H,"right")||"mord";return xe.makeSpan([zr],[H,xe.makeSpan(["msupsub"],[Wr])],T)},mathmlBuilder:function(g,T){var b=!1,A,C;g.base&&g.base.type==="horizBrace"&&(C=!!g.sup,C===g.base.isOver&&(b=!0,A=g.base.isOver)),g.base&&(g.base.type==="op"||g.base.type==="operatorname")&&(g.base.parentIsSupSub=!0);var L=[et(g.base,T)];g.sub&&L.push(et(g.sub,T)),g.sup&&L.push(et(g.sup,T));var H;if(b)H=A?"mover":"munder";else if(g.sub)if(g.sup){var K=g.base;K&&K.type==="op"&&K.limits&&T.style===Ye.DISPLAY||K&&K.type==="operatorname"&&K.alwaysHandleSupSub&&(T.style===Ye.DISPLAY||K.limits)?H="munderover":H="msubsup"}else{var X=g.base;X&&X.type==="op"&&X.limits&&(T.style===Ye.DISPLAY||X.alwaysHandleSupSub)||X&&X.type==="operatorname"&&X.alwaysHandleSupSub&&(X.limits||T.style===Ye.DISPLAY)?H="munder":H="msub"}else{var Te=g.base;Te&&Te.type==="op"&&Te.limits&&(T.style===Ye.DISPLAY||Te.alwaysHandleSupSub)||Te&&Te.type==="operatorname"&&Te.alwaysHandleSupSub&&(Te.limits||T.style===Ye.DISPLAY)?H="mover":H="msup"}var ve=new Se.MathNode(H,L);return ve}}),ai({type:"atom",htmlBuilder:function(g,T){return xe.mathsym(g.text,g.mode,T,["m"+g.family])},mathmlBuilder:function(g,T){var b=new Se.MathNode("mo",[ot(g.text,g.mode)]);if(g.family==="bin"){var A=Lr(g,T);A==="bold-italic"&&b.setAttribute("mathvariant",A)}else g.family==="punct"?b.setAttribute("separator","true"):(g.family==="open"||g.family==="close")&&b.setAttribute("stretchy","false");return b}});var P0={mi:"italic",mn:"normal",mtext:"normal"};ai({type:"mathord",htmlBuilder:function(g,T){return xe.makeOrd(g,T,"mathord")},mathmlBuilder:function(g,T){var b=new Se.MathNode("mi",[ot(g.text,g.mode,T)]),A=Lr(g,T)||"italic";return A!==P0[b.type]&&b.setAttribute("mathvariant",A),b}}),ai({type:"textord",htmlBuilder:function(g,T){return xe.makeOrd(g,T,"textord")},mathmlBuilder:function(g,T){var b=ot(g.text,g.mode,T),A=Lr(g,T)||"normal",C;return g.mode==="text"?C=new Se.MathNode("mtext",[b]):/[0-9]/.test(g.text)?C=new Se.MathNode("mn",[b]):g.text==="\\prime"?C=new Se.MathNode("mo",[b]):C=new Se.MathNode("mi",[b]),A!==P0[C.type]&&C.setAttribute("mathvariant",A),C}});var wp={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Dd={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};ai({type:"spacing",htmlBuilder:function(g,T){if(Dd.hasOwnProperty(g.text)){var b=Dd[g.text].className||"";if(g.mode==="text"){var A=xe.makeOrd(g,T,"textord");return A.classes.push(b),A}else return xe.makeSpan(["mspace",b],[xe.mathsym(g.text,g.mode,T)],T)}else{if(wp.hasOwnProperty(g.text))return xe.makeSpan(["mspace",wp[g.text]],[],T);throw new u('Unknown type of space "'+g.text+'"')}},mathmlBuilder:function(g,T){var b;if(Dd.hasOwnProperty(g.text))b=new Se.MathNode("mtext",[new Se.TextNode(" ")]);else{if(wp.hasOwnProperty(g.text))return new Se.MathNode("mspace");throw new u('Unknown type of space "'+g.text+'"')}return b}});var Sp=function(){var g=new Se.MathNode("mtd",[]);return g.setAttribute("width","50%"),g};ai({type:"tag",mathmlBuilder:function(g,T){var b=new Se.MathNode("mtable",[new Se.MathNode("mtr",[Sp(),new Se.MathNode("mtd",[at(g.body,T)]),Sp(),new Se.MathNode("mtd",[at(g.tag,T)])])]);return b.setAttribute("width","100%"),b}});var Dp={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},Cm={"\\textbf":"textbf","\\textmd":"textmd"},_m={"\\textit":"textit","\\textup":"textup"},Nm=function(g,T){var b=g.font;return b?Dp[b]?T.withTextFontFamily(Dp[b]):Cm[b]?T.withTextFontWeight(Cm[b]):T.withTextFontShape(_m[b]):T};Tt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(g,T){var b=g.parser,A=g.funcName,C=T[0];return{type:"text",mode:b.mode,body:Rn(C),font:A}},htmlBuilder:function(g,T){var b=Nm(g,T),A=Bn(g.body,b,!0);return xe.makeSpan(["mord","text"],xe.tryCombineChars(A),b)},mathmlBuilder:function(g,T){var b=Nm(g,T);return at(g.body,b)}}),Tt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(g,T){var b=g.parser;return{type:"underline",mode:b.mode,body:T[0]}},htmlBuilder:function(g,T){var b=j(g.body,T),A=xe.makeLineSpan("underline-line",T),C=T.fontMetrics().defaultRuleThickness,L=xe.makeVList({positionType:"top",positionData:b.height,children:[{type:"kern",size:C},{type:"elem",elem:A},{type:"kern",size:3*C},{type:"elem",elem:b}]},T);return xe.makeSpan(["mord","underline"],[L],T)},mathmlBuilder:function(g,T){var b=new Se.MathNode("mo",[new Se.TextNode("‾")]);b.setAttribute("stretchy","true");var A=new Se.MathNode("munder",[et(g.body,T),b]);return A.setAttribute("accentunder","true"),A}}),Tt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(g,T,b){throw new u("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(g,T){for(var b=xd(g),A=[],C=T.havingStyle(T.style.text()),L=0;L0&&(this.undefStack[this.undefStack.length-1][b]=A)}else{var H=this.undefStack[this.undefStack.length-1];H&&!H.hasOwnProperty(b)&&(H[b]=this.current[b])}this.current[b]=A},g})(),Bm={},Np=Bm;function Q(g,T){Bm[g]=T}Q("\\noexpand",function(g){var T=g.popToken();return g.isExpandable(T.text)&&(T.noexpand=!0,T.treatAsRelax=!0),{tokens:[T],numArgs:0}}),Q("\\expandafter",function(g){var T=g.popToken();return g.expandOnce(!0),{tokens:[T],numArgs:0}}),Q("\\@firstoftwo",function(g){var T=g.consumeArgs(2);return{tokens:T[0],numArgs:0}}),Q("\\@secondoftwo",function(g){var T=g.consumeArgs(2);return{tokens:T[1],numArgs:0}}),Q("\\@ifnextchar",function(g){var T=g.consumeArgs(3);g.consumeSpaces();var b=g.future();return T[0].length===1&&T[0][0].text===b.text?{tokens:T[1],numArgs:0}:{tokens:T[2],numArgs:0}}),Q("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Q("\\TextOrMath",function(g){var T=g.consumeArgs(2);return g.mode==="text"?{tokens:T[0],numArgs:0}:{tokens:T[1],numArgs:0}});var Im={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};Q("\\char",function(g){var T=g.popToken(),b,A="";if(T.text==="'")b=8,T=g.popToken();else if(T.text==='"')b=16,T=g.popToken();else if(T.text==="`")if(T=g.popToken(),T.text[0]==="\\")A=T.text.charCodeAt(1);else{if(T.text==="EOF")throw new u("\\char` missing argument");A=T.text.charCodeAt(0)}else b=10;if(b){if(A=Im[T.text],A==null||A>=b)throw new u("Invalid base-"+b+" digit "+T.text);for(var C;(C=Im[g.future().text])!=null&&C":"\\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"};Q("\\dots",function(g){var T="\\dotso",b=g.expandAfterFuture().text;return b in Fp?T=Fp[b]:(b.substr(0,4)==="\\not"||b in Dr.math&&O.contains(["bin","rel"],Dr.math[b].group))&&(T="\\dotsb"),T});var _d={")":!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};Q("\\dotso",function(g){var T=g.future().text;return T in _d?"\\ldots\\,":"\\ldots"}),Q("\\dotsc",function(g){var T=g.future().text;return T in _d&&T!==","?"\\ldots\\,":"\\ldots"}),Q("\\cdots",function(g){var T=g.future().text;return T in _d?"\\@cdots\\,":"\\@cdots"}),Q("\\dotsb","\\cdots"),Q("\\dotsm","\\cdots"),Q("\\dotsi","\\!\\cdots"),Q("\\dotsx","\\ldots\\,"),Q("\\DOTSI","\\relax"),Q("\\DOTSB","\\relax"),Q("\\DOTSX","\\relax"),Q("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),Q("\\,","\\tmspace+{3mu}{.1667em}"),Q("\\thinspace","\\,"),Q("\\>","\\mskip{4mu}"),Q("\\:","\\tmspace+{4mu}{.2222em}"),Q("\\medspace","\\:"),Q("\\;","\\tmspace+{5mu}{.2777em}"),Q("\\thickspace","\\;"),Q("\\!","\\tmspace-{3mu}{.1667em}"),Q("\\negthinspace","\\!"),Q("\\negmedspace","\\tmspace-{4mu}{.2222em}"),Q("\\negthickspace","\\tmspace-{5mu}{.277em}"),Q("\\enspace","\\kern.5em "),Q("\\enskip","\\hskip.5em\\relax"),Q("\\quad","\\hskip1em\\relax"),Q("\\qquad","\\hskip2em\\relax"),Q("\\tag","\\@ifstar\\tag@literal\\tag@paren"),Q("\\tag@paren","\\tag@literal{({#1})}"),Q("\\tag@literal",function(g){if(g.macros.get("\\df@tag"))throw new u("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),Q("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),Q("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),Q("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),Q("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),Q("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),Q("\\\\","\\newline"),Q("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var bc=wi["Main-Regular"][84][1]-.7*wi["Main-Regular"][65][1]+"em";Q("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+bc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Q("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+bc+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),Q("\\hspace","\\@ifstar\\@hspacer\\@hspace"),Q("\\@hspace","\\hskip #1\\relax"),Q("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),Q("\\ordinarycolon",":"),Q("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),Q("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),Q("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),Q("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),Q("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),Q("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),Q("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),Q("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),Q("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),Q("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),Q("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),Q("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),Q("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),Q("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),Q("∷","\\dblcolon"),Q("∹","\\eqcolon"),Q("≔","\\coloneqq"),Q("≕","\\eqqcolon"),Q("⩴","\\Coloneqq"),Q("\\ratio","\\vcentcolon"),Q("\\coloncolon","\\dblcolon"),Q("\\colonequals","\\coloneqq"),Q("\\coloncolonequals","\\Coloneqq"),Q("\\equalscolon","\\eqqcolon"),Q("\\equalscoloncolon","\\Eqqcolon"),Q("\\colonminus","\\coloneq"),Q("\\coloncolonminus","\\Coloneq"),Q("\\minuscolon","\\eqcolon"),Q("\\minuscoloncolon","\\Eqcolon"),Q("\\coloncolonapprox","\\Colonapprox"),Q("\\coloncolonsim","\\Colonsim"),Q("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Q("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Q("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),Q("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),Q("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),Q("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),Q("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),Q("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),Q("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),Q("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),Q("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),Q("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),Q("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),Q("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),Q("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),Q("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),Q("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),Q("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),Q("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),Q("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),Q("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),Q("\\imath","\\html@mathml{\\@imath}{ı}"),Q("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),Q("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),Q("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),Q("⟦","\\llbracket"),Q("⟧","\\rrbracket"),Q("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),Q("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),Q("⦃","\\lBrace"),Q("⦄","\\rBrace"),Q("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),Q("⦵","\\minuso"),Q("\\darr","\\downarrow"),Q("\\dArr","\\Downarrow"),Q("\\Darr","\\Downarrow"),Q("\\lang","\\langle"),Q("\\rang","\\rangle"),Q("\\uarr","\\uparrow"),Q("\\uArr","\\Uparrow"),Q("\\Uarr","\\Uparrow"),Q("\\N","\\mathbb{N}"),Q("\\R","\\mathbb{R}"),Q("\\Z","\\mathbb{Z}"),Q("\\alef","\\aleph"),Q("\\alefsym","\\aleph"),Q("\\Alpha","\\mathrm{A}"),Q("\\Beta","\\mathrm{B}"),Q("\\bull","\\bullet"),Q("\\Chi","\\mathrm{X}"),Q("\\clubs","\\clubsuit"),Q("\\cnums","\\mathbb{C}"),Q("\\Complex","\\mathbb{C}"),Q("\\Dagger","\\ddagger"),Q("\\diamonds","\\diamondsuit"),Q("\\empty","\\emptyset"),Q("\\Epsilon","\\mathrm{E}"),Q("\\Eta","\\mathrm{H}"),Q("\\exist","\\exists"),Q("\\harr","\\leftrightarrow"),Q("\\hArr","\\Leftrightarrow"),Q("\\Harr","\\Leftrightarrow"),Q("\\hearts","\\heartsuit"),Q("\\image","\\Im"),Q("\\infin","\\infty"),Q("\\Iota","\\mathrm{I}"),Q("\\isin","\\in"),Q("\\Kappa","\\mathrm{K}"),Q("\\larr","\\leftarrow"),Q("\\lArr","\\Leftarrow"),Q("\\Larr","\\Leftarrow"),Q("\\lrarr","\\leftrightarrow"),Q("\\lrArr","\\Leftrightarrow"),Q("\\Lrarr","\\Leftrightarrow"),Q("\\Mu","\\mathrm{M}"),Q("\\natnums","\\mathbb{N}"),Q("\\Nu","\\mathrm{N}"),Q("\\Omicron","\\mathrm{O}"),Q("\\plusmn","\\pm"),Q("\\rarr","\\rightarrow"),Q("\\rArr","\\Rightarrow"),Q("\\Rarr","\\Rightarrow"),Q("\\real","\\Re"),Q("\\reals","\\mathbb{R}"),Q("\\Reals","\\mathbb{R}"),Q("\\Rho","\\mathrm{P}"),Q("\\sdot","\\cdot"),Q("\\sect","\\S"),Q("\\spades","\\spadesuit"),Q("\\sub","\\subset"),Q("\\sube","\\subseteq"),Q("\\supe","\\supseteq"),Q("\\Tau","\\mathrm{T}"),Q("\\thetasym","\\vartheta"),Q("\\weierp","\\wp"),Q("\\Zeta","\\mathrm{Z}"),Q("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),Q("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),Q("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),Q("\\bra","\\mathinner{\\langle{#1}|}"),Q("\\ket","\\mathinner{|{#1}\\rangle}"),Q("\\braket","\\mathinner{\\langle{#1}\\rangle}"),Q("\\Bra","\\left\\langle#1\\right|"),Q("\\Ket","\\left|#1\\right\\rangle"),Q("\\blue","\\textcolor{##6495ed}{#1}"),Q("\\orange","\\textcolor{##ffa500}{#1}"),Q("\\pink","\\textcolor{##ff00af}{#1}"),Q("\\red","\\textcolor{##df0030}{#1}"),Q("\\green","\\textcolor{##28ae7b}{#1}"),Q("\\gray","\\textcolor{gray}{#1}"),Q("\\purple","\\textcolor{##9d38bd}{#1}"),Q("\\blueA","\\textcolor{##ccfaff}{#1}"),Q("\\blueB","\\textcolor{##80f6ff}{#1}"),Q("\\blueC","\\textcolor{##63d9ea}{#1}"),Q("\\blueD","\\textcolor{##11accd}{#1}"),Q("\\blueE","\\textcolor{##0c7f99}{#1}"),Q("\\tealA","\\textcolor{##94fff5}{#1}"),Q("\\tealB","\\textcolor{##26edd5}{#1}"),Q("\\tealC","\\textcolor{##01d1c1}{#1}"),Q("\\tealD","\\textcolor{##01a995}{#1}"),Q("\\tealE","\\textcolor{##208170}{#1}"),Q("\\greenA","\\textcolor{##b6ffb0}{#1}"),Q("\\greenB","\\textcolor{##8af281}{#1}"),Q("\\greenC","\\textcolor{##74cf70}{#1}"),Q("\\greenD","\\textcolor{##1fab54}{#1}"),Q("\\greenE","\\textcolor{##0d923f}{#1}"),Q("\\goldA","\\textcolor{##ffd0a9}{#1}"),Q("\\goldB","\\textcolor{##ffbb71}{#1}"),Q("\\goldC","\\textcolor{##ff9c39}{#1}"),Q("\\goldD","\\textcolor{##e07d10}{#1}"),Q("\\goldE","\\textcolor{##a75a05}{#1}"),Q("\\redA","\\textcolor{##fca9a9}{#1}"),Q("\\redB","\\textcolor{##ff8482}{#1}"),Q("\\redC","\\textcolor{##f9685d}{#1}"),Q("\\redD","\\textcolor{##e84d39}{#1}"),Q("\\redE","\\textcolor{##bc2612}{#1}"),Q("\\maroonA","\\textcolor{##ffbde0}{#1}"),Q("\\maroonB","\\textcolor{##ff92c6}{#1}"),Q("\\maroonC","\\textcolor{##ed5fa6}{#1}"),Q("\\maroonD","\\textcolor{##ca337c}{#1}"),Q("\\maroonE","\\textcolor{##9e034e}{#1}"),Q("\\purpleA","\\textcolor{##ddd7ff}{#1}"),Q("\\purpleB","\\textcolor{##c6b9fc}{#1}"),Q("\\purpleC","\\textcolor{##aa87ff}{#1}"),Q("\\purpleD","\\textcolor{##7854ab}{#1}"),Q("\\purpleE","\\textcolor{##543b78}{#1}"),Q("\\mintA","\\textcolor{##f5f9e8}{#1}"),Q("\\mintB","\\textcolor{##edf2df}{#1}"),Q("\\mintC","\\textcolor{##e0e5cc}{#1}"),Q("\\grayA","\\textcolor{##f6f7f7}{#1}"),Q("\\grayB","\\textcolor{##f0f1f2}{#1}"),Q("\\grayC","\\textcolor{##e3e5e6}{#1}"),Q("\\grayD","\\textcolor{##d6d8da}{#1}"),Q("\\grayE","\\textcolor{##babec2}{#1}"),Q("\\grayF","\\textcolor{##888d93}{#1}"),Q("\\grayG","\\textcolor{##626569}{#1}"),Q("\\grayH","\\textcolor{##3b3e40}{#1}"),Q("\\grayI","\\textcolor{##21242c}{#1}"),Q("\\kaBlue","\\textcolor{##314453}{#1}"),Q("\\kaGreen","\\textcolor{##71B307}{#1}");var Lm={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},zm=(function(){function g(b,A,C){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=A,this.expansionCount=0,this.feed(b),this.macros=new D5(Np,A.macros),this.mode=C,this.stack=[]}var T=g.prototype;return T.feed=function(b){this.lexer=new Rm(b,this.settings)},T.switchMode=function(b){this.mode=b},T.beginGroup=function(){this.macros.beginGroup()},T.endGroup=function(){this.macros.endGroup()},T.future=function(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},T.popToken=function(){return this.future(),this.stack.pop()},T.pushToken=function(b){this.stack.push(b)},T.pushTokens=function(b){var A;(A=this.stack).push.apply(A,b)},T.consumeSpaces=function(){for(;;){var b=this.future();if(b.text===" ")this.stack.pop();else break}},T.consumeArgs=function(b){for(var A=[],C=0;Cthis.settings.maxExpand)throw new u("Too many expansions: infinite loop or need to increase maxExpand setting");var H=L.tokens;if(L.numArgs){var K=this.consumeArgs(L.numArgs);H=H.slice();for(var X=H.length-1;X>=0;--X){var Te=H[X];if(Te.text==="#"){if(X===0)throw new u("Incomplete placeholder at end of macro body",Te);if(Te=H[--X],Te.text==="#")H.splice(X+1,1);else if(/^[1-9]$/.test(Te.text)){var ve;(ve=H).splice.apply(ve,[X,2].concat(K[+Te.text-1]))}else throw new u("Not a valid argument number",Te)}}}return this.pushTokens(H),H},T.expandAfterFuture=function(){return this.expandOnce(),this.future()},T.expandNextToken=function(){for(;;){var b=this.expandOnce();if(b instanceof a)if(b.text==="\\relax"||b.treatAsRelax)this.stack.pop();else return this.stack.pop()}throw new Error},T.expandMacro=function(b){return this.macros.has(b)?this.expandTokens([new a(b)]):void 0},T.expandTokens=function(b){var A=[],C=this.stack.length;for(this.pushTokens(b);this.stack.length>C;){var L=this.expandOnce(!0);L instanceof a&&(L.treatAsRelax&&(L.noexpand=!1,L.treatAsRelax=!1),A.push(this.stack.pop()))}return A},T.expandMacroAsText=function(b){var A=this.expandMacro(b);return A&&A.map(function(C){return C.text}).join("")},T._getExpansion=function(b){var A=this.macros.get(b);if(A==null)return A;var C=typeof A=="function"?A(this):A;if(typeof C=="string"){var L=0;if(C.indexOf("#")!==-1)for(var H=C.replace(/##/g,"");H.indexOf("#"+(L+1))!==-1;)++L;for(var K=new Rm(C,this.settings),X=[],Te=K.lex();Te.text!=="EOF";)X.push(Te),Te=K.lex();X.reverse();var ve={tokens:X,numArgs:L};return ve}return C},T.isDefined=function(b){return this.macros.has(b)||ys.hasOwnProperty(b)||Dr.math.hasOwnProperty(b)||Dr.text.hasOwnProperty(b)||Lm.hasOwnProperty(b)},T.isExpandable=function(b){var A=this.macros.get(b);return A!=null?typeof A=="string"||typeof A=="function"||!A.unexpandable:ys.hasOwnProperty(b)},g})(),Ym={"́":{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"}},Op={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",č:"č",ĉ:"ĉ",ċ:"ċ",ď:"ď",ḋ:"ḋ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ĺ:"ĺ",ľ:"ľ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ď:"Ď",Ḋ:"Ḋ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ĺ:"Ĺ",Ľ:"Ľ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ť:"Ť",Ṫ:"Ṫ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"},vc=(function(){function g(b,A){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 zm(b,A,this.mode),this.settings=A,this.leftrightDepth=0}var T=g.prototype;return T.expect=function(b,A){if(A===void 0&&(A=!0),this.fetch().text!==b)throw new u("Expected '"+b+"', got '"+this.fetch().text+"'",this.fetch());A&&this.consume()},T.consume=function(){this.nextToken=null},T.fetch=function(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},T.switchMode=function(b){this.mode=b,this.gullet.switchMode(b)},T.parse=function(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var b=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),b},T.parseExpression=function(b,A){for(var C=[];;){this.mode==="math"&&this.consumeSpaces();var L=this.fetch();if(g.endOfExpression.indexOf(L.text)!==-1||A&&L.text===A||b&&ys[L.text]&&ys[L.text].infix)break;var H=this.parseAtom(A);if(H){if(H.type==="internal")continue}else break;C.push(H)}return this.mode==="text"&&this.formLigatures(C),this.handleInfixNodes(C)},T.handleInfixNodes=function(b){for(var A=-1,C,L=0;L0&&!ve||X===0&&!ve&&this.mode==="math",Ke=this.parseGroupOfType("argument to '"+b+"'",Te,ve,L,Ne);if(!Ke){if(ve){K.push(null);continue}throw new u("Expected group after '"+b+"'",this.fetch())}(ve?K:H).push(Ke)}return{args:H,optArgs:K}},T.parseGroupOfType=function(b,A,C,L,H){switch(A){case"color":return H&&this.consumeSpaces(),this.parseColorGroup(C);case"size":return H&&this.consumeSpaces(),this.parseSizeGroup(C);case"url":return this.parseUrlGroup(C,H);case"math":case"text":return this.parseGroup(b,C,L,void 0,A,H);case"hbox":{var K=this.parseGroup(b,C,L,void 0,"text",H);if(!K)return K;var X={type:"styling",mode:K.mode,body:[K],style:"text"};return X}case"raw":{if(H&&this.consumeSpaces(),C&&this.fetch().text==="{")return null;var Te=this.parseStringGroup("raw",C,!0);if(Te)return{type:"raw",mode:"text",string:Te.text};throw new u("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(b,C,L,void 0,void 0,H);default:throw new u("Unknown group type as "+b,this.fetch())}},T.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},T.parseStringGroup=function(b,A,C){var L=A?"[":"{",H=A?"]":"}",K=this.fetch();if(K.text!==L){if(A)return null;if(C&&K.text!=="EOF"&&/[^{}[\]]/.test(K.text))return this.consume(),K}var X=this.mode;this.mode="text",this.expect(L);for(var Te="",ve=this.fetch(),Ne=0,Ke=ve,rt;(rt=this.fetch()).text!==H||C&&Ne>0;){switch(rt.text){case"EOF":throw new u("Unexpected end of input in "+b,ve.range(Ke,Te));case L:Ne++;break;case H:Ne--;break}Ke=rt,Te+=Ke.text,this.consume()}return this.expect(H),this.mode=X,ve.range(Ke,Te)},T.parseRegexGroup=function(b,A){var C=this.mode;this.mode="text";for(var L=this.fetch(),H=L,K="",X;(X=this.fetch()).text!=="EOF"&&b.test(K+X.text);)H=X,K+=H.text,this.consume();if(K==="")throw new u("Invalid "+A+": '"+L.text+"'",L);return this.mode=C,L.range(H,K)},T.parseColorGroup=function(b){var A=this.parseStringGroup("color",b);if(!A)return null;var C=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(A.text);if(!C)throw new u("Invalid color: '"+A.text+"'",A);var L=C[0];return/^[0-9a-f]{6}$/i.test(L)&&(L="#"+L),{type:"color-token",mode:this.mode,color:L}},T.parseSizeGroup=function(b){var A,C=!1;if(!b&&this.fetch().text!=="{"?A=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):A=this.parseStringGroup("size",b),!A)return null;!b&&A.text.length===0&&(A.text="0pt",C=!0);var L=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(A.text);if(!L)throw new u("Invalid size: '"+A.text+"'",A);var H={number:+(L[1]+L[2]),unit:L[3]};if(!Rl(H))throw new u("Invalid unit: '"+H.unit+"'",A);return{type:"size",mode:this.mode,value:H,isBlank:C}},T.parseUrlGroup=function(b,A){this.gullet.lexer.setCatcode("%",13);var C=this.parseStringGroup("url",b,!0);if(this.gullet.lexer.setCatcode("%",14),!C)return null;var L=C.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:L}},T.parseGroup=function(b,A,C,L,H,K){var X=this.mode;H&&this.switchMode(H),K&&this.consumeSpaces();var Te=this.fetch(),ve=Te.text,Ne;if(A?ve==="[":ve==="{"||ve==="\\begingroup"){this.consume();var Ke=g.endOfGroup[ve];this.gullet.beginGroup();var rt=this.parseExpression(!1,Ke),yt=this.fetch();this.expect(Ke),this.gullet.endGroup(),Ne={type:"ordgroup",mode:this.mode,loc:s.range(Te,yt),body:rt,semisimple:ve==="\\begingroup"||void 0}}else if(A)Ne=null;else if(Ne=this.parseFunction(L,b,C)||this.parseSymbol(),Ne==null&&ve[0]==="\\"&&!Lm.hasOwnProperty(ve)){if(this.settings.throwOnError)throw new u("Undefined control sequence: "+ve,Te);Ne=this.formatUnsupportedCmd(ve),this.consume()}return H&&this.switchMode(X),Ne},T.formLigatures=function(b){for(var A=b.length-1,C=0;C=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+A[0]+'" used in math mode',b);var X=Dr[this.mode][A].group,Te=s.range(b),ve;if(ur.hasOwnProperty(X)){var Ne=X;ve={type:"atom",mode:this.mode,family:Ne,loc:Te,text:A}}else ve={type:X,mode:this.mode,loc:Te,text:A};K=ve}else if(A.charCodeAt(0)>=128)this.settings.strict&&(jt(A.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+A[0]+'" used in math mode',b):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+A[0]+'"'+(" ("+A.charCodeAt(0)+")"),b)),K={type:"textord",mode:"text",loc:s.range(b),text:A};else return null;if(this.consume(),H)for(var Ke=0;Ke0?s.src.charCodeAt(a-1):-1,u=a+1<=c?s.src.charCodeAt(a+1):-1,(l===32||l===9||u>=48&&u<=57)&&(h=!1),(u===32||u===9)&&(d=!1),{can_open:d,can_close:h}}function n(s,a){var l,u,c,d,h;if(s.src[s.pos]!=="$")return!1;if(d=r(s,s.pos),!d.can_open)return a||(s.pending+="$"),s.pos+=1,!0;for(l=s.pos+1,u=l;(u=s.src.indexOf("$",u))!==-1;){for(h=u-1;s.src[h]==="\\";)h-=1;if((u-h)%2==1)break;u+=1}return u===-1?(a||(s.pending+="$"),s.pos=l,!0):u-l===0?(a||(s.pending+="$$"),s.pos=l+1,!0):(d=r(s,u),d.can_close?(a||(c=s.push("math_inline","math",0),c.markup="$",c.content=s.src.slice(l,u)),s.pos=u+1,!0):(a||(s.pending+="$"),s.pos=l,!0))}function i(s,a,l,u){var c,d,h,p,f=!1,m,v=s.bMarks[a]+s.tShift[a],w=s.eMarks[a];if(v+2>w||s.src.slice(v,v+2)!=="$$")return!1;if(v+=2,c=s.src.slice(v,w),u)return!0;for(c.trim().slice(-2)==="$$"&&(c=c.trim().slice(0,-2),f=!0),h=a;!f&&(h++,!(h>=l||(v=s.bMarks[h]+s.tShift[h],w=s.eMarks[h],v/g,">").replace(/"/g,""").replace(/'/g,"'")}return x6=function(s,a){a=a||{};var l=function(h){a.displayMode=!1;try{return e.renderToString(h,a)}catch(p){return a.throwOnError&&console.log(p),`${o(h)}`}},u=function(h,p){return l(h[p].content)},c=function(h){a.displayMode=!0;try{return"

"+e.renderToString(h,a)+"

"}catch(p){return a.throwOnError&&console.log(p),`

${o(h)}

`}},d=function(h,p){return c(h[p].content)+` `};s.inline.ruler.after("escape","math_inline",n),s.block.ruler.after("blockquote","math_block",i,{alt:["paragraph","reference","blockquote","list"]}),s.renderer.rules.math_inline=u,s.renderer.rules.math_block=d},x6}var Cue=kue();const _ue=D0(Cue),Nue=e=>e.use(_ue);function Fue(e,r){const[n,i,o]=e.slice(r-1,r+2);return n?.type==="paragraph_open"&&i.type==="inline"&&i.children&&i.children.length===3&&i.children[0].type==="link_open"&&i.children[0].attrGet("title")==="preview"&&i.children[1].type==="text"&&i.children[2].type==="link_close"&&o.type==="paragraph_close"}function Oue(e,r){e.splice(r+1,1),e.splice(r-1,1)}const Mue=e=>{function r({tokens:n}){for(let i=1,o=n.length;i{const n=r.tokens;for(let i=0;iu.nesting===1&&k6(u,"task-list-item")!==a);l>i&&Bue(n,l,r.Token)}return!1})}function k6(e,r){return e.attrGet("class")?.split(" ").includes(r)||!1}function Bue(e,r,n){const i=new n("bullet_list_close","ul",-1);i.block=!0;const o=new n("bullet_list_open","ul",1);o.attrSet("class","contains-task-list"),o.block=!0,o.markup=e[r].markup,e.splice(r,0,i,o)}function Iue(e,r,n){const i=e[r].level+1;for(let o=r+1;ozue(n,r)),e.renderer.rules.taskListItemCheckbox=n=>{const i=n[0],o=i.attrGet("checked")?'checked="" ':"",s=i.attrGet("disabled")?'disabled="" ':"",a=i.attrGet("line"),l=`id="${i.attrGet("id")}" `,u=a&&r.lineNumber?`data-line="${a}" `:"";return``},e.renderer.rules.taskListItemLabel_close=()=>"",e.renderer.rules.taskListItemLabel_open=n=>`