@solibo/solibo-ui 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,58 +1,56 @@
1
- "use strict";require('../../assets/index42.css');var E0=Object.defineProperty;var k0=(n,e,t)=>e in n?E0(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var Mt=(n,e,t)=>k0(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("react/jsx-runtime"),F=require("react"),eo=require("react-dom"),Mn=require("../../classix-5H4IWnMA.cjs"),N0=require("../file/index.cjs"),Pe=require("../button/index.cjs"),Ke=require("../icon/index.cjs"),to=require("../../index-CQlMdqOp.cjs"),A0=require("../toolbar/index.cjs");function O0(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const Zu=O0(F);function xn(n){return{}}const Cu={},D0={},Ua={},jt={},ln={},$n={},cn={},ur={},mi={},Wn={},Hn={},$e={},is={},ss={},I0={},za={},P0={},$a={},L0={},Wa={},Ha={},Zr={},M0={},Va={},Ga={},Ka={},R0={},B0={},F0={},no={},Ja={},j0={},Za={},Xa={},q0={},Eu={},os={},bi={},U0={},z0={},Cr={},Er={},$0={},W0={},H0={},He=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,V0=He&&"documentMode"in document?document.documentMode:null,Fe=He&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),Ct=He&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),Xr=!(!He||!("InputEvent"in window)||V0)&&"getTargetRanges"in new window.InputEvent("input"),ku=He&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),ir=He&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,G0=He&&/Android/.test(navigator.userAgent),Qa=He&&/^(?=.*Chrome).*/i.test(navigator.userAgent),K0=He&&G0&&Qa,as=He&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!Qa,sr=1,Nt=3,Ut=0,Ya=1,hn=2,J0=0,Z0=1,X0=2,Qr=4,Yr=8,ls=128,Q0=112|(3|Qr|Yr)|ls,cs=1,fs=2,ds=3,hs=4,ps=5,gs=6,Nu=ku||ir||as?" ":"​",lt=`
1
+ "use strict";require('../../assets/index42.css');var nm=Object.defineProperty;var rm=(n,e,t)=>e in n?nm(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t;var M=(n,e,t)=>rm(n,typeof e!="symbol"?e+"":e,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const K=require("react/jsx-runtime"),q=require("react"),Wd=require("react-dom"),hi=require("../../classix-5H4IWnMA.cjs"),im=require("../file/index.cjs"),yt=require("../button/index.cjs"),Lt=require("../icon/index.cjs"),oc=require("../../index-CQlMdqOp.cjs"),sm=require("../toolbar/index.cjs");function Hu(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const i of e)r.append("v",i);return t.search=r.toString(),new Error(`Minified Lexical error #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function P(n,...e){throw Hu(n,...e)}function Ga(n,...e){const t=new URL("https://lexical.dev/docs/error"),r=new URLSearchParams;r.append("code",n);for(const i of e)r.append("v",i);t.search=r.toString(),console.warn(`Minified Lexical warning #${n}; visit ${t.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function om(){return typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0}const It=om();function um(){return It&&"documentMode"in document?document.documentMode:null}const am=um();function lm(n){return It&&n.test(navigator.platform)}function Hi(n){return It&&n.test(navigator.userAgent)}const Vn=lm(/Mac|iPod|iPhone|iPad/),rn=Hi(/^(?!.*Seamonkey)(?=.*Firefox).*/i);function cm(){return!(!It||!("InputEvent"in window)||am)&&"getTargetRanges"in new window.InputEvent("input")}const Ir=cm();function fm(){return It&&!window.MSStream&&(/iPad|iPhone|iPod/.test(navigator.userAgent)||/Macintosh/.test(navigator.userAgent)&&navigator.maxTouchPoints>1)}const Ct=fm(),Hd=Hi(/Android/),Vi=Hi(/Version\/[\d.]+.*Safari/)&&!Hd,Ja=Hi(/^(?=.*Chrome).*/i),Xs=It&&Hd&&Ja,Gi=Hi(/AppleWebKit\/[\d.]+/)&&Vn&&!Ja;function dm(){return 2047}const hm=dm(),Ci=Vi||Ct||Gi?" ":"​",$n=`
2
2
 
3
- `,Y0=Ct?" ":Nu,el="֑-߿יִ-﷽ﹰ-ﻼ",tl="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",ef=new RegExp("^[^"+tl+"]*["+el+"]"),tf=new RegExp("^[^"+el+"]*["+tl+"]"),zt={bold:1,code:16,highlight:ls,italic:2,strikethrough:Qr,subscript:32,superscript:64,underline:Yr},nf={directionless:1,unmergeable:2},ro={center:fs,end:gs,justify:hs,left:cs,right:ds,start:ps},rf={[fs]:"center",[gs]:"end",[hs]:"justify",[cs]:"left",[ds]:"right",[ps]:"start"},uf={normal:0,segmented:2,token:1},sf={[J0]:"normal",[X0]:"segmented",[Z0]:"token"};function of(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var R=of(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function eu(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}const af=100;let yi=!1,ms=0;function lf(n){ms=n.timeStamp}function Xu(n,e,t){const r=n.nodeName==="BR",u=e.__lexicalLineBreak;return u&&(n===u||r&&n.previousSibling===u)||r&&Ou(n,t)!==void 0}function cf(n,e,t){const r=Re(t._window);let u=null,i=null;r!==null&&r.anchorNode===n&&(u=r.anchorOffset,i=r.focusOffset);const s=n.nodeValue;s!==null&&vs(e,s,u,i,!1)}function ff(n,e,t){if(I(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return e.nodeType===Nt&&t.isAttached()}function df(n,e,t,r){for(let u=n;u&&!Ef(u);u=ar(u)){const i=Ou(u,e);if(i!==void 0){const s=he(i,t);if(s)return ue(s)?void 0:[u,s]}else if(u===r)return[r,cl(t)]}}function nl(n,e,t){yi=!0;const r=performance.now()-ms>af;try{Ne(n,()=>{const u=$()||function(c){return c.getEditorState().read(()=>{const d=$();return d!==null?d.clone():null})}(n),i=new Map,s=n.getRootElement(),o=n._editorState,a=n._blockCursorElement;let l=!1,f="";for(let c=0;c<e.length;c++){const d=e[c],p=d.type,m=d.target,g=df(m,n,o,s);if(!g)continue;const[y,b]=g;if(p==="characterData")r&&P(b)&&ff(u,m,b)&&cf(m,b,n);else if(p==="childList"){l=!0;const v=d.addedNodes;for(let T=0;T<v.length;T++){const D=v[T],C=al(D),L=D.parentNode;if(L!=null&&D!==a&&C===null&&!Xu(D,L,n)){if(Ct){const H=D.innerText||D.nodeValue;H&&(f+=H)}L.removeChild(D)}}const w=d.removedNodes,S=w.length;if(S>0){let T=0;for(let D=0;D<S;D++){const C=w[D];(Xu(C,m,n)||a===C)&&(m.appendChild(C),T++)}S!==T&&i.set(y,b)}}}if(i.size>0)for(const[c,d]of i)d.reconcileObservedMutation(c,n);const h=t.takeRecords();if(h.length>0){for(let c=0;c<h.length;c++){const d=h[c],p=d.addedNodes,m=d.target;for(let g=0;g<p.length;g++){const y=p[g],b=y.parentNode;b==null||y.nodeName!=="BR"||Xu(y,m,n)||b.removeChild(y)}}t.takeRecords()}u!==null&&(l&&(u.dirty=!0,Me(u)),Ct&&pl(n)&&u.insertRawText(f))})}finally{yi=!1}}function rl(n){const e=n._observer;e!==null&&nl(n,e.takeRecords(),e)}function ul(n){(function(e){ms===0&&Iu(e).addEventListener("textInput",lf,!0)})(n),n._observer=new MutationObserver((e,t)=>{nl(n,e,t)})}function uo(n,e){const t=n.__mode,r=n.__format,u=n.__style,i=e.__mode,s=e.__format,o=e.__style;return!(t!==null&&t!==i||r!==null&&r!==s||u!==null&&u!==o)}function io(n,e){const t=n.mergeWithSibling(e),r=ae()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function so(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&P(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(uo(e,r)){r=io(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&P(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(uo(r,t)){r=io(r,t);break}break}t.remove()}}else r.remove()}function il(n){return oo(n.anchor),oo(n.focus),n}function oo(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,u;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),u=!0):(r=e.getChildAtIndex(t),u=!1),P(r)){n.set(r.__key,u?r.getTextContentSize():0,"text");break}if(!N(r))break;n.set(r.__key,u?r.getChildrenSize():0,"element")}}let hf=1;const pf=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function bs(n){const e=document.activeElement;if(e===null)return!1;const t=e.nodeName;return ue(pn(n))&&(t==="INPUT"||t==="TEXTAREA"||e.contentEditable==="true"&&Au(e)==null)}function or(n,e,t){const r=n.getRootElement();try{return r!==null&&r.contains(e)&&r.contains(t)&&e!==null&&!bs(e)&&sl(e)===n}catch{return!1}}function ys(n){return n instanceof Fu}function sl(n){let e=n;for(;e!=null;){const t=Au(e);if(ys(t))return t;e=ar(e)}return null}function Au(n){return n?n.__lexicalEditor:null}function Bt(n){return n.isToken()||n.isSegmented()}function gf(n){return n.nodeType===Nt}function tu(n){let e=n;for(;e!=null;){if(gf(e))return e;e=e.firstChild}return null}function nu(n,e,t){const r=zt[e];if(t!==null&&(n&r)==(t&r))return n;let u=n^r;return e==="subscript"?u&=-65:e==="superscript"&&(u&=-33),u}function ol(n){return P(n)||Et(n)||ue(n)}function mf(n,e){if(e!=null)return void(n.__key=e);Se(),Ll();const t=ae(),r=ht(),u=""+hf++;r._nodeMap.set(u,n),N(n)?t._dirtyElements.set(u,!0):t._dirtyLeaves.add(u),t._cloneNotNeeded.add(u),t._dirtyType=Ya,n.__key=u}function qt(n){const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),u=n.getPreviousSibling(),i=n.getNextSibling();if(u===null)if(i!==null){const s=i.getWritable();r.__first=i.__key,s.__prev=null}else r.__first=null;else{const s=u.getWritable();if(i!==null){const o=i.getWritable();o.__prev=s.__key,s.__next=o.__key}else s.__next=null;t.__prev=null}if(i===null)if(u!==null){const s=u.getWritable();r.__last=u.__key,s.__next=null}else r.__last=null;else{const s=i.getWritable();if(u!==null){const o=u.getWritable();o.__next=s.__key,s.__prev=o.__key}else s.__prev=null;t.__next=null}r.__size--,t.__parent=null}}function ru(n){Ll();const e=n.getLatest(),t=e.__parent,r=ht(),u=ae(),i=r._nodeMap,s=u._dirtyElements;t!==null&&function(a,l,f){let h=a;for(;h!==null;){if(f.has(h))return;const c=l.get(h);if(c===void 0)break;f.set(h,!1),h=c.__parent}}(t,i,s);const o=e.__key;u._dirtyType=Ya,N(n)?s.set(o,!0):u._dirtyLeaves.add(o)}function be(n){Se();const e=ae(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=he(t);r!==null&&r.getWritable()}if(n!==null){const r=he(n);r!==null&&r.getWritable()}}}function vt(){return hr()?null:ae()._compositionKey}function he(n,e){const t=(e||ht())._nodeMap.get(n);return t===void 0?null:t}function al(n,e){const t=Ou(n,ae());return t!==void 0?he(t,e):null}function Ou(n,e){return n[`__lexicalKey_${e._key}`]}function pn(n,e){let t=n;for(;t!=null;){const r=al(t,e);if(r!==null)return r;t=ar(t)}return null}function ll(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function ao(n){return n.read(()=>ce().getTextContent())}function ce(){return cl(ht())}function cl(n){return n._nodeMap.get("root")}function Me(n){Se();const e=ht();n!==null&&(n.dirty=!0,n.setCachedNodes(null)),e._selection=n}function on(n){const e=ae(),t=function(r,u){let i=r;for(;i!=null;){const s=Ou(i,u);if(s!==void 0)return s;i=ar(i)}return null}(n,e);return t===null?n===e.getRootElement()?he("root"):null:he(t)}function lo(n,e){return e?n.getTextContentSize():0}function fl(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function _s(n){const e=[];let t=n;for(;t!==null;)e.push(t),t=t._parentEditor;return e}function dl(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5)}function hl(n){return n.nodeType===Nt?n.nodeValue:null}function xs(n,e,t){const r=Re(e._window);if(r===null)return;const u=r.anchorNode;let{anchorOffset:i,focusOffset:s}=r;if(u!==null){let o=hl(u);const a=pn(u);if(o!==null&&P(a)){if(o===Nu&&t){const l=t.length;o=t,i=l,s=l}o!==null&&vs(a,o,i,s,n)}}}function vs(n,e,t,r,u){let i=n;if(i.isAttached()&&(u||!i.isDirty())){const s=i.isComposing();let o=e;(s||u)&&e[e.length-1]===Nu&&(o=e.slice(0,-1));const a=i.getTextContent();if(u||o!==a){if(o===""){if(be(null),ku||ir||as)i.remove();else{const m=ae();setTimeout(()=>{m.update(()=>{i.isAttached()&&i.remove()})},20)}return}const l=i.getParent(),f=dr(),h=i.getTextContentSize(),c=vt(),d=i.getKey();if(i.isToken()||c!==null&&d===c&&!s||I(f)&&(l!==null&&!l.canInsertTextBefore()&&f.anchor.offset===0||f.anchor.key===n.__key&&f.anchor.offset===0&&!i.canInsertTextBefore()&&!s||f.focus.key===n.__key&&f.focus.offset===h&&!i.canInsertTextAfter()&&!s))return void i.markDirty();const p=$();if(!I(p)||t===null||r===null)return void i.setTextContent(o);if(p.setTextNodeRange(i,t,i,r),i.isSegmented()){const m=le(i.getTextContent());i.replace(m),i=m}i.setTextContent(o)}}}function bf(n,e){if(e.isSegmented())return!0;if(!n.isCollapsed())return!1;const t=n.anchor.offset,r=e.getParentOrThrow(),u=e.isToken();return t===0?!e.canInsertTextBefore()||!r.canInsertTextBefore()&&!e.isComposing()||u||function(i){const s=i.getPreviousSibling();return(P(s)||N(s)&&s.isInline())&&!s.canInsertTextAfter()}(e):t===e.getTextContentSize()&&(!e.canInsertTextAfter()||!r.canInsertTextAfter()&&!e.isComposing()||u)}function co(n){return n==="ArrowLeft"}function fo(n){return n==="ArrowRight"}function Pn(n,e){return Fe?n:e}function ho(n){return n==="Enter"}function En(n){return n==="Backspace"}function kn(n){return n==="Delete"}function po(n,e,t){return n.toLowerCase()==="a"&&Pn(e,t)}function yf(){const n=ce();Me(il(n.select(0,n.getChildrenSize())))}function Rn(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const u=n[e];if(typeof u=="string"){const i=eu(u);return t[e]=i,i}return u}function ws(n,e,t,r,u){if(t.size===0)return;const i=r.__type,s=r.__key,o=e.get(i);o===void 0&&R(33,i);const a=o.klass;let l=n.get(a);l===void 0&&(l=new Map,n.set(a,l));const f=l.get(s),h=f==="destroyed"&&u==="created";(f===void 0||h)&&l.set(s,h?"updated":u)}function go(n,e,t){const r=n.getParent();let u=t,i=n;return r!==null&&(e&&t===0?(u=i.getIndexWithinParent(),i=r):e||t!==i.getChildrenSize()||(u=i.getIndexWithinParent()+1,i=r)),i.getChildAtIndex(e?u-1:u)}function Vn(n,e){const t=n.offset;if(n.type==="element")return go(n.getNode(),e,t);{const r=n.getNode();if(e&&t===0||!e&&t===r.getTextContentSize()){const u=e?r.getPreviousSibling():r.getNextSibling();return u===null?go(r.getParentOrThrow(),e,r.getIndexWithinParent()+(e?0:1)):u}}return null}function pl(n){const e=Iu(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function U(n,e,t){return Bl(n,e,t)}function Du(n){return!xe(n)&&!n.isLastChild()&&!n.isInline()}function uu(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&R(75,e),t}function ar(n){const e=n.assignedSlot||n.parentElement;return e!==null&&e.nodeType===11?e.host:e}function Bn(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function Iu(n){const e=n._window;return e===null&&R(78),e}function _f(n){let e=n.getParentOrThrow();for(;e!==null;){if(ct(e))return e;e=e.getParentOrThrow()}return e}function ct(n){return xe(n)||N(n)&&n.isShadowRoot()}function At(n){const e=ae(),t=n.constructor.getType(),r=e._nodes.get(t);r===void 0&&R(200,n.constructor.name,t);const{replace:u,replaceWithKlass:i}=r;if(u!==null){const s=u(n),o=s.constructor;return i!==null?s instanceof i||R(201,i.name,i.getType(),o.name,o.getType(),n.constructor.name,t):s instanceof n.constructor&&o!==n.constructor||R(202,o.name,o.getType(),n.constructor.name,t),s.__key===n.__key&&R(203,n.constructor.name,t,o.name,o.getType()),s}return n}function Qu(n,e){!xe(n.getParent())||N(e)||ue(e)||R(99)}function Yu(n){return(ue(n)||N(n)&&!n.canBeEmpty())&&!n.isInline()}function Ss(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function xf(n,e,t){let r=n._blockCursorElement;if(I(t)&&t.isCollapsed()&&t.anchor.type==="element"&&e.contains(document.activeElement)){const u=t.anchor,i=u.getNode(),s=u.offset;let o=!1,a=null;if(s===i.getChildrenSize())Yu(i.getChildAtIndex(s-1))&&(o=!0);else{const l=i.getChildAtIndex(s);if(l!==null&&Yu(l)){const f=l.getPreviousSibling();(f===null||Yu(f))&&(o=!0,a=n.getElementByKey(l.__key))}}if(o){const l=n.getElementByKey(i.__key);return r===null&&(n._blockCursorElement=r=function(f){const h=f.theme,c=document.createElement("div");c.contentEditable="false",c.setAttribute("data-lexical-cursor","true");let d=h.blockCursor;if(d!==void 0){if(typeof d=="string"){const p=eu(d);d=h.blockCursor=p}d!==void 0&&c.classList.add(...d)}return c}(n._config)),e.style.caretColor="transparent",void(a===null?l.appendChild(r):l.insertBefore(r,a))}}r!==null&&Ss(r,n,e)}function Re(n){return He?(n||window).getSelection():null}function vf(n){return Jt(n)&&n.tagName==="A"}function Jt(n){return n.nodeType===1}function mo(n){return n.nodeType===11}function _i(n){const e=new RegExp(/^(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|#text)$/,"i");return n.nodeName.match(e)!==null}function iu(n){const e=new RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return n.nodeName.match(e)!==null}function _t(n){if(ue(n)&&!n.isInline())return!0;if(!N(n)||ct(n))return!1;const e=n.getFirstChild(),t=e===null||Et(e)||P(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function Nn(n,e){let t=n;for(;t!==null&&t.getParent()!==null&&!e(t);)t=t.getParentOrThrow();return e(t)?t:null}function wf(){return ae()}const bo=new WeakMap,Sf=new Map;function Tf(n){if(!n._readOnly&&n.isEmpty())return Sf;n._readOnly||R(192);let e=bo.get(n);if(!e){e=new Map,bo.set(n,e);for(const[t,r]of n._nodeMap){const u=r.__type;let i=e.get(u);i||(i=new Map,e.set(u,i)),i.set(t,r)}}return e}function Ts(n){const e=n.constructor.clone(n);return e.afterCloneFrom(n),e}function Cf(n,e){const t=(parseInt(n.style.paddingInlineStart,10)||0)/40;e.setIndent(t)}function Ef(n){return n.__lexicalUnmanaged===!0}function gl(n,e,t,r,u,i){let s=n.getFirstChild();for(;s!==null;){const o=s.__key;s.__parent===e&&(N(s)&&gl(s,o,t,r,u,i),t.has(o)||i.delete(o),u.push(o)),s=s.getNextSibling()}}let kt,ve,Gn,Pu,xi,vi,$t,We,wi,Kn,de="",_e="",Ze=null,je="",ot="",ml=!1,Jn=!1,$r=null;function su(n,e){const t=$t.get(n);if(e!==null){const r=Ci(n);r.parentNode===e&&e.removeChild(r)}if(We.has(n)||ve._keyToDOMMap.delete(n),N(t)){const r=au(t,$t);Si(r,0,r.length-1,null)}t!==void 0&&ws(Kn,Gn,Pu,t,"destroyed")}function Si(n,e,t,r){let u=e;for(;u<=t;++u){const i=n[u];i!==void 0&&su(i,r)}}function Rt(n,e){n.setProperty("text-align",e)}const kf="40px";function bl(n,e){const t=kt.theme.indent;if(typeof t=="string"){const u=n.classList.contains(t);e>0&&!u?n.classList.add(t):e<1&&u&&n.classList.remove(t)}const r=getComputedStyle(n).getPropertyValue("--lexical-indent-base-value")||kf;n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * ${r})`)}function yl(n,e){const t=n.style;e===0?Rt(t,""):e===cs?Rt(t,"left"):e===fs?Rt(t,"center"):e===ds?Rt(t,"right"):e===hs?Rt(t,"justify"):e===ps?Rt(t,"start"):e===gs&&Rt(t,"end")}function ou(n,e){const t=We.get(n);t===void 0&&R(60);const r=t.createDOM(kt,ve);if(function(u,i,s){const o=s._keyToDOMMap;(function(a,l,f){a[`__lexicalKey_${l._key}`]=f})(i,s,u),o.set(u,i)}(n,r,ve),P(t)?r.setAttribute("data-lexical-text","true"):ue(t)&&r.setAttribute("data-lexical-decorator","true"),N(t)){const u=t.__indent,i=t.__size;if(u!==0&&bl(r,u),i!==0){const o=i-1;(function(a,l,f,h){const c=_e;_e="",Ti(a,f,0,l,f.getDOMSlot(h)),xl(f,h),_e=c})(au(t,We),o,t,r)}const s=t.__format;s!==0&&yl(r,s),t.isInline()||_l(null,t,r),Du(t)&&(de+=lt,ot+=lt)}else{const u=t.getTextContent();if(ue(t)){const i=t.decorate(ve,kt);i!==null&&vl(n,i),r.contentEditable="false"}else P(t)&&(t.isDirectionless()||(_e+=u));de+=u,ot+=u}return e!==null&&e.insertChild(r),ws(Kn,Gn,Pu,t,"created"),r}function Ti(n,e,t,r,u){const i=de;de="";let s=t;for(;s<=r;++s){ou(n[s],u);const o=We.get(n[s]);o!==null&&P(o)&&(Ze===null&&(Ze=o.getFormat()),je===""&&(je=o.getStyle()))}Du(e)&&(de+=lt),u.element.__lexicalTextContent=de,de=i+de}function yo(n,e){if(n){const t=n.__last;if(t){const r=e.get(t);if(r)return Et(r)?"line-break":ue(r)&&r.isInline()?"decorator":null}return"empty"}return null}function _l(n,e,t){const r=yo(n,$t),u=yo(e,We);r!==u&&e.getDOMSlot(t).setManagedLineBreak(u)}function xl(n,e){const t=e.__lexicalDirTextContent||"",r=e.__lexicalDir||"";if(t!==_e||r!==$r){const i=_e==="",s=i?$r:(u=_e,ef.test(u)?"rtl":tf.test(u)?"ltr":null);if(s!==r){const o=e.classList,a=kt.theme;let l=r!==null?a[r]:void 0,f=s!==null?a[s]:void 0;if(l!==void 0){if(typeof l=="string"){const h=eu(l);l=a[r]=h}o.remove(...l)}if(s===null||i&&s==="ltr")e.removeAttribute("dir");else{if(f!==void 0){if(typeof f=="string"){const h=eu(f);f=a[s]=h}f!==void 0&&o.add(...f)}e.dir=s}Jn||(n.getWritable().__dir=s)}$r=s,e.__lexicalDirTextContent=_e,e.__lexicalDir=s}var u}function Nf(n,e,t){const r=_e;var u;_e="",Ze=null,je="",function(i,s,o){const a=de,l=i.__size,f=s.__size;de="";const h=o.element;if(l===1&&f===1){const c=i.__first,d=s.__first;if(c===d)Ln(c,h);else{const m=Ci(c),g=ou(d,null);try{h.replaceChild(g,m)}catch(y){if(typeof y=="object"&&y!=null){const b=`${y.toString()} Parent: ${h.tagName}, new child: {tag: ${g.tagName} key: ${d}}, old child: {tag: ${m.tagName}, key: ${c}}.`;throw new Error(b)}throw y}su(c,null)}const p=We.get(d);P(p)&&(Ze===null&&(Ze=p.getFormat()),je===""&&(je=p.getStyle()))}else{const c=au(i,$t),d=au(s,We);if(c.length!==l&&R(227),d.length!==f&&R(228),l===0)f!==0&&Ti(d,s,0,f-1,o);else if(f===0){if(l!==0){const p=o.after==null&&o.before==null&&o.element.__lexicalLineBreak==null;Si(c,0,l-1,p?null:h),p&&(h.textContent="")}}else(function(p,m,g,y,b,v){const w=y-1,S=b-1;let T,D,C=v.getFirstChild(),L=0,H=0;for(;L<=w&&H<=S;){const A=m[L],B=g[H];if(A===B)C=ei(Ln(B,v.element)),L++,H++;else{T===void 0&&(T=new Set(m)),D===void 0&&(D=new Set(g));const O=D.has(A),E=T.has(B);if(O)if(E){const z=uu(ve,B);z===C?C=ei(Ln(B,v.element)):(v.withBefore(C).insertChild(z),Ln(B,v.element)),L++,H++}else ou(B,v.withBefore(C)),H++;else C=ei(Ci(A)),su(A,v.element),L++}const _=We.get(B);_!==null&&P(_)&&(Ze===null&&(Ze=_.getFormat()),je===""&&(je=_.getStyle()))}const x=L>w,k=H>S;if(x&&!k){const A=g[S+1],B=A===void 0?null:ve.getElementByKey(A);Ti(g,p,H,S,v.withBefore(B))}else k&&!x&&Si(m,L,w,v.element)})(s,c,d,l,f,o)}Du(s)&&(de+=lt),h.__lexicalTextContent=de,de=a+de}(n,e,e.getDOMSlot(t)),xl(e,t),Ht(u=e)&&Ze!=null&&Ze!==u.__textFormat&&!Jn&&(u.setTextFormat(Ze),u.setTextStyle(je)),function(i){Ht(i)&&je!==""&&je!==i.__textStyle&&!Jn&&i.setTextStyle(je)}(e),_e=r}function au(n,e){const t=[];let r=n.__first;for(;r!==null;){const u=e.get(r);u===void 0&&R(101),t.push(r),r=u.__next}return t}function Ln(n,e){const t=$t.get(n);let r=We.get(n);t!==void 0&&r!==void 0||R(61);const u=ml||vi.has(n)||xi.has(n),i=uu(ve,n);if(t===r&&!u){if(N(t)){const s=i.__lexicalTextContent;s!==void 0&&(de+=s,ot+=s);const o=i.__lexicalDirTextContent;o!==void 0&&(_e+=o)}else{const s=t.getTextContent();P(t)&&!t.isDirectionless()&&(_e+=s),ot+=s,de+=s}return i}if(t!==r&&u&&ws(Kn,Gn,Pu,r,"updated"),r.updateDOM(t,i,kt)){const s=ou(n,null);return e===null&&R(62),e.replaceChild(s,i),su(n,null),s}if(N(t)&&N(r)){const s=r.__indent;s!==t.__indent&&bl(i,s);const o=r.__format;o!==t.__format&&yl(i,o),u&&(Nf(t,r,i),xe(r)||r.isInline()||_l(t,r,i)),Du(r)&&(de+=lt,ot+=lt)}else{const s=r.getTextContent();if(ue(r)){const o=r.decorate(ve,kt);o!==null&&vl(n,o)}else P(r)&&!r.isDirectionless()&&(_e+=s);de+=s,ot+=s}if(!Jn&&xe(r)&&r.__cachedText!==ot){const s=r.getWritable();s.__cachedText=ot,r=s}return i}function vl(n,e){let t=ve._pendingDecorators;const r=ve._decorators;if(t===null){if(r[n]===e)return;t=ll(ve)}t[n]=e}function ei(n){let e=n.nextSibling;return e!==null&&e===ve._blockCursorElement&&(e=e.nextSibling),e}function Af(n,e,t,r,u,i){de="",ot="",_e="",ml=r===hn,$r=null,ve=t,kt=t._config,Gn=t._nodes,Pu=ve._listeners.mutation,xi=u,vi=i,$t=n._nodeMap,We=e._nodeMap,Jn=e._readOnly,wi=new Map(t._keyToDOMMap);const s=new Map;return Kn=s,Ln("root",null),ve=void 0,Gn=void 0,xi=void 0,vi=void 0,$t=void 0,We=void 0,kt=void 0,wi=void 0,Kn=void 0,s}function Ci(n){const e=wi.get(n);return e===void 0&&R(75,n),e}const rt=Object.freeze({}),Ei=30,ki=[["keydown",function(n,e){if(Fn=n.timeStamp,wl=n.key,e.isComposing())return;const{key:t,shiftKey:r,ctrlKey:u,metaKey:i,altKey:s}=n;if(!U(e,I0,n)&&t!=null){if(function(o,a,l,f){return fo(o)&&!a&&!f&&!l}(t,u,s,i))U(e,za,n);else if(function(o,a,l,f,h){return fo(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))U(e,P0,n);else if(function(o,a,l,f){return co(o)&&!a&&!f&&!l}(t,u,s,i))U(e,$a,n);else if(function(o,a,l,f,h){return co(o)&&!f&&!l&&(a||h)}(t,u,r,s,i))U(e,L0,n);else if(function(o,a,l){return function(f){return f==="ArrowUp"}(o)&&!a&&!l}(t,u,i))U(e,Wa,n);else if(function(o,a,l){return function(f){return f==="ArrowDown"}(o)&&!a&&!l}(t,u,i))U(e,Ha,n);else if(function(o,a){return ho(o)&&a}(t,r))jn=!0,U(e,Zr,n);else if(function(o){return o===" "}(t))U(e,M0,n);else if(function(o,a){return Fe&&a&&o.toLowerCase()==="o"}(t,u))n.preventDefault(),jn=!0,U(e,ln,!0);else if(function(o,a){return ho(o)&&!a}(t,r))jn=!1,U(e,Zr,n);else if(function(o,a,l,f){return Fe?!a&&!l&&(En(o)||o.toLowerCase()==="h"&&f):!(f||a||l)&&En(o)}(t,s,i,u))En(t)?U(e,Va,n):(n.preventDefault(),U(e,jt,!0));else if(function(o){return o==="Escape"}(t))U(e,Ga,n);else if(function(o,a,l,f,h){return Fe?!(l||f||h)&&(kn(o)||o.toLowerCase()==="d"&&a):!(a||f||h)&&kn(o)}(t,u,r,s,i))kn(t)?U(e,Ka,n):(n.preventDefault(),U(e,jt,!1));else if(function(o,a,l){return En(o)&&(Fe?a:l)}(t,s,u))n.preventDefault(),U(e,Wn,!0);else if(function(o,a,l){return kn(o)&&(Fe?a:l)}(t,s,u))n.preventDefault(),U(e,Wn,!1);else if(function(o,a){return Fe&&a&&En(o)}(t,i))n.preventDefault(),U(e,Hn,!0);else if(function(o,a){return Fe&&a&&kn(o)}(t,i))n.preventDefault(),U(e,Hn,!1);else if(function(o,a,l,f){return o.toLowerCase()==="b"&&!a&&Pn(l,f)}(t,s,i,u))n.preventDefault(),U(e,$e,"bold");else if(function(o,a,l,f){return o.toLowerCase()==="u"&&!a&&Pn(l,f)}(t,s,i,u))n.preventDefault(),U(e,$e,"underline");else if(function(o,a,l,f){return o.toLowerCase()==="i"&&!a&&Pn(l,f)}(t,s,i,u))n.preventDefault(),U(e,$e,"italic");else if(function(o,a,l,f){return o==="Tab"&&!a&&!l&&!f}(t,s,u,i))U(e,R0,n);else if(function(o,a,l,f){return o.toLowerCase()==="z"&&!a&&Pn(l,f)}(t,r,i,u))n.preventDefault(),U(e,is,void 0);else if(function(o,a,l,f){return Fe?o.toLowerCase()==="z"&&l&&a:o.toLowerCase()==="y"&&f||o.toLowerCase()==="z"&&f&&a}(t,r,i,u))n.preventDefault(),U(e,ss,void 0);else{const o=e._editorState._selection;o===null||I(o)?!Ct&&po(t,i,u)&&(n.preventDefault(),U(e,bi,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="c"&&(Fe?f:h)}(t,r,i,u)?(n.preventDefault(),U(e,Eu,n)):function(a,l,f,h){return!l&&a.toLowerCase()==="x"&&(Fe?f:h)}(t,r,i,u)?(n.preventDefault(),U(e,os,n)):po(t,i,u)&&(n.preventDefault(),U(e,bi,n))}(function(o,a,l,f){return o||a||l||f})(u,r,s,i)&&U(e,H0,n)}}],["pointerdown",function(n,e){const t=n.target,r=n.pointerType;t instanceof Node&&r!=="touch"&&Ne(e,()=>{ue(pn(t))||(Ai=!0)})}],["compositionstart",function(n,e){Ne(e,()=>{const t=$();if(I(t)&&!e.isComposing()){const r=t.anchor,u=t.anchor.getNode();be(r.key),(n.timeStamp<Fn+Ei||r.type==="element"||!t.isCollapsed()||u.getFormat()!==t.format||P(u)&&u.getStyle()!==t.style)&&U(e,cn,Y0)}})}],["compositionend",function(n,e){Ct?An=!0:Ne(e,()=>{ti(e,n.data)})}],["input",function(n,e){n.stopPropagation(),Ne(e,()=>{const t=$(),r=n.data,u=El(n);if(r!=null&&I(t)&&Cl(t,u,r,n.timeStamp,!1)){An&&(ti(e,r),An=!1);const i=t.anchor.getNode(),s=Re(e._window);if(s===null)return;const o=t.isBackward(),a=o?t.anchor.offset:t.focus.offset,l=o?t.focus.offset:t.anchor.offset;Xr&&!t.isCollapsed()&&P(i)&&s.anchorNode!==null&&i.getTextContent().slice(0,a)+r+i.getTextContent().slice(a+l)===hl(s.anchorNode)||U(e,cn,r);const f=r.length;Ct&&f>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(t.anchor.offset-=f),ku||ir||as||!e.isComposing()||(Fn=0,be(null))}else xs(!1,e,r!==null?r:void 0),An&&(ti(e,r||void 0),An=!1);Se(),rl(ae())}),rn=null}],["click",function(n,e){Ne(e,()=>{const t=$(),r=Re(e._window),u=dr();if(r){if(I(t)){const i=t.anchor,s=i.getNode();i.type==="element"&&i.offset===0&&t.isCollapsed()&&!xe(s)&&ce().getChildrenSize()===1&&s.getTopLevelElementOrThrow().isEmpty()&&u!==null&&t.is(u)?(r.removeAllRanges(),t.dirty=!0):n.detail===3&&!t.isCollapsed()&&s!==t.focus.getNode()&&(N(s)?s.select(0):s.getParentOrThrow().select(0))}else if(n.pointerType==="touch"){const i=r.anchorNode;if(i!==null){const s=i.nodeType;(s===sr||s===Nt)&&Me(Es(u,r,e,n))}}}U(e,Ua,n)})}],["cut",rt],["copy",rt],["dragstart",rt],["dragover",rt],["dragend",rt],["paste",rt],["focus",rt],["blur",rt],["drop",rt]];Xr&&ki.push(["beforeinput",(n,e)=>function(t,r){const u=t.inputType,i=El(t);u==="deleteCompositionText"||Ct&&pl(r)||u!=="insertCompositionText"&&Ne(r,()=>{const s=$();if(u==="deleteContentBackward"){if(s===null){const d=dr();if(!I(d))return;Me(d.clone())}if(I(s)){const d=s.anchor.key===s.focus.key;if(o=t.timeStamp,wl==="MediaLast"&&o<Fn+Ei&&r.isComposing()&&d){if(be(null),Fn=0,setTimeout(()=>{Ne(r,()=>{be(null)})},Ei),I(s)){const p=s.anchor.getNode();p.markDirty(),s.format=p.getFormat(),P(p)||R(142),s.style=p.getStyle()}}else{be(null),t.preventDefault();const p=s.anchor.getNode(),m=p.getTextContent(),g=p.canInsertTextAfter(),y=s.anchor.offset===0&&s.focus.offset===m.length;K0&&d&&!y&&g||U(r,jt,!0)}return}}var o;if(!I(s))return;const a=t.data;rn!==null&&xs(!1,r,rn),s.dirty&&rn===null||!s.isCollapsed()||xe(s.anchor.getNode())||i===null||s.applyDOMRange(i),rn=null;const l=s.anchor,f=s.focus,h=l.getNode(),c=f.getNode();if(u!=="insertText"&&u!=="insertTranspose")switch(t.preventDefault(),u){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":U(r,cn,t);break;case"insertFromComposition":be(null),U(r,cn,t);break;case"insertLineBreak":be(null),U(r,ln,!1);break;case"insertParagraph":be(null),jn&&!ir?(jn=!1,U(r,ln,!1)):U(r,$n,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":U(r,ur,t);break;case"deleteByComposition":(function(d,p){return d!==p||N(d)||N(p)||!d.isToken()||!p.isToken()})(h,c)&&U(r,mi,t);break;case"deleteByDrag":case"deleteByCut":U(r,mi,t);break;case"deleteContent":U(r,jt,!1);break;case"deleteWordBackward":U(r,Wn,!0);break;case"deleteWordForward":U(r,Wn,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":U(r,Hn,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":U(r,Hn,!1);break;case"formatStrikeThrough":U(r,$e,"strikethrough");break;case"formatBold":U(r,$e,"bold");break;case"formatItalic":U(r,$e,"italic");break;case"formatUnderline":U(r,$e,"underline");break;case"historyUndo":U(r,is,void 0);break;case"historyRedo":U(r,ss,void 0)}else{if(a===`
4
- `)t.preventDefault(),U(r,ln,!1);else if(a===lt)t.preventDefault(),U(r,$n,void 0);else if(a==null&&t.dataTransfer){const d=t.dataTransfer.getData("text/plain");t.preventDefault(),s.insertRawText(d)}else a!=null&&Cl(s,i,a,t.timeStamp,!0)?(t.preventDefault(),U(r,cn,a)):rn=a;Sl=t.timeStamp}})}(n,e)]);let Fn=0,wl=null,Sl=0,rn=null;const lu=new WeakMap;let Ni=!1,Ai=!1,jn=!1,An=!1,Tl=[0,"",0,"root",0];function Cl(n,e,t,r,u){const i=n.anchor,s=n.focus,o=i.getNode(),a=ae(),l=Re(a._window),f=l!==null?l.anchorNode:null,h=i.key,c=a.getElementByKey(h),d=t.length;return h!==s.key||!P(o)||(!u&&(!Xr||Sl<r+50)||o.isDirty()&&d<2||fl(t))&&i.offset!==s.offset&&!o.isComposing()||Bt(o)||o.isDirty()&&d>1||(u||!Xr)&&c!==null&&!o.isComposing()&&f!==tu(c)||l!==null&&e!==null&&(!e.collapsed||e.startContainer!==l.anchorNode||e.startOffset!==l.anchorOffset)||o.getFormat()!==n.format||o.getStyle()!==n.style||bf(n,o)}function _o(n,e){return n!==null&&n.nodeValue!==null&&n.nodeType===Nt&&e!==0&&e!==n.nodeValue.length}function xo(n,e,t){const{anchorNode:r,anchorOffset:u,focusNode:i,focusOffset:s}=n;Ni&&(Ni=!1,_o(r,u)&&_o(i,s))||Ne(e,()=>{if(!t)return void Me(null);if(!or(e,r,i))return;const o=$();if(I(o)){const a=o.anchor,l=a.getNode();if(o.isCollapsed()){n.type==="Range"&&n.anchorNode===n.focusNode&&(o.dirty=!0);const f=Iu(e).event,h=f?f.timeStamp:performance.now(),[c,d,p,m,g]=Tl,y=ce(),b=e.isComposing()===!1&&y.getTextContent()==="";if(h<g+200&&a.offset===p&&a.key===m)o.format=c,o.style=d;else if(a.type==="text")P(l)||R(141),o.format=l.getFormat(),o.style=l.getStyle();else if(a.type==="element"&&!b){const v=a.getNode();o.style="",v instanceof vn&&v.getChildrenSize()===0?(o.format=v.getTextFormat(),o.style=v.getTextStyle()):o.format=0}}else{const f=a.key,h=o.focus.key,c=o.getNodes(),d=c.length,p=o.isBackward(),m=p?s:u,g=p?u:s,y=p?h:f,b=p?f:h;let v=Q0,w=!1;for(let S=0;S<d;S++){const T=c[S],D=T.getTextContentSize();if(P(T)&&D!==0&&!(S===0&&T.__key===y&&m===D||S===d-1&&T.__key===b&&g===0)&&(w=!0,v&=T.getFormat(),v===0))break}o.format=w?v:0}}U(e,Cu,void 0)})}function El(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function ti(n,e){const t=n._compositionKey;if(be(null),t!==null&&e!=null){if(e===""){const r=he(t),u=tu(n.getElementByKey(t));return void(u!==null&&u.nodeValue!==null&&P(r)&&vs(r,u.nodeValue,null,null,!0))}if(e[e.length-1]===`
5
- `){const r=$();if(I(r)){const u=r.focus;return r.anchor.set(u.key,u.offset,u.type),void U(n,Zr,null)}}}xs(!0,n,e)}function kl(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const fn=new Map;function Nl(n){const e=n.target,t=Re(e==null?null:e.nodeType===9?e.defaultView:e.ownerDocument.defaultView);if(t===null)return;const r=sl(t.anchorNode);if(r===null)return;Ai&&(Ai=!1,Ne(r,()=>{const l=dr(),f=t.anchorNode;if(f===null)return;const h=f.nodeType;h!==sr&&h!==Nt||Me(Es(l,t,r,n))}));const u=_s(r),i=u[u.length-1],s=i._key,o=fn.get(s),a=o||i;a!==r&&xo(t,a,!1),xo(t,r,!0),r!==i?fn.set(s,r):o&&fn.delete(s)}function vo(n){n._lexicalHandled=!0}function wo(n){return n._lexicalHandled===!0}function Of(n){const e=n.ownerDocument,t=lu.get(e);t===void 0&&R(162);const r=t-1;r>=0||R(164),lu.set(e,r),r===0&&e.removeEventListener("selectionchange",Nl);const u=Au(n);ys(u)?(function(s){if(s._parentEditor!==null){const o=_s(s),a=o[o.length-1]._key;fn.get(a)===s&&fn.delete(a)}else fn.delete(s._key)}(u),n.__lexicalEditor=null):u&&R(198);const i=kl(n);for(let s=0;s<i.length;s++)i[s]();n.__lexicalEventHandles=[]}function Oi(n,e,t){Se();const r=n.__key,u=n.getParent();if(u===null)return;const i=function(o){const a=$();if(!I(a)||!N(o))return a;const{anchor:l,focus:f}=a,h=l.getNode(),c=f.getNode();return Bn(h,o)&&l.set(o.__key,0,"element"),Bn(c,o)&&f.set(o.__key,0,"element"),a}(n);let s=!1;if(I(i)&&e){const o=i.anchor,a=i.focus;o.key===r&&(fu(o,n,u,n.getPreviousSibling(),n.getNextSibling()),s=!0),a.key===r&&(fu(a,n,u,n.getPreviousSibling(),n.getNextSibling()),s=!0)}else Le(i)&&e&&n.isSelected()&&n.selectPrevious();if(I(i)&&e&&!s){const o=n.getIndexWithinParent();qt(n),cu(i,u,o,-1)}else qt(n);t||ct(u)||u.canBeEmpty()||!u.isEmpty()||Oi(u,e),e&&xe(u)&&u.isEmpty()&&u.selectEnd()}class Lu{static getType(){R(64,this.name)}static clone(e){R(65,this.name)}afterCloneFrom(e){this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev}constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,mf(this,e)}getType(){return this.__type}isInline(){R(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=he(e);if(t===null)break;e=t.__parent}return!1}isSelected(e){const t=e||$();if(t==null)return!1;const r=t.getNodes().some(u=>u.__key===this.__key);if(P(this))return r;if(I(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const u=this.getParent();if(ue(this)&&this.isInline()&&u){const i=t.isBackward()?t.focus:t.anchor,s=i.getNode();if(i.offset===s.getChildrenSize()&&s.is(u)&&s.getLastChildOrThrow().is(this))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:he(e)}getParentOrThrow(){const e=this.getParent();return e===null&&R(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(ct(t))return N(e)||e===this&&ue(e)||R(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&R(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:he(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:he(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){const t=this.getParents(),r=e.getParents();N(this)&&t.unshift(this),N(e)&&r.unshift(e);const u=t.length,i=r.length;if(u===0||i===0||t[u-1]!==r[i-1])return null;const s=new Set(r);for(let o=0;o<u;o++){const a=t[o];if(s.has(a))return a}return null}is(e){return e!=null&&this.__key===e.__key}isBefore(e){if(this===e)return!1;if(e.isParentOf(this))return!0;if(this.isParentOf(e))return!1;const t=this.getCommonAncestor(e);let r=0,u=0,i=this;for(;;){const s=i.getParentOrThrow();if(s===t){r=i.getIndexWithinParent();break}i=s}for(i=e;;){const s=i.getParentOrThrow();if(s===t){u=i.getIndexWithinParent();break}i=s}return r<u}isParentOf(e){const t=this.__key;if(t===e.__key)return!1;let r=e;for(;r!==null;){if(r.__key===t)return!0;r=r.getParent()}return!1}getNodesBetween(e){const t=this.isBefore(e),r=[],u=new Set;let i=this;for(;i!==null;){const s=i.__key;if(u.has(s)||(u.add(s),r.push(i)),i===e)break;const o=N(i)?t?i.getFirstChild():i.getLastChild():null;if(o!==null){i=o;continue}const a=t?i.getNextSibling():i.getPreviousSibling();if(a!==null){i=a;continue}const l=i.getParentOrThrow();if(u.has(l.__key)||r.push(l),l===e)break;let f=null,h=l;do{if(h===null&&R(68),f=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;f!==null||u.has(h.__key)||r.push(h)}while(f===null);i=f}return t||r.reverse(),r}isDirty(){const e=ae()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){const e=he(this.__key);return e===null&&R(113),e}getWritable(){Se();const e=ht(),t=ae(),r=e._nodeMap,u=this.__key,i=this.getLatest(),s=t._cloneNotNeeded,o=$();if(o!==null&&o.setCachedNodes(null),s.has(u))return ru(i),i;const a=Ts(i);return s.add(u),ru(a),r.set(u,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){R(70)}updateDOM(e,t,r){R(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){R(72)}static importJSON(e){R(18,this.name)}static transform(){return null}remove(e){Oi(this,!0,e)}replace(e,t){Se();let r=$();r!==null&&(r=r.clone()),Qu(this,e);const u=this.getLatest(),i=this.__key,s=e.__key,o=e.getWritable(),a=this.getParentOrThrow().getWritable(),l=a.__size;qt(o);const f=u.getPreviousSibling(),h=u.getNextSibling(),c=u.__prev,d=u.__next,p=u.__parent;if(Oi(u,!1,!0),f===null?a.__first=s:f.getWritable().__next=s,o.__prev=c,h===null?a.__last=s:h.getWritable().__prev=s,o.__next=d,o.__parent=p,a.__size=l,t&&(N(this)&&N(o)||R(139),this.getChildren().forEach(m=>{o.append(m)})),I(r)){Me(r);const m=r.anchor,g=r.focus;m.key===i&&Eo(m,o),g.key===i&&Eo(g,o)}return vt()===i&&be(s),o}insertAfter(e,t=!0){Se(),Qu(this,e);const r=this.getWritable(),u=e.getWritable(),i=u.getParent(),s=$();let o=!1,a=!1;if(i!==null){const d=e.getIndexWithinParent();if(qt(u),I(s)){const p=i.__key,m=s.anchor,g=s.focus;o=m.type==="element"&&m.key===p&&m.offset===d+1,a=g.type==="element"&&g.key===p&&g.offset===d+1}}const l=this.getNextSibling(),f=this.getParentOrThrow().getWritable(),h=u.__key,c=r.__next;if(l===null?f.__last=h:l.getWritable().__prev=h,f.__size++,r.__next=h,u.__next=c,u.__prev=r.__key,u.__parent=r.__parent,t&&I(s)){const d=this.getIndexWithinParent();cu(s,f,d+1);const p=f.__key;o&&s.anchor.set(p,d+2,"element"),a&&s.focus.set(p,d+2,"element")}return e}insertBefore(e,t=!0){Se(),Qu(this,e);const r=this.getWritable(),u=e.getWritable(),i=u.__key;qt(u);const s=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),a=r.__prev,l=this.getIndexWithinParent();s===null?o.__first=i:s.getWritable().__next=i,o.__size++,r.__prev=i,u.__prev=a,u.__next=r.__key,u.__parent=r.__parent;const f=$();return t&&I(f)&&cu(f,this.getParentOrThrow(),l),e}isParentRequired(){return!1}createParentElementNode(){return Ae()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Se();const r=this.getPreviousSibling(),u=this.getParentOrThrow();if(r===null)return u.select(0,0);if(N(r))return r.select();if(!P(r)){const i=r.getIndexWithinParent()+1;return u.select(i,i)}return r.select(e,t)}selectNext(e,t){Se();const r=this.getNextSibling(),u=this.getParentOrThrow();if(r===null)return u.select();if(N(r))return r.select(0,0);if(!P(r)){const i=r.getIndexWithinParent();return u.select(i,i)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}class lr extends Lu{static getType(){return"linebreak"}static clone(e){return new lr(e.__key)}constructor(e){super(e)}getTextContent(){return`
6
- `}createDOM(){return document.createElement("br")}updateDOM(){return!1}static importDOM(){return{br:e=>function(t){const r=t.parentElement;if(r!==null&&iu(r)){const u=r.firstChild;if(u===t||u.nextSibling===t&&kr(u)){const i=r.lastChild;if(i===t||i.previousSibling===t&&kr(i))return!0}}return!1}(e)||function(t){const r=t.parentElement;if(r!==null&&iu(r)){const u=r.firstChild;if(u===t||u.nextSibling===t&&kr(u))return!1;const i=r.lastChild;if(i===t||i.previousSibling===t&&kr(i))return!0}return!1}(e)?null:{conversion:Df,priority:0}}}static importJSON(e){return Wt()}exportJSON(){return{type:"linebreak",version:1}}}function Df(n){return{node:Wt()}}function Wt(){return At(new lr)}function Et(n){return n instanceof lr}function kr(n){return n.nodeType===Nt&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function ni(n,e){return 16&e?"code":e&ls?"mark":32&e?"sub":64&e?"sup":null}function ri(n,e){return 1&e?"strong":2&e?"em":"span"}function Al(n,e,t,r,u){const i=r.classList;let s=Rn(u,"base");s!==void 0&&i.add(...s),s=Rn(u,"underlineStrikethrough");let o=!1;const a=e&Yr&&e&Qr;s!==void 0&&(t&Yr&&t&Qr?(o=!0,a||i.add(...s)):a&&i.remove(...s));for(const l in zt){const f=zt[l];if(s=Rn(u,l),s!==void 0)if(t&f){if(o&&(l==="underline"||l==="strikethrough")){e&f&&i.remove(...s);continue}e&f&&(!a||l!=="underline")&&l!=="strikethrough"||i.add(...s)}else e&f&&i.remove(...s)}}function Ol(n,e,t){const r=e.firstChild,u=t.isComposing(),i=n+(u?Nu:"");if(r==null)e.textContent=i;else{const s=r.nodeValue;if(s!==i)if(u||Ct){const[o,a,l]=function(f,h){const c=f.length,d=h.length;let p=0,m=0;for(;p<c&&p<d&&f[p]===h[p];)p++;for(;m+p<c&&m+p<d&&f[c-m-1]===h[d-m-1];)m++;return[p,c-p-m,h.slice(p,d-m)]}(s,i);a!==0&&r.deleteData(o,a),r.insertData(o,l)}else r.nodeValue=i}}function So(n,e,t,r,u,i){Ol(u,n,e);const s=i.theme.text;s!==void 0&&Al(0,0,r,n,s)}function Nr(n,e){const t=document.createElement(e);return t.appendChild(n),t}class Zt extends Lu{static getType(){return"text"}static clone(e){return new Zt(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e,t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const e=this.getLatest();return sf[e.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===vt()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){const t=zt[e];return!!(this.getFormat()&t)}isSimpleText(){return this.__type==="text"&&this.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return nu(this.getLatest().__format,e,t)}canHaveFormat(){return!0}createDOM(e,t){const r=this.__format,u=ni(0,r),i=ri(0,r),s=u===null?i:u,o=document.createElement(s);let a=o;this.hasFormat("code")&&o.setAttribute("spellcheck","false"),u!==null&&(a=document.createElement(i),o.appendChild(a)),So(a,this,0,r,this.__text,e);const l=this.__style;return l!==""&&(o.style.cssText=l),o}updateDOM(e,t,r){const u=this.__text,i=e.__format,s=this.__format,o=ni(0,i),a=ni(0,s),l=ri(0,i),f=ri(0,s);if((o===null?l:o)!==(a===null?f:a))return!0;if(o===a&&l!==f){const m=t.firstChild;m==null&&R(48);const g=document.createElement(f);return So(g,this,0,s,u,r),t.replaceChild(g,m),!1}let h=t;a!==null&&o!==null&&(h=t.firstChild,h==null&&R(49)),Ol(u,h,this);const c=r.theme.text;c!==void 0&&i!==s&&Al(0,i,s,h,c);const d=e.__style,p=this.__style;return d!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:Mf,priority:0}),b:()=>({conversion:Pf,priority:0}),code:()=>({conversion:yt,priority:0}),em:()=>({conversion:yt,priority:0}),i:()=>({conversion:yt,priority:0}),s:()=>({conversion:yt,priority:0}),span:()=>({conversion:If,priority:0}),strong:()=>({conversion:yt,priority:0}),sub:()=>({conversion:yt,priority:0}),sup:()=>({conversion:yt,priority:0}),u:()=>({conversion:yt,priority:0})}}static importJSON(e){const t=le(e.text);return t.setFormat(e.format),t.setDetail(e.detail),t.setMode(e.mode),t.setStyle(e.style),t}exportDOM(e){let{element:t}=super.exportDOM(e);return t!==null&&Jt(t)||R(132),t.style.whiteSpace="pre-wrap",this.hasFormat("bold")&&(t=Nr(t,"b")),this.hasFormat("italic")&&(t=Nr(t,"i")),this.hasFormat("strikethrough")&&(t=Nr(t,"s")),this.hasFormat("underline")&&(t=Nr(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),type:"text",version:1}}selectionTransform(e,t){}setFormat(e){const t=this.getWritable();return t.__format=typeof e=="string"?zt[e]:e,t}setDetail(e){const t=this.getWritable();return t.__detail=typeof e=="string"?nf[e]:e,t}setStyle(e){const t=this.getWritable();return t.__style=e,t}toggleFormat(e){const t=nu(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){const e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){const e=this.getWritable();return e.__detail^=2,e}setMode(e){const t=uf[e];if(this.__mode===t)return this;const r=this.getWritable();return r.__mode=t,r}setTextContent(e){if(this.__text===e)return this;const t=this.getWritable();return t.__text=e,t}select(e,t){Se();let r=e,u=t;const i=$(),s=this.getTextContent(),o=this.__key;if(typeof s=="string"){const a=s.length;r===void 0&&(r=a),u===void 0&&(u=a)}else r=0,u=0;if(!I(i))return Pl(o,r,o,u,"text","text");{const a=vt();a!==i.anchor.key&&a!==i.focus.key||be(o),i.setTextNodeRange(this,r,this,u)}return i}selectStart(){return this.select(0,0)}selectEnd(){const e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,r,u){const i=this.getWritable(),s=i.__text,o=r.length;let a=e;a<0&&(a=o+a,a<0&&(a=0));const l=$();if(u&&I(l)){const h=e+o;l.setTextNodeRange(i,h,i,h)}const f=s.slice(0,a)+r+s.slice(a+t);return i.__text=f,i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){Se();const t=this.getLatest(),r=t.getTextContent(),u=t.__key,i=vt(),s=new Set(e),o=[],a=r.length;let l="";for(let S=0;S<a;S++)l!==""&&s.has(S)&&(o.push(l),l=""),l+=r[S];l!==""&&o.push(l);const f=o.length;if(f===0)return[];if(o[0]===r)return[t];const h=o[0],c=t.getParent();let d;const p=t.getFormat(),m=t.getStyle(),g=t.__detail;let y=!1;t.isSegmented()?(d=le(h),d.__format=p,d.__style=m,d.__detail=g,y=!0):(d=t.getWritable(),d.__text=h);const b=$(),v=[d];let w=h.length;for(let S=1;S<f;S++){const T=o[S],D=T.length,C=le(T).getWritable();C.__format=p,C.__style=m,C.__detail=g;const L=C.__key,H=w+D;if(I(b)){const x=b.anchor,k=b.focus;x.key===u&&x.type==="text"&&x.offset>w&&x.offset<=H&&(x.key=L,x.offset-=w,b.dirty=!0),k.key===u&&k.type==="text"&&k.offset>w&&k.offset<=H&&(k.key=L,k.offset-=w,b.dirty=!0)}i===u&&be(L),w=H,v.push(C)}if(c!==null){(function(D){const C=D.getPreviousSibling(),L=D.getNextSibling();C!==null&&ru(C),L!==null&&ru(L)})(this);const S=c.getWritable(),T=this.getIndexWithinParent();y?(S.splice(T,0,v),this.remove()):S.splice(T,1,v),I(b)&&cu(b,c,T,f-1)}return v}mergeWithSibling(e){const t=e===this.getPreviousSibling();t||e===this.getNextSibling()||R(50);const r=this.__key,u=e.__key,i=this.__text,s=i.length;vt()===u&&be(r);const o=$();if(I(o)){const h=o.anchor,c=o.focus;h!==null&&h.key===u&&(Po(h,t,r,e,s),o.dirty=!0),c!==null&&c.key===u&&(Po(c,t,r,e,s),o.dirty=!0)}const a=e.__text,l=t?a+i:i+a;this.setTextContent(l);const f=this.getWritable();return e.remove(),f}isTextEntity(){return!1}}function If(n){return{forChild:Cs(n.style),node:null}}function Pf(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:Cs(e.style,t?void 0:"bold"),node:null}}const To=new WeakMap;function Lf(n){return n.nodeName==="PRE"||n.nodeType===sr&&n.style!==void 0&&n.style.whiteSpace!==void 0&&n.style.whiteSpace.startsWith("pre")}function Mf(n){const e=n;n.parentElement===null&&R(129);let t=e.textContent||"";if(function(r){let u,i=r.parentNode;const s=[r];for(;i!==null&&(u=To.get(i))===void 0&&!Lf(i);)s.push(i),i=i.parentNode;const o=u===void 0?i:u;for(let a=0;a<s.length;a++)To.set(s[a],o);return o}(e)!==null){const r=t.split(/(\r?\n|\t)/),u=[],i=r.length;for(let s=0;s<i;s++){const o=r[s];o===`
7
- `||o===`\r
8
- `?u.push(Wt()):o===" "?u.push(fr()):o!==""&&u.push(le(o))}return{node:u}}if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,u=!0;for(;r!==null&&(r=Co(r,!1))!==null;){const i=r.textContent||"";if(i.length>0){/[ \t\n]$/.test(i)&&(t=t.slice(1)),u=!1;break}}u&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,u=!0;for(;r!==null&&(r=Co(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){u=!1;break}u&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:le(t)}}function Co(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const i=t.parentElement;if(i===null)return null;t=i}if(t=r,t.nodeType===sr){const i=t.style.display;if(i===""&&!_i(t)||i!==""&&!i.startsWith("inline"))return null}let u=t;for(;(u=e?t.firstChild:t.lastChild)!==null;)t=u;if(t.nodeType===Nt)return t;if(t.nodeName==="BR")return null}}const Rf={code:"code",em:"italic",i:"italic",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function yt(n){const e=Rf[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:Cs(n.style,e),node:null}}function le(n=""){return At(new Zt(n))}function P(n){return n instanceof Zt}function Cs(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),u=t==="700"||t==="bold",i=r.includes("line-through"),s=n.fontStyle==="italic",o=r.includes("underline"),a=n.verticalAlign;return l=>(P(l)&&(u&&!l.hasFormat("bold")&&l.toggleFormat("bold"),i&&!l.hasFormat("strikethrough")&&l.toggleFormat("strikethrough"),s&&!l.hasFormat("italic")&&l.toggleFormat("italic"),o&&!l.hasFormat("underline")&&l.toggleFormat("underline"),a!=="sub"||l.hasFormat("subscript")||l.toggleFormat("subscript"),a!=="super"||l.hasFormat("superscript")||l.toggleFormat("superscript"),e&&!l.hasFormat(e)&&l.toggleFormat(e)),l)}class cr extends Zt{static getType(){return"tab"}static clone(e){return new cr(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}static importJSON(e){const t=fr();return t.setFormat(e.format),t.setStyle(e.style),t}exportJSON(){return{...super.exportJSON(),type:"tab",version:1}}setTextContent(e){R(126)}setDetail(e){R(127)}setMode(e){R(128)}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function fr(){return At(new cr)}function Bf(n){return n instanceof cr}class Ff{constructor(e,t,r){this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){let t=this.getNode(),r=e.getNode();const u=this.offset,i=e.offset;if(N(t)){const s=t.getDescendantByIndex(u);t=s??t}if(N(r)){const s=r.getDescendantByIndex(i);r=s??r}return t===r?u<i:t.isBefore(r)}getNode(){const e=he(this.key);return e===null&&R(20),e}set(e,t,r){const u=this._selection,i=this.key;this.key=e,this.offset=t,this.type=r,hr()||(vt()===i&&be(e),u!==null&&(u.setCachedNodes(null),u.dirty=!0))}}function et(n,e,t){return new Ff(n,e,t)}function ui(n,e){let t=e.__key,r=n.offset,u="element";if(P(e)){u="text";const i=e.getTextContentSize();r>i&&(r=i)}else if(!N(e)){const i=e.getNextSibling();if(P(i))t=i.__key,r=0,u="text";else{const s=e.getParent();s&&(t=s.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,u)}function Eo(n,e){if(N(e)){const t=e.getLastDescendant();N(t)||P(t)?ui(n,t):ui(n,e)}else ui(n,e)}function xt(n,e,t,r){n.key=e,n.offset=t,n.type=r}class Mu{constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!Le(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(u=>r.has(u))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Mu(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes(),r=t.length,u=t[r-1];let i;if(P(u))i=u.select();else{const s=u.getIndexWithinParent()+1;i=u.getParentOrThrow().select(s,s)}i.insertNodes(e);for(let s=0;s<r;s++)t[s].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const u of t){const i=he(u);i!==null&&r.push(i)}return hr()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}}function I(n){return n instanceof Ot}class Ot{constructor(e,t,r,u){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=u,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!I(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this.anchor,r=this.focus,u=t.isBefore(r),i=u?t:r,s=u?r:t;let o=i.getNode(),a=s.getNode();const l=i.offset,f=s.offset;if(N(o)){const c=o.getDescendantByIndex(l);o=c??o}if(N(a)){let c=a.getDescendantByIndex(f);c!==null&&c!==o&&a.getChildAtIndex(f)===c&&(c=c.getPreviousSibling()),a=c??a}let h;return h=o.is(a)?N(o)&&o.getChildrenSize()>0?[]:[o]:o.getNodesBetween(a),hr()||(this._cachedNodes=h),h}setTextNodeRange(e,t,r,u){xt(this.anchor,e.__key,t,"text"),xt(this.focus,r.__key,u,"text"),this._cachedNodes=null,this.dirty=!0}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],u=this.anchor,i=this.focus,s=u.isBefore(i),[o,a]=Di(this);let l="",f=!0;for(let h=0;h<e.length;h++){const c=e[h];if(N(c)&&!c.isInline())f||(l+=`
9
- `),f=!c.isEmpty();else if(f=!1,P(c)){let d=c.getTextContent();c===t?c===r?u.type==="element"&&i.type==="element"&&i.offset!==u.offset||(d=o<a?d.slice(o,a):d.slice(a,o)):d=s?d.slice(o):d.slice(a):c===r&&(d=s?d.slice(0,a):d.slice(0,o)),l+=d}else!ue(c)&&!Et(c)||c===r&&this.isCollapsed()||(l+=c.getTextContent())}return l}applyDOMRange(e){const t=ae(),r=t.getEditorState()._selection,u=Il(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(u===null)return;const[i,s]=u;xt(this.anchor,i.key,i.offset,i.type),xt(this.focus,s.key,s.offset,s.type),this._cachedNodes=null}clone(){const e=this.anchor,t=this.focus;return new Ot(et(e.key,e.offset,e.type),et(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=nu(this.format,e,null),this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=zt[e];return!!(this.format&t)}insertRawText(e){const t=e.split(/(\r?\n|\t)/),r=[],u=t.length;for(let i=0;i<u;i++){const s=t[i];s===`
10
- `||s===`\r
11
- `?r.push(Wt()):s===" "?r.push(fr()):r.push(le(s))}this.insertNodes(r)}insertText(e){const t=this.anchor,r=this.focus,u=this.format,i=this.style;let s=t,o=r;!this.isCollapsed()&&r.isBefore(t)&&(s=r,o=t),s.type==="element"&&function(g,y,b,v){const w=g.getNode(),S=w.getChildAtIndex(g.offset),T=le(),D=xe(w)?Ae().append(T):T;T.setFormat(b),T.setStyle(v),S===null?w.append(D):S.insertBefore(D),g.is(y)&&y.set(T.__key,0,"text"),g.set(T.__key,0,"text")}(s,o,u,i);const a=s.offset;let l=o.offset;const f=this.getNodes(),h=f.length;let c=f[0];P(c)||R(26);const d=c.getTextContent().length,p=c.getParentOrThrow();let m=f[h-1];if(h===1&&o.type==="element"&&(l=d,o.set(s.key,l,"text")),this.isCollapsed()&&a===d&&(c.isSegmented()||c.isToken()||!c.canInsertTextAfter()||!p.canInsertTextAfter()&&c.getNextSibling()===null)){let g=c.getNextSibling();if(P(g)&&g.canInsertTextBefore()&&!Bt(g)||(g=le(),g.setFormat(u),g.setStyle(i),p.canInsertTextAfter()?c.insertAfter(g):p.insertAfter(g)),g.select(0,0),c=g,e!=="")return void this.insertText(e)}else if(this.isCollapsed()&&a===0&&(c.isSegmented()||c.isToken()||!c.canInsertTextBefore()||!p.canInsertTextBefore()&&c.getPreviousSibling()===null)){let g=c.getPreviousSibling();if(P(g)&&!Bt(g)||(g=le(),g.setFormat(u),p.canInsertTextBefore()?c.insertBefore(g):p.insertBefore(g)),g.select(),c=g,e!=="")return void this.insertText(e)}else if(c.isSegmented()&&a!==d){const g=le(c.getTextContent());g.setFormat(u),c.replace(g),c=g}else if(!this.isCollapsed()&&e!==""){const g=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||N(g)&&(!g.canInsertTextBefore()||!g.canInsertTextAfter()))return this.insertText(""),Dl(this.anchor,this.focus,null),void this.insertText(e)}if(h===1){if(c.isToken()){const v=le(e);return v.select(),void c.replace(v)}const g=c.getFormat(),y=c.getStyle();if(a!==l||g===u&&y===i){if(Bf(c)){const v=le(e);return v.setFormat(u),v.setStyle(i),v.select(),void c.replace(v)}}else{if(c.getTextContent()!==""){const v=le(e);if(v.setFormat(u),v.setStyle(i),v.select(),a===0)c.insertBefore(v,!1);else{const[w]=c.splitText(a);w.insertAfter(v,!1)}return void(v.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length))}c.setFormat(u),c.setStyle(i)}const b=l-a;c=c.spliceText(a,b,e,!0),c.getTextContent()===""?c.remove():this.anchor.type==="text"&&(c.isComposing()?this.anchor.offset-=e.length:(this.format=g,this.style=y))}else{const g=new Set([...c.getParentKeys(),...m.getParentKeys()]),y=N(c)?c:c.getParentOrThrow();let b=N(m)?m:m.getParentOrThrow(),v=m;if(!y.is(b)&&b.isInline())do v=b,b=b.getParentOrThrow();while(b.isInline());if(o.type==="text"&&(l!==0||m.getTextContent()==="")||o.type==="element"&&m.getIndexWithinParent()<l)if(P(m)&&!m.isToken()&&l!==m.getTextContentSize()){if(m.isSegmented()){const C=le(m.getTextContent());m.replace(C),m=C}xe(o.getNode())||o.type!=="text"||(m=m.spliceText(0,l,"")),g.add(m.__key)}else{const C=m.getParentOrThrow();C.canBeEmpty()||C.getChildrenSize()!==1?m.remove():C.remove()}else g.add(m.__key);const w=b.getChildren(),S=new Set(f),T=y.is(b),D=y.isInline()&&c.getNextSibling()===null?y:c;for(let C=w.length-1;C>=0;C--){const L=w[C];if(L.is(c)||N(L)&&L.isParentOf(c))break;L.isAttached()&&(!S.has(L)||L.is(v)?T||D.insertAfter(L,!1):L.remove())}if(!T){let C=b,L=null;for(;C!==null;){const H=C.getChildren(),x=H.length;(x===0||H[x-1].is(L))&&(g.delete(C.__key),L=C),C=C.getParent()}}if(c.isToken())if(a===d)c.select();else{const C=le(e);C.select(),c.replace(C)}else c=c.spliceText(a,d-a,e,!0),c.getTextContent()===""?c.remove():c.isComposing()&&this.anchor.type==="text"&&(this.anchor.offset-=e.length);for(let C=1;C<h;C++){const L=f[C],H=L.__key;g.has(H)||L.remove()}}}removeText(){if(this.isCollapsed())return;const{anchor:e,focus:t}=this,r=this.getNodes(),u=this.isBackward()?t:e,i=this.isBackward()?e:t;let s=u.getNode(),o=i.getNode();const a=Nn(s,_t),l=Nn(o,_t);P(s)&&s.isToken()&&u.offset<s.getTextContentSize()&&(u.offset=0),i.offset>0&&P(o)&&o.isToken()&&(i.offset=o.getTextContentSize()),r.forEach(h=>{Bn(s,h)||Bn(o,h)||h.getKey()===s.getKey()||h.getKey()===o.getKey()||h.remove()});const f=(h,c)=>{if(h.getTextContent()==="")h.remove();else if(c!==0&&Bt(h)){const d=le(h.getTextContent());return d.setFormat(h.getFormat()),d.setStyle(h.getStyle()),h.replace(d)}};if(s===o&&P(s)){const h=Math.abs(t.offset-e.offset);return s.spliceText(u.offset,h,"",!0),void f(s,h)}if(P(s)){const h=s.getTextContentSize()-u.offset;s.spliceText(u.offset,h,""),s=f(s,h)||s}P(o)&&(o.spliceText(0,i.offset,""),o=f(o,i.offset)||o),s.isAttached()&&P(s)?s.selectEnd():o.isAttached()&&P(o)&&o.selectStart(),N(a)&&N(l)&&a!==l&&(a.append(...l.getChildren()),l.remove(),i.set(u.key,u.offset,u.type))}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void be(null);const r=this.getNodes(),u=[];for(const w of r)P(w)&&u.push(w);const i=w=>{r.forEach(S=>{if(Ht(S)){const T=S.getFormatFlags(e,w);S.setTextFormat(T)}})},s=u.length;if(s===0)return this.toggleFormat(e),be(null),void i(t);const o=this.anchor,a=this.focus,l=this.isBackward(),f=l?a:o,h=l?o:a;let c=0,d=u[0],p=f.type==="element"?0:f.offset;if(f.type==="text"&&p===d.getTextContentSize()&&(c=1,d=u[1],p=0),d==null)return;const m=d.getFormatFlags(e,t);i(m);const g=s-1;let y=u[g];const b=h.type==="text"?h.offset:y.getTextContentSize();if(d.is(y)){if(p===b)return;if(Bt(d)||p===0&&b===d.getTextContentSize())d.setFormat(m);else{const w=d.splitText(p,b),S=p===0?w[0]:w[1];S.setFormat(m),f.type==="text"&&f.set(S.__key,0,"text"),h.type==="text"&&h.set(S.__key,b-p,"text")}return void(this.format=m)}p===0||Bt(d)||([,d]=d.splitText(p),p=0),d.setFormat(m);const v=y.getFormatFlags(e,m);b>0&&(b===y.getTextContentSize()||Bt(y)||([y]=y.splitText(b)),y.setFormat(v));for(let w=c+1;w<g;w++){const S=u[w],T=S.getFormatFlags(e,v);S.setFormat(T)}f.type==="text"&&f.set(d.__key,p,"text"),h.type==="text"&&h.set(y.__key,b,"text"),this.format=m|v}insertNodes(e){if(e.length===0)return;if(this.anchor.key==="root"){this.insertParagraph();const p=$();return I(p)||R(134),p.insertNodes(e)}const t=(this.isBackward()?this.focus:this.anchor).getNode(),r=Nn(t,_t),u=e[e.length-1];if(N(r)&&"__language"in r){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const p=ii(this);r.splice(p,0,e),u.selectEnd()}return}if(!e.some(p=>(N(p)||ue(p))&&!p.isInline())){N(r)||R(211,t.constructor.name,t.getType());const p=ii(this);return r.splice(p,0,e),void u.selectEnd()}const i=function(p){const m=Ae();let g=null;for(let y=0;y<p.length;y++){const b=p[y],v=Et(b);if(v||ue(b)&&b.isInline()||N(b)&&b.isInline()||P(b)||b.isParentRequired()){if(g===null&&(g=b.createParentElementNode(),m.append(g),v))continue;g!==null&&g.append(b)}else m.append(b),g=null}return m}(e),s=i.getLastDescendant(),o=i.getChildren(),a=!N(r)||!r.isEmpty()?this.insertParagraph():null,l=o[o.length-1];let f=o[0];var h;N(h=f)&&_t(h)&&!h.isEmpty()&&N(r)&&(!r.isEmpty()||r.canMergeWhenEmpty())&&(N(r)||R(211,t.constructor.name,t.getType()),r.append(...f.getChildren()),f=o[1]),f&&(r===null&&R(212,t.constructor.name,t.getType()),function(p,m,g){const y=m.getParentOrThrow().getLastChild();let b=m;const v=[m];for(;b!==y;)b.getNextSibling()||R(140),b=b.getNextSibling(),v.push(b);let w=p;for(const S of v)w=w.insertAfter(S)}(r,f));const c=Nn(s,_t);a&&N(c)&&(a.canMergeWhenEmpty()||_t(l))&&(c.append(...a.getChildren()),a.remove()),N(r)&&r.isEmpty()&&r.remove(),s.selectEnd();const d=N(r)?r.getLastChild():null;Et(d)&&c!==r&&d.remove()}insertParagraph(){if(this.anchor.key==="root"){const s=Ae();return ce().splice(this.anchor.offset,0,[s]),s.select(),s}const e=ii(this),t=Nn(this.anchor.getNode(),_t);N(t)||R(213);const r=t.getChildAtIndex(e),u=r?[r,...r.getNextSiblings()]:[],i=t.insertNewAfter(this,!1);return i?(i.append(...u),i.selectStart(),i):null}insertLineBreak(e){const t=Wt();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),u=t.getIndexWithinParent();r.select(u,u)}}extract(){const e=this.getNodes(),t=e.length,r=t-1,u=this.anchor,i=this.focus;let s=e[0],o=e[r];const[a,l]=Di(this);if(t===0)return[];if(t===1){if(P(s)&&!this.isCollapsed()){const h=a>l?l:a,c=a>l?a:l,d=s.splitText(h,c),p=h===0?d[0]:d[1];return p!=null?[p]:[]}return[s]}const f=u.isBefore(i);if(P(s)){const h=f?a:l;h===s.getTextContentSize()?e.shift():h!==0&&([,s]=s.splitText(h),e[0]=s)}if(P(o)){const h=o.getTextContent().length,c=f?l:a;c===0?e.pop():c!==h&&([o]=o.splitText(c),e[r]=o)}return e}modify(e,t,r){const u=this.focus,i=this.anchor,s=e==="move",o=Vn(u,t);if(ue(o)&&!o.isIsolated()){if(s&&o.isKeyboardSelectable()){const d=Do();return d.add(o.__key),void Me(d)}const c=t?o.getPreviousSibling():o.getNextSibling();if(P(c)){const d=c.__key,p=t?c.getTextContent().length:0;return u.set(d,p,"text"),void(s&&i.set(d,p,"text"))}{const d=o.getParentOrThrow();let p,m;return N(c)?(m=c.__key,p=t?c.getChildrenSize():0):(p=o.getIndexWithinParent(),m=d.__key,t||p++),u.set(m,p,"element"),void(s&&i.set(m,p,"element"))}}const a=ae(),l=Re(a._window);if(!l)return;const f=a._blockCursorElement,h=a._rootElement;if(h===null||f===null||!N(o)||o.isInline()||o.canBeEmpty()||Ss(f,a,h),function(c,d,p,m){c.modify(d,p,m)}(l,e,t?"backward":"forward",r),l.rangeCount>0){const c=l.getRangeAt(0),d=this.anchor.getNode(),p=xe(d)?d:_f(d);if(this.applyDOMRange(c),this.dirty=!0,!s){const m=this.getNodes(),g=[];let y=!1;for(let b=0;b<m.length;b++){const v=m[b];Bn(v,p)?g.push(v):y=!0}if(y&&g.length>0)if(t){const b=g[0];N(b)?b.selectStart():b.getParentOrThrow().selectStart()}else{const b=g[g.length-1];N(b)?b.selectEnd():b.getParentOrThrow().selectEnd()}l.anchorNode===c.startContainer&&l.anchorOffset===c.startOffset||function(b){const v=b.focus,w=b.anchor,S=w.key,T=w.offset,D=w.type;xt(w,v.key,v.offset,v.type),xt(v,S,T,D),b._cachedNodes=null}(this)}}}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&N(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const u=t.getParent(),i=t.getNextSibling()||(u===null?null:u.getNextSibling());if(N(i)&&i.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let u=r.getNode();if(this.forwardDeletion(r,u,e))return;const i=this.focus,s=Vn(i,e);if(ue(s)&&!s.isIsolated()){if(s.isKeyboardSelectable()&&N(u)&&u.getChildrenSize()===0){u.remove();const o=Do();o.add(s.__key),Me(o)}else s.remove(),ae().dispatchCommand(Cu,void 0);return}if(!e&&N(s)&&N(u)&&u.isEmpty())return u.remove(),void s.selectStart();if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&r.offset===0&&(r.type==="element"?r.getNode():r.getNode().getParentOrThrow()).collapseAtStart(this))return}else{const o=i.type==="text"?i.getNode():null;if(u=r.type==="text"?r.getNode():null,o!==null&&o.isSegmented()){const a=i.offset,l=o.getTextContentSize();if(o.is(u)||e&&a!==l||!e&&a!==0)return void No(o,e,a)}else if(u!==null&&u.isSegmented()){const a=r.offset,l=u.getTextContentSize();if(u.is(o)||e&&a!==0||!e&&a!==l)return void No(u,e,a)}(function(a,l){const f=a.anchor,h=a.focus,c=f.getNode(),d=h.getNode();if(c===d&&f.type==="text"&&h.type==="text"){const p=f.offset,m=h.offset,g=p<m,y=g?p:m,b=g?m:p,v=b-1;y!==v&&(fl(c.getTextContent().slice(y,b))||(l?h.offset=v:f.offset=v))}})(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0){const r=this.anchor.getNode();r.isEmpty()&&xe(r.getParent())&&r.getIndexWithinParent()===0&&r.collapseAtStart(this)}}deleteLine(e){if(this.isCollapsed()){const t=this.anchor.type==="element";if(t&&this.insertText(" "),this.modify("extend",e,"lineboundary"),this.isCollapsed()&&this.anchor.offset===0&&this.modify("extend",e,"character"),t){const r=e?this.anchor:this.focus;r.set(r.key,r.offset+1,r.type)}}this.removeText()}deleteWord(e){if(this.isCollapsed()){const t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function Le(n){return n instanceof Mu}function ko(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function Di(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[ko(t),ko(r)]}function No(n,e,t){const r=n,u=r.getTextContent().split(/(?=\s)/g),i=u.length;let s=0,o=0;for(let l=0;l<i;l++){const f=l===i-1;if(o=s,s+=u[l].length,e&&s===t||s>t||f){u.splice(l,1),f&&(o=void 0);break}}const a=u.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(o,o))}function Ao(n,e,t,r){let u,i=e;if(n.nodeType===sr){let s=!1;const o=n.childNodes,a=o.length,l=r._blockCursorElement;i===a&&(s=!0,i=a-1);let f=o[i],h=!1;if(f===l)f=o[i+1],h=!0;else if(l!==null){const c=l.parentNode;n===c&&e>Array.prototype.indexOf.call(c.children,l)&&i--}if(u=on(f),P(u))i=lo(u,s);else{let c=on(n);if(c===null)return null;if(N(c)){const d=r.getElementByKey(c.getKey());d===null&&R(214),[c,i]=c.getDOMSlot(d).resolveChildIndex(c,d,n,e),N(c)||R(215),s&&i>=c.getChildrenSize()&&(i=Math.max(0,c.getChildrenSize()-1));let m=c.getChildAtIndex(i);if(N(m)&&function(g,y,b){const v=g.getParent();return b===null||v===null||!v.canBeEmpty()||v!==b.getNode()}(m,0,t)){const g=s?m.getLastDescendant():m.getFirstDescendant();g===null?c=m:(m=g,c=N(m)?m:m.getParentOrThrow()),i=0}P(m)?(u=m,c=null,i=lo(m,s)):m!==c&&s&&!h&&(N(c)||R(216),i=Math.min(c.getChildrenSize(),i+1))}else{const d=c.getIndexWithinParent();i=e===0&&ue(c)&&on(n)===c?d:d+1,c=c.getParentOrThrow()}if(N(c))return et(c.__key,i,"element")}}else u=on(n);return P(u)?et(u.__key,i,"text"):null}function Oo(n,e,t){const r=n.offset,u=n.getNode();if(r===0){const i=u.getPreviousSibling(),s=u.getParent();if(e){if((t||!e)&&i===null&&N(s)&&s.isInline()){const o=s.getPreviousSibling();P(o)&&(n.key=o.__key,n.offset=o.getTextContent().length)}}else N(i)&&!t&&i.isInline()?(n.key=i.__key,n.offset=i.getChildrenSize(),n.type="element"):P(i)&&(n.key=i.__key,n.offset=i.getTextContent().length)}else if(r===u.getTextContent().length){const i=u.getNextSibling(),s=u.getParent();if(e&&N(i)&&i.isInline())n.key=i.__key,n.offset=0,n.type="element";else if((t||e)&&i===null&&N(s)&&s.isInline()&&!s.canInsertTextAfter()){const o=s.getNextSibling();P(o)&&(n.key=o.__key,n.offset=0)}}}function Dl(n,e,t){if(n.type==="text"&&e.type==="text"){const r=n.isBefore(e),u=n.is(e);Oo(n,r,u),Oo(e,!r,u),u&&(e.key=n.key,e.offset=n.offset,e.type=n.type);const i=ae();if(i.isComposing()&&i._compositionKey!==n.key&&I(t)){const s=t.anchor,o=t.focus;xt(n,s.key,s.offset,s.type),xt(e,o.key,o.offset,o.type)}}}function Il(n,e,t,r,u,i){if(n===null||t===null||!or(u,n,t))return null;const s=Ao(n,e,I(i)?i.anchor:null,u);if(s===null)return null;const o=Ao(t,r,I(i)?i.focus:null,u);if(o===null)return null;if(s.type==="element"&&o.type==="element"){const a=on(n),l=on(t);if(ue(a)&&ue(l))return null}return Dl(s,o,i),[s,o]}function Ii(n){return N(n)&&!n.isInline()}function Pl(n,e,t,r,u,i){const s=ht(),o=new Ot(et(n,e,u),et(t,r,i),0,"");return o.dirty=!0,s._selection=o,o}function jf(){const n=et("root",0,"element"),e=et("root",0,"element");return new Ot(n,e,0,"")}function Do(){return new Mu(new Set)}function Es(n,e,t,r){const u=t._window;if(u===null)return null;const i=r||u.event,s=i?i.type:void 0,o=s==="selectionchange",a=!yi&&(o||s==="beforeinput"||s==="compositionstart"||s==="compositionend"||s==="click"&&i&&i.detail===3||s==="drop"||s===void 0);let l,f,h,c;if(I(n)&&!a)return n.clone();if(e===null)return null;if(l=e.anchorNode,f=e.focusNode,h=e.anchorOffset,c=e.focusOffset,o&&I(n)&&!or(t,l,f))return n.clone();const d=Il(l,h,f,c,t,n);if(d===null)return null;const[p,m]=d;return new Ot(p,m,I(n)?n.format:0,I(n)?n.style:"")}function $(){return ht()._selection}function dr(){return ae()._editorState._selection}function cu(n,e,t,r=1){const u=n.anchor,i=n.focus,s=u.getNode(),o=i.getNode();if(!e.is(s)&&!e.is(o))return;const a=e.__key;if(n.isCollapsed()){const l=u.offset;if(t<=l&&r>0||t<l&&r<0){const f=Math.max(0,l+r);u.set(a,f,"element"),i.set(a,f,"element"),Io(n)}}else{const l=n.isBackward(),f=l?i:u,h=f.getNode(),c=l?u:i,d=c.getNode();if(e.is(h)){const p=f.offset;(t<=p&&r>0||t<p&&r<0)&&f.set(a,Math.max(0,p+r),"element")}if(e.is(d)){const p=c.offset;(t<=p&&r>0||t<p&&r<0)&&c.set(a,Math.max(0,p+r),"element")}}Io(n)}function Io(n){const e=n.anchor,t=e.offset,r=n.focus,u=r.offset,i=e.getNode(),s=r.getNode();if(n.isCollapsed()){if(!N(i))return;const o=i.getChildrenSize(),a=t>=o,l=a?i.getChildAtIndex(o-1):i.getChildAtIndex(t);if(P(l)){let f=0;a&&(f=l.getTextContentSize()),e.set(l.__key,f,"text"),r.set(l.__key,f,"text")}}else{if(N(i)){const o=i.getChildrenSize(),a=t>=o,l=a?i.getChildAtIndex(o-1):i.getChildAtIndex(t);if(P(l)){let f=0;a&&(f=l.getTextContentSize()),e.set(l.__key,f,"text")}}if(N(s)){const o=s.getChildrenSize(),a=u>=o,l=a?s.getChildAtIndex(o-1):s.getChildAtIndex(u);if(P(l)){let f=0;a&&(f=l.getTextContentSize()),r.set(l.__key,f,"text")}}}}function fu(n,e,t,r,u){let i=null,s=0,o=null;r!==null?(i=r.__key,P(r)?(s=r.getTextContentSize(),o="text"):N(r)&&(s=r.getChildrenSize(),o="element")):u!==null&&(i=u.__key,P(u)?o="text":N(u)&&(o="element")),i!==null&&o!==null?n.set(i,s,o):(s=e.getIndexWithinParent(),s===-1&&(s=t.getChildrenSize()),n.set(t.__key,s,"element"))}function Po(n,e,t,r,u){n.type==="text"?(n.key=t,e||(n.offset+=u)):n.offset>r.getIndexWithinParent()&&(n.offset-=1)}function qf(n,e,t,r,u,i,s){const o=r.anchorNode,a=r.focusNode,l=r.anchorOffset,f=r.focusOffset,h=document.activeElement;if(u.has("collaboration")&&h!==i||h!==null&&bs(h))return;if(!I(e))return void(n!==null&&or(t,o,a)&&r.removeAllRanges());const c=e.anchor,d=e.focus,p=c.key,m=d.key,g=uu(t,p),y=uu(t,m),b=c.offset,v=d.offset,w=e.format,S=e.style,T=e.isCollapsed();let D=g,C=y,L=!1;if(c.type==="text"){D=tu(g);const _=c.getNode();L=_.getFormat()!==w||_.getStyle()!==S}else I(n)&&n.anchor.type==="text"&&(L=!0);var H,x,k,A,B;if(d.type==="text"&&(C=tu(y)),D!==null&&C!==null&&(T&&(n===null||L||I(n)&&(n.format!==w||n.style!==S))&&(H=w,x=S,k=b,A=p,B=performance.now(),Tl=[H,x,k,A,B]),l!==b||f!==v||o!==D||a!==C||r.type==="Range"&&T||(h!==null&&i.contains(h)||i.focus({preventScroll:!0}),c.type==="element"))){try{r.setBaseAndExtent(D,b,C,v)}catch{}if(!u.has("skip-scroll-into-view")&&e.isCollapsed()&&i!==null&&i===document.activeElement){const _=e instanceof Ot&&e.anchor.type==="element"?D.childNodes[b]||null:r.rangeCount>0?r.getRangeAt(0):null;if(_!==null){let O;if(_ instanceof Text){const E=document.createRange();E.selectNode(_),O=E.getBoundingClientRect()}else O=_.getBoundingClientRect();(function(E,z,Y){const ee=Y.ownerDocument,ke=ee.defaultView;if(ke===null)return;let{top:nt,bottom:J}=z,M=0,Z=0,W=Y;for(;W!==null;){const G=W===ee.body;if(G)M=0,Z=Iu(E).innerHeight;else{const pe=W.getBoundingClientRect();M=pe.top,Z=pe.bottom}let fe=0;if(nt<M?fe=-(M-nt):J>Z&&(fe=J-Z),fe!==0)if(G)ke.scrollBy(0,fe);else{const pe=W.scrollTop;W.scrollTop+=fe;const ye=W.scrollTop-pe;nt-=ye,J-=ye}if(G)break;W=ar(W)}})(t,O,i)}}Ni=!0}}function Ru(n){let e=$()||dr();e===null&&(e=ce().selectEnd()),e.insertNodes(n)}function ii(n){let e=n;n.isCollapsed()||e.removeText();const t=$();I(t)&&(e=t),I(e)||R(161);const r=e.anchor;let u=r.getNode(),i=r.offset;for(;!_t(u);)[u,i]=Uf(u,i);return i}function Uf(n,e){const t=n.getParent();if(!t){const u=Ae();return ce().append(u),u.select(),[ce(),0]}if(P(n)){const u=n.splitText(e);if(u.length===0)return[t,n.getIndexWithinParent()];const i=e===0?0:1;return[t,u[0].getIndexWithinParent()+i]}if(!N(n)||e===0)return[t,n.getIndexWithinParent()];const r=n.getChildAtIndex(e);if(r){const u=new Ot(et(n.__key,e,"element"),et(n.__key,e,"element"),0,""),i=n.insertNewAfter(u);i&&i.append(r,...r.getNextSiblings())}return[t,n.getIndexWithinParent()+1]}let ge=null,me=null,Te=!1,si=!1,Wr=0;const Lo={characterData:!0,childList:!0,subtree:!0};function hr(){return Te||ge!==null&&ge._readOnly}function Se(){Te&&R(13)}function Ll(){Wr>99&&R(14)}function ht(){return ge===null&&R(195,Ml()),ge}function ae(){return me===null&&R(196,Ml()),me}function Ml(){let n=0;const e=new Set,t=Fu.version;if(typeof window<"u")for(const u of document.querySelectorAll("[contenteditable]")){const i=Au(u);if(ys(i))n++;else if(i){let s=String(i.constructor.version||"<0.17.1");s===t&&(s+=" (separately built, likely a bundler configuration issue)"),e.add(s)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function zf(){return me}function Mo(n,e,t){const r=e.__type,u=function(o,a){const l=o._nodes.get(a);return l===void 0&&R(30,a),l}(n,r);let i=t.get(r);i===void 0&&(i=Array.from(u.transforms),t.set(r,i));const s=i.length;for(let o=0;o<s&&(i[o](e),e.isAttached());o++);}function Ro(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function Rl(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const u of r)t.add(u)}function $f(n){return ks(n,ae()._nodes)}function ks(n,e){const t=n.type,r=e.get(t);r===void 0&&R(17,t);const u=r.klass;n.type!==u.getType()&&R(18,u.name);const i=u.importJSON(n),s=n.children;if(N(i)&&Array.isArray(s))for(let o=0;o<s.length;o++){const a=ks(s[o],e);i.append(a)}return i}function Bo(n,e,t){const r=ge,u=Te,i=me;ge=e,Te=!0,me=n;try{return t()}finally{ge=r,Te=u,me=i}}function wt(n,e){const t=n._pendingEditorState,r=n._rootElement,u=n._headless||r===null;if(t===null)return;const i=n._editorState,s=i._selection,o=t._selection,a=n._dirtyType!==Ut,l=ge,f=Te,h=me,c=n._updating,d=n._observer;let p=null;if(n._pendingEditorState=null,n._editorState=t,!u&&a&&d!==null){me=n,ge=t,Te=!1,n._updating=!0;try{const T=n._dirtyType,D=n._dirtyElements,C=n._dirtyLeaves;d.disconnect(),p=Af(i,t,n,T,D,C)}catch(T){if(T instanceof Error&&n._onError(T),si)throw T;return zl(n,null,r,t),ul(n),n._dirtyType=hn,si=!0,wt(n,i),void(si=!1)}finally{d.observe(r,Lo),n._updating=c,ge=l,Te=f,me=h}}t._readOnly||(t._readOnly=!0);const m=n._dirtyLeaves,g=n._dirtyElements,y=n._normalizedNodes,b=n._updateTags,v=n._deferred;a&&(n._dirtyType=Ut,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements=new Map,n._normalizedNodes=new Set,n._updateTags=new Set),function(T,D){const C=T._decorators;let L=T._pendingDecorators||C;const H=D._nodeMap;let x;for(x in L)H.has(x)||(L===C&&(L=ll(T)),delete L[x])}(n,t);const w=u?null:Re(n._window);if(n._editable&&w!==null&&(a||o===null||o.dirty)){me=n,ge=t;try{if(d!==null&&d.disconnect(),a||o===null||o.dirty){const T=n._blockCursorElement;T!==null&&Ss(T,n,r),qf(s,o,n,w,b,r)}xf(n,r,o),d!==null&&d.observe(r,Lo)}finally{me=h,ge=l}}p!==null&&function(T,D,C,L,H){const x=Array.from(T._listeners.mutation),k=x.length;for(let A=0;A<k;A++){const[B,_]=x[A],O=D.get(_);O!==void 0&&B(O,{dirtyLeaves:L,prevEditorState:H,updateTags:C})}}(n,p,b,m,i),I(o)||o===null||s!==null&&s.is(o)||n.dispatchCommand(Cu,void 0);const S=n._pendingDecorators;S!==null&&(n._decorators=S,n._pendingDecorators=null,qn("decorator",n,!0,S)),function(T,D,C){const L=ao(D),H=ao(C);L!==H&&qn("textcontent",T,!0,H)}(n,e||i,t),qn("update",n,!0,{dirtyElements:g,dirtyLeaves:m,editorState:t,normalizedNodes:y,prevEditorState:e||i,tags:b}),function(T,D){if(T._deferred=[],D.length!==0){const C=T._updating;T._updating=!0;try{for(let L=0;L<D.length;L++)D[L]()}finally{T._updating=C}}}(n,v),function(T){const D=T._updates;if(D.length!==0){const C=D.shift();if(C){const[L,H]=C;Fl(T,L,H)}}}(n)}function qn(n,e,t,...r){const u=e._updating;e._updating=t;try{const i=Array.from(e._listeners[n]);for(let s=0;s<i.length;s++)i[s].apply(null,r)}finally{e._updating=u}}function Bl(n,e,t){if(n._updating===!1||me!==n){let u=!1;return n.update(()=>{u=Bl(n,e,t)}),u}const r=_s(n);for(let u=4;u>=0;u--)for(let i=0;i<r.length;i++){const s=r[i]._commands.get(e);if(s!==void 0){const o=s[u];if(o!==void 0){const a=Array.from(o),l=a.length;for(let f=0;f<l;f++)if(a[f](t,n)===!0)return!0}}}return!1}function Fo(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const u=t.shift();if(u){const[i,s]=u;let o;if(s!==void 0){if(o=s.onUpdate,s.skipTransforms&&(r=!0),s.discrete){const a=n._pendingEditorState;a===null&&R(191),a._flushSync=!0}o&&n._deferred.push(o),Rl(n,s.tag)}i()}}return r}function Fl(n,e,t){const r=n._updateTags;let u,i=!1,s=!1;t!==void 0&&(u=t.onUpdate,Rl(n,t.tag),i=t.skipTransforms||!1,s=t.discrete||!1),u&&n._deferred.push(u);const o=n._editorState;let a=n._pendingEditorState,l=!1;(a===null||a._readOnly)&&(a=n._pendingEditorState=ql(a||o),l=!0),a._flushSync=s;const f=ge,h=Te,c=me,d=n._updating;ge=a,Te=!1,n._updating=!0,me=n;try{l&&(n._headless?o._selection!==null&&(a._selection=o._selection.clone()):a._selection=function(y){const b=y.getEditorState()._selection,v=Re(y._window);return I(b)||b==null?Es(b,v,y,null):b.clone()}(n));const m=n._compositionKey;e(),i=Fo(n,i),function(y,b){const v=b.getEditorState()._selection,w=y._selection;if(I(w)){const S=w.anchor,T=w.focus;let D;if(S.type==="text"&&(D=S.getNode(),D.selectionTransform(v,w)),T.type==="text"){const C=T.getNode();D!==C&&C.selectionTransform(v,w)}}}(a,n),n._dirtyType!==Ut&&(i?function(y,b){const v=b._dirtyLeaves,w=y._nodeMap;for(const S of v){const T=w.get(S);P(T)&&T.isAttached()&&T.isSimpleText()&&!T.isUnmergeable()&&so(T)}}(a,n):function(y,b){const v=b._dirtyLeaves,w=b._dirtyElements,S=y._nodeMap,T=vt(),D=new Map;let C=v,L=C.size,H=w,x=H.size;for(;L>0||x>0;){if(L>0){b._dirtyLeaves=new Set;for(const k of C){const A=S.get(k);P(A)&&A.isAttached()&&A.isSimpleText()&&!A.isUnmergeable()&&so(A),A!==void 0&&Ro(A,T)&&Mo(b,A,D),v.add(k)}if(C=b._dirtyLeaves,L=C.size,L>0){Wr++;continue}}b._dirtyLeaves=new Set,b._dirtyElements=new Map;for(const k of H){const A=k[0],B=k[1];if(A!=="root"&&!B)continue;const _=S.get(A);_!==void 0&&Ro(_,T)&&Mo(b,_,D),w.set(A,B)}C=b._dirtyLeaves,L=C.size,H=b._dirtyElements,x=H.size,Wr++}b._dirtyLeaves=v,b._dirtyElements=w}(a,n),Fo(n),function(y,b,v,w){const S=y._nodeMap,T=b._nodeMap,D=[];for(const[C]of w){const L=T.get(C);L!==void 0&&(L.isAttached()||(N(L)&&gl(L,C,S,T,D,w),S.has(C)||w.delete(C),D.push(C)))}for(const C of D)T.delete(C);for(const C of v){const L=T.get(C);L===void 0||L.isAttached()||(S.has(C)||v.delete(C),T.delete(C))}}(o,a,n._dirtyLeaves,n._dirtyElements)),m!==n._compositionKey&&(a._flushSync=!0);const g=a._selection;if(I(g)){const y=a._nodeMap,b=g.anchor.key,v=g.focus.key;y.get(b)!==void 0&&y.get(v)!==void 0||R(19)}else Le(g)&&g._nodes.size===0&&(a._selection=null)}catch(m){return m instanceof Error&&n._onError(m),n._pendingEditorState=o,n._dirtyType=hn,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void wt(n)}finally{ge=f,Te=h,me=c,n._updating=d,Wr=0}n._dirtyType!==Ut||function(m,g){const y=g.getEditorState()._selection,b=m._selection;if(b!==null){if(b.dirty||!b.is(y))return!0}else if(y!==null)return!0;return!1}(a,n)?a._flushSync?(a._flushSync=!1,wt(n)):l&&pf(()=>{wt(n)}):(a._flushSync=!1,l&&(r.clear(),n._deferred=[],n._pendingEditorState=null))}function Ne(n,e,t){n._updating?n._updates.push([e,t]):Fl(n,e,t)}class Un{constructor(e,t,r){this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new Un(this.element,e,this.after)}withAfter(e){return new Un(this.element,this.before,e)}withElement(e){return new Un(e,this.before,this.after)}insertChild(e){const t=this.before||this.getManagedLineBreak();return t!==null&&t.parentElement!==this.element&&R(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&R(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&R(224),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){if(e===null)this.removeManagedLineBreak();else{const t=e==="decorator"&&(ir||ku);this.insertManagedLineBreak(t)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,u=this.before,i=document.createElement("br");if(r.insertBefore(i,u),e){const s=document.createElement("img");s.setAttribute("data-lexical-linebreak","true"),s.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",s.alt="",r.insertBefore(s,i),r.__lexicalLineBreak=s}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;t!==null;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,u){if(r===this.element){const a=this.getFirstChildOffset();return[e,Math.min(a+e.getChildrenSize(),Math.max(a,u))]}const i=jo(t,r);i.push(u);const s=jo(t,this.element);let o=e.getIndexWithinParent();for(let a=0;a<s.length;a++){const l=i[a],f=s[a];if(l===void 0||l<f)break;if(l>f){o+=1;break}}return[e.getParentOrThrow(),o]}}function jo(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=e.parentNode){let u=0;for(let i=r.previousSibling;i!==null;i=r.previousSibling)u++;t.push(u)}return r!==n&&R(225),t.reverse()}class Xt extends Lu{constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null}afterCloneFrom(e){super.afterCloneFrom(e),this.__first=e.__first,this.__last=e.__last,this.__size=e.__size,this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir}getFormat(){return this.getLatest().__format}getFormatType(){const e=this.getFormat();return rf[e]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const e=[];let t=this.getFirstChild();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){const e=[];let t=this.getFirstChild();for(;t!==null;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0}isDirty(){const e=ae()._dirtyElements;return e!==null&&e.has(this.__key)}isLastChild(){const e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return t!==null&&t.is(e)}getAllTextNodes(){const e=[];let t=this.getFirstChild();for(;t!==null;){if(P(t)&&e.push(t),N(t)){const r=t.getAllTextNodes();e.push(...r)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;N(e);){const t=e.getFirstChild();if(t===null)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;N(e);){const t=e.getLastChild();if(t===null)break;e=t}return e}getDescendantByIndex(e){const t=this.getChildren(),r=t.length;if(e>=r){const i=t[r-1];return N(i)&&i.getLastDescendant()||i||null}const u=t[e];return N(u)&&u.getFirstDescendant()||u||null}getFirstChild(){const e=this.getLatest().__first;return e===null?null:he(e)}getFirstChildOrThrow(){const e=this.getFirstChild();return e===null&&R(45,this.__key),e}getLastChild(){const e=this.getLatest().__last;return e===null?null:he(e)}getLastChildOrThrow(){const e=this.getLastChild();return e===null&&R(96,this.__key),e}getChildAtIndex(e){const t=this.getChildrenSize();let r,u;if(e<t/2){for(r=this.getFirstChild(),u=0;r!==null&&u<=e;){if(u===e)return r;r=r.getNextSibling(),u++}return null}for(r=this.getLastChild(),u=t-1;r!==null&&u>=e;){if(u===e)return r;r=r.getPreviousSibling(),u--}return null}getTextContent(){let e="";const t=this.getChildren(),r=t.length;for(let u=0;u<r;u++){const i=t[u];e+=i.getTextContent(),N(i)&&u!==r-1&&!i.isInline()&&(e+=lt)}return e}getTextContentSize(){let e=0;const t=this.getChildren(),r=t.length;for(let u=0;u<r;u++){const i=t[u];e+=i.getTextContentSize(),N(i)&&u!==r-1&&!i.isInline()&&(e+=lt.length)}return e}getDirection(){return this.getLatest().__dir}hasFormat(e){if(e!==""){const t=ro[e];return!!(this.getFormat()&t)}return!1}select(e,t){Se();const r=$();let u=e,i=t;const s=this.getChildrenSize();if(!this.canBeEmpty()){if(e===0&&t===0){const a=this.getFirstChild();if(P(a)||N(a))return a.select(0,0)}else if(!(e!==void 0&&e!==s||t!==void 0&&t!==s)){const a=this.getLastChild();if(P(a)||N(a))return a.select()}}u===void 0&&(u=s),i===void 0&&(i=s);const o=this.__key;return I(r)?(r.anchor.set(o,u,"element"),r.focus.set(o,i,"element"),r.dirty=!0,r):Pl(o,u,o,i,"element","element")}selectStart(){const e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){const e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){const e=this.getWritable();return this.getChildren().forEach(t=>t.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){const t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=e!==""?ro[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,r){const u=r.length,i=this.getChildrenSize(),s=this.getWritable();e+t<=i||R(226,String(e),String(t),String(i));const o=s.__key,a=[],l=[],f=this.getChildAtIndex(e+t);let h=null,c=i-t+u;if(e!==0)if(e===i)h=this.getLastChild();else{const p=this.getChildAtIndex(e);p!==null&&(h=p.getPreviousSibling())}if(t>0){let p=h===null?this.getFirstChild():h.getNextSibling();for(let m=0;m<t;m++){p===null&&R(100);const g=p.getNextSibling(),y=p.__key;qt(p.getWritable()),l.push(y),p=g}}let d=h;for(let p=0;p<u;p++){const m=r[p];d!==null&&m.is(d)&&(h=d=d.getPreviousSibling());const g=m.getWritable();g.__parent===o&&c--,qt(g);const y=m.__key;if(d===null)s.__first=y,g.__prev=null;else{const b=d.getWritable();b.__next=y,g.__prev=b.__key}m.__key===o&&R(76),g.__parent=o,a.push(y),d=m}if(e+t===i)d!==null&&(d.getWritable().__next=null,s.__last=d.__key);else if(f!==null){const p=f.getWritable();if(d!==null){const m=d.getWritable();p.__prev=d.__key,m.__next=f.__key}else p.__prev=null}if(s.__size=c,l.length){const p=$();if(I(p)){const m=new Set(l),g=new Set(a),{anchor:y,focus:b}=p;qo(y,m,g)&&fu(y,y.getNode(),this,h,f),qo(b,m,g)&&fu(b,b.getNode(),this,h,f),c!==0||this.canBeEmpty()||ct(this)||this.remove()}}return s}getDOMSlot(e){return new Un(e)}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&Jt(t)){const r=this.getIndent();r>0&&(t.style.paddingInlineStart=40*r+"px")}return{element:t}}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"element",version:1}}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){const r=this.getDOMSlot(e);let u=r.getFirstChild();for(let i=this.getFirstChild();i;i=i.getNextSibling()){const s=t.getElementByKey(i.getKey());s!==null&&(u==null?(r.insertChild(s),u=s):u!==s&&r.replaceChild(s,u),u=u.nextSibling)}}}function N(n){return n instanceof Xt}function qo(n,e,t){let r=n.getNode();for(;r;){const u=r.__key;if(e.has(u)&&!t.has(u))return!0;r=r.getParent()}return!1}class jl extends Lu{constructor(e){super(e)}decorate(e,t){R(47)}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ue(n){return n instanceof jl}class pr extends Xt{static getType(){return"root"}static clone(){return new pr}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){R(51)}getTextContent(){const e=this.__cachedText;return!hr()&&ae()._dirtyType!==Ut||e===null?super.getTextContent():e}remove(){R(52)}replace(e){R(53)}insertBefore(e){R(54)}insertAfter(e){R(55)}updateDOM(e,t){return!1}append(...e){for(let t=0;t<e.length;t++){const r=e[t];N(r)||ue(r)||R(56)}return super.append(...e)}static importJSON(e){const t=ce();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportJSON(){return{children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),type:"root",version:1}}collapseAtStart(){return!0}}function xe(n){return n instanceof pr}function ql(n){return new Bu(new Map(n._nodeMap))}function Ns(){return new Bu(new Map([["root",new pr]]))}function Ul(n){const e=n.exportJSON(),t=n.constructor;if(e.type!==t.getType()&&R(130,t.name),N(n)){const r=e.children;Array.isArray(r)||R(59,t.name);const u=n.getChildren();for(let i=0;i<u.length;i++){const s=Ul(u[i]);r.push(s)}}return e}class Bu{constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return this._nodeMap.size===1&&this._selection===null}read(e,t){return Bo(t&&t.editor||null,this,e)}clone(e){const t=new Bu(this._nodeMap,e===void 0?this._selection:e);return t._readOnly=!0,t}toJSON(){return Bo(null,this,()=>({root:Ul(ce())}))}}class As extends Xt{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class vn extends Xt{constructor(e){super(e),this.__textFormat=0,this.__textStyle=""}static getType(){return"paragraph"}getTextFormat(){return this.getLatest().__textFormat}setTextFormat(e){const t=this.getWritable();return t.__textFormat=e,t}hasTextFormat(e){const t=zt[e];return!!(this.getTextFormat()&t)}getFormatFlags(e,t){return nu(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}setTextStyle(e){const t=this.getWritable();return t.__textStyle=e,t}static clone(e){return new vn(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}createDOM(e){const t=document.createElement("p"),r=Rn(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:Wf,priority:0})}}exportDOM(e){const{element:t}=super.exportDOM(e);if(t&&Jt(t)){this.isEmpty()&&t.append(document.createElement("br"));const r=this.getFormatType();t.style.textAlign=r;const u=this.getDirection();u&&(t.dir=u)}return{element:t}}static importJSON(e){const t=Ae();return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t.setTextFormat(e.textFormat),t}exportJSON(){return{...super.exportJSON(),textFormat:this.getTextFormat(),textStyle:this.getTextStyle(),type:"paragraph",version:1}}insertNewAfter(e,t){const r=Ae();r.setTextFormat(e.format),r.setTextStyle(e.style);const u=this.getDirection();return r.setDirection(u),r.setFormat(this.getFormatType()),r.setStyle(this.getTextStyle()),this.insertAfter(r,t),r}collapseAtStart(){const e=this.getChildren();if(e.length===0||P(e[0])&&e[0].getTextContent().trim()===""){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Wf(n){const e=Ae();return n.style&&(e.setFormat(n.style.textAlign),Cf(n,e)),{node:e}}function Ae(){return At(new vn)}function Ht(n){return n instanceof vn}const te=0,at=1,Hf=3,Vf=4;function zl(n,e,t,r){const u=n._keyToDOMMap;u.clear(),n._editorState=Ns(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=Ut,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,n._updateTags=new Set,n._updates=[],n._blockCursorElement=null;const i=n._observer;i!==null&&(i.disconnect(),n._observer=null),e!==null&&(e.textContent=""),t!==null&&(t.textContent="",u.set("root",t))}function Gf(n){const e=n||{},t=zf(),r=e.theme||{},u=n===void 0?t:e.parentEditor||null,i=e.disableEvents||!1,s=Ns(),o=e.namespace||(u!==null?u._config.namespace:dl()),a=e.editorState,l=[pr,Zt,lr,cr,vn,As,...e.nodes||[]],{onError:f,html:h}=e,c=e.editable===void 0||e.editable;let d;if(n===void 0&&t!==null)d=t._nodes;else{d=new Map;for(let m=0;m<l.length;m++){let g=l[m],y=null,b=null;if(typeof g!="function"){const T=g;g=T.replace,y=T.with,b=T.withKlass||null}const v=g.getType(),w=g.transform(),S=new Set;w!==null&&S.add(w),d.set(v,{exportDOM:h&&h.export?h.export.get(g):void 0,klass:g,replace:y,replaceWithKlass:b,transforms:S})}}const p=new Fu(s,u,d,{disableEvents:i,namespace:o,theme:r},f||console.error,function(m,g){const y=new Map,b=new Set,v=w=>{Object.keys(w).forEach(S=>{let T=y.get(S);T===void 0&&(T=[],y.set(S,T)),T.push(w[S])})};return m.forEach(w=>{const S=w.klass.importDOM;if(S==null||b.has(S))return;b.add(S);const T=S.call(w.klass);T!==null&&v(T)}),g&&v(g),y}(d,h?h.import:void 0),c);return a!==void 0&&(p._pendingEditorState=a,p._dirtyType=hn),p}class Fu{constructor(e,t,r,u,i,s,o){this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=u,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=Ut,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=dl(),this._onError=i,this._htmlConversions=s,this._editable=o,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){const t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){const t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){const t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){const t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){const t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){r===void 0&&R(35);const u=this._commands;u.has(e)||u.set(e,[new Set,new Set,new Set,new Set,new Set]);const i=u.get(e);i===void 0&&R(36,String(e));const s=i[r];return s.add(t),()=>{s.delete(t),i.every(o=>o.size===0)&&u.delete(e)}}registerMutationListener(e,t,r){const u=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation;i.set(t,u);const s=r&&r.skipInitialization;return s!==void 0&&s||this.initializeMutationListener(t,u),()=>{i.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&R(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,u=Tf(r).get(t.getType());if(!u)return;const i=new Map;for(const s of u.keys())i.set(s,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),u=[r],i=r.replaceWithKlass;if(i!=null){const a=this.registerNodeTransformToKlass(i,t);u.push(a)}var s,o;return s=this,o=e.getType(),Ne(s,()=>{const a=ht();if(a.isEmpty())return;if(o==="root")return void ce().markDirty();const l=a._nodeMap;for(const[,f]of l)f.markDirty()},s._pendingEditorState===null?{tag:"history-merge"}:void 0),()=>{u.forEach(a=>a.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return U(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=Rn(this._config.theme,"root"),u=this._pendingEditorState||this._editorState;if(this._rootElement=e,zl(this,t,e,u),t!==null&&(this._config.disableEvents||Of(t),r!=null&&t.classList.remove(...r)),e!==null){const i=function(o){const a=o.ownerDocument;return a&&a.defaultView||null}(e),s=e.style;s.userSelect="text",s.whiteSpace="pre-wrap",s.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=i,this._dirtyType=hn,ul(this),this._updateTags.add("history-merge"),wt(this),this._config.disableEvents||function(o,a){const l=o.ownerDocument,f=lu.get(l);(f===void 0||f<1)&&l.addEventListener("selectionchange",Nl),lu.set(l,(f||0)+1),o.__lexicalEditor=a;const h=kl(o);for(let c=0;c<ki.length;c++){const[d,p]=ki[c],m=typeof p=="function"?g=>{wo(g)||(vo(g),(a.isEditable()||d==="click")&&p(g,a))}:g=>{if(wo(g))return;vo(g);const y=a.isEditable();switch(d){case"cut":return y&&U(a,os,g);case"copy":return U(a,Eu,g);case"paste":return y&&U(a,ur,g);case"dragstart":return y&&U(a,Za,g);case"dragover":return y&&U(a,Xa,g);case"dragend":return y&&U(a,q0,g);case"focus":return y&&U(a,$0,g);case"blur":return y&&U(a,W0,g);case"drop":return y&&U(a,Ja,g)}};o.addEventListener(d,m),h.push(()=>{o.removeEventListener(d,m)})}}(e,this),r!=null&&e.classList.add(...r)}else this._editorState=u,this._pendingEditorState=null,this._window=null;qn("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&R(38);let r=e;r._readOnly&&(r=ql(e),r._selection=e._selection?e._selection.clone():null),rl(this);const u=this._pendingEditorState,i=this._updateTags,s=t!==void 0?t.tag:null;u===null||u.isEmpty()||(s!=null&&i.add(s),wt(this)),this._pendingEditorState=r,this._dirtyType=hn,this._dirtyElements.set("root",!1),this._compositionKey=null,s!=null&&i.add(s),this._updating||wt(this)}parseEditorState(e,t){return function(r,u,i){const s=Ns(),o=ge,a=Te,l=me,f=u._dirtyElements,h=u._dirtyLeaves,c=u._cloneNotNeeded,d=u._dirtyType;u._dirtyElements=new Map,u._dirtyLeaves=new Set,u._cloneNotNeeded=new Set,u._dirtyType=0,ge=s,Te=!1,me=u;try{const p=u._nodes;ks(r.root,p),i&&i(),s._readOnly=!0}catch(p){p instanceof Error&&u._onError(p)}finally{u._dirtyElements=f,u._dirtyLeaves=h,u._cloneNotNeeded=c,u._dirtyType=d,ge=o,Te=a,me=l}return s}(typeof e=="string"?JSON.parse(e):e,this,t)}read(e){return wt(this),this.getEditorState().read(e,{editor:this})}update(e,t){Ne(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),Ne(this,()=>{const u=$(),i=ce();u!==null?u.dirty=!0:i.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?i.selectStart():i.selectEnd())},{onUpdate:()=>{r.removeAttribute("autocapitalize"),e&&e()},tag:"focus"}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=Re(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,qn("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}Fu.version="0.21.0+prod.esm";function Kf(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}Kf(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Jf=new Map;function Zf(n){const e={};if(!n)return e;const t=n.split(";");for(const r of t)if(r!==""){const[u,i]=r.split(/:([^]+)/);u&&i&&(e[u.trim()]=i.trim())}return e}function $l(n,e){const t=n.getStartEndPoints();if(e.isSelected(n)&&!e.isSegmented()&&!e.isToken()&&t!==null){const[r,u]=t,i=n.isBackward(),s=r.getNode(),o=u.getNode(),a=e.is(s),l=e.is(o);if(a||l){const[f,h]=Di(n),c=s.is(o),d=e.is(i?o:s),p=e.is(i?s:o);let m,g=0;return c?(g=f>h?h:f,m=f>h?f:h):d?(g=i?h:f,m=void 0):p&&(g=0,m=i?f:h),e.__text=e.__text.slice(g,m),e}}return e}function Xf(n){const e=n.getStyle(),t=Zf(e);Jf.set(e,t)}function Uo(n,e){const t=Vn(n.focus,e);return ue(t)&&!t.isIsolated()||N(t)&&!t.isInline()&&!t.canBeEmpty()}function Qf(n,e,t,r){n.modify(e?"extend":"move",t,r)}function Yf(n){const e=n.anchor.getNode();return(xe(e)?e:e.getParentOrThrow()).getDirection()==="rtl"}function zo(n,e,t){const r=Yf(n);Qf(n,e,t?!r:r,"character")}function ed(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var td=ed(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const Wl=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,nd=Wl&&"documentMode"in document?document.documentMode:null;!(!Wl||!("InputEvent"in window)||nd)&&"getTargetRanges"in new window.InputEvent("input");function Hl(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}function pt(...n){return()=>{for(let e=n.length-1;e>=0;e--)n[e]();n.length=0}}function Os(n,...e){const t=Hl(...e);t.length>0&&n.classList.add(...t)}function Vl(n,...e){const t=Hl(...e);t.length>0&&n.classList.remove(...t)}function rd(n,e){let t=n;for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null}function ud(n){const e=ju(n,t=>N(t)&&!t.isInline());return N(e)||td(4,n.__key),e}const ju=(n,e)=>{let t=n;for(;t!==ce()&&t!=null;){if(e(t))return t;t=t.getParent()}return null};function St(n,e){return n!==null&&Object.getPrototypeOf(n).constructor.name===e.name}function Gl(n,e){const t=e.body?e.body.childNodes:[];let r=[];const u=[];for(let i=0;i<t.length;i++){const s=t[i];if(!Zl.has(s.nodeName)){const o=Xl(s,n,u,!1);o!==null&&(r=r.concat(o))}}return function(i){for(const s of i)s.getNextSibling()instanceof As&&s.insertAfter(Wt());for(const s of i){const o=s.getChildren();for(const a of o)s.insertBefore(a);s.remove()}}(u),r}function Kl(n,e){if(typeof document>"u"||typeof window>"u"&&global.window===void 0)throw new Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");const t=document.createElement("div"),r=ce().getChildren();for(let u=0;u<r.length;u++)Jl(n,r[u],t,e);return t.innerHTML}function Jl(n,e,t,r=null){let u=r===null||e.isSelected(r);const i=N(e)&&e.excludeFromCopy("html");let s=e;if(r!==null){let d=Ts(e);d=P(d)&&r!==null?$l(r,d):d,s=d}const o=N(s)?s.getChildren():[],a=n._nodes.get(s.getType());let l;l=a&&a.exportDOM!==void 0?a.exportDOM(n,s):s.exportDOM(n);const{element:f,after:h}=l;if(!f)return!1;const c=document.createDocumentFragment();for(let d=0;d<o.length;d++){const p=o[d],m=Jl(n,p,c,r);!u&&N(e)&&m&&e.extractWithChild(p,r,"html")&&(u=!0)}if(u&&!i){if((Jt(f)||mo(f))&&f.append(c),t.append(f),h){const d=h.call(s,f);d&&(mo(f)?f.replaceChildren(d):f.replaceWith(d))}}else t.append(c);return u}const Zl=new Set(["STYLE","SCRIPT"]);function Xl(n,e,t,r,u=new Map,i){let s=[];if(Zl.has(n.nodeName))return s;let o=null;const a=function(p,m){const{nodeName:g}=p,y=m._htmlConversions.get(g.toLowerCase());let b=null;if(y!==void 0)for(const v of y){const w=v(p);w!==null&&(b===null||(b.priority||0)<=(w.priority||0))&&(b=w)}return b!==null?b.conversion:null}(n,e),l=a?a(n):null;let f=null;if(l!==null){f=l.after;const p=l.node;if(o=Array.isArray(p)?p[p.length-1]:p,o!==null){for(const[,m]of u)if(o=m(o,i),!o)break;o&&s.push(...Array.isArray(p)?p:[o])}l.forChild!=null&&u.set(n.nodeName,l.forChild)}const h=n.childNodes;let c=[];const d=(o==null||!ct(o))&&(o!=null&&Ii(o)||r);for(let p=0;p<h.length;p++)c.push(...Xl(h[p],e,t,d,new Map(u),o));return f!=null&&(c=f(c)),iu(n)&&(c=id(n,c,d?()=>{const p=new As;return t.push(p),p}:Ae)),o==null?c.length>0?s=s.concat(c):iu(n)&&function(p){return p.nextSibling==null||p.previousSibling==null?!1:_i(p.nextSibling)&&_i(p.previousSibling)}(n)&&(s=s.concat(Wt())):N(o)&&o.append(...c),s}function id(n,e,t){const r=n.style.textAlign,u=[];let i=[];for(let s=0;s<e.length;s++){const o=e[s];if(Ii(o))r&&!o.getFormat()&&o.setFormat(r),u.push(o);else if(i.push(o),s===e.length-1||s<e.length-1&&Ii(e[s+1])){const a=t();a.setFormat(r),a.append(...i),u.push(a),i=[]}}return u}const sd=new Set(["http:","https:","mailto:","sms:","tel:"]);let gr=class Ql extends Xt{static getType(){return"link"}static clone(e){return new Ql(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e,t={},r){super(r);const{target:u=null,rel:i=null,title:s=null}=t;this.__url=e,this.__target=u,this.__rel=i,this.__title=s}createDOM(e){const t=document.createElement("a");return t.href=this.sanitizeUrl(this.__url),this.__target!==null&&(t.target=this.__target),this.__rel!==null&&(t.rel=this.__rel),this.__title!==null&&(t.title=this.__title),Os(t,e.theme.link),t}updateDOM(e,t,r){if(t instanceof HTMLAnchorElement){const u=this.__url,i=this.__target,s=this.__rel,o=this.__title;u!==e.__url&&(t.href=u),i!==e.__target&&(i?t.target=i:t.removeAttribute("target")),s!==e.__rel&&(s?t.rel=s:t.removeAttribute("rel")),o!==e.__title&&(o?t.title=o:t.removeAttribute("title"))}return!1}static importDOM(){return{a:e=>({conversion:od,priority:1})}}static importJSON(e){const t=du(e.url,{rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}sanitizeUrl(e){try{const t=new URL(e);if(!sd.has(t.protocol))return"about:blank"}catch{return e}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),type:"link",url:this.getURL(),version:1}}getURL(){return this.getLatest().__url}setURL(e){this.getWritable().__url=e}getTarget(){return this.getLatest().__target}setTarget(e){this.getWritable().__target=e}getRel(){return this.getLatest().__rel}setRel(e){this.getWritable().__rel=e}getTitle(){return this.getLatest().__title}setTitle(e){this.getWritable().__title=e}insertNewAfter(e,t=!0){const r=du(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!I(t))return!1;const u=t.anchor.getNode(),i=t.focus.getNode();return this.isParentOf(u)&&this.isParentOf(i)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}};function od(n){let e=null;if(vf(n)){const t=n.textContent;(t!==null&&t!==""||n.children.length>0)&&(e=du(n.getAttribute("href")||"",{rel:n.getAttribute("rel"),target:n.getAttribute("target"),title:n.getAttribute("title")}))}return{node:e}}function du(n,e){return At(new gr(n,e))}function ze(n){return n instanceof gr}let qu=class Yl extends gr{constructor(e,t={},r){super(e,t,r),this.__isUnlinked=t.isUnlinked!==void 0&&t.isUnlinked!==null&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new Yl(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){const t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,r){return super.updateDOM(e,t,r)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){const t=Pi(e.url,{isUnlinked:e.isUnlinked,rel:e.rel,target:e.target,title:e.title});return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked,type:"autolink",version:1}}insertNewAfter(e,t=!0){const r=this.getParentOrThrow().insertNewAfter(e,t);if(N(r)){const u=Pi(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return r.append(u),u}return null}};function Pi(n,e){return At(new qu(n,e))}function un(n){return n instanceof qu}const dn=xn();function oi(n,e={}){const{target:t,title:r}=e,u=e.rel===void 0?"noreferrer":e.rel,i=$();if(!I(i))return;const s=i.extract();if(n===null)s.forEach(o=>{const a=ju(o,l=>!un(l)&&ze(l));if(a){const l=a.getChildren();for(let f=0;f<l.length;f++)a.insertBefore(l[f]);a.remove()}});else{if(s.length===1){const l=function(f,h){let c=f;for(;c!==null&&c.getParent()!==null&&!h(c);)c=c.getParentOrThrow();return h(c)?c:null}(s[0],ze);if(l!==null)return l.setURL(n),t!==void 0&&l.setTarget(t),u!==null&&l.setRel(u),void(r!==void 0&&l.setTitle(r))}let o=null,a=null;s.forEach(l=>{const f=l.getParent();if(f!==a&&f!==null&&(!N(l)||l.isInline())){if(ze(f))return a=f,f.setURL(n),t!==void 0&&f.setTarget(t),u!==null&&a.setRel(u),void(r!==void 0&&a.setTitle(r));if(f.is(o)||(o=f,a=du(n,{rel:u,target:t,title:r}),ze(f)?l.getPreviousSibling()===null?f.insertBefore(a):f.insertAfter(a):l.insertBefore(a)),ze(l)){if(l.is(a))return;if(a!==null){const h=l.getChildren();for(let c=0;c<h.length;c++)a.append(h[c])}l.remove()}else a!==null&&a.append(l)}})}}function ad(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Xe=ad(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function ld(n){let e=1,t=n.getParent();for(;t!=null;){if(se(t)){const r=t.getParent();if(Q(r)){e++,t=r.getParent();continue}Xe(40)}return e}return e}function Li(n){let e=n.getParent();Q(e)||Xe(40);let t=e;for(;t!==null;)t=t.getParent(),Q(t)&&(e=t);return e}function ec(n){let e=[];const t=n.getChildren().filter(se);for(let r=0;r<t.length;r++){const u=t[r],i=u.getFirstChild();Q(i)?e=e.concat(ec(i)):e.push(u)}return e}function Qe(n){return se(n)&&Q(n.getFirstChild())}function $o(n){return Oe().append(n)}function tc(n,e){return se(n)&&(e.length===0||e.length===1&&n.is(e[0])&&n.getChildrenSize()===0)}function Wo(n,e){n.update(()=>{const t=$();if(t!==null){const r=t.getNodes();if(I(t)){const i=t.getStartEndPoints();i===null&&Xe(143);const[s]=i,o=s.getNode(),a=o.getParent();if(tc(o,r)){const l=Ce(e);if(ct(a)){o.replace(l);const f=Oe();N(o)&&(f.setFormat(o.getFormatType()),f.setIndent(o.getIndent())),l.append(f)}else if(se(o)){const f=o.getParentOrThrow();Vt(l,f.getChildren()),f.replace(l)}return}}const u=new Set;for(let i=0;i<r.length;i++){const s=r[i];if(!N(s)||!s.isEmpty()||se(s)||u.has(s.getKey())){if(ol(s)){let o=s.getParent();for(;o!=null;){const a=o.getKey();if(Q(o)){if(!u.has(a)){const l=Ce(e);Vt(l,o.getChildren()),o.replace(l),u.add(a)}break}{const l=o.getParent();if(ct(l)&&!u.has(a)){u.add(a),Ho(o,e);break}o=l}}}}else Ho(s,e)}}})}function Vt(n,e){n.splice(n.getChildrenSize(),0,e)}function Ho(n,e){if(Q(n))return n;const t=n.getPreviousSibling(),r=n.getNextSibling(),u=Oe();let i;if(Vt(u,n.getChildren()),Q(t)&&e===t.getListType())t.append(u),Q(r)&&e===r.getListType()&&(Vt(t,r.getChildren()),r.remove()),i=t;else if(Q(r)&&e===r.getListType())r.getFirstChildOrThrow().insertBefore(u),i=r;else{const s=Ce(e);s.append(u),n.replace(s),i=s}return u.setFormat(n.getFormatType()),u.setIndent(n.getIndent()),n.remove(),i}function Ds(n,e){const t=n.getLastChild(),r=e.getFirstChild();t&&r&&Qe(t)&&Qe(r)&&(Ds(t.getFirstChild(),r.getFirstChild()),r.remove());const u=e.getChildren();u.length>0&&n.append(...u),e.remove()}function cd(n){n.update(()=>{const e=$();if(I(e)){const t=new Set,r=e.getNodes(),u=e.anchor.getNode();if(tc(u,r))t.add(Li(u));else for(let i=0;i<r.length;i++){const s=r[i];if(ol(s)){const o=rd(s,mr);o!=null&&t.add(Li(o))}}for(const i of t){let s=i;const o=ec(i);for(const a of o){const l=Ae();Vt(l,a.getChildren()),s.insertAfter(l),s=l,a.__key===e.anchor.key&&e.anchor.set(l.getKey(),0,"element"),a.__key===e.focus.key&&e.focus.set(l.getKey(),0,"element"),a.remove()}i.remove()}}})}function fd(n){const e=new Set;if(Qe(n)||e.has(n.getKey()))return;const t=n.getParent(),r=n.getNextSibling(),u=n.getPreviousSibling();if(Qe(r)&&Qe(u)){const i=u.getFirstChild();if(Q(i)){i.append(n);const s=r.getFirstChild();Q(s)&&(Vt(i,s.getChildren()),r.remove(),e.add(r.getKey()))}}else if(Qe(r)){const i=r.getFirstChild();if(Q(i)){const s=i.getFirstChild();s!==null&&s.insertBefore(n)}}else if(Qe(u)){const i=u.getFirstChild();Q(i)&&i.append(n)}else if(Q(t)){const i=Oe(),s=Ce(t.getListType());i.append(s),s.append(n),u?u.insertAfter(i):r?r.insertBefore(i):t.append(i)}}function dd(n){if(Qe(n))return;const e=n.getParent(),t=e?e.getParent():void 0;if(Q(t?t.getParent():void 0)&&se(t)&&Q(e)){const r=e?e.getFirstChild():void 0,u=e?e.getLastChild():void 0;if(n.is(r))t.insertBefore(n),e.isEmpty()&&t.remove();else if(n.is(u))t.insertAfter(n),e.isEmpty()&&t.remove();else{const i=e.getListType(),s=Oe(),o=Ce(i);s.append(o),n.getPreviousSiblings().forEach(f=>o.append(f));const a=Oe(),l=Ce(i);a.append(l),Vt(l,n.getNextSiblings()),t.insertBefore(s),t.insertAfter(a),t.replace(n)}}}function hd(){const n=$();if(!I(n)||!n.isCollapsed())return!1;const e=n.anchor.getNode();if(!se(e)||e.getChildrenSize()!==0)return!1;const t=Li(e),r=e.getParent();Q(r)||Xe(40);const u=r.getParent();let i;if(ct(u))i=Ae(),t.insertAfter(i);else{if(!se(u))return!1;i=Oe(),u.insertAfter(i)}i.select();const s=e.getNextSiblings();if(s.length>0){const o=Ce(r.getListType());if(Ht(i))i.insertAfter(o);else{const a=Oe();a.append(o),i.insertAfter(a)}s.forEach(a=>{a.remove(),o.append(a)})}return function(o){let a=o;for(;a.getNextSibling()==null&&a.getPreviousSibling()==null;){const l=a.getParent();if(l==null||!se(a)&&!Q(a))break;a=l}a.remove()}(e),!0}function hu(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}let mr=class nc extends Xt{static getType(){return"listitem"}static clone(e){return new nc(e.__value,e.__checked,e.__key)}constructor(e,t,r){super(r),this.__value=e===void 0?1:e,this.__checked=t}createDOM(e){const t=document.createElement("li"),r=this.getParent();return Q(r)&&r.getListType()==="check"&&Go(t,this,null),t.value=this.__value,Vo(t,e.theme,this),t}updateDOM(e,t,r){const u=this.getParent();return Q(u)&&u.getListType()==="check"&&Go(t,this,e),t.value=this.__value,Vo(t,r.theme,this),!1}static transform(){return e=>{if(se(e)||Xe(144),e.__checked==null)return;const t=e.getParent();Q(t)&&t.getListType()!=="check"&&e.getChecked()!=null&&e.setChecked(void 0)}}static importDOM(){return{li:()=>({conversion:pd,priority:0})}}static importJSON(e){const t=Oe();return t.setChecked(e.checked),t.setValue(e.value),t.setFormat(e.format),t.setDirection(e.direction),t}exportDOM(e){const t=this.createDOM(e._config);return t.style.textAlign=this.getFormatType(),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),type:"listitem",value:this.getValue(),version:1}}append(...e){for(let t=0;t<e.length;t++){const r=e[t];if(N(r)&&this.canMergeWith(r)){const u=r.getChildren();this.append(...u),r.remove()}else super.append(r)}return this}replace(e,t){if(se(e))return super.replace(e);this.setIndent(0);const r=this.getParentOrThrow();if(!Q(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{const u=Ce(r.getListType());let i=this.getNextSibling();for(;i;){const s=i;i=i.getNextSibling(),u.append(s)}r.insertAfter(e),e.insertAfter(u)}return t&&(N(e)||Xe(139),this.getChildren().forEach(u=>{e.append(u)})),this.remove(),r.getChildrenSize()===0&&r.remove(),e}insertAfter(e,t=!0){const r=this.getParentOrThrow();if(Q(r)||Xe(39),se(e))return super.insertAfter(e,t);const u=this.getNextSiblings();if(r.insertAfter(e,t),u.length!==0){const i=Ce(r.getListType());u.forEach(s=>i.append(s)),e.insertAfter(i,t)}return e}remove(e){const t=this.getPreviousSibling(),r=this.getNextSibling();super.remove(e),t&&r&&Qe(t)&&Qe(r)&&(Ds(t.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(e,t=!0){const r=Oe(this.__checked==null&&void 0);return this.insertAfter(r,t),r}collapseAtStart(e){const t=Ae();this.getChildren().forEach(s=>t.append(s));const r=this.getParentOrThrow(),u=r.getParentOrThrow(),i=se(u);if(r.getChildrenSize()===1)if(i)r.remove(),u.select();else{r.insertBefore(t),r.remove();const s=e.anchor,o=e.focus,a=t.getKey();s.type==="element"&&s.getNode().is(this)&&s.set(a,s.offset,"element"),o.type==="element"&&o.getNode().is(this)&&o.set(a,o.offset,"element")}else r.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){this.getWritable().__value=e}getChecked(){const e=this.getLatest();let t;const r=this.getParent();return Q(r)&&(t=r.getListType()),t==="check"?!!e.__checked:void 0}setChecked(e){this.getWritable().__checked=e}toggleChecked(){this.setChecked(!this.__checked)}getIndent(){const e=this.getParent();if(e===null)return this.getLatest().__indent;let t=e.getParentOrThrow(),r=0;for(;se(t);)t=t.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(e){typeof e!="number"&&Xe(117),(e=Math.floor(e))>=0||Xe(199);let t=this.getIndent();for(;t!==e;)t<e?(fd(this),t++):(dd(this),t--);return this}canInsertAfter(e){return se(e)}canReplaceWith(e){return se(e)}canMergeWith(e){return Ht(e)||se(e)}extractWithChild(e,t){if(!I(t))return!1;const r=t.anchor.getNode(),u=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(u)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Ce("bullet")}canMergeWhenEmpty(){return!0}};function Vo(n,e,t){const r=[],u=[],i=e.list,s=i?i.listitem:void 0;let o;if(i&&i.nested&&(o=i.nested.listitem),s!==void 0&&r.push(...hu(s)),i){const a=t.getParent(),l=Q(a)&&a.getListType()==="check",f=t.getChecked();l&&!f||u.push(i.listitemUnchecked),l&&f||u.push(i.listitemChecked),l&&r.push(f?i.listitemChecked:i.listitemUnchecked)}if(o!==void 0){const a=hu(o);t.getChildren().some(l=>Q(l))?r.push(...a):u.push(...a)}u.length>0&&Vl(n,...u),r.length>0&&Os(n,...r)}function Go(n,e,t,r){Q(e.getFirstChild())?(n.removeAttribute("role"),n.removeAttribute("tabIndex"),n.removeAttribute("aria-checked")):(n.setAttribute("role","checkbox"),n.setAttribute("tabIndex","-1"),t&&e.__checked===t.__checked||n.setAttribute("aria-checked",e.getChecked()?"true":"false"))}function pd(n){if(n.classList.contains("task-list-item")){for(const t of n.children)if(t.tagName==="INPUT")return gd(t)}const e=n.getAttribute("aria-checked");return{node:Oe(e==="true"||e!=="false"&&void 0)}}function gd(n){return n.getAttribute("type")!=="checkbox"?{node:null}:{node:Oe(n.hasAttribute("checked"))}}function Oe(n){return At(new mr(void 0,n))}function se(n){return n instanceof mr}class wn extends Xt{static getType(){return"list"}static clone(e){const t=e.__listType||Zo[e.__tag];return new wn(t,e.__start,e.__key)}constructor(e,t,r){super(r);const u=Zo[e]||e;this.__listType=u,this.__tag=u==="number"?"ol":"ul",this.__start=t}getTag(){return this.__tag}setListType(e){const t=this.getWritable();t.__listType=e,t.__tag=e==="number"?"ol":"ul"}getListType(){return this.__listType}getStart(){return this.__start}createDOM(e,t){const r=this.__tag,u=document.createElement(r);return this.__start!==1&&u.setAttribute("start",String(this.__start)),u.__lexicalListType=this.__listType,Ko(u,e.theme,this),u}updateDOM(e,t,r){return e.__tag!==this.__tag||(Ko(t,r.theme,this),!1)}static transform(){return e=>{Q(e)||Xe(163),function(t){const r=t.getNextSibling();Q(r)&&t.getListType()===r.getListType()&&Ds(t,r)}(e),function(t){const r=t.getListType()!=="check";let u=t.getStart();for(const i of t.getChildren())se(i)&&(i.getValue()!==u&&i.setValue(u),r&&i.getLatest().__checked!=null&&i.setChecked(void 0),Q(i.getFirstChild())||u++)}(e)}}static importDOM(){return{ol:()=>({conversion:Jo,priority:0}),ul:()=>({conversion:Jo,priority:0})}}static importJSON(e){const t=Ce(e.listType,e.start);return t.setFormat(e.format),t.setIndent(e.indent),t.setDirection(e.direction),t}exportDOM(e){const t=this.createDOM(e._config,e);return t&&Jt(t)&&(this.__start!==1&&t.setAttribute("start",String(this.__start)),this.__listType==="check"&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag(),type:"list",version:1}}canBeEmpty(){return!1}canIndent(){return!1}append(...e){for(let t=0;t<e.length;t++){const r=e[t];if(se(r))super.append(r);else{const u=Oe();if(Q(r))u.append(r);else if(N(r))if(r.isInline())u.append(r);else{const i=le(r.getTextContent());u.append(i)}else u.append(r);super.append(u)}}return this}extractWithChild(e){return se(e)}}function Ko(n,e,t){const r=[],u=[],i=e.list;if(i!==void 0){const s=i[`${t.__tag}Depth`]||[],o=ld(t)-1,a=o%s.length,l=s[a],f=i[t.__tag];let h;const c=i.nested,d=i.checklist;if(c!==void 0&&c.list&&(h=c.list),f!==void 0&&r.push(f),d!==void 0&&t.__listType==="check"&&r.push(d),l!==void 0){r.push(...hu(l));for(let p=0;p<s.length;p++)p!==a&&u.push(t.__tag+p)}if(h!==void 0){const p=hu(h);o>1?r.push(...p):u.push(...p)}}u.length>0&&Vl(n,...u),r.length>0&&Os(n,...r)}function md(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t];if(se(r)){e.push(r);const u=r.getChildren();u.length>1&&u.forEach(i=>{Q(i)&&e.push($o(i))})}else e.push($o(r))}return e}function Jo(n){const e=n.nodeName.toLowerCase();let t=null;return e==="ol"?t=Ce("number",n.start):e==="ul"&&(t=function(r){if(r.getAttribute("__lexicallisttype")==="check"||r.classList.contains("contains-task-list"))return!0;for(const u of r.childNodes)if(Jt(u)&&u.hasAttribute("aria-checked"))return!0;return!1}(n)?Ce("check"):Ce("bullet")),{after:md,node:t}}const Zo={ol:"number",ul:"bullet"};function Ce(n,e=1){return At(new wn(n,e))}function Q(n){return n instanceof wn}const rc=xn(),bd=xn(),uc=xn();function yd(n){return pt(n.registerCommand(bd,()=>(Wo(n,"number"),!0),at),n.registerCommand(rc,()=>(Wo(n,"bullet"),!0),at),n.registerCommand(uc,()=>(cd(n),!0),at),n.registerCommand($n,()=>!!hd(),at))}function _d(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var xd=_d(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const ic=F.createContext(null);function vd(n,e){return{getTheme:function(){return e??null}}}function De(){const n=F.useContext(ic);return n==null&&xd(8),n}function wd({defaultSelection:n}){const[e]=De();return F.useEffect(()=>{e.focus(()=>{const t=document.activeElement,r=e.getRootElement();r===null||t!==null&&r.contains(t)||r.focus({preventScroll:!0})},{defaultSelection:n})},[n,e]),null}function Sd(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Td=Sd(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function sc(n,e){for(let t=0;t<e.length;t++){const r=e[t](n);if(r)return r}return null}const Cd=/[.,;\s]/;function pu(n){return Cd.test(n)}function oc(n){return pu(n[n.length-1])}function Mi(n){return pu(n[0])}function ac(n){let e=n.getPreviousSibling();return N(e)&&(e=e.getLastDescendant()),e===null||Et(e)||P(e)&&oc(e.getTextContent())}function lc(n){let e=n.getNextSibling();return N(e)&&(e=e.getFirstDescendant()),e===null||Et(e)||P(e)&&Mi(e.getTextContent())}function Ed(n,e,t,r){return(n>0?pu(t[n-1]):ac(r[0]))?e<t.length?pu(t[e]):lc(r[r.length-1]):!1}function kd(n,e,t){const r=[],u=[],i=[];let s=0,o=0;const a=[...n];for(;a.length>0;){const l=a[0],f=l.getTextContent().length,h=o;o+f<=e?(r.push(l),s+=f):h>=t?i.push(l):u.push(l),o+=f,a.shift()}return[s,r,u,i]}function Nd(n,e,t,r){const u=Pi(r.url,r.attributes);if(n.length===1){let i,s=n[0];e===0?[i,s]=s.splitText(t):[,i,s]=s.splitText(e,t);const o=le(r.text);return o.setFormat(i.getFormat()),o.setDetail(i.getDetail()),o.setStyle(i.getStyle()),u.append(o),i.replace(u),s}if(n.length>1){const i=n[0];let s,o=i.getTextContent().length;e===0?s=i:[,s]=i.splitText(e);const a=[];let l;for(let d=1;d<n.length;d++){const p=n[d],m=p.getTextContent().length,g=o;if(g<t)if(o+m<=t)a.push(p);else{const[y,b]=p.splitText(t-g);a.push(y),l=b}o+=m}const f=$(),h=f?f.getNodes().find(P):void 0,c=le(s.getTextContent());return c.setFormat(s.getFormat()),c.setDetail(s.getDetail()),c.setStyle(s.getStyle()),u.append(c,...a),h&&h===s&&(I(f)?c.select(f.anchor.offset,f.focus.offset):Le(f)&&c.select(0,c.getTextContent().length)),s.replace(u),l}}function ai(n,e,t){const r=n.getChildren(),u=r.length;for(let a=0;a<u;a++){const l=r[a];if(!P(l)||!l.isSimpleText())return Hr(n),void t(null,n.getURL())}const i=n.getTextContent(),s=sc(i,e);if(s===null||s.text!==i||!ac(n)||!lc(n))return Hr(n),void t(null,n.getURL());const o=n.getURL();if(o!==s.url&&(n.setURL(s.url),t(s.url,o)),s.attributes){const a=n.getRel();a!==s.attributes.rel&&(n.setRel(s.attributes.rel||null),t(s.attributes.rel||null,a));const l=n.getTarget();l!==s.attributes.target&&(n.setTarget(s.attributes.target||null),t(s.attributes.target||null,l))}}function Hr(n){const e=n.getChildren();for(let t=e.length-1;t>=0;t--)n.insertAfter(e[t]);return n.remove(),e.map(t=>t.getLatest())}function Ad(n,e,t){F.useEffect(()=>{n.hasNodes([qu])||Td(77);const r=(u,i)=>{t&&t(u,i)};return pt(n.registerNodeTransform(Zt,u=>{const i=u.getParentOrThrow(),s=u.getPreviousSibling();if(un(i)&&!i.getIsUnlinked())ai(i,e,r);else if(!ze(i)){if(u.isSimpleText()&&(Mi(u.getTextContent())||!un(s))){const o=function(a){const l=[a];let f=a.getNextSibling();for(;f!==null&&P(f)&&f.isSimpleText()&&(l.push(f),!/[\s]/.test(f.getTextContent()));)f=f.getNextSibling();return l}(u);(function(a,l,f){let h=[...a];const c=h.map(g=>g.getTextContent()).join("");let d,p=c,m=0;for(;(d=sc(p,l))&&d!==null;){const g=d.index,y=g+d.length;if(Ed(m+g,m+y,c,h)){const[b,,v,w]=kd(h,m+g,m+y),S=Nd(v,m+g-b,m+y-b,d);h=S?[S,...w]:w,f(d.url,null),m=0}else m+=y;p=p.substring(y)}})(o,e,r)}(function(o,a,l){const f=o.getPreviousSibling(),h=o.getNextSibling(),c=o.getTextContent();var d;!un(f)||f.getIsUnlinked()||Mi(c)&&(d=c,!(f.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(d):/^\.[a-zA-Z0-9]{1,}/.test(d)))||(f.append(o),ai(f,a,l),l(null,f.getURL())),!un(h)||h.getIsUnlinked()||oc(c)||(Hr(h),ai(h,a,l),l(null,h.getURL()))})(u,e,r)}}),n.registerCommand(dn,u=>{const i=$();return u!==null||!I(i)||i.extract().forEach(s=>{const o=s.getParent();if(un(o))return o.setIsUnlinked(!o.getIsUnlinked()),o.markDirty(),!0}),!1},at))},[n,e,t])}function Od({matchers:n,onChange:e}){const[t]=De();return Ad(t,n,e),null}const cc=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,Dd=cc?F.useLayoutEffect:F.useEffect,Ar={tag:"history-merge"};function Id({initialConfig:n,children:e}){const t=F.useMemo(()=>{const{theme:r,namespace:u,nodes:i,onError:s,editorState:o,html:a}=n,l=vd(null,r),f=Gf({editable:n.editable,html:a,namespace:u,nodes:i,onError:h=>s(h,f),theme:r});return function(h,c){if(c!==null){if(c===void 0)h.update(()=>{const d=ce();if(d.isEmpty()){const p=Ae();d.append(p);const m=cc?document.activeElement:null;($()!==null||m!==null&&m===h.getRootElement())&&p.select()}},Ar);else if(c!==null)switch(typeof c){case"string":{const d=h.parseEditorState(c);h.setEditorState(d,Ar);break}case"object":h.setEditorState(c,Ar);break;case"function":h.update(()=>{ce().isEmpty()&&c(h)},Ar)}}}(f,o),[f,l]},[]);return Dd(()=>{const r=n.editable,[u]=t;u.setEditable(r===void 0||r)},[]),q.jsx(ic.Provider,{value:t,children:e})}function Pd(){return ce().getTextContent()}function Ld(n,e=!0){if(n)return!1;let t=Pd();return e&&(t=t.trim()),t===""}function Md(n){if(!Ld(n,!1))return!1;const e=ce().getChildren(),t=e.length;if(t>1)return!1;for(let r=0;r<t;r++){const u=e[r];if(ue(u))return!1;if(N(u)){if(!Ht(u)||u.__indent!==0)return!1;const i=u.getChildren(),s=i.length;for(let o=0;o<s;o++){const a=i[r];if(!P(a))return!1}}}return!0}function fc(n){return()=>Md(n)}function Rd(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}Rd(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});const dc=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?F.useLayoutEffect:F.useEffect;function Bd({editor:n,ariaActiveDescendant:e,ariaAutoComplete:t,ariaControls:r,ariaDescribedBy:u,ariaErrorMessage:i,ariaExpanded:s,ariaInvalid:o,ariaLabel:a,ariaLabelledBy:l,ariaMultiline:f,ariaOwns:h,ariaRequired:c,autoCapitalize:d,className:p,id:m,role:g="textbox",spellCheck:y=!0,style:b,tabIndex:v,"data-testid":w,...S},T){const[D,C]=F.useState(n.isEditable()),L=F.useCallback(x=>{x&&x.ownerDocument&&x.ownerDocument.defaultView?n.setRootElement(x):n.setRootElement(null)},[n]),H=F.useMemo(()=>function(...x){return k=>{x.forEach(A=>{typeof A=="function"?A(k):A!=null&&(A.current=k)})}}(T,L),[L,T]);return dc(()=>(C(n.isEditable()),n.registerEditableListener(x=>{C(x)})),[n]),q.jsx("div",{"aria-activedescendant":D?e:void 0,"aria-autocomplete":D?t:"none","aria-controls":D?r:void 0,"aria-describedby":u,...i!=null?{"aria-errormessage":i}:{},"aria-expanded":D&&g==="combobox"?!!s:void 0,...o!=null?{"aria-invalid":o}:{},"aria-label":a,"aria-labelledby":l,"aria-multiline":f,"aria-owns":D?h:void 0,"aria-readonly":!D||void 0,"aria-required":c,autoCapitalize:d,className:p,contentEditable:D,"data-testid":w,id:m,ref:H,role:D?g:void 0,spellCheck:y,style:b,tabIndex:v,...S})}const Fd=F.forwardRef(Bd);function Xo(n){return n.getEditorState().read(fc(n.isComposing()))}const jd=F.forwardRef(qd);function qd(n,e){const{placeholder:t,...r}=n,[u]=De();return q.jsxs(q.Fragment,{children:[q.jsx(Fd,{editor:u,...r,ref:e}),t!=null&&q.jsx(Ud,{editor:u,content:t})]})}function Ud({content:n,editor:e}){const t=function(s){const[o,a]=F.useState(()=>Xo(s));return dc(()=>{function l(){const f=Xo(s);a(f)}return l(),pt(s.registerUpdateListener(()=>{l()}),s.registerEditableListener(()=>{l()}))},[s]),o}(e),[r,u]=F.useState(e.isEditable());if(F.useLayoutEffect(()=>(u(e.isEditable()),e.registerEditableListener(s=>{u(s)})),[e]),!t)return null;let i=null;return typeof n=="function"?i=n(r):n!==null&&(i=n),i===null?null:q.jsx("div",{"aria-hidden":!0,children:i})}function Ri(n,e){return Ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Ri(n,e)}var Qo={error:null},zd=function(n){var e,t;function r(){for(var i,s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];return(i=n.call.apply(n,[this].concat(o))||this).state=Qo,i.resetErrorBoundary=function(){for(var l,f=arguments.length,h=new Array(f),c=0;c<f;c++)h[c]=arguments[c];i.props.onReset==null||(l=i.props).onReset.apply(l,h),i.reset()},i}t=n,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,Ri(e,t),r.getDerivedStateFromError=function(i){return{error:i}};var u=r.prototype;return u.reset=function(){this.setState(Qo)},u.componentDidCatch=function(i,s){var o,a;(o=(a=this.props).onError)==null||o.call(a,i,s)},u.componentDidUpdate=function(i,s){var o,a,l,f,h=this.state.error,c=this.props.resetKeys;h!==null&&s.error!==null&&((l=i.resetKeys)===void 0&&(l=[]),(f=c)===void 0&&(f=[]),l.length!==f.length||l.some(function(d,p){return!Object.is(d,f[p])}))&&((o=(a=this.props).onResetKeysChange)==null||o.call(a,i.resetKeys,c),this.reset())},u.render=function(){var i=this.state.error,s=this.props,o=s.fallbackRender,a=s.FallbackComponent,l=s.fallback;if(i!==null){var f={error:i,resetErrorBoundary:this.resetErrorBoundary};if(Zu.isValidElement(l))return l;if(typeof o=="function")return o(f);if(a)return Zu.createElement(a,f);throw new Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},r}(Zu.Component);function $d({children:n,onError:e}){return q.jsx(zd,{fallback:q.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:e,children:n})}const Or=0,Bi=1,Fi=2,qe=0,Wd=1,Yo=2,Hd=3,Vd=4;function Gd(n,e,t,r,u){if(n===null||t.size===0&&r.size===0&&!u)return qe;const i=e._selection,s=n._selection;if(u)return Wd;if(!(I(i)&&I(s)&&s.isCollapsed()&&i.isCollapsed()))return qe;const o=function(y,b,v){const w=y._nodeMap,S=[];for(const T of b){const D=w.get(T);D!==void 0&&S.push(D)}for(const[T,D]of v){if(!D)continue;const C=w.get(T);C===void 0||xe(C)||S.push(C)}return S}(e,t,r);if(o.length===0)return qe;if(o.length>1){const y=e._nodeMap,b=y.get(i.anchor.key),v=y.get(s.anchor.key);return b&&v&&!n._nodeMap.has(b.__key)&&P(b)&&b.__text.length===1&&i.anchor.offset===1?Yo:qe}const a=o[0],l=n._nodeMap.get(a.__key);if(!P(l)||!P(a)||l.__mode!==a.__mode)return qe;const f=l.__text,h=a.__text;if(f===h)return qe;const c=i.anchor,d=s.anchor;if(c.key!==d.key||c.type!=="text")return qe;const p=c.offset,m=d.offset,g=h.length-f.length;return g===1&&m===p-1?Yo:g===-1&&m===p+1?Hd:g===-1&&m===p?Vd:qe}function Kd(n,e){let t=Date.now(),r=qe;return(u,i,s,o,a,l)=>{const f=Date.now();if(l.has("historic"))return r=qe,t=f,Fi;const h=Gd(u,i,o,a,n.isComposing()),c=(()=>{const d=s===null||s.editor===n,p=l.has("history-push");if(!p&&d&&l.has("history-merge"))return Or;if(u===null)return Bi;const m=i._selection;return o.size>0||a.size>0?p===!1&&h!==qe&&h===r&&f<t+e&&d||o.size===1&&function(g,y,b){const v=y._nodeMap.get(g),w=b._nodeMap.get(g),S=y._selection,T=b._selection;return!(I(S)&&I(T)&&S.anchor.type==="element"&&S.focus.type==="element"&&T.anchor.type==="text"&&T.focus.type==="text"||!P(v)||!P(w)||v.__parent!==w.__parent)&&JSON.stringify(y.read(()=>v.exportJSON()))===JSON.stringify(b.read(()=>w.exportJSON()))}(Array.from(o)[0],u,i)?Or:Bi:m!==null?Or:Fi})();return t=f,r=h,c}}function ea(n){n.undoStack=[],n.redoStack=[],n.current=null}function Jd(n,e,t){const r=Kd(n,t);return pt(n.registerCommand(is,()=>(function(i,s){const o=s.redoStack,a=s.undoStack;if(a.length!==0){const l=s.current,f=a.pop();l!==null&&(o.push(l),i.dispatchCommand(Cr,!0)),a.length===0&&i.dispatchCommand(Er,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:"historic"})}}(n,e),!0),te),n.registerCommand(ss,()=>(function(i,s){const o=s.redoStack,a=s.undoStack;if(o.length!==0){const l=s.current;l!==null&&(a.push(l),i.dispatchCommand(Er,!0));const f=o.pop();o.length===0&&i.dispatchCommand(Cr,!1),s.current=f||null,f&&f.editor.setEditorState(f.editorState,{tag:"historic"})}}(n,e),!0),te),n.registerCommand(U0,()=>(ea(e),!1),te),n.registerCommand(z0,()=>(ea(e),n.dispatchCommand(Cr,!1),n.dispatchCommand(Er,!1),!0),te),n.registerUpdateListener(({editorState:i,prevEditorState:s,dirtyLeaves:o,dirtyElements:a,tags:l})=>{const f=e.current,h=e.redoStack,c=e.undoStack,d=f===null?null:f.editorState;if(f!==null&&i===d)return;const p=r(s,i,f,o,a,l);if(p===Bi)h.length!==0&&(e.redoStack=[],n.dispatchCommand(Cr,!1)),f!==null&&(c.push({...f}),n.dispatchCommand(Er,!0));else if(p===Fi)return;e.current={editor:n,editorState:i}}))}function Zd(){return{current:null,redoStack:[],undoStack:[]}}function Xd({delay:n,externalHistoryState:e}){const[t]=De();return function(r,u,i=1e3){const s=F.useMemo(()=>u||Zd(),[u]);F.useEffect(()=>Jd(r,s,i),[i,r,s])}(t,e,n),null}function Qd({validateUrl:n,attributes:e}){const[t]=De();return F.useEffect(()=>{if(!t.hasNodes([gr]))throw new Error("LinkPlugin: LinkNode not registered on editor");return pt(t.registerCommand(dn,r=>{if(r===null)return oi(r),!0;if(typeof r=="string")return!(n!==void 0&&!n(r))&&(oi(r,e),!0);{const{url:u,target:i,rel:s,title:o}=r;return oi(u,{...e,rel:s,target:i,title:o}),!0}},at),n!==void 0?t.registerCommand(ur,r=>{const u=$();if(!I(u)||u.isCollapsed()||!St(r,ClipboardEvent))return!1;const i=r;if(i.clipboardData===null)return!1;const s=i.clipboardData.getData("text");return!!n(s)&&!u.getNodes().some(o=>N(o))&&(t.dispatchCommand(dn,{...e,url:s}),r.preventDefault(),!0)},at):()=>{})},[t,n,e]),null}function Yd(){const[n]=De();return F.useEffect(()=>{if(!n.hasNodes([wn,mr]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[n]),function(e){F.useEffect(()=>yd(e),[e])}(n),null}const eh=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?F.useLayoutEffect:F.useEffect;function th({ignoreHistoryMergeTagChange:n=!0,ignoreSelectionChange:e=!1,onChange:t}){const[r]=De();return eh(()=>{if(t)return r.registerUpdateListener(({editorState:u,dirtyElements:i,dirtyLeaves:s,prevEditorState:o,tags:a})=>{e&&i.size===0&&s.size===0||n&&a.has("history-merge")||o.isEmpty()||t(u,r,a)})},[r,n,e,t]),null}const nh=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?F.useLayoutEffect:F.useEffect;function rh(n){return{initialValueFn:()=>n.isEditable(),subscribe:e=>n.registerEditableListener(e)}}function uh(){return function(n){const[e]=De(),t=F.useMemo(()=>n(e),[e,n]),[r,u]=F.useState(()=>t.initialValueFn()),i=F.useRef(r);return nh(()=>{const{initialValueFn:s,subscribe:o}=t,a=s();return i.current!==a&&(i.current=a,u(a)),o(l=>{i.current=l,u(l)})},[t,n]),r}(rh)}function ih(n){const e=window.location.origin,t=r=>{if(r.origin!==e)return;const u=n.getRootElement();if(document.activeElement!==u)return;const i=r.data;if(typeof i=="string"){let s;try{s=JSON.parse(i)}catch{return}if(s&&s.protocol==="nuanria_messaging"&&s.type==="request"){const o=s.payload;if(o&&o.functionId==="makeChanges"){const a=o.args;if(a){const[l,f,h,c,d,p]=a;n.update(()=>{const m=$();if(I(m)){const g=m.anchor;let y=g.getNode(),b=0,v=0;if(P(y)&&l>=0&&f>=0&&(b=l,v=l+f,m.setTextNodeRange(y,b,y,v)),b===v&&h===""||(m.insertRawText(h),y=g.getNode()),P(y)){b=c,v=c+d;const w=y.getTextContentSize();b=b>w?w:b,v=v>w?w:v,m.setTextNodeRange(y,b,y,v)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",t,!0),()=>{window.removeEventListener("message",t,!0)}}function sh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gu=sh(function(n){const e=new URLSearchParams;e.append("code",n);for(let t=1;t<arguments.length;t++)e.append("v",arguments[t]);throw Error(`Minified Lexical error #${n}; visit https://lexical.dev/docs/error?${e} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)});function oh(n,e=$()){return e==null&&gu(166),I(e)&&e.isCollapsed()||e.getNodes().length===0?"":Kl(n,e)}function ah(n,e=$()){return e==null&&gu(166),I(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(lh(n,e))}function ta(n,e,t){const r=n.getData("application/x-lexical-editor");if(r)try{const s=JSON.parse(r);if(s.namespace===t._config.namespace&&Array.isArray(s.nodes))return na(t,ch(s.nodes),e)}catch{}const u=n.getData("text/html");if(u)try{const s=new DOMParser().parseFromString(function(o){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:a=>a}).createHTML(o):o}(u),"text/html");return na(t,Gl(t,s),e)}catch{}const i=n.getData("text/plain")||n.getData("text/uri-list");if(i!=null)if(I(e)){const s=i.split(/(\r?\n|\t)/);s[s.length-1]===""&&s.pop();for(let o=0;o<s.length;o++){const a=$();if(I(a)){const l=s[o];l===`
12
- `||l===`\r
13
- `?a.insertParagraph():l===" "?a.insertNodes([fr()]):a.insertText(l)}}}else e.insertRawText(i)}function na(n,e,t){n.dispatchCommand(D0,{nodes:e,selection:t})||t.insertNodes(e)}function hc(n,e,t,r=[]){let u=e===null||t.isSelected(e);const i=N(t)&&t.excludeFromCopy("html");let s=t;if(e!==null){let l=Ts(t);l=P(l)&&e!==null?$l(e,l):l,s=l}const o=N(s)?s.getChildren():[],a=function(l){const f=l.exportJSON(),h=l.constructor;if(f.type!==h.getType()&&gu(58,h.name),N(l)){const c=f.children;Array.isArray(c)||gu(59,h.name)}return f}(s);if(P(s)){const l=s.__text;l.length>0?a.text=l:u=!1}for(let l=0;l<o.length;l++){const f=o[l],h=hc(n,e,f,a.children);!u&&N(t)&&h&&t.extractWithChild(f,e,"clone")&&(u=!0)}if(u&&!i)r.push(a);else if(Array.isArray(a.children))for(let l=0;l<a.children.length;l++){const f=a.children[l];r.push(f)}return u}function lh(n,e){const t=[],r=ce().getChildren();for(let u=0;u<r.length;u++)hc(n,e,r[u],t);return{namespace:n._config.namespace,nodes:t}}function ch(n){const e=[];for(let t=0;t<n.length;t++){const r=n[t],u=$f(r);P(u)&&Xf(u),e.push(u)}return e}let tn=null;async function ra(n,e,t){if(tn!==null)return!1;if(e!==null)return new Promise((a,l)=>{n.update(()=>{a(ua(n,e,t))})});const r=n.getRootElement(),u=n._window==null?window.document:n._window.document,i=Re(n._window);if(r===null||i===null)return!1;const s=u.createElement("span");s.style.cssText="position: fixed; top: -1000px;",s.append(u.createTextNode("#")),r.append(s);const o=new Range;return o.setStart(s,0),o.setEnd(s,1),i.removeAllRanges(),i.addRange(o),new Promise((a,l)=>{const f=n.registerCommand(Eu,h=>(St(h,ClipboardEvent)&&(f(),tn!==null&&(window.clearTimeout(tn),tn=null),a(ua(n,h,t))),!0),Vf);tn=window.setTimeout(()=>{f(),tn=null,a(!1)},50),u.execCommand("copy"),s.remove()})}function ua(n,e,t){if(t===void 0){const u=Re(n._window);if(!u)return!1;const i=u.anchorNode,s=u.focusNode;if(i!==null&&s!==null&&!or(n,i,s))return!1;const o=$();if(o===null)return!1;t=dh(o)}e.preventDefault();const r=e.clipboardData;return r!==null&&(hh(r,t),!0)}const fh=[["text/html",oh],["application/x-lexical-editor",ah]];function dh(n=$()){const e={"text/plain":n?n.getTextContent():""};if(n){const t=wf();for(const[r,u]of fh){const i=u(t,n);i!==null&&(e[r]=i)}}return e}function hh(n,e){for(const t in e){const r=e[t];r!==void 0&&n.setData(t,r)}}function ia(n,e){if(document.caretRangeFromPoint!==void 0){const t=document.caretRangeFromPoint(n,e);return t===null?null:{node:t.startContainer,offset:t.startOffset}}if(document.caretPositionFromPoint!=="undefined"){const t=document.caretPositionFromPoint(n,e);return t===null?null:{node:t.offsetNode,offset:t.offset}}return null}const Sn=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0,ph=Sn&&"documentMode"in document?document.documentMode:null,gh=!(!Sn||!("InputEvent"in window)||ph)&&"getTargetRanges"in new window.InputEvent("input"),mh=Sn&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),sa=Sn&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,bh=Sn&&/^(?=.*Chrome).*/i.test(navigator.userAgent),yh=Sn&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&!bh,oa=xn();function Dr(n){let e=null;if(St(n,DragEvent)?e=n.dataTransfer:St(n,ClipboardEvent)&&(e=n.clipboardData),e===null)return[!1,[],!1];const t=e.types,r=t.includes("Files"),u=t.includes("text/html")||t.includes("text/plain");return[r,Array.from(e.files),u]}function aa(n){const e=$();if(!I(e))return!1;const t=new Set,r=e.getNodes();for(let u=0;u<r.length;u++){const i=r[u],s=i.getKey();if(t.has(s))continue;const o=ju(i,l=>N(l)&&!l.isInline());if(o===null)continue;const a=o.getKey();o.canIndent()&&!t.has(a)&&(t.add(a),n(o))}return t.size>0}function Ir(n){const e=pn(n);return ue(e)}function _h(n){return pt(n.registerCommand(Ua,e=>{const t=$();return!!Le(t)&&(t.clear(),!0)},0),n.registerCommand(jt,e=>{const t=$();return!!I(t)&&(t.deleteCharacter(e),!0)},te),n.registerCommand(Wn,e=>{const t=$();return!!I(t)&&(t.deleteWord(e),!0)},te),n.registerCommand(Hn,e=>{const t=$();return!!I(t)&&(t.deleteLine(e),!0)},te),n.registerCommand(cn,e=>{const t=$();if(typeof e=="string")t!==null&&t.insertText(e);else{if(t===null)return!1;const r=e.dataTransfer;if(r!=null)ta(r,t,n);else if(I(t)){const u=e.data;return u&&t.insertText(u),!0}}return!0},te),n.registerCommand(mi,()=>{const e=$();return!!I(e)&&(e.removeText(),!0)},te),n.registerCommand($e,e=>{const t=$();return!!I(t)&&(t.formatText(e),!0)},te),n.registerCommand(j0,e=>{const t=$();if(!I(t)&&!Le(t))return!1;const r=t.getNodes();for(const u of r){const i=ju(u,s=>N(s)&&!s.isInline());i!==null&&i.setFormat(e)}return!0},te),n.registerCommand(ln,e=>{const t=$();return!!I(t)&&(t.insertLineBreak(e),!0)},te),n.registerCommand($n,()=>{const e=$();return!!I(e)&&(e.insertParagraph(),!0)},te),n.registerCommand(B0,()=>(Ru([fr()]),!0),te),n.registerCommand(F0,()=>aa(e=>{const t=e.getIndent();e.setIndent(t+1)}),te),n.registerCommand(no,()=>aa(e=>{const t=e.getIndent();t>0&&e.setIndent(t-1)}),te),n.registerCommand(Wa,e=>{const t=$();if(Le(t)&&!Ir(e.target)){const r=t.getNodes();if(r.length>0)return r[0].selectPrevious(),!0}else if(I(t)){const r=Vn(t.focus,!0);if(!e.shiftKey&&ue(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1},te),n.registerCommand(Ha,e=>{const t=$();if(Le(t)){const r=t.getNodes();if(r.length>0)return r[0].selectNext(0,0),!0}else if(I(t)){if(function(u){const i=u.focus;return i.key==="root"&&i.offset===ce().getChildrenSize()}(t))return e.preventDefault(),!0;const r=Vn(t.focus,!1);if(!e.shiftKey&&ue(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),e.preventDefault(),!0}return!1},te),n.registerCommand($a,e=>{const t=$();if(Le(t)){const r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectPrevious(),!0}if(!I(t))return!1;if(Uo(t,!0)){const r=e.shiftKey;return e.preventDefault(),zo(t,r,!0),!0}return!1},te),n.registerCommand(za,e=>{const t=$();if(Le(t)&&!Ir(e.target)){const u=t.getNodes();if(u.length>0)return e.preventDefault(),u[0].selectNext(0,0),!0}if(!I(t))return!1;const r=e.shiftKey;return!!Uo(t,!1)&&(e.preventDefault(),zo(t,r,!1),!0)},te),n.registerCommand(Va,e=>{if(Ir(e.target))return!1;const t=$();if(!I(t))return!1;const{anchor:r}=t,u=r.getNode();return t.isCollapsed()&&r.offset===0&&!xe(u)&&ud(u).getIndent()>0?(e.preventDefault(),n.dispatchCommand(no,void 0)):(!sa||navigator.language!=="ko-KR")&&(e.preventDefault(),n.dispatchCommand(jt,!0))},te),n.registerCommand(Ka,e=>{if(Ir(e.target))return!1;const t=$();return!!I(t)&&(e.preventDefault(),n.dispatchCommand(jt,!1))},te),n.registerCommand(Zr,e=>{const t=$();if(!I(t))return!1;if(e!==null){if((sa||mh||yh)&&gh)return!1;if(e.preventDefault(),e.shiftKey)return n.dispatchCommand(ln,!1)}return n.dispatchCommand($n,void 0)},te),n.registerCommand(Ga,()=>{const e=$();return!!I(e)&&(n.blur(),!0)},te),n.registerCommand(Ja,e=>{const[,t]=Dr(e);if(t.length>0){const u=ia(e.clientX,e.clientY);if(u!==null){const{offset:i,node:s}=u,o=pn(s);if(o!==null){const a=jf();if(P(o))a.anchor.set(o.getKey(),i,"text"),a.focus.set(o.getKey(),i,"text");else{const f=o.getParentOrThrow().getKey(),h=o.getIndexWithinParent()+1;a.anchor.set(f,h,"element"),a.focus.set(f,h,"element")}const l=il(a);Me(l)}n.dispatchCommand(oa,t)}return e.preventDefault(),!0}const r=$();return!!I(r)},te),n.registerCommand(Za,e=>{const[t]=Dr(e),r=$();return!(t&&!I(r))},te),n.registerCommand(Xa,e=>{const[t]=Dr(e),r=$();if(t&&!I(r))return!1;const u=ia(e.clientX,e.clientY);if(u!==null){const i=pn(u.node);ue(i)&&e.preventDefault()}return!0},te),n.registerCommand(bi,()=>(yf(),!0),te),n.registerCommand(Eu,e=>(ra(n,St(e,ClipboardEvent)?e:null),!0),te),n.registerCommand(os,e=>(async function(t,r){await ra(r,St(t,ClipboardEvent)?t:null),r.update(()=>{const u=$();I(u)?u.removeText():Le(u)&&u.getNodes().forEach(i=>i.remove())})}(e,n),!0),te),n.registerCommand(ur,e=>{const[,t,r]=Dr(e);return t.length>0&&!r?(n.dispatchCommand(oa,t),!0):bs(e.target)?!1:$()!==null&&(function(u,i){u.preventDefault(),i.update(()=>{const s=$(),o=St(u,InputEvent)||St(u,KeyboardEvent)?null:u.clipboardData;o!=null&&s!==null&&ta(o,s,i)},{tag:"paste"})}(e,n),!0)},te))}const ji=typeof window<"u"&&window.document!==void 0&&window.document.createElement!==void 0?F.useLayoutEffect:F.useEffect;function la(n){return n.getEditorState().read(fc(n.isComposing()))}function xh({contentEditable:n,placeholder:e=null,ErrorBoundary:t}){const[r]=De(),u=function(i,s){const[o,a]=F.useState(()=>i.getDecorators());return ji(()=>i.registerDecoratorListener(l=>{eo.flushSync(()=>{a(l)})}),[i]),F.useEffect(()=>{a(i.getDecorators())},[i]),F.useMemo(()=>{const l=[],f=Object.keys(o);for(let h=0;h<f.length;h++){const c=f[h],d=q.jsx(s,{onError:m=>i._onError(m),children:q.jsx(F.Suspense,{fallback:null,children:o[c]})}),p=i.getElementByKey(c);p!==null&&l.push(eo.createPortal(d,p,c))}return l},[s,o,i])}(r,t);return function(i){ji(()=>pt(_h(i),ih(i)),[i])}(r),q.jsxs(q.Fragment,{children:[n,q.jsx(vh,{content:e}),u]})}function vh({content:n}){const[e]=De(),t=function(u){const[i,s]=F.useState(()=>la(u));return ji(()=>{function o(){const a=la(u);s(a)}return o(),pt(u.registerUpdateListener(()=>{o()}),u.registerEditableListener(()=>{o()}))},[u]),i}(e),r=uh();return t?typeof n=="function"?n(r):n:null}var V=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wh(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function Sh(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var u=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,u.get?u:{enumerable:!0,get:function(){return n[r]}})}),t}var pc={},Zn={},Is={},Xn={},Ps={};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.default=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(function(n){return n.charCodeAt(0)}));var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(n){return n.charCodeAt(0)}));var qi={};(function(n){var e;Object.defineProperty(n,"__esModule",{value:!0}),n.replaceCodePoint=n.fromCodePoint=void 0;var t=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]]);n.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(i){var s="";return i>65535&&(i-=65536,s+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),s+=String.fromCharCode(i),s};function r(i){var s;return i>=55296&&i<=57343||i>1114111?65533:(s=t.get(i))!==null&&s!==void 0?s:i}n.replaceCodePoint=r;function u(i){return(0,n.fromCodePoint)(r(i))}n.default=u})(qi);(function(n){var e=V&&V.__createBinding||(Object.create?function(x,k,A,B){B===void 0&&(B=A);var _=Object.getOwnPropertyDescriptor(k,A);(!_||("get"in _?!k.__esModule:_.writable||_.configurable))&&(_={enumerable:!0,get:function(){return k[A]}}),Object.defineProperty(x,B,_)}:function(x,k,A,B){B===void 0&&(B=A),x[B]=k[A]}),t=V&&V.__setModuleDefault||(Object.create?function(x,k){Object.defineProperty(x,"default",{enumerable:!0,value:k})}:function(x,k){x.default=k}),r=V&&V.__importStar||function(x){if(x&&x.__esModule)return x;var k={};if(x!=null)for(var A in x)A!=="default"&&Object.prototype.hasOwnProperty.call(x,A)&&e(k,x,A);return t(k,x),k},u=V&&V.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXML=n.decodeHTMLStrict=n.decodeHTMLAttribute=n.decodeHTML=n.determineBranch=n.EntityDecoder=n.DecodingMode=n.BinTrieFlags=n.fromCodePoint=n.replaceCodePoint=n.decodeCodePoint=n.xmlDecodeTree=n.htmlDecodeTree=void 0;var i=u(Ps);n.htmlDecodeTree=i.default;var s=u(Ls);n.xmlDecodeTree=s.default;var o=r(qi);n.decodeCodePoint=o.default;var a=qi;Object.defineProperty(n,"replaceCodePoint",{enumerable:!0,get:function(){return a.replaceCodePoint}}),Object.defineProperty(n,"fromCodePoint",{enumerable:!0,get:function(){return a.fromCodePoint}});var l;(function(x){x[x.NUM=35]="NUM",x[x.SEMI=59]="SEMI",x[x.EQUALS=61]="EQUALS",x[x.ZERO=48]="ZERO",x[x.NINE=57]="NINE",x[x.LOWER_A=97]="LOWER_A",x[x.LOWER_F=102]="LOWER_F",x[x.LOWER_X=120]="LOWER_X",x[x.LOWER_Z=122]="LOWER_Z",x[x.UPPER_A=65]="UPPER_A",x[x.UPPER_F=70]="UPPER_F",x[x.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var f=32,h;(function(x){x[x.VALUE_LENGTH=49152]="VALUE_LENGTH",x[x.BRANCH_LENGTH=16256]="BRANCH_LENGTH",x[x.JUMP_TABLE=127]="JUMP_TABLE"})(h=n.BinTrieFlags||(n.BinTrieFlags={}));function c(x){return x>=l.ZERO&&x<=l.NINE}function d(x){return x>=l.UPPER_A&&x<=l.UPPER_F||x>=l.LOWER_A&&x<=l.LOWER_F}function p(x){return x>=l.UPPER_A&&x<=l.UPPER_Z||x>=l.LOWER_A&&x<=l.LOWER_Z||c(x)}function m(x){return x===l.EQUALS||p(x)}var g;(function(x){x[x.EntityStart=0]="EntityStart",x[x.NumericStart=1]="NumericStart",x[x.NumericDecimal=2]="NumericDecimal",x[x.NumericHex=3]="NumericHex",x[x.NamedEntity=4]="NamedEntity"})(g||(g={}));var y;(function(x){x[x.Legacy=0]="Legacy",x[x.Strict=1]="Strict",x[x.Attribute=2]="Attribute"})(y=n.DecodingMode||(n.DecodingMode={}));var b=function(){function x(k,A,B){this.decodeTree=k,this.emitCodePoint=A,this.errors=B,this.state=g.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict}return x.prototype.startEntity=function(k){this.decodeMode=k,this.state=g.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},x.prototype.write=function(k,A){switch(this.state){case g.EntityStart:return k.charCodeAt(A)===l.NUM?(this.state=g.NumericStart,this.consumed+=1,this.stateNumericStart(k,A+1)):(this.state=g.NamedEntity,this.stateNamedEntity(k,A));case g.NumericStart:return this.stateNumericStart(k,A);case g.NumericDecimal:return this.stateNumericDecimal(k,A);case g.NumericHex:return this.stateNumericHex(k,A);case g.NamedEntity:return this.stateNamedEntity(k,A)}},x.prototype.stateNumericStart=function(k,A){return A>=k.length?-1:(k.charCodeAt(A)|f)===l.LOWER_X?(this.state=g.NumericHex,this.consumed+=1,this.stateNumericHex(k,A+1)):(this.state=g.NumericDecimal,this.stateNumericDecimal(k,A))},x.prototype.addToNumericResult=function(k,A,B,_){if(A!==B){var O=B-A;this.result=this.result*Math.pow(_,O)+parseInt(k.substr(A,O),_),this.consumed+=O}},x.prototype.stateNumericHex=function(k,A){for(var B=A;A<k.length;){var _=k.charCodeAt(A);if(c(_)||d(_))A+=1;else return this.addToNumericResult(k,B,A,16),this.emitNumericEntity(_,3)}return this.addToNumericResult(k,B,A,16),-1},x.prototype.stateNumericDecimal=function(k,A){for(var B=A;A<k.length;){var _=k.charCodeAt(A);if(c(_))A+=1;else return this.addToNumericResult(k,B,A,10),this.emitNumericEntity(_,2)}return this.addToNumericResult(k,B,A,10),-1},x.prototype.emitNumericEntity=function(k,A){var B;if(this.consumed<=A)return(B=this.errors)===null||B===void 0||B.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(k===l.SEMI)this.consumed+=1;else if(this.decodeMode===y.Strict)return 0;return this.emitCodePoint((0,o.replaceCodePoint)(this.result),this.consumed),this.errors&&(k!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},x.prototype.stateNamedEntity=function(k,A){for(var B=this.decodeTree,_=B[this.treeIndex],O=(_&h.VALUE_LENGTH)>>14;A<k.length;A++,this.excess++){var E=k.charCodeAt(A);if(this.treeIndex=w(B,_,this.treeIndex+Math.max(1,O),E),this.treeIndex<0)return this.result===0||this.decodeMode===y.Attribute&&(O===0||m(E))?0:this.emitNotTerminatedNamedEntity();if(_=B[this.treeIndex],O=(_&h.VALUE_LENGTH)>>14,O!==0){if(E===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},x.prototype.emitNotTerminatedNamedEntity=function(){var k,A=this,B=A.result,_=A.decodeTree,O=(_[B]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(B,O,this.consumed),(k=this.errors)===null||k===void 0||k.missingSemicolonAfterCharacterReference(),this.consumed},x.prototype.emitNamedEntityData=function(k,A,B){var _=this.decodeTree;return this.emitCodePoint(A===1?_[k]&~h.VALUE_LENGTH:_[k+1],B),A===3&&this.emitCodePoint(_[k+2],B),B},x.prototype.end=function(){var k;switch(this.state){case g.NamedEntity:return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case g.NumericDecimal:return this.emitNumericEntity(0,2);case g.NumericHex:return this.emitNumericEntity(0,3);case g.NumericStart:return(k=this.errors)===null||k===void 0||k.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case g.EntityStart:return 0}},x}();n.EntityDecoder=b;function v(x){var k="",A=new b(x,function(B){return k+=(0,o.fromCodePoint)(B)});return function(_,O){for(var E=0,z=0;(z=_.indexOf("&",z))>=0;){k+=_.slice(E,z),A.startEntity(O);var Y=A.write(_,z+1);if(Y<0){E=z+A.end();break}E=z+Y,z=Y===0?E+1:E}var ee=k+_.slice(E);return k="",ee}}function w(x,k,A,B){var _=(k&h.BRANCH_LENGTH)>>7,O=k&h.JUMP_TABLE;if(_===0)return O!==0&&B===O?A:-1;if(O){var E=B-O;return E<0||E>=_?-1:x[A+E]-1}for(var z=A,Y=z+_-1;z<=Y;){var ee=z+Y>>>1,ke=x[ee];if(ke<B)z=ee+1;else if(ke>B)Y=ee-1;else return x[ee+_]}return-1}n.determineBranch=w;var S=v(i.default),T=v(s.default);function D(x,k){return k===void 0&&(k=y.Legacy),S(x,k)}n.decodeHTML=D;function C(x){return S(x,y.Attribute)}n.decodeHTMLAttribute=C;function L(x){return S(x,y.Strict)}n.decodeHTMLStrict=L;function H(x){return T(x,y.Strict)}n.decodeXML=H})(Xn);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuoteType=void 0;var e=Xn,t;(function(c){c[c.Tab=9]="Tab",c[c.NewLine=10]="NewLine",c[c.FormFeed=12]="FormFeed",c[c.CarriageReturn=13]="CarriageReturn",c[c.Space=32]="Space",c[c.ExclamationMark=33]="ExclamationMark",c[c.Number=35]="Number",c[c.Amp=38]="Amp",c[c.SingleQuote=39]="SingleQuote",c[c.DoubleQuote=34]="DoubleQuote",c[c.Dash=45]="Dash",c[c.Slash=47]="Slash",c[c.Zero=48]="Zero",c[c.Nine=57]="Nine",c[c.Semi=59]="Semi",c[c.Lt=60]="Lt",c[c.Eq=61]="Eq",c[c.Gt=62]="Gt",c[c.Questionmark=63]="Questionmark",c[c.UpperA=65]="UpperA",c[c.LowerA=97]="LowerA",c[c.UpperF=70]="UpperF",c[c.LowerF=102]="LowerF",c[c.UpperZ=90]="UpperZ",c[c.LowerZ=122]="LowerZ",c[c.LowerX=120]="LowerX",c[c.OpeningSquareBracket=91]="OpeningSquareBracket"})(t||(t={}));var r;(function(c){c[c.Text=1]="Text",c[c.BeforeTagName=2]="BeforeTagName",c[c.InTagName=3]="InTagName",c[c.InSelfClosingTag=4]="InSelfClosingTag",c[c.BeforeClosingTagName=5]="BeforeClosingTagName",c[c.InClosingTagName=6]="InClosingTagName",c[c.AfterClosingTagName=7]="AfterClosingTagName",c[c.BeforeAttributeName=8]="BeforeAttributeName",c[c.InAttributeName=9]="InAttributeName",c[c.AfterAttributeName=10]="AfterAttributeName",c[c.BeforeAttributeValue=11]="BeforeAttributeValue",c[c.InAttributeValueDq=12]="InAttributeValueDq",c[c.InAttributeValueSq=13]="InAttributeValueSq",c[c.InAttributeValueNq=14]="InAttributeValueNq",c[c.BeforeDeclaration=15]="BeforeDeclaration",c[c.InDeclaration=16]="InDeclaration",c[c.InProcessingInstruction=17]="InProcessingInstruction",c[c.BeforeComment=18]="BeforeComment",c[c.CDATASequence=19]="CDATASequence",c[c.InSpecialComment=20]="InSpecialComment",c[c.InCommentLike=21]="InCommentLike",c[c.BeforeSpecialS=22]="BeforeSpecialS",c[c.SpecialStartSequence=23]="SpecialStartSequence",c[c.InSpecialTag=24]="InSpecialTag",c[c.BeforeEntity=25]="BeforeEntity",c[c.BeforeNumericEntity=26]="BeforeNumericEntity",c[c.InNamedEntity=27]="InNamedEntity",c[c.InNumericEntity=28]="InNumericEntity",c[c.InHexEntity=29]="InHexEntity"})(r||(r={}));function u(c){return c===t.Space||c===t.NewLine||c===t.Tab||c===t.FormFeed||c===t.CarriageReturn}function i(c){return c===t.Slash||c===t.Gt||u(c)}function s(c){return c>=t.Zero&&c<=t.Nine}function o(c){return c>=t.LowerA&&c<=t.LowerZ||c>=t.UpperA&&c<=t.UpperZ}function a(c){return c>=t.UpperA&&c<=t.UpperF||c>=t.LowerA&&c<=t.LowerF}var l;(function(c){c[c.NoValue=0]="NoValue",c[c.Unquoted=1]="Unquoted",c[c.Single=2]="Single",c[c.Double=3]="Double"})(l=n.QuoteType||(n.QuoteType={}));var f={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function c(d,p){var m=d.xmlMode,g=m===void 0?!1:m,y=d.decodeEntities,b=y===void 0?!0:y;this.cbs=p,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=g,this.decodeEntities=b,this.entityTrie=g?e.xmlDecodeTree:e.htmlDecodeTree}return c.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},c.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},c.prototype.end=function(){this.running&&this.finish()},c.prototype.pause=function(){this.running=!1},c.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},c.prototype.getIndex=function(){return this.index},c.prototype.getSectionStart=function(){return this.sectionStart},c.prototype.stateText=function(d){d===t.Lt||!this.decodeEntities&&this.fastForwardTo(t.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===t.Amp&&(this.state=r.BeforeEntity)},c.prototype.stateSpecialStartSequence=function(d){var p=this.sequenceIndex===this.currentSequence.length,m=p?i(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!m)this.isSpecial=!1;else if(!p){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(d)},c.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===t.Gt||u(d)){var p=this.index-this.currentSequence.length;if(this.sectionStart<p){var m=this.index;this.index=p,this.cbs.ontext(this.sectionStart,p),this.index=m}this.isSpecial=!1,this.sectionStart=p+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===f.TitleEnd?this.decodeEntities&&d===t.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(t.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(d===t.Lt)},c.prototype.stateCDATASequence=function(d){d===f.Cdata[this.sequenceIndex]?++this.sequenceIndex===f.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=f.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(d))},c.prototype.fastForwardTo=function(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1},c.prototype.stateInCommentLike=function(d){d===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=r.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},c.prototype.isTagStartChar=function(d){return this.xmlMode?!i(d):o(d)},c.prototype.startSpecial=function(d,p){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=p,this.state=r.SpecialStartSequence},c.prototype.stateBeforeTagName=function(d){if(d===t.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===t.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){var p=d|32;this.sectionStart=this.index,!this.xmlMode&&p===f.TitleEnd[2]?this.startSpecial(f.TitleEnd,3):this.state=!this.xmlMode&&p===f.ScriptEnd[2]?r.BeforeSpecialS:r.InTagName}else d===t.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(d))},c.prototype.stateInTagName=function(d){i(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d))},c.prototype.stateBeforeClosingTagName=function(d){u(d)||(d===t.Gt?this.state=r.Text:(this.state=this.isTagStartChar(d)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},c.prototype.stateInClosingTagName=function(d){(d===t.Gt||u(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(d))},c.prototype.stateAfterClosingTagName=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},c.prototype.stateBeforeAttributeName=function(d){d===t.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):d===t.Slash?this.state=r.InSelfClosingTag:u(d)||(this.state=r.InAttributeName,this.sectionStart=this.index)},c.prototype.stateInSelfClosingTag=function(d){d===t.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):u(d)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d))},c.prototype.stateInAttributeName=function(d){(d===t.Eq||i(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(d))},c.prototype.stateAfterAttributeName=function(d){d===t.Eq?this.state=r.BeforeAttributeValue:d===t.Slash||d===t.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d)):u(d)||(this.cbs.onattribend(l.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},c.prototype.stateBeforeAttributeValue=function(d){d===t.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):d===t.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):u(d)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))},c.prototype.handleInAttributeValue=function(d,p){d===p||!this.decodeEntities&&this.fastForwardTo(p)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(p===t.DoubleQuote?l.Double:l.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&d===t.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},c.prototype.stateInAttributeValueDoubleQuotes=function(d){this.handleInAttributeValue(d,t.DoubleQuote)},c.prototype.stateInAttributeValueSingleQuotes=function(d){this.handleInAttributeValue(d,t.SingleQuote)},c.prototype.stateInAttributeValueNoQuotes=function(d){u(d)||d===t.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d)):this.decodeEntities&&d===t.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},c.prototype.stateBeforeDeclaration=function(d){d===t.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=d===t.Dash?r.BeforeComment:r.InDeclaration},c.prototype.stateInDeclaration=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},c.prototype.stateInProcessingInstruction=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},c.prototype.stateBeforeComment=function(d){d===t.Dash?(this.state=r.InCommentLike,this.currentSequence=f.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},c.prototype.stateInSpecialComment=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},c.prototype.stateBeforeSpecialS=function(d){var p=d|32;p===f.ScriptEnd[3]?this.startSpecial(f.ScriptEnd,4):p===f.StyleEnd[3]?this.startSpecial(f.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(d))},c.prototype.stateBeforeEntity=function(d){this.entityExcess=1,this.entityResult=0,d===t.Number?this.state=r.BeforeNumericEntity:d===t.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(d))},c.prototype.stateInNamedEntity=function(d){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var p=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(p){var m=(p>>14)-1;if(!this.allowLegacyEntity()&&d!==t.Semi)this.trieIndex+=m;else{var g=this.index-this.entityExcess+1;g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.entityResult=this.trieIndex,this.trieIndex+=m,this.entityExcess=0,this.sectionStart=this.index+1,m===0&&this.emitNamedEntity()}}},c.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var d=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(d){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},c.prototype.stateBeforeNumericEntity=function(d){(d|32)===t.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(d))},c.prototype.emitNumericEntity=function(d){var p=this.index-this.entityExcess-1,m=p+2+ +(this.state===r.InHexEntity);m!==this.index&&(p>this.sectionStart&&this.emitPartial(this.sectionStart,p),this.sectionStart=this.index+Number(d),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},c.prototype.stateInNumericEntity=function(d){d===t.Semi?this.emitNumericEntity(!0):s(d)?(this.entityResult=this.entityResult*10+(d-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},c.prototype.stateInHexEntity=function(d){d===t.Semi?this.emitNumericEntity(!0):s(d)?(this.entityResult=this.entityResult*16+(d-t.Zero),this.entityExcess++):a(d)?(this.entityResult=this.entityResult*16+((d|32)-t.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},c.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},c.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},c.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},c.prototype.parse=function(){for(;this.shouldContinue();){var d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case r.Text:{this.stateText(d);break}case r.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case r.InSpecialTag:{this.stateInSpecialTag(d);break}case r.CDATASequence:{this.stateCDATASequence(d);break}case r.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case r.InAttributeName:{this.stateInAttributeName(d);break}case r.InCommentLike:{this.stateInCommentLike(d);break}case r.InSpecialComment:{this.stateInSpecialComment(d);break}case r.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case r.InTagName:{this.stateInTagName(d);break}case r.InClosingTagName:{this.stateInClosingTagName(d);break}case r.BeforeTagName:{this.stateBeforeTagName(d);break}case r.AfterAttributeName:{this.stateAfterAttributeName(d);break}case r.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case r.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case r.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case r.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case r.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case r.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case r.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case r.InDeclaration:{this.stateInDeclaration(d);break}case r.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case r.BeforeComment:{this.stateBeforeComment(d);break}case r.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case r.InNamedEntity:{this.stateInNamedEntity(d);break}case r.BeforeEntity:{this.stateBeforeEntity(d);break}case r.InHexEntity:{this.stateInHexEntity(d);break}case r.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()},c.prototype.finish=function(){this.state===r.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},c.prototype.handleTrailingData=function(){var d=this.buffer.length+this.offset;this.state===r.InCommentLike?this.currentSequence===f.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===r.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InTagName||this.state===r.BeforeAttributeName||this.state===r.BeforeAttributeValue||this.state===r.AfterAttributeName||this.state===r.InAttributeName||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueDq||this.state===r.InAttributeValueNq||this.state===r.InClosingTagName||this.cbs.ontext(this.sectionStart,d)},c.prototype.emitPartial=function(d,p){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribdata(d,p):this.cbs.ontext(d,p)},c.prototype.emitCodePoint=function(d){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)},c}();n.default=h})(Is);var Th=V&&V.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var u=Object.getOwnPropertyDescriptor(e,t);(!u||("get"in u?!e.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,u)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),Ch=V&&V.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),Eh=V&&V.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Th(e,n,t);return Ch(e,n),e};Object.defineProperty(Zn,"__esModule",{value:!0});Zn.Parser=void 0;var Pr=Eh(Is),ca=Xn,nn=new Set(["input","option","optgroup","select","button","datalist","textarea"]),re=new Set(["p"]),fa=new Set(["thead","tbody"]),da=new Set(["dd","dt"]),ha=new Set(["rt","rp"]),kh=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",re],["h1",re],["h2",re],["h3",re],["h4",re],["h5",re],["h6",re],["select",nn],["input",nn],["output",nn],["button",nn],["datalist",nn],["textarea",nn],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",da],["dt",da],["address",re],["article",re],["aside",re],["blockquote",re],["details",re],["div",re],["dl",re],["fieldset",re],["figcaption",re],["figure",re],["footer",re],["form",re],["header",re],["hr",re],["main",re],["nav",re],["ol",re],["pre",re],["section",re],["table",re],["ul",re],["rt",ha],["rp",ha],["tbody",fa],["tfoot",fa]]),Nh=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),pa=new Set(["math","svg"]),ga=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Ah=/\s|\//,Oh=function(){function n(e,t){t===void 0&&(t={});var r,u,i,s,o;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:!t.xmlMode,this.lowerCaseAttributeNames=(u=t.lowerCaseAttributeNames)!==null&&u!==void 0?u:!t.xmlMode,this.tokenizer=new((i=t.Tokenizer)!==null&&i!==void 0?i:Pr.default)(this.options,this),(o=(s=this.cbs).onparserinit)===null||o===void 0||o.call(s,this)}return n.prototype.ontext=function(e,t){var r,u,i=this.getSlice(e,t);this.endIndex=t-1,(u=(r=this.cbs).ontext)===null||u===void 0||u.call(r,i),this.startIndex=t},n.prototype.ontextentity=function(e){var t,r,u=this.tokenizer.getSectionStart();this.endIndex=u-1,(r=(t=this.cbs).ontext)===null||r===void 0||r.call(t,(0,ca.fromCodePoint)(e)),this.startIndex=u},n.prototype.isVoidElement=function(e){return!this.options.xmlMode&&Nh.has(e)},n.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},n.prototype.emitOpenTag=function(e){var t,r,u,i;this.openTagStart=this.startIndex,this.tagname=e;var s=!this.options.xmlMode&&kh.get(e);if(s)for(;this.stack.length>0&&s.has(this.stack[this.stack.length-1]);){var o=this.stack.pop();(r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,o,!0)}this.isVoidElement(e)||(this.stack.push(e),pa.has(e)?this.foreignContext.push(!0):ga.has(e)&&this.foreignContext.push(!1)),(i=(u=this.cbs).onopentagname)===null||i===void 0||i.call(u,e),this.cbs.onopentag&&(this.attribs={})},n.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&((r=(t=this.cbs).onopentag)===null||r===void 0||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},n.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},n.prototype.onclosetag=function(e,t){var r,u,i,s,o,a;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(pa.has(l)||ga.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((u=(r=this.cbs).onopentagname)===null||u===void 0||u.call(r,"br"),(s=(i=this.cbs).onopentag)===null||s===void 0||s.call(i,"br",{},!0),(a=(o=this.cbs).onclosetag)===null||a===void 0||a.call(o,"br",!1));else{var f=this.stack.lastIndexOf(l);if(f!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-f;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=f;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},n.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},n.prototype.closeCurrentTag=function(e){var t,r,u=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===u&&((r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,u,!e),this.stack.pop())},n.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},n.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},n.prototype.onattribentity=function(e){this.attribvalue+=(0,ca.fromCodePoint)(e)},n.prototype.onattribend=function(e,t){var r,u;this.endIndex=t,(u=(r=this.cbs).onattribute)===null||u===void 0||u.call(r,this.attribname,this.attribvalue,e===Pr.QuoteType.Double?'"':e===Pr.QuoteType.Single?"'":e===Pr.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},n.prototype.getInstructionName=function(e){var t=e.search(Ah),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},n.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var u=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(u),"!".concat(r))}this.startIndex=t+1},n.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var u=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(u),"?".concat(r))}this.startIndex=t+1},n.prototype.oncomment=function(e,t,r){var u,i,s,o;this.endIndex=t,(i=(u=this.cbs).oncomment)===null||i===void 0||i.call(u,this.getSlice(e,t-r)),(o=(s=this.cbs).oncommentend)===null||o===void 0||o.call(s),this.startIndex=t+1},n.prototype.oncdata=function(e,t,r){var u,i,s,o,a,l,f,h,c,d;this.endIndex=t;var p=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?((i=(u=this.cbs).oncdatastart)===null||i===void 0||i.call(u),(o=(s=this.cbs).ontext)===null||o===void 0||o.call(s,p),(l=(a=this.cbs).oncdataend)===null||l===void 0||l.call(a)):((h=(f=this.cbs).oncomment)===null||h===void 0||h.call(f,"[CDATA[".concat(p,"]]")),(d=(c=this.cbs).oncommentend)===null||d===void 0||d.call(c)),this.startIndex=t+1},n.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)},n.prototype.reset=function(){var e,t,r,u;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(u=(r=this.cbs).onparserinit)===null||u===void 0||u.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},n.prototype.parseComplete=function(e){this.reset(),this.end(e)},n.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r},n.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},n.prototype.write=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},n.prototype.end=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},n.prototype.pause=function(){this.tokenizer.pause()},n.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},n.prototype.parseChunk=function(e){this.write(e)},n.prototype.done=function(e){this.end(e)},n}();Zn.Parser=Oh;var ft={},Tn={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.Doctype=n.CDATA=n.Tag=n.Style=n.Script=n.Comment=n.Directive=n.Text=n.Root=n.isTag=n.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=n.ElementType||(n.ElementType={}));function t(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}n.isTag=t,n.Root=e.Root,n.Text=e.Text,n.Directive=e.Directive,n.Comment=e.Comment,n.Script=e.Script,n.Style=e.Style,n.Tag=e.Tag,n.CDATA=e.CDATA,n.Doctype=e.Doctype})(Tn);var X={},Dt=V&&V.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,u){r.__proto__=u}||function(r,u){for(var i in u)Object.prototype.hasOwnProperty.call(u,i)&&(r[i]=u[i])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),zn=V&&V.__assign||function(){return zn=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u])}return n},zn.apply(this,arguments)};Object.defineProperty(X,"__esModule",{value:!0});X.cloneNode=X.hasChildren=X.isDocument=X.isDirective=X.isComment=X.isText=X.isCDATA=X.isTag=X.Element=X.Document=X.CDATA=X.NodeWithChildren=X.ProcessingInstruction=X.Comment=X.Text=X.DataNode=X.Node=void 0;var Ee=Tn,Ms=function(){function n(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(n.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),n.prototype.cloneNode=function(e){return e===void 0&&(e=!1),Rs(this,e)},n}();X.Node=Ms;var Uu=function(n){Dt(e,n);function e(t){var r=n.call(this)||this;return r.data=t,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(Ms);X.DataNode=Uu;var gc=function(n){Dt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=Ee.ElementType.Text,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(Uu);X.Text=gc;var mc=function(n){Dt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=Ee.ElementType.Comment,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(Uu);X.Comment=mc;var bc=function(n){Dt(e,n);function e(t,r){var u=n.call(this,r)||this;return u.name=t,u.type=Ee.ElementType.Directive,u}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(Uu);X.ProcessingInstruction=bc;var zu=function(n){Dt(e,n);function e(t){var r=n.call(this)||this;return r.children=t,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(Ms);X.NodeWithChildren=zu;var yc=function(n){Dt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=Ee.ElementType.CDATA,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(zu);X.CDATA=yc;var _c=function(n){Dt(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=Ee.ElementType.Root,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(zu);X.Document=_c;var xc=function(n){Dt(e,n);function e(t,r,u,i){u===void 0&&(u=[]),i===void 0&&(i=t==="script"?Ee.ElementType.Script:t==="style"?Ee.ElementType.Style:Ee.ElementType.Tag);var s=n.call(this,u)||this;return s.name=t,s.attribs=r,s.type=i,s}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(r){var u,i;return{name:r,value:t.attribs[r],namespace:(u=t["x-attribsNamespace"])===null||u===void 0?void 0:u[r],prefix:(i=t["x-attribsPrefix"])===null||i===void 0?void 0:i[r]}})},enumerable:!1,configurable:!0}),e}(zu);X.Element=xc;function vc(n){return(0,Ee.isTag)(n)}X.isTag=vc;function wc(n){return n.type===Ee.ElementType.CDATA}X.isCDATA=wc;function Sc(n){return n.type===Ee.ElementType.Text}X.isText=Sc;function Tc(n){return n.type===Ee.ElementType.Comment}X.isComment=Tc;function Cc(n){return n.type===Ee.ElementType.Directive}X.isDirective=Cc;function Ec(n){return n.type===Ee.ElementType.Root}X.isDocument=Ec;function Dh(n){return Object.prototype.hasOwnProperty.call(n,"children")}X.hasChildren=Dh;function Rs(n,e){e===void 0&&(e=!1);var t;if(Sc(n))t=new gc(n.data);else if(Tc(n))t=new mc(n.data);else if(vc(n)){var r=e?li(n.children):[],u=new xc(n.name,zn({},n.attribs),r);r.forEach(function(a){return a.parent=u}),n.namespace!=null&&(u.namespace=n.namespace),n["x-attribsNamespace"]&&(u["x-attribsNamespace"]=zn({},n["x-attribsNamespace"])),n["x-attribsPrefix"]&&(u["x-attribsPrefix"]=zn({},n["x-attribsPrefix"])),t=u}else if(wc(n)){var r=e?li(n.children):[],i=new yc(r);r.forEach(function(l){return l.parent=i}),t=i}else if(Ec(n)){var r=e?li(n.children):[],s=new _c(r);r.forEach(function(l){return l.parent=s}),n["x-mode"]&&(s["x-mode"]=n["x-mode"]),t=s}else if(Cc(n)){var o=new bc(n.name,n.data);n["x-name"]!=null&&(o["x-name"]=n["x-name"],o["x-publicId"]=n["x-publicId"],o["x-systemId"]=n["x-systemId"]),t=o}else throw new Error("Not implemented yet: ".concat(n.type));return t.startIndex=n.startIndex,t.endIndex=n.endIndex,n.sourceCodeLocation!=null&&(t.sourceCodeLocation=n.sourceCodeLocation),t}X.cloneNode=Rs;function li(n){for(var e=n.map(function(r){return Rs(r,!0)}),t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}(function(n){var e=V&&V.__createBinding||(Object.create?function(o,a,l,f){f===void 0&&(f=l);var h=Object.getOwnPropertyDescriptor(a,l);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(o,f,h)}:function(o,a,l,f){f===void 0&&(f=l),o[f]=a[l]}),t=V&&V.__exportStar||function(o,a){for(var l in o)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&e(a,o,l)};Object.defineProperty(n,"__esModule",{value:!0}),n.DomHandler=void 0;var r=Tn,u=X;t(X,n);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},s=function(){function o(a,l,f){this.dom=[],this.root=new u.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(f=l,l=i),typeof a=="object"&&(l=a,a=void 0),this.callback=a??null,this.options=l??i,this.elementCB=f??null}return o.prototype.onparserinit=function(a){this.parser=a},o.prototype.onreset=function(){this.dom=[],this.root=new u.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},o.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},o.prototype.onerror=function(a){this.handleCallback(a)},o.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},o.prototype.onopentag=function(a,l){var f=this.options.xmlMode?r.ElementType.Tag:void 0,h=new u.Element(a,l,void 0,f);this.addNode(h),this.tagStack.push(h)},o.prototype.ontext=function(a){var l=this.lastNode;if(l&&l.type===r.ElementType.Text)l.data+=a,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var f=new u.Text(a);this.addNode(f),this.lastNode=f}},o.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=a;return}var l=new u.Comment(a);this.addNode(l),this.lastNode=l},o.prototype.oncommentend=function(){this.lastNode=null},o.prototype.oncdatastart=function(){var a=new u.Text(""),l=new u.CDATA([a]);this.addNode(l),a.parent=l,this.lastNode=a},o.prototype.oncdataend=function(){this.lastNode=null},o.prototype.onprocessinginstruction=function(a,l){var f=new u.ProcessingInstruction(a,l);this.addNode(f)},o.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},o.prototype.addNode=function(a){var l=this.tagStack[this.tagStack.length-1],f=l.children[l.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),l.children.push(a),f&&(a.prev=f,f.next=a),a.parent=l,this.lastNode=null},o}();n.DomHandler=s,n.default=s})(ft);var Vr={},It={},br={},kc={},Gt={},Bs={};Object.defineProperty(Bs,"__esModule",{value:!0});function Lr(n){for(var e=1;e<n.length;e++)n[e][0]+=n[e-1][0]+1;return n}Bs.default=new Map(Lr([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Lr([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Lr([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Lr([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var mu={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.escapeText=n.escapeAttribute=n.escapeUTF8=n.escape=n.encodeXML=n.getCodePoint=n.xmlReplacer=void 0,n.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);n.getCodePoint=String.prototype.codePointAt!=null?function(u,i){return u.codePointAt(i)}:function(u,i){return(u.charCodeAt(i)&64512)===55296?(u.charCodeAt(i)-55296)*1024+u.charCodeAt(i+1)-56320+65536:u.charCodeAt(i)};function t(u){for(var i="",s=0,o;(o=n.xmlReplacer.exec(u))!==null;){var a=o.index,l=u.charCodeAt(a),f=e.get(l);f!==void 0?(i+=u.substring(s,a)+f,s=a+1):(i+="".concat(u.substring(s,a),"&#x").concat((0,n.getCodePoint)(u,a).toString(16),";"),s=n.xmlReplacer.lastIndex+=+((l&64512)===55296))}return i+u.substr(s)}n.encodeXML=t,n.escape=t;function r(u,i){return function(o){for(var a,l=0,f="";a=u.exec(o);)l!==a.index&&(f+=o.substring(l,a.index)),f+=i.get(a[0].charCodeAt(0)),l=a.index+1;return f+o.substring(l)}}n.escapeUTF8=r(/[&<>'"]/g,e),n.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),n.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(mu);var Ih=V&&V.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Gt,"__esModule",{value:!0});Gt.encodeNonAsciiHTML=Gt.encodeHTML=void 0;var Ph=Ih(Bs),Nc=mu,Lh=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function Mh(n){return Ac(Lh,n)}Gt.encodeHTML=Mh;function Rh(n){return Ac(Nc.xmlReplacer,n)}Gt.encodeNonAsciiHTML=Rh;function Ac(n,e){for(var t="",r=0,u;(u=n.exec(e))!==null;){var i=u.index;t+=e.substring(r,i);var s=e.charCodeAt(i),o=Ph.default.get(s);if(typeof o=="object"){if(i+1<e.length){var a=e.charCodeAt(i+1),l=typeof o.n=="number"?o.n===a?o.o:void 0:o.n.get(a);if(l!==void 0){t+=l,r=n.lastIndex+=1;continue}}o=o.v}if(o!==void 0)t+=o,r=i+1;else{var f=(0,Nc.getCodePoint)(e,i);t+="&#x".concat(f.toString(16),";"),r=n.lastIndex+=+(f!==s)}}return t+e.substr(r)}(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXMLStrict=n.decodeHTML5Strict=n.decodeHTML4Strict=n.decodeHTML5=n.decodeHTML4=n.decodeHTMLAttribute=n.decodeHTMLStrict=n.decodeHTML=n.decodeXML=n.DecodingMode=n.EntityDecoder=n.encodeHTML5=n.encodeHTML4=n.encodeNonAsciiHTML=n.encodeHTML=n.escapeText=n.escapeAttribute=n.escapeUTF8=n.escape=n.encodeXML=n.encode=n.decodeStrict=n.decode=n.EncodingMode=n.EntityLevel=void 0;var e=Xn,t=Gt,r=mu,u;(function(c){c[c.XML=0]="XML",c[c.HTML=1]="HTML"})(u=n.EntityLevel||(n.EntityLevel={}));var i;(function(c){c[c.UTF8=0]="UTF8",c[c.ASCII=1]="ASCII",c[c.Extensive=2]="Extensive",c[c.Attribute=3]="Attribute",c[c.Text=4]="Text"})(i=n.EncodingMode||(n.EncodingMode={}));function s(c,d){d===void 0&&(d=u.XML);var p=typeof d=="number"?d:d.level;if(p===u.HTML){var m=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(c,m)}return(0,e.decodeXML)(c)}n.decode=s;function o(c,d){var p;d===void 0&&(d=u.XML);var m=typeof d=="number"?{level:d}:d;return(p=m.mode)!==null&&p!==void 0||(m.mode=e.DecodingMode.Strict),s(c,m)}n.decodeStrict=o;function a(c,d){d===void 0&&(d=u.XML);var p=typeof d=="number"?{level:d}:d;return p.mode===i.UTF8?(0,r.escapeUTF8)(c):p.mode===i.Attribute?(0,r.escapeAttribute)(c):p.mode===i.Text?(0,r.escapeText)(c):p.level===u.HTML?p.mode===i.ASCII?(0,t.encodeNonAsciiHTML)(c):(0,t.encodeHTML)(c):(0,r.encodeXML)(c)}n.encode=a;var l=mu;Object.defineProperty(n,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(n,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(n,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(n,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(n,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var f=Gt;Object.defineProperty(n,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(n,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(n,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(n,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var h=Xn;Object.defineProperty(n,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(n,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(n,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(n,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(n,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(kc);var gn={};Object.defineProperty(gn,"__esModule",{value:!0});gn.attributeNames=gn.elementNames=void 0;gn.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(n){return[n.toLowerCase(),n]}));gn.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(n){return[n.toLowerCase(),n]}));var an=V&&V.__assign||function(){return an=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var u in e)Object.prototype.hasOwnProperty.call(e,u)&&(n[u]=e[u])}return n},an.apply(this,arguments)},Bh=V&&V.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var u=Object.getOwnPropertyDescriptor(e,t);(!u||("get"in u?!e.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,u)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),Fh=V&&V.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),jh=V&&V.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&Bh(e,n,t);return Fh(e,n),e};Object.defineProperty(br,"__esModule",{value:!0});br.render=void 0;var ut=jh(Tn),bu=kc,Oc=gn,qh=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Uh(n){return n.replace(/"/g,"&quot;")}function zh(n,e){var t;if(n){var r=((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)===!1?Uh:e.xmlMode||e.encodeEntities!=="utf8"?bu.encodeXML:bu.escapeAttribute;return Object.keys(n).map(function(u){var i,s,o=(i=n[u])!==null&&i!==void 0?i:"";return e.xmlMode==="foreign"&&(u=(s=Oc.attributeNames.get(u))!==null&&s!==void 0?s:u),!e.emptyAttrs&&!e.xmlMode&&o===""?u:"".concat(u,'="').concat(r(o),'"')}).join(" ")}}var ma=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function $u(n,e){e===void 0&&(e={});for(var t=("length"in n)?n:[n],r="",u=0;u<t.length;u++)r+=$h(t[u],e);return r}br.render=$u;br.default=$u;function $h(n,e){switch(n.type){case ut.Root:return $u(n.children,e);case ut.Doctype:case ut.Directive:return Gh(n);case ut.Comment:return Zh(n);case ut.CDATA:return Jh(n);case ut.Script:case ut.Style:case ut.Tag:return Vh(n,e);case ut.Text:return Kh(n,e)}}var Wh=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),Hh=new Set(["svg","math"]);function Vh(n,e){var t;e.xmlMode==="foreign"&&(n.name=(t=Oc.elementNames.get(n.name))!==null&&t!==void 0?t:n.name,n.parent&&Wh.has(n.parent.name)&&(e=an(an({},e),{xmlMode:!1}))),!e.xmlMode&&Hh.has(n.name)&&(e=an(an({},e),{xmlMode:"foreign"}));var r="<".concat(n.name),u=zh(n.attribs,e);return u&&(r+=" ".concat(u)),n.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&ma.has(n.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",n.children.length>0&&(r+=$u(n.children,e)),(e.xmlMode||!ma.has(n.name))&&(r+="</".concat(n.name,">"))),r}function Gh(n){return"<".concat(n.data,">")}function Kh(n,e){var t,r=n.data||"";return((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)!==!1&&!(!e.xmlMode&&n.parent&&qh.has(n.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?(0,bu.encodeXML)(r):(0,bu.escapeText)(r)),r}function Jh(n){return"<![CDATA[".concat(n.children[0].data,"]]>")}function Zh(n){return"<!--".concat(n.data,"-->")}var Xh=V&&V.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(It,"__esModule",{value:!0});It.getOuterHTML=Dc;It.getInnerHTML=ep;It.getText=Gr;It.textContent=Ui;It.innerText=zi;var Ye=ft,Qh=Xh(br),Yh=Tn;function Dc(n,e){return(0,Qh.default)(n,e)}function ep(n,e){return(0,Ye.hasChildren)(n)?n.children.map(function(t){return Dc(t,e)}).join(""):""}function Gr(n){return Array.isArray(n)?n.map(Gr).join(""):(0,Ye.isTag)(n)?n.name==="br"?`
14
- `:Gr(n.children):(0,Ye.isCDATA)(n)?Gr(n.children):(0,Ye.isText)(n)?n.data:""}function Ui(n){return Array.isArray(n)?n.map(Ui).join(""):(0,Ye.hasChildren)(n)&&!(0,Ye.isComment)(n)?Ui(n.children):(0,Ye.isText)(n)?n.data:""}function zi(n){return Array.isArray(n)?n.map(zi).join(""):(0,Ye.hasChildren)(n)&&(n.type===Yh.ElementType.Tag||(0,Ye.isCDATA)(n))?zi(n.children):(0,Ye.isText)(n)?n.data:""}var tt={};Object.defineProperty(tt,"__esModule",{value:!0});tt.getChildren=Ic;tt.getParent=Pc;tt.getSiblings=tp;tt.getAttributeValue=np;tt.hasAttrib=rp;tt.getName=up;tt.nextElementSibling=ip;tt.prevElementSibling=sp;var Fs=ft;function Ic(n){return(0,Fs.hasChildren)(n)?n.children:[]}function Pc(n){return n.parent||null}function tp(n){var e,t,r=Pc(n);if(r!=null)return Ic(r);for(var u=[n],i=n.prev,s=n.next;i!=null;)u.unshift(i),e=i,i=e.prev;for(;s!=null;)u.push(s),t=s,s=t.next;return u}function np(n,e){var t;return(t=n.attribs)===null||t===void 0?void 0:t[e]}function rp(n,e){return n.attribs!=null&&Object.prototype.hasOwnProperty.call(n.attribs,e)&&n.attribs[e]!=null}function up(n){return n.name}function ip(n){for(var e,t=n.next;t!==null&&!(0,Fs.isTag)(t);)e=t,t=e.next;return t}function sp(n){for(var e,t=n.prev;t!==null&&!(0,Fs.isTag)(t);)e=t,t=e.prev;return t}var Pt={};Object.defineProperty(Pt,"__esModule",{value:!0});Pt.removeElement=yr;Pt.replaceElement=op;Pt.appendChild=ap;Pt.append=lp;Pt.prependChild=cp;Pt.prepend=fp;function yr(n){if(n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),n.parent){var e=n.parent.children,t=e.lastIndexOf(n);t>=0&&e.splice(t,1)}n.next=null,n.prev=null,n.parent=null}function op(n,e){var t=e.prev=n.prev;t&&(t.next=e);var r=e.next=n.next;r&&(r.prev=e);var u=e.parent=n.parent;if(u){var i=u.children;i[i.lastIndexOf(n)]=e,n.parent=null}}function ap(n,e){if(yr(e),e.next=null,e.parent=n,n.children.push(e)>1){var t=n.children[n.children.length-2];t.next=e,e.prev=t}else e.prev=null}function lp(n,e){yr(e);var t=n.parent,r=n.next;if(e.next=r,e.prev=n,n.next=e,e.parent=t,r){if(r.prev=e,t){var u=t.children;u.splice(u.lastIndexOf(r),0,e)}}else t&&t.children.push(e)}function cp(n,e){if(yr(e),e.parent=n,e.prev=null,n.children.unshift(e)!==1){var t=n.children[1];t.prev=e,e.next=t}else e.next=null}function fp(n,e){yr(e);var t=n.parent;if(t){var r=t.children;r.splice(r.indexOf(n),0,e)}n.prev&&(n.prev.next=e),e.parent=t,e.prev=n.prev,e.next=n,n.prev=e}var gt={};Object.defineProperty(gt,"__esModule",{value:!0});gt.filter=dp;gt.find=Lc;gt.findOneChild=hp;gt.findOne=Mc;gt.existsOne=Rc;gt.findAll=pp;var Kt=ft;function dp(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),Lc(n,Array.isArray(e)?e:[e],t,r)}function Lc(n,e,t,r){for(var u=[],i=[Array.isArray(e)?e:[e]],s=[0];;){if(s[0]>=i[0].length){if(s.length===1)return u;i.shift(),s.shift();continue}var o=i[0][s[0]++];if(n(o)&&(u.push(o),--r<=0))return u;t&&(0,Kt.hasChildren)(o)&&o.children.length>0&&(s.unshift(0),i.unshift(o.children))}}function hp(n,e){return e.find(n)}function Mc(n,e,t){t===void 0&&(t=!0);for(var r=Array.isArray(e)?e:[e],u=0;u<r.length;u++){var i=r[u];if((0,Kt.isTag)(i)&&n(i))return i;if(t&&(0,Kt.hasChildren)(i)&&i.children.length>0){var s=Mc(n,i.children,!0);if(s)return s}}return null}function Rc(n,e){return(Array.isArray(e)?e:[e]).some(function(t){return(0,Kt.isTag)(t)&&n(t)||(0,Kt.hasChildren)(t)&&Rc(n,t.children)})}function pp(n,e){for(var t=[],r=[Array.isArray(e)?e:[e]],u=[0];;){if(u[0]>=r[0].length){if(r.length===1)return t;r.shift(),u.shift();continue}var i=r[0][u[0]++];(0,Kt.isTag)(i)&&n(i)&&t.push(i),(0,Kt.hasChildren)(i)&&i.children.length>0&&(u.unshift(0),r.unshift(i.children))}}var mt={};Object.defineProperty(mt,"__esModule",{value:!0});mt.testElement=mp;mt.getElements=bp;mt.getElementById=yp;mt.getElementsByTagName=_p;mt.getElementsByClassName=xp;mt.getElementsByTagType=vp;var Ft=ft,_r=gt,yu={tag_name:function(n){return typeof n=="function"?function(e){return(0,Ft.isTag)(e)&&n(e.name)}:n==="*"?Ft.isTag:function(e){return(0,Ft.isTag)(e)&&e.name===n}},tag_type:function(n){return typeof n=="function"?function(e){return n(e.type)}:function(e){return e.type===n}},tag_contains:function(n){return typeof n=="function"?function(e){return(0,Ft.isText)(e)&&n(e.data)}:function(e){return(0,Ft.isText)(e)&&e.data===n}}};function js(n,e){return typeof e=="function"?function(t){return(0,Ft.isTag)(t)&&e(t.attribs[n])}:function(t){return(0,Ft.isTag)(t)&&t.attribs[n]===e}}function gp(n,e){return function(t){return n(t)||e(t)}}function Bc(n){var e=Object.keys(n).map(function(t){var r=n[t];return Object.prototype.hasOwnProperty.call(yu,t)?yu[t](r):js(t,r)});return e.length===0?null:e.reduce(gp)}function mp(n,e){var t=Bc(n);return t?t(e):!0}function bp(n,e,t,r){r===void 0&&(r=1/0);var u=Bc(n);return u?(0,_r.filter)(u,e,t,r):[]}function yp(n,e,t){return t===void 0&&(t=!0),Array.isArray(e)||(e=[e]),(0,_r.findOne)(js("id",n),e,t)}function _p(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,_r.filter)(yu.tag_name(n),e,t,r)}function xp(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,_r.filter)(js("class",n),e,t,r)}function vp(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,_r.filter)(yu.tag_type(n),e,t,r)}var Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.DocumentPosition=void 0;Qt.removeSubsets=wp;Qt.compareDocumentPosition=Fc;Qt.uniqueSort=Sp;var ba=ft;function wp(n){for(var e=n.length;--e>=0;){var t=n[e];if(e>0&&n.lastIndexOf(t,e-1)>=0){n.splice(e,1);continue}for(var r=t.parent;r;r=r.parent)if(n.includes(r)){n.splice(e,1);break}}return n}var Ue;(function(n){n[n.DISCONNECTED=1]="DISCONNECTED",n[n.PRECEDING=2]="PRECEDING",n[n.FOLLOWING=4]="FOLLOWING",n[n.CONTAINS=8]="CONTAINS",n[n.CONTAINED_BY=16]="CONTAINED_BY"})(Ue||(Qt.DocumentPosition=Ue={}));function Fc(n,e){var t=[],r=[];if(n===e)return 0;for(var u=(0,ba.hasChildren)(n)?n:n.parent;u;)t.unshift(u),u=u.parent;for(u=(0,ba.hasChildren)(e)?e:e.parent;u;)r.unshift(u),u=u.parent;for(var i=Math.min(t.length,r.length),s=0;s<i&&t[s]===r[s];)s++;if(s===0)return Ue.DISCONNECTED;var o=t[s-1],a=o.children,l=t[s],f=r[s];return a.indexOf(l)>a.indexOf(f)?o===e?Ue.FOLLOWING|Ue.CONTAINED_BY:Ue.FOLLOWING:o===n?Ue.PRECEDING|Ue.CONTAINS:Ue.PRECEDING}function Sp(n){return n=n.filter(function(e,t,r){return!r.includes(e,t+1)}),n.sort(function(e,t){var r=Fc(e,t);return r&Ue.PRECEDING?-1:r&Ue.FOLLOWING?1:0}),n}var qs={};Object.defineProperty(qs,"__esModule",{value:!0});qs.getFeed=Cp;var Tp=It,xr=mt;function Cp(n){var e=_u(Op,n);return e?e.name==="feed"?Ep(e):kp(e):null}function Ep(n){var e,t=n.children,r={type:"atom",items:(0,xr.getElementsByTagName)("entry",t).map(function(s){var o,a=s.children,l={media:jc(a)};we(l,"id","id",a),we(l,"title","title",a);var f=(o=_u("link",a))===null||o===void 0?void 0:o.attribs.href;f&&(l.link=f);var h=Tt("summary",a)||Tt("content",a);h&&(l.description=h);var c=Tt("updated",a);return c&&(l.pubDate=new Date(c)),l})};we(r,"id","id",t),we(r,"title","title",t);var u=(e=_u("link",t))===null||e===void 0?void 0:e.attribs.href;u&&(r.link=u),we(r,"description","subtitle",t);var i=Tt("updated",t);return i&&(r.updated=new Date(i)),we(r,"author","email",t,!0),r}function kp(n){var e,t,r=(t=(e=_u("channel",n.children))===null||e===void 0?void 0:e.children)!==null&&t!==void 0?t:[],u={type:n.name.substr(0,3),id:"",items:(0,xr.getElementsByTagName)("item",n.children).map(function(s){var o=s.children,a={media:jc(o)};we(a,"id","guid",o),we(a,"title","title",o),we(a,"link","link",o),we(a,"description","description",o);var l=Tt("pubDate",o)||Tt("dc:date",o);return l&&(a.pubDate=new Date(l)),a})};we(u,"title","title",r),we(u,"link","link",r),we(u,"description","description",r);var i=Tt("lastBuildDate",r);return i&&(u.updated=new Date(i)),we(u,"author","managingEditor",r,!0),u}var Np=["url","type","lang"],Ap=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function jc(n){return(0,xr.getElementsByTagName)("media:content",n).map(function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},u=0,i=Np;u<i.length;u++){var s=i[u];t[s]&&(r[s]=t[s])}for(var o=0,a=Ap;o<a.length;o++){var s=a[o];t[s]&&(r[s]=parseInt(t[s],10))}return t.expression&&(r.expression=t.expression),r})}function _u(n,e){return(0,xr.getElementsByTagName)(n,e,!0,1)[0]}function Tt(n,e,t){return t===void 0&&(t=!1),(0,Tp.textContent)((0,xr.getElementsByTagName)(n,e,t,1)).trim()}function we(n,e,t,r,u){u===void 0&&(u=!1);var i=Tt(t,r,u);i&&(n[e]=i)}function Op(n){return n==="rss"||n==="feed"||n==="rdf:RDF"}(function(n){var e=V&&V.__createBinding||(Object.create?function(u,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(u,o,a)}:function(u,i,s,o){o===void 0&&(o=s),u[o]=i[s]}),t=V&&V.__exportStar||function(u,i){for(var s in u)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&e(i,u,s)};Object.defineProperty(n,"__esModule",{value:!0}),n.hasChildren=n.isDocument=n.isComment=n.isText=n.isCDATA=n.isTag=void 0,t(It,n),t(tt,n),t(Pt,n),t(gt,n),t(mt,n),t(Qt,n),t(qs,n);var r=ft;Object.defineProperty(n,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(n,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(n,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(n,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(n,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(n,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})})(Vr);(function(n){var e=V&&V.__createBinding||(Object.create?function(y,b,v,w){w===void 0&&(w=v);var S=Object.getOwnPropertyDescriptor(b,v);(!S||("get"in S?!b.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return b[v]}}),Object.defineProperty(y,w,S)}:function(y,b,v,w){w===void 0&&(w=v),y[w]=b[v]}),t=V&&V.__setModuleDefault||(Object.create?function(y,b){Object.defineProperty(y,"default",{enumerable:!0,value:b})}:function(y,b){y.default=b}),r=V&&V.__importStar||function(y){if(y&&y.__esModule)return y;var b={};if(y!=null)for(var v in y)v!=="default"&&Object.prototype.hasOwnProperty.call(y,v)&&e(b,y,v);return t(b,y),b},u=V&&V.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(n,"__esModule",{value:!0}),n.DomUtils=n.parseFeed=n.getFeed=n.ElementType=n.Tokenizer=n.createDomStream=n.parseDOM=n.parseDocument=n.DefaultHandler=n.DomHandler=n.Parser=void 0;var i=Zn,s=Zn;Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return s.Parser}});var o=ft,a=ft;Object.defineProperty(n,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(n,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}});function l(y,b){var v=new o.DomHandler(void 0,b);return new i.Parser(v,b).end(y),v.root}n.parseDocument=l;function f(y,b){return l(y,b).children}n.parseDOM=f;function h(y,b,v){var w=new o.DomHandler(y,b,v);return new i.Parser(w,b)}n.createDomStream=h;var c=Is;Object.defineProperty(n,"Tokenizer",{enumerable:!0,get:function(){return u(c).default}}),n.ElementType=r(Tn);var d=Vr,p=Vr;Object.defineProperty(n,"getFeed",{enumerable:!0,get:function(){return p.getFeed}});var m={xmlMode:!0};function g(y,b){return b===void 0&&(b=m),(0,d.getFeed)(f(y,b))}n.parseFeed=g,n.DomUtils=r(Vr)})(pc);var Dp=n=>{if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Us={};Object.defineProperty(Us,"__esModule",{value:!0});/*!
3
+ `,Xa=rn?" ":Ci,Ke={bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512},Vd={directionless:1,unmergeable:2},Pr={center:2,end:6,justify:4,left:1,right:3,start:5};function Gd(n){const e={};for(const t of Object.keys(n))e[n[t]]=t;return e}const Jd=Gd(Pr),Ya={normal:0,segmented:2,token:1},Xd=Gd(Ya),Qa="$",gm=Symbol.for("@lexical/ctrlOrOtherKey"),du="$config";function hu(){return Pe()._blockCursorElement}function gu(n){return n!==null&&n.nodeType===1&&n.hasAttribute("data-lexical-slot")}const pm=Gi||Ct||Vi;function uc(){const n=Ie().createElement("img");n.setAttribute("data-lexical-decorator-boundary","true"),n.alt="";for(const[e,t]of[["position","absolute"],["width","0px"],["height","0px"],["border","0px"],["margin","0px"],["padding","0px"]])n.style.setProperty(e,t,"important");return n}function Ys(n){return n!==null&&n.nodeType===1&&n.hasAttribute("data-lexical-decorator-boundary")}class Sr{constructor(e,t,r){M(this,"element");M(this,"before");M(this,"after");this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new Sr(this.element,e,this.after)}withAfter(e){return new Sr(this.element,this.before,e)}withElement(e){return this.element===e?this:new Sr(e,this.before,this.after)}insertChild(e){const t=this.getInsertionAnchor();return t!==null&&t.parentElement!==this.element&&P(357),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&P(358),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&P(359),this.element.replaceChild(e,t),this}getFirstChild(){const e=this.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;return t===this.getInsertionAnchor()?null:t}getFirstChildAnchor(){return this.after}resolveLeafPosition(e,t,r){if(this.element===e)return t===e&&r===0?"before":"after";const i=ac(e,this.element);if(i===null)return"after";const s=Array.prototype.indexOf.call(e.childNodes,i);if(s<0)return"after";if(t===e)return r<=s?"before":"after";const o=ac(e,t);if(o===null)return"after";const u=Array.prototype.indexOf.call(e.childNodes,o);return u>=0&&u<=s?"before":"after"}getInsertionAnchor(){return this.before}}function ac(n,e){let t=e;for(;t!==null&&t.parentNode!==n;)t=t.parentNode;return t}let Yd=class Ps extends Sr{withBefore(e){return new Ps(this.element,e,this.after)}withAfter(e){return new Ps(this.element,this.before,e)}withElement(e){return this.element===e?this:new Ps(e,this.before,this.after)}getInsertionAnchor(){return super.getInsertionAnchor()||this.getManagedLineBreak()||this.getDecoratorBoundaryAnchor("trailing")}getFirstChildAnchor(){let e=super.getFirstChildAnchor(),t=e?e.nextSibling:this.element.firstChild;for(;gu(t);)e=t,t=t.nextSibling;Ys(t)&&(e=t,t=t.nextSibling);const r=e?e.nextSibling:this.element.firstChild;return r!==null&&r===hu()?r:e}getDecoratorBoundaryAnchor(e){let t;if(e==="leading"){const r=super.getFirstChildAnchor();for(t=r?r.nextSibling:this.element.firstChild;gu(t);)t=t.nextSibling}else t=this.before?this.before.previousSibling:this.element.lastChild,t!==null&&t===hu()&&(t=t.previousSibling);return Ys(t)?t:null}setDecoratorBoundaryAnchor(e,t){const r=this.getDecoratorBoundaryAnchor(e);if(t!==(r!==null))if(r!==null)this.element.removeChild(r);else if(e==="leading"){const i=this.getFirstChildAnchor();this.element.insertBefore(uc(),i?i.nextSibling:this.element.firstChild)}else this.element.insertBefore(uc(),this.before)}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){const t=this.element,r=this.after===null?t.firstChild:this.after.nextSibling,i=e==="empty"&&gu(r)?null:e;if(t.__lexicalLastChildKind!==i)if(t.__lexicalLastChildKind=i,i===null)this.removeManagedLineBreak();else{const s=i==="decorator"&&pm;this.insertManagedLineBreak(s)}}removeManagedLineBreak(){const e=this.getManagedLineBreak();if(e){const t=this.element,r=e.nodeName==="IMG"?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){const t=this.getManagedLineBreak();if(t){if(e===(t.nodeName==="IMG"))return;this.removeManagedLineBreak()}const r=this.element,i=this.before||this.getDecoratorBoundaryAnchor("trailing"),s=Ie().createElement("br");if(s.setAttribute("data-lexical-managed-linebreak","true"),r.insertBefore(s,i),e){const o=Ie().createElement("img");o.setAttribute("data-lexical-managed-linebreak","true"),o.style.setProperty("display","inline","important"),o.style.setProperty("border","0px","important"),o.style.setProperty("margin","0px","important"),o.alt="",r.insertBefore(o,s),r.__lexicalLineBreak=o}else r.__lexicalLineBreak=s}getFirstChildOffset(){const e=this.getFirstChild(),t=this.getInsertionAnchor();let r=0;for(let i=this.element.firstChild;i!==null&&i!==e&&i!==t;i=i.nextSibling)r++;return r}resolveChildIndex(e,t,r,i){if(r===this.element){const a=this.getFirstChildOffset(),l=hu(),c=this.element.childNodes,h=Math.min(i,c.length);let f=0;for(let d=a;d<h;d++)c[d]!==l&&f++;return[e,Math.min(f,e.getChildrenSize())]}const s=lc(t,r);s.push(i);const o=lc(t,this.element);let u=e.getIndexWithinParent();for(let a=0;a<o.length;a++){const l=s[a],c=o[a];if(l===void 0||l<c)break;if(l>c){u+=1;break}}return[e.getParentOrThrow(),u]}};function lc(n,e){const t=[];let r=e;for(;r!==n&&r!==null;r=r.parentNode){let i=0;for(let s=r.previousSibling;s!==null;s=s.previousSibling)i++;t.push(i)}return r!==n&&P(225),t.reverse()}function mm(){let n;try{n="0.52.0+prod.esm"}catch{}return n??'"<unknown>+source"'}const Qd=mm();let si=class{constructor(){M(this,"_front",new Set);M(this,"_back",new Set);M(this,"_cache")}get size(){return this._front.size+this._back.size}addBack(e){return delete this._cache,this._front.has(e)||this._back.add(e),this}addFront(e){return delete this._cache,this._back.has(e)||this._front.add(e),this}delete(e){return delete this._cache,this._front.delete(e)||this._back.delete(e)}toArray(){const e=Array.from(this._front).reverse();for(const t of this._back)e.push(t);return e}toReadonlyArray(){return this._cache=this._cache||this.toArray(),this._cache}[Symbol.iterator](){return this.toReadonlyArray()[Symbol.iterator]()}};const Pn=null;function Zd(n,e=1e3){return n instanceof Vu?n.clone():n.size<e?new Map(n):new Vu().init(new Map(n),void 0,n.size)}let Vu=class e0{constructor(){M(this,"_mutable",!1);M(this,"_old");M(this,"_nursery");M(this,"_size",0)}clone(){return this._mutable=!1,new e0().init(this._old,this._nursery,this._size)}init(e,t,r){return this._old=e,this._nursery=t,this._size=r,this}get size(){return this._size}has(e){return this.get(e)!==void 0}getWithTombstone(e){const t=this._nursery&&this._nursery.get(e);return t!==void 0?t:this._old&&this._old.get(e)}get(e){const t=this.getWithTombstone(e);return t===Pn?void 0:t}shouldCompact(){return this._nursery!==void 0&&2*this._nursery.size>this._size}getNursery(){return this._mutable&&this._nursery||(this.compact(),this._nursery=new Map(this._nursery),this._mutable=!0),this._nursery}compact(e=!1){if(this._nursery&&this._nursery.size>0&&(e||this.shouldCompact())){const t=new Map(this._old);for(const[r,i]of this._nursery)i!==Pn?t.set(r,i):t.delete(r);this._old=t,this._nursery=void 0}return this._mutable=!1,this}set(e,t){const r=this.getWithTombstone(e);if(r===t)return this;const i=this.getNursery();return r!==Pn&&r!==void 0||(this._size++,r===Pn&&i.delete(e)),i.set(e,t),this}delete(e){const t=this.has(e);return t&&(this.getNursery().set(e,Pn),this._size--),t}getOrInsert(e,t){const r=this.get(e);return r!==void 0?r:(this.set(e,t),t)}getOrInsertComputed(e,t){const r=this.get(e);if(r!==void 0)return r;const i=t(e);return this.set(e,i),i}clear(){this._mutable=!1,this._old=void 0,this._nursery=void 0,this._size=0}*keys(){for(const e of this.entries())yield e[0]}*values(){for(const e of this.entries())yield e[1]}*entries(){const e=this._nursery,t=this._old;if(e){if(t)for(const r of t){const i=r[0],s=e.get(i);s!==Pn&&(s!==void 0&&(r[1]=s),yield r)}for(const r of e)r[1]===Pn||t&&t.has(r[0])||(yield r)}else t&&(yield*t)}forEach(e,t){t!==void 0&&(e=e.bind(t));for(const[r,i]of this.entries())e(i,r,this)}get[Symbol.toStringTag](){return"GenMap"}[Symbol.iterator](){return this.entries()}},gi=!1;function bm(n,e,...t){const r=gi;let i;try{gi=n,i=e()}finally{gi=r}var s;return(s=i)===null||typeof s!="object"&&typeof s!="function"||typeof s.then!="function"||P(421),i}function ym(){return gi}function t0(n){const e=n.exportJSON(gi),t=n.constructor;return e.type!==t.getType()&&P(130,t.name),T(n)&&!Array.isArray(e.children)&&P(59,t.name),e}function Qs(n,e,t,r,i,s){if(T(n)){let o=n.getFirstChild();for(;o!==null;){const u=o.__key;o.__parent===e&&((T(o)||Kn(o)&&o.__slots!==null)&&Qs(o,u,t,r,i,s),t.has(u)||s.delete(u),i.push(u)),o=o.getNextSibling()}}for(const o of Kn(n)&&n.__slots!==null?n.__slots.values():[]){const u=r.get(o);u!==void 0&&er(u)&&u.__slotHost===e&&((T(u)||Kn(u)&&u.__slots!==null)&&Qs(u,o,t,r,i,s),t.has(o)||s.delete(o),i.push(o))}}let Gu=!1,Za=0;function _m(n){Za=n.timeStamp}function pu(n,e,t){const r=n.nodeName==="BR",i=e.__lexicalLineBreak;return i&&(n===i||r&&n.previousSibling===i)||r&&hr(n,t)!==void 0}function xm(n,e,t){const r=nt(dt(t)),i=r&&ct(r,t._rootElement);let s=null,o=null;i!==null&&i.anchorNode===n&&(s=i.anchorOffset,o=i.focusOffset);const u=n.nodeValue;u!==null&&xl(e,u,s,o,!1)}function vm(n,e,t){if(F(n)){const r=n.anchor.getNode();if(r.is(t)&&n.format!==r.getFormat())return!1}return Tt(e)&&t.isAttached()}function Sm(n,e,t){for(let r=n;r&&!$h(r);r=nn(r)){const i=hr(r,e);if(i!==void 0){const s=he(i,t);if(s)return ie(s)||!ce(r)?void 0:[r,s]}}}function n0(n,e,t){Gu=!0;const r=performance.now()-Za>100;try{gt(n,()=>{const i=z()||function(h){return h.read("latest",()=>{const f=z();return f!==null?f.clone():null})}(n),s=new Map,o=n._editorState,u=n._blockCursorElement;let a=!1,l="";for(let h=0;h<e.length;h++){const f=e[h],d=f.type,g=f.target,b=Sm(g,n,o);if(!b)continue;const[m,p]=b;if(d==="characterData")r&&B(p)&&Tt(g)&&vm(i,g,p)&&xm(g,p,n);else if(d==="childList"){a=!0;const y=f.addedNodes;for(let S=0;S<y.length;S++){const C=y[S],A=Th(C),O=C.parentNode;if(!(O==null||C===u||A!==null||pu(C,O,n)||Ys(C)||n._slotsUsed&&ce(C)&&C.hasAttribute("data-lexical-slot")||$h(C))){if(rn){const D=(ce(C)?C.innerText:null)||C.nodeValue;D&&(l+=D)}O.removeChild(C)}}const _=f.removedNodes,x=_.length;if(x>0){let S=0;for(let C=0;C<x;C++){const A=_[C];pu(A,g,n)||u===A?(g.appendChild(A),S++):Ys(A)&&S++}x!==S&&s.set(m,p)}}}if(s.size>0)for(const[h,f]of s)f.reconcileObservedMutation(h,n);const c=t.takeRecords();if(c.length>0){for(let h=0;h<c.length;h++){const f=c[h],d=f.addedNodes,g=f.target;for(let b=0;b<d.length;b++){const m=d[b],p=m.parentNode;p==null||m.nodeName!=="BR"||pu(m,g,n)||p.removeChild(m)}}t.takeRecords()}i!==null&&(a&&Me(i),rn&&Dh(n)&&i.insertRawText(l))})}finally{Gu=!1}}function r0(n){const e=n._observer;e!==null&&n0(n,e.takeRecords(),e)}function i0(n){(function(e){Za===0&&dt(e).addEventListener("textInput",_m,!0)})(n),n._observer=new MutationObserver((e,t)=>{n0(n,e,t)})}function s0(n,e,t){const{isEqual:r}=n;return e===t||r!==void 0&&r(e,t)}function el(n,e){return s0(n,e,n.defaultValue)}function Cn(n){return typeof n=="object"&&n!==null}function An(n,e){const t=$o(n,e).getter;return Cn(t)&&t.getterTable!==void 0||P(405,e),tl(t.getterTable)}function ur(n,e){const t=$o(n,e).setter;return Cn(t)&&t.setterTable!==void 0||P(406,e),tl(t.setterTable)}function Zs(n,e,t){let{meta:r}=$o(n,e);for(let i=0;;){if(r.kind==="aliased")return tl(r.aliases);r.kind==="nullable"||r.kind==="optional"?r=r.inner.meta:r.kind==="array"?r=r.item.meta:P(407,e,String(t))}}function ar(n,e){const t=$o(n,e),{setter:r}=t;Cn(r)&&r.setterTable!==void 0||P(408,e);const i=String(t.defaultValue);return vn(r.setterTable,i)||P(409,e,i),r.setterTable[i]}function tl(n){return Object.assign(Object.create(null),n)}function $o(n,e){const t=n.get(e);return t===void 0&&P(410,e),t}function lr(n,e,t,r,i){i!==void 0&&wm.add(i);const s=t===void 0,o=s?n(void 0):t;return s&&u0(o),Object.assign(n,{accepts:i,defaultValue:o,isEqual:r,meta:e})}const wm=new WeakSet,o0=new WeakSet;function Cm(n){return n!==null&&typeof n=="object"&&o0.add(n),n}function u0(n){if(n!==null&&typeof n=="object"&&!Object.isFrozen(n)&&!o0.has(n)){Object.freeze(n);for(const e of Object.values(n))u0(e)}}function a0(n){const{isEqual:e}=n;return e===void 0?void 0:(t,r)=>t==null||r==null?t===r:e(t,r)}function l0(n,e){return t=>e(t)||nl(n,t)}function nl(n,e){const{accepts:t}=n;return t!==void 0?t.call(n,e):function(r,i){const{accepts:s}=r;if(s!==void 0)return nl(r,i)?{parsed:r(i)}:void 0;const o=r(i);return el(r,o)&&i!==r.defaultValue?void 0:{parsed:o}}(n,e)!==void 0}function vn(n,e){return Object.prototype.hasOwnProperty.call(n,e)}function mn(n=""){return lr(e=>typeof e=="string"?e:n,{kind:"string"},void 0,void 0,e=>typeof e=="string")}const Tm=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Tn(n=0,e={}){const{integer:t,clamp:r}=e,i=t&&e.min!==void 0?Math.ceil(e.min):e.min,s=t&&e.max!==void 0?Math.floor(e.max):e.max,o=l=>typeof l=="string"&&Tm.test(l)?Number(l):l,u=l=>typeof l=="number"&&Number.isFinite(l)&&(!t||Number.isInteger(l)),a=l=>u(l)&&(i===void 0||l>=i)&&(s===void 0||l<=s);return lr(l=>{const c=o(l);return r&&u(c)?i!==void 0&&c<i?i:s!==void 0&&c>s?s:c:a(c)?c:n},{clamp:r,integer:t,kind:"number",max:s,min:i},void 0,void 0,l=>r?u(o(l)):a(o(l)))}function c0(n=!1){return lr(e=>typeof e=="boolean"?e:n,{kind:"boolean"},void 0,void 0,e=>typeof e=="boolean")}function Lr(n,...e){const t=Cm(e.length!==0?e[0]:n[0]),r=new Set(n);return lr(i=>i!==void 0&&r.has(i)?i:t,{kind:"enum",values:n},t,void 0,i=>r.has(i)&&(i!==void 0||t===void 0))}function mu(n,e={}){const{defaultAsNull:t}=e;return lr(r=>{if(r==null)return null;const i=n(r);return t&&el(n,i)?null:i},{defaultAsNull:t,inner:n,kind:"nullable"},void 0,a0(n),l0(n,r=>r==null))}function Em(n,e={}){const{omitDefault:t}=e;return lr(r=>{if(r===void 0)return;const i=n(r);return t&&el(n,i)?void 0:i},{inner:n,kind:"optional",omitDefault:t},void 0,a0(n),l0(n,r=>r===void 0))}function cr(){return n=>function(e){return{meta:{fields:e,kind:"node"}}}(n)}function Ju(n,e){const t=r=>typeof r=="string"&&vn(e,r);return lr(r=>t(r)?e[r]:n(r),{aliases:e,inner:n,kind:"aliased"},n.defaultValue,n.isEqual,r=>t(r)||nl(n,r))}function Ze(n,e){return f0(0,n,{getter:{field:e.field,getterTable:e.getterTable,method:e.getter,when:e.when},setter:{field:e.field,method:e.setter,setterTable:e.setterTable}})}function Sn(n,e){return f0(0,n,e)}function f0(n,e,t){return Object.assign(r=>e(r),{accepts:e.accepts,defaultValue:e.defaultValue,getter:t.getter,isEqual:e.isEqual,meta:e.meta,setter:t.setter})}const cc="latest";class Nm{constructor(e,t){M(this,"key");M(this,"parse");M(this,"unparse");M(this,"isEqual");M(this,"defaultValue");M(this,"resetOnCopyNode");M(this,"schema");this.key=e;const r="meta"in(i=t.parse)&&typeof i.meta=="object"&&i.meta!==null&&"kind"in i.meta&&typeof i.meta.kind=="string"&&"defaultValue"in i?t.parse:void 0;var i;this.schema=r,this.parse=t.parse.bind(t),this.unparse=(t.unparse||Mm).bind(t),this.isEqual=t.isEqual?t.isEqual.bind(t):r!==void 0&&r.isEqual!==void 0?(s,o)=>s0(r,s,o):Object.is,this.defaultValue=r!==void 0?r.defaultValue:this.parse(void 0),this.resetOnCopyNode=t.resetOnCopyNode||!1}}function km(n,e){return new Nm(n,e)}function Am(n,e,t=cc){const r=(t===cc?n.getLatest():n).__state;return r?r.getValue(e):e.defaultValue}function Om(n,e,t){let r;if(Be(),typeof t=="function"){const s=n.getLatest(),o=Am(s,e);if(r=t(o),e.isEqual(o,r))return s}else r=t;const i=n.getWritable();return d0(i).updateFromKnown(e,r),i}function Dm(n){const e=new Map,t=new Set;for(const{ownNodeConfig:r}of Zn(typeof n=="function"?n:n.replace))if(r&&r.stateConfigs)for(const i of r.stateConfigs){let s;"stateConfig"in i?(s=i.stateConfig,i.flat&&t.add(s.key)):s=i,e.set(s.key,s)}return{flatKeys:t,sharedConfigMap:e}}const fc=new Set(["__proto__","constructor","prototype"]);class rl{constructor(e,t,r=void 0,i=new Map,s=void 0){M(this,"node");M(this,"knownState");M(this,"unknownState");M(this,"sharedNodeState");M(this,"size");this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=i;const{sharedConfigMap:o}=this.sharedNodeState,u=s!==void 0?s:function(a,l,c){let h=c.size;if(l)for(const f in l){const d=a.get(f);d&&c.has(d)||h++}return h}(o,r,i);this.size=u}getValue(e){const t=this.knownState.get(e);if(t!==void 0)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){const i=this.unknownState[e.key];i!==void 0&&(r=e.parse(i)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){const e={...this.unknownState},t={};for(const[r,i]of this.knownState)r.isEqual(i,r.defaultValue)?delete e[r.key]:e[r.key]=r.unparse(i);for(const r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return dc(e)&&(t[Qa]=e),t}getWritable(e){if(this.node===e)return this;const{sharedNodeState:t,unknownState:r}=this,i=new Map(this.knownState);return new rl(e,t,function(s,o,u){let a;if(u)for(const[l,c]of Object.entries(u)){if(fc.has(l))continue;const h=s.get(l);h?o.has(h)||o.set(h,h.parse(c)):(a=a||{},a[l]=c)}return a}(t.sharedConfigMap,i,r),i,this.size)}resetOnCopyNode(){for(const e of this.knownState.keys())e.resetOnCopyNode&&this.knownState.set(e,e.defaultValue);return this}updateFromKnown(e,t){const r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);const{knownState:i,unknownState:s}=this;i.has(e)||s&&r in s||(s&&(delete s[r],this.unknownState=dc(s)),this.size++),i.set(e,t)}updateFromUnknown(e,t){if(fc.has(e))return;const r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){const{knownState:t}=this;for(const r of t.keys())t.set(r,r.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(const[r,i]of Object.entries(e))this.updateFromUnknown(r,i)}}function d0(n){const e=n.getWritable(),t=e.__state?e.__state.getWritable(e):new rl(e,function(r){return r.__state?r.__state.sharedNodeState:Sh(Pe(),r.getType()).sharedNodeState}(e));return e.__state=t,t}function h0(n,e){const t=n.getWritable(),r=e[Qa];return(t.__state||r)&&d0(n).updateFromJSON(r),t}function dc(n){if(n)for(const e in n)return n}function Mm(n){return n}function hc(n,e,t){for(const[r,i]of e.knownState){if(n.has(r.key))continue;n.add(r.key);const s=t?t.getValue(r):r.defaultValue;if(s!==i&&!r.isEqual(s,i))return!0}return!1}function gc(n,e,t){const{unknownState:r}=e,i=t?t.unknownState:void 0;if(r){for(const[s,o]of Object.entries(r))if(!n.has(s)&&(n.add(s),o!==(i?i[s]:void 0)))return!0}return!1}function pc(n,e){const t=n.__state;return t&&t.node===n?t.getWritable(e):t}function mc(n,e){const t=n.__mode,r=n.__format,i=n.__style,s=e.__mode,o=e.__format,u=e.__style,a=n.__state,l=e.__state;return(t===null||t===s)&&(r===null||r===o)&&(i===null||i===u)&&(n.__state===null||a===l||function(c,h){if(c===h)return!0;const f=new Set;return!(c&&hc(f,c,h)||h&&hc(f,h,c)||c&&gc(f,c,h)||h&&gc(f,h,c))}(a,l))}function bc(n,e){const t=n.mergeWithSibling(e),r=de()._normalizedNodes;return r.add(n.__key),r.add(e.__key),t}function yc(n){let e,t,r=n;if(r.__text!==""||!r.isSimpleText()||r.isUnmergeable()){for(;(e=r.getPreviousSibling())!==null&&B(e)&&e.isSimpleText()&&!e.isUnmergeable();){if(e.__text!==""){if(mc(e,r)){r=bc(e,r);break}break}e.remove()}for(;(t=r.getNextSibling())!==null&&B(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(t.__text!==""){if(mc(r,t)){r=bc(r,t);break}break}t.remove()}}else r.remove()}function Rr(n){return _c(n.anchor),_c(n.focus),n}function _c(n){for(;n.type==="element";){const e=n.getNode(),t=n.offset;let r,i;if(t===e.getChildrenSize()?(r=e.getChildAtIndex(t-1),i=!0):(r=e.getChildAtIndex(t),i=!1),B(r)){n.set(r.__key,i?r.getTextContentSize():0,"text",!0);break}if(!T(r))break;n.set(r.__key,i?r.getChildrenSize():0,"element",!0)}}const eo=Symbol.for("@lexical/CachedTextSize");function xc(n,e){return Xu.read(()=>{let t=0,r=n;for(let i=0;i<e&&r!==null;i++){const s=At.get(r);if(s===void 0&&P(345,r),T(s)){const o=Se.get(r);if(o!==void 0&&T(o)&&o.__parent!==s.__parent)t+=s.getTextContentSize();else{const u=Gn.get(r),a=u&&u.__lexicalTextContent;typeof a!="string"&&P(346,s.getType()),t+=a.length}i<e-1&&!s.isInline()&&(t+=2)}else{const o=s[eo];o===void 0&&P(347,s.getType(),r),t+=o}r=s.__next}return t},{editor:le})}function g0(n){T(n)||n[eo]===void 0&&(n[eo]=B(n)?n.__text.length:n.getTextContentSize())}const Im=4;let Ti,le,Ei,se="",Oe=null,Ge=null,We=null;function Ft(){return{firstTextKey:We,format:Oe,style:Ge}}function xt(n){n.firstTextKey!==null&&(Oe=n.format,Ge=n.style,We=n.firstTextKey)}function bu(n){if(We!==null)return;const e=n.__lexicalFirstTextKey;if(e===void 0&&P(348),e===null)return;const t=Se.get(e);B(t)&&(Oe=t.getFormat(),Ge=t.getStyle(),We=e)}let Uo,pi,mi,At,Xu,Se,Gn,Yu,Ni,Jn,Xt=!1,Ls=!1;function bn(n,e){const t=At.get(n),r=Se.has(n);if(e!==null){const i=na(n);i.parentNode===e&&e.removeChild(i)}if(!r){if(le._keyToDOMMap.delete(n),T(t)){const i=wo(t,At);Qu(i,0,i.length-1,null)}if(t!==void 0){for(const i of _t(t).values()){const s=ea(i);bn(i,null),s!==null&&s.remove()}vl(Ni,Ei,Uo,t,"destroyed")}}}function Qu(n,e,t,r){for(let i=e;i<=t;++i){const s=n[i];s!==void 0&&bn(s,r)}}function Ln(n,e){n.setProperty("text-align",e)}const Pm="40px";function p0(n,e){const t=Ti.theme.indent;if(typeof t=="string"){const r=n.classList.contains(t);e>0&&!r?n.classList.add(t):e<1&&r&&n.classList.remove(t)}n.style.setProperty("padding-inline-start",e===0?"":`calc(${e} * var(--lexical-indent-base-value, ${Pm}))`),Mi(n,"class"),Mi(n,"style")}function m0(n,e){const t=n.style;e===0?Ln(t,""):e===1?Ln(t,"left"):e===2?Ln(t,"center"):e===3?Ln(t,"right"):e===4?Ln(t,"justify"):e===5?Ln(t,"start"):e===6&&Ln(t,"end"),Mi(n,"style")}function Zu(n,e){const t=function(r){const i=r.__dir;if(i!==null)return i;if(Ee(r))return null;const s=r.getParent();return s===null||pe(s)&&s.__dir===null?"auto":null}(e);t!==null?n.dir=t:n.removeAttribute("dir")}function b0(n){const e=Ie().createElement("div");return e.setAttribute("data-lexical-slot",n),e.style.display="none",e}function y0(n,e,t){e||n.contentEditable==="false"?Nb(t,le):t.removeAttribute("contenteditable")}function vc(n,e,t){const r=se,i=Ft();se="";let s="";const o=ie(n);for(const[u,a]of t){const l=b0(u);y0(e,o,l),e.appendChild(l),se="";const c=Ft();yn(a,ft(n,l,le)),xt(c),_0(n,u,e,l),s+=se}return xt(i),se=r,s}function _t(n){return Kn(n)&&n.__slots!==null?n.__slots:Kh}function _0(n,e,t,r){const i=Jn.$getSlotTargetElement(n,e,t,le);i!==null&&(r.parentElement!==i&&i.appendChild(r),r.style.display="")}function ea(n){const e=Gn.get(n);return e!==void 0?e.parentElement:null}function Sc(n,e,t){const r=_t(n),i=_t(e);for(const[c,h]of r)if(!i.has(c)){const f=ea(h);bn(h,null),f!==null&&f.remove()}const s=se,o=Ft();let u="",a=null;const l=ie(e);for(const[c,h]of i){const f=r.get(c);let d=f!==void 0?ea(f):null;se="";const g=Ft();if(d===null){d=b0(c);let b=null;for(const m of t.children)if(!m.hasAttribute("data-lexical-slot")){b=m;break}t.insertBefore(d,b),yn(h,ft(e,d,le))}else f===h?Qt(h,d):(f!==void 0&&bn(f,d),yn(h,ft(e,d,le)));if(xt(g),y0(t,l,d),_0(e,c,t,d),u+=se,d.parentElement===t){const b=a===null?t.firstChild:a.nextSibling;b!==d&&t.insertBefore(d,b),a=d}}return xt(o),se=s,u}function yn(n,e){const t=Se.get(n);if(t===void 0&&P(60),e!==null){const i=At.get(n);if(i!==void 0){const s=Gn.get(n);if(s!==void 0){const o=er(i)?i.__slotHost:null,u=er(t)?t.__slotHost:null,a=i.__parent!==t.__parent||o!==u,l=u!==null&&s.parentElement!==e.element;if(a||l)return e.insertChild(s),Qt(n,e.element)}}}const r=Jn.$createDOM(t,le);if(function(i,s,o){const u=o._keyToDOMMap;Eh(s,o,i),u.set(i,s)}(n,r,le),B(t)?r.setAttribute("data-lexical-text","true"):ie(t)&&(r.setAttribute("data-lexical-decorator","true"),Eb(r,{captureSelection:!0})),T(t)){const i=t.__indent,s=t.__size;Zu(r,t),i!==0&&p0(r,i);const o=_t(t),u=o.size>0?vc(t,r,o):"";if(s===0)r.__lexicalTextContent=u,r.__lexicalFirstTextKey=null,se+=u,o.size>0&&(r.__lexicalSlotTextLength=u.length);else{const l=se,c=s-1;if(ta(wo(t,Se),t,0,c,ft(t,r,le)),u!==""){const h=r.__lexicalTextContent||"";r.__lexicalTextContent=u+h,se=l+u+h}o.size>0&&(r.__lexicalSlotTextLength=u.length)}const a=t.__format;a!==0&&m0(r,a),t.isInline()||(v0(0,t,r),x0(t,r))}else{const i=t.getTextContent();if(ie(t)){const s=t.decorate(le,Ti);s!==null&&S0(n,s),r.contentEditable="false";const o=_t(t);o.size>0&&vc(t,r,o)}se+=i}return e!==null&&e.insertChild(r),Jn.$decorateDOM(t,null,r,le),g0(t),vl(Ni,Ei,Uo,t,"created"),r}function ta(n,e,t,r,i){const s=se,o=Ft();se="",Oe=null,Ge=null,We=null;let u=t;for(;u<=r;++u){const l=Ft();yn(n[u],i);const c=Se.get(n[u]);c!==null&&B(c)?Oe===null&&(Oe=c.getFormat(),Ge=c.getStyle(),We=c.__key):T(c)&&u<r&&!c.isInline()&&(se+=$n),xt(l)}const a=le._keyToDOMMap.get(e.__key);a===void 0&&P(349,e.__key),a.__lexicalTextContent=se,a.__lexicalFirstTextKey=We,se=s+se,xt(o)}function wc(n,e){if(!n)return!1;const t=e.get(n);return ie(t)&&!t.isInline()}function x0(n,e){const t=ft(n,e,le);t.setDecoratorBoundaryAnchor("leading",wc(n.__first,Se)),t.setDecoratorBoundaryAnchor("trailing",wc(n.__last,Se))}function v0(n,e,t){const r=ft(e,t,le),i=function(s,o){if(s){const u=s.__last;if(u){const a=o.get(u);if(a)return et(a)?"line-break":ie(a)&&a.isInline()?"decorator":null}return"empty"}return null}(e,Se);r.setManagedLineBreak(i)}function Cc(n,e,t){const r=e.__lexicalFirstTextKey;if(r!=null){const i=n.__key;let s=r;for(;s!==null;){const o=Se.get(s);if(o===void 0){s=null;break}if(o.__parent===i)break;s=o.__parent}if(s!==null&&!t.has(s)){const o=Se.get(r);if(B(o))return Oe=o.getFormat(),void(Ge=o.getStyle())}}e.__lexicalFirstTextKey=We}function Qt(n,e){const t=At.get(n);let r=Se.get(n);t!==void 0&&r!==void 0||P(61);const i=Xt||mi.has(n)||pi.has(n),s=Ar(le,n);if(t===r&&!i){let o;if(T(t)){const u=s.__lexicalTextContent;typeof u!="string"&&P(355,t.getType()),o=u,bu(s)}else o=t.getTextContent();return se+=o,s}if(t!==r&&i&&vl(Ni,Ei,Uo,r,"updated"),Jn.$updateDOM(r,t,s,le)){const o=yn(n,null);return e===null&&P(62),e.replaceChild(o,s),bn(n,null),o}if(T(t)){T(r)||P(334,n);const o=r.__indent;(Xt||o!==t.__indent)&&p0(s,o);const u=r.__format;(Xt||u!==t.__format)&&m0(s,u);const a=i&&(_t(r).size>0||_t(t).size>0)?Sc(t,r,s):"";if(i){const l=se;if(function(c,h,f){var d;Oe=null,Ge=null,We=null,function(g,b,m){const p=se,y=g.__size,_=b.__size;se="";const x=m.element,S=le._keyToDOMMap.get(b.__key);S===void 0&&P(351,b.__key);const C=_-y;if(!Xt&&Math.abs(C)<=1&&y>=Im&&g.__first===b.__first&&(C!==0||!le._cloneNotNeeded.has(g.__key))){const A=S.__lexicalTextContent,O=Yu.get(g.__key);if(!Xt&&typeof A=="string"&&O!==void 0){const D=function(k,v){const E=v.size;if(E===0||E>=k.__size)return null;let N=k.__last,R=null,w=0;for(;N!==null&&w<E;){if(!v.has(N))return null;R=N;const L=Se.get(N);if(L===void 0)return null;N=L.__prev,w++}return w!==E||N!==null&&v.has(N)?null:R}(b,O);if(D!==null){const k=O.size;if(C===0){const v=xc(D,k);let E=D,N=0;for(;E!==null&&N<k;){const U=Se.get(E);if(U===void 0)break;const H=Ft();Qt(E,x),B(U)&&Oe===null&&(Oe=U.getFormat(),Ge=U.getStyle(),We=U.__key),xt(H),E=U.__next,N++}let R="";for(E=D,N=0;E!==null&&N<k;){const U=Se.get(E);if(U===void 0)break;let H;if(T(U)){const V=le._keyToDOMMap.get(E),te=V&&V.__lexicalTextContent;typeof te!="string"&&P(352,U.getType()),H=te}else H=U.getTextContent();R+=H,N<k-1&&T(U)&&!U.isInline()&&(R+=$n),E=U.__next,N++}const w=S.__lexicalSlotTextLength||0,L=w>0?A.slice(w):A,I=L.slice(0,L.length-v)+R;return S.__lexicalTextContent=I,se=p+I,void Cc(b,S,O)}if(function(v,E,N,R,w,L,I,U){if(U!==1&&U!==-1||I!==(U===1?2:1))return!1;const H=I-U;let V=v.__last;for(let Q=0;Q<H-1;Q++){if(V===null)return!1;const be=At.get(V);if(be===void 0)return!1;V=be.__prev}if(V===null)return!1;const te=Se.get(L),ge=At.get(V);if(te===void 0||ge===void 0||te.__prev!==ge.__prev)return!1;const j=[];let $=L;for(let Q=0;Q<I;Q++){if($===null)return!1;j.push($);const be=Se.get($);$=be?be.__next:null}const G=[];$=V;for(let Q=0;Q<H;Q++){if($===null)return!1;G.push($);const be=At.get($);$=be?be.__next:null}const X=new Set(G),Z=new Set(j),Ce=[];let Ae=0,ve=0;for(;Ae<H&&ve<I;)if(j[ve]===G[Ae])Ce.push({key:j[ve],kind:"reconcile"}),Ae++,ve++;else if(Z.has(G[Ae])){if(X.has(j[ve]))return!1;Ce.push({key:j[ve],kind:"create",nextIndex:ve}),ve++}else Ce.push({key:G[Ae],kind:"destroy"}),Ae++;for(;Ae<H;)Ce.push({key:G[Ae++],kind:"destroy"});for(;ve<I;)Ce.push({key:j[ve],kind:"create",nextIndex:ve}),ve++;const ii=xc(V,H);for(const Q of Ce){const be=Ft();if(Q.kind==="reconcile")Qt(Q.key,N.element);else if(Q.kind==="destroy")bn(Q.key,N.element);else{let Le=null;for(let Fe=Q.nextIndex+1;Fe<I;Fe++){const it=le._keyToDOMMap.get(j[Fe]);if(it!==void 0){Le=it;break}}yn(Q.key,N.withBefore(Le??N.before))}if(Q.kind!=="destroy"){const Le=Se.get(Q.key);Le&&B(Le)&&Oe===null&&(Oe=Le.getFormat(),Ge=Le.getStyle(),We=Le.__key)}xt(be)}let dn="";for(let Q=0;Q<I;Q++){const be=Se.get(j[Q]);if(be===void 0)return!1;let Le;if(T(be)){const Fe=le._keyToDOMMap.get(j[Q]),it=Fe&&Fe.__lexicalTextContent;typeof it!="string"&&P(350,be.getType()),Le=it}else Le=be.getTextContent();dn+=Le,Q<I-1&&T(be)&&!be.isInline()&&(dn+=$n)}const hn=R.__lexicalSlotTextLength||0,W=hn>0?w.slice(hn):w;return R.__lexicalTextContent=W.slice(0,W.length-ii)+dn,!0}(g,0,m,S,A,D,k,C)){const v=S.__lexicalTextContent;return typeof v!="string"&&P(353),se=p+v,void Cc(b,S,O)}}}if(C===0){let D=g.__first,k=0;for(;D!==null;){const v=Se.get(D);if(v===void 0)break;const E=Xt||mi.has(D)||pi.has(D),N=Ft();if(E)Qt(D,x);else{let R,w;if(T(v)){w=Gn.get(D);const L=w&&w.__lexicalTextContent;typeof L!="string"&&P(354,v.getType()),R=L}else R=v.getTextContent();se+=R,w!==void 0&&bu(w)}B(v)?Oe===null&&(Oe=v.getFormat(),Ge=v.getStyle(),We=v.__key):T(v)&&k<_-1&&!v.isInline()&&(se+=$n),xt(N),D=v.__next,k++}return S.__lexicalTextContent=se,S.__lexicalFirstTextKey=We,void(se=p+se)}}if(y===1&&_===1){const A=g.__first,O=b.__first;if(A===O)Qt(A,x);else{const k=na(A),v=yn(O,null);try{k.parentNode===x?x.replaceChild(v,k):m.insertChild(v)}catch(E){if(typeof E=="object"&&E!=null){const N=`${E.toString()} Parent: ${x.tagName}, new child: {tag: ${v.tagName} key: ${O}}, old child: {tag: ${k.tagName}, key: ${A}}.`;throw new Error(N)}throw E}bn(A,null)}const D=Se.get(O);B(D)&&Oe===null&&(Oe=D.getFormat(),Ge=D.getStyle(),We=D.__key)}else{const A=wo(g,At),O=wo(b,Se);if(A.length!==y&&P(227),O.length!==_&&P(228),y===0)_!==0&&ta(O,b,0,_-1,m);else if(_===0){if(y!==0){const D=m.after==null&&m.before==null&&_t(b).size===0&&m.element.__lexicalLineBreak==null;Qu(A,0,y-1,D?null:x),D&&(x.textContent="")}}else(function(D,k,v,E,N,R){const w=E-1,L=N-1;let I,U,H=R.getFirstChild(),V=0,te=0;for(;V<=w&&te<=L;){const $=k[V],G=v[te],X=Ft();if($===G)H=yu(Qt(G,R.element)),V++,te++;else{if(U===void 0&&(U=Tc(v,te)),I===void 0)I=Tc(k,V);else if(!I.has($)){V++,xt(X);continue}if(!U.has($)){H=yu(na($)),bn($,R.element),V++,I.delete($),xt(X);continue}if(I.has(G)){const Ce=Ar(le,G);Ce!==H&&R.withBefore(H??R.before).insertChild(Ce),H=yu(Qt(G,R.element)),V++,te++}else yn(G,R.withBefore(H??R.before)),te++}const Z=Se.get(G);Z!==null&&B(Z)?Oe===null&&(Oe=Z.getFormat(),Ge=Z.getStyle(),We=Z.__key):T(Z)&&te<=L&&!Z.isInline()&&(se+=$n),xt(X)}const ge=V>w,j=te>L;if(ge&&!j){const $=v[L+1],G=$===void 0?null:le.getElementByKey($);ta(v,D,te,L,R.withBefore(G??R.before))}else j&&!ge&&Qu(k,V,w,R.element)})(b,A,O,y,_,m)}S.__lexicalTextContent=se,S.__lexicalFirstTextKey=We,se=p+se}(c,h,ft(h,f,le)),pe(h)||(d=h,Oe==null||Oe===d.__textFormat||Ls||d.setTextFormat(Oe),function(g){Ge==null||Ge===g.__textStyle||Ls||g.setTextStyle(Ge)}(h))}(t,r,s),r.isInline()||(Ee(r)||v0(0,r,s),x0(r,s)),a!==""){const c=s.__lexicalTextContent||"";s.__lexicalTextContent=a+c,se=l+a+c,s.__lexicalSlotTextLength=a.length}else(_t(r).size>0||_t(t).size>0)&&(s.__lexicalSlotTextLength=0)}else{const l=s.__lexicalTextContent;typeof l!="string"&&P(356,t.getType()),se+=l,bu(s)}if((Xt||r.__dir!==t.__dir||r.__parent!==t.__parent)&&(Zu(s,r),Ee(r)&&!Xt))for(const l of r.getChildren())T(l)&&Zu(Ar(le,l.getKey()),l)}else{const o=r.getTextContent();if(ie(r)){const u=r.decorate(le,Ti);u!==null&&S0(n,u),i&&(_t(r).size>0||_t(t).size>0)&&Sc(t,r,s)}se+=o}if(!Ls&&Ee(r)){const o=r.getLatest();if(o.__cachedText!==se){const u=o.getWritable();u.__cachedText=se,r=u}}return Jn.$decorateDOM(r,t,s,le),g0(r),s}function S0(n,e){let t=le._pendingDecorators;const r=le._decorators;if(t===null){if(r[n]===e)return;t=Nh(le)}t[n]=e}function yu(n){let e=n.nextSibling;return e!==null&&e===le._blockCursorElement&&(e=e.nextSibling),e}function Tc(n,e){const t=new Set;for(let r=e;r<n.length;r++)t.add(n[r]);return t}function Lm(n,e,t,r,i,s){se="",Oe=null,Ge=null,We=null,Xt=r===2,le=t,Ti=t._config,Jn=t._config.dom||po,Ei=t._nodes,Uo=le._listeners.mutation,pi=i,mi=s,At=n._nodeMap,Xu=n,Se=e._nodeMap,Ls=e._readOnly,Gn=Zd(t._keyToDOMMap),Yu=function(){const u=new Map,a=l=>{for(const c of l){const h=Se.get(c);if(h===void 0)continue;const f=h.__parent;if(f===null)continue;let d=u.get(f);d===void 0&&(d=new Set,u.set(f,d)),d.add(c)}};return a(pi.keys()),a(mi),u}();const o=new Map;return Ni=o,Qt("root",null),le=void 0,Ei=void 0,pi=void 0,mi=void 0,At=void 0,Xu=void 0,Se=void 0,Ti=void 0,Gn=void 0,Yu=void 0,Ni=void 0,Jn=po,o}function na(n){const e=Gn.get(n);return e===void 0&&P(75,n),e}function J(n){return{type:n}}const zo=J("SELECTION_CHANGE_COMMAND"),Rm=J("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),w0=J("CLICK_COMMAND"),C0=J("BEFORE_INPUT_COMMAND"),T0=J("INPUT_COMMAND"),E0=J("COMPOSITION_START_COMMAND"),N0=J("COMPOSITION_END_COMMAND"),zn=J("DELETE_CHARACTER_COMMAND"),wr=J("INSERT_LINE_BREAK_COMMAND"),ki=J("INSERT_PARAGRAPH_COMMAND"),Cr=J("CONTROLLED_TEXT_INSERTION_COMMAND"),Ji=J("PASTE_COMMAND"),Rs=J("REMOVE_TEXT_COMMAND"),Ai=J("DELETE_WORD_COMMAND"),Tr=J("DELETE_LINE_COMMAND"),Ot=J("FORMAT_TEXT_COMMAND"),Fm=J("SET_TEXT_FORMAT_COMMAND"),to=J("UNDO_COMMAND"),Oi=J("REDO_COMMAND"),k0=J("KEYDOWN_COMMAND"),A0=J("KEY_ARROW_RIGHT_COMMAND"),ra=J("MOVE_TO_END"),O0=J("KEY_ARROW_LEFT_COMMAND"),ia=J("MOVE_TO_START"),D0=J("KEY_ARROW_UP_COMMAND"),M0=J("KEY_ARROW_DOWN_COMMAND"),il=J("KEY_ENTER_COMMAND"),I0=J("KEY_SPACE_COMMAND"),sl=J("KEY_BACKSPACE_COMMAND"),P0=J("KEY_ESCAPE_COMMAND"),L0=J("KEY_DELETE_COMMAND"),R0=J("KEY_TAB_COMMAND"),Bm=J("INSERT_TAB_COMMAND"),jm=J("INDENT_CONTENT_COMMAND"),Ec=J("OUTDENT_CONTENT_COMMAND"),F0=J("DROP_COMMAND"),$m=J("FORMAT_ELEMENT_COMMAND"),B0=J("DRAGSTART_COMMAND"),j0=J("DRAGOVER_COMMAND"),Um=J("DRAGEND_COMMAND"),qo=J("COPY_COMMAND"),ol=J("CUT_COMMAND"),$0=J("SELECT_ALL_COMMAND"),zm=J("CLEAR_EDITOR_COMMAND"),qm=J("CLEAR_HISTORY_COMMAND"),ds=J("CAN_REDO_COMMAND"),hs=J("CAN_UNDO_COMMAND"),Km=J("FOCUS_COMMAND"),Wm=J("BLUR_COMMAND"),Hm=J("KEY_MODIFIER_COMMAND");function U0(n,e){return{...e,[gm]:n}}const Rn=U0("metaKey",{ctrlKey:!Vn,metaKey:Vn}),Nc=U0("altKey",{altKey:Vn,ctrlKey:!Vn}),kc=[["altKey",1],["ctrlKey",2],["metaKey",4],["shiftKey",8]];function _u(n,e,t){const r=n.get(e);r?r.push(t):n.set(e,[t])}class Vm{constructor(){M(this,"byKey",new Map);M(this,"byCode",new Map)}add(e){const{key:t,modifiers:r={}}=e;t.length>0||P(399);const i=t.toLowerCase();for(const s of function(o){let u=[0];for(const[a,l]of kc){const c=o[a]||!1;c==="any"?u=u.concat(u.map(h=>h|l)):c&&(u=u.map(h=>h|l))}return u}(r))_u(this.byKey,`${s}:${i}`,e),t.length===1&&(/[0-9]/.test(t)?_u(this.byCode,`${s}:Digit${t}`,e):/[a-z]/.test(i)&&_u(this.byCode,`${s}:Key${i.toUpperCase()}`,e));return this}matches(e){const t=e.key;if(!t)return[];const r=function(o){let u=0;for(const[a,l]of kc)o[a]&&(u|=l);return u}(e),i=this.byKey.get(`${r}:${t.toLowerCase()}`),s=i?i.slice():[];if(this.byCode.size>0&&!(t.length===1&&t.charCodeAt(0)<=127)){const o=this.byCode.get(`${r}:${e.code}`);o&&s.push(...o)}return s}match(e){return this.matches(e)[0]}}function Gm(n){const e=new Vm;for(const t of n)e.add(t);return e}function Jm(n){const e=new Map;return{dispose(){for(const t of e.values())t.dispose();e.clear()},register(t,r){let i=e.get(t);i===void 0&&(i={dispose:n(t,r),holders:new Set},e.set(t,i));const s=()=>{const o=e.get(t);o&&o.holders.delete(s)&&o.holders.size===0&&(e.delete(t),o.dispose())};return i.holders.add(s),s}}}function Xm(n,e,t,r){return n.addEventListener(e,t,r),n.removeEventListener.bind(n,e,t,r)}const Ht=Object.freeze({});let xu;const vu=new WeakMap,Fs=new WeakMap,Ym=Jm(n=>(n.addEventListener("selectionchange",Rc),()=>n.removeEventListener("selectionchange",Rc)));function z0(n,e,t,r,i,s){const o=n.anchor,u=n.focus,a=o.getNode(),l=de();let c;if(s!==void 0)c=s;else{const b=nt(dt(l));c=b!==null?ct(b,l._rootElement):null}const h=c!==null?c.anchorNode:null,f=o.key,d=l.getElementByKey(f),g=t.length;return f!==u.key||!B(a)||(!i&&(!Ir||l._inputState.lastBeforeInputInsertTextTimeStamp<r+50)||a.isDirty()&&g<2||kh(t))&&o.offset!==u.offset&&!a.isComposing()||St(a)||a.isDirty()&&g>1||(i||!Ir)&&d!==null&&!a.isComposing()&&h!==wn(a,d,l)||c!==null&&e!==null&&(!e.collapsed||e.startContainer!==c.anchorNode||e.startOffset!==c.anchorOffset)||!a.isComposing()&&(a.getFormat()!==n.format||a.getStyle()!==n.style)||function(b,m){if(m.isSegmented())return!0;if(!b.isCollapsed())return!1;const p=b.anchor.offset,y=m.getParentOrThrow(),_=mo(m);return p===0?!m.canInsertTextBefore()||!y.canInsertTextBefore()&&!m.isComposing()||_||function(x){const S=x.getPreviousSibling();return(B(S)||T(S)&&S.isInline())&&!S.canInsertTextAfter()}(m):p===m.getTextContentSize()&&(!m.canInsertTextAfter()||!y.canInsertTextAfter()&&!m.isComposing()||_)}(n,a)}function Ac(n,e){return Tt(n)&&n.nodeValue!==null&&e!==0&&e!==n.nodeValue.length}function Oc(n,e,t){const{anchorNode:r,anchorOffset:i,focusNode:s,focusOffset:o}=ct(n,e._rootElement),u=e._inputState;if(u.isSelectionChangeFromDOMUpdate){u.isSelectionChangeFromDOMUpdate=!1;const a=u.selectionChangeFromDOMUpdatePoints;if(u.selectionChangeFromDOMUpdatePoints=null,Ac(r,i)&&Ac(s,o)&&!u.postDeleteSelectionToRestore&&(a===null||a.anchorNode===r&&a.anchorOffset===i&&a.focusNode===s&&a.focusOffset===o))return}gt(e,()=>{if(!t)return void Me(null);if(!es(e,r,s))return;let a=z();if(u.postDeleteSelectionToRestore&&F(a)&&a.isCollapsed()){const l=a.anchor,c=u.postDeleteSelectionToRestore.anchor;(l.key===c.key&&l.offset===c.offset+1||l.offset===1&&c.getNode().is(l.getNode().getPreviousSibling()))&&(a=u.postDeleteSelectionToRestore.clone(),Me(a))}if(u.postDeleteSelectionToRestore=null,F(a)){const l=a.anchor,c=l.getNode();if(a.isCollapsed()){n.type==="Range"&&r===s&&(a.dirty=!0);const h=dt(e).event,f=h?h.timeStamp:performance.now(),{format:d,style:g,offset:b,key:m,timeStamp:p}=u.collapsedSelectionFormat,y=we(),_=e.isComposing()===!1&&y.getTextContent()==="";if(f<p+200&&l.offset===b&&l.key===m)Bs(a,d,g);else if(l.type==="text")B(c)||P(141),q0(a,c);else if(l.type==="element"&&!_){T(c)||P(259);const x=l.getNode();x.isEmpty()?function(S,C){Bs(S,C.getTextFormat(),C.getTextStyle())}(a,x):Bs(a,a.format,"")}}else{const h=l.key,f=a.focus.key,d=a.getNodes(),g=d.length,b=a.isBackward(),m=b?o:i,p=b?i:o,y=b?f:h,_=b?h:f;let x=hm,S=!1;for(let C=0;C<g;C++){const A=d[C],O=A.getTextContentSize();if(B(A)&&O!==0&&!(C===0&&A.__key===y&&m===O||C===g-1&&A.__key===_&&p===0)&&(S=!0,x&=A.getFormat(),x===0))break}a.format=S?x:0}}(function(l,c,h=!1){(h||mh(l,c))&&l.dispatchCommand(zo)})(e,a,a!==null&&(a.dirty||!F(a)))})}function Bs(n,e,t){n.format===e&&n.style===t||(n.format=e,n.style=t,n.dirty=!0)}function q0(n,e){Bs(n,e.getFormat(),e.getStyle())}function Qm(n,e){gt(e,()=>{const t=z(),r=nt(dt(e)),i=Yr();if(r){if(F(t)){const s=t.anchor,o=s.getNode();s.type==="element"&&s.offset===0&&t.isCollapsed()&&!Ee(o)&&we().getChildrenSize()===1&&o.getTopLevelElementOrThrow().isEmpty()&&i!==null&&t.is(i)&&(r.removeAllRanges(),t.dirty=!0)}else if(n.pointerType==="touch"||n.pointerType==="pen"){const s=ct(r,e._rootElement).anchorNode;(ce(s)||Tt(s))&&Me(uo(i,r,e,n))}}if(rn&&r!==null&&r.rangeCount===0){const s=e._rootElement;if(s!==null&&n.target===s){const o=n.clientY;let u=s.childNodes.length;for(let l=0;l<s.childNodes.length;l++){const c=s.childNodes[l];if(ce(c)){const h=c.getBoundingClientRect();if(o<=(h.top+h.bottom)/2){u=l;break}}}r.setBaseAndExtent(s,u,s,u);const a=uo(i,r,e,n);a!==null?Me(a):r.removeAllRanges()}}Y(e,w0,n)})}function Zm(n,e){const t=Rh(n),r=n.pointerType;Zr(t)&&r!=="touch"&&r!=="pen"&&n.button===0&&gt(e,()=>{vo(t,e)||(e._inputState.isSelectionChangeFromMouseDown=!0)})}function K0(n){if(!n.getTargetRanges)return null;const e=n.getTargetRanges();return e.length===0?null:e[0]}function Dc(n){const{lastKeyCode:e}=de()._inputState;if(n==null||n.length<=1||e==null)return;const t=e.length===1?e:e==="Enter"?`
4
+ `:e==="Tab"?" ":null;if(!t)return;const r=z();if(!F(r)||!r.isCollapsed())return;const i=r.anchor.getNode();if(!B(i))return;const{offset:s}=r.anchor;if(i.getTextContentSize()===s){const o=i.getNextSibling();if(t===`
5
+ `){if(Ct)return;if(et(o))o.selectEnd();else if(!o){const u=ke(i,Us),a=u&&u.getNextSibling();T(a)&&a.selectStart()}}else t===" "?oo(o)&&o.selectEnd():B(o)&&o.getTextContent()[0]===t&&o.select(1,1)}else i.getTextContent()[s]===t&&i.select(s+1,s+1)}function Di(n){n.isInsertTextAfterHandledSelectionCommand=!1,n.handledSelectionCommandTimeoutId!==null&&(clearTimeout(n.handledSelectionCommandTimeoutId),n.handledSelectionCommandTimeoutId=null)}function Mc(n){Vn&&!Ct&&Ja&&(Di(n),n.isInsertTextAfterHandledSelectionCommand=!0,n.handledSelectionCommandTimeoutId=setTimeout(()=>Di(n),0))}function W0(n,e){const t=Rh(n);if(ce(t)&&vo(t,e))return!0;const r=e.getRootElement();if(r===null)return!1;const i=qr(r.ownerDocument);return i!==null&&r.contains(i)&&vo(i,e)}function e1(n){const e=n.inputType,t=K0(n),r=de(),i=r._inputState,s=z();if(e==="insertText"&&n.data&&i.isInsertTextAfterHandledSelectionCommand){if(Di(i),n.preventDefault(),F(s)&&!s.isCollapsed()){const h=s.isBackward()?s.anchor:s.focus;s.anchor.set(h.key,h.offset,h.type),s.focus.set(h.key,h.offset,h.type)}return!0}if(e==="deleteContentBackward"){if(s===null){const h=Yr();if(!F(h))return!0;Me(h.clone())}if(F(s)){const h=s.anchor.key===s.focus.key;if(function(f,d){return f.lastKeyCode==="MediaLast"&&d<f.lastKeyDownTimeStamp+30}(i,n.timeStamp)&&r.isComposing()&&h){if(je(null),i.lastKeyDownTimeStamp=0,setTimeout(()=>{gt(r,()=>{je(null)})},30),F(s)){const f=s.anchor.getNode();f.markDirty(),B(f)||P(142),q0(s,f)}}else{if(je(null),Ct&&t!==null&&!t.collapsed&&(s.applyDOMRange(t),!s.isCollapsed()))return n.preventDefault(),s.removeText(),!0;n.preventDefault();const f=s.anchor.getNode(),d=f.getTextContent(),g=f.canInsertTextAfter(),b=s.anchor.offset===0&&s.focus.offset===d.length;let m=Xs&&h&&!b&&g;if(m&&s.isCollapsed()&&(m=!ie(lb(s.anchor,!0))),!m){Y(r,zn,!0);const p=z();Xs&&F(p)&&p.isCollapsed()&&(i.postDeleteSelectionToRestore=p,setTimeout(()=>i.postDeleteSelectionToRestore=null))}}return!0}}if(!F(s))return e!=="historyUndo"&&e!=="historyRedo"||(n.preventDefault(),Y(r,e==="historyUndo"?to:Oi)),!0;const o=n.data;i.unprocessedBeforeInputData!==null&&_l(!1,r,i.unprocessedBeforeInputData),s.dirty&&i.unprocessedBeforeInputData===null||!s.isCollapsed()||Ee(s.anchor.getNode())||t===null||s.applyDOMRange(t),i.unprocessedBeforeInputData=null;const u=s.anchor,a=s.focus,l=u.getNode(),c=a.getNode();if(e==="insertText"||e==="insertTranspose"){if(o===`
6
+ `)n.preventDefault(),Y(r,wr,!1);else if(o===$n)n.preventDefault(),Y(r,ki);else if(o==null&&n.dataTransfer){const h=n.dataTransfer.getData("text/plain");n.preventDefault(),s.insertRawText(h)}else o!=null&&z0(s,t,o,n.timeStamp,!0)?(n.preventDefault(),Y(r,Cr,o),Dc(o)):i.unprocessedBeforeInputData=o;return i.lastBeforeInputInsertTextTimeStamp=n.timeStamp,!0}switch(n.preventDefault(),e){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":Y(r,Cr,n),Dc((n.dataTransfer?n.dataTransfer.getData("text/plain"):null)??n.data);break;case"insertFromComposition":{const h=i.hadOrphanedCompositionEvents;i.hadOrphanedCompositionEvents=!1;const f=r._compositionKey;je(null),h||Y(r,Cr,n),js(f);break}case"insertLineBreak":je(null),i.isInsertLineBreak=!1,Y(r,wr,!1);break;case"insertParagraph":je(null),i.isInsertLineBreak?(i.isInsertLineBreak=!1,Y(r,wr,!1)):Y(r,ki);break;case"insertFromPaste":case"insertFromPasteAsQuotation":Y(r,Ji,n);break;case"deleteByComposition":(function(h,f){return h!==f||T(h)||T(f)||!mo(h)||!mo(f)})(l,c)&&Y(r,Rs,n);break;case"deleteByDrag":Ur(aa),Y(r,Rs,n);break;case"deleteByCut":Y(r,Rs,n);break;case"deleteContent":Y(r,zn,!1);break;case"deleteWordBackward":Y(r,Ai,!0);break;case"deleteWordForward":Y(r,Ai,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":Y(r,Tr,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":Y(r,Tr,!1);break;case"formatStrikeThrough":Y(r,Ot,"strikethrough");break;case"formatBold":Y(r,Ot,"bold");break;case"formatItalic":Y(r,Ot,"italic");break;case"formatUnderline":Y(r,Ot,"underline");break;case"historyUndo":Y(r,to);break;case"historyRedo":Y(r,Oi)}return!0}function t1(n,e){n.stopPropagation();const t=e._inputState;Di(t),gt(e,()=>{W0(n,e)||e.dispatchCommand(T0,n)},{event:n}),t.unprocessedBeforeInputData=null}function n1(n){const e=de(),t=e._inputState,r=z(),i=n.data,s=K0(n);let o=!1;if(i!=null&&F(r)){const u=nt(dt(e)),a=u!==null?ct(u,e._rootElement):null,l=n.inputType==="insertCompositionText"&&t.compositionPhase!=="ending-firefox"&&!e.isComposing();l&&(t.hadOrphanedCompositionEvents=!0);const c=r.anchor.getNode(),h=n.inputType==="insertCompositionText"&&t.compositionPhase!=="ending-firefox"&&e.isComposing()&&B(c)&&St(c);if(!l&&!h&&z0(r,s,i,n.timeStamp,!1,a)){if(o=!0,t.compositionPhase==="ending-firefox"){const p=no(e,i);if(t.compositionPhase="idle",p)return Ur(io),cf(),!0}const f=r.anchor.getNode();if(u===null||a===null)return!0;const d=r.isBackward(),g=d?r.anchor.offset:r.focus.offset,b=d?r.focus.offset:r.anchor.offset;Ir&&!r.isCollapsed()&&B(f)&&a.anchorNode!==null&&f.getTextContent().slice(0,g)+i+f.getTextContent().slice(g+b)===Oh(a.anchorNode)||Y(e,Cr,i);const m=i.length;rn&&m>1&&n.inputType==="insertCompositionText"&&!e.isComposing()&&(r.anchor.offset-=m,r._cachedNodes=null,r._cachedIsBackward=null),Xs&&e.isComposing()&&(t.lastKeyDownTimeStamp=0,je(null))}}return o||(_l(!1,e,i!==null?i:void 0),t.compositionPhase==="ending-firefox"&&(no(e,i||void 0),Ur(io),t.compositionPhase="idle")),cf(),!0}function r1(n,e){Y(e,E0,n)}function i1(n){const e=de(),t=e._inputState,r=z();if(F(r)&&!e.isComposing()){t.compositionPhase="composing",t.hadOrphanedCompositionEvents=!1;const i=r.anchor,s=r.anchor.getNode();if(je(i.key),Ur(J0),n.timeStamp<t.lastKeyDownTimeStamp+30||i.type==="element"||!r.isCollapsed()||!Xs&&(s.getFormat()!==r.format||B(s)&&s.getStyle()!==r.style)||B(s)&&(St(s)||i.offset===0&&!s.canInsertTextBefore()||i.offset===s.getTextContentSize()&&!s.canInsertTextAfter())){Y(e,Cr,Xa);const o=z();F(o)&&je(o.anchor.key)}}return!0}function s1(n){const e=de();return e._inputState.compositionPhase="idle",no(e,n.data),Ur(io),!0}function js(n){if(n===null)return;const e=he(n);if(!B(e)||e.getType()==="text"||St(e)||!e.isAttached())return;const t=z(),r=F(t)&&t.anchor.key===n?t.anchor.offset:null,i=Xe(e.getTextContent());if(i.setFormat(e.getFormat()),i.setStyle(e.getStyle()),e.replace(i),r!==null){const s=Math.min(r,i.getTextContentSize());i.select(s,s)}}function no(n,e){const t=n._compositionKey;if(je(null),t!==null&&e!=null){if(e===""){const i=he(t),s=n.getElementByKey(t),o=s!==null&&B(i)?wn(i,s,n):null;if(o!==null&&o.nodeValue!==null&&B(i)){const u=nt(dt(n)),a=u&&ct(u,n._rootElement);let l=null,c=null;a!==null&&a.anchorNode===o&&(l=a.anchorOffset,c=a.focusOffset),xl(i,o.nodeValue,l,c,!0)}return js(t),!1}if(e[e.length-1]===`
7
+ `){const i=z();if(F(i)||_e(i)){if(F(i)){const s=i.focus;i.anchor.set(s.key,s.offset,s.type)}return Y(n,il,null),js(t),!1}}const r=he(t);if(r!==null&&B(r)&&St(r)){r.markDirty();const i=z(),s=r.getTextContentSize(),o=F(i)&&i.anchor.key===t?i.anchor.offset:s;return r.select(o,o).insertText(e),!0}}return _l(!0,n,e),js(t),!1}function o1(n,e){const t=e._inputState;rn?t.compositionPhase="ending-firefox":Ct||!Vi&&!Gi?Y(e,N0,n):(t.compositionPhase="ending-safari",t.compositionEndData=n.data)}function u1(n,e){const t=e._inputState;Ct&&(t.isShiftKeyDown=n.key==="Shift"||t.isShiftKeyDown&&n.shiftKey&&n.key!=="CapsLock"),t.lastKeyDownTimeStamp=n.timeStamp,t.lastKeyCode=n.key,n.key!=="Backspace"&&Di(t),e.isComposing()||Y(e,k0,n)}const gs={altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:"any"},oi={ctrlKey:!0},Ic={metaKey:!0},gn={shiftKey:"any"},Pc={altKey:"any",shiftKey:"any"};function a1(n){const e=de(),t=e._inputState;if(n.key==null)return!0;if(t.compositionPhase==="ending-safari"){const s=function(o){return o.key==="Backspace"}(n);if(s&&gt(e,()=>{no(e,t.compositionEndData)}),t.compositionPhase="idle",t.compositionEndData="",s)return!0}let r=e._keyDownShortcuts;r===null&&(r=Gm(function(){const s=(l,c,h)=>({key:l,modifiers:c,onMatch:(f,d)=>{Y(d,h,f)}}),o=(l,c,h,f)=>({key:l,modifiers:c,onMatch:(d,g)=>{d.preventDefault(),Y(g,h,f)}}),u=(l,c)=>({key:"Enter",modifiers:l,onMatch:(h,f)=>{const d=f._inputState;d.isInsertLineBreak=c&&(!Ct||d.isShiftKeyDown),Y(f,il,h),h.defaultPrevented&&(d.isInsertLineBreak=!1)}}),a=(l,c)=>({key:l,modifiers:Rn,onMatch:(h,f)=>{const d=f._editorState._selection;d===null||F(d)||(h.preventDefault(),Y(f,c,h))}});return[s("ArrowRight",gn,A0),s("ArrowLeft",gn,O0),s("ArrowUp",Pc,D0),s("ArrowDown",Pc,M0),u({...gs,shiftKey:!0},!0),u({...gs,shiftKey:!1},!1),s(" ",gs,I0),{key:"Backspace",modifiers:gn,onMatch:(l,c)=>{Y(c,sl,l)&&Mc(c._inputState)}},s("Escape",gs,P0),s("Delete",{},L0),o("Backspace",Nc,Ai,!0),o("Delete",Nc,Ai,!1),o("b",Rn,Ot,"bold"),o("u",Rn,Ot,"underline"),o("i",Rn,Ot,"italic"),s("Tab",gn,R0),o("z",Rn,to,void 0),o("z",{...Rn,shiftKey:!0},Oi,void 0),...Vn?[{key:"o",modifiers:oi,onMatch:(l,c)=>{l.preventDefault(),Y(c,wr,!0)}},s("ArrowLeft",{metaKey:!0,...gn},ia),s("ArrowRight",{metaKey:!0,...gn},ra),o("h",oi,zn,!0),o("d",oi,zn,!1),o("Backspace",Ic,Tr,!0),o("Delete",Ic,Tr,!1),o("k",oi,Tr,!1)]:[s("Home",gn,ia),s("End",gn,ra),o("y",oi,Oi,void 0)],{key:"a",modifiers:Rn,onMatch:(l,c)=>{l.preventDefault(),Y(c,$0,l)&&Mc(c._inputState)}},a("c",qo),a("x",ol)]}()),e._keyDownShortcuts=r);const i=r.match(n);return i&&i.onMatch(n,e),function(s){return s.ctrlKey||s.shiftKey||s.altKey||s.metaKey}(n)&&e.dispatchCommand(Hm,n),!0}function Lc(n){let e=n.__lexicalEventHandles;return e===void 0&&(e=[],n.__lexicalEventHandles=e),e}const Er=new Map;function Rc(n){const e=gb(n.target);if(e===null)return;const t=Sl(n.target);let r=null,i=null;const s=t!==null?Fs.get(t):void 0;if(t!==null){if(s!==void 0){const h=s.editors;let f=s.hasShadowEditor;if(f===void 0){f=!1;for(const d of h)if(d._rootElement!==null&&on(d._rootElement.getRootNode())){f=!0;break}s.hasShadowEditor=f}if(f){let d=null,g=null;for(const b of h){const m=b._rootElement;if(m===null)continue;const p=ct(e,m).anchorNode;if(p!==null&&qn(p)===b){if(on(m.getRootNode())){r=b,i=p;break}d===null&&(d=b,g=p)}}r===null&&d!==null&&(r=d,i=g)}else{const d=e.anchorNode;d===null||ce(d)&&d.shadowRoot!==null||(r=qn(d),r!==null&&(i=d))}}if(r===null){const h=qr(t);r=h!==null?qn(h):null}}if(r===null)return;if(r._inputState.isSelectionChangeFromMouseDown){if(s!==void 0)for(const h of s.editors)h._inputState.isSelectionChangeFromMouseDown=!1;gt(r,()=>{const h=Yr(),f=i??ct(e,r._rootElement).anchorNode;(ce(f)||Tt(f))&&Me(uo(h,e,r,n))})}const o=yl(r),u=o[o.length-1],a=u._key,l=Er.get(a),c=l||u;c!==r&&Oc(e,c,!1),Oc(e,r,!0),r!==u?Er.set(a,r):l&&Er.delete(a)}function Fc(n){n._lexicalHandled=!0}function Bc(n){return n._lexicalHandled===!0}function sa(n,e,t){Be();const r=n.__key,i=n.getParent();if(i===null)return void(He(n)!==null&&P(367,r,String(He(n))));const s=function(u){const a=z();if(!F(a)||!T(u))return a;const{anchor:l,focus:c}=a,h=l.getNode(),f=c.getNode();return zr(h,u)&&l.set(u.__key,0,"element"),zr(f,u)&&c.set(u.__key,0,"element"),a}(n);let o=!1;if(F(s)&&e){const u=s.anchor,a=s.focus;u.key===r&&(ao(u,n,i,n.getPreviousSibling(),n.getNextSibling()),o=!0),a.key===r&&(ao(a,n,i,n.getPreviousSibling(),n.getNextSibling()),o=!0)}else _e(s)&&e&&n.isSelected()&&n.selectPrevious();if(F(s)&&e&&!o&&Fn(s,i)){const u=n.getIndexWithinParent();tn(n),Bn(s,i,u,-1)}else tn(n);t||pe(i)||i.canBeEmpty()||!i.isEmpty()||sa(i,e),e&&s&&Ee(i)&&i.isEmpty()&&i.selectEnd()}const H0=Symbol.for("ephemeral");function ro(n){return n[H0]||!1}const jc={configurable:!0,enumerable:!1,value:void 0,writable:!0};class $e{constructor(e){M(this,"__type");M(this,"__key");M(this,"__parent");M(this,"__prev");M(this,"__next");M(this,"__state");this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",jc),Object.defineProperty(this,eo,jc),Ch(this,e)}static getType(){const{ownNodeType:e}=Tl(this);return e===void 0&&P(64,this.name),e}static clone(e){P(65,this.name)}$config(){return{}}config(e,t){const r=t.extends||qh(this.constructor);return Object.assign(t,{extends:r}),typeof e=="string"&&Object.assign(t,{type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}resetOnCopyNodeFrom(e){this.__state&&(this.__state=this.__state.getWritable(this).resetOnCopyNode())}getType(){return this.__type}isInline(){P(137,this.constructor.name)}isAttached(){let e=this.__key;for(;e!==null;){if(e==="root")return!0;const t=he(e);if(t===null)break;e=t.__parent!==null?t.__parent:He(t)}return!1}isSelected(e){const t=e||z();if(t==null)return!1;const r=t.getNodes().some(i=>i.__key===this.__key);if(B(this))return r;if(F(t)&&t.anchor.type==="element"&&t.focus.type==="element"){if(t.isCollapsed())return!1;const i=this.getParent();if(ie(this)&&this.isInline()&&i){const s=t.isBackward()?t.focus:t.anchor;if(i.is(s.getNode())&&s.offset===i.getChildrenSize()&&this.is(i.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){const e=this.getParent();if(e===null)return-1;let t=e.getFirstChild(),r=0;for(;t!==null;){if(this.is(t))return r;r++,t=t.getNextSibling()}return-1}getParent(){const e=this.getLatest().__parent;return e===null?null:he(e)}getParentOrThrow(){const e=this.getParent();return e===null&&P(66,this.__key),e}getTopLevelElement(){let e=this;for(;e!==null;){const t=e.getParent();if(pe(t)||He(e)!==null)return T(e)||e===this&&ie(e)||P(194),e;e=t}return null}getTopLevelElementOrThrow(){const e=this.getTopLevelElement();return e===null&&P(67,this.__key),e}getParents(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t),t=t.getParent();return e}getParentKeys(){const e=[];let t=this.getParent();for(;t!==null;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){const e=this.getLatest().__prev;return e===null?null:he(e)}getPreviousSiblings(){const e=[],t=this.getParent();if(t===null)return e;let r=t.getFirstChild();for(;r!==null&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){const e=this.getLatest().__next;return e===null?null:he(e)}getNextSiblings(){const e=[];let t=this.getNextSibling();for(;t!==null;)e.push(t),t=t.getNextSibling();return e}is(e){return e!=null&&this.__key===e.__key}isBefore(e){const t=Gh(this,e);return t!==null&&(t.type==="descendant"||(t.type==="branch"?Vh(t)===-1:(t.type!=="same"&&t.type!=="ancestor"&&P(279),!1)))}isParentOf(e){return zr(e,this)}getNodesBetween(e){const t=this.isBefore(e),r=[],i=new Set;let s=this;for(;s!==null;){const o=s.__key;if(i.has(o)||(i.add(o),r.push(s)),s===e)break;const u=T(s)?t?s.getFirstChild():s.getLastChild():null;if(u!==null){s=u;continue}const a=t?s.getNextSibling():s.getPreviousSibling();if(a!==null){s=a;continue}const l=s.getParentOrThrow();if(i.has(l.__key)||r.push(l),l===e)break;let c=null,h=l;do{if(h===null&&P(68),c=t?h.getNextSibling():h.getPreviousSibling(),h=h.getParent(),h===null)break;c!==null||i.has(h.__key)||r.push(h)}while(c===null);s=c}return t||r.reverse(),r}isDirty(){const e=de()._dirtyLeaves;return e!==null&&e.has(this.__key)}getLatest(){if(ro(this))return this;const e=he(this.__key);return e===null&&P(113),e}getWritable(){if(ro(this))return this;Be();const e=Et(),t=de(),r=this.__key,i=t._cloneNotNeeded,s=i.get(r),o=e._selection;if(o!==null&&o.setCachedNodes(null),s!==void 0)return bo(s),s;const u=e._nodeMap,a=u.get(r);a===void 0&&P(113);const l=Bh(a);return i.set(r,l),u.set(r,l),bo(l),l}getTextContent(){return Wh(this)}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){P(70)}updateDOM(e,t,r){P(71)}getDOMSlot(e){return new Sr(e)}exportDOM(e){return{element:ns(e).$createDOM(this,e)}}exportJSON(e=!1){const t=function(i,s){const o=So(Kr(i.constructor)),{generated:u,isCompactDefault:a}=o,l=u===null?void 0:s?u.exportCompactJSON:u.exportJSON;return l===void 0?function(c,h,f){const d=f?{type:c.__type}:{};return T(c)&&(d.children=[]),function(g,b,m,p){for(let y=0;y<b.length;y++){const _=b[y];if(p&&_.derived)continue;let x;if(_.kind==="ownField"){const S=g[_.field];x=_.getterTable===void 0?S:vn(_.getterTable,S)?_.getterTable[S]:void 0}else x=_.getter.call(g);_.kind==="ownField"&&_.when!==void 0&&(!xa(_,x)&&_.when.call(g)||(x=void 0)),p&&xa(_,x)||(m[_.key]=x)}}(c,h,d,f),f||(d.type=c.__type,d.version=1),d}(i,o.getters,s):s?l(i,a):l(i)}(this,e),r=this.__state?this.__state.toJSON():void 0;return r!==void 0&&Object.assign(t,r),t}static importJSON(e){P(18,this.name)}updateFromJSON(e){return zh(h0(this,e),e)}static transform(){return null}remove(e){sa(this,!0,e)}replace(e,t){Be();let r=z();r!==null&&(r=r.clone()),Mu(this,e);const i=this.getLatest(),s=this.__key,o=Ye(i);o!==null&&P(400,s,i.getType(),o.getKey(),o.getType());const u=e.__key,a=e.getWritable(),l=this.getParentOrThrow().getWritable(),c=l.__size,h=a.getParent(),f=h!==null&&F(r)&&Fn(r,h),d=f?a.getIndexWithinParent():-1;tn(a),f&&h!==null&&F(r)&&Bn(r,h,d,-1);const g=i.getPreviousSibling(),b=i.getNextSibling(),m=i.__prev,p=i.__next,y=i.__parent;sa(i,!1,!0),g===null?l.__first=u:g.getWritable().__next=u,a.__prev=m,b===null?l.__last=u:b.getWritable().__prev=u,a.__next=p,a.__parent=y,l.__size=h!==null&&h.is(l)?c-1:c;let _=0;if(t&&(T(this)&&T(a)||P(139),_=a.getChildrenSize(),a.splice(_,0,this.getChildren())),F(r)){Me(r);const x=r.anchor,S=r.focus;x.key===s&&(t&&x.type==="element"?x.set(a.__key,_+x.offset,"element"):qc(x,a)),S.key===s&&(t&&S.type==="element"?S.set(a.__key,_+S.offset,"element"):qc(S,a))}return Bt()===s&&je(u),a}insertAfter(e,t=!0){Be(),Mu(this,e);const r=this.getWritable(),i=e.getWritable();this.getParentOrThrow();const s=i.getParent(),o=z();let u=!1,a=!1,l=-1;if(s!==null&&t&&F(o)&&Fn(o,s)){const g=s.__key,b=o.anchor,m=o.focus;l=e.getIndexWithinParent(),u=b.type==="element"&&b.key===g&&b.offset===l+1,a=m.type==="element"&&m.key===g&&m.offset===l+1}tn(i),l!==-1&&s!==null&&F(o)&&Bn(o,s,l,-1);const c=this.getNextSibling(),h=this.getParentOrThrow().getWritable(),f=i.__key,d=r.__next;if(c===null?h.__last=f:c.getWritable().__prev=f,h.__size++,r.__next=f,i.__next=d,i.__prev=r.__key,i.__parent=r.__parent,t&&F(o)){const g=h.__key;if(u||a||Fn(o,h)){const b=this.getIndexWithinParent();Bn(o,h,b+1),u&&o.anchor.set(g,b+2,"element"),a&&o.focus.set(g,b+2,"element")}}return e}insertBefore(e,t=!0){Be(),Mu(this,e);const r=this.getWritable(),i=e.getWritable();this.getParentOrThrow();const s=i.__key,o=z(),u=i.getParent(),a=u!==null&&t&&F(o)&&Fn(o,u),l=a?i.getIndexWithinParent():-1;tn(i),a&&u!==null&&F(o)&&Bn(o,u,l,-1);const c=this.getPreviousSibling(),h=this.getParentOrThrow().getWritable(),f=r.__prev,d=t&&F(o)&&Fn(o,h),g=d?this.getIndexWithinParent():-1;return c===null?h.__first=s:c.getWritable().__next=s,h.__size++,r.__prev=s,i.__prev=f,i.__next=r.__key,i.__parent=r.__parent,d&&F(o)&&Bn(o,h,g),e}isParentRequired(){return!1}createParentElementNode(){return Re()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){Be();const r=Ye(this);if(r!==null)return r.selectPrevious(e,t);const i=this.getPreviousSibling(),s=this.getParentOrThrow();if(i===null)return s.select(0,0);if(T(i))return i.select();if(!B(i)){const o=i.getIndexWithinParent()+1;return s.select(o,o)}return i.select(e,t)}selectNext(e,t){Be();const r=Ye(this);if(r!==null)return r.selectNext(e,t);const i=this.getNextSibling(),s=this.getParentOrThrow();if(i===null)return s.select();if(T(i))return i.select(0,0);if(!B(i)){const o=i.getIndexWithinParent();return s.select(o,o)}return i.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}M($e,"importDOM");function V0(n){return n instanceof $e}const oa="historic",l1="history-push",Nr="history-merge",G0="paste",ua="cut",c1="collaboration",f1="skip-scroll-into-view",d1="skip-dom-selection",aa="skip-selection-focus",J0="composition-start",io="composition-end",h1=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Fr(n,e){if(typeof n=="number")return Number.isFinite(n)?n:e;if(typeof n!="string"||!h1.test(n))return e;const t=Number(n);return Number.isFinite(t)?t:e}function X0(n,e,t,r,i){const s=Fr(n,e);return s>=t&&s<=r&&Number.isInteger(s)?s:e}const g1=n=>{const e=An(n,"format"),t=ur(n,"format"),r=ar(n,"format");return{exportJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles();return{children:[],direction:i.__dir,format:e[i.__format],indent:i.__indent,textFormat:s!==0&&u?s:void 0,textStyle:o!==""&&u?o:void 0,type:i.__type,version:1}},exportCompactJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles(),a={type:i.__type,children:[]},l=i.__dir;l!=null&&(a.direction=l);const c=e[i.__format];c!==void 0&&c!==""&&(a.format=c);const h=i.__indent;return h!==void 0&&h!==0&&(a.indent=h),s!==void 0&&s!==0&&u&&(a.textFormat=s),o!==void 0&&o!==""&&u&&(a.textStyle=o),a},updateFromJSON:function(i,s){const o=s.direction;i.__dir=o===null||o==="ltr"||o==="rtl"?o:null;const u=s.format;i.__format=typeof u=="string"&&u in t?t[u]:r,i.__indent=X0(s.indent,0,0,1/0),i.__textFormat=Fr(s.textFormat,0);const a=s.textStyle;return i.__textStyle=typeof a=="string"?a:"",i}}};function p1(n,e){n.__detail=e.__detail,n.__format=e.__format,n.__mode=e.__mode,n.__style=e.__style,n.__text=e.__text}const m1=n=>{const e=An(n,"mode"),t=Zs(n,"detail",0),r=Zs(n,"format",0),i=ur(n,"mode"),s=ar(n,"mode");return{exportJSON:function(o){return{detail:o.__detail,format:o.__format,mode:e[o.__mode],style:o.__style,text:o.__text,type:o.__type,version:1}},exportCompactJSON:function(o){const u={type:o.__type},a=o.__detail;a!==void 0&&a!==0&&(u.detail=a);const l=o.__format;l!==void 0&&l!==0&&(u.format=l);const c=e[o.__mode];c!==void 0&&c!=="normal"&&(u.mode=c);const h=o.__style;h!==void 0&&h!==""&&(u.style=h);const f=o.__text;return f!==void 0&&f!==""&&(u.text=f),u},updateFromJSON:function(o,u){const a=u.detail;o.__detail=typeof a=="string"&&a in t?t[a]:Fr(a,0);const l=u.format;o.__format=typeof l=="string"&&l in r?r[l]:Fr(l,0);const c=u.mode;o.__mode=typeof c=="string"&&c in i?i[c]:s;const h=u.style;o.__style=typeof h=="string"?h:"";const f=u.text;return o.__text=typeof f=="string"?f:"",o},afterCloneFrom:p1}},b1=n=>{const e=An(n,"format"),t=ur(n,"format"),r=ar(n,"format");return{exportJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles();return{children:[],direction:i.__dir,format:e[i.__format],indent:i.__indent,textFormat:s!==0&&u?s:void 0,textStyle:o!==""&&u?o:void 0,type:i.__type,version:1}},exportCompactJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles(),a={type:i.__type,children:[]},l=i.__dir;l!=null&&(a.direction=l);const c=e[i.__format];c!==void 0&&c!==""&&(a.format=c);const h=i.__indent;return h!==void 0&&h!==0&&(a.indent=h),s!==void 0&&s!==0&&u&&(a.textFormat=s),o!==void 0&&o!==""&&u&&(a.textStyle=o),a},updateFromJSON:function(i,s){const o=s.direction;i.__dir=o===null||o==="ltr"||o==="rtl"?o:null;const u=s.format;i.__format=typeof u=="string"&&u in t?t[u]:r,i.__indent=X0(s.indent,0,0,1/0),i.__textFormat=Fr(s.textFormat,0);const a=s.textStyle;return i.__textStyle=typeof a=="string"?a:"",i}}},y1=()=>({exportJSON:function(n){return{type:n.__type,version:1}},exportCompactJSON:function(n){return{type:n.__type}}}),_1=n=>{const e=An(n,"mode"),t=Zs(n,"format",0);return{exportJSON:function(r){return{detail:r.__detail,mode:e[r.__mode],text:r.__text,format:r.__format,style:r.__style,type:r.__type,version:1}},exportCompactJSON:function(r){const i={type:r.__type},s=r.__format;s!==void 0&&s!==0&&(i.format=s);const o=r.__style;return o!==void 0&&o!==""&&(i.style=o),i},updateFromJSON:function(r,i){const s=i.format;r.__format=typeof s=="string"&&s in t?t[s]:Fr(s,0);const o=i.style;return r.__style=typeof o=="string"?o:"",r}}};function so(n){const e={};if(!n)return e;let t="",r="",i=null,s=!1,o=!1,u=!1,a=0;const l=n.length;let c=-1;for(let d=0;d<l;d++){const g=n[d];if(s)g==="*"&&n[d+1]==="/"&&(s=!1,d++);else if(o)c===-1&&(c=d),o=!1;else if(i===null)if(g!=="/"||n[d+1]!=="*")if(g!=='"'&&g!=="'")if(g!=="(")if(g!==")")if(u||g!==":"||a!==0){if(g===";"&&a===0){c!==-1&&(u?r+=n.slice(c,d):t+=n.slice(c,d),c=-1);const b=t.trim(),m=r.trim();b!==""&&m!==""&&(e[b]=m),t="",r="",u=!1;continue}c===-1&&(c=d)}else c!==-1&&(t+=n.slice(c,d),c=-1),u=!0;else c===-1&&(c=d),a=Math.max(0,a-1);else c===-1&&(c=d),a++;else c===-1&&(c=d),i=g;else c!==-1&&(u?r+=n.slice(c,d):t+=n.slice(c,d),c=-1),s=!0,d++;else c===-1&&(c=d),g==="\\"?o=!0:g===i&&(i=null)}c!==-1&&(u?r+=n.slice(c,l):t+=n.slice(c,l));const h=t.trim(),f=r.trim();return h!==""&&f!==""&&(e[h]=f),e}function x1(n,e,t){const r=t.trimEnd(),i=r.length-10;i>=0&&r.slice(i).toLowerCase()==="!important"?n.setProperty(e,r.slice(0,i).trim(),"important"):n.setProperty(e,t,"")}function la(n,e,t=""){if(e===t)return;const r=so(t),i=so(e);for(const s in i)delete r[s],x1(n,s,i[s]);for(const s in r)n.removeProperty(s)}const v1=cr()({detail:Ze(Ju(Tn(),Vd),{field:"__detail"}),format:Ze(Ju(Tn(),Ke),{field:"__format"}),mode:Ze(Lr(["normal","token","segmented"]),{field:"__mode",getterTable:Xd,setterTable:Ya}),style:Ze(mn(),{field:"__style"}),text:Ze(mn(),{field:"__text",getter:"getTextContent",setter:"setTextContent"})});function Su(n,e){return 16&e?"code":128&e?"mark":32&e?"sub":64&e?"sup":null}function wu(n,e){return 1&e?"strong":2&e?"em":"span"}function Y0(n,e,t,r,i){const s=r.classList;let o=kr(i,"base");o!==void 0&&s.add(...o),o=kr(i,"underlineStrikethrough");let u=!1;const a=8&e&&4&e;o!==void 0&&(8&t&&4&t?(u=!0,a||s.add(...o)):a&&s.remove(...o));for(const l in Ke){const c=Ke[l];if(o=kr(i,l),o!==void 0)if(t&c){if(u&&(l==="underline"||l==="strikethrough")){e&c&&s.remove(...o);continue}(!(e&c)||a&&l==="underline"||l==="strikethrough")&&s.add(...o)}else e&c&&s.remove(...o)}Mi(r,"class")}function Q0(n,e,t){const r=t.isComposing(),i=n+(r?Ci:""),s=Pe(),o=ns(s).$getDOMSlot(t,e,s),u=o.getFirstChild();if(u===null||u.nodeType!==Node.TEXT_NODE)return void o.insertChild(Ie().createTextNode(i));const a=u,l=a.nodeValue;if(l!==i)if(r||rn){const[c,h,f]=function(d,g){const b=d.length,m=g.length;let p=0,y=0;for(;p<b&&p<m&&d[p]===g[p];)p++;for(;y+p<b&&y+p<m&&d[b-y-1]===g[m-y-1];)y++;return[p,b-p-y,g.slice(p,m-y)]}(l,i);h!==0&&a.deleteData(c,h),a.insertData(c,f)}else a.nodeValue=i}function $c(n,e,t,r,i,s){Q0(i,n,e);const o=s.theme.text;o!==void 0&&Y0(0,0,r,n,o)}function ps(n,e){const t=Ie().createElement(e);return t.appendChild(n),t}function ca(n){return n!=null&&n.__isInlineFormattable===!0}class En extends $e{constructor(t="",r){super(r);M(this,"__text");M(this,"__format");M(this,"__style");M(this,"__mode");M(this,"__detail");this.__text=t,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}get __isInlineFormattable(){return!0}$config(){return this.config("text",{extends:$e,generated:m1,importDOM:{"#text":()=>({conversion:T1,priority:0}),b:()=>({conversion:w1,priority:0}),code:()=>({conversion:Vt,priority:0}),em:()=>({conversion:Vt,priority:0}),i:()=>({conversion:Vt,priority:0}),mark:()=>({conversion:Vt,priority:0}),s:()=>({conversion:Vt,priority:0}),span:()=>({conversion:S1,priority:0}),strong:()=>({conversion:Vt,priority:0}),sub:()=>({conversion:Vt,priority:0}),sup:()=>({conversion:Vt,priority:0}),u:()=>({conversion:Vt,priority:0})},json:v1})}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){const t=this.getLatest();return Xd[t.__mode]}getStyle(){return this.getLatest().__style}isToken(){return this.getLatest().__mode===1}isComposing(){return this.__key===Bt()}isSegmented(){return this.getLatest().__mode===2}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(t){const r=Ke[t];return(this.getFormat()&r)!==0}isSimpleText(){const t=this.getLatest();return t.__type==="text"&&t.__mode===0}getTextContent(){return this.getLatest().__text}getFormatFlags(t,r){return Yn(this.getLatest().__format,t,r)}canHaveFormat(){return!0}isInline(){return!0}createDOM(t,r){const i=this.__format,s=Su(0,i),o=wu(0,i),u=s===null?o:s,a=Ie().createElement(u);let l=a;this.hasFormat("code")&&a.setAttribute("spellcheck","false"),s!==null&&(l=Ie().createElement(o),a.appendChild(l)),$c(l,this,0,i,this.__text,t);const c=this.__style;return c!==""&&la(a.style,c),a}updateDOM(t,r,i){const s=this.__text,o=t.__format,u=this.__format,a=Su(0,o),l=Su(0,u),c=wu(0,o),h=wu(0,u);if((a===null?c:a)!==(l===null?h:l))return!0;if(a===l&&c!==h){const m=r.firstChild;m==null&&P(48);const p=Ie().createElement(h);return $c(p,this,0,u,s,i),r.replaceChild(p,m),!1}let f=r;l!==null&&a!==null&&(f=r.firstChild,f==null&&P(49)),Q0(s,f,this);const d=i.theme.text;d!==void 0&&o!==u&&Y0(0,o,u,f,d);const g=t.__style,b=this.__style;return g!==b&&(la(r.style,b,g),Mi(r,"style")),!1}exportDOM(t){let{element:r}=super.exportDOM(t);return ce(r)||P(132),r.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?r.style.textTransform="lowercase":this.hasFormat("uppercase")?r.style.textTransform="uppercase":this.hasFormat("capitalize")&&(r.style.textTransform="capitalize"),this.hasFormat("bold")&&(r=ps(r,"b")),this.hasFormat("italic")&&(r=ps(r,"i")),this.hasFormat("strikethrough")&&(r=ps(r,"s")),this.hasFormat("underline")&&(r=ps(r,"u")),{element:r}}selectionTransform(t,r){}setFormat(t){const r=this.getWritable();return r.__format=typeof t=="string"?Ke[t]:t,r}setDetail(t){const r=this.getWritable();return r.__detail=typeof t=="string"?Vd[t]:t,r}setStyle(t){const r=this.getWritable();return r.__style=t,r}toggleFormat(t){const r=Yn(this.getFormat(),t,null);return this.setFormat(r)}toggleDirectionless(){const t=this.getWritable();return t.__detail^=1,t}toggleUnmergeable(){const t=this.getWritable();return t.__detail^=2,t}setMode(t){const r=Ya[t];if(this.getLatest().__mode===r)return this;const i=this.getWritable();return i.__mode=r,i}setTextContent(t){if(this.getLatest().__text===t)return this;const r=this.getWritable();return r.__text=t,r}select(t,r){Be();let i=t,s=r;const o=z(),u=this.getTextContent(),a=this.__key;if(typeof u=="string"){const l=u.length;i===void 0&&(i=l),s===void 0&&(s=l)}else i=0,s=0;if(!F(o))return ah(a,i,a,s,"text","text");{const l=Bt();l!==o.anchor.key&&l!==o.focus.key||je(a),o.setTextNodeRange(this,i,this,s)}return o}selectStart(){return this.select(0,0)}selectEnd(){const t=this.getTextContentSize();return this.select(t,t)}spliceText(t,r,i,s){const o=this.getWritable(),u=o.__text,a=i.length;let l=t;l<0&&(l=a+l,l<0&&(l=0));const c=z();if(s&&F(c)){const f=t+a;c.setTextNodeRange(o,f,o,f)}const h=u.slice(0,l)+i+u.slice(l+r);return o.__text=h,o}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...t){Be();const r=this.getLatest(),i=r.getTextContent();if(i==="")return[];const s=r.__key,o=Bt(),u=i.length;t.sort((D,k)=>D-k),t.push(u);const a=[],l=t.length;for(let D=0,k=0;D<u&&k<=l;k++){const v=t[k];v>D&&(a.push(i.slice(D,v)),D=v)}const c=a.length;if(c===1)return[r];const h=a[0],f=r.getParent();let d;const g=r.getFormat(),b=r.getStyle(),m=r.__detail;let p=!1,y=null,_=null;const x=z();if(F(x)){const[D,k]=x.isBackward()?[x.focus,x.anchor]:[x.anchor,x.focus];D.type==="text"&&D.key===s&&(y=D),k.type==="text"&&k.key===s&&(_=k)}r.isSegmented()?(d=Xe(h),d.__format=g,d.__style=b,d.__detail=m,d.__state=pc(r,d),p=!0):d=r.setTextContent(h);const S=[d];for(let D=1;D<c;D++){const k=Xe(a[D]);k.__format=g,k.__style=b,k.__detail=m,k.__state=pc(r,k);const v=k.__key;o===s&&je(v),S.push(k)}const C=y?y.offset:null,A=_?_.offset:null;let O=0;for(const D of S){if(!y&&!_)break;const k=O+D.getTextContentSize();if(y!==null&&C!==null&&C<=k&&C>=O&&(y.set(D.getKey(),C-O,"text"),C<k&&(y=null)),_!==null&&A!==null&&A<=k&&A>=O){_.set(D.getKey(),A-O,"text");break}O=k}if(f!==null){(function(v){const E=v.getPreviousSibling(),N=v.getNextSibling();E!==null&&bo(E),N!==null&&bo(N)})(this);const D=f.getWritable(),k=this.getIndexWithinParent();p?(D.splice(k,0,S),this.remove()):D.splice(k,1,S),F(x)&&Bn(x,f,k,c-1)}return S}mergeWithSibling(t){const r=t===this.getPreviousSibling();r||t===this.getNextSibling()||P(50);const i=this.__key,s=t.__key,o=this.__text,u=o.length;Bt()===s&&je(i);const a=z();if(F(a)){const f=a.anchor,d=a.focus;f!==null&&f.key===s&&Yc(f,r,i,t,u),d!==null&&d.key===s&&Yc(d,r,i,t,u)}const l=t.__text,c=r?l+o:o+l;this.setTextContent(c);const h=this.getWritable();return t.remove(),h}isTextEntity(){return!1}}function S1(n){return{forChild:ul(n.style),node:null}}function w1(n){const e=n,t=e.style.fontWeight==="normal";return{forChild:ul(e.style,t?void 0:"bold"),node:null}}const Uc=new WeakMap;function C1(n){if(!ce(n))return!1;if(n.nodeName==="PRE")return!0;const e=n.style.whiteSpace;return typeof e=="string"&&e.startsWith("pre")}function T1(n){const e=n;n.parentElement===null&&P(129);let t=e.textContent||"";if(function(r){let i,s=r.parentNode;const o=[r];for(;s!==null&&(i=Uc.get(s))===void 0&&!C1(s);)o.push(s),s=s.parentNode;const u=i===void 0?s:i;for(let a=0;a<o.length;a++)Uc.set(o[a],u);return u}(e)!==null)return{node:fh(t)};if(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," "),t==="")return{node:null};if(t[0]===" "){let r=e,i=!0;for(;r!==null&&(r=zc(r,!1))!==null;){const s=r.textContent||"";if(s.length>0){/[ \t\n]$/.test(s)&&(t=t.slice(1)),i=!1;break}}i&&(t=t.slice(1))}if(t[t.length-1]===" "){let r=e,i=!0;for(;r!==null&&(r=zc(r,!0))!==null;)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){i=!1;break}i&&(t=t.slice(0,t.length-1))}return t===""?{node:null}:{node:Xe(t)}}function zc(n,e){let t=n;for(;;){let r;for(;(r=e?t.nextSibling:t.previousSibling)===null;){const s=t.parentElement;if(s===null)return null;t=s}if(t=r,ce(t)){const s=t.style.display;if(s===""&&!_a(t)||s!==""&&!s.startsWith("inline"))return null}let i=t;for(;(i=e?t.firstChild:t.lastChild)!==null;)t=i;if(Tt(t))return t;if(t.nodeName==="BR")return null}}const E1={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function Vt(n){const e=E1[n.nodeName.toLowerCase()];return e===void 0?{node:null}:{forChild:ul(n.style,e),node:null}}function Xe(n=""){return Kt(new En(n))}function B(n){return n instanceof En}function ul(n,e){const t=n.fontWeight,r=n.textDecoration.split(" "),i=t==="700"||t==="bold",s=r.includes("line-through"),o=n.fontStyle==="italic",u=r.includes("underline"),a=n.verticalAlign,l=n.textTransform;return c=>((B(c)||ca(c))&&(i&&!c.hasFormat("bold")&&c.toggleFormat("bold"),s&&!c.hasFormat("strikethrough")&&c.toggleFormat("strikethrough"),o&&!c.hasFormat("italic")&&c.toggleFormat("italic"),u&&!c.hasFormat("underline")&&c.toggleFormat("underline"),a!=="sub"||c.hasFormat("subscript")||c.toggleFormat("subscript"),a!=="super"||c.hasFormat("superscript")||c.toggleFormat("superscript"),l!=="lowercase"&&l!=="uppercase"&&l!=="capitalize"||c.hasFormat(l)||c.toggleFormat(l),e&&!c.hasFormat(e)&&c.toggleFormat(e)),c)}const N1=cr()({detail:Sn(Tn(2),{getter:{field:"__detail"},setter:null}),mode:Sn(Lr(["normal"]),{getter:{field:"__mode",getterTable:{0:"normal"}},setter:null}),text:Sn(mn(" "),{getter:{field:"__text",method:"getTextContent"},setter:null})});class Ko extends En{$config(){return this.config("tab",{extends:En,generated:_1,json:N1})}constructor(e=void 0){super(" ",e),this.__detail=2}createDOM(e){const t=super.createDOM(e),r=kr(e.theme,"tab");return r!==void 0&&t.classList.add(...r),t}setTextContent(e){return super.setTextContent(" ")}spliceText(e,t,r,i){return r===""&&t===0||r===" "&&t===1||P(286),this}setDetail(e){return e!==2&&P(127),this}setMode(e){return e!=="normal"&&P(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function al(){return Kt(new Ko)}function oo(n){return n instanceof Ko}class k1{constructor(e,t,r){M(this,"key");M(this,"offset");M(this,"type");M(this,"_selection");this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:kn(ze(ot(this,"next")),ze(ot(e,"next")))<0}getNode(){const e=he(this.key);return e===null&&P(20),e}set(e,t,r,i){const s=this._selection,o=this.key;i&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,Xn()||(Bt()===o&&je(e),s!==null&&(s.setCachedNodes(null),F(s)&&(s._cachedIsBackward=null),s.dirty=!0)))}}function qt(n,e,t){return new k1(n,e,t)}function Cu(n,e){let t=e.__key,r=n.offset,i="element";if(B(e)){i="text";const s=e.getTextContentSize();r>s&&(r=s)}else if(!T(e)){const s=e.getNextSibling();if(B(s))t=s.__key,r=0,i="text";else{const o=e.getParent();o&&(t=o.__key,r=e.getIndexWithinParent()+1)}}n.set(t,r,i)}function qc(n,e){if(T(e)){const t=e.getLastDescendant();T(t)||B(t)?Cu(n,t):Cu(n,e)}else Cu(n,e)}function Kc(n,e,t,r){const i=n.getNode(),s=i.getChildAtIndex(n.offset),o=Xe();if(o.setFormat(t),o.setStyle(r),Zi(s))s.splice(0,0,[o]);else if(s!==null){const u=pe(i)?Re().append(o):o;s.insertBefore(u)}else if(pe(i)){const u=i.getLastChild();T(u)&&!u.isInline()&&u.isEmpty()?u.append(o):i.append(Re().append(o))}else i.append(o);n.is(e)&&e.set(o.__key,0,"text"),n.set(o.__key,0,"text")}function Wc(n,e,t,r){const i=n.anchor.getNode();B(i)||P(398);const s=n.anchor.offset,o=Xe(e);o.setFormat(t),o.setStyle(r);const u=i.getParentOrThrow();if(s===0)u.isInline()&&!i.__prev?u.insertBefore(o):i.insertBefore(o,!1);else if(s===i.getTextContentSize())u.isInline()&&!i.__next?u.insertAfter(o):i.insertAfter(o,!1);else{const[a]=i.splitText(s);a.insertAfter(o,!1)}i.getTextContent()===""&&i.isAttached()&&i.remove(),o.selectEnd(),o.isComposing()&&n.anchor.type==="text"&&n.anchor.set(n.anchor.key,n.anchor.offset-e.length,n.anchor.type)}class Wo{constructor(e){M(this,"_nodes");M(this,"_cachedNodes");M(this,"dirty");this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!_e(e))return!1;const t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(i=>r.has(i))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new Wo(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){const t=this.getNodes().filter(o=>He(o)===null),r=t.length;if(r===0)return;const i=t[r-1];let s;if(B(i))s=i.select();else{const o=i.getIndexWithinParent()+1;s=i.getParentOrThrow().select(o,o)}s.insertNodes(e);for(let o=0;o<r;o++)t[o].remove()}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=this._nodes,r=[];for(const i of t){const s=he(i);s!==null&&r.push(s)}return Xn()||(this._cachedNodes=r),r}getTextContent(){const e=this.getNodes();let t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){const e=this.getNodes().filter(t=>He(t)===null);if((z()||Yr())===this&&e[0]){const t=fe(e[0],"next");jr(wt(t,t))}for(const t of e)t.remove();Z0()}}function Z0(){const n=we();if(n.getChildrenSize()===0&&El(z())===null){const e=Re();n.append(e),e.select()}}function F(n){return n instanceof fr}class fr{constructor(e,t,r,i){M(this,"format");M(this,"style");M(this,"anchor");M(this,"focus");M(this,"_cachedNodes");M(this,"_cachedIsBackward");M(this,"dirty");this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this._cachedIsBackward=null,this.format=r,this.style=i,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!F(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){const e=this._cachedNodes;if(e!==null)return e;const t=function(r){const i=[],[s,o]=r.getTextSlices();s&&i.push(s.caret.origin);const u=new Set,a=new Set;for(const l of r)if(pt(l)){const{origin:c}=l;i.length===0?u.add(c):(a.add(c),i.push(c))}else{const{origin:c}=l;T(c)&&a.has(c)||i.push(c)}if(o&&i.push(o.caret.origin),un(r.focus)&&T(r.focus.origin)&&r.focus.getNodeAtCaret()===null)for(let l=Ve(r.focus.origin,"previous");pt(l)&&u.has(l.origin)&&!l.origin.isEmpty()&&l.origin.is(i[i.length-1]);l=Al(l))u.delete(l.origin),i.pop();for(;i.length>1;){const l=i[i.length-1];if(!T(l)||a.has(l)||l.isEmpty()||u.has(l))break;i.pop()}if(i.length===0&&r.isCollapsed()){const l=ze(r.anchor),c=ze(r.anchor.getFlipped()),h=d=>ut(d)?d.origin:d.getNodeAtCaret(),f=h(l)||h(c)||(r.anchor.getNodeAtCaret()?l.origin:c.origin);i.push(f)}return i}(Qi(go(this),"next"));return Xn()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,i){return this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,i,"text"),this}getTextContent(){const e=this.getNodes();if(e.length===0)return"";const t=e[0],r=e[e.length-1],i=this.anchor,s=this.focus,o=i.isBefore(s),[u,a]=fa(this);let l="",c=!0;for(let h=0;h<e.length;h++){const f=e[h];if(T(f)&&!f.isInline()){c||(l+=`
8
+ `);let d="";for(const g of jt(f)){const b=Wr(f,g);b!==null&&(d+=b.getTextContent())}d!==""?(l+=d,c=!1):c=!f.isEmpty()}else if(c=!1,B(f)){let d=f.getTextContent();f===t?f===r?i.type==="element"&&s.type==="element"&&s.offset!==i.offset||(d=u<a?d.slice(u,a):d.slice(a,u)):d=o?d.slice(u):d.slice(a):f===r&&(d=o?d.slice(0,a):d.slice(0,u)),l+=d}else!ie(f)&&!et(f)||f===r&&this.isCollapsed()||(l+=f.getTextContent())}return l}applyDOMRange(e){const t=de(),r=t.getEditorState()._selection,i=uh(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(i===null)return;const[s,o,u]=i;this.anchor.set(s.key,s.offset,s.type,!0),this.focus.set(o.key,o.offset,o.type,!0),u&&(this.dirty=!0),Rr(this)}clone(){const e=this.anchor,t=this.focus;return new fr(qt(e.key,e.offset,e.type),qt(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=Yn(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){const t=Ke[e];return(this.format&t)!==0}insertRawText(e){this.insertNodes(fh(e))}insertText(e){let t=this.format,r=this.style;if(!this.isCollapsed()){const h=(this.focus.isBefore(this.anchor)?this.focus:this.anchor).getNode();if(B(h)&&(t=h.getFormat(),r=h.getStyle()),this.removeText(),this.format=t,this.style=r,e==="")return;if(Bt()===null)return this.anchor.type==="element"&&Kc(this.anchor,this.focus,t,r),void Wc(this,e,t,r)}this.anchor.type==="element"&&Kc(this.anchor,this.focus,t,r);const i=this.anchor.getNode();B(i)||P(398);const s=this.anchor.offset,o=i.getParentOrThrow(),u=i.getTextContentSize();if(St(i)||s===0&&(!i.canInsertTextBefore()||!o.canInsertTextBefore()&&!i.__prev)||s===u&&(!i.canInsertTextAfter()||!o.canInsertTextAfter()&&!i.__next)){if(i.isSegmented()&&s!==0&&s!==u){if(Bt()!==null)i.setMode("normal").setFormat(t).setStyle(r);else{const f=Xe(i.getTextContent());f.setFormat(t),f.setStyle(r);const d=z()===this;i.replace(f),this.setTextNodeRange(f,s,f,s),d&&z()!==this&&Me(this)}return void(e!==""&&this.insertText(e))}if(e==="")return;if(s===0){const f=i.getPreviousSibling();if(B(f)&&f.canInsertTextAfter()&&!St(f))f.select();else{const d=Xe();d.setFormat(t),d.setStyle(r),o.canInsertTextBefore()?i.insertBefore(d):o.insertBefore(d),d.select()}return void this.insertText(e)}if(s===u){const f=i.getNextSibling();if(B(f)&&f.canInsertTextBefore()&&!St(f))f.select(0,0);else{const d=Xe();d.setFormat(t),d.setStyle(r),o.canInsertTextAfter()?i.insertAfter(d):o.insertAfter(d),d.select(0,0)}return void this.insertText(e)}const h=Xe(e);return h.setFormat(t),h.setStyle(r),i.replace(h),void h.select()}if(e==="")return;const a=o.isInline()&&s===0&&!i.__prev,l=o.isInline()&&s===u&&!i.__next,c=i.getFormat()!==t||i.getStyle()!==r;if(a||l||c){if(i.getTextContent()!==""||a||l)return void Wc(this,e,t,r);i.setFormat(t),i.setStyle(r)}i.spliceText(s,0,e,!0),i.isComposing()&&this.anchor.type==="text"&&this.anchor.set(this.anchor.key,this.anchor.offset-e.length,this.anchor.type)}removeText(){const e=z()===this,t=this.anchor.key;Ks(this,G1(go(this))),this.isCollapsed()&&function(r,i){const s=r.anchor;if(s.key===i)return;const o=s.getNode();let u=0,a="";B(o)?(u=o.getFormat(),a=o.getStyle()):T(o)&&(u=o.getTextFormat(),a=o.getTextStyle()),r.format===u&&r.style===a||(r.format=u,r.style=a,r.dirty=!0)}(this,t),e&&z()!==this&&Me(this)}formatText(e,t=null){th(this,e,t)}insertNodes(e){if(e.length===0)return;this.isCollapsed()||this.removeText();const t=this.anchor.getNode();if(this.anchor.type==="element"&&T(t)&&t.isShadowRoot()&&He(t)!==null){let _=t.getFirstChild()??t.append(Re()).getFirstChild();if(_!==null&&!T(_)){const x=Re();_.insertBefore(x),_=x}if(_!==null){_.selectStart();const x=z();return F(x)||P(369),x.insertNodes(e)}}if(this.anchor.type==="element"&&pe(t)){const _=Eu(e),x=_.getLastDescendant();return t.splice(this.anchor.offset,0,_.getChildren()),void(x!==null&&x.selectEnd())}const r=this.isBackward()?this.focus:this.anchor;let i=r.getNode(),s=ke(i,Qe);const o=e[e.length-1];if(T(s)&&"__language"in s){if("__language"in e[0])this.insertText(e[0].getTextContent());else{const[,_]=ui(this);s.splice(_,0,e),o.selectEnd()}return}if(!e.some(_=>(T(_)||ie(_))&&!_.isInline())){T(s)||P(211,i.constructor.name,i.getType());const[_,x]=ui(this,!0);return(T(_)?_:s).splice(x,0,e),void o.selectEnd()}if(T(s)&&He(s)!==null){const[,_]=ui(this),x=ha(e);s.splice(_,0,x);const S=x[x.length-1];return void(S!==void 0?S.selectEnd():s.select(_,_))}if(s===null){const _=Eu(e),x=_.getLastDescendant();let S=ot(this.anchor,"next");for(const C of _.getChildren())S=hl(C,S);return void(x!==null&&x.selectEnd())}if(T(s)&&!s.isParentRequired()&&!pe(s.getParentOrThrow())){const[,_]=ui(this),x=ha(e);s.splice(_,0,x);const S=x[x.length-1];return void(S!==void 0?S.selectEnd():s.select(_,_))}const u=Eu(e),a=u.getLastDescendant(),l=u.getChildren(),c=function(_){const x=function(S){const C=S.getNode();if(S.offset>0)return S.type==="element"&&T(C)?C.getChildAtIndex(S.offset-1):null;for(let A=C;A!==null&&!Qe(A)&&!pe(A);A=A.getParent()){const O=A.getPreviousSibling();if(O!==null)return O}return null}(_);return et(x)&&et(x.getPreviousSibling())}(r),h=T(s)&&s.isEmpty()?null:this.insertParagraph();h&&!s.isAttached()&&(i=this.anchor.getNode(),s=ke(i,Qe));const f=l[l.length-1];let d=l[0];var g;g=d,c||!T(g)||!Qe(g)||g.isEmpty()||!T(s)||s.isEmpty()&&!s.canMergeWhenEmpty()||(T(s)||P(211,i.constructor.name,i.getType()),s.append(...d.getChildren()),d=l[1]),d&&(s===null&&P(212,i.constructor.name,i.getType()),function(_,x){const S=x.getParentOrThrow().getLastChild();let C=x;const A=[x];for(;C!==S;)C.getNextSibling()||P(140),C=C.getNextSibling(),A.push(C);let O=_;for(const D of A)O=O.insertAfter(D)}(s,d));const b=ke(a,Qe),m=a.selectEnd();h&&(T(b)&&(h.canMergeWhenEmpty()||Qe(f))?(b.append(...h.getChildren()),h.remove()):h.isEmpty()&&h.remove()),T(s)&&s.isEmpty()&&s.remove();const p=T(s)?s.getLastChild():null;et(p)&&b!==s&&p.remove();const y=ze(ot(m.anchor,"next"));sn(m.anchor,y),sn(m.focus,y)}insertParagraph(){this.isCollapsed()||this.removeText();const e=this.anchor.getNode();if(this.anchor.type==="element"&&pe(e)){const u=Re();return e.splice(this.anchor.offset,0,[u]),u.select(),u}const[,t]=ui(this),r=ke(this.anchor.getNode(),Qe);if(r!==null&&He(r)!==null)return null;T(r)||P(213);const i=r.getChildAtIndex(t),s=i?[i,...i.getNextSiblings()]:[],o=r.insertNewAfter(this,!1);return o?(o.append(...s),o.selectStart(),o):null}insertLineBreak(e){const t=Yi();if(this.insertNodes([t]),e){const r=t.getParentOrThrow(),i=t.getIndexWithinParent();r.select(i,i)}}extract(){const e=[...this.getNodes()],t=e.length;let r=e[0],i=e[t-1];const[s,o]=fa(this),u=this.isBackward(),[a,l]=u?[this.focus,this.anchor]:[this.anchor,this.focus],[c,h]=u?[o,s]:[s,o];if(t===0)return[];if(t===1){if(B(r)&&!this.isCollapsed()){const f=r.splitText(c,h),d=c===0?f[0]:f[1];return d?(a.set(d.getKey(),0,"text"),l.set(d.getKey(),d.getTextContentSize(),"text"),[d]):[]}return[r]}if(B(r)&&(c===r.getTextContentSize()?e.shift():c!==0&&([,r]=r.splitText(c),e[0]=r,a.set(r.getKey(),0,"text"))),B(i)){const f=i.getTextContent().length;h===0?e.pop():h!==f&&([i]=i.splitText(h),e[e.length-1]=i,l.set(i.getKey(),i.getTextContentSize(),"text"))}return e}modify(e,t,r){if(co(this,e,t,r))return;const i=e==="move",s=de(),o=nt(dt(s));if(!o)return;const u=s._blockCursorElement,a=s._rootElement,l=this.focus.getNode();a===null||u===null||!T(l)||l.isInline()||l.canBeEmpty()||_o(u,s,a);const c=Ar(s,this.focus.key);let h=c;if(this.focus.type==="text"&&(h=B(l)?wn(l,c,s):null),this.dirty){const f=Ar(s,this.anchor.key);let d=f;if(this.anchor.type==="text"){const g=this.anchor.getNode();d=B(g)?wn(g,f,s):null}d&&h&&lo(o,d,this.anchor.offset,h,this.focus.offset)}if(r==="character"&&B(l)&&l.isUnmergeable()&&(t?this.focus.offset===0:this.focus.offset===l.getTextContentSize())){const f=fe(l,t?"previous":"next").getNodeAtCaret();if(B(f)){if(!i){const d=f.getTextContentSize();return t?this.focus.set(f.__key,d-1,"text"):this.focus.set(f.__key,1,"text"),void(this.dirty=!0)}{const d=s.getElementByKey(f.getKey()),g=d?wn(f,d,s):null;if(g){const b=t?g.length:0;lo(o,g,b,g,b)}}}}if(rh(o,e,t?"backward":"forward",r,a),o.rangeCount>0){const f=Xo(o,s._rootElement),d=f||o.getRangeAt(0),g=this.anchor.getNode(),b=Ee(g)?g:Mh(g);this.applyDOMRange(d),this.dirty=!0,i||(ih(this,t,b),(f?o.direction!=="backward":o.anchorNode===d.startContainer&&o.anchorOffset===d.startOffset)||nh(this))}r==="lineboundary"&&co(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&(e.type==="element"&&T(t)&&e.offset===t.getChildrenSize()||e.type==="text"&&e.offset===t.getTextContentSize())){const i=t.getParent(),s=t.getNextSibling()||(i===null?null:i.getNextSibling());if(T(s)&&s.isShadowRoot())return!0}return!1}deleteCharacter(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor;let i=r.getNode();if(this.forwardDeletion(r,i,e)){const a=T(i)?i.getNextSibling():null;if(!(T(i)&&i.isEmpty()&&T(a)&&a.isShadowRoot()))return}const s=ot(r,e?"previous":"next"),o=Qo(s);if(o.getTextSlices().every(a=>a===null||a.distance===0)){if(r.type==="element"){const l=s.getNodeAtCaret();if(T(l)&&Ii(l)){const c=l.getParent();l.remove();const h=yo(c,l);return void(h!==null&&h.selectStart())}}let a={type:"initial"};for(const l of o.iterNodeCarets("shadowRoot"))if(pt(l)){if(!l.origin.isInline()){if(l.origin.isShadowRoot()){if(a.type==="merge-block")break;if(T(o.anchor.origin)&&o.anchor.origin.isEmpty()){const c=ze(l);Ks(this,wt(c,c)),o.anchor.origin.remove()}return}a.type!=="merge-next-block"&&a.type!=="merge-block"||(a={block:a.block,caret:l,type:"merge-block"})}}else{if(a.type==="merge-block")break;if(un(l)){if(T(l.origin)){if(l.origin.isInline()){if(!l.origin.isParentOf(o.anchor.origin))break}else a={block:l.origin,type:"merge-next-block"};continue}if(ie(l.origin)){if(!l.origin.isIsolated())if(a.type==="merge-next-block"&&(l.origin.isKeyboardSelectable()||!l.origin.isInline())&&T(o.anchor.origin)&&o.anchor.origin.isEmpty()){o.anchor.origin.remove();const c=ll();c.add(l.origin.getKey()),Me(c)}else{const c=l.origin,h=c.getParent();c.remove();const f=yo(h,c);f!==null&&f.selectStart()}return}if(et(l.origin))return void l.origin.remove();break}}if(a.type==="merge-block"){const{caret:l,block:c}=a;return jt(c).length>0?void 0:l.origin.isEmpty()&&!c.isEmpty()&&l.origin.getParent()===c.getParent()?void l.origin.remove(!0):(Ks(this,wt(!l.origin.isEmpty()&&c.isEmpty()?Dt(fe(c,l.direction)):o.anchor,l)),this.removeText())}for(let l=r.getNode();l!==null;){if(He(l)!==null)return;if(T(l)&&l.isShadowRoot())break;l=l.getParent()}}const u=this.focus;if(Tu(this,e,"character"),this.isCollapsed()){if(e&&r.offset===0&&function(a,l){for(let c=l;c;c=c.getParent()){if(T(c)){if(c.collapseAtStart(a))return!0;if(pe(c))break}if(c.getPreviousSibling())break}return!1}(this,r.getNode()))return}else{const a=u.type==="text"?u.getNode():null;if(i=r.type==="text"?r.getNode():null,a!==null&&a.isSegmented()){const l=u.offset,c=a.getTextContentSize();if(a.is(i)||e&&l!==c||!e&&l!==0)return void Vc(a,e,l)}else if(i!==null&&i.isSegmented()){const l=r.offset,c=i.getTextContentSize();if(i.is(a)||e&&l!==0||!e&&l!==c)return void Vc(i,e,l)}(function(l,c){const h=l.anchor,f=l.focus,d=h.getNode();if(d===f.getNode()&&h.type==="text"&&f.type==="text"){const b=h.offset,m=f.offset,p=b<m,y=p?b:m,_=p?m:b,x=_-1;y!==x&&!kh(g=d.getTextContent().slice(y,_))&&!D1(g)&&(c?f.set(f.key,x,f.type):h.set(h.key,x,h.type))}var g})(this,e)}}t||$s(this),this.removeText(),e&&!t&&this.isCollapsed()&&this.anchor.type==="element"&&this.anchor.offset===0&&Z0()}deleteLine(e){const t=this.isCollapsed(),r=da(this.anchor);if(r!==null&&ie(Ye(r)))return this.isCollapsed()||this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),void this.deleteCharacter(e);this.isCollapsed()&&Tu(this,e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):ke(this.anchor.getNode(),Qe)!==ke(this.focus.getNode(),Qe)?(this.focus.set(this.anchor.key,this.anchor.offset,this.anchor.type),this.deleteCharacter(e)):(t||$s(this),this.removeText())}deleteWord(e){const t=this.isCollapsed();if(this.isCollapsed()){const r=this.anchor,i=r.getNode();if(this.forwardDeletion(r,i,e))return;Tu(this,e,"word")}this.isCollapsed()?this.deleteCharacter(e):(t||$s(this),this.removeText())}isBackward(){const e=this._cachedIsBackward;if(e!==null)return e;const t=this.focus.isBefore(this.anchor);return Xn()||(this._cachedIsBackward=t),t}getStartEndPoints(){return[this.anchor,this.focus]}}function _e(n){return n instanceof Wo}function eh(n,e){if(_e(n)){for(const p of n.getNodes())ca(p)&&p.setFormat(e(p.getFormat()));return}if(n.isCollapsed())return n.setFormat(e(n.format)),void je(null);const t=[];for(const p of n.getNodes())B(p)?t.push(p):T(p)?p.setTextFormat(e(p.getTextFormat())):ca(p)&&p.setFormat(e(p.getFormat()));const r=t.length;if(r===0)return n.setFormat(e(n.format)),void je(null);const i=n.anchor,s=n.focus,o=n.isBackward(),u=o?s:i,a=o?i:s;let l=0,c=t[0],h=u.type==="element"?0:u.offset;if(u.type==="text"&&h===c.getTextContentSize()&&(l=1,c=t[1],h=0),c==null)return;const f=r-1;let d=t[f];const g=a.type==="text"?a.offset:d.getTextContentSize();if(c.is(d)){if(h===g)return;const p=e(c.getFormat());if(St(c)||h===0&&g===c.getTextContentSize())c.setFormat(p);else{const y=c.splitText(h,g),_=h===0?y[0]:y[1];_.setFormat(p),u.type==="text"&&u.set(_.__key,0,"text"),a.type==="text"&&a.set(_.__key,g-h,"text")}return void(n.format=p)}h===0||St(c)||([,c]=c.splitText(h),h=0);const b=e(c.getFormat());c.setFormat(b);const m=e(d.getFormat());g>0&&(g===d.getTextContentSize()||St(d)||([d]=d.splitText(g)),d.setFormat(m));for(let p=l+1;p<f;p++){const y=t[p];y.setFormat(e(y.getFormat()))}u.type==="text"&&u.set(c.__key,h,"text"),a.type==="text"&&a.set(d.__key,g,"text"),n.format=b|m}function A1(n,e){const t=[];for(const[r,i]of Object.entries(e))typeof i=="boolean"&&t.push([r,i]);t.length!==0&&eh(n,r=>{for(const[i,s]of t)r=Yn(r,i,s?Ke[i]:0);return r})}function th(n,e,t=null){const r=t===null&&F(n)?Yn(n.format,e,null):t;eh(n,i=>Yn(i,e,r))}function Hc(n){const e=n.offset;if(n.type==="text")return e;const t=n.getNode();return e===t.getChildrenSize()?t.getTextContent().length:0}function fa(n){const e=n.getStartEndPoints();if(e===null)return[0,0];const[t,r]=e;return t.type==="element"&&r.type==="element"&&t.key===r.key&&t.offset===r.offset?[0,0]:[Hc(t),Hc(r)]}function $s(n){const e=we();!e.isEmpty()&&xh(e,n)&&(n.anchor.set(e.getKey(),0,"element"),n.focus.set(e.getKey(),e.getChildrenSize(),"element"))}function nh(n){const e=n.focus,t=n.anchor,r=t.key,i=t.offset,s=t.type;t.set(e.key,e.offset,e.type,!0),e.set(r,i,s,!0)}function rh(n,e,t,r,i){const s=r==="character"?ct(n,i):null,o=s&&s.focusNode,u=s?s.focusOffset:0;if(n.modify(e,t,r),s===null||!function(l,c,h){return l!==null&&l.nodeType===3&&(h==="backward"?c>0:h==="forward"&&c<l.length)}(o,u,t))return;const a=ct(n,i);a.focusNode===o&&a.focusOffset===u&&n.modify(e,t,r)}function ih(n,e,t){const r=n.getNodes(),i=r.filter(u=>zr(u,t));if(i.length===0||i.length===r.length)return!1;const s=e?i[0]:i[i.length-1],o=T(s)?s:s.getParentOrThrow();return e?o.selectStart():o.selectEnd(),!0}function Tu(n,e,t){if(co(n,"extend",e,t))return;const r=de(),i=nt(dt(r));if(!i||typeof i.modify!="function")return;const s=r._blockCursorElement,o=r._rootElement,u=n.anchor,a=n.focus.getNode();o===null||s===null||!T(a)||a.isInline()||a.canBeEmpty()||_o(s,r,o);const l=D=>{const k=D.getNode(),v=r.getElementByKey(D.key);return v!==null&&D.type==="text"&&B(k)?wn(k,v,r):v},c=u.getNode(),h=l(u);if(h===null)return;const f=u.offset,d=n.isCollapsed(),g=n.focus,b=d?h:l(g);if(b===null)return;const m=g.offset;if(lo(i,b,m,b,m),rh(i,"move",e?"backward":"forward",t,o),i.rangeCount===0)return;const p=Xo(i,o)||i.getRangeAt(0);let y=p.startContainer,_=p.startOffset;if(t==="lineboundary"&&Tt(y)&&qn(y)===r){const D=Un(y);if(ie(D)&&D.isInline()&&!D.isIsolated()){const k=r.getElementByKey(D.getKey());k!==null&&k.contains(y)&&(y=k,_=e?0:k.childNodes.length)}}if(d&&t==="character"&&u.type==="text"&&B(c)&&c.isUnmergeable()&&f===(e?0:c.getTextContentSize())){const D=fe(c,e?"previous":"next").getNodeAtCaret();if(B(D)){const k=e?D.getTextContentSize()-1:1;return n.focus.set(D.__key,k,"text"),void(n.dirty=!0)}}if(d&&t==="character"&&u.type==="text"){const D=e?0:c.getTextContentSize(),k=y===h?_:f!==D?D:-1;if(k>=0)return void(k!==f&&(n.focus.set(u.key,k,"text"),n.dirty=!0))}const[x,S,C,A]=e?[y,_,h,f]:[h,f,y,_],O=Ee(c)?c:Mh(c);n.applyDOMRange({collapsed:!1,endContainer:C,endOffset:A,startContainer:x,startOffset:S}),n.dirty=!0,!ih(n,e,O)&&e&&nh(n),t==="lineboundary"&&co(n,"extend",e,t,"decorators")}function O1(){try{const n=new RegExp("\\p{Emoji}","u"),e=n.test.bind(n);if(e("❤️")&&e("#️⃣")&&e("👍"))return e}catch{}return()=>!1}const D1=O1();function Vc(n,e,t){const r=n,i=r.getTextContent().split(/(?=\s)/g),s=i.length;let o=0,u=0;for(let l=0;l<s;l++){const c=l===s-1;if(u=o,o+=i[l].length,e&&o===t||o>t||c){i.splice(l,1),c&&(u=void 0);break}}const a=i.join("").trim();a===""?r.remove():(r.setTextContent(a),r.select(u,u))}function Gc(n,e,t,r){let i,s=e,o=!1;if(ce(n)){let u=!1;const a=n.childNodes,l=a.length,c=r._blockCursorElement;s===l&&l>0&&(u=!0,s=l-1),hr(n,r)!==void 0||vo(n,r)||(o=!0);let h=a[s],f=!1;if(h===c)h=a[s+1],f=!0;else if(c!==null){const d=c.parentNode;n===d&&e>Array.prototype.indexOf.call(d.children,c)&&s--}if(i=Un(h),B(i))s=$t(i,u?"next":"previous");else{let d=Un(n);if(d===null)return null;if(T(d)){const g=r.getElementByKey(d.getKey());g===null&&P(214),[d,s]=ft(d,g,r).resolveChildIndex(d,g,n,e),T(d)||P(215),u&&s>=d.getChildrenSize()&&(s=Math.max(0,d.getChildrenSize()-1));let m=d.getChildAtIndex(s);if(T(m)&&function(p,y,_){const x=p.getParent();return _===null||x===null||!x.canBeEmpty()||x!==_.getNode()}(m,0,t)){const p=u?m.getLastDescendant():m.getFirstDescendant();p===null?d=m:(m=p,d=T(m)?m:m.getParentOrThrow()),s=0}B(m)?(i=m,d=null,s=$t(m,u?"next":"previous")):m!==d&&u&&!f&&(T(d)||P(216),s=Math.min(d.getChildrenSize(),s+1))}else{const g=Ye(d),b=g!==null?g:d,m=b.getIndexWithinParent(),p=r.getElementByKey(d.getKey());let y="after";if(p!==null&&Un(n)===d){const _=ft(d,p,r);_.element!==p?y=_.resolveLeafPosition(p,n,e):e===0&&ie(d)&&(y="before")}s=y==="before"?m:m+1,d=b.getParentOrThrow()}if(T(d))return[qt(d.__key,s,"element"),o]}}else i=Un(n);return B(i)?[qt(i.__key,$t(i,s,"clamp"),"text"),o]:null}function Jc(n,e,t){const r=n.offset,i=n.getNode();if(r===0){const s=i.getPreviousSibling(),o=i.getParent();if(e){if((t||!e)&&s===null&&T(o)&&o.isInline()){const u=o.getPreviousSibling();B(u)&&n.set(u.__key,u.getTextContent().length,"text")}}else T(s)&&!t&&s.isInline()?n.set(s.__key,s.getChildrenSize(),"element"):B(s)&&!i.isUnmergeable()&&n.set(s.__key,s.getTextContent().length,"text")}else if(r===i.getTextContent().length){const s=i.getNextSibling(),o=i.getParent();if(e&&T(s)&&s.isInline())n.set(s.__key,0,"element");else if((t||e)&&s===null&&T(o)&&o.isInline()&&!o.canInsertTextAfter()&&o.getTextContentSize()>1){const u=o.getNextSibling();B(u)&&n.set(u.__key,0,"text")}}}function da(n){const e=he(n.key);return e===null?null:Li(e)}function sh(n,e,t){const r=da(n),i=da(e);if(r===i||r!==null&&i!==null&&r.is(i))return!1;const s=t(r,i);if(r!==null)return T(r)?e.set(r.getKey(),s?r.getChildrenSize():0,"element"):e.set(r.getKey(),s?r.getTextContentSize():0,"text"),!0;const o=Ye(i);if(o===null)return!1;const u=o.getParent();if(u===null)return!1;const a=o.getIndexWithinParent();return e.set(u.getKey(),s?a+1:a,"element"),!0}function oh(n){const e=sh(n.anchor,n.focus,(t,r)=>function(i,s,o,u){if(o!==null&&u!==null){const c=Ye(o),h=Ye(u);if(c!==null&&c.is(h)){for(const f of Yo(c).values()){if(f===o.getKey())return!0;if(f===u.getKey())return!1}return!0}return c===null||h===null||c.isBefore(h)}if(o!==null){const c=Ye(o),h=he(s.key);return c===null||h===null||!(!c.is(h)&&!c.isParentOf(h))||c.isBefore(h)}const a=Ye(u),l=he(i.key);return a!==null&&l!==null&&!a.is(l)&&!a.isParentOf(l)&&l.isBefore(a)}(n.anchor,n.focus,t,r));return e&&(n.dirty=!0),e}function uh(n,e,t,r,i,s){if(n===null||t===null||!es(i,n,t))return null;const o=Gc(n,e,F(s)?s.anchor:null,i);if(o===null)return null;const u=Gc(t,r,F(s)?s.focus:null,i);if(u===null)return null;const[a,l]=o,[c,h]=u;if(a.type==="element"&&c.type==="element"){const d=Un(n),g=Un(t);if(ie(d)&&ie(g))return null}const f=i._slotsUsed&&sh(a,c,()=>(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING)!==0);return function(d,g){if(d.type==="text"&&g.type==="text"){const b=d.isBefore(g),m=d.is(g);Jc(d,b,m),Jc(g,!b,m),m&&g.set(d.key,d.offset,d.type)}}(a,c),[a,c,l||h||f]}function Us(n){return T(n)&&!n.isInline()}function ah(n,e,t,r,i,s){const o=Et(),u=new fr(qt(n,e,i),qt(t,r,s),0,"");return u.dirty=!0,o._selection=u,u}function lh(){const n=qt("root",0,"element"),e=qt("root",0,"element");return new fr(n,e,0,"")}function ll(){return new Wo(new Set)}function uo(n,e,t,r){const i=t._window;if(i===null)return null;const s=r||i.event,o=s?s.type:void 0,u=o==="selectionchange",a=!Gu&&(u||o==="beforeinput"||o==="compositionstart"||o==="compositionend"||o==="click"&&s&&s.detail===3||o==="drop"||o===void 0);let l,c,h,f;if(F(n)&&!a)return n.clone();{if(e===null)return null;const x=ct(e,t._rootElement);if(l=x.anchorNode,c=x.focusNode,h=x.anchorOffset,f=x.focusOffset,(u||o===void 0)&&F(n)&&!es(t,l,c))return n.clone()}const d=uh(l,h,c,f,t,n);if(d===null)return null;const[g,b,m]=d;let p=0,y="";if(F(n)){const x=n.anchor;if(g.key===x.key)p=n.format,y=n.style;else{const S=g.getNode();B(S)?(p=S.getFormat(),y=S.getStyle()):T(S)&&(p=S.getTextFormat(),y=S.getTextStyle())}}const _=new fr(g,b,p,y);return m&&(_.dirty=!0),_}function z(){return Et()._selection}function Yr(){return de()._editorState._selection}function Fn(n,e){const t=e.__key;return n.anchor.key===t||n.focus.key===t}function Bn(n,e,t,r=1){if(!Fn(n,e))return;const i=n.anchor,s=n.focus,o=e.__key;if(n.isCollapsed()){const u=i.offset;if(t<=u&&r>0||t<u&&r<0){const a=Math.max(0,u+r);i.set(o,a,"element"),s.set(o,a,"element"),Xc(n)}}else{const u=n.isBackward(),a=u?s:i,l=a.getNode(),c=u?i:s,h=c.getNode();if(e.is(l)){const f=a.offset;(t<=f&&r>0||t<f&&r<0)&&a.set(o,Math.max(0,f+r),"element")}if(e.is(h)){const f=c.offset;(t<=f&&r>0||t<f&&r<0)&&c.set(o,Math.max(0,f+r),"element")}}Xc(n)}function Xc(n){const e=n.anchor,t=e.offset,r=n.focus,i=r.offset,s=e.getNode(),o=r.getNode();if(n.isCollapsed()){if(!T(s))return;const u=s.getChildrenSize(),a=t>=u,l=a?s.getChildAtIndex(u-1):s.getChildAtIndex(t);if(B(l)){let c=0;a&&(c=l.getTextContentSize()),e.set(l.__key,c,"text"),r.set(l.__key,c,"text")}return}if(T(s)){const u=s.getChildrenSize(),a=t>=u,l=a?s.getChildAtIndex(u-1):s.getChildAtIndex(t);if(B(l)){let c=0;a&&(c=l.getTextContentSize()),e.set(l.__key,c,"text")}}if(T(o)){const u=o.getChildrenSize(),a=i>=u,l=a?o.getChildAtIndex(u-1):o.getChildAtIndex(i);if(B(l)){let c=0;a&&(c=l.getTextContentSize()),r.set(l.__key,c,"text")}}}function ao(n,e,t,r,i){let s=null,o=0,u=null;r!==null?(s=r.__key,B(r)?(o=r.getTextContentSize(),u="text"):T(r)&&(o=r.getChildrenSize(),u="element")):i!==null&&(s=i.__key,B(i)?u="text":T(i)&&(u="element")),s!==null&&u!==null?n.set(s,o,u):(o=e.getIndexWithinParent(),o===-1&&(o=t.getChildrenSize()),n.set(t.__key,o,"element"))}function Yc(n,e,t,r,i){n.type==="text"?n.set(t,n.offset+(e?0:i),"text"):n.offset>r.getIndexWithinParent()&&n.set(n.key,n.offset-1,"element")}function lo(n,e,t,r,i){try{n.setBaseAndExtent(e,t,r,i)}catch{}}function Qc(n,e,t){const r=Ar(n,e.getKey());if(T(e)){const i=ft(e,r,n);return[i.element,t+i.getFirstChildOffset()]}return[r,t]}function M1(n,e,t,r,i,s){const o=s.getRootNode(),u=dr(o)||on(o)?qr(o):null;if(i.has(c1)&&u!==s||u!==null&&bl(u,u))return;const a=ct(r,s);let l;if(!F(e))return void(n!==null&&es(t,a.anchorNode,a.focusNode)&&r.removeAllRanges());const c=e.anchor,h=e.focus,f=c.getNode(),d=h.getNode(),[g,b]=Qc(t,f,c.offset),[m,p]=Qc(t,d,h.offset),y=e.format,_=e.style,x=e.isCollapsed();let S=g,C=m,A=!1;if(c.type==="text"?(S=B(f)?wn(f,g,t):null,A=f.getFormat()!==y||f.getStyle()!==_):F(n)&&n.anchor.type==="text"&&(A=!0),h.type==="text"&&(C=B(d)?wn(d,m,t):null),S!==null&&C!==null){if(x&&(n===null||A||F(n)&&(n.format!==y||n.style!==_))&&function(O,D,k,v,E,N){O._inputState.collapsedSelectionFormat={format:D,key:E,offset:v,style:k,timeStamp:N}}(t,y,_,b,c.key,performance.now()),(r.type!=="Range"||!x)&&a.anchorOffset===b&&a.focusOffset===p&&a.anchorNode===S&&a.focusNode===C){if(u===null||!s.contains(u)){const O=u!==null?qn(u):null;O!==null&&O!==t||i.has(aa)||s.focus({preventScroll:!0})}if(c.type!=="element")return}if(lo(r,S,b,C,p),rn&&e.isCollapsed()&&s!==null&&!i.has(aa)){const O=xo(s);if(O===null||!s.contains(O)){const D=qr(s.ownerDocument),k=D!==null?qn(D):null;k!==null&&k!==t||s.focus({preventScroll:!0})}}if(!i.has(f1)&&e.isCollapsed()&&s!==null&&s===xo(s)){const O=F(e)&&e.anchor.type==="element"?function(D,k,v){const E=k.childNodes[v];if(!ce(E))return E||null;const N=hr(E,D),R=N!==void 0?he(N):null;return R===null||T(R)?E:ft(R,E,D).element}(t,S,b):(l===void 0&&(l=mb(r,s)),l);if(O!==null){let D;if(Tt(O)){const k=O.ownerDocument.createRange();k.selectNode(O),D=k.getBoundingClientRect()}else D=ce(O)?O.getBoundingClientRect():function(k){const v=k.getBoundingClientRect(),{startContainer:E,startOffset:N}=k;if(!k.collapsed||v.width!==0||v.height!==0||!Tt(E)||E.length===0)return v;const R=k.cloneRange();return N>0?R.setStart(E,N-1):R.setEnd(E,1),R.getBoundingClientRect()}(O);(function(k,v,E,N=null){const R=Sl(E),w=wl(R);if(R===null||w===null)return;const L=E.getBoundingClientRect();if(v.bottom<L.top)return;if(N!==null&&v.height>0){let{left:ge,right:j}=v,$=ce(N)?N:nn(N);for(;$!==null&&E.contains($);){const G=cb(w,$,ge,j);ge-=G,j-=G,$=$===E?null:nn($)}}let{top:I,bottom:U}=v,H=0,V=0,te=E;for(;te!==null;){const ge=te===R.body;if(ge){const $=w.visualViewport;if($){const Ce=$.offsetTop;H=Ce,V=Ce+$.height}else H=0,V=dt(k).innerHeight;const G=w.getComputedStyle(R.documentElement),X=parseFloat(G.scrollPaddingTop),Z=parseFloat(G.scrollPaddingBottom);isFinite(X)&&(H+=X),isFinite(Z)&&(V-=Z)}else{const $=te===E?L:te.getBoundingClientRect();H=$.top,V=$.bottom}let j=0;if(I<H?j=-(H-I):U>V&&(j=U-V),j!==0)if(ge)w.scrollBy(0,j);else{const $=te.scrollTop;te.scrollTop+=j;const G=te.scrollTop-$;I-=G,U-=G}if(ge)break;te=nn(te)}})(t,D,s,S)}}(function(O,D,k,v,E){const N=O._inputState;N.isSelectionChangeFromDOMUpdate=!0,N.selectionChangeFromDOMUpdatePoints=D!==void 0&&k!==void 0&&v!==void 0&&E!==void 0?{anchorNode:D,anchorOffset:k,focusNode:v,focusOffset:E}:null})(t,S,b,C,p)}}function Ho(n){let e=z()||Yr();e===null&&(e=we().selectEnd()),e.insertNodes(n)}function ch(n,e){for(const t of n.split(/(\r?\n|\t)/))t===`
9
+ `||t===`\r
10
+ `?e.linebreak():t===" "?e.tab():t!==""&&e.text(t)}function fh(n){const e=[];return ch(n,{linebreak:()=>e.push(Yi()),tab:()=>e.push(al()),text:t=>e.push(Xe(t))}),e}function ha(n){const e=[];for(const t of n)et(t)||(!T(t)&&!ie(t)||t.isInline()?e.push(t):T(t)&&e.push(...ha(t.getChildren())));return e}function ui(n,e=!1){let t=n;n.isCollapsed()||t.removeText();const r=z();F(r)&&(t=r),F(t)||P(161);const i=t.anchor;let s=i.getNode(),o=i.offset;for(;!Qe(s)&&He(s)===null;){const u=s;if([s,o]=I1(s,o,e),u.is(s))break}return[s,o]}function I1(n,e,t=!1){const r=n.getParent();if(!r){const s=Re();return we().append(s),s.select(),[we(),0]}if(B(n)){const s=n.splitText(e);if(s.length===0)return[r,n.getIndexWithinParent()];const o=e===0?0:1;return[r,s[0].getIndexWithinParent()+o]}if(!T(n)||e===0)return[r,n.getIndexWithinParent()];const i=n.getChildAtIndex(e);if(i){const s=new fr(qt(n.__key,e,"element"),qt(n.__key,e,"element"),0,""),o=n.insertNewAfter(s);if(o)o.append(i,...i.getNextSiblings());else if(t)return[n,e]}return[r,n.getIndexWithinParent()+1]}function Zc(n){return et(n)||db(n)||B(n)||n.isParentRequired()}function Eu(n){const e=Re();let t=null;for(let r=0;r<n.length;r++){const i=n[r];if(Zc(i)){if(t===null){t=i.createParentElementNode(),e.append(t);const s=n[r+1];if(et(i)&&(s===void 0||!Zc(s)))continue}t.append(i)}else e.append(i),t=null}return e}function co(n,e,t,r,i="decorators-and-blocks"){if(e==="move"&&r==="character"&&!n.isCollapsed()){const[h,f]=t===n.isBackward()?[n.focus,n.anchor]:[n.anchor,n.focus];return f.set(h.key,h.offset,h.type),!0}const s=ot(n.focus,t?"previous":"next"),o=r==="lineboundary",u=e==="move";let a=s,l=i==="decorators-and-blocks",c=!1;if(!yh(a)){for(const h of a){l=!1;const{origin:f}=h;if(ie(f)){if(f.isIsolated()){c=!0;break}if(a=h,o&&f.isInline())continue}break}if(c)return!0;if(l)for(const h of Qo(s).iterNodeCarets(e==="extend"?"shadowRoot":"root")){if(pt(h))h.origin.isInline()||(a=h);else{if(T(h.origin))continue;ie(h.origin)&&!h.origin.isInline()&&(a=h)}break}}if(a===s)return!1;if(u&&!o&&ie(a.origin)&&a.origin.isKeyboardSelectable()){const h=ll();return h.add(a.origin.getKey()),Me(h),!0}return a=ze(a),u&&sn(n.anchor,a),sn(n.focus,a),l||!o}let Ue=null,De=null,tt=!1,Nu=!1,zs=!1;const ku=new Set,Au=new Set;let qs=0;const ef={characterData:!0,childList:!0,subtree:!0};function Xn(){return tt||Ue!==null&&Ue._readOnly}function Be(){tt&&P(13)}function dh(){qs>99&&P(14)}function Et(){return Ue===null&&P(195,hh()),Ue}function P1(n){Et()!==null&&De===null&&(De=n),De!==n&&Ga(378)}function de(){return De===null&&P(337,hh()),De}function L1(){de()._dirtyType=2}function hh(){let n=0;const e=new Set,t=$r.version;if(typeof window<"u")for(const i of Ph(document)){const s=Qr(i);if(ts(s))n++;else if(s){let o=String(s.constructor.version||"<0.17.1");o===t&&(o+=" (separately built, likely a bundler configuration issue)"),e.add(o)}}let r=` Detected on the page: ${n} compatible editor(s) with version ${t}`;return e.size&&(r+=` and incompatible editors with versions ${Array.from(e).join(", ")}`),r}function gh(){return De}function tf(n,e,t){const r=e.__type,i=Sh(n,r);let s=t.get(r);s===void 0&&(s=Array.from(i.transforms),t.set(r,s));const o=s.length;for(let u=0;u<o&&(s[u](e),e.isAttached());u++);}function nf(n,e){return n!==void 0&&n.__key!==e&&n.isAttached()}function ph(n,e){if(!e)return;const t=n._updateTags;let r=e;Array.isArray(e)||(r=[e]);for(const i of r)t.add(i)}function R1(n){return fo(n,de()._nodes)}function fo(n,e){const t=n.type,r=e.get(t);r===void 0&&P(17,t);const i=r.klass;n.type!==i.getType()&&P(18,i.name);const s=i.importJSON(n),o=n.children;if(T(s)&&Array.isArray(o))for(let a=0;a<o.length;a++){const l=fo(o[a],e);s.append(l)}const u=n.$slots;if(u){Kn(s)||P(379,i.name);for(const a in u)qb(s,a,fo(u[a],e))}return s}function rf(n,e,t){const r=Ue,i=tt,s=De;Ue=e,tt=!0,De=n;try{return t()}finally{Ue=r,tt=i,De=s}}function _n(n,e){const t=zs;zs=!0;try{const r=function(i){if(Au.has(i))return!1;Au.add(i);try{for(let s=0;i._pendingEditorState!==null;s++){const o=i._pendingEditorState._selection,u=i._rootElement;if(!mh(i,o))return!1;const a=(o===null||F(o))&&(i._headless||u===null||!u.isConnected);if(a||s===100)return i._lastNotifiedSelection=o===null?null:o.clone(),!a;Br(i,()=>i.dispatchCommand(zo),void 0,!0)}return!1}finally{Au.delete(i)}}(n);(function(i,s){const o=i._pendingEditorState,u=i._rootElement,a=i._headless||u===null;if(o===null)return void(!i._updating&&i._deferred.length>0&&sf(i,i._deferred));const l=i._editorState,c=l._selection,h=o._selection,f=i._dirtyType!==0,d=Ue,g=tt,b=De,m=i._updating,p=i._observer;let y=null;if(i._pendingEditorState=null,i._editorState=o,!a&&f&&p!==null){De=i,Ue=o,tt=!1,i._updating=!0;try{const k=i._dirtyType,v=i._dirtyElements,E=i._dirtyLeaves;p.disconnect(),y=Lm(l,o,i,k,v,E)}catch(k){if(k instanceof Error&&i._onError(k),Nu)throw k;return vh(i,null,u,o),i0(i),i._dirtyType=2,Nu=!0,_n(i,l),void(Nu=!1)}finally{p.observe(u,ef),i._updating=m,Ue=d,tt=g,De=b}}o._readOnly||(o._readOnly=!0);const _=i._dirtyLeaves,x=i._dirtyElements,S=i._normalizedNodes,C=i._updateTags;f&&(i._dirtyType=0,i._cloneNotNeeded.clear(),i._dirtyLeaves=new Set,i._dirtyElements=new Map,i._normalizedNodes=new Set),i._updateTags=new Set;const A=i._deferred;m||(i._deferred=[]),function(k,v){const E=k._decorators;let N=k._pendingDecorators||E;const R=v._nodeMap;let w;for(w in N)R.has(w)||(N===E&&(N=Nh(k)),delete N[w])}(i,o);const O=a?null:nt(dt(i));if(i._editable&&O!==null&&(f||h===null||h.dirty||!h.is(c))&&u!==null&&!C.has(d1)){De=i,Ue=o;try{if(p!==null&&p.disconnect(),f||h===null||h.dirty){const k=i._blockCursorElement;k!==null&&_o(k,i,u),M1(c,h,i,O,C,u)}(function(k,v,E){let N=k._blockCursorElement;if(F(E)&&E.isCollapsed()&&E.anchor.type==="element"&&v.contains(xo(v))){const R=E.anchor,w=R.getNode(),L=R.offset;let I=!1,U=null;if(L===w.getChildrenSize())Ii(w.getChildAtIndex(L-1))&&(I=!0);else{const H=w.getChildAtIndex(L);H!==null&&Ii(H)&&(I=!0,U=k.getElementByKey(H.__key))}if(I){const H=ft(w,k.getElementByKey(w.__key),k).element;return N===null&&(k._blockCursorElement=N=function(V){const te=V.theme,ge=Ie().createElement("div");ge.contentEditable="false",ge.setAttribute("data-lexical-cursor","true");let j=te.blockCursor;if(j!==void 0){if(typeof j=="string"){const $=Ut(j);j=te.blockCursor=$}j!==void 0&&ge.classList.add(...j)}return ge}(k._config)),v.style.caretColor="transparent",void(U===null?H.appendChild(N):H.insertBefore(N,U))}}N!==null&&_o(N,k,v)})(i,u,h)}finally{p!==null&&p.observe(u,ef),De=b,Ue=d}}y!==null&&function(k,v,E,N,R){const w=Array.from(k._listeners.mutation),L=w.length;for(let I=0;I<L;I++){const[U,H]=w[I];for(const V of H){const te=v.get(V);te!==void 0&&U(te,{dirtyLeaves:N,prevEditorState:R,updateTags:E})}}}(i,y,C,_,l);const D=i._pendingDecorators;D!==null&&(i._decorators=D,i._pendingDecorators=null,bi("decorator",i,!0,D)),function(k,v,E){const N=lf(v),R=lf(E);N!==R&&bi("textcontent",k,!0,R)}(i,s||l,o),bi("update",i,!0,{dirtyElements:x,dirtyLeaves:_,editorState:o,mutatedNodes:y,normalizedNodes:S,prevEditorState:s||l,tags:C}),m||sf(i,A),function(k){const v=k._updates;if(v.length===0)return void(k._cascadeCount=0);if(function(N){ku.has(N)||(ku.add(N),setTimeout(()=>{ku.delete(N),N._cascadeCount=0},0))}(k),k._cascadeCount++>99)return k._updates=[],k._cascadeCount=0,void k._onWarn(Hu(437,k._config.namespace));const E=v.shift();if(E){const[N,R]=E;Br(k,N,R)}}(i)})(n,e),r&&n._onWarn(Hu(436))}finally{zs=t}}function bi(n,e,t,...r){const i=e._updating;e._updating=t;try{const s=e._listeners[n],o=Array.from(s);for(const[u,a]of o){a&&a();const l=u(...r),c=typeof l=="function"?l:void 0;s.has(u)?s.set(u,c):c&&c()}}finally{e._updating=i}}function mh(n,e){const t=n._lastNotifiedSelection;return e===null?t!==null:!e.is(t)}function ga(n,e,t,r){const i=yl(n);let s;if(!zs)for(let o=0;o<i.length;o++)i[o]._updating||(i[o]._cascadeCount=0);if(e===zo){if(De!==n||tt){let u=!1;return gt(n,()=>{u=ga(n,e,t,r)}),u}const o=Et()._selection;n._lastNotifiedSelection=o===null?null:o.clone()}for(let o=4;o>=0;o--)for(let u=0;u<i.length;u++){const a=i[u];if(u>0&&a._updating){s=a;break}const l=a._commands.get(e);if(l!==void 0){const c=l[o];if(c.size>0){let h=!1;if(gt(a,()=>{for(const f of c)if(f(t,r))return void(h=!0)}),h)return h}}}return s&&s.update(()=>{ga(s,e,t,r)}),!1}function sf(n,e){if(n._deferred===e&&(n._deferred=[]),e.length!==0){const t=n._updating;n._updating=!0;try{for(let r=0;r<e.length;r++)e[r]()}finally{n._updating=t}}}function of(n,e){const t=n._updates;let r=e||!1;for(;t.length!==0;){const i=t.shift();if(i){const[s,o]=i,u=n._pendingEditorState;let a;o!==void 0&&(a=o.onUpdate,o.skipTransforms&&(r=!0),o.discrete&&(u===null&&P(191),u._flushSync=!0),a&&n._deferred.push(a),ph(n,o.tag)),u==null?Br(n,s,o):s()}}return r}function F1(){const n=Et();Be(),n._flushSync=!0}function Br(n,e,t,r=!1){const i=n._updateTags;let s,o=!1,u=!1;t!==void 0&&(s=t.onUpdate,ph(n,t.tag),o=t.skipTransforms||!1,u=t.discrete||!1),s&&n._deferred.push(s);const a=n._editorState;let l=n._pendingEditorState,c=!1;(l===null||l._readOnly)&&(l=n._pendingEditorState=bh(l||a),c=!0),l._flushSync=u;const h=Ue,f=tt,d=De,g=n._updating;Ue=l,tt=!1,n._updating=!0,De=n;const b=n._headless||n.getRootElement()===null;gl(null);try{c&&(b?a._selection!==null&&(l._selection=a._selection.clone()):l._selection=function(_,x){const S=_.getEditorState()._selection,C=nt(dt(_));return F(S)||S==null?uo(S,C,_,x):S.clone()}(n,t&&t.event||null));const p=n._compositionKey;e(),o=of(n,o),function(_,x){const S=x.getEditorState()._selection,C=_._selection;if(F(C)){const A=C.anchor,O=C.focus;let D;if(A.type==="text"&&(D=A.getNode(),D.selectionTransform(S,C)),O.type==="text"){const k=O.getNode();D!==k&&k.selectionTransform(S,C)}}}(l,n),n._dirtyType!==0&&(o?function(_,x){const S=x._dirtyLeaves,C=_._nodeMap;for(const A of S){const O=C.get(A);B(O)&&O.isAttached()&&O.isSimpleText()&&!O.isUnmergeable()&&yc(O)}}(l,n):function(_,x){const S=x._dirtyLeaves,C=x._dirtyElements,A=_._nodeMap,O=Bt(),D=new Map;let k=S,v=k.size,E=C,N=E.size;for(;v>0||N>0;){if(v>0){x._dirtyLeaves=new Set;for(const R of k){const w=A.get(R);B(w)&&w.isAttached()&&w.isSimpleText()&&!w.isUnmergeable()&&yc(w),w!==void 0&&nf(w,O)&&tf(x,w,D),S.add(R)}if(k=x._dirtyLeaves,v=k.size,v>0){qs++;continue}}x._dirtyLeaves=new Set,x._dirtyElements=new Map,E.delete("root")&&E.set("root",!0);for(const R of E){const w=R[0],L=R[1];if(C.set(w,L),!L)continue;const I=A.get(w);I!==void 0&&nf(I,O)&&tf(x,I,D)}k=x._dirtyLeaves,v=k.size,E=x._dirtyElements,N=E.size,qs++}x._dirtyLeaves=S,x._dirtyElements=C}(l,n),of(n),function(_,x,S,C){const A=_._nodeMap,O=x._nodeMap,D=[];for(const[N]of C){const R=O.get(N);R!==void 0&&(R.isAttached()||(T(R)&&Qs(R,N,A,O,D,C),A.has(N)||C.delete(N),D.push(N)))}for(const N of S){const R=O.get(N);R===void 0||R.isAttached()||(Kn(R)&&R.__slots!==null&&Qs(R,N,A,O,D,S),A.has(N)||S.delete(N),D.push(N))}const k=de(),v=k._cloneNotNeeded;for(const N of D)O.delete(N),v.delete(N);const E=k._compositionKey;E===null||O.has(E)||(k._compositionKey=null)}(a,l,n._dirtyLeaves,n._dirtyElements)),p!==n._compositionKey&&(l._flushSync=!0);const y=l._selection;if(F(y)){n._slotsUsed&&oh(y);const _=l._nodeMap,x=y.anchor.key,S=y.focus.key;_.get(x)!==void 0&&_.get(S)!==void 0||P(19)}else _e(y)&&y._nodes.size===0&&(l._selection=null)}catch(p){p instanceof Error&&n._onError(p),n._pendingEditorState=a;const y=a._selection;return n._lastNotifiedSelection=y===null?null:y.clone(),n._dirtyType=2,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),void _n(n)}finally{Ue=h,tt=f,De=d,n._updating=g,qs=0}if(r)return;n._dirtyType!==0||n._deferred.length>0||function(p,y){const _=y.getEditorState()._selection,x=p._selection;if(x!==null){if(x.dirty||!x.is(_))return!0}else if(_!==null)return!0;return!1}(l,n)?l._flushSync?(l._flushSync=!1,_n(n)):c&&ob(()=>{_n(n)}):(l._flushSync=!1,c&&(i.clear(),n._deferred=[],n._pendingEditorState=null))}function gt(n,e,t){De===n&&t===void 0?Xn()?Br(n,e,t):e():Br(n,e,t)}function B1(){return{...Jd,0:""}}function j1(){return{...Pr,"":0}}const $1=B1(),U1=j1(),z1=cr()({direction:Ze(Lr([null,"ltr","rtl"]),{field:"__dir"}),format:Ze(Lr(["","left","start","center","right","end","justify"]),{field:"__format",getter:"getFormatType",getterTable:$1,setter:"setFormat",setterTable:U1}),indent:Ze(Tn(0,{integer:!0,min:0}),{field:"__indent"}),textFormat:Sn(Tn(),{getter:{field:"__textFormat",method:"getSerializedTextFormat",when:"shouldSerializeTextStyles"},setter:{field:"__textFormat"}}),textStyle:Sn(mn(),{getter:{field:"__textStyle",method:"getSerializedTextStyle",when:"shouldSerializeTextStyles"},setter:{field:"__textStyle"}})});function q1(n){if(pe(n)){let e=null;for(const t of n.getChildren())e=t.isInline()?(e||t.replace(t.createParentElementNode())).append(t):null}}class lt extends $e{constructor(t){super(t);M(this,"__first");M(this,"__last");M(this,"__size");M(this,"__format");M(this,"__style");M(this,"__indent");M(this,"__dir");M(this,"__textFormat");M(this,"__textStyle");M(this,"__slotHost");M(this,"__slots");this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle="",this.__slotHost=null,this.__slots=null}$config(){return this.config(Symbol.for("ElementNode"),{$transform:q1,extends:$e,generated:g1,json:z1})}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__first=t.__first,this.__last=t.__last,this.__size=t.__size,this.__slotHost=t.__slotHost,this.__slotHost!==null&&this.__parent!==null&&P(384,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=t.__slots),this.__style=t.__style,function(r,i){r.__dir=i.__dir,r.__format=i.__format,r.__indent=i.__indent,r.__textFormat=i.__textFormat,r.__textStyle=i.__textStyle}(this,t)}getFormat(){return this.getLatest().__format}getFormatType(){const t=this.getFormat();return Jd[t]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r),r=r.getNextSibling();return t}getChildrenKeys(){const t=[];let r=this.getFirstChild();for(;r!==null;)t.push(r.__key),r=r.getNextSibling();return t}getChildrenSize(){return this.getLatest().__size}isEmpty(){return this.getChildrenSize()===0&&jt(this).length===0}isDirty(){const t=de()._dirtyElements;return t!==null&&t.has(this.__key)}isLastChild(){const t=this.getLatest(),r=this.getParentOrThrow().getLastChild();return r!==null&&r.is(t)}getAllTextNodes(){const t=[];for(const i of jt(this)){const s=Wr(this,i);if(T(s))for(const o of s.getAllTextNodes())t.push(o)}let r=this.getFirstChild();for(;r!==null;){if(B(r)&&t.push(r),T(r))for(const i of r.getAllTextNodes())t.push(i);r=r.getNextSibling()}return t}getFirstDescendant(){let t=this.getFirstChild();for(;T(t);){const r=t.getFirstChild();if(r===null)break;t=r}return t}getLastDescendant(){let t=this.getLastChild();for(;T(t);){const r=t.getLastChild();if(r===null)break;t=r}return t}getDescendantByIndex(t){const r=this.getChildren(),i=r.length;if(t>=i){const o=r[i-1];return T(o)&&o.getLastDescendant()||o||null}const s=r[t];return T(s)&&s.getFirstDescendant()||s||null}getFirstChild(){const t=this.getLatest().__first;return t===null?null:he(t)}getFirstChildOrThrow(){const t=this.getFirstChild();return t===null&&P(45,this.__key),t}getLastChild(){const t=this.getLatest().__last;return t===null?null:he(t)}getLastChildOrThrow(){const t=this.getLastChild();return t===null&&P(96,this.__key),t}getChildAtIndex(t){const r=this.getChildrenSize();let i,s;if(t<r/2){for(i=this.getFirstChild(),s=0;i!==null&&s<=t;){if(s===t)return i;i=i.getNextSibling(),s++}return null}for(i=this.getLastChild(),s=r-1;i!==null&&s>=t;){if(s===t)return i;i=i.getPreviousSibling(),s--}return null}getTextContent(){let t=Wh(this);const r=this.getChildren(),i=r.length;for(let s=0;s<i;s++){const o=r[s];t+=o.getTextContent(),T(o)&&s!==i-1&&!o.isInline()&&(t+=$n)}return t}getTextContentSize(){let t=function(s){let o=0;for(const u of jt(s)){const a=Wr(s,u);a!==null&&(o+=a.getTextContentSize())}return o}(this);const r=this.getChildren(),i=r.length;for(let s=0;s<i;s++){const o=r[s];t+=o.getTextContentSize(),T(o)&&s!==i-1&&!o.isInline()&&(t+=2)}return t}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(t){if(t!==""){const r=Pr[t];return(this.getFormat()&r)!==0}return!1}hasTextFormat(t){const r=Ke[t];return(this.getTextFormat()&r)!==0}getFormatFlags(t,r){return Yn(this.getLatest().__textFormat,t,r)}getTextStyle(){return this.getLatest().__textStyle}select(t,r){Be();const i=z();let s=t,o=r;const u=this.getChildrenSize();if(!this.canBeEmpty()){if(t===0&&r===0){const l=this.getFirstChild();if(B(l)||T(l))return l.select(0,0)}else if(!(t!==void 0&&t!==u||r!==void 0&&r!==u)){const l=this.getLastChild();if(B(l)||T(l))return l.select()}}s===void 0&&(s=u),o===void 0&&(o=u);const a=this.__key;return F(i)?(i.anchor.set(a,s,"element"),i.focus.set(a,o,"element"),i.dirty=!0,i):ah(a,s,a,o,"element","element")}selectStart(){const t=this.getFirstDescendant();return t?t.selectStart():this.select()}selectEnd(){const t=this.getLastDescendant();return t?t.selectEnd():this.select()}clear(){const t=this.getWritable();return this.getChildren().forEach(r=>r.remove()),t}append(...t){return this.splice(this.getChildrenSize(),0,t)}setDirection(t){const r=this.getWritable();return r.__dir=t,r}setFormat(t){const r=this.getWritable();return r.__format=t!==""&&Pr[t]||0,r}setStyle(t){const r=this.getWritable();return r.__style=t||"",r}setTextFormat(t){const r=this.getWritable();return r.__textFormat=t,r}setTextStyle(t){const r=this.getWritable();return r.__textStyle=t,r}setIndent(t){const r=this.getWritable();return r.__indent=t,r}splice(t,r,i){ro(this)&&P(324,this.__key,this.__type);const s=this.getChildrenSize(),o=this.getWritable();t+r<=s||P(226,String(t),String(r),String(s));for(const g of i);const u=o.__key,a=[],l=[];let c=this.getChildAtIndex(t+r),h=null,f=s-r+i.length;if(t!==0)if(t===s)h=this.getLastChild();else{const g=this.getChildAtIndex(t);g!==null&&(h=g.getPreviousSibling())}if(r>0){let g=h===null?this.getFirstChild():h.getNextSibling();for(let b=0;b<r;b++){g===null&&P(100);const m=g.getNextSibling(),p=g.__key;tn(g.getWritable()),l.push(p),g=m}}let d=h;for(const g of i){d!==null&&g.is(d)&&(h=d=d.getPreviousSibling()),c!==null&&g.is(c)&&(c=c.getNextSibling());const b=g.getWritable();b.__parent===u&&f--,tn(b);const m=g.__key;if(d===null)o.__first=m,b.__prev=null;else{const p=d.getWritable();p.__next=m,b.__prev=p.__key}g.__key===u&&P(76),b.__parent=u,a.push(m),d=g}if(c===null)d!==null&&(d.getWritable().__next=null,o.__last=d.__key);else{const g=c.getWritable();if(d!==null){const b=d.getWritable();g.__prev=d.__key,b.__next=c.__key}else g.__prev=null}if(o.__size=f,l.length){const g=z();if(F(g)){const b=new Set(l),m=new Set(a),{anchor:p,focus:y}=g;uf(p,b,m)&&ao(p,p.getNode(),this,h,c),uf(y,b,m)&&ao(y,y.getNode(),this,h,c),f!==0||this.canBeEmpty()||pe(this)||this.remove()}}return o}getDOMSlot(t){return new Yd(t)}exportDOM(t){const{element:r}=super.exportDOM(t);if(ce(r)){const i=this.getIndent();i>0&&(r.style.paddingInlineStart=40*i+"px",r.setAttribute("data-lexical-indent",String(i)));const s=this.getDirection();s&&(r.dir=s)}return{element:r}}shouldSerializeTextStyles(){if(pe(this))return!1;for(let t=this.getFirstChild();t!==null;t=t.getNextSibling())if(B(t))return!1;return!0}getSerializedTextFormat(){const t=this.getTextFormat();return t!==0&&this.shouldSerializeTextStyles()?t:void 0}getSerializedTextStyle(){const t=this.getTextStyle();return t!==""&&this.shouldSerializeTextStyles()?t:void 0}insertNewAfter(t,r){return null}canIndent(){return!0}collapseAtStart(t){return!1}excludeFromCopy(t){return!1}canReplaceWith(t){return!0}canInsertAfter(t){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(t){return!1}extractWithChild(t,r,i){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(t,r){const i=ft(this,t,r);let s=i.getFirstChild();for(let o=this.getFirstChild();o;o=o.getNextSibling()){const u=r.getElementByKey(o.getKey());u!==null&&(s==null?(i.insertChild(u),s=u):s!==u&&i.replaceChild(u,s),s=s.nextSibling)}}}function T(n){return n instanceof lt}function uf(n,e,t){let r=n.getNode();for(;r;){const i=r.__key;if(e.has(i)&&!t.has(i))return!0;r=r.getParent()}return!1}class cl extends $e{constructor(t){super(t);M(this,"__slotHost");M(this,"__slots");this.__slotHost=null,this.__slots=null}afterCloneFrom(t){super.afterCloneFrom(t),this.__key===t.__key&&(this.__slotHost=t.__slotHost,this.__slotHost!==null&&this.__parent!==null&&P(383,this.__key,String(this.__slotHost),String(this.__parent)),this.__slots=t.__slots)}decorate(t,r){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function ie(n){return n instanceof cl}class Vo extends lt{constructor(){super("root");M(this,"__cachedText");this.__cachedText=null}$config(){return this.config("root",{extends:lt})}getTopLevelElementOrThrow(){P(51)}getTextContent(){const t=this.__cachedText;return t===null||!Xn()&&de()._dirtyType!==0?super.getTextContent():t}remove(){P(52)}replace(t){P(53)}insertBefore(t){P(54)}insertAfter(t){P(55)}updateDOM(t,r){return!1}splice(t,r,i){for(const s of i)T(s)||ie(s)||P(282);return super.splice(t,r,i)}static importJSON(t){return we().updateFromJSON(t)}collapseAtStart(){return!0}}function Ee(n){return n instanceof Vo}function bh(n){return new Xi(Zd(n._nodeMap),null,n._slotsUsed)}function fl(){return new Xi(new Map([["root",new Vo]]),null,!1)}function pa(n){const e=n.constructor,t=t0(n);if(T(n)){const i=t.children,s=n.getChildren();for(let o=0;o<s.length;o++)i.push(pa(s[o]))}const r=jt(n);if(r.length>0){const i={};for(const s of r){const o=Wr(n,s);o===null&&P(366,e.name,s),i[s]=pa(o)}t.$slots=i}return t}function K1(n){return n instanceof Xi}class Xi{constructor(e,t=null,r=!1){M(this,"_nodeMap");M(this,"_selection");M(this,"_flushSync");M(this,"_readOnly");M(this,"_parsed");M(this,"_slotsUsed");this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1,this._parsed=!1,this._slotsUsed=r}isEmpty(){return this._nodeMap.size<=1&&this._selection===null}read(e,t){return rf(t&&t.editor||null,this,e)}clone(e){const t=new Xi(this._nodeMap,e===void 0?this._selection:e,this._slotsUsed);return t._readOnly=!0,t._parsed=this._parsed,t}toJSON(e){return bm(typeof e=="boolean"&&e,()=>rf(null,this,()=>({root:pa(we())})))}}class dl extends lt{$config(){return this.config("artificial",{extends:lt})}createDOM(e){return Ie().createElement("div")}}class Go extends $e{$config(){return this.config("linebreak",{extends:$e,generated:y1,importDOM:{br:e=>H1(e)||V1(e)?null:{conversion:W1,priority:0}}})}getTextContent(){return`
11
+ `}createDOM(){return Ie().createElement("br")}updateDOM(){return!1}isInline(){return!0}}function W1(n){return{node:Yi()}}function Yi(){return Kt(new Go)}function et(n){return n instanceof Go}function H1(n){const e=n.parentElement;if(e!==null&&Pi(e)){const t=e.firstChild;if(t===n||t.nextSibling===n&&ho(t)){const r=e.lastChild;if(r===n||r.previousSibling===n&&ho(r))return!0}}return!1}function V1(n){const e=n.parentElement;if(e!==null&&Pi(e)){const t=e.firstChild;if(t===n||t.nextSibling===n&&ho(t))return!1;const r=e.lastChild;if(r===n||r.previousSibling===n&&ho(r))return!0}return!1}function ho(n){return Tt(n)&&/^( |\t|\r?\n)+$/.test(n.textContent||"")}function ot(n,e){const{type:t,key:r,offset:i}=n,s=hb(n.key);return t==="text"?(B(s)||P(266,s.getType(),r),Nn(s,e,i)):(T(s)||P(267,s.getType(),r),ma(s,n.offset,e))}function sn(n,e){const{origin:t,direction:r}=e,i=r==="next";ut(e)?n.set(t.getKey(),e.offset,"text"):un(e)?B(t)?n.set(t.getKey(),$t(t,r),"text"):n.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent()+(i?1:0),"element"):(pt(e)&&T(t)||P(268),n.set(t.getKey(),i?0:t.getChildrenSize(),"element"))}function jr(n){const e=z(),t=F(e)?e:lh();return Ks(t,n),Me(t),t}function Ks(n,e){sn(n.anchor,e.anchor),sn(n.focus,e.focus)}function go(n){const{anchor:e,focus:t}=n,r=ot(e,"next"),i=ot(t,"next"),s=kn(r,i)<=0?"next":"previous";return wt(Mt(r,s),Mt(i,s))}function Dt(n){const{direction:e,origin:t}=n,r=fe(t,On(e)).getNodeAtCaret();return r?fe(r,e):Ve(t.getParentOrThrow(),e)}function af(n,e="root"){const t=[n];for(let r=pt(n)?n.getParentCaret(e):n.getSiblingCaret();r!==null;r=r.getParentCaret(e))t.push(Dt(r));return t}function Ou(n){return!!n&&n.origin.isAttached()}function G1(n,e="removeEmptySlices"){if(n.isCollapsed())return n;const t="root",r="next";let i=e;const s=Qi(n,r);let o=s.anchor.origin;for(;o!==null&&!pe(o);)o=o.getParent();const u=T(o)?o.getFirstChild():null,a=af(s.anchor,t),l=af(s.focus.getFlipped(),t),c=new Set,h=[];for(const p of s.iterNodeCarets(t))if(pt(p))c.add(p.origin.getKey());else if(un(p)){const{origin:y}=p;T(y)&&!c.has(y.getKey())||h.push(y)}const f=new Set;for(const p of h){const y=p.getParent();y===null||c.has(y.getKey())||f.add(y),tn(p)}for(const p of f)!p.canBeEmpty()&&!pe(p)&&p.isEmpty()&&p.isAttached()&&p.remove();for(const p of s.getTextSlices()){if(!p)continue;const{origin:y}=p.caret,_=y.getTextContentSize(),x=Dt(fe(y,r)),S=y.getMode();if(Math.abs(p.distance)===_&&i==="removeEmptySlices"||S==="token"&&p.distance!==0)x.remove();else if(p.distance!==0){i="removeEmptySlices";let C=p.removeTextSlice();const A=p.caret.origin;if(S==="segmented"){const O=C.origin,D=Xe(O.getTextContent()).setStyle(O.getStyle()).setFormat(O.getFormat());x.replaceOrInsert(D),C=Nn(D,r,C.offset)}A.is(a[0].origin)&&(a[0]=C),A.is(l[0].origin)&&(l[0]=C.getFlipped())}}let d,g;for(const p of a)if(Ou(p)){d=ze(p);break}for(const p of l)if(Ou(p)){g=ze(p);break}const b=function(p,y,_){if(!p||!y)return null;const x=p.getParentAtCaret(),S=y.getParentAtCaret();if(!x||!S)return null;const C=x.getParents().reverse();C.push(x);const A=S.getParents().reverse();A.push(S);const O=Math.min(C.length,A.length);let D;for(D=0;D<O&&C[D]===A[D];D++);const k=(N,R)=>{let w;for(let L=D;L<N.length;L++){const I=N[L];if(pe(I))return;!w&&R(I)&&(w=I)}return w},v=k(C,Qe),E=v&&k(A,N=>_.has(N.getKey())&&Qe(N));return E&&jt(E).length>0?null:v&&E?[v,E]:null}(d,g,c);if(b){const[p,y]=b;Ve(p,"previous").splice(0,y.getChildren());let _=y.getParent();for(y.remove(!0);_&&_.isEmpty();){const x=_;_=_.getParent(),x.remove(!0)}}else if(g){const p=function(x){if(pt(x)){const S=x.origin;if(Qe(S))return S}else{const S=x.getParentAtCaret();if(S&&Qe(S))return S}return null}(g),y=p&&p.getParent(),_=p&&p.getParents().findLast(yi);if(p&&y&&!Ee(y)&&p.isEmpty()&&c.has(p.getKey())&&jt(p).length===0&&(!_||c.has(_.getKey()))){p.remove(!0);let x=y;for(;x&&!Ee(x)&&x.isEmpty();){const S=x.getParent();if(S&&Ee(S)&&S.getChildrenSize()<=1&&x.canBeEmpty())break;const C=x;x=S,C.remove(!0)}}}yo(o,u)!==null||o===null||o.isAttached()||yo(we(),null);const m=[d,g,...a,...l].find(Ou);if(m)return Zo(Mt(ze(m),n.direction));P(269,JSON.stringify(a.map(p=>p.origin.__key)))}function ze(n){const e=function(i){let s=i;for(;pt(s);){const o=Al(s);if(!pt(o))break;s=o}return s}(n.getLatest()),{direction:t}=e;if(B(e.origin))return ut(e)?e:Nn(e.origin,t,t);const r=e.getAdjacentCaret();return un(r)&&B(r.origin)?Nn(r.origin,t,On(t)):e}function yh(n){return ut(n)&&n.offset!==$t(n.origin,n.direction)}function Qi(n,e){return n.direction===e?n:wt(Mt(n.focus,e),Mt(n.anchor,e))}function ma(n,e,t){let r=Ve(n,"next");for(let i=0;i<e;i++){const s=r.getAdjacentCaret();if(s===null)break;r=s}return Mt(r,t)}function J1(n){const{origin:e,offset:t,direction:r}=n;if(t===$t(e,r))return n.getSiblingCaret();if(t===$t(e,On(r)))return Dt(n.getSiblingCaret());const[i]=e.splitText(t);return B(i)||P(281),Mt(fe(i,"next"),r)}function X1(n,e){return!0}function _h(n,{$copyElementNode:e=qe,$splitTextPointCaretNext:t=J1,rootMode:r="shadowRoot",$shouldSplit:i=X1,removeEmptyDestination:s=!1}={}){if(ut(n))return t(n);const o=n.getParentCaret(r);if(o){const{origin:u}=o;if(pt(n)){const l=Dt(o);if(s&&u.isEmpty())return u.remove(),l;if(!u.canBeEmpty()||!i(u,"first"))return l}const a=function(l){const c=[];for(let h=l.getAdjacentCaret();h;h=h.getAdjacentCaret())c.push(h.origin);return c}(n);(a.length>0||!s&&u.canBeEmpty()&&i(u,"last"))&&o.insert(e(u).splice(0,0,a))}return o}function hl(n,e,t){let r=Mt(e,"next");ut(r)&&(r.offset===0?r=fe(r.origin,"previous").getFlipped():r.offset===r.origin.getTextContentSize()&&(r=fe(r.origin,"next"))),r.origin.is(n)&&(un(r)||P(342,n.getKey(),n.getType()),r=Dt(r)),(n.is(r.getNodeAtCaret())||n.is(r.getFlipped().getNodeAtCaret()))&&n.remove(!0);for(let i=r;i;i=_h(i,t))r=i;return ut(r)&&P(283),r.insert(n.isInline()?Re().append(n):n),Mt(fe(n.getLatest(),"next"),e.direction)}function xh(n,e){const t=Qi(F(e)?go(e):e,"next"),r=Li(t.anchor.origin),i=Li(n.getLatest());if(r===null?i!==null:!r.is(i))return!1;const s=ze(Ve(n,"next")),o=Mt(ze(Ve(n,"previous")),"next");return kn(t.anchor,s)<=0&&kn(t.focus,o)>=0}class Jo extends lt{$config(){return this.config("paragraph",{extends:lt,generated:b1,importDOM:{p:()=>({conversion:Y1,priority:0})}})}createDOM(e){const t=Ie().createElement("p"),r=kr(e.theme,"paragraph");return r!==void 0&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}exportDOM(e){const{element:t}=super.exportDOM(e);if(ce(t)){this.isEmpty()&&t.append(Ie().createElement("br"));const r=this.getFormatType();r&&(t.style.textAlign=r)}return{element:t}}exportJSON(e=!1){const t=super.exportJSON(e);if(t.textFormat===void 0||t.textStyle===void 0){const r=this.getChildren().find(B),i=r?r.getFormat():this.getTextFormat(),s=r?r.getStyle():this.getTextStyle();e&&i===0||(t.textFormat=i),e&&s===""||(t.textStyle=s)}return t}extractWithChild(e,t,r){if(!F(t)||this.getFormatType()===""&&this.getIndent()===0&&this.getStyle()==="")return!1;if(xh(this,t)){const i=this.getTextContent();return i!==""&&t.getTextContent()===i}return!1}insertNewAfter(e,t){const r=Re();r.setTextFormat(e.format),r.setTextStyle(e.style);const i=this.getDirection();return r.setDirection(i),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){if(this.getChildren().every(e=>B(e)&&!/\S/.test(e.getTextContent()))){if(this.getNextSibling()!==null)return this.selectNext(),this.remove(),!0;if(this.getPreviousSibling()!==null)return this.selectPrevious(),this.remove(),!0}return!1}}function Y1(n){const e=Re();if(jh(e,n),Tb(n,e),e.getFormatType()===""){const t=n.getAttribute("align");t&&t&&t in Pr&&e.setFormat(t)}return Cl(e,n),{node:e}}function Re(){return Kt(new Jo)}function Zi(n){return n instanceof Jo}function Q1(n){console.warn(n)}const oe=0,Zt=1,Z1=3,eb=4,tb=-8;function vh(n,e,t,r,i){const s=n._keyToDOMMap;s.clear(),n._editorState=fl(),n._pendingEditorState=r,n._compositionKey=null,n._dirtyType=0,n._cloneNotNeeded.clear(),n._dirtyLeaves=new Set,n._dirtyElements.clear(),n._normalizedNodes=new Set,i&&i.preserveUpdateQueue||(n._updateTags=new Set,n._updates=[],n._cascadeCount=0),n._blockCursorElement=null,n._inputState.handledSelectionCommandTimeoutId!==null&&clearTimeout(n._inputState.handledSelectionCommandTimeoutId),n._inputState={collapsedSelectionFormat:{format:0,key:"root",offset:0,style:"",timeStamp:0},compositionEndData:"",compositionPhase:"idle",hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,isShiftKeyDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,selectionChangeFromDOMUpdatePoints:null,unprocessedBeforeInputData:null};const o=n._observer;o!==null&&(o.disconnect(),n._observer=null),e!==null&&(e.textContent="",function(u,a){delete u[`__lexicalKey_${a._key}`]}(e,n)),t!==null&&(t.textContent="",s.set("root",t),Eh(t,n,"root"))}function nb(n){const e=new Set,t=new Set;for(const{klass:r,ownNodeConfig:i}of Zn(n)){const s=r.transform;if(!t.has(s)){t.add(s);const o=r.transform();o&&e.add(o)}if(i){const o=i.$transform;o&&e.add(o)}}return e}const po={$createDOM:(n,e)=>n.createDOM(e._config,e),$decorateDOM:(n,e,t,r)=>{},$exportDOM:(n,e)=>{const t=ml(e,n.getType());return t&&t.exportDOM!==void 0?t.exportDOM(e,n):n.exportDOM(e)},$extractWithChild:(n,e,t,r,i)=>T(n)&&n.extractWithChild(e,t,r),$getDOMSlot:(n,e,t)=>n.getDOMSlot(e),$getSlotTargetElement:(n,e,t,r)=>null,$shouldExclude:(n,e,t)=>T(n)&&n.excludeFromCopy("html"),$shouldInclude:(n,e,t)=>!e||n.isSelected(e),$updateDOM:(n,e,t,r)=>n.updateDOM(e,t,r._config)};function rb(n){const e=n||{},t=gh(),r=e.theme||{},i=n===void 0?t:e.parentEditor||null,s=e.disableEvents||!1,o=fl(),u=e.namespace||(i!==null?i._config.namespace:Ah()),a=e.editorState,l=[Vo,En,Go,Ko,Jo,dl,...e.nodes||[]],{onError:c,onWarn:h,html:f}=e,d=e.editable===void 0||e.editable;let g;if(n===void 0&&t!==null)g=t._nodes;else{g=new Map;for(let m=0;m<l.length;m++){let p=l[m],y=null,_=null;if(p&&typeof p=="object"){const C=p;p=C.replace,y=C.with,_=C.withKlass||null}if(typeof p!="function"||!p.prototype||!(p===$e||p.prototype instanceof $e)){let C="<unknown>";try{C=JSON.parse(Qd)}catch{}P(365,String(m-l.length+(e.nodes?e.nodes.length:0)),typeof p=="function"?`${p.name}${typeof p.getType=="function"?` (type ${String(p.getType())})`:""}`:String(p),String(C))}Tl(p);const x=p.getType(),S=nb(p);g.set(x,{exportDOM:f&&f.export?f.export.get(p):void 0,klass:p,replace:y,replaceWithKlass:_,sharedNodeState:Dm(l[m]),transforms:S})}}const b=new $r(o,i,g,{disableEvents:s,dom:{...po,...n&&n.dom},namespace:u,theme:r},c||console.error,h||Q1,function(m,p){const y=new Map,_=new Set,x=S=>{Object.keys(S).forEach(C=>{let A=y.get(C);A===void 0&&(A=[],y.set(C,A)),A.push(S[C])})};return m.forEach(S=>{const C=S.klass.importDOM;if(C==null||_.has(C))return;_.add(C);const A=C.call(S.klass);A!==null&&x(A)}),p&&x(p),y}(g,f?f.import:void 0),d,n);return a!==void 0&&(b._pendingEditorState=a,b._dirtyType=2),function(m){m.registerCommand(C0,e1,0),m.registerCommand(T0,n1,0),m.registerCommand(E0,i1,0),m.registerCommand(N0,s1,0),m.registerCommand(k0,a1,0)}(b),b}function ib(n,e){const t=n.get(e);n.delete(e),t&&t()}function ai(n,e,t){return n.set(e,t),ib.bind(null,n,e)}class $r{constructor(e,t,r,i,s,o,u,a,l){M(this,"_headless");M(this,"_parentEditor");M(this,"_rootElement");M(this,"_editorState");M(this,"_pendingEditorState");M(this,"_compositionKey");M(this,"_deferred");M(this,"_keyToDOMMap");M(this,"_updates");M(this,"_updating");M(this,"_cascadeCount");M(this,"_listeners");M(this,"_commands");M(this,"_nodes");M(this,"_decorators");M(this,"_pendingDecorators");M(this,"_config");M(this,"_dirtyType");M(this,"_cloneNotNeeded");M(this,"_dirtyLeaves");M(this,"_dirtyElements");M(this,"_normalizedNodes");M(this,"_updateTags");M(this,"_observer");M(this,"_key");M(this,"_onError");M(this,"_onWarn");M(this,"_htmlConversions");M(this,"_window");M(this,"_editable");M(this,"_blockCursorElement");M(this,"_slotsUsed");M(this,"_keyDownShortcuts");M(this,"_inputState");M(this,"_lastNotifiedSelection");M(this,"_createEditorArgs");this._createEditorArgs=l,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Vu,this._updates=[],this._updating=!1,this._cascadeCount=0,this._listeners={decorator:new Map,editable:new Map,mutation:new Map,root:new Map,textcontent:new Map,update:new Map},this._commands=new Map,this._config=i,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Map,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=Ah(),this._onError=s,this._onWarn=o,this._htmlConversions=u,this._editable=a,this._headless=t!==null&&t._headless,this._window=null,this._blockCursorElement=null,this._slotsUsed=!1,this._keyDownShortcuts=null,this._inputState={collapsedSelectionFormat:{format:0,key:"root",offset:0,style:"",timeStamp:0},compositionEndData:"",compositionPhase:"idle",hadOrphanedCompositionEvents:!1,handledSelectionCommandTimeoutId:null,isInsertLineBreak:!1,isInsertTextAfterHandledSelectionCommand:!1,isSelectionChangeFromDOMUpdate:!1,isSelectionChangeFromMouseDown:!1,isShiftKeyDown:!1,lastBeforeInputInsertTextTimeStamp:0,lastKeyCode:null,lastKeyDownTimeStamp:0,postDeleteSelectionToRestore:null,selectionChangeFromDOMUpdatePoints:null,unprocessedBeforeInputData:null},this._lastNotifiedSelection=null}isComposing(){return this._compositionKey!=null}registerUpdateListener(e){return ai(this._listeners.update,e)}registerEditableListener(e){return ai(this._listeners.editable,e)}registerDecoratorListener(e){return ai(this._listeners.decorator,e)}registerTextContentListener(e){return ai(this._listeners.textcontent,e)}registerRootListener(e){const t=this._listeners.root;return mt(ai(t,e,e(this._rootElement,null)||void 0),()=>function(r,i,s){const o=r.get(i);o&&o(),r.set(i,i(...s)||void 0)}(t,e,[null,this._rootElement]))}registerCommand(e,t,r){r===void 0&&P(35);const i=this._commands;i.has(e)||i.set(e,[new si,new si,new si,new si,new si]);const s=i.get(e);s===void 0&&P(36,String(e));const o=function(a){return 7&a}(r),u=s[o];return o!==r?u.addFront(t):u.addBack(t),()=>{u.delete(t),s.every(a=>a.size===0)&&i.delete(e)}}registerMutationListener(e,t,r){const i=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,s=this._listeners.mutation;let o=s.get(t);o===void 0&&(o=new Set,s.set(t,o)),o.add(i);const u=r&&r.skipInitialization;return u!==void 0&&u||this.initializeMutationListener(t,i),()=>{o.delete(i),o.size===0&&s.delete(t)}}getRegisteredNode(e){const t=this._nodes.get(e.getType());return t===void 0&&P(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){const r=this._editorState,i=pf(r).get(t.getType());if(!i)return;const s=new Map;for(const o of i.keys())s.set(o,"created");s.size>0&&e(s,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){const r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){const r=this.registerNodeTransformToKlass(e,t),i=[r],s=r.replaceWithKlass;if(s!=null){const o=this.registerNodeTransformToKlass(s,t);i.push(o)}return function(o,u){const a=pf(o.getEditorState()),l=[];for(const c of u){const h=a.get(c);h&&l.push(h)}l.length!==0&&o.update(()=>{for(const c of l)for(const h of c.keys()){const f=he(h);f&&f.markDirty()}},o._pendingEditorState===null?{tag:Nr}:void 0)}(this,i.map(o=>o.klass.getType())),()=>{i.forEach(o=>o.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,...t){return Y(this,e,...t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){const t=this._rootElement;if(e!==t){const r=kr(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,vh(this,t,e,i,{preserveUpdateQueue:!0}),t!==null&&(this._config.disableEvents||function(s){const o=vu.get(s);if(o===void 0)return;const u=Fs.get(o);if(u===void 0)return;vu.delete(s);const a=Qr(s);ts(a)?(function(c){if(c._parentEditor!==null){const h=yl(c),f=h[h.length-1]._key;Er.get(f)===c&&Er.delete(f)}else Er.delete(c._key)}(a),u.editors.delete(a),u.hasShadowEditor=void 0,s.__lexicalEditor=null):a&&P(198);const l=Lc(s);for(let c=0;c<l.length;c++)l[c]();s.__lexicalEventHandles=[]}(t),r!=null&&t.classList.remove(...r)),e!==null){const s=wl(e),o=e.style;o.userSelect="text",o.whiteSpace="pre-wrap",o.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=s,this._dirtyType=2,i0(this),this._updateTags.add(Nr),_n(this),this._config.disableEvents||function(u,a){const l=u.ownerDocument;vu.set(u,l);let c=Fs.get(l);c===void 0&&(c={editors:new Set,hasShadowEditor:void 0},Fs.set(l,c)),c.editors.add(a),c.hasShadowEditor=void 0,u.__lexicalEditor=a;const h=Lc(u);h.push(Ym.register(l));const f=function(){if(xu!==void 0)return xu;const d=[["keydown",u1],["pointerdown",Zm],["compositionstart",r1],["compositionend",o1],["input",t1],["click",Qm],["cut",Ht],["copy",Ht],["dragstart",Ht],["dragover",Ht],["dragend",Ht],["paste",Ht],["focus",Ht],["blur",Ht],["drop",Ht]];return Ir&&d.push(["beforeinput",(g,b)=>function(m,p){const y=m.inputType;y==="deleteCompositionText"||rn&&Dh(p)||y!=="insertCompositionText"&&gt(p,()=>{W0(m,p)||Y(p,C0,m)},{event:m})}(g,b)]),Ct&&d.push(["keyup",(g,b)=>function(m,p){m.shiftKey&&m.key!=="CapsLock"||(p._inputState.isShiftKeyDown=!1)}(g,b)]),xu=d,d}();for(let d=0;d<f.length;d++){const[g,b]=f[d],m=typeof b=="function"?p=>{Bc(p)||(Fc(p),(a.isEditable()||g==="click")&&b(p,a))}:p=>{if(Bc(p))return;Fc(p);const y=a.isEditable();switch(g){case"cut":return y&&Y(a,ol,p);case"copy":return Y(a,qo,p);case"paste":return y&&Y(a,Ji,p);case"dragstart":return y&&Y(a,B0,p);case"dragover":return y&&Y(a,j0,p);case"dragend":return y&&Y(a,Um,p);case"focus":return y&&Y(a,Km,p);case"blur":return a._inputState.isShiftKeyDown=!1,a._inputState.isInsertLineBreak=!1,y&&Y(a,Wm,p);case"drop":return y&&Y(a,F0,p)}};h.push(Xm(u,g,m))}}(e,this),r!=null&&e.classList.add(...r)}else this._window=null,this._updateTags.add(Nr),_n(this);bi("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){const r=e.isEmpty();let i=e;i._readOnly&&(i=bh(e),i._selection=e._selection?e._selection.clone():null),r0(this);const s=this._pendingEditorState,o=t!==void 0?t.tag:null;s===null||s.isEmpty()||(o!=null&&this._updateTags.add(o),_n(this)),this._pendingEditorState=i,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,this._slotsUsed=this._slotsUsed||e._slotsUsed,gt(this,()=>{if(o&&this._updateTags.add(o),r&&(Ga(38),we().append(Re())),e._parsed)for(const[u,a]of i._nodeMap.entries())T(a)?this._dirtyElements.set(u,!0):this._dirtyLeaves.add(u)},{discrete:!this._updating||void 0})}parseEditorState(e,t){return function(r,i,s){const o=fl(),u=Ue,a=tt,l=De,c=i._dirtyElements,h=i._dirtyLeaves,f=i._cloneNotNeeded,d=i._dirtyType;i._dirtyElements=new Map,i._dirtyLeaves=new Set,i._cloneNotNeeded=new Map,i._dirtyType=0,Ue=o,tt=!1,De=i,gl(null);try{const g=i._nodes;fo(r.root,g),s&&s(),o._readOnly=!0,o._parsed=!0}catch(g){g instanceof Error&&i._onError(g)}finally{i._dirtyElements=c,i._dirtyLeaves=h,i._cloneNotNeeded=f,i._dirtyType=d,Ue=u,tt=a,De=l}return o}(typeof e=="string"?JSON.parse(e):e,this,t)}read(...e){const[t,r]=e.length===1?["force-commit",e[0]]:e;return t==="force-commit"&&_n(this),(t==="pending"?this._pendingEditorState||this._editorState:this.getEditorState()).read(r,{editor:this})}update(e,t){(function(r,i,s){r._updating?r._updates.push([i,s]):Br(r,i,s)})(this,e,t)}focus(e,t={}){const r=this._rootElement;r!==null&&(r.setAttribute("autocapitalize","off"),gt(this,()=>{const i=z(),s=we();i!==null?i.dirty||Me(i.clone()):s.getChildrenSize()!==0&&(t.defaultSelection==="rootStart"?s.selectStart():s.selectEnd()),Ur("focus"),fb(()=>{r.removeAttribute("autocapitalize"),e&&e()})}),this._pendingEditorState===null&&r.removeAttribute("autocapitalize"))}blur(){const e=this._rootElement;e!==null&&e.blur();const t=nt(this._window);t!==null&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,bi("editable",this,!0,e),this._slotsUsed&&this.update(()=>L1()))}toJSON(){return{editorState:this._editorState.toJSON(ym())}}}M($r,"version",Qd);let ba=null;function gl(n){ba=n}const pl=Symbol("INTERNAL_SKIP_AFTER_CLONE_FROM");let sb=1;function Sh(n,e){const t=ml(n,e);return t===void 0&&P(30,e),t}function ml(n,e){return n._nodes.get(e)}const ob=typeof queueMicrotask=="function"?queueMicrotask:n=>{Promise.resolve().then(n)};function bl(n,e){const t=e!==void 0?e:(()=>{const s=n.getRootNode();return dr(s)||on(s)?qr(s):null})();if(!ce(t)||t.hasAttribute("data-lexical-slot"))return!1;const r=Qn(t),i=t.nodeName;return V0(r)&&(i==="INPUT"||i==="TEXTAREA"||t.contentEditable==="true"&&Qr(t)==null)}function es(n,e,t){const r=n.getRootElement();if(!r)return!1;try{if(!e||!r.contains(e)||!r.contains(t))return!1}catch{return!1}return qn(e)===n&&n.read("latest",()=>!bl(e))}function ts(n){return n instanceof $r}function qn(n){let e=n;for(;e!=null;){const t=Qr(e);if(ts(t))return t;e=nn(e)}return null}function Qr(n){return n?n.__lexicalEditor:null}function mo(n){return oo(n)||n.isToken()}function St(n){return mo(n)||n.isSegmented()}function Tt(n){return Zr(n)&&n.nodeType===3}function dr(n){return Zr(n)&&n.nodeType===9}function ub(n){let e=n;for(;e!=null;){if(Tt(e))return e;e=e.firstChild}return null}function Yn(n,e,t){const r=Ke[e];if(t!==null&&(n&r)===(t&r))return n;let i=n^r;return e==="subscript"?i&=~Ke.superscript:e==="superscript"?i&=~Ke.subscript:e==="lowercase"?(i&=~Ke.uppercase,i&=~Ke.capitalize):e==="uppercase"?(i&=~Ke.lowercase,i&=~Ke.capitalize):e==="capitalize"&&(i&=~Ke.lowercase,i&=~Ke.uppercase),i}function wh(n){return B(n)||et(n)||ie(n)}function Ch(n,e){const t=function(){const o=ba;return ba=null,o}();if((e=e||t&&t.__key)!=null)return void(n.__key=e);Be(),dh();const r=de(),i=Et(),s=""+sb++;i._nodeMap.set(s,n),T(n)?r._dirtyElements.set(s,!0):r._dirtyLeaves.add(s),r._cloneNotNeeded.set(s,n),r._dirtyType===0&&(r._dirtyType=1),n.__key=s}function tn(n){He(n)!==null&&P(380,n.__key,String(He(n)));const e=n.getParent();if(e!==null){const t=n.getWritable(),r=e.getWritable(),i=n.getPreviousSibling(),s=n.getNextSibling(),o=s!==null?s.__key:null,u=i!==null?i.__key:null,a=i!==null?i.getWritable():null,l=s!==null?s.getWritable():null;i===null&&(r.__first=o),s===null&&(r.__last=u),a!==null&&(a.__next=o),l!==null&&(l.__prev=u),t.__prev=null,t.__next=null,t.__parent=null,r.__size--}}function bo(n){dh(),ro(n)&&P(323,n.__key,n.__type);const e=n.__parent!==null?n.__parent:er(n)?n.__slotHost:null,t=Et(),r=de(),i=t._nodeMap,s=r._dirtyElements;e!==null&&function(u,a,l){let c=u;for(;c!==null;){if(l.has(c))return;const h=a.get(c);if(h===void 0)break;l.set(c,!1),c=h.__parent!==null?h.__parent:er(h)?h.__slotHost:null}}(e,i,s);const o=n.__key;r._dirtyType===0&&(r._dirtyType=1),T(n)?s.set(o,!0):r._dirtyLeaves.add(o)}function je(n){Be();const e=de(),t=e._compositionKey;if(n!==t){if(e._compositionKey=n,t!==null){const r=he(t);r!==null&&r.getWritable()}if(n!==null){const r=he(n);r!==null&&r.getWritable()}}}function Bt(){return Xn()?null:de()._compositionKey}function he(n,e){const t=(e||Et())._nodeMap.get(n);return t===void 0?null:t}function Th(n,e){const t=hr(n,de());return t!==void 0?he(t,e):null}function Eh(n,e,t){n[`__lexicalKey_${e._key}`]=t}function hr(n,e){return n[`__lexicalKey_${e._key}`]}function Qn(n,e){let t=n;for(;t!=null;){const r=Th(t,e);if(r!==null)return r;t=nn(t)}return null}function Nh(n){const e=n._decorators,t=Object.assign({},e);return n._pendingDecorators=t,t}function lf(n){return n.read(()=>we().getTextContent())}function we(){return Et()._nodeMap.get("root")}function yo(n,e){if(!(pe(n)&&n.isAttached()&&(Ee(n)?n.getChildrenSize()===0:n.isEmpty())&&(Ee(n)||e!==null&&Qe(e))))return null;const t=Re();return n.append(t),t}function Me(n){Be();const e=Et();n!==null&&(n.dirty=!0,n.setCachedNodes(null),F(n)&&de()._slotsUsed&&oh(n)),e._selection=n}function cf(){Be(),r0(de())}function Un(n){const e=function(t,r){let i=t;for(;i!=null;){const s=hr(i,r);if(s!==void 0)return s;i=nn(i)}return null}(n,de());return e===null?null:he(e)}function kh(n){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(n)}function yl(n){const e=[];for(let t=n;t!==null;t=t._parentEditor)e.push(t);return e}function Ah(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function Oh(n){return Tt(n)?n.nodeValue:null}function _l(n,e,t){const r=nt(dt(e));if(r===null)return;const i=ct(r,e._rootElement),s=i.anchorNode;let{anchorOffset:o,focusOffset:u}=i;if(s!==null){let a=Oh(s);const l=Qn(s);if(a!==null&&B(l)){if((a===Ci||a===Xa)&&t){const c=t.length;a=t,o=c,u=c}a!==null&&xl(l,a,o,u,n)}}}function xl(n,e,t,r,i){let s=n;if(s.isAttached()&&(i||!s.isDirty())){const o=s.isComposing();if(s.isToken()&&o)return;let u=e;if((o||i)&&(e.endsWith(Ci)&&(u=e.slice(0,-Ci.length)),i)){const l=Xa;let c;for(;(c=u.indexOf(l))!==-1;)u=u.slice(0,c)+u.slice(c+l.length),t!==null&&t>c&&(t=Math.max(c,t-l.length)),r!==null&&r>c&&(r=Math.max(c,r-l.length))}const a=s.getTextContent();if(i||u!==a){const l=z();if(u===""){if(je(null),Vi||Ct||Gi)s.remove();else{const b=de();Du(s,"",l),setTimeout(()=>{b.update(()=>{s.isAttached()&&s.getTextContent()===""&&s.remove()})},20)}return}const c=s.getParent(),h=Yr(),f=s.getTextContentSize(),d=Bt(),g=s.getKey();if(s.isToken()&&!o||d!==null&&g===d&&!o||F(h)&&(c!==null&&!c.canInsertTextBefore()&&h.anchor.offset===0||h.anchor.key===n.__key&&h.anchor.offset===0&&!s.canInsertTextBefore()&&!o||h.focus.key===n.__key&&h.focus.offset===f&&!s.canInsertTextAfter()&&!o))return void s.markDirty();if(!F(l)||t===null||r===null)return void Du(s,u,l);if(l.setTextNodeRange(s,t,s,r),s.isSegmented()){const b=Xe(s.getTextContent());s.replace(b),s=b}Du(s,u,l)}}}function Du(n,e,t){if(n.setTextContent(e),F(t)){const r=n.getKey();let i=!1;for(const s of["anchor","focus"]){const o=t[s];o.type==="text"&&o.key===r&&(o.offset=$t(n,o.offset,"clamp"),i=!0)}i&&(t._cachedNodes=null,t._cachedIsBackward=null)}}function ff(n){let e=n;for(;e!==null;){const t=e.getParent();if(t===null)return null;if(Ee(t))return e;e=t}return null}function ms(n,e){const{anchor:t,focus:r}=n,i=t.key,s=t.offset,o=t.type,u=r.key,a=r.offset,l=r.type;if(Rr(n),!Ee(e))return n;const c=ff(t.getNode());return T(c)&&c.isShadowRoot()&&c.is(ff(r.getNode()))&&(t.set(i,s,o),r.set(u,a,l)),n}function ab(n){const e=we();if(F(n)){const t=n.anchor,r=n.focus,i=t.getNode();if(Ee(i))return t.set(i.getKey(),0,"element"),r.set(i.getKey(),i.getChildrenSize(),"element"),ms(n,i),n;const s=i.getTopLevelElementOrThrow(),o=s.getParent();return o===null?(T(s)&&(t.set(s.getKey(),0,"element"),r.set(s.getKey(),s.getChildrenSize(),"element"),ms(n,s)),n):(t.set(o.getKey(),0,"element"),r.set(o.getKey(),o.getChildrenSize(),"element"),ms(n,o),n)}{const t=e.select(0,e.getChildrenSize());return Me(ms(t,e)),t}}function Mi(n,e){n.getAttribute(e)===""&&n.removeAttribute(e)}function kr(n,e){n.__lexicalClassNameCache===void 0&&(n.__lexicalClassNameCache={});const t=n.__lexicalClassNameCache,r=t[e];if(r!==void 0)return r;const i=n[e];if(typeof i=="string"){const s=Ut(i);return t[e]=s,s}return i}function vl(n,e,t,r,i){if(t.size===0)return;const s=r.__type,o=r.__key,u=e.get(s);u===void 0&&P(33,s);const a=u.klass;let l=n.get(a);l===void 0&&(l=new Map,n.set(a,l));const c=l.get(o),h=c==="destroyed"&&i==="created";(c===void 0||h)&&l.set(o,h?"updated":i)}function df(n,e,t){const r=n.getParent();let i=t,s=n;return r!==null&&(t===0&&(i=s.getIndexWithinParent(),s=r)),s.getChildAtIndex(i-1)}function lb(n,e){const t=n.offset;if(n.type==="element")return df(n.getNode(),e,t);{const r=n.getNode();if(t===0||!e){const i=r.getPreviousSibling();return i===null?df(r.getParentOrThrow(),e,r.getIndexWithinParent()+0):i}}return null}function Dh(n){const e=dt(n).event,t=e&&e.inputType;return t==="insertFromPaste"||t==="insertFromPasteAsQuotation"}function Y(n,e,...t){return ga(n,e,t[0],n)}function Ar(n,e){const t=n._keyToDOMMap.get(e);return t===void 0&&P(75,e),t}function nn(n){const e=n.assignedSlot||n.parentElement;if(e!==null)return e;const t=n.parentNode;return on(t)?t.host:null}function Sl(n){return dr(n)?n:ce(n)?n.ownerDocument:null}function hf(n,e){const t=parseFloat(n);return isFinite(t)?n.endsWith("%")?t*e/100:t:0}function cb(n,e,t,r){const i=e.clientWidth,s=e.scrollWidth-i;if(s<=0)return 0;const o=n.getComputedStyle(e);if(o.overflowX!=="auto"&&o.overflowX!=="scroll")return 0;const u=e.getBoundingClientRect(),a=e.offsetWidth,l=a>0&&Math.abs(u.width-a)>1?u.width/a:1,c=o.direction==="rtl",h=u.left+e.clientLeft*l,f=h+hf(o.scrollPaddingLeft,i)*l,d=h+(i-hf(o.scrollPaddingRight,i))*l;let g=t,b=Math.max(r,t+1);b-g>d-f&&(c?g=b-1:b=g+1);let m=0;if(g<f?m=g-f:b>d&&(m=b-d),m===0)return 0;const p=e.scrollLeft,y=p+m/l,_=m>0?Math.ceil(y):Math.floor(y);let x=c?Math.min(0,Math.max(-s,_)):Math.max(0,Math.min(s,_));const S=p*l;return Math.abs(x)<Math.abs(p)&&g+S>=f&&b+S<=d&&(x=0),x===p?0:(e.scrollLeft=x,(e.scrollLeft-p)*l)}function Ur(n){Be(),de()._updateTags.add(n)}function fb(n){Be(),de()._deferred.push(n)}function zr(n,e){let t=n.getParent();for(;t!==null;){if(t.is(e))return!0;t=t.getParent()}return!1}function wl(n){const e=Sl(n);return e?e.defaultView:null}function dt(n){const e=n._window;return e===null&&P(78),e}function db(n){return T(n)&&n.isInline()||ie(n)&&n.isInline()}function Mh(n){let e=n.getLatest();for(;e!==null;){if(He(e)!==null&&T(e))return e;const t=e.getParentOrThrow();if(pe(t))return t;e=t}return e}function yi(n){return T(n)&&n.isShadowRoot()}function pe(n){return Ee(n)||yi(n)}function qe(n,e=!1){const t=n.constructor.clone(n,pl);return Ch(t,null),t.afterCloneFrom(n),e||t.resetOnCopyNodeFrom(n),t}function Kt(n){const e=de(),t=n.getType(),r=ml(e,t);r===void 0&&P(200,n.constructor.name,t);const{replace:i,replaceWithKlass:s}=r;if(i!==null){const o=i(n),u=o.constructor;return s!==null?o instanceof s||P(201,s.name,s.getType(),u.name,u.getType(),n.constructor.name,t):o instanceof n.constructor&&u!==n.constructor||P(202,u.name,u.getType(),n.constructor.name,t),o.__key===n.__key&&P(203,n.constructor.name,t,u.name,u.getType()),o}return n}function Mu(n,e){!Ee(n.getParent())||T(e)||ie(e)||P(99)}function hb(n){const e=he(n);return e===null&&P(63,n),e}function Ii(n){if(!n||n.isInline())return!1;if(ie(n))return!0;if(T(n)){if(n.isShadowRoot()){const e=n.getParent();return!(T(e)&&e.isShadowRoot())}return!n.canBeEmpty()}return!1}function _o(n,e,t){t.style.removeProperty("caret-color"),e._blockCursorElement=null;const r=n.parentElement;r!==null&&r.removeChild(n)}function nt(n){return It?(n||window).getSelection():null}function gb(n){const e=wl(n);return e?e.getSelection():null}function on(n){return ya(n)&&"host"in n}const pb=[];function Ih(n){const e=n.getRootNode();if(e===n||!on(e))return pb;const t=[e];let r=e.host;for(;;){const i=r.getRootNode();if(i===r||!on(i))break;t.push(i),r=i.host}return t}function*Ph(n){const e=[n];let t;for(;t=e.pop();){yield*t.querySelectorAll('[data-lexical-editor="true"]');const r=(dr(t)?t:t.ownerDocument).createTreeWalker(t,NodeFilter.SHOW_ELEMENT);let i;for(;i=r.nextNode();)i.shadowRoot&&e.push(i.shadowRoot)}}function Lh(n){return n!==null?n.ownerDocument:document}function Ie(){const n=gh();return Lh(n!==null?n._rootElement:null)}function Xo(n,e){if(e===null||typeof n.getComposedRanges!="function")return null;const t=Ih(e);if(t.length===0)return null;const r=n.getComposedRanges;try{const i=r.call(n,{shadowRoots:t})[0];if(i!==void 0)return i}catch{}try{const i=r.apply(n,t)[0];if(i!==void 0)return i}catch{}return null}function mb(n,e){const t=Xo(n,e);if(t!==null){const r=bb(t);if(r!==null)return r}return n.rangeCount>0?n.getRangeAt(0):null}function ct(n,e){const t=Xo(n,e);return t===null?n:yb(t,_b(n))}function bb(n){const e=n.startContainer.ownerDocument;if(e===null)return null;const t=e.createRange();try{return t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset),t}catch{return null}}function yb(n,e){const{startContainer:t,startOffset:r,endContainer:i,endOffset:s}=n;return e==="backward"?{anchorNode:i,anchorOffset:s,direction:e,focusNode:t,focusOffset:r}:{anchorNode:t,anchorOffset:r,direction:e,focusNode:i,focusOffset:s}}function _b(n){return n.direction}function xo(n){const e=n.getRootNode();return dr(e)||on(e)?e.activeElement:null}function qr(n){let e=n.activeElement;for(;e!==null&&e.shadowRoot!==null;){const t=e.shadowRoot.activeElement;if(t===null)break;e=t}return e}function Rh(n){const e=n.target;if(e!==null&&ce(e)&&e.shadowRoot!==null&&typeof n.composedPath=="function"){const t=n.composedPath();if(t.length>0)return t[0]}return e}function Fh(n){return ce(n)&&n.tagName==="A"}function ce(n){return Zr(n)&&n.nodeType===1}function Zr(n){return typeof n=="object"&&n!==null&&"nodeType"in n&&typeof n.nodeType=="number"}function ya(n){return Zr(n)&&n.nodeType===11}const xb=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/i;function _a(n){return!(!ce(n)||!n.style.display.startsWith("inline"))||xb.test(n.nodeName)}const vb=/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/i;function Pi(n){return(!ce(n)||!n.style.display.startsWith("inline"))&&vb.test(n.nodeName)}function Qe(n){if(ie(n)&&!n.isInline())return!0;if(!T(n)||pe(n))return!1;const e=n.getFirstChild(),t=e===null||et(e)||B(e)||e.isInline();return!n.isInline()&&n.canBeEmpty()!==!1&&t}function Pe(){return de()}function ns(n=Pe()){return n._config.dom||po}function ft(n,e,t=Pe()){const r=ns(t).$getDOMSlot(n,e,t);return T(n)&&(Sb(r)||P(344,n.getKey(),n.getType())),r}function Sb(n){return n instanceof Yd}function wn(n,e,t=Pe()){return ub(ft(n,e,t).element)}const gf=new WeakMap,wb=new Map;function pf(n){if(!n._readOnly&&n.isEmpty())return wb;n._readOnly||P(192);let e=gf.get(n);return e||(e=function(t){const r=new Map;for(const[i,s]of t._nodeMap){const o=s.__type;let u=r.get(o);u||(u=new Map,r.set(o,u)),u.set(i,s)}return r}(n),gf.set(n,e)),e}function Bh(n){const e=n.constructor.clone(n,pl);return e.afterCloneFrom(n),e}function Cb(n){return(e=Bh(n))[H0]=!0,e;var e}function Tb(n,e){const t=n.getAttribute("data-lexical-indent");if(t!==null){const s=parseInt(t,10);if(Number.isFinite(s)&&s>=0)return void e.setIndent(s)}const r=parseInt(n.style.paddingInlineStart,10)||0,i=Math.round(r/40);e.setIndent(i)}function Cl(n,e){const t=e.getAttribute("dir");return t==="ltr"||t==="rtl"?n.setDirection(t):n}function jh(n,e){const t=e.style.textAlign;return t&&t in Pr?n.setFormat(t):n}function Eb(n,e){n.__lexicalUnmanaged=!0,e&&e.captureSelection!==void 0&&(n.__lexicalCapturedSelection=e.captureSelection)}function $h(n){return n.__lexicalUnmanaged===!0}function Nb(n,e=Pe()){const t=e.isEditable();n.contentEditable=t?"true":"false",t?n.__lexicalEditor=e:delete n.__lexicalEditor}function vo(n,e){let t=n;for(;t!=null;){if(t.__lexicalCapturedSelection===!0)return!0;if(ce(t)&&t.hasAttribute("data-lexical-slot")||hr(t,e)!==void 0)return!1;t=nn(t)}return!1}function li(n,e){return vn(n,e)&&n[e]!==$e[e]}const Iu=new WeakMap;function Kr(n){const e=Iu.get(n);return e!==void 0?e:function(t){const r=t.prototype!=null&&du in t.prototype?t.prototype[du]():void 0,i=function(c){if(!(c===$e||c.prototype instanceof $e)){let h="<unknown>",f="<unknown>";try{h=c.getType()}catch{}try{$r.version&&(f=JSON.parse($r.version))}catch{}P(290,c.name,h,f)}return c===cl||c===lt||c===$e}(t),s=!i&&li(t,"getType")?t.getType:void 0,o=s&&!(mf in s)?s.call(t):void 0;let u,a=o;if(r)if(o)u=r[o];else{for(const[c,h]of Object.entries(r))a=c,u=h;if(!u)for(const c of Object.getOwnPropertySymbols(r)){const h=r[c];if(h){u=h;break}}}const l={compiled:void 0,composed:void 0,config:{declaresOwnConfig:vn(t.prototype,du),klass:t,ownNodeConfig:u,ownNodeType:a},ownFieldsValidated:!1};Iu.set(t,l);try{const c=function(g){const b=g.prototype,m=new Map,{fieldsBaseFirst:p}=_i(g);for(const[y,_]of p){const x=Mb(g,y,_);if(x===null)continue;if(Cn(x)){const C=x.field;if(C==="__proto__"&&P(430,g.name,y),x.setterTable!==void 0){const{setterTable:A}=x,{meta:O}=_;for(const D of O.kind==="enum"?O.values:[_.defaultValue])vn(A,String(D))||P(431,g.name,y,JSON.stringify(D))}m.set(y,{field:C,key:y,kind:"ownField",schema:_,setterTable:x.setterTable});continue}const S=b[x];typeof S!="function"&&P(432,g.name,y,x),m.set(y,{key:y,kind:"field",schema:_,setter:S})}return m.size===0?kb:[...m.values()]}(t),h=function(g){const b=g.prototype,m=new Map;for(const[p,y]of _i(g).fieldsDerivedFirst){const _=Db(g,p,y);if(_===null)continue;if(Cn(_)){const S=_.field;S==="__proto__"&&P(426,g.name,p);const C=_.when;let A;if(C!==void 0){const O=b[C];typeof O!="function"&&P(427,g.name,p,C),A=O}m.set(p,{defaultValue:y.defaultValue,derived:y.setter===null,field:S,getterTable:_.getterTable,isEqual:y.isEqual,key:p,kind:"ownField",schema:y,when:A});continue}const x=b[_];typeof x!="function"&&P(428,g.name,p,_),m.set(p,{defaultValue:y.defaultValue,derived:y.setter===null,getter:x,isEqual:y.isEqual,key:p,kind:"method",schema:y})}return m.size===0?Ob:[...m.values()]}(t),f=_i(t),d=function(g,b,m){let p,y=g;for(const{klass:_,ownNodeConfig:x}of Zn(g))x&&x.generated!==void 0&&(p===void 0?(p=x.generated,y=_):x.generated===p&&(y=_));return p===void 0?null:y===g||function(_,x){if(_.getters.length!==x.getters.length||_.setters.length!==x.setters.length)return!1;for(let S=0;S<_.getters.length;S++){const C=_.getters[S],A=x.getters[S];if(C.kind!==A.kind||C.key!==A.key||C.schema!==A.schema||C.derived!==A.derived||C.isEqual!==A.isEqual||!Object.is(C.defaultValue,A.defaultValue)||C.kind==="ownField"&&A.kind==="ownField"&&(C.field!==A.field||C.getterTable===void 0!=(A.getterTable===void 0)))return!1}for(let S=0;S<_.setters.length;S++){const C=_.setters[S],A=x.setters[S];if(C.kind!==A.kind||C.key!==A.key||C.schema!==A.schema||C.kind==="ownField"&&A.kind==="ownField"&&(C.field!==A.field||C.setterTable===void 0!=(A.setterTable===void 0)))return!1}return!0}(m,So(Kr(y)))?p:null}(t,0,{getters:h,setters:c});l.compiled={flatStates:f.flatStates,generated:d===null?null:d(f.fields),getters:h,isCompactDefault:Ib(h),setters:c},function(g,b,m,p){if(!b&&m){if(!li(g,"getType")){const y=g,_=function(){return this!==y?$e.getType.call(this):m};_[mf]=!0,g.getType=_}if(li(g,"clone")||(g.clone=(y,_)=>{gl(y);const x=new g;return _!==pl&&x.afterCloneFrom(y),x}),li(g,"importJSON")||(g.importJSON=p&&p.$importJSON||function(y){return _=>{const x=Bb(y);return x.updateFromJSON===$e.prototype.updateFromJSON?function(S,C){return zh(S.__state||C[Qa]!==void 0?h0(S,C):S,C)}(x,_):x.updateFromJSON(_)}}(g)),!li(g,"importDOM")&&p){const{importDOM:y}=p;y&&(g.importDOM=()=>y)}}}(t,i,a,u),function(g){for(const{klass:b,ownNodeConfig:m}of Zn(g)){const p=b.prototype;if(vn(p,"afterCloneFrom"))continue;const y=Fb(b);if(y.length===0)continue;const _=Object.getPrototypeOf(p),x=m&&m.generated!==void 0?So(Kr(b)).generated:null,S=x!==null&&x.afterCloneFrom||((C,A)=>{const O=C,D=A;for(let k=0;k<y.length;k++){const v=y[k];O[v]=D[v]}});p.afterCloneFrom=function(C){_.afterCloneFrom.call(this,C),S(this,C)},p.afterCloneFrom[Rb]=!0}}(t)}catch(c){throw Iu.delete(t),c}return l}(n)}function So(n){const{compiled:e}=n;return e===void 0&&P(422,n.config.klass.name),e}const mf=Symbol("lexical.synthesizedGetType"),kb=[];function Uh(n,e,t,r){const i=t.method===void 0?r:t.method,s=_i(n).declaredBy.get(e);if(s===void 0)return t;const o=n.prototype,u=s.prototype;return bf(o,u,i)&&bf(o,u,r)?t:i}function bf(n,e,t){return n[t]===e[t]}function yf(n){return`set${n.charAt(0).toUpperCase()}${n.slice(1)}`}function _f(n){return`get${n.charAt(0).toUpperCase()}${n.slice(1)}`}const Ab={declaredBy:new Map,fields:new Map,fieldsBaseFirst:[],fieldsDerivedFirst:[],flatStates:[]};function _i(n){const e=Kr(n);return e.composed===void 0&&(e.composed=function(t){const r=[],i=[],s=[];for(const{klass:c,ownNodeConfig:h}of Zn(t)){const f=h&&h.json;i.push(c),r.push(f&&f.meta.kind==="node"?Object.entries(f.meta.fields):[]);const d=[];if(h&&h.stateConfigs)for(const g of h.stateConfigs)"stateConfig"in g&&g.flat&&d.push(g.stateConfig);s.push(d)}const o=new Map;for(let c=0;c<r.length;c++)for(const[h,f]of r[c])o.has(h)||o.set(h,f);const u=new Map,a=new Map,l=new Map;for(let c=r.length-1;c>=0;c--){for(const[h,f]of r[c]){const d=o.get(h);d===void 0||u.has(h)||u.set(h,d),d===void 0||f!==d||a.has(h)||a.set(h,i[c])}for(const h of s[c])l.has(h.key)||l.set(h.key,h)}return o.size===0&&l.size===0?Ab:{declaredBy:a,fields:u,fieldsBaseFirst:[...u],fieldsDerivedFirst:[...o],flatStates:[...l.values()]}}(n)),e.composed}const Ob=[];function Db(n,e,t){const r=t.getter;if(r===null)return null;const i=r===void 0?_f(e):r;return Cn(i)?Uh(n,e,i,_f(e)):i}function Mb(n,e,t){const r=t.setter;if(r===null)return null;const i=r===void 0?yf(e):r;return Cn(i)?Uh(n,e,i,yf(e)):i}function xa(n,e){const{defaultValue:t,isEqual:r}=n;return e===void 0||e===t||r!==void 0&&r(e,t)}function Ib(n){let e;return(t,r)=>{e===void 0&&(e=new Map(n.map(s=>[s.key,s])));const i=e.get(t);return i!==void 0&&xa(i,r)}}function Pb(n){const{setterTable:e,schema:t}=n,{defaultValue:r}=t;return e===void 0?r:e[String(r)]}function zh(n,e){const t=Kr(n.constructor),{flatStates:r,generated:i,setters:s}=So(t),o=function(u,a,l){let c=u;for(let h=0;h<l.length;h++){const f=l[h],d=a[f.key];if(d!==void 0){const g=f.parse(d);c=Om(c,f,()=>g)}}return c}(n,e,r);return i!==null&&i.updateFromJSON!==void 0?i.updateFromJSON(o,e):function(u,a,l){for(let c=0;c<l.length;c++){const h=l[c],f=h.schema(a[h.key]);h.kind==="ownField"?u[h.field]=h.setterTable===void 0?f:vn(h.setterTable,f)?h.setterTable[f]:Pb(h):h.setter.call(u,f)}return u}(o,e,s)}function Tl(n){return Kr(n).config}function Lb(n){const e=[];for(const t of[n.getter,n.setter])Cn(t)&&t.field!=="__proto__"&&!e.includes(t.field)&&e.push(t.field);return e}const Rb="__lexicalSynthesizedAfterCloneFrom";function xf(n){const{declaredBy:e,fieldsBaseFirst:t}=_i(n),r=[];for(const[i,s]of t)if(e.get(i)===n)for(const o of Lb(s))r.includes(o)||r.push(o);return r}function Fb(n){const e=xf(n);if(e.length===0)return e;const t=new Set;for(const{klass:r}of Zn(n))if(r!==n)for(const i of xf(r))t.add(i);return t.size===0?e:e.filter(r=>!t.has(r))}function*Zn(n){for(let e=n;e&&(e===$e||V0(e.prototype));){const t=Tl(e),r=t.declaresOwnConfig;yield r?t:{...t,ownNodeConfig:void 0},e=r&&t.ownNodeConfig&&t.ownNodeConfig.extends||qh(e)}}function Bb(n){const e=Pe();Be();const t=e.resolveRegisteredNodeAfterReplacements(e.getRegisteredNode(n)),r=new t.klass;return t.replace===null?r:Kt(r)}const ke=(n,e)=>{let t=n;for(;t!=null&&!Ee(t);){if(e(t))return t;t=t.getParent()}return null};function wo(n,e){const t=[];let r=n.__first;for(;r!==null;){const i=e===null?he(r):e.get(r);i==null&&P(174),t.push(r),r=i.__next}return t}function qh(n){const e=Object.getPrototypeOf(n);if(typeof e=="function"&&e!==Function.prototype)return e;const t=n.prototype&&Object.getPrototypeOf(n.prototype);return t?t.constructor:null}const Kh=new Map;function Kn(n){return T(n)||ie(n)}function er(n){return T(n)||ie(n)}function He(n){const e=n.getLatest();return er(e)?e.__slotHost:null}function Ye(n){const e=He(n);if(e===null)return null;const t=he(e);return T(t)||ie(t)||P(370),t}function jb(n){const e=Ye(n);if(e===null)return null;const t=n.getLatest().__key;for(const[r,i]of Yo(e))if(i===t)return r;return null}function Li(n){let e=n.getLatest();for(;e!==null;){if(He(e)!==null)return e;e=e.getParent()}return null}function El(n){if(n===null)return null;const e=F(n)?n.anchor.getNode():n.getNodes()[0]??null;return e===null?null:Li(e)}function Yo(n){const e=n.getLatest();return Kn(e)&&e.__slots!==null?e.__slots:Kh}function jt(n){return Array.from(Yo(n).keys())}function Wr(n,e){const t=Yo(n).get(e);return t===void 0?null:he(t)}const $b=["__proto__","constructor","prototype"],vf=Symbol("slotMapOwner");function Sf(n){let e=n.__slots;return e!==null&&e[vf]===n||(e=new Map(e),e[vf]=n,n.__slots=e),e}const wf=new WeakMap,Ub=[];function zb(n){for(const{ownNodeConfig:e}of Zn(n)){const t=e&&e.slots;if(t)return t}return Ub}function Wh(n){let e="";for(const t of jt(n)){const r=Wr(n,t);r!==null&&(e+=r.getTextContent())}return e}function Cf(n,e,t){const r=t.get(n),i=t.get(e);return r!==void 0?i!==void 0?r-i:-1:i!==void 0?1:n<e?-1:n>e?1:0}function qb(n,e,t){e!=="__proto__"&&e!=="constructor"&&e!=="prototype"||P(373,e);const r=n.getLatest();if(r.__slots!==null&&r.__slots.get(e)===t.getLatest().__key)return r;(!T(t)&&!ie(t)||t.isInline())&&P(374,t.__key);const i=n.getWritable(),s=Sf(i),o=s.get(e);o!==void 0&&Kb(o);const u=t.getWritable(),a=Ye(u);if(a!==null){const l=jb(u);l!==null&&Sf(a.getWritable()).delete(l),u.__slotHost=null}return tn(u),u.__slotHost=i.__key,s.set(e,u.__key),function(l){const c=l.__slots;if(c===null||c.size<2)return;const h=function(b){let m=wf.get(b);if(m===void 0){const p=zb(b),y=new Map;for(const _ of p)$b.includes(_)&&P(371,b.name,_),y.has(_)&&P(372,b.name,_),y.set(_,y.size);m=y,wf.set(b,m)}return m}(l.constructor);let f=null,d=!0;for(const b of c.keys()){if(f!==null&&Cf(f,b,h)>0){d=!1;break}f=b}if(d)return;const g=Array.from(c).sort(([b],[m])=>Cf(b,m,h));c.clear();for(const[b,m]of g)c.set(b,m)}(i),de()._slotsUsed=!0,Et()._slotsUsed=!0,i}function Kb(n){const e=he(n);if(e===null)return;const t=e.getWritable();er(t)||P(377,n),t.__slotHost=null,t.remove()}const Wb={next:"previous",previous:"next"};class Nl{constructor(e){M(this,"origin");this.origin=e}[Symbol.iterator](){return Hh({hasNext:un,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return fe(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return fe(this.origin,this.direction)}remove(){const e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){const r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(r===null?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){const i=r===this.direction?t:Array.from(t).reverse();let s=this;const o=this.getParentAtCaret(),u=new Map;for(let a=s.getAdjacentCaret();a!==null&&u.size<e;a=a.getAdjacentCaret()){const l=a.origin.getWritable();u.set(l.getKey(),l)}for(const a of i){if(u.size>0){const l=s.getNodeAtCaret();if(l){if(u.delete(l.getKey()),u.delete(a.getKey()),!(l.is(a)||s.origin.is(a))){const c=a.getParent();c&&c.is(o)&&a.remove(),l.replace(a)}}else l===null&&P(263,Array.from(u).join(" "))}else s.insert(a);s=fe(a,this.direction)}for(const a of u.values())a.remove();return this}}class Ri extends Nl{constructor(){super(...arguments);M(this,"type","child")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Ve(t,this.direction)}getParentCaret(t="root"){return fe(kl(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=On(this.direction);return fe(this.getNodeAtCaret(),t)||Ve(this.origin,t)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(t){return t instanceof Ri&&this.direction===t.direction&&this.origin.is(t.origin)}isSamePointCaret(t){return this.isSameNodeCaret(t)}}const Hb={root:Ee,shadowRoot:pe};function On(n){return Wb[n]}function kl(n,e="root"){return n===null||Hb[e](n)?null:He(n)===null?n:null}class tr extends Nl{constructor(){super(...arguments);M(this,"type","sibling")}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:fe(t,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return T(this.origin)?Ve(this.origin,this.direction):null}getParentCaret(t="root"){return fe(kl(this.getParentAtCaret(),t),this.direction)}getFlipped(){const t=On(this.direction);return fe(this.getNodeAtCaret(),t)||Ve(this.origin.getParentOrThrow(),t)}isSamePointCaret(t){return t instanceof tr&&this.direction===t.direction&&this.origin.is(t.origin)}isSameNodeCaret(t){return(t instanceof tr||t instanceof nr)&&this.direction===t.direction&&this.origin.is(t.origin)}}class nr extends Nl{constructor(t,r){super(t);M(this,"type","text");M(this,"offset");this.offset=r}getLatest(){const t=this.origin.getLatest();return t===this.origin?this:Nn(t,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(t="root"){return fe(kl(this.getParentAtCaret(),t),this.direction)}getFlipped(){return Nn(this.origin,On(this.direction),this.offset)}isSamePointCaret(t){return t instanceof nr&&this.direction===t.direction&&this.origin.is(t.origin)&&this.offset===t.offset}isSameNodeCaret(t){return(t instanceof tr||t instanceof nr)&&this.direction===t.direction&&this.origin.is(t.origin)}getSiblingCaret(){return fe(this.origin,this.direction)}}function ut(n){return n instanceof nr}function un(n){return n instanceof tr}function pt(n){return n instanceof Ri}const Vb={next:class extends nr{constructor(){super(...arguments);M(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends nr{constructor(){super(...arguments);M(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Gb={next:class extends tr{constructor(){super(...arguments);M(this,"direction","next")}getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends tr{constructor(){super(...arguments);M(this,"direction","previous")}getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},Jb={next:class extends Ri{constructor(){super(...arguments);M(this,"direction","next")}getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends Ri{constructor(){super(...arguments);M(this,"direction","previous")}getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function fe(n,e){return n?new Gb[e](n):null}function Nn(n,e,t){return n?new Vb[e](n,$t(n,t)):null}function $t(n,e,t="error"){const r=n.getTextContentSize();let i=e==="next"?r:e==="previous"?0:e;return(i<0||i>r)&&(t!=="clamp"&&Ga(284,String(e),String(r),n.getKey()),i=i<0?0:r),i}function Tf(n,e){return new Yb(n,e)}function Ve(n,e){return T(n)?new Jb[e](n):null}function Xb(n){return n&&n.getChildCaret()||n}function Al(n){return n&&Xb(n.getAdjacentCaret())}class Ol{constructor(e,t,r){M(this,"type","node-caret-range");M(this,"direction");M(this,"anchor");M(this,"focus");this.anchor=e,this.focus=t,this.direction=r}getLatest(){const e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new Ol(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){const e=i=>{const s=this[i].getLatest();return ut(s)?function(o,u){const{direction:a,origin:l}=o;return Tf(o,$t(l,u==="focus"?On(a):a)-o.offset)}(s,i):null},t=e("anchor"),r=e("focus");if(t&&r){const{caret:i}=t,{caret:s}=r;if(i.isSameNodeCaret(s))return[Tf(i,s.offset-i.offset),null]}return[t,r]}iterNodeCarets(e="root"){const t=ut(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),i=ut(r),s=o=>o.isSameNodeCaret(r)?null:Al(o)||o.getParentCaret(e);return Hh({hasNext:o=>o!==null&&!(i&&r.isSameNodeCaret(o)),initial:t.isSameNodeCaret(r)?null:s(t),map:o=>o,step:s})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class Yb{constructor(e,t){M(this,"type","slice");M(this,"caret");M(this,"distance");this.caret=e,this.distance=t}getSliceIndices(){const{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){const[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){const{caret:{origin:e,direction:t}}=this,[r,i]=this.getSliceIndices(),s=e.getTextContent();return Nn(e.setTextContent(s.slice(0,r)+s.slice(i)),t,r)}}function Mt(n,e){return n.direction===e?n:n.getFlipped()}function Qo(n){return wt(n,Mt(Ve(we(),On(n.direction)),n.direction))}function Zo(n){return wt(n,n)}function wt(n,e){return n.direction!==e.direction&&P(265),new Ol(n,e,n.direction)}function Hh(n){const{initial:e,hasNext:t,step:r,map:i}=n;let s=e;return{[Symbol.iterator](){return this},next(){if(!t(s))return{done:!0,value:void 0};const o={done:!1,value:i(s)};return s=r(s),o}}}function kn(n,e){const t=Gh(n.origin,e.origin);switch(t===null&&P(275,n.origin.getKey(),e.origin.getKey()),t.type){case"same":{const r=n.type==="text",i=e.type==="text";return r&&i?function(s,o){return Math.sign(s-o)}(n.offset,e.offset):n.type===e.type?0:r?-1:i?1:n.type==="child"?-1:1}case"ancestor":return n.type==="child"?-1:1;case"descendant":return e.type==="child"?1:-1;case"branch":return Vh(t)}}function Vh(n){const{a:e,b:t}=n,r=e.__key,i=t.__key;let s=e,o=t;for(;s&&o;s=s.getNextSibling(),o=o.getNextSibling()){if(s.__key===i)return-1;if(o.__key===r)return 1}return s===null?1:-1}function bs(n,e){return e.is(n)}function Ef(n){return T(n)?[n.getLatest(),null]:[n.getParent(),n.getLatest()]}function Gh(n,e){if(n.is(e))return{commonAncestor:n,type:"same"};const t=new Map;for(let[r,i]=Ef(n);r;i=r,r=r.getParent())t.set(r,i);for(let[r,i]=Ef(e);r;i=r,r=r.getParent()){const s=t.get(r);if(s!==void 0)return s===null?(bs(n,r)||P(276),{commonAncestor:r,type:"ancestor"}):i===null?(bs(e,r)||P(277),{commonAncestor:r,type:"descendant"}):((T(s)||bs(n,s))&&(T(i)||bs(e,i))&&r.is(s.getParent())&&r.is(i.getParent())||P(278),{a:s,b:i,commonAncestor:r,type:"branch"})}return null}function Qb(...n){return n}function Jh(n,e){if(!e||n===e)return n;for(const t in e)if(n[t]!==e[t])return{...n,...e};return n}function Ut(...n){const e=[];for(const t of n)if(t&&typeof t=="string")for(const[r]of t.matchAll(/\S+/g))e.push(r);return e}function Dl(n,...e){const t=Ut(...e);t.length>0&&n.classList.add(...t)}function Xh(n,...e){const t=Ut(...e);t.length>0&&n.classList.remove(...t)}function mt(...n){return()=>{for(let e=n.length-1;e>=0;e--)n[e]();n.length=0}}function Yh(n){const e=Pe().getElementByKey(n.getKey());if(e===null)return null;const t=e.ownerDocument.defaultView;return t===null?null:t.getComputedStyle(e)}function Qh(n){const e=Ee(n)?n:n.getParent();return e&&Yh(e)}function ys(n){const e=Qh(n);return e!==null&&e.direction==="rtl"}function Zh(n,e,t="self"){const r=n.getStartEndPoints();if(e.isSelected(n)&&!St(e)&&r!==null){const[i,s]=r,o=n.isBackward(),u=i.getNode(),a=s.getNode(),l=e.is(u),c=e.is(a);if(l||c){const[h,f]=fa(n),d=u.is(a),g=e.is(o?a:u),b=e.is(o?u:a);let m,p=0;d?(p=h>f?f:h,m=h>f?h:f):g?(p=o?f:h,m=void 0):b&&(p=0,m=o?h:f);const y=e.__text.slice(p,m);y!==e.__text&&(t==="clone"&&(e=Cb(e)),e.__text=y)}}return e}function eg(n){const e=tg(n);return e!==null&&e.writingMode==="vertical-rl"}function tg(n){const e=n.anchor.getNode();return T(e)?Yh(e):Qh(e)}function Nf(n,e){let t=eg(n)?!e:e;ng(n)&&(t=!t);const r=ot(n.focus,t?"previous":"next");if(yh(r))return!1;if(ut(r)&&!oo(r.origin)&&r.origin.isUnmergeable()){const i=r.getNodeAtCaret();if(B(i)&&!oo(i))return!0}for(const i of Qo(r)){if(pt(i))return!i.origin.isInline();if(!T(i.origin)){if(ie(i.origin))return!0;break}}return!1}function Zb(n,e,t,r){n.modify(e?"extend":"move",t,r)}function ng(n){const e=tg(n);return e!==null&&e.direction==="rtl"}function kf(n,e,t){const r=ng(n);let i;i=eg(n)||r?!t:t,Zb(n,e,i,"character")}function ey(n,...e){throw function(t,...r){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(const o of r)s.append("v",o);return i.search=s.toString(),new Error(`Minified Lexical error #${t}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(n,...e)}function ty(n,e){let t=n;for(;t!=null;){if(t instanceof e)return t;t=t.getParent()}return null}function ny(n){const e=ke(n,t=>T(t)&&!t.isInline());return T(e)||ey(4,n.__key),e}function en(n,e){if(n==null)return!1;const t=Object.getPrototypeOf(n);return t!=null&&t.constructor!=null&&t.constructor.name===e.name}function _s(n){let e=null;if(en(n,DragEvent)?e=n.dataTransfer:en(n,ClipboardEvent)&&(e=n.clipboardData),e===null)return[!1,[],!1];const t=e.types,r=t.includes("Files"),i=t.includes("text/html")||t.includes("text/plain");return[r,Array.from(e.files),i]}function Af(n){const e=z();if(!F(e))return!1;const t=new Set,r=e.getNodes();for(let i=0;i<r.length;i++){const s=r[i],o=s.getKey();if(t.has(o))continue;const u=ke(s,l=>T(l)&&!l.isInline());if(u===null)continue;const a=u.getKey();u.canIndent()&&!t.has(a)&&(t.add(a),n(u))}return t.size>0}function ry(n){return(typeof n.nodes=="function"?n.nodes():n.nodes)||[]}const Of={tag:Nr};function iy(){const n=we();n.isEmpty()&&n.append(Re())}const sy={config:{setOptions:Of,updateOptions:Of},init:({$initialEditorState:n=iy})=>({$initialEditorState:n,initialized:!1}),afterRegistration(n,{updateOptions:e,setOptions:t},r){const i=r.getInitResult();if(!i.initialized){i.initialized=!0;const{$initialEditorState:s}=i;if(K1(s))n.setEditorState(s,t);else if(typeof s=="function")n.update(()=>{s(n)},e);else if(s&&(typeof s=="string"||typeof s=="object")){const o=n.parseEditorState(s);n.setEditorState(o,t)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[Vo,En,Go,Ko,Jo]};function xe(n,...e){throw function(t,...r){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(const o of r)s.append("v",o);return i.search=s.toString(),new Error(`Minified Lexical error #${t}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(n,...e)}function oy(){let n;try{n="0.52.0+prod.esm"}catch{}return n??'"<unknown>+source"'}const uy=oy(),ay=new Set(["__proto__","constructor","prototype"]);function rg(n,e){if(n&&e&&!Array.isArray(e)&&typeof n=="object"&&typeof e=="object"){const t=n,r=e;for(const i in r)!ay.has(i)&&Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=rg(t[i],r[i]));return n}return e}function Pu(n){return n.id===0}function ig(n){return n.id===2}const ly=new Set;let cy=class{constructor(e,t){M(this,"builder");M(this,"configs");M(this,"_dependency");M(this,"_peerNameSet");M(this,"extension");M(this,"state");M(this,"_signal");this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{};const t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):Jh;for(const r of this.configs)e=t(e,r);return e}init(e){const t=this.state;ig(t)||xe(306,String(t.id));const r={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},i={...r,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},s=function(u,a,l){return Object.assign(u,{config:a,id:3,registerState:l})}(t,this.mergeConfigs(),r);let o;this.state=s,this.extension.init&&(o=this.extension.init(e,s.config,r)),this.state=function(u,a,l){return Object.assign(u,{id:4,initResult:a,registerState:l})}(s,o,i)}build(e){const t=this.state;let r;t.id!==4&&xe(307,String(t.id),String(5)),this.extension.build&&(r=this.extension.build(e,t.config,t.registerState));const i={...t.registerState,getOutput:()=>r,getSignal:this.getSignal.bind(this)};this.state=function(s,o,u){return Object.assign(s,{id:5,output:o,registerState:u})}(t,r,i)}register(e,t){this._signal=t;const r=this.state;r.id!==5&&xe(308,String(r.id),String(5));const i=this.extension.register&&this.extension.register(e,r.config,r.registerState);return this.state=function(s){return Object.assign(s,{id:6})}(r),()=>{const s=this.state;s.id!==7&&xe(309,String(r.id),String(7)),this.state=function(o){return Object.assign(o,{id:5})}(s),i&&i()}}afterRegistration(e){const t=this.state;let r;return t.id!==6&&xe(310,String(t.id),String(6)),this.extension.afterRegistration&&(r=this.extension.afterRegistration(e,t.config,t.registerState)),this.state=function(i){return Object.assign(i,{id:7})}(t),r}getSignal(){return this._signal===void 0&&xe(311),this._signal}getInitResult(){this.extension.init===void 0&&xe(312,this.extension.name);const e=this.state;return function(t){return t.id>=4}(e)||xe(313,String(e.id),String(4)),e.initResult}getInitPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){const e=this.state;return function(t){return t.id>=3}(e)||xe(314,String(e.id),String(3)),{config:e.config}}getPeer(e){const t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){const t=this.builder.getExtensionRep(e);return t===void 0&&xe(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){const t=this.builder.getExtensionRep(e);return t===void 0&&xe(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){const e=this.state;return function(t){return t.id>=7}(e)||xe(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||ly}getPeerNameSet(){let e=this._peerNameSet;return e||(e=new Set((this.extension.peerDependencies||[]).map(([t])=>t)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){const e=this.state;(function(t){return t.id>=5})(e)||xe(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}};const Df=Symbol.for("@lexical/extension/LexicalBuilder");function Mf(){}function fy(n){throw n}function xs(n){return Array.isArray(n)?n:[n]}const Lu=uy;let eu=class Ws{constructor(e){M(this,"roots");M(this,"extensionNameMap");M(this,"outgoingConfigEdges");M(this,"incomingEdges");M(this,"conflicts");M(this,"_sortedExtensionReps");M(this,"PACKAGE_VERSION");this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=Lu,this.roots=e;for(const t of e)this.addExtension(t)}static fromExtensions(e){const t=[xs(sy)];for(const r of e)t.push(xs(r));return new Ws(t)}static maybeFromEditor(e){const t=e[Df];return t&&(t.PACKAGE_VERSION!==Lu&&xe(292,t.PACKAGE_VERSION,Lu),t instanceof Ws||xe(293)),t}static fromEditor(e){const t=Ws.maybeFromEditor(e);return t===void 0&&xe(294),t}constructEditor(){const{$initialEditorState:e,onError:t,onWarn:r,...i}=this.buildCreateEditorArgs(),s=Object.assign(rb({...i,...t?{onError:o=>{t(o,s)}}:{},...r?{onWarn:o=>{r(o,s)}}:{}}),{[Df]:this});for(const o of this.sortedExtensionReps())o.build(s);return s}buildEditor(){let e=Mf;function t(){try{e()}finally{e=Mf}}const r=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});return e=mt(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){const t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&xe(295,e.name),t}addEdge(e,t,r){const i=this.outgoingConfigEdges.get(e);if(i){const o=i.get(t);o?o.push(...r):i.set(t,r)}else this.outgoingConfigEdges.set(e,new Map([[t,r]]));const s=this.incomingEdges.get(t);s?s.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){this._sortedExtensionReps!==void 0&&xe(296);const t=xs(e),[r]=t;typeof r.name!="string"&&xe(297,typeof r.name);let i=this.extensionNameMap.get(r.name);if(i!==void 0&&i.extension!==r&&xe(298,r.name),!i){i=new cy(this,r),this.extensionNameMap.set(r.name,i);const s=this.conflicts.get(r.name);typeof s=="string"&&xe(299,r.name,s);for(const o of r.conflictsWith||[])this.extensionNameMap.has(o)&&xe(299,r.name,o),this.conflicts.set(o,r.name);for(const o of r.dependencies||[]){const u=xs(o);this.addEdge(r.name,u[0].name,u.slice(1)),this.addExtension(u)}for(const[o,u]of r.peerDependencies||[])this.addEdge(r.name,o,u?[u]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;const e=[],t=(r,i)=>{let s=r.state;if(ig(s))return;const o=r.extension.name;var u;Pu(s)||xe(300,o,i||"[unknown]"),Pu(u=s)||xe(304,String(u.id),String(0)),s=Object.assign(u,{id:1}),r.state=s;const a=this.outgoingConfigEdges.get(o);if(a)for(const l of a.keys()){const c=this.extensionNameMap.get(l);c&&t(c,o)}s=function(l){return function(c){return c.id===1}(l)||xe(305,String(l.id),String(1)),Object.assign(l,{id:2})}(s),r.state=s,e.push(r)};for(const r of this.extensionNameMap.values())Pu(r.state)&&t(r);for(const r of e)for(const[i,s]of this.outgoingConfigEdges.get(r.extension.name)||[])if(s.length>0){const o=this.extensionNameMap.get(i);if(o)for(const u of s)o.configs.add(u)}for(const[r,...i]of this.roots)if(i.length>0){const s=this.extensionNameMap.get(r.name);s===void 0&&xe(301,r.name);for(const o of i)s.configs.add(o)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){const t=this.sortedExtensionReps(),r=new AbortController,i=[()=>r.abort()],s=r.signal;for(const o of t){const u=o.register(e,s);u&&i.push(u)}for(const o of t){const u=o.afterRegistration(e);u&&i.push(u)}return mt(...i)}buildCreateEditorArgs(){const e={},t=new Set,r=new Map,i=new Map,s={},o={},u=this.sortedExtensionReps();for(const c of u){const{extension:h}=c;if(h.onError!==void 0&&(e.onError=h.onError),h.onWarn!==void 0&&(e.onWarn=h.onWarn),h.disableEvents!==void 0&&(e.disableEvents=h.disableEvents),h.parentEditor!==void 0&&(e.parentEditor=h.parentEditor),h.editable!==void 0&&(e.editable=h.editable),h.namespace!==void 0&&(e.namespace=h.namespace),h.$initialEditorState!==void 0&&(e.$initialEditorState=h.$initialEditorState),h.nodes)for(const f of ry(h)){if(typeof f!="function"){const d=r.get(f.replace);d&&xe(302,h.name,f.replace.name,d.extension.name),r.set(f.replace,c)}t.add(f)}if(h.html){if(h.html.export)for(const[f,d]of h.html.export.entries())i.set(f,d);h.html.import&&Object.assign(s,h.html.import)}h.theme&&rg(o,h.theme)}Object.keys(o).length>0&&(e.theme=o),t.size&&(e.nodes=Array.from(t));const a=Object.keys(s).length>0,l=i.size>0;(a||l)&&(e.html={},a&&(e.html.import=s),l&&(e.html.export=i));for(const c of u)c.init(e);return e.onError||(e.onError=fy),e}};function tu(n,e){const t=eu.maybeFromEditor(n);if(!t)return;const r=t.extensionNameMap.get(e);return r?r.getExtensionDependency():void 0}var dy=Symbol.for("preact-signals");function Ml(){if(Wn>1)Wn--;else{var n,e=!1;for(function(){var i=To;for(To=void 0;i!==void 0;){var s=i.S;if(s.v===i.v)for(var o=s.t;o!==void 0;o=o.x)o.i===i.i&&(o.i=s.i);i=i.o}}();vi!==void 0;){var t=vi;for(vi=void 0,Co++;t!==void 0;){var r=t.u;if(t.u=void 0,t.f&=-3,!(8&t.f)&&og(t))try{t.c()}catch(i){e||(n=i,e=!0)}t=r}}if(Co=0,Wn--,e)throw n}}var xi,Te=void 0;function nu(n){var e=Te,t=xi;Te=void 0,xi=void 0;try{return n()}finally{Te=e,xi=t}}var vi=void 0,Wn=0,Co=0,If=0,To=void 0,Eo=0;function sg(n){if(Te!==void 0){var e=n.n;if(e===void 0||e.t!==Te)return e={i:0,S:n,p:Te.s,n:void 0,t:Te,e:void 0,x:void 0,r:e},Te.s!==void 0&&(Te.s.n=e),Te.s=e,n.n=e,32&Te.f&&n.S(e),e;if(e.i===-1)return e.i=0,e.n!==void 0&&(e.n.p=e.p,e.p!==void 0&&(e.p.n=e.n),e.p=Te.s,e.n=void 0,Te.s.n=e,Te.s=e),e}}function rt(n,e){this.v=n,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=e==null?void 0:e.watched,this.Z=e==null?void 0:e.unwatched,this.name=e==null?void 0:e.name}rt.prototype.brand=dy;rt.prototype.h=function(){return!0};rt.prototype.S=function(n){var e=this,t=this.t;t!==n&&n.e===void 0&&(n.x=t,this.t=n,t!==void 0?t.e=n:nu(function(){var r;(r=e.W)==null||r.call(e)}))};rt.prototype.U=function(n){var e=this;if(this.t!==void 0){var t=n.e,r=n.x;t!==void 0&&(t.x=r,n.e=void 0),r!==void 0&&(r.e=t,n.x=void 0),n===this.t&&(this.t=r,r===void 0&&nu(function(){var i;(i=e.Z)==null||i.call(e)}))}};rt.prototype.subscribe=function(n){var e=this;return Pl(function(){var t=e.value;nu(function(){return n(t)})},{name:"sub"})};rt.prototype.valueOf=function(){return this.value};rt.prototype.toString=function(){return this.value+""};rt.prototype.toJSON=function(){return this.value};rt.prototype.peek=function(){var n=this;return nu(function(){return n.value})};Object.defineProperty(rt.prototype,"value",{get:function(){var n=sg(this);return n!==void 0&&(n.i=this.i),this.v},set:function(n){if(n!==this.v){if(Co>100)throw new Error("Cycle detected");(function(t){Wn!==0&&Co===0&&t.l!==If&&(t.l=If,To={S:t,v:t.v,i:t.i,o:To})})(this),this.v=n,this.i++,Eo++,Wn++;try{for(var e=this.t;e!==void 0;e=e.x)e.t.N()}finally{Ml()}}}});function No(n,e){return new rt(n,e)}function og(n){for(var e=n.s;e!==void 0;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function ug(n){for(var e=n.s;e!==void 0;e=e.n){var t=e.S.n;if(t!==void 0&&(e.r=t),e.S.n=e,e.i=-1,e.n===void 0){n.s=e;break}}}function ag(n){for(var e=n.s,t=void 0;e!==void 0;){var r=e.p;e.i===-1?(e.S.U(e),r!==void 0&&(r.n=e.n),e.n!==void 0&&(e.n.p=r)):t=e,e.S.n=e.r,e.r!==void 0&&(e.r=void 0),e=r}n.s=t}function ei(n,e){rt.call(this,void 0,e),this.x=n,this.s=void 0,this.g=Eo-1,this.f=4}ei.prototype=new rt;ei.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Eo))return!0;if(this.g=Eo,this.f|=1,this.i>0&&!og(this))return this.f&=-2,!0;var n=Te;try{ug(this),Te=this;var e=this.x();(16&this.f||this.v!==e||this.i===0)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return Te=n,ag(this),this.f&=-2,!0};ei.prototype.S=function(n){if(this.t===void 0){this.f|=36;for(var e=this.s;e!==void 0;e=e.n)e.S.S(e)}rt.prototype.S.call(this,n)};ei.prototype.U=function(n){if(this.t!==void 0&&(rt.prototype.U.call(this,n),this.t===void 0)){this.f&=-33;for(var e=this.s;e!==void 0;e=e.n)e.S.U(e)}};ei.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var n=this.t;n!==void 0;n=n.x)n.t.N()}};Object.defineProperty(ei.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var n=sg(this);if(this.h(),n!==void 0&&(n.i=this.i),16&this.f)throw this.v;return this.v}});function lg(n){var e=n.m;if(n.m=void 0,typeof e=="function"){Wn++;var t=Te;Te=void 0;try{e()}catch(r){throw n.f&=-2,n.f|=8,Il(n),r}finally{Te=t,Ml()}}}function Il(n){for(var e=n.s;e!==void 0;e=e.n)e.S.U(e);n.x=void 0,n.s=void 0,lg(n)}function hy(n){if(Te!==this)throw new Error("Out-of-order effect");ag(this),Te=n,this.f&=-2,8&this.f&&Il(this),Ml()}function ti(n,e){this.x=n,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=e==null?void 0:e.name,xi&&xi.push(this)}ti.prototype.c=function(){var n=this.S();try{if(8&this.f||this.x===void 0)return;var e=this.x();typeof e=="function"&&(this.m=e)}finally{n()}};ti.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,lg(this),ug(this),Wn++;var n=Te;return Te=this,hy.bind(this,n)};ti.prototype.N=function(){2&this.f||(this.f|=2,this.u=vi,vi=this)};ti.prototype.d=function(){this.f|=8,1&this.f||Il(this)};ti.prototype.dispose=function(){this.d()};function Pl(n,e){var t=new ti(n,e);try{t.c()}catch(i){throw t.d(),i}var r=t.d.bind(t);return r[Symbol.dispose]=r,r}function gy(n,e){let t;return No(n(),{unwatched(){t&&(t(),t=void 0)},watched(){this.value=n(),t=e(this)}})}function py(n,e){const t=eu.fromEditor(n).getExtensionRep(e);return t===void 0&&function(r,...i){throw function(s,...o){const u=new URL("https://lexical.dev/docs/error"),a=new URLSearchParams;a.append("code",s);for(const l of o)a.append("v",l);return u.search=a.toString(),new Error(`Minified Lexical error #${s}; visit ${u.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(r,...i)}(303,e.name),t.getExtensionDependency()}function my(n){return tu(Pe(),n)}function by(n,...e){throw function(t,...r){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(const o of r)s.append("v",o);return i.search=s.toString(),new Error(`Minified Lexical error #${t}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(n,...e)}let Or;function cg(n,e){const{key:t}=e;return n&&t in n?n[t]:e.defaultValue}function fg(n){return Or&&Or.editor===n?Or:void 0}function yy(n,e){if("cfg"in e){const{cfg:t,updater:r}=e;return[t,r(cg(n,t))]}return e}function _y(n,e){let t=e;for(const r of n){const[i,s]=yy(t,r),o=i.key;if(t===e&&cg(t,i)===s)continue;const u=t===e||t===void 0?xy(e):t;u[o]=s,t=u}return t}function xy(n){return Object.create(n||null)}function vy(n,e){return[n,e]}function Sy(n,e,t,r=Pe()){const i=Or,s=fg(r);try{return Or={...s,editor:r,[n]:e},t()}finally{Or=i}}function wy(n,e=()=>{}){return(t,r=Pe())=>i=>{const s=fg(r),o=s&&s[n],u=_y(t,o||e(r));return u&&u!==o?Sy(n,u,i,r):i()}}function Cy(n,e,t,r){return Object.assign(km(Symbol(e),{isEqual:r,parse:t}),{[n]:!0})}function Ty(n){if(!dr(n))return;const e=n;if(e.querySelector("style")===null)return;const t=new Map;function r(i){let s=t.get(i);if(s===void 0){s=new Set;for(let o=0;o<i.style.length;o++)s.add(i.style[o]);t.set(i,s)}return s}try{for(const i of Array.from(e.styleSheets)){let s;try{s=i.cssRules}catch{continue}for(const o of Array.from(s)){if(!en(o,CSSStyleRule))continue;let u;try{u=e.querySelectorAll(o.selectorText)}catch{continue}for(const a of Array.from(u)){if(!ce(a))continue;const l=r(a);for(let c=0;c<o.style.length;c++){const h=o.style[c];l.has(h)||a.style.setProperty(h,o.style.getPropertyValue(h),o.style.getPropertyPriority(h))}}}}}catch{}}const dg="@lexical/html/DOM",hg=Symbol.for("@lexical/html/DOMExportContext");function Ey(n,e,t){return Cy(hg,n,e,t)}const Ny=Ey("isExport",Boolean);function ky(n){const e=tu(n,dg);return e?e.output.defaults:void 0}function Ay(n){const e=tu(n,dg);return e?e.output.runtime:void 0}function Oy(n=Pe()){const e=Ay(n);return e?e.getSessionConfig():ns(n)}const Dy=wy(hg,ky),gg=new Set(["STYLE","SCRIPT"]);function pg(n,e){Ty(e);const t=dr(e)?e.body.childNodes:e.childNodes,r=[],i=[];for(const s of t)if(!gg.has(s.nodeName)){const o=yg(s,n,i,!1);if(o!==null)for(const u of o)r.push(u)}return function(s){for(const o of s)o.getParent()&&o.getNextSibling()instanceof dl&&o.insertAfter(Yi());for(const o of s){const u=o.getParent();u&&u.splice(o.getIndexWithinParent(),1,o.getChildren())}}(i),r}function My(n,e=null,t=Pe()){return Dy([vy(Ny,!0)],t)(()=>{const r=we(),i=Oy(t),s=El(e),o=n.append.bind(n);for(const u of(T(s)?s:r).getChildren())bg(t,u,o,e,i);return n})}function mg(n,e=null){return(typeof document>"u"||typeof window>"u"&&global.window===void 0)&&by(338),P1(n),My(Ie().createElement("div"),e,n).innerHTML}function bg(n,e,t,r=null,i=ns(n)){let s=i.$shouldInclude(e,r,n);const o=i.$shouldExclude(e,r,n);let u=e;r!==null&&B(e)&&(u=Zh(r,e,"clone"));const a=i.$exportDOM(u,n),{element:l,after:c,append:h,$getChildNodes:f}=a;if(!l)return!1;const d=Ie().createDocumentFragment(),g=f?f():T(u)?u.getChildren():[],b=s&&_e(r)&&T(e)?null:r,m=d.append.bind(d);let p=null;for(const y of g){const _=bg(n,y,m,b,i);_&&(p=y),!s&&_&&i.$extractWithChild(e,y,r,"html",n)&&(s=!0)}if(s&&!o){if((ce(l)||ya(l))&&(h?h(d):l.append(d),function(y,_){const x=y.lastChild;if(et(_)&&ce(y)&&Pi(y)&&x!==null&&x.nodeName==="BR"){const S=Ie().createElement("br");S.setAttribute("data-lexical-managed-linebreak","true"),y.append(S)}}(l,p)),ya(l)){if(c){const y=c.call(u,l);y&&l.replaceChildren(y)}t(l)}else if(t(l),c){const y=c.call(u,l);y&&l.replaceWith(y)}}else t(d);return s}function yg(n,e,t,r,i=new Map,s){const o=[];if(gg.has(n.nodeName))return o;let u=null;const a=function(g,b){const{nodeName:m}=g,p=b._htmlConversions.get(m.toLowerCase());let y=null;if(p!==void 0)for(const _ of p){const x=_(g);x!==null&&(y===null||(y.priority||0)<=(x.priority||0))&&(y=x)}return y!==null?y.conversion:null}(n,e),l=a?a(n):null;let c=null;if(l!==null){c=l.after;const g=l.node;if(u=Array.isArray(g)?g[g.length-1]:g,u!==null){for(const[,b]of i)if(u=b(u,s),!u)break;u&&o.push(...Array.isArray(g)?g:[u])}l.forChild!=null&&i.set(n.nodeName,l.forChild)}const h=n.childNodes;let f=[];const d=(u==null||!pe(u))&&(u!=null&&Us(u)||r);for(let g=0;g<h.length;g++)f.push(...yg(h[g],e,t,d,new Map(i),u));if(c!=null&&(f=c(f)),Pi(n)&&(f=function(g,b,m){const p=g.style.textAlign,y=[];let _=[];for(let x=0;x<b.length;x++){const S=b[x];if(Us(S))p&&!S.getFormat()&&S.setFormat(p),y.push(S);else if(_.push(S),x===b.length-1||x<b.length-1&&Us(b[x+1])){const C=m();C.setFormat(p),C.append(..._),y.push(C),_=[]}}return y}(n,f,d?()=>{const g=new dl;return t.push(g),g}:Re)),u==null)if(f.length>0)for(const g of f)o.push(g);else Pi(n)&&function(g){return g.nextSibling!=null&&g.previousSibling!=null&&_a(g.nextSibling)&&_a(g.previousSibling)}(n)&&o.push(Yi());else T(u)&&u.append(...f);return o}function Iy(n,e={}){const t={};for(const r in n){const i=e[r],s=No(i===void 0?n[r]:i);t[r]=s}return t}const Py=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Ll(n,e){if(typeof n=="number")return Number.isFinite(n)?n:e;if(typeof n!="string"||!Py.test(n))return e;const t=Number(n);return Number.isFinite(t)?t:e}function _g(n,e,t,r,i){const s=Ll(n,e);return s>=t&&s<=r&&Number.isInteger(s)?s:e}function Ly(n,e){n.__rel=e.__rel,n.__target=e.__target,n.__title=e.__title,n.__url=e.__url}const Ry=n=>{const e=An(n,"format"),t=ur(n,"format"),r=ar(n,"format");return{exportJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles();return{children:[],rel:i.__rel,target:i.__target,title:i.__title,url:i.__url,direction:i.__dir,format:e[i.__format],indent:i.__indent,textFormat:s!==0&&u?s:void 0,textStyle:o!==""&&u?o:void 0,type:i.__type,version:1}},exportCompactJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles(),a={type:i.__type,children:[]},l=i.__rel;l!=null&&(a.rel=l);const c=i.__target;c!=null&&(a.target=c);const h=i.__title;h!=null&&(a.title=h);const f=i.__url;f!==void 0&&f!==""&&(a.url=f);const d=i.__dir;d!=null&&(a.direction=d);const g=e[i.__format];g!==void 0&&g!==""&&(a.format=g);const b=i.__indent;return b!==void 0&&b!==0&&(a.indent=b),s!==void 0&&s!==0&&u&&(a.textFormat=s),o!==void 0&&o!==""&&u&&(a.textStyle=o),a},updateFromJSON:function(i,s){const o=s.direction;i.__dir=o===null||o==="ltr"||o==="rtl"?o:null;const u=s.format;i.__format=typeof u=="string"&&u in t?t[u]:r,i.__indent=_g(s.indent,0,0,1/0),i.__textFormat=Ll(s.textFormat,0);const a=s.textStyle;i.__textStyle=typeof a=="string"?a:"";const l=s.rel;i.__rel=typeof l=="string"&&l!==""?l:null;const c=s.target;i.__target=typeof c=="string"&&c!==""?c:null;const h=s.title;i.__title=typeof h=="string"&&h!==""?h:null;const f=s.url;return i.__url=typeof f=="string"?f:"",i},afterCloneFrom:Ly}};function Fy(n,e){n.__isUnlinked=e.__isUnlinked}const By=n=>{const e=An(n,"format"),t=ur(n,"format"),r=ar(n,"format");return{exportJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles();return{children:[],isUnlinked:i.__isUnlinked,rel:i.__rel,target:i.__target,title:i.__title,url:i.__url,direction:i.__dir,format:e[i.__format],indent:i.__indent,textFormat:s!==0&&u?s:void 0,textStyle:o!==""&&u?o:void 0,type:i.__type,version:1}},exportCompactJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles(),a={type:i.__type,children:[]},l=i.__isUnlinked;l!==void 0&&l!==!1&&(a.isUnlinked=l);const c=i.__rel;c!=null&&(a.rel=c);const h=i.__target;h!=null&&(a.target=h);const f=i.__title;f!=null&&(a.title=f);const d=i.__url;d!==void 0&&d!==""&&(a.url=d);const g=i.__dir;g!=null&&(a.direction=g);const b=e[i.__format];b!==void 0&&b!==""&&(a.format=b);const m=i.__indent;return m!==void 0&&m!==0&&(a.indent=m),s!==void 0&&s!==0&&u&&(a.textFormat=s),o!==void 0&&o!==""&&u&&(a.textStyle=o),a},updateFromJSON:function(i,s){const o=s.direction;i.__dir=o===null||o==="ltr"||o==="rtl"?o:null;const u=s.format;i.__format=typeof u=="string"&&u in t?t[u]:r,i.__indent=_g(s.indent,0,0,1/0),i.__textFormat=Ll(s.textFormat,0);const a=s.textStyle;i.__textStyle=typeof a=="string"?a:"";const l=s.rel;i.__rel=typeof l=="string"&&l!==""?l:null;const c=s.target;i.__target=typeof c=="string"&&c!==""?c:null;const h=s.title;i.__title=typeof h=="string"&&h!==""?h:null;const f=s.url;i.__url=typeof f=="string"?f:"";const d=s.isUnlinked;return i.__isUnlinked=typeof d=="boolean"&&d,i},afterCloneFrom:Fy}},Pf=new Set(["http:","https:","mailto:","sms:","tel:"]),jy=cr()({rel:Ze(mu(mn(),{defaultAsNull:!0}),{field:"__rel"}),target:Ze(mu(mn(),{defaultAsNull:!0}),{field:"__target"}),title:Ze(mu(mn(),{defaultAsNull:!0}),{field:"__title"}),url:Ze(mn(),{field:"__url",getter:"getURL",setter:"setURL"})});let rr=class extends lt{constructor(t="",r={},i){super(i);M(this,"__url");M(this,"__target");M(this,"__rel");M(this,"__title");const{target:s=null,rel:o=null,title:u=null}=r;this.__url=t,this.__target=s,this.__rel=o,this.__title=u}$config(){return this.config("link",{extends:lt,generated:Ry,importDOM:{a:()=>({conversion:Uy,priority:1})},json:jy})}createDOM(t){const r=Ie().createElement("a");return this.updateLinkDOM(null,r,t),Dl(r,t.theme.link),r}updateLinkDOM(t,r,i){if(Fh(r)){t&&t.__url===this.__url||(r.href=this.sanitizeUrl(this.__url));for(const s of["target","rel","title"]){const o=`__${s}`,u=this[o];t&&t[o]===u||(u?r[s]=u:r.removeAttribute(s))}}}updateDOM(t,r,i){return this.updateLinkDOM(t,r,i),!1}sanitizeUrl(t){const r=t;t=Bf(t);try{const i=new URL(Bf(t));if(!Pf.has(i.protocol))return"about:blank"}catch{const i=r.replace(/[\u0000-\u001F\u007F\s]/g,"").match(/^([a-z][a-z0-9+.-]*):/i);if(i!=null&&!Pf.has(`${i[1].toLowerCase()}:`))return"about:blank"}return t}getURL(){return this.getLatest().__url}setURL(t){const r=this.getWritable();return r.__url=t,r}getTarget(){return this.getLatest().__target}setTarget(t){const r=this.getWritable();return r.__target=t,r}getRel(){return this.getLatest().__rel}setRel(t){const r=this.getWritable();return r.__rel=t,r}getTitle(){return this.getLatest().__title}setTitle(t){const r=this.getWritable();return r.__title=t,r}insertNewAfter(t,r=!0){const i=qe(this);return this.insertAfter(i,r),i}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(t,r,i){if(!F(r))return!1;const s=r.anchor.getNode(),o=r.focus.getNode();return(this.is(s)||this.isParentOf(s))&&(this.is(o)||this.isParentOf(o))&&r.getTextContent().length>0}isEmailURI(){return this.getURL().startsWith("mailto:")}isWebSiteURI(){const t=this.getURL();return t.startsWith("https://")||t.startsWith("http://")}shouldMergeAdjacentLink(t){return this.getType()===t.getType()&&this.getURL()===t.getURL()&&this.getTarget()===t.getTarget()&&this.getRel()===t.getRel()&&this.getTitle()===t.getTitle()}};function Lf(n){const e=ot(n,"next");return[e,e.getFlipped()]}function Rf(n,e){for(const t of e)if(t.origin.isAttached()){const r=ze(t);return void sn(n,r)}}function $y(n){const e=z();let t=null,r=null;function i(){F(e)&&(Rf(e.anchor,t),Rf(e.focus,r),Rr(e))}F(e)&&(t=Lf(e.anchor),r=Lf(e.focus));let s=!1;for(const u of Ve(n,"next")){const a=u.origin;if(T(a)&&!a.isInline()){const l=a.getChildren();if(l.length>0){const c=qe(n);c.append(...l),a.append(c),s=!0}hl(a,Dt(u),{$shouldSplit:()=>!1})}}function o(u,a,l){const[c,h]=u,f=g=>un(g)&&g.origin.is(a);if(!f(c)&&!f(h))return u;const d=ze(Ve(l,"next"));return[d,d.getFlipped()]}if(n.isAttached()){const u=n.getPreviousSibling();if(Je(u)&&u.shouldMergeAdjacentLink(n))return t&&(t=o(t,u,n)),r&&(r=o(r,u,n)),u.append(...n.getChildren()),n.remove(),void i();const a=n.getNextSibling();Je(a)&&n.shouldMergeAdjacentLink(a)&&(t&&(t=o(t,n,a)),r&&(r=o(r,n,a)),n.append(...a.getChildren()),a.remove(),s=!0)}if(s){if(!n.canBeEmpty()&&n.isEmpty()){const u=n.getParent();n.remove(),u&&u.isEmpty()&&u.remove()}i()}}function Uy(n){let e=null;if(Fh(n)){const t=n.textContent;(t!==null&&t!==""||n.children.length>0)&&(e=va(n.getAttribute("href")||"",{rel:n.getAttribute("rel"),target:n.getAttribute("target"),title:n.getAttribute("title")}))}return{node:e}}function va(n="",e){return Kt(new rr(n,e))}function Je(n){return n instanceof rr}const zy=cr()({isUnlinked:Ze(c0(),{field:"__isUnlinked"})});let ru=class extends rr{constructor(t="",r={},i){super(t,r,i);M(this,"__isUnlinked");this.__isUnlinked=r.isUnlinked!==void 0&&r.isUnlinked!==null&&r.isUnlinked}$config(){return this.config("autolink",{extends:rr,generated:By,json:zy})}shouldMergeAdjacentLink(t){return!1}getIsUnlinked(){return this.getLatest().__isUnlinked}setIsUnlinked(t){const r=this.getWritable();return r.__isUnlinked=t,r}createDOM(t){return this.__isUnlinked?Ie().createElement("span"):super.createDOM(t)}updateDOM(t,r,i){return super.updateDOM(t,r,i)||t.__isUnlinked!==this.__isUnlinked}};function qy(n="",e){return Kt(new ru(n,e))}function ht(n){return n instanceof ru}const Dr=J("TOGGLE_LINK_COMMAND");function Ff(n,e){if(n.type==="element"){const t=n.getNode();return T(t)||function(r,...i){throw function(s,...o){const u=new URL("https://lexical.dev/docs/error"),a=new URLSearchParams;a.append("code",s);for(const l of o)a.append("v",l);return u.search=a.toString(),new Error(`Minified Lexical error #${s}; visit ${u.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(r,...i)}(252),t.getChildren()[n.offset+e]||null}return null}function Ru(n,e={}){let t;if(n&&typeof n=="object"){const{url:c,...h}=n;t=c,e={...h,...e}}else t=n;const{target:r,title:i}=e,s=e.rel===void 0?"noreferrer":e.rel,o=z();if(o===null||!F(o)&&!_e(o))return;if(_e(o)){const c=o.getNodes();return c.length===0?void 0:void c.forEach(h=>{if(t===null){const f=ke(h,d=>!ht(d)&&Je(d));f&&(f.insertBefore(h),f.getChildren().length===0&&f.remove())}else{const f=ke(h,d=>!ht(d)&&Je(d));if(f)f.setURL(t),r!==void 0&&f.setTarget(r),s!==void 0&&f.setRel(s),i!==void 0&&f.setTitle(i);else{const d=va(t,{rel:s,target:r,title:i});h.insertBefore(d),d.append(h)}}})}if(o.isCollapsed()&&t===null)for(const c of o.getNodes()){const h=ke(c,f=>!ht(f)&&Je(f));return void(h!==null&&(h.getParentOrThrow().splice(h.getIndexWithinParent(),0,h.getChildren()),h.remove()))}const u=o.extract();if(t===null){const c=new Set;return void u.forEach(h=>{const f=ke(h,d=>!ht(d)&&Je(d));if(f!==null){const d=f.getKey();if(c.has(d))return;(function(g,b){const m=new Set(b.filter(O=>g.isParentOf(O)).map(O=>O.getKey())),p=g.getChildren(),y=O=>m.has(O.getKey())||T(O)&&b.some(D=>g.isParentOf(D)&&O.isParentOf(D)),_=p.filter(y);if(_.length===p.length)return p.forEach(O=>g.insertBefore(O)),void g.remove();const x=p.findIndex(y),S=p.findLastIndex(y),C=x===0,A=S===p.length-1;if(C)_.forEach(O=>g.insertBefore(O));else if(A)for(let O=_.length-1;O>=0;O--)g.insertAfter(_[O]);else{for(let D=_.length-1;D>=0;D--)g.insertAfter(_[D]);const O=p.slice(S+1);if(O.length>0){const D=qe(g);_[_.length-1].insertAfter(D),O.forEach(k=>D.append(k))}}})(f,u),c.add(d)}})}const a=new Set,l=c=>{a.has(c.getKey())||(a.add(c.getKey()),c.setURL(t),r!==void 0&&c.setTarget(r),s!==void 0&&c.setRel(s),i!==void 0&&c.setTitle(i))};if(u.length===1){const c=u[0],h=ke(c,Je);if(h!==null)return l(h)}(function(c){const h=z();if(!F(h))return c();const f=Rr(h),d=f.isBackward(),g=Ff(f.anchor,d?-1:0),b=Ff(f.focus,d?0:-1);if(c(),g||b){const m=z();if(F(m)){const p=m.clone();if(g){const y=g.getParent();y&&p.anchor.set(y.getKey(),g.getIndexWithinParent()+(d?1:0),"element")}if(b){const y=b.getParent();y&&p.focus.set(y.getKey(),b.getIndexWithinParent()+(d?0:1),"element")}Me(Rr(p))}}})(()=>{let c=null;for(const h of u){if(!h.isAttached())continue;const f=ke(h,Je);if(f){l(f);continue}if(T(h)){if(!h.isInline())continue;if(Je(h)){if(!(ht(h)||c!==null&&c.getParentOrThrow().isParentOf(h))){l(h),c=h;continue}for(const g of h.getChildren())h.insertBefore(g);h.remove();continue}}const d=h.getPreviousSibling();Je(d)&&d.is(c)?d.append(h):(c=va(t,{rel:s,target:r,title:i}),h.insertAfter(c),c.append(h))}})}const Ky=/^\+?[0-9\s()-]{5,}$/;function Bf(n){return n.match(/^[a-z][a-z0-9+.-]*:/i)||n.match(/^[/#.]/)?n:n.includes("@")?`mailto:${n}`:Ky.test(n)?`tel:${n}`:`https://${n}`}function Wy(n,e){return mt(n.registerNodeTransform(rr,$y),n.registerCommand(Dr,t=>{const r=e.validateUrl.peek(),i=e.attributes.peek();if(t===null)return Ru(null),!0;if(typeof t=="string")return!(r!==void 0&&!r(t)||(Ru(t,i),0));{const{url:s,...o}=t;return!(r!==void 0&&!r(s)||(Ru(s,{...i,...o}),0))}},oe),Pl(()=>{const t=e.validateUrl.value;if(!t)return;const r=e.attributes.value;return n.registerCommand(Ji,i=>{const s=z();if(!F(s)||s.isCollapsed()||!en(i,ClipboardEvent)||i.clipboardData===null)return!1;const o=i.clipboardData.getData("text");return!!t(o)&&!s.getNodes().some(u=>T(u)||B(u)&&!u.isSimpleText())&&(n.dispatchCommand(Dr,{...r,url:o}),i.preventDefault(),!0)},Zt)}))}function Sa(n,e){for(let t=0;t<e.length;t++){const r=e[t](n);if(r)return r}return null}const xg=/[.,;\s]/;function ko(n,e){return e.test(n)}function vg(n,e){return ko(n[n.length-1],e)}function wa(n,e){return ko(n[0],e)}function Sg(n,e){let t=n.getPreviousSibling();return T(t)&&(t=t.getLastDescendant()),t===null||et(t)||B(t)&&vg(t.getTextContent(),e)}function wg(n,e){let t=n.getNextSibling();return T(t)&&(t=t.getFirstDescendant()),t===null||et(t)||B(t)&&wa(t.getTextContent(),e)}function Hy(n,e,t,r,i){return!!(n>0?ko(r[n-1],t):Sg(i[0],t))&&(e<r.length?ko(r[e],t):wg(i[i.length-1],t))}function Vy(n,e,t){const r=[],i=[],s=[];let o=0,u=0;const a=[...n];for(;a.length>0;){const l=a[0],c=l.getTextContent().length,h=u;u+c<=e?(r.push(l),o+=c):h>=t?s.push(l):i.push(l),u+=c,a.shift()}return[o,r,i,s]}function Gy(n,e,t,r){const i=qy(r.url,r.attributes);if(n.length===1){let s,o=n[0];e===0?[s,o]=o.splitText(t):[,s,o]=o.splitText(e,t);const u=Xe(r.text);return u.setFormat(s.getFormat()),u.setDetail(s.getDetail()),u.setStyle(s.getStyle()),i.append(u),s.replace(i),o}if(n.length>1){const s=n[0];let o,u=s.getTextContent().length;e===0?o=s:[,o]=s.splitText(e);const a=[];let l;for(let d=1;d<n.length;d++){const g=n[d],b=g.getTextContent().length,m=u;if(m<t)if(u+b<=t)a.push(g);else{const[p,y]=g.splitText(t-m);a.push(p),l=y}u+=b}const c=z(),h=c?c.getNodes().find(B):void 0,f=Xe(o.getTextContent());return f.setFormat(o.getFormat()),f.setDetail(o.getDetail()),f.setStyle(o.getStyle()),i.append(f,...a),h&&h===o&&(F(c)?f.select(c.anchor.offset,c.focus.offset):_e(c)&&f.select(0,f.getTextContent().length)),o.replace(i),l}}function jf(n,e,t,r){const i=n.getChildren(),s=i.length;for(let l=0;l<s;l++){const c=i[l];if(!B(c)||!c.isSimpleText())return Si(n),void t(null,n.getURL())}const o=n.getTextContent(),u=Sa(o,e);if(u===null||u.text!==o||!Sg(n,r)||!wg(n,r))return Si(n),void t(null,n.getURL());const a=n.getURL();a!==u.url&&(n.setURL(u.url),t(u.url,a)),u.attributes&&(n.getRel()!==u.attributes.rel&&n.setRel(u.attributes.rel||null),n.getTarget()!==u.attributes.target&&n.setTarget(u.attributes.target||null),n.getTitle()!==u.attributes.title&&n.setTitle(u.attributes.title||null))}function Si(n){const e=n.getChildren();for(let t=e.length-1;t>=0;t--)n.insertAfter(e[t]);return n.remove(),e.map(t=>t.getLatest())}const Jy={changeHandlers:[],excludeParents:[],matchers:[],separatorRegex:xg};function Xy(n,e=Jy){const{matchers:t,changeHandlers:r,excludeParents:i,separatorRegex:s=xg}=e,o=(u,a)=>{for(const l of r)l(u,a)};return mt(n.registerNodeTransform(En,u=>{const a=u.getParentOrThrow(),l=u.getPreviousSibling();if(ht(a))jf(a,t,o,s);else if(!Je(a)&&!i.some(c=>c(a))){if(u.isSimpleText()&&(wa(u.getTextContent(),s)||!ht(l))){const c=function(h){const f=[h];let d=h.getNextSibling();for(;d!==null&&B(d)&&d.isSimpleText()&&(f.push(d),!/[\s]/.test(d.getTextContent()));)d=d.getNextSibling();return f}(u);(function(h,f,d,g){for(const x of h){const S=x.getParent();if(ht(S)&&!S.getIsUnlinked())return}let b=[...h];const m=b.map(x=>x.getTextContent()).join("");let p,y=m,_=0;for(;(p=Sa(y,f))&&p!==null;){const x=p.index,S=x+p.length;if(Hy(_+x,_+S,g,m,b)){const[C,,A,O]=Vy(b,_+x,_+S);let D=!1;for(const v of A){const E=v.getParent();if(ht(E)&&!E.getIsUnlinked()){D=!0;break}}if(D){_+=S,y=y.substring(S);continue}const k=Gy(A,_+x-C,_+S-C,p);b=k?[k,...O]:O,d(p.url,null),_=0}else _+=S;y=y.substring(S)}})(c,t,o,s)}(function(c,h,f,d){const g=c.getParent(),b=c.getPreviousSibling(),m=c.getNextSibling(),p=c.getTextContent();if(!ht(g)||g.getIsUnlinked()){if(ht(b)&&!b.getIsUnlinked()&&b.is(c.getPreviousSibling())&&c.getParent()===b.getParent()){if(!wa(p,d))return Si(b),void f(null,b.getURL());if(y=p,b.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(y):/^\.[a-zA-Z0-9]{1,}/.test(y)){const _=b.getTextContent()+p,x=Sa(_,h);x!==null&&x.text===_&&(b.append(c),jf(b,h,f,d),f(null,b.getURL()))}}var y;!ht(m)||m.getIsUnlinked()||vg(p,d)||m.is(c.getNextSibling())&&c.getParent()===m.getParent()&&(Si(m),f(null,m.getURL()))}})(u,t,o,s)}}),n.registerCommand(Dr,u=>{const a=z();return!(u!==null||!F(a))&&(a.extract().forEach(l=>{const c=l.getParent();ht(c)&&(c.setIsUnlinked(!c.getIsUnlinked()),c.markDirty())}),!1)},Zt))}function pn(n,...e){throw function(t,...r){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(const o of r)s.append("v",o);return i.search=s.toString(),new Error(`Minified Lexical error #${t}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(n,...e)}function Ca(n){let e=1,t=n.getParent();for(;t!=null;){if(ue(t)){const r=t.getParent();if(ne(r)){e++,t=r.getParent();continue}pn(40)}return e}return e}function Ta(n){const e=n.getParent();ne(e)||pn(40);let t=e,r=e;for(;r!==null;)r=r.getParent(),ne(r)&&(t=r);return t}function Cg(n){let e=[];const t=n.getChildren().filter(ue);for(let r=0;r<t.length;r++){const i=t[r],s=i.getFirstChild();ne(s)?e=e.concat(Cg(s)):e.push(i)}return e}function vt(n){return ue(n)&&ne(n.getFirstChild())}function Tg(n,e){return e.getValue()}function Eg(n,e){return ue(n)&&(e.length===0||e.length===1&&n.is(e[0])&&n.getChildrenSize()===0)}function $f(n,e){return ne(n)?qe(n).setListType(e):Hn(e)}function Uf(n){const e=z();if(e!==null){let t=e.getNodes();if(F(e)){const[i]=e.getStartEndPoints(),s=i.getNode(),o=s.getParent();if(pe(s)){const u=s.getFirstChild();if(u)t=u.selectStart().getNodes();else{const a=Re();s.append(a),t=a.select().getNodes()}}else if(Eg(s,t)){if(pe(o)){const u=Hn(n);s.replace(u);const a=rs();T(s)&&(a.setFormat(s.getFormatType()),a.setIndent(s.getIndent())),u.append(a)}else if(ue(s)){const u=s.getParentOrThrow();if(Ye(u)===null){const a=$f(u,n);ir(a,u.getChildren()),u.replace(a)}}return}}const r=new Set;for(let i=0;i<t.length;i++){const s=t[i];if(T(s)&&s.isEmpty()&&!ue(s)&&Ye(s)===null&&!r.has(s.getKey())){zf(s,n);continue}let o=wh(s)?s.getParent():ue(s)&&s.isEmpty()?s:null;for(;o!=null;){const u=o.getKey();if(ne(o)){if(!r.has(u)&&Ye(o)===null){const a=$f(o,n);ir(a,o.getChildren()),o.replace(a),r.add(u)}break}{const a=o.getParent();if(pe(a)&&!r.has(u)){r.add(u),zf(o,n);break}o=a}}}}}function ir(n,e){n.splice(n.getChildrenSize(),0,e)}function zf(n,e){if(ne(n))return n;const t=n.getPreviousSibling(),r=n.getNextSibling(),i=rs();let s;if(ir(i,n.getChildren()),ne(t)&&e===t.getListType())t.append(i),ne(r)&&e===r.getListType()&&(ir(t,r.getChildren()),r.remove()),s=t;else if(ne(r)&&e===r.getListType())r.getFirstChildOrThrow().insertBefore(i),s=r;else{const u=Hn(e);u.append(i),n.replace(u),s=u}i.setFormat(n.getFormatType()),i.setIndent(n.getIndent());const o=z();return F(o)&&(s.getKey()===o.anchor.key&&o.anchor.set(i.getKey(),o.anchor.offset,"element"),s.getKey()===o.focus.key&&o.focus.set(i.getKey(),o.focus.offset,"element")),n.remove(),s}function Rl(n,e){const t=n.getLastChild(),r=e.getFirstChild();t&&r&&vt(t)&&vt(r)&&t.getFirstChild().getListType()===r.getFirstChild().getListType()&&(Rl(t.getFirstChild(),r.getFirstChild()),r.remove());const i=e.getChildren();i.length>0&&n.append(...i),e.remove()}function Yy(){const n=z();if(F(n)){const e=new Set,t=n.getNodes(),r=n.anchor.getNode();if(Eg(r,t))e.add(Ta(r));else for(let i=0;i<t.length;i++){const s=t[i];if(wh(s)){const o=ty(s,ni);o!=null&&e.add(Ta(o))}}for(const i of e){if(Ye(i)!==null)continue;let s=i;const o=Cg(i);for(const u of o){const a=Re().setTextStyle(n.style).setTextFormat(n.format);a.setFormat(u.getFormatType()).setIndent(u.getIndent()).setDirection(u.getDirection()).setStyle(u.getStyle()),ir(a,u.getChildren()),s.insertAfter(a),s=a,u.__key===n.anchor.key&&sn(n.anchor,ze(Ve(a,"next"))),u.__key===n.focus.key&&sn(n.focus,ze(Ve(a,"next"))),u.remove()}i.remove()}}}function Ng(n){const e=n.getListType()!=="check";let t=n.getStart();for(const r of n.getChildren())ue(r)&&(r.getValue()!==t&&r.setValue(t),e&&r.getLatest().__checked!=null&&r.setChecked(void 0),ne(r.getFirstChild())||t++)}function Qy(n){const e=new Set;if(vt(n)||e.has(n.getKey()))return;const t=n.getParent(),r=n.getNextSibling(),i=n.getPreviousSibling();if(vt(r)&&vt(i)){const s=i.getFirstChild();if(ne(s)){s.append(n);const o=r.getFirstChild();ne(o)&&s.getListType()===o.getListType()&&(ir(s,o.getChildren()),r.remove(),e.add(r.getKey()))}}else if(vt(r)){const s=r.getFirstChild();if(ne(s)){const o=s.getFirstChild();o!==null&&o.insertBefore(n)}}else if(vt(i)){const s=i.getFirstChild();ne(s)&&s.append(n)}else if(ne(t)){const s=qe(n),o=qe(t);s.append(o),o.append(n),i?i.insertAfter(s):r?r.insertBefore(s):t.append(s)}}function qf(n){if(vt(n))return;const e=n.getParent(),t=e?e.getParent():void 0;if(ne(t?t.getParent():void 0)&&ue(t)&&ne(e)){const r=e?e.getFirstChild():void 0,i=e?e.getLastChild():void 0;if(n.is(r))t.insertBefore(n),e.isEmpty()&&t.remove();else if(n.is(i))t.insertAfter(n),e.isEmpty()&&t.remove();else{const s=qe(n),o=qe(e);s.append(o),n.getPreviousSiblings().forEach(l=>o.append(l));const u=qe(n),a=qe(e);u.append(a),ir(a,n.getNextSiblings()),t.insertBefore(s),t.insertAfter(u),t.replace(n)}}}function Zy(n=!1){const e=z();if(!F(e)||!e.isCollapsed())return!1;const t=e.anchor.getNode();let r=null;if(ue(t)&&t.getChildrenSize()===0)r=t;else if(B(t)){const l=t.getParent();ue(l)&&l.getChildren().every(c=>B(c)&&c.getTextContent().trim()==="")&&(r=l)}if(r===null)return!1;const i=Ta(r),s=r.getParent();ne(s)||pn(40);const o=s.getParent();let u;if(pe(o))u=Re(),i.insertAfter(u);else{if(!ue(o))return!1;u=qe(o),o.insertAfter(u)}u.setTextStyle(e.style).setTextFormat(e.format).select();const a=r.getNextSiblings();if(a.length>0){const l=n?Tg(0,r):1,c=qe(s).setStart(l);if(ue(u)){const h=qe(u);h.append(c),u.insertAfter(h)}else u.insertAfter(c);c.append(...a)}return function(l){let c=l;for(;c.getNextSibling()==null&&c.getPreviousSibling()==null;){const h=c.getParent();if(h==null||!ue(h)&&!ne(h))break;c=h}c.remove()}(r),!0}const e_=/^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;function Mr(n,e){if(typeof n=="number")return Number.isFinite(n)?n:e;if(typeof n!="string"||!e_.test(n))return e;const t=Number(n);return Number.isFinite(t)?t:e}function t_(n,e){n.__listType=e.__listType,n.__start=e.__start,n.__tag=e.__tag}const n_=n=>{const e=An(n,"format"),t=ur(n,"format"),r=ar(n,"format"),i=Zs(n,"listType",0);return{exportJSON:function(s){const o=s.__textFormat,u=s.__textStyle,a=(o!==0||u!=="")&&s.shouldSerializeTextStyles();return{children:[],listType:s.__listType,start:s.__start,tag:s.__tag,direction:s.__dir,format:e[s.__format],indent:s.__indent,textFormat:o!==0&&a?o:void 0,textStyle:u!==""&&a?u:void 0,type:s.__type,version:1}},exportCompactJSON:function(s){const o=s.__textFormat,u=s.__textStyle,a=(o!==0||u!=="")&&s.shouldSerializeTextStyles(),l={type:s.__type,children:[]},c=s.__listType;c!==void 0&&c!=="number"&&(l.listType=c);const h=s.__start;h!==void 0&&h!==1&&(l.start=h);const f=s.__dir;f!=null&&(l.direction=f);const d=e[s.__format];d!==void 0&&d!==""&&(l.format=d);const g=s.__indent;return g!==void 0&&g!==0&&(l.indent=g),o!==void 0&&o!==0&&a&&(l.textFormat=o),u!==void 0&&u!==""&&a&&(l.textStyle=u),l},updateFromJSON:function(s,o){const u=o.direction;s.__dir=u===null||u==="ltr"||u==="rtl"?u:null;const a=o.format;s.__format=typeof a=="string"&&a in t?t[a]:r,s.__indent=function(h){const f=Mr(h,0);return f>=0&&f<=1/0&&Number.isInteger(f)?f:0}(o.indent),s.__textFormat=Mr(o.textFormat,0);const l=o.textStyle;s.__textStyle=typeof l=="string"?l:"";const c=o.listType;return s.setListType(typeof c=="string"&&c in i?i[c]:c==="number"||c==="bullet"||c==="check"?c:"number"),s.__start=Mr(o.start,1),s},afterCloneFrom:t_}};function r_(n,e){n.__checked=e.__checked,n.__value=e.__value}const i_=n=>{const e=An(n,"format"),t=ur(n,"format"),r=ar(n,"format");return{exportJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles();return{children:[],checked:i.getChecked(),indent:i.getIndent(),value:i.__value,direction:i.__dir,format:e[i.__format],textFormat:s!==0&&u?s:void 0,textStyle:o!==""&&u?o:void 0,type:i.__type,version:1}},exportCompactJSON:function(i){const s=i.__textFormat,o=i.__textStyle,u=(s!==0||o!=="")&&i.shouldSerializeTextStyles(),a={type:i.__type,children:[]},l=i.getChecked();l!==void 0&&(a.checked=l);const c=i.getIndent();c!==void 0&&c!==0&&(a.indent=c);const h=i.__value;h!==void 0&&h!==1&&(a.value=h);const f=i.__dir;f!=null&&(a.direction=f);const d=e[i.__format];return d!==void 0&&d!==""&&(a.format=d),s!==void 0&&s!==0&&u&&(a.textFormat=s),o!==void 0&&o!==""&&u&&(a.textStyle=o),a},updateFromJSON:function(i,s){const o=s.direction;i.__dir=o===null||o==="ltr"||o==="rtl"?o:null;const u=s.format;i.__format=typeof u=="string"&&u in t?t[u]:r,i.setIndent(function(c){const h=Mr(c,NaN);return Number.isFinite(h)&&Number.isInteger(h)?h<0?0:h>128?128:h:0}(s.indent)),i.__textFormat=Mr(s.textFormat,0);const a=s.textStyle;i.__textStyle=typeof a=="string"?a:"";const l=s.checked;return i.__checked=l===void 0?void 0:typeof l=="boolean"&&l,i.__value=Mr(s.value,1),i},afterCloneFrom:r_}},s_=cr()({checked:Sn(Em(c0()),{setter:{field:"__checked"}}),indent:Tn(0,{clamp:!0,integer:!0,max:128,min:0}),value:Ze(Tn(1),{field:"__value"})});class ni extends lt{constructor(t=1,r=void 0,i){super(i);M(this,"__value");M(this,"__checked");this.__value=t===void 0?1:t,this.__checked=r}$config(){return this.config("listitem",{$transform:t=>{const r=t.getParent();if(ne(r))r.getListType()!=="check"&&t.getChecked()!=null&&t.setChecked(void 0);else if(r){const i=t.createParentElementNode();ne(i)||pn(340);const s=[t];for(const o of["previous","next"]){s.reverse();for(const{origin:u}of fe(t,o)){if(!ue(u))break;s.push(u)}}t.insertBefore(i),i.splice(0,0,s),pe(r)||(hl(i,Dt(fe(i,"next")),{$shouldSplit:()=>!1,removeEmptyDestination:!0}),r.isEmpty()&&r.isAttached()&&r.remove())}},extends:lt,generated:i_,importDOM:{li:()=>({conversion:o_,priority:0})},json:s_})}createDOM(t){const r=Ie().createElement("li");return this.updateListItemDOM(null,r,t),r}updateListItemDOM(t,r,i){(function(u,a){const l=a.getParent();!ne(l)||l.getListType()!=="check"||ne(a.getFirstChild())?(u.removeAttribute("role"),u.removeAttribute("tabIndex"),u.removeAttribute("aria-checked")):(u.setAttribute("role","checkbox"),u.setAttribute("tabIndex","-1"),u.setAttribute("aria-checked",a.getChecked()?"true":"false"))})(r,this),r.value=this.__value,function(u,a,l){const c=a.list;if(!c)return;const h=c.listitem,f=c.nested&&c.nested.listitem,d=l.getParent(),g=ne(d)&&d.getListType()==="check",b=l.getChecked(),m=l.getChildren().some(_=>ne(_)),p=[];c.listitemChecked!==void 0&&p.push(c.listitemChecked),c.listitemUnchecked!==void 0&&p.push(c.listitemUnchecked),f!==void 0&&p.push(...Ut(f)),p.length>0&&Xh(u,...p);const y=[];if(h!==void 0&&y.push(...Ut(h)),g){const _=b?c.listitemChecked:c.listitemUnchecked;_!==void 0&&y.push(_)}f!==void 0&&m&&y.push(...Ut(f)),y.length>0&&Dl(u,...y)}(r,i.theme,this);const s=t?t.__style:"",o=this.__style;s!==o&&la(r.style,o,s),function(u,a,l){const c=a.__textStyle,h=l?l.__textStyle:"";if(l!==null&&h===c)return;const f=so(c);for(const d in f)u.style.setProperty(`--listitem-marker-${d}`,f[d]);if(h!=="")for(const d in so(h))d in f||u.style.removeProperty(`--listitem-marker-${d}`)}(r,this,t)}updateDOM(t,r,i){const s=r;return this.updateListItemDOM(t,s,i),!1}exportDOM(t){const r=this.createDOM(t._config),i=this.getFormatType();i&&(r.style.textAlign=i);const s=this.getDirection();return s&&(r.dir=s),vt(this)?{after(o){if(ce(o)){const u=o.previousElementSibling;if(ce(u)&&u.nodeName==="LI"){for(;o.firstChild;)u.append(o.firstChild);o.remove()}}return o},element:r}:{element:r}}append(...t){for(let r=0;r<t.length;r++){const i=t[r];if(T(i)&&this.canMergeWith(i)){const s=i.getChildren();this.append(...s),i.remove()}else super.append(i)}return this}replace(t,r){if(ue(t))return super.replace(t);this.setIndent(0);const i=this.getParentOrThrow();if(!ne(i))return t;if(i.__first===this.getKey())i.insertBefore(t);else if(i.__last===this.getKey())i.insertAfter(t);else{const u=qe(i);let a=this.getNextSibling();for(;a;){const l=a;a=a.getNextSibling(),u.append(l)}i.insertAfter(t),t.insertAfter(u)}const s=this.__key;let o=0;if(r&&(T(t)||pn(139),o=t.getChildrenSize(),t.splice(o,0,this.getChildren())),r&&T(t)){const u=z();if(F(u))for(const a of u.getStartEndPoints())a.key===s&&a.type==="element"&&a.set(t.getKey(),o+a.offset,"element")}return this.remove(),i.getChildrenSize()===0&&i.remove(),t}insertAfter(t,r=!0){const i=this.getParentOrThrow();if(ne(i)||pn(39),ue(t))return super.insertAfter(t,r);const s=this.getNextSiblings();if(i.insertAfter(t,r),s.length!==0){const o=qe(i),u=s[0];o.getListType()==="number"&&ue(u)&&o.setStart(Tg(0,u)),s.forEach(a=>o.append(a)),t.insertAfter(o,r)}return t}remove(t){const r=this.getPreviousSibling(),i=this.getNextSibling();super.remove(t),r&&i&&vt(r)&&vt(i)&&r.getFirstChild().getListType()===i.getFirstChild().getListType()&&(Rl(r.getFirstChild(),i.getFirstChild()),i.remove())}resetOnCopyNodeFrom(t){super.resetOnCopyNodeFrom(t),t.getChecked()&&this.setChecked(!1)}insertNewAfter(t,r=!0){const i=qe(this);return this.insertAfter(i,r),i}collapseAtStart(t){if(vt(this))return!1;const r=this.getParentOrThrow();if(ue(r.getParentOrThrow()))return qf(this),!0;const i=Re().append(...this.getChildren()),s=this.getNextSiblings();if(s.length>0){const o=qe(r);o.append(...s),r.insertAfter(o)}return r.insertAfter(i),this.remove(),r.getChildrenSize()===0&&r.remove(),i.selectStart(),!0}getValue(){return this.getLatest().__value}setValue(t){const r=this.getWritable();return r.__value=t,r}getChecked(){const t=this.getLatest();let r;const i=this.getParent();return ne(i)&&(r=i.getListType()),r==="check"?!!t.__checked:void 0}setChecked(t){const r=this.getWritable();return r.__checked=t,r}toggleChecked(){const t=this.getWritable();return t.setChecked(!t.__checked)}getIndent(){const t=this.getParent();if(t===null||!this.isAttached())return this.getLatest().__indent;let r=t.getParentOrThrow(),i=0;for(;ue(r);)r=r.getParentOrThrow().getParentOrThrow(),i++;return i}setIndent(t){typeof t!="number"&&pn(117),(t=Math.floor(t))>=0||pn(199);const r=t;let i=this.getIndent();for(;i!==r;)i<r?(Qy(this),i++):(qf(this),i--);return this}canInsertAfter(t){return ue(t)}canReplaceWith(t){return ue(t)}canMergeWith(t){return ue(t)||Zi(t)}extractWithChild(t,r){if(!F(r))return!1;const i=r.anchor.getNode(),s=r.focus.getNode();return this.isParentOf(i)&&this.isParentOf(s)&&this.getTextContent().length===r.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return Hn("bullet")}canMergeWhenEmpty(){return!0}}function o_(n){if(n.classList.contains("task-list-item")){for(const r of n.children)if(r.tagName==="INPUT")return Kf(r)}if(n.classList.contains("joplin-checkbox")){for(const r of n.children)if(r.classList.contains("checkbox-wrapper")&&r.children.length>0&&r.children[0].tagName==="INPUT")return Kf(r.children[0])}const e=n.getAttribute("aria-checked"),t=rs(e==="true"||e!=="false"&&void 0);return jh(t,n),{after:kg.bind(null,t),node:Cl(t,n)}}function Kf(n){if(n.getAttribute("type")!=="checkbox")return{node:null};const e=rs(n.hasAttribute("checked"));return{after:kg.bind(null,e),node:e}}function kg(n,e){const t=e[0];return e.length===1&&Zi(t)&&!n.getFormatType()&&t.getFormatType()?(n.setFormat(t.getFormatType()),t.getChildren()):e}function rs(n){return Kt(new ni(void 0,n))}function ue(n){return n instanceof ni}const Ag={ol:"number",ul:"bullet"},u_=cr()({listType:Sn(Ju(Lr(["number","bullet","check"]),Ag),{getter:{field:"__listType"}}),start:Ze(Tn(1),{field:"__start"}),tag:Sn(Lr(["ul","ol"]),{getter:{field:"__tag"},setter:null})});class is extends lt{constructor(t="number",r=1,i){super(i);M(this,"__tag");M(this,"__start");M(this,"__listType");const s=Ag[t]||t;this.__listType=s,this.__tag=s==="number"?"ol":"ul",this.__start=r}$config(){return this.config("list",{$transform:t=>{(function(r){const i=r.getNextSibling();ne(i)&&r.getListType()===i.getListType()&&Rl(r,i)})(t),Ng(t)},extends:lt,generated:n_,importDOM:{ol:()=>({conversion:Hf,priority:0}),ul:()=>({conversion:Hf,priority:0})},json:u_})}getTag(){return this.getLatest().__tag}setListType(t){const r=this.getWritable();return r.__listType=t,r.__tag=t==="number"?"ol":"ul",r}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(t){const r=this.getWritable();return r.__start=t,r}createDOM(t,r){const i=this.__tag,s=Ie().createElement(i);return this.__start!==1&&s.setAttribute("start",String(this.__start)),s.__lexicalListType=this.__listType,Wf(s,t.theme,this),s}updateDOM(t,r,i){return t.__tag!==this.__tag||t.__listType!==this.__listType||(Wf(r,i.theme,this),t.__start!==this.__start&&r.setAttribute("start",String(this.__start)),!1)}exportDOM(t){const r=this.createDOM(t._config,t);if(ce(r)){this.__start!==1&&r.setAttribute("start",String(this.__start)),this.__listType==="check"&&r.setAttribute("__lexicalListType","check");const i=this.getDirection();i&&(r.dir=i)}return{element:r}}canBeEmpty(){return!1}canIndent(){return!1}splice(t,r,i){let s=i;for(let o=0;o<i.length;o++){const u=i[o];if(!ue(u)){s===i&&(s=[...i]);const a=this.createListItemNode();!T(u)||ne(u)||u.isInline()?a.append(u):a.append(...u.getChildren()),s[o]=a}}return super.splice(t,r,s)}extractWithChild(t){return ue(t)}createListItemNode(){return rs()}}function Wf(n,e,t){const r=[],i=[],s=e.list;if(s!==void 0){const o=s[`${t.__tag}Depth`]||[],u=Ca(t)-1,a=u%o.length,l=o[a],c=s[t.__tag];let h;const f=s.nested,d=s.checklist;if(f!==void 0&&f.list&&(h=f.list),c!==void 0&&r.push(c),d!==void 0&&t.__listType==="check"&&r.push(d),l!==void 0){r.push(...Ut(l));for(let g=0;g<o.length;g++)g!==a&&i.push(...Ut(o[g]))}if(h!==void 0){const g=Ut(h);u>1?r.push(...g):i.push(...g)}}i.length>0&&Xh(n,...i),r.length>0&&Dl(n,...r)}function Hf(n){let e;if(function(t){return ce(t)&&t.nodeName.toLowerCase()==="ol"}(n)){const t=n.start;e=Hn("number",t)}else e=function(t){if(t.getAttribute("__lexicallisttype")==="check"||t.classList.contains("contains-task-list")||t.getAttribute("data-is-checklist")==="1")return!0;for(const r of t.childNodes)if(ce(r)&&r.hasAttribute("aria-checked"))return!0;return!1}(n)?Hn("check"):Hn("bullet");return Cl(e,n),{after:t=>function(r,i){const s=i.createListItemNode.bind(i),o=[];for(let u=0;u<r.length;u++){const a=r[u];if(ue(a)){o.push(a);const l=a.getChildren();l.length>1&&l.forEach(c=>{ne(c)&&o.push(s().append(c))})}else o.push(s().append(a))}return o}(t,e),node:e}}function Hn(n="number",e=1){return Kt(new is(n,e))}function ne(n){return n instanceof is}const a_=J("UPDATE_LIST_START_COMMAND"),Og=J("INSERT_UNORDERED_LIST_COMMAND"),l_=J("INSERT_ORDERED_LIST_COMMAND"),Dg=J("REMOVE_LIST_COMMAND");function Vf(n,e){return mt(n.registerCommand(l_,()=>(Uf("number"),!0),Zt),n.registerCommand(a_,t=>{const{listNodeKey:r,newStart:i}=t,s=he(r);return!!ne(s)&&(s.getListType()==="number"&&(s.setStart(i),Ng(s)),!0)},Zt),n.registerCommand(Og,()=>(Uf("bullet"),!0),Zt),n.registerCommand(Dg,()=>(Yy(),!0),Zt),n.registerCommand(ki,()=>Zy(!(!e||!e.restoreNumbering)),Zt),n.registerCommand(sl,t=>{const r=z();if(!F(r)||!r.isCollapsed())return!1;const{anchor:i}=r;if(i.offset!==0)return!1;let s=i.getNode();for(;!ue(s);){if(s.getPreviousSibling()!==null)return!1;const o=s.getParent();if(o===null)return!1;s=o}return!(!ue(s)||!s.collapseAtStart(r)||(t.preventDefault(),0))},tb),n.registerNodeTransform(ni,t=>{const r=t.getFirstChild();if(r){if(B(r)){const i=r.getStyle(),s=r.getFormat();t.getTextStyle()!==i&&t.setTextStyle(i),t.getTextFormat()!==s&&t.setTextFormat(s)}}else{const i=z();F(i)&&(i.style!==t.getTextStyle()||i.format!==t.getTextFormat())&&i.isCollapsed()&&t.is(i.anchor.getNode())&&t.setTextStyle(i.style).setTextFormat(i.format)}}),n.registerNodeTransform(En,t=>{const r=t.getParent();if(ue(r)&&t.is(r.getFirstChild())){const i=t.getStyle(),s=t.getFormat();i===r.getTextStyle()&&s===r.getTextFormat()||r.setTextStyle(i).setTextFormat(s)}}))}function c_(n){const e=t=>{const r=t.getParent();if(ne(t.getFirstChild())||!ne(r))return;const i=ke(t,s=>ue(s)&&ne(s.getParent())&&ue(s.getPreviousSibling()));if(i===null&&t.getIndent()>0)t.setIndent(0);else if(ue(i)){const s=i.getPreviousSibling();if(ue(s)){const o=function(a){let l=a,c=l.getFirstChild();for(;ne(c);){const h=c.getLastChild();if(!ue(h))break;l=h,c=l.getFirstChild()}return l}(s),u=o.getParent();if(ne(u)){const a=Ca(u);a+1<Ca(r)&&t.setIndent(a)}}}};return n.registerNodeTransform(is,t=>{const r=[t];for(;r.length>0;){const i=r.shift();if(ne(i)){for(const s of i.getChildren())if(ue(s)){e(s);const o=s.getFirstChild();ne(o)&&r.push(o)}}}})}const Mg=q.createContext(null);function bt(){const n=q.useContext(Mg);return n==null&&function(e,...t){throw function(r,...i){const s=new URL("https://lexical.dev/docs/error"),o=new URLSearchParams;o.append("code",r);for(const u of i)o.append("v",u);return s.search=o.toString(),new Error(`Minified Lexical error #${r}; visit ${s.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(e,...t)}(8),n}function f_({defaultSelection:n}){const[e]=bt();return q.useEffect(()=>{e.focus(()=>{const t=e.getRootElement(),r=t!==null?xo(t):null;t===null||r!==null&&t.contains(r)||t.focus({preventScroll:!0})},{defaultSelection:n})},[n,e]),null}function d_({matchers:n,onChange:e,excludeParents:t}){const[r]=bt();return function(i,s,o,u){q.useEffect(()=>{i.hasNodes([ru])||function(a,...l){throw function(c,...h){const f=new URL("https://lexical.dev/docs/error"),d=new URLSearchParams;d.append("code",c);for(const g of h)d.append("v",g);return f.search=d.toString(),new Error(`Minified Lexical error #${c}; visit ${f.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(a,...l)}(77)}),q.useEffect(()=>Xy(i,{changeHandlers:o?[o]:[],excludeParents:u??[],matchers:s}),[i,s,o,u])}(r,n,e,t),null}function h_(){return we().getTextContent()}function g_(n,e=!0){if(n)return!1;let t=h_();return e&&(t=t.trim()),t===""}function p_(n){if(!g_(n,!1))return!1;const e=we().getChildren(),t=e.length;if(t>1)return!1;for(let r=0;r<t;r++){const i=e[r];if(ie(i))return!1;if(T(i)){if(!Zi(i)||i.__indent!==0)return!1;const s=i.getChildren(),o=s.length;for(let u=0;u<o;u++){const a=s[u];if(!B(a))return!1}}}return!0}function Ig(n){return()=>p_(n)}const Ea=It?q.useLayoutEffect:q.useEffect;function m_({editor:n,ariaActiveDescendant:e,ariaAutoComplete:t,ariaControls:r,ariaDescribedBy:i,ariaErrorMessage:s,ariaExpanded:o,ariaInvalid:u,ariaLabel:a,ariaLabelledBy:l,ariaMultiline:c,ariaOwns:h,ariaRequired:f,autoCapitalize:d,className:g,id:b,role:m="textbox",spellCheck:p=!0,style:y,tabIndex:_,"data-testid":x,...S},C){const[A,O]=q.useState(n.isEditable()),D=q.useCallback(v=>{v&&v.ownerDocument&&v.ownerDocument.defaultView?n.setRootElement(v):n.setRootElement(null)},[n]),k=q.useMemo(()=>function(...v){return E=>{for(const N of v)typeof N=="function"?N(E):N!=null&&(N.current=E)}}(C,D),[D,C]);return Ea(()=>(O(n.isEditable()),n.registerEditableListener(v=>{O(v)})),[n]),K.jsx("div",{"aria-activedescendant":A?e:void 0,"aria-autocomplete":A?t:"none","aria-controls":A?r:void 0,"aria-describedby":i,...s!=null?{"aria-errormessage":s}:{},"aria-expanded":A&&m==="combobox"?!!o:void 0,...u!=null?{"aria-invalid":u}:{},"aria-label":a,"aria-labelledby":l,"aria-multiline":c,"aria-owns":A?h:void 0,"aria-readonly":!A||void 0,"aria-required":f,autoCapitalize:d,className:g,contentEditable:A,"data-testid":x,id:b,ref:k,role:m,spellCheck:p,style:y,tabIndex:_??(A?void 0:-1),...S})}const b_=q.forwardRef(m_);function Gf(n){return n.read("latest",Ig(n.isComposing()))}const Pg=q.forwardRef(y_);function y_(n,e){const{placeholder:t,...r}=n,[i]=bt();return K.jsxs(K.Fragment,{children:[K.jsx(b_,{editor:i,...r,ref:e}),t!=null&&K.jsx(__,{editor:i,content:t})]})}function __({content:n,editor:e}){const t=function(o){const[u,a]=q.useState(()=>Gf(o));return Ea(()=>{function l(){const c=Gf(o);a(c)}return l(),mt(o.registerUpdateListener(()=>{l()}),o.registerEditableListener(()=>{l()}))},[o]),u}(e),[r,i]=q.useState(e.isEditable());if(Ea(()=>(i(e.isEditable()),e.registerEditableListener(o=>{i(o)})),[e]),!t)return null;let s=null;return typeof n=="function"?s=n(r):n!==null&&(s=n),s===null?null:K.jsx("div",{"aria-hidden":!0,children:s})}class x_ extends q.Component{constructor(){super(...arguments);M(this,"state",{hasError:!1})}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t,r){this.props.onError(t instanceof Error?t:new Error(String(t),{cause:t}),r)}render(){return this.state.hasError?this.props.fallback:this.props.children}}function Lg({children:n,fallback:e,onError:t}){return K.jsx(x_,{fallback:e===void 0?K.jsx("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}):e,onError:t,children:n})}const Fl={name:"@lexical/react/ReactProvider"};function v_({contentEditable:n,children:e}){return K.jsxs(K.Fragment,{children:[n,e]})}const S_={EditorChildrenComponent:v_,ErrorBoundary:Lg,contentEditable:K.jsx(Pg,{}),decorators:[]},Jf={build(n,e,t){t.getPeer(Fl.name)||function(s,...o){throw function(u,...a){const l=new URL("https://lexical.dev/docs/error"),c=new URLSearchParams;c.append("code",u);for(const h of a)c.append("v",h);return l.search=c.toString(),new Error(`Minified Lexical error #${u}; visit ${l.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(s,...o)}(321,[...t.getDirectDependentNames()].join(" "));const r=[n,{getTheme:()=>n._config.theme}];return{Component:function(s,o){const[u]=o,a=s.decorators.map(l=>typeof l=="function"?K.jsx(l,{context:o}):l);return function(l){const{EditorChildrenComponent:c=s.EditorChildrenComponent,ErrorBoundary:h=s.ErrorBoundary,contentEditable:f=s.contentEditable,children:d}=l,g=function(m,p){const[y,_]=q.useMemo(()=>[C=>m.registerDecoratorListener(C),()=>m.getDecorators()],[m]),x=q.useSyncExternalStore(y,_,_),S=function(C){const[A,O]=q.useMemo(()=>[C.registerRootListener.bind(C),C.getRootElement.bind(C)],[C]);return q.useSyncExternalStore(A,O,O)}(m);return q.useMemo(()=>{const C=O=>m._onError(O),A=[];for(const O in x){const D=m.getElementByKey(O);if(D!==null){const k=K.jsx(p,{onError:C,children:K.jsx(q.Suspense,{fallback:null,children:x[O]})});A.push(Wd.createPortal(k,D,O))}}return A},[p,x,m,S])}(u,h),b=q.useMemo(()=>a.map((m,p)=>K.jsx(h,{onError:y=>{u._onError(y)},children:K.jsx(q.Suspense,{fallback:null,children:m})},p)),[h]);return K.jsx(Mg.Provider,{value:o,children:K.jsxs(c,{context:o,contentEditable:f,children:[d,b,g]})})}}(e,r),context:r}},config:S_,mergeConfig(n,e){const t=Jh(n,e);return e.decorators&&(t.decorators=e.decorators.length>0?[...n.decorators,...e.decorators]:n.decorators),t},name:"@lexical/react/React",peerDependencies:[["@lexical/react/ReactProvider"]]};function w_({extension:n,children:e,contentEditable:t}){const r=q.useMemo(()=>eu.fromExtensions([Fl,Qb(Jf,t===void 0?{}:{contentEditable:t}),n]).buildEditor(),[t,n]);q.useEffect(()=>{let s=!1;return queueMicrotask(()=>{s=!0}),()=>{s&&r.dispose()}},[r]);const{Component:i}=py(r,Jf).output;return K.jsx(i,{children:e})}function C_(n,e,t){let r=t(),i=0,s=r,o=0,u=null;return(a,l,c,h,f,d)=>{const g=t();if(d.has(J0)&&(s=r,o=i,u=a),d.has(oa))return i=0,r=g,2;d.has(io)&&u&&(r=s,i=o,a=u);const b=d.has(G0)||d.has(ua)?0:function(p,y,_,x,S){if(p===null||_.size===0&&x.size===0&&!S)return 0;const C=y._selection,A=p._selection;if(S)return 1;if(!(F(C)&&F(A)&&A.isCollapsed()&&C.isCollapsed()))return 0;const O=function(U,H,V){const te=U._nodeMap,ge=[];for(const j of H){const $=te.get(j);$!==void 0&&ge.push($)}for(const[j,$]of V){if(!$)continue;const G=te.get(j);G===void 0||Ee(G)||ge.push(G)}return ge}(y,_,x);if(O.length===0)return 0;if(O.length>1){const U=y._nodeMap,H=U.get(C.anchor.key),V=U.get(A.anchor.key);return H&&V&&!p._nodeMap.has(H.__key)&&B(H)&&H.__text.length===1&&C.anchor.offset===1?2:0}const D=O[0],k=p._nodeMap.get(D.__key);if(!B(k)||!B(D)||k.__mode!==D.__mode)return 0;const v=k.__text,E=D.__text;if(v===E)return 0;const N=C.anchor,R=A.anchor;if(N.key!==R.key||N.type!=="text")return 0;const w=N.offset,L=R.offset,I=E.length-v.length;return I===1&&L===w-1?2:I===-1&&L===w+1?3:I===-1&&L===w?4:0}(a,l,h,f,n.isComposing()),m=(()=>{const p=c===null||c.editor===n,y=d.has(l1);if(!y&&p&&d.has(Nr))return 0;if(b===1)return 2;if(a===null)return 1;const _=l._selection;if(!(h.size>0||f.size>0))return _!==null?0:2;const x=typeof e=="number"?e:e.peek();return y===!1&&b!==0&&b===i&&g<r+x&&p||h.size===1&&function(S,C,A){const O=C._nodeMap.get(S),D=A._nodeMap.get(S),k=C._selection,v=A._selection;return!(F(k)&&F(v)&&k.anchor.type==="element"&&k.focus.type==="element"&&v.anchor.type==="text"&&v.focus.type==="text"||!B(O)||!B(D)||O.__parent!==D.__parent)&&JSON.stringify(C.read(()=>O.exportJSON()))===JSON.stringify(A.read(()=>D.exportJSON()))}(Array.from(h)[0],a,l)?0:1})();return r=g,i=b,m}}function Xf(n,e){if(e!==null&&e.editor===n.editor)return e;const{editor:t}=n,r=t.getEditorState();return r.isEmpty()?null:{editor:t,editorState:r}}function Yf(n,e){n.undoStack=[],n.redoStack=[],n.current=null}function T_(n,e,t,r=Date.now,i,s=null){const o=C_(n,t,r);return mt(n.registerCommand(to,()=>(function(u,a,l){const c=a.redoStack,h=a.undoStack;if(h.length!==0){const f=a.current,d=h.pop();if(d){const g=Xf(d,f);g!==null&&(c.push(g),u.dispatchCommand(ds,!0))}h.length===0&&u.dispatchCommand(hs,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:oa})}}(n,e),!0),oe),n.registerCommand(Oi,()=>(function(u,a,l){const c=a.redoStack,h=a.undoStack;if(c.length!==0){const f=a.current,d=c.pop();if(d){const g=Xf(d,f);g!==null&&(h.push(g),u.dispatchCommand(hs,!0))}c.length===0&&u.dispatchCommand(ds,!1),a.current=d||null,d&&d.editor.setEditorState(d.editorState,{tag:oa})}}(n,e),!0),oe),n.registerCommand(zm,()=>(Yf(e),!1),oe),n.registerCommand(qm,()=>(Yf(e),n.dispatchCommand(ds,!1),n.dispatchCommand(hs,!1),!0),oe),n.registerUpdateListener(({editorState:u,prevEditorState:a,dirtyLeaves:l,dirtyElements:c,tags:h})=>{const f=e.current,d=e.redoStack,g=e.undoStack,b=f===null?null:f.editorState;if(f!==null&&u===b)return;const m=o(a,u,f,l,c,h);if(m===1){d.length!==0&&(e.redoStack=[],n.dispatchCommand(ds,!1));const p=function(y,_,x){return x===null?null:x.editor===y?{...x}:_.isEmpty()?null:{editor:y,editorState:_}}(n,a,f);if(p!==null){g.push(p);const y=typeof s=="number"||s===null?s:s.peek();y!==null&&g.length>y&&g.splice(0,g.length-y),n.dispatchCommand(hs,!0)}}else if(m===2)return;e.current={editor:n,editorState:u}}))}function E_(){return{current:null,redoStack:[],undoStack:[]}}function N_({delay:n,externalHistoryState:e}){const[t]=bt();return function(r,i,s=1e3){const o=q.useMemo(()=>i||E_(),[i]);q.useEffect(()=>T_(r,o,s),[s,r,o])}(t,e,n),null}function k_({validateUrl:n,attributes:e}){const[t]=bt();return q.useEffect(()=>{if(!t.hasNodes([rr]))throw new Error("LinkPlugin: LinkNode not registered on editor")}),q.useEffect(()=>Wy(t,Iy({attributes:e,validateUrl:n})),[t,n,e]),null}function A_({hasStrictIndent:n=!1,shouldPreserveNumbering:e=!1}){const[t]=bt();return q.useEffect(()=>{if(!t.hasNodes([is,ni]))throw new Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[t]),q.useEffect(()=>mt(Vf(t,{restoreNumbering:e}),n?c_(t):()=>{}),[t,n,e]),function(r){q.useEffect(()=>Vf(r),[r])}(t),null}const O_=It?q.useLayoutEffect:q.useEffect;function D_({ignoreHistoryMergeTagChange:n=!0,ignoreSelectionChange:e=!1,onChange:t}){const[r]=bt();return O_(()=>{if(t)return r.registerUpdateListener(({editorState:i,dirtyElements:s,dirtyLeaves:o,prevEditorState:u,tags:a})=>{e&&s.size===0&&o.size===0||n&&a.has(Nr)||u.isEmpty()||t(i,r,a)})},[r,n,e,t]),null}const M_=It?q.useLayoutEffect:q.useEffect;function I_(n){const[e]=bt(),t=q.useMemo(()=>n(e),[e,n]),[r,i]=q.useState(()=>t.initialValueFn()),s=q.useRef(r);return M_(()=>{const{initialValueFn:o,subscribe:u}=t,a=o();return s.current!==a&&(s.current=a,i(a)),u(l=>{s.current=l,i(l)})},[t,n]),r}function P_(n){return{initialValueFn:()=>n.isEditable(),subscribe:e=>n.registerEditableListener(e)}}function L_(){return I_(P_)}const R_={bold:"bold",italic:"italic",strikeThrough:"strikethrough",subscript:"subscript",superscript:"superscript",underline:"underline"},Ao=Symbol.for("@lexical/dragon/WindowState");function F_(n,e,t){const r=function(i){let s=i[Ao];return s===void 0&&(s={dispose:()=>{},editors:new Map,installs:new Set},i[Ao]=s),s}(n);if(r.installs.size===0){const i=$_.bind(n);n.addEventListener("message",i,!0),r.dispose=()=>{n.removeEventListener("message",i,!0)}}if(r.installs.add(e),t){const i=r.editors.get(t)||new Set;i.add(e),r.editors.set(t,i)}return B_.bind(null,n,r,e,t)}function B_(n,e,t,r){if(r){const i=e.editors.get(r);i&&i.delete(t)&&i.size===0&&e.editors.delete(r)}e.installs.delete(t)&&e.installs.size===0&&(e.dispose(),delete n[Ao])}function Qf(n){return n&&n.ownerDocument.defaultView}function j_(n){const e=gy(()=>Qf(n.getRootElement()),t=>n.registerRootListener(r=>{t.value=Qf(r)}));return Pl(()=>{const t=e.value;if(t)return F_(t,Symbol("@lexical/dragon/editorInstall"),n)})}function $_(n){if(n.origin!==this.location.origin)return;const e=function(r){const i=r[Ao];if(i===void 0)return null;const s=Qr(qr(r.document));return ts(s)&&i.editors.has(s)?s:null}(this);if(e===null)return;const t=n.data;if(typeof t=="string"){let r;try{r=JSON.parse(t)}catch{return}if(r&&r.protocol==="nuanria_messaging"&&r.type==="request"){const i=r.payload;if(i&&i.functionId==="makeChanges"){const s=i.args;if(Array.isArray(s)){const[o,u,a,l,c,h]=s;if(![o,u,l,c].every(Number.isFinite)||typeof a!="string"&&a!==-1)return;e.update(()=>{const f=z();if(F(f)){const d=f.anchor;let g=d.getNode(),b=0,m=0;if(B(g)&&o>=0&&u>=0&&(b=o,m=o+u,f.setTextNodeRange(g,b,g,m)),typeof a!="string"||b===m&&a===""||(f.insertRawText(a),g=d.getNode()),B(g)){const p=g.getTextContentSize();b=Math.min(Math.max(l,0),p),m=l<0||c<0?b:Math.min(l+c,p),f.setTextNodeRange(g,b,g,m)}if(typeof h=="string"&&c>0&&!f.isCollapsed()){const p=R_[h];p!==void 0&&f.formatText(p)}n.stopImmediatePropagation()}})}}}}}function Oo(n,e,t=null){const r=Lh(t),i=t?Ih(t):[],s=t!==null&&i.length>0;if(s&&typeof r.caretPositionFromPoint=="function"){const o=r.caretPositionFromPoint(n,e,{shadowRoots:i});if(o!==null&&function(u,a){for(let l=u;l!==null;){if(l===a)return!0;l=nn(l)}return!1}(o.offsetNode,t))return{node:o.offsetNode,offset:o.offset}}if(s){const o=t.getRootNode();if(on(o)){const u=o.elementFromPoint(n,e);if(u!==null&&t.contains(u)){const a=function(l,c,h,f){const d=f.createRange(),g=A=>c<A.top?A.top-c:c>A.bottom?c-A.bottom:0,b=A=>l<A.left?A.left-l:l>A.right?l-A.right:0,m=f.createTreeWalker(h,NodeFilter.SHOW_TEXT);let p=null,y=1/0,_=1/0;for(let A=m.nextNode();A;A=m.nextNode()){d.selectNodeContents(A);for(const O of d.getClientRects()){const D=g(O),k=b(O);(D<y||D===y&&k<_)&&(y=D,_=k,p=A)}}if(p===null)return null;let x=0,S=1/0,C=1/0;for(let A=0;A<=p.length;A++){d.setStart(p,A),d.collapse(!0);const O=d.getBoundingClientRect(),D=g(O),k=Math.abs(l-O.left);(D<S||D===S&&k<C)&&(S=D,C=k,x=A)}return{node:p,offset:x}}(n,e,u,r);if(a!==null)return a}}}if(typeof r.caretRangeFromPoint=="function"){const o=r.caretRangeFromPoint(n,e);return o===null?null:{node:o.startContainer,offset:o.startOffset}}if(typeof r.caretPositionFromPoint=="function"){const o=r.caretPositionFromPoint(n,e);return o===null?null:{node:o.offsetNode,offset:o.offset}}return null}function Fi(n,...e){throw function(t,...r){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(const o of r)s.append("v",o);return i.search=s.toString(),new Error(`Minified Lexical error #${t}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(n,...e)}const Zf={"application/x-lexical-editor":0,"text/html":10,"text/plain":20,"text/uri-list":30};function U_(n){return window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(n):n}const ed=(n,e)=>{if(!F(e))return e.insertRawText(n),!0;e!==z()&&Me(e);const t=r=>{const i=z();F(i)&&r(i)};return ch(n,{linebreak:()=>t(r=>r.insertParagraph()),tab:()=>t(r=>r.insertNodes([al()])),text:r=>t(i=>i.insertText(r))}),!0},td={"application/x-lexical-editor":[(n,e,t)=>{try{const r=Pe(),i=JSON.parse(n);if(i&&i.namespace===r._config.namespace&&Array.isArray(i.nodes))return nd(r,X_(i.nodes),e),!0}catch(r){console.error(r)}return t()}],"text/html":[(n,e,t)=>{try{const r=Pe(),i=new DOMParser().parseFromString(U_(n),"text/html");return nd(r,pg(r,i),e),!0}catch(r){return console.error(r),t()}}],"text/plain":[ed],"text/uri-list":[ed]};function z_(n,e,t,r){if(!n)return!1;const i=s=>!!n[s]&&n[s](e,t,i.bind(null,s-1),r);return i(n.length-1)}function q_(n,e,t){const r=e.getData("text/plain");for(const i of function(s){return Object.keys(s.$importMimeType).filter(o=>s.$importMimeType[o]!==void 0).sort((o,u)=>{const a=s.priority[o],l=s.priority[u];return a===void 0&&l===void 0?o<u?-1:o>u?1:0:a===void 0?1:l===void 0?-1:a-l})}(n)){const s=e.getData(i);if(s&&(i!=="text/html"||s!==r)&&z_(n.$importMimeType[i],s,t,e))return!0}return!1}const K_={$importMimeType:td,$insertDataTransfer:(n,e)=>q_({$importMimeType:td,priority:Zf},n,e),priority:Zf},W_={name:"@lexical/clipboard/Import"};function Rg(n,e=z()){return e==null&&Fi(166),F(e)&&e.isCollapsed()||e.getNodes().length===0?"":mg(n,e)}function Fg(n,e=z()){return e==null&&Fi(166),F(e)&&e.isCollapsed()||e.getNodes().length===0?null:JSON.stringify(J_(n,e))}function Na(n,e,t){(function(){const r=my(W_.name);return r?r.output:K_})().$insertDataTransfer(n,e)}const Bg="application/x-lexical-drag";function H_(n,e){const t={editorKey:e.getKey()};n.setData(Bg,JSON.stringify(t))}function Fu(n){let e=n;if(ut(e))if(e.offset===0)e=Dt(e.getSiblingCaret());else{if(e.offset!==e.origin.getTextContentSize())return e;e=e.getSiblingCaret()}for(;;){const t=e.getParentAtCaret();if(t===null||!t.isInline()||t.isShadowRoot())return e;if(pt(e))e=Dt(fe(t,"next"));else{if(e.getNodeAtCaret()!==null)return e;e=fe(t,"next")}}}function V_(n,e,t){const r=n.dataTransfer;if(r===null)return!1;const i=function(f){const d=f.getData(Bg);if(!d)return null;let g;try{g=JSON.parse(d)}catch{return null}return(b=g)!==null&&typeof b=="object"&&"editorKey"in b&&typeof b.editorKey=="string"?g:null;var b}(r);if(i===null)return!1;const s=function(f,d){const g=Oo(f.clientX,f.clientY,d.getRootElement());if(g===null)return null;const b=Qn(g.node);if(b===null)return null;if(B(b))return Nn(b,"next",g.offset);if(T(b))return ma(b,g.offset,"next");const m=b.getParent();return m===null?null:ma(m,b.getIndexWithinParent()+1,"next")}(n,e);if(s===null)return!1;const o=i.editorKey===e.getKey(),u=z();if(o){if(!F(u)||u.isCollapsed())return!1;if(function(f,d){const{anchor:g,focus:b}=Qi(go(d),"next"),m=Fu(f);return kn(Fu(g),m)<=0&&kn(m,Fu(b))<=0}(s,u))return n.preventDefault(),!0}const a=ze(s),l=ut(a)?_h(a):a;if(l===null)return!1;const c=l.getFlipped();o&&F(u)&&u.removeText();const h=l.origin.isAttached()?l:c;if(h.origin.isAttached()||Fi(438),t(r,jr(Zo(h)),e),!o){const f=e.getRootElement(),d=f?f.ownerDocument:null,g=d?function(b,m){for(const p of Ph(m)){const y=Qr(p);if(ts(y)&&y.getKey()===b&&ce(p))return p}return null}(i.editorKey,d):null;g!==null&&g.dispatchEvent(new InputEvent("beforeinput",{bubbles:!0,cancelable:!0,inputType:"deleteByDrag"}))}return n.preventDefault(),!0}function G_(n,e){return V_(n,e,Na)}function nd(n,e,t){n.dispatchCommand(Rm,{nodes:e,selection:t})||(t.insertNodes(e),function(r){if(F(r)&&r.isCollapsed()){const i=r.anchor;let s=null;const o=ot(i,"previous");if(o)if(ut(o))s=o.origin;else{const u=wt(o,Ve(we(),"next").getFlipped());for(const a of u){if(B(a.origin)){s=a.origin;break}if(T(a.origin)&&!a.origin.isInline())break}}if(s&&B(s)){const u=s.getFormat(),a=s.getStyle();r.format===u&&r.style===a||(r.format=u,r.style=a,r.dirty=!0)}}}(t))}function ka(n,e,t,r=[]){let i=e===null||t.isSelected(e);const s=T(t)&&t.excludeFromCopy("clone");let o=t;e!==null&&B(o)&&(o=Zh(e,o,"clone"));const u=t0(o),a=T(o)?o.getChildren():[],l=u.children||[];B(o)&&o.getTextContentSize()===0&&(i=!1);const c=i&&_e(e)&&T(t)?null:e;for(let h=0;h<a.length;h++){const f=a[h],d=ka(n,c,f,l);!i&&T(t)&&d&&t.extractWithChild(f,e,"clone")&&(i=!0)}if(i&&!s){const h=jt(o);if(h.length>0){const f={};for(const d of h){const g=Wr(o,d);g===null&&Fi(366,o.constructor.name,d);const b=[];ka(n,null,g,b),(b.length!==1||T(g)&&g.excludeFromCopy("clone"))&&Fi(435,d,o.constructor.name,String(b.length)),f[d]=b[0]}u.$slots=f}}if(i&&!s)r.push(u);else for(let h=0;h<l.length;h++)r.push(l[h]);return i}function J_(n,e){const t=[],r=we(),i=El(e),s=(T(i)?i:r).getChildren();for(let o=0;o<s.length;o++)ka(n,e,s[o],t);return{namespace:n._config.namespace,nodes:t}}function X_(n){const e=[];for(const t of n)e.push(R1(t));return e}let br=null;async function rd(n,e,t){if(br!==null)return!1;if(e!==null)return new Promise((l,c)=>{n.update(()=>{l(id(n,e,t))})});const r=n.getRootElement(),i=n._window||window,s=i.document,o=nt(i);if(r===null||o===null)return!1;const u=s.createElement("span");u.style.position="fixed",u.style.top="-1000px",u.append(s.createTextNode("#")),r.append(u);const a=s.createRange();return a.setStart(u,0),a.setEnd(u,1),o.removeAllRanges(),o.addRange(a),new Promise((l,c)=>{const h=n.registerCommand(qo,f=>(en(f,ClipboardEvent)&&(h(),br!==null&&(i.clearTimeout(br),br=null),l(id(n,f,t))),!0),eb);br=i.setTimeout(()=>{h(),br=null,l(!1)},50),s.execCommand("copy"),u.remove()})}function id(n,e,t){if(t===void 0){const i=nt(n._window),s=z();if(!s||s.isCollapsed()||!i)return!1;const o=ct(i,n.getRootElement()),u=o.anchorNode,a=o.focusNode;if(u!==null&&a!==null&&!es(n,u,a))return!1;t=jg(s)}e.preventDefault();const r=e.clipboardData;return r!==null&&($g(r,t),!0)}const Y_=[["text/html",Rg],["application/x-lexical-editor",Fg]];function jg(n=z()){return function(e,t){const r={"text/plain":""};for(const[i,s]of Object.entries(e))if(s){const o=e2(s,t);o!==null&&(r[i]=o)}return r}(Q_(),n)}function $g(n,e){for(const[t]of Y_)e[t]===void 0&&n.setData(t,"");for(const t in e){const r=e[t];r!==void 0&&n.setData(t,r)}}function Q_(n=Pe()){const e=tu(n,t2.name);return e?e.output:Z_}const Z_={"application/x-lexical-editor":[(n,e)=>n?Fg(Pe(),n):e()],"text/html":[(n,e)=>n?Rg(Pe(),n):e()],"text/plain":[(n,e)=>n?n.getTextContent():e()]};function e2(n,e){const t=r=>n[r]?n[r](e,t.bind(null,r-1)):null;return t(n.length-1)}const t2={name:"@lexical/clipboard/GetClipboardData"},sd=J("DRAG_DROP_PASTE_FILE");function od(n){const e=Qn(n);return ie(e)}function Ug(n){const e=n.focus;return e.key==="root"&&e.offset===we().getChildrenSize()}function zg(n){const e=n.focus;return e.key==="root"&&e.offset===0}function ud(n,e){if(!n.isCollapsed())return!1;const t=e==="next";if(!(t?Ug(n):zg(n)))return!1;const r=n.focus.offset;return Ii(we().getChildAtIndex(t?r-1:r))}function yr(n,e,t,r){let i=!1,s=null;if(n.isCollapsed()&&n.anchor.type==="text"){const u=n.anchor.getNode();if(B(u)){s=u;const a=n.anchor.offset,l=a===u.getTextContentSize()&&u.getNextSibling()===null,c=a===0&&u.getPreviousSibling()===null;i=t==="end"&&l||t==="start"&&c||t==="both"&&(l||c)}}let o=!1;for(const[u,a]of Object.entries(r)){if(a==null||!a[e])continue;const l=u;if(a.onlyAtBoundary){if(!(i&&s&&B(s)&&s.hasFormat(l)))continue;o=!0}n.hasFormat(l)&&n.toggleFormat(l)}o&&n.setStyle("")}const n2={capitalize:{enter:!0,space:!0,tab:!0},lowercase:{enter:!0,space:!0,tab:!0},uppercase:{enter:!0,space:!0,tab:!0}};function vs(n,e){return function(t,r){if(!t.isCollapsed())return!1;const i=ot(t.focus,r),s=ke(i.origin,yi);if(!s)return!1;const o=t.focus.getNode();if(!s.is(o)&&!zr(o,s))return!1;const u=wt(i,fe(s,r));if(u.getTextSlices().some(h=>h&&h.getTextContentSize()>0))return!1;const a=wt(u.anchor.getSiblingCaret(),u.focus);let l=a.anchor.origin;for(const h of a){if(!un(h)||!h.origin.is(l.getParent()))return!1;l=h.origin}let c=s;for(const h of Qo(fe(s,r))){if(!h.origin.is(c.getParent())){if(Ii(h.origin)){const f=fe(c,r);return jr(wt(f,f)),!0}break}if(!yi(h.origin))break;c=h.origin}return!1}(n,e)||function(t,r){if(!t.isCollapsed()||t.anchor.type!=="element")return!1;const i=ot(t.anchor,r).getNodeAtCaret();return!(!yi(i)||i.isInline()||(jr(Zo(ze(Ve(i,r)))),0))}(n,e)}function ad(n){return ie(n)&&!n.isInline()&&!n.isIsolated()&&n.isKeyboardSelectable()}function Bu(n){const e=ll();e.add(n),Me(e)}function ld(n,e){if(!n.isCollapsed())return!1;const t=n.focus,r=t.getNode(),i=e?"previous":"next",s=ot(t,i);if(t.type==="element"&&T(r)&&pe(r)){const p=s.getNodeAtCaret();return!(p===null||!ad(p)||(Bu(p.__key),0))}const o=ke(T(r)?r:r.getParentOrThrow(),p=>T(p)&&!p.isInline()&&pe(p.getParent()));if(o===null)return!1;const u=fe(o,i).getNodeAtCaret();if(u===null||!ad(u))return!1;if(o.getTextContentSize()===0)return Bu(u.__key),!0;const a=Pe().getRootElement();if(a===null)return!1;const l=nt(a.ownerDocument.defaultView);if(l===null||l.rangeCount===0)return!1;const c=l.anchorNode,h=l.anchorOffset,f=l.focusNode,d=l.focusOffset;l.modify("move",e?"backward":"forward","line");const g=l.anchorNode,b=l.anchorOffset;if(g===null)return cd(l,c,h,f,d),!1;const m=Qn(g);return cd(l,c,h,f,d),m!==null&&(g===c&&b===h||!m.is(o)&&!zr(m,o))&&(Bu(u.__key),!0)}function cd(n,e,t,r,i){e!==null&&r!==null&&n.setBaseAndExtent(e,t,r,i)}function fd(n,e){if(!n.isCollapsed())return!1;const t=n.focus.getNode(),r=ke(T(t)?t:t.getParentOrThrow(),m=>T(m)&&!m.isInline());if(r===null)return!1;const i=Pe(),s=i.getRootElement();if(s===null)return!1;const o=s.ownerDocument.defaultView;if(o===null)return!1;let u=!1;for(const m of r.getChildren())if(T(m)&&m.isInline()){const p=i.getElementByKey(m.getKey());if(p!==null){const y=o.getComputedStyle(p).display;if(y==="inline-grid"||y==="inline-flex"){u=!0;break}}}if(!u)return!1;const a=fe(r,e?"previous":"next").getNodeAtCaret();if(a===null||!T(a)){if(e){const m=r.getFirstDescendant();B(m)?m.select(0,0):r.select(0,0)}else{const m=r.getLastDescendant();if(B(m)){const p=m.getTextContentSize();m.select(p,p)}else{const p=r.getChildrenSize();r.select(p,p)}}return!0}const l=i.getElementByKey(a.getKey());if(l===null)return!1;const c=nt(o);if(c===null||c.rangeCount===0)return!1;const h=c.getRangeAt(0).cloneRange();h.collapse(!0);const f=h.getBoundingClientRect(),d=l.getBoundingClientRect(),g=d.top+d.height/2;if(f.height>0){const m=Oo(f.left,g,s);if(m!==null&&l.contains(m.node)){const p=s.ownerDocument.createRange();return p.setStart(m.node,m.offset),p.collapse(!0),n.applyDOMRange(p),n.dirty=!0,!0}}const b=e?a.getLastDescendant():a.getFirstDescendant();if(B(b)){const m=e?b.getTextContentSize():0;b.select(m,m)}else{const m=a.getChildrenSize();a.select(e?m:0,e?m:0)}return!0}function Ss(n,e){const t=fe(n,e),r=t.getAdjacentCaret();r!==null&&T(r.origin)&&!r.origin.isInline()&&r.origin.isShadowRoot()?jr(Zo(t)):e==="next"?n.selectNext(0,0):n.selectPrevious()}function ws(n,e){const t=n.getNodes().map(s=>fe(s,"next")).sort(kn),r=t[0],i=t[t.length-1];if(!r||!i)return!1;for(let s=0;s<t.length-1;s++)if(!t[s+1].origin.is(t[s].getNodeAtCaret()))return!1;return jr(Qi(wt(Dt(r),i),e)),F1(),!0}function dd(n,e,t){t.preventDefault(),t.stopPropagation();const r=n.getNodes();if(r.length===0)return!0;const i=r.map(a=>fe(a,"next")).sort(kn),s=(e?i[0]:i[i.length-1]).origin,o=ke(s,a=>a!==s&&T(a)&&!a.isInline())??we(),u=e?0:o.getChildrenSize();return o.select(u,u),!0}function r2(n,e){return n.length>0&&!e}function i2(n,e=No(n2),t=No(r2)){return mt(n.registerCommand(w0,r=>{const i=z();if(_e(i)){const s=r.target;if(ce(s))for(const o of i.getNodes()){const u=n.getElementByKey(o.getKey());if(u!==null&&u.contains(s))return!1}return i.clear(),!0}return F(i)&&yr(i,"click","both",e.peek()),!1},oe),n.registerCommand(zn,r=>{const i=z();return F(i)?(i.deleteCharacter(r),!0):!!_e(i)&&(i.deleteNodes(),!0)},oe),n.registerCommand(Ai,r=>{const i=z();return!!F(i)&&(i.deleteWord(r),!0)},oe),n.registerCommand(Tr,r=>{const i=z();return!!F(i)&&(i.deleteLine(r),!0)},oe),n.registerCommand(Cr,r=>{const i=z();if(typeof r=="string")i!==null&&i.insertText(r);else{if(i===null)return!1;const s=r.dataTransfer;if(s!=null)Na(s,i);else if(F(i)){const o=r.data;return o&&i.insertText(o),!0}}return!0},oe),n.registerCommand(Rs,()=>{const r=z();return!!F(r)&&(r.removeText(),!0)},oe),n.registerCommand(Ot,r=>{const i=z();return!(!F(i)&&!_e(i)||(th(i,r),0))},oe),n.registerCommand(Fm,r=>{const i=z();return!(!F(i)&&!_e(i)||(A1(i,r),0))},oe),n.registerCommand($m,r=>{const i=z();if(!F(i)&&!_e(i))return!1;const s=i.getNodes();for(const o of s){const u=ke(o,a=>T(a)&&!a.isInline());u!==null&&u.setFormat(r)}return!0},oe),n.registerCommand(wr,r=>{const i=z();return!!F(i)&&(i.insertLineBreak(r),!0)},oe),n.registerCommand(ki,()=>{const r=z();return!!F(r)&&(r.insertParagraph(),!0)},oe),n.registerCommand(Bm,()=>{const r=al(),i=z();return F(i)&&(r.setFormat(i.format),r.setStyle(i.style)),Ho([r]),!0},oe),n.registerCommand(jm,()=>Af(r=>{const i=r.getIndent();r.setIndent(i+1)}),oe),n.registerCommand(Ec,()=>Af(r=>{const i=r.getIndent();i>0&&r.setIndent(Math.max(0,i-1))}),oe),n.registerCommand(D0,r=>{let i=z();if(_e(i)){const s=i.getNodes();if(s.length>0){if(!r.shiftKey||!ws(i,"previous"))return r.preventDefault(),Ss(s[0],"previous"),!0;i=z()}}return F(i)&&(zg(i)||!r.shiftKey&&vs(i,"previous")||!r.shiftKey&&ld(i,!0)||!r.shiftKey&&fd(i,!0))?(r.preventDefault(),!0):!1},oe),n.registerCommand(M0,r=>{let i=z();if(_e(i)){const s=i.getNodes();if(s.length>0){if(!r.shiftKey||!ws(i,"next"))return r.preventDefault(),Ss(s[0],"next"),!0;i=z()}}return F(i)&&(Ug(i)||!r.shiftKey&&vs(i,"next")||!r.shiftKey&&ld(i,!1)||!r.shiftKey&&fd(i,!1))?(r.preventDefault(),!0):!1},oe),n.registerCommand(O0,r=>{let i=z();if(_e(i)){const o=i.getNodes();if(o.length>0){const u=ys(o[0])?"next":"previous";if(!r.shiftKey||!ws(i,u))return r.preventDefault(),Ss(o[0],u),!0;i=z()}}if(!F(i))return!1;const s=ys(i.anchor.getNode())?"next":"previous";if(ud(i,s)||!r.shiftKey&&vs(i,s))return r.preventDefault(),!0;if(r.shiftKey||yr(i,"arrow","start",e.peek()),Nf(i,!0)){const o=r.shiftKey;return r.preventDefault(),kf(i,o,!0),!0}return!1},oe),n.registerCommand(A0,r=>{let i=z();if(_e(i)){const o=i.getNodes();if(o.length>0){const u=ys(o[0])?"previous":"next";if(!r.shiftKey||!ws(i,u))return r.preventDefault(),Ss(o[0],u),!0;i=z()}}if(!F(i))return!1;const s=ys(i.anchor.getNode())?"previous":"next";if(ud(i,s)||!r.shiftKey&&vs(i,s))return r.preventDefault(),!0;if(r.shiftKey||yr(i,"arrow","end",e.peek()),Nf(i,!1)){const o=r.shiftKey;return r.preventDefault(),kf(i,o,!1),!0}return!1},oe),n.registerCommand(sl,r=>{const i=z();if(!_e(i)&&od(r.target))return!1;if(F(i)){if(function(s){if(!s.isCollapsed())return!1;const{anchor:o}=s;if(o.offset!==0)return!1;const u=o.getNode();if(Ee(u))return!1;const a=ny(u);return a.getIndent()>0&&(a.is(u)||u.is(a.getFirstDescendant()))}(i))return r.preventDefault(),n.dispatchCommand(Ec);if(Ct&&Ir)return!1}else if(!_e(i))return!1;return r.preventDefault(),n.dispatchCommand(zn,!0)},oe),n.registerCommand(L0,r=>{const i=z();return!(!_e(i)&&od(r.target))&&!(!F(i)&&!_e(i))&&(r.preventDefault(),n.dispatchCommand(zn,!1))},oe),n.registerCommand(il,r=>{let i=z();if(_e(i)){const s=i.getNodes();s.length===1&&ie(s[0])&&!s[0].isInline()&&(i=s[0].selectNext())}if(!F(i))return!1;if(yr(i,"enter","both",e.peek()),r!==null){if((Ct||Vi||Gi)&&Ir)return!1;if(r.preventDefault(),r.shiftKey)return n.dispatchCommand(wr,!1)}return n.dispatchCommand(ki)},oe),n.registerCommand(P0,()=>{const r=z();return!!F(r)&&(n.blur(),!0)},oe),n.registerCommand(F0,r=>{const[,i]=_s(r);if(i.length>0){const s=r.clientX,o=r.clientY,u=Oo(s,o,n.getRootElement());if(u!==null){const{offset:a,node:l}=u,c=Qn(l);if(c!==null){const h=lh();if(B(c))h.anchor.set(c.getKey(),a,"text"),h.focus.set(c.getKey(),a,"text");else{const d=c.getParentOrThrow().getKey(),g=c.getIndexWithinParent()+1;h.anchor.set(d,g,"element"),h.focus.set(d,g,"element")}const f=Rr(h);Me(f)}}return n.dispatchCommand(sd,i),r.preventDefault(),!0}return G_(r,n)},oe),n.registerCommand(B0,r=>{const[i]=_s(r),s=z();return!(i&&!F(s)||(F(s)&&!s.isCollapsed()&&r.dataTransfer!==null&&($g(r.dataTransfer,jg(s)),H_(r.dataTransfer,n)),0))},oe),n.registerCommand(j0,r=>{const[i]=_s(r),s=z();if(i&&!F(s))return!1;const o=r.clientX,u=r.clientY,a=Oo(o,u,n.getRootElement());if(a!==null){const l=Qn(a.node);ie(l)&&r.preventDefault()}return!0},oe),n.registerCommand($0,()=>{const r=z();return ab(F(r)&&Li(r.anchor.getNode())!==null?r:null),!0},oe),n.registerCommand(qo,r=>(rd(n,en(r,ClipboardEvent)?r:null),!0),oe),n.registerCommand(ol,r=>(async function(i,s){s.update(()=>{const o=z();F(o)&&!o.isCollapsed()&&$s(o)},{discrete:!0,tag:ua}),await rd(s,en(i,ClipboardEvent)?i:null),s.update(()=>{const o=z();F(o)?o.removeText():_e(o)&&o.getNodes().forEach(u=>u.remove())},{tag:ua})}(r,n),!0),oe),n.registerCommand(Ji,r=>{const[,i,s]=_s(r);return!(!t.peek()(i,s)||!n.dispatchCommand(sd,i))||(!Zr(r.target)||!bl(r.target))&&z()!==null&&(function(o,u){o.preventDefault(),u.update(()=>{const a=z(),l=en(o,InputEvent)||en(o,KeyboardEvent)?null:o.clipboardData;l!=null&&a!==null&&Na(l,a)},{tag:G0})}(r,n),!0)},oe),n.registerCommand(I0,()=>{const r=z();return F(r)&&yr(r,"space","both",e.peek()),!1},oe),n.registerCommand(R0,()=>{const r=z();return F(r)&&yr(r,"tab","both",e.peek()),!1},oe),n.registerCommand(ra,r=>{const i=z();if(_e(i))return dd(i,!1,r);if(!F(i))return!1;const{anchor:s}=i;if(s.type!=="element"||s.offset!==0)return!1;const o=s.getNode();if(!T(o))return!1;const u=o.getFirstChild();if(!ie(u)||!u.isInline())return!1;const a=o.getKey(),l=o.selectEnd();return r.shiftKey&&l.anchor.set(a,0,"element"),r.preventDefault(),r.stopPropagation(),!0},oe),n.registerCommand(ia,r=>{const i=z();if(_e(i))return dd(i,!0,r);if(!F(i))return!1;const{anchor:s,focus:o}=i,u=ke(o.getNode(),c=>T(c)&&!c.isInline());if(u===null)return!1;const a=u.getFirstChild();if(!ie(a)||!a.isInline()||ke(s.getNode(),c=>T(c)&&!c.isInline())!==u)return!1;const l=u.getKey();return(o.type!=="element"||o.key!==l||o.offset!==0)&&(i.focus.set(l,0,"element"),r.shiftKey||i.anchor.set(l,0,"element"),r.preventDefault(),r.stopPropagation(),!0)},oe))}function s2(n,...e){throw function(t,...r){const i=new URL("https://lexical.dev/docs/error"),s=new URLSearchParams;s.append("code",t);for(const o of r)s.append("v",o);return i.search=s.toString(),new Error(`Minified Lexical error #${t}; visit ${i.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(n,...e)}function o2({editor:n,ErrorBoundary:e}){return function(t,r){const[i,s]=q.useMemo(()=>[a=>t.registerDecoratorListener(a),()=>t.getDecorators()],[t]),o=q.useSyncExternalStore(i,s,s),u=function(a){const[l,c]=q.useMemo(()=>[a.registerRootListener.bind(a),a.getRootElement.bind(a)],[a]);return q.useSyncExternalStore(l,c,c)}(t);return q.useMemo(()=>{const a=c=>t._onError(c),l=[];for(const c in o){const h=t.getElementByKey(c);if(h!==null){const f=K.jsx(r,{onError:a,children:K.jsx(q.Suspense,{fallback:null,children:o[c]})});l.push(Wd.createPortal(f,h,c))}}return l},[r,o,t,u])}(n,e)}function u2({editor:n,ErrorBoundary:e}){return function(t){const r=eu.maybeFromEditor(t);if(r&&r.hasExtensionByName(Fl.name)){for(const i of["@lexical/plain-text","@lexical/rich-text"])r.hasExtensionByName(i)&&s2(320,i);return!0}return!1}(n)?null:K.jsx(o2,{editor:n,ErrorBoundary:e})}const qg=It?q.useLayoutEffect:q.useEffect;function hd(n){return n.read("latest",Ig(n.isComposing()))}function a2({contentEditable:n,placeholder:e=null,ErrorBoundary:t}){const[r]=bt();return function(i){qg(()=>mt(i2(i),j_(i)),[i])}(r),K.jsxs(K.Fragment,{children:[n,K.jsx(l2,{content:e}),K.jsx(u2,{editor:r,ErrorBoundary:t})]})}function l2({content:n}){const[e]=bt(),t=function(i){const[s,o]=q.useState(()=>hd(i));return qg(()=>{function u(){const a=hd(i);o(a)}return u(),mt(i.registerUpdateListener(()=>{u()}),i.registerEditableListener(()=>{u()}))},[i]),s}(e),r=L_();return t?typeof n=="function"?n(r):n:null}var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function c2(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function f2(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var i=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:function(){return n[r]}})}),t}var Kg={},Bi={},Bl={},ji={},jl={};Object.defineProperty(jl,"__esModule",{value:!0});jl.default=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(function(n){return n.charCodeAt(0)}));var $l={};Object.defineProperty($l,"__esModule",{value:!0});$l.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(n){return n.charCodeAt(0)}));var Aa={};(function(n){var e;Object.defineProperty(n,"__esModule",{value:!0}),n.replaceCodePoint=n.fromCodePoint=void 0;var t=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]]);n.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(s){var o="";return s>65535&&(s-=65536,o+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),o+=String.fromCharCode(s),o};function r(s){var o;return s>=55296&&s<=57343||s>1114111?65533:(o=t.get(s))!==null&&o!==void 0?o:s}n.replaceCodePoint=r;function i(s){return(0,n.fromCodePoint)(r(s))}n.default=i})(Aa);(function(n){var e=ee&&ee.__createBinding||(Object.create?function(v,E,N,R){R===void 0&&(R=N);var w=Object.getOwnPropertyDescriptor(E,N);(!w||("get"in w?!E.__esModule:w.writable||w.configurable))&&(w={enumerable:!0,get:function(){return E[N]}}),Object.defineProperty(v,R,w)}:function(v,E,N,R){R===void 0&&(R=N),v[R]=E[N]}),t=ee&&ee.__setModuleDefault||(Object.create?function(v,E){Object.defineProperty(v,"default",{enumerable:!0,value:E})}:function(v,E){v.default=E}),r=ee&&ee.__importStar||function(v){if(v&&v.__esModule)return v;var E={};if(v!=null)for(var N in v)N!=="default"&&Object.prototype.hasOwnProperty.call(v,N)&&e(E,v,N);return t(E,v),E},i=ee&&ee.__importDefault||function(v){return v&&v.__esModule?v:{default:v}};Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXML=n.decodeHTMLStrict=n.decodeHTMLAttribute=n.decodeHTML=n.determineBranch=n.EntityDecoder=n.DecodingMode=n.BinTrieFlags=n.fromCodePoint=n.replaceCodePoint=n.decodeCodePoint=n.xmlDecodeTree=n.htmlDecodeTree=void 0;var s=i(jl);n.htmlDecodeTree=s.default;var o=i($l);n.xmlDecodeTree=o.default;var u=r(Aa);n.decodeCodePoint=u.default;var a=Aa;Object.defineProperty(n,"replaceCodePoint",{enumerable:!0,get:function(){return a.replaceCodePoint}}),Object.defineProperty(n,"fromCodePoint",{enumerable:!0,get:function(){return a.fromCodePoint}});var l;(function(v){v[v.NUM=35]="NUM",v[v.SEMI=59]="SEMI",v[v.EQUALS=61]="EQUALS",v[v.ZERO=48]="ZERO",v[v.NINE=57]="NINE",v[v.LOWER_A=97]="LOWER_A",v[v.LOWER_F=102]="LOWER_F",v[v.LOWER_X=120]="LOWER_X",v[v.LOWER_Z=122]="LOWER_Z",v[v.UPPER_A=65]="UPPER_A",v[v.UPPER_F=70]="UPPER_F",v[v.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(v){v[v.VALUE_LENGTH=49152]="VALUE_LENGTH",v[v.BRANCH_LENGTH=16256]="BRANCH_LENGTH",v[v.JUMP_TABLE=127]="JUMP_TABLE"})(h=n.BinTrieFlags||(n.BinTrieFlags={}));function f(v){return v>=l.ZERO&&v<=l.NINE}function d(v){return v>=l.UPPER_A&&v<=l.UPPER_F||v>=l.LOWER_A&&v<=l.LOWER_F}function g(v){return v>=l.UPPER_A&&v<=l.UPPER_Z||v>=l.LOWER_A&&v<=l.LOWER_Z||f(v)}function b(v){return v===l.EQUALS||g(v)}var m;(function(v){v[v.EntityStart=0]="EntityStart",v[v.NumericStart=1]="NumericStart",v[v.NumericDecimal=2]="NumericDecimal",v[v.NumericHex=3]="NumericHex",v[v.NamedEntity=4]="NamedEntity"})(m||(m={}));var p;(function(v){v[v.Legacy=0]="Legacy",v[v.Strict=1]="Strict",v[v.Attribute=2]="Attribute"})(p=n.DecodingMode||(n.DecodingMode={}));var y=function(){function v(E,N,R){this.decodeTree=E,this.emitCodePoint=N,this.errors=R,this.state=m.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=p.Strict}return v.prototype.startEntity=function(E){this.decodeMode=E,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},v.prototype.write=function(E,N){switch(this.state){case m.EntityStart:return E.charCodeAt(N)===l.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(E,N+1)):(this.state=m.NamedEntity,this.stateNamedEntity(E,N));case m.NumericStart:return this.stateNumericStart(E,N);case m.NumericDecimal:return this.stateNumericDecimal(E,N);case m.NumericHex:return this.stateNumericHex(E,N);case m.NamedEntity:return this.stateNamedEntity(E,N)}},v.prototype.stateNumericStart=function(E,N){return N>=E.length?-1:(E.charCodeAt(N)|c)===l.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(E,N+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(E,N))},v.prototype.addToNumericResult=function(E,N,R,w){if(N!==R){var L=R-N;this.result=this.result*Math.pow(w,L)+parseInt(E.substr(N,L),w),this.consumed+=L}},v.prototype.stateNumericHex=function(E,N){for(var R=N;N<E.length;){var w=E.charCodeAt(N);if(f(w)||d(w))N+=1;else return this.addToNumericResult(E,R,N,16),this.emitNumericEntity(w,3)}return this.addToNumericResult(E,R,N,16),-1},v.prototype.stateNumericDecimal=function(E,N){for(var R=N;N<E.length;){var w=E.charCodeAt(N);if(f(w))N+=1;else return this.addToNumericResult(E,R,N,10),this.emitNumericEntity(w,2)}return this.addToNumericResult(E,R,N,10),-1},v.prototype.emitNumericEntity=function(E,N){var R;if(this.consumed<=N)return(R=this.errors)===null||R===void 0||R.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(E===l.SEMI)this.consumed+=1;else if(this.decodeMode===p.Strict)return 0;return this.emitCodePoint((0,u.replaceCodePoint)(this.result),this.consumed),this.errors&&(E!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},v.prototype.stateNamedEntity=function(E,N){for(var R=this.decodeTree,w=R[this.treeIndex],L=(w&h.VALUE_LENGTH)>>14;N<E.length;N++,this.excess++){var I=E.charCodeAt(N);if(this.treeIndex=x(R,w,this.treeIndex+Math.max(1,L),I),this.treeIndex<0)return this.result===0||this.decodeMode===p.Attribute&&(L===0||b(I))?0:this.emitNotTerminatedNamedEntity();if(w=R[this.treeIndex],L=(w&h.VALUE_LENGTH)>>14,L!==0){if(I===l.SEMI)return this.emitNamedEntityData(this.treeIndex,L,this.consumed+this.excess);this.decodeMode!==p.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},v.prototype.emitNotTerminatedNamedEntity=function(){var E,N=this,R=N.result,w=N.decodeTree,L=(w[R]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(R,L,this.consumed),(E=this.errors)===null||E===void 0||E.missingSemicolonAfterCharacterReference(),this.consumed},v.prototype.emitNamedEntityData=function(E,N,R){var w=this.decodeTree;return this.emitCodePoint(N===1?w[E]&~h.VALUE_LENGTH:w[E+1],R),N===3&&this.emitCodePoint(w[E+2],R),R},v.prototype.end=function(){var E;switch(this.state){case m.NamedEntity:return this.result!==0&&(this.decodeMode!==p.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case m.NumericDecimal:return this.emitNumericEntity(0,2);case m.NumericHex:return this.emitNumericEntity(0,3);case m.NumericStart:return(E=this.errors)===null||E===void 0||E.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},v}();n.EntityDecoder=y;function _(v){var E="",N=new y(v,function(R){return E+=(0,u.fromCodePoint)(R)});return function(w,L){for(var I=0,U=0;(U=w.indexOf("&",U))>=0;){E+=w.slice(I,U),N.startEntity(L);var H=N.write(w,U+1);if(H<0){I=U+N.end();break}I=U+H,U=H===0?I+1:I}var V=E+w.slice(I);return E="",V}}function x(v,E,N,R){var w=(E&h.BRANCH_LENGTH)>>7,L=E&h.JUMP_TABLE;if(w===0)return L!==0&&R===L?N:-1;if(L){var I=R-L;return I<0||I>=w?-1:v[N+I]-1}for(var U=N,H=U+w-1;U<=H;){var V=U+H>>>1,te=v[V];if(te<R)U=V+1;else if(te>R)H=V-1;else return v[V+w]}return-1}n.determineBranch=x;var S=_(s.default),C=_(o.default);function A(v,E){return E===void 0&&(E=p.Legacy),S(v,E)}n.decodeHTML=A;function O(v){return S(v,p.Attribute)}n.decodeHTMLAttribute=O;function D(v){return S(v,p.Strict)}n.decodeHTMLStrict=D;function k(v){return C(v,p.Strict)}n.decodeXML=k})(ji);(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.QuoteType=void 0;var e=ji,t;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(t||(t={}));var r;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(r||(r={}));function i(f){return f===t.Space||f===t.NewLine||f===t.Tab||f===t.FormFeed||f===t.CarriageReturn}function s(f){return f===t.Slash||f===t.Gt||i(f)}function o(f){return f>=t.Zero&&f<=t.Nine}function u(f){return f>=t.LowerA&&f<=t.LowerZ||f>=t.UpperA&&f<=t.UpperZ}function a(f){return f>=t.UpperA&&f<=t.UpperF||f>=t.LowerA&&f<=t.LowerF}var l;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(l=n.QuoteType||(n.QuoteType={}));var c={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function f(d,g){var b=d.xmlMode,m=b===void 0?!1:b,p=d.decodeEntities,y=p===void 0?!0:p;this.cbs=g,this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=m,this.decodeEntities=y,this.entityTrie=m?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=r.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=r.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},f.prototype.getIndex=function(){return this.index},f.prototype.getSectionStart=function(){return this.sectionStart},f.prototype.stateText=function(d){d===t.Lt||!this.decodeEntities&&this.fastForwardTo(t.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=r.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===t.Amp&&(this.state=r.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(d){var g=this.sequenceIndex===this.currentSequence.length,b=g?s(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!b)this.isSpecial=!1;else if(!g){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=r.InTagName,this.stateInTagName(d)},f.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===t.Gt||i(d)){var g=this.index-this.currentSequence.length;if(this.sectionStart<g){var b=this.index;this.index=g,this.cbs.ontext(this.sectionStart,g),this.index=b}this.isSpecial=!1,this.sectionStart=g+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&d===t.Amp&&(this.state=r.BeforeEntity):this.fastForwardTo(t.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(d===t.Lt)},f.prototype.stateCDATASequence=function(d){d===c.Cdata[this.sequenceIndex]?++this.sequenceIndex===c.Cdata.length&&(this.state=r.InCommentLike,this.currentSequence=c.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=r.InDeclaration,this.stateInDeclaration(d))},f.prototype.fastForwardTo=function(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1},f.prototype.stateInCommentLike=function(d){d===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=r.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},f.prototype.isTagStartChar=function(d){return this.xmlMode?!s(d):u(d)},f.prototype.startSpecial=function(d,g){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=g,this.state=r.SpecialStartSequence},f.prototype.stateBeforeTagName=function(d){if(d===t.ExclamationMark)this.state=r.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===t.Questionmark)this.state=r.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){var g=d|32;this.sectionStart=this.index,!this.xmlMode&&g===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&g===c.ScriptEnd[2]?r.BeforeSpecialS:r.InTagName}else d===t.Slash?this.state=r.BeforeClosingTagName:(this.state=r.Text,this.stateText(d))},f.prototype.stateInTagName=function(d){s(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateBeforeClosingTagName=function(d){i(d)||(d===t.Gt?this.state=r.Text:(this.state=this.isTagStartChar(d)?r.InClosingTagName:r.InSpecialComment,this.sectionStart=this.index))},f.prototype.stateInClosingTagName=function(d){(d===t.Gt||i(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterClosingTagName,this.stateAfterClosingTagName(d))},f.prototype.stateAfterClosingTagName=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeAttributeName=function(d){d===t.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=r.InSpecialTag,this.sequenceIndex=0):this.state=r.Text,this.baseState=this.state,this.sectionStart=this.index+1):d===t.Slash?this.state=r.InSelfClosingTag:i(d)||(this.state=r.InAttributeName,this.sectionStart=this.index)},f.prototype.stateInSelfClosingTag=function(d){d===t.Gt?(this.cbs.onselfclosingtag(this.index),this.state=r.Text,this.baseState=r.Text,this.sectionStart=this.index+1,this.isSpecial=!1):i(d)||(this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateInAttributeName=function(d){(d===t.Eq||s(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=r.AfterAttributeName,this.stateAfterAttributeName(d))},f.prototype.stateAfterAttributeName=function(d){d===t.Eq?this.state=r.BeforeAttributeValue:d===t.Slash||d===t.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d)):i(d)||(this.cbs.onattribend(l.NoValue,this.index),this.state=r.InAttributeName,this.sectionStart=this.index)},f.prototype.stateBeforeAttributeValue=function(d){d===t.DoubleQuote?(this.state=r.InAttributeValueDq,this.sectionStart=this.index+1):d===t.SingleQuote?(this.state=r.InAttributeValueSq,this.sectionStart=this.index+1):i(d)||(this.sectionStart=this.index,this.state=r.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))},f.prototype.handleInAttributeValue=function(d,g){d===g||!this.decodeEntities&&this.fastForwardTo(g)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(g===t.DoubleQuote?l.Double:l.Single,this.index),this.state=r.BeforeAttributeName):this.decodeEntities&&d===t.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},f.prototype.stateInAttributeValueDoubleQuotes=function(d){this.handleInAttributeValue(d,t.DoubleQuote)},f.prototype.stateInAttributeValueSingleQuotes=function(d){this.handleInAttributeValue(d,t.SingleQuote)},f.prototype.stateInAttributeValueNoQuotes=function(d){i(d)||d===t.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=r.BeforeAttributeName,this.stateBeforeAttributeName(d)):this.decodeEntities&&d===t.Amp&&(this.baseState=this.state,this.state=r.BeforeEntity)},f.prototype.stateBeforeDeclaration=function(d){d===t.OpeningSquareBracket?(this.state=r.CDATASequence,this.sequenceIndex=0):this.state=d===t.Dash?r.BeforeComment:r.InDeclaration},f.prototype.stateInDeclaration=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},f.prototype.stateInProcessingInstruction=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=r.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeComment=function(d){d===t.Dash?(this.state=r.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=r.InDeclaration},f.prototype.stateInSpecialComment=function(d){(d===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=r.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeSpecialS=function(d){var g=d|32;g===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):g===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=r.InTagName,this.stateInTagName(d))},f.prototype.stateBeforeEntity=function(d){this.entityExcess=1,this.entityResult=0,d===t.Number?this.state=r.BeforeNumericEntity:d===t.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=r.InNamedEntity,this.stateInNamedEntity(d))},f.prototype.stateInNamedEntity=function(d){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var g=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(g){var b=(g>>14)-1;if(!this.allowLegacyEntity()&&d!==t.Semi)this.trieIndex+=b;else{var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=b,this.entityExcess=0,this.sectionStart=this.index+1,b===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var d=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(d){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(d){(d|32)===t.LowerX?(this.entityExcess++,this.state=r.InHexEntity):(this.state=r.InNumericEntity,this.stateInNumericEntity(d))},f.prototype.emitNumericEntity=function(d){var g=this.index-this.entityExcess-1,b=g+2+ +(this.state===r.InHexEntity);b!==this.index&&(g>this.sectionStart&&this.emitPartial(this.sectionStart,g),this.sectionStart=this.index+Number(d),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(d){d===t.Semi?this.emitNumericEntity(!0):o(d)?(this.entityResult=this.entityResult*10+(d-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(d){d===t.Semi?this.emitNumericEntity(!0):o(d)?(this.entityResult=this.entityResult*16+(d-t.Zero),this.entityExcess++):a(d)?(this.entityResult=this.entityResult*16+((d|32)-t.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===r.Text||this.baseState===r.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===r.Text||this.state===r.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===r.InAttributeValueDq||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},f.prototype.parse=function(){for(;this.shouldContinue();){var d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case r.Text:{this.stateText(d);break}case r.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case r.InSpecialTag:{this.stateInSpecialTag(d);break}case r.CDATASequence:{this.stateCDATASequence(d);break}case r.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case r.InAttributeName:{this.stateInAttributeName(d);break}case r.InCommentLike:{this.stateInCommentLike(d);break}case r.InSpecialComment:{this.stateInSpecialComment(d);break}case r.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case r.InTagName:{this.stateInTagName(d);break}case r.InClosingTagName:{this.stateInClosingTagName(d);break}case r.BeforeTagName:{this.stateBeforeTagName(d);break}case r.AfterAttributeName:{this.stateAfterAttributeName(d);break}case r.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case r.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case r.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case r.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case r.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case r.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case r.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case r.InDeclaration:{this.stateInDeclaration(d);break}case r.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case r.BeforeComment:{this.stateBeforeComment(d);break}case r.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case r.InNamedEntity:{this.stateInNamedEntity(d);break}case r.BeforeEntity:{this.stateBeforeEntity(d);break}case r.InHexEntity:{this.stateInHexEntity(d);break}case r.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()},f.prototype.finish=function(){this.state===r.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},f.prototype.handleTrailingData=function(){var d=this.buffer.length+this.offset;this.state===r.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===r.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===r.InTagName||this.state===r.BeforeAttributeName||this.state===r.BeforeAttributeValue||this.state===r.AfterAttributeName||this.state===r.InAttributeName||this.state===r.InAttributeValueSq||this.state===r.InAttributeValueDq||this.state===r.InAttributeValueNq||this.state===r.InClosingTagName||this.cbs.ontext(this.sectionStart,d)},f.prototype.emitPartial=function(d,g){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribdata(d,g):this.cbs.ontext(d,g)},f.prototype.emitCodePoint=function(d){this.baseState!==r.Text&&this.baseState!==r.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)},f}();n.default=h})(Bl);var d2=ee&&ee.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),h2=ee&&ee.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),g2=ee&&ee.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&d2(e,n,t);return h2(e,n),e};Object.defineProperty(Bi,"__esModule",{value:!0});Bi.Parser=void 0;var Cs=g2(Bl),gd=ji,_r=new Set(["input","option","optgroup","select","button","datalist","textarea"]),ye=new Set(["p"]),pd=new Set(["thead","tbody"]),md=new Set(["dd","dt"]),bd=new Set(["rt","rp"]),p2=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",ye],["h1",ye],["h2",ye],["h3",ye],["h4",ye],["h5",ye],["h6",ye],["select",_r],["input",_r],["output",_r],["button",_r],["datalist",_r],["textarea",_r],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",md],["dt",md],["address",ye],["article",ye],["aside",ye],["blockquote",ye],["details",ye],["div",ye],["dl",ye],["fieldset",ye],["figcaption",ye],["figure",ye],["footer",ye],["form",ye],["header",ye],["hr",ye],["main",ye],["nav",ye],["ol",ye],["pre",ye],["section",ye],["table",ye],["ul",ye],["rt",bd],["rp",bd],["tbody",pd],["tfoot",pd]]),m2=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),yd=new Set(["math","svg"]),_d=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),b2=/\s|\//,y2=function(){function n(e,t){t===void 0&&(t={});var r,i,s,o,u;this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:!t.xmlMode,this.lowerCaseAttributeNames=(i=t.lowerCaseAttributeNames)!==null&&i!==void 0?i:!t.xmlMode,this.tokenizer=new((s=t.Tokenizer)!==null&&s!==void 0?s:Cs.default)(this.options,this),(u=(o=this.cbs).onparserinit)===null||u===void 0||u.call(o,this)}return n.prototype.ontext=function(e,t){var r,i,s=this.getSlice(e,t);this.endIndex=t-1,(i=(r=this.cbs).ontext)===null||i===void 0||i.call(r,s),this.startIndex=t},n.prototype.ontextentity=function(e){var t,r,i=this.tokenizer.getSectionStart();this.endIndex=i-1,(r=(t=this.cbs).ontext)===null||r===void 0||r.call(t,(0,gd.fromCodePoint)(e)),this.startIndex=i},n.prototype.isVoidElement=function(e){return!this.options.xmlMode&&m2.has(e)},n.prototype.onopentagname=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)},n.prototype.emitOpenTag=function(e){var t,r,i,s;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&p2.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var u=this.stack.pop();(r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,u,!0)}this.isVoidElement(e)||(this.stack.push(e),yd.has(e)?this.foreignContext.push(!0):_d.has(e)&&this.foreignContext.push(!1)),(s=(i=this.cbs).onopentagname)===null||s===void 0||s.call(i,e),this.cbs.onopentag&&(this.attribs={})},n.prototype.endOpenTag=function(e){var t,r;this.startIndex=this.openTagStart,this.attribs&&((r=(t=this.cbs).onopentag)===null||r===void 0||r.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},n.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},n.prototype.onclosetag=function(e,t){var r,i,s,o,u,a;this.endIndex=t;var l=this.getSlice(e,t);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(yd.has(l)||_d.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((i=(r=this.cbs).onopentagname)===null||i===void 0||i.call(r,"br"),(o=(s=this.cbs).onopentag)===null||o===void 0||o.call(s,"br",{},!0),(a=(u=this.cbs).onclosetag)===null||a===void 0||a.call(u,"br",!1));else{var c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-c;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=c;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},n.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},n.prototype.closeCurrentTag=function(e){var t,r,i=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===i&&((r=(t=this.cbs).onclosetag)===null||r===void 0||r.call(t,i,!e),this.stack.pop())},n.prototype.onattribname=function(e,t){this.startIndex=e;var r=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r},n.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},n.prototype.onattribentity=function(e){this.attribvalue+=(0,gd.fromCodePoint)(e)},n.prototype.onattribend=function(e,t){var r,i;this.endIndex=t,(i=(r=this.cbs).onattribute)===null||i===void 0||i.call(r,this.attribname,this.attribvalue,e===Cs.QuoteType.Double?'"':e===Cs.QuoteType.Single?"'":e===Cs.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},n.prototype.getInstructionName=function(e){var t=e.search(b2),r=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r},n.prototype.ondeclaration=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("!".concat(i),"!".concat(r))}this.startIndex=t+1},n.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var r=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var i=this.getInstructionName(r);this.cbs.onprocessinginstruction("?".concat(i),"?".concat(r))}this.startIndex=t+1},n.prototype.oncomment=function(e,t,r){var i,s,o,u;this.endIndex=t,(s=(i=this.cbs).oncomment)===null||s===void 0||s.call(i,this.getSlice(e,t-r)),(u=(o=this.cbs).oncommentend)===null||u===void 0||u.call(o),this.startIndex=t+1},n.prototype.oncdata=function(e,t,r){var i,s,o,u,a,l,c,h,f,d;this.endIndex=t;var g=this.getSlice(e,t-r);this.options.xmlMode||this.options.recognizeCDATA?((s=(i=this.cbs).oncdatastart)===null||s===void 0||s.call(i),(u=(o=this.cbs).ontext)===null||u===void 0||u.call(o,g),(l=(a=this.cbs).oncdataend)===null||l===void 0||l.call(a)):((h=(c=this.cbs).oncomment)===null||h===void 0||h.call(c,"[CDATA[".concat(g,"]]")),(d=(f=this.cbs).oncommentend)===null||d===void 0||d.call(f)),this.startIndex=t+1},n.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r],!0));}(t=(e=this.cbs).onend)===null||t===void 0||t.call(e)},n.prototype.reset=function(){var e,t,r,i;(t=(e=this.cbs).onreset)===null||t===void 0||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(i=(r=this.cbs).onparserinit)===null||i===void 0||i.call(r,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},n.prototype.parseComplete=function(e){this.reset(),this.end(e)},n.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var r=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,t-this.bufferOffset);return r},n.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},n.prototype.write=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},n.prototype.end=function(e){var t,r;if(this.ended){(r=(t=this.cbs).onerror)===null||r===void 0||r.call(t,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},n.prototype.pause=function(){this.tokenizer.pause()},n.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},n.prototype.parseChunk=function(e){this.write(e)},n.prototype.done=function(e){this.end(e)},n}();Bi.Parser=y2;var an={},ri={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.Doctype=n.CDATA=n.Tag=n.Style=n.Script=n.Comment=n.Directive=n.Text=n.Root=n.isTag=n.ElementType=void 0;var e;(function(r){r.Root="root",r.Text="text",r.Directive="directive",r.Comment="comment",r.Script="script",r.Style="style",r.Tag="tag",r.CDATA="cdata",r.Doctype="doctype"})(e=n.ElementType||(n.ElementType={}));function t(r){return r.type===e.Tag||r.type===e.Script||r.type===e.Style}n.isTag=t,n.Root=e.Root,n.Text=e.Text,n.Directive=e.Directive,n.Comment=e.Comment,n.Script=e.Script,n.Style=e.Style,n.Tag=e.Tag,n.CDATA=e.CDATA,n.Doctype=e.Doctype})(ri);var ae={},Dn=ee&&ee.__extends||function(){var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},n(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");n(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}(),wi=ee&&ee.__assign||function(){return wi=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},wi.apply(this,arguments)};Object.defineProperty(ae,"__esModule",{value:!0});ae.cloneNode=ae.hasChildren=ae.isDocument=ae.isDirective=ae.isComment=ae.isText=ae.isCDATA=ae.isTag=ae.Element=ae.Document=ae.CDATA=ae.NodeWithChildren=ae.ProcessingInstruction=ae.Comment=ae.Text=ae.DataNode=ae.Node=void 0;var at=ri,Ul=function(){function n(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(n.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),n.prototype.cloneNode=function(e){return e===void 0&&(e=!1),zl(this,e)},n}();ae.Node=Ul;var iu=function(n){Dn(e,n);function e(t){var r=n.call(this)||this;return r.data=t,r}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(t){this.data=t},enumerable:!1,configurable:!0}),e}(Ul);ae.DataNode=iu;var Wg=function(n){Dn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=at.ElementType.Text,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(iu);ae.Text=Wg;var Hg=function(n){Dn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=at.ElementType.Comment,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(iu);ae.Comment=Hg;var Vg=function(n){Dn(e,n);function e(t,r){var i=n.call(this,r)||this;return i.name=t,i.type=at.ElementType.Directive,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(iu);ae.ProcessingInstruction=Vg;var su=function(n){Dn(e,n);function e(t){var r=n.call(this)||this;return r.children=t,r}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(t){this.children=t},enumerable:!1,configurable:!0}),e}(Ul);ae.NodeWithChildren=su;var Gg=function(n){Dn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=at.ElementType.CDATA,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(su);ae.CDATA=Gg;var Jg=function(n){Dn(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.type=at.ElementType.Root,t}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(su);ae.Document=Jg;var Xg=function(n){Dn(e,n);function e(t,r,i,s){i===void 0&&(i=[]),s===void 0&&(s=t==="script"?at.ElementType.Script:t==="style"?at.ElementType.Style:at.ElementType.Tag);var o=n.call(this,i)||this;return o.name=t,o.attribs=r,o.type=s,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(t){this.name=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var t=this;return Object.keys(this.attribs).map(function(r){var i,s;return{name:r,value:t.attribs[r],namespace:(i=t["x-attribsNamespace"])===null||i===void 0?void 0:i[r],prefix:(s=t["x-attribsPrefix"])===null||s===void 0?void 0:s[r]}})},enumerable:!1,configurable:!0}),e}(su);ae.Element=Xg;function Yg(n){return(0,at.isTag)(n)}ae.isTag=Yg;function Qg(n){return n.type===at.ElementType.CDATA}ae.isCDATA=Qg;function Zg(n){return n.type===at.ElementType.Text}ae.isText=Zg;function ep(n){return n.type===at.ElementType.Comment}ae.isComment=ep;function tp(n){return n.type===at.ElementType.Directive}ae.isDirective=tp;function np(n){return n.type===at.ElementType.Root}ae.isDocument=np;function _2(n){return Object.prototype.hasOwnProperty.call(n,"children")}ae.hasChildren=_2;function zl(n,e){e===void 0&&(e=!1);var t;if(Zg(n))t=new Wg(n.data);else if(ep(n))t=new Hg(n.data);else if(Yg(n)){var r=e?ju(n.children):[],i=new Xg(n.name,wi({},n.attribs),r);r.forEach(function(a){return a.parent=i}),n.namespace!=null&&(i.namespace=n.namespace),n["x-attribsNamespace"]&&(i["x-attribsNamespace"]=wi({},n["x-attribsNamespace"])),n["x-attribsPrefix"]&&(i["x-attribsPrefix"]=wi({},n["x-attribsPrefix"])),t=i}else if(Qg(n)){var r=e?ju(n.children):[],s=new Gg(r);r.forEach(function(l){return l.parent=s}),t=s}else if(np(n)){var r=e?ju(n.children):[],o=new Jg(r);r.forEach(function(l){return l.parent=o}),n["x-mode"]&&(o["x-mode"]=n["x-mode"]),t=o}else if(tp(n)){var u=new Vg(n.name,n.data);n["x-name"]!=null&&(u["x-name"]=n["x-name"],u["x-publicId"]=n["x-publicId"],u["x-systemId"]=n["x-systemId"]),t=u}else throw new Error("Not implemented yet: ".concat(n.type));return t.startIndex=n.startIndex,t.endIndex=n.endIndex,n.sourceCodeLocation!=null&&(t.sourceCodeLocation=n.sourceCodeLocation),t}ae.cloneNode=zl;function ju(n){for(var e=n.map(function(r){return zl(r,!0)}),t=1;t<e.length;t++)e[t].prev=e[t-1],e[t-1].next=e[t];return e}(function(n){var e=ee&&ee.__createBinding||(Object.create?function(u,a,l,c){c===void 0&&(c=l);var h=Object.getOwnPropertyDescriptor(a,l);(!h||("get"in h?!a.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return a[l]}}),Object.defineProperty(u,c,h)}:function(u,a,l,c){c===void 0&&(c=l),u[c]=a[l]}),t=ee&&ee.__exportStar||function(u,a){for(var l in u)l!=="default"&&!Object.prototype.hasOwnProperty.call(a,l)&&e(a,u,l)};Object.defineProperty(n,"__esModule",{value:!0}),n.DomHandler=void 0;var r=ri,i=ae;t(ae,n);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},o=function(){function u(a,l,c){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=s),typeof a=="object"&&(l=a,a=void 0),this.callback=a??null,this.options=l??s,this.elementCB=c??null}return u.prototype.onparserinit=function(a){this.parser=a},u.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(a){this.handleCallback(a)},u.prototype.onclosetag=function(){this.lastNode=null;var a=this.tagStack.pop();this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(a)},u.prototype.onopentag=function(a,l){var c=this.options.xmlMode?r.ElementType.Tag:void 0,h=new i.Element(a,l,void 0,c);this.addNode(h),this.tagStack.push(h)},u.prototype.ontext=function(a){var l=this.lastNode;if(l&&l.type===r.ElementType.Text)l.data+=a,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new i.Text(a);this.addNode(c),this.lastNode=c}},u.prototype.oncomment=function(a){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment){this.lastNode.data+=a;return}var l=new i.Comment(a);this.addNode(l),this.lastNode=l},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var a=new i.Text(""),l=new i.CDATA([a]);this.addNode(l),a.parent=l,this.lastNode=a},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(a,l){var c=new i.ProcessingInstruction(a,l);this.addNode(c)},u.prototype.handleCallback=function(a){if(typeof this.callback=="function")this.callback(a,this.dom);else if(a)throw a},u.prototype.addNode=function(a){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(a.startIndex=this.parser.startIndex),this.options.withEndIndices&&(a.endIndex=this.parser.endIndex),l.children.push(a),c&&(a.prev=c,c.next=a),a.parent=l,this.lastNode=null},u}();n.DomHandler=o,n.default=o})(an);var Hs={},Mn={},ss={},rp={},sr={},ql={};Object.defineProperty(ql,"__esModule",{value:!0});function Ts(n){for(var e=1;e<n.length;e++)n[e][0]+=n[e-1][0]+1;return n}ql.default=new Map(Ts([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(Ts([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(Ts([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(Ts([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Do={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.escapeText=n.escapeAttribute=n.escapeUTF8=n.escape=n.encodeXML=n.getCodePoint=n.xmlReplacer=void 0,n.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);n.getCodePoint=String.prototype.codePointAt!=null?function(i,s){return i.codePointAt(s)}:function(i,s){return(i.charCodeAt(s)&64512)===55296?(i.charCodeAt(s)-55296)*1024+i.charCodeAt(s+1)-56320+65536:i.charCodeAt(s)};function t(i){for(var s="",o=0,u;(u=n.xmlReplacer.exec(i))!==null;){var a=u.index,l=i.charCodeAt(a),c=e.get(l);c!==void 0?(s+=i.substring(o,a)+c,o=a+1):(s+="".concat(i.substring(o,a),"&#x").concat((0,n.getCodePoint)(i,a).toString(16),";"),o=n.xmlReplacer.lastIndex+=+((l&64512)===55296))}return s+i.substr(o)}n.encodeXML=t,n.escape=t;function r(i,s){return function(u){for(var a,l=0,c="";a=i.exec(u);)l!==a.index&&(c+=u.substring(l,a.index)),c+=s.get(a[0].charCodeAt(0)),l=a.index+1;return c+u.substring(l)}}n.escapeUTF8=r(/[&<>'"]/g,e),n.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),n.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Do);var x2=ee&&ee.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(sr,"__esModule",{value:!0});sr.encodeNonAsciiHTML=sr.encodeHTML=void 0;var v2=x2(ql),ip=Do,S2=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function w2(n){return sp(S2,n)}sr.encodeHTML=w2;function C2(n){return sp(ip.xmlReplacer,n)}sr.encodeNonAsciiHTML=C2;function sp(n,e){for(var t="",r=0,i;(i=n.exec(e))!==null;){var s=i.index;t+=e.substring(r,s);var o=e.charCodeAt(s),u=v2.default.get(o);if(typeof u=="object"){if(s+1<e.length){var a=e.charCodeAt(s+1),l=typeof u.n=="number"?u.n===a?u.o:void 0:u.n.get(a);if(l!==void 0){t+=l,r=n.lastIndex+=1;continue}}u=u.v}if(u!==void 0)t+=u,r=s+1;else{var c=(0,ip.getCodePoint)(e,s);t+="&#x".concat(c.toString(16),";"),r=n.lastIndex+=+(c!==o)}}return t+e.substr(r)}(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.decodeXMLStrict=n.decodeHTML5Strict=n.decodeHTML4Strict=n.decodeHTML5=n.decodeHTML4=n.decodeHTMLAttribute=n.decodeHTMLStrict=n.decodeHTML=n.decodeXML=n.DecodingMode=n.EntityDecoder=n.encodeHTML5=n.encodeHTML4=n.encodeNonAsciiHTML=n.encodeHTML=n.escapeText=n.escapeAttribute=n.escapeUTF8=n.escape=n.encodeXML=n.encode=n.decodeStrict=n.decode=n.EncodingMode=n.EntityLevel=void 0;var e=ji,t=sr,r=Do,i;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(i=n.EntityLevel||(n.EntityLevel={}));var s;(function(f){f[f.UTF8=0]="UTF8",f[f.ASCII=1]="ASCII",f[f.Extensive=2]="Extensive",f[f.Attribute=3]="Attribute",f[f.Text=4]="Text"})(s=n.EncodingMode||(n.EncodingMode={}));function o(f,d){d===void 0&&(d=i.XML);var g=typeof d=="number"?d:d.level;if(g===i.HTML){var b=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(f,b)}return(0,e.decodeXML)(f)}n.decode=o;function u(f,d){var g;d===void 0&&(d=i.XML);var b=typeof d=="number"?{level:d}:d;return(g=b.mode)!==null&&g!==void 0||(b.mode=e.DecodingMode.Strict),o(f,b)}n.decodeStrict=u;function a(f,d){d===void 0&&(d=i.XML);var g=typeof d=="number"?{level:d}:d;return g.mode===s.UTF8?(0,r.escapeUTF8)(f):g.mode===s.Attribute?(0,r.escapeAttribute)(f):g.mode===s.Text?(0,r.escapeText)(f):g.level===i.HTML?g.mode===s.ASCII?(0,t.encodeNonAsciiHTML)(f):(0,t.encodeHTML)(f):(0,r.encodeXML)(f)}n.encode=a;var l=Do;Object.defineProperty(n,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(n,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(n,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(n,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(n,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var c=sr;Object.defineProperty(n,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(n,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(n,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(n,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var h=ji;Object.defineProperty(n,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(n,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(n,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(n,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(n,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(n,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(n,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(rp);var Hr={};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.attributeNames=Hr.elementNames=void 0;Hr.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(n){return[n.toLowerCase(),n]}));Hr.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(n){return[n.toLowerCase(),n]}));var vr=ee&&ee.__assign||function(){return vr=Object.assign||function(n){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i])}return n},vr.apply(this,arguments)},T2=ee&&ee.__createBinding||(Object.create?function(n,e,t,r){r===void 0&&(r=t);var i=Object.getOwnPropertyDescriptor(e,t);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[t]}}),Object.defineProperty(n,r,i)}:function(n,e,t,r){r===void 0&&(r=t),n[r]=e[t]}),E2=ee&&ee.__setModuleDefault||(Object.create?function(n,e){Object.defineProperty(n,"default",{enumerable:!0,value:e})}:function(n,e){n.default=e}),N2=ee&&ee.__importStar||function(n){if(n&&n.__esModule)return n;var e={};if(n!=null)for(var t in n)t!=="default"&&Object.prototype.hasOwnProperty.call(n,t)&&T2(e,n,t);return E2(e,n),e};Object.defineProperty(ss,"__esModule",{value:!0});ss.render=void 0;var Gt=N2(ri),Mo=rp,op=Hr,k2=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function A2(n){return n.replace(/"/g,"&quot;")}function O2(n,e){var t;if(n){var r=((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)===!1?A2:e.xmlMode||e.encodeEntities!=="utf8"?Mo.encodeXML:Mo.escapeAttribute;return Object.keys(n).map(function(i){var s,o,u=(s=n[i])!==null&&s!==void 0?s:"";return e.xmlMode==="foreign"&&(i=(o=op.attributeNames.get(i))!==null&&o!==void 0?o:i),!e.emptyAttrs&&!e.xmlMode&&u===""?i:"".concat(i,'="').concat(r(u),'"')}).join(" ")}}var xd=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function ou(n,e){e===void 0&&(e={});for(var t=("length"in n)?n:[n],r="",i=0;i<t.length;i++)r+=D2(t[i],e);return r}ss.render=ou;ss.default=ou;function D2(n,e){switch(n.type){case Gt.Root:return ou(n.children,e);case Gt.Doctype:case Gt.Directive:return L2(n);case Gt.Comment:return B2(n);case Gt.CDATA:return F2(n);case Gt.Script:case Gt.Style:case Gt.Tag:return P2(n,e);case Gt.Text:return R2(n,e)}}var M2=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),I2=new Set(["svg","math"]);function P2(n,e){var t;e.xmlMode==="foreign"&&(n.name=(t=op.elementNames.get(n.name))!==null&&t!==void 0?t:n.name,n.parent&&M2.has(n.parent.name)&&(e=vr(vr({},e),{xmlMode:!1}))),!e.xmlMode&&I2.has(n.name)&&(e=vr(vr({},e),{xmlMode:"foreign"}));var r="<".concat(n.name),i=O2(n.attribs,e);return i&&(r+=" ".concat(i)),n.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&xd.has(n.name))?(e.xmlMode||(r+=" "),r+="/>"):(r+=">",n.children.length>0&&(r+=ou(n.children,e)),(e.xmlMode||!xd.has(n.name))&&(r+="</".concat(n.name,">"))),r}function L2(n){return"<".concat(n.data,">")}function R2(n,e){var t,r=n.data||"";return((t=e.encodeEntities)!==null&&t!==void 0?t:e.decodeEntities)!==!1&&!(!e.xmlMode&&n.parent&&k2.has(n.parent.name))&&(r=e.xmlMode||e.encodeEntities!=="utf8"?(0,Mo.encodeXML)(r):(0,Mo.escapeText)(r)),r}function F2(n){return"<![CDATA[".concat(n.children[0].data,"]]>")}function B2(n){return"<!--".concat(n.data,"-->")}var j2=ee&&ee.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.getOuterHTML=up;Mn.getInnerHTML=z2;Mn.getText=Vs;Mn.textContent=Oa;Mn.innerText=Da;var zt=an,$2=j2(ss),U2=ri;function up(n,e){return(0,$2.default)(n,e)}function z2(n,e){return(0,zt.hasChildren)(n)?n.children.map(function(t){return up(t,e)}).join(""):""}function Vs(n){return Array.isArray(n)?n.map(Vs).join(""):(0,zt.isTag)(n)?n.name==="br"?`
12
+ `:Vs(n.children):(0,zt.isCDATA)(n)?Vs(n.children):(0,zt.isText)(n)?n.data:""}function Oa(n){return Array.isArray(n)?n.map(Oa).join(""):(0,zt.hasChildren)(n)&&!(0,zt.isComment)(n)?Oa(n.children):(0,zt.isText)(n)?n.data:""}function Da(n){return Array.isArray(n)?n.map(Da).join(""):(0,zt.hasChildren)(n)&&(n.type===U2.ElementType.Tag||(0,zt.isCDATA)(n))?Da(n.children):(0,zt.isText)(n)?n.data:""}var Wt={};Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getChildren=ap;Wt.getParent=lp;Wt.getSiblings=q2;Wt.getAttributeValue=K2;Wt.hasAttrib=W2;Wt.getName=H2;Wt.nextElementSibling=V2;Wt.prevElementSibling=G2;var Kl=an;function ap(n){return(0,Kl.hasChildren)(n)?n.children:[]}function lp(n){return n.parent||null}function q2(n){var e,t,r=lp(n);if(r!=null)return ap(r);for(var i=[n],s=n.prev,o=n.next;s!=null;)i.unshift(s),e=s,s=e.prev;for(;o!=null;)i.push(o),t=o,o=t.next;return i}function K2(n,e){var t;return(t=n.attribs)===null||t===void 0?void 0:t[e]}function W2(n,e){return n.attribs!=null&&Object.prototype.hasOwnProperty.call(n.attribs,e)&&n.attribs[e]!=null}function H2(n){return n.name}function V2(n){for(var e,t=n.next;t!==null&&!(0,Kl.isTag)(t);)e=t,t=e.next;return t}function G2(n){for(var e,t=n.prev;t!==null&&!(0,Kl.isTag)(t);)e=t,t=e.prev;return t}var In={};Object.defineProperty(In,"__esModule",{value:!0});In.removeElement=os;In.replaceElement=J2;In.appendChild=X2;In.append=Y2;In.prependChild=Q2;In.prepend=Z2;function os(n){if(n.prev&&(n.prev.next=n.next),n.next&&(n.next.prev=n.prev),n.parent){var e=n.parent.children,t=e.lastIndexOf(n);t>=0&&e.splice(t,1)}n.next=null,n.prev=null,n.parent=null}function J2(n,e){var t=e.prev=n.prev;t&&(t.next=e);var r=e.next=n.next;r&&(r.prev=e);var i=e.parent=n.parent;if(i){var s=i.children;s[s.lastIndexOf(n)]=e,n.parent=null}}function X2(n,e){if(os(e),e.next=null,e.parent=n,n.children.push(e)>1){var t=n.children[n.children.length-2];t.next=e,e.prev=t}else e.prev=null}function Y2(n,e){os(e);var t=n.parent,r=n.next;if(e.next=r,e.prev=n,n.next=e,e.parent=t,r){if(r.prev=e,t){var i=t.children;i.splice(i.lastIndexOf(r),0,e)}}else t&&t.children.push(e)}function Q2(n,e){if(os(e),e.parent=n,e.prev=null,n.children.unshift(e)!==1){var t=n.children[1];t.prev=e,e.next=t}else e.next=null}function Z2(n,e){os(e);var t=n.parent;if(t){var r=t.children;r.splice(r.indexOf(n),0,e)}n.prev&&(n.prev.next=e),e.parent=t,e.prev=n.prev,e.next=n,n.prev=e}var cn={};Object.defineProperty(cn,"__esModule",{value:!0});cn.filter=ex;cn.find=cp;cn.findOneChild=tx;cn.findOne=fp;cn.existsOne=dp;cn.findAll=nx;var or=an;function ex(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),cp(n,Array.isArray(e)?e:[e],t,r)}function cp(n,e,t,r){for(var i=[],s=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=s[0].length){if(o.length===1)return i;s.shift(),o.shift();continue}var u=s[0][o[0]++];if(n(u)&&(i.push(u),--r<=0))return i;t&&(0,or.hasChildren)(u)&&u.children.length>0&&(o.unshift(0),s.unshift(u.children))}}function tx(n,e){return e.find(n)}function fp(n,e,t){t===void 0&&(t=!0);for(var r=Array.isArray(e)?e:[e],i=0;i<r.length;i++){var s=r[i];if((0,or.isTag)(s)&&n(s))return s;if(t&&(0,or.hasChildren)(s)&&s.children.length>0){var o=fp(n,s.children,!0);if(o)return o}}return null}function dp(n,e){return(Array.isArray(e)?e:[e]).some(function(t){return(0,or.isTag)(t)&&n(t)||(0,or.hasChildren)(t)&&dp(n,t.children)})}function nx(n,e){for(var t=[],r=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=r[0].length){if(r.length===1)return t;r.shift(),i.shift();continue}var s=r[0][i[0]++];(0,or.isTag)(s)&&n(s)&&t.push(s),(0,or.hasChildren)(s)&&s.children.length>0&&(i.unshift(0),r.unshift(s.children))}}var fn={};Object.defineProperty(fn,"__esModule",{value:!0});fn.testElement=ix;fn.getElements=sx;fn.getElementById=ox;fn.getElementsByTagName=ux;fn.getElementsByClassName=ax;fn.getElementsByTagType=lx;var jn=an,us=cn,Io={tag_name:function(n){return typeof n=="function"?function(e){return(0,jn.isTag)(e)&&n(e.name)}:n==="*"?jn.isTag:function(e){return(0,jn.isTag)(e)&&e.name===n}},tag_type:function(n){return typeof n=="function"?function(e){return n(e.type)}:function(e){return e.type===n}},tag_contains:function(n){return typeof n=="function"?function(e){return(0,jn.isText)(e)&&n(e.data)}:function(e){return(0,jn.isText)(e)&&e.data===n}}};function Wl(n,e){return typeof e=="function"?function(t){return(0,jn.isTag)(t)&&e(t.attribs[n])}:function(t){return(0,jn.isTag)(t)&&t.attribs[n]===e}}function rx(n,e){return function(t){return n(t)||e(t)}}function hp(n){var e=Object.keys(n).map(function(t){var r=n[t];return Object.prototype.hasOwnProperty.call(Io,t)?Io[t](r):Wl(t,r)});return e.length===0?null:e.reduce(rx)}function ix(n,e){var t=hp(n);return t?t(e):!0}function sx(n,e,t,r){r===void 0&&(r=1/0);var i=hp(n);return i?(0,us.filter)(i,e,t,r):[]}function ox(n,e,t){return t===void 0&&(t=!0),Array.isArray(e)||(e=[e]),(0,us.findOne)(Wl("id",n),e,t)}function ux(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,us.filter)(Io.tag_name(n),e,t,r)}function ax(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,us.filter)(Wl("class",n),e,t,r)}function lx(n,e,t,r){return t===void 0&&(t=!0),r===void 0&&(r=1/0),(0,us.filter)(Io.tag_type(n),e,t,r)}var gr={};Object.defineProperty(gr,"__esModule",{value:!0});gr.DocumentPosition=void 0;gr.removeSubsets=cx;gr.compareDocumentPosition=gp;gr.uniqueSort=fx;var vd=an;function cx(n){for(var e=n.length;--e>=0;){var t=n[e];if(e>0&&n.lastIndexOf(t,e-1)>=0){n.splice(e,1);continue}for(var r=t.parent;r;r=r.parent)if(n.includes(r)){n.splice(e,1);break}}return n}var kt;(function(n){n[n.DISCONNECTED=1]="DISCONNECTED",n[n.PRECEDING=2]="PRECEDING",n[n.FOLLOWING=4]="FOLLOWING",n[n.CONTAINS=8]="CONTAINS",n[n.CONTAINED_BY=16]="CONTAINED_BY"})(kt||(gr.DocumentPosition=kt={}));function gp(n,e){var t=[],r=[];if(n===e)return 0;for(var i=(0,vd.hasChildren)(n)?n:n.parent;i;)t.unshift(i),i=i.parent;for(i=(0,vd.hasChildren)(e)?e:e.parent;i;)r.unshift(i),i=i.parent;for(var s=Math.min(t.length,r.length),o=0;o<s&&t[o]===r[o];)o++;if(o===0)return kt.DISCONNECTED;var u=t[o-1],a=u.children,l=t[o],c=r[o];return a.indexOf(l)>a.indexOf(c)?u===e?kt.FOLLOWING|kt.CONTAINED_BY:kt.FOLLOWING:u===n?kt.PRECEDING|kt.CONTAINS:kt.PRECEDING}function fx(n){return n=n.filter(function(e,t,r){return!r.includes(e,t+1)}),n.sort(function(e,t){var r=gp(e,t);return r&kt.PRECEDING?-1:r&kt.FOLLOWING?1:0}),n}var Hl={};Object.defineProperty(Hl,"__esModule",{value:!0});Hl.getFeed=hx;var dx=Mn,as=fn;function hx(n){var e=Po(yx,n);return e?e.name==="feed"?gx(e):px(e):null}function gx(n){var e,t=n.children,r={type:"atom",items:(0,as.getElementsByTagName)("entry",t).map(function(o){var u,a=o.children,l={media:pp(a)};st(l,"id","id",a),st(l,"title","title",a);var c=(u=Po("link",a))===null||u===void 0?void 0:u.attribs.href;c&&(l.link=c);var h=xn("summary",a)||xn("content",a);h&&(l.description=h);var f=xn("updated",a);return f&&(l.pubDate=new Date(f)),l})};st(r,"id","id",t),st(r,"title","title",t);var i=(e=Po("link",t))===null||e===void 0?void 0:e.attribs.href;i&&(r.link=i),st(r,"description","subtitle",t);var s=xn("updated",t);return s&&(r.updated=new Date(s)),st(r,"author","email",t,!0),r}function px(n){var e,t,r=(t=(e=Po("channel",n.children))===null||e===void 0?void 0:e.children)!==null&&t!==void 0?t:[],i={type:n.name.substr(0,3),id:"",items:(0,as.getElementsByTagName)("item",n.children).map(function(o){var u=o.children,a={media:pp(u)};st(a,"id","guid",u),st(a,"title","title",u),st(a,"link","link",u),st(a,"description","description",u);var l=xn("pubDate",u)||xn("dc:date",u);return l&&(a.pubDate=new Date(l)),a})};st(i,"title","title",r),st(i,"link","link",r),st(i,"description","description",r);var s=xn("lastBuildDate",r);return s&&(i.updated=new Date(s)),st(i,"author","managingEditor",r,!0),i}var mx=["url","type","lang"],bx=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function pp(n){return(0,as.getElementsByTagName)("media:content",n).map(function(e){for(var t=e.attribs,r={medium:t.medium,isDefault:!!t.isDefault},i=0,s=mx;i<s.length;i++){var o=s[i];t[o]&&(r[o]=t[o])}for(var u=0,a=bx;u<a.length;u++){var o=a[u];t[o]&&(r[o]=parseInt(t[o],10))}return t.expression&&(r.expression=t.expression),r})}function Po(n,e){return(0,as.getElementsByTagName)(n,e,!0,1)[0]}function xn(n,e,t){return t===void 0&&(t=!1),(0,dx.textContent)((0,as.getElementsByTagName)(n,e,t,1)).trim()}function st(n,e,t,r,i){i===void 0&&(i=!1);var s=xn(t,r,i);s&&(n[e]=s)}function yx(n){return n==="rss"||n==="feed"||n==="rdf:RDF"}(function(n){var e=ee&&ee.__createBinding||(Object.create?function(i,s,o,u){u===void 0&&(u=o);var a=Object.getOwnPropertyDescriptor(s,o);(!a||("get"in a?!s.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return s[o]}}),Object.defineProperty(i,u,a)}:function(i,s,o,u){u===void 0&&(u=o),i[u]=s[o]}),t=ee&&ee.__exportStar||function(i,s){for(var o in i)o!=="default"&&!Object.prototype.hasOwnProperty.call(s,o)&&e(s,i,o)};Object.defineProperty(n,"__esModule",{value:!0}),n.hasChildren=n.isDocument=n.isComment=n.isText=n.isCDATA=n.isTag=void 0,t(Mn,n),t(Wt,n),t(In,n),t(cn,n),t(fn,n),t(gr,n),t(Hl,n);var r=an;Object.defineProperty(n,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(n,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(n,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(n,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(n,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(n,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})})(Hs);(function(n){var e=ee&&ee.__createBinding||(Object.create?function(p,y,_,x){x===void 0&&(x=_);var S=Object.getOwnPropertyDescriptor(y,_);(!S||("get"in S?!y.__esModule:S.writable||S.configurable))&&(S={enumerable:!0,get:function(){return y[_]}}),Object.defineProperty(p,x,S)}:function(p,y,_,x){x===void 0&&(x=_),p[x]=y[_]}),t=ee&&ee.__setModuleDefault||(Object.create?function(p,y){Object.defineProperty(p,"default",{enumerable:!0,value:y})}:function(p,y){p.default=y}),r=ee&&ee.__importStar||function(p){if(p&&p.__esModule)return p;var y={};if(p!=null)for(var _ in p)_!=="default"&&Object.prototype.hasOwnProperty.call(p,_)&&e(y,p,_);return t(y,p),y},i=ee&&ee.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(n,"__esModule",{value:!0}),n.DomUtils=n.parseFeed=n.getFeed=n.ElementType=n.Tokenizer=n.createDomStream=n.parseDOM=n.parseDocument=n.DefaultHandler=n.DomHandler=n.Parser=void 0;var s=Bi,o=Bi;Object.defineProperty(n,"Parser",{enumerable:!0,get:function(){return o.Parser}});var u=an,a=an;Object.defineProperty(n,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(n,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}});function l(p,y){var _=new u.DomHandler(void 0,y);return new s.Parser(_,y).end(p),_.root}n.parseDocument=l;function c(p,y){return l(p,y).children}n.parseDOM=c;function h(p,y,_){var x=new u.DomHandler(p,y,_);return new s.Parser(x,y)}n.createDomStream=h;var f=Bl;Object.defineProperty(n,"Tokenizer",{enumerable:!0,get:function(){return i(f).default}}),n.ElementType=r(ri);var d=Hs,g=Hs;Object.defineProperty(n,"getFeed",{enumerable:!0,get:function(){return g.getFeed}});var b={xmlMode:!0};function m(p,y){return y===void 0&&(y=b),(0,d.getFeed)(c(p,y))}n.parseFeed=m,n.DomUtils=r(Hs)})(Kg);var _x=n=>{if(typeof n!="string")throw new TypeError("Expected a string");return n.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Vl={};Object.defineProperty(Vl,"__esModule",{value:!0});/*!
15
13
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
16
14
  *
17
15
  * Copyright (c) 2014-2017, Jon Schlinkert.
18
16
  * Released under the MIT License.
19
- */function ya(n){return Object.prototype.toString.call(n)==="[object Object]"}function Ip(n){var e,t;return ya(n)===!1?!1:(e=n.constructor,e===void 0?!0:(t=e.prototype,!(ya(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}Us.isPlainObject=Ip;var Pp=function(e){return Lp(e)&&!Mp(e)};function Lp(n){return!!n&&typeof n=="object"}function Mp(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||Fp(n)}var Rp=typeof Symbol=="function"&&Symbol.for,Bp=Rp?Symbol.for("react.element"):60103;function Fp(n){return n.$$typeof===Bp}function jp(n){return Array.isArray(n)?[]:{}}function Qn(n,e){return e.clone!==!1&&e.isMergeableObject(n)?mn(jp(n),n,e):n}function qp(n,e,t){return n.concat(e).map(function(r){return Qn(r,t)})}function Up(n,e){if(!e.customMerge)return mn;var t=e.customMerge(n);return typeof t=="function"?t:mn}function zp(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function _a(n){return Object.keys(n).concat(zp(n))}function qc(n,e){try{return e in n}catch{return!1}}function $p(n,e){return qc(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Wp(n,e,t){var r={};return t.isMergeableObject(n)&&_a(n).forEach(function(u){r[u]=Qn(n[u],t)}),_a(e).forEach(function(u){$p(n,u)||(qc(n,u)&&t.isMergeableObject(e[u])?r[u]=Up(u,t)(n[u],e[u],t):r[u]=Qn(e[u],t))}),r}function mn(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||qp,t.isMergeableObject=t.isMergeableObject||Pp,t.cloneUnlessOtherwiseSpecified=Qn;var r=Array.isArray(e),u=Array.isArray(n),i=r===u;return i?r?t.arrayMerge(n,e,t):Wp(n,e,t):Qn(e,t)}mn.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,u){return mn(r,u,t)},{})};var Hp=mn,Vp=Hp,Uc={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.parseSrcset=t()})(V,function(){return function(e){function t(w){return w===" "||w===" "||w===`
20
- `||w==="\f"||w==="\r"}function r(w){var S,T=w.exec(e.substring(g));if(T)return S=T[0],g+=S.length,S}for(var u=e.length,i=/^[ \t\n\r\u000c]+/,s=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,l=/^\d+$/,f=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,c,d,p,m,g=0,y=[];;){if(r(s),g>=u)return y;h=r(o),c=[],h.slice(-1)===","?(h=h.replace(a,""),v()):b()}function b(){for(r(i),d="",p="in descriptor";;){if(m=e.charAt(g),p==="in descriptor")if(t(m))d&&(c.push(d),d="",p="after descriptor");else if(m===","){g+=1,d&&c.push(d),v();return}else if(m==="(")d=d+m,p="in parens";else if(m===""){d&&c.push(d),v();return}else d=d+m;else if(p==="in parens")if(m===")")d=d+m,p="in descriptor";else if(m===""){c.push(d),v();return}else d=d+m;else if(p==="after descriptor"&&!t(m))if(m===""){v();return}else p="in descriptor",g-=1;g+=1}}function v(){var w=!1,S,T,D,C,L={},H,x,k,A,B;for(C=0;C<c.length;C++)H=c[C],x=H[H.length-1],k=H.substring(0,H.length-1),A=parseInt(k,10),B=parseFloat(k),l.test(k)&&x==="w"?((S||T)&&(w=!0),A===0?w=!0:S=A):f.test(k)&&x==="x"?((S||T||D)&&(w=!0),B<0?w=!0:T=B):l.test(k)&&x==="h"?((D||T)&&(w=!0),A===0?w=!0:D=A):w=!0;w?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+H+"'."):(L.url=h,S&&(L.w=S),T&&(L.d=T),D&&(L.h=D),y.push(L))}}})})(Uc);var Gp=Uc.exports,zs={exports:{}},K=String,zc=function(){return{isColorSupported:!1,reset:K,bold:K,dim:K,italic:K,underline:K,inverse:K,hidden:K,strikethrough:K,black:K,red:K,green:K,yellow:K,blue:K,magenta:K,cyan:K,white:K,gray:K,bgBlack:K,bgRed:K,bgGreen:K,bgYellow:K,bgBlue:K,bgMagenta:K,bgCyan:K,bgWhite:K,blackBright:K,redBright:K,greenBright:K,yellowBright:K,blueBright:K,magentaBright:K,cyanBright:K,whiteBright:K,bgBlackBright:K,bgRedBright:K,bgGreenBright:K,bgYellowBright:K,bgBlueBright:K,bgMagentaBright:K,bgCyanBright:K,bgWhiteBright:K}};zs.exports=zc();zs.exports.createColors=zc;var Kp=zs.exports;const Jp={},Zp=Object.freeze(Object.defineProperty({__proto__:null,default:Jp},Symbol.toStringTag,{value:"Module"})),Ve=Sh(Zp);let xa=Kp,va=Ve,$i=class $c extends Error{constructor(e,t,r,u,i,s){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),u&&(this.source=u),s&&(this.plugin=s),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,$c)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=xa.isColorSupported);let r=f=>f,u=f=>f,i=f=>f;if(e){let{bold:f,gray:h,red:c}=xa.createColors(!0);u=d=>f(c(d)),r=d=>h(d),va&&(i=d=>va(d))}let s=t.split(/\r?\n/),o=Math.max(this.line-3,0),a=Math.min(this.line+2,s.length),l=String(a).length;return s.slice(o,a).map((f,h)=>{let c=o+1+h,d=" "+(" "+c).slice(-l)+" | ";if(c===this.line){if(f.length>160){let m=20,g=Math.max(0,this.column-m),y=Math.max(this.column+m,this.endColumn+m),b=f.slice(g,y),v=r(d.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,m-1)).replace(/[^\t]/g," ");return u(">")+r(d)+i(b)+`
21
- `+v+u("^")}let p=r(d.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return u(">")+r(d)+i(f)+`
22
- `+p+u("^")}return" "+r(d)+i(f)}).join(`
17
+ */function Sd(n){return Object.prototype.toString.call(n)==="[object Object]"}function xx(n){var e,t;return Sd(n)===!1?!1:(e=n.constructor,e===void 0?!0:(t=e.prototype,!(Sd(t)===!1||t.hasOwnProperty("isPrototypeOf")===!1)))}Vl.isPlainObject=xx;var vx=function(e){return Sx(e)&&!wx(e)};function Sx(n){return!!n&&typeof n=="object"}function wx(n){var e=Object.prototype.toString.call(n);return e==="[object RegExp]"||e==="[object Date]"||Ex(n)}var Cx=typeof Symbol=="function"&&Symbol.for,Tx=Cx?Symbol.for("react.element"):60103;function Ex(n){return n.$$typeof===Tx}function Nx(n){return Array.isArray(n)?[]:{}}function $i(n,e){return e.clone!==!1&&e.isMergeableObject(n)?Vr(Nx(n),n,e):n}function kx(n,e,t){return n.concat(e).map(function(r){return $i(r,t)})}function Ax(n,e){if(!e.customMerge)return Vr;var t=e.customMerge(n);return typeof t=="function"?t:Vr}function Ox(n){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(n).filter(function(e){return Object.propertyIsEnumerable.call(n,e)}):[]}function wd(n){return Object.keys(n).concat(Ox(n))}function mp(n,e){try{return e in n}catch{return!1}}function Dx(n,e){return mp(n,e)&&!(Object.hasOwnProperty.call(n,e)&&Object.propertyIsEnumerable.call(n,e))}function Mx(n,e,t){var r={};return t.isMergeableObject(n)&&wd(n).forEach(function(i){r[i]=$i(n[i],t)}),wd(e).forEach(function(i){Dx(n,i)||(mp(n,i)&&t.isMergeableObject(e[i])?r[i]=Ax(i,t)(n[i],e[i],t):r[i]=$i(e[i],t))}),r}function Vr(n,e,t){t=t||{},t.arrayMerge=t.arrayMerge||kx,t.isMergeableObject=t.isMergeableObject||vx,t.cloneUnlessOtherwiseSpecified=$i;var r=Array.isArray(e),i=Array.isArray(n),s=r===i;return s?r?t.arrayMerge(n,e,t):Mx(n,e,t):$i(e,t)}Vr.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(r,i){return Vr(r,i,t)},{})};var Ix=Vr,Px=Ix,bp={exports:{}};(function(n){(function(e,t){n.exports?n.exports=t():e.parseSrcset=t()})(ee,function(){return function(e){function t(x){return x===" "||x===" "||x===`
18
+ `||x==="\f"||x==="\r"}function r(x){var S,C=x.exec(e.substring(m));if(C)return S=C[0],m+=S.length,S}for(var i=e.length,s=/^[ \t\n\r\u000c]+/,o=/^[, \t\n\r\u000c]+/,u=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,f,d,g,b,m=0,p=[];;){if(r(o),m>=i)return p;h=r(u),f=[],h.slice(-1)===","?(h=h.replace(a,""),_()):y()}function y(){for(r(s),d="",g="in descriptor";;){if(b=e.charAt(m),g==="in descriptor")if(t(b))d&&(f.push(d),d="",g="after descriptor");else if(b===","){m+=1,d&&f.push(d),_();return}else if(b==="(")d=d+b,g="in parens";else if(b===""){d&&f.push(d),_();return}else d=d+b;else if(g==="in parens")if(b===")")d=d+b,g="in descriptor";else if(b===""){f.push(d),_();return}else d=d+b;else if(g==="after descriptor"&&!t(b))if(b===""){_();return}else g="in descriptor",m-=1;m+=1}}function _(){var x=!1,S,C,A,O,D={},k,v,E,N,R;for(O=0;O<f.length;O++)k=f[O],v=k[k.length-1],E=k.substring(0,k.length-1),N=parseInt(E,10),R=parseFloat(E),l.test(E)&&v==="w"?((S||C)&&(x=!0),N===0?x=!0:S=N):c.test(E)&&v==="x"?((S||C||A)&&(x=!0),R<0?x=!0:C=R):l.test(E)&&v==="h"?((A||C)&&(x=!0),N===0?x=!0:A=N):x=!0;x?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+k+"'."):(D.url=h,S&&(D.w=S),C&&(D.d=C),A&&(D.h=A),p.push(D))}}})})(bp);var Lx=bp.exports,Gl={exports:{}},re=String,yp=function(){return{isColorSupported:!1,reset:re,bold:re,dim:re,italic:re,underline:re,inverse:re,hidden:re,strikethrough:re,black:re,red:re,green:re,yellow:re,blue:re,magenta:re,cyan:re,white:re,gray:re,bgBlack:re,bgRed:re,bgGreen:re,bgYellow:re,bgBlue:re,bgMagenta:re,bgCyan:re,bgWhite:re,blackBright:re,redBright:re,greenBright:re,yellowBright:re,blueBright:re,magentaBright:re,cyanBright:re,whiteBright:re,bgBlackBright:re,bgRedBright:re,bgGreenBright:re,bgYellowBright:re,bgBlueBright:re,bgMagentaBright:re,bgCyanBright:re,bgWhiteBright:re}};Gl.exports=yp();Gl.exports.createColors=yp;var Rx=Gl.exports;const Fx={},Bx=Object.freeze(Object.defineProperty({__proto__:null,default:Fx},Symbol.toStringTag,{value:"Module"})),Pt=f2(Bx);let Cd=Rx,Td=Pt,Ma=class _p extends Error{constructor(e,t,r,i,s,o){super(e),this.name="CssSyntaxError",this.reason=e,s&&(this.file=s),i&&(this.source=i),o&&(this.plugin=o),typeof t<"u"&&typeof r<"u"&&(typeof t=="number"?(this.line=t,this.column=r):(this.line=t.line,this.column=t.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,_p)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;e==null&&(e=Cd.isColorSupported);let r=c=>c,i=c=>c,s=c=>c;if(e){let{bold:c,gray:h,red:f}=Cd.createColors(!0);i=d=>c(f(d)),r=d=>h(d),Td&&(s=d=>Td(d))}let o=t.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),l=String(a).length;return o.slice(u,a).map((c,h)=>{let f=u+1+h,d=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(c.length>160){let b=20,m=Math.max(0,this.column-b),p=Math.max(this.column+b,this.endColumn+b),y=c.slice(m,p),_=r(d.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,b-1)).replace(/[^\t]/g," ");return i(">")+r(d)+s(y)+`
19
+ `+_+i("^")}let g=r(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return i(">")+r(d)+s(c)+`
20
+ `+g+i("^")}return" "+r(d)+s(c)}).join(`
23
21
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
24
22
 
25
23
  `+e+`
26
- `),this.name+": "+this.message+e}};var $s=$i;$i.default=$i;const wa={after:`
24
+ `),this.name+": "+this.message+e}};var Jl=Ma;Ma.default=Ma;const Ed={after:`
27
25
  `,beforeClose:`
28
26
  `,beforeComment:`
29
27
  `,beforeDecl:`
30
28
  `,beforeOpen:" ",beforeRule:`
31
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function Xp(n){return n[0].toUpperCase()+n.slice(1)}let Wi=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,u=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:u&&(r+=" "),e.nodes)this.block(e,r+u);else{let i=(e.raws.between||"")+(t?";":"");this.builder(r+u+i,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let u=e.parent,i=0;for(;u&&u.type!=="root";)i+=1,u=u.parent;if(r.includes(`
32
- `)){let s=this.raw(e,null,"indent");if(s.length)for(let o=0;o<i;o++)r+=s}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let u;e.nodes&&e.nodes.length?(this.body(e),u=this.raw(e,"after")):u=this.raw(e,"after","emptyBody"),u&&this.builder(u),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let u=0;u<e.nodes.length;u++){let i=e.nodes[u],s=this.raw(i,"before");s&&this.builder(s),this.stringify(i,t!==u||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),u=e.prop+r+this.rawValue(e,"value");e.important&&(u+=e.raws.important||" !important"),t&&(u+=";"),this.builder(u,e)}document(e){this.body(e)}raw(e,t,r){let u;if(r||(r=t),t&&(u=e.raws[t],typeof u<"u"))return u;let i=e.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return wa[r];let s=e.root();if(s.rawCache||(s.rawCache={}),typeof s.rawCache[r]<"u")return s.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let o="raw"+Xp(r);this[o]?u=this[o](s,e):s.walk(a=>{if(u=a.raws[t],typeof u<"u")return!1})}return typeof u>"u"&&(u=wa[r]),s.rawCache[r]=u,u}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
33
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(u=>{if(typeof u.raws.before<"u")return r=u.raws.before,r.includes(`
34
- `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(u=>{if(typeof u.raws.before<"u")return r=u.raws.before,r.includes(`
29
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function jx(n){return n[0].toUpperCase()+n.slice(1)}let Ia=class{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name,i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:i&&(r+=" "),e.nodes)this.block(e,r+i);else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+i+s,e)}}beforeAfter(e,t){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):t==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let i=e.parent,s=0;for(;i&&i.type!=="root";)s+=1,i=i.parent;if(r.includes(`
30
+ `)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u<s;u++)r+=o}return r}block(e,t){let r=this.raw(e,"between","beforeOpen");this.builder(t+r+"{",e,"start");let i;e.nodes&&e.nodes.length?(this.body(e),i=this.raw(e,"after")):i=this.raw(e,"after","emptyBody"),i&&this.builder(i),this.builder("}",e,"end")}body(e){let t=e.nodes.length-1;for(;t>0&&e.nodes[t].type==="comment";)t-=1;let r=this.raw(e,"semicolon");for(let i=0;i<e.nodes.length;i++){let s=e.nodes[i],o=this.raw(s,"before");o&&this.builder(o),this.stringify(s,t!==i||r)}}comment(e){let t=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+t+e.text+r+"*/",e)}decl(e,t){let r=this.raw(e,"between","colon"),i=e.prop+r+this.rawValue(e,"value");e.important&&(i+=e.raws.important||" !important"),t&&(i+=";"),this.builder(i,e)}document(e){this.body(e)}raw(e,t,r){let i;if(r||(r=t),t&&(i=e.raws[t],typeof i<"u"))return i;let s=e.parent;if(r==="before"&&(!s||s.type==="root"&&s.first===e||s&&s.type==="document"))return"";if(!s)return Ed[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let u="raw"+jx(r);this[u]?i=this[u](o,e):o.walk(a=>{if(i=a.raws[t],typeof i<"u")return!1})}return typeof i>"u"&&(i=Ed[r]),o.rawCache[r]=i,i}rawBeforeClose(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return t=r.raws.after,t.includes(`
31
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawBeforeComment(e,t){let r;return e.walkComments(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
32
+ `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,t){let r;return e.walkDecls(i=>{if(typeof i.raws.before<"u")return r=i.raws.before,r.includes(`
35
33
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(t,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let t;return e.walk(r=>{if(r.type!=="decl"&&(t=r.raws.between,typeof t<"u"))return!1}),t}rawBeforeRule(e){let t;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return t=r.raws.before,t.includes(`
36
- `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let u=r.parent;if(u&&u!==e&&u.parent&&u.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
37
- `);return t=i[i.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],u=e.raws[t];return u&&u.value===r?u.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var Wc=Wi;Wi.default=Wi;let Qp=Wc;function Hi(n,e){new Qp(e).stringify(n)}var Wu=Hi;Hi.default=Hi;var vr={};vr.isClean=Symbol("isClean");vr.my=Symbol("my");let Yp=$s,eg=Wc,tg=Wu,{isClean:On,my:ng}=vr;function Vi(n,e){let t=new n.constructor;for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r)||r==="proxyCache")continue;let u=n[r],i=typeof u;r==="parent"&&i==="object"?e&&(t[r]=e):r==="source"?t[r]=u:Array.isArray(u)?t[r]=u.map(s=>Vi(s,t)):(i==="object"&&u!==null&&(u=Vi(u)),t[r]=u)}return t}function it(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,u=0;for(let i=0;i<n.length;i++){if(r===e.line&&t===e.column){u=i;break}n[i]===`
38
- `?(t=1,r+=1):t+=1}return u}let Gi=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[On]=!1,this[ng]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=Vi(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:u}=this.rangeBy(t);return this.source.input.error(e,{column:u.column,line:u.line},{column:r.column,line:r.line},t)}return new Yp(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[On]=!0}markDirty(){if(this[On]){this[On]=!1;let e=this;for(;e=e.parent;)e[On]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(it(r,this.source.start),it(r,this.source.end)).indexOf(e.word);i!==-1&&(t=this.positionInside(i))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,u="document"in this.source.input?this.source.input.document:this.source.input.css,i=it(u,this.source.start),s=i+e;for(let o=i;o<s;o++)u[o]===`
39
- `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:s}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:it(t,this.source.start)},u=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:it(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let s=t.slice(it(t,this.source.start),it(t,this.source.end)).indexOf(e.word);s!==-1&&(r=this.positionInside(s),u=this.positionInside(s+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:it(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?u={column:e.end.column,line:e.end.line,offset:it(t,e.end)}:typeof e.endIndex=="number"?u=this.positionInside(e.endIndex):e.index&&(u=this.positionInside(e.index+1));return(u.line<r.line||u.line===r.line&&u.column<=r.column)&&(u={column:r.column+1,line:r.line,offset:r.offset+1}),{end:u,start:r}}raw(e,t){return new eg().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let u of e)u===this?r=!0:r?(this.parent.insertAfter(t,u),t=u):this.parent.insertBefore(t,u);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},u=t==null;t=t||new Map;let i=0;for(let s in this){if(!Object.prototype.hasOwnProperty.call(this,s)||s==="parent"||s==="proxyCache")continue;let o=this[s];if(Array.isArray(o))r[s]=o.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof o=="object"&&o.toJSON)r[s]=o.toJSON(null,t);else if(s==="source"){if(o==null)continue;let a=t.get(o.input);a==null&&(a=i,t.set(o.input,i),i++),r[s]={end:o.end,inputId:a,start:o.start}}else r[s]=o}return u&&(r.inputs=[...t.keys()].map(s=>s.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=tg){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let u={node:this};for(let i in r)u[i]=r[i];return e.warn(t,u)}};var Hu=Gi;Gi.default=Gi;let rg=Hu,Ki=class extends rg{constructor(e){super(e),this.type="comment"}};var Vu=Ki;Ki.default=Ki;let ug=Hu,Ji=class extends ug{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var Gu=Ji;Ji.default=Ji;let Hc=Vu,Vc=Gu,ig=Hu,{isClean:Gc,my:Kc}=vr,Ws,Jc,Zc,Hs;function Xc(n){return n.map(e=>(e.nodes&&(e.nodes=Xc(e.nodes)),delete e.source,e))}function Qc(n){if(n[Gc]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)Qc(e)}let dt=class Yc extends ig{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let u of r)this.proxyOf.nodes.push(u)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,u;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],u=e(this.proxyOf.nodes[r],r),u!==!1);)this.indexes[t]+=1;return delete this.indexes[t],u}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(u=>typeof u=="function"?(i,s)=>u(i.toProxy(),s):u)):t==="every"||t==="some"?r=>e[t]((u,...i)=>r(u.toProxy(),...i)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),u=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let s of u)this.proxyOf.nodes.splice(r+1,0,s);let i;for(let s in this.indexes)i=this.indexes[s],r<i&&(this.indexes[s]=i+u.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),u=r===0?"prepend":!1,i=this.normalize(t,this.proxyOf.nodes[r],u).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<=s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Xc(Jc(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let u of e)u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let u of e)u.parent&&u.parent.removeChild(u,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Vc(e)]}else if(e.selector||e.selectors)e=[new Hs(e)];else if(e.name)e=[new Ws(e)];else if(e.text)e=[new Hc(e)];else throw new Error("Unknown node type in node creation");return e.map(u=>(u[Kc]||Yc.rebuild(u),u=u.proxyOf,u.parent&&u.parent.removeChild(u),u[Gc]&&Qc(u),u.raws||(u.raws={}),typeof u.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(u.raws.before=t.raws.before.replace(/\S/g,"")),u.parent=this.proxyOf,u))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let u of r)this.proxyOf.nodes.unshift(u);for(let u in this.indexes)this.indexes[u]=this.indexes[u]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(u=>{t.props&&!t.props.includes(u.prop)||t.fast&&!u.value.includes(t.fast)||(u.value=u.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let u;try{u=e(t,r)}catch(i){throw t.addToError(i)}return u!==!1&&t.walk&&(u=t.walk(e)),u})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,u)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,u)}):this.walk((r,u)=>{if(r.type==="atrule"&&r.name===e)return t(r,u)}):(t=e,this.walk((r,u)=>{if(r.type==="atrule")return t(r,u)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,u)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,u)}):this.walk((r,u)=>{if(r.type==="decl"&&r.prop===e)return t(r,u)}):(t=e,this.walk((r,u)=>{if(r.type==="decl")return t(r,u)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,u)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,u)}):this.walk((r,u)=>{if(r.type==="rule"&&r.selector===e)return t(r,u)}):(t=e,this.walk((r,u)=>{if(r.type==="rule")return t(r,u)}))}};dt.registerParse=n=>{Jc=n};dt.registerRule=n=>{Hs=n};dt.registerAtRule=n=>{Ws=n};dt.registerRoot=n=>{Zc=n};var Yt=dt;dt.default=dt;dt.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Ws.prototype):n.type==="rule"?Object.setPrototypeOf(n,Hs.prototype):n.type==="decl"?Object.setPrototypeOf(n,Vc.prototype):n.type==="comment"?Object.setPrototypeOf(n,Hc.prototype):n.type==="root"&&Object.setPrototypeOf(n,Zc.prototype),n[Kc]=!0,n.nodes&&n.nodes.forEach(e=>{dt.rebuild(e)})};let e0=Yt,xu=class extends e0{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Vs=xu;xu.default=xu;e0.registerAtRule(xu);let sg=Yt,t0,n0,Yn=class extends sg{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new t0(new n0,this,e).stringify()}};Yn.registerLazyResult=n=>{t0=n};Yn.registerProcessor=n=>{n0=n};var Gs=Yn;Yn.default=Yn;let og="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",ag=(n=21)=>{let e="",t=n|0;for(;t--;)e+=og[Math.random()*64|0];return e};var lg={nanoid:ag};let{existsSync:cg,readFileSync:fg}=Ve,{dirname:ci,join:dg}=Ve,{SourceMapConsumer:Sa,SourceMapGenerator:Ta}=Ve;function hg(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let Zi=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,u=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=ci(this.mapFile)),u&&(this.text=u)}consumer(){return this.consumerCache||(this.consumerCache=new Sa(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,u=/^data:application\/json;charset=utf-?8,/,i=/^data:application\/json,/,s=e.match(u)||e.match(i);if(s)return decodeURIComponent(e.substr(s[0].length));let o=e.match(t)||e.match(r);if(o)return hg(e.substr(o[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),u=e.indexOf("*/",r);r>-1&&u>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,u)))}loadFile(e){if(this.root=ci(e),cg(e))return this.mapFile=e,fg(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let u=this.loadFile(r);if(!u)throw new Error("Unable to load previous source map: "+r.toString());return u}}else{if(t instanceof Sa)return Ta.fromSourceMap(t).toString();if(t instanceof Ta)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=dg(ci(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var r0=Zi;Zi.default=Zi;let{nanoid:pg}=lg,{isAbsolute:Xi,resolve:Qi}=Ve,{SourceMapConsumer:gg,SourceMapGenerator:mg}=Ve,{fileURLToPath:Ca,pathToFileURL:Mr}=Ve,Ea=$s,bg=r0,fi=Ve,di=Symbol("lineToIndexCache"),yg=!!(gg&&mg),ka=!!(Qi&&Xi);function Na(n){if(n[di])return n[di];let e=n.css.split(`
40
- `),t=new Array(e.length),r=0;for(let u=0,i=e.length;u<i;u++)t[u]=r,r+=e[u].length+1;return n[di]=t,t}let vu=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!ka||/^\w+:\/\//.test(t.from)||Xi(t.from)?this.file=t.from:this.file=Qi(t.from)),ka&&yg){let r=new bg(this.css,t);if(r.text){this.map=r;let u=r.consumer().file;!this.file&&u&&(this.file=this.mapResolve(u))}}this.file||(this.id="<input css "+pg(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,u={}){let i,s,o,a,l;if(t&&typeof t=="object"){let h=t,c=r;if(typeof h.offset=="number"){a=h.offset;let d=this.fromOffset(a);t=d.line,r=d.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof c.offset=="number"){o=c.offset;let d=this.fromOffset(o);s=d.line,i=d.col}else s=c.line,i=c.column,o=this.fromLineAndColumn(c.line,c.column)}else if(r)a=this.fromLineAndColumn(t,r);else{a=t;let h=this.fromOffset(a);t=h.line,r=h.col}let f=this.origin(t,r,s,i);return f?l=new Ea(e,f.endLine===void 0?f.line:{column:f.column,line:f.line},f.endLine===void 0?f.column:{column:f.endColumn,line:f.endLine},f.source,f.file,u.plugin):l=new Ea(e,s===void 0?t:{column:r,line:t},s===void 0?r:{column:i,line:s},this.css,this.file,u.plugin),l.input={column:r,endColumn:i,endLine:s,endOffset:o,line:t,offset:a,source:this.css},this.file&&(Mr&&(l.input.url=Mr(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,t){return Na(this)[e-1]+t-1}fromOffset(e){let t=Na(this),r=t[t.length-1],u=0;if(e>=r)u=t.length-1;else{let i=t.length-2,s;for(;u<i;)if(s=u+(i-u>>1),e<t[s])i=s-1;else if(e>=t[s+1])u=s+1;else{u=s;break}}return{col:e-t[u]+1,line:u+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Qi(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,u){if(!this.map)return!1;let i=this.map.consumer(),s=i.originalPositionFor({column:t,line:e});if(!s.source)return!1;let o;typeof r=="number"&&(o=i.originalPositionFor({column:u,line:r}));let a;Xi(s.source)?a=Mr(s.source):a=new URL(s.source,this.map.consumer().sourceRoot||Mr(this.map.mapFile));let l={column:s.column,endColumn:o&&o.column,endLine:o&&o.line,line:s.line,url:a.toString()};if(a.protocol==="file:")if(Ca)l.file=Ca(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(s.source);return f&&(l.source=f),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Ku=vu;vu.default=vu;fi&&fi.registerInput&&fi.registerInput(vu);let u0=Yt,i0,s0,bn=class extends u0{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let u=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let i of u)i.raws.before=t.raws.before}return u}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new i0(new s0,this,e).stringify()}};bn.registerLazyResult=n=>{i0=n};bn.registerProcessor=n=>{s0=n};var wr=bn;bn.default=bn;u0.registerRoot(bn);let er={comma(n){return er.split(n,[","],!0)},space(n){let e=[" ",`
41
- `," "];return er.split(n,e)},split(n,e,t){let r=[],u="",i=!1,s=0,o=!1,a="",l=!1;for(let f of n)l?l=!1:f==="\\"?l=!0:o?f===a&&(o=!1):f==='"'||f==="'"?(o=!0,a=f):f==="("?s+=1:f===")"?s>0&&(s-=1):s===0&&e.includes(f)&&(i=!0),i?(u!==""&&r.push(u.trim()),u="",i=!1):u+=f;return(t||u!=="")&&r.push(u.trim()),r}};var o0=er;er.default=er;let a0=Yt,_g=o0,wu=class extends a0{get selectors(){return _g.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var Ks=wu;wu.default=wu;a0.registerRule(wu);let xg=Vs,vg=Vu,wg=Gu,Sg=Ku,Tg=r0,Cg=wr,Eg=Ks;function tr(n,e){if(Array.isArray(n))return n.map(u=>tr(u));let{inputs:t,...r}=n;if(t){e=[];for(let u of t){let i={...u,__proto__:Sg.prototype};i.map&&(i.map={...i.map,__proto__:Tg.prototype}),e.push(i)}}if(r.nodes&&(r.nodes=n.nodes.map(u=>tr(u,e))),r.source){let{inputId:u,...i}=r.source;r.source=i,u!=null&&(r.source.input=e[u])}if(r.type==="root")return new Cg(r);if(r.type==="decl")return new wg(r);if(r.type==="rule")return new Eg(r);if(r.type==="comment")return new vg(r);if(r.type==="atrule")return new xg(r);throw new Error("Unknown node type: "+n.type)}var kg=tr;tr.default=tr;let{dirname:Kr,relative:l0,resolve:c0,sep:f0}=Ve,{SourceMapConsumer:d0,SourceMapGenerator:Jr}=Ve,{pathToFileURL:Aa}=Ve,Ng=Ku,Ag=!!(d0&&Jr),Og=!!(Kr&&c0&&l0&&f0),Dg=class{constructor(e,t,r,u){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=u,this.originalCSS=u,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
34
+ `)&&(t=t.replace(/[^\n]+$/,"")),!1}),t&&(t=t.replace(/\S/g,"")),t}rawColon(e){let t;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return t=r.raws.between.replace(/[^\s:]/g,""),!1}),t}rawEmptyBody(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(t=r.raws.after,typeof t<"u"))return!1}),t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;return e.walk(r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e&&typeof r.raws.before<"u"){let s=r.raws.before.split(`
35
+ `);return t=s[s.length-1],t=t.replace(/\S/g,""),!1}}),t}rawSemicolon(e){let t;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(t=r.raws.semicolon,typeof t<"u"))return!1}),t}rawValue(e,t){let r=e[t],i=e.raws[t];return i&&i.value===r?i.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,t){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,t)}};var xp=Ia;Ia.default=Ia;let $x=xp;function Pa(n,e){new $x(e).stringify(n)}var uu=Pa;Pa.default=Pa;var ls={};ls.isClean=Symbol("isClean");ls.my=Symbol("my");let Ux=Jl,zx=xp,qx=uu,{isClean:ci,my:Kx}=ls;function La(n,e){let t=new n.constructor;for(let r in n){if(!Object.prototype.hasOwnProperty.call(n,r)||r==="proxyCache")continue;let i=n[r],s=typeof i;r==="parent"&&s==="object"?e&&(t[r]=e):r==="source"?t[r]=i:Array.isArray(i)?t[r]=i.map(o=>La(o,t)):(s==="object"&&i!==null&&(i=La(i)),t[r]=i)}return t}function Jt(n,e){if(e&&typeof e.offset<"u")return e.offset;let t=1,r=1,i=0;for(let s=0;s<n.length;s++){if(r===e.line&&t===e.column){i=s;break}n[s]===`
36
+ `?(t=1,r+=1):t+=1}return i}let Ra=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ci]=!1,this[Kx]=!0;for(let t in e)if(t==="nodes"){this.nodes=[];for(let r of e[t])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[t]=e[t]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let t in e)this[t]=e[t];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let t=La(this);for(let r in e)t[r]=e[r];return t}cloneAfter(e={}){let t=this.clone(e);return this.parent.insertAfter(this,t),t}cloneBefore(e={}){let t=this.clone(e);return this.parent.insertBefore(this,t),t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new Ux(e)}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:t==="root"?()=>e.root().toProxy():e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text")&&e.markDirty()),!0}}}markClean(){this[ci]=!0}markDirty(){if(this[ci]){this[ci]=!1;let e=this;for(;e=e.parent;)e[ci]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let t=this.source.start;if(e.index)t=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,s=r.slice(Jt(r,this.source.start),Jt(r,this.source.end)).indexOf(e.word);s!==-1&&(t=this.positionInside(s))}return t}positionInside(e){let t=this.source.start.column,r=this.source.start.line,i="document"in this.source.input?this.source.input.document:this.source.input.css,s=Jt(i,this.source.start),o=s+e;for(let u=s;u<o;u++)i[u]===`
37
+ `?(t=1,r+=1):t+=1;return{column:t,line:r,offset:o}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let t="document"in this.source.input?this.source.input.document:this.source.input.css,r={column:this.source.start.column,line:this.source.start.line,offset:Jt(t,this.source.start)},i=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:Jt(t,this.source.end)+1}:{column:r.column+1,line:r.line,offset:r.offset+1};if(e.word){let o=t.slice(Jt(t,this.source.start),Jt(t,this.source.end)).indexOf(e.word);o!==-1&&(r=this.positionInside(o),i=this.positionInside(o+e.word.length))}else e.start?r={column:e.start.column,line:e.start.line,offset:Jt(t,e.start)}:e.index&&(r=this.positionInside(e.index)),e.end?i={column:e.end.column,line:e.end.line,offset:Jt(t,e.end)}:typeof e.endIndex=="number"?i=this.positionInside(e.endIndex):e.index&&(i=this.positionInside(e.index+1));return(i.line<r.line||i.line===r.line&&i.column<=r.column)&&(i={column:r.column+1,line:r.line,offset:r.offset+1}),{end:i,start:r}}raw(e,t){return new zx().raw(this,e,t)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let t=this,r=!1;for(let i of e)i===this?r=!0:r?(this.parent.insertAfter(t,i),t=i):this.parent.insertBefore(t,i);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,t){let r={},i=t==null;t=t||new Map;let s=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let u=this[o];if(Array.isArray(u))r[o]=u.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,t):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,t);else if(o==="source"){if(u==null)continue;let a=t.get(u.input);a==null&&(a=s,t.set(u.input,s),s++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return i&&(r.inputs=[...t.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=qx){e.stringify&&(e=e.stringify);let t="";return e(this,r=>{t+=r}),t}warn(e,t,r={}){let i={node:this};for(let s in r)i[s]=r[s];return e.warn(t,i)}};var au=Ra;Ra.default=Ra;let Wx=au,Fa=class extends Wx{constructor(e){super(e),this.type="comment"}};var lu=Fa;Fa.default=Fa;let Hx=au,Ba=class extends Hx{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};var cu=Ba;Ba.default=Ba;let vp=lu,Sp=cu,Vx=au,{isClean:wp,my:Cp}=ls,Xl,Tp,Ep,Yl;function Np(n){return n.map(e=>(e.nodes&&(e.nodes=Np(e.nodes)),delete e.source,e))}function kp(n){if(n[wp]=!1,n.proxyOf.nodes)for(let e of n.proxyOf.nodes)kp(e)}let ln=class Ap extends Vx{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let t of e){let r=this.normalize(t,this.last);for(let i of r)this.proxyOf.nodes.push(i)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let t of this.nodes)t.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let t=this.getIterator(),r,i;for(;this.indexes[t]<this.proxyOf.nodes.length&&(r=this.indexes[t],i=e(this.proxyOf.nodes[r],r),i!==!1);)this.indexes[t]+=1;return delete this.indexes[t],i}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,t){return t==="proxyOf"?e:e[t]?t==="each"||typeof t=="string"&&t.startsWith("walk")?(...r)=>e[t](...r.map(i=>typeof i=="function"?(s,o)=>i(s.toProxy(),o):i)):t==="every"||t==="some"?r=>e[t]((i,...s)=>r(i.toProxy(),...s)):t==="root"?()=>e.root().toProxy():t==="nodes"?e.nodes.map(r=>r.toProxy()):t==="first"||t==="last"?e[t].toProxy():e[t]:e[t]},set(e,t,r){return e[t]===r||(e[t]=r,(t==="name"||t==="params"||t==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,t){let r=this.index(e),i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of i)this.proxyOf.nodes.splice(r+1,0,o);let s;for(let o in this.indexes)s=this.indexes[o],r<s&&(this.indexes[o]=s+i.length);return this.markDirty(),this}insertBefore(e,t){let r=this.index(e),i=r===0?"prepend":!1,s=this.normalize(t,this.proxyOf.nodes[r],i).reverse();r=this.index(e);for(let u of s)this.proxyOf.nodes.splice(r,0,u);let o;for(let u in this.indexes)o=this.indexes[u],r<=o&&(this.indexes[u]=o+s.length);return this.markDirty(),this}normalize(e,t){if(typeof e=="string")e=Np(Tp(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let i of e)i.parent&&i.parent.removeChild(i,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Sp(e)]}else if(e.selector||e.selectors)e=[new Yl(e)];else if(e.name)e=[new Xl(e)];else if(e.text)e=[new vp(e)];else throw new Error("Unknown node type in node creation");return e.map(i=>(i[Cp]||Ap.rebuild(i),i=i.proxyOf,i.parent&&i.parent.removeChild(i),i[wp]&&kp(i),i.raws||(i.raws={}),typeof i.raws.before>"u"&&t&&typeof t.raws.before<"u"&&(i.raws.before=t.raws.before.replace(/\S/g,"")),i.parent=this.proxyOf,i))}prepend(...e){e=e.reverse();for(let t of e){let r=this.normalize(t,this.first,"prepend").reverse();for(let i of r)this.proxyOf.nodes.unshift(i);for(let i in this.indexes)this.indexes[i]=this.indexes[i]+r.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes)t=this.indexes[r],t>=e&&(this.indexes[r]=t-1);return this.markDirty(),this}replaceValues(e,t,r){return r||(r=t,t={}),this.walkDecls(i=>{t.props&&!t.props.includes(i.prop)||t.fast&&!i.value.includes(t.fast)||(i.value=i.value.replace(e,r))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((t,r)=>{let i;try{i=e(t,r)}catch(s){throw t.addToError(s)}return i!==!1&&t.walk&&(i=t.walk(e)),i})}walkAtRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="atrule"&&e.test(r.name))return t(r,i)}):this.walk((r,i)=>{if(r.type==="atrule"&&r.name===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="atrule")return t(r,i)}))}walkComments(e){return this.walk((t,r)=>{if(t.type==="comment")return e(t,r)})}walkDecls(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="decl"&&e.test(r.prop))return t(r,i)}):this.walk((r,i)=>{if(r.type==="decl"&&r.prop===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="decl")return t(r,i)}))}walkRules(e,t){return t?e instanceof RegExp?this.walk((r,i)=>{if(r.type==="rule"&&e.test(r.selector))return t(r,i)}):this.walk((r,i)=>{if(r.type==="rule"&&r.selector===e)return t(r,i)}):(t=e,this.walk((r,i)=>{if(r.type==="rule")return t(r,i)}))}};ln.registerParse=n=>{Tp=n};ln.registerRule=n=>{Yl=n};ln.registerAtRule=n=>{Xl=n};ln.registerRoot=n=>{Ep=n};var pr=ln;ln.default=ln;ln.rebuild=n=>{n.type==="atrule"?Object.setPrototypeOf(n,Xl.prototype):n.type==="rule"?Object.setPrototypeOf(n,Yl.prototype):n.type==="decl"?Object.setPrototypeOf(n,Sp.prototype):n.type==="comment"?Object.setPrototypeOf(n,vp.prototype):n.type==="root"&&Object.setPrototypeOf(n,Ep.prototype),n[Cp]=!0,n.nodes&&n.nodes.forEach(e=>{ln.rebuild(e)})};let Op=pr,Lo=class extends Op{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};var Ql=Lo;Lo.default=Lo;Op.registerAtRule(Lo);let Gx=pr,Dp,Mp,Ui=class extends Gx{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Dp(new Mp,this,e).stringify()}};Ui.registerLazyResult=n=>{Dp=n};Ui.registerProcessor=n=>{Mp=n};var Zl=Ui;Ui.default=Ui;let Jx="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Xx=(n=21)=>{let e="",t=n|0;for(;t--;)e+=Jx[Math.random()*64|0];return e};var Yx={nanoid:Xx};let{existsSync:Qx,readFileSync:Zx}=Pt,{dirname:$u,join:ev}=Pt,{SourceMapConsumer:Nd,SourceMapGenerator:kd}=Pt;function tv(n){return Buffer?Buffer.from(n,"base64").toString():window.atob(n)}let ja=class{constructor(e,t){if(t.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:void 0,i=this.loadMap(t.from,r);!this.mapFile&&t.from&&(this.mapFile=t.from),this.mapFile&&(this.root=$u(this.mapFile)),i&&(this.text=i)}consumer(){return this.consumerCache||(this.consumerCache=new Nd(this.text)),this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/,r=/^data:application\/json;base64,/,i=/^data:application\/json;charset=utf-?8,/,s=/^data:application\/json,/,o=e.match(i)||e.match(s);if(o)return decodeURIComponent(e.substr(o[0].length));let u=e.match(t)||e.match(r);if(u)return tv(e.substr(u[0].length));let a=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+a)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/g);if(!t)return;let r=e.lastIndexOf(t.pop()),i=e.indexOf("*/",r);r>-1&&i>-1&&(this.annotation=this.getAnnotationURL(e.substring(r,i)))}loadFile(e){if(this.root=$u(e),Qx(e))return this.mapFile=e,Zx(e,"utf-8").toString().trim()}loadMap(e,t){if(t===!1)return!1;if(t){if(typeof t=="string")return t;if(typeof t=="function"){let r=t(e);if(r){let i=this.loadFile(r);if(!i)throw new Error("Unable to load previous source map: "+r.toString());return i}}else{if(t instanceof Nd)return kd.fromSourceMap(t).toString();if(t instanceof kd)return t.toString();if(this.isMap(t))return JSON.stringify(t);throw new Error("Unsupported previous source map format: "+t.toString())}}else{if(this.inline)return this.decodeInline(this.annotation);if(this.annotation){let r=this.annotation;return e&&(r=ev($u(e),r)),this.loadFile(r)}}}startWith(e,t){return e?e.substr(0,t.length)===t:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Ip=ja;ja.default=ja;let{nanoid:nv}=Yx,{isAbsolute:$a,resolve:Ua}=Pt,{SourceMapConsumer:rv,SourceMapGenerator:iv}=Pt,{fileURLToPath:Ad,pathToFileURL:Es}=Pt,Od=Jl,sv=Ip,Uu=Pt,zu=Symbol("lineToIndexCache"),ov=!!(rv&&iv),Dd=!!(Ua&&$a);function Md(n){if(n[zu])return n[zu];let e=n.css.split(`
38
+ `),t=new Array(e.length),r=0;for(let i=0,s=e.length;i<s;i++)t[i]=r,r+=e[i].length+1;return n[zu]=t,t}let Ro=class{get from(){return this.file||this.id}constructor(e,t={}){if(e===null||typeof e>"u"||typeof e=="object"&&!e.toString)throw new Error(`PostCSS received ${e} instead of CSS string`);if(this.css=e.toString(),this.css[0]==="\uFEFF"||this.css[0]==="￾"?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,t.document&&(this.document=t.document.toString()),t.from&&(!Dd||/^\w+:\/\//.test(t.from)||$a(t.from)?this.file=t.from:this.file=Ua(t.from)),Dd&&ov){let r=new sv(this.css,t);if(r.text){this.map=r;let i=r.consumer().file;!this.file&&i&&(this.file=this.mapResolve(i))}}this.file||(this.id="<input css "+nv(6)+">"),this.map&&(this.map.file=this.from)}error(e,t,r,i={}){let s,o,u,a,l;if(t&&typeof t=="object"){let h=t,f=r;if(typeof h.offset=="number"){a=h.offset;let d=this.fromOffset(a);t=d.line,r=d.col}else t=h.line,r=h.column,a=this.fromLineAndColumn(t,r);if(typeof f.offset=="number"){u=f.offset;let d=this.fromOffset(u);o=d.line,s=d.col}else o=f.line,s=f.column,u=this.fromLineAndColumn(f.line,f.column)}else if(r)a=this.fromLineAndColumn(t,r);else{a=t;let h=this.fromOffset(a);t=h.line,r=h.col}let c=this.origin(t,r,o,s);return c?l=new Od(e,c.endLine===void 0?c.line:{column:c.column,line:c.line},c.endLine===void 0?c.column:{column:c.endColumn,line:c.endLine},c.source,c.file,i.plugin):l=new Od(e,o===void 0?t:{column:r,line:t},o===void 0?r:{column:s,line:o},this.css,this.file,i.plugin),l.input={column:r,endColumn:s,endLine:o,endOffset:u,line:t,offset:a,source:this.css},this.file&&(Es&&(l.input.url=Es(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,t){return Md(this)[e-1]+t-1}fromOffset(e){let t=Md(this),r=t[t.length-1],i=0;if(e>=r)i=t.length-1;else{let s=t.length-2,o;for(;i<s;)if(o=i+(s-i>>1),e<t[o])s=o-1;else if(e>=t[o+1])i=o+1;else{i=o;break}}return{col:e-t[i]+1,line:i+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:Ua(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return!1;let s=this.map.consumer(),o=s.originalPositionFor({column:t,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=s.originalPositionFor({column:i,line:r}));let a;$a(o.source)?a=Es(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Es(this.map.mapFile));let l={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Ad)l.file=Ad(a);else throw new Error("file: protocol is not available in this PostCSS build");let c=s.sourceContentFor(o.source);return c&&(l.source=c),l}toJSON(){let e={};for(let t of["hasBOM","css","file","id"])this[t]!=null&&(e[t]=this[t]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var fu=Ro;Ro.default=Ro;Uu&&Uu.registerInput&&Uu.registerInput(Ro);let Pp=pr,Lp,Rp,Gr=class extends Pp{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend")this.nodes.length>1?t.raws.before=this.nodes[1].raws.before:delete t.raws.before;else if(this.first!==t)for(let s of i)s.raws.before=t.raws.before}return i}removeChild(e,t){let r=this.index(e);return!t&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Lp(new Rp,this,e).stringify()}};Gr.registerLazyResult=n=>{Lp=n};Gr.registerProcessor=n=>{Rp=n};var cs=Gr;Gr.default=Gr;Pp.registerRoot(Gr);let zi={comma(n){return zi.split(n,[","],!0)},space(n){let e=[" ",`
39
+ `," "];return zi.split(n,e)},split(n,e,t){let r=[],i="",s=!1,o=0,u=!1,a="",l=!1;for(let c of n)l?l=!1:c==="\\"?l=!0:u?c===a&&(u=!1):c==='"'||c==="'"?(u=!0,a=c):c==="("?o+=1:c===")"?o>0&&(o-=1):o===0&&e.includes(c)&&(s=!0),s?(i!==""&&r.push(i.trim()),i="",s=!1):i+=c;return(t||i!=="")&&r.push(i.trim()),r}};var Fp=zi;zi.default=zi;let Bp=pr,uv=Fp,Fo=class extends Bp{get selectors(){return uv.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null,r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};var ec=Fo;Fo.default=Fo;Bp.registerRule(Fo);let av=Ql,lv=lu,cv=cu,fv=fu,dv=Ip,hv=cs,gv=ec;function qi(n,e){if(Array.isArray(n))return n.map(i=>qi(i));let{inputs:t,...r}=n;if(t){e=[];for(let i of t){let s={...i,__proto__:fv.prototype};s.map&&(s.map={...s.map,__proto__:dv.prototype}),e.push(s)}}if(r.nodes&&(r.nodes=n.nodes.map(i=>qi(i,e))),r.source){let{inputId:i,...s}=r.source;r.source=s,i!=null&&(r.source.input=e[i])}if(r.type==="root")return new hv(r);if(r.type==="decl")return new cv(r);if(r.type==="rule")return new gv(r);if(r.type==="comment")return new lv(r);if(r.type==="atrule")return new av(r);throw new Error("Unknown node type: "+n.type)}var pv=qi;qi.default=qi;let{dirname:Gs,relative:jp,resolve:$p,sep:Up}=Pt,{SourceMapConsumer:zp,SourceMapGenerator:Js}=Pt,{pathToFileURL:Id}=Pt,mv=fu,bv=!!(zp&&Js),yv=!!(Gs&&$p&&jp&&Up),_v=class{constructor(e,t,r,i){this.stringify=e,this.mapOpts=r.map||{},this.root=t,this.opts=r,this.css=i,this.originalCSS=i,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let t=`
42
40
  `;this.css.includes(`\r
43
41
  `)&&(t=`\r
44
- `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Kr(e.file),u;this.mapOpts.sourcesContent===!1?(u=new d0(e.text),u.sourcesContent&&(u.sourcesContent=null)):u=e.consumer(),this.map.applySourceMap(u,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),Og&&Ag&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Jr.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Jr({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Jr({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",u={generated:{column:0,line:0},original:{column:0,line:0},source:""},i,s;this.stringify(this.root,(o,a,l)=>{if(this.css+=o,a&&l!=="end"&&(u.generated.line=e,u.generated.column=t-1,a.source&&a.source.start?(u.source=this.sourcePath(a),u.original.line=a.source.start.line,u.original.column=a.source.start.column-1,this.map.addMapping(u)):(u.source=r,u.original.line=1,u.original.column=0,this.map.addMapping(u))),s=o.match(/\n/g),s?(e+=s.length,i=o.lastIndexOf(`
45
- `),t=o.length-i):t+=o.length,a&&l!=="start"){let f=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==f.last||f.raws.semicolon)&&(a.source&&a.source.end?(u.source=this.sourcePath(a),u.original.line=a.source.end.line,u.original.column=a.source.end.column-1,u.generated.line=e,u.generated.column=t-2,this.map.addMapping(u)):(u.source=r,u.original.line=1,u.original.column=0,u.generated.line=e,u.generated.column=t-1,this.map.addMapping(u)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Kr(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Kr(c0(r,this.mapOpts.annotation)));let u=l0(r,e);return this.memoizedPaths.set(e,u),u}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new Ng(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let u=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(u,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Aa){let r=Aa(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;f0==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var h0=Dg;const hi=39,Oa=34,Rr=92,Da=47,Br=10,Dn=32,Fr=12,jr=9,qr=13,Ig=91,Pg=93,Lg=40,Mg=41,Rg=123,Bg=125,Fg=59,jg=42,qg=58,Ug=64,Ur=/[\t\n\f\r "#'()/;[\\\]{}]/g,zr=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,zg=/.[\r\n"'(/\\]/,Ia=/[\da-f]/i;var $g=function(e,t={}){let r=e.css.valueOf(),u=t.ignoreErrors,i,s,o,a,l,f,h,c,d,p,m=r.length,g=0,y=[],b=[];function v(){return g}function w(C){throw e.error("Unclosed "+C,g)}function S(){return b.length===0&&g>=m}function T(C){if(b.length)return b.pop();if(g>=m)return;let L=C?C.ignoreUnclosed:!1;switch(i=r.charCodeAt(g),i){case Br:case Dn:case jr:case qr:case Fr:{a=g;do a+=1,i=r.charCodeAt(a);while(i===Dn||i===Br||i===jr||i===qr||i===Fr);f=["space",r.slice(g,a)],g=a-1;break}case Ig:case Pg:case Rg:case Bg:case qg:case Fg:case Mg:{let H=String.fromCharCode(i);f=[H,H,g];break}case Lg:{if(p=y.length?y.pop()[1]:"",d=r.charCodeAt(g+1),p==="url"&&d!==hi&&d!==Oa&&d!==Dn&&d!==Br&&d!==jr&&d!==Fr&&d!==qr){a=g;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(u||L){a=g;break}else w("bracket");for(c=a;r.charCodeAt(c-1)===Rr;)c-=1,h=!h}while(h);f=["brackets",r.slice(g,a+1),g,a],g=a}else a=r.indexOf(")",g+1),s=r.slice(g,a+1),a===-1||zg.test(s)?f=["(","(",g]:(f=["brackets",s,g,a],g=a);break}case hi:case Oa:{l=i===hi?"'":'"',a=g;do{if(h=!1,a=r.indexOf(l,a+1),a===-1)if(u||L){a=g+1;break}else w("string");for(c=a;r.charCodeAt(c-1)===Rr;)c-=1,h=!h}while(h);f=["string",r.slice(g,a+1),g,a],g=a;break}case Ug:{Ur.lastIndex=g+1,Ur.test(r),Ur.lastIndex===0?a=r.length-1:a=Ur.lastIndex-2,f=["at-word",r.slice(g,a+1),g,a],g=a;break}case Rr:{for(a=g,o=!0;r.charCodeAt(a+1)===Rr;)a+=1,o=!o;if(i=r.charCodeAt(a+1),o&&i!==Da&&i!==Dn&&i!==Br&&i!==jr&&i!==qr&&i!==Fr&&(a+=1,Ia.test(r.charAt(a)))){for(;Ia.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===Dn&&(a+=1)}f=["word",r.slice(g,a+1),g,a],g=a;break}default:{i===Da&&r.charCodeAt(g+1)===jg?(a=r.indexOf("*/",g+2)+1,a===0&&(u||L?a=r.length:w("comment")),f=["comment",r.slice(g,a+1),g,a],g=a):(zr.lastIndex=g+1,zr.test(r),zr.lastIndex===0?a=r.length-1:a=zr.lastIndex-2,f=["word",r.slice(g,a+1),g,a],y.push(f),g=a);break}}return g++,f}function D(C){b.push(C)}return{back:D,endOfFile:S,nextToken:T,position:v}};let Wg=Vs,Hg=Vu,Vg=Gu,Gg=wr,Pa=Ks,Kg=$g;const La={empty:!0,space:!0};function Jg(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}let Zg=class{constructor(e){this.input=e,this.root=new Gg,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Wg;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,u,i,s=!1,o=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){o=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,u=a[i];u&&u[0]==="space";)u=a[--i];u&&(t.source.end=this.getPosition(u[3]||u[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){s=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),s&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),o&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,u;for(let i=t-1;i>=0&&(u=e[i],!(u[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",u[0]==="word"?u[3]+1:u[2])}colon(e){let t=0,r,u,i;for(let[s,o]of e.entries()){if(u=o,i=u[0],i==="("&&(t+=1),i===")"&&(t-=1),t===0&&i===":")if(!r)this.doubleColon(u);else{if(r[0]==="word"&&r[1]==="progid")continue;return s}r=u}return!1}comment(e){let t=new Hg;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let u=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=u[2],t.raws.left=u[1],t.raws.right=u[3]}}createTokenizer(){this.tokenizer=Kg(this.input)}decl(e,t){let r=new Vg;this.init(r,e[0][2]);let u=e[e.length-1];for(u[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(u[3]||u[2]||Jg(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let i;for(;e.length;)if(i=e.shift(),i[0]===":"){r.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),r.raws.between+=i[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let s=[],o;for(;e.length&&(o=e[0][0],!(o!=="space"&&o!=="comment"));)s.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(i=e[l],i[1].toLowerCase()==="!important"){r.important=!0;let f=this.stringFrom(e,l);f=this.spacesFromEnd(e)+f,f!==" !important"&&(r.raws.important=f);break}else if(i[1].toLowerCase()==="important"){let f=e.slice(0),h="";for(let c=l;c>0;c--){let d=f[c][0];if(h.trim().startsWith("!")&&d!=="space")break;h=f.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=f)}if(i[0]!=="space"&&i[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=s.map(l=>l[1]).join(""),s=[]),this.raw(r,"value",s.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Pa;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,u=!1,i=null,s=[],o=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),r==="("||r==="[")i||(i=l),s.push(r==="("?")":"]");else if(o&&u&&r==="{")i||(i=l),s.push("}");else if(s.length===0)if(r===";")if(u){this.decl(a,o);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(u=!0);else r===s[s.length-1]&&(s.pop(),s.length===0&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),s.length>0&&this.unclosedBracket(i),t&&u){if(!o)for(;a.length&&(l=a[a.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,o)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,u){let i,s,o=r.length,a="",l=!0,f,h;for(let c=0;c<o;c+=1)i=r[c],s=i[0],s==="space"&&c===o-1&&!u?l=!1:s==="comment"?(h=r[c-1]?r[c-1][0]:"empty",f=r[c+1]?r[c+1][0]:"empty",!La[h]&&!La[f]?a.slice(-1)===","?l=!1:a+=i[1]:l=!1):a+=i[1];if(!l){let c=r.reduce((d,p)=>d+p[1],"");e.raws[t]={raw:c,value:a}}e[t]=a}rule(e){e.pop();let t=new Pa;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let u=t;u<e.length;u++)r+=e[u][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var Xg=Zg;let Qg=Yt,Yg=Ku,e1=Xg;function Su(n,e){let t=new Yg(n,e),r=new e1(t);try{r.parse()}catch(u){throw process.env.NODE_ENV!=="production"&&u.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?u.message+=`
46
- You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?u.message+=`
47
- You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(u.message+=`
48
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),u}return r.root}var Js=Su;Su.default=Su;Qg.registerParse(Su);let Yi=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var p0=Yi;Yi.default=Yi;let t1=p0,es=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new t1(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Zs=es;es.default=es;let Ma={};var g0=function(e){Ma[e]||(Ma[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let n1=Yt,r1=Gs,u1=h0,i1=Js,Ra=Zs,s1=wr,o1=Wu,{isClean:Je,my:a1}=vr,l1=g0;const c1={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},f1={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},d1={Once:!0,postcssPlugin:!0,prepare:!0},yn=0;function In(n){return typeof n=="object"&&typeof n.then=="function"}function m0(n){let e=!1,t=c1[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,yn,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,yn,t+"Exit"]:[t,t+"Exit"]}function Ba(n){let e;return n.type==="document"?e=["Document",yn,"DocumentExit"]:n.type==="root"?e=["Root",yn,"RootExit"]:e=m0(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function ts(n){return n[Je]=!1,n.nodes&&n.nodes.forEach(e=>ts(e)),n}let ns={},_n=class b0{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let u;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))u=ts(t);else if(t instanceof b0||t instanceof Ra)u=ts(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let i=i1;r.syntax&&(i=r.syntax.parse),r.parser&&(i=r.parser),i.parse&&(i=i.parse);try{u=i(t,r)}catch(s){this.processed=!0,this.error=s}u&&!u[a1]&&n1.rebuild(u)}this.result=new Ra(e,u,r),this.helpers={...ns,postcss:ns,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=r.postcssPlugin,e.setMessage();else if(r.postcssVersion&&process.env.NODE_ENV!=="production"){let u=r.postcssPlugin,i=r.postcssVersion,s=this.result.processor.version,o=i.split("."),a=s.split(".");(o[0]!==a[0]||parseInt(o[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+s+", but "+u+" uses "+i+". Perhaps this is the source of the error below.")}}catch(u){console&&console.error&&console.error(u)}return e}prepareVisitors(){this.listeners={};let e=(t,r,u)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,u])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!f1[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d1[r])if(typeof t[r]=="object")for(let u in t[r])u==="*"?e(t,r,t[r][u]):e(t,r+"-"+u.toLowerCase(),t[r][u]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(In(r))try{await r}catch(u){throw this.handleError(u)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Je];){e[Je]=!0;let t=[Ba(e)];for(;t.length>0;){let r=this.visitTick(t);if(In(r))try{await r}catch(u){let i=t[t.length-1].node;throw this.handleError(u,i)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let u=e.nodes.map(i=>r(i,this.helpers));await Promise.all(u)}else await r(e,this.helpers)}catch(u){throw this.handleError(u)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return In(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=o1;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let u=new u1(t,this.result.root,this.result.opts).generate();return this.result.css=u[0],this.result.map=u[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(In(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Je];)e[Je]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||l1("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,u]of e){this.result.lastPlugin=r;let i;try{i=u(t,this.helpers)}catch(s){throw this.handleError(s,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(In(i))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:u}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(u.length>0&&t.visitorIndex<u.length){let[s,o]=u[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===u.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=s;try{return o(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let s=t.iterator,o;for(;o=r.nodes[r.indexes[s]];)if(r.indexes[s]+=1,!o[Je]){o[Je]=!0,e.push(Ba(o));return}t.iterator=0,delete r.indexes[s]}let i=t.events;for(;t.eventIndex<i.length;){let s=i[t.eventIndex];if(t.eventIndex+=1,s===yn){r.nodes&&r.nodes.length&&(r[Je]=!0,t.iterator=r.getIterator());return}else if(this.listeners[s]){t.visitors=this.listeners[s];return}}e.pop()}walkSync(e){e[Je]=!0;let t=m0(e);for(let r of t)if(r===yn)e.nodes&&e.each(u=>{u[Je]||this.walkSync(u)});else{let u=this.listeners[r];if(u&&this.visitSync(u,e.toProxy()))return}}warnings(){return this.sync().warnings()}};_n.registerPostcss=n=>{ns=n};var y0=_n;_n.default=_n;s1.registerLazyResult(_n);r1.registerLazyResult(_n);let h1=h0,p1=Js;const g1=Zs;let m1=Wu,b1=g0,rs=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=p1;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let u,i=m1;this.result=new g1(this._processor,u,this._opts),this.result.css=t;let s=this;Object.defineProperty(this.result,"root",{get(){return s.root}});let o=new h1(i,u,this._opts,t);if(o.isMap()){let[a,l]=o.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else o.clearAnnotation(),this.result.css=o.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||b1("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var y1=rs;rs.default=rs;let _1=Gs,x1=y0,v1=y1,w1=wr,nr=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(typeof r=="object"&&(r.parse||r.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new v1(this,e,t):new x1(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var S1=nr;nr.default=nr;w1.registerProcessor(nr);_1.registerProcessor(nr);let _0=Vs,x0=Vu,T1=Yt,C1=$s,v0=Gu,w0=Gs,E1=kg,k1=Ku,N1=y0,A1=o0,O1=Hu,D1=Js,Xs=S1,I1=Zs,S0=wr,T0=Ks,P1=Wu,L1=p0;function ne(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new Xs(n)}ne.plugin=function(e,t){let r=!1;function u(...s){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
42
+ `),this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file)),r=e.root||Gs(e.file),i;this.mapOpts.sourcesContent===!1?(i=new zp(e.text),i.sourcesContent&&(i.sourcesContent=null)):i=e.consumer(),this.map.applySourceMap(i,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation!==!1)if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--)e=this.root.nodes[t],e.type==="comment"&&e.text.startsWith("# sourceMappingURL=")&&this.root.removeChild(t)}else this.css&&(this.css=this.css.replace(/\n*\/\*#[\S\s]*?\*\/$/gm,""))}generate(){if(this.clearAnnotation(),yv&&bv&&this.isMap())return this.generateMap();{let e="";return this.stringify(this.root,t=>{e+=t}),[e]}}generateMap(){if(this.root)this.generateString();else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile(),this.map=Js.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new Js({file:this.outputFile(),ignoreInvalidMapping:!0}),this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>"});return this.isSourcesContent()&&this.setSourcesContent(),this.root&&this.previous().length>0&&this.applyPrevMaps(),this.isAnnotation()&&this.addAnnotation(),this.isInline()?[this.css]:[this.css,this.map]}generateString(){this.css="",this.map=new Js({file:this.outputFile(),ignoreInvalidMapping:!0});let e=1,t=1,r="<no source>",i={generated:{column:0,line:0},original:{column:0,line:0},source:""},s,o;this.stringify(this.root,(u,a,l)=>{if(this.css+=u,a&&l!=="end"&&(i.generated.line=e,i.generated.column=t-1,a.source&&a.source.start?(i.source=this.sourcePath(a),i.original.line=a.source.start.line,i.original.column=a.source.start.column-1,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,this.map.addMapping(i))),o=u.match(/\n/g),o?(e+=o.length,s=u.lastIndexOf(`
43
+ `),t=u.length-s):t+=u.length,a&&l!=="start"){let c=a.parent||{raws:{}};(!(a.type==="decl"||a.type==="atrule"&&!a.nodes)||a!==c.last||c.raws.semicolon)&&(a.source&&a.source.end?(i.source=this.sourcePath(a),i.original.line=a.source.end.line,i.original.column=a.source.end.column-1,i.generated.line=e,i.generated.column=t-2,this.map.addMapping(i)):(i.source=r,i.original.line=1,i.original.column=0,i.generated.line=e,i.generated.column=t-1,this.map.addMapping(i)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(t=>t.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?Gs(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(r=Gs($p(r,this.mapOpts.annotation)));let i=jp(r,e);return this.memoizedPaths.set(e,i),i}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;this.previousMaps.includes(t)||this.previousMaps.push(t)}});else{let e=new mv(this.originalCSS,this.opts);e.map&&this.previousMaps.push(e.map)}return this.previousMaps}setSourcesContent(){let e={};if(this.root)this.root.walk(t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=!0;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}});else if(this.css){let t=this.opts.from?this.toUrl(this.path(this.opts.from)):"<no source>";this.map.setSourceContent(t,this.css)}}sourcePath(e){return this.mapOpts.from?this.toUrl(this.mapOpts.from):this.usesFileUrls?this.toFileUrl(e.source.input.from):this.toUrl(this.path(e.source.input.from))}toBase64(e){return Buffer?Buffer.from(e).toString("base64"):window.btoa(unescape(encodeURIComponent(e)))}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(Id){let r=Id(e).toString();return this.memoizedFileURLs.set(e,r),r}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;Up==="\\"&&(e=e.replace(/\\/g,"/"));let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,r),r}};var qp=_v;const qu=39,Pd=34,Ns=92,Ld=47,ks=10,fi=32,As=12,Os=9,Ds=13,xv=91,vv=93,Sv=40,wv=41,Cv=123,Tv=125,Ev=59,Nv=42,kv=58,Av=64,Ms=/[\t\n\f\r "#'()/;[\\\]{}]/g,Is=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Ov=/.[\r\n"'(/\\]/,Rd=/[\da-f]/i;var Dv=function(e,t={}){let r=e.css.valueOf(),i=t.ignoreErrors,s,o,u,a,l,c,h,f,d,g,b=r.length,m=0,p=[],y=[];function _(){return m}function x(O){throw e.error("Unclosed "+O,m)}function S(){return y.length===0&&m>=b}function C(O){if(y.length)return y.pop();if(m>=b)return;let D=O?O.ignoreUnclosed:!1;switch(s=r.charCodeAt(m),s){case ks:case fi:case Os:case Ds:case As:{a=m;do a+=1,s=r.charCodeAt(a);while(s===fi||s===ks||s===Os||s===Ds||s===As);c=["space",r.slice(m,a)],m=a-1;break}case xv:case vv:case Cv:case Tv:case kv:case Ev:case wv:{let k=String.fromCharCode(s);c=[k,k,m];break}case Sv:{if(g=p.length?p.pop()[1]:"",d=r.charCodeAt(m+1),g==="url"&&d!==qu&&d!==Pd&&d!==fi&&d!==ks&&d!==Os&&d!==As&&d!==Ds){a=m;do{if(h=!1,a=r.indexOf(")",a+1),a===-1)if(i||D){a=m;break}else x("bracket");for(f=a;r.charCodeAt(f-1)===Ns;)f-=1,h=!h}while(h);c=["brackets",r.slice(m,a+1),m,a],m=a}else a=r.indexOf(")",m+1),o=r.slice(m,a+1),a===-1||Ov.test(o)?c=["(","(",m]:(c=["brackets",o,m,a],m=a);break}case qu:case Pd:{l=s===qu?"'":'"',a=m;do{if(h=!1,a=r.indexOf(l,a+1),a===-1)if(i||D){a=m+1;break}else x("string");for(f=a;r.charCodeAt(f-1)===Ns;)f-=1,h=!h}while(h);c=["string",r.slice(m,a+1),m,a],m=a;break}case Av:{Ms.lastIndex=m+1,Ms.test(r),Ms.lastIndex===0?a=r.length-1:a=Ms.lastIndex-2,c=["at-word",r.slice(m,a+1),m,a],m=a;break}case Ns:{for(a=m,u=!0;r.charCodeAt(a+1)===Ns;)a+=1,u=!u;if(s=r.charCodeAt(a+1),u&&s!==Ld&&s!==fi&&s!==ks&&s!==Os&&s!==Ds&&s!==As&&(a+=1,Rd.test(r.charAt(a)))){for(;Rd.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===fi&&(a+=1)}c=["word",r.slice(m,a+1),m,a],m=a;break}default:{s===Ld&&r.charCodeAt(m+1)===Nv?(a=r.indexOf("*/",m+2)+1,a===0&&(i||D?a=r.length:x("comment")),c=["comment",r.slice(m,a+1),m,a],m=a):(Is.lastIndex=m+1,Is.test(r),Is.lastIndex===0?a=r.length-1:a=Is.lastIndex-2,c=["word",r.slice(m,a+1),m,a],p.push(c),m=a);break}}return m++,c}function A(O){y.push(O)}return{back:A,endOfFile:S,nextToken:C,position:_}};let Mv=Ql,Iv=lu,Pv=cu,Lv=cs,Fd=ec,Rv=Dv;const Bd={empty:!0,space:!0};function Fv(n){for(let e=n.length-1;e>=0;e--){let t=n[e],r=t[3]||t[2];if(r)return r}}let Bv=class{constructor(e){this.input=e,this.root=new Lv,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new Mv;t.name=e[1].slice(1),t.name===""&&this.unnamedAtrule(t,e),this.init(t,e[2]);let r,i,s,o=!1,u=!1,a=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?l.push(r==="("?")":"]"):r==="{"&&l.length>0?l.push("}"):r===l[l.length-1]&&l.pop(),l.length===0)if(r===";"){t.source.end=this.getPosition(e[2]),t.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(s=a.length-1,i=a[s];i&&i[0]==="space";)i=a[--s];i&&(t.source.end=this.getPosition(i[3]||i[2]),t.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}t.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(t.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(t,"params",a),o&&(e=a[a.length-1],t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++,this.spaces=t.raws.between,t.raws.between="")):(t.raws.afterName="",t.params=""),u&&(t.nodes=[],this.current=t)}checkMissedSemicolon(e){let t=this.colon(e);if(t===!1)return;let r=0,i;for(let s=t-1;s>=0&&(i=e[s],!(i[0]!=="space"&&(r+=1,r===2)));s--);throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0,r,i,s;for(let[o,u]of e.entries()){if(i=u,s=i[0],s==="("&&(t+=1),s===")"&&(t-=1),t===0&&s===":")if(!r)this.doubleColon(i);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=i}return!1}comment(e){let t=new Iv;this.init(t,e[2]),t.source.end=this.getPosition(e[3]||e[2]),t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))t.text="",t.raws.left=r,t.raws.right="";else{let i=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=i[2],t.raws.left=i[1],t.raws.right=i[3]}}createTokenizer(){this.tokenizer=Rv(this.input)}decl(e,t){let r=new Pv;this.init(r,e[0][2]);let i=e[e.length-1];for(i[0]===";"&&(this.semicolon=!0,e.pop()),r.source.end=this.getPosition(i[3]||i[2]||Fv(e)),r.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),r.raws.before+=e.shift()[1];for(r.source.start=this.getPosition(e[0][2]),r.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;r.prop+=e.shift()[1]}r.raws.between="";let s;for(;e.length;)if(s=e.shift(),s[0]===":"){r.raws.between+=s[1];break}else s[0]==="word"&&/\w/.test(s[1])&&this.unknownWord([s]),r.raws.between+=s[1];(r.prop[0]==="_"||r.prop[0]==="*")&&(r.raws.before+=r.prop[0],r.prop=r.prop.slice(1));let o=[],u;for(;e.length&&(u=e[0][0],!(u!=="space"&&u!=="comment"));)o.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(s=e[l],s[1].toLowerCase()==="!important"){r.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(r.raws.important=c);break}else if(s[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=l;f>0;f--){let d=c[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(r.important=!0,r.raws.important=h,e=c)}if(s[0]!=="space"&&s[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(r.raws.between+=o.map(l=>l[1]).join(""),o=[]),this.raw(r,"value",o.concat(e),t),r.value.includes(":")&&!t&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new Fd;this.init(t,e[2]),t.selector="",t.raws.between="",this.current=t}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let t=this.current.nodes[this.current.nodes.length-1];t&&t.type==="rule"&&!t.raws.ownSemicolon&&(t.raws.ownSemicolon=this.spaces,this.spaces="",t.source.end=this.getPosition(e[2]),t.source.end.offset+=t.raws.ownSemicolon.length)}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e),e.source={input:this.input,start:this.getPosition(t)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let t=!1,r=null,i=!1,s=null,o=[],u=e[1].startsWith("--"),a=[],l=e;for(;l;){if(r=l[0],a.push(l),r==="("||r==="[")s||(s=l),o.push(r==="("?")":"]");else if(u&&i&&r==="{")s||(s=l),o.push("}");else if(o.length===0)if(r===";")if(i){this.decl(a,u);return}else break;else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop()),t=!0;break}else r===":"&&(i=!0);else r===o[o.length-1]&&(o.pop(),o.length===0&&(s=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(t=!0),o.length>0&&this.unclosedBracket(s),t&&i){if(!u)for(;a.length&&(l=a[a.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(a.pop());this.decl(a,u)}else this.unknownWord(a)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let s,o,u=r.length,a="",l=!0,c,h;for(let f=0;f<u;f+=1)s=r[f],o=s[0],o==="space"&&f===u-1&&!i?l=!1:o==="comment"?(h=r[f-1]?r[f-1][0]:"empty",c=r[f+1]?r[f+1][0]:"empty",!Bd[h]&&!Bd[c]?a.slice(-1)===","?l=!1:a+=s[1]:l=!1):a+=s[1];if(!l){let f=r.reduce((d,g)=>d+g[1],"");e.raws[t]={raw:f,value:a}}e[t]=a}rule(e){e.pop();let t=new Fd;this.init(t,e[0][2]),t.raws.between=this.spacesAndCommentsFromEnd(e),this.raw(t,"selector",e),this.current=t}spacesAndCommentsFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],!(t!=="space"&&t!=="comment"));)r=e.pop()[1]+r;return r}spacesAndCommentsFromStart(e){let t,r="";for(;e.length&&(t=e[0][0],!(t!=="space"&&t!=="comment"));)r+=e.shift()[1];return r}spacesFromEnd(e){let t,r="";for(;e.length&&(t=e[e.length-1][0],t==="space");)r=e.pop()[1]+r;return r}stringFrom(e,t){let r="";for(let i=t;i<e.length;i++)r+=e[i][1];return e.splice(t,e.length-t),r}unclosedBlock(){let e=this.current.source.start;throw this.input.error("Unclosed block",e.line,e.column)}unclosedBracket(e){throw this.input.error("Unclosed bracket",{offset:e[2]},{offset:e[2]+1})}unexpectedClose(e){throw this.input.error("Unexpected }",{offset:e[2]},{offset:e[2]+1})}unknownWord(e){throw this.input.error("Unknown word "+e[0][1],{offset:e[0][2]},{offset:e[0][2]+e[0][1].length})}unnamedAtrule(e,t){throw this.input.error("At-rule without name",{offset:t[2]},{offset:t[2]+t[1].length})}};var jv=Bv;let $v=pr,Uv=fu,zv=jv;function Bo(n,e){let t=new Uv(n,e),r=new zv(t);try{r.parse()}catch(i){throw process.env.NODE_ENV!=="production"&&i.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?i.message+=`
44
+ You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?i.message+=`
45
+ You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(i.message+=`
46
+ You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),i}return r.root}var tc=Bo;Bo.default=Bo;$v.registerParse(Bo);let za=class{constructor(e,t={}){if(this.type="warning",this.text=e,t.node&&t.node.source){let r=t.node.rangeBy(t);this.line=r.start.line,this.column=r.start.column,this.endLine=r.end.line,this.endColumn=r.end.column}for(let r in t)this[r]=t[r]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var Kp=za;za.default=za;let qv=Kp,qa=class{get content(){return this.css}constructor(e,t,r){this.processor=e,this.messages=[],this.root=t,this.opts=r,this.css="",this.map=void 0}toString(){return this.css}warn(e,t={}){t.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(t.plugin=this.lastPlugin.postcssPlugin);let r=new qv(e,t);return this.messages.push(r),r}warnings(){return this.messages.filter(e=>e.type==="warning")}};var nc=qa;qa.default=qa;let jd={};var Wp=function(e){jd[e]||(jd[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let Kv=pr,Wv=Zl,Hv=qp,Vv=tc,$d=nc,Gv=cs,Jv=uu,{isClean:Rt,my:Xv}=ls,Yv=Wp;const Qv={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},Zv={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},e3={Once:!0,postcssPlugin:!0,prepare:!0},Jr=0;function di(n){return typeof n=="object"&&typeof n.then=="function"}function Hp(n){let e=!1,t=Qv[n.type];return n.type==="decl"?e=n.prop.toLowerCase():n.type==="atrule"&&(e=n.name.toLowerCase()),e&&n.append?[t,t+"-"+e,Jr,t+"Exit",t+"Exit-"+e]:e?[t,t+"-"+e,t+"Exit",t+"Exit-"+e]:n.append?[t,Jr,t+"Exit"]:[t,t+"Exit"]}function Ud(n){let e;return n.type==="document"?e=["Document",Jr,"DocumentExit"]:n.type==="root"?e=["Root",Jr,"RootExit"]:e=Hp(n),{eventIndex:0,events:e,iterator:0,node:n,visitorIndex:0,visitors:[]}}function Ka(n){return n[Rt]=!1,n.nodes&&n.nodes.forEach(e=>Ka(e)),n}let Wa={},Xr=class Vp{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,t,r){this.stringified=!1,this.processed=!1;let i;if(typeof t=="object"&&t!==null&&(t.type==="root"||t.type==="document"))i=Ka(t);else if(t instanceof Vp||t instanceof $d)i=Ka(t.root),t.map&&(typeof r.map>"u"&&(r.map={}),r.map.inline||(r.map.inline=!1),r.map.prev=t.map);else{let s=Vv;r.syntax&&(s=r.syntax.parse),r.parser&&(s=r.parser),s.parse&&(s=s.parse);try{i=s(t,r)}catch(o){this.processed=!0,this.error=o}i&&!i[Xv]&&Kv.rebuild(i)}this.result=new $d(e,i,r),this.helpers={...Wa,postcss:Wa,result:this.result},this.plugins=this.processor.plugins.map(s=>typeof s=="object"&&s.prepare?{...s,...s.prepare(this.result)}:s)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t&&t.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=r.postcssPlugin,e.setMessage();else if(r.postcssVersion&&process.env.NODE_ENV!=="production"){let i=r.postcssPlugin,s=r.postcssVersion,o=this.result.processor.version,u=s.split("."),a=o.split(".");(u[0]!==a[0]||parseInt(u[1])>parseInt(a[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+o+", but "+i+" uses "+s+". Perhaps this is the source of the error below.")}}catch(i){console&&console.error&&console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(t,r,i)=>{this.listeners[r]||(this.listeners[r]=[]),this.listeners[r].push([t,i])};for(let t of this.plugins)if(typeof t=="object")for(let r in t){if(!Zv[r]&&/^[A-Z]/.test(r))throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!e3[r])if(typeof t[r]=="object")for(let i in t[r])i==="*"?e(t,r,t[r][i]):e(t,r+"-"+i.toLowerCase(),t[r][i]);else typeof t[r]=="function"&&e(t,r,t[r])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let t=this.plugins[e],r=this.runOnRoot(t);if(di(r))try{await r}catch(i){throw this.handleError(i)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Rt];){e[Rt]=!0;let t=[Ud(e)];for(;t.length>0;){let r=this.visitTick(t);if(di(r))try{await r}catch(i){let s=t[t.length-1].node;throw this.handleError(i,s)}}}if(this.listeners.OnceExit)for(let[t,r]of this.listeners.OnceExit){this.result.lastPlugin=t;try{if(e.type==="document"){let i=e.nodes.map(s=>r(s,this.helpers));await Promise.all(i)}else await r(e,this.helpers)}catch(i){throw this.handleError(i)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map(r=>e.Once(r,this.helpers));return di(t[0])?Promise.all(t):t}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,t=Jv;e.syntax&&(t=e.syntax.stringify),e.stringifier&&(t=e.stringifier),t.stringify&&(t=t.stringify);let i=new Hv(t,this.result.root,this.result.opts).generate();return this.result.css=i[0],this.result.map=i[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let t=this.runOnRoot(e);if(di(t))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Rt];)e[Rt]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let t of e.nodes)this.visitSync(this.listeners.OnceExit,t);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this.opts||Yv("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[r,i]of e){this.result.lastPlugin=r;let s;try{s=i(t,this.helpers)}catch(o){throw this.handleError(o,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent)return!0;if(di(s))throw this.getAsyncError()}}visitTick(e){let t=e[e.length-1],{node:r,visitors:i}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(i.length>0&&t.visitorIndex<i.length){let[o,u]=i[t.visitorIndex];t.visitorIndex+=1,t.visitorIndex===i.length&&(t.visitors=[],t.visitorIndex=0),this.result.lastPlugin=o;try{return u(r.toProxy(),this.helpers)}catch(a){throw this.handleError(a,r)}}if(t.iterator!==0){let o=t.iterator,u;for(;u=r.nodes[r.indexes[o]];)if(r.indexes[o]+=1,!u[Rt]){u[Rt]=!0,e.push(Ud(u));return}t.iterator=0,delete r.indexes[o]}let s=t.events;for(;t.eventIndex<s.length;){let o=s[t.eventIndex];if(t.eventIndex+=1,o===Jr){r.nodes&&r.nodes.length&&(r[Rt]=!0,t.iterator=r.getIterator());return}else if(this.listeners[o]){t.visitors=this.listeners[o];return}}e.pop()}walkSync(e){e[Rt]=!0;let t=Hp(e);for(let r of t)if(r===Jr)e.nodes&&e.each(i=>{i[Rt]||this.walkSync(i)});else{let i=this.listeners[r];if(i&&this.visitSync(i,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Xr.registerPostcss=n=>{Wa=n};var Gp=Xr;Xr.default=Xr;Gv.registerLazyResult(Xr);Wv.registerLazyResult(Xr);let t3=qp,n3=tc;const r3=nc;let i3=uu,s3=Wp,Ha=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let e,t=n3;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,t,r){t=t.toString(),this.stringified=!1,this._processor=e,this._css=t,this._opts=r,this._map=void 0;let i,s=i3;this.result=new r3(this._processor,i,this._opts),this.result.css=t;let o=this;Object.defineProperty(this.result,"root",{get(){return o.root}});let u=new t3(s,i,this._opts,t);if(u.isMap()){let[a,l]=u.generate();a&&(this.result.css=a),l&&(this.result.map=l)}else u.clearAnnotation(),this.result.css=u.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){return process.env.NODE_ENV!=="production"&&("from"in this._opts||s3("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,t)}toString(){return this._css}warnings(){return[]}};var o3=Ha;Ha.default=Ha;let u3=Zl,a3=Gp,l3=o3,c3=cs,Ki=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e)if(r.postcss===!0?r=r():r.postcss&&(r=r.postcss),typeof r=="object"&&Array.isArray(r.plugins))t=t.concat(r.plugins);else if(typeof r=="object"&&r.postcssPlugin)t.push(r);else if(typeof r=="function")t.push(r);else if(typeof r=="object"&&(r.parse||r.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(r+" is not a PostCSS plugin");return t}process(e,t={}){return!this.plugins.length&&!t.parser&&!t.stringifier&&!t.syntax?new l3(this,e,t):new a3(this,e,t)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var f3=Ki;Ki.default=Ki;c3.registerProcessor(Ki);u3.registerProcessor(Ki);let Jp=Ql,Xp=lu,d3=pr,h3=Jl,Yp=cu,Qp=Zl,g3=pv,p3=fu,m3=Gp,b3=Fp,y3=au,_3=tc,rc=f3,x3=nc,Zp=cs,em=ec,v3=uu,S3=Kp;function me(...n){return n.length===1&&Array.isArray(n[0])&&(n=n[0]),new rc(n)}me.plugin=function(e,t){let r=!1;function i(...o){console&&console.warn&&!r&&(r=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
49
47
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
50
- https://www.w3ctech.com/topic/2226`));let o=t(...s);return o.postcssPlugin=e,o.postcssVersion=new Xs().version,o}let i;return Object.defineProperty(u,"postcss",{get(){return i||(i=u()),i}}),u.process=function(s,o,a){return ne([u(a)]).process(s,o)},u};ne.stringify=P1;ne.parse=D1;ne.fromJSON=E1;ne.list=A1;ne.comment=n=>new x0(n);ne.atRule=n=>new _0(n);ne.decl=n=>new v0(n);ne.rule=n=>new T0(n);ne.root=n=>new S0(n);ne.document=n=>new w0(n);ne.CssSyntaxError=C1;ne.Declaration=v0;ne.Container=T1;ne.Processor=Xs;ne.Document=w0;ne.Comment=x0;ne.Warning=L1;ne.AtRule=_0;ne.Result=I1;ne.Input=k1;ne.Rule=T0;ne.Root=S0;ne.Node=O1;N1.registerPostcss(ne);var M1=ne;ne.default=ne;const R1=pc,Fa=Dp,{isPlainObject:B1}=Us,ja=Vp,F1=Gp,{parse:j1}=M1,q1=["img","audio","video","picture","svg","object","map","iframe","embed"],U1=["script","style"];function sn(n,e){n&&Object.keys(n).forEach(function(t){e(n[t],t)})}function st(n,e){return{}.hasOwnProperty.call(n,e)}function qa(n,e){const t=[];return sn(n,function(r){e(r)&&t.push(r)}),t}function z1(n){for(const e in n)if(st(n,e))return!1;return!0}function $1(n){return n.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var W1=rr;const H1=/^[^\0\t\n\f\r /<=>]+$/;function rr(n,e,t){if(n==null)return"";typeof n=="number"&&(n=n.toString());let r="",u="";function i(_,O){const E=this;this.tag=_,this.attribs=O||{},this.tagPosition=r.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(g.length){const z=g[g.length-1];z.text+=E.text}},this.updateParentNodeMediaChildren=function(){g.length&&q1.includes(this.tag)&&g[g.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},rr.defaults,e),e.parser=Object.assign({},V1,e.parser);const s=function(_){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(_)>-1};U1.forEach(function(_){s(_)&&!e.allowVulnerableTags&&console.warn(`
48
+ https://www.w3ctech.com/topic/2226`));let u=t(...o);return u.postcssPlugin=e,u.postcssVersion=new rc().version,u}let s;return Object.defineProperty(i,"postcss",{get(){return s||(s=i()),s}}),i.process=function(o,u,a){return me([i(a)]).process(o,u)},i};me.stringify=v3;me.parse=_3;me.fromJSON=g3;me.list=b3;me.comment=n=>new Xp(n);me.atRule=n=>new Jp(n);me.decl=n=>new Yp(n);me.rule=n=>new em(n);me.root=n=>new Zp(n);me.document=n=>new Qp(n);me.CssSyntaxError=h3;me.Declaration=Yp;me.Container=d3;me.Processor=rc;me.Document=Qp;me.Comment=Xp;me.Warning=S3;me.AtRule=Jp;me.Result=x3;me.Input=p3;me.Rule=em;me.Root=Zp;me.Node=y3;m3.registerPostcss(me);var w3=me;me.default=me;const C3=Kg,zd=_x,{isPlainObject:T3}=Vl,qd=Px,E3=Lx,{parse:N3}=w3,k3=["img","audio","video","picture","svg","object","map","iframe","embed"],A3=["script","style"];function xr(n,e){n&&Object.keys(n).forEach(function(t){e(n[t],t)})}function Yt(n,e){return{}.hasOwnProperty.call(n,e)}function Kd(n,e){const t=[];return xr(n,function(r){e(r)&&t.push(r)}),t}function O3(n){for(const e in n)if(Yt(n,e))return!1;return!0}function D3(n){return n.map(function(e){if(!e.url)throw new Error("URL missing");return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")}).join(", ")}var M3=Wi;const I3=/^[^\0\t\n\f\r /<=>]+$/;function Wi(n,e,t){if(n==null)return"";typeof n=="number"&&(n=n.toString());let r="",i="";function s(w,L){const I=this;this.tag=w,this.attribs=L||{},this.tagPosition=r.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){const U=m[m.length-1];U.text+=I.text}},this.updateParentNodeMediaChildren=function(){m.length&&k3.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Wi.defaults,e),e.parser=Object.assign({},P3,e.parser);const o=function(w){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(w)>-1};A3.forEach(function(w){o(w)&&!e.allowVulnerableTags&&console.warn(`
51
49
 
52
- ⚠️ Your \`allowedTags\` option includes, \`${_}\`, which is inherently
50
+ ⚠️ Your \`allowedTags\` option includes, \`${w}\`, which is inherently
53
51
  vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
54
52
  Or, to disable this warning, add the \`allowVulnerableTags\` option
55
53
  and ensure you are accounting for this risk.
56
54
 
57
- `)});const o=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},sn(e.allowedAttributes,function(_,O){a[O]=[];const E=[];_.forEach(function(z){typeof z=="string"&&z.indexOf("*")>=0?E.push(Fa(z).replace(/\\\*/g,".*")):a[O].push(z)}),E.length&&(l[O]=new RegExp("^("+E.join("|")+")$"))}));const f={},h={},c={};sn(e.allowedClasses,function(_,O){if(a&&(st(a,O)||(a[O]=[]),a[O].push("class")),f[O]=_,Array.isArray(_)){const E=[];f[O]=[],c[O]=[],_.forEach(function(z){typeof z=="string"&&z.indexOf("*")>=0?E.push(Fa(z).replace(/\\\*/g,".*")):z instanceof RegExp?c[O].push(z):f[O].push(z)}),E.length&&(h[O]=new RegExp("^("+E.join("|")+")$"))}});const d={};let p;sn(e.transformTags,function(_,O){let E;typeof _=="function"?E=_:typeof _=="string"&&(E=rr.simpleTransform(_)),O==="*"?p=E:d[O]=E});let m,g,y,b,v,w,S=!1;D();const T=new R1.Parser({onopentag:function(_,O){if(e.onOpenTag&&e.onOpenTag(_,O),e.enforceHtmlBoundary&&_==="html"&&D(),v){w++;return}const E=new i(_,O);g.push(E);let z=!1;const Y=!!E.text;let ee;if(st(d,_)&&(ee=d[_](_,O),E.attribs=O=ee.attribs,ee.text!==void 0&&(E.innerText=ee.text),_!==ee.tagName&&(E.name=_=ee.tagName,b[m]=ee.tagName)),p&&(ee=p(_,O),E.attribs=O=ee.attribs,_!==ee.tagName&&(E.name=_=ee.tagName,b[m]=ee.tagName)),(!s(_)||e.disallowedTagsMode==="recursiveEscape"&&!z1(y)||e.nestingLimit!=null&&m>=e.nestingLimit)&&(z=!0,y[m]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&o.indexOf(_)!==-1&&(v=!0,w=1)),m++,z){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(E.innerText&&!Y){const J=C(E.innerText);e.textFilter?r+=e.textFilter(J,_):r+=J,S=!0}return}u=r,r=""}r+="<"+_,_==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(E.innerText=""),z&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?sn(O,function(J,M){r+=" "+M+'="'+C(J||"",!0)+'"'}):(!a||st(a,_)||a["*"])&&sn(O,function(J,M){if(!H1.test(M)){delete E.attribs[M];return}if(J===""&&!e.allowedEmptyAttributes.includes(M)&&(e.nonBooleanAttributes.includes(M)||e.nonBooleanAttributes.includes("*"))){delete E.attribs[M];return}let Z=!1;if(!a||st(a,_)&&a[_].indexOf(M)!==-1||a["*"]&&a["*"].indexOf(M)!==-1||st(l,_)&&l[_].test(M)||l["*"]&&l["*"].test(M))Z=!0;else if(a&&a[_]){for(const W of a[_])if(B1(W)&&W.name&&W.name===M){Z=!0;let G="";if(W.multiple===!0){const fe=J.split(" ");for(const pe of fe)W.values.indexOf(pe)!==-1&&(G===""?G=pe:G+=" "+pe)}else W.values.indexOf(J)>=0&&(G=J);J=G}}if(Z){if(e.allowedSchemesAppliedToAttributes.indexOf(M)!==-1&&L(_,J)){delete E.attribs[M];return}if(_==="script"&&M==="src"){let W=!0;try{const G=H(J);if(e.allowedScriptHostnames||e.allowedScriptDomains){const fe=(e.allowedScriptHostnames||[]).find(function(ye){return ye===G.url.hostname}),pe=(e.allowedScriptDomains||[]).find(function(ye){return G.url.hostname===ye||G.url.hostname.endsWith(`.${ye}`)});W=fe||pe}}catch{W=!1}if(!W){delete E.attribs[M];return}}if(_==="iframe"&&M==="src"){let W=!0;try{const G=H(J);if(G.isRelativeUrl)W=st(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const fe=(e.allowedIframeHostnames||[]).find(function(ye){return ye===G.url.hostname}),pe=(e.allowedIframeDomains||[]).find(function(ye){return G.url.hostname===ye||G.url.hostname.endsWith(`.${ye}`)});W=fe||pe}}catch{W=!1}if(!W){delete E.attribs[M];return}}if(M==="srcset")try{let W=F1(J);if(W.forEach(function(G){L("srcset",G.url)&&(G.evil=!0)}),W=qa(W,function(G){return!G.evil}),W.length)J=$1(qa(W,function(G){return!G.evil})),E.attribs[M]=J;else{delete E.attribs[M];return}}catch{delete E.attribs[M];return}if(M==="class"){const W=f[_],G=f["*"],fe=h[_],pe=c[_],ye=c["*"],Ju=h["*"],Tr=[fe,Ju].concat(pe,ye).filter(function(Cn){return Cn});if(W&&G?J=B(J,ja(W,G),Tr):J=B(J,W||G,Tr),!J.length){delete E.attribs[M];return}}if(M==="style"){if(e.parseStyleAttributes)try{const W=j1(_+" {"+J+"}",{map:!1}),G=x(W,e.allowedStyles);if(J=k(G),J.length===0){delete E.attribs[M];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+_+" {"+J+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete E.attribs[M];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+M,J&&J.length?r+='="'+C(J,!0)+'"':e.allowedEmptyAttributes.includes(M)&&(r+='=""')}else delete E.attribs[M]}),e.selfClosing.indexOf(_)!==-1?r+=" />":(r+=">",E.innerText&&!Y&&!e.textFilter&&(r+=C(E.innerText),S=!0)),z&&(r=u+C(r),u=""),E.openingTagLength=r.length-E.tagPosition},ontext:function(_){if(v)return;const O=g[g.length-1];let E;if(O&&(E=O.tag,_=O.innerText!==void 0?O.innerText:_),e.disallowedTagsMode==="completelyDiscard"&&!s(E))_="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(E==="script"||E==="style"))r+=_;else if(!S){const z=C(_,!1);e.textFilter?r+=e.textFilter(z,E):r+=z}if(g.length){const z=g[g.length-1];z.text+=_}},onclosetag:function(_,O){if(e.onCloseTag&&e.onCloseTag(_,O),v)if(w--,!w)v=!1;else return;const E=g.pop();if(!E)return;if(E.tag!==_){g.push(E);return}v=e.enforceHtmlBoundary?_==="html":!1,m--;const z=y[m];if(z){if(delete y[m],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){E.updateParentNodeText();return}u=r,r=""}if(b[m]&&(_=b[m],delete b[m]),e.exclusiveFilter){const Y=e.exclusiveFilter(E);if(Y==="excludeTag"){z&&(r=u,u=""),r=r.substring(0,E.tagPosition)+r.substring(E.tagPosition+E.openingTagLength);return}else if(Y){r=r.substring(0,E.tagPosition);return}}if(E.updateParentNodeMediaChildren(),E.updateParentNodeText(),e.selfClosing.indexOf(_)!==-1||O&&!s(_)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){z&&(r=u,u="");return}r+="</"+_+">",z&&(r=u+C(r),u=""),S=!1}},e.parser);if(T.write(n),T.end(),e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape"){const _=T.endIndex;if(_!=null&&_>=0&&_<n.length){const O=n.substring(_);r+=C(O)}else(_==null||_<0)&&n.length>0&&r===""&&(r=C(n))}return r;function D(){r="",m=0,g=[],y={},b={},v=!1,w=0}function C(_,O){return typeof _!="string"&&(_=_+""),e.parser.decodeEntities&&(_=_.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(_=_.replace(/"/g,"&quot;"))),_=_.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(_=_.replace(/"/g,"&quot;")),_}function L(_,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const Y=O.indexOf("<!--");if(Y===-1)break;const ee=O.indexOf("-->",Y+4);if(ee===-1)break;O=O.substring(0,Y)+O.substring(ee+3)}const E=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!E)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const z=E[1].toLowerCase();return st(e.allowedSchemesByTag,_)?e.allowedSchemesByTag[_].indexOf(z)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(z)===-1}function H(_){if(_=_.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),_.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let Y=0;Y<100;Y++)O+=`/${Y}`;const E=new URL(_,O);return{isRelativeUrl:E&&E.hostname==="relative-site"&&E.protocol==="relative:",url:E}}function x(_,O){if(!O)return _;const E=_.nodes[0];let z;return O[E.selector]&&O["*"]?z=ja(O[E.selector],O["*"]):z=O[E.selector]||O["*"],z&&(_.nodes[0].nodes=E.nodes.reduce(A(z),[])),_}function k(_){return _.nodes[0].nodes.reduce(function(O,E){return O.push(`${E.prop}:${E.value}${E.important?" !important":""}`),O},[]).join(";")}function A(_){return function(O,E){return st(_,E.prop)&&_[E.prop].some(function(Y){return Y.test(E.value)})&&O.push(E),O}}function B(_,O,E){return O?(_=_.split(/\s+/),_.filter(function(z){return O.indexOf(z)!==-1||E.some(function(Y){return Y.test(z)})}).join(" ")):_}}const V1={decodeEntities:!0};rr.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};rr.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(r,u){let i;if(t)for(i in e)u[i]=e[i];else u=e;return{tagName:n,attribs:u}}};const pi=wh(W1),C0=xn();class Sr extends jl{constructor(t,r,u,i,s,o,a){super(s);Mt(this,"__src");Mt(this,"__alt");Mt(this,"__width");Mt(this,"__height");Mt(this,"__soliboDocumentId");Mt(this,"__soliboDocumentSlot");this.__src=t,this.__alt=r,this.__width=u,this.__height=i,this.__soliboDocumentId=o,this.__soliboDocumentSlot=a}static getType(){return"image"}static clone(t){return new Sr(t.__src,t.__alt,t.__width,t.__height,t.__key,t.__soliboDocumentId,t.__soliboDocumentSlot)}static importJSON(t){return Tu({alt:t.alt,height:t.height,soliboDocumentId:t.soliboDocumentId,soliboDocumentSlot:t.soliboDocumentSlot,src:t.src,width:t.width})}exportJSON(){return{alt:this.__alt,height:this.__height,...this.__soliboDocumentId?{soliboDocumentId:this.__soliboDocumentId}:void 0,...this.__soliboDocumentSlot?{soliboDocumentSlot:this.__soliboDocumentSlot}:void 0,src:this.__src,type:"image",version:1,width:this.__width}}static importDOM(){return{img:t=>({conversion:r=>{if(!(r instanceof HTMLImageElement))return null;const u=r.getAttribute("src")??"";if(!u)return null;const i=r.getAttribute("width"),s=r.getAttribute("height");return{node:Tu({alt:r.getAttribute("alt")??"",height:s?Number(s):void 0,soliboDocumentId:r.getAttribute("data-solibo-document-id")??void 0,soliboDocumentSlot:r.getAttribute("data-solibo-document-slot")??void 0,src:u,width:i?Number(i):void 0})}},priority:0})}}exportDOM(){const t=document.createElement("img");return this.__soliboDocumentSlot||t.setAttribute("src",this.__src),this.__soliboDocumentId&&t.setAttribute("data-solibo-document-id",this.__soliboDocumentId),this.__soliboDocumentSlot&&t.setAttribute("data-solibo-document-slot",this.__soliboDocumentSlot),this.__alt&&t.setAttribute("alt",this.__alt),this.__width&&t.setAttribute("width",String(this.__width)),this.__height&&t.setAttribute("height",String(this.__height)),{element:t}}createDOM(){return document.createElement("span")}updateDOM(){return!1}isInline(){return!0}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();return r.__src=t,r}setWidth(t){const r=this.getWritable();return r.__width=t,r.__height=void 0,r}decorate(t){return q.jsx("img",{alt:this.__alt,height:this.__height,"data-solibo-document-id":this.__soliboDocumentId,"data-solibo-document-slot":this.__soliboDocumentSlot,onClick:r=>{r.preventDefault(),t.dispatchCommand(C0,{key:this.getKey(),soliboDocumentSlot:this.__soliboDocumentSlot,src:this.__src,width:this.__width})},src:this.__src,width:this.__width})}}function Tu({alt:n="",height:e,soliboDocumentId:t,soliboDocumentSlot:r,src:u,width:i}){return new Sr(u,n,i,e,void 0,t,r)}function gi(n){return n instanceof Sr}const G1=({createImages:n})=>{const[e]=De();return F.useEffect(()=>e.registerCommand(ur,t=>{var s;if(!("clipboardData"in t))return!1;const r=t,u=Array.from(((s=r.clipboardData)==null?void 0:s.items)??[]).flatMap(o=>{if(o.kind!=="file"||!o.type.startsWith("image/"))return[];const a=o.getAsFile();return a?[a]:[]});if(u.length===0)return!1;r.preventDefault();const i=n(u);return e.update(()=>{Ru(i.map(o=>Tu(o)))}),!0},Hf),[n,e]),null},K1=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,J1=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,Z1=[n=>{const e=K1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}:null},n=>{const e=J1.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:e[0].startsWith("http")?e[0]:`https://${e[0]}`}:null}];function us(n){try{const e=new URL(n);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}const X1="_field_1mb0i_3",Q1="_editor_1mb0i_8",Y1="_invalid_1mb0i_46",em="_error_1mb0i_50",tm="_dragging_1mb0i_56",nm="_content_1mb0i_60",rm="_files_1mb0i_66",um="_placeholder_1mb0i_74",im="_fill_1mb0i_82",sm="_meta_1mb0i_105",om="_active_1mb0i_114",am="_submit_1mb0i_133",lm="_bold_1mb0i_137",cm="_italic_1mb0i_141",fm="_underline_1mb0i_145",dm="_link_1mb0i_149",hm="_list_1mb0i_155",pm="_paragraph_1mb0i_156",oe={field:X1,editor:Q1,"has-files":"_has-files_1mb0i_42",invalid:Y1,error:em,dragging:tm,content:nm,files:rm,placeholder:um,fill:im,"fill-editor":"_fill-editor_1mb0i_89",meta:sm,active:om,"image-sizes":"_image-sizes_1mb0i_126",submit:am,bold:lm,italic:cm,underline:fm,link:dm,list:hm,paragraph:pm},gm=[{label:"Small",width:320},{label:"Medium",width:640},{label:"Large",width:960},{label:"Original",width:void 0}],mm=({disabled:n=!1,isSubmitting:e=!1,onFilesSelected:t,onInlineImageRemove:r,onSubmit:u,submitLabel:i="Submit"})=>{const[s]=De(),[o,a]=F.useState(!1),[l,f]=F.useState(!1),[h,c]=F.useState(!1),[d,p]=F.useState(!1),[m,g]=F.useState(!1),[y,b]=F.useState(!1),[v,w]=F.useState(""),[S,T]=F.useState(null),[D,C]=F.useState(null),[L,H]=F.useState(void 0),[x,k]=F.useState(""),A=us(x.trim()),B=F.useRef(null),_=F.useRef(null),O=F.useRef(null),E=F.useRef(null),z=F.useRef(!1),Y=j=>j.preventDefault(),ee=F.useCallback(j=>{E.current=I(j)?j.clone():null},[]),ke=F.useCallback(j=>{s.update(()=>{E.current&&Me(E.current),j()}),E.current=null},[s]),nt=j=>{z.current=!0,j.preventDefault()},J=()=>{if(z.current){z.current=!1;return}pe()},M=F.useCallback(()=>{f(!1),w(""),T(null),C(null),H(void 0)},[]),Z=F.useCallback(()=>{g(!1),k("")},[]),W=F.useCallback(j=>{f(!0),w((j==null?void 0:j.src)??""),T((j==null?void 0:j.key)??null),C((j==null?void 0:j.soliboDocumentSlot)??null),H(j==null?void 0:j.width),Z(),j!=null&&j.soliboDocumentSlot||setTimeout(()=>{var ie;return(ie=_.current)==null?void 0:ie.focus()},0)},[Z]),G=F.useCallback(j=>{s.getEditorState().read(()=>{ee($())}),g(!0),k(j),M(),setTimeout(()=>{var ie;return(ie=O.current)==null?void 0:ie.focus()},0)},[M,s,ee]),fe=F.useCallback(()=>{const j=x.trim();us(j)&&(ke(()=>{s.dispatchCommand(dn,{url:j,target:"_blank"});const ie=$();if(!I(ie))return;const Ge=ie.getNodes().at(-1)??null,Lt=(Ge==null?void 0:Ge.getParent())??null,Ie=ze(Ge)?Ge:ze(Lt)?Lt:null;if(Ie){const bt=Ie.getLastChild();if(P(bt)){const Qs=bt.getTextContent(),Ys=Qs.replace(/\s+$/,"");Ys!==Qs&&bt.setTextContent(Ys)}const en=Ie.getNextSibling();if(P(en)&&/^\s/.test(en.getTextContent())){en.select(1,1);return}const Be=le(" ");Ie.insertAfter(Be),Be.selectEnd()}}),Z())},[Z,s,x,ke]),pe=F.useCallback(()=>{const j=v.trim();if(!j){M();return}s.update(()=>{if(S){const ie=he(S);gi(ie)&&ie.setSrc(j);return}Ru([Tu({src:j})])}),M()},[M,s,S,v]),ye=F.useCallback(()=>{if(!S){M();return}s.update(()=>{const j=he(S);if(gi(j)){const ie=j.getParent();Ht(ie)&&ie.getChildrenSize()===1?ie.remove():j.remove(),D&&(r==null||r(D))}}),M()},[M,s,S,D,r]),Ju=F.useCallback(j=>{S&&(s.update(()=>{const ie=he(S);gi(ie)&&ie.setWidth(j)}),H(j))},[s,S]),Tr=F.useCallback(()=>{ke(()=>{s.dispatchCommand(dn,null)}),Z()},[Z,s,ke]),Cn=F.useCallback(()=>{const j=$();if(!I(j)){if(Le(j)){const Lt=j.getNodes(),Ie=Lt[0]??null,bt=(Ie==null?void 0:Ie.getParent())??null;a(Lt.some(Be=>P(Be)&&Be.hasFormat("bold"))),c(Lt.some(Be=>P(Be)&&Be.hasFormat("italic"))),p(Lt.some(Be=>P(Be)&&Be.hasFormat("underline"))),b(Q(bt)||se(bt)||Q(Ie)||se(Ie));const en=ze(Ie)?Ie:ze(bt)?bt:null;if(en){g(!0),k(en.getURL());return}g(!1),k(""),E.current=null;return}a(!1),c(!1),p(!1),b(!1),g(!1),k(""),E.current=null;return}const[ie]=j.getNodes(),Ge=(ie==null?void 0:ie.getParent())??null;if(a(j.hasFormat("bold")),c(j.hasFormat("italic")),p(j.hasFormat("underline")),b(Q(Ge)||se(Ge)),ze(Ge)){g(!0),k(Ge.getURL()),ee(j);return}g(!1),k(""),E.current=null},[ee]);return F.useEffect(()=>pt(s.registerUpdateListener(({editorState:j})=>{j.read(()=>{Cn()})}),s.registerCommand(C0,j=>(W(j),!0),at),s.registerCommand(Cu,()=>(s.getEditorState().read(()=>{Cn()}),!1),at)),[s,W,Cn]),q.jsxs(A0.Toolbar,{variant:"editor","data-component":"editortoolbar",children:[q.jsx(Pe.Button,{"aria-label":"Bold","data-active":o,onClick:()=>{s.dispatchCommand($e,"bold")},title:"Bold",variant:"tertiary",children:q.jsx(Ke.Icon,{name:"TextB"})}),q.jsx(Pe.Button,{"aria-label":"Italic","data-active":h,onClick:()=>{s.dispatchCommand($e,"italic")},title:"Italic",variant:"tertiary",children:q.jsx(Ke.Icon,{name:"TextItalic"})}),q.jsx(Pe.Button,{"aria-label":"Underline","data-active":d,onClick:()=>{s.dispatchCommand($e,"underline")},title:"Underline",variant:"tertiary",children:q.jsx(Ke.Icon,{name:"TextUnderline"})}),q.jsx(Pe.Button,{"aria-label":"List","data-active":y,onClick:()=>{y?s.dispatchCommand(uc,void 0):s.dispatchCommand(rc,void 0)},title:"List",variant:"tertiary",children:q.jsx(Ke.Icon,{name:"ListBullets"})}),q.jsx(Pe.Button,{"aria-label":"Link","data-active":m,onClick:()=>{m?G(x):(s.dispatchCommand(dn,{url:"https://"}),G("https://"))},title:"Link",variant:"tertiary",children:q.jsx(Ke.Icon,{name:"Link"})}),t&&q.jsxs(q.Fragment,{children:[q.jsx("input",{hidden:!0,multiple:!0,onChange:j=>{j.target.files&&t(j.target.files),j.target.value=""},ref:B,type:"file"}),q.jsx(Pe.Button,{"aria-label":"Upload files",onClick:()=>{var j;return(j=B.current)==null?void 0:j.click()},title:"Upload files",variant:"tertiary",children:q.jsx(Ke.Icon,{name:"Paperclip"})})]}),u&&q.jsx(Pe.Button,{"aria-label":i,className:oe.submit,"data-cy":"toolbar-submit-button",disabled:n,icon:"PaperPlaneTilt",isLoading:e,onClick:()=>u(),variant:"primary",children:q.jsx("span",{children:i})}),q.jsxs("div",{className:Mn.t(oe.meta,m||l?oe.active:""),children:[m&&q.jsxs(q.Fragment,{children:[q.jsx(to.Input,{"aria-invalid":!A,onBlur:()=>fe(),onChange:j=>k(j.target.value),onKeyDown:j=>{j.key==="Enter"&&(j.preventDefault(),fe())},ref:O,value:x}),q.jsx(Pe.Button,{"aria-label":"Apply link",disabled:!A,onClick:()=>{fe()},onMouseDown:Y,variant:"tertiary",children:q.jsx(Ke.Icon,{name:"Check"})}),q.jsx(Pe.Button,{"aria-label":"Remove link",onClick:()=>Tr(),onMouseDown:Y,variant:"tertiary",children:q.jsx(Ke.Icon,{name:"Trash",variant:"danger"})})]}),l&&q.jsxs(q.Fragment,{children:[!D&&q.jsxs(q.Fragment,{children:[q.jsx(to.Input,{className:Mn.t(oe.active),onBlur:J,onChange:j=>w(j.target.value),onKeyDown:j=>{j.key==="Enter"&&(j.preventDefault(),z.current=!0,pe())},ref:_,value:v}),q.jsx(Pe.Button,{"aria-label":"Apply image",onClick:()=>pe(),onMouseDown:nt,variant:"tertiary",children:q.jsx(Ke.Icon,{name:"Check"})})]}),q.jsx("div",{className:oe["image-sizes"],children:gm.map(({label:j,width:ie})=>q.jsx(Pe.Button,{"aria-label":`${j} image`,"data-active":L===ie,onClick:()=>Ju(ie),onMouseDown:Y,variant:"tertiary",children:j},j))}),q.jsx(Pe.Button,{"aria-label":"Remove image",onClick:()=>ye(),onMouseDown:nt,variant:"tertiary",children:q.jsx(Ke.Icon,{name:"Trash",variant:"danger"})})]})]})]})};function bm({autofocus:n,content:e="",lastEmittedContentRef:t}){const[r]=De();return F.useEffect(()=>{t.current!==e&&r.update(()=>{const i=new DOMParser().parseFromString(e,"text/html"),s=Gl(r,i),o=ce();o.clear().select(),Ru(s),n?o.selectEnd():Me(null)})},[n,e,r,t]),null}const ym=({autofocus:n=!1,autolink:e=!1,content:t,disabled:r=!1,errorMessage:u,fill:i=!1,files:s,inline:o=!1,inlineImages:a,invalid:l=!1,isSubmitting:f=!1,maxRows:h=12,minRows:c=1,onChange:d,onFilesChange:p,onInlineImagesChange:m,onSubmit:g,onUpload:y,placeholder:b,required:v=!1,submitLabel:w})=>{const S=F.useId(),T=F.useRef(void 0),[D,C]=F.useState(!1),[L,H]=F.useState([]),[x,k]=F.useState([]),A=F.useRef(new Map),B=s??L,_=a??x,O=M=>{s===void 0&&H(M),p==null||p(M)},E=F.useCallback(M=>{a===void 0&&k(M),m==null||m(M)},[a,m]),z=F.useCallback(M=>{const Z=M.map(W=>{const G=`pasted-${crypto.randomUUID()}`,fe=URL.createObjectURL(W);return A.current.set(G,fe),{image:{alt:W.name,soliboDocumentSlot:G,src:fe},pending:{file:W,slot:G}}});return E([..._,...Z.map(({pending:W})=>W)]),Z.map(({image:W})=>W)},[_,E]),Y=F.useCallback(M=>{E(_.filter(W=>W.slot!==M));const Z=A.current.get(M);Z&&URL.revokeObjectURL(Z),A.current.delete(M)},[_,E]);F.useEffect(()=>()=>{A.current.forEach(M=>URL.revokeObjectURL(M)),A.current.clear()},[]),F.useEffect(()=>{const M=new Set(_.map(Z=>Z.slot));A.current.forEach((Z,W)=>{M.has(W)||(URL.revokeObjectURL(Z),A.current.delete(W))})},[_]);const ee=M=>{if(typeof DataTransfer<"u"){const Z=new DataTransfer;return M.forEach(W=>Z.items.add(W)),Z.files}return Object.assign([...M],{item:Z=>M[Z]??null})},ke=async()=>{try{B.length>0&&await(y==null?void 0:y(ee(B))),await(g==null?void 0:g()),B.length>0&&O([])}catch{return}},nt={namespace:"Editor",theme:{link:oe.link,list:{ol:oe.list,ul:oe.list},paragraph:oe.paragraph,text:{bold:oe.bold,italic:oe.italic,underline:oe.underline}},onError(M){throw M},nodes:[qu,gr,wn,mr,Sr]},J=M=>{M.preventDefault(),M.stopPropagation()};return q.jsxs("div",{className:Mn.t(oe.field,i&&oe.fill),"data-component":"editor","data-max-rows":h,"data-min-rows":c,onDragEnter:M=>{J(M),C(!!p)},onDragOver:M=>{J(M),C(!!p)},onDragLeave:M=>{J(M),C(!1)},onDrop:M=>{var W;M.preventDefault();const Z=(W=M.dataTransfer)==null?void 0:W.files;Z&&(p==null||p(Array.from(Z))),C(!1)},children:[q.jsx("div",{className:Mn.t(oe.editor,i&&oe["fill-editor"],l&&oe.invalid,B.length>0&&oe["has-files"]),style:{"--editor-max-height":`calc(${h*1.25}em + (2 * var(--scale-8)))`,"--editor-min-height":`calc(${c*1.25}em + (2 * var(--scale-8)))`},children:q.jsxs(Id,{initialConfig:nt,children:[!o&&q.jsx(mm,{disabled:r,isSubmitting:f,onInlineImageRemove:Y,onFilesSelected:y||p?M=>{O([...B,...Array.from(M)])}:void 0,onSubmit:g?()=>void ke():void 0,submitLabel:w}),q.jsx("div",{className:Mn.t(oe.content,D&&oe.dragging),children:q.jsx(xh,{contentEditable:q.jsx(jd,{"aria-placeholder":b??"",ariaErrorMessage:l&&u?S:void 0,ariaInvalid:l||void 0,ariaRequired:v||void 0,placeholder:()=>b?q.jsx("div",{className:oe.placeholder,children:b}):null}),ErrorBoundary:$d})}),B.length>0&&q.jsx("div",{"aria-label":"Files to upload",className:oe.files,role:"region",children:B.map((M,Z)=>q.jsx(N0.File,{deleteAccessibleLabel:`Remove ${M.name} from upload queue`,name:M.name,onDelete:()=>O(B.filter((W,G)=>G!==Z))},`${M.name}-${M.size}-${M.lastModified}-${Z}`))}),n&&q.jsx(wd,{}),e&&q.jsx(Od,{matchers:Z1}),q.jsx(Xd,{}),m&&q.jsx(G1,{createImages:z}),t!==void 0&&q.jsx(bm,{autofocus:n,content:t,lastEmittedContentRef:T}),q.jsx(Qd,{validateUrl:us}),q.jsx(Yd,{}),d&&q.jsx(th,{onChange:(M,Z)=>{M.read(()=>{const W=Kl(Z,null),G=pi(W,{allowedAttributes:{...pi.defaults.allowedAttributes,img:[...pi.defaults.allowedAttributes.img??[],"data-solibo-document-id","data-solibo-document-slot"]},allowedTags:["a","b","br","i","img","li","ol","p","u","ul"]});T.current=G,d(G)})}})]})}),l&&u&&q.jsx("div",{className:oe.error,id:S,children:u})]})};exports.Editor=ym;
55
+ `)});const u=e.nonTextTags||["script","style","textarea","option"];let a,l;e.allowedAttributes&&(a={},l={},xr(e.allowedAttributes,function(w,L){a[L]=[];const I=[];w.forEach(function(U){typeof U=="string"&&U.indexOf("*")>=0?I.push(zd(U).replace(/\\\*/g,".*")):a[L].push(U)}),I.length&&(l[L]=new RegExp("^("+I.join("|")+")$"))}));const c={},h={},f={};xr(e.allowedClasses,function(w,L){if(a&&(Yt(a,L)||(a[L]=[]),a[L].push("class")),c[L]=w,Array.isArray(w)){const I=[];c[L]=[],f[L]=[],w.forEach(function(U){typeof U=="string"&&U.indexOf("*")>=0?I.push(zd(U).replace(/\\\*/g,".*")):U instanceof RegExp?f[L].push(U):c[L].push(U)}),I.length&&(h[L]=new RegExp("^("+I.join("|")+")$"))}});const d={};let g;xr(e.transformTags,function(w,L){let I;typeof w=="function"?I=w:typeof w=="string"&&(I=Wi.simpleTransform(w)),L==="*"?g=I:d[L]=I});let b,m,p,y,_,x,S=!1;A();const C=new C3.Parser({onopentag:function(w,L){if(e.onOpenTag&&e.onOpenTag(w,L),e.enforceHtmlBoundary&&w==="html"&&A(),_){x++;return}const I=new s(w,L);m.push(I);let U=!1;const H=!!I.text;let V;if(Yt(d,w)&&(V=d[w](w,L),I.attribs=L=V.attribs,V.text!==void 0&&(I.innerText=V.text),w!==V.tagName&&(I.name=w=V.tagName,y[b]=V.tagName)),g&&(V=g(w,L),I.attribs=L=V.attribs,w!==V.tagName&&(I.name=w=V.tagName,y[b]=V.tagName)),(!o(w)||e.disallowedTagsMode==="recursiveEscape"&&!O3(p)||e.nestingLimit!=null&&b>=e.nestingLimit)&&(U=!0,p[b]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&u.indexOf(w)!==-1&&(_=!0,x=1)),b++,U){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(I.innerText&&!H){const j=O(I.innerText);e.textFilter?r+=e.textFilter(j,w):r+=j,S=!0}return}i=r,r=""}r+="<"+w,w==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(I.innerText=""),U&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?xr(L,function(j,$){r+=" "+$+'="'+O(j||"",!0)+'"'}):(!a||Yt(a,w)||a["*"])&&xr(L,function(j,$){if(!I3.test($)){delete I.attribs[$];return}if(j===""&&!e.allowedEmptyAttributes.includes($)&&(e.nonBooleanAttributes.includes($)||e.nonBooleanAttributes.includes("*"))){delete I.attribs[$];return}let G=!1;if(!a||Yt(a,w)&&a[w].indexOf($)!==-1||a["*"]&&a["*"].indexOf($)!==-1||Yt(l,w)&&l[w].test($)||l["*"]&&l["*"].test($))G=!0;else if(a&&a[w]){for(const X of a[w])if(T3(X)&&X.name&&X.name===$){G=!0;let Z="";if(X.multiple===!0){const Ce=j.split(" ");for(const Ae of Ce)X.values.indexOf(Ae)!==-1&&(Z===""?Z=Ae:Z+=" "+Ae)}else X.values.indexOf(j)>=0&&(Z=j);j=Z}}if(G){if(e.allowedSchemesAppliedToAttributes.indexOf($)!==-1&&D(w,j)){delete I.attribs[$];return}if(w==="script"&&$==="src"){let X=!0;try{const Z=k(j);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ce=(e.allowedScriptHostnames||[]).find(function(ve){return ve===Z.url.hostname}),Ae=(e.allowedScriptDomains||[]).find(function(ve){return Z.url.hostname===ve||Z.url.hostname.endsWith(`.${ve}`)});X=Ce||Ae}}catch{X=!1}if(!X){delete I.attribs[$];return}}if(w==="iframe"&&$==="src"){let X=!0;try{const Z=k(j);if(Z.isRelativeUrl)X=Yt(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ce=(e.allowedIframeHostnames||[]).find(function(ve){return ve===Z.url.hostname}),Ae=(e.allowedIframeDomains||[]).find(function(ve){return Z.url.hostname===ve||Z.url.hostname.endsWith(`.${ve}`)});X=Ce||Ae}}catch{X=!1}if(!X){delete I.attribs[$];return}}if($==="srcset")try{let X=E3(j);if(X.forEach(function(Z){D("srcset",Z.url)&&(Z.evil=!0)}),X=Kd(X,function(Z){return!Z.evil}),X.length)j=D3(Kd(X,function(Z){return!Z.evil})),I.attribs[$]=j;else{delete I.attribs[$];return}}catch{delete I.attribs[$];return}if($==="class"){const X=c[w],Z=c["*"],Ce=h[w],Ae=f[w],ve=f["*"],ii=h["*"],dn=[Ce,ii].concat(Ae,ve).filter(function(hn){return hn});if(X&&Z?j=R(j,qd(X,Z),dn):j=R(j,X||Z,dn),!j.length){delete I.attribs[$];return}}if($==="style"){if(e.parseStyleAttributes)try{const X=N3(w+" {"+j+"}",{map:!1}),Z=v(X,e.allowedStyles);if(j=E(Z),j.length===0){delete I.attribs[$];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+w+" {"+j+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete I.attribs[$];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}r+=" "+$,j&&j.length?r+='="'+O(j,!0)+'"':e.allowedEmptyAttributes.includes($)&&(r+='=""')}else delete I.attribs[$]}),e.selfClosing.indexOf(w)!==-1?r+=" />":(r+=">",I.innerText&&!H&&!e.textFilter&&(r+=O(I.innerText),S=!0)),U&&(r=i+O(r),i=""),I.openingTagLength=r.length-I.tagPosition},ontext:function(w){if(_)return;const L=m[m.length-1];let I;if(L&&(I=L.tag,w=L.innerText!==void 0?L.innerText:w),e.disallowedTagsMode==="completelyDiscard"&&!o(I))w="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(I==="script"||I==="style"))r+=w;else if(!S){const U=O(w,!1);e.textFilter?r+=e.textFilter(U,I):r+=U}if(m.length){const U=m[m.length-1];U.text+=w}},onclosetag:function(w,L){if(e.onCloseTag&&e.onCloseTag(w,L),_)if(x--,!x)_=!1;else return;const I=m.pop();if(!I)return;if(I.tag!==w){m.push(I);return}_=e.enforceHtmlBoundary?w==="html":!1,b--;const U=p[b];if(U){if(delete p[b],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){I.updateParentNodeText();return}i=r,r=""}if(y[b]&&(w=y[b],delete y[b]),e.exclusiveFilter){const H=e.exclusiveFilter(I);if(H==="excludeTag"){U&&(r=i,i=""),r=r.substring(0,I.tagPosition)+r.substring(I.tagPosition+I.openingTagLength);return}else if(H){r=r.substring(0,I.tagPosition);return}}if(I.updateParentNodeMediaChildren(),I.updateParentNodeText(),e.selfClosing.indexOf(w)!==-1||L&&!o(w)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){U&&(r=i,i="");return}r+="</"+w+">",U&&(r=i+O(r),i=""),S=!1}},e.parser);if(C.write(n),C.end(),e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape"){const w=C.endIndex;if(w!=null&&w>=0&&w<n.length){const L=n.substring(w);r+=O(L)}else(w==null||w<0)&&n.length>0&&r===""&&(r=O(n))}return r;function A(){r="",b=0,m=[],p={},y={},_=!1,x=0}function O(w,L){return typeof w!="string"&&(w=w+""),e.parser.decodeEntities&&(w=w.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),L&&(w=w.replace(/"/g,"&quot;"))),w=w.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),L&&(w=w.replace(/"/g,"&quot;")),w}function D(w,L){for(L=L.replace(/[\x00-\x20]+/g,"");;){const H=L.indexOf("<!--");if(H===-1)break;const V=L.indexOf("-->",H+4);if(V===-1)break;L=L.substring(0,H)+L.substring(V+3)}const I=L.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!I)return L.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const U=I[1].toLowerCase();return Yt(e.allowedSchemesByTag,w)?e.allowedSchemesByTag[w].indexOf(U)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(U)===-1}function k(w){if(w=w.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),w.startsWith("relative:"))throw new Error("relative: exploit attempt");let L="relative://relative-site";for(let H=0;H<100;H++)L+=`/${H}`;const I=new URL(w,L);return{isRelativeUrl:I&&I.hostname==="relative-site"&&I.protocol==="relative:",url:I}}function v(w,L){if(!L)return w;const I=w.nodes[0];let U;return L[I.selector]&&L["*"]?U=qd(L[I.selector],L["*"]):U=L[I.selector]||L["*"],U&&(w.nodes[0].nodes=I.nodes.reduce(N(U),[])),w}function E(w){return w.nodes[0].nodes.reduce(function(L,I){return L.push(`${I.prop}:${I.value}${I.important?" !important":""}`),L},[]).join(";")}function N(w){return function(L,I){return Yt(w,I.prop)&&w[I.prop].some(function(H){return H.test(I.value)})&&L.push(I),L}}function R(w,L,I){return L?(w=w.split(/\s+/),w.filter(function(U){return L.indexOf(U)!==-1||I.some(function(H){return H.test(U)})}).join(" ")):w}}const P3={decodeEntities:!0};Wi.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};Wi.simpleTransform=function(n,e,t){return t=t===void 0?!0:t,e=e||{},function(r,i){let s;if(t)for(s in e)i[s]=e[s];else i=e;return{tagName:n,attribs:i}}};const Ku=c2(M3),tm=J();class fs extends cl{constructor(t,r,i,s,o,u,a){super(o);M(this,"__src");M(this,"__alt");M(this,"__width");M(this,"__height");M(this,"__soliboDocumentId");M(this,"__soliboDocumentSlot");this.__src=t,this.__alt=r,this.__width=i,this.__height=s,this.__soliboDocumentId=u,this.__soliboDocumentSlot=a}static getType(){return"image"}static clone(t){return new fs(t.__src,t.__alt,t.__width,t.__height,t.__key,t.__soliboDocumentId,t.__soliboDocumentSlot)}static importJSON(t){return jo({alt:t.alt,height:t.height,soliboDocumentId:t.soliboDocumentId,soliboDocumentSlot:t.soliboDocumentSlot,src:t.src,width:t.width})}exportJSON(){return{alt:this.__alt,height:this.__height,...this.__soliboDocumentId?{soliboDocumentId:this.__soliboDocumentId}:void 0,...this.__soliboDocumentSlot?{soliboDocumentSlot:this.__soliboDocumentSlot}:void 0,src:this.__src,type:"image",version:1,width:this.__width}}static importDOM(){return{img:t=>({conversion:r=>{if(!(r instanceof HTMLImageElement))return null;const i=r.getAttribute("src")??"";if(!i)return null;const s=r.getAttribute("width"),o=r.getAttribute("height");return{node:jo({alt:r.getAttribute("alt")??"",height:o?Number(o):void 0,soliboDocumentId:r.getAttribute("data-solibo-document-id")??void 0,soliboDocumentSlot:r.getAttribute("data-solibo-document-slot")??void 0,src:i,width:s?Number(s):void 0})}},priority:0})}}exportDOM(){const t=document.createElement("img");return this.__soliboDocumentSlot||t.setAttribute("src",this.__src),this.__soliboDocumentId&&t.setAttribute("data-solibo-document-id",this.__soliboDocumentId),this.__soliboDocumentSlot&&t.setAttribute("data-solibo-document-slot",this.__soliboDocumentSlot),this.__alt&&t.setAttribute("alt",this.__alt),this.__width&&t.setAttribute("width",String(this.__width)),this.__height&&t.setAttribute("height",String(this.__height)),{element:t}}createDOM(){return document.createElement("span")}updateDOM(){return!1}isInline(){return!0}getSrc(){return this.__src}setSrc(t){const r=this.getWritable();return r.__src=t,r}setWidth(t){const r=this.getWritable();return r.__width=t,r.__height=void 0,r}decorate(t){return K.jsx("img",{alt:this.__alt,height:this.__height,"data-solibo-document-id":this.__soliboDocumentId,"data-solibo-document-slot":this.__soliboDocumentSlot,onClick:r=>{r.preventDefault(),t.dispatchCommand(tm,{key:this.getKey(),soliboDocumentSlot:this.__soliboDocumentSlot,src:this.__src,width:this.__width})},src:this.__src,width:this.__width})}}function jo({alt:n="",height:e,soliboDocumentId:t,soliboDocumentSlot:r,src:i,width:s}){return Kt(new fs(i,n,s,e,void 0,t,r))}function Wu(n){return n instanceof fs}const L3=({createImages:n})=>{const[e]=bt();return q.useEffect(()=>e.registerCommand(Ji,t=>{var o;if(!("clipboardData"in t))return!1;const r=t,i=Array.from(((o=r.clipboardData)==null?void 0:o.items)??[]).flatMap(u=>{if(u.kind!=="file"||!u.type.startsWith("image/"))return[];const a=u.getAsFile();return a?[a]:[]});if(i.length===0)return!1;r.preventDefault();const s=n(i);return e.update(()=>{Ho(s.map(u=>jo(u)))}),!0},Z1),[n,e]),null},R3=/(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/,F3=/((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/,B3=[n=>{const e=R3.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:`mailto:${e[0]}`}:null},n=>{const e=F3.exec(n);return e!=null&&e.length?{index:e.index,length:e[0].length,text:e[0],url:e[0].startsWith("http")?e[0]:`https://${e[0]}`}:null}];function Va(n){try{const e=new URL(n);return e.protocol==="http:"||e.protocol==="https:"}catch{return!1}}const j3="_field_1mb0i_3",$3="_editor_1mb0i_8",U3="_invalid_1mb0i_46",z3="_error_1mb0i_50",q3="_dragging_1mb0i_56",K3="_content_1mb0i_60",W3="_files_1mb0i_66",H3="_placeholder_1mb0i_74",V3="_fill_1mb0i_82",G3="_meta_1mb0i_105",J3="_active_1mb0i_114",X3="_submit_1mb0i_133",Y3="_bold_1mb0i_137",Q3="_italic_1mb0i_141",Z3="_underline_1mb0i_145",e6="_link_1mb0i_149",t6="_list_1mb0i_155",n6="_paragraph_1mb0i_156",Ne={field:j3,editor:$3,"has-files":"_has-files_1mb0i_42",invalid:U3,error:z3,dragging:q3,content:K3,files:W3,placeholder:H3,fill:V3,"fill-editor":"_fill-editor_1mb0i_89",meta:G3,active:J3,"image-sizes":"_image-sizes_1mb0i_126",submit:X3,bold:Y3,italic:Q3,underline:Z3,link:e6,list:t6,paragraph:n6},r6=[{label:"Small",width:320},{label:"Medium",width:640},{label:"Large",width:960},{label:"Original",width:void 0}],i6=({disabled:n=!1,isSubmitting:e=!1,onFilesSelected:t,onInlineImageRemove:r,onSubmit:i,submitLabel:s="Submit"})=>{const[o]=bt(),[u,a]=q.useState(!1),[l,c]=q.useState(!1),[h,f]=q.useState(!1),[d,g]=q.useState(!1),[b,m]=q.useState(!1),[p,y]=q.useState(!1),[_,x]=q.useState(""),[S,C]=q.useState(null),[A,O]=q.useState(null),[D,k]=q.useState(void 0),[v,E]=q.useState(""),N=Va(v.trim()),R=q.useRef(null),w=q.useRef(null),L=q.useRef(null),I=q.useRef(null),U=q.useRef(!1),H=W=>W.preventDefault(),V=q.useCallback(W=>{I.current=F(W)?W.clone():null},[]),te=q.useCallback(W=>{o.update(()=>{I.current&&Me(I.current),W()}),I.current=null},[o]),ge=W=>{U.current=!0,W.preventDefault()},j=()=>{if(U.current){U.current=!1;return}Ae()},$=q.useCallback(()=>{c(!1),x(""),C(null),O(null),k(void 0)},[]),G=q.useCallback(()=>{m(!1),E("")},[]),X=q.useCallback(W=>{c(!0),x((W==null?void 0:W.src)??""),C((W==null?void 0:W.key)??null),O((W==null?void 0:W.soliboDocumentSlot)??null),k(W==null?void 0:W.width),G(),W!=null&&W.soliboDocumentSlot||setTimeout(()=>{var Q;return(Q=w.current)==null?void 0:Q.focus()},0)},[G]),Z=q.useCallback(W=>{o.getEditorState().read(()=>{V(z())}),m(!0),E(W),$(),setTimeout(()=>{var Q;return(Q=L.current)==null?void 0:Q.focus()},0)},[$,o,V]),Ce=q.useCallback(()=>{const W=v.trim();Va(W)&&(te(()=>{o.dispatchCommand(Dr,{url:W,target:"_blank"});const Q=z();if(!F(Q))return;const be=Q.getNodes().at(-1)??null,Le=(be==null?void 0:be.getParent())??null,Fe=Je(be)?be:Je(Le)?Le:null;if(Fe){const it=Fe.getLastChild();if(B(it)){const ic=it.getTextContent(),sc=ic.replace(/\s+$/,"");sc!==ic&&it.setTextContent(sc)}const mr=Fe.getNextSibling();if(B(mr)&&/^\s/.test(mr.getTextContent())){mr.select(1,1);return}const Nt=Xe(" ");Fe.insertAfter(Nt),Nt.selectEnd()}}),G())},[G,o,v,te]),Ae=q.useCallback(()=>{const W=_.trim();if(!W){$();return}o.update(()=>{if(S){const Q=he(S);Wu(Q)&&Q.setSrc(W);return}Ho([jo({src:W})])}),$()},[$,o,S,_]),ve=q.useCallback(()=>{if(!S){$();return}o.update(()=>{const W=he(S);if(Wu(W)){const Q=W.getParent();Zi(Q)&&Q.getChildrenSize()===1?Q.remove():W.remove(),A&&(r==null||r(A))}}),$()},[$,o,S,A,r]),ii=q.useCallback(W=>{S&&(o.update(()=>{const Q=he(S);Wu(Q)&&Q.setWidth(W)}),k(W))},[o,S]),dn=q.useCallback(()=>{te(()=>{o.dispatchCommand(Dr,null)}),G()},[G,o,te]),hn=q.useCallback(()=>{const W=z();if(!F(W)){if(_e(W)){const Le=W.getNodes(),Fe=Le[0]??null,it=(Fe==null?void 0:Fe.getParent())??null;a(Le.some(Nt=>B(Nt)&&Nt.hasFormat("bold"))),f(Le.some(Nt=>B(Nt)&&Nt.hasFormat("italic"))),g(Le.some(Nt=>B(Nt)&&Nt.hasFormat("underline"))),y(ne(it)||ue(it)||ne(Fe)||ue(Fe));const mr=Je(Fe)?Fe:Je(it)?it:null;if(mr){m(!0),E(mr.getURL());return}m(!1),E(""),I.current=null;return}a(!1),f(!1),g(!1),y(!1),m(!1),E(""),I.current=null;return}const[Q]=W.getNodes(),be=(Q==null?void 0:Q.getParent())??null;if(a(W.hasFormat("bold")),f(W.hasFormat("italic")),g(W.hasFormat("underline")),y(ne(be)||ue(be)),Je(be)){m(!0),E(be.getURL()),V(W);return}m(!1),E(""),I.current=null},[V]);return q.useEffect(()=>mt(o.registerUpdateListener(({editorState:W})=>{W.read(()=>{hn()})}),o.registerCommand(tm,W=>(X(W),!0),Zt),o.registerCommand(zo,()=>(o.getEditorState().read(()=>{hn()}),!1),Zt)),[o,X,hn]),K.jsxs(sm.Toolbar,{variant:"editor","data-component":"editortoolbar",children:[K.jsx(yt.Button,{"aria-label":"Bold","data-active":u,onClick:()=>{o.dispatchCommand(Ot,"bold")},title:"Bold",variant:"tertiary",children:K.jsx(Lt.Icon,{name:"TextB"})}),K.jsx(yt.Button,{"aria-label":"Italic","data-active":h,onClick:()=>{o.dispatchCommand(Ot,"italic")},title:"Italic",variant:"tertiary",children:K.jsx(Lt.Icon,{name:"TextItalic"})}),K.jsx(yt.Button,{"aria-label":"Underline","data-active":d,onClick:()=>{o.dispatchCommand(Ot,"underline")},title:"Underline",variant:"tertiary",children:K.jsx(Lt.Icon,{name:"TextUnderline"})}),K.jsx(yt.Button,{"aria-label":"List","data-active":p,onClick:()=>{p?o.dispatchCommand(Dg,void 0):o.dispatchCommand(Og,void 0)},title:"List",variant:"tertiary",children:K.jsx(Lt.Icon,{name:"ListBullets"})}),K.jsx(yt.Button,{"aria-label":"Link","data-active":b,onClick:()=>{b?Z(v):(o.dispatchCommand(Dr,{url:"https://"}),Z("https://"))},title:"Link",variant:"tertiary",children:K.jsx(Lt.Icon,{name:"Link"})}),t&&K.jsxs(K.Fragment,{children:[K.jsx("input",{hidden:!0,multiple:!0,onChange:W=>{W.target.files&&t(W.target.files),W.target.value=""},ref:R,type:"file"}),K.jsx(yt.Button,{"aria-label":"Upload files",onClick:()=>{var W;return(W=R.current)==null?void 0:W.click()},title:"Upload files",variant:"tertiary",children:K.jsx(Lt.Icon,{name:"Paperclip"})})]}),i&&K.jsx(yt.Button,{"aria-label":s,className:Ne.submit,"data-cy":"toolbar-submit-button",disabled:n,icon:"PaperPlaneTilt",isLoading:e,onClick:()=>i(),variant:"primary",children:K.jsx("span",{children:s})}),K.jsxs("div",{className:hi.t(Ne.meta,b||l?Ne.active:""),children:[b&&K.jsxs(K.Fragment,{children:[K.jsx(oc.Input,{"aria-invalid":!N,onBlur:()=>Ce(),onChange:W=>E(W.target.value),onKeyDown:W=>{W.key==="Enter"&&(W.preventDefault(),Ce())},ref:L,value:v}),K.jsx(yt.Button,{"aria-label":"Apply link",disabled:!N,onClick:()=>{Ce()},onMouseDown:H,variant:"tertiary",children:K.jsx(Lt.Icon,{name:"Check"})}),K.jsx(yt.Button,{"aria-label":"Remove link",onClick:()=>dn(),onMouseDown:H,variant:"tertiary",children:K.jsx(Lt.Icon,{name:"Trash",variant:"danger"})})]}),l&&K.jsxs(K.Fragment,{children:[!A&&K.jsxs(K.Fragment,{children:[K.jsx(oc.Input,{className:hi.t(Ne.active),onBlur:j,onChange:W=>x(W.target.value),onKeyDown:W=>{W.key==="Enter"&&(W.preventDefault(),U.current=!0,Ae())},ref:w,value:_}),K.jsx(yt.Button,{"aria-label":"Apply image",onClick:()=>Ae(),onMouseDown:ge,variant:"tertiary",children:K.jsx(Lt.Icon,{name:"Check"})})]}),K.jsx("div",{className:Ne["image-sizes"],children:r6.map(({label:W,width:Q})=>K.jsx(yt.Button,{"aria-label":`${W} image`,"data-active":D===Q,onClick:()=>ii(Q),onMouseDown:H,variant:"tertiary",children:W},W))}),K.jsx(yt.Button,{"aria-label":"Remove image",onClick:()=>ve(),onMouseDown:ge,variant:"tertiary",children:K.jsx(Lt.Icon,{name:"Trash",variant:"danger"})})]})]})]})},s6={name:"solibo-editor",namespace:"Editor",nodes:[ru,rr,is,ni,fs],onError(n){throw n},theme:{link:Ne.link,list:{ol:Ne.list,ul:Ne.list},paragraph:Ne.paragraph,text:{bold:Ne.bold,italic:Ne.italic,underline:Ne.underline}}};function o6({autofocus:n,content:e="",lastEmittedContentRef:t}){const[r]=bt();return q.useEffect(()=>{t.current!==e&&r.update(()=>{const s=new DOMParser().parseFromString(e,"text/html"),o=pg(r,s),u=we();u.clear().select(),Ho(o),n?u.selectEnd():Me(null)})},[n,e,r,t]),null}const u6=({autofocus:n=!1,autolink:e=!1,content:t,disabled:r=!1,errorMessage:i,fill:s=!1,files:o,inline:u=!1,inlineImages:a,invalid:l=!1,isSubmitting:c=!1,maxRows:h=12,minRows:f=1,onChange:d,onFilesChange:g,onInlineImagesChange:b,onSubmit:m,onUpload:p,placeholder:y,required:_=!1,submitLabel:x})=>{const S=q.useId(),C=q.useRef(void 0),[A,O]=q.useState(!1),[D,k]=q.useState([]),[v,E]=q.useState([]),N=q.useRef(new Map),R=o??D,w=a??v,L=j=>{o===void 0&&k(j),g==null||g(j)},I=q.useCallback(j=>{a===void 0&&E(j),b==null||b(j)},[a,b]),U=q.useCallback(j=>{const $=j.map(G=>{const X=`pasted-${crypto.randomUUID()}`,Z=URL.createObjectURL(G);return N.current.set(X,Z),{image:{alt:G.name,soliboDocumentSlot:X,src:Z},pending:{file:G,slot:X}}});return I([...w,...$.map(({pending:G})=>G)]),$.map(({image:G})=>G)},[w,I]),H=q.useCallback(j=>{I(w.filter(G=>G.slot!==j));const $=N.current.get(j);$&&URL.revokeObjectURL($),N.current.delete(j)},[w,I]);q.useEffect(()=>()=>{N.current.forEach(j=>URL.revokeObjectURL(j)),N.current.clear()},[]),q.useEffect(()=>{const j=new Set(w.map($=>$.slot));N.current.forEach(($,G)=>{j.has(G)||(URL.revokeObjectURL($),N.current.delete(G))})},[w]);const V=j=>{if(typeof DataTransfer<"u"){const $=new DataTransfer;return j.forEach(G=>$.items.add(G)),$.files}return Object.assign([...j],{item:$=>j[$]??null})},te=async()=>{try{R.length>0&&await(p==null?void 0:p(V(R))),await(m==null?void 0:m()),R.length>0&&L([])}catch{return}},ge=j=>{j.preventDefault(),j.stopPropagation()};return K.jsxs("div",{className:hi.t(Ne.field,s&&Ne.fill),"data-component":"editor","data-max-rows":h,"data-min-rows":f,onDragEnter:j=>{ge(j),O(!!g)},onDragOver:j=>{ge(j),O(!!g)},onDragLeave:j=>{ge(j),O(!1)},onDrop:j=>{var G;j.preventDefault();const $=(G=j.dataTransfer)==null?void 0:G.files;$&&(g==null||g(Array.from($))),O(!1)},children:[K.jsx("div",{className:hi.t(Ne.editor,s&&Ne["fill-editor"],l&&Ne.invalid,R.length>0&&Ne["has-files"]),style:{"--editor-max-height":`calc(${h*1.25}em + (2 * var(--scale-8)))`,"--editor-min-height":`calc(${f*1.25}em + (2 * var(--scale-8)))`},children:K.jsxs(w_,{contentEditable:null,extension:s6,children:[!u&&K.jsx(i6,{disabled:r,isSubmitting:c,onInlineImageRemove:H,onFilesSelected:p||g?j=>{L([...R,...Array.from(j)])}:void 0,onSubmit:m?()=>void te():void 0,submitLabel:x}),K.jsx("div",{className:hi.t(Ne.content,A&&Ne.dragging),children:K.jsx(a2,{contentEditable:K.jsx(Pg,{"aria-placeholder":y??"",ariaErrorMessage:l&&i?S:void 0,ariaInvalid:l||void 0,ariaRequired:_||void 0,placeholder:()=>y?K.jsx("div",{className:Ne.placeholder,children:y}):null}),ErrorBoundary:Lg})}),R.length>0&&K.jsx("div",{"aria-label":"Files to upload",className:Ne.files,role:"region",children:R.map((j,$)=>K.jsx(im.File,{deleteAccessibleLabel:`Remove ${j.name} from upload queue`,name:j.name,onDelete:()=>L(R.filter((G,X)=>X!==$))},`${j.name}-${j.size}-${j.lastModified}-${$}`))}),n&&K.jsx(f_,{}),e&&K.jsx(d_,{matchers:B3}),K.jsx(N_,{}),b&&K.jsx(L3,{createImages:U}),t!==void 0&&K.jsx(o6,{autofocus:n,content:t,lastEmittedContentRef:C}),K.jsx(k_,{validateUrl:Va}),K.jsx(A_,{}),d&&K.jsx(D_,{onChange:(j,$)=>{j.read(()=>{const G=mg($,null),X=Ku(G,{allowedAttributes:{...Ku.defaults.allowedAttributes,img:[...Ku.defaults.allowedAttributes.img??[],"data-solibo-document-id","data-solibo-document-slot"]},allowedTags:["a","b","br","i","img","li","ol","p","u","ul"]});C.current=X,d(X)})}})]})}),l&&i&&K.jsx("div",{className:Ne.error,id:S,children:i})]})};exports.Editor=u6;
58
56
  //# sourceMappingURL=index.cjs.map