rme 0.0.2

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.
@@ -0,0 +1,180 @@
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react"),require("@remirror/react"),require("create-context-state"),require("styled-components"),require("@remirror/dev"),require("markdown-it"),require("html-parse-stringify"),require("@remirror/extension-tables"),require("@remirror/core"),require("mdast-util-from-markdown"),require("mdast-util-gfm-autolink-literal"),require("mdast-util-gfm-strikethrough"),require("micromark-extension-gfm-autolink-literal"),require("micromark-extension-gfm-strikethrough"),require("nanoid"),require("void-elements"),require("lodash"),require("remirror"),require("remirror-extension-flat-list"),require("@remirror/preset-core"),require("@remirror/extension-count"),require("@codemirror/state"),require("@codemirror/view"),require("@markflowy/theme"),require("@codemirror/language-data"),require("@uiw/codemirror-themes"),require("@codemirror/language"),require("@codemirror/commands"),require("@codemirror/search"),require("@codemirror/autocomplete"),require("@codemirror/lint"),require("@remirror/theme"),require("@markflowy/components"),require("@remirror/extension-hard-break"),require("util"),require("@lezer/lr"),require("@lezer/highlight"),require("@lezer/common"),require("@mui/material"),require("@remirror/extension-positioner"),require("@remirror/react-core"),require("react-popper"),require("tether-drop"),require("fuse.js"),require("@codemirror/lang-markdown")):"function"==typeof define&&define.amd?define(["exports","react","@remirror/react","create-context-state","styled-components","@remirror/dev","markdown-it","html-parse-stringify","@remirror/extension-tables","@remirror/core","mdast-util-from-markdown","mdast-util-gfm-autolink-literal","mdast-util-gfm-strikethrough","micromark-extension-gfm-autolink-literal","micromark-extension-gfm-strikethrough","nanoid","void-elements","lodash","remirror","remirror-extension-flat-list","@remirror/preset-core","@remirror/extension-count","@codemirror/state","@codemirror/view","@markflowy/theme","@codemirror/language-data","@uiw/codemirror-themes","@codemirror/language","@codemirror/commands","@codemirror/search","@codemirror/autocomplete","@codemirror/lint","@remirror/theme","@markflowy/components","@remirror/extension-hard-break","util","@lezer/lr","@lezer/highlight","@lezer/common","@mui/material","@remirror/extension-positioner","@remirror/react-core","react-popper","tether-drop","fuse.js","@codemirror/lang-markdown"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).ui={},e.React,e.react,e.createContextState,e.styled,e.dev,e.MarkdownIt,e.HTML,e.extensionTables,e.core,e.mdastUtilFromMarkdown,e.mdastUtilGfmAutolinkLiteral,e.mdastUtilGfmStrikethrough,e.micromarkExtensionGfmAutolinkLiteral,e.micromarkExtensionGfmStrikethrough,e.nanoid,e.voidElements,e.lodash,e.remirror,e.remirrorExtensionFlatList,e.presetCore,e.extensionCount,e.state,e.view,e.theme,e.languageData,e.codemirrorThemes,e.language,e.commands,e.search,e.autocomplete,e.lint,e.theme$1,e.components,e.extensionHardBreak,e.require$$0$1,e.lr,e.highlight,e.common,e.material,e.extensionPositioner,e.reactCore,e.reactPopper,e.Drop,e.Fuse,e.langMarkdown)}(this,(function(e,t,r,n,o,i,a,s,l,c,O,p,u,d,f,h,m,g,y,S,b,Q,w,$,x,P,v,k,Z,T,E,R,X,C,j,Y,_,A,W,q,V,I,N,z,M,U){"use strict";function G(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var D=G(t),B=G(o),L=G(a),F=G(s),J=G(m),K=G(Y),H=G(z),ee=G(M),te={exports:{}},re={};!function(){var e=D.default,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),f=Symbol.iterator,h="@@iterator";var m=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function g(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];!function(e,t,r){var n=m.ReactDebugCurrentFrame,o=n.getStackAddendum();""!==o&&(t+="%s",r=r.concat([o]));var i=r.map((function(e){return String(e)}));i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}("error",e,r)}var y,S=!1,b=!1,Q=!1,w=!1,$=!1;function x(e){return e.displayName||"Context"}function P(e){if(null==e)return null;if("number"==typeof e.tag&&g("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),"function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case n:return"Fragment";case r:return"Portal";case i:return"Profiler";case o:return"StrictMode";case c:return"Suspense";case O:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case s:return x(e)+".Consumer";case a:return x(e._context)+".Provider";case l:return function(e,t,r){var n=e.displayName;if(n)return n;var o=t.displayName||t.name||"";return""!==o?r+"("+o+")":r}(e,e.render,"ForwardRef");case p:var t=e.displayName||null;return null!==t?t:P(e.type)||"Memo";case u:var d=e,f=d._payload,h=d._init;try{return P(h(f))}catch(e){return null}}return null}y=Symbol.for("react.module.reference");var v,k,Z,T,E,R,X,C=Object.assign,j=0;function Y(){}Y.__reactDisabledLog=!0;var _,A=m.ReactCurrentDispatcher;function W(e,t,r){if(void 0===_)try{throw Error()}catch(e){var n=e.stack.trim().match(/\n( *(at )?)/);_=n&&n[1]||""}return"\n"+_+e}var q,V=!1,I="function"==typeof WeakMap?WeakMap:Map;function N(e,t){if(!e||V)return"";var r,n=q.get(e);if(void 0!==n)return n;V=!0;var o,i=Error.prepareStackTrace;Error.prepareStackTrace=void 0,o=A.current,A.current=null,function(){if(0===j){v=console.log,k=console.info,Z=console.warn,T=console.error,E=console.group,R=console.groupCollapsed,X=console.groupEnd;var e={configurable:!0,enumerable:!0,value:Y,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}j++}();try{if(t){var a=function(){throw Error()};if(Object.defineProperty(a.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(a,[])}catch(e){r=e}Reflect.construct(e,[],a)}else{try{a.call()}catch(e){r=e}e.call(a.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var s=t.stack.split("\n"),l=r.stack.split("\n"),c=s.length-1,O=l.length-1;c>=1&&O>=0&&s[c]!==l[O];)O--;for(;c>=1&&O>=0;c--,O--)if(s[c]!==l[O]){if(1!==c||1!==O)do{if(c--,--O<0||s[c]!==l[O]){var p="\n"+s[c].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),"function"==typeof e&&q.set(e,p),p}}while(c>=1&&O>=0);break}}}finally{V=!1,A.current=o,function(){if(0==--j){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},e,{value:v}),info:C({},e,{value:k}),warn:C({},e,{value:Z}),error:C({},e,{value:T}),group:C({},e,{value:E}),groupCollapsed:C({},e,{value:R}),groupEnd:C({},e,{value:X})})}j<0&&g("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}(),Error.prepareStackTrace=i}var u=e?e.displayName||e.name:"",d=u?W(u):"";return"function"==typeof e&&q.set(e,d),d}function z(e,t,r){if(null==e)return"";if("function"==typeof e)return N(e,!(!(n=e.prototype)||!n.isReactComponent));var n;if("string"==typeof e)return W(e);switch(e){case c:return W("Suspense");case O:return W("SuspenseList")}if("object"==typeof e)switch(e.$$typeof){case l:return N(e.render,!1);case p:return z(e.type,t,r);case u:var o=e,i=o._payload,a=o._init;try{return z(a(i),t,r)}catch(e){}}return""}q=new I;var M=Object.prototype.hasOwnProperty,U={},G=m.ReactDebugCurrentFrame;function B(e){if(e){var t=e._owner,r=z(e.type,e._source,t?t.type:null);G.setExtraStackFrame(r)}else G.setExtraStackFrame(null)}var L=Array.isArray;function F(e){return L(e)}function J(e){return""+e}function K(e){if(function(e){try{return J(e),!1}catch(e){return!0}}(e))return g("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",function(e){return"function"==typeof Symbol&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}(e)),J(e)}var H,ee,te,ne=m.ReactCurrentOwner,oe={key:!0,ref:!0,__self:!0,__source:!0};te={};var ie=function(e,r,n,o,i,a,s){var l={$$typeof:t,type:e,key:r,ref:n,props:s,_owner:a,_store:{}};return Object.defineProperty(l._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(l,"_self",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.defineProperty(l,"_source",{configurable:!1,enumerable:!1,writable:!1,value:i}),Object.freeze&&(Object.freeze(l.props),Object.freeze(l)),l};function ae(e,t,r,n,o){var i,a={},s=null,l=null;for(i in void 0!==r&&(K(r),s=""+r),function(e){if(M.call(e,"key")){var t=Object.getOwnPropertyDescriptor(e,"key").get;if(t&&t.isReactWarning)return!1}return void 0!==e.key}(t)&&(K(t.key),s=""+t.key),function(e){if(M.call(e,"ref")){var t=Object.getOwnPropertyDescriptor(e,"ref").get;if(t&&t.isReactWarning)return!1}return void 0!==e.ref}(t)&&(l=t.ref,function(e,t){if("string"==typeof e.ref&&ne.current&&t&&ne.current.stateNode!==t){var r=P(ne.current.type);te[r]||(g('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',P(ne.current.type),e.ref),te[r]=!0)}}(t,o)),t)M.call(t,i)&&!oe.hasOwnProperty(i)&&(a[i]=t[i]);if(e&&e.defaultProps){var c=e.defaultProps;for(i in c)void 0===a[i]&&(a[i]=c[i])}if(s||l){var O="function"==typeof e?e.displayName||e.name||"Unknown":e;s&&function(e,t){var r=function(){H||(H=!0,g("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"key",{get:r,configurable:!0})}(a,O),l&&function(e,t){var r=function(){ee||(ee=!0,g("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",t))};r.isReactWarning=!0,Object.defineProperty(e,"ref",{get:r,configurable:!0})}(a,O)}return ie(e,s,l,o,n,ne.current,a)}var se,le=m.ReactCurrentOwner,ce=m.ReactDebugCurrentFrame;function Oe(e){if(e){var t=e._owner,r=z(e.type,e._source,t?t.type:null);ce.setExtraStackFrame(r)}else ce.setExtraStackFrame(null)}function pe(e){return"object"==typeof e&&null!==e&&e.$$typeof===t}function ue(){if(le.current){var e=P(le.current.type);if(e)return"\n\nCheck the render method of `"+e+"`."}return""}se=!1;var de={};function fe(e,t){if(e._store&&!e._store.validated&&null==e.key){e._store.validated=!0;var r=function(e){var t=ue();if(!t){var r="string"==typeof e?e:e.displayName||e.name;r&&(t="\n\nCheck the top-level render call using <"+r+">.")}return t}(t);if(!de[r]){de[r]=!0;var n="";e&&e._owner&&e._owner!==le.current&&(n=" It was passed a child from "+P(e._owner.type)+"."),Oe(e),g('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',r,n),Oe(null)}}}function he(e,t){if("object"==typeof e)if(F(e))for(var r=0;r<e.length;r++){var n=e[r];pe(n)&&fe(n,t)}else if(pe(e))e._store&&(e._store.validated=!0);else if(e){var o=function(e){if(null===e||"object"!=typeof e)return null;var t=f&&e[f]||e[h];return"function"==typeof t?t:null}(e);if("function"==typeof o&&o!==e.entries)for(var i,a=o.call(e);!(i=a.next()).done;)pe(i.value)&&fe(i.value,t)}}function me(e){var t,r=e.type;if(null!=r&&"string"!=typeof r){if("function"==typeof r)t=r.propTypes;else{if("object"!=typeof r||r.$$typeof!==l&&r.$$typeof!==p)return;t=r.propTypes}if(t){var n=P(r);!function(e,t,r,n,o){var i=Function.call.bind(M);for(var a in e)if(i(e,a)){var s=void 0;try{if("function"!=typeof e[a]){var l=Error((n||"React class")+": "+r+" type `"+a+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[a]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw l.name="Invariant Violation",l}s=e[a](t,a,n,r,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(e){s=e}!s||s instanceof Error||(B(o),g("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",r,a,typeof s),B(null)),s instanceof Error&&!(s.message in U)&&(U[s.message]=!0,B(o),g("Failed %s type: %s",r,s.message),B(null))}}(t,e.props,"prop",n,e)}else if(void 0!==r.PropTypes&&!se){se=!0,g("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",P(r)||"Unknown")}"function"!=typeof r.getDefaultProps||r.getDefaultProps.isReactClassApproved||g("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ge(e,r,f,h,m,x){var v=function(e){return"string"==typeof e||"function"==typeof e||!!(e===n||e===i||$||e===o||e===c||e===O||w||e===d||S||b||Q)||"object"==typeof e&&null!==e&&(e.$$typeof===u||e.$$typeof===p||e.$$typeof===a||e.$$typeof===s||e.$$typeof===l||e.$$typeof===y||void 0!==e.getModuleId)}(e);if(!v){var k="";(void 0===e||"object"==typeof e&&null!==e&&0===Object.keys(e).length)&&(k+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Z,T=function(e){return void 0!==e?"\n\nCheck your code at "+e.fileName.replace(/^.*[\\\/]/,"")+":"+e.lineNumber+".":""}(m);k+=T||ue(),null===e?Z="null":F(e)?Z="array":void 0!==e&&e.$$typeof===t?(Z="<"+(P(e.type)||"Unknown")+" />",k=" Did you accidentally export a JSX literal instead of a component?"):Z=typeof e,g("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Z,k)}var E=ae(e,r,f,m,x);if(null==E)return E;if(v){var R=r.children;if(void 0!==R)if(h)if(F(R)){for(var X=0;X<R.length;X++)he(R[X],e);Object.freeze&&Object.freeze(R)}else g("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else he(R,e)}return e===n?function(e){for(var t=Object.keys(e.props),r=0;r<t.length;r++){var n=t[r];if("children"!==n&&"key"!==n){Oe(e),g("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),Oe(null);break}}null!==e.ref&&(Oe(e),g("Invalid attribute `ref` supplied to `React.Fragment`."),Oe(null))}(E):me(E),E}var ye=function(e,t,r){return ge(e,t,r,!1)},Se=function(e,t,r){return ge(e,t,r,!0)};re.Fragment=n,re.jsx=ye,re.jsxs=Se}(),function(e){e.exports=re}(te);const ne=B.default.div`
2
+ position: relative;
3
+ padding: 0.5em 1em 1em;
4
+ white-space: pre-wrap;
5
+ min-height: 100px;
6
+ flex: 1;
7
+
8
+ .remirror-is-empty::before {
9
+ position: absolute;
10
+ pointer-events: none;
11
+ height: 0;
12
+ font-style: italic;
13
+ content: attr(data-placeholder);
14
+ }
15
+
16
+ .remirror-editor {
17
+ /* height: 100%; */
18
+ outline: none;
19
+ }
20
+
21
+ .cm-editor {
22
+ height: 100%;
23
+ }
24
+
25
+ .remirror-floating-popover {
26
+ /* padding: var(--rmr-space-2); */
27
+ padding: 0;
28
+ border: none;
29
+ max-height: calc(100vh - 56px);
30
+ }
31
+
32
+ .remirror-positioner {
33
+ position: absolute;
34
+ min-width: 1px;
35
+ min-height: 1px;
36
+ pointer-events: none;
37
+ -webkit-user-select: none;
38
+ -moz-user-select: none;
39
+ -ms-user-select: none;
40
+ user-select: none;
41
+ cursor: none;
42
+ z-index: -1;
43
+ }
44
+
45
+ .remirror-positioner-widget {
46
+ width: 0;
47
+ height: 0;
48
+ position: absolute;
49
+ }
50
+
51
+ .remirror-emoji-wrapper img {
52
+ width: 1em;
53
+ vertical-align: middle;
54
+ background-color: transparent;
55
+ }
56
+
57
+ ${e=>e.codeEditor&&o.css`
58
+ padding: 0;
59
+ min-height: unset;
60
+ `}
61
+ `,oe=({children:e,...t})=>{const{getRootProps:n}=r.useRemirrorContext();return te.exports.jsx(ne,{...t,...n(),children:e})};function ie(e,t,r){for(let n=0;;n++){if(n==e.childCount||n==t.childCount)return e.childCount==t.childCount?null:r;let o=e.child(n),i=t.child(n);if(o!=i){if(!o.sameMarkup(i))return r;if(o.isText&&o.text!=i.text){for(let e=0;o.text[e]==i.text[e];e++)r++;return r}if(o.content.size||i.content.size){let e=ie(o.content,i.content,r+1);if(null!=e)return e}r+=o.nodeSize}else r+=o.nodeSize}}function ae(e,t,r,n){for(let o=e.childCount,i=t.childCount;;){if(0==o||0==i)return o==i?null:{a:r,b:n};let a=e.child(--o),s=t.child(--i),l=a.nodeSize;if(a!=s){if(!a.sameMarkup(s))return{a:r,b:n};if(a.isText&&a.text!=s.text){let e=0,t=Math.min(a.text.length,s.text.length);for(;e<t&&a.text[a.text.length-e-1]==s.text[s.text.length-e-1];)e++,r--,n--;return{a:r,b:n}}if(a.content.size||s.content.size){let e=ae(a.content,s.content,r-1,n-1);if(e)return e}r-=l,n-=l}else r-=l,n-=l}}class se{constructor(e,t){if(this.content=e,this.size=t||0,null==t)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,r,n=0,o){for(let i=0,a=0;a<t;i++){let s=this.content[i],l=a+s.nodeSize;if(l>e&&!1!==r(s,n+a,o||null,i)&&s.content.size){let o=a+1;s.nodesBetween(Math.max(0,e-o),Math.min(s.content.size,t-o),r,n+o)}a=l}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,r,n){let o="",i=!0;return this.nodesBetween(e,t,((a,s)=>{let l=a.isText?a.text.slice(Math.max(e,s)-s,t-s):a.isLeaf?n?"function"==typeof n?n(a):n:a.type.spec.leafText?a.type.spec.leafText(a):"":"";a.isBlock&&(a.isLeaf&&l||a.isTextblock)&&r&&(i?i=!1:o+=r),o+=l}),0),o}append(e){if(!e.size)return this;if(!this.size)return e;let t=this.lastChild,r=e.firstChild,n=this.content.slice(),o=0;for(t.isText&&t.sameMarkup(r)&&(n[n.length-1]=t.withText(t.text+r.text),o=1);o<e.content.length;o++)n.push(e.content[o]);return new se(n,this.size+e.size)}cut(e,t=this.size){if(0==e&&t==this.size)return this;let r=[],n=0;if(t>e)for(let o=0,i=0;i<t;o++){let a=this.content[o],s=i+a.nodeSize;s>e&&((i<e||s>t)&&(a=a.isText?a.cut(Math.max(0,e-i),Math.min(a.text.length,t-i)):a.cut(Math.max(0,e-i-1),Math.min(a.content.size,t-i-1))),r.push(a),n+=a.nodeSize),i=s}return new se(r,n)}cutByIndex(e,t){return e==t?se.empty:0==e&&t==this.content.length?this:new se(this.content.slice(e,t))}replaceChild(e,t){let r=this.content[e];if(r==t)return this;let n=this.content.slice(),o=this.size+t.nodeSize-r.nodeSize;return n[e]=t,new se(n,o)}addToStart(e){return new se([e].concat(this.content),this.size+e.nodeSize)}addToEnd(e){return new se(this.content.concat(e),this.size+e.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw new RangeError("Index "+e+" out of range for "+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,r=0;t<this.content.length;t++){let n=this.content[t];e(n,r,t),r+=n.nodeSize}}findDiffStart(e,t=0){return ie(this,e,t)}findDiffEnd(e,t=this.size,r=e.size){return ae(this,e,t,r)}findIndex(e,t=-1){if(0==e)return ce(0,e);if(e==this.size)return ce(this.content.length,e);if(e>this.size||e<0)throw new RangeError(`Position ${e} outside of fragment (${this})`);for(let r=0,n=0;;r++){let o=n+this.child(r).nodeSize;if(o>=e)return o==e||t>0?ce(r+1,o):ce(r,n);n=o}}toString(){return"<"+this.toStringInner()+">"}toStringInner(){return this.content.join(", ")}toJSON(){return this.content.length?this.content.map((e=>e.toJSON())):null}static fromJSON(e,t){if(!t)return se.empty;if(!Array.isArray(t))throw new RangeError("Invalid input for Fragment.fromJSON");return new se(t.map(e.nodeFromJSON))}static fromArray(e){if(!e.length)return se.empty;let t,r=0;for(let n=0;n<e.length;n++){let o=e[n];r+=o.nodeSize,n&&o.isText&&e[n-1].sameMarkup(o)?(t||(t=e.slice(0,n)),t[t.length-1]=o.withText(t[t.length-1].text+o.text)):t&&t.push(o)}return new se(t||e,r)}static from(e){if(!e)return se.empty;if(e instanceof se)return e;if(Array.isArray(e))return this.fromArray(e);if(e.attrs)return new se([e],e.nodeSize);throw new RangeError("Can not convert "+e+" to a Fragment"+(e.nodesBetween?" (looks like multiple versions of prosemirror-model were loaded)":""))}}se.empty=new se([],0);const le={index:0,offset:0};function ce(e,t){return le.index=e,le.offset=t,le}function Oe(e,t){if(e===t)return!0;if(!e||"object"!=typeof e||!t||"object"!=typeof t)return!1;let r=Array.isArray(e);if(Array.isArray(t)!=r)return!1;if(r){if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!Oe(e[r],t[r]))return!1}else{for(let r in e)if(!(r in t)||!Oe(e[r],t[r]))return!1;for(let r in t)if(!(r in e))return!1}return!0}class pe{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,r=!1;for(let n=0;n<e.length;n++){let o=e[n];if(this.eq(o))return e;if(this.type.excludes(o.type))t||(t=e.slice(0,n));else{if(o.type.excludes(this.type))return e;!r&&o.type.rank>this.type.rank&&(t||(t=e.slice(0,n)),t.push(this),r=!0),t&&t.push(o)}}return t||(t=e.slice()),r||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&Oe(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw new RangeError("Invalid input for Mark.fromJSON");let r=e.marks[t.type];if(!r)throw new RangeError(`There is no mark type ${t.type} in this schema`);return r.create(t.attrs)}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let r=0;r<e.length;r++)if(!e[r].eq(t[r]))return!1;return!0}static setFrom(e){if(!e||Array.isArray(e)&&0==e.length)return pe.none;if(e instanceof pe)return[e];let t=e.slice();return t.sort(((e,t)=>e.type.rank-t.type.rank)),t}}pe.none=[];class ue extends Error{}class de{constructor(e,t,r){this.content=e,this.openStart=t,this.openEnd=r}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(e,t){let r=he(this.content,e+this.openStart,t);return r&&new de(r,this.openStart,this.openEnd)}removeBetween(e,t){return new de(fe(this.content,e+this.openStart,t+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+"("+this.openStart+","+this.openEnd+")"}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(e,t){if(!t)return de.empty;let r=t.openStart||0,n=t.openEnd||0;if("number"!=typeof r||"number"!=typeof n)throw new RangeError("Invalid input for Slice.fromJSON");return new de(se.fromJSON(e,t.content),r,n)}static maxOpen(e,t=!0){let r=0,n=0;for(let n=e.firstChild;n&&!n.isLeaf&&(t||!n.type.spec.isolating);n=n.firstChild)r++;for(let r=e.lastChild;r&&!r.isLeaf&&(t||!r.type.spec.isolating);r=r.lastChild)n++;return new de(e,r,n)}}function fe(e,t,r){let{index:n,offset:o}=e.findIndex(t),i=e.maybeChild(n),{index:a,offset:s}=e.findIndex(r);if(o==t||i.isText){if(s!=r&&!e.child(a).isText)throw new RangeError("Removing non-flat range");return e.cut(0,t).append(e.cut(r))}if(n!=a)throw new RangeError("Removing non-flat range");return e.replaceChild(n,i.copy(fe(i.content,t-o-1,r-o-1)))}function he(e,t,r,n){let{index:o,offset:i}=e.findIndex(t),a=e.maybeChild(o);if(i==t||a.isText)return n&&!n.canReplace(o,o,r)?null:e.cut(0,t).append(r).append(e.cut(t));let s=he(a.content,t-i-1,r);return s&&e.replaceChild(o,a.copy(s))}de.empty=new de(se.empty,0,0);class me{constructor(e,t,r){this.$from=e,this.$to=t,this.depth=r}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}}class ge{constructor(e){this.hasDefault=Object.prototype.hasOwnProperty.call(e,"default"),this.default=e.default}get isRequired(){return!this.hasDefault}}class ye{constructor(e,t,r,n){this.name=e,this.rank=t,this.schema=r,this.spec=n,this.attrs=function(e){let t=Object.create(null);if(e)for(let r in e)t[r]=new ge(e[r]);return t}(n.attrs),this.excluded=null;let o=function(e){let t=Object.create(null);for(let r in e){let n=e[r];if(!n.hasDefault)return null;t[r]=n.default}return t}(this.attrs);this.instance=o?new pe(this,o):null}create(e=null){return!e&&this.instance?this.instance:new pe(this,function(e,t){let r=Object.create(null);for(let n in e){let o=t&&t[n];if(void 0===o){let t=e[n];if(!t.hasDefault)throw new RangeError("No value supplied for attribute "+n);o=t.default}r[n]=o}return r}(this.attrs,e))}static compile(e,t){let r=Object.create(null),n=0;return e.forEach(((e,o)=>r[e]=new ye(e,n++,t,o))),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}excludes(e){return this.excluded.indexOf(e)>-1}}class Se{constructor(e,t){this.schema=e,this.rules=t,this.tags=[],this.styles=[],t.forEach((e=>{e.tag?this.tags.push(e):e.style&&this.styles.push(e)})),this.normalizeLists=!this.tags.some((t=>{if(!/^(ul|ol)\b/.test(t.tag)||!t.node)return!1;let r=e.nodes[t.node];return r.contentMatch.matchType(r)}))}parse(e,t={}){let r=new Pe(this,t,!1);return r.addAll(e,t.from,t.to),r.finish()}parseSlice(e,t={}){let r=new Pe(this,t,!0);return r.addAll(e,t.from,t.to),de.maxOpen(r.finish())}matchTag(e,t,r){for(let n=r?this.tags.indexOf(r)+1:0;n<this.tags.length;n++){let r=this.tags[n];if(ve(e,r.tag)&&(void 0===r.namespace||e.namespaceURI==r.namespace)&&(!r.context||t.matchesContext(r.context))){if(r.getAttrs){let t=r.getAttrs(e);if(!1===t)continue;r.attrs=t||void 0}return r}}}matchStyle(e,t,r,n){for(let o=n?this.styles.indexOf(n)+1:0;o<this.styles.length;o++){let n=this.styles[o],i=n.style;if(!(0!=i.indexOf(e)||n.context&&!r.matchesContext(n.context)||i.length>e.length&&(61!=i.charCodeAt(e.length)||i.slice(e.length+1)!=t))){if(n.getAttrs){let e=n.getAttrs(t);if(!1===e)continue;n.attrs=e||void 0}return n}}}static schemaRules(e){let t=[];function r(e){let r=null==e.priority?50:e.priority,n=0;for(;n<t.length;n++){let e=t[n];if((null==e.priority?50:e.priority)<r)break}t.splice(n,0,e)}for(let t in e.marks){let n=e.marks[t].spec.parseDOM;n&&n.forEach((e=>{r(e=ke(e)),e.mark||e.ignore||e.clearMark||(e.mark=t)}))}for(let t in e.nodes){let n=e.nodes[t].spec.parseDOM;n&&n.forEach((e=>{r(e=ke(e)),e.node||e.ignore||e.mark||(e.node=t)}))}return t}static fromSchema(e){return e.cached.domParser||(e.cached.domParser=new Se(e,Se.schemaRules(e)))}}const be={address:!0,article:!0,aside:!0,blockquote:!0,canvas:!0,dd:!0,div:!0,dl:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,li:!0,noscript:!0,ol:!0,output:!0,p:!0,pre:!0,section:!0,table:!0,tfoot:!0,ul:!0},Qe={head:!0,noscript:!0,object:!0,script:!0,style:!0,title:!0},we={ol:!0,ul:!0};function $e(e,t,r){return null!=t?(t?1:0)|("full"===t?2:0):e&&"pre"==e.whitespace?3:-5&r}class xe{constructor(e,t,r,n,o,i,a){this.type=e,this.attrs=t,this.marks=r,this.pendingMarks=n,this.solid=o,this.options=a,this.content=[],this.activeMarks=pe.none,this.stashMarks=[],this.match=i||(4&a?null:e.contentMatch)}findWrapping(e){if(!this.match){if(!this.type)return[];let t=this.type.contentMatch.fillBefore(se.from(e));if(!t){let t,r=this.type.contentMatch;return(t=r.findWrapping(e.type))?(this.match=r,t):null}this.match=this.type.contentMatch.matchFragment(t)}return this.match.findWrapping(e.type)}finish(e){if(!(1&this.options)){let e,t=this.content[this.content.length-1];if(t&&t.isText&&(e=/[ \t\r\n\u000c]+$/.exec(t.text))){let r=t;t.text.length==e[0].length?this.content.pop():this.content[this.content.length-1]=r.withText(r.text.slice(0,r.text.length-e[0].length))}}let t=se.from(this.content);return!e&&this.match&&(t=t.append(this.match.fillBefore(se.empty,!0))),this.type?this.type.create(this.attrs,t,this.marks):t}popFromStashMark(e){for(let t=this.stashMarks.length-1;t>=0;t--)if(e.eq(this.stashMarks[t]))return this.stashMarks.splice(t,1)[0]}applyPending(e){for(let t=0,r=this.pendingMarks;t<r.length;t++){let n=r[t];(this.type?this.type.allowsMarkType(n.type):Ze(n.type,e))&&!n.isInSet(this.activeMarks)&&(this.activeMarks=n.addToSet(this.activeMarks),this.pendingMarks=n.removeFromSet(this.pendingMarks))}}inlineContext(e){return this.type?this.type.inlineContent:this.content.length?this.content[0].isInline:e.parentNode&&!be.hasOwnProperty(e.parentNode.nodeName.toLowerCase())}}class Pe{constructor(e,t,r){this.parser=e,this.options=t,this.isOpen=r,this.open=0;let n,o=t.topNode,i=$e(null,t.preserveWhitespace,0)|(r?4:0);n=o?new xe(o.type,o.attrs,pe.none,pe.none,!0,t.topMatch||o.type.contentMatch,i):new xe(r?null:e.schema.topNodeType,null,pe.none,pe.none,!0,null,i),this.nodes=[n],this.find=t.findPositions,this.needsBlock=!1}get top(){return this.nodes[this.open]}addDOM(e){3==e.nodeType?this.addTextNode(e):1==e.nodeType&&this.addElement(e)}withStyleRules(e,t){let r=e.getAttribute("style");if(!r)return t();let n=this.readStyles(function(e){let t,r=/\s*([\w-]+)\s*:\s*([^;]+)/g,n=[];for(;t=r.exec(e);)n.push(t[1],t[2].trim());return n}(r));if(!n)return;let[o,i]=n,a=this.top;for(let e=0;e<i.length;e++)this.removePendingMark(i[e],a);for(let e=0;e<o.length;e++)this.addPendingMark(o[e]);t();for(let e=0;e<o.length;e++)this.removePendingMark(o[e],a);for(let e=0;e<i.length;e++)this.addPendingMark(i[e])}addTextNode(e){let t=e.nodeValue,r=this.top;if(2&r.options||r.inlineContext(e)||/[^ \t\r\n\u000c]/.test(t)){if(1&r.options)t=2&r.options?t.replace(/\r\n?/g,"\n"):t.replace(/\r?\n|\r/g," ");else if(t=t.replace(/[ \t\r\n\u000c]+/g," "),/^[ \t\r\n\u000c]/.test(t)&&this.open==this.nodes.length-1){let n=r.content[r.content.length-1],o=e.previousSibling;(!n||o&&"BR"==o.nodeName||n.isText&&/[ \t\r\n\u000c]$/.test(n.text))&&(t=t.slice(1))}t&&this.insertNode(this.parser.schema.text(t)),this.findInText(e)}else this.findInside(e)}addElement(e,t){let r,n=e.nodeName.toLowerCase();we.hasOwnProperty(n)&&this.parser.normalizeLists&&function(e){for(let t=e.firstChild,r=null;t;t=t.nextSibling){let e=1==t.nodeType?t.nodeName.toLowerCase():null;e&&we.hasOwnProperty(e)&&r?(r.appendChild(t),t=r):"li"==e?r=t:e&&(r=null)}}(e);let o=this.options.ruleFromNode&&this.options.ruleFromNode(e)||(r=this.parser.matchTag(e,this,t));if(o?o.ignore:Qe.hasOwnProperty(n))this.findInside(e),this.ignoreFallback(e);else if(!o||o.skip||o.closeParent){o&&o.closeParent?this.open=Math.max(0,this.open-1):o&&o.skip.nodeType&&(e=o.skip);let t,r=this.top,i=this.needsBlock;if(be.hasOwnProperty(n))r.content.length&&r.content[0].isInline&&this.open&&(this.open--,r=this.top),t=!0,r.type||(this.needsBlock=!0);else if(!e.firstChild)return void this.leafFallback(e);o&&o.skip?this.addAll(e):this.withStyleRules(e,(()=>this.addAll(e))),t&&this.sync(r),this.needsBlock=i}else this.withStyleRules(e,(()=>{this.addElementByRule(e,o,!1===o.consuming?r:void 0)}))}leafFallback(e){"BR"==e.nodeName&&this.top.type&&this.top.type.inlineContent&&this.addTextNode(e.ownerDocument.createTextNode("\n"))}ignoreFallback(e){"BR"!=e.nodeName||this.top.type&&this.top.type.inlineContent||this.findPlace(this.parser.schema.text("-"))}readStyles(e){let t=pe.none,r=pe.none;for(let n=0;n<e.length;n+=2)for(let o;;){let i=this.parser.matchStyle(e[n],e[n+1],this,o);if(!i)break;if(i.ignore)return null;if(i.clearMark?this.top.pendingMarks.concat(this.top.activeMarks).forEach((e=>{i.clearMark(e)&&(r=e.addToSet(r))})):t=this.parser.schema.marks[i.mark].create(i.attrs).addToSet(t),!1!==i.consuming)break;o=i}return[t,r]}addElementByRule(e,t,r){let n,o,i;if(t.node)o=this.parser.schema.nodes[t.node],o.isLeaf?this.insertNode(o.create(t.attrs))||this.leafFallback(e):n=this.enter(o,t.attrs||null,t.preserveWhitespace);else{i=this.parser.schema.marks[t.mark].create(t.attrs),this.addPendingMark(i)}let a=this.top;if(o&&o.isLeaf)this.findInside(e);else if(r)this.addElement(e,r);else if(t.getContent)this.findInside(e),t.getContent(e,this.parser.schema).forEach((e=>this.insertNode(e)));else{let r=e;"string"==typeof t.contentElement?r=e.querySelector(t.contentElement):"function"==typeof t.contentElement?r=t.contentElement(e):t.contentElement&&(r=t.contentElement),this.findAround(e,r,!0),this.addAll(r)}n&&this.sync(a)&&this.open--,i&&this.removePendingMark(i,a)}addAll(e,t,r){let n=t||0;for(let o=t?e.childNodes[t]:e.firstChild,i=null==r?null:e.childNodes[r];o!=i;o=o.nextSibling,++n)this.findAtPoint(e,n),this.addDOM(o);this.findAtPoint(e,n)}findPlace(e){let t,r;for(let n=this.open;n>=0;n--){let o=this.nodes[n],i=o.findWrapping(e);if(i&&(!t||t.length>i.length)&&(t=i,r=o,!i.length))break;if(o.solid)break}if(!t)return!1;this.sync(r);for(let e=0;e<t.length;e++)this.enterInner(t[e],null,!1);return!0}insertNode(e){if(e.isInline&&this.needsBlock&&!this.top.type){let e=this.textblockFromContext();e&&this.enterInner(e)}if(this.findPlace(e)){this.closeExtra();let t=this.top;t.applyPending(e.type),t.match&&(t.match=t.match.matchType(e.type));let r=t.activeMarks;for(let n=0;n<e.marks.length;n++)t.type&&!t.type.allowsMarkType(e.marks[n].type)||(r=e.marks[n].addToSet(r));return t.content.push(e.mark(r)),!0}return!1}enter(e,t,r){let n=this.findPlace(e.create(t));return n&&this.enterInner(e,t,!0,r),n}enterInner(e,t=null,r=!1,n){this.closeExtra();let o=this.top;o.applyPending(e),o.match=o.match&&o.match.matchType(e);let i=$e(e,n,o.options);4&o.options&&0==o.content.length&&(i|=4),this.nodes.push(new xe(e,t,o.activeMarks,o.pendingMarks,r,null,i)),this.open++}closeExtra(e=!1){let t=this.nodes.length-1;if(t>this.open){for(;t>this.open;t--)this.nodes[t-1].content.push(this.nodes[t].finish(e));this.nodes.length=this.open+1}}finish(){return this.open=0,this.closeExtra(this.isOpen),this.nodes[0].finish(this.isOpen||this.options.topOpen)}sync(e){for(let t=this.open;t>=0;t--)if(this.nodes[t]==e)return this.open=t,!0;return!1}get currentPos(){this.closeExtra();let e=0;for(let t=this.open;t>=0;t--){let r=this.nodes[t].content;for(let t=r.length-1;t>=0;t--)e+=r[t].nodeSize;t&&e++}return e}findAtPoint(e,t){if(this.find)for(let r=0;r<this.find.length;r++)this.find[r].node==e&&this.find[r].offset==t&&(this.find[r].pos=this.currentPos)}findInside(e){if(this.find)for(let t=0;t<this.find.length;t++)null==this.find[t].pos&&1==e.nodeType&&e.contains(this.find[t].node)&&(this.find[t].pos=this.currentPos)}findAround(e,t,r){if(e!=t&&this.find)for(let n=0;n<this.find.length;n++)if(null==this.find[n].pos&&1==e.nodeType&&e.contains(this.find[n].node)){t.compareDocumentPosition(this.find[n].node)&(r?2:4)&&(this.find[n].pos=this.currentPos)}}findInText(e){if(this.find)for(let t=0;t<this.find.length;t++)this.find[t].node==e&&(this.find[t].pos=this.currentPos-(e.nodeValue.length-this.find[t].offset))}matchesContext(e){if(e.indexOf("|")>-1)return e.split(/\s*\|\s*/).some(this.matchesContext,this);let t=e.split("/"),r=this.options.context,n=!(this.isOpen||r&&r.parent.type!=this.nodes[0].type),o=-(r?r.depth+1:0)+(n?0:1),i=(e,a)=>{for(;e>=0;e--){let s=t[e];if(""==s){if(e==t.length-1||0==e)continue;for(;a>=o;a--)if(i(e-1,a))return!0;return!1}{let e=a>0||0==a&&n?this.nodes[a].type:r&&a>=o?r.node(a-o).type:null;if(!e||e.name!=s&&-1==e.groups.indexOf(s))return!1;a--}}return!0};return i(t.length-1,this.open)}textblockFromContext(){let e=this.options.context;if(e)for(let t=e.depth;t>=0;t--){let r=e.node(t).contentMatchAt(e.indexAfter(t)).defaultType;if(r&&r.isTextblock&&r.defaultAttrs)return r}for(let e in this.parser.schema.nodes){let t=this.parser.schema.nodes[e];if(t.isTextblock&&t.defaultAttrs)return t}}addPendingMark(e){let t=function(e,t){for(let r=0;r<t.length;r++)if(e.eq(t[r]))return t[r]}(e,this.top.pendingMarks);t&&this.top.stashMarks.push(t),this.top.pendingMarks=e.addToSet(this.top.pendingMarks)}removePendingMark(e,t){for(let r=this.open;r>=0;r--){let n=this.nodes[r];if(n.pendingMarks.lastIndexOf(e)>-1)n.pendingMarks=e.removeFromSet(n.pendingMarks);else{n.activeMarks=e.removeFromSet(n.activeMarks);let t=n.popFromStashMark(e);t&&n.type&&n.type.allowsMarkType(t.type)&&(n.activeMarks=t.addToSet(n.activeMarks))}if(n==t)break}}}function ve(e,t){return(e.matches||e.msMatchesSelector||e.webkitMatchesSelector||e.mozMatchesSelector).call(e,t)}function ke(e){let t={};for(let r in e)t[r]=e[r];return t}function Ze(e,t){let r=t.schema.nodes;for(let n in r){let o=r[n];if(!o.allowsMarkType(e))continue;let i=[],a=e=>{i.push(e);for(let r=0;r<e.edgeCount;r++){let{type:n,next:o}=e.edge(r);if(n==t)return!0;if(i.indexOf(o)<0&&a(o))return!0}};if(a(o.contentMatch))return!0}}class Te{constructor(e,t){this.nodes=e,this.marks=t}serializeFragment(e,t={},r){r||(r=Re(t).createDocumentFragment());let n=r,o=[];return e.forEach((e=>{if(o.length||e.marks.length){let r=0,i=0;for(;r<o.length&&i<e.marks.length;){let t=e.marks[i];if(this.marks[t.type.name]){if(!t.eq(o[r][0])||!1===t.type.spec.spanning)break;r++,i++}else i++}for(;r<o.length;)n=o.pop()[1];for(;i<e.marks.length;){let r=e.marks[i++],a=this.serializeMark(r,e.isInline,t);a&&(o.push([r,n]),n.appendChild(a.dom),n=a.contentDOM||a.dom)}}n.appendChild(this.serializeNodeInner(e,t))})),r}serializeNodeInner(e,t){let{dom:r,contentDOM:n}=Te.renderSpec(Re(t),this.nodes[e.type.name](e));if(n){if(e.isLeaf)throw new RangeError("Content hole not allowed in a leaf node spec");this.serializeFragment(e.content,t,n)}return r}serializeNode(e,t={}){let r=this.serializeNodeInner(e,t);for(let n=e.marks.length-1;n>=0;n--){let o=this.serializeMark(e.marks[n],e.isInline,t);o&&((o.contentDOM||o.dom).appendChild(r),r=o.dom)}return r}serializeMark(e,t,r={}){let n=this.marks[e.type.name];return n&&Te.renderSpec(Re(r),n(e,t))}static renderSpec(e,t,r=null){if("string"==typeof t)return{dom:e.createTextNode(t)};if(null!=t.nodeType)return{dom:t};if(t.dom&&null!=t.dom.nodeType)return t;let n,o=t[0],i=o.indexOf(" ");i>0&&(r=o.slice(0,i),o=o.slice(i+1));let a=r?e.createElementNS(r,o):e.createElement(o),s=t[1],l=1;if(s&&"object"==typeof s&&null==s.nodeType&&!Array.isArray(s)){l=2;for(let e in s)if(null!=s[e]){let t=e.indexOf(" ");t>0?a.setAttributeNS(e.slice(0,t),e.slice(t+1),s[e]):a.setAttribute(e,s[e])}}for(let o=l;o<t.length;o++){let i=t[o];if(0===i){if(o<t.length-1||o>l)throw new RangeError("Content hole must be the only child of its parent node");return{dom:a,contentDOM:a}}{let{dom:t,contentDOM:o}=Te.renderSpec(e,i,r);if(a.appendChild(t),o){if(n)throw new RangeError("Multiple content holes");n=o}}}return{dom:a,contentDOM:n}}static fromSchema(e){return e.cached.domSerializer||(e.cached.domSerializer=new Te(this.nodesFromSchema(e),this.marksFromSchema(e)))}static nodesFromSchema(e){let t=Ee(e.nodes);return t.text||(t.text=e=>e.text),t}static marksFromSchema(e){return Ee(e.marks)}}function Ee(e){let t={};for(let r in e){let n=e[r].spec.toDOM;n&&(t[r]=n)}return t}function Re(e){return e.document||window.document}const Xe=Math.pow(2,16);function Ce(e){return 65535&e}class je{constructor(e,t,r){this.pos=e,this.delInfo=t,this.recover=r}get deleted(){return(8&this.delInfo)>0}get deletedBefore(){return(5&this.delInfo)>0}get deletedAfter(){return(6&this.delInfo)>0}get deletedAcross(){return(4&this.delInfo)>0}}class Ye{constructor(e,t=!1){if(this.ranges=e,this.inverted=t,!e.length&&Ye.empty)return Ye.empty}recover(e){let t=0,r=Ce(e);if(!this.inverted)for(let e=0;e<r;e++)t+=this.ranges[3*e+2]-this.ranges[3*e+1];return this.ranges[3*r]+t+function(e){return(e-(65535&e))/Xe}(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,r){let n=0,o=this.inverted?2:1,i=this.inverted?1:2;for(let a=0;a<this.ranges.length;a+=3){let s=this.ranges[a]-(this.inverted?n:0);if(s>e)break;let l=this.ranges[a+o],c=this.ranges[a+i],O=s+l;if(e<=O){let o=s+n+((l?e==s?-1:e==O?1:t:t)<0?0:c);if(r)return o;let i=e==(t<0?s:O)?null:a/3+(e-s)*Xe,p=e==s?2:e==O?1:4;return(t<0?e!=s:e!=O)&&(p|=8),new je(o,p,i)}n+=c-l}return r?e+n:new je(e+n,0,null)}touches(e,t){let r=0,n=Ce(t),o=this.inverted?2:1,i=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let a=this.ranges[t]-(this.inverted?r:0);if(a>e)break;let s=this.ranges[t+o];if(e<=a+s&&t==3*n)return!0;r+=this.ranges[t+i]-s}return!1}forEach(e){let t=this.inverted?2:1,r=this.inverted?1:2;for(let n=0,o=0;n<this.ranges.length;n+=3){let i=this.ranges[n],a=i-(this.inverted?o:0),s=i+(this.inverted?0:o),l=this.ranges[n+t],c=this.ranges[n+r];e(a,a+l,s,s+c),o+=c-l}}invert(){return new Ye(this.ranges,!this.inverted)}toString(){return(this.inverted?"-":"")+JSON.stringify(this.ranges)}static offset(e){return 0==e?Ye.empty:new Ye(e<0?[0,-e,0]:[0,0,e])}}Ye.empty=new Ye([]);class _e{constructor(e=[],t,r=0,n=e.length){this.maps=e,this.mirror=t,this.from=r,this.to=n}slice(e=0,t=this.maps.length){return new _e(this.maps,this.mirror,e,t)}copy(){return new _e(this.maps.slice(),this.mirror&&this.mirror.slice(),this.from,this.to)}appendMap(e,t){this.to=this.maps.push(e),null!=t&&this.setMirror(this.maps.length-1,t)}appendMapping(e){for(let t=0,r=this.maps.length;t<e.maps.length;t++){let n=e.getMirror(t);this.appendMap(e.maps[t],null!=n&&n<t?r+n:void 0)}}getMirror(e){if(this.mirror)for(let t=0;t<this.mirror.length;t++)if(this.mirror[t]==e)return this.mirror[t+(t%2?-1:1)]}setMirror(e,t){this.mirror||(this.mirror=[]),this.mirror.push(e,t)}appendMappingInverted(e){for(let t=e.maps.length-1,r=this.maps.length+e.maps.length;t>=0;t--){let n=e.getMirror(t);this.appendMap(e.maps[t].invert(),null!=n&&n>t?r-n-1:void 0)}}invert(){let e=new _e;return e.appendMappingInverted(this),e}map(e,t=1){if(this.mirror)return this._map(e,t,!0);for(let r=this.from;r<this.to;r++)e=this.maps[r].map(e,t);return e}mapResult(e,t=1){return this._map(e,t,!1)}_map(e,t,r){let n=0;for(let r=this.from;r<this.to;r++){let o=this.maps[r].mapResult(e,t);if(null!=o.recover){let t=this.getMirror(r);if(null!=t&&t>r&&t<this.to){r=t,e=this.maps[t].recover(o.recover);continue}}n|=o.delInfo,e=o.pos}return r?e:new je(e,n,null)}}const Ae=Object.create(null);class We{getMap(){return Ye.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw new RangeError("Invalid input for Step.fromJSON");let r=Ae[t.stepType];if(!r)throw new RangeError(`No step type ${t.stepType} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in Ae)throw new RangeError("Duplicate use of step JSON ID "+e);return Ae[e]=t,t.prototype.jsonID=e,t}}class qe{constructor(e,t){this.doc=e,this.failed=t}static ok(e){return new qe(e,null)}static fail(e){return new qe(null,e)}static fromReplace(e,t,r,n){try{return qe.ok(e.replace(t,r,n))}catch(e){if(e instanceof ue)return qe.fail(e.message);throw e}}}function Ve(e,t,r){let n=[];for(let o=0;o<e.childCount;o++){let i=e.child(o);i.content.size&&(i=i.copy(Ve(i.content,t,i))),i.isInline&&(i=t(i,r,o)),n.push(i)}return se.fromArray(n)}class Ie extends We{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=e.resolve(this.from),n=r.node(r.sharedDepth(this.to)),o=new de(Ve(t.content,((e,t)=>e.isAtom&&t.type.allowsMarkType(this.mark.type)?e.mark(this.mark.addToSet(e.marks)):e),n),t.openStart,t.openEnd);return qe.fromReplace(e,this.from,this.to,o)}invert(){return new Ne(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Ie(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ie&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ie(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"addMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for AddMarkStep.fromJSON");return new Ie(t.from,t.to,e.markFromJSON(t.mark))}}We.jsonID("addMark",Ie);class Ne extends We{constructor(e,t,r){super(),this.from=e,this.to=t,this.mark=r}apply(e){let t=e.slice(this.from,this.to),r=new de(Ve(t.content,(e=>e.mark(this.mark.removeFromSet(e.marks))),e),t.openStart,t.openEnd);return qe.fromReplace(e,this.from,this.to,r)}invert(){return new Ie(this.from,this.to,this.mark)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deleted&&r.deleted||t.pos>=r.pos?null:new Ne(t.pos,r.pos,this.mark)}merge(e){return e instanceof Ne&&e.mark.eq(this.mark)&&this.from<=e.to&&this.to>=e.from?new Ne(Math.min(this.from,e.from),Math.max(this.to,e.to),this.mark):null}toJSON(){return{stepType:"removeMark",mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");return new Ne(t.from,t.to,e.markFromJSON(t.mark))}}We.jsonID("removeMark",Ne);class ze extends We{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return qe.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return qe.fromReplace(e,this.pos,this.pos+1,new de(se.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);if(t){let e=this.mark.addToSet(t.marks);if(e.length==t.marks.length){for(let r=0;r<t.marks.length;r++)if(!t.marks[r].isInSet(e))return new ze(this.pos,t.marks[r]);return new ze(this.pos,this.mark)}}return new Me(this.pos,this.mark)}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new ze(t.pos,this.mark)}toJSON(){return{stepType:"addNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for AddNodeMarkStep.fromJSON");return new ze(t.pos,e.markFromJSON(t.mark))}}We.jsonID("addNodeMark",ze);class Me extends We{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return qe.fail("No node at mark step's position");let r=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return qe.fromReplace(e,this.pos,this.pos+1,new de(se.from(r),0,t.isLeaf?0:1))}invert(e){let t=e.nodeAt(this.pos);return t&&this.mark.isInSet(t.marks)?new ze(this.pos,this.mark):this}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new Me(t.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(e,t){if("number"!=typeof t.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON");return new Me(t.pos,e.markFromJSON(t.mark))}}We.jsonID("removeNodeMark",Me);class Ue extends We{constructor(e,t,r,n=!1){super(),this.from=e,this.to=t,this.slice=r,this.structure=n}apply(e){return this.structure&&De(e,this.from,this.to)?qe.fail("Structure replace would overwrite content"):qe.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new Ye([this.from,this.to-this.from,this.slice.size])}invert(e){return new Ue(this.from,this.from+this.slice.size,e.slice(this.from,this.to))}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1);return t.deletedAcross&&r.deletedAcross?null:new Ue(t.pos,Math.max(t.pos,r.pos),this.slice)}merge(e){if(!(e instanceof Ue)||e.structure||this.structure)return null;if(this.from+this.slice.size!=e.from||this.slice.openEnd||e.slice.openStart){if(e.to!=this.from||this.slice.openStart||e.slice.openEnd)return null;{let t=this.slice.size+e.slice.size==0?de.empty:new de(e.slice.content.append(this.slice.content),e.slice.openStart,this.slice.openEnd);return new Ue(e.from,this.to,t,this.structure)}}{let t=this.slice.size+e.slice.size==0?de.empty:new de(this.slice.content.append(e.slice.content),this.slice.openStart,e.slice.openEnd);return new Ue(this.from,this.to+(e.to-e.from),t,this.structure)}}toJSON(){let e={stepType:"replace",from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON");return new Ue(t.from,t.to,de.fromJSON(e,t.slice),!!t.structure)}}We.jsonID("replace",Ue);class Ge extends We{constructor(e,t,r,n,o,i,a=!1){super(),this.from=e,this.to=t,this.gapFrom=r,this.gapTo=n,this.slice=o,this.insert=i,this.structure=a}apply(e){if(this.structure&&(De(e,this.from,this.gapFrom)||De(e,this.gapTo,this.to)))return qe.fail("Structure gap-replace would overwrite content");let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return qe.fail("Gap is not a flat range");let r=this.slice.insertAt(this.insert,t.content);return r?qe.fromReplace(e,this.from,this.to,r):qe.fail("Content does not fit in gap")}getMap(){return new Ye([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(e){let t=this.gapTo-this.gapFrom;return new Ge(this.from,this.from+this.slice.size+t,this.from+this.insert,this.from+this.insert+t,e.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(e){let t=e.mapResult(this.from,1),r=e.mapResult(this.to,-1),n=e.map(this.gapFrom,-1),o=e.map(this.gapTo,1);return t.deletedAcross&&r.deletedAcross||n<t.pos||o>r.pos?null:new Ge(t.pos,r.pos,n,o,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:"replaceAround",from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(e,t){if("number"!=typeof t.from||"number"!=typeof t.to||"number"!=typeof t.gapFrom||"number"!=typeof t.gapTo||"number"!=typeof t.insert)throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");return new Ge(t.from,t.to,t.gapFrom,t.gapTo,de.fromJSON(e,t.slice),t.insert,!!t.structure)}}function De(e,t,r){let n=e.resolve(t),o=r-t,i=n.depth;for(;o>0&&i>0&&n.indexAfter(i)==n.node(i).childCount;)i--,o--;if(o>0){let e=n.node(i).maybeChild(n.indexAfter(i));for(;o>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,o--}}return!1}function Be(e,t,r){return(0==t||e.canReplace(t,e.childCount))&&(r==e.childCount||e.canReplace(0,r))}function Le(e){let t=e.parent.content.cutByIndex(e.startIndex,e.endIndex);for(let r=e.depth;;--r){let n=e.$from.node(r),o=e.$from.index(r),i=e.$to.indexAfter(r);if(r<e.depth&&n.canReplace(o,i,t))return r;if(0==r||n.type.spec.isolating||!Be(n,o,i))break}return null}function Fe(e){return{type:e,attrs:null}}function Je(e,t,r=1,n){let o=e.resolve(t),i=o.depth-r,a=n&&n[n.length-1]||o.parent;if(i<0||o.parent.type.spec.isolating||!o.parent.canReplace(o.index(),o.parent.childCount)||!a.type.validContent(o.parent.content.cutByIndex(o.index(),o.parent.childCount)))return!1;for(let e=o.depth-1,t=r-2;e>i;e--,t--){let r=o.node(e),i=o.index(e);if(r.type.spec.isolating)return!1;let a=r.content.cutByIndex(i,r.childCount),s=n&&n[t+1];s&&(a=a.replaceChild(0,s.type.create(s.attrs)));let l=n&&n[t]||r;if(!r.canReplace(i+1,r.childCount)||!l.type.validContent(a))return!1}let s=o.indexAfter(i),l=n&&n[0];return o.node(i).canReplaceWith(s,s,l?l.type:o.node(i+1).type)}function Ke(e,t){let r=e.resolve(t),n=r.index();return o=r.nodeBefore,i=r.nodeAfter,!(!o||!i||o.isLeaf||!o.canAppend(i))&&r.parent.canReplace(n,n+1);var o,i}function He(e,t,r){let n=e.resolve(t);if(n.parent.canReplaceWith(n.index(),n.index(),r))return t;if(0==n.parentOffset)for(let e=n.depth-1;e>=0;e--){let t=n.index(e);if(n.node(e).canReplaceWith(t,t,r))return n.before(e+1);if(t>0)return null}if(n.parentOffset==n.parent.content.size)for(let e=n.depth-1;e>=0;e--){let t=n.indexAfter(e);if(n.node(e).canReplaceWith(t,t,r))return n.after(e+1);if(t<n.node(e).childCount)return null}return null}function et(e,t,r){let n=e.resolve(t);if(!r.content.size)return t;let o=r.content;for(let e=0;e<r.openStart;e++)o=o.firstChild.content;for(let e=1;e<=(0==r.openStart&&r.size?2:1);e++)for(let t=n.depth;t>=0;t--){let r=t==n.depth?0:n.pos<=(n.start(t+1)+n.end(t+1))/2?-1:1,i=n.index(t)+(r>0?1:0),a=n.node(t),s=!1;if(1==e)s=a.canReplace(i,i,o);else{let e=a.contentMatchAt(i).findWrapping(o.firstChild.type);s=e&&a.canReplaceWith(i,i,e[0])}if(s)return 0==r?n.pos:r<0?n.before(t+1):n.after(t+1)}return null}function tt(e,t,r=t,n=de.empty){if(t==r&&!n.size)return null;let o=e.resolve(t),i=e.resolve(r);return rt(o,i,n)?new Ue(t,r,n):new nt(o,i,n).fit()}function rt(e,t,r){return!r.openStart&&!r.openEnd&&e.start()==t.start()&&e.parent.canReplace(e.index(),t.index(),r.content)}We.jsonID("replaceAround",Ge);class nt{constructor(e,t,r){this.$from=e,this.$to=t,this.unplaced=r,this.frontier=[],this.placed=se.empty;for(let t=0;t<=e.depth;t++){let r=e.node(t);this.frontier.push({type:r.type,match:r.contentMatchAt(e.indexAfter(t))})}for(let t=e.depth;t>0;t--)this.placed=se.from(e.node(t).copy(this.placed))}get depth(){return this.frontier.length-1}fit(){for(;this.unplaced.size;){let e=this.findFittable();e?this.placeNodes(e):this.openMore()||this.dropNode()}let e=this.mustMoveInline(),t=this.placed.size-this.depth-this.$from.depth,r=this.$from,n=this.close(e<0?this.$to:r.doc.resolve(e));if(!n)return null;let o=this.placed,i=r.depth,a=n.depth;for(;i&&a&&1==o.childCount;)o=o.firstChild.content,i--,a--;let s=new de(o,i,a);return e>-1?new Ge(r.pos,e,this.$to.pos,this.$to.end(),s,t):s.size||r.pos!=this.$to.pos?new Ue(r.pos,n.pos,s):null}findFittable(){let e=this.unplaced.openStart;for(let t=this.unplaced.content,r=0,n=this.unplaced.openEnd;r<e;r++){let o=t.firstChild;if(t.childCount>1&&(n=0),o.type.spec.isolating&&n<=r){e=r;break}t=o.content}for(let t=1;t<=2;t++)for(let r=1==t?e:this.unplaced.openStart;r>=0;r--){let e,n=null;r?(n=at(this.unplaced.content,r-1).firstChild,e=n.content):e=this.unplaced.content;let o=e.firstChild;for(let e=this.depth;e>=0;e--){let i,{type:a,match:s}=this.frontier[e],l=null;if(1==t&&(o?s.matchType(o.type)||(l=s.fillBefore(se.from(o),!1)):n&&a.compatibleContent(n.type)))return{sliceDepth:r,frontierDepth:e,parent:n,inject:l};if(2==t&&o&&(i=s.findWrapping(o.type)))return{sliceDepth:r,frontierDepth:e,parent:n,wrap:i};if(n&&s.matchType(n.type))break}}}openMore(){let{content:e,openStart:t,openEnd:r}=this.unplaced,n=at(e,t);return!(!n.childCount||n.firstChild.isLeaf)&&(this.unplaced=new de(e,t+1,Math.max(r,n.size+t>=e.size-r?t+1:0)),!0)}dropNode(){let{content:e,openStart:t,openEnd:r}=this.unplaced,n=at(e,t);if(n.childCount<=1&&t>0){let o=e.size-t<=t+n.size;this.unplaced=new de(ot(e,t-1,1),t-1,o?t-1:r)}else this.unplaced=new de(ot(e,t,1),t,r)}placeNodes({sliceDepth:e,frontierDepth:t,parent:r,inject:n,wrap:o}){for(;this.depth>t;)this.closeFrontierNode();if(o)for(let e=0;e<o.length;e++)this.openFrontierNode(o[e]);let i=this.unplaced,a=r?r.content:i.content,s=i.openStart-e,l=0,c=[],{match:O,type:p}=this.frontier[t];if(n){for(let e=0;e<n.childCount;e++)c.push(n.child(e));O=O.matchFragment(n)}let u=a.size+e-(i.content.size-i.openEnd);for(;l<a.childCount;){let e=a.child(l),t=O.matchType(e.type);if(!t)break;l++,(l>1||0==s||e.content.size)&&(O=t,c.push(st(e.mark(p.allowedMarks(e.marks)),1==l?s:0,l==a.childCount?u:-1)))}let d=l==a.childCount;d||(u=-1),this.placed=it(this.placed,t,se.from(c)),this.frontier[t].match=O,d&&u<0&&r&&r.type==this.frontier[this.depth].type&&this.frontier.length>1&&this.closeFrontierNode();for(let e=0,t=a;e<u;e++){let e=t.lastChild;this.frontier.push({type:e.type,match:e.contentMatchAt(e.childCount)}),t=e.content}this.unplaced=d?0==e?de.empty:new de(ot(i.content,e-1,1),e-1,u<0?i.openEnd:e-1):new de(ot(i.content,e,l),i.openStart,i.openEnd)}mustMoveInline(){if(!this.$to.parent.isTextblock)return-1;let e,t=this.frontier[this.depth];if(!t.type.isTextblock||!lt(this.$to,this.$to.depth,t.type,t.match,!1)||this.$to.depth==this.depth&&(e=this.findCloseLevel(this.$to))&&e.depth==this.depth)return-1;let{depth:r}=this.$to,n=this.$to.after(r);for(;r>1&&n==this.$to.end(--r);)++n;return n}findCloseLevel(e){e:for(let t=Math.min(this.depth,e.depth);t>=0;t--){let{match:r,type:n}=this.frontier[t],o=t<e.depth&&e.end(t+1)==e.pos+(e.depth-(t+1)),i=lt(e,t,n,r,o);if(i){for(let r=t-1;r>=0;r--){let{match:t,type:n}=this.frontier[r],o=lt(e,r,n,t,!0);if(!o||o.childCount)continue e}return{depth:t,fit:i,move:o?e.doc.resolve(e.after(t+1)):e}}}}close(e){let t=this.findCloseLevel(e);if(!t)return null;for(;this.depth>t.depth;)this.closeFrontierNode();t.fit.childCount&&(this.placed=it(this.placed,t.depth,t.fit)),e=t.move;for(let r=t.depth+1;r<=e.depth;r++){let t=e.node(r),n=t.type.contentMatch.fillBefore(t.content,!0,e.index(r));this.openFrontierNode(t.type,t.attrs,n)}return e}openFrontierNode(e,t=null,r){let n=this.frontier[this.depth];n.match=n.match.matchType(e),this.placed=it(this.placed,this.depth,se.from(e.create(t,r))),this.frontier.push({type:e,match:e.contentMatch})}closeFrontierNode(){let e=this.frontier.pop().match.fillBefore(se.empty,!0);e.childCount&&(this.placed=it(this.placed,this.frontier.length,e))}}function ot(e,t,r){return 0==t?e.cutByIndex(r,e.childCount):e.replaceChild(0,e.firstChild.copy(ot(e.firstChild.content,t-1,r)))}function it(e,t,r){return 0==t?e.append(r):e.replaceChild(e.childCount-1,e.lastChild.copy(it(e.lastChild.content,t-1,r)))}function at(e,t){for(let r=0;r<t;r++)e=e.firstChild.content;return e}function st(e,t,r){if(t<=0)return e;let n=e.content;return t>1&&(n=n.replaceChild(0,st(n.firstChild,t-1,1==n.childCount?r-1:0))),t>0&&(n=e.type.contentMatch.fillBefore(n).append(n),r<=0&&(n=n.append(e.type.contentMatch.matchFragment(n).fillBefore(se.empty,!0)))),e.copy(n)}function lt(e,t,r,n,o){let i=e.node(t),a=o?e.indexAfter(t):e.index(t);if(a==i.childCount&&!r.compatibleContent(i.type))return null;let s=n.fillBefore(i.content,!0,a);return s&&!function(e,t,r){for(let n=r;n<t.childCount;n++)if(!e.allowsMarks(t.child(n).marks))return!0;return!1}(r,i.content,a)?s:null}function ct(e,t,r,n,o){if(t<r){let o=e.firstChild;e=e.replaceChild(0,o.copy(ct(o.content,t+1,r,n,o)))}if(t>n){let t=o.contentMatchAt(0),r=t.fillBefore(e).append(e);e=r.append(t.matchFragment(r).fillBefore(se.empty,!0))}return e}function Ot(e,t){let r=[];for(let n=Math.min(e.depth,t.depth);n>=0;n--){let o=e.start(n);if(o<e.pos-(e.depth-n)||t.end(n)>t.pos+(t.depth-n)||e.node(n).type.spec.isolating||t.node(n).type.spec.isolating)break;(o==t.start(n)||n==e.depth&&n==t.depth&&e.parent.inlineContent&&t.parent.inlineContent&&n&&t.start(n-1)==o-1)&&r.push(n)}return r}class pt extends We{constructor(e,t,r){super(),this.pos=e,this.attr=t,this.value=r}apply(e){let t=e.nodeAt(this.pos);if(!t)return qe.fail("No node at attribute step's position");let r=Object.create(null);for(let e in t.attrs)r[e]=t.attrs[e];r[this.attr]=this.value;let n=t.type.create(r,null,t.marks);return qe.fromReplace(e,this.pos,this.pos+1,new de(se.from(n),0,t.isLeaf?0:1))}getMap(){return Ye.empty}invert(e){return new pt(this.pos,this.attr,e.nodeAt(this.pos).attrs[this.attr])}map(e){let t=e.mapResult(this.pos,1);return t.deletedAfter?null:new pt(t.pos,this.attr,this.value)}toJSON(){return{stepType:"attr",pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(e,t){if("number"!=typeof t.pos||"string"!=typeof t.attr)throw new RangeError("Invalid input for AttrStep.fromJSON");return new pt(t.pos,t.attr,t.value)}}We.jsonID("attr",pt);class ut extends We{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let r in e.attrs)t[r]=e.attrs[r];t[this.attr]=this.value;let r=e.type.create(t,e.content,e.marks);return qe.ok(r)}getMap(){return Ye.empty}invert(e){return new ut(this.attr,e.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:"docAttr",attr:this.attr,value:this.value}}static fromJSON(e,t){if("string"!=typeof t.attr)throw new RangeError("Invalid input for DocAttrStep.fromJSON");return new ut(t.attr,t.value)}}We.jsonID("docAttr",ut);let dt=class extends Error{};dt=function e(t){let r=Error.call(this,t);return r.__proto__=e.prototype,r},(dt.prototype=Object.create(Error.prototype)).constructor=dt,dt.prototype.name="TransformError";class ft{constructor(e){this.doc=e,this.steps=[],this.docs=[],this.mapping=new _e}get before(){return this.docs.length?this.docs[0]:this.doc}step(e){let t=this.maybeStep(e);if(t.failed)throw new dt(t.failed);return this}maybeStep(e){let t=e.apply(this.doc);return t.failed||this.addStep(e,t.doc),t}get docChanged(){return this.steps.length>0}addStep(e,t){this.docs.push(this.doc),this.steps.push(e),this.mapping.appendMap(e.getMap()),this.doc=t}replace(e,t=e,r=de.empty){let n=tt(this.doc,e,t,r);return n&&this.step(n),this}replaceWith(e,t,r){return this.replace(e,t,new de(se.from(r),0,0))}delete(e,t){return this.replace(e,t,de.empty)}insert(e,t){return this.replaceWith(e,e,t)}replaceRange(e,t,r){return function(e,t,r,n){if(!n.size)return e.deleteRange(t,r);let o=e.doc.resolve(t),i=e.doc.resolve(r);if(rt(o,i,n))return e.step(new Ue(t,r,n));let a=Ot(o,e.doc.resolve(r));0==a[a.length-1]&&a.pop();let s=-(o.depth+1);a.unshift(s);for(let e=o.depth,t=o.pos-1;e>0;e--,t--){let r=o.node(e).type.spec;if(r.defining||r.definingAsContext||r.isolating)break;a.indexOf(e)>-1?s=e:o.before(e)==t&&a.splice(1,0,-e)}let l=a.indexOf(s),c=[],O=n.openStart;for(let e=n.content,t=0;;t++){let r=e.firstChild;if(c.push(r),t==n.openStart)break;e=r.content}for(let e=O-1;e>=0;e--){let t=c[e],r=(p=t.type).spec.defining||p.spec.definingForContent;if(r&&!t.sameMarkup(o.node(Math.abs(s)-1)))O=e;else if(r||!t.type.isTextblock)break}var p;for(let t=n.openStart;t>=0;t--){let s=(t+O+1)%(n.openStart+1),p=c[s];if(p)for(let t=0;t<a.length;t++){let c=a[(t+l)%a.length],O=!0;c<0&&(O=!1,c=-c);let u=o.node(c-1),d=o.index(c-1);if(u.canReplaceWith(d,d,p.type,p.marks))return e.replace(o.before(c),O?i.after(c):r,new de(ct(n.content,0,n.openStart,s),s,n.openEnd))}}let u=e.steps.length;for(let s=a.length-1;s>=0&&(e.replace(t,r,n),!(e.steps.length>u));s--){let e=a[s];e<0||(t=o.before(e),r=i.after(e))}}(this,e,t,r),this}replaceRangeWith(e,t,r){return function(e,t,r,n){if(!n.isInline&&t==r&&e.doc.resolve(t).parent.content.size){let o=He(e.doc,t,n.type);null!=o&&(t=r=o)}e.replaceRange(t,r,new de(se.from(n),0,0))}(this,e,t,r),this}deleteRange(e,t){return function(e,t,r){let n=e.doc.resolve(t),o=e.doc.resolve(r),i=Ot(n,o);for(let t=0;t<i.length;t++){let r=i[t],a=t==i.length-1;if(a&&0==r||n.node(r).type.contentMatch.validEnd)return e.delete(n.start(r),o.end(r));if(r>0&&(a||n.node(r-1).canReplace(n.index(r-1),o.indexAfter(r-1))))return e.delete(n.before(r),o.after(r))}for(let i=1;i<=n.depth&&i<=o.depth;i++)if(t-n.start(i)==n.depth-i&&r>n.end(i)&&o.end(i)-r!=o.depth-i)return e.delete(n.before(i),r);e.delete(t,r)}(this,e,t),this}lift(e,t){return function(e,t,r){let{$from:n,$to:o,depth:i}=t,a=n.before(i+1),s=o.after(i+1),l=a,c=s,O=se.empty,p=0;for(let e=i,t=!1;e>r;e--)t||n.index(e)>0?(t=!0,O=se.from(n.node(e).copy(O)),p++):l--;let u=se.empty,d=0;for(let e=i,t=!1;e>r;e--)t||o.after(e+1)<o.end(e)?(t=!0,u=se.from(o.node(e).copy(u)),d++):c++;e.step(new Ge(l,c,a,s,new de(O.append(u),p,d),O.size-p,!0))}(this,e,t),this}join(e,t=1){return function(e,t,r){let n=new Ue(t-r,t+r,de.empty,!0);e.step(n)}(this,e,t),this}wrap(e,t){return function(e,t,r){let n=se.empty;for(let e=r.length-1;e>=0;e--){if(n.size){let t=r[e].type.contentMatch.matchFragment(n);if(!t||!t.validEnd)throw new RangeError("Wrapper type given to Transform.wrap does not form valid content of its parent wrapper")}n=se.from(r[e].type.create(r[e].attrs,n))}let o=t.start,i=t.end;e.step(new Ge(o,i,o,i,new de(n,0,0),r.length,!0))}(this,e,t),this}setBlockType(e,t=e,r,n=null){return function(e,t,r,n,o){if(!n.isTextblock)throw new RangeError("Type given to setBlockType should be a textblock");let i=e.steps.length;e.doc.nodesBetween(t,r,((t,r)=>{if(t.isTextblock&&!t.hasMarkup(n,o)&&function(e,t,r){let n=e.resolve(t),o=n.index();return n.parent.canReplaceWith(o,o+1,r)}(e.doc,e.mapping.slice(i).map(r),n)){e.clearIncompatible(e.mapping.slice(i).map(r,1),n);let a=e.mapping.slice(i),s=a.map(r,1),l=a.map(r+t.nodeSize,1);return e.step(new Ge(s,l,s+1,l-1,new de(se.from(n.create(o,null,t.marks)),0,0),1,!0)),!1}}))}(this,e,t,r,n),this}setNodeMarkup(e,t,r=null,n){return function(e,t,r,n,o){let i=e.doc.nodeAt(t);if(!i)throw new RangeError("No node at given position");r||(r=i.type);let a=r.create(n,null,o||i.marks);if(i.isLeaf)return e.replaceWith(t,t+i.nodeSize,a);if(!r.validContent(i.content))throw new RangeError("Invalid content for node type "+r.name);e.step(new Ge(t,t+i.nodeSize,t+1,t+i.nodeSize-1,new de(se.from(a),0,0),1,!0))}(this,e,t,r,n),this}setNodeAttribute(e,t,r){return this.step(new pt(e,t,r)),this}setDocAttribute(e,t){return this.step(new ut(e,t)),this}addNodeMark(e,t){return this.step(new ze(e,t)),this}removeNodeMark(e,t){if(!(t instanceof pe)){let r=this.doc.nodeAt(e);if(!r)throw new RangeError("No node at position "+e);if(!(t=t.isInSet(r.marks)))return this}return this.step(new Me(e,t)),this}split(e,t=1,r){return function(e,t,r=1,n){let o=e.doc.resolve(t),i=se.empty,a=se.empty;for(let e=o.depth,t=o.depth-r,s=r-1;e>t;e--,s--){i=se.from(o.node(e).copy(i));let t=n&&n[s];a=se.from(t?t.type.create(t.attrs,a):o.node(e).copy(a))}e.step(new Ue(t,t,new de(i.append(a),r,r),!0))}(this,e,t,r),this}addMark(e,t,r){return function(e,t,r,n){let o,i,a=[],s=[];e.doc.nodesBetween(t,r,((e,l,c)=>{if(!e.isInline)return;let O=e.marks;if(!n.isInSet(O)&&c.type.allowsMarkType(n.type)){let c=Math.max(l,t),p=Math.min(l+e.nodeSize,r),u=n.addToSet(O);for(let e=0;e<O.length;e++)O[e].isInSet(u)||(o&&o.to==c&&o.mark.eq(O[e])?o.to=p:a.push(o=new Ne(c,p,O[e])));i&&i.to==c?i.to=p:s.push(i=new Ie(c,p,n))}})),a.forEach((t=>e.step(t))),s.forEach((t=>e.step(t)))}(this,e,t,r),this}removeMark(e,t,r){return function(e,t,r,n){let o=[],i=0;e.doc.nodesBetween(t,r,((e,a)=>{if(!e.isInline)return;i++;let s=null;if(n instanceof ye){let t,r=e.marks;for(;t=n.isInSet(r);)(s||(s=[])).push(t),r=t.removeFromSet(r)}else n?n.isInSet(e.marks)&&(s=[n]):s=e.marks;if(s&&s.length){let n=Math.min(a+e.nodeSize,r);for(let e=0;e<s.length;e++){let r,l=s[e];for(let e=0;e<o.length;e++){let t=o[e];t.step==i-1&&l.eq(o[e].style)&&(r=t)}r?(r.to=n,r.step=i):o.push({style:l,from:Math.max(a,t),to:n,step:i})}}})),o.forEach((t=>e.step(new Ne(t.from,t.to,t.style))))}(this,e,t,r),this}clearIncompatible(e,t,r){return function(e,t,r,n=r.contentMatch){let o=e.doc.nodeAt(t),i=[],a=t+1;for(let t=0;t<o.childCount;t++){let s=o.child(t),l=a+s.nodeSize,c=n.matchType(s.type);if(c){n=c;for(let t=0;t<s.marks.length;t++)r.allowsMarkType(s.marks[t].type)||e.step(new Ne(a,l,s.marks[t]));if(s.isText&&!r.spec.code){let e,t,n=/\r?\n|\r/g;for(;e=n.exec(s.text);)t||(t=new de(se.from(r.schema.text(" ",r.allowedMarks(s.marks))),0,0)),i.push(new Ue(a+e.index,a+e.index+e[0].length,t))}}else i.push(new Ue(a,l,de.empty));a=l}if(!n.validEnd){let t=n.fillBefore(se.empty,!0);e.replace(a,a,new de(t,0,0))}for(let t=i.length-1;t>=0;t--)e.step(i[t])}(this,e,t,r),this}}const ht=Object.create(null);class mt{constructor(e,t,r){this.$anchor=e,this.$head=t,this.ranges=r||[new gt(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=de.empty){let r=t.content.lastChild,n=null;for(let e=0;e<t.openEnd;e++)n=r,r=r.lastChild;let o=e.steps.length,i=this.ranges;for(let a=0;a<i.length;a++){let{$from:s,$to:l}=i[a],c=e.mapping.slice(o);e.replaceRange(c.map(s.pos),c.map(l.pos),a?de.empty:t),0==a&&kt(e,o,(r?r.isInline:n&&n.isTextblock)?-1:1)}}replaceWith(e,t){let r=e.steps.length,n=this.ranges;for(let o=0;o<n.length;o++){let{$from:i,$to:a}=n[o],s=e.mapping.slice(r),l=s.map(i.pos),c=s.map(a.pos);o?e.deleteRange(l,c):(e.replaceRangeWith(l,c,t),kt(e,r,t.isInline?-1:1))}}static findFrom(e,t,r=!1){let n=e.parent.inlineContent?new bt(e):vt(e.node(0),e.parent,e.pos,e.index(),t,r);if(n)return n;for(let n=e.depth-1;n>=0;n--){let o=t<0?vt(e.node(0),e.node(n),e.before(n+1),e.index(n),t,r):vt(e.node(0),e.node(n),e.after(n+1),e.index(n)+1,t,r);if(o)return o}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new xt(e.node(0))}static atStart(e){return vt(e,e,0,0,1)||new xt(e)}static atEnd(e){return vt(e,e,e.content.size,e.childCount,-1)||new xt(e)}static fromJSON(e,t){if(!t||!t.type)throw new RangeError("Invalid input for Selection.fromJSON");let r=ht[t.type];if(!r)throw new RangeError(`No selection type ${t.type} defined`);return r.fromJSON(e,t)}static jsonID(e,t){if(e in ht)throw new RangeError("Duplicate use of selection JSON ID "+e);return ht[e]=t,t.prototype.jsonID=e,t}getBookmark(){return bt.between(this.$anchor,this.$head).getBookmark()}}mt.prototype.visible=!0;class gt{constructor(e,t){this.$from=e,this.$to=t}}let yt=!1;function St(e){yt||e.parent.inlineContent||(yt=!0,console.warn("TextSelection endpoint not pointing into a node with inline content ("+e.parent.type.name+")"))}class bt extends mt{constructor(e,t=e){St(e),St(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(e,t){let r=e.resolve(t.map(this.head));if(!r.parent.inlineContent)return mt.near(r);let n=e.resolve(t.map(this.anchor));return new bt(n.parent.inlineContent?n:r,r)}replace(e,t=de.empty){if(super.replace(e,t),t==de.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(e){return e instanceof bt&&e.anchor==this.anchor&&e.head==this.head}getBookmark(){return new Qt(this.anchor,this.head)}toJSON(){return{type:"text",anchor:this.anchor,head:this.head}}static fromJSON(e,t){if("number"!=typeof t.anchor||"number"!=typeof t.head)throw new RangeError("Invalid input for TextSelection.fromJSON");return new bt(e.resolve(t.anchor),e.resolve(t.head))}static create(e,t,r=t){let n=e.resolve(t);return new this(n,r==t?n:e.resolve(r))}static between(e,t,r){let n=e.pos-t.pos;if(r&&!n||(r=n>=0?1:-1),!t.parent.inlineContent){let e=mt.findFrom(t,r,!0)||mt.findFrom(t,-r,!0);if(!e)return mt.near(t,r);t=e.$head}return e.parent.inlineContent||(0==n||(e=(mt.findFrom(e,-r,!0)||mt.findFrom(e,r,!0)).$anchor).pos<t.pos!=n<0)&&(e=t),new bt(e,t)}}mt.jsonID("text",bt);class Qt{constructor(e,t){this.anchor=e,this.head=t}map(e){return new Qt(e.map(this.anchor),e.map(this.head))}resolve(e){return bt.between(e.resolve(this.anchor),e.resolve(this.head))}}class wt extends mt{constructor(e){let t=e.nodeAfter,r=e.node(0).resolve(e.pos+t.nodeSize);super(e,r),this.node=t}map(e,t){let{deleted:r,pos:n}=t.mapResult(this.anchor),o=e.resolve(n);return r?mt.near(o):new wt(o)}content(){return new de(se.from(this.node),0,0)}eq(e){return e instanceof wt&&e.anchor==this.anchor}toJSON(){return{type:"node",anchor:this.anchor}}getBookmark(){return new $t(this.anchor)}static fromJSON(e,t){if("number"!=typeof t.anchor)throw new RangeError("Invalid input for NodeSelection.fromJSON");return new wt(e.resolve(t.anchor))}static create(e,t){return new wt(e.resolve(t))}static isSelectable(e){return!e.isText&&!1!==e.type.spec.selectable}}wt.prototype.visible=!1,mt.jsonID("node",wt);class $t{constructor(e){this.anchor=e}map(e){let{deleted:t,pos:r}=e.mapResult(this.anchor);return t?new Qt(r,r):new $t(r)}resolve(e){let t=e.resolve(this.anchor),r=t.nodeAfter;return r&&wt.isSelectable(r)?new wt(t):mt.near(t)}}class xt extends mt{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=de.empty){if(t==de.empty){e.delete(0,e.doc.content.size);let t=mt.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:"all"}}static fromJSON(e){return new xt(e)}map(e){return new xt(e)}eq(e){return e instanceof xt}getBookmark(){return Pt}}mt.jsonID("all",xt);const Pt={map(){return this},resolve:e=>new xt(e)};function vt(e,t,r,n,o,i=!1){if(t.inlineContent)return bt.create(e,r);for(let a=n-(o>0?0:1);o>0?a<t.childCount:a>=0;a+=o){let n=t.child(a);if(n.isAtom){if(!i&&wt.isSelectable(n))return wt.create(e,r-(o<0?n.nodeSize:0))}else{let t=vt(e,n,r+o,o<0?n.childCount:0,o,i);if(t)return t}r+=n.nodeSize*o}return null}function kt(e,t,r){let n=e.steps.length-1;if(n<t)return;let o,i=e.steps[n];(i instanceof Ue||i instanceof Ge)&&(e.mapping.maps[n].forEach(((e,t,r,n)=>{null==o&&(o=n)})),e.setSelection(mt.near(e.doc.resolve(o),r)))}function Zt(e,t){return t&&e?e.bind(t):e}class Tt{constructor(e,t,r){this.name=e,this.init=Zt(t.init,r),this.apply=Zt(t.apply,r)}}function Et(e,t,r){for(let n in e){let o=e[n];o instanceof Function?o=o.bind(t):"handleDOMEvents"==n&&(o=Et(o,t,{})),r[n]=o}return r}new Tt("doc",{init:e=>e.doc||e.schema.topNodeType.createAndFill(),apply:e=>e.doc}),new Tt("selection",{init:(e,t)=>e.selection||mt.atStart(t.doc),apply:e=>e.selection}),new Tt("storedMarks",{init:e=>e.storedMarks||null,apply:(e,t,r,n)=>n.selection.$cursor?e.storedMarks:null}),new Tt("scrollToSelection",{init:()=>0,apply:(e,t)=>e.scrolledIntoView?t+1:t});class Rt{constructor(e){this.spec=e,this.props={},e.props&&Et(e.props,this,this.props),this.key=e.key?e.key.key:Ct("plugin")}getState(e){return e[this.key]}}const Xt=Object.create(null);function Ct(e){return e in Xt?e+"$"+ ++Xt[e]:(Xt[e]=0,e+"$")}class jt{constructor(e="key"){this.key=Ct(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}}const Yt=function(e){for(var t=0;;t++)if(!(e=e.previousSibling))return t},_t=function(e,t,r,n){return r&&(Wt(e,t,r,n,-1)||Wt(e,t,r,n,1))},At=/^(img|br|input|textarea|hr)$/i;function Wt(e,t,r,n,o){for(;;){if(e==r&&t==n)return!0;if(t==(o<0?0:qt(e))){let r=e.parentNode;if(!r||1!=r.nodeType||Vt(e)||At.test(e.nodeName)||"false"==e.contentEditable)return!1;t=Yt(e)+(o<0?0:1),e=r}else{if(1!=e.nodeType)return!1;if("false"==(e=e.childNodes[t+(o<0?-1:0)]).contentEditable)return!1;t=o<0?qt(e):0}}}function qt(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Vt(e){let t;for(let r=e;r&&!(t=r.pmViewDesc);r=r.parentNode);return t&&t.node&&t.node.isBlock&&(t.dom==e||t.contentDOM==e)}const It=function(e){return e.focusNode&&_t(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)};function Nt(e,t){let r=document.createEvent("Event");return r.initEvent("keydown",!0,!0),r.keyCode=e,r.key=r.code=t,r}const zt="undefined"!=typeof navigator?navigator:null,Mt="undefined"!=typeof document?document:null,Ut=zt&&zt.userAgent||"",Gt=/Edge\/(\d+)/.exec(Ut),Dt=/MSIE \d/.exec(Ut),Bt=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ut),Lt=!!(Dt||Bt||Gt),Ft=Dt?document.documentMode:Bt?+Bt[1]:Gt?+Gt[1]:0,Jt=!Lt&&/gecko\/(\d+)/i.test(Ut);Jt&&(/Firefox\/(\d+)/.exec(Ut)||[0,0])[1];const Kt=!Lt&&/Chrome\/(\d+)/.exec(Ut),Ht=!!Kt,er=Kt?+Kt[1]:0,tr=!Lt&&!!zt&&/Apple Computer/.test(zt.vendor),rr=tr&&(/Mobile\/\w+/.test(Ut)||!!zt&&zt.maxTouchPoints>2),nr=rr||!!zt&&/Mac/.test(zt.platform),or=!!zt&&/Win/.test(zt.platform),ir=/Android \d/.test(Ut),ar=!!Mt&&"webkitFontSmoothing"in Mt.documentElement.style,sr=ar?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0;function lr(e,t=null){let r=e.domSelectionRange(),n=e.state.doc;if(!r.focusNode)return null;let o=e.docView.nearestDesc(r.focusNode),i=o&&0==o.size,a=e.docView.posFromDOM(r.focusNode,r.focusOffset,1);if(a<0)return null;let s,l,c=n.resolve(a);if(It(r)){for(s=c;o&&!o.node;)o=o.parent;let e=o.node;if(o&&e.isAtom&&wt.isSelectable(e)&&o.parent&&(!e.isInline||!function(e,t,r){for(let n=0==t,o=t==qt(e);n||o;){if(e==r)return!0;let t=Yt(e);if(!(e=e.parentNode))return!1;n=n&&0==t,o=o&&t==qt(e)}}(r.focusNode,r.focusOffset,o.dom))){let e=o.posBefore;l=new wt(a==e?c:n.resolve(e))}}else{let t=e.docView.posFromDOM(r.anchorNode,r.anchorOffset,1);if(t<0)return null;s=n.resolve(t)}if(!l){l=mr(e,s,c,"pointer"==t||e.state.selection.head<c.pos&&!i?1:-1)}return l}function cr(e){return e.editable?e.hasFocus():function(e){let t=e.domSelectionRange();if(!t.anchorNode)return!1;try{return e.dom.contains(3==t.anchorNode.nodeType?t.anchorNode.parentNode:t.anchorNode)&&(e.editable||e.dom.contains(3==t.focusNode.nodeType?t.focusNode.parentNode:t.focusNode))}catch(e){return!1}}(e)&&document.activeElement&&document.activeElement.contains(e.dom)}function Or(e,t=!1){let r=e.state.selection;if(function(e,t){if(t instanceof wt){let r=e.docView.descAt(t.from);r!=e.lastSelectedViewDesc&&(hr(e),r&&r.selectNode(),e.lastSelectedViewDesc=r)}else hr(e)}(e,r),cr(e)){if(!t&&e.input.mouseDown&&e.input.mouseDown.allowDefault&&Ht){let t=e.domSelectionRange(),r=e.domObserver.currentSelection;if(t.anchorNode&&r.anchorNode&&_t(t.anchorNode,t.anchorOffset,r.anchorNode,r.anchorOffset))return e.input.mouseDown.delayedSelectionSync=!0,void e.domObserver.setCurSelection()}if(e.domObserver.disconnectSelection(),e.cursorWrapper)!function(e){let t=e.domSelection(),r=document.createRange(),n=e.cursorWrapper.dom,o="IMG"==n.nodeName;o?r.setEnd(n.parentNode,Yt(n)+1):r.setEnd(n,0);r.collapse(!1),t.removeAllRanges(),t.addRange(r),!o&&!e.state.selection.visible&&Lt&&Ft<=11&&(n.disabled=!0,n.disabled=!1)}(e);else{let n,o,{anchor:i,head:a}=r;!pr||r instanceof bt||(r.$from.parent.inlineContent||(n=ur(e,r.from)),r.empty||r.$from.parent.inlineContent||(o=ur(e,r.to))),e.docView.setSelection(i,a,e.root,t),pr&&(n&&fr(n),o&&fr(o)),r.visible?e.dom.classList.remove("ProseMirror-hideselection"):(e.dom.classList.add("ProseMirror-hideselection"),"onselectionchange"in document&&function(e){let t=e.dom.ownerDocument;t.removeEventListener("selectionchange",e.input.hideSelectionGuard);let r=e.domSelectionRange(),n=r.anchorNode,o=r.anchorOffset;t.addEventListener("selectionchange",e.input.hideSelectionGuard=()=>{r.anchorNode==n&&r.anchorOffset==o||(t.removeEventListener("selectionchange",e.input.hideSelectionGuard),setTimeout((()=>{cr(e)&&!e.state.selection.visible||e.dom.classList.remove("ProseMirror-hideselection")}),20))})}(e))}e.domObserver.setCurSelection(),e.domObserver.connectSelection()}}const pr=tr||Ht&&er<63;function ur(e,t){let{node:r,offset:n}=e.docView.domFromPos(t,0),o=n<r.childNodes.length?r.childNodes[n]:null,i=n?r.childNodes[n-1]:null;if(tr&&o&&"false"==o.contentEditable)return dr(o);if(!(o&&"false"!=o.contentEditable||i&&"false"!=i.contentEditable)){if(o)return dr(o);if(i)return dr(i)}}function dr(e){return e.contentEditable="true",tr&&e.draggable&&(e.draggable=!1,e.wasDraggable=!0),e}function fr(e){e.contentEditable="false",e.wasDraggable&&(e.draggable=!0,e.wasDraggable=null)}function hr(e){e.lastSelectedViewDesc&&(e.lastSelectedViewDesc.parent&&e.lastSelectedViewDesc.deselectNode(),e.lastSelectedViewDesc=void 0)}function mr(e,t,r,n){return e.someProp("createSelectionBetween",(n=>n(e,t,r)))||bt.between(t,r,n)}function gr(e,t){let{$anchor:r,$head:n}=e.selection,o=t>0?r.max(n):r.min(n),i=o.parent.inlineContent?o.depth?e.doc.resolve(t>0?o.after():o.before()):null:o;return i&&mt.findFrom(i,t)}function yr(e,t){return e.dispatch(e.state.tr.setSelection(t).scrollIntoView()),!0}function Sr(e,t,r){let n=e.state.selection;if(!(n instanceof bt)){if(n instanceof wt&&n.node.isInline)return yr(e,new bt(t>0?n.$to:n.$from));{let r=gr(e.state,t);return!!r&&yr(e,r)}}if(r.indexOf("s")>-1){let{$head:r}=n,o=r.textOffset?null:t<0?r.nodeBefore:r.nodeAfter;if(!o||o.isText||!o.isLeaf)return!1;let i=e.state.doc.resolve(r.pos+o.nodeSize*(t<0?-1:1));return yr(e,new bt(n.$anchor,i))}if(!n.empty)return!1;if(e.endOfTextblock(t>0?"forward":"backward")){let r=gr(e.state,t);return!!(r&&r instanceof wt)&&yr(e,r)}if(!(nr&&r.indexOf("m")>-1)){let r,o=n.$head,i=o.textOffset?null:t<0?o.nodeBefore:o.nodeAfter;if(!i||i.isText)return!1;let a=t<0?o.pos-i.nodeSize:o.pos;return!!(i.isAtom||(r=e.docView.descAt(a))&&!r.contentDOM)&&(wt.isSelectable(i)?yr(e,new wt(t<0?e.state.doc.resolve(o.pos-i.nodeSize):o)):!!ar&&yr(e,new bt(e.state.doc.resolve(t<0?a:a+i.nodeSize))))}}function br(e){return 3==e.nodeType?e.nodeValue.length:e.childNodes.length}function Qr(e,t){let r=e.pmViewDesc;return r&&0==r.size&&(t<0||e.nextSibling||"BR"!=e.nodeName)}function wr(e,t){return t<0?function(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let o,i,a=!1;Jt&&1==r.nodeType&&n<br(r)&&Qr(r.childNodes[n],-1)&&(a=!0);for(;;)if(n>0){if(1!=r.nodeType)break;{let e=r.childNodes[n-1];if(Qr(e,-1))o=r,i=--n;else{if(3!=e.nodeType)break;r=e,n=r.nodeValue.length}}}else{if($r(r))break;{let t=r.previousSibling;for(;t&&Qr(t,-1);)o=r.parentNode,i=Yt(t),t=t.previousSibling;if(t)r=t,n=br(r);else{if(r=r.parentNode,r==e.dom)break;n=0}}}a?xr(e,r,n):o&&xr(e,o,i)}(e):function(e){let t=e.domSelectionRange(),r=t.focusNode,n=t.focusOffset;if(!r)return;let o,i,a=br(r);for(;;)if(n<a){if(1!=r.nodeType)break;if(!Qr(r.childNodes[n],1))break;o=r,i=++n}else{if($r(r))break;{let t=r.nextSibling;for(;t&&Qr(t,1);)o=t.parentNode,i=Yt(t)+1,t=t.nextSibling;if(t)r=t,n=0,a=br(r);else{if(r=r.parentNode,r==e.dom)break;n=a=0}}}o&&xr(e,o,i)}(e)}function $r(e){let t=e.pmViewDesc;return t&&t.node&&t.node.isBlock}function xr(e,t,r){if(3!=t.nodeType){let e,n;(n=function(e,t){for(;e&&t==e.childNodes.length&&!Vt(e);)t=Yt(e)+1,e=e.parentNode;for(;e&&t<e.childNodes.length;){let r=e.childNodes[t];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;e=r,t=0}}(t,r))?(t=n,r=0):(e=function(e,t){for(;e&&!t&&!Vt(e);)t=Yt(e),e=e.parentNode;for(;e&&t;){let r=e.childNodes[t-1];if(3==r.nodeType)return r;if(1==r.nodeType&&"false"==r.contentEditable)break;t=(e=r).childNodes.length}}(t,r))&&(t=e,r=e.nodeValue.length)}let n=e.domSelection();if(It(n)){let e=document.createRange();e.setEnd(t,r),e.setStart(t,r),n.removeAllRanges(),n.addRange(e)}else n.extend&&n.extend(t,r);e.domObserver.setCurSelection();let{state:o}=e;setTimeout((()=>{e.state==o&&Or(e)}),50)}function Pr(e,t){let r=e.state.doc.resolve(t);if(!Ht&&!or&&r.parent.inlineContent){let n=e.coordsAtPos(t);if(t>r.start()){let r=e.coordsAtPos(t-1),o=(r.top+r.bottom)/2;if(o>n.top&&o<n.bottom&&Math.abs(r.left-n.left)>1)return r.left<n.left?"ltr":"rtl"}if(t<r.end()){let r=e.coordsAtPos(t+1),o=(r.top+r.bottom)/2;if(o>n.top&&o<n.bottom&&Math.abs(r.left-n.left)>1)return r.left>n.left?"ltr":"rtl"}}return"rtl"==getComputedStyle(e.dom).direction?"rtl":"ltr"}function vr(e,t,r){let n=e.state.selection;if(n instanceof bt&&!n.empty||r.indexOf("s")>-1)return!1;if(nr&&r.indexOf("m")>-1)return!1;let{$from:o,$to:i}=n;if(!o.parent.inlineContent||e.endOfTextblock(t<0?"up":"down")){let r=gr(e.state,t);if(r&&r instanceof wt)return yr(e,r)}if(!o.parent.inlineContent){let r=t<0?o:i,a=n instanceof xt?mt.near(r,t):mt.findFrom(r,t);return!!a&&yr(e,a)}return!1}function kr(e,t){if(!(e.state.selection instanceof bt))return!0;let{$head:r,$anchor:n,empty:o}=e.state.selection;if(!r.sameParent(n))return!0;if(!o)return!1;if(e.endOfTextblock(t>0?"forward":"backward"))return!0;let i=!r.textOffset&&(t<0?r.nodeBefore:r.nodeAfter);if(i&&!i.isText){let n=e.state.tr;return t<0?n.delete(r.pos-i.nodeSize,r.pos):n.delete(r.pos,r.pos+i.nodeSize),e.dispatch(n),!0}return!1}function Zr(e,t,r){e.domObserver.stop(),t.contentEditable=r,e.domObserver.start()}function Tr(e,t){let r=t.keyCode,n=function(e){let t="";return e.ctrlKey&&(t+="c"),e.metaKey&&(t+="m"),e.altKey&&(t+="a"),e.shiftKey&&(t+="s"),t}(t);if(8==r||nr&&72==r&&"c"==n)return kr(e,-1)||wr(e,-1);if(46==r&&!t.shiftKey||nr&&68==r&&"c"==n)return kr(e,1)||wr(e,1);if(13==r||27==r)return!0;if(37==r||nr&&66==r&&"c"==n){let t=37==r?"ltr"==Pr(e,e.state.selection.from)?-1:1:-1;return Sr(e,t,n)||wr(e,t)}if(39==r||nr&&70==r&&"c"==n){let t=39==r?"ltr"==Pr(e,e.state.selection.from)?1:-1:1;return Sr(e,t,n)||wr(e,t)}return 38==r||nr&&80==r&&"c"==n?vr(e,-1,n)||wr(e,-1):40==r||nr&&78==r&&"c"==n?function(e){if(!tr||e.state.selection.$head.parentOffset>0)return!1;let{focusNode:t,focusOffset:r}=e.domSelectionRange();if(t&&1==t.nodeType&&0==r&&t.firstChild&&"false"==t.firstChild.contentEditable){let r=t.firstChild;Zr(e,r,"true"),setTimeout((()=>Zr(e,r,"false")),20)}return!1}(e)||vr(e,1,n)||wr(e,1):n==(nr?"m":"c")&&(66==r||73==r||89==r||90==r)}function Er(e,t){e.someProp("transformCopied",(r=>{t=r(t,e)}));let r=[],{content:n,openStart:o,openEnd:i}=t;for(;o>1&&i>1&&1==n.childCount&&1==n.firstChild.childCount;){o--,i--;let e=n.firstChild;r.push(e.type.name,e.attrs!=e.type.defaultAttrs?e.attrs:null),n=e.content}let a=e.someProp("clipboardSerializer")||Te.fromSchema(e.state.schema),s=Vr(),l=s.createElement("div");l.appendChild(a.serializeFragment(n,{document:s}));let c,O=l.firstChild,p=0;for(;O&&1==O.nodeType&&(c=Wr[O.nodeName.toLowerCase()]);){for(let e=c.length-1;e>=0;e--){let t=s.createElement(c[e]);for(;l.firstChild;)t.appendChild(l.firstChild);l.appendChild(t),p++}O=l.firstChild}return O&&1==O.nodeType&&O.setAttribute("data-pm-slice",`${o} ${i}${p?` -${p}`:""} ${JSON.stringify(r)}`),{dom:l,text:e.someProp("clipboardTextSerializer",(r=>r(t,e)))||t.content.textBetween(0,t.content.size,"\n\n")}}function Rr(e,t,r,n,o){let i,a,s=o.parent.type.spec.code;if(!r&&!t)return null;let l=t&&(n||s||!r);if(l){if(e.someProp("transformPastedText",(r=>{t=r(t,s||n,e)})),s)return t?new de(se.from(e.state.schema.text(t.replace(/\r\n?/g,"\n"))),0,0):de.empty;let r=e.someProp("clipboardTextParser",(r=>r(t,o,n,e)));if(r)a=r;else{let r=o.marks(),{schema:n}=e.state,a=Te.fromSchema(n);i=document.createElement("div"),t.split(/(?:\r\n?|\n)+/).forEach((e=>{let t=i.appendChild(document.createElement("p"));e&&t.appendChild(a.serializeNode(n.text(e,r)))}))}}else e.someProp("transformPastedHTML",(t=>{r=t(r,e)})),i=function(e){let t=/^(\s*<meta [^>]*>)*/.exec(e);t&&(e=e.slice(t[0].length));let r,n=Vr().createElement("div"),o=/<([a-z][^>\s]+)/i.exec(e);(r=o&&Wr[o[1].toLowerCase()])&&(e=r.map((e=>"<"+e+">")).join("")+e+r.map((e=>"</"+e+">")).reverse().join(""));if(n.innerHTML=e,r)for(let e=0;e<r.length;e++)n=n.querySelector(r[e])||n;return n}(r),ar&&function(e){let t=e.querySelectorAll(Ht?"span:not([class]):not([style])":"span.Apple-converted-space");for(let r=0;r<t.length;r++){let n=t[r];1==n.childNodes.length&&" "==n.textContent&&n.parentNode&&n.parentNode.replaceChild(e.ownerDocument.createTextNode(" "),n)}}(i);let c=i&&i.querySelector("[data-pm-slice]"),O=c&&/^(\d+) (\d+)(?: -(\d+))? (.*)/.exec(c.getAttribute("data-pm-slice")||"");if(O&&O[3])for(let e=+O[3];e>0;e--){let e=i.firstChild;for(;e&&1!=e.nodeType;)e=e.nextSibling;if(!e)break;i=e}if(!a){let t=e.someProp("clipboardParser")||e.someProp("domParser")||Se.fromSchema(e.state.schema);a=t.parseSlice(i,{preserveWhitespace:!(!l&&!O),context:o,ruleFromNode:e=>"BR"!=e.nodeName||e.nextSibling||!e.parentNode||Xr.test(e.parentNode.nodeName)?null:{ignore:!0}})}if(O)a=function(e,t){if(!e.size)return e;let r,n=e.content.firstChild.type.schema;try{r=JSON.parse(t)}catch(t){return e}let{content:o,openStart:i,openEnd:a}=e;for(let e=r.length-2;e>=0;e-=2){let t=n.nodes[r[e]];if(!t||t.hasRequiredAttrs())break;o=se.from(t.create(r[e+1],o)),i++,a++}return new de(o,i,a)}(Ar(a,+O[1],+O[2]),O[4]);else if(a=de.maxOpen(function(e,t){if(e.childCount<2)return e;for(let r=t.depth;r>=0;r--){let n,o=t.node(r).contentMatchAt(t.index(r)),i=[];if(e.forEach((e=>{if(!i)return;let t,r=o.findWrapping(e.type);if(!r)return i=null;if(t=i.length&&n.length&&jr(r,n,e,i[i.length-1],0))i[i.length-1]=t;else{i.length&&(i[i.length-1]=Yr(i[i.length-1],n.length));let t=Cr(e,r);i.push(t),o=o.matchType(t.type),n=r}})),i)return se.from(i)}return e}(a.content,o),!0),a.openStart||a.openEnd){let e=0,t=0;for(let t=a.content.firstChild;e<a.openStart&&!t.type.spec.isolating;e++,t=t.firstChild);for(let e=a.content.lastChild;t<a.openEnd&&!e.type.spec.isolating;t++,e=e.lastChild);a=Ar(a,e,t)}return e.someProp("transformPasted",(t=>{a=t(a,e)})),a}const Xr=/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var)$/i;function Cr(e,t,r=0){for(let n=t.length-1;n>=r;n--)e=t[n].create(null,se.from(e));return e}function jr(e,t,r,n,o){if(o<e.length&&o<t.length&&e[o]==t[o]){let i=jr(e,t,r,n.lastChild,o+1);if(i)return n.copy(n.content.replaceChild(n.childCount-1,i));if(n.contentMatchAt(n.childCount).matchType(o==e.length-1?r.type:e[o+1]))return n.copy(n.content.append(se.from(Cr(r,e,o+1))))}}function Yr(e,t){if(0==t)return e;let r=e.content.replaceChild(e.childCount-1,Yr(e.lastChild,t-1)),n=e.contentMatchAt(e.childCount).fillBefore(se.empty,!0);return e.copy(r.append(n))}function _r(e,t,r,n,o,i){let a=t<0?e.firstChild:e.lastChild,s=a.content;return e.childCount>1&&(i=0),o<n-1&&(s=_r(s,t,r,n,o+1,i)),o>=r&&(s=t<0?a.contentMatchAt(0).fillBefore(s,i<=o).append(s):s.append(a.contentMatchAt(a.childCount).fillBefore(se.empty,!0))),e.replaceChild(t<0?0:e.childCount-1,a.copy(s))}function Ar(e,t,r){return t<e.openStart&&(e=new de(_r(e.content,-1,t,e.openStart,0,e.openEnd),t,e.openEnd)),r<e.openEnd&&(e=new de(_r(e.content,1,r,e.openEnd,0,0),e.openStart,r)),e}const Wr={thead:["table"],tbody:["table"],tfoot:["table"],caption:["table"],colgroup:["table"],col:["table","colgroup"],tr:["table","tbody"],td:["table","tbody","tr"],th:["table","tbody","tr"]};let qr=null;function Vr(){return qr||(qr=document.implementation.createHTMLDocument("title"))}const Ir={},Nr={};function zr(e,t){e.input.lastSelectionOrigin=t,e.input.lastSelectionTime=Date.now()}function Mr(e){return{left:e.clientX,top:e.clientY}}function Ur(e,t,r,n,o){if(-1==n)return!1;let i=e.state.doc.resolve(n);for(let n=i.depth+1;n>0;n--)if(e.someProp(t,(t=>n>i.depth?t(e,r,i.nodeAfter,i.before(n),o,!0):t(e,r,i.node(n),i.before(n),o,!1))))return!0;return!1}function Gr(e,t,r){e.focused||e.focus();let n=e.state.tr.setSelection(t);"pointer"==r&&n.setMeta("pointer",!0),e.dispatch(n)}function Dr(e,t,r,n,o){return Ur(e,"handleClickOn",t,r,n)||e.someProp("handleClick",(r=>r(e,t,n)))||(o?function(e,t){if(-1==t)return!1;let r,n,o=e.state.selection;o instanceof wt&&(r=o.node);let i=e.state.doc.resolve(t);for(let e=i.depth+1;e>0;e--){let t=e>i.depth?i.nodeAfter:i.node(e);if(wt.isSelectable(t)){n=r&&o.$from.depth>0&&e>=o.$from.depth&&i.before(o.$from.depth+1)==o.$from.pos?i.before(o.$from.depth):i.before(e);break}}return null!=n&&(Gr(e,wt.create(e.state.doc,n),"pointer"),!0)}(e,r):function(e,t){if(-1==t)return!1;let r=e.state.doc.resolve(t),n=r.nodeAfter;return!!(n&&n.isAtom&&wt.isSelectable(n))&&(Gr(e,new wt(r),"pointer"),!0)}(e,r))}function Br(e,t,r,n){return Ur(e,"handleDoubleClickOn",t,r,n)||e.someProp("handleDoubleClick",(r=>r(e,t,n)))}function Lr(e,t,r,n){return Ur(e,"handleTripleClickOn",t,r,n)||e.someProp("handleTripleClick",(r=>r(e,t,n)))||function(e,t,r){if(0!=r.button)return!1;let n=e.state.doc;if(-1==t)return!!n.inlineContent&&(Gr(e,bt.create(n,0,n.content.size),"pointer"),!0);let o=n.resolve(t);for(let t=o.depth+1;t>0;t--){let r=t>o.depth?o.nodeAfter:o.node(t),i=o.before(t);if(r.inlineContent)Gr(e,bt.create(n,i+1,i+1+r.content.size),"pointer");else{if(!wt.isSelectable(r))continue;Gr(e,wt.create(n,i),"pointer")}return!0}}(e,r,n)}function Fr(e){return nn(e)}Nr.keydown=(e,t)=>{let r=t;if(e.input.shiftKey=16==r.keyCode||r.shiftKey,!Hr(e,r)&&(e.input.lastKeyCode=r.keyCode,e.input.lastKeyCodeTime=Date.now(),!ir||!Ht||13!=r.keyCode))if(229!=r.keyCode&&e.domObserver.forceFlush(),!rr||13!=r.keyCode||r.ctrlKey||r.altKey||r.metaKey)e.someProp("handleKeyDown",(t=>t(e,r)))||Tr(e,r)?r.preventDefault():zr(e,"key");else{let t=Date.now();e.input.lastIOSEnter=t,e.input.lastIOSEnterFallbackTimeout=setTimeout((()=>{e.input.lastIOSEnter==t&&(e.someProp("handleKeyDown",(t=>t(e,Nt(13,"Enter")))),e.input.lastIOSEnter=0)}),200)}},Nr.keyup=(e,t)=>{16==t.keyCode&&(e.input.shiftKey=!1)},Nr.keypress=(e,t)=>{let r=t;if(Hr(e,r)||!r.charCode||r.ctrlKey&&!r.altKey||nr&&r.metaKey)return;if(e.someProp("handleKeyPress",(t=>t(e,r))))return void r.preventDefault();let n=e.state.selection;if(!(n instanceof bt&&n.$from.sameParent(n.$to))){let t=String.fromCharCode(r.charCode);/[\r\n]/.test(t)||e.someProp("handleTextInput",(r=>r(e,n.$from.pos,n.$to.pos,t)))||e.dispatch(e.state.tr.insertText(t).scrollIntoView()),r.preventDefault()}};const Jr=nr?"metaKey":"ctrlKey";Ir.mousedown=(e,t)=>{let r=t;e.input.shiftKey=r.shiftKey;let n=Fr(e),o=Date.now(),i="singleClick";o-e.input.lastClick.time<500&&function(e,t){let r=t.x-e.clientX,n=t.y-e.clientY;return r*r+n*n<100}(r,e.input.lastClick)&&!r[Jr]&&("singleClick"==e.input.lastClick.type?i="doubleClick":"doubleClick"==e.input.lastClick.type&&(i="tripleClick")),e.input.lastClick={time:o,x:r.clientX,y:r.clientY,type:i};let a=e.posAtCoords(Mr(r));a&&("singleClick"==i?(e.input.mouseDown&&e.input.mouseDown.done(),e.input.mouseDown=new Kr(e,a,r,!!n)):("doubleClick"==i?Br:Lr)(e,a.pos,a.inside,r)?r.preventDefault():zr(e,"pointer"))};class Kr{constructor(e,t,r,n){let o,i;if(this.view=e,this.pos=t,this.event=r,this.flushed=n,this.delayedSelectionSync=!1,this.mightDrag=null,this.startDoc=e.state.doc,this.selectNode=!!r[Jr],this.allowDefault=r.shiftKey,t.inside>-1)o=e.state.doc.nodeAt(t.inside),i=t.inside;else{let r=e.state.doc.resolve(t.pos);o=r.parent,i=r.depth?r.before():0}const a=n?null:r.target,s=a?e.docView.nearestDesc(a,!0):null;this.target=s?s.dom:null;let{selection:l}=e.state;(0==r.button&&o.type.spec.draggable&&!1!==o.type.spec.selectable||l instanceof wt&&l.from<=i&&l.to>i)&&(this.mightDrag={node:o,pos:i,addAttr:!(!this.target||this.target.draggable),setUneditable:!(!this.target||!Jt||this.target.hasAttribute("contentEditable"))}),this.target&&this.mightDrag&&(this.mightDrag.addAttr||this.mightDrag.setUneditable)&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&(this.target.draggable=!0),this.mightDrag.setUneditable&&setTimeout((()=>{this.view.input.mouseDown==this&&this.target.setAttribute("contentEditable","false")}),20),this.view.domObserver.start()),e.root.addEventListener("mouseup",this.up=this.up.bind(this)),e.root.addEventListener("mousemove",this.move=this.move.bind(this)),zr(e,"pointer")}done(){this.view.root.removeEventListener("mouseup",this.up),this.view.root.removeEventListener("mousemove",this.move),this.mightDrag&&this.target&&(this.view.domObserver.stop(),this.mightDrag.addAttr&&this.target.removeAttribute("draggable"),this.mightDrag.setUneditable&&this.target.removeAttribute("contentEditable"),this.view.domObserver.start()),this.delayedSelectionSync&&setTimeout((()=>Or(this.view))),this.view.input.mouseDown=null}up(e){if(this.done(),!this.view.dom.contains(e.target))return;let t=this.pos;this.view.state.doc!=this.startDoc&&(t=this.view.posAtCoords(Mr(e))),this.updateAllowDefault(e),this.allowDefault||!t?zr(this.view,"pointer"):Dr(this.view,t.pos,t.inside,e,this.selectNode)?e.preventDefault():0==e.button&&(this.flushed||tr&&this.mightDrag&&!this.mightDrag.node.isAtom||Ht&&!this.view.state.selection.visible&&Math.min(Math.abs(t.pos-this.view.state.selection.from),Math.abs(t.pos-this.view.state.selection.to))<=2)?(Gr(this.view,mt.near(this.view.state.doc.resolve(t.pos)),"pointer"),e.preventDefault()):zr(this.view,"pointer")}move(e){this.updateAllowDefault(e),zr(this.view,"pointer"),0==e.buttons&&this.done()}updateAllowDefault(e){!this.allowDefault&&(Math.abs(this.event.x-e.clientX)>4||Math.abs(this.event.y-e.clientY)>4)&&(this.allowDefault=!0)}}function Hr(e,t){return!!e.composing||!!(tr&&Math.abs(t.timeStamp-e.input.compositionEndedAt)<500)&&(e.input.compositionEndedAt=-2e8,!0)}Ir.touchstart=e=>{e.input.lastTouch=Date.now(),Fr(e),zr(e,"pointer")},Ir.touchmove=e=>{e.input.lastTouch=Date.now(),zr(e,"pointer")},Ir.contextmenu=e=>Fr(e);const en=ir?5e3:-1;function tn(e,t){clearTimeout(e.input.composingTimeout),t>-1&&(e.input.composingTimeout=setTimeout((()=>nn(e)),t))}function rn(e){for(e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=function(){let e=document.createEvent("Event");return e.initEvent("event",!0,!0),e.timeStamp}());e.input.compositionNodes.length>0;)e.input.compositionNodes.pop().markParentsDirty()}function nn(e,t=!1){if(!(ir&&e.domObserver.flushingSoon>=0)){if(e.domObserver.forceFlush(),rn(e),t||e.docView&&e.docView.dirty){let t=lr(e);return t&&!t.eq(e.state.selection)?e.dispatch(e.state.tr.setSelection(t)):e.updateState(e.state),!0}return!1}}Nr.compositionstart=Nr.compositionupdate=e=>{if(!e.composing){e.domObserver.flush();let{state:t}=e,r=t.selection.$from;if(t.selection.empty&&(t.storedMarks||!r.textOffset&&r.parentOffset&&r.nodeBefore.marks.some((e=>!1===e.type.spec.inclusive))))e.markCursor=e.state.storedMarks||r.marks(),nn(e,!0),e.markCursor=null;else if(nn(e),Jt&&t.selection.empty&&r.parentOffset&&!r.textOffset&&r.nodeBefore.marks.length){let t=e.domSelectionRange();for(let r=t.focusNode,n=t.focusOffset;r&&1==r.nodeType&&0!=n;){let t=n<0?r.lastChild:r.childNodes[n-1];if(!t)break;if(3==t.nodeType){e.domSelection().collapse(t,t.nodeValue.length);break}r=t,n=-1}}e.input.composing=!0}tn(e,en)},Nr.compositionend=(e,t)=>{e.composing&&(e.input.composing=!1,e.input.compositionEndedAt=t.timeStamp,e.input.compositionPendingChanges=e.domObserver.pendingRecords().length?e.input.compositionID:0,e.input.compositionPendingChanges&&Promise.resolve().then((()=>e.domObserver.flush())),e.input.compositionID++,tn(e,20))};const on=Lt&&Ft<15||rr&&sr<604;function an(e,t,r,n,o){let i=Rr(e,t,r,n,e.state.selection.$from);if(e.someProp("handlePaste",(t=>t(e,o,i||de.empty))))return!0;if(!i)return!1;let a=function(e){return 0==e.openStart&&0==e.openEnd&&1==e.content.childCount?e.content.firstChild:null}(i),s=a?e.state.tr.replaceSelectionWith(a,n):e.state.tr.replaceSelection(i);return e.dispatch(s.scrollIntoView().setMeta("paste",!0).setMeta("uiEvent","paste")),!0}function sn(e){let t=e.getData("text/plain")||e.getData("Text");if(t)return t;let r=e.getData("text/uri-list");return r?r.replace(/\r?\n/g," "):""}Ir.copy=Nr.cut=(e,t)=>{let r=t,n=e.state.selection,o="cut"==r.type;if(n.empty)return;let i=on?null:r.clipboardData,a=n.content(),{dom:s,text:l}=Er(e,a);i?(r.preventDefault(),i.clearData(),i.setData("text/html",s.innerHTML),i.setData("text/plain",l)):function(e,t){if(!e.dom.parentNode)return;let r=e.dom.parentNode.appendChild(document.createElement("div"));r.appendChild(t),r.style.cssText="position: fixed; left: -10000px; top: 10px";let n=getSelection(),o=document.createRange();o.selectNodeContents(t),e.dom.blur(),n.removeAllRanges(),n.addRange(o),setTimeout((()=>{r.parentNode&&r.parentNode.removeChild(r),e.focus()}),50)}(e,s),o&&e.dispatch(e.state.tr.deleteSelection().scrollIntoView().setMeta("uiEvent","cut"))},Nr.paste=(e,t)=>{let r=t;if(e.composing&&!ir)return;let n=on?null:r.clipboardData,o=e.input.shiftKey&&45!=e.input.lastKeyCode;n&&an(e,sn(n),n.getData("text/html"),o,r)?r.preventDefault():function(e,t){if(!e.dom.parentNode)return;let r=e.input.shiftKey||e.state.selection.$from.parent.type.spec.code,n=e.dom.parentNode.appendChild(document.createElement(r?"textarea":"div"));r||(n.contentEditable="true"),n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus();let o=e.input.shiftKey&&45!=e.input.lastKeyCode;setTimeout((()=>{e.focus(),n.parentNode&&n.parentNode.removeChild(n),r?an(e,n.value,null,o,t):an(e,n.textContent,n.innerHTML,o,t)}),50)}(e,r)};class ln{constructor(e,t,r){this.slice=e,this.move=t,this.node=r}}const cn=nr?"altKey":"ctrlKey";Ir.dragstart=(e,t)=>{let r=t,n=e.input.mouseDown;if(n&&n.done(),!r.dataTransfer)return;let o,i=e.state.selection,a=i.empty?null:e.posAtCoords(Mr(r));if(a&&a.pos>=i.from&&a.pos<=(i instanceof wt?i.to-1:i.to));else if(n&&n.mightDrag)o=wt.create(e.state.doc,n.mightDrag.pos);else if(r.target&&1==r.target.nodeType){let t=e.docView.nearestDesc(r.target,!0);t&&t.node.type.spec.draggable&&t!=e.docView&&(o=wt.create(e.state.doc,t.posBefore))}let s=(o||e.state.selection).content(),{dom:l,text:c}=Er(e,s);r.dataTransfer.clearData(),r.dataTransfer.setData(on?"Text":"text/html",l.innerHTML),r.dataTransfer.effectAllowed="copyMove",on||r.dataTransfer.setData("text/plain",c),e.dragging=new ln(s,!r[cn],o)},Ir.dragend=e=>{let t=e.dragging;window.setTimeout((()=>{e.dragging==t&&(e.dragging=null)}),50)},Nr.dragover=Nr.dragenter=(e,t)=>t.preventDefault(),Nr.drop=(e,t)=>{let r=t,n=e.dragging;if(e.dragging=null,!r.dataTransfer)return;let o=e.posAtCoords(Mr(r));if(!o)return;let i=e.state.doc.resolve(o.pos),a=n&&n.slice;a?e.someProp("transformPasted",(t=>{a=t(a,e)})):a=Rr(e,sn(r.dataTransfer),on?null:r.dataTransfer.getData("text/html"),!1,i);let s=!(!n||r[cn]);if(e.someProp("handleDrop",(t=>t(e,r,a||de.empty,s))))return void r.preventDefault();if(!a)return;r.preventDefault();let l=a?et(e.state.doc,i.pos,a):i.pos;null==l&&(l=i.pos);let c=e.state.tr;if(s){let{node:e}=n;e?e.replace(c):c.deleteSelection()}let O=c.mapping.map(l),p=0==a.openStart&&0==a.openEnd&&1==a.content.childCount,u=c.doc;if(p?c.replaceRangeWith(O,O,a.content.firstChild):c.replaceRange(O,O,a),c.doc.eq(u))return;let d=c.doc.resolve(O);if(p&&wt.isSelectable(a.content.firstChild)&&d.nodeAfter&&d.nodeAfter.sameMarkup(a.content.firstChild))c.setSelection(new wt(d));else{let t=c.mapping.map(l);c.mapping.maps[c.mapping.maps.length-1].forEach(((e,r,n,o)=>t=o)),c.setSelection(mr(e,d,c.doc.resolve(t)))}e.focus(),e.dispatch(c.setMeta("uiEvent","drop"))},Ir.focus=e=>{e.input.lastFocus=Date.now(),e.focused||(e.domObserver.stop(),e.dom.classList.add("ProseMirror-focused"),e.domObserver.start(),e.focused=!0,setTimeout((()=>{e.docView&&e.hasFocus()&&!e.domObserver.currentSelection.eq(e.domSelectionRange())&&Or(e)}),20))},Ir.blur=(e,t)=>{let r=t;e.focused&&(e.domObserver.stop(),e.dom.classList.remove("ProseMirror-focused"),e.domObserver.start(),r.relatedTarget&&e.dom.contains(r.relatedTarget)&&e.domObserver.currentSelection.clear(),e.focused=!1)},Ir.beforeinput=(e,t)=>{if(Ht&&ir&&"deleteContentBackward"==t.inputType){e.domObserver.flushSoon();let{domChangeCount:t}=e.input;setTimeout((()=>{if(e.input.domChangeCount!=t)return;if(e.dom.blur(),e.focus(),e.someProp("handleKeyDown",(t=>t(e,Nt(8,"Backspace")))))return;let{$cursor:r}=e.state.selection;r&&r.pos>0&&e.dispatch(e.state.tr.delete(r.pos-1,r.pos).scrollIntoView())}),50)}};for(let e in Nr)Ir[e]=Nr[e];function On(e,t){if(e==t)return!0;for(let r in e)if(e[r]!==t[r])return!1;for(let r in t)if(!(r in e))return!1;return!0}class pn{constructor(e,t){this.toDOM=e,this.spec=t||mn,this.side=this.spec.side||0}map(e,t,r,n){let{pos:o,deleted:i}=e.mapResult(t.from+n,this.side<0?-1:1);return i?null:new fn(o-r,o-r,this)}valid(){return!0}eq(e){return this==e||e instanceof pn&&(this.spec.key&&this.spec.key==e.spec.key||this.toDOM==e.toDOM&&On(this.spec,e.spec))}destroy(e){this.spec.destroy&&this.spec.destroy(e)}}class un{constructor(e,t){this.attrs=e,this.spec=t||mn}map(e,t,r,n){let o=e.map(t.from+n,this.spec.inclusiveStart?-1:1)-r,i=e.map(t.to+n,this.spec.inclusiveEnd?1:-1)-r;return o>=i?null:new fn(o,i,this)}valid(e,t){return t.from<t.to}eq(e){return this==e||e instanceof un&&On(this.attrs,e.attrs)&&On(this.spec,e.spec)}static is(e){return e.type instanceof un}destroy(){}}class dn{constructor(e,t){this.attrs=e,this.spec=t||mn}map(e,t,r,n){let o=e.mapResult(t.from+n,1);if(o.deleted)return null;let i=e.mapResult(t.to+n,-1);return i.deleted||i.pos<=o.pos?null:new fn(o.pos-r,i.pos-r,this)}valid(e,t){let r,{index:n,offset:o}=e.content.findIndex(t.from);return o==t.from&&!(r=e.child(n)).isText&&o+r.nodeSize==t.to}eq(e){return this==e||e instanceof dn&&On(this.attrs,e.attrs)&&On(this.spec,e.spec)}destroy(){}}class fn{constructor(e,t,r){this.from=e,this.to=t,this.type=r}copy(e,t){return new fn(e,t,this.type)}eq(e,t=0){return this.type.eq(e.type)&&this.from+t==e.from&&this.to+t==e.to}map(e,t,r){return this.type.map(e,this,t,r)}static widget(e,t,r){return new fn(e,e,new pn(t,r))}static inline(e,t,r,n){return new fn(e,t,new un(r,n))}static node(e,t,r,n){return new fn(e,t,new dn(r,n))}get spec(){return this.type.spec}get inline(){return this.type instanceof un}get widget(){return this.type instanceof pn}}const hn=[],mn={};class gn{constructor(e,t){this.local=e.length?e:hn,this.children=t.length?t:hn}static create(e,t){return t.length?$n(t,e,0,mn):yn}find(e,t,r){let n=[];return this.findInner(null==e?0:e,null==t?1e9:t,n,0,r),n}findInner(e,t,r,n,o){for(let i=0;i<this.local.length;i++){let a=this.local[i];a.from<=t&&a.to>=e&&(!o||o(a.spec))&&r.push(a.copy(a.from+n,a.to+n))}for(let i=0;i<this.children.length;i+=3)if(this.children[i]<t&&this.children[i+1]>e){let a=this.children[i]+1;this.children[i+2].findInner(e-a,t-a,r,n+a,o)}}map(e,t,r){return this==yn||0==e.maps.length?this:this.mapInner(e,t,0,0,r||mn)}mapInner(e,t,r,n,o){let i;for(let a=0;a<this.local.length;a++){let s=this.local[a].map(e,r,n);s&&s.type.valid(t,s)?(i||(i=[])).push(s):o.onRemove&&o.onRemove(this.local[a].spec)}return this.children.length?function(e,t,r,n,o,i,a){let s=e.slice();for(let e=0,t=i;e<r.maps.length;e++){let n=0;r.maps[e].forEach(((e,r,o,i)=>{let a=i-o-(r-e);for(let o=0;o<s.length;o+=3){let i=s[o+1];if(i<0||e>i+t-n)continue;let l=s[o]+t-n;r>=l?s[o+1]=e<=l?-2:-1:e>=t&&a&&(s[o]+=a,s[o+1]+=a)}n+=a})),t=r.maps[e].map(t,-1)}let l=!1;for(let t=0;t<s.length;t+=3)if(s[t+1]<0){if(-2==s[t+1]){l=!0,s[t+1]=-1;continue}let c=r.map(e[t]+i),O=c-o;if(O<0||O>=n.content.size){l=!0;continue}let p=r.map(e[t+1]+i,-1)-o,{index:u,offset:d}=n.content.findIndex(O),f=n.maybeChild(u);if(f&&d==O&&d+f.nodeSize==p){let n=s[t+2].mapInner(r,f,c+1,e[t]+i+1,a);n!=yn?(s[t]=O,s[t+1]=p,s[t+2]=n):(s[t+1]=-2,l=!0)}else l=!0}if(l){let l=function(e,t,r,n,o,i,a){function s(e,t){for(let i=0;i<e.local.length;i++){let s=e.local[i].map(n,o,t);s?r.push(s):a.onRemove&&a.onRemove(e.local[i].spec)}for(let r=0;r<e.children.length;r+=3)s(e.children[r+2],e.children[r]+t+1)}for(let r=0;r<e.length;r+=3)-1==e[r+1]&&s(e[r+2],t[r]+i+1);return r}(s,e,t,r,o,i,a),c=$n(l,n,0,a);t=c.local;for(let e=0;e<s.length;e+=3)s[e+1]<0&&(s.splice(e,3),e-=3);for(let e=0,t=0;e<c.children.length;e+=3){let r=c.children[e];for(;t<s.length&&s[t]<r;)t+=3;s.splice(t,0,c.children[e],c.children[e+1],c.children[e+2])}}return new gn(t.sort(xn),s)}(this.children,i||[],e,t,r,n,o):i?new gn(i.sort(xn),hn):yn}add(e,t){return t.length?this==yn?gn.create(e,t):this.addInner(e,t,0):this}addInner(e,t,r){let n,o=0;e.forEach(((e,i)=>{let a,s=i+r;if(a=Qn(t,e,s)){for(n||(n=this.children.slice());o<n.length&&n[o]<i;)o+=3;n[o]==i?n[o+2]=n[o+2].addInner(e,a,s+1):n.splice(o,0,i,i+e.nodeSize,$n(a,e,s+1,mn)),o+=3}}));let i=bn(o?wn(t):t,-r);for(let t=0;t<i.length;t++)i[t].type.valid(e,i[t])||i.splice(t--,1);return new gn(i.length?this.local.concat(i).sort(xn):this.local,n||this.children)}remove(e){return 0==e.length||this==yn?this:this.removeInner(e,0)}removeInner(e,t){let r=this.children,n=this.local;for(let n=0;n<r.length;n+=3){let o,i=r[n]+t,a=r[n+1]+t;for(let t,r=0;r<e.length;r++)(t=e[r])&&t.from>i&&t.to<a&&(e[r]=null,(o||(o=[])).push(t));if(!o)continue;r==this.children&&(r=this.children.slice());let s=r[n+2].removeInner(o,i+1);s!=yn?r[n+2]=s:(r.splice(n,3),n-=3)}if(n.length)for(let r,o=0;o<e.length;o++)if(r=e[o])for(let e=0;e<n.length;e++)n[e].eq(r,t)&&(n==this.local&&(n=this.local.slice()),n.splice(e--,1));return r==this.children&&n==this.local?this:n.length||r.length?new gn(n,r):yn}forChild(e,t){if(this==yn)return this;if(t.isLeaf)return gn.empty;let r,n;for(let t=0;t<this.children.length;t+=3)if(this.children[t]>=e){this.children[t]==e&&(r=this.children[t+2]);break}let o=e+1,i=o+t.content.size;for(let e=0;e<this.local.length;e++){let t=this.local[e];if(t.from<i&&t.to>o&&t.type instanceof un){let e=Math.max(o,t.from)-o,r=Math.min(i,t.to)-o;e<r&&(n||(n=[])).push(t.copy(e,r))}}if(n){let e=new gn(n.sort(xn),hn);return r?new Sn([e,r]):e}return r||yn}eq(e){if(this==e)return!0;if(!(e instanceof gn)||this.local.length!=e.local.length||this.children.length!=e.children.length)return!1;for(let t=0;t<this.local.length;t++)if(!this.local[t].eq(e.local[t]))return!1;for(let t=0;t<this.children.length;t+=3)if(this.children[t]!=e.children[t]||this.children[t+1]!=e.children[t+1]||!this.children[t+2].eq(e.children[t+2]))return!1;return!0}locals(e){return Pn(this.localsInner(e))}localsInner(e){if(this==yn)return hn;if(e.inlineContent||!this.local.some(un.is))return this.local;let t=[];for(let e=0;e<this.local.length;e++)this.local[e].type instanceof un||t.push(this.local[e]);return t}}gn.empty=new gn([],[]),gn.removeOverlap=Pn;const yn=gn.empty;class Sn{constructor(e){this.members=e}map(e,t){const r=this.members.map((r=>r.map(e,t,mn)));return Sn.from(r)}forChild(e,t){if(t.isLeaf)return gn.empty;let r=[];for(let n=0;n<this.members.length;n++){let o=this.members[n].forChild(e,t);o!=yn&&(o instanceof Sn?r=r.concat(o.members):r.push(o))}return Sn.from(r)}eq(e){if(!(e instanceof Sn)||e.members.length!=this.members.length)return!1;for(let t=0;t<this.members.length;t++)if(!this.members[t].eq(e.members[t]))return!1;return!0}locals(e){let t,r=!0;for(let n=0;n<this.members.length;n++){let o=this.members[n].localsInner(e);if(o.length)if(t){r&&(t=t.slice(),r=!1);for(let e=0;e<o.length;e++)t.push(o[e])}else t=o}return t?Pn(r?t:t.sort(xn)):hn}static from(e){switch(e.length){case 0:return yn;case 1:return e[0];default:return new Sn(e.every((e=>e instanceof gn))?e:e.reduce(((e,t)=>e.concat(t instanceof gn?t:t.members)),[]))}}}function bn(e,t){if(!t||!e.length)return e;let r=[];for(let n=0;n<e.length;n++){let o=e[n];r.push(new fn(o.from+t,o.to+t,o.type))}return r}function Qn(e,t,r){if(t.isLeaf)return null;let n=r+t.nodeSize,o=null;for(let t,i=0;i<e.length;i++)(t=e[i])&&t.from>r&&t.to<n&&((o||(o=[])).push(t),e[i]=null);return o}function wn(e){let t=[];for(let r=0;r<e.length;r++)null!=e[r]&&t.push(e[r]);return t}function $n(e,t,r,n){let o=[],i=!1;t.forEach(((t,a)=>{let s=Qn(e,t,a+r);if(s){i=!0;let e=$n(s,t,r+a+1,n);e!=yn&&o.push(a,a+t.nodeSize,e)}}));let a=bn(i?wn(e):e,-r).sort(xn);for(let e=0;e<a.length;e++)a[e].type.valid(t,a[e])||(n.onRemove&&n.onRemove(a[e].spec),a.splice(e--,1));return a.length||o.length?new gn(a,o):yn}function xn(e,t){return e.from-t.from||e.to-t.to}function Pn(e){let t=e;for(let r=0;r<t.length-1;r++){let n=t[r];if(n.from!=n.to)for(let o=r+1;o<t.length;o++){let i=t[o];if(i.from!=n.from){i.from<n.to&&(t==e&&(t=e.slice()),t[r]=n.copy(n.from,i.from),vn(t,o,n.copy(i.from,n.to)));break}i.to!=n.to&&(t==e&&(t=e.slice()),t[o]=i.copy(i.from,n.to),vn(t,o+1,i.copy(n.to,i.to)))}}return t}function vn(e,t,r){for(;t<e.length&&xn(r,e[t])>0;)t++;e.splice(t,0,r)}var kn=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.toggle-blockquote.description",message:"Add blockquote formatting to the selected text",comment:"Description for blockquote formatting command."},LABEL:{id:"extension.command.toggle-blockquote.label",message:"Blockquote",comment:"Label for blockquote formatting command."}});var Zn=Object.freeze({__proto__:null,DESCRIPTION:{id:"extension.command.insert-horizontal-rule.description",message:"Separate content with a diving horizontal line",comment:"Description for inserting a horizontal rule (divider) command."},LABEL:{id:"extension.command.insert-horizontal-rule.label",message:"Divider",comment:"Label for inserting a horizontal rule (divider) command."}});var Tn=Object.freeze({__proto__:null,CONVERT_DESCRIPTION:{id:"extension.command.convert-paragraph.description",message:"Convert current block into a paragraph block.",comment:"Description for converting a paragraph."},CONVERT_LABEL:{id:"extension.command.convert-paragraph.label",message:"Convert Paragraph",comment:"Label for converting the current node into a paragraph."},INSERT_DESCRIPTION:{id:"extension.command.insert-paragraph.description",message:"Insert a new paragraph",comment:"Description for inserting a paragraph."},INSERT_LABEL:{id:"extension.command.insert-paragraph.label",message:"Insert Paragraph",comment:"Label for inserting a paragraph."}});class En{constructor(e,t,r={}){var n;this.match=e,this.match=e,this.handler="string"==typeof t?(n=t,function(e,t,r,o){let i=n;if(t[1]){let e=t[0].lastIndexOf(t[1]);i+=t[0].slice(e+t[1].length);let n=(r+=e)-o;n>0&&(i=t[0].slice(e-n,e)+i,r=o)}return e.tr.insertText(i,r,o)}):t,this.undoable=!1!==r.undoable,this.inCode=r.inCode||!1}}function Rn(e,t,r=null,n){return new En(e,((e,o,i,a)=>{let s=r instanceof Function?r(o):r,l=e.tr.delete(i,a),c=l.doc.resolve(i).blockRange(),O=c&&function(e,t,r=null,n=e){let o=function(e,t){let{parent:r,startIndex:n,endIndex:o}=e,i=r.contentMatchAt(n).findWrapping(t);if(!i)return null;let a=i.length?i[0]:t;return r.canReplaceWith(n,o,a)?i:null}(e,t),i=o&&function(e,t){let{parent:r,startIndex:n,endIndex:o}=e,i=r.child(n),a=t.contentMatch.findWrapping(i.type);if(!a)return null;let s=(a.length?a[a.length-1]:t).contentMatch;for(let e=n;s&&e<o;e++)s=s.matchType(r.child(e).type);return s&&s.validEnd?a:null}(n,t);return i?o.map(Fe).concat({type:t,attrs:r}).concat(i.map(Fe)):null}(c,t,s);if(!O)return null;l.wrap(c,O);let p=l.doc.resolve(i-1).nodeBefore;return p&&p.type==t&&Ke(l.doc,i-1)&&(!n||n(o,p))&&l.join(i-1),l}))}new En(/--$/,"—"),new En(/\.\.\.$/,"…"),new En(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(")$/,"“"),new En(/"$/,"”"),new En(/(?:^|[\s\{\[\(\<'"\u2018\u201C])(')$/,"‘"),new En(/'$/,"’");var Xn=Object.defineProperty,Cn=Object.getOwnPropertyDescriptor,jn=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Cn(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Xn(t,r,i),i},Yn=class extends c.NodeExtension{get name(){return"blockquote"}createTags(){return[c.ExtensionTag.Block,c.ExtensionTag.FormattingNode]}createNodeSpec(e,t){return{content:"block+",defining:!0,draggable:!1,...t,attrs:e.defaults(),parseDOM:[{tag:"blockquote",getAttrs:e.parse,priority:100},...t.parseDOM??[]],toDOM:t=>["blockquote",e.dom(t),0]}}toggleBlockquote(){return c.toggleWrap(this.type)}shortcut(e){return this.toggleBlockquote()(e)}createInputRules(){return[Rn(/^\s*>\s$/,this.type)]}createPasteRules(){return{type:"node",nodeType:this.type,regexp:/^\s*>\s$/,startOfTextBlock:!0}}};jn([c.command({icon:"doubleQuotesL",description:({t:e})=>e(kn.DESCRIPTION),label:({t:e})=>e(kn.LABEL)})],Yn.prototype,"toggleBlockquote",1),jn([c.keyBinding({shortcut:"Ctrl->",command:"toggleBlockquote"})],Yn.prototype,"shortcut",1);for(var _n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},An={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Wn=("undefined"!=typeof navigator&&/Mac/.test(navigator.platform),"undefined"!=typeof navigator&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),0);Wn<10;Wn++)_n[48+Wn]=_n[96+Wn]=String(Wn);for(Wn=1;Wn<=24;Wn++)_n[Wn+111]="F"+Wn;for(Wn=65;Wn<=90;Wn++)_n[Wn]=String.fromCharCode(Wn+32),An[Wn]=String.fromCharCode(Wn);for(var qn in _n)An.hasOwnProperty(qn)||(An[qn]=_n[qn]);const Vn="undefined"!=typeof navigator&&/Mac|iP(hone|[oa]d)/.test(navigator.platform);function In(e){let t,r,n,o,i=e.split(/-(?!$)/),a=i[i.length-1];"Space"==a&&(a=" ");for(let e=0;e<i.length-1;e++){let a=i[e];if(/^(cmd|meta|m)$/i.test(a))o=!0;else if(/^a(lt)?$/i.test(a))t=!0;else if(/^(c|ctrl|control)$/i.test(a))r=!0;else if(/^s(hift)?$/i.test(a))n=!0;else{if(!/^mod$/i.test(a))throw new Error("Unrecognized modifier name: "+a);Vn?o=!0:r=!0}}return t&&(a="Alt-"+a),r&&(a="Ctrl-"+a),o&&(a="Meta-"+a),n&&(a="Shift-"+a),a}const Nn=(e,t)=>!e.selection.empty&&(t&&t(e.tr.deleteSelection().scrollIntoView()),!0);function zn(e,t,r=!1){for(let n=e;n;n="start"==t?n.firstChild:n.lastChild){if(n.isTextblock)return!0;if(r&&1!=n.childCount)return!1}return!1}function Mn(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){if(e.index(t)>0)return e.doc.resolve(e.before(t+1));if(e.node(t).type.spec.isolating)break}return null}function Un(e){if(!e.parent.type.spec.isolating)for(let t=e.depth-1;t>=0;t--){let r=e.node(t);if(e.index(t)+1<r.childCount)return e.doc.resolve(e.after(t+1));if(r.type.spec.isolating)break}return null}function Gn(e){for(let t=0;t<e.edgeCount;t++){let{type:r}=e.edge(t);if(r.isTextblock&&!r.hasRequiredAttrs())return r}return null}const Dn=(e,t)=>{let{$head:r,$anchor:n}=e.selection;if(!r.parent.type.spec.code||!r.sameParent(n))return!1;let o=r.node(-1),i=r.indexAfter(-1),a=Gn(o.contentMatchAt(i));if(!a||!o.canReplaceWith(i,i,a))return!1;if(t){let n=r.after(),o=e.tr.replaceWith(n,n,a.createAndFill());o.setSelection(mt.near(o.doc.resolve(n),1)),t(o.scrollIntoView())}return!0};const Bn=(e,t)=>{let{$from:r,$to:n}=e.selection;if(e.selection instanceof wt&&e.selection.node.isBlock)return!(!r.parentOffset||!Je(e.doc,r.pos)||(t&&t(e.tr.split(r.pos).scrollIntoView()),0));if(!r.parent.isBlock)return!1;if(t){let o=n.parentOffset==n.parent.content.size,i=e.tr;(e.selection instanceof bt||e.selection instanceof xt)&&i.deleteSelection();let a=0==r.depth?null:Gn(r.node(-1).contentMatchAt(r.indexAfter(-1))),s=Ln&&Ln(n.parent,o),l=s?[s]:o&&a?[{type:a}]:void 0,c=Je(i.doc,i.mapping.map(r.pos),1,l);if(l||c||!Je(i.doc,i.mapping.map(r.pos),1,a?[{type:a}]:void 0)||(a&&(l=[{type:a}]),c=!0),c&&(i.split(i.mapping.map(r.pos),1,l),!o&&!r.parentOffset&&r.parent.type!=a)){let e=i.mapping.map(r.before()),t=i.doc.resolve(e);a&&r.node(-1).canReplaceWith(t.index(),t.index()+1,a)&&i.setNodeMarkup(i.mapping.map(r.before()),a)}t(i.scrollIntoView())}return!0};var Ln;function Fn(e,t,r){let n,o,i=t.nodeBefore,a=t.nodeAfter;if(i.type.spec.isolating||a.type.spec.isolating)return!1;if(function(e,t,r){let n=t.nodeBefore,o=t.nodeAfter,i=t.index();return!(!(n&&o&&n.type.compatibleContent(o.type))||(!n.content.size&&t.parent.canReplace(i-1,i)?(r&&r(e.tr.delete(t.pos-n.nodeSize,t.pos).scrollIntoView()),0):!t.parent.canReplace(i,i+1)||!o.isTextblock&&!Ke(e.doc,t.pos)||(r&&r(e.tr.clearIncompatible(t.pos,n.type,n.contentMatchAt(n.childCount)).join(t.pos).scrollIntoView()),0)))}(e,t,r))return!0;let s=t.parent.canReplace(t.index(),t.index()+1);if(s&&(n=(o=i.contentMatchAt(i.childCount)).findWrapping(a.type))&&o.matchType(n[0]||a.type).validEnd){if(r){let o=t.pos+a.nodeSize,s=se.empty;for(let e=n.length-1;e>=0;e--)s=se.from(n[e].create(null,s));s=se.from(i.copy(s));let l=e.tr.step(new Ge(t.pos-1,o,t.pos,o,new de(s,1,0),n.length,!0)),c=o+2*n.length;Ke(l.doc,c)&&l.join(c),r(l.scrollIntoView())}return!0}let l=mt.findFrom(t,1),c=l&&l.$from.blockRange(l.$to),O=c&&Le(c);if(null!=O&&O>=t.depth)return r&&r(e.tr.lift(c,O).scrollIntoView()),!0;if(s&&zn(a,"start",!0)&&zn(i,"end")){let n=i,o=[];for(;o.push(n),!n.isTextblock;)n=n.lastChild;let s=a,l=1;for(;!s.isTextblock;s=s.firstChild)l++;if(n.canReplace(n.childCount,n.childCount,s.content)){if(r){let n=se.empty;for(let e=o.length-1;e>=0;e--)n=se.from(o[e].copy(n));r(e.tr.step(new Ge(t.pos-o.length,t.pos+a.nodeSize,t.pos+l,t.pos+a.nodeSize-l,new de(n,o.length,0),0,!0)).scrollIntoView())}return!0}}return!1}function Jn(e){return function(t,r){let n=t.selection,o=e<0?n.$from:n.$to,i=o.depth;for(;o.node(i).isInline;){if(!i)return!1;i--}return!!o.node(i).isTextblock&&(r&&r(t.tr.setSelection(bt.create(t.doc,e<0?o.start(i):o.end(i)))),!0)}}const Kn=Jn(-1),Hn=Jn(1);function eo(...e){return function(t,r,n){for(let o=0;o<e.length;o++)if(e[o](t,r,n))return!0;return!1}}let to=eo(Nn,((e,t,r)=>{let n=function(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("backward",e):r.parentOffset>0)?null:r}(e,r);if(!n)return!1;let o=Mn(n);if(!o){let r=n.blockRange(),o=r&&Le(r);return null!=o&&(t&&t(e.tr.lift(r,o).scrollIntoView()),!0)}let i=o.nodeBefore;if(!i.type.spec.isolating&&Fn(e,o,t))return!0;if(0==n.parent.content.size&&(zn(i,"end")||wt.isSelectable(i))){let r=tt(e.doc,n.before(),n.after(),de.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(zn(i,"end")?mt.findFrom(n.doc.resolve(n.mapping.map(o.pos,-1)),-1):wt.create(n.doc,o.pos-i.nodeSize)),t(n.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=n.depth-1)&&(t&&t(e.tr.delete(o.pos-i.nodeSize,o.pos).scrollIntoView()),!0)}),((e,t,r)=>{let{$head:n,empty:o}=e.selection,i=n;if(!o)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("backward",e):n.parentOffset>0)return!1;i=Mn(n)}let a=i&&i.nodeBefore;return!(!a||!wt.isSelectable(a))&&(t&&t(e.tr.setSelection(wt.create(e.doc,i.pos-a.nodeSize)).scrollIntoView()),!0)})),ro=eo(Nn,((e,t,r)=>{let n=function(e,t){let{$cursor:r}=e.selection;return!r||(t?!t.endOfTextblock("forward",e):r.parentOffset<r.parent.content.size)?null:r}(e,r);if(!n)return!1;let o=Un(n);if(!o)return!1;let i=o.nodeAfter;if(Fn(e,o,t))return!0;if(0==n.parent.content.size&&(zn(i,"start")||wt.isSelectable(i))){let r=tt(e.doc,n.before(),n.after(),de.empty);if(r&&r.slice.size<r.to-r.from){if(t){let n=e.tr.step(r);n.setSelection(zn(i,"start")?mt.findFrom(n.doc.resolve(n.mapping.map(o.pos)),1):wt.create(n.doc,n.mapping.map(o.pos))),t(n.scrollIntoView())}return!0}}return!(!i.isAtom||o.depth!=n.depth-1)&&(t&&t(e.tr.delete(o.pos,o.pos+i.nodeSize).scrollIntoView()),!0)}),((e,t,r)=>{let{$head:n,empty:o}=e.selection,i=n;if(!o)return!1;if(n.parent.isTextblock){if(r?!r.endOfTextblock("forward",e):n.parentOffset<n.parent.content.size)return!1;i=Un(n)}let a=i&&i.nodeAfter;return!(!a||!wt.isSelectable(a))&&(t&&t(e.tr.setSelection(wt.create(e.doc,i.pos)).scrollIntoView()),!0)}));const no={Enter:eo(((e,t)=>{let{$head:r,$anchor:n}=e.selection;return!(!r.parent.type.spec.code||!r.sameParent(n))&&(t&&t(e.tr.insertText("\n").scrollIntoView()),!0)}),((e,t)=>{let r=e.selection,{$from:n,$to:o}=r;if(r instanceof xt||n.parent.inlineContent||o.parent.inlineContent)return!1;let i=Gn(o.parent.contentMatchAt(o.indexAfter()));if(!i||!i.isTextblock)return!1;if(t){let r=(!n.parentOffset&&o.index()<o.parent.childCount?n:o).pos,a=e.tr.insert(r,i.createAndFill());a.setSelection(bt.create(a.doc,r+1)),t(a.scrollIntoView())}return!0}),((e,t)=>{let{$cursor:r}=e.selection;if(!r||r.parent.content.size)return!1;if(r.depth>1&&r.after()!=r.end(-1)){let n=r.before();if(Je(e.doc,n))return t&&t(e.tr.split(n).scrollIntoView()),!0}let n=r.blockRange(),o=n&&Le(n);return null!=o&&(t&&t(e.tr.lift(n,o).scrollIntoView()),!0)}),Bn),"Mod-Enter":Dn,Backspace:to,"Mod-Backspace":to,"Shift-Backspace":to,Delete:ro,"Mod-Delete":ro,"Mod-a":(e,t)=>(t&&t(e.tr.setSelection(new xt(e.doc))),!0)},oo={"Ctrl-h":no.Backspace,"Alt-Backspace":no["Mod-Backspace"],"Ctrl-d":no.Delete,"Ctrl-Alt-Backspace":no["Mod-Delete"],"Alt-Delete":no["Mod-Delete"],"Alt-d":no["Mod-Delete"],"Ctrl-a":Kn,"Ctrl-e":Hn};for(let e in no)oo[e]=no[e];const io=("undefined"!=typeof navigator?/Mac|iP(hone|[oa]d)/.test(navigator.platform):!("undefined"==typeof os||!os.platform)&&"darwin"==os.platform())?oo:no;var ao=Object.defineProperty,so=Object.getOwnPropertyDescriptor,lo=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?so(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&ao(t,r,i),i},co=class extends c.NodeExtension{get name(){return"doc"}createNodeSpec(e,t){const{docAttributes:r,content:n}=this.options,o=c.object();if(c.isPlainObject(r))for(const[e,t]of c.entries(r))o[e]={default:t};else for(const e of r)o[e]={default:null};return{attrs:o,content:n,...t}}setDocAttributes(e){return({tr:t,dispatch:r})=>{if(r){for(const[r,n]of Object.entries(e))t.step(new uo(r,n));r(t)}return!0}}isDefaultDocNode({state:e=this.store.getState(),options:t}={}){return c.isDefaultDocNode(e.doc,t)}};lo([c.command()],co.prototype,"setDocAttributes",1),lo([c.helper()],co.prototype,"isDefaultDocNode",1),co=lo([c.extension({defaultOptions:{content:"block+",docAttributes:[]},defaultPriority:c.ExtensionPriority.Medium,staticKeys:["content","docAttributes"],disableExtraAttributes:!0})],co);var Oo="SetDocAttribute",po="RevertSetDocAttribute",uo=class extends We{constructor(e,t,r=Oo){super(),this.stepType=r,this.key=e,this.value=t}static fromJSON(e,t){return new uo(t.key,t.value,t.stepType)}apply(e){this.previous=e.attrs[this.key];const t={...e.attrs,[this.key]:this.value};return qe.ok(e.type.create(t,e.content,e.marks))}invert(){return new uo(this.key,this.previous,po)}map(){return this}toJSON(){return{stepType:this.stepType,key:this.key,value:this.value}}};try{We.jsonID(Oo,uo),We.jsonID(po,uo)}catch(e){if(!e.message.startsWith("Duplicate use of step JSON ID"))throw e}function fo(e={}){return new Rt({view:t=>new ho(t,e)})}class ho{constructor(e,t){var r;this.editorView=e,this.cursorPos=null,this.element=null,this.timeout=-1,this.width=null!==(r=t.width)&&void 0!==r?r:1,this.color=!1===t.color?void 0:t.color||"black",this.class=t.class,this.handlers=["dragover","dragend","drop","dragleave"].map((t=>{let r=e=>{this[t](e)};return e.dom.addEventListener(t,r),{name:t,handler:r}}))}destroy(){this.handlers.forEach((({name:e,handler:t})=>this.editorView.dom.removeEventListener(e,t)))}update(e,t){null!=this.cursorPos&&t.doc!=e.state.doc&&(this.cursorPos>e.state.doc.content.size?this.setCursor(null):this.updateOverlay())}setCursor(e){e!=this.cursorPos&&(this.cursorPos=e,null==e?(this.element.parentNode.removeChild(this.element),this.element=null):this.updateOverlay())}updateOverlay(){let e,t=this.editorView.state.doc.resolve(this.cursorPos),r=!t.parent.inlineContent;if(r){let r=t.nodeBefore,n=t.nodeAfter;if(r||n){let t=this.editorView.nodeDOM(this.cursorPos-(r?r.nodeSize:0));if(t){let o=t.getBoundingClientRect(),i=r?o.bottom:o.top;r&&n&&(i=(i+this.editorView.nodeDOM(this.cursorPos).getBoundingClientRect().top)/2),e={left:o.left,right:o.right,top:i-this.width/2,bottom:i+this.width/2}}}}if(!e){let t=this.editorView.coordsAtPos(this.cursorPos);e={left:t.left-this.width/2,right:t.left+this.width/2,top:t.top,bottom:t.bottom}}let n,o,i=this.editorView.dom.offsetParent;if(this.element||(this.element=i.appendChild(document.createElement("div")),this.class&&(this.element.className=this.class),this.element.style.cssText="position: absolute; z-index: 50; pointer-events: none;",this.color&&(this.element.style.backgroundColor=this.color)),this.element.classList.toggle("prosemirror-dropcursor-block",r),this.element.classList.toggle("prosemirror-dropcursor-inline",!r),!i||i==document.body&&"static"==getComputedStyle(i).position)n=-pageXOffset,o=-pageYOffset;else{let e=i.getBoundingClientRect();n=e.left-i.scrollLeft,o=e.top-i.scrollTop}this.element.style.left=e.left-n+"px",this.element.style.top=e.top-o+"px",this.element.style.width=e.right-e.left+"px",this.element.style.height=e.bottom-e.top+"px"}scheduleRemoval(e){clearTimeout(this.timeout),this.timeout=setTimeout((()=>this.setCursor(null)),e)}dragover(e){if(!this.editorView.editable)return;let t=this.editorView.posAtCoords({left:e.clientX,top:e.clientY}),r=t&&t.inside>=0&&this.editorView.state.doc.nodeAt(t.inside),n=r&&r.type.spec.disableDropCursor,o="function"==typeof n?n(this.editorView,t,e):n;if(t&&!o){let e=t.pos;if(this.editorView.dragging&&this.editorView.dragging.slice){let t=et(this.editorView.state.doc,e,this.editorView.dragging.slice);null!=t&&(e=t)}this.setCursor(e),this.scheduleRemoval(5e3)}}dragend(){this.scheduleRemoval(20)}drop(){this.scheduleRemoval(20)}dragleave(e){e.target!=this.editorView.dom&&this.editorView.dom.contains(e.relatedTarget)||this.setCursor(null)}}var mo=Object.defineProperty,go=Object.getOwnPropertyDescriptor,yo=class extends c.PlainExtension{get name(){return"dropCursor"}createExternalPlugins(){const{color:e,width:t}=this.options;return[fo({color:e,width:t})]}};yo=((e,t,r,n)=>{for(var o,i=n>1?void 0:n?go(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&mo(t,r,i),i})([c.extension({defaultOptions:{color:"black",width:1}})],yo);var So=Object.prototype.hasOwnProperty;function bo(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function Qo(e){try{return encodeURIComponent(e)}catch(e){return null}}var wo=function(e,t){t=t||"";var r,n,o=[];for(n in"string"!=typeof t&&(t="?"),e)if(So.call(e,n)){if((r=e[n])||null!=r&&!isNaN(r)||(r=""),n=Qo(n),r=Qo(r),null===n||null===r)continue;o.push(n+"="+r)}return o.length?t+o.join("&"):""},$o=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=bo(t[1]),i=bo(t[2]);null===o||null===i||o in n||(n[o]=i)}return n},xo={exports:{}};!function(e,t){var r="undefined"!=typeof Reflect?Reflect.construct:void 0,n=Object.defineProperty,o=Error.captureStackTrace;function i(e){void 0!==e&&n(this,"message",{configurable:!0,value:e,writable:!0});var t=this.constructor.name;void 0!==t&&t!==this.name&&n(this,"name",{configurable:!0,value:t,writable:!0}),o(this,this.constructor)}void 0===o&&(o=function(e){var t=new Error;n(e,"stack",{configurable:!0,get:function(){var e=t.stack;return n(this,"stack",{configurable:!0,value:e,writable:!0}),e},set:function(t){n(e,"stack",{configurable:!0,value:t,writable:!0})}})}),i.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:i,writable:!0}});var a=function(){function e(e,t){return n(e,"name",{configurable:!0,value:t})}try{var t=function(){};if(e(t,"foo"),"foo"===t.name)return e}catch(e){}}();t=e.exports=function(e,t){if(null==t||t===Error)t=i;else if("function"!=typeof t)throw new TypeError("super_ should be a function");var n;if("string"==typeof e)n=e,e=void 0!==r?function(){return r(t,arguments,this.constructor)}:function(){t.apply(this,arguments)},void 0!==a&&(a(e,n),n=void 0);else if("function"!=typeof e)throw new TypeError("constructor should be either a string or a function");e.super_=e.super=t;var o={constructor:{configurable:!0,value:e,writable:!0}};return void 0!==n&&(o.name={configurable:!0,value:n,writable:!0}),e.prototype=Object.create(t.prototype,o),e},t.BaseError=i}(xo,xo.exports);var Po=(e=>(e.PROD="RMR0000",e.UNKNOWN="RMR0001",e.INVALID_COMMAND_ARGUMENTS="RMR0002",e.CUSTOM="RMR0003",e.CORE_HELPERS="RMR0004",e.MUTATION="RMR0005",e.INTERNAL="RMR0006",e.MISSING_REQUIRED_EXTENSION="RMR0007",e.MANAGER_PHASE_ERROR="RMR0008",e.INVALID_GET_EXTENSION="RMR0010",e.INVALID_MANAGER_ARGUMENTS="RMR0011",e.SCHEMA="RMR0012",e.HELPERS_CALLED_IN_OUTER_SCOPE="RMR0013",e.INVALID_MANAGER_EXTENSION="RMR0014",e.DUPLICATE_COMMAND_NAMES="RMR0016",e.DUPLICATE_HELPER_NAMES="RMR0017",e.NON_CHAINABLE_COMMAND="RMR0018",e.INVALID_EXTENSION="RMR0019",e.INVALID_CONTENT="RMR0021",e.INVALID_NAME="RMR0050",e.EXTENSION="RMR0100",e.EXTENSION_SPEC="RMR0101",e.EXTENSION_EXTRA_ATTRIBUTES="RMR0102",e.INVALID_SET_EXTENSION_OPTIONS="RMR0103",e.REACT_PROVIDER_CONTEXT="RMR0200",e.REACT_GET_ROOT_PROPS="RMR0201",e.REACT_EDITOR_VIEW="RMR0202",e.REACT_CONTROLLED="RMR0203",e.REACT_NODE_VIEW="RMR0204",e.REACT_GET_CONTEXT="RMR0205",e.REACT_COMPONENTS="RMR0206",e.REACT_HOOKS="RMR0207",e.I18N_CONTEXT="RMR0300",e))(Po||{});Po.UNKNOWN,Po.INVALID_COMMAND_ARGUMENTS,Po.CUSTOM,Po.CORE_HELPERS,Po.MUTATION,Po.INTERNAL,Po.MISSING_REQUIRED_EXTENSION,Po.MANAGER_PHASE_ERROR,Po.INVALID_GET_EXTENSION,Po.INVALID_MANAGER_ARGUMENTS,Po.SCHEMA,Po.HELPERS_CALLED_IN_OUTER_SCOPE,Po.INVALID_MANAGER_EXTENSION,Po.DUPLICATE_COMMAND_NAMES,Po.DUPLICATE_HELPER_NAMES,Po.NON_CHAINABLE_COMMAND,Po.INVALID_EXTENSION,Po.INVALID_CONTENT,Po.INVALID_NAME,Po.EXTENSION,Po.EXTENSION_SPEC,Po.EXTENSION_EXTRA_ATTRIBUTES,Po.INVALID_SET_EXTENSION_OPTIONS,Po.REACT_PROVIDER_CONTEXT,Po.REACT_GET_ROOT_PROPS,Po.REACT_EDITOR_VIEW,Po.REACT_CONTROLLED,Po.REACT_NODE_VIEW,Po.REACT_GET_CONTEXT,Po.REACT_COMPONENTS,Po.REACT_HOOKS,Po.I18N_CONTEXT;var vo=Object.defineProperty,ko=Object.getOwnPropertyDescriptor,Zo=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?ko(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&vo(t,r,i),i},To={icon:"separator",label:({t:e})=>e(Zn.LABEL),description:({t:e})=>e(Zn.DESCRIPTION)},Eo=class extends c.NodeExtension{get name(){return"horizontalRule"}createTags(){return[c.ExtensionTag.Block]}createNodeSpec(e,t){return{...t,attrs:e.defaults(),parseDOM:[{tag:"hr",getAttrs:e.parse},...t.parseDOM??[]],toDOM:t=>["hr",e.dom(t)]}}insertHorizontalRule(){return e=>{const{tr:t,dispatch:r}=e,n=t.selection.$anchor,o=n.parent;if("doc"===o.type.name||o.isAtom||o.isLeaf)return!1;if(!r)return!0;return t.selection.empty&&c.isEmptyBlockNode(o)&&t.insert(n.pos+1,o),t.replaceSelectionWith(this.type.create()),this.updateFromNodeSelection(t),r(t.scrollIntoView()),!0}}createInputRules(){return[c.nodeInputRule({regexp:/^(?:---|—-|___\s|\*\*\*\s)$/,type:this.type,beforeDispatch:({tr:e})=>{this.updateFromNodeSelection(e)}})]}updateFromNodeSelection(e){if(!c.isNodeSelection(e.selection)||e.selection.node.type.name!==this.name)return;const t=e.selection.$from.pos+1,{insertionNode:r}=this.options;if(!r)return;const n=this.store.schema.nodes[r];c.invariant(n,{code:c.ErrorConstant.EXTENSION,message:`'${r}' node provided as the insertionNode to the '${this.constructorName}' does not exist.`});const o=n.create();e.insert(t,o),e.setSelection(bt.near(e.doc.resolve(t+1)))}};Zo([c.command(To)],Eo.prototype,"insertHorizontalRule",1),Eo=Zo([c.extension({defaultOptions:{insertionNode:"paragraph"}})],Eo);var Ro=Object.defineProperty,Xo=Object.getOwnPropertyDescriptor,Co=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?Xo(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Ro(t,r,i),i},jo={icon:"paragraph",label:({t:e})=>e(Tn.INSERT_LABEL),description:({t:e})=>e(Tn.INSERT_DESCRIPTION)},Yo={icon:"paragraph",label:({t:e})=>e(Tn.CONVERT_LABEL),description:({t:e})=>e(Tn.CONVERT_DESCRIPTION)},_o=class extends c.NodeExtension{get name(){return"paragraph"}createTags(){return[c.ExtensionTag.LastNodeCompatible,c.ExtensionTag.TextBlock,c.ExtensionTag.Block,c.ExtensionTag.FormattingNode]}createNodeSpec(e,t){return{content:"inline*",draggable:!1,...t,attrs:{...e.defaults()},parseDOM:[{tag:"p",getAttrs:t=>({...e.parse(t)})},...t.parseDOM??[]],toDOM:t=>["p",e.dom(t),0]}}convertParagraph(e={}){const{attrs:t,selection:r,preserveAttrs:n}=e;return this.store.commands.setBlockNodeType.original(this.type,t,r,n)}insertParagraph(e,t={}){const{selection:r,attrs:n}=t;return this.store.commands.insertNode.original(this.type,{content:e,selection:r,attrs:n})}shortcut(e){return this.convertParagraph()(e)}};Co([c.command(Yo)],_o.prototype,"convertParagraph",1),Co([c.command(jo)],_o.prototype,"insertParagraph",1),Co([c.keyBinding({shortcut:c.NamedShortcut.Paragraph,command:"convertParagraph"})],_o.prototype,"shortcut",1),_o=Co([c.extension({defaultPriority:c.ExtensionPriority.Medium})],_o);var Ao=Object.defineProperty,Wo=Object.getOwnPropertyDescriptor,qo=class extends c.NodeExtension{get name(){return"text"}createTags(){return[c.ExtensionTag.InlineNode]}createNodeSpec(){return{}}};function Vo(e,t,r,n,o,i){function a(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,l=n.kind,c="getter"===l?"get":"setter"===l?"set":"value",O=!t&&e?n.static?e:e.prototype:null,p=t||(O?Object.getOwnPropertyDescriptor(O,n.name):{}),u=!1,d=r.length-1;d>=0;d--){var f={};for(var h in n)f[h]="access"===h?{}:n[h];for(var h in n.access)f.access[h]=n.access[h];f.addInitializer=function(e){if(u)throw new TypeError("Cannot add initializers after decoration has completed");i.push(a(e||null))};var m=(0,r[d])("accessor"===l?{get:p.get,set:p.set}:p[c],f);if("accessor"===l){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=a(m.get))&&(p.get=s),(s=a(m.set))&&(p.set=s),(s=a(m.init))&&o.unshift(s)}else(s=a(m))&&("field"===l?o.unshift(s):p[c]=s)}O&&Object.defineProperty(O,n.name,p),u=!0}function Io(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function No(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function zo(e,t,r){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=r,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}qo=((e,t,r,n)=>{for(var o,i=n>1?void 0:n?Wo(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Ao(t,r,i),i})([c.extension({disableExtraAttributes:!0,defaultPriority:c.ExtensionPriority.Medium})],qo),"function"==typeof SuppressedError&&SuppressedError,zo.prototype.attrIndex=function(e){var t,r,n;if(!this.attrs)return-1;for(r=0,n=(t=this.attrs).length;r<n;r++)if(t[r][0]===e)return r;return-1},zo.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},zo.prototype.attrSet=function(e,t){var r=this.attrIndex(e),n=[e,t];r<0?this.attrPush(n):this.attrs[r]=n},zo.prototype.attrGet=function(e){var t=this.attrIndex(e),r=null;return t>=0&&(r=this.attrs[t][1]),r},zo.prototype.attrJoin=function(e,t){var r=this.attrIndex(e);r<0?this.attrPush([e,t]):this.attrs[r][1]=this.attrs[r][1]+" "+t};var Mo=zo;function Uo(e){return"paragraph_open"===e.type}function Go(e){return"inline"===e.type}const Do=e=>{let t=!1;const r=e.tokens;for(let e=r.length-3;e>=0;e--)if("list_item_open"===(n=r[e]).type&&["*","-"].includes(n.markup)&&Uo(r[e+1])&&Go(r[e+2])){const n=r[e+2],o=/^\[([ |x])\]\s?/.exec(n.content);if(o){const i="x"===o[1];n.content=n.content.slice(o[0].length);const a=new Mo("list_checkbox","input",0);a.attrPush(["type","checkbox"]),i&&a.attrPush(["checked",""]),r.splice(e+1,0,a),t=!0}}var n;return t};function Bo(e){e.core.ruler.push("markdown-it-list-checkbox",Do)}var Lo;function Fo(e){return/^<\/[a-zA-Z0-9]+\s*>$/.test(e)}function Jo(e){const t=F.default.parse(e);return t&&1===t.length}!function(e){e[e.text=1]="text",e[e.block=2]="block",e[e.ignore=3]="ignore",e[e.free=4]="free",e[e.context=5]="context",e[e.inline=6]="inline"}(Lo||(Lo={}));const Ko=e=>{var t;return(null===(t=F.default.parse(e)[0])||void 0===t?void 0:t.attrs)||{}};function Ho(e){const t=/<\/?([a-zA-Z0-9]+)\b[^>]*>/.exec(e);return t&&t.length>1?t[1].toLowerCase():""}function ei(e){let t="";if(e.attrs){const r=Object.entries(e.attrs).filter((([,e])=>e));r.length&&(t=`${r.map((([e,t])=>`${e}="${t}"`)).join(" ")}`)}return e.voidElement?`<${e.tag} ${t} />`:`<${e.tag} ${t}></${e.tag}>`}const ti=["img","iframe"],ri=["html_image","iframe_inline"],ni={img:"html_image",iframe:"iframe_inline"};function oi(e){return e.children?e.children.map((e=>{if(ii(e)&&ti.includes(e.tag)&&!Fo(e.content)){const t=new Mo(ni[e.tag],"",0);return t.content=e.content,t.attrs=Ko(e.content),t}{const t=new Mo("text","",0);return t.content=e.content,t}})):[]}function ii(e){return"html_inline"===e.type}function ai(e){return"html_block"===e.type}function si(e){var t;let r=!1;return null===(t=e.children)||void 0===t||t.forEach((e=>{if(ii(e)){const t=Ho(e.content);e.tag=t,ti.includes(e.tag)&&(r=!0)}})),r}const li=e=>{const t=e.tokens;for(let e=t.length-1;e>=0;e--){const r=t[e];if("inline"===r.type)si(r)&&t.splice(e,1,...oi(r));else if(ai(r)){const n=Ho(r.content);if(Jo(r.content)&&ti.includes(n)){const o=new Mo(ni[n],"",0);o.content=r.content,o.attrs=Ko(r.content),t.splice(e,1,new Mo("paragraph_open","",0),o,new Mo("paragraph_close","",0))}}}return!1};function ci(e){e.core.ruler.push("markdown-it-html-inline",li)}class Oi extends Error{constructor(e,t){super(`MarkdownIt token type '${e}' not supported. `),this.tokenType=e,this.supportedTokenTypes=t,this.tokenType=e}}class pi{constructor(e,t){this.schema=e,this.stack=[{type:e.topNodeType,content:[]}],this.contextStack=[],this.marks=pe.none,this.tokenHandlers=t}top(){return this.stack[this.stack.length-1]}push(e){this.stack.length&&this.top().content.push(e)}addText(e){if(!e)return;const t=this.top().content,r=t[t.length-1],n=this.schema.text(e,this.marks);let o;r&&(o=this.mergeTextNode(r,n))?t[t.length-1]=o:t.push(n)}mergeTextNode(e,t){if(e.isText&&t.isText&&pe.sameSet(e.marks,t.marks)){const r=(e.text||"")+(t.text||"");return e.type.schema.text(r,e.marks)}}openMark(e){this.marks=e.addToSet(this.marks)}closeMark(e){this.marks=e.removeFromSet(this.marks)}parseTokens(e){for(const t of e){const e=this.tokenHandlers[t.type];if(!e)return;if(!e)throw new Oi(t.type,Object.keys(this.tokenHandlers));e(this,t)}}addNode(e,t,r){const n=e.createAndFill(t,r,this.marks);if(!n)throw new Error(`unexpected error: node is empty while creating ${e.name} node`);return this.push(n),n}openNode(e,t){this.stack.push({type:e,attrs:t,content:[]})}closeNode(){this.marks.length&&(this.marks=pe.none);const e=this.stack.pop();if(!e)throw new Error("unexpected error: info is empty");return this.addNode(e.type,e.attrs,e.content)}openContext(e){this.contextStack.push(e)}closeContext(){this.contextStack.pop()}topContext(){return this.contextStack[this.contextStack.length-1]}}function ui(e,t,r){const n=r.nodes[e.node];if(void 0===n)throw new RangeError(`Can't find block type '${e.node}'`);e.hasOpenClose?(t[e.token+"_open"]=(t,r)=>{const o=e.getAttrs?e.getAttrs(r):void 0;t.openNode(n,o)},t[e.token+"_close"]=e=>{e.closeNode()}):t[e.token]=(t,r)=>{const o=e.getAttrs?e.getAttrs(r):void 0;var i;t.openNode(n,o),t.addText((i=r.content).endsWith("\n")?i.slice(0,i.length-1):i),t.closeNode()}}function di(e,t){t[e.token+"_open"]=t=>{t.openContext(e.context)},t[e.token+"_close"]=e=>{e.closeContext()}}function fi(e,t,r){if(void 0===r.nodes[e.token])throw new RangeError(`Can't find inline type '${e.token}'`);t[e.token]=(e,t)=>{var n;const o=t.attrs||null,i=null===(n=r.nodes[t.type])||void 0===n?void 0:n.createAndFill(o);i&&e.push(i)}}function hi(e,t){t[e.token]=(t,r)=>{t.addText(e.getText(r))}}class mi{constructor(e,t){this.schema=e,this.tokenizer=L.default("commonmark",{html:!0}).disable(["emphasis","autolink","backticks","entity"]).enable(["table"]).use(Bo).use(ci),this.tokenHandlers=function(e,t){const r={};for(const n of t)switch(n.type){case Lo.text:hi(n,r);break;case Lo.block:ui(n,r,e);break;case Lo.context:di(n,r);break;case Lo.ignore:r[n.token]=()=>{};break;case Lo.inline:fi(n,r,e);break;case Lo.free:r[n.token]=n.handler;break;default:throw new Error("unknown parser rule type")}return r}(e,t)}parse(e){const t=new pi(this.schema,this.tokenHandlers);let r;const n=this.tokenizer.parse(e,{});console.log("tokens",n),t.parseTokens(n);do{r=t.closeNode()}while(t.stack.length);return r}}var gi,yi;if("undefined"!=typeof WeakMap){let e=new WeakMap;gi=t=>e.get(t),yi=(t,r)=>(e.set(t,r),r)}else{const e=[],t=10;let r=0;gi=t=>{for(let r=0;r<e.length;r+=2)if(e[r]==t)return e[r+1]},yi=(n,o)=>(r==t&&(r=0),e[r++]=n,e[r++]=o)}var Si=class{constructor(e,t,r,n){this.width=e,this.height=t,this.map=r,this.problems=n}findCell(e){for(let t=0;t<this.map.length;t++){const r=this.map[t];if(r!=e)continue;const n=t%this.width,o=t/this.width|0;let i=n+1,a=o+1;for(let e=1;i<this.width&&this.map[t+e]==r;e++)i++;for(let e=1;a<this.height&&this.map[t+this.width*e]==r;e++)a++;return{left:n,top:o,right:i,bottom:a}}throw new RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw new RangeError(`No cell with offset ${e} found`)}nextCell(e,t,r){const{left:n,right:o,top:i,bottom:a}=this.findCell(e);return"horiz"==t?(r<0?0==n:o==this.width)?null:this.map[i*this.width+(r<0?n-1:o)]:(r<0?0==i:a==this.height)?null:this.map[n+this.width*(r<0?i-1:a)]}rectBetween(e,t){const{left:r,right:n,top:o,bottom:i}=this.findCell(e),{left:a,right:s,top:l,bottom:c}=this.findCell(t);return{left:Math.min(r,a),top:Math.min(o,l),right:Math.max(n,s),bottom:Math.max(i,c)}}cellsInRect(e){const t=[],r={};for(let n=e.top;n<e.bottom;n++)for(let o=e.left;o<e.right;o++){const i=n*this.width+o,a=this.map[i];r[a]||(r[a]=!0,o==e.left&&o&&this.map[i-1]==a||n==e.top&&n&&this.map[i-this.width]==a||t.push(a))}return t}positionAt(e,t,r){for(let n=0,o=0;;n++){const i=o+r.child(n).nodeSize;if(n==e){let r=t+e*this.width;const n=(e+1)*this.width;for(;r<n&&this.map[r]<o;)r++;return r==n?i-1:this.map[r]}o=i}}static get(e){return gi(e)||yi(e,function(e){if("table"!=e.type.spec.tableRole)throw new RangeError("Not a table node: "+e.type.name);const t=function(e){let t=-1,r=!1;for(let n=0;n<e.childCount;n++){const o=e.child(n);let i=0;if(r)for(let t=0;t<n;t++){const r=e.child(t);for(let e=0;e<r.childCount;e++){const o=r.child(e);t+o.attrs.rowspan>n&&(i+=o.attrs.colspan)}}for(let e=0;e<o.childCount;e++){const t=o.child(e);i+=t.attrs.colspan,t.attrs.rowspan>1&&(r=!0)}-1==t?t=i:t!=i&&(t=Math.max(t,i))}return t}(e),r=e.childCount,n=[];let o=0,i=null;const a=[];for(let e=0,o=t*r;e<o;e++)n[e]=0;for(let s=0,l=0;s<r;s++){const c=e.child(s);l++;for(let e=0;;e++){for(;o<n.length&&0!=n[o];)o++;if(e==c.childCount)break;const O=c.child(e),{colspan:p,rowspan:u,colwidth:d}=O.attrs;for(let e=0;e<u;e++){if(e+s>=r){(i||(i=[])).push({type:"overlong_rowspan",pos:l,n:u-e});break}const c=o+e*t;for(let e=0;e<p;e++){0==n[c+e]?n[c+e]=l:(i||(i=[])).push({type:"collision",row:s,pos:l,n:p-e});const r=d&&d[e];if(r){const n=(c+e)%t*2,o=a[n];null==o||o!=r&&1==a[n+1]?(a[n]=r,a[n+1]=1):o==r&&a[n+1]++}}}o+=p,l+=O.nodeSize}const O=(s+1)*t;let p=0;for(;o<O;)0==n[o++]&&p++;p&&(i||(i=[])).push({type:"missing",row:s,n:p}),l++}const s=new Si(t,r,n,i);let l=!1;for(let e=0;!l&&e<a.length;e+=2)null!=a[e]&&a[e+1]<r&&(l=!0);l&&function(e,t,r){e.problems||(e.problems=[]);const n={};for(let o=0;o<e.map.length;o++){const i=e.map[o];if(n[i])continue;n[i]=!0;const a=r.nodeAt(i);if(!a)throw new RangeError(`No cell with offset ${i} found`);let s=null;const l=a.attrs;for(let r=0;r<l.colspan;r++){const n=t[2*((o+r)%e.width)];null==n||l.colwidth&&l.colwidth[r]==n||((s||(s=bi(l)))[r]=n)}s&&e.problems.unshift({type:"colwidth mismatch",pos:i,colwidth:s})}}(s,a,e);return s}(e))}};function bi(e){if(e.colwidth)return e.colwidth.slice();const t=[];for(let r=0;r<e.colspan;r++)t.push(0);return t}function Qi(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(const r in e.nodes){const n=e.nodes[r],o=n.spec.tableRole;o&&(t[o]=n)}}return t}function wi(e){const t=e.selection.$head;for(let e=t.depth;e>0;e--)if("row"==t.node(e).type.spec.tableRole)return!0;return!1}function $i(e){return"row"==e.parent.type.spec.tableRole&&!!e.nodeAfter}function xi(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function Pi(e,t,r){const n=e.node(-1),o=Si.get(n),i=e.start(-1),a=o.nextCell(e.pos-i,t,r);return null==a?null:e.node(0).resolve(i+a)}function vi(e,t,r=1){const n={...e,colspan:e.colspan-r};return n.colwidth&&(n.colwidth=n.colwidth.slice(),n.colwidth.splice(t,r),n.colwidth.some((e=>e>0))||(n.colwidth=null)),n}new jt("selectingCells");var ki=class e extends mt{constructor(e,t=e){const r=e.node(-1),n=Si.get(r),o=e.start(-1),i=n.rectBetween(e.pos-o,t.pos-o),a=e.node(0),s=n.cellsInRect(i).filter((e=>e!=t.pos-o));s.unshift(t.pos-o);const l=s.map((e=>{const t=r.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);const n=o+e+1;return new gt(a.resolve(n),a.resolve(n+t.content.size))}));super(l[0].$from,l[0].$to,l),this.$anchorCell=e,this.$headCell=t}map(t,r){const n=t.resolve(r.map(this.$anchorCell.pos)),o=t.resolve(r.map(this.$headCell.pos));if($i(n)&&$i(o)&&xi(n,o)){const t=this.$anchorCell.node(-1)!=n.node(-1);return t&&this.isRowSelection()?e.rowSelection(n,o):t&&this.isColSelection()?e.colSelection(n,o):new e(n,o)}return bt.between(n,o)}content(){const e=this.$anchorCell.node(-1),t=Si.get(e),r=this.$anchorCell.start(-1),n=t.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r),o={},i=[];for(let r=n.top;r<n.bottom;r++){const a=[];for(let i=r*t.width+n.left,s=n.left;s<n.right;s++,i++){const r=t.map[i];if(o[r])continue;o[r]=!0;const s=t.findCell(r);let l=e.nodeAt(r);if(!l)throw RangeError(`No cell with offset ${r} found`);const c=n.left-s.left,O=s.right-n.right;if(c>0||O>0){let e=l.attrs;if(c>0&&(e=vi(e,0,c)),O>0&&(e=vi(e,e.colspan-O,O)),s.left<n.left){if(l=l.type.createAndFill(e),!l)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else l=l.type.create(e,l.content)}if(s.top<n.top||s.bottom>n.bottom){const e={...l.attrs,rowspan:Math.min(s.bottom,n.bottom)-Math.max(s.top,n.top)};l=s.top<n.top?l.type.createAndFill(e):l.type.create(e,l.content)}a.push(l)}i.push(e.child(r).copy(se.from(a)))}const a=this.isColSelection()&&this.isRowSelection()?e:i;return new de(se.from(a),1,1)}replace(e,t=de.empty){const r=e.steps.length,n=this.ranges;for(let o=0;o<n.length;o++){const{$from:i,$to:a}=n[o],s=e.mapping.slice(r);e.replace(s.map(i.pos),s.map(a.pos),o?de.empty:t)}const o=mt.findFrom(e.doc.resolve(e.mapping.slice(r).map(this.to)),-1);o&&e.setSelection(o)}replaceWith(e,t){this.replace(e,new de(se.from(t),0,0))}forEachCell(e){const t=this.$anchorCell.node(-1),r=Si.get(t),n=this.$anchorCell.start(-1),o=r.cellsInRect(r.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n));for(let r=0;r<o.length;r++)e(t.nodeAt(o[r]),n+o[r])}isColSelection(){const e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;const r=e+this.$anchorCell.nodeAfter.attrs.rowspan,n=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(r,n)==this.$headCell.node(-1).childCount}static colSelection(t,r=t){const n=t.node(-1),o=Si.get(n),i=t.start(-1),a=o.findCell(t.pos-i),s=o.findCell(r.pos-i),l=t.node(0);return a.top<=s.top?(a.top>0&&(t=l.resolve(i+o.map[a.left])),s.bottom<o.height&&(r=l.resolve(i+o.map[o.width*(o.height-1)+s.right-1]))):(s.top>0&&(r=l.resolve(i+o.map[s.left])),a.bottom<o.height&&(t=l.resolve(i+o.map[o.width*(o.height-1)+a.right-1]))),new e(t,r)}isRowSelection(){const e=this.$anchorCell.node(-1),t=Si.get(e),r=this.$anchorCell.start(-1),n=t.colCount(this.$anchorCell.pos-r),o=t.colCount(this.$headCell.pos-r);if(Math.min(n,o)>0)return!1;const i=n+this.$anchorCell.nodeAfter.attrs.colspan,a=o+this.$headCell.nodeAfter.attrs.colspan;return Math.max(i,a)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,r=t){const n=t.node(-1),o=Si.get(n),i=t.start(-1),a=o.findCell(t.pos-i),s=o.findCell(r.pos-i),l=t.node(0);return a.left<=s.left?(a.left>0&&(t=l.resolve(i+o.map[a.top*o.width])),s.right<o.width&&(r=l.resolve(i+o.map[o.width*(s.top+1)-1]))):(s.left>0&&(r=l.resolve(i+o.map[s.top*o.width])),a.right<o.width&&(t=l.resolve(i+o.map[o.width*(a.top+1)-1]))),new e(t,r)}toJSON(){return{type:"cell",anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,r){return new e(t.resolve(r.anchor),t.resolve(r.head))}static create(t,r,n=r){return new e(t.resolve(r),t.resolve(n))}getBookmark(){return new Ti(this.$anchorCell.pos,this.$headCell.pos)}};ki.prototype.visible=!1,mt.jsonID("cell",ki);var Zi,Ti=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){const t=e.resolve(this.anchor),r=e.resolve(this.head);return"row"==t.parent.type.spec.tableRole&&"row"==r.parent.type.spec.tableRole&&t.index()<t.parent.childCount&&r.index()<r.parent.childCount&&xi(t,r)?new ki(t,r):mt.near(r,1)}};function Ei(e,t,r){return!r.eq(e.selection)&&(t&&t(e.tr.setSelection(r).scrollIntoView()),!0)}function Ri(e,t){return(r,n,o)=>{if(!o)return!1;const i=r.selection;if(i instanceof ki)return Ei(r,n,mt.near(i.$headCell,t));if("horiz"!=e&&!i.empty)return!1;const a=ji(o,e,t);if(null==a)return!1;if("horiz"==e)return Ei(r,n,mt.near(r.doc.resolve(i.head+t),t));{const o=r.doc.resolve(a),i=Pi(o,e,t);let s;return s=i?mt.near(i,1):t<0?mt.near(r.doc.resolve(o.before(-1)),-1):mt.near(r.doc.resolve(o.after(-1)),1),Ei(r,n,s)}}}function Xi(e,t){return(r,n,o)=>{if(!o)return!1;const i=r.selection;let a;if(i instanceof ki)a=i;else{const n=ji(o,e,t);if(null==n)return!1;a=new ki(r.doc.resolve(n))}const s=Pi(a.$headCell,e,t);return!!s&&Ei(r,n,new ki(a.$anchorCell,s))}}function Ci(e,t){const r=e.selection;if(!(r instanceof ki))return!1;if(t){const n=e.tr,o=Qi(e.schema).cell.createAndFill().content;r.forEachCell(((e,t)=>{e.content.eq(o)||n.replace(n.mapping.map(t+1),n.mapping.map(t+e.nodeSize-1),new de(o,0,0))})),n.docChanged&&t(n)}return!0}function ji(e,t,r){if(!(e.state.selection instanceof bt))return null;const{$head:n}=e.state.selection;for(let o=n.depth-1;o>=0;o--){const i=n.node(o);if((r<0?n.index(o):n.indexAfter(o))!=(r<0?0:i.childCount))return null;if("cell"==i.type.spec.tableRole||"header_cell"==i.type.spec.tableRole){const i=n.before(o),a="vert"==t?r>0?"down":"up":r>0?"right":"left";return e.endOfTextblock(a)?i:null}}return null}function Yi(e){const t=e.selection,r=function(e){const t=e.selection;if("$anchorCell"in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if("node"in t&&t.node&&"cell"==t.node.type.spec.tableRole)return t.$anchor;const r=function(e){for(let t=e.depth-1;t>0;t--)if("row"==e.node(t).type.spec.tableRole)return e.node(0).resolve(e.before(t+1));return null}(t.$head)||function(e){for(let t=e.nodeAfter,r=e.pos;t;t=t.firstChild,r++){const n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r)}for(let t=e.nodeBefore,r=e.pos;t;t=t.lastChild,r--){const n=t.type.spec.tableRole;if("cell"==n||"header_cell"==n)return e.doc.resolve(r-t.nodeSize)}}(t.$head);if(r)return r;throw new RangeError(`No cell found around position ${t.head}`)}(e),n=r.node(-1),o=r.start(-1),i=Si.get(n);return{...t instanceof ki?i.rectBetween(t.$anchorCell.pos-o,t.$headCell.pos-o):i.findCell(r.pos-o),tableStart:o,map:i,table:n}}function _i(e,t,r){const n=t.map.cellsInRect({left:0,top:0,right:"row"==e?t.map.width:1,bottom:"column"==e?t.map.height:1});for(let e=0;e<n.length;e++){const o=t.table.nodeAt(n[e]);if(o&&o.type!==r.header_cell)return!1}return!0}function Ai(e,t){return(t=t||{useDeprecatedLogic:!1}).useDeprecatedLogic?function(e){return function(t,r){if(!wi(t))return!1;if(r){const n=Qi(t.schema),o=Yi(t),i=t.tr,a=o.map.cellsInRect("column"==e?{left:o.left,top:0,right:o.right,bottom:o.map.height}:"row"==e?{left:0,top:o.top,right:o.map.width,bottom:o.bottom}:o),s=a.map((e=>o.table.nodeAt(e)));for(let e=0;e<a.length;e++)s[e].type==n.header_cell&&i.setNodeMarkup(o.tableStart+a[e],n.cell,s[e].attrs);if(0==i.steps.length)for(let e=0;e<a.length;e++)i.setNodeMarkup(o.tableStart+a[e],n.header_cell,s[e].attrs);r(i)}return!0}}(e):function(t,r){if(!wi(t))return!1;if(r){const n=Qi(t.schema),o=Yi(t),i=t.tr,a=_i("row",o,n),s=_i("column",o,n),l=("column"===e?a:"row"===e&&s)?1:0,c="column"==e?{left:0,top:l,right:1,bottom:o.map.height}:"row"==e?{left:l,top:0,right:o.map.width,bottom:1}:o,O="column"==e?s?n.cell:n.header_cell:"row"==e?a?n.cell:n.header_cell:n.cell;o.map.cellsInRect(c).forEach((e=>{const t=e+o.tableStart,r=i.doc.nodeAt(t);r&&i.setNodeMarkup(t,O,r.attrs)})),r(i)}return!0}}new jt("fix-tables"),function(e){let t=function(e){let t=Object.create(null);for(let r in e)t[In(r)]=e[r];return t}(e)}({ArrowLeft:Ri("horiz",-1),ArrowRight:Ri("horiz",1),ArrowUp:Ri("vert",-1),ArrowDown:Ri("vert",1),"Shift-ArrowLeft":Xi("horiz",-1),"Shift-ArrowRight":Xi("horiz",1),"Shift-ArrowUp":Xi("vert",-1),"Shift-ArrowDown":Xi("vert",1),Backspace:Ci,"Mod-Backspace":Ci,Delete:Ci,"Mod-Delete":Ci}),new jt("tableColumnResizing"),Ai("row",{useDeprecatedLogic:!0}),Ai("column",{useDeprecatedLogic:!0}),Ai("cell",{useDeprecatedLogic:!0}),function(e){e[e.DEFAULT=1]="DEFAULT",e[e.CENTER=2]="CENTER",e[e.RIGHT=3]="RIGHT",e[e.LEFT=4]="LEFT"}(Zi||(Zi={}));class Wi extends l.TableExtension{constructor(){super(...arguments),this.createKeymap=()=>{const e=this.store.schema;return function(e,t,r){return{Enter:c.convertCommand(((n,o)=>{if(!c.isTextSelection(n.selection))return!1;const i=n.selection.$cursor;if(!i)return!1;const{nodeBefore:a}=n.selection.$from,s=a&&a.isText&&a.text;if(!s)return!1;const l=e.exec(s);if(!l)return!1;const[O,p]=[i.pos-l[0].length,i.pos],u=n.doc.resolve(O),d=t({match:l,start:O,end:p}),f=u.node(-1),h=u.index(-1),m=u.indexAfter(-1);if(!f.canReplace(h,m,se.from(d)))return!1;let g=n.tr;return g=g.replaceRangeWith(O,p,d),r&&(g=r({tr:g})),o&&o(g),!0}))}}(/^\|((?:[^\|]+\|){2,})\s*$/,(({match:t})=>{const r=t[1].split("|").slice(0,-1).map((t=>((t=t.trim())||(t=" "),e.text(t)))),n=r.map((t=>e.nodes.tableCell.create(null,t))),o=r.map((()=>e.nodes.tableCell.create(null))),i=e.nodes.tableRow.create(null,n),a=e.nodes.tableRow.create(null,o);return e.nodes.table.create(null,[i,a])}),(({tr:e})=>{var t;const r=null===(t=e.selection)||void 0===t?void 0:t.$cursor;if(r){const t=r.depth-1,n=r.posAtIndex(r.index(t)-1,t),o=e.doc.resolve(n);return e.setSelection(bt.near(o))}return e}))}}get name(){return"table"}fromMarkdown(){return[{type:Lo.block,token:"table",node:this.name,hasOpenClose:!0},{type:Lo.ignore,token:"thead_open"},{type:Lo.ignore,token:"thead_close"},{type:Lo.ignore,token:"tbody_open"},{type:Lo.ignore,token:"tbody_close"}]}toMarkdown({state:e,node:t}){const r=[],n=[];t.forEach(((e,t,o)=>{const i=[];e.forEach(((e,t,r)=>{i.push(e.textContent.trim().replace(/\n/g,"")),0===o&&(n[r]=Zi.DEFAULT)})),r.push(i)}));const o=n.length,i=new Array(o);r.forEach((e=>{e.forEach(((e,t)=>{i[t]||(i[t]=3),i[t]=Math.max(e.length,i[t])}))}));const a=new Array(o);i.forEach(((e,t)=>{switch(n[t]){case Zi.LEFT:a[t]=":"+"-".repeat(e-1);break;case Zi.RIGHT:a[t]="-".repeat(e-1)+":";break;case Zi.CENTER:a[t]=":"+"-".repeat(e-2)+":";break;default:a[t]="-".repeat(e)}})),r.splice(1,0,a);let s="";r.forEach((e=>{e.forEach(((e,t)=>{s+="| ";const r=i[t];if(n[t]===Zi.CENTER){const t=" ".repeat(Math.round((r-e.length)/2));s+=(t+e+t).padEnd(r)}else n[t]===Zi.RIGHT?s+=e.padStart(r):s+=e.padEnd(r);s+=" "})),s+="|\n"})),s+="\n",e.text(s,!1)}createExtensions(){return[]}}class qi extends l.TableRowExtension{get name(){return"tableRow"}createNodeSpec(e,t){return{...super.createNodeSpec(e,t),allowGapCursor:!1}}fromMarkdown(){return[{type:Lo.block,token:"tr",node:this.name,hasOpenClose:!0}]}toMarkdown(){}createExtensions(){return[]}}class Vi extends l.TableHeaderCellExtension{get name(){return"tableHeaderCell"}fromMarkdown(){return[]}toMarkdown(){}createExtensions(){return[]}}class Ii extends l.TableCellExtension{get name(){return"tableCell"}createNodeSpec(e,t){return{...super.createNodeSpec(e,t),content:"inline*"}}createExtensions(){return[]}createCommands(){return{selectTableCell:({pos:e})=>({tr:t,dispatch:r})=>!!t.setSelection(ki.create(t.doc,e))&&(null==r||r(t),!0)}}fromMarkdown(){return[{type:Lo.block,token:"th",node:this.name,hasOpenClose:!0},{type:Lo.block,token:"td",node:this.name,hasOpenClose:!0}]}toMarkdown(){}}function Ni(e){return function(e){return e.startsWith("/")}(e)||function(e){return e.startsWith("\\")||/^[A-Z]{1,2}:/.test(e)}(e)?function(e){let t=e;t=t.replace(/\\/g,"/"),"/"!==t[0]&&(t=`/${t}`);return encodeURI(`file://${t}`).replace(/[?#]/g,encodeURIComponent)}(e):e}class zi extends We{constructor(e){super(),this.doc=e}apply(e){return qe.ok(e)}getMap(){return Ye.empty}invert(e){return new zi(e)}map(){return null}merge(e){return null}toJSON(){return{stepType:"replaceDoc",doc:this.doc.toJSON()}}static fromJSON(e,t){const r=e.nodeFromJSON(t.doc);return new zi(r)}}try{We.jsonID("replaceDoc",zi)}catch(e){}class Mi extends We{constructor(e){if(0===e.length)throw new RangeError("BatchSetMarkStep: at least one chunk is required");let t=0;for(const[r,n]of e){if(t>r||r>n)throw new RangeError("BatchSetMarkStep: chunks must be sorted");t=n}super(),this.chunks=e}apply(e){const t=this.chunks,r=t[0][0],n=t[t.length-1][1],o=e.resolve(r),i=e.resolve(n),a=o.sharedDepth(n),{start:s,parent:l}=new me(o,i,a),c=e.slice(s,n);let O,p,u,d,f,h,m,g,y,S,b=0;const Q=Ui(c.content,s,l,((e,r,n)=>{y=e;const o=[];for(;y&&b<t.length;)if(O=n+y.nodeSize,[p,u,m]=t[b],p>=u)b++;else{if(p>=O){o.push(y);break}if(n>=u)b++;else{for(h of(d=Math.max(p,n),f=Math.min(u,O),d>n&&(o.push(y.cut(0,d-n)),y=y.cut(d-n),n=d),f<O&&([y,S]=[y.cut(0,f-n),y.cut(f-n)],O=f),g=y.marks,g))h.isInSet(m)||(g=h.removeFromSet(g));for(h of m)!h.isInSet(g)&&(null==r?void 0:r.type.allowsMarkType(h.type))&&(g=h.addToSet(g));y=y.mark(g),o.push(y),n+=y.nodeSize,y=S,S=null}}return o}));return qe.fromReplace(e,s,n,new de(Q,c.openStart,c.openEnd))}invert(e){return new zi(e)}map(){return null}merge(){return null}toJSON(){return{stepType:"batchSetMark",chunks:this.chunks.map((e=>[e[0],e[1],e[2].map((e=>e.toJSON()))]))}}static fromJSON(e,t){return new Mi(t.chunks.map((t=>[t[0],t[1],t[2].map((t=>pe.fromJSON(e,t)))])))}}try{We.jsonID("batchSetMark",Mi)}catch(e){}function Ui(e,t,r,n){const o=[];let i=t;for(let t=0;t<e.childCount;t++){let a=e.child(t);a.content.size&&(a=a.copy(Ui(a.content,i+(a.isLeaf?0:1),a,n))),a.isInline?o.push(...n(a,r,i)):o.push(a),i+=ri.includes(a.type.name)?0:a.nodeSize}return se.fromArray(o)}function*Gi(e){const t=e.content;for(let e=0,r=0;e<t.childCount;e++){const n=t.child(e);yield[n,r,e],r+=n.nodeSize}}function Di(e,t){switch(e.type){case"text":return function(e,t){return[{marks:["mdText"],attrs:{depth:t,first:!0,last:!0},start:e.position.start.offset,end:e.position.end.offset}]}(e,t);case"strong":return function(e,t){const r=[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+2}];for(const n of e.children)for(const e of Di(n,t+1))e.marks.push("mdStrong"),r.push(e);return r.push({marks:["mdMark"],attrs:{depth:t,last:!0},start:e.position.end.offset-2,end:e.position.end.offset}),r}(e,t);case"emphasis":return function(e,t){const r=[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+1}];for(const n of e.children)for(const e of Di(n,t+1))e.marks.push("mdEm"),r.push(e);return r.push({marks:["mdMark"],attrs:{depth:t,last:!0},start:e.position.end.offset-1,end:e.position.end.offset}),r}(e,t);case"delete":return function(e,t){const r=[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+2}];for(const n of e.children)for(const e of Di(n,t+1))e.marks.push("mdDel"),r.push(e);return r.push({marks:["mdMark"],attrs:{depth:t,last:!0},start:e.position.end.offset-2,end:e.position.end.offset}),r}(e,t);case"inlineCode":return function(e,t){return[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+1},{marks:["mdCodeText"],attrs:{depth:t},start:e.position.start.offset+1,end:e.position.end.offset-1},{marks:["mdMark"],attrs:{depth:t,last:!0},start:e.position.end.offset-1,end:e.position.end.offset}]}(e,t);case"html":case"break":case"imageReference":case"footnote":case"footnoteReference":case"linkReference":return[];case"image":return function(e,t){return[{marks:["mdImgUri"],attrs:{depth:t,first:!0,last:!0,href:e.url,key:h.nanoid()},start:e.position.start.offset,end:e.position.end.offset}]}(e,t);case"link":return function(e,t){const r=e.position.start.offset,n=e.position.end.offset;if(0===e.children.length)return[{marks:["mdText"],attrs:{depth:t,first:!0,last:!0},start:e.position.start.offset,end:e.position.start.offset+2},{marks:["mdMark"],attrs:{depth:t},start:e.position.start.offset+2,end:n}];const o=e.children[0].position.start.offset,i=e.children[e.children.length-1].position.end.offset;if(r===o&&n===i)return function(e,t){return[{marks:["mdLinkText"],attrs:{depth:t,first:!0,last:!0,href:e.url},start:e.position.start.offset,end:e.position.end.offset}]}(e,t);const a=[{marks:["mdMark"],attrs:{depth:t,first:!0},start:e.position.start.offset,end:e.position.start.offset+1}];for(const r of e.children)for(const n of Di(r,t+1))n.marks.push("mdLinkText"),n.attrs.href=e.url,a.push(n);return i+2<n&&a.push({marks:["mdMark"],attrs:{depth:t},start:i,end:i+2},{marks:["mdLinkUri"],attrs:{depth:t},start:i+2,end:n-1}),a.push({marks:["mdMark"],attrs:{depth:t,last:!0},start:n-1,end:n}),a}(e,t);default:return console.warn("unknow mdast token:",e),[]}}p.gfmAutolinkLiteralFromMarkdown.transforms=[];const Bi={delete:!0,text:!0,emphasis:!0,strong:!0,html:!0,inlineCode:!0,break:!0,image:!0,imageReference:!0,footnote:!0,footnoteReference:!0,link:!0,linkReference:!0},Li={extensions:[{disable:{null:["blockQuote","characterEscape","characterReference","codeFenced","codeIndented","definition","headingAtx","htmlFlow","list","thematicBreak"]}},f.gfmStrikethrough({singleTilde:!1}),d.gfmAutolinkLiteral],mdastExtensions:[u.gfmStrikethroughFromMarkdown,p.gfmAutolinkLiteralFromMarkdown]};function Fi(e){for(const r of e)r.end-r.start!=0&&(r.marks=(t=r.marks).length<=1?t:t.includes("mdMark")?["mdMark"]:t.includes("mdCodeText")?["mdCodeText"]:t.includes("mdText")?t.filter((e=>"mdText"!==e)):t);var t;return e}function Ji(e){const t=function(e){var t;const r=[],n=[];for(let o=0;o<e.length;o++){const i=e[o];if("html"===i.type){const e=Ho(i.value),a={tag:e,voidElement:!!J.default[e],isClosingTag:Fo(i.value),index:o};a.voidElement?i.complete=!0:a.isClosingTag?(null===(t=r[r.length-1])||void 0===t?void 0:t.tag)===a.tag&&r.length>=1&&(n.push([r.pop(),a]),i.complete=!0):r.push(a)}}for(let e=0;e<n.length;e++){const t=n[e],r=t[0].index,o=t[1].index;n.findIndex((e=>e[0].index<r&&e[1].index>o))>=0&&(n.splice(e,1),e--)}return n}(e);let r=0;t.forEach((t=>{const n=t[0].index+r,o=t[1].index+r;!function(e,t,r){const n=g.cloneDeep(e[t]);for(let o=t+1;o<=r;o++)n.value+=e[o].value||"",n.position.end=e[o].position.end,n.complete=!0;e.splice(t,r-t+1,n)}(e,n,o),r+=n-o}))}function Ki(e){const t=function(e){try{const t=O.fromMarkdown(e,Li);if(0===t.children.length)return[];if(1!==t.children.length)throw Error(`root.children has ${t.children.length} children`);const r=t.children[0];if("paragraph"!==r.type)throw Error(`unknow child type ${r.type}`);for(const e of r.children)if(!Bi[e.type])throw Error(`got unknow phrasingContent token: ${JSON.stringify(e)}`);return r.children}catch(t){console.warn(`failed to parse inline markdown text ${JSON.stringify(e)}: ${t}`)}return[]}(e);return function(e){for(const t of e)if("html"===t.type&&!ti.includes(Ho(t.value)))return!0;return!1}(t)?function(e,t=1){Ji(e);const r=[];return e.forEach((e=>{if("html"===e.type)e.complete?r.push({marks:["mdHtmlInline"],attrs:{depth:1,htmlText:e.value,key:h.nanoid(),first:!0,last:!0},start:e.position.start.offset,end:e.position.end.offset}):r.push({marks:["mdText"],attrs:{depth:t,first:!0,last:!0},start:e.position.start.offset,end:e.position.end.offset});else{const n=Di(e,t);r.push(...Fi(n))}})),r}(t):function(e,t=1){const r=[];for(const n of e){const e=Di(n,t);r.push(...Fi(e))}return r}(t)}var Hi;function ea(e,t,r,n){t.attrs.inlineDecorateType!==Hi.Ignore&&(t.isTextblock?function(e,t,r,n){if(!t.textContent)return;const o=Ki(t.textContent);for(const t of o){const o=t.marks.map((r=>e.marks[r].create(t.attrs)));n.push([r+t.start,r+t.end,o])}}(e,t,r,n):t.forEach(((t,o)=>{ea(e,t,r+o+1,n)})))}function ta(e,t,r,n){if(t.isTextblock){ea(e.doc.type.schema,t,r,n)}else for(const[o,i]of Gi(t))ta(e,o,r+i+1,n)}function ra(e,t){e.setMeta("APPLY_MARKS",!0);const{$from:r,$to:n}=e.selection,o=r.blockRange(n),i=[];if(!o||t)ta(e,e.doc,0,i);else for(const[t,r]of function*(e){let t=e.start+1;for(const[r,,n]of Gi(e.parent))if(!(n<e.startIndex)){if(n>=e.endIndex)break;yield[r,t],t+=r.nodeSize}}(o))ta(e,t,r,i);return i.length&&e.step(new Mi(i)),!!e.docChanged}function na({left:e,right:t,mark:r}){return n=>{const{tr:o,dispatch:i,state:a}=n,{$from:s,$to:l,empty:c}=a.selection,O=s.parent,p=s.start();let u=s.index(),d=l.index();0===l.textOffset&&(c?u=Math.max(u-1,0):d>u&&d--);const f=function(e,t,r,n,o){for(let o=r;o<=n;o++)if(aa(e.maybeChild(o),t))return o;if(o||r===n){if(aa(e.maybeChild(r),"mdMark")&&aa(e.maybeChild(r-1),t))return r-1;if(aa(e.maybeChild(n),"mdMark")&&aa(e.maybeChild(n+1),t))return n+1}return!1}(O,r,u,d,c);if(!1!==f){let r=!1;for(let e=f;e<O.childCount;e++){const n=O.child(e);aa(n,"mdMark")&&n.text===t&&(sa(o,O,p,e),r=!0)}for(let t=f;t>=0;t--){const n=O.child(t);aa(n,"mdMark")&&n.text===e&&(sa(o,O,p,t),r=!0)}if(r)return i&&(ra(o),i(o)),!0}return!1}}function oa({left:e,right:t,mark:r}){return n=>{const{$from:o,$to:i}=n.state.selection;return!(!o.sameParent(i)||!o.parent.type.isTextblock)&&(!!na({left:e,right:t,mark:r})(n)||(!!function({left:e,right:t}){return r=>{const{tr:n,dispatch:o,state:i}=r,{$from:a,$to:s,anchor:l,head:c}=i.selection;if(o){n.insertText(t,s.pos),n.insertText(e,a.pos);const r=e.length;n.setSelection(bt.create(n.doc,l+r,c+r)),ra(n),o(n)}return!0}}({left:e,right:t,mark:r})(n)||void 0))}}function ia(e){switch(e){case"mdStrong":return oa({mark:e,left:"**",right:"**"});case"mdEm":return oa({mark:e,left:"*",right:"*"});case"mdCodeText":return oa({mark:e,left:"`",right:"`"});case"mdDel":return oa({mark:e,left:"~~",right:"~~"});default:!function(e){throw new Error(`Unknown mark to toggle: ${e}`)}(e)}}function aa(e,t){return!!e&&e.marks.some((e=>e.type.name===t))}function sa(e,t,r,n){let o=r;for(let e=0;e<n;e++)o+=t.child(e).nodeSize;return e.delete(o,o+t.child(n).nodeSize)}!function(e){e.Ignore="IGNORE"}(Hi||(Hi={}));let la=(()=>{let e,t,r=[y.extension({defaultOptions:{handleViewImgSrcUrl:async e=>e}})],n=[],o=y.MarkExtension;return t=class extends o{get name(){return"mdHtmlInline"}createMarkSpec(){return{attrs:{depth:{default:0},key:{default:""},htmlText:{default:""}},toDOM:e=>["span",{...e.attrs},0]}}createNodeViews(){return e=>{const t=document.createElement("span");(new DOMParser).parseFromString(e.attrs.htmlText||"","text/html").body.childNodes.forEach((e=>{if((r=e)&&"IMG"===(null===(n=r.tagName)||void 0===n?void 0:n.toLocaleUpperCase())&&e.src&&this.options.handleViewImgSrcUrl){let t=e.src;e.src.includes(location.origin)&&(t=e.src.split(location.origin)[1]),this.options.handleViewImgSrcUrl(t).then((t=>{e.src=t}))}var r,n;t.appendChild(e)}));const r=document.createElement("span");return t.appendChild(r),t.setAttribute("key",e.attrs.key),r.setAttribute("class","md-html-inline"),{dom:t,contentDOM:r}}}},No(t,"LineHtmlInlineExtension"),(()=>{var i;const a="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(i=o[Symbol.metadata])&&void 0!==i?i:null):void 0;Vo(null,e={value:t},r,{kind:"class",name:t.name,metadata:a},null,n),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a})})(),t.disableExtraAttributes=!0,Io(t,n),t})();const ca={depth:{default:0}},Oa={depth:{default:0},first:{default:!1},last:{default:!1}};class pa extends c.MarkExtension{get name(){return"mdMark"}createMarkSpec(){return{inclusive:!1,attrs:Oa,toDOM:()=>["span",{class:"md-mark"},0]}}createCommands(){return{toggleInlineMark:ia}}}pa.disableExtraAttributes=!0;class ua extends c.MarkExtension{get name(){return"mdText"}createMarkSpec(){return{attrs:Oa,toDOM:()=>["span",0]}}}ua.disableExtraAttributes=!0;let da=(()=>{var e;let t,r=c.MarkExtension,n=[];return e=class extends r{get name(){return"mdEm"}createMarkSpec(){return{attrs:ca,toDOM:()=>["em",0]}}shortcut(e){return ia(this.name)(e)}constructor(){super(...arguments),Io(this,n)}},(()=>{var o;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(o=r[Symbol.metadata])&&void 0!==o?o:null):void 0;t=[c.keyBinding({shortcut:"mod-i",command:"toggleEmphasis"})],Vo(e,null,t,{kind:"method",name:"shortcut",static:!1,private:!1,access:{has:e=>"shortcut"in e,get:e=>e.shortcut},metadata:i},null,n),i&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),e.disableExtraAttributes=!0,e})(),fa=(()=>{var e;let t,r=c.MarkExtension,n=[];return e=class extends r{get name(){return"mdStrong"}createMarkSpec(){return{attrs:ca,toDOM:()=>["strong",0]}}shortcut(e){return ia(this.name)(e)}constructor(){super(...arguments),Io(this,n)}},(()=>{var o;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(o=r[Symbol.metadata])&&void 0!==o?o:null):void 0;t=[c.keyBinding({shortcut:"mod-b",command:"toggleStrong"})],Vo(e,null,t,{kind:"method",name:"shortcut",static:!1,private:!1,access:{has:e=>"shortcut"in e,get:e=>e.shortcut},metadata:i},null,n),i&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),e.disableExtraAttributes=!0,e})(),ha=(()=>{var e;let t,r=c.MarkExtension,n=[];return e=class extends r{get name(){return"mdCodeText"}createMarkSpec(){return{attrs:ca,toDOM:()=>["code",0]}}shortcut(e){return ia(this.name)(e)}constructor(){super(...arguments),Io(this,n)}},(()=>{var o;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(o=r[Symbol.metadata])&&void 0!==o?o:null):void 0;t=[c.keyBinding({shortcut:"mod-e",command:"toggleCodeText"})],Vo(e,null,t,{kind:"method",name:"shortcut",static:!1,private:!1,access:{has:e=>"shortcut"in e,get:e=>e.shortcut},metadata:i},null,n),i&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),e.disableExtraAttributes=!0,e})();class ma extends c.MarkExtension{get name(){return"mdCodeSpace"}createMarkSpec(){return{attrs:ca,toDOM:()=>["span",0]}}}ma.disableExtraAttributes=!0;let ga=(()=>{var e;let t,r=c.MarkExtension,n=[];return e=class extends r{get name(){return"mdDel"}createMarkSpec(){return{attrs:ca,toDOM:()=>["del",0]}}shortcut(e){return ia(this.name)(e)}constructor(){super(...arguments),Io(this,n)}},(()=>{var o;const i="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(o=r[Symbol.metadata])&&void 0!==o?o:null):void 0;t=[c.keyBinding({shortcut:"mod-shift-s",command:"toggleDelete"})],Vo(e,null,t,{kind:"method",name:"shortcut",static:!1,private:!1,access:{has:e=>"shortcut"in e,get:e=>e.shortcut},metadata:i},null,n),i&&Object.defineProperty(e,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),e.disableExtraAttributes=!0,e})();class ya extends c.MarkExtension{get name(){return"mdLinkText"}createMarkSpec(){return{attrs:{...ca,href:{default:""}},toDOM:e=>["a",{href:e.attrs.href},0]}}}ya.disableExtraAttributes=!0;class Sa extends c.MarkExtension{get name(){return"mdLinkUri"}createMarkSpec(){return{spanning:!1,attrs:ca,toDOM:()=>["a",{class:"md-link"},0]}}}Sa.disableExtraAttributes=!0;class ba extends c.MarkExtension{get name(){return"mdImgText"}createMarkSpec(){return{spanning:!1,attrs:ca,toDOM:()=>["span",{class:"md-img-text"},0]}}}ba.disableExtraAttributes=!0;let Qa=(()=>{let e,t,r=[c.extension({defaultOptions:{handleViewImgSrcUrl:async e=>e}})],n=[],o=c.MarkExtension;return t=class extends o{constructor(){super(...arguments),this.createNodeViews=()=>e=>{const t=document.createElement("span"),r=document.createElement("img");this.options.handleViewImgSrcUrl?this.options.handleViewImgSrcUrl(e.attrs.href).then((e=>{r.setAttribute("src",Ni(e))})):r.setAttribute("src",Ni(e.attrs.href));const n=document.createElement("span");return n.appendChild(r),n.appendChild(t),n.setAttribute("class","md-img-uri"),{dom:n,contentDOM:t}}}get name(){return"mdImgUri"}createMarkSpec(){return{spanning:!1,attrs:{...ca,key:{default:""},href:{default:""}}}}},No(t,"ImgUri"),(()=>{var i;const a="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(i=o[Symbol.metadata])&&void 0!==i?i:null):void 0;Vo(null,e={value:t},r,{kind:"class",name:t.name,metadata:a},null,n),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a})})(),t.disableExtraAttributes=!0,Io(t,n),t})();const wa={mdMark:!0,mdLinkUri:!0,mdImgText:!0,mdImgUri:!0,mdHtmlInline:!0};const $a=(e={})=>[new pa,new ua,new da,new fa,new ha,new ma,new ga,new ya,new Sa,new ba,new Qa({handleViewImgSrcUrl:e.handleViewImgSrcUrl}),new la({handleViewImgSrcUrl:e.handleViewImgSrcUrl})];function xa(e){const t={};for(const n of(null==e?void 0:e.marks)||[])r=n.type.name,wa[r]&&(t.isAutoHideMark=!0),Object.assign(t,n.attrs);var r;return t}function Pa(e,t,r,n){const o=[];let i=t;for(let t=r;t<e.content.childCount;t++){const r=e.content.child(t),n=xa(r);if(n.isAutoHideMark&&o.push([i,i+r.nodeSize]),i+=r.nodeSize,1===n.depth&&n.last)break}const a=xa(e.maybeChild(r));if(1===a.depth&&a.first&&!n)return o;let s=t;for(let t=r-1;t>=0;t--){const r=e.content.child(t),n=xa(r);if(n.isAutoHideMark&&o.push([s-r.nodeSize,s]),s-=r.nodeSize,1===n.depth&&n.first)break}return o}class va extends c.PlainExtension{get name(){return"inlineDecoration"}createPlugin(){return{props:{decorations:e=>{if(!c.isTextSelection(e.selection))return null;const t=e.selection.$anchor,r=t.parent;if(!r.isTextblock)return null;let n;if(0===t.textOffset)n=Pa(r,t.pos,t.index(t.depth),!0);else{const e=t.index(t.depth),o=r.content.maybeChild(e);if(!o)return null;if(!xa(o).depth)return null;n=Pa(r,t.pos-t.textOffset,t.index(t.depth),!1)}return gn.create(e.doc,n.map((([e,t])=>fn.inline(e,t,{class:"show"}))))}}}}}class ka extends y.PlainExtension{get name(){return"inlineMark"}createPlugin(){let e=null;const t=t=>{e&&clearTimeout(e),e=setTimeout((()=>{!function(e){if(e.isDestroyed)return;const t=e.state.tr;t.setMeta("addToHistory",!1),ra(t)&&e.dispatch(t)}(t),e=null}),100)};let r=null;return{appendTransaction:e=>{let n=!1;for(const t of e)if(t.docChanged&&!t.getMeta("APPLY_MARKS")){n=!0;break}n&&r&&!r.isDestroyed&&t(r)},view:e=>(r=e,{})}}}class Za extends j.HeadingExtension{createNodeSpec(e,t){return{...super.createNodeSpec(e,t),content:"text*"}}createKeymap(){const e={Backspace:({state:e,dispatch:t})=>{const{selection:r}=e;if(!r.empty)return!1;const n=c.findParentNodeOfType({types:this.type,selection:r});if((null==n?void 0:n.start)!==r.from)return!1;const o=e.tr.setBlockType(n.start,n.start,e.schema.nodes.paragraph);return t&&t(o),!0}};return this.options.levels.forEach((t=>{e[`mod-${t}`]=c.convertCommand(function(e,t=null){return function(r,n){let o=!1;for(let n=0;n<r.selection.ranges.length&&!o;n++){let{$from:{pos:i},$to:{pos:a}}=r.selection.ranges[n];r.doc.nodesBetween(i,a,((n,i)=>{if(o)return!1;if(n.isTextblock&&!n.hasMarkup(e,t))if(n.type==e)o=!0;else{let t=r.doc.resolve(i),n=t.index();o=t.parent.canReplaceWith(n,n+1,e)}}))}if(!o)return!1;if(n){let o=r.tr;for(let n=0;n<r.selection.ranges.length;n++){let{$from:{pos:i},$to:{pos:a}}=r.selection.ranges[n];o.setBlockType(i,a,e,t)}n(o.scrollIntoView())}return!0}}(this.type,{level:t}))})),e}fromMarkdown(){return[{type:Lo.block,token:"heading",node:this.name,hasOpenClose:!0,getAttrs:e=>({level:+e.tag.slice(1)})}]}toMarkdown({state:e,node:t}){e.write(e.repeat("#",t.attrs.level)+" "),e.renderInline(t),e.closeBlock(t)}}class Ta extends _o{createNodeSpec(e,t){return{...super.createNodeSpec(e,t),whitespace:"pre"}}fromMarkdown(){return[{type:Lo.block,token:"paragraph",node:this.name,hasOpenClose:!0}]}toMarkdown({state:e,node:t}){e.renderInline(t),e.closeBlock(t)}}class Ea extends qo{fromMarkdown(){return[{type:Lo.text,token:"text",getText:e=>e.content},{type:Lo.text,token:"inline",getText:e=>e.content},{type:Lo.text,token:"softbreak",getText:e=>"\n"}]}toMarkdown({state:e,node:t}){e.text(t.text||"")}}class Ra extends S.ListExtension{fromMarkdown(){return[{type:Lo.free,token:"list_item_open",handler:e=>{switch(e.topContext()){case"ordered_list":e.openNode(this.type,{kind:"ordered"});break;case"bullet_list":e.openNode(this.type,{kind:"bullet"});break;default:throw new Error("unknown context")}}},{type:Lo.free,token:"list_checkbox",handler:(e,t)=>{const r=e.stack[e.stack.length-1];if("list"===(null==r?void 0:r.type.name)){const e=t.attrGet("checked"),n={kind:"task",checked:c.isString(e)||!!e};r.attrs=n}else console.warn(`expect list but got ${null==r?void 0:r.type.name}`)}},{type:Lo.free,token:"list_item_close",handler:e=>{e.closeNode()}},{type:Lo.context,token:"bullet_list",context:"bullet_list"},{type:Lo.context,token:"ordered_list",context:"ordered_list"}]}toMarkdown({state:e,node:t,counter:r}){const n=t.attrs;let o="";"ordered"===n.kind?o=`${r}. `:"task"===n.kind?o=n.checked?"- [x] ":"- [ ] ":"bullet"===n.kind&&(o="- "),e.wrapBlock(" ".repeat(o.length),o,t,(()=>e.renderContent(t)))}}class Xa extends Yn{fromMarkdown(){return[{type:Lo.block,token:"blockquote",node:this.name,hasOpenClose:!0}]}toMarkdown({state:e,node:t}){e.wrapBlock("> ",null,t,(()=>e.renderContent(t)))}}const Ca=["tableCell"];class ja extends j.HardBreakExtension{fromMarkdown(){return[]}toMarkdown({state:e,node:t,parent:r,index:n}){for(let o=n+1;o<r.childCount;o++)if(r.child(o).type!=t.type)return void e.write("\n")}createKeymap(){const e=new Set(["heading"]),t=c.convertCommand(io.Enter),r=c.chainCommands(c.convertCommand(Dn),(r=>{const{state:n,tr:o,dispatch:i}=r,{$from:a,$to:s,from:l,to:c}=n.selection,O=!e.has(a.parent.type.name)&&!e.has(s.parent.type.name),p=a.parent.type.name;if(O){const e=n.schema;return Ca.includes(p)?null==i||i(o.replaceRangeWith(l,c,e.text("<br/>\n"))):null==i||i(o.replaceRangeWith(l,c,e.text("\n"))),!0}return t(r)}));return{"Mod-Enter":r,"Shift-Enter":r}}}class Ya extends Eo{fromMarkdown(){return[{type:Lo.block,token:"hr",node:this.name,hasOpenClose:!1}]}toMarkdown({state:e,node:t}){e.write("---"),e.closeBlock(t)}}var _a,Aa={exports:{}},Wa=Array.prototype.slice,qa=Object.prototype.toString,Va=function(e){var t=this;if("function"!=typeof t||"[object Function]"!==qa.call(t))throw new TypeError("Function.prototype.bind called on incompatible "+t);for(var r,n=Wa.call(arguments,1),o=Math.max(0,t.length-n.length),i=[],a=0;a<o;a++)i.push("$"+a);if(r=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof r){var o=t.apply(this,n.concat(Wa.call(arguments)));return Object(o)===o?o:this}return t.apply(e,n.concat(Wa.call(arguments)))})),t.prototype){var s=function(){};s.prototype=t.prototype,r.prototype=new s,s.prototype=null}return r},Ia=Function.prototype.bind||Va,Na=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},za="undefined"!=typeof Symbol&&Symbol,Ma=Na,Ua=function(){return"function"==typeof za&&("function"==typeof Symbol&&("symbol"==typeof za("foo")&&("symbol"==typeof Symbol("bar")&&Ma())))},Ga={foo:{}},Da=Object,Ba=function(){return{__proto__:Ga}.foo===Ga.foo&&!({__proto__:null}instanceof Da)},La=Ia.call(Function.call,Object.prototype.hasOwnProperty),Fa=SyntaxError,Ja=Function,Ka=TypeError,Ha=function(e){try{return Ja('"use strict"; return ('+e+").constructor;")()}catch(e){}},es=Object.getOwnPropertyDescriptor;if(es)try{es({},"")}catch(e){es=null}var ts=function(){throw new Ka},rs=es?function(){try{return ts}catch(e){try{return es(arguments,"callee").get}catch(e){return ts}}}():ts,ns=Ua(),is=Ba(),as=Object.getPrototypeOf||(is?function(e){return e.__proto__}:null),ss={},ls="undefined"!=typeof Uint8Array&&as?as(Uint8Array):_a,cs={"%AggregateError%":"undefined"==typeof AggregateError?_a:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?_a:ArrayBuffer,"%ArrayIteratorPrototype%":ns&&as?as([][Symbol.iterator]()):_a,"%AsyncFromSyncIteratorPrototype%":_a,"%AsyncFunction%":ss,"%AsyncGenerator%":ss,"%AsyncGeneratorFunction%":ss,"%AsyncIteratorPrototype%":ss,"%Atomics%":"undefined"==typeof Atomics?_a:Atomics,"%BigInt%":"undefined"==typeof BigInt?_a:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?_a:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?_a:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?_a:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?_a:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?_a:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?_a:FinalizationRegistry,"%Function%":Ja,"%GeneratorFunction%":ss,"%Int8Array%":"undefined"==typeof Int8Array?_a:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?_a:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?_a:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ns&&as?as(as([][Symbol.iterator]())):_a,"%JSON%":"object"==typeof JSON?JSON:_a,"%Map%":"undefined"==typeof Map?_a:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&ns&&as?as((new Map)[Symbol.iterator]()):_a,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?_a:Promise,"%Proxy%":"undefined"==typeof Proxy?_a:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?_a:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?_a:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&ns&&as?as((new Set)[Symbol.iterator]()):_a,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?_a:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ns&&as?as(""[Symbol.iterator]()):_a,"%Symbol%":ns?Symbol:_a,"%SyntaxError%":Fa,"%ThrowTypeError%":rs,"%TypedArray%":ls,"%TypeError%":Ka,"%Uint8Array%":"undefined"==typeof Uint8Array?_a:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?_a:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?_a:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?_a:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?_a:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?_a:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?_a:WeakSet};if(as)try{null.error}catch(e){var Os=as(as(e));cs["%Error.prototype%"]=Os}var ps=function e(t){var r;if("%AsyncFunction%"===t)r=Ha("async function () {}");else if("%GeneratorFunction%"===t)r=Ha("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=Ha("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&as&&(r=as(o.prototype))}return cs[t]=r,r},us={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ds=Ia,fs=La,hs=ds.call(Function.call,Array.prototype.concat),ms=ds.call(Function.apply,Array.prototype.splice),gs=ds.call(Function.call,String.prototype.replace),ys=ds.call(Function.call,String.prototype.slice),Ss=ds.call(Function.call,RegExp.prototype.exec),bs=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qs=/\\(\\)?/g,ws=function(e,t){var r,n=e;if(fs(us,n)&&(n="%"+(r=us[n])[0]+"%"),fs(cs,n)){var o=cs[n];if(o===ss&&(o=ps(n)),void 0===o&&!t)throw new Ka("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:o}}throw new Fa("intrinsic "+e+" does not exist!")},$s=function(e,t){if("string"!=typeof e||0===e.length)throw new Ka("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new Ka('"allowMissing" argument must be a boolean');if(null===Ss(/^%?[^%]*%?$/,e))throw new Fa("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=ys(e,0,1),r=ys(e,-1);if("%"===t&&"%"!==r)throw new Fa("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new Fa("invalid intrinsic syntax, expected opening `%`");var n=[];return gs(e,bs,(function(e,t,r,o){n[n.length]=r?gs(o,Qs,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",o=ws("%"+n+"%",t),i=o.name,a=o.value,s=!1,l=o.alias;l&&(n=l[0],ms(r,hs([0,1],l)));for(var c=1,O=!0;c<r.length;c+=1){var p=r[c],u=ys(p,0,1),d=ys(p,-1);if(('"'===u||"'"===u||"`"===u||'"'===d||"'"===d||"`"===d)&&u!==d)throw new Fa("property names with quotes must have matching quotes");if("constructor"!==p&&O||(s=!0),fs(cs,i="%"+(n+="."+p)+"%"))a=cs[i];else if(null!=a){if(!(p in a)){if(!t)throw new Ka("base intrinsic for "+e+" exists, but the property is not available.");return}if(es&&c+1>=r.length){var f=es(a,p);a=(O=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:a[p]}else O=fs(a,p),a=a[p];O&&!s&&(cs[i]=a)}}return a};!function(e){var t=Ia,r=$s,n=r("%Function.prototype.apply%"),o=r("%Function.prototype.call%"),i=r("%Reflect.apply%",!0)||t.call(o,n),a=r("%Object.getOwnPropertyDescriptor%",!0),s=r("%Object.defineProperty%",!0),l=r("%Math.max%");if(s)try{s({},"a",{value:1})}catch(e){s=null}e.exports=function(e){var r=i(t,o,arguments);a&&s&&(a(r,"length").configurable&&s(r,"length",{value:1+l(0,e.length-(arguments.length-1))}));return r};var c=function(){return i(t,n,arguments)};s?s(e.exports,"apply",{value:c}):e.exports.apply=c}(Aa);var xs,Ps,vs=Object.prototype.toString,ks=function(e){var t=vs.call(e),r="[object Arguments]"===t;return r||(r="[object Array]"!==t&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===vs.call(e.callee)),r};var Zs=Array.prototype.slice,Ts=ks,Es=Object.keys,Rs=Es?function(e){return Es(e)}:function(){if(Ps)return xs;var e;if(Ps=1,!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=ks,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),a=o.call((function(){}),"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(e){var t=e.constructor;return t&&t.prototype===e},c={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},O=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!c["$"+e]&&t.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{l(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();e=function(e){var o=null!==e&&"object"==typeof e,c="[object Function]"===r.call(e),p=n(e),u=o&&"[object String]"===r.call(e),d=[];if(!o&&!c&&!p)throw new TypeError("Object.keys called on a non-object");var f=a&&c;if(u&&e.length>0&&!t.call(e,0))for(var h=0;h<e.length;++h)d.push(String(h));if(p&&e.length>0)for(var m=0;m<e.length;++m)d.push(String(m));else for(var g in e)f&&"prototype"===g||!t.call(e,g)||d.push(String(g));if(i)for(var y=function(e){if("undefined"==typeof window||!O)return l(e);try{return l(e)}catch(e){return!1}}(e),S=0;S<s.length;++S)y&&"constructor"===s[S]||!t.call(e,s[S])||d.push(s[S]);return d}}return xs=e}(),Xs=Object.keys;Rs.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return Ts(e)?Xs(Zs.call(e)):Xs(e)})}else Object.keys=Rs;return Object.keys||Rs};var Cs=Rs,js=$s("%Object.defineProperty%",!0),Ys=function(){if(js)try{return js({},"a",{value:1}),!0}catch(e){return!1}return!1};Ys.hasArrayLengthDefineBug=function(){if(!Ys())return null;try{return 1!==js([],"length",{value:1}).length}catch(e){return!0}};var _s=Ys,As=Cs,Ws="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),qs=Object.prototype.toString,Vs=Array.prototype.concat,Is=Object.defineProperty,Ns=_s(),zs=Is&&Ns,Ms=function(e,t,r,n){if(t in e)if(!0===n){if(e[t]===r)return}else if("function"!=typeof(o=n)||"[object Function]"!==qs.call(o)||!n())return;var o;zs?Is(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r},Us=function(e,t){var r=arguments.length>2?arguments[2]:{},n=As(t);Ws&&(n=Vs.call(n,Object.getOwnPropertySymbols(t)));for(var o=0;o<n.length;o+=1)Ms(e,n[o],t[n[o]],r[n[o]])};Us.supportsDescriptors=!!zs;var Gs,Ds,Bs,Ls=Us,Fs=$s,Js=Aa.exports,Ks=Js(Fs("String.prototype.indexOf")),Hs=function(e,t){var r=Fs(e,!!t);return"function"==typeof r&&Ks(e,".prototype.")>-1?Js(r):r},el={exports:{}};function tl(){if(Ds)return Gs;Ds=1;var e=$s("%Array%"),t=!e.isArray&&Hs("Object.prototype.toString");return Gs=e.isArray||function(e){return"[object Array]"===t(e)}}function rl(){return Bs||(Bs=1,function(e){e.exports=tl()}(el)),el.exports}var nl,ol,il,al,sl,ll,cl,Ol,pl,ul,dl=$s,fl=Hs,hl=dl("%TypeError%"),ml=rl(),gl=dl("%Reflect.apply%",!0)||fl("Function.prototype.apply"),yl=function(e,t){var r=arguments.length>2?arguments[2]:[];if(!ml(r))throw new hl("Assertion failed: optional `argumentsList`, if provided, must be a List");return gl(e,t,r)};function Sl(){if(al)return il;al=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&"function"==typeof t.get?t.get:null,n=e&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,s=o&&Set.prototype.forEach,l="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,c="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,O="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,u=Object.prototype.toString,d=Function.prototype.toString,f=String.prototype.match,h=String.prototype.slice,m=String.prototype.replace,g=String.prototype.toUpperCase,y=String.prototype.toLowerCase,S=RegExp.prototype.test,b=Array.prototype.concat,Q=Array.prototype.join,w=Array.prototype.slice,$=Math.floor,x="function"==typeof BigInt?BigInt.prototype.valueOf:null,P=Object.getOwnPropertySymbols,v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,Z="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,T=Object.prototype.propertyIsEnumerable,E=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-$(-e):$(e);if(n!==e){var o=String(n),i=h.call(t,o.length+1);return m.call(o,r,"$&_")+"."+m.call(m.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return m.call(t,r,"$&_")}var X=ol?nl:(ol=1,nl=K.default.inspect),C=X.custom,j=q(C)?C:null;function Y(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function _(e){return m.call(String(e),/"/g,"&quot;")}function A(e){return!("[object Array]"!==N(e)||Z&&"object"==typeof e&&Z in e)}function W(e){return!("[object RegExp]"!==N(e)||Z&&"object"==typeof e&&Z in e)}function q(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!v)return!1;try{return v.call(e),!0}catch(e){}return!1}il=function e(t,o,i,u){var g=o||{};if(I(g,"quoteStyle")&&"single"!==g.quoteStyle&&"double"!==g.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(I(g,"maxStringLength")&&("number"==typeof g.maxStringLength?g.maxStringLength<0&&g.maxStringLength!==1/0:null!==g.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var S=!I(g,"customInspect")||g.customInspect;if("boolean"!=typeof S&&"symbol"!==S)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(I(g,"indent")&&null!==g.indent&&"\t"!==g.indent&&!(parseInt(g.indent,10)===g.indent&&g.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(I(g,"numericSeparator")&&"boolean"!=typeof g.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var $=g.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return M(t,g);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var P=String(t);return $?R(t,P):P}if("bigint"==typeof t){var C=String(t)+"n";return $?R(t,C):C}var V=void 0===g.depth?5:g.depth;if(void 0===i&&(i=0),i>=V&&V>0&&"object"==typeof t)return A(t)?"[Array]":"[Object]";var U=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=Q.call(Array(e.indent+1)," ")}return{base:r,prev:Q.call(Array(t+1),r)}}(g,i);if(void 0===u)u=[];else if(z(u,t)>=0)return"[Circular]";function J(t,r,n){if(r&&(u=w.call(u)).push(r),n){var o={depth:g.depth};return I(g,"quoteStyle")&&(o.quoteStyle=g.quoteStyle),e(t,o,i+1,u)}return e(t,g,i+1,u)}if("function"==typeof t&&!W(t)){var K=function(e){if(e.name)return e.name;var t=f.call(d.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),H=F(t,J);return"[Function"+(K?": "+K:" (anonymous)")+"]"+(H.length>0?" { "+Q.call(H,", ")+" }":"")}if(q(t)){var ee=k?m.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):v.call(t);return"object"!=typeof t||k?ee:G(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+y.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+Y(_(re[ne].value),"double",g);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+y.call(String(t.nodeName))+">"}if(A(t)){if(0===t.length)return"[]";var oe=F(t,J);return U&&!function(e){for(var t=0;t<e.length;t++)if(z(e[t],"\n")>=0)return!1;return!0}(oe)?"["+L(oe,U)+"]":"[ "+Q.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==N(e)||Z&&"object"==typeof e&&Z in e)}(t)){var ie=F(t,J);return"cause"in Error.prototype||!("cause"in t)||T.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+Q.call(ie,", ")+" }":"{ ["+String(t)+"] "+Q.call(b.call("[cause]: "+J(t.cause),ie),", ")+" }"}if("object"==typeof t&&S){if(j&&"function"==typeof t[j]&&X)return X(t,{depth:V-i});if("symbol"!==S&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!r||!e||"object"!=typeof e)return!1;try{r.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var ae=[];return n&&n.call(t,(function(e,r){ae.push(J(r,t,!0)+" => "+J(e,t))})),B("Map",r.call(t),ae,U)}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{r.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var se=[];return s&&s.call(t,(function(e){se.push(J(e,t))})),B("Set",a.call(t),se,U)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e,l);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return D("WeakMap");if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{l.call(e,l)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return D("WeakSet");if(function(e){if(!O||!e||"object"!=typeof e)return!1;try{return O.call(e),!0}catch(e){}return!1}(t))return D("WeakRef");if(function(e){return!("[object Number]"!==N(e)||Z&&"object"==typeof e&&Z in e)}(t))return G(J(Number(t)));if(function(e){if(!e||"object"!=typeof e||!x)return!1;try{return x.call(e),!0}catch(e){}return!1}(t))return G(J(x.call(t)));if(function(e){return!("[object Boolean]"!==N(e)||Z&&"object"==typeof e&&Z in e)}(t))return G(p.call(t));if(function(e){return!("[object String]"!==N(e)||Z&&"object"==typeof e&&Z in e)}(t))return G(J(String(t)));if(!function(e){return!("[object Date]"!==N(e)||Z&&"object"==typeof e&&Z in e)}(t)&&!W(t)){var le=F(t,J),ce=E?E(t)===Object.prototype:t instanceof Object||t.constructor===Object,Oe=t instanceof Object?"":"null prototype",pe=!ce&&Z&&Object(t)===t&&Z in t?h.call(N(t),8,-1):Oe?"Object":"",ue=(ce||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||Oe?"["+Q.call(b.call([],pe||[],Oe||[]),": ")+"] ":"");return 0===le.length?ue+"{}":U?ue+"{"+L(le,U)+"}":ue+"{ "+Q.call(le,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function I(e,t){return V.call(e,t)}function N(e){return u.call(e)}function z(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function M(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return M(h.call(e,0,t.maxStringLength),t)+n}return Y(m.call(m.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,U),"single",t)}function U(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+g.call(t.toString(16))}function G(e){return"Object("+e+")"}function D(e){return e+" { ? }"}function B(e,t,r,n){return e+" ("+t+") {"+(n?L(r,n):Q.call(r,", "))+"}"}function L(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+Q.call(e,","+r)+"\n"+t.prev}function F(e,t){var r=A(e),n=[];if(r){n.length=e.length;for(var o=0;o<e.length;o++)n[o]=I(e,o)?t(e[o],e):""}var i,a="function"==typeof P?P(e):[];if(k){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var l in e)I(e,l)&&(r&&String(Number(l))===l&&l<e.length||k&&i["$"+l]instanceof Symbol||(S.call(/[^\w$]/,l)?n.push(t(l,e)+": "+t(e[l],e)):n.push(l+": "+t(e[l],e))));if("function"==typeof P)for(var c=0;c<a.length;c++)T.call(e,a[c])&&n.push("["+t(a[c])+"]: "+t(e[a[c]],e));return n}return il}function bl(){return ll?sl:(ll=1,sl=function(e){return"string"==typeof e||"symbol"==typeof e})}function Ql(){if(ul)return pl;ul=1;var e=Ol?cl:(Ol=1,cl=function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0});return pl=function(t){return"symbol"==typeof t?"Symbol":"bigint"==typeof t?"BigInt":e(t)}}var wl,$l,xl=$s("%TypeError%"),Pl=Sl(),vl=bl(),kl=Ql(),Zl=function(e,t){if("Object"!==kl(e))throw new xl("Assertion failed: Type(O) is not Object");if(!vl(t))throw new xl("Assertion failed: IsPropertyKey(P) is not true, got "+Pl(t));return e[t]};var Tl,El,Rl,Xl={exports:{}};function Cl(){if(El)return Tl;El=1;var e,t,r=Function.prototype.toString,n="object"==typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"==typeof n&&"function"==typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw t}}),t={},n((function(){throw 42}),null,e)}catch(e){e!==t&&(n=null)}else n=null;var o=/^\s*class\b/,i=function(e){try{var t=r.call(e);return o.test(t)}catch(e){return!1}},a=function(e){try{return!i(e)&&(r.call(e),!0)}catch(e){return!1}},s=Object.prototype.toString,l="function"==typeof Symbol&&!!Symbol.toStringTag,c=!(0 in[,]),O=function(){return!1};if("object"==typeof document){var p=document.all;s.call(p)===s.call(document.all)&&(O=function(e){if((c||!e)&&(void 0===e||"object"==typeof e))try{var t=s.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(e){}return!1})}return Tl=n?function(r){if(O(r))return!0;if(!r)return!1;if("function"!=typeof r&&"object"!=typeof r)return!1;try{n(r,null,e)}catch(e){if(e!==t)return!1}return!i(r)&&a(r)}:function(e){if(O(e))return!0;if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(l)return a(e);if(i(e))return!1;var t=s.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&a(e)}}function jl(){return Rl||(Rl=1,function(e){e.exports=Cl()}(Xl)),Xl.exports}var Yl,_l,Al,Wl,ql,Vl,Il=$s("%TypeError%"),Nl=function(){if($l)return wl;$l=1;var e=$s("%TypeError%"),t=Sl(),r=bl();return wl=function(n,o){if(!r(o))throw new e("Assertion failed: IsPropertyKey(P) is not true, got "+t(o));return n[o]}}(),zl=jl(),Ml=bl(),Ul=Sl();function Gl(){if(_l)return Yl;_l=1;var e=Na;return Yl=function(){return e()&&!!Symbol.toStringTag}}function Dl(){if(Wl)return Al;Wl=1;var e,t,r,n,o=Hs,i=Gl()();if(i){e=o("Object.prototype.hasOwnProperty"),t=o("RegExp.prototype.exec"),r={};var a=function(){throw r};n={toString:a,valueOf:a},"symbol"==typeof Symbol.toPrimitive&&(n[Symbol.toPrimitive]=a)}var s=o("Object.prototype.toString"),l=Object.getOwnPropertyDescriptor;return Al=i?function(o){if(!o||"object"!=typeof o)return!1;var i=l(o,"lastIndex");if(!(i&&e(i,"value")))return!1;try{t(o,n)}catch(e){return e===r}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===s(e)}}function Bl(){return Vl?ql:(Vl=1,ql=function(e){return!!e})}var Ll=$s("%Symbol.match%",!0),Fl=Dl(),Jl=Bl(),Kl=$s,Hl=Kl("%String%"),ec=Kl("%TypeError%"),tc=function(e){if("symbol"==typeof e)throw new ec("Cannot convert a Symbol value to a string");return Hl(e)},rc={exports:{}},nc=$s("%TypeError%"),oc=function(e,t){if(null==e)throw new nc(t||"Cannot call method on "+e);return e};!function(e){e.exports=oc}(rc);var ic={exports:{}},ac=function(){return"string"==typeof function(){}.name},sc=Object.getOwnPropertyDescriptor;if(sc)try{sc([],"length")}catch(e){sc=null}ac.functionsHaveConfigurableNames=function(){if(!ac()||!sc)return!1;var e=sc((function(){}),"name");return!!e&&!!e.configurable};var lc=Function.prototype.bind;ac.boundFunctionsHaveNames=function(){return ac()&&"function"==typeof lc&&""!==function(){}.bind().name};var cc=ac;!function(e){var t=cc.functionsHaveConfigurableNames(),r=Object,n=TypeError;e.exports=function(){if(null!=this&&this!==r(this))throw new n("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},t&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})}(ic);var Oc=ic.exports,pc=Ls.supportsDescriptors,uc=Object.getOwnPropertyDescriptor,dc=function(){if(pc&&"gim"===/a/gim.flags){var e=uc(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(r,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return Oc},fc=Ls.supportsDescriptors,hc=dc,mc=Object.getOwnPropertyDescriptor,gc=Object.defineProperty,yc=TypeError,Sc=Object.getPrototypeOf,bc=/a/,Qc=Ls,wc=Aa.exports,$c=ic.exports,xc=dc,Pc=function(){if(!fc||!Sc)throw new yc("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=hc(),t=Sc(bc),r=mc(t,"flags");return r&&r.get===e||gc(t,"flags",{configurable:!0,enumerable:!1,get:e}),e},vc=wc(xc());Qc(vc,{getPolyfill:xc,implementation:$c,shim:Pc});var kc,Zc,Tc,Ec,Rc,Xc,Cc,jc,Yc=vc;function _c(){return Zc?kc:(Zc=1,kc=function(e){return"number"==typeof e&&e>=55296&&e<=56319})}function Ac(){return Ec?Tc:(Ec=1,Tc=function(e){return"number"==typeof e&&e>=56320&&e<=57343})}function Wc(){if(Xc)return Rc;Xc=1;var e=$s,t=e("%TypeError%"),r=e("%String.fromCharCode%"),n=_c(),o=Ac();return Rc=function(e,i){if(!n(e)||!o(i))throw new t("Assertion failed: `lead` must be a leading surrogate char code, and `trail` must be a trailing surrogate char code");return r(e)+r(i)}}function qc(){if(jc)return Cc;jc=1;var e=$s("%TypeError%"),t=Hs,r=_c(),n=Ac(),o=Ql(),i=Wc(),a=t("String.prototype.charAt"),s=t("String.prototype.charCodeAt");return Cc=function(t,l){if("String"!==o(t))throw new e("Assertion failed: `string` must be a String");var c=t.length;if(l<0||l>=c)throw new e("Assertion failed: `position` must be >= 0, and < the length of `string`");var O=s(t,l),p=a(t,l),u=r(O),d=n(O);if(!u&&!d)return{"[[CodePoint]]":p,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!1};if(d||l+1===c)return{"[[CodePoint]]":p,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0};var f=s(t,l+1);return n(f)?{"[[CodePoint]]":i(O,f),"[[CodeUnitCount]]":2,"[[IsUnpairedSurrogate]]":!1}:{"[[CodePoint]]":p,"[[CodeUnitCount]]":1,"[[IsUnpairedSurrogate]]":!0}}}var Vc,Ic,Nc=Number.isNaN||function(e){return e!=e},zc=Nc,Mc=function(e){return("number"==typeof e||"bigint"==typeof e)&&!zc(e)&&e!==1/0&&e!==-1/0};function Uc(){if(Ic)return Vc;Ic=1;var e=$s,t=e("%Math.abs%"),r=e("%Math.floor%"),n=Nc,o=Mc;return Vc=function(e){if("number"!=typeof e||n(e)||!o(e))return!1;var i=t(e);return r(i)===i}}var Gc,Dc,Bc,Lc,Fc,Jc,Kc,Hc,eO,tO,rO,nO,oO,iO,aO,sO,lO,cO,OO,pO,uO,dO,fO,hO,mO,gO,yO,SO,bO,QO,wO=$s,$O=wO("%Math%"),xO=wO("%Number%").MAX_SAFE_INTEGER||$O.pow(2,53)-1;function PO(){if(Jc)return Fc;Jc=1;var e=_s,t=$s,r=e()&&t("%Object.defineProperty%",!0),n=e.hasArrayLengthDefineBug(),o=n&&tl(),i=Hs("Object.prototype.propertyIsEnumerable");return Fc=function(e,t,a,s,l,c){if(!r){if(!e(c))return!1;if(!c["[[Configurable]]"]||!c["[[Writable]]"])return!1;if(l in s&&i(s,l)!==!!c["[[Enumerable]]"])return!1;var O=c["[[Value]]"];return s[l]=O,t(s[l],O)}return n&&"length"===l&&"[[Value]]"in c&&o(s)&&s.length!==c["[[Value]]"]?(s.length=c["[[Value]]"],s.length===c["[[Value]]"]):(r(s,l,a(c)),!0)},Fc}function vO(){if(Hc)return Kc;Hc=1;var e=La;return Kc=function(t){return e(t,"[[StartIndex]]")&&e(t,"[[EndIndex]]")&&t["[[StartIndex]]"]>=0&&t["[[EndIndex]]"]>=t["[[StartIndex]]"]&&String(parseInt(t["[[StartIndex]]"],10))===String(t["[[StartIndex]]"])&&String(parseInt(t["[[EndIndex]]"],10))===String(t["[[EndIndex]]"])}}function kO(){if(tO)return eO;tO=1;var e=$s,t=e("%TypeError%"),r=e("%SyntaxError%"),n=La,o=Uc(),i={"Property Descriptor":function(e){var r={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};if(!e)return!1;for(var o in e)if(n(e,o)&&!r[o])return!1;var i=n(e,"[[Value]]"),a=n(e,"[[Get]]")||n(e,"[[Set]]");if(i&&a)throw new t("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":vO(),"Iterator Record":function(e){return n(e,"[[Iterator]]")&&n(e,"[[NextMethod]]")&&n(e,"[[Done]]")},"PromiseCapability Record":function(e){return!!e&&n(e,"[[Resolve]]")&&"function"==typeof e["[[Resolve]]"]&&n(e,"[[Reject]]")&&"function"==typeof e["[[Reject]]"]&&n(e,"[[Promise]]")&&e["[[Promise]]"]&&"function"==typeof e["[[Promise]]"].then},"AsyncGeneratorRequest Record":function(e){return!!e&&n(e,"[[Completion]]")&&n(e,"[[Capability]]")&&i["PromiseCapability Record"](e["[[Capability]]"])},"RegExp Record":function(e){return e&&n(e,"[[IgnoreCase]]")&&"boolean"==typeof e["[[IgnoreCase]]"]&&n(e,"[[Multiline]]")&&"boolean"==typeof e["[[Multiline]]"]&&n(e,"[[DotAll]]")&&"boolean"==typeof e["[[DotAll]]"]&&n(e,"[[Unicode]]")&&"boolean"==typeof e["[[Unicode]]"]&&n(e,"[[CapturingGroupsCount]]")&&"number"==typeof e["[[CapturingGroupsCount]]"]&&o(e["[[CapturingGroupsCount]]"])&&e["[[CapturingGroupsCount]]"]>=0}};return eO=function(e,n,o,a){var s=i[n];if("function"!=typeof s)throw new r("unknown record type: "+n);if("Object"!==e(a)||!s(a))throw new t(o+" must be a "+n)},eO}function ZO(){return nO?rO:(nO=1,rO=function(e){if(void 0===e)return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t})}function TO(){if(iO)return oO;iO=1;var e=kO(),t=ZO(),r=Ql();return oO=function(n){return void 0!==n&&e(r,"Property Descriptor","Desc",n),t(n)}}function EO(){if(sO)return aO;sO=1;var e=La,t=Ql(),r=kO();return aO=function(n){return void 0!==n&&(r(t,"Property Descriptor","Desc",n),!(!e(n,"[[Value]]")&&!e(n,"[[Writable]]")))}}function RO(){if(cO)return lO;cO=1;var e=Nc;return lO=function(t,r){return t===r?0!==t||1/t==1/r:e(t)&&e(r)}}function XO(){return dO||(dO=1,uO=function(e,t){for(var r=0;r<e.length;r+=1)t(e[r],r,e)}),uO}function CO(){if(hO)return fO;hO=1;var e=$s,t=Hs,r=Sl(),n=e("%TypeError%"),o=e("%WeakMap%",!0),i=e("%Map%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),c=t("Map.prototype.get",!0),O=t("Map.prototype.set",!0),p=t("Map.prototype.has",!0),u=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};return fO=function(){var e,t,d,f={assert:function(e){if(!f.has(e))throw new n("Side channel does not contain "+r(e))},get:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(e)return a(e,r)}else if(i){if(t)return c(t,r)}else if(d)return function(e,t){var r=u(e,t);return r&&r.value}(d,r)},has:function(r){if(o&&r&&("object"==typeof r||"function"==typeof r)){if(e)return l(e,r)}else if(i){if(t)return p(t,r)}else if(d)return function(e,t){return!!u(e,t)}(d,r);return!1},set:function(r,n){o&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new o),s(e,r,n)):i?(t||(t=new i),O(t,r,n)):(d||(d={key:{},next:null}),function(e,t,r){var n=u(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(d,r,n))}};return f}}function jO(){if(gO)return mO;gO=1;var e=$s,t=La,r=CO()(),n=e("%TypeError%"),o={assert:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof t)throw new n("`slot` must be a string");if(r.assert(e),!o.has(e,t))throw new n("`"+t+"` is not present on `O`")},get:function(e,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof t)throw new n("`slot` must be a string");var o=r.get(e);return o&&o["$"+t]},has:function(e,o){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof o)throw new n("`slot` must be a string");var i=r.get(e);return!!i&&t(i,"$"+o)},set:function(e,t,o){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new n("`O` is not an object");if("string"!=typeof t)throw new n("`slot` must be a string");var i=r.get(e);i||(i={},r.set(e,i)),i["$"+t]=o}};return Object.freeze&&Object.freeze(o),mO=o}var YO,_O,AO,WO,qO,VO,IO=$s("%TypeError%"),NO=bl(),zO=RO(),MO=Ql(),UO=function(){try{return delete[].length,!0}catch(e){return!1}}(),GO=function(e,t,r,n){if("Object"!==MO(e))throw new IO("Assertion failed: `O` must be an Object");if(!NO(t))throw new IO("Assertion failed: `P` must be a Property Key");if("Boolean"!==MO(n))throw new IO("Assertion failed: `Throw` must be a Boolean");if(n){if(e[t]=r,UO&&!zO(e[t],r))throw new IO("Attempted to assign to readonly property.");return!0}try{return e[t]=r,!UO||zO(e[t],r)}catch(e){return!1}},DO=$s("%Math.abs%"),BO=Ql(),LO=Math.floor;function FO(){if(VO)return qO;VO=1;var e=Date.prototype.getDay,t=Object.prototype.toString,r=Gl()();return qO=function(n){return"object"==typeof n&&null!==n&&(r?function(t){try{return e.call(t),!0}catch(e){return!1}}(n):"[object Date]"===t.call(n))}}var JO,KO,HO,ep,tp,rp,np,op,ip,ap,sp,lp,cp,Op,pp,up,dp,fp={exports:{}};function hp(){if(JO)return fp.exports;JO=1;var e=Object.prototype.toString;if(Ua()){var t=Symbol.prototype.toString,r=/^Symbol\(.*\)$/;fp.exports=function(n){if("symbol"==typeof n)return!0;if("[object Symbol]"!==e.call(n))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&r.test(t.call(e))}(n)}catch(e){return!1}}}else fp.exports=function(e){return!1};return fp.exports}function mp(){if(HO)return KO;HO=1;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,t=WO?AO:(WO=1,AO=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}),r=Cl(),n=FO(),o=hp();return KO=function(i){if(t(i))return i;var a,s="default";if(arguments.length>1&&(arguments[1]===String?s="string":arguments[1]===Number&&(s="number")),e&&(Symbol.toPrimitive?a=function(e,t){var n=e[t];if(null!=n){if(!r(n))throw new TypeError(n+" returned for property "+t+" of object "+e+" is not a function");return n}}(i,Symbol.toPrimitive):o(i)&&(a=Symbol.prototype.valueOf)),void 0!==a){var l=a.call(i,s);if(t(l))return l;throw new TypeError("unable to convert exotic object to primitive")}return"default"===s&&(n(i)||o(i))&&(s="string"),function(e,n){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof n||"number"!==n&&"string"!==n)throw new TypeError('hint must be "string" or "number"');var o,i,a,s="string"===n?["toString","valueOf"]:["valueOf","toString"];for(a=0;a<s.length;++a)if(o=e[s[a]],r(o)&&(i=o.call(e),t(i)))return i;throw new TypeError("No default value")}(i,"default"===s?"number":s)},KO}function gp(){if(ip)return op;ip=1;var e=rc.exports,t=tc,r=Hs("String.prototype.replace"),n=/^\s$/.test("᠎"),o=n?/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/:/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+/,i=n?/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/:/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]+$/;return op=function(){var n=t(e(this));return r(r(n,o,""),i,"")},op}function yp(){if(sp)return ap;sp=1;var e=gp(),t="᠎";return ap=function(){return String.prototype.trim&&"​"==="​".trim()&&t.trim()===t&&"_᠎"==="_᠎".trim()&&"᠎_"==="᠎_".trim()?String.prototype.trim:e}}function Sp(){if(pp)return Op;pp=1;var e=Aa.exports,t=Ls,r=rc.exports,n=gp(),o=yp(),i=function(){if(cp)return lp;cp=1;var e=Ls,t=yp();return lp=function(){var r=t();return e(String.prototype,{trim:r},{trim:function(){return String.prototype.trim!==r}}),r},lp}(),a=e(o()),s=function(e){return r(e),a(e)};return t(s,{getPolyfill:o,implementation:n,shim:i}),Op=s}var bp,Qp,wp=$s,$p=wp("%TypeError%"),xp=wp("%Number%"),Pp=_O?YO:(_O=1,YO=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}),vp=function(){if(tp)return ep;tp=1;var e=mp();return ep=function(t){return arguments.length>1?e(t,arguments[1]):e(t)},ep}(),kp=function(){if(dp)return up;dp=1;var e=$s,t=e("%Number%"),r=e("%RegExp%"),n=e("%TypeError%"),o=e("%parseInt%"),i=Hs,a=function(){if(np)return rp;np=1;var e=Hs,t=$s,r=Dl(),n=e("RegExp.prototype.exec"),o=t("%TypeError%");return rp=function(e){if(!r(e))throw new o("`regex` must be a RegExp");return function(t){return null!==n(e,t)}},rp}(),s=i("String.prototype.slice"),l=a(/^0b[01]+$/i),c=a(/^0o[0-7]+$/i),O=a(/^[-+]0x[0-9a-f]+$/i),p=a(new r("["+["…","​","￾"].join("")+"]","g")),u=Sp(),d=Ql();return up=function e(r){if("String"!==d(r))throw new n("Assertion failed: `argument` is not a String");if(l(r))return t(o(s(r,2),2));if(c(r))return t(o(s(r,2),8));if(p(r)||O(r))return NaN;var i=u(r);return i!==r?e(i):t(r)},up}(),Zp=function(e){return DO(e)},Tp=function(e){return"BigInt"===BO(e)?e:LO(e)},Ep=function(e){var t=Pp(e)?e:vp(e,xp);if("symbol"==typeof t)throw new $p("Cannot convert a Symbol value to a number");if("bigint"==typeof t)throw new $p("Conversion from 'BigInt' to 'number' is not allowed.");return"string"==typeof t?kp(t):xp(t)},Rp=Nc,Xp=Mc,Cp=function(e){return e>=0?1:-1},jp=xO,Yp=function(e){var t=Ep(e);if(Rp(t)||0===t)return 0;if(!Xp(t))return t;var r=Tp(Zp(t));return 0===r?0:Cp(t)*r},_p=function(e){var t=Yp(e);return t<=0?0:t>jp?jp:t};var Ap=$s,Wp=Ua(),qp=Ap("%TypeError%"),Vp=Ap("%IteratorPrototype%",!0),Ip=function(){if(Dc)return Gc;Dc=1;var e=$s,t=qc(),r=Ql(),n=Uc(),o=xO,i=e("%TypeError%");return Gc=function(e,a,s){if("String"!==r(e))throw new i("Assertion failed: `S` must be a String");if(!n(a)||a<0||a>o)throw new i("Assertion failed: `length` must be an integer >= 0 and <= 2**53");if("Boolean"!==r(s))throw new i("Assertion failed: `unicode` must be a Boolean");return s?a+1>=e.length?a+1:a+t(e,a)["[[CodeUnitCount]]"]:a+1},Gc}(),Np=function(){if(Lc)return Bc;Lc=1;var e=$s("%TypeError%"),t=Ql();return Bc=function(r,n){if("Boolean"!==t(n))throw new e("Assertion failed: Type(done) is not Boolean");return{value:r,done:n}}}(),zp=function(){if(pO)return OO;pO=1;var e=$s("%TypeError%"),t=PO(),r=TO(),n=EO(),o=bl(),i=RO(),a=Ql();return OO=function(s,l,c){if("Object"!==a(s))throw new e("Assertion failed: Type(O) is not Object");if(!o(l))throw new e("Assertion failed: IsPropertyKey(P) is not true");return t(n,i,r,s,l,{"[[Configurable]]":!0,"[[Enumerable]]":!1,"[[Value]]":c,"[[Writable]]":!0})}}(),Mp=Zl,Up=function(){if(SO)return yO;SO=1;var e=$s,t=e("%Object.create%",!0),r=e("%TypeError%"),n=e("%SyntaxError%"),o=rl(),i=Ql(),a=XO(),s=jO(),l=Ba();return yO=function(e){if(null!==e&&"Object"!==i(e))throw new r("Assertion failed: `proto` must be null or an object");var c,O=arguments.length<2?[]:arguments[1];if(!o(O))throw new r("Assertion failed: `additionalInternalSlotsList` must be an Array");if(t)c=t(e);else if(l)c={__proto__:e};else{if(null===e)throw new n("native Object.create support is required to create null objects");var p=function(){};p.prototype=e,c=new p}return O.length>0&&a(O,(function(e){s.set(c,e,void 0)})),c},yO}(),Gp=function(){if(QO)return bO;QO=1;var e=$s("%TypeError%"),t=Hs("RegExp.prototype.exec"),r=yl,n=Zl,o=jl(),i=Ql();return bO=function(a,s){if("Object"!==i(a))throw new e("Assertion failed: `R` must be an Object");if("String"!==i(s))throw new e("Assertion failed: `S` must be a String");var l=n(a,"exec");if(o(l)){var c=r(l,a,[s]);if(null===c||"Object"===i(c))return c;throw new e('"exec" method must return `null` or an Object')}return t(a,s)},bO}(),Dp=GO,Bp=_p,Lp=tc,Fp=Ql(),Jp=jO(),Kp=function(){if(Qp)return bp;Qp=1;var e=$s("%Object.defineProperty%",!0),t=Gl()(),r=La,n=t?Symbol.toStringTag:null;return bp=function(t,o){var i=arguments.length>2&&arguments[2]&&arguments[2].force;!n||!i&&r(t,n)||(e?e(t,n,{configurable:!0,enumerable:!1,value:o,writable:!1}):t[n]=o)},bp}(),Hp=function(e,t,r,n){if("String"!==Fp(t))throw new qp("`S` must be a string");if("Boolean"!==Fp(r))throw new qp("`global` must be a boolean");if("Boolean"!==Fp(n))throw new qp("`fullUnicode` must be a boolean");Jp.set(this,"[[IteratingRegExp]]",e),Jp.set(this,"[[IteratedString]]",t),Jp.set(this,"[[Global]]",r),Jp.set(this,"[[Unicode]]",n),Jp.set(this,"[[Done]]",!1)};Vp&&(Hp.prototype=Up(Vp));if(zp(Hp.prototype,"next",(function(){var e=this;if("Object"!==Fp(e))throw new qp("receiver must be an object");if(!(e instanceof Hp&&Jp.has(e,"[[IteratingRegExp]]")&&Jp.has(e,"[[IteratedString]]")&&Jp.has(e,"[[Global]]")&&Jp.has(e,"[[Unicode]]")&&Jp.has(e,"[[Done]]")))throw new qp('"this" value must be a RegExpStringIterator instance');if(Jp.get(e,"[[Done]]"))return Np(void 0,!0);var t=Jp.get(e,"[[IteratingRegExp]]"),r=Jp.get(e,"[[IteratedString]]"),n=Jp.get(e,"[[Global]]"),o=Jp.get(e,"[[Unicode]]"),i=Gp(t,r);if(null===i)return Jp.set(e,"[[Done]]",!0),Np(void 0,!0);if(n){if(""===Lp(Mp(i,"0"))){var a=Bp(Mp(t,"lastIndex")),s=Ip(r,a,o);Dp(t,"lastIndex",s,!0)}return Np(i,!1)}return Jp.set(e,"[[Done]]",!0),Np(i,!1)})),Wp&&(Kp(Hp.prototype,"RegExp String Iterator"),Symbol.iterator&&"function"!=typeof Hp.prototype[Symbol.iterator])){zp(Hp.prototype,Symbol.iterator,(function(){return this}))}var eu,tu,ru,nu,ou,iu,au,su,lu,cu,Ou={exports:{}},pu={exports:{}};function uu(){if(ru)return tu;ru=1;var e=La,t=$s("%TypeError%");return tu=function(r,n){if("Object"!==r.Type(n))return!1;var o={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in n)if(e(n,i)&&!o[i])return!1;if(r.IsDataDescriptor(n)&&r.IsAccessorDescriptor(n))throw new t("Property Descriptors may not be both accessor and data descriptors");return!0}}function du(){if(ou)return nu;ou=1;var e=La,t=Ql(),r=kO();return nu=function(n){return void 0!==n&&(r(t,"Property Descriptor","Desc",n),!(!e(n,"[[Get]]")&&!e(n,"[[Set]]")))}}function fu(){if(au)return iu;au=1;var e=La,t=$s("%TypeError%"),r=Ql(),n=Bl(),o=jl();return iu=function(i){if("Object"!==r(i))throw new t("ToPropertyDescriptor requires an object");var a={};if(e(i,"enumerable")&&(a["[[Enumerable]]"]=n(i.enumerable)),e(i,"configurable")&&(a["[[Configurable]]"]=n(i.configurable)),e(i,"value")&&(a["[[Value]]"]=i.value),e(i,"writable")&&(a["[[Writable]]"]=n(i.writable)),e(i,"get")){var s=i.get;if(void 0!==s&&!o(s))throw new t("getter must be a function");a["[[Get]]"]=s}if(e(i,"set")){var l=i.set;if(void 0!==l&&!o(l))throw new t("setter must be a function");a["[[Set]]"]=l}if((e(a,"[[Get]]")||e(a,"[[Set]]"))&&(e(a,"[[Value]]")||e(a,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return a},iu}function hu(){if(lu)return su;lu=1;var e=$s("%TypeError%"),t=uu(),r=PO(),n=TO(),o=du(),i=EO(),a=bl(),s=RO(),l=fu(),c=Ql();return su=function(O,p,u){if("Object"!==c(O))throw new e("Assertion failed: Type(O) is not Object");if(!a(p))throw new e("Assertion failed: IsPropertyKey(P) is not true");var d=t({Type:c,IsDataDescriptor:i,IsAccessorDescriptor:o},u)?u:l(u);if(!t({Type:c,IsDataDescriptor:i,IsAccessorDescriptor:o},d))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return r(i,s,n,O,p,d)},su}var mu=$s,gu=mu("%Symbol.species%",!0),yu=mu("%TypeError%"),Su=function(){if(cu)return Ou.exports;cu=1;var e=(eu||(eu=1,function(e){e.exports=$s}(pu)),pu.exports)("%Reflect.construct%",!0),t=hu();try{t({},"",{"[[Get]]":function(){}})}catch(e){t=null}if(t&&e){var r={},n={};t(n,"length",{"[[Get]]":function(){throw r},"[[Enumerable]]":!0}),Ou.exports=function(t){try{e(t,n)}catch(e){return e===r}}}else Ou.exports=function(e){return"function"==typeof e&&!!e.prototype};return Ou.exports}(),bu=Ql(),Qu=function(e,t,r,n){return new Hp(e,t,r,n)},wu=Zl,$u=GO,xu=function(e,t){if("Object"!==bu(e))throw new yu("Assertion failed: Type(O) is not Object");var r=e.constructor;if(void 0===r)return t;if("Object"!==bu(r))throw new yu("O.constructor is not an Object");var n=gu?r[gu]:void 0;if(null==n)return t;if(Su(n))return n;throw new yu("no constructor found")},Pu=_p,vu=tc,ku=Ql(),Zu=Yc,Tu=Hs("String.prototype.indexOf"),Eu=RegExp,Ru="flags"in RegExp.prototype,Xu=function(e){var t=this;if("Object"!==ku(t))throw new TypeError('"this" value must be an Object');var r=vu(e),n=function(e,t){var r="flags"in t?wu(t,"flags"):vu(Zu(t));return{flags:r,matcher:new e(Ru&&"string"==typeof r?t:e===Eu?t.source:t,r)}}(xu(t,Eu),t),o=n.flags,i=n.matcher,a=Pu(wu(t,"lastIndex"));$u(i,"lastIndex",a,!0);var s=Tu(o,"g")>-1,l=Tu(o,"u")>-1;return Qu(i,r,s,l)},Cu=Object.defineProperty,ju=Object.getOwnPropertyDescriptor;if(Cu&&ju){var Yu=ju(Xu,"name");Yu&&Yu.configurable&&Cu(Xu,"name",{value:"[Symbol.matchAll]"})}var _u=Xu,Au=Ua(),Wu=_u,qu=function(){return Au&&"symbol"==typeof Symbol.matchAll&&"function"==typeof RegExp.prototype[Symbol.matchAll]?RegExp.prototype[Symbol.matchAll]:Wu},Vu=yl,Iu=Zl,Nu=function(e,t){if(!Ml(t))throw new Il("Assertion failed: IsPropertyKey(P) is not true");var r=Nl(e,t);if(null!=r){if(!zl(r))throw new Il(Ul(t)+" is not a function: "+Ul(r));return r}},zu=function(e){if(!e||"object"!=typeof e)return!1;if(Ll){var t=e[Ll];if(void 0!==t)return Jl(t)}return Fl(e)},Mu=tc,Uu=rc.exports,Gu=Hs,Du=Ua(),Bu=Yc,Lu=Gu("String.prototype.indexOf"),Fu=qu,Ju=function(e){var t=Fu();if(Du&&"symbol"==typeof Symbol.matchAll){var r=Nu(e,Symbol.matchAll);return r===RegExp.prototype[Symbol.matchAll]&&r!==t?t:r}if(zu(e))return t},Ku=function(e){var t=Uu(this);if(null!=e){if(zu(e)){var r="flags"in e?Iu(e,"flags"):Bu(e);if(Uu(r),Lu(Mu(r),"g")<0)throw new TypeError("matchAll requires a global regular expression")}var n=Ju(e);if(void 0!==n)return Vu(n,e,[t])}var o=Mu(t),i=new RegExp(e,"g");return Vu(Ju(i),i,[o])},Hu=Ku,ed=function(){if(String.prototype.matchAll)try{"".matchAll(RegExp.prototype)}catch(e){return String.prototype.matchAll}return Hu},td=Ls,rd=Ua(),nd=ed,od=qu,id=Object.defineProperty,ad=Object.getOwnPropertyDescriptor,sd=Aa.exports,ld=Ls,cd=Ku,Od=ed,pd=function(){var e=nd();if(td(String.prototype,{matchAll:e},{matchAll:function(){return String.prototype.matchAll!==e}}),rd){var t=Symbol.matchAll||(Symbol.for?Symbol.for("Symbol.matchAll"):Symbol("Symbol.matchAll"));if(td(Symbol,{matchAll:t},{matchAll:function(){return Symbol.matchAll!==t}}),id&&ad){var r=ad(Symbol,t);r&&!r.configurable||id(Symbol,t,{configurable:!1,enumerable:!1,value:t,writable:!1})}var n=od(),o={};o[t]=n;var i={};i[t]=function(){return RegExp.prototype[t]!==n},td(RegExp.prototype,o,i)}return e},ud=sd(cd);ld(ud,{getPolyfill:Od,implementation:cd,shim:pd});var dd=ud,fd=Object.defineProperty,hd=Object.getOwnPropertyDescriptor,md=(e,t,r,n)=>{for(var o,i=n>1?void 0:n?hd(t,r):t,a=e.length-1;a>=0;a--)(o=e[a])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&fd(t,r,i),i};function gd(e,t){return t<=0?0:(e%t+t)%t}var yd=class extends c.PlainExtension{constructor(){super(...arguments),this._updating=!1,this._query="",this._caseSensitive=!0,this._ranges=[],this._activeIndex=void 0}get name(){return"find"}find({query:e,activeIndex:t,caseSensitive:r}){return e?(this.setProps({query:e,activeIndex:t,caseSensitive:r}),({tr:e,dispatch:t})=>this.updateView(e,t)):this.stopFind()}stopFind(){return({tr:e,dispatch:t})=>(this._query="",this._activeIndex=void 0,this.updateView(e,t))}findAndReplace({query:e,caseSensitive:t,replacement:r,index:n}){return o=>{this.setProps({query:e,caseSensitive:t});const{tr:i,dispatch:a}=o,s=this.gatherFindResults(i.doc),l=s[n=gd(n??this._activeIndex??0,s.length)];return!!l&&(!a||(i.insertText(r,l.from,l.to),this.updateView(i,a)))}}findAndReplaceAll({query:e,caseSensitive:t,replacement:r}){return n=>{this.setProps({query:e,caseSensitive:t});const{tr:o}=n,i=this.gatherFindResults(o.doc);for(let e=i.length-1;e>=0;e--){const{from:t,to:n}=i[e];o.insertText(r,t,n)}return this.stopFind()(n)}}findRanges(e){return this.store.commands.find(e),{activeIndex:this._activeIndex,ranges:this._ranges}}createPlugin(){return{state:{init:()=>gn.empty,apply:(e,t)=>{if(this._updating||e.docChanged&&this.options.alwaysFind){const t=e.doc;return this._ranges=this.gatherFindResults(t),this.normalizeActiveIndex(),this.scrollToActiveResult(),this.createDecorationSet(t)}return e.docChanged?t.map(e.mapping,e.doc):t}},props:{decorations:e=>this.getPluginState(e)}}}setProps({query:e,activeIndex:t,caseSensitive:r}){this._query=(e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")})(e),this._activeIndex=t,this._caseSensitive=r??!1}gatherFindResults(e){if(!this._query)return[];const t=new RegExp(this._query,this._caseSensitive?"gu":"gui"),r=[];return e.descendants(((e,n)=>{if(!e.isTextblock)return!0;const o=n+1;for(const n of dd(e.textContent,t)){const e=o+(n.index??0),t=e+n[0].length;r.push({from:e,to:t})}return!1})),r}normalizeActiveIndex(){null!=this._activeIndex&&(this._activeIndex=gd(this._activeIndex,this._ranges.length))}createDecorationSet(e){const t=this._ranges.map(((e,t)=>fn.inline(e.from,e.to,t===this._activeIndex?this.options.activeDecoration:this.options.decoration)));return gn.create(e,t)}updateView(e,t){return this._updating=!0,t&&t(e),this._updating=!1,!0}scrollToActiveResult(){var e;if(null==this._activeIndex)return;const t=this._ranges[this._activeIndex];if(!t)return;const r=this.store.view,n=r.state.doc.content.size,o=t.from;if(o>n)return;const i=r.domAtPos(o).node;null==(e=null==i?void 0:i.scrollIntoView)||e.call(i,{block:"nearest",behavior:"smooth"})}};md([c.command()],yd.prototype,"find",1),md([c.command()],yd.prototype,"stopFind",1),md([c.command()],yd.prototype,"findAndReplace",1),md([c.command()],yd.prototype,"findAndReplaceAll",1),md([c.helper()],yd.prototype,"findRanges",1),yd=md([c.extension({defaultOptions:{decoration:{style:"background-color: yellow;"},activeDecoration:{style:"background-color: orange;"},alwaysFind:!1}})],yd);const Sd=new Map,bd={current:v.createTheme(x.lightTheme.codemirorTheme)},Qd=e=>{bd.current=v.createTheme(e),Sd.forEach((e=>{e.cm.dispatch({effects:e.editorTheme.reconfigure(bd.current)})}))};class wd{constructor({view:e,getPos:t,node:r,extensions:n=[],languageName:o,createParams:i={}}){this.toggleName="paragraph",this.id=h.nanoid(),this.content="",this.updating=!1,this.view=e,this.getPos=t,this.node=r,this.languageConf=new w.Compartment,this.editorTheme=new w.Compartment,this.schema=r.type.schema,this.languageName=o,this.loadLanguage=xd,this.content=this.node.textContent;const a=w.EditorState.changeFilter.of((e=>(e.docChanged||this.forwardSelection(),!0))),s=w.EditorState.create({doc:this.node.textContent,extensions:[$.keymap.of(this.codeMirrorKeymap()),a,this.languageConf.of([]),this.editorTheme.of(bd.current),...null!=n?n:[]]});this.cm=new $.EditorView({state:s,dispatch:this.valueChanged.bind(this),...i}),Sd.set(this.id,this),this.updateLanguage()}update(e){if(e.type!==this.node.type)return!1;this.node=e,this.content=e.textContent,this.updateLanguage();const t=Pd(this.cm.state.doc.toString(),e.textContent);return t&&(this.updating=!0,this.cm.dispatch({changes:{from:t.from,to:t.to,insert:t.text}}),this.updating=!1),!0}setSelection(e,t){this.cm.focus(),this.updating=!0,this.cm.dispatch({selection:{anchor:e,head:t}}),this.updating=!1}updateLanguage(){const e=this.node.attrs.language;if(e===this.languageName)return;const t=this.loadLanguage(e);t&&(c.isPromise(t)?t.then((t=>{this.setLanguage(t),this.languageName=e})):(this.setLanguage(t),this.languageName=e))}destroy(){this.cm.destroy(),Sd.delete(this.id)}forwardSelection(){if(!this.cm.hasFocus)return;const{state:e}=this.view,t=this.asProseMirrorSelection(e.doc);t.eq(e.selection)||this.view.dispatch(e.tr.setSelection(t))}setLanguage(e){this.cm.dispatch({effects:this.languageConf.reconfigure(e)})}valueChanged(e){if(!this.cm)return;if(this.cm.update([e]),!e.docChanged||this.updating)return;const t=Pd(this.node.textContent,e.state.doc.toString());if(t){const e=this.getPos()+1,r=this.view.state.tr.replaceWith(e+t.from,e+t.to,t.text?this.schema.text(t.text):[]);this.view.dispatch(r)}}asProseMirrorSelection(e){const t=this.getPos()+1,{anchor:r,head:n}=this.cm.state.selection.main;return bt.between(e.resolve(r+t),e.resolve(n+t))}codeMirrorKeymap(){return[{key:"ArrowUp",run:this.maybeEscape("line",-1)},{key:"ArrowLeft",run:this.maybeEscape("char",-1)},{key:"ArrowDown",run:this.maybeEscape("line",1)},{key:"ArrowRight",run:this.maybeEscape("char",1)},{key:"Ctrl-Enter",run:()=>!!Dn(this.view.state,this.view.dispatch)&&(this.view.focus(),!0)},{key:"Backspace",run:()=>{const{ranges:e}=this.cm.state.selection;if(!this.cm||!e||e.length>1)return!1;const t=e[0];if(t&&(!t.empty||t.anchor>0))return!1;if(this.cm.state.doc.lines>=2)return!1;const{state:r}=this.view,n=c.assertGet(r.schema.nodes,this.toggleName),o=this.getPos(),i=c.replaceNodeAtPosition({pos:o,tr:r.tr,content:n.createChecked({},this.node.content)});return i.setSelection(bt.near(i.doc.resolve(o))),this.view.dispatch(i),this.view.focus(),!0}}]}maybeEscape(e,t){return r=>{const{state:n}=r;if(n.selection.ranges.some((e=>!e.empty)))return!1;const{anchor:o}=n.selection.main,i=n.doc.lineAt(o),a=o-i.from;if(i.number!==(t<0?1:n.doc.lines)||"char"===e&&a!==(t<0?0:i.length))return!1;const s=this.getPos()+(t<0?0:this.node.nodeSize),l=mt.near(this.view.state.doc.resolve(s),t);return this.view.dispatch(this.view.state.tr.setSelection(l).scrollIntoView()),this.view.focus(),!0}}}const $d=()=>{const e={};for(const t of null!==P.languages&&void 0!==P.languages?P.languages:[])for(const r of t.alias)e[r]=t;return e},xd=e=>{if("string"!=typeof e)return;const t=$d()[e.toLowerCase()];return t?t.support||t.load():void 0};function Pd(e,t){if(e===t)return null;let r=0,n=e.length,o=t.length;for(;r<n&&e.charCodeAt(r)===t.charCodeAt(r);)++r;for(;n>r&&o>r&&e.charCodeAt(n-1)===t.charCodeAt(o-1);)n--,o--;return{from:r,to:n,text:t.slice(r,o)}}const vd=[$.EditorView.lineWrapping,$.lineNumbers({formatNumber:e=>e%10==0||1===e?`${e}`:""}),$.highlightActiveLineGutter(),$.highlightSpecialChars(),Z.history(),k.foldGutter(),$.dropCursor(),w.EditorState.allowMultipleSelections.of(!0),k.indentOnInput(),k.syntaxHighlighting(k.defaultHighlightStyle,{fallback:!0}),k.bracketMatching(),E.closeBrackets(),E.autocompletion(),$.crosshairCursor(),$.highlightActiveLine(),T.highlightSelectionMatches(),$.keymap.of([...E.closeBracketsKeymap,...Z.defaultKeymap,...T.searchKeymap,...Z.historyKeymap,...k.foldKeymap,...E.completionKeymap,...R.lintKeymap])],kd=[$.dropCursor(),$.highlightSpecialChars(),Z.history(),$.drawSelection(),$.rectangularSelection(),k.syntaxHighlighting(k.defaultHighlightStyle,{fallback:!0}),$.keymap.of([...E.closeBracketsKeymap,...Z.defaultKeymap,...T.searchKeymap,...Z.historyKeymap,...k.foldKeymap,...E.completionKeymap,...R.lintKeymap])],Zd=20,Td=22,Ed=23,Rd=24,Xd=26,Cd=27,jd=28,Yd=31,_d=34,Ad=37,Wd={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},qd={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Vd={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function Id(e){return 9==e||10==e||13==e||32==e}let Nd=null,zd=null,Md=0;function Ud(e,t){let r=e.pos+t;if(Md==r&&zd==e)return Nd;let n=e.peek(t);for(;Id(n);)n=e.peek(++t);let o="";for(;45==(i=n)||46==i||58==i||i>=65&&i<=90||95==i||i>=97&&i<=122||i>=161;)o+=String.fromCharCode(n),n=e.peek(++t);var i;return zd=e,Md=r,Nd=o?o.toLowerCase():n==Gd||n==Dd?void 0:null}const Gd=63,Dd=33;function Bd(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let t=0;t<e.length;t++)this.hash+=(this.hash<<4)+e.charCodeAt(t)+(e.charCodeAt(t)<<8)}const Ld=[6,10,7,8,9],Fd=new _.ContextTracker({start:null,shift:(e,t,r,n)=>Ld.indexOf(t)>-1?new Bd(Ud(n,1)||"",e):e,reduce:(e,t)=>t==Zd&&e?e.parent:e,reuse(e,t,r,n){let o=t.type.id;return 6==o||36==o?new Bd(Ud(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),Jd=new _.ExternalTokenizer(((e,t)=>{if(60!=e.next)return void(e.next<0&&t.context&&e.acceptToken(57));e.advance();let r=47==e.next;r&&e.advance();let n=Ud(e,0);if(void 0===n)return;if(!n)return e.acceptToken(r?14:6);let o=t.context?t.context.name:null;if(r){if(n==o)return e.acceptToken(11);if(o&&qd[o])return e.acceptToken(57,-2);if(t.dialectEnabled(0))return e.acceptToken(12);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(13)}else{if("script"==n)return e.acceptToken(7);if("style"==n)return e.acceptToken(8);if("textarea"==n)return e.acceptToken(9);if(Wd.hasOwnProperty(n))return e.acceptToken(10);o&&Vd[o]&&Vd[o][n]?e.acceptToken(57,-1):e.acceptToken(6)}}),{contextual:!0}),Kd=new _.ExternalTokenizer((e=>{for(let t=0,r=0;;r++){if(e.next<0){r&&e.acceptToken(58);break}if(45==e.next)t++;else{if(62==e.next&&t>=2){r>=3&&e.acceptToken(58,-2);break}t=0}e.advance()}}));const Hd=new _.ExternalTokenizer(((e,t)=>{if(47==e.next&&62==e.peek(1)){let r=t.dialectEnabled(1)||function(e){for(;e;e=e.parent)if("svg"==e.name||"math"==e.name)return!0;return!1}(t.context);e.acceptToken(r?5:4,2)}else 62==e.next&&e.acceptToken(4,1)}));function ef(e,t,r){let n=2+e.length;return new _.ExternalTokenizer((o=>{for(let i=0,a=0,s=0;;s++){if(o.next<0){s&&o.acceptToken(t);break}if(0==i&&60==o.next||1==i&&47==o.next||i>=2&&i<n&&o.next==e.charCodeAt(i-2))i++,a++;else if(2!=i&&i!=n||!Id(o.next)){if(i==n&&62==o.next){s>a?o.acceptToken(t,-a):o.acceptToken(r,-(a-2));break}if((10==o.next||13==o.next)&&s){o.acceptToken(t,1);break}i=a=0}else a++;o.advance()}}))}const tf=ef("script",54,1),rf=ef("style",55,2),nf=ef("textarea",56,3),of=A.styleTags({"Text RawText":A.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":A.tags.angleBracket,TagName:A.tags.tagName,"MismatchedCloseTag/TagName":[A.tags.tagName,A.tags.invalid],AttributeName:A.tags.attributeName,"AttributeValue UnquotedAttributeValue":A.tags.attributeValue,Is:A.tags.definitionOperator,"EntityReference CharacterReference":A.tags.character,Comment:A.tags.blockComment,ProcessingInst:A.tags.processingInstruction,DoctypeDecl:A.tags.documentMeta}),af=_.LRParser.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW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of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:Fd,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"],["isolate",-11,21,29,30,32,33,35,36,37,38,41,42,"ltr",-3,26,27,39,""]],propSources:[of],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,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!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[tf,rf,nf,Hd,Jd,Kd,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function sf(e,t){let r=Object.create(null);for(let n of e.getChildren(Ed)){let e=n.getChild(Rd),o=n.getChild(Xd)||n.getChild(Cd);e&&(r[t.read(e.from,e.to)]=o?o.type.id==Xd?t.read(o.from+1,o.to-1):t.read(o.from,o.to):"")}return r}function lf(e,t){let r=e.getChild(Td);return r?t.read(r.from,r.to):" "}function cf(e,t,r){let n;for(let o of r)if(!o.attrs||o.attrs(n||(n=sf(e.node.parent.firstChild,t))))return{parser:o.parser};return null}function Of(e=[],t=[]){let r=[],n=[],o=[],i=[];for(let t of e){("script"==t.tag?r:"style"==t.tag?n:"textarea"==t.tag?o:i).push(t)}let a=t.length?Object.create(null):null;for(let e of t)(a[e.name]||(a[e.name]=[])).push(e);return W.parseMixed(((e,t)=>{let s=e.type.id;if(s==jd)return cf(e,t,r);if(s==Yd)return cf(e,t,n);if(s==_d)return cf(e,t,o);if(s==Zd&&i.length){let r,n=e.node,o=n.firstChild,a=o&&lf(o,t);if(a)for(let e of i)if(e.tag==a&&(!e.attrs||e.attrs(r||(r=sf(n,t))))){let t=n.lastChild,r=t.type.id==Ad?t.from:n.to;if(r>o.to)return{parser:e.parser,overlay:[{from:o.to,to:r}]}}}if(a&&s==Ed){let r,n=e.node;if(r=n.firstChild){let e=a[t.read(r.from,r.to)];if(e)for(let r of e){if(r.tagName&&r.tagName!=lf(n.parent,t))continue;let e=n.lastChild;if(e.type.id==Xd){let t=e.from+1,n=e.lastChild,o=e.to-(n&&n.isError?0:1);if(o>t)return{parser:r.parser,overlay:[{from:t,to:o}]}}else if(e.type.id==Cd)return{parser:r.parser,overlay:[{from:e.from,to:e.to}]}}}}return null}))}const pf=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];function uf(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}const df=new _.ExternalTokenizer(((e,t)=>{for(let n=!1,o=0,i=0;;i++){let{next:a}=e;if(uf(a)||45==a||95==a||n&&((r=a)>=48&&r<=57))!n&&(45!=a||i>0)&&(n=!0),o===i&&45==a&&o++,e.advance();else{if(92!=a||10==e.peek(1)){n&&e.acceptToken(40==a?100:2==o&&t.canShift(2)?2:101);break}e.advance(),e.next>-1&&e.advance(),n=!0}}var r})),ff=new _.ExternalTokenizer((e=>{if(pf.includes(e.peek(-1))){let{next:t}=e;(uf(t)||95==t||35==t||46==t||91==t||58==t&&uf(e.peek(1))||45==t||38==t)&&e.acceptToken(99)}})),hf=new _.ExternalTokenizer((e=>{if(!pf.includes(e.peek(-1))){let{next:t}=e;if(37==t&&(e.advance(),e.acceptToken(1)),uf(t)){do{e.advance()}while(uf(e.next));e.acceptToken(1)}}})),mf=A.styleTags({"AtKeyword import charset namespace keyframes media supports":A.tags.definitionKeyword,"from to selector":A.tags.keyword,NamespaceName:A.tags.namespace,KeyframeName:A.tags.labelName,KeyframeRangeName:A.tags.operatorKeyword,TagName:A.tags.tagName,ClassName:A.tags.className,PseudoClassName:A.tags.constant(A.tags.className),IdName:A.tags.labelName,"FeatureName PropertyName":A.tags.propertyName,AttributeName:A.tags.attributeName,NumberLiteral:A.tags.number,KeywordQuery:A.tags.keyword,UnaryQueryOp:A.tags.operatorKeyword,"CallTag ValueName":A.tags.atom,VariableName:A.tags.variableName,Callee:A.tags.operatorKeyword,Unit:A.tags.unit,"UniversalSelector NestingSelector":A.tags.definitionOperator,MatchOp:A.tags.compareOperator,"ChildOp SiblingOp, LogicOp":A.tags.logicOperator,BinOp:A.tags.arithmeticOperator,Important:A.tags.modifier,Comment:A.tags.blockComment,ColorLiteral:A.tags.color,"ParenthesizedContent StringLiteral":A.tags.string,":":A.tags.punctuation,"PseudoOp #":A.tags.derefOperator,"; ,":A.tags.separator,"( )":A.tags.paren,"[ ]":A.tags.squareBracket,"{ }":A.tags.brace}),gf={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:138},yf={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},Sf={__proto__:null,not:132,only:132},bf=_.LRParser.deserialize({version:14,states:":^QYQ[OOO#_Q[OOP#fOWOOOOQP'#Cd'#CdOOQP'#Cc'#CcO#kQ[O'#CfO$_QXO'#CaO$fQ[O'#ChO$qQ[O'#DTO$vQ[O'#DWOOQP'#Em'#EmO${QdO'#DgO%jQ[O'#DtO${QdO'#DvO%{Q[O'#DxO&WQ[O'#D{O&`Q[O'#ERO&nQ[O'#ETOOQS'#El'#ElOOQS'#EW'#EWQYQ[OOO&uQXO'#CdO'jQWO'#DcO'oQWO'#EsO'zQ[O'#EsQOQWOOP(UO#tO'#C_POOO)C@[)C@[OOQP'#Cg'#CgOOQP,59Q,59QO#kQ[O,59QO(aQ[O'#E[O({QWO,58{O)TQ[O,59SO$qQ[O,59oO$vQ[O,59rO(aQ[O,59uO(aQ[O,59wO(aQ[O,59xO)`Q[O'#DbOOQS,58{,58{OOQP'#Ck'#CkOOQO'#DR'#DROOQP,59S,59SO)gQWO,59SO)lQWO,59SOOQP'#DV'#DVOOQP,59o,59oOOQO'#DX'#DXO)qQ`O,59rOOQS'#Cp'#CpO${QdO'#CqO)yQvO'#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VZQ!d]Q#V!TQ#q!m[$O#S$P$Y$q$v%SQ$R#UQ$T#XS$h#q$jQ$m#zR%O$iR#}#RQiPR#QwQ!c[Q!kaR#Y!VU!_[a!VQ!j`Q#c!^Q#g!`Q$[#dR$]#e",nodeNames:"⚠ Unit VariableName Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NestingSelector ClassSelector ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee CallLiteral CallTag ParenthesizedContent ] [ LineNames LineName , PseudoClassName ArgList IdSelector # IdName AttributeSelector AttributeName MatchOp ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp } { Block Declaration PropertyName Important ; ImportStatement AtKeyword import KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports AtRule Styles",maxTerm:117,nodeProps:[["isolate",-2,3,24,""],["openedBy",17,"(",32,"[",50,"{"],["closedBy",18,")",33,"]",51,"}"]],propSources:[mf],skippedNodes:[0,3,87],repeatNodeCount:11,tokenData:"J^~R!^OX$}X^%u^p$}pq%uqr)Xrs.Rst/utu6duv$}vw7^wx7oxy9^yz9oz{9t{|:_|}?Q}!O?c!O!P@Q!P!Q@i!Q![Ab![!]B]!]!^CX!^!_$}!_!`Cj!`!aC{!a!b$}!b!cDw!c!}$}!}#OFa#O#P$}#P#QFr#Q#R6d#R#T$}#T#UGT#U#c$}#c#dHf#d#o$}#o#pH{#p#q6d#q#rI^#r#sIo#s#y$}#y#z%u#z$f$}$f$g%u$g#BY$}#BY#BZ%u#BZ$IS$}$IS$I_%u$I_$I|$}$I|$JO%u$JO$JT$}$JT$JU%u$JU$KV$}$KV$KW%u$KW&FU$}&FU&FV%u&FV;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;'S%^;'S;=`%o<%lO%^bHYS!bQo`Oy%^z;'S%^;'S;=`%o<%lO%^bHiUOy%^z#f%^#f#gHR#g;'S%^;'S;=`%o<%lO%^fIQS!TUOy%^z;'S%^;'S;=`%o<%lO%^nIcS!S^Oy%^z;'S%^;'S;=`%o<%lO%^fItU!RQOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^`JZP;=`<%l$}",tokenizers:[ff,hf,df,1,2,3,4,new _.LocalTokenGroup("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>gf[e]||-1},{term:58,get:e=>yf[e]||-1},{term:101,get:e=>Sf[e]||-1}],tokenPrec:1200});let Qf=null;function wf(){if(!Qf&&"object"==typeof document&&document.body){let{style:e}=document.body,t=[],r=new Set;for(let n in e)"cssText"!=n&&"cssFloat"!=n&&"string"==typeof e[n]&&(/[A-Z]/.test(n)&&(n=n.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))),r.has(n)||(t.push(n),r.add(n)));Qf=t.sort().map((e=>({type:"property",label:e})))}return Qf||[]}const $f=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e}))),xf=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e})))),Pf=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e}))),vf=/^(\w[\w-]*|-\w[\w-]*|)$/,kf=/^-(-[\w-]*)?$/;const Zf=new W.NodeWeakMap,Tf=["Declaration"];function Ef(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function Rf(e,t,r){if(t.to-t.from>4096){let n=Zf.get(t);if(n)return n;let o=[],i=new Set,a=t.cursor(W.IterMode.IncludeAnonymous);if(a.firstChild())do{for(let t of Rf(e,a.node,r))i.has(t.label)||(i.add(t.label),o.push(t))}while(a.nextSibling());return Zf.set(t,o),o}{let n=[],o=new Set;return t.cursor().iterate((t=>{var i;if(r(t)&&t.matchContext(Tf)&&":"==(null===(i=t.node.nextSibling)||void 0===i?void 0:i.name)){let r=e.sliceString(t.from,t.to);o.has(r)||(o.add(r),n.push({label:r,type:"variable"}))}})),n}}const Xf=e=>t=>{let{state:r,pos:n}=t,o=k.syntaxTree(r).resolveInner(n,-1),i=o.type.isError&&o.from==o.to-1&&"-"==r.doc.sliceString(o.from,o.to);if("PropertyName"==o.name||(i||"TagName"==o.name)&&/^(Block|Styles)$/.test(o.resolve(o.to).name))return{from:o.from,options:wf(),validFor:vf};if("ValueName"==o.name)return{from:o.from,options:xf,validFor:vf};if("PseudoClassName"==o.name)return{from:o.from,options:$f,validFor:vf};if(e(o)||(t.explicit||i)&&function(e,t){var r;if(("("==e.name||e.type.isError)&&(e=e.parent||e),"ArgList"!=e.name)return!1;let n=null===(r=e.parent)||void 0===r?void 0:r.firstChild;return"Callee"==(null==n?void 0:n.name)&&"var"==t.sliceString(n.from,n.to)}(o,r.doc))return{from:e(o)||i?o.from:n,options:Rf(r.doc,Ef(o),e),validFor:kf};if("TagName"==o.name){for(let{parent:e}=o;e;e=e.parent)if("Block"==e.name)return{from:o.from,options:wf(),validFor:vf};return{from:o.from,options:Pf,validFor:vf}}if(!t.explicit)return null;let a=o.resolve(n),s=a.childBefore(n);return s&&":"==s.name&&"PseudoClassSelector"==a.name?{from:n,options:$f,validFor:vf}:s&&":"==s.name&&"Declaration"==a.name||"ArgList"==a.name?{from:n,options:xf,validFor:vf}:"Block"==a.name||"Styles"==a.name?{from:n,options:wf(),validFor:vf}:null},Cf=Xf((e=>"VariableName"==e.name)),jf=k.LRLanguage.define({name:"css",parser:bf.configure({props:[k.indentNodeProp.add({Declaration:k.continuedIndent()}),k.foldNodeProp.add({"Block KeyframeList":k.foldInside})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});const Yf=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],_f=new _.ContextTracker({start:!1,shift:(e,t)=>4==t||5==t||312==t?e:313==t,strict:!1}),Af=new _.ExternalTokenizer(((e,t)=>{let{next:r}=e;(125==r||-1==r||t.context)&&e.acceptToken(310)}),{contextual:!0,fallback:!0}),Wf=new _.ExternalTokenizer(((e,t)=>{let r,{next:n}=e;Yf.indexOf(n)>-1||(47!=n||47!=(r=e.peek(1))&&42!=r)&&(125==n||59==n||-1==n||t.context||e.acceptToken(309))}),{contextual:!0}),qf=new _.ExternalTokenizer(((e,t)=>{let{next:r}=e;if((43==r||45==r)&&(e.advance(),r==e.next)){e.advance();let r=!t.context&&t.canShift(1);e.acceptToken(r?1:2)}}),{contextual:!0});function Vf(e,t){return e>=65&&e<=90||e>=97&&e<=122||95==e||e>=192||!t&&e>=48&&e<=57}const If=new _.ExternalTokenizer(((e,t)=>{if(60!=e.next||!t.dialectEnabled(0))return;if(e.advance(),47==e.next)return;let r=0;for(;Yf.indexOf(e.next)>-1;)e.advance(),r++;if(Vf(e.next,!0)){for(e.advance(),r++;Vf(e.next,!1);)e.advance(),r++;for(;Yf.indexOf(e.next)>-1;)e.advance(),r++;if(44==e.next)return;for(let t=0;;t++){if(7==t){if(!Vf(e.next,!0))return;break}if(e.next!="extends".charCodeAt(t))break;e.advance(),r++}}e.acceptToken(3,-r)})),Nf=A.styleTags({"get set async static":A.tags.modifier,"for while do if else switch try catch finally return throw break continue default case":A.tags.controlKeyword,"in of await yield void typeof delete instanceof":A.tags.operatorKeyword,"let var const using function class extends":A.tags.definitionKeyword,"import export from":A.tags.moduleKeyword,"with debugger as new":A.tags.keyword,TemplateString:A.tags.special(A.tags.string),super:A.tags.atom,BooleanLiteral:A.tags.bool,this:A.tags.self,null:A.tags.null,Star:A.tags.modifier,VariableName:A.tags.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":A.tags.function(A.tags.variableName),VariableDefinition:A.tags.definition(A.tags.variableName),Label:A.tags.labelName,PropertyName:A.tags.propertyName,PrivatePropertyName:A.tags.special(A.tags.propertyName),"CallExpression/MemberExpression/PropertyName":A.tags.function(A.tags.propertyName),"FunctionDeclaration/VariableDefinition":A.tags.function(A.tags.definition(A.tags.variableName)),"ClassDeclaration/VariableDefinition":A.tags.definition(A.tags.className),PropertyDefinition:A.tags.definition(A.tags.propertyName),PrivatePropertyDefinition:A.tags.definition(A.tags.special(A.tags.propertyName)),UpdateOp:A.tags.updateOperator,"LineComment Hashbang":A.tags.lineComment,BlockComment:A.tags.blockComment,Number:A.tags.number,String:A.tags.string,Escape:A.tags.escape,ArithOp:A.tags.arithmeticOperator,LogicOp:A.tags.logicOperator,BitOp:A.tags.bitwiseOperator,CompareOp:A.tags.compareOperator,RegExp:A.tags.regexp,Equals:A.tags.definitionOperator,Arrow:A.tags.function(A.tags.punctuation),": Spread":A.tags.punctuation,"( )":A.tags.paren,"[ ]":A.tags.squareBracket,"{ }":A.tags.brace,"InterpolationStart InterpolationEnd":A.tags.special(A.tags.brace),".":A.tags.derefOperator,", ;":A.tags.separator,"@":A.tags.meta,TypeName:A.tags.typeName,TypeDefinition:A.tags.definition(A.tags.typeName),"type enum interface implements namespace module declare":A.tags.definitionKeyword,"abstract global Privacy readonly override":A.tags.modifier,"is keyof unique infer":A.tags.operatorKeyword,JSXAttributeValue:A.tags.attributeValue,JSXText:A.tags.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":A.tags.angleBracket,"JSXIdentifier JSXNameSpacedName":A.tags.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":A.tags.attributeName,"JSXBuiltin/JSXIdentifier":A.tags.standard(A.tags.tagName)}),zf={__proto__:null,export:18,as:23,from:31,default:34,async:39,function:40,extends:52,this:56,true:64,false:64,null:76,void:80,typeof:84,super:102,new:136,delete:152,yield:161,await:165,class:170,public:227,private:227,protected:227,readonly:229,instanceof:248,satisfies:251,in:252,const:254,import:286,keyof:339,unique:343,infer:349,is:385,abstract:405,implements:407,type:409,let:412,var:414,using:417,interface:423,enum:427,namespace:433,module:435,declare:439,global:443,for:462,of:471,while:474,with:478,do:482,if:486,else:488,switch:492,case:498,try:504,catch:508,finally:512,return:516,throw:520,break:524,continue:528,debugger:532},Mf={__proto__:null,async:123,get:125,set:127,declare:187,public:189,private:189,protected:189,static:191,abstract:193,override:195,readonly:201,accessor:203,new:389},Uf={__proto__:null,"<":143},Gf=_.LRParser.deserialize({version:14,states:"$<UO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ08SO'#ChO+RO!bO'#CiO+aO#tO'#CiO+oO?MpO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DyO0fQ^O'#EROOQ07b'#EZ'#EZO1PQWO'#EWOOQO'#El'#ElOOQO'#Ie'#IeO1XQWO'#GmO1dQWO'#EkO1iQWO'#EkO3kQ08SO'#JiO6[Q08SO'#JjO6xQWO'#FZO6}Q&jO'#FqOOQ07b'#Fc'#FcO7YO,YO'#FcO7hQ7[O'#FxO9UQWO'#FwOOQ07b'#Jj'#JjOOQ07`'#Ji'#JiO9ZQWO'#GqOOQU'#KU'#KUO9fQWO'#IRO9kQ07hO'#ISOOQU'#JW'#JWOOQU'#IW'#IWQ`Q^OOO`Q^OOO%[Q^O'#DqO9sQ^O'#D}O9zQ^O'#EPO9aQWO'#GmO:RQ7[O'#CnO:aQWO'#EjO:lQWO'#EuO:qQ7[O'#FbO;`QWO'#GmOOQO'#KV'#KVO;eQWO'#KVO;sQWO'#GuO;sQWO'#GvO;sQWO'#GxO9aQWO'#G{O<jQWO'#HOO>RQWO'#CdO>cQWO'#H[O>kQWO'#HbO>kQWO'#HdO`Q^O'#HfO>kQWO'#HhO>kQWO'#HkO>pQWO'#HqO>uQ07iO'#HwO%[Q^O'#HyO?QQ07iO'#H{O?]Q07iO'#H}O9kQ07hO'#IPO?hQ08SO'#ChO@jQ`O'#DiQOQWOOO%[Q^O'#EPOAQQWO'#ESO:RQ7[O'#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6z;eQ7r5WQ8a6SQ8e6]Q8n;fQ8t;oQ8u;pQ9k8gQ9{9WQ:S9iQ:e#RR<P<]R#ZWR'U!eY!tQ'Z-Y1[5]S'Q!e-QQ'f!rS'p!u!xS'r!y5_S,}'R'YS-i'g'hQ-k'iQ2b-WR2p-jR(t#wR(w#xQ!fQT-X'Z-Y]!qQ!r'Z-Y1[5]Q#o]R'd:dT#jZ%bS#iZ%bS%hm,dU(a#g#h#kS-}(b(cQ.R(dQ0c+TQ2u.OU2v.P.Q.SS6c2w2xR8h6d`#]W#V#Y%e'}(W+Q-xr#fZm#g#h#k%b(b(c(d+T.O.P.Q.S2w2x6dQ1q,dQ2X,zQ6Q2PQ8`6RT;w'S+RT#`W%eS#_W%eS(O#V(WS(T#Y+QS-P'S+RT-s'}-xT'X!e%fQ$kfR)s$pT)h$k)iR3r.zT*X$x*ZR*a${Q0g+]Q2z.ZQ5`1^Q6h3OQ7z5cQ8k6gQ9Y7yQ9l8jQ9}9[Q:V9nQ:[:OR:_:WnqOXst!Z#c%j&m&o&p&r,h,m1w1zQ&g!VR,]&dtmOXst!U!V!Z#c%j&d&m&o&p&r,h,m1w1zR,d&jT%im,dR1W+|R,[&bQ&Q|R+t&RR+j%{T&k!W&nT&l!W&nT1y,m1z",nodeNames:"⚠ ArithOp ArithOp JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:371,context:_f,nodeProps:[["isolate",-8,4,5,13,33,35,48,50,52,""],["group",-26,8,16,18,65,201,205,209,210,212,215,218,228,230,236,238,240,242,245,251,257,259,261,263,265,267,268,"Statement",-32,12,13,28,31,32,38,48,51,52,54,59,67,75,79,81,83,84,106,107,116,117,134,137,139,140,141,142,144,145,164,165,167,"Expression",-23,27,29,33,37,39,41,168,170,172,173,175,176,177,179,180,181,183,184,185,195,197,199,200,"Type",-3,87,99,105,"ClassItem"],["openedBy",22,"<",34,"InterpolationStart",53,"[",57,"{",72,"(",157,"JSXStartCloseTag"],["closedBy",23,">",36,"InterpolationEnd",47,"]",58,"}",73,")",162,"JSXEndTag"]],propSources:[Nf],skippedNodes:[0,4,5,271],repeatNodeCount:37,tokenData:"$Fj(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#8g!R![#:v![!]#Gv!]!^#IS!^!_#J^!_!`#Ns!`!a$#_!a!b$(l!b!c$,k!c!}Er!}#O$-u#O#P$/P#P#Q$4h#Q#R$5r#R#SEr#S#T$7P#T#o$8Z#o#p$<k#p#q$=a#q#r$>q#r#s$?}#s$f%Z$f$g+g$g#BYEr#BY#BZ$AX#BZ$ISEr$IS$I_$AX$I_$I|Er$I|$I}$Dd$I}$JO$Dd$JO$JTEr$JT$JU$AX$JU$KVEr$KV$KW$AX$KW&FUEr&FU&FV$AX&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$AX?HUOEr(n%d_$f&j(Op(R!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$f&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$f&j(R!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(R!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`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),new _.LocalTokenGroup("j~RQYZXz{^~^O'x~~aP!P!Qd~iO'y~~",25,315)],topRules:{Script:[0,6],SingleExpression:[1,269],SingleClassItem:[2,270]},dialects:{jsx:0,ts:14614},dynamicPrecedences:{69:1,79:1,81:1,165:1,193:1},specialized:[{term:319,get:e=>zf[e]||-1},{term:334,get:e=>Mf[e]||-1},{term:70,get:e=>Uf[e]||-1}],tokenPrec:14638}),Df=[E.snippetCompletion("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),E.snippetCompletion("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),E.snippetCompletion("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),E.snippetCompletion("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),E.snippetCompletion("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),E.snippetCompletion("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),E.snippetCompletion("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),E.snippetCompletion("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),E.snippetCompletion("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),E.snippetCompletion('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),E.snippetCompletion('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Bf=Df.concat([E.snippetCompletion("interface ${name} {\n\t${}\n}",{label:"interface",detail:"definition",type:"keyword"}),E.snippetCompletion("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),E.snippetCompletion("enum ${name} {\n\t${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Lf=new W.NodeWeakMap,Ff=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function Jf(e){return(t,r)=>{let n=t.node.getChild("VariableDefinition");return n&&r(n,e),!0}}const Kf=["FunctionDeclaration"],Hf={FunctionDeclaration:Jf("function"),ClassDeclaration:Jf("class"),ClassExpression:()=>!0,EnumDeclaration:Jf("constant"),TypeAliasDeclaration:Jf("type"),NamespaceDeclaration:Jf("namespace"),VariableDefinition(e,t){e.matchContext(Kf)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function eh(e,t){let r=Lf.get(t);if(r)return r;let n=[],o=!0;function i(t,r){let o=e.sliceString(t.from,t.to);n.push({label:o,type:r})}return t.cursor(W.IterMode.IncludeAnonymous).iterate((t=>{if(o)o=!1;else if(t.name){let e=Hf[t.name];if(e&&e(t,i)||Ff.has(t.name))return!1}else if(t.to-t.from>8192){for(let r of eh(e,t.node))n.push(r);return!1}})),Lf.set(t,n),n}const th=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,rh=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function nh(e){let t=k.syntaxTree(e.state).resolveInner(e.pos,-1);if(rh.indexOf(t.name)>-1)return null;let r="VariableName"==t.name||t.to-t.from<20&&th.test(e.state.sliceDoc(t.from,t.to));if(!r&&!e.explicit)return null;let n=[];for(let r=t;r;r=r.parent)Ff.has(r.name)&&(n=n.concat(eh(e.state.doc,r)));return{options:n,from:r?t.from:e.pos,validFor:th}}const oh=k.LRLanguage.define({name:"javascript",parser:Gf.configure({props:[k.indentNodeProp.add({IfStatement:k.continuedIndent({except:/^\s*({|else\b)/}),TryStatement:k.continuedIndent({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:k.flatIndent,SwitchBody:e=>{let t=e.textAfter,r=/^\s*\}/.test(t),n=/^\s*(case|default)\b/.test(t);return e.baseIndent+(r?0:n?1:2)*e.unit},Block:k.delimitedIndent({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":k.continuedIndent({except:/^{/}),JSXElement(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},JSXEscape(e){let t=/\s*\}/.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"JSXOpenTag JSXSelfClosingTag":e=>e.column(e.node.from)+e.unit}),k.foldNodeProp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":k.foldInside,BlockComment:e=>({from:e.from+2,to:e.to-2})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),ih={test:e=>/^JSX/.test(e.name),facet:k.defineLanguageFacet({commentTokens:{block:{open:"{/*",close:"*/}"}}})},ah=oh.configure({dialect:"ts"},"typescript"),sh=oh.configure({dialect:"jsx",props:[k.sublanguageProp.add((e=>e.isTop?[ih]:void 0))]}),lh=oh.configure({dialect:"jsx ts",props:[k.sublanguageProp.add((e=>e.isTop?[ih]:void 0))]},"typescript");let ch=e=>({label:e,type:"keyword"});const Oh="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(ch),ph=Oh.concat(["declare","implements","private","protected","public"].map(ch));function uh(e={}){let t=e.jsx?e.typescript?lh:sh:e.typescript?ah:oh,r=e.typescript?Bf.concat(ph):Df.concat(Oh);return new k.LanguageSupport(t,[oh.data.of({autocomplete:E.ifNotIn(rh,E.completeFromList(r))}),oh.data.of({autocomplete:nh}),e.jsx?hh:[]])}function dh(e,t,r=e.length){for(let n=null==t?void 0:t.firstChild;n;n=n.nextSibling)if("JSXIdentifier"==n.name||"JSXBuiltin"==n.name||"JSXNamespacedName"==n.name||"JSXMemberExpression"==n.name)return e.sliceString(n.from,Math.min(n.to,r));return""}const fh="object"==typeof navigator&&/Android\b/.test(navigator.userAgent),hh=$.EditorView.inputHandler.of(((e,t,r,n,o)=>{if((fh?e.composing:e.compositionStarted)||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!oh.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:a}=i,s=a.changeByRange((e=>{var t;let r,{head:o}=e,i=k.syntaxTree(a).resolveInner(o-1,-1);if("JSXStartTag"==i.name&&(i=i.parent),a.doc.sliceString(o-1,o)!=n||"JSXAttributeValue"==i.name&&i.to>o);else{if(">"==n&&"JSXFragmentTag"==i.name)return{range:e,changes:{from:o,insert:"</>"}};if("/"==n&&"JSXStartCloseTag"==i.name){let e=i.parent,n=e.parent;if(n&&e.from==o-2&&((r=dh(a.doc,n.firstChild,o))||"JSXFragmentTag"==(null===(t=n.firstChild)||void 0===t?void 0:t.name))){let e=`${r}>`;return{range:w.EditorSelection.cursor(o+e.length,-1),changes:{from:o,insert:e}}}}else if(">"==n){let t=function(e){for(;;){if("JSXOpenTag"==e.name||"JSXSelfClosingTag"==e.name||"JSXFragmentTag"==e.name)return e;if("JSXEscape"==e.name||!e.parent)return null;e=e.parent}}(i);if(t&&!/^\/?>|^<\//.test(a.doc.sliceString(o,o+2))&&(r=dh(a.doc,t,o)))return{range:e,changes:{from:o,insert:`</${r}>`}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([i,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)})),mh=["_blank","_self","_top","_parent"],gh=["ascii","utf-8","utf-16","latin1","latin1"],yh=["get","post","put","delete"],Sh=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],bh=["true","false"],Qh={},wh={a:{attrs:{href:null,ping:null,type:null,media:null,target:mh,hreflang:null}},abbr:Qh,address:Qh,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Qh,aside:Qh,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Qh,base:{attrs:{href:null,target:mh}},bdi:Qh,bdo:Qh,blockquote:{attrs:{cite:null}},body:Qh,br:Qh,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Sh,formmethod:yh,formnovalidate:["novalidate"],formtarget:mh,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Qh,center:Qh,cite:Qh,code:Qh,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Qh,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Qh,div:Qh,dl:Qh,dt:Qh,em:Qh,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Qh,figure:Qh,footer:Qh,form:{attrs:{action:null,name:null,"accept-charset":gh,autocomplete:["on","off"],enctype:Sh,method:yh,novalidate:["novalidate"],target:mh}},h1:Qh,h2:Qh,h3:Qh,h4:Qh,h5:Qh,h6:Qh,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Qh,hgroup:Qh,hr:Qh,html:{attrs:{manifest:null}},i:Qh,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Sh,formmethod:yh,formnovalidate:["novalidate"],formtarget:mh,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Qh,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Qh,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Qh,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:gh,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Qh,noscript:Qh,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Qh,param:{attrs:{name:null,value:null}},pre:Qh,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Qh,rt:Qh,ruby:Qh,samp:Qh,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:gh}},section:Qh,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Qh,source:{attrs:{src:null,type:null,media:null}},span:Qh,strong:Qh,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Qh,summary:Qh,sup:Qh,table:Qh,tbody:Qh,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Qh,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Qh,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Qh,time:{attrs:{datetime:null}},title:Qh,tr:Qh,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Qh,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Qh},$h={accesskey:null,class:null,contenteditable:bh,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:bh,autocorrect:bh,autocapitalize:bh,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":bh,"aria-autocomplete":["inline","list","both","none"],"aria-busy":bh,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":bh,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":bh,"aria-hidden":bh,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":bh,"aria-multiselectable":bh,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":bh,"aria-relevant":null,"aria-required":bh,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},xh="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map((e=>"on"+e));for(let e of xh)$h[e]=null;class Ph{constructor(e,t){this.tags=Object.assign(Object.assign({},wh),e),this.globalAttrs=Object.assign(Object.assign({},$h),t),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}function vh(e,t,r=e.length){if(!t)return"";let n=t.firstChild,o=n&&n.getChild("TagName");return o?e.sliceString(o.from,Math.min(o.to,r)):""}function kh(e,t=!1){for(;e;e=e.parent)if("Element"==e.name){if(!t)return e;t=!1}return null}function Zh(e,t,r){let n=r.tags[vh(e,kh(t))];return(null==n?void 0:n.children)||r.allTags}function Th(e,t){let r=[];for(let n=kh(t);n&&!n.type.isTop;n=kh(n.parent)){let o=vh(e,n);if(o&&"CloseTag"==n.lastChild.name)break;o&&r.indexOf(o)<0&&("EndTag"==t.name||t.from>=n.firstChild.to)&&r.push(o)}return r}Ph.default=new Ph;const Eh=/^[:\-\.\w\u00b7-\uffff]*$/;function Rh(e,t,r,n,o){let i=/\s*>/.test(e.sliceDoc(o,o+5))?"":">",a=kh(r,!0);return{from:n,to:o,options:Zh(e.doc,a,t).map((e=>({label:e,type:"type"}))).concat(Th(e.doc,r).map(((e,t)=>({label:"/"+e,apply:"/"+e+i,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Xh(e,t,r,n){let o=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:r,to:n,options:Th(e.doc,t).map(((e,t)=>({label:e,apply:e+o,type:"type",boost:99-t}))),validFor:Eh}}function Ch(e,t){let{state:r,pos:n}=t,o=k.syntaxTree(r).resolveInner(n,-1),i=o.resolve(n);for(let e,t=n;i==o&&(e=o.childBefore(t));){let r=e.lastChild;if(!r||!r.type.isError||r.from<r.to)break;i=o=e,t=r.from}return"TagName"==o.name?o.parent&&/CloseTag$/.test(o.parent.name)?Xh(r,o,o.from,n):Rh(r,e,o,o.from,n):"StartTag"==o.name?Rh(r,e,o,n,n):"StartCloseTag"==o.name||"IncompleteCloseTag"==o.name?Xh(r,o,n,n):"OpenTag"==o.name||"SelfClosingTag"==o.name||"AttributeName"==o.name?function(e,t,r,n,o){let i=kh(r),a=i?t.tags[vh(e.doc,i)]:null,s=a&&a.attrs?Object.keys(a.attrs):[];return{from:n,to:o,options:(a&&!1===a.globalAttrs?s:s.length?s.concat(t.globalAttrNames):t.globalAttrNames).map((e=>({label:e,type:"property"}))),validFor:Eh}}(r,e,o,"AttributeName"==o.name?o.from:n,n):"Is"==o.name||"AttributeValue"==o.name||"UnquotedAttributeValue"==o.name?function(e,t,r,n,o){var i;let a,s=null===(i=r.parent)||void 0===i?void 0:i.getChild("AttributeName"),l=[];if(s){let i=e.sliceDoc(s.from,s.to),c=t.globalAttrs[i];if(!c){let n=kh(r),o=n?t.tags[vh(e.doc,n)]:null;c=(null==o?void 0:o.attrs)&&o.attrs[i]}if(c){let t=e.sliceDoc(n,o).toLowerCase(),r='"',i='"';/^['"]/.test(t)?(a='"'==t[0]?/^[^"]*$/:/^[^']*$/,r="",i=e.sliceDoc(o,o+1)==t[0]?"":t[0],t=t.slice(1),n++):a=/^[^\s<>='"]*$/;for(let e of c)l.push({label:e,apply:r+e+i,type:"constant"})}}return{from:n,to:o,options:l,validFor:a}}(r,e,o,"Is"==o.name?n:o.from,n):!t.explicit||"Element"!=i.name&&"Text"!=i.name&&"Document"!=i.name?null:function(e,t,r,n){let o=[],i=0;for(let n of Zh(e.doc,r,t))o.push({label:"<"+n,type:"type"});for(let t of Th(e.doc,r))o.push({label:"</"+t+">",type:"type",boost:99-i++});return{from:n,to:n,options:o,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}(r,e,o,n)}function jh(e){let{extraTags:t,extraGlobalAttributes:r}=e,n=r||t?new Ph(t,r):Ph.default;return e=>Ch(n,e)}const Yh=oh.parser.configure({top:"SingleExpression"}),_h=[{tag:"script",attrs:e=>"text/typescript"==e.type||"ts"==e.lang,parser:ah.parser},{tag:"script",attrs:e=>"text/babel"==e.type||"text/jsx"==e.type,parser:sh.parser},{tag:"script",attrs:e=>"text/typescript-jsx"==e.type,parser:lh.parser},{tag:"script",attrs:e=>/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type),parser:Yh},{tag:"script",attrs:e=>!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type),parser:oh.parser},{tag:"style",attrs:e=>(!e.lang||"css"==e.lang)&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type)),parser:jf.parser}],Ah=[{name:"style",parser:jf.parser.configure({top:"Styles"})}].concat(xh.map((e=>({name:e,parser:oh.parser})))),Wh=k.LRLanguage.define({name:"html",parser:af.configure({props:[k.indentNodeProp.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);return e.node.to<=e.pos+t[0].length?e.continue():e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit,Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].length<e.node.to)return e.continue();let t,r=null;for(let t=e.node;;){let e=t.lastChild;if(!e||"Element"!=e.name||e.to!=t.to)break;r=t=e}return r&&(!(t=r.lastChild)||"CloseTag"!=t.name&&"SelfClosingTag"!=t.name)?e.lineIndent(r.from)+e.unit:null}}),k.foldNodeProp.add({Element(e){let t=e.firstChild,r=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==r.name?r.from:e.to}:null}}),k.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}}),qh=Wh.configure({wrap:Of(_h,Ah)});const Vh=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Ih=$.EditorView.inputHandler.of(((e,t,r,n,o)=>{if(e.composing||e.state.readOnly||t!=r||">"!=n&&"/"!=n||!qh.isActiveAt(e.state,t,-1))return!1;let i=o(),{state:a}=i,s=a.changeByRange((e=>{var t,r,o;let i,s=a.doc.sliceString(e.from-1,e.to)==n,{head:l}=e,c=k.syntaxTree(a).resolveInner(l-1,-1);if("TagName"!=c.name&&"StartTag"!=c.name||(c=c.parent),s&&">"==n&&"OpenTag"==c.name){if("CloseTag"!=(null===(r=null===(t=c.parent)||void 0===t?void 0:t.lastChild)||void 0===r?void 0:r.name)&&(i=vh(a.doc,c.parent,l))&&!Vh.has(i)){return{range:e,changes:{from:l,to:l+(">"===a.doc.sliceString(l,l+1)?1:0),insert:`</${i}>`}}}}else if(s&&"/"==n&&"IncompleteCloseTag"==c.name){let e=c.parent;if(c.from==l-2&&"CloseTag"!=(null===(o=e.lastChild)||void 0===o?void 0:o.name)&&(i=vh(a.doc,e,l))&&!Vh.has(i)){let e=l+(">"===a.doc.sliceString(l,l+1)?1:0),t=`${i}>`;return{range:w.EditorSelection.cursor(l+t.length,-1),changes:{from:l,to:e,insert:t}}}}return{range:e}}));return!s.changes.empty&&(e.dispatch([i,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}));class Nh{constructor(e,t,r){this._htmlSrcElt=null,this.ignoreMutation=()=>!0,this.handleMouseEnter=()=>{this.dom.classList.add("node-enter")},this.handleMouseLeave=()=>{this.dom.classList.remove("node-enter")},this._node=e,this._outerView=t,this._getPos=r,this.schema=e.type.schema,this.dom=document.createElement("div"),this.dom.classList.add("html-node"),this._htmlRenderElt=document.createElement("p"),this._htmlRenderElt.textContent="",this._htmlRenderElt.classList.add("html-node-render");const n=document.createElement("span");n.innerHTML='<i class="ri-expand-left-right-line"></i> HTML',n.classList.add("html-node-label"),this.dom.appendChild(n),this.dom.appendChild(this._htmlRenderElt),this._htmlSrcElt=document.createElement("span"),this._htmlSrcElt.classList.add("html-src","node-hide"),this.languageConf=new w.Compartment,this.dom.appendChild(this._htmlSrcElt),this.dom.addEventListener("click",(()=>this.ensureFocus())),n.addEventListener("click",(()=>this.ensureFocus())),this.dom.addEventListener("mouseenter",this.handleMouseEnter),this.dom.addEventListener("mouseleave",this.handleMouseLeave),this.renderHtml()}ensureFocus(){this._outerView.hasFocus()&&(this._innerView?this._innerView.focus():this.openEditor())}update(e){var t;return this._node=e,!!(null===(t=this.mfCodemirrorView)||void 0===t?void 0:t.update(e))}selectNode(){var e;(null===(e=this.mfCodemirrorView)||void 0===e?void 0:e.updating)||this.openEditor()}deselectNode(){var e;(null===(e=this.mfCodemirrorView)||void 0===e?void 0:e.updating)&&this.closeEditor()}stopEvent(){return!0}renderHtml(){var e;if(!this._htmlRenderElt)return;const t=((null===(e=this.mfCodemirrorView)||void 0===e?void 0:e.content)||this._node.textContent).replace(/\n+|\t/g,"").trim();if(t.length<1)for(;this._htmlRenderElt.firstChild;)this._htmlRenderElt.firstChild.remove();else try{for(;this._htmlRenderElt.firstChild;)this._htmlRenderElt.firstChild.remove();this._htmlRenderElt.classList.remove("node-hide"),this._htmlRenderElt.classList.add("node-show"),this._htmlRenderElt.innerHTML=t}catch(e){}}setSelection(e,t){var r;this._innerView?null===(r=this.mfCodemirrorView)||void 0===r||r.setSelection(e,t):(this.openEditor(),this.mfCodemirrorView.setSelection(e,t))}openEditor(){var e;if(this._innerView)throw Error("inner view should not exist!");const t=function(e={}){let t,r="";!1===e.matchClosingTags&&(r="noMatch"),!0===e.selfClosingTags&&(r=(r?r+" ":"")+"selfClosing"),(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)&&(t=Of((e.nestedLanguages||[]).concat(_h),(e.nestedAttributes||[]).concat(Ah)));let n=t?Wh.configure({wrap:t,dialect:r}):r?qh.configure({dialect:r}):qh;return new k.LanguageSupport(n,[qh.data.of({autocomplete:jh(e)}),!1!==e.autoCloseTags?Ih:[],uh().support,new k.LanguageSupport(jf,jf.data.of({autocomplete:Cf})).support])}();this.mfCodemirrorView=new wd({view:this._outerView,node:this._node,getPos:this._getPos,languageName:"html",createParams:{parent:this._htmlSrcElt},extensions:[kd,t]}),this._htmlSrcElt.classList.remove("node-hide"),this._innerView=this.mfCodemirrorView.cm,null===(e=this._htmlRenderElt)||void 0===e||e.classList.add("node-hide");const r=this._node.textContent.length||0;this.setSelection(r,r),this._innerView.focus(),this._innerView.contentDOM.addEventListener("blur",(()=>{this.closeEditor(!0)})),this.mfCodemirrorView.forwardSelection()}destroy(){this.closeEditor(!1),this._htmlRenderElt&&(this._htmlRenderElt.remove(),delete this._htmlRenderElt),this._htmlSrcElt&&(this._htmlSrcElt.remove(),this._htmlSrcElt=null),this.dom.removeEventListener("mouseenter",this.handleMouseEnter),this.dom.removeEventListener("mouseleave",this.handleMouseLeave),this.dom.remove()}closeEditor(e=!0){this._innerView&&(this._innerView.destroy(),this._innerView=void 0),this.mfCodemirrorView&&(this.mfCodemirrorView.destroy(),this.mfCodemirrorView=void 0),e&&this.renderHtml()}}var zh=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"];function Mh(e){return({dispatch:t,view:r,tr:n})=>{if(!r)return!1;if(!n.selection.empty||!r.endOfTextblock(e))return!1;const o="left"===e||"up"===e?-1:1,i=n.selection.$head,a=mt.near(n.doc.resolve(o>0?i.after():i.before()),o);return!(!a.$head||"codeMirror"!==a.$head.parent.type.name&&"html_block"!==a.$head.parent.type.name)&&(null==t||t(n.setSelection(a)),!0)}}class Uh extends c.NodeExtension{get name(){return"html_block"}createNodeSpec(e,t){var r;return{group:"block",content:"text*",defining:!0,...t,code:!0,marks:"",attrs:{language:{default:"html"},...e.defaults()},parseDOM:[{tag:"pre",getAttrs:t=>!!c.isElementDomNode(t)&&e.parse(t)},...null!==(r=t.parseDOM)&&void 0!==r?r:[]],toDOM:()=>["pre",["code",0]],isolating:!0}}createNodeViews(){return(e,t,r)=>new Nh(e,t,r)}createInputRules(){var e,t;return[c.nodeInputRule({regexp:new RegExp("^</?("+(e=zh,t=ti,e.filter((e=>!t.includes(e)))).join("|")+")(?=(\\s|/?>|$))","i"),type:this.type,beforeDispatch:({tr:e,start:t,match:r})=>{const n=e.doc.resolve(t);e.setSelection(bt.near(n)),e.insertText(r[0])}})]}createKeymap(){return{ArrowLeft:Mh("left"),ArrowRight:Mh("right"),ArrowUp:Mh("up"),ArrowDown:Mh("down")}}fromMarkdown(){return[{type:Lo.block,token:"html_block",node:this.name,hasOpenClose:!1}]}toMarkdown({state:e,node:t}){e.write("\n"),e.text(t.textContent,!1),e.text("\n"),e.closeBlock(t),e.ensureNewLine()}}const Gh=e=>{const{node:r}=e,{src:n}=r.attrs,[o,i]=t.useState(n);return te.exports.jsx(C.Space,{children:te.exports.jsx(C.Tooltip,{title:"Image URL [Enter]",placement:"top",children:te.exports.jsx(C.Input,{placeholder:"Image URL",value:o,style:{fontSize:"14px"},onInput:e=>{i(e.currentTarget.value)},onPressEnter:()=>{e.updateAttributes&&e.updateAttributes({...r.attrs,src:o})}})})})};var Dh;!function(e){e[e.Right=0]="Right",e[e.Left=1]="Left",e[e.Top=2]="Top",e[e.Bottom=3]="Bottom",e[e.TopRight=4]="TopRight",e[e.TopLeft=5]="TopLeft",e[e.BottomRight=6]="BottomRight",e[e.BottomLeft=7]="BottomLeft"}(Dh||(Dh={}));const Bh=B.default.span`
62
+ position: absolute;
63
+ border-radius: 12px;
64
+ border: 2px solid #fff;
65
+ background: rgba(0, 0, 0, 0.65);
66
+ border: 1px solid rgba(255, 255, 255, 0.5);
67
+ border-radius: 6px;
68
+ transition: opacity 300ms ease-in 0s;
69
+ z-index: 99;
70
+
71
+ ${e=>e.visible?o.css`
72
+ opacity: 1;
73
+ `:o.css`
74
+ opacity: 0;
75
+ `}
76
+
77
+ ${e=>{switch(e.handleType){case Dh.BottomLeft:return o.css`
78
+ left: -6px;
79
+ bottom: -10px;
80
+ cursor: sw-resize;
81
+ `;case Dh.BottomRight:return o.css`
82
+ right: -6px;
83
+ bottom: -10px;
84
+ cursor: se-resize;
85
+ `;case Dh.TopLeft:return o.css`
86
+ left: -6px;
87
+ top: -6px;
88
+ cursor: nw-resize;
89
+ `;case Dh.TopRight:return o.css`
90
+ right: -6px;
91
+ top: -6px;
92
+ cursor: ne-resize;
93
+ `;case Dh.Left:return o.css`
94
+ left: 6px;
95
+ top: calc(50% - 20px);
96
+ height: 30px;
97
+ width: 6px;
98
+ cursor: col-resize;
99
+ `;case Dh.Right:return o.css`
100
+ right: 6px;
101
+ top: calc(50% - 20px);
102
+ height: 30px;
103
+ width: 6px;
104
+ cursor: col-resize;
105
+ `;case Dh.Top:return o.css`
106
+ left: calc(50% - 20px);
107
+ top: 6px;
108
+ height: 6px;
109
+ width: 30px;
110
+ cursor: row-resize;
111
+ `;case Dh.Bottom:return o.css`
112
+ right: calc(50% - 20px);
113
+ bottom: 6px;
114
+ height: 6px;
115
+ width: 30px;
116
+ cursor: row-resize;
117
+ `}}}
118
+ `,Lh=e=>te.exports.jsx(Bh,{className:"resizeable-handle",visible:e.visible,handleType:e.handleType,onMouseDown:t=>{e.onResizing&&e.onResizing(t,e.handleType)}});var Fh;!function(e){e[e.Fixed=0]="Fixed",e[e.Flexible=1]="Flexible"}(Fh||(Fh={}));const Jh=B.default.div`
119
+ display: inline-block;
120
+ position: relative;
121
+ max-width: 100%;
122
+ line-height: 0;
123
+ user-select: none;
124
+ border-radius: 2px;
125
+ transition: all 0.15s ease-out;
126
+ `,Kh=t.memo((e=>{const{node:r,aspectRatio:n=Fh.Fixed,updateAttributes:o,selected:i,controlInit:a}=e,[s,l]=t.useState({}),[c,O]=t.useState(!1),[p,u]=t.useState(!1),d=t.useRef([]),f=t.useRef(null),h=t.useRef(0),m=t.useRef(0),g=t.useCallback(((e,t)=>{e.preventDefault();const i=e.pageX,a=e.pageY,s=h.current||0,c=m.current||0,O=function(e,t,r,n){var o,i=!1,a=0;function s(){o&&clearTimeout(o)}function l(){for(var l=arguments.length,c=new Array(l),O=0;O<l;O++)c[O]=arguments[O];var p=this,u=Date.now()-a;function d(){a=Date.now(),r.apply(p,c)}i||(n&&!o&&d(),s(),void 0===n&&u>e?d():!0!==t&&(o=setTimeout(n?function(){o=void 0}:d,void 0===n?e-u:e)))}return"boolean"!=typeof t&&(n=r,r=t,t=void 0),l.cancel=function(){s(),i=!0},l}(100,!1,(e=>{const r=e.pageX,o=e.pageY,O=r-i,p=o-a;let u=null,d=null;if(n===Fh.Fixed&&s&&c)switch(t){case Dh.Right:case Dh.TopRight:case Dh.BottomRight:u=s+O,d=c/s*u;break;case Dh.Left:case Dh.TopLeft:case Dh.BottomLeft:u=s-O,d=c/s*u;break;case Dh.Bottom:d=c+p,u=s/c*d;break;case Dh.Top:d=c-p,u=s/c*d}else if(n===Fh.Flexible)switch(t){case Dh.Right:u=s+O;break;case Dh.Left:u=s-O;break;case Dh.Bottom:d=c+p;break;case Dh.Top:d=c-p;break;case Dh.BottomRight:case Dh.TopRight:u=s+O,d=c+p;break;case Dh.BottomLeft:case Dh.TopLeft:u=s-O,d=c+p}"number"==typeof u&&u<20&&(n===Fh.Fixed&&s&&c?(u=20,d=c/s*u):n===Fh.Flexible&&(u=20)),u&&f.current&&l((e=>({...e,width:Math.round(u)}))),d&&l((e=>({...e,height:Math.round(d)})))})),p=e=>{if(e.preventDefault(),document.removeEventListener("mousemove",O),document.removeEventListener("mouseup",p),f.current){const{width:e,height:t}=f.current.getBoundingClientRect();h.current=e,m.current=t,l({width:e,height:t}),o({...r.attrs,width:h.current,height:m.current})}};document.addEventListener("mousemove",O),document.addEventListener("mouseup",p),d.current.push((()=>document.removeEventListener("mousemove",O))),d.current.push((()=>document.removeEventListener("mouseup",p)))}),[n,r.attrs,o]),y=t.useCallback(((e,t)=>{g(e,t)}),[g]);t.useEffect((()=>{const e=()=>{if(f.current){const{width:e,height:t}=f.current.getBoundingClientRect();h.current=e,m.current=t,u(!0),l({width:e,height:t})}};return a?a(e):e(),()=>{d.current.forEach((e=>e())),d.current=[]}}),[a]);const S=i||c;return te.exports.jsxs(Jh,{ref:f,style:p?{width:`${s.width}px`,height:`${s.height}px`,aspectRatio:`${s.width} / ${s.height}`}:void 0,onMouseOver:()=>O(!0),onMouseOut:()=>O(!1),children:[te.exports.jsx(Lh,{visible:S,onResizing:y,handleType:Dh.Top}),te.exports.jsx(Lh,{visible:S,onResizing:y,handleType:Dh.Bottom}),te.exports.jsx(Lh,{visible:S,onResizing:y,handleType:Dh.Left}),te.exports.jsx(Lh,{visible:S,onResizing:y,handleType:Dh.Right}),e.children]})}));function Hh(e){const{node:r,selected:n,updateAttributes:o,handleViewImgSrcUrl:i}=e,[a,s]=t.useState(""),l=t.useRef();return t.useEffect((()=>{i?i(r.attrs.src).then((e=>{s(e)})):s(r.attrs.src)}),[i,r.attrs.src]),te.exports.jsx(C.Popover,{customContent:te.exports.jsx(Gh,{node:r,updateAttributes:o}),placement:"top-start",open:n,arrow:!1,children:te.exports.jsx(Kh,{controlInit:e=>l.current=e,...e,children:a?te.exports.jsx(C.Image,{fallback:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAAAAACIM/FCAAAChElEQVR4Ae3aMW/TQBxAcb70k91AAiGuGlZAtOlQApWaDiSdklZq2RPUTm1xUWL3PgqSpygkXlh88N54nn7S2Trd3y/CP5IQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECBEiRIgQIUKECPmPIEKECBEiRIgQIeX82+FBO0naB4eTRRkt5P7sNWt1Rw9RQvKThI2SYR4f5OoVW2rfRAYpT6hqHc8WeVHki9mgRdWwiAmyfA9AdrlaW5tlAHxcxQMpK8feRbGxPEkrSREN5ARg/y780V0GMIwFcgXwLg9byvsAN3FA8lfAfr7jYQZ0nqKAfAb21vYVwNruSoEvMUDuE+Ai7IKECZA+RAA5A7JiN6TMgFHzIeUb4DLshoQZ0H1uPGQOvFzVQZYtYNF4yBg4DnWQMAAmjYccArN6yBQ4ajzkAFjUQ+ZAv/GQNpDXQ3Kg03hIAhT1kAJIhLi1/vJl39Ic6Mf3+a2K8PM7BgahtgEwjuKI0lqGjSI8opRdYFb3sk/jODSGEZCVuyFFDzgPzYc8JMBkN2QMpI8RQMIQ2LvdBblNgdM4Lh/aQJaHrf3sAe2nKCDhGqCfb3VEcx1UNQTItlzQ3fYAvoZYIMUHgHRSbiyPU4BPZUSX2JWEbLZcW5v2qByrmMYKxZCq1mA6z4sin08HLapOy8gGPddtttT5HuHobZiwUXr6K85h6KjLWm/PH+MdTy/GR/12knb6g8mPZ38YECJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAhQoQIESJEiBAh0fUb5q7oCGreEVEAAAAASUVORK5CYII=",onLoad:()=>{var e;return null===(e=l.current)||void 0===e?void 0:e.call(l)},...r.attrs,src:a}):null})})}let em=(()=>{let e,t,r,n,o=[c.extension({defaultOptions:{createPlaceholder:tm,handleViewImgSrcUrl:async e=>e,updatePlaceholder:()=>{},destroyPlaceholder:()=>{},uploadHandler:rm,preferPastedTextContent:!0}})],i=[],a=c.NodeExtension,s=[];return t=class extends a{constructor(){super(...arguments),this.ReactComponent=(Io(this,s),e=>{const{handleViewImgSrcUrl:t}=this.options;return te.exports.jsx(Hh,{handleViewImgSrcUrl:t,...e})})}get name(){return"html_image"}createTags(){return[c.ExtensionTag.InlineNode,c.ExtensionTag.Media]}createNodeSpec(e,t){var r;const{preferPastedTextContent:n}=this.options;return{inline:!0,selectable:!0,atom:!0,...t,attrs:{...e.defaults(),alt:{default:""},crop:{default:null},height:{default:null},width:{default:null},rotate:{default:null},src:{default:null},title:{default:""},fileName:{default:null}},parseDOM:[{tag:"img[src]",getAttrs:t=>{var r;if(c.isElementDomNode(t)){const o=function({element:e,parse:t}){var r,n,o,i;const{width:a,height:s}=function(e){let{width:t,height:r}=e.style;return t=t||e.getAttribute("width")||"",r=r||e.getAttribute("height")||"",{width:t,height:r}}(e);return{...t(e),alt:null!==(r=e.getAttribute("alt"))&&void 0!==r?r:"",height:Number.parseInt(s||"0",10)||null,src:null!==(n=e.getAttribute("src"))&&void 0!==n?n:null,title:null!==(o=e.getAttribute("title"))&&void 0!==o?o:"",width:Number.parseInt(a||"0",10)||null,fileName:null!==(i=e.getAttribute("data-file-name"))&&void 0!==i?i:null}}({element:t,parse:e.parse});return(!n||!(null===(r=o.src)||void 0===r?void 0:r.startsWith("file:///")))&&o}return{}}},...null!==(r=t.parseDOM)&&void 0!==r?r:[]],toDOM:t=>{const r=c.omitExtraAttributes(t.attrs,e);return["img",{...e.dom(t),...r}]}}}insertImage(e,t){return({tr:r,dispatch:n})=>{const{from:o,to:i}=c.getTextSelection(null!=t?t:r.selection,r.doc),a=this.type.create(e);return null==n||n(r.replaceRangeWith(o,i,a)),!0}}uploadImage(e,t){const{updatePlaceholder:r,destroyPlaceholder:n,createPlaceholder:o}=this.options;return i=>{const{tr:a}=i;let s=a.selection.from;return this.store.createPlaceholderCommand({promise:e,placeholder:{type:"widget",get pos(){return s},createElement:(e,r)=>{const n=o(e,r);return null==t||t(n),n},onUpdate:(e,t,n,o)=>{r(e,t,n,o)},onDestroy:(e,t)=>{n(e,t)}},onSuccess:(e,t,r)=>this.insertImage(e,t)(r)}).validate((({tr:e,dispatch:t})=>{const r=He(e.doc,s,this.type);return null!=r&&(s=r,e.selection.empty||null==t||t(e.deleteSelection()),!0)}),"unshift").generateCommand()(i)}}fileUploadFileHandler(e,t,r){var n;const{preferPastedTextContent:o,uploadHandler:i}=this.options;if(o&&function(e){return void 0!==e.clipboardData}(t)&&(null===(n=t.clipboardData)||void 0===n?void 0:n.getData("text/plain")))return!1;const{commands:a,chain:s}=this.store,l=i(e.map(((e,t)=>({file:e,progress:e=>{a.updatePlaceholder(l[t],e)}}))));c.isNumber(r)&&s.selectText(r);for(const e of l)s.uploadImage(e);return s.run(),!0}createPasteRules(){return[{type:"file",regexp:/image/i,fileHandler:e=>{const t="drop"===e.type?e.pos:void 0;return this.fileUploadFileHandler(e.files,e.event,t)}}]}createInputRules(){return[c.nodeInputRule({regexp:new RegExp("<img[^>]*>"),type:this.type,getAttributes:e=>Ko(e[0])})]}fromMarkdown(){return[{type:Lo.inline,token:"html_image",node:this.name}]}toMarkdown({state:e,node:t}){e.text(ei({tag:"img",attrs:t.attrs,voidElement:!0}),!1)}},No(t,"HtmlImageExtension"),(()=>{var l;const O="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(l=a[Symbol.metadata])&&void 0!==l?l:null):void 0;r=[c.command()],n=[c.command()],Vo(t,null,r,{kind:"method",name:"insertImage",static:!1,private:!1,access:{has:e=>"insertImage"in e,get:e=>e.insertImage},metadata:O},null,s),Vo(t,null,n,{kind:"method",name:"uploadImage",static:!1,private:!1,access:{has:e=>"uploadImage"in e,get:e=>e.uploadImage},metadata:O},null,s),Vo(null,e={value:t},o,{kind:"class",name:t.name,metadata:O},null,i),t=e.value,O&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:O}),Io(t,i)})(),t})();function tm(){const e=document.createElement("div");return e.classList.add(X.ExtensionImageTheme.IMAGE_LOADER),e}function rm(e){c.invariant(e.length>0,{code:c.ErrorConstant.EXTENSION,message:"The upload handler was applied for the image extension without any valid files"});let t=0;const r=[];for(const{file:n,progress:o}of e)r.push((()=>new Promise((r=>{const i=new FileReader;i.addEventListener("load",(i=>{var a;t+=1,o(t/e.length),r({src:null===(a=i.target)||void 0===a?void 0:a.result,fileName:n.name})}),{once:!0}),i.readAsDataURL(n)}))));return r}function nm(e){const{node:r,selected:n}=e,o=t.useRef();return te.exports.jsx(C.Popover,{placement:"top-start",open:n,arrow:!1,children:te.exports.jsx(Kh,{controlInit:e=>o.current=e,...e,children:te.exports.jsx("iframe",{onLoad:()=>{var e;return null===(e=o.current)||void 0===e?void 0:e.call(o)},...r.attrs})})})}let om=(()=>{let e,t,r,n,o,i,a=[c.extension({defaultOptions:{defaultSource:"",class:"remirror-iframe",enableResizing:!1},staticKeys:["defaultSource","class"]})],s=[],l=c.NodeExtension,O=[];return t=class extends l{constructor(){super(...arguments),this.ReactComponent=(Io(this,O),e=>te.exports.jsx(nm,{...e}))}get name(){return"iframe_inline"}createTags(){return[c.ExtensionTag.InlineNode,c.ExtensionTag.Media]}createNodeSpec(e,t){var r;const{defaultSource:n}=this.options;return{inline:!0,selectable:!0,atom:!0,...t,attrs:{...e.defaults(),src:n?{default:n}:{},allowFullScreen:{default:!0},frameBorder:{default:0},type:{default:"custom"},width:{default:null},height:{default:null}},parseDOM:[{tag:"iframe",getAttrs:t=>{var r,n;const o=t.getAttribute("frameborder"),i=t.getAttribute("width"),a=t.getAttribute("height");return{...e.parse(t),type:null!==(r=t.getAttribute("data-embed-type"))&&void 0!==r?r:void 0,height:a&&Number.parseInt(a,10)||void 0,width:i&&Number.parseInt(i,10)||void 0,allowFullScreen:"false"!==t.getAttribute("allowfullscreen"),frameBorder:o?Number.parseInt(o,10):0,src:null!==(n=t.getAttribute("src"))&&void 0!==n?n:""}}},...null!==(r=t.parseDOM)&&void 0!==r?r:[]],toDOM:t=>{const{frameBorder:r,allowFullScreen:n,src:o,type:i,...a}=c.omitExtraAttributes(t.attrs,e),{class:s}=this.options;return["iframe",{...e.dom(t),...a,class:c.cx(s,`${s}-${i}`),src:o,"data-embed-type":i,allowfullscreen:n?"true":"false",frameBorder:null==r?void 0:r.toString()}]}}}addIframe(e){return({tr:t,dispatch:r})=>(null==r||r(t.replaceSelectionWith(this.type.create(e))),!0)}addYouTubeVideo(e){return this.addIframe({src:im(e),frameBorder:0,type:"youtube",allowFullScreen:"true"})}updateIframeSource(e){return({tr:t,dispatch:r})=>{const n=c.findSelectedNodeOfType({selection:t.selection,types:this.type});return!!n&&(null==r||r(t.setNodeMarkup(n.pos,void 0,{...n.node.attrs,src:e})),!0)}}updateYouTubeVideo(e){return this.updateIframeSource(im(e))}createInputRules(){return[c.nodeInputRule({regexp:new RegExp("<iframe[^>]*>"),type:this.type,getAttributes:e=>Ko(e[0])})]}fromMarkdown(){return[{type:Lo.inline,token:"iframe_inline",node:this.name}]}toMarkdown({state:e,node:t}){e.text(ei({tag:"iframe",attrs:t.attrs,voidElement:!0}),!1)}},No(t,"IframeExtension"),(()=>{var p;const u="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(p=l[Symbol.metadata])&&void 0!==p?p:null):void 0;r=[c.command()],n=[c.command()],o=[c.command()],i=[c.command()],Vo(t,null,r,{kind:"method",name:"addIframe",static:!1,private:!1,access:{has:e=>"addIframe"in e,get:e=>e.addIframe},metadata:u},null,O),Vo(t,null,n,{kind:"method",name:"addYouTubeVideo",static:!1,private:!1,access:{has:e=>"addYouTubeVideo"in e,get:e=>e.addYouTubeVideo},metadata:u},null,O),Vo(t,null,o,{kind:"method",name:"updateIframeSource",static:!1,private:!1,access:{has:e=>"updateIframeSource"in e,get:e=>e.updateIframeSource},metadata:u},null,O),Vo(t,null,i,{kind:"method",name:"updateYouTubeVideo",static:!1,private:!1,access:{has:e=>"updateYouTubeVideo"in e,get:e=>e.updateYouTubeVideo},metadata:u},null,O),Vo(null,e={value:t},a,{kind:"class",name:t.name,metadata:u},null,s),t=e.value,u&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),Io(t,s)})(),t})();function im(e){var t,r,n;const{video:o,enhancedPrivacy:i=!0,showControls:a=!0,startAt:s=0}=e,l=null!==(n=null===(r=null===(t=function(e){const t=document.createElement("a");t.href=e;const r=$o(t.search);return{protocol:t.protocol,host:t.host,hostname:t.hostname,port:t.port,pathname:t.pathname,search:t.search,searchObject:r,hash:t.hash}}(o))||void 0===t?void 0:t.searchObject)||void 0===r?void 0:r.v)&&void 0!==n?n:o,O=i?"https://www.youtube-nocookie.com":"https://www.youtube.com",p=c.object();return a||(p.controls="0"),s&&(p["amp;start"]=s),`${O}/embed/${l}?${wo(p)}`}var am;!function(e){e.open="open",e.close="close",e.execute="execute",e.nextItem="nextItem",e.prevItem="prevItem",e.inputChange="inputChange"}(am||(am={}));const sm=(e,t,r)=>e.dispatch(e.state.tr.setMeta(t,r)),lm=["Unidentified","Alt","AltGraph","CapsLock","Control","Fn","FnLock","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","Hyper","Meta","NumLock","PageDown","PageUp","Pause","PrintScreen","Redo","ScrollLock","Shift","Super","Symbol","SymbolLock","Enter","Tab","ArrowDown","ArrowLeft","ArrowRight","ArrowUp","End","Home","PageDown","PageUp","Backspace","Clear","Copy","CrSel","Cut","Delete","EraseEof","ExSel","Insert","Paste","Redo","Undo","Accept","Again","Attn","Cancel","ContextMenu","Escape","Execute","Find","Finish","Help","Pause","Play","Props","Select","ZoomIn","ZoomOut","BrightnessDown","BrightnessUp","Eject","LogOff","Power","PowerOff","PrintScreen","Hibernate","Standby","WakeUp","AllCandidates","Alphanumeric","CodeInput","Compose","Convert","Dead","FinalMode","GroupFirst","GroupLast","GroupNext","GroupPrevious","ModeChange","NextCandidate","NonConvert","PreviousCandidate","Process","SingleCandidate","HangulMode","HanjaMode","JunjaMode","Eisu","Hankaku","Hiragana","HiraganaKatakana","KanaMode","KanjiMode","Katakana","Romaji","Zenkaku","ZenkakuHanaku"];var cm;!function(e){e.OpenMenu="openMenu",e.CloseMenu="closeMenu",e.Execute="Execute",e.NextItem="NextItem",e.PrevItem="PrevItem",e.inputChange="InputChange",e.addChar="addChar",e.removeChar="removeChar",e.Ignore="Ignore",e.Catch="Catch"}(cm||(cm={}));let Om=(()=>{let e,t,r=[y.extension({defaultOptions:{}})],n=[],o=y.PlainExtension;return t=class extends o{get name(){return"slash-menu"}createPlugin(){const e={open:!1,filter:"",ignoredKeys:lm};return{props:{handleKeyDown(t,r){const n=t.state,o=this.getState(n);if(!o)return!1;const i=((e,t,r,n,o,i)=>{const a=o||((e=!1)=>({shouldOpen:(t,r,n)=>{const o=n.state,i=o.selection.from<0||o.selection.from>o.doc.content.size?null:o.doc.resolve(o.selection.from),a=null==i?void 0:i.parent,s="paragraph"===(null==a?void 0:a.type.name),l=s&&2===(null==a?void 0:a.nodeSize),c=o.selection.$head.parentOffset,O=o.selection.$head.parent.textContent.slice(c-1,c),p=" "===O||""===O||" "===O;return!t.open&&"/"===r.key&&s&&(l||p||o.selection.from!==o.selection.to&&e)},shouldClose:(e,t)=>e.open&&("/"===t.key||"Escape"===t.key||"Backspace"===t.key)&&0===e.filter.length}))(i);if(a.shouldOpen(e,t,r))return cm.OpenMenu;if(a.shouldClose(e,t,r))return cm.CloseMenu;if(e.open){if("ArrowDown"===t.key)return cm.NextItem;if("ArrowUp"===t.key)return cm.PrevItem;if("Enter"===t.key||"Tab"===t.key)return cm.Execute;if("Escape"===t.key||"Backspace"===t.key&&0===e.filter.length)return cm.CloseMenu;if(e.filter.length>0&&"Backspace"===t.key)return cm.removeChar;if(!n.includes(t.key))return cm.addChar;if("ArrowLeft"===t.key||"ArrowRight"===t.key)return cm.Catch}return cm.Ignore})(o,r,t,e.ignoredKeys);switch(i){case cm.OpenMenu:return sm(t,this.spec.key,{type:am.open}),!0;case cm.CloseMenu:return"/"===r.key?t.dispatch(n.tr.insertText("/").setMeta(this.spec.key,{type:am.close})):sm(t,this.spec.key,{type:am.close}),!0;case cm.Execute:case cm.NextItem:case cm.PrevItem:case cm.addChar:case cm.removeChar:case cm.Catch:return!0;default:return!1}}},state:{init:()=>e,apply(t,r){const n=t.getMeta(this.spec.key);switch(null==n?void 0:n.type){case am.open:return{...e,open:!0};case am.close:return e;case am.execute:return{...e,open:!0};default:return r}}},initialState:e}}},No(t,"SlashMenuExtension"),(()=>{var i;const a="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(i=o[Symbol.metadata])&&void 0!==i?i:null):void 0;Vo(null,e={value:t},r,{kind:"class",name:t.name,metadata:a},null,n),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),Io(t,n)})(),t})(),pm=(()=>{let e,t,r=[c.extension({defaultOptions:{emptyNodeClass:X.ExtensionPlaceholderTheme.IS_EMPTY,placeholder:""},staticKeys:[],handlerKeys:[],customHandlerKeys:[]})],n=[],o=c.PlainExtension;return t=class extends o{get name(){return"placeholder"}createAttributes(){return{"aria-placeholder":this.options.placeholder}}createPlugin(){return{props:{decorations:e=>function(e){const{extension:t,state:r}=e,{emptyNodeClass:n,placeholder:o}=t.options,i=[];return r.doc.descendants(((e,t)=>{if("paragraph"===e.type.name&&0===e.content.size&&o&&r.selection.from-1===t){const r=fn.node(t,t+e.nodeSize,{class:n,"data-placeholder":o});i.push(r)}})),gn.create(r.doc,i)}({state:e,extension:this})}}}onSetOptions(e){const{changes:t}=e;t.placeholder.changed&&this.store.phase>=c.ManagerPhase.EditorView&&this.store.updateAttributes()}},No(t,"PlaceholderExtension"),(()=>{var i;const a="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(i=o[Symbol.metadata])&&void 0!==i?i:null):void 0;Vo(null,e={value:t},r,{kind:"class",name:t.name,metadata:a},null,n),t=e.value,a&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:a}),Io(t,n)})(),t})();var um=B.default.div`
127
+ width: 100%;
128
+ `;function dm(e){return!!(c.isExtension(e)&&e.fromMarkdown&&e.toMarkdown)}function fm(e){const t=[];for(const r of e.extensions)dm(r)&&t.push(...r.fromMarkdown());return new mi(e.schema,t)}function hm(e){const t={};for(const r of e.extensions)dm(r)&&(t[r.name]=r.toMarkdown);return new Mm(t)}const mm=({handleViewImgSrcUrl:e}={})=>{const t=r.createReactManager((()=>[...Nm({handleViewImgSrcUrl:e})])),n=fm(t),o=hm(t);return{view:"Wysiwyg",manager:t,stringToDoc:e=>function(e){const t=new ft(e),r=[];return ta(t,e,0,r),r.length&&t.step(new Mi(r)),t.doc}(n.parse(e)),docToString:e=>o.serialize(e)}},gm=B.default.div`
129
+ position: absolute;
130
+
131
+ .MuiList-padding {
132
+ padding: 0;
133
+ }
134
+ `,ym=e=>{const{positioner:n}=e,o=r.useCommands(),[i,a]=t.useState(!1),s=t.useRef(null),l=t.useContext(_m),c=[{label:"insert column after",handler:o.addTableColumnAfter},{label:"insert column before",handler:o.addTableColumnBefore},{label:"insert row after",handler:o.addTableRowAfter},{label:"insert row before",handler:o.addTableRowBefore},{label:"delete column",handler:o.deleteTableColumn},{label:"delete row",handler:o.deleteTableRow}],O=e=>{s.current&&s.current.contains(e.target)||a(!1)},{ref:p,key:u,x:d,y:f}=n;return te.exports.jsxs(gm,{ref:p,style:{left:d+l.left,top:f+l.top,width:20,height:20},onMouseDown:e=>{e.preventDefault(),a(!0)},children:[te.exports.jsx("div",{ref:s,children:te.exports.jsx("i",{className:"ri-equalizer-line"})}),te.exports.jsx(q.Popper,{sx:{zIndex:1},open:i,anchorEl:s.current,role:void 0,transition:!0,disablePortal:!0,children:({TransitionProps:e,placement:t})=>te.exports.jsx(q.Grow,{...e,style:{transformOrigin:"bottom"===t?"center top":"center bottom"},children:te.exports.jsx(q.Paper,{children:te.exports.jsx(q.ClickAwayListener,{onClickAway:O,children:te.exports.jsx(q.MenuList,{dense:!0,autoFocusItem:!0,children:c.map((e=>te.exports.jsx(q.MenuItem,{onClick:()=>{e.handler(),a(!1)},children:te.exports.jsx(q.ListItemText,{children:e.label})},e.label)))})})})})})]},u)},Sm=B.default.div`
135
+ position: absolute;
136
+ color: ${e=>e.theme.dangerColor};
137
+ `;function bm(e){const{positioner:n}=e,o=r.useCommands(),i=t.useContext(_m),{ref:a,key:s,x:l,y:c}=n;return te.exports.jsx(Sm,{ref:a,style:{left:l+i.left,top:c+i.top-26,width:20,height:20},onMouseDown:e=>{e.preventDefault(),o.deleteTable()},children:te.exports.jsx("i",{className:"ri-delete-bin-line"})},s)}const Qm={y:-999999,x:-999999,width:0,height:0},wm={...Qm,left:-999999,top:-999999,bottom:-999999,right:-999999},$m={...Qm,rect:{...wm,toJSON:()=>wm},visible:!1},xm=V.Positioner.create({hasChanged:V.hasStateChanged,getActive(e){const{state:t,view:r}=e,{selection:n}=t,o=function(e){return y.findParentNodeOfType({selection:e,types:"table"})}(n);if(!o)return V.Positioner.EMPTY;const i=function(e){return y.findParentNodeOfType({selection:e,types:["tableHeaderCell","tableCell"]})}(n);if(!i)return V.Positioner.EMPTY;const{pos:a}=i,s=r.nodeDOM(o.pos),l=r.nodeDOM(a);if(!y.isElementDomNode(s)||!y.isElementDomNode(l))return V.Positioner.EMPTY;const c=s.getBoundingClientRect(),O=l.getBoundingClientRect();return[{pos:o.pos,rect:new DOMRect(c.x,c.y,c.width,c.height)},{pos:a,rect:new DOMRect(O.x,c.y,O.width,c.height)}]},getID:e=>`${e.pos}`,getPosition(e){const{view:t,data:r}=e,n=t.nodeDOM(r.pos);if(!y.isElementDomNode(n))return $m;const o=n.getBoundingClientRect(),i=t.dom.getBoundingClientRect(),a=o.width,s=t.dom.scrollLeft+o.left-i.left,l=t.dom.scrollTop+o.top-i.top,c=o.height,O=new DOMRect(o.x,o.y,a,c);return{x:s,y:l,width:a,height:c,rect:O,visible:V.isPositionVisible(O,t.dom)}}}),Pm=({positioner:e})=>{const n=r.useMultiPositioner(e,[]),{forceUpdatePositioners:o}=r.useCommands();if(t.useEffect((()=>{o()}),[o]),0===n.length)return null;const i=[bm,ym];return te.exports.jsx(te.exports.Fragment,{children:n.map(((e,t)=>{const r=i[t];return te.exports.jsx(r,{positioner:e},e.key)}))})},vm=()=>te.exports.jsx(te.exports.Fragment,{children:te.exports.jsx(r.PositionerPortal,{children:te.exports.jsx(Pm,{positioner:xm})})}),km=B.default.h1`
138
+ color: ${({theme:e})=>e.dangerColor};
139
+ `;class Zm extends D.default.Component{constructor(e){var t;super(e),this.state={hasError:null!==(t=this.props.hasError)&&void 0!==t&&t}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){console.error("[ErrorBoundary]",e,t)}render(){return this.state.hasError?te.exports.jsxs(te.exports.Fragment,{children:[te.exports.jsx(km,{"data-testid":"editor_error",children:"Sorry, something went wrong!"}),te.exports.jsx("p",{children:String(this.props.error)}),te.exports.jsx("a",{href:"https://github.com/drl990114/MarkFlowy/issues/new/choose",target:"_blank",rel:"noreferrer",children:"Please tell us about it and we will fix it in less time"})]}):this.props.children}}const Tm=B.default.div.attrs((e=>e))`
140
+ border: 1px solid ${e=>e.theme.borderColor};
141
+ margin-right: 1px;
142
+ margin-bottom: 1px;
143
+ width: 10px;
144
+ height: 10px;
145
+ background-color: ${e=>e.inScope?e.theme.blue:e.theme.contextMenuBgColor};
146
+ `,Em=t.memo(t.forwardRef(((e,r)=>{const{commands:n,closeMenu:o}=e,[i,a]=t.useState(3),[s,l]=t.useState(3);t.useImperativeHandle(r,(()=>({createTable:()=>{n.createTable({rowsCount:i,columnsCount:s,withHeaderRow:!1})},handleKeyDown:e=>{if("ArrowRight"!==e.key){if("ArrowLeft"===e.key)return!(!e.metaKey&&!e.ctrlKey&&(l((e=>e-1<1?1:e-1)),1));if("ArrowUp"!==e.key){if("ArrowDown"!==e.key)return"Enter"===e.key?(n.createTable({rowsCount:i,columnsCount:s}),!1):void 0;a((e=>e+1))}else a((e=>e-1<1?1:e-1))}else l((e=>e+1))}})));return te.exports.jsxs("div",{children:[te.exports.jsxs("span",{children:["Rows: ",i," Cols: ",s]}),Array.from({length:10}).map(((e,t)=>te.exports.jsx("div",{style:{display:"flex"},children:Array.from({length:6}).map(((e,r)=>{const a=t<i&&r<s;return te.exports.jsx(Tm,{inScope:a,onClick:()=>{n.createTable({rowsCount:t,columnsCount:r,withHeaderRow:!1}),o()}},r)}))},t)))]})}))),Rm=t.memo((({rootRef:e,commands:r,closeMenu:n})=>{var o;const i=t.useRef({}),a=t.useMemo((()=>{const e=Array.from({length:6}).map(((e,t)=>({title:`heading ${t+1}`,id:`heading${t+1}`,handler:()=>{r.toggleHeading({level:t+1})}})));return[{title:"Text",id:"text",children:e},{title:"Table",id:"table",handler:()=>{var e;null===(e=i.current.table)||void 0===e||e.createTable()},Renderer:{id:"table",Component:te.exports.jsx(Em,{ref:e=>i.current.table=e,commands:r,closeMenu:n})}}]}),[n,r]),[s,l]=t.useState(a[0].id),[c,O]=t.useState(),p=a.findIndex((e=>e.id===s)),u=a[p],d=t.useCallback((()=>{if(c)if(null==u?void 0:u.children){const e=u.children.findIndex((e=>e.id===c))+1;e<u.children.length&&O(u.children[e].id)}else u.Renderer&&O(u.Renderer.id);else{const e=p+1;e<a.length&&l(a[e].id)}}),[c,p,u.Renderer,u.children,a]),f=t.useCallback((()=>{if(c)if(null==u?void 0:u.children){const e=u.children.findIndex((e=>e.id===c))-1;e>=0&&O(u.children[e].id)}else u.Renderer&&O(u.Renderer.id);else{const e=p-1;e>=0&&l(a[e].id)}}),[c,p,u.Renderer,u.children,a]),h=t.useCallback((()=>{(null==u?void 0:u.children)?O(u.children[0].id):(null==u?void 0:u.Renderer)&&O(u.Renderer.id)}),[u]),m=t.useCallback((()=>{O(void 0)}),[]);return t.useEffect((()=>{const e=e=>{var t;if(c){const t=i.current[c];if(null==t?void 0:t.handleKeyDown){if(!1===t.handleKeyDown(e))return void n()}}if("ArrowDown"===e.key)d();else if("ArrowUp"===e.key)f();else if("ArrowRight"===e.key)h();else if("ArrowLeft"===e.key)m();else if("Enter"===e.key){if(c){const e=null===(t=null==u?void 0:u.children)||void 0===t?void 0:t.find((e=>e.id===c));(null==e?void 0:e.handler)&&e.handler()}(null==u?void 0:u.handler)&&u.handler(),n()}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}}),[c,d,m,h,f,n,a,u]),te.exports.jsxs("div",{ref:e,style:{display:"flex"},children:[te.exports.jsx(Xm,{active:!0,location:"left",children:a.map((e=>{const t=e.id===s;return te.exports.jsx(Cm,{onClick:()=>l(e.id),selected:t,children:e.title},e.id)}))}),te.exports.jsx(Xm,{active:!!c,location:"right",children:(null==u?void 0:u.Renderer)?u.Renderer.Component:null===(o=null==u?void 0:u.children)||void 0===o?void 0:o.map((e=>{const t=e.id===c;return te.exports.jsx(Cm,{selected:t,onClick:()=>{var t;O(e.id),null===(t=e.handler)||void 0===t||t.call(e),n()},children:e.title},e.id)}))})]})})),Xm=B.default.div.attrs((e=>e))`
147
+ display: flex;
148
+ min-width: 130px;
149
+ flex-direction: column;
150
+ overscroll-behavior: contain;
151
+ border-radius: ${e=>"left"===e.location?`${e.theme.smallBorderRadius} 0 0\n ${e.theme.smallBorderRadius}`:`0 ${e.theme.smallBorderRadius} ${e.theme.smallBorderRadius} 0`};
152
+ border-width: 1px;
153
+ border-style: solid;
154
+ border-right: none;
155
+ border-color: ${e=>e.theme.borderColor};
156
+ background-color: ${e=>e.active?x.darken(e.theme.contextMenuBgColor,.2):e.theme.contextMenuBgColor};
157
+ padding: ${e=>e.theme.spaceXs};
158
+ color: ${e=>e.theme.primaryFontColor};
159
+ font-size: ${e=>e.theme.fontXs};
160
+ outline: none;
161
+ overflow: visible;
162
+ `,Cm=B.default.li.attrs((e=>({...e})))`
163
+ display: flex;
164
+ cursor: default;
165
+ align-items: center;
166
+ border-radius: ${e=>e.theme.smallBorderRadius};
167
+ padding: ${e=>e.theme.spaceXs};
168
+ outline: none !important;
169
+
170
+ &:hover {
171
+ background-color: ${e=>e.theme.blue};
172
+ color: hsl(204 20% 100%);
173
+ }
174
+
175
+ ${e=>{if(e.selected)return o.css`
176
+ background-color: ${e=>e.theme.blue};
177
+ color: hsl(204 20% 100%);
178
+ `}}
179
+ `;var jm;!function(e){e.auto="auto",e.autoStart="auto-start",e.autoEnd="auto-end",e.top="top",e.topStart="top-start",e.topEnd="top-end",e.bottom="bottom",e.bottomStart="bottom-start",e.bottomEnd="bottom-end",e.right="right",e.rightStart="right-start",e.rightEnd="right-end",e.left="left",e.leftStart="left-start",e.leftEnd="left-end"}(jm||(jm={}));const Ym=()=>{const{view:e,getState:r,commands:n}=I.useRemirrorContext({autoUpdate:!0}),o=r(),i=I.useExtension(Om),a=i.getPluginState(),s=t.useRef(null);t.useEffect((()=>{if(!s)return;const t=t=>{!s.current||t.target&&t.target instanceof Node&&s.current.contains(null==t?void 0:t.target)||sm(e,i.pluginKey,{type:am.close})};return document.addEventListener("mousedown",t),()=>{document.removeEventListener("mousedown",t)}}),[e,s,i.pluginKey]);const[l,c]=t.useState(null),O=t.useMemo((()=>{var t;const r=null===(t=e.domAtPos(o.selection.to))||void 0===t?void 0:t.node,n=e.state.selection.to,i=e.coordsAtPos(n).left;if(!(r instanceof HTMLElement))return;const{top:a,height:s}=r.getBoundingClientRect();return{getBoundingClientRect:()=>({top:a,right:i,bottom:a,left:i,width:0,height:s,x:i,y:a,toJSON:()=>JSON.stringify({top:a,right:i,bottom:a,left:i,width:0,height:s,x:i,y:a})})}}),[e,o]),{styles:p,attributes:u}=N.usePopper(O,l,{placement:jm.bottomStart,modifiers:[{name:"flip",enabled:!0},{name:"preventOverflow"}]}),d=t.useCallback((()=>{a.open&&sm(e,i.pluginKey,{type:am.close})}),[e,a.open,i.pluginKey]);return t.useEffect((()=>{e.focus()}),[null==a?void 0:a.open]),te.exports.jsx(te.exports.Fragment,{children:a.open?te.exports.jsx("div",{ref:c,style:{...p.popper,backgroundColor:"#1e1e1e",zIndex:1e3},...u.popper,children:te.exports.jsx(Rm,{rootRef:s,commands:n,closeMenu:d})}):null})},_m=t.createContext({top:0,left:0}),Am={stringToDoc:null,docToString:null},Wm=e=>{const{content:n,hooks:o,delegate:a,offset:s,wysiwygToolBar:l,isTesting:c,editable:O}=e,p=t.useMemo((()=>null!=a?a:mm()),[a]),u=t.useCallback((t=>{var r;try{const n=p.docToString(t.state.doc);null===(r=e.onChange)||void 0===r||r.call(e,t,n)}catch(e){console.error(e)}}),[p,e]);let d;null===Am.stringToDoc&&(Am.stringToDoc=p.stringToDoc,Am.docToString=p.docToString);try{d=p.stringToDoc(n)}catch(e){return te.exports.jsx(Zm,{hasError:!0,error:e})}return te.exports.jsx(Zm,{children:te.exports.jsx(um,{children:te.exports.jsx(_m.Provider,{value:s||{top:0,left:0},children:te.exports.jsxs(r.Remirror,{manager:p.manager,initialContent:d,hooks:o,editable:O,onChange:u,children:[te.exports.jsx(vm,{}),te.exports.jsx(Ym,{}),l||null,te.exports.jsx(oe,{className:"w-full markdown-body"}),c?te.exports.jsx(i.ProsemirrorDevTools,{}):null]})})})})};Wm.defaultProps={editable:!0};var qm=t.memo(Wm);function Vm(e){if(!e)return!1;if(Array.isArray(e))return!(e.length>1)&&Vm(e[0]);const t=e.content;return t?Vm(t):"text"===e.type}class Im extends c.PlainExtension{get name(){return"clipboard"}createPlugin(){return{props:{handlePaste:(e,t)=>{var r,n;const o=Am.stringToDoc,i=e.state.schema,a=null===(n=(r=e.props).editable)||void 0===n?void 0:n.call(r,e.state),{clipboardData:s}=t;if(!a||!s)return!1;if(e.state.selection.$from.node().type.spec.code)return!1;const l=s.getData("text/plain"),c=s.getData("text/html");if(0===c.length&&0===l.length)return!1;const O=Se.fromSchema(i);let p;if(0===c.length){const e=null==o?void 0:o(l);if(!e||"string"==typeof e)return!1;p=Te.fromSchema(i).serializeFragment(e.content)}else{const e=document.createElement("template");e.innerHTML=c,p=e.content.cloneNode(!0),e.remove()}const u=O.parseSlice(p),d=function(e){if(1===e.content.childCount){const t=e.content.firstChild;if("text"===(null==t?void 0:t.type.name)&&0===t.marks.length)return t;if("paragraph"===(null==t?void 0:t.type.name)&&1===t.childCount){const e=t.firstChild;if("text"===(null==e?void 0:e.type.name)&&0===e.marks.length)return e}}return!1}(u);return d?(e.dispatch(e.state.tr.replaceSelectionWith(d,!0)),!0):(e.dispatch(e.state.tr.replaceSelection(u)),!0)},clipboardTextSerializer:(e,t)=>{const r=t.state.schema,n=Am.docToString;if(Vm(e.content.toJSON()))return e.content.textBetween(0,e.content.size,"\n\n");const o=r.topNodeType.createAndFill(void 0,e.content);if(!o)return"";return(null==n?void 0:n(o))||""}}}}}function Nm({handleViewImgSrcUrl:e}){return[...b.corePreset({excludeExtensions:["paragraph","text"]}),...$a({handleViewImgSrcUrl:e}),new Q.CountExtension({}),new em({handleViewImgSrcUrl:e}),new om({enableResizing:!0}),new pm({placeholder:"Type '/' for commands"}),new Ya({}),new Ta,new Ea,new ja,new Xa,new Za({}),new Ra,new Lm({}),new Wi({resizable:!1}),new qi,new Ii,new Vi,new yd({decoration:{style:"background-color: yellow; color: black"},activeDecoration:{style:"background-color: orange; color: black"}}),new Uh,new Im,new r.ReactComponentExtension({}),new yo({}),new Om,new ka,new va]}class zm{constructor(e){this.nodes=e,this.delimiter="",this.out="",this.closed=null,this.inTightList=!1}flushClose(e=2){if(this.closed){if(this.ensureNewLine(),e>1){let t=this.delimiter;const r=/\s+$/.exec(t);r&&(t=t.slice(0,t.length-r[0].length));for(let r=1;r<e;r++)this.out+=t+"\n"}this.closed=null}}wrapBlock(e,t,r,n){const o=this.delimiter;this.write(t||e),this.delimiter=this.delimiter+e,n(),this.delimiter=o,this.closeBlock(r)}atBlank(){return/(^|\n)$/.test(this.out)}ensureNewLine(){this.atBlank()||(this.out+="\n")}write(e){this.flushClose(),this.delimiter&&this.atBlank()&&(this.out+=this.delimiter),e&&(this.out+=e)}closeBlock(e){this.closed=e}text(e,t=!0){const r=e.split("\n");for(let e=0;e<r.length;e++){const n=this.atBlank()||this.closed;this.write(),this.out+=t?this.esc(r[e],Boolean(n)):r[e],e!=r.length-1&&(this.out+="\n")}}render(e,t,r,n=0){const o=this.nodes[e.type.name];if(o){if(!o)throw new Error(`Can't find node spec for type '${e.type.name}'`);o({state:this,node:e,parent:t,index:r,counter:n})}}renderContent(e){let t=0;e.forEach(((r,n,o)=>{!function(e){return"list"===e.type.name&&"ordered"===e.attrs.kind}(r)?t=0:t+=1,this.render(r,e,o,t)}))}renderInline(e){e.forEach(((t,r,n)=>{t.isText?this.text(t.text||"",!1):this.render(t,e,n)}))}renderList(e,t,r){this.closed&&this.closed.type===e.type?this.flushClose(3):this.inTightList?this.flushClose(1):this.flushClose(2);const n=this.inTightList;this.inTightList=!0,e.forEach(((n,o,i)=>{i&&this.flushClose(1),this.wrapBlock(t,r(i),e,(()=>this.render(n,e,i)))})),this.inTightList=n}esc(e,t){return e=e.replace(/[`*\\~\[\]]/g,"\\$&"),t&&(e=e.replace(/^[:#\-*+]/,"\\$&").replace(/^(\d+)\./,"$1\\.")),e}quote(e){const t=e.includes('"')?e.includes("'")?"()":"''":'""';return t[0]+e+t[1]}repeat(e,t){let r="";for(let n=0;n<t;n++)r+=e;return r}getEnclosingWhitespace(e){return{leading:(/^(\s+)/.exec(e)||[])[0],trailing:(/(\s+)$/.exec(e)||[])[0]}}}class Mm{constructor(e){this.nodes=e}serialize(e){const t=new zm(this.nodes);return t.renderContent(e),t.out}}const Um=({keyword:e,languagesList:t,currentLanguage:r})=>{let n=P.languages;e&&(n=new ee.default(P.languages,{keys:["name"]}).search(e).map((e=>e.item))),t.innerHTML="",n.forEach((e=>{const n=document.createElement("li");n.classList.add("code-block__language"),n.classList.toggle("code-block__language--active",e.name===r),n.innerText=e.name,t.append(n)}))},Gm=e=>{let t;const r=e=>{e.target.classList.contains("code-block__languages__input")||n()},n=()=>{null==t||t.destroy(),t=void 0,document.removeEventListener("click",r)};return{create:(n,o)=>{let i=e.node.attrs.language||"";i===Bm&&(i="");const a=(e=>{const t=document.createElement("ul");return t.classList.add("code-block__languages"),P.languages.forEach((r=>{const n=document.createElement("li");n.classList.add("code-block__language"),n.classList.toggle("code-block__language--active",r.name===e),n.innerText=r.name,t.append(n)})),t})(i),s=e=>{const t=o();t&&n.dispatch(n.state.tr.setNodeMarkup(t,void 0,{language:e}))},l=document.createElement("div"),c=document.createElement("input");return l.classList.add("code-block__reference","code-block__reference--active"),c.classList.add("code-block__languages__input"),l.appendChild(c),c.value=i,c.addEventListener("focus",(()=>{t=new H.default({target:c,content:a,position:"bottom left"})})),document.addEventListener("click",r,!0),c.addEventListener("input",(e=>{if(e.target){const t=e.target.value;Um({keyword:t,currentLanguage:i,languagesList:a}),s(t)}})),null==a||a.addEventListener("click",(e=>{i=e.target.innerText,s(i),c.value=i})),Um({keyword:i,currentLanguage:i,languagesList:a}),l},destroy:n}};class Dm{constructor({node:e,view:t,getPos:r,extensions:n}){this.node=e,this.view=t,this.getPos=r,this.languageName="",this.mfCodemirrorView=new wd({view:this.view,getPos:this.getPos,node:this.node,extensions:n,languageName:this.languageName}),this.cm=this.mfCodemirrorView.cm,this.dom=this.cm.dom}update(e){return this.node=e,this.mfCodemirrorView.update(e)}setSelection(e,t){this.mfCodemirrorView.setSelection(e,t)}selectNode(){this.focus()}focus(){this.cm.focus(),this.mfCodemirrorView.forwardSelection()}stopEvent(){return!0}destroy(){this.mfCodemirrorView.destroy()}}const Bm="indent-code";let Lm=(()=>{let e,t,r,n,o,i,a=[c.extension({defaultOptions:{hideDecoration:!1,extensions:null,toggleName:"paragraph"}})],s=[],l=c.NodeExtension,O=[];return t=class extends l{constructor(){super(...arguments),this.nodeview=void Io(this,O)}get name(){return"codeMirror"}createNodeSpec(e,t){var r;return{group:"block",content:"text*",marks:"",defining:!0,...t,code:!0,attrs:{...e.defaults(),language:{default:""}},parseDOM:[{tag:"pre",getAttrs:t=>!!c.isElementDomNode(t)&&e.parse(t)},...null!==(r=t.parseDOM)&&void 0!==r?r:[]],toDOM:()=>["pre",["code",0]],isolating:!0}}createNodeViews(){return(e,t,r)=>(this.nodeview=new Dm({node:e,view:t,getPos:r,extensions:this.options.extensions,toggleName:this.options.toggleName}),this.nodeview)}createKeymap(){return{ArrowLeft:Mh("left"),ArrowRight:Mh("right"),ArrowUp:Mh("up"),ArrowDown:Mh("down")}}createInputRules(){return[c.nodeInputRule({regexp:/^```(\S+) $/,type:this.type,beforeDispatch:({tr:e,start:t})=>{const r=e.doc.resolve(t);e.setSelection(bt.near(r))},getAttributes:e=>{var t;return{language:null!==(t=e[1])&&void 0!==t?t:""}}})]}enterKey({dispatch:e,tr:t}){var r;if(!c.isTextSelection(t.selection)||!t.selection.empty)return!1;const{nodeBefore:n,parent:o}=t.selection.$anchor;if(!(null==n?void 0:n.isText)||!o.type.isTextblock)return!1;const i=/^```(\S*)?$/,{text:a,nodeSize:s}=n,{textContent:l}=o;if(!a)return!1;const O=a.match(i),p=l.match(i);if(!O||!p)return!1;const u=null!==(r=O[1])&&void 0!==r?r:"",d=t.selection.$from.before(),f=d+s+1;return t.replaceWith(d,f,this.type.create({language:u})),t.setSelection(bt.near(t.doc.resolve(d+1))),e&&e(t),!0}createCodeMirror(e){return c.setBlockType(this.type,e)}updateCodeMirror(e){const t=this.type;return({state:r,dispatch:n,tr:o})=>{const i=c.findParentNodeOfType({types:t,selection:r.selection});return!(!i||c.isEqual(e,i.node.attrs))&&(o.setNodeMarkup(i.pos,t,{...i.node.attrs,...e}),n&&n(o),!0)}}changeCodeMirrorTheme(e){return()=>(Qd(e),!0)}fromMarkdown(){return[{type:Lo.block,token:"fence",node:this.name,hasOpenClose:!1,getAttrs:e=>({language:e.info})},{type:Lo.block,token:"code_block",node:this.name,hasOpenClose:!1,getAttrs:()=>({language:Bm})}]}toMarkdown({state:e,node:t}){t.attrs.language!==Bm?(e.write("```"+(t.attrs.language||"")+"\n"),e.text(t.textContent,!1),e.text("\n"),e.write("```"),e.closeBlock(t)):(e.wrapBlock(" "," ",t,(()=>e.renderContent(t))),e.closeBlock(t)),e.ensureNewLine()}createDecorations(e){if(this.options.hideDecoration)return gn.empty;const t=c.findParentNodeOfType({types:this.type,selection:e.selection});if(!t)return gn.empty;if(!P.languages||P.languages.length<=1)return gn.empty;const{create:r,destroy:n}=Gm(t),o=fn.widget(t.pos,r,{ignoreSelection:!0,stopEvent:()=>!0,key:"language-menu",destroy:n});return gn.create(e.doc,[o])}},No(t,"LineCodeMirrorExtension"),(()=>{var p;const u="function"==typeof Symbol&&Symbol.metadata?Object.create(null!==(p=l[Symbol.metadata])&&void 0!==p?p:null):void 0;r=[c.keyBinding({shortcut:"Enter"})],n=[c.command()],o=[c.command()],i=[c.command()],Vo(t,null,r,{kind:"method",name:"enterKey",static:!1,private:!1,access:{has:e=>"enterKey"in e,get:e=>e.enterKey},metadata:u},null,O),Vo(t,null,n,{kind:"method",name:"createCodeMirror",static:!1,private:!1,access:{has:e=>"createCodeMirror"in e,get:e=>e.createCodeMirror},metadata:u},null,O),Vo(t,null,o,{kind:"method",name:"updateCodeMirror",static:!1,private:!1,access:{has:e=>"updateCodeMirror"in e,get:e=>e.updateCodeMirror},metadata:u},null,O),Vo(t,null,i,{kind:"method",name:"changeCodeMirrorTheme",static:!1,private:!1,access:{has:e=>"changeCodeMirrorTheme"in e,get:e=>e.changeCodeMirrorTheme},metadata:u},null,O),Vo(null,e={value:t},a,{kind:"class",name:t.name,metadata:u},null,s),t=e.value,u&&Object.defineProperty(t,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u}),Io(t,s)})(),t})();function Fm(){return r.createReactManager((()=>[new Q.CountExtension({}),new co({content:"codeMirror"}),new Lm({hideDecoration:!0,extensions:[vd,U.markdown()]})]))}const Jm=()=>{const e=Fm();return{manager:e,stringToDoc:t=>{const r=e.schema,n=t?r.text(t):void 0;return r.nodes.doc.create({},r.nodes.codeMirror.create({language:"markdown"},n))},docToString:e=>e.textContent,view:"SourceCode"}},[Km,Hm]=n.createContextState((({props:e})=>({...e}))),eg=t.memo((e=>{const{markdownToolBar:t}=e,{content:n,markText:o,hooks:a,isTesting:s,editable:l}=Hm();let c;try{c=o.stringToDoc(n)}catch(e){return te.exports.jsx(Zm,{hasError:!0,error:e})}return te.exports.jsx(Zm,{children:te.exports.jsxs(r.Remirror,{manager:o.manager,initialContent:c,hooks:a,editable:l,onChange:e.onChange,children:[te.exports.jsx(oe,{className:"h-full w-full overflow-auto px-0",style:{padding:0}}),t||null,s?te.exports.jsx(i.ProsemirrorDevTools,{}):null]})})}));var tg=t.memo((e=>{const{content:r,delegate:n,isTesting:o,hooks:i,markdownToolBar:a}=e,s=t.useMemo((()=>null!=n?n:Jm()),[n]),l=t.useCallback((t=>{var r;try{const n=s.docToString(t.state.doc);null===(r=e.onChange)||void 0===r||r.call(e,t,n)}catch(e){console.error(e)}}),[s,e]);return te.exports.jsx(Km,{content:r,isTesting:o,markText:s,hooks:i,children:te.exports.jsx(eg,{markdownToolBar:a,onChange:l})})}));const rg=t.memo(t.forwardRef(((e,r)=>{const{hooks:n=[],onContextMounted:o,...i}=e,[a,s]=t.useState("wysiwyg");t.useImperativeHandle(r,(()=>({getType:()=>a,toggleType:e=>{s(e)}})));const l=t.useMemo((()=>[()=>(e=>{const r=I.useRemirrorContext();t.useEffect((()=>{e&&e(r)}),[e,r])})(o),...n]),[n,o]);return"sourceCode"===a?te.exports.jsx(tg,{...i,hooks:l}):te.exports.jsx(qm,{...i,hooks:l})})));Object.defineProperty(e,"useCommands",{enumerable:!0,get:function(){return r.useCommands}}),Object.defineProperty(e,"useHelpers",{enumerable:!0,get:function(){return r.useHelpers}}),Object.defineProperty(e,"useKeymap",{enumerable:!0,get:function(){return r.useKeymap}}),Object.defineProperty(e,"useRemirrorContext",{enumerable:!0,get:function(){return r.useRemirrorContext}}),Object.defineProperty(e,"createTheme",{enumerable:!0,get:function(){return v.createTheme}}),e.Editor=rg,e.EditorExtensions=Nm,e.EditorProvider=({theme:e,children:t})=>te.exports.jsx(o.ThemeProvider,{theme:e,children:t}),e.OffsetContext=_m,e.SourceEditor=tg,e.WysiwygEditor=qm,e.buildMarkdownParser=fm,e.buildMarkdownSerializer=hm,e.changeTheme=Qd,e.computeChange=Pd,e.createSourceCodeDelegate=Jm,e.createSourceCodeManager=Fm,e.createWysiwygDelegate=mm,e.getLanguageMap=$d,e.loadLanguage=xd,e.wysiwygTransformer=Am,Object.defineProperty(e,"__esModule",{value:!0})}));
180
+ //# sourceMappingURL=index.umd.min.js.map