@wangeditor-next/yjs-for-vue 0.1.4 → 0.1.5
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.
- package/README.md +8 -0
- package/dist/core/src/editor/dom-editor.d.ts +1 -0
- package/dist/core/src/editor/interface.d.ts +4 -1
- package/dist/core/src/render/text/renderText.d.ts +1 -1
- package/dist/core/src/text-area/TextArea.d.ts +3 -0
- package/dist/core/src/text-area/helpers.d.ts +7 -3
- package/dist/core/src/utils/weak-maps.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
Base on [slate-yjs/react](https://github.com/BitPhinix/slate-yjs/tree/main/packages/react)
|
|
2
2
|
|
|
3
3
|
This package contains Vue-specific components/utils for @wangeditor-next/yjs. Explore the source to learn more!
|
|
4
|
+
|
|
5
|
+
Demo app: `apps/demo-yjs-vue3`
|
|
6
|
+
|
|
7
|
+
Start from repo root:
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
pnpm demo:yjs:vue3
|
|
11
|
+
```
|
|
@@ -94,6 +94,7 @@ export declare const DomEditor: {
|
|
|
94
94
|
toSlatePoint<T extends boolean>(editor: IDomEditor, domPoint: DOMPoint, options: {
|
|
95
95
|
exactMatch: T;
|
|
96
96
|
suppressThrow: T;
|
|
97
|
+
searchDirection?: "forward" | "backward";
|
|
97
98
|
}): T extends true ? Point | null : Point;
|
|
98
99
|
hasRange(editor: IDomEditor, range: Range): boolean;
|
|
99
100
|
getNodeType(node: Node): string;
|
|
@@ -11,6 +11,7 @@ import { DOMElement } from '../utils/dom';
|
|
|
11
11
|
export type ElementWithId = Element & {
|
|
12
12
|
id: string;
|
|
13
13
|
};
|
|
14
|
+
type MoveOptions = Parameters<Editor['move']>[0];
|
|
14
15
|
export type getMenuConfigReturnType<K> = K extends keyof IMenuConfig ? IMenuConfig[K] : ISingleMenuConfig;
|
|
15
16
|
/**
|
|
16
17
|
* 扩展 slate Editor 接口
|
|
@@ -53,7 +54,8 @@ export interface IDomEditor extends Editor {
|
|
|
53
54
|
getEditableContainer: () => DOMElement;
|
|
54
55
|
select: (at: Location) => void;
|
|
55
56
|
deselect: () => void;
|
|
56
|
-
move
|
|
57
|
+
move(options?: MoveOptions): void;
|
|
58
|
+
move(distance: number, reverse?: boolean): void;
|
|
57
59
|
moveReverse: (distance: number) => void;
|
|
58
60
|
restoreSelection: () => void;
|
|
59
61
|
getTableSelection?: () => NodeEntryWithContext[][] | null;
|
|
@@ -68,3 +70,4 @@ export interface IDomEditor extends Editor {
|
|
|
68
70
|
undo?: () => void;
|
|
69
71
|
redo?: () => void;
|
|
70
72
|
}
|
|
73
|
+
export {};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @description render text node
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
-
import { Text as SlateText
|
|
5
|
+
import { Ancestor, Text as SlateText } from 'slate';
|
|
6
6
|
import { VNode } from 'snabbdom';
|
|
7
7
|
import { IDomEditor } from '../../editor/interface';
|
|
8
8
|
declare function renderText(textNode: SlateText, parent: Ancestor, editor: IDomEditor): VNode;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { Dom7Array, DOMElement } from '../utils/dom';
|
|
6
6
|
declare class TextArea {
|
|
7
|
+
private selectionChangeRoot;
|
|
7
8
|
readonly id: number;
|
|
8
9
|
$box: Dom7Array;
|
|
9
10
|
$textAreaContainer: Dom7Array;
|
|
@@ -20,7 +21,9 @@ declare class TextArea {
|
|
|
20
21
|
private latestEditorSelection;
|
|
21
22
|
constructor(boxSelector: string | DOMElement);
|
|
22
23
|
private get editorInstance();
|
|
24
|
+
private bindSelectionChange;
|
|
23
25
|
private onDOMSelectionChange;
|
|
26
|
+
flushDOMSelectionChange(): void;
|
|
24
27
|
/**
|
|
25
28
|
* 绑定事件,如 beforeinput onblur onfocus keydown click copy/paste drag/drop 等
|
|
26
29
|
*/
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* @description textarea helper fns
|
|
3
3
|
* @author wangfupeng
|
|
4
4
|
*/
|
|
5
|
-
import { DOMRange, DOMNode } from '../utils/dom';
|
|
6
5
|
import { IDomEditor } from '../editor/interface';
|
|
6
|
+
import { DOMNode, DOMRange } from '../utils/dom';
|
|
7
7
|
/**
|
|
8
8
|
* Check if two DOM range objects are equal.
|
|
9
9
|
*/
|
|
@@ -12,14 +12,18 @@ export declare const isRangeEqual: (a: DOMRange, b: DOMRange) => boolean;
|
|
|
12
12
|
* Check if the target is editable and in the editor.
|
|
13
13
|
*/
|
|
14
14
|
export declare function hasEditableTarget(editor: IDomEditor, target: EventTarget | null): target is DOMNode;
|
|
15
|
+
/**
|
|
16
|
+
* Check if the target is in the editor.
|
|
17
|
+
*/
|
|
18
|
+
export declare function hasTarget(editor: IDomEditor, target: EventTarget | null): target is DOMNode;
|
|
15
19
|
/**
|
|
16
20
|
* Check if the target is inside void and in an non-readonly editor.
|
|
17
21
|
*/
|
|
18
22
|
export declare function isTargetInsideNonReadonlyVoid(editor: IDomEditor, target: EventTarget | null): boolean;
|
|
19
23
|
/**
|
|
20
|
-
* Check if the target
|
|
24
|
+
* Check if the target can participate in editor selection.
|
|
21
25
|
*/
|
|
22
|
-
export declare function
|
|
26
|
+
export declare function hasSelectableTarget(editor: IDomEditor, target: EventTarget | null): boolean;
|
|
23
27
|
/**
|
|
24
28
|
* Check if a DOM event is overrode by a handler.
|
|
25
29
|
*/
|
|
@@ -56,3 +56,5 @@ export declare const CHANGING_NODE_PATH: WeakMap<Editor, Path>;
|
|
|
56
56
|
export declare const EDITOR_TO_SELECTION: WeakMap<Editor, Range>;
|
|
57
57
|
export declare const EDITOR_TO_EMITTER: WeakMap<Editor, Emitter>;
|
|
58
58
|
export declare const EDITOR_TO_CAN_PASTE: WeakMap<Editor, boolean>;
|
|
59
|
+
export declare const EDITOR_TO_PENDING_COMPOSITION_END: WeakMap<Editor, boolean>;
|
|
60
|
+
export declare const EDITOR_TO_PENDING_SELECTION: WeakMap<Editor, Range | null>;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@wangeditor-next/yjs"),require("@wangeditor-next/editor"),require("slate")):"function"==typeof define&&define.amd?define(["exports","vue","@wangeditor-next/yjs","@wangeditor-next/editor","slate"],t):t((r="undefined"!=typeof globalThis?globalThis:r||self).WangEditorYjsForVue={},r.vue,r.yjs,r.editor,r.slate)}(this,function(r,t,n,e,i){"use strict";var o,u,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function c(){if(u)return o;u=1;var r=function(r){return r&&r.Math===Math&&r};return o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof f&&f)||r("object"==typeof o&&o)||function(){return this}()||Function("return this")()}var s,l,v,p,y,d,h,g,b={};function m(){return l?s:(l=1,s=function(r){try{return!!r()}catch(r){return!0}})}function w(){if(p)return v;p=1;var r=m();return v=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function O(){if(d)return y;d=1;var r=m();return y=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function S(){if(g)return h;g=1;var r=O(),t=Function.prototype.call;return h=r?t.bind(t):function(){return t.apply(t,arguments)},h}var j,E,R,P,x,A,T,C,F,k,I,L,D,M,N,z,_,G,W,B,U,q,J,V,$,H,X,Y,K,Q,Z,rr,tr,nr,er,ir,or,ur,fr,ar,cr,sr={};function lr(){if(j)return sr;j=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return sr.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,sr}function vr(){return R?E:(R=1,E=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function pr(){if(x)return P;x=1;var r=O(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return P=r?e:function(r){return function(){return n.apply(r,arguments)}},P}function yr(){if(T)return A;T=1;var r=pr(),t=r({}.toString),n=r("".slice);return A=function(r){return n(t(r),8,-1)}}function dr(){if(F)return C;F=1;var r=pr(),t=m(),n=yr(),e=Object,i=r("".split);return C=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?i(r,""):e(r)}:e}function hr(){return I?k:(I=1,k=function(r){return null==r})}function gr(){if(D)return L;D=1;var r=hr(),t=TypeError;return L=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function br(){if(N)return M;N=1;var r=dr(),t=gr();return M=function(n){return r(t(n))}}function mr(){if(_)return z;_=1;var r="object"==typeof document&&document.all;return z=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function wr(){if(W)return G;W=1;var r=mr();return G=function(t){return"object"==typeof t?null!==t:r(t)}}function Or(){if(U)return B;U=1;var r=c(),t=mr();return B=function(n,e){return arguments.length<2?(i=r[n],t(i)?i:void 0):r[n]&&r[n][e];var i},B}function Sr(){if(J)return q;J=1;var r=pr();return q=r({}.isPrototypeOf)}function jr(){if(X)return H;X=1;var r,t,n=c(),e=function(){if($)return V;$=1;var r=c().navigator,t=r&&r.userAgent;return V=t?String(t):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.version,f=u&&u.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),H=t}function Er(){if(K)return Y;K=1;var r=jr(),t=m(),n=c().String;return Y=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function Rr(){if(Z)return Q;Z=1;var r=Er();return Q=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Pr(){if(tr)return rr;tr=1;var r=Or(),t=mr(),n=Sr(),e=Rr(),i=Object;return rr=e?function(r){return"symbol"==typeof r}:function(e){var o=r("Symbol");return t(o)&&n(o.prototype,i(e))}}function xr(){if(er)return nr;er=1;var r=String;return nr=function(t){try{return r(t)}catch(r){return"Object"}}}function Ar(){if(or)return ir;or=1;var r=mr(),t=xr(),n=TypeError;return ir=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Tr(){if(fr)return ur;fr=1;var r=Ar(),t=hr();return ur=function(n,e){var i=n[e];return t(i)?void 0:r(i)}}function Cr(){if(cr)return ar;cr=1;var r=S(),t=mr(),n=wr(),e=TypeError;return ar=function(i,o){var u,f;if("string"===o&&t(u=i.toString)&&!n(f=r(u,i)))return f;if(t(u=i.valueOf)&&!n(f=r(u,i)))return f;if("string"!==o&&t(u=i.toString)&&!n(f=r(u,i)))return f;throw new e("Can't convert object to primitive value")}}var Fr,kr,Ir,Lr,Dr,Mr,Nr,zr,_r,Gr,Wr,Br,Ur,qr,Jr,Vr,$r,Hr,Xr,Yr,Kr,Qr,Zr,rt,tt={exports:{}};function nt(){return kr?Fr:(kr=1,Fr=!1)}function et(){if(Lr)return Ir;Lr=1;var r=c(),t=Object.defineProperty;return Ir=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function it(){if(Dr)return tt.exports;Dr=1;var r=nt(),t=c(),n=et(),e="__core-js_shared__",i=tt.exports=t[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.48.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),tt.exports}function ot(){if(Nr)return Mr;Nr=1;var r=it();return Mr=function(t,n){return r[t]||(r[t]=n||{})}}function ut(){if(_r)return zr;_r=1;var r=gr(),t=Object;return zr=function(n){return t(r(n))}}function ft(){if(Wr)return Gr;Wr=1;var r=pr(),t=ut(),n=r({}.hasOwnProperty);return Gr=Object.hasOwn||function(r,e){return n(t(r),e)}}function at(){if(Ur)return Br;Ur=1;var r=pr(),t=0,n=Math.random(),e=r(1.1.toString);return Br=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function ct(){if(Jr)return qr;Jr=1;var r=c(),t=ot(),n=ft(),e=at(),i=Er(),o=Rr(),u=r.Symbol,f=t("wks"),a=o?u.for||u:u&&u.withoutSetter||e;return qr=function(r){return n(f,r)||(f[r]=i&&n(u,r)?u[r]:a("Symbol."+r)),f[r]}}function st(){if($r)return Vr;$r=1;var r=S(),t=wr(),n=Pr(),e=Tr(),i=Cr(),o=ct(),u=TypeError,f=o("toPrimitive");return Vr=function(o,a){if(!t(o)||n(o))return o;var c,s=e(o,f);if(s){if(void 0===a&&(a="default"),c=r(s,o,a),!t(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function lt(){if(Xr)return Hr;Xr=1;var r=st(),t=Pr();return Hr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function vt(){if(Kr)return Yr;Kr=1;var r=c(),t=wr(),n=r.document,e=t(n)&&t(n.createElement);return Yr=function(r){return e?n.createElement(r):{}}}function pt(){if(Zr)return Qr;Zr=1;var r=w(),t=m(),n=vt();return Qr=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function yt(){if(rt)return b;rt=1;var r=w(),t=S(),n=lr(),e=vr(),i=br(),o=lt(),u=ft(),f=pt(),a=Object.getOwnPropertyDescriptor;return b.f=r?a:function(r,c){if(r=i(r),c=o(c),f)try{return a(r,c)}catch(r){}if(u(r,c))return e(!t(n.f,r,c),r[c])},b}var dt,ht,gt,bt,mt,wt,Ot,St={};function jt(){if(ht)return dt;ht=1;var r=w(),t=m();return dt=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Et(){if(bt)return gt;bt=1;var r=wr(),t=String,n=TypeError;return gt=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function Rt(){if(mt)return St;mt=1;var r=w(),t=pt(),n=jt(),e=Et(),i=lt(),o=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",s="writable";return St.f=r?n?function(r,t,n){if(e(r),t=i(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&s in n&&!n[s]){var o=f(r,t);o&&o[s]&&(r[t]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return u(r,t,n)}:u:function(r,n,f){if(e(r),n=i(n),e(f),t)try{return u(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new o("Accessors not supported");return"value"in f&&(r[n]=f.value),r},St}function Pt(){if(Ot)return wt;Ot=1;var r=w(),t=Rt(),n=vr();return wt=r?function(r,e,i){return t.f(r,e,n(1,i))}:function(r,t,n){return r[t]=n,r}}var xt,At,Tt,Ct,Ft,kt,It,Lt,Dt,Mt,Nt,zt,_t,Gt,Wt,Bt={exports:{}};function Ut(){if(At)return xt;At=1;var r=w(),t=ft(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,u=i&&(!r||r&&e(n,"name").configurable);return xt={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function qt(){if(Ct)return Tt;Ct=1;var r=pr(),t=mr(),n=it(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),Tt=n.inspectSource}function Jt(){if(kt)return Ft;kt=1;var r=c(),t=mr(),n=r.WeakMap;return Ft=t(n)&&/native code/.test(String(n))}function Vt(){if(Lt)return It;Lt=1;var r=ot(),t=at(),n=r("keys");return It=function(r){return n[r]||(n[r]=t(r))}}function $t(){return Mt?Dt:(Mt=1,Dt={})}function Ht(){if(zt)return Nt;zt=1;var r,t,n,e=Jt(),i=c(),o=wr(),u=Pt(),f=ft(),a=it(),s=Vt(),l=$t(),v="Object already initialized",p=i.TypeError,y=i.WeakMap;if(e||a.state){var d=a.state||(a.state=new y);d.get=d.get,d.has=d.has,d.set=d.set,r=function(r,t){if(d.has(r))throw new p(v);return t.facade=r,d.set(r,t),t},t=function(r){return d.get(r)||{}},n=function(r){return d.has(r)}}else{var h=s("state");l[h]=!0,r=function(r,t){if(f(r,h))throw new p(v);return t.facade=r,u(r,h,t),t},t=function(r){return f(r,h)?r[h]:{}},n=function(r){return f(r,h)}}return Nt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!o(n)||(e=t(n)).type!==r)throw new p("Incompatible receiver, "+r+" required");return e}}}}function Xt(){if(_t)return Bt.exports;_t=1;var r=pr(),t=m(),n=mr(),e=ft(),i=w(),o=Ut().CONFIGURABLE,u=qt(),f=Ht(),a=f.enforce,c=f.get,s=String,l=Object.defineProperty,v=r("".slice),p=r("".replace),y=r([].join),d=i&&!t(function(){return 8!==l(function(){},"length",{value:8}).length}),h=String(String).split("String"),g=Bt.exports=function(r,t,n){"Symbol("===v(s(t),0,7)&&(t="["+p(s(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||o&&r.name!==t)&&(i?l(r,"name",{value:t,configurable:!0}):r.name=t),d&&n&&e(n,"arity")&&r.length!==n.arity&&l(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?i&&l(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=a(r);return e(u,"source")||(u.source=y(h,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&c(this).source||u(this)},"toString"),Bt.exports}function Yt(){if(Wt)return Gt;Wt=1;var r=mr(),t=Rt(),n=Xt(),e=et();return Gt=function(i,o,u,f){f||(f={});var a=f.enumerable,c=void 0!==f.name?f.name:o;if(r(u)&&n(u,c,f),f.global)a?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(a=!0):delete i[o]}catch(r){}a?i[o]=u:t.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var Kt,Qt,Zt,rn,tn,nn,en,on,un,fn,an,cn,sn,ln,vn,pn,yn,dn={};function hn(){if(rn)return Zt;rn=1;var r=function(){if(Qt)return Kt;Qt=1;var r=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return Zt=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function gn(){if(nn)return tn;nn=1;var r=hn(),t=Math.max,n=Math.min;return tn=function(e,i){var o=r(e);return o<0?t(o+i,0):n(o,i)}}function bn(){if(on)return en;on=1;var r=hn(),t=Math.min;return en=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function mn(){if(fn)return un;fn=1;var r=bn();return un=function(t){return r(t.length)}}function wn(){if(ln)return sn;ln=1;var r=pr(),t=ft(),n=br(),e=function(){if(cn)return an;cn=1;var r=br(),t=gn(),n=mn(),e=function(e){return function(i,o,u){var f=r(i),a=n(f);if(0===a)return!e&&-1;var c,s=t(u,a);if(e&&o!=o){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((e||s in f)&&f[s]===o)return e||s||0;return!e&&-1}};return an={includes:e(!0),indexOf:e(!1)}}().indexOf,i=$t(),o=r([].push);return sn=function(r,u){var f,a=n(r),c=0,s=[];for(f in a)!t(i,f)&&t(a,f)&&o(s,f);for(;u.length>c;)t(a,f=u[c++])&&(~e(s,f)||o(s,f));return s}}function On(){return pn?vn:(pn=1,vn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Sn(){if(yn)return dn;yn=1;var r=wn(),t=On().concat("length","prototype");return dn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},dn}var jn,En,Rn,Pn,xn,An,Tn,Cn,Fn,kn,In,Ln,Dn,Mn,Nn,zn={};function _n(){return jn||(jn=1,zn.f=Object.getOwnPropertySymbols),zn}function Gn(){if(Rn)return En;Rn=1;var r=Or(),t=pr(),n=Sn(),e=_n(),i=Et(),o=t([].concat);return En=r("Reflect","ownKeys")||function(r){var t=n.f(i(r)),u=e.f;return u?o(t,u(r)):t}}function Wn(){if(xn)return Pn;xn=1;var r=ft(),t=Gn(),n=yt(),e=Rt();return Pn=function(i,o,u){for(var f=t(o),a=e.f,c=n.f,s=0;s<f.length;s++){var l=f[s];r(i,l)||u&&r(u,l)||a(i,l,c(o,l))}}}function Bn(){if(Tn)return An;Tn=1;var r=m(),t=mr(),n=/#|\.prototype\./,e=function(n,e){var a=o[i(n)];return a===f||a!==u&&(t(e)?r(e):!!e)},i=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return An=e}function Un(){if(Fn)return Cn;Fn=1;var r=c(),t=yt().f,n=Pt(),e=Yt(),i=et(),o=Wn(),u=Bn();return Cn=function(f,a){var c,s,l,v,p,y=f.target,d=f.global,h=f.stat;if(c=d?r:h?r[y]||i(y,{}):r[y]&&r[y].prototype)for(s in a){if(v=a[s],l=f.dontCallGetSet?(p=t(c,s))&&p.value:c[s],!u(d?s:y+(h?".":"#")+s,f.forced)&&void 0!==l){if(typeof v==typeof l)continue;o(v,l)}(f.sham||l&&l.sham)&&n(v,"sham",!0),e(c,s,v,f)}}}function qn(){if(In)return kn;In=1;var r={};return r[ct()("toStringTag")]="z",kn="[object z]"===String(r)}function Jn(){if(Dn)return Ln;Dn=1;var r=qn(),t=mr(),n=yr(),e=ct()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Ln=r?n:function(r){var u,f,a;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(r){}}(u=i(r),e))?f:o?n(u):"Object"===(a=n(u))&&t(u.callee)?"Arguments":a}}function Vn(){if(Nn)return Mn;Nn=1;var r=Jn(),t=String;return Mn=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var $n,Hn,Xn,Yn,Kn,Qn,Zn,re={};function te(){if(Hn)return $n;Hn=1;var r=wn(),t=On();return $n=Object.keys||function(n){return r(n,t)}}function ne(){if(Xn)return re;Xn=1;var r=w(),t=jt(),n=Rt(),e=Et(),i=br(),o=te();return re.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,f=i(t),a=o(t),c=a.length,s=0;c>s;)n.f(r,u=a[s++],f[u]);return r},re}function ee(){if(Kn)return Yn;Kn=1;var r=Or();return Yn=r("document","documentElement")}function ie(){if(Zn)return Qn;Zn=1;var r,t=Et(),n=ne(),e=On(),i=$t(),o=ee(),u=vt(),f=Vt(),a="prototype",c="script",s=f("IE_PROTO"),l=function(){},v=function(r){return"<"+c+">"+r+"</"+c+">"},p=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,i;y="undefined"!=typeof document?document.domain&&r?p(r):(n=u("iframe"),i="java"+c+":",n.style.display="none",o.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):p(r);for(var f=e.length;f--;)delete y[a][e[f]];return y()};return i[s]=!0,Qn=Object.create||function(r,e){var i;return null!==r?(l[a]=t(r),i=new l,l[a]=null,i[s]=r):i=y(),void 0===e?i:n.f(i,e)}}var oe,ue,fe,ae,ce,se={};function le(){if(ue)return oe;ue=1;var r=pr();return oe=r([].slice)}function ve(){if(fe)return se;fe=1;var r=yr(),t=br(),n=Sn().f,e=le(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return se.f=function(o){return i&&"Window"===r(o)?function(r){try{return n(r)}catch(r){return e(i)}}(o):n(t(o))},se}function pe(){if(ce)return ae;ce=1;var r=Xt(),t=Rt();return ae=function(n,e,i){return i.get&&r(i.get,e,{getter:!0}),i.set&&r(i.set,e,{setter:!0}),t.f(n,e,i)}}var ye,de,he,ge,be,me,we,Oe,Se,je,Ee,Re,Pe,xe,Ae,Te,Ce,Fe,ke,Ie,Le,De,Me,Ne,ze,_e,Ge={};function We(){if(ye)return Ge;ye=1;var r=ct();return Ge.f=r,Ge}function Be(){if(he)return de;he=1;var r=c();return de=r}function Ue(){if(Se)return Oe;Se=1;var r=Rt().f,t=ft(),n=ct()("toStringTag");return Oe=function(e,i,o){e&&!o&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:i})}}function qe(){if(Pe)return Re;Pe=1;var r=function(){if(Ee)return je;Ee=1;var r=yr(),t=pr();return je=function(n){if("Function"===r(n))return t(n)}}(),t=Ar(),n=O(),e=r(r.bind);return Re=function(r,i){return t(r),void 0===i?r:n?e(r,i):function(){return r.apply(i,arguments)}},Re}function Je(){if(Ae)return xe;Ae=1;var r=yr();return xe=Array.isArray||function(t){return"Array"===r(t)}}function Ve(){if(Ce)return Te;Ce=1;var r=pr(),t=m(),n=mr(),e=Jn(),i=Or(),o=qt(),u=function(){},f=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,c=r(a.exec),s=!a.test(u),l=function(r){if(!n(r))return!1;try{return f(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!c(a,o(r))}catch(r){return!0}};return v.sham=!0,Te=!f||t(function(){var r;return l(l.call)||!l(Object)||!l(function(){r=!0})||r})?v:l}function $e(){if(ke)return Fe;ke=1;var r=Je(),t=Ve(),n=wr(),e=ct()("species"),i=Array;return Fe=function(o){var u;return r(o)&&(u=o.constructor,(t(u)&&(u===i||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}function He(){if(Le)return Ie;Le=1;var r=$e();return Ie=function(t,n){return new(r(t))(0===n?0:n)}}function Xe(){if(Me)return De;Me=1;var r=w(),t=Rt(),n=vr();return De=function(e,i,o){r?t.f(e,i,n(0,o)):e[i]=o}}function Ye(){if(ze)return Ne;ze=1;var r=qe(),t=dr(),n=ut(),e=mn(),i=He(),o=Xe(),u=function(u){var f=1===u,a=2===u,c=3===u,s=4===u,l=6===u,v=7===u,p=5===u||l;return function(y,d,h){for(var g,b,m=n(y),w=t(m),O=e(w),S=r(d,h),j=0,E=0,R=f?i(y,O):a||v?i(y,0):void 0;O>j;j++)if((p||j in w)&&(b=S(g=w[j],j,m),u))if(f)o(R,j,b);else if(b)switch(u){case 3:return!0;case 5:return g;case 6:return j;case 2:o(R,E++,g)}else switch(u){case 4:return!1;case 7:o(R,E++,g)}return l?-1:c||s?s:R}};return Ne={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function Ke(){if(_e)return a;_e=1;var r=Un(),t=c(),n=S(),e=pr(),i=nt(),o=w(),u=Er(),f=m(),s=ft(),l=Sr(),v=Et(),p=br(),y=lt(),d=Vn(),h=vr(),g=ie(),b=te(),O=Sn(),j=ve(),E=_n(),R=yt(),P=Rt(),x=ne(),A=lr(),T=Yt(),C=pe(),F=ot(),k=Vt(),I=$t(),L=at(),D=ct(),M=We(),N=function(){if(be)return ge;be=1;var r=Be(),t=ft(),n=We(),e=Rt().f;return ge=function(i){var o=r.Symbol||(r.Symbol={});t(o,i)||e(o,i,{value:n.f(i)})}}(),z=function(){if(we)return me;we=1;var r=S(),t=Or(),n=ct(),e=Yt();return me=function(){var i=t("Symbol"),o=i&&i.prototype,u=o&&o.valueOf,f=n("toPrimitive");o&&!o[f]&&e(o,f,function(t){return r(u,this)},{arity:1})}}(),_=Ue(),G=Ht(),W=Ye().forEach,B=k("hidden"),U="Symbol",q="prototype",J=G.set,V=G.getterFor(U),$=Object[q],H=t.Symbol,X=H&&H[q],Y=t.RangeError,K=t.TypeError,Q=t.QObject,Z=R.f,rr=P.f,tr=j.f,nr=A.f,er=e([].push),ir=F("symbols"),or=F("op-symbols"),ur=F("wks"),fr=!Q||!Q[q]||!Q[q].findChild,ar=function(r,t,n){var e=Z($,t);e&&delete $[t],rr(r,t,n),e&&r!==$&&rr($,t,e)},cr=o&&f(function(){return 7!==g(rr({},"a",{get:function(){return rr(this,"a",{value:7}).a}})).a})?ar:rr,sr=function(r,t){var n=ir[r]=g(X);return J(n,{type:U,tag:r,description:t}),o||(n.description=t),n},yr=function(r,t,n){r===$&&yr(or,t,n),v(r);var e=y(t);return v(n),s(ir,e)?(n.enumerable?(s(r,B)&&r[B][e]&&(r[B][e]=!1),n=g(n,{enumerable:h(0,!1)})):(s(r,B)||rr(r,B,h(1,g(null))),r[B][e]=!0),cr(r,e,n)):rr(r,e,n)},dr=function(r,t){v(r);var e=p(t),i=b(e).concat(wr(e));return W(i,function(t){o&&!n(hr,e,t)||yr(r,t,e[t])}),r},hr=function(r){var t=y(r),e=n(nr,this,t);return!(this===$&&s(ir,t)&&!s(or,t))&&(!(e||!s(this,t)||!s(ir,t)||s(this,B)&&this[B][t])||e)},gr=function(r,t){var n=p(r),e=y(t);if(n!==$||!s(ir,e)||s(or,e)){var i=Z(n,e);return!i||!s(ir,e)||s(n,B)&&n[B][e]||(i.enumerable=!0),i}},mr=function(r){var t=tr(p(r)),n=[];return W(t,function(r){s(ir,r)||s(I,r)||er(n,r)}),n},wr=function(r){var t=r===$,n=tr(t?or:p(r)),e=[];return W(n,function(r){!s(ir,r)||t&&!s($,r)||er(e,ir[r])}),e};return u||(H=function(){if(l(X,this))throw new K("Symbol is not a constructor");var r=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,e=L(r),i=function(r){var o=void 0===this?t:this;o===$&&n(i,or,r),s(o,B)&&s(o[B],e)&&(o[B][e]=!1);var u=h(1,r);try{cr(o,e,u)}catch(r){if(!(r instanceof Y))throw r;ar(o,e,u)}};return o&&fr&&cr($,e,{configurable:!0,set:i}),sr(e,r)},T(X=H[q],"toString",function(){return V(this).tag}),T(H,"withoutSetter",function(r){return sr(L(r),r)}),A.f=hr,P.f=yr,x.f=dr,R.f=gr,O.f=j.f=mr,E.f=wr,M.f=function(r){return sr(D(r),r)},o&&(C(X,"description",{configurable:!0,get:function(){return V(this).description}}),i||T($,"propertyIsEnumerable",hr,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:H}),W(b(ur),function(r){N(r)}),r({target:U,stat:!0,forced:!u},{useSetter:function(){fr=!0},useSimple:function(){fr=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!o},{create:function(r,t){return void 0===t?g(r):dr(g(r),t)},defineProperty:yr,defineProperties:dr,getOwnPropertyDescriptor:gr}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:mr}),z(),_(H,U),I[B]=!0,a}var Qe,Ze,ri,ti={};function ni(){if(Ze)return Qe;Ze=1;var r=Er();return Qe=r&&!!Symbol.for&&!!Symbol.keyFor}var ei,ii={};var oi,ui,fi,ai,ci,si,li,vi,pi,yi={};function di(){if(pi)return yi;pi=1;var r=Un(),t=Or(),n=function(){if(ui)return oi;ui=1;var r=O(),t=Function.prototype,n=t.apply,e=t.call;return oi="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),oi}(),e=S(),i=pr(),o=m(),u=Je(),f=mr(),a=function(){if(ai)return fi;ai=1;var r=wr(),t=Ht().get;return fi=function(n){if(!r(n))return!1;var e=t(n);return!!e&&"RawJSON"===e.type}}(),c=Pr(),s=yr(),l=Vn(),v=le(),p=function(){if(si)return ci;si=1;var r=pr(),t=ft(),n=SyntaxError,e=parseInt,i=String.fromCharCode,o=r("".charAt),u=r("".slice),f=r(/./.exec),a={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},c=/^[\da-f]{4}$/i,s=/^[\u0000-\u001F]$/;return ci=function(r,l){for(var v=!0,p="";l<r.length;){var y=o(r,l);if("\\"===y){var d=u(r,l,l+2);if(t(a,d))p+=a[d],l+=2;else{if("\\u"!==d)throw new n('Unknown escape sequence: "'+d+'"');var h=u(r,l+=2,l+4);if(!f(c,h))throw new n("Bad Unicode escape at: "+l);p+=i(e(h,16)),l+=4}}else{if('"'===y){v=!1,l++;break}if(f(s,y))throw new n("Bad control character in string literal at: "+l);p+=y,l++}}if(v)throw new n("Unterminated string at: "+l);return{value:p,end:l}}}(),y=at(),d=Er(),h=function(){if(vi)return li;vi=1;var r=m();return li=!r(function(){var r="9007199254740993",t=JSON.rawJSON(r);return!JSON.isRawJSON(t)||JSON.stringify(t)!==r})}(),g=String,b=t("JSON","stringify"),w=i(/./.exec),j=i("".charAt),E=i("".charCodeAt),R=i("".replace),P=i("".slice),x=i([].push),A=i(1.1.toString),T=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,F=/^[\uDC00-\uDFFF]$/,k=y(),I=k.length,L=!d||o(function(){var r=t("Symbol")("stringify detection");return"[null]"!==b([r])||"{}"!==b({a:r})||"{}"!==b(Object(r))}),D=o(function(){return'"\\udf06\\ud834"'!==b("\udf06\ud834")||'"\\udead"'!==b("\udead")}),M=L?function(r,t){var i=v(arguments),o=z(t);if(f(o)||void 0!==r&&!c(r))return i[1]=function(r,t){if(f(o)&&(t=e(o,this,g(r),t)),!c(t))return t},n(b,null,i)}:b,N=function(r,t,n){var e=j(n,t-1),i=j(n,t+1);return w(C,r)&&!w(F,i)||w(F,r)&&!w(C,e)?"\\u"+A(E(r,0),16):r},z=function(r){if(f(r))return r;if(u(r)){for(var t=r.length,n=[],e=0;e<t;e++){var i=r[e];"string"==typeof i?x(n,i):"number"!=typeof i&&"Number"!==s(i)&&"String"!==s(i)||x(n,l(i))}var o=n.length,a=!0;return function(r,t){if(a)return a=!1,t;if(u(this))return t;for(var e=0;e<o;e++)if(n[e]===r)return t}}};return b&&r({target:"JSON",stat:!0,arity:3,forced:L||D||!h},{stringify:function(r,t,n){var i=z(t),o=[],u=M(r,function(r,t){var n=f(i)?e(i,this,g(r),t):t;return!h&&a(n)?k+(x(o,n.rawJSON)-1):n},n);if("string"!=typeof u)return u;if(D&&(u=R(u,T,N)),h)return u;for(var c="",s=u.length,l=0;l<s;l++){var v=j(u,l);if('"'===v){var y=p(u,++l).end-1,d=P(u,l,y);c+=P(d,0,I)===k?o[P(d,I)]:'"'+d+'"',l=y}else c+=v}return c}}),yi}var hi,gi,bi={};gi||(gi=1,Ke(),function(){if(ri)return ti;ri=1;var r=Un(),t=Or(),n=ft(),e=Vn(),i=ot(),o=ni(),u=i("string-to-symbol-registry"),f=i("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!o},{for:function(r){var i=e(r);if(n(u,i))return u[i];var o=t("Symbol")(i);return u[i]=o,f[o]=i,o}})}(),function(){if(ei)return ii;ei=1;var r=Un(),t=ft(),n=Pr(),e=xr(),i=ot(),o=ni(),u=i("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!o},{keyFor:function(r){if(!n(r))throw new TypeError(e(r)+" is not a symbol");if(t(u,r))return u[r]}})}(),di(),function(){if(hi)return bi;hi=1;var r=Un(),t=Er(),n=m(),e=_n(),i=ut();r({target:"Object",stat:!0,forced:!t||n(function(){e.f(1)})},{getOwnPropertySymbols:function(r){var t=e.f;return t?t(i(r)):[]}})}());var mi,wi={};!function(){if(mi)return wi;mi=1;var r=Un(),t=w(),n=c(),e=pr(),i=ft(),o=mr(),u=Sr(),f=Vn(),a=pe(),s=Wn(),l=n.Symbol,v=l&&l.prototype;if(t&&o(l)&&(!("description"in v)||void 0!==l().description)){var p={},y=function(){var r=arguments.length<1||void 0===arguments[0]?void 0:f(arguments[0]),t=u(v,this)?new l(r):void 0===r?l():l(r);return""===r&&(p[t]=!0),t};s(y,l),y.prototype=v,v.constructor=y;var d="Symbol(description detection)"===String(l("description detection")),h=e(v.valueOf),g=e(v.toString),b=/^Symbol\((.*)\)[^)]+$/,m=e("".replace),O=e("".slice);a(v,"description",{configurable:!0,get:function(){var r=h(this);if(i(p,r))return"";var t=g(r),n=d?O(t,7,-1):m(t,b,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:y})}}();var Oi,Si,ji,Ei={};!function(){if(ji)return Ei;ji=1;var r=qn(),t=Yt(),n=function(){if(Si)return Oi;Si=1;var r=qn(),t=Jn();return Oi=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var Ri=Symbol("editorContext");var Pi,xi,Ai,Ti,Ci,Fi,ki,Ii,Li,Di,Mi,Ni,zi,_i,Gi,Wi,Bi,Ui,qi,Ji,Vi,$i,Hi,Xi,Yi,Ki,Qi=function(){var r=t.inject(Ri);if(!r)throw new Error("[useEditorStatic] editor context not provided.Call provideEditor() in a parent component before using useEditorStatic().");return r.editor};function Zi(){if(xi)return Pi;xi=1;var r=ct(),t=ie(),n=Rt().f,e=r("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:t(null)}),Pi=function(r){i[e][r]=!0}}function ro(){return Ti?Ai:(Ti=1,Ai={})}function to(){if(Ii)return ki;Ii=1;var r=ft(),t=mr(),n=ut(),e=Vt(),i=function(){if(Fi)return Ci;Fi=1;var r=m();return Ci=!r(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})}(),o=e("IE_PROTO"),u=Object,f=u.prototype;return ki=i?u.getPrototypeOf:function(e){var i=n(e);if(r(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof u?f:null}}function no(){if(Di)return Li;Di=1;var r,t,n,e=m(),i=mr(),o=wr(),u=ie(),f=to(),a=Yt(),c=ct(),s=nt(),l=c("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):v=!0),!o(r)||e(function(){var t={};return r[l].call(t)!==t})?r={}:s&&(r=u(r)),i(r[l])||a(r,l,function(){return this}),Li={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function eo(){if(Wi)return Gi;Wi=1;var r=wr();return Gi=function(t){return r(t)||null===t}}function io(){if(Ui)return Bi;Ui=1;var r=eo(),t=String,n=TypeError;return Bi=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function oo(){if(Ji)return qi;Ji=1;var r=function(){if(_i)return zi;_i=1;var r=pr(),t=Ar();return zi=function(n,e,i){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[i]))}catch(r){}}}(),t=wr(),n=gr(),e=io();return qi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=r(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(o?i(r,u):r.__proto__=u,r):r}}():void 0)}function uo(){if($i)return Vi;$i=1;var r=Un(),t=S(),n=nt(),e=Ut(),i=mr(),o=function(){if(Ni)return Mi;Ni=1;var r=no().IteratorPrototype,t=ie(),n=vr(),e=Ue(),i=ro(),o=function(){return this};return Mi=function(u,f,a,c){var s=f+" Iterator";return u.prototype=t(r,{next:n(+!c,a)}),e(u,s,!1,!0),i[s]=o,u}}(),u=to(),f=oo(),a=Ue(),c=Pt(),s=Yt(),l=ct(),v=ro(),p=no(),y=e.PROPER,d=e.CONFIGURABLE,h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,b=l("iterator"),m="keys",w="values",O="entries",j=function(){return this};return Vi=function(e,l,p,S,E,R,P){o(p,l,S);var x,A,T,C=function(r){if(r===E&&D)return D;if(!g&&r&&r in I)return I[r];switch(r){case m:case w:case O:return function(){return new p(this,r)}}return function(){return new p(this)}},F=l+" Iterator",k=!1,I=e.prototype,L=I[b]||I["@@iterator"]||E&&I[E],D=!g&&L||C(E),M="Array"===l&&I.entries||L;if(M&&(x=u(M.call(new e)))!==Object.prototype&&x.next&&(n||u(x)===h||(f?f(x,h):i(x[b])||s(x,b,j)),a(x,F,!0,!0),n&&(v[F]=j)),y&&E===w&&L&&L.name!==w&&(!n&&d?c(I,"name",w):(k=!0,D=function(){return t(L,this)})),E)if(A={values:C(w),keys:R?D:C(m),entries:C(O)},P)for(T in A)(g||k||!(T in I))&&s(I,T,A[T]);else r({target:l,proto:!0,forced:g||k},A);return n&&!P||I[b]===D||s(I,b,D,{name:E}),v[l]=D,A}}function fo(){return Xi?Hi:(Xi=1,Hi=function(r,t){return{value:r,done:t}})}function ao(){if(Ki)return Yi;Ki=1;var r=br(),t=Zi(),n=ro(),e=Ht(),i=Rt().f,o=uo(),u=fo(),f=nt(),a=w(),c="Array Iterator",s=e.set,l=e.getterFor(c);Yi=o(Array,"Array",function(t,n){s(this,{type:c,target:r(t),index:0,kind:n})},function(){var r=l(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&a&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(r){}return Yi}ao();var co,so,lo,vo={};function po(){if(so)return co;so=1;var r=m(),t=ct(),n=jr(),e=t("species");return co=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(lo)return vo;lo=1;var r=Un(),t=Ye().map;r({target:"Array",proto:!0,forced:!po()("map")},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var yo,ho,go,bo={};!function(){if(go)return bo;go=1;var r=Un(),t=function(){if(ho)return yo;ho=1;var r=w(),t=m(),n=pr(),e=to(),i=te(),o=br(),u=n(lr().f),f=n([].push),a=r&&t(function(){var r=Object.create(null);return r[2]=2,!u(r,2)}),c=function(t){return function(n){for(var c,s=o(n),l=i(s),v=a&&null===e(s),p=l.length,y=0,d=[];p>y;)c=l[y++],r&&!(v?c in s:u(s,c))||f(d,t?[c,s[c]]:s[c]);return d}};return yo={entries:c(!0),values:c(!1)}}().entries;r({target:"Object",stat:!0},{entries:function(r){return t(r)}})}();var mo,wo,Oo={};function So(){if(wo)return mo;wo=1;var r=m();return mo=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}var jo,Eo,Ro,Po,xo,Ao,To={exports:{}};function Co(){if(Po)return Ro;Po=1;var r=m(),t=wr(),n=yr(),e=function(){if(Eo)return jo;Eo=1;var r=m();return jo=r(function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})}(),i=Object.isExtensible,o=r(function(){});return Ro=o||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!i||i(r)))}:i}function Fo(){if(xo)return To.exports;xo=1;var r=Un(),t=pr(),n=$t(),e=wr(),i=ft(),o=Rt().f,u=Sn(),f=ve(),a=Co(),c=at(),s=So(),l=!1,v=c("meta"),p=0,y=function(r){o(r,v,{value:{objectID:"O"+p++,weakData:{}}})},d=To.exports={enable:function(){d.enable=function(){},l=!0;var n=u.f,e=t([].splice),i={};i[v]=1,n(i).length&&(u.f=function(r){for(var t=n(r),i=0,o=t.length;i<o;i++)if(t[i]===v){e(t,i,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!i(r,v)){if(!a(r))return"F";if(!t)return"E";y(r)}return r[v].objectID},getWeakData:function(r,t){if(!i(r,v)){if(!a(r))return!0;if(!t)return!1;y(r)}return r[v].weakData},onFreeze:function(r){return s&&l&&a(r)&&!i(r,v)&&y(r),r}};return n[v]=!0,To.exports}!function(){if(Ao)return Oo;Ao=1;var r=Un(),t=So(),n=m(),e=wr(),i=Fo().onFreeze,o=Object.freeze;r({target:"Object",stat:!0,forced:n(function(){o(1)}),sham:!t},{freeze:function(r){return o&&e(r)?o(i(r)):r}})}();var ko,Io,Lo,Do,Mo,No,zo,_o,Go,Wo,Bo,Uo={};function qo(){if(Io)return ko;Io=1;var r=ct(),t=ro(),n=r("iterator"),e=Array.prototype;return ko=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Jo(){if(Do)return Lo;Do=1;var r=Jn(),t=Tr(),n=hr(),e=ro(),i=ct()("iterator");return Lo=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||e[r(o)]}}function Vo(){if(No)return Mo;No=1;var r=S(),t=Ar(),n=Et(),e=xr(),i=Jo(),o=TypeError;return Mo=function(u,f){var a=arguments.length<2?i(u):f;if(t(a))return n(r(a,u));throw new o(e(u)+" is not iterable")},Mo}function $o(){if(_o)return zo;_o=1;var r=S(),t=Et(),n=Tr();return zo=function(e,i,o){var u,f;t(e);try{if(!(u=n(e,"return"))){if("throw"===i)throw o;return o}u=r(u,e)}catch(r){f=!0,u=r}if("throw"===i)throw o;if(f)throw u;return t(u),o}}function Ho(){if(Wo)return Go;Wo=1;var r=qe(),t=S(),n=Et(),e=xr(),i=qo(),o=mn(),u=Sr(),f=Vo(),a=Jo(),c=$o(),s=TypeError,l=function(r,t){this.stopped=r,this.result=t},v=l.prototype;return Go=function(p,y,d){var h,g,b,m,w,O,S,j=d&&d.that,E=!(!d||!d.AS_ENTRIES),R=!(!d||!d.IS_RECORD),P=!(!d||!d.IS_ITERATOR),x=!(!d||!d.INTERRUPTED),A=r(y,j),T=function(r){return h&&c(h,"normal"),new l(!0,r)},C=function(r){return E?(n(r),x?A(r[0],r[1],T):A(r[0],r[1])):x?A(r,T):A(r)};if(R)h=p.iterator;else if(P)h=p;else{if(!(g=a(p)))throw new s(e(p)+" is not iterable");if(i(g)){for(b=0,m=o(p);m>b;b++)if((w=C(p[b]))&&u(v,w))return w;return new l(!1)}h=f(p,g)}for(O=R?p.next:h.next;!(S=t(O,h)).done;){try{w=C(S.value)}catch(r){c(h,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}!function(){if(Bo)return Uo;Bo=1;var r=Un(),t=Ho(),n=Xe();r({target:"Object",stat:!0},{fromEntries:function(r){var e={};return t(r,function(r,t){n(e,r,t)},{AS_ENTRIES:!0}),e}})}();var Xo,Yo={};!function(){if(Xo)return Yo;Xo=1;var r=Un(),t=ut(),n=te();r({target:"Object",stat:!0,forced:m()(function(){n(1)})},{keys:function(r){return n(t(r))}})}();var Ko,Qo,Zo,ru={};!function(){if(Zo)return ru;Zo=1;var r=function(){if(Qo)return Ko;Qo=1;var r=pr(),t=hn(),n=Vn(),e=gr(),i=r("".charAt),o=r("".charCodeAt),u=r("".slice),f=function(r){return function(f,a){var c,s,l=n(e(f)),v=t(a),p=l.length;return v<0||v>=p?r?"":void 0:(c=o(l,v))<55296||c>56319||v+1===p||(s=o(l,v+1))<56320||s>57343?r?i(l,v):c:r?u(l,v,v+2):s-56320+(c-55296<<10)+65536}};return Ko={codeAt:f(!1),charAt:f(!0)}}().charAt,t=Vn(),n=Ht(),e=uo(),i=fo(),o="String Iterator",u=n.set,f=n.getterFor(o);e(String,"String",function(r){u(this,{type:o,string:t(r),index:0})},function(){var t,n=f(this),e=n.string,o=n.index;return o>=e.length?i(void 0,!0):(t=r(e,o),n.index+=t.length,i(t,!1))})}();var tu,nu,eu,iu,ou,uu,fu,au,cu,su,lu,vu,pu,yu,du={};function hu(){if(nu)return tu;nu=1;var r=Yt();return tu=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}}function gu(){if(iu)return eu;iu=1;var r=Sr(),t=TypeError;return eu=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function bu(){if(uu)return ou;uu=1;var r=ct()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return ou=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var i=!1;try{var o={};o[r]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(r){}return i}}function mu(){if(au)return fu;au=1;var r=mr(),t=wr(),n=oo();return fu=function(e,i,o){var u,f;return n&&r(u=i.constructor)&&u!==o&&t(f=u.prototype)&&f!==o.prototype&&n(e,f),e}}function wu(){if(su)return cu;su=1;var r=Un(),t=c(),n=pr(),e=Bn(),i=Yt(),o=Fo(),u=Ho(),f=gu(),a=mr(),s=hr(),l=wr(),v=m(),p=bu(),y=Ue(),d=mu();return cu=function(c,h,g){var b=-1!==c.indexOf("Map"),m=-1!==c.indexOf("Weak"),w=b?"set":"add",O=t[c],S=O&&O.prototype,j=O,E={},R=function(r){var t=n(S[r]);i(S,r,"add"===r?function(r){return t(this,0===r?0:r),this}:"delete"===r?function(r){return!(m&&!l(r))&&t(this,0===r?0:r)}:"get"===r?function(r){return m&&!l(r)?void 0:t(this,0===r?0:r)}:"has"===r?function(r){return!(m&&!l(r))&&t(this,0===r?0:r)}:function(r,n){return t(this,0===r?0:r,n),this})};if(e(c,!a(O)||!(m||S.forEach&&!v(function(){(new O).entries().next()}))))j=g.getConstructor(h,c,b,w),o.enable();else if(e(c,!0)){var P=new j,x=P[w](m?{}:-0,1)!==P,A=v(function(){P.has(1)}),T=p(function(r){new O(r)}),C=!m&&v(function(){for(var r=new O,t=5;t--;)r[w](t,t);return!r.has(-0)});T||((j=h(function(r,t){f(r,S);var n=d(new O,r,j);return s(t)||u(t,n[w],{that:n,AS_ENTRIES:b}),n})).prototype=S,S.constructor=j),(A||C)&&(R("delete"),R("has"),b&&R("get")),(C||x)&&R(w),m&&S.clear&&delete S.clear}return E[c]=j,r({global:!0,constructor:!0,forced:j!==O},E),y(j,c),m||g.setStrong(j,c,b),j}}function Ou(){if(vu)return lu;vu=1;var r=pr(),t=hu(),n=Fo().getWeakData,e=gu(),i=Et(),o=hr(),u=wr(),f=Ho(),a=Ye(),c=ft(),s=Ht(),l=s.set,v=s.getterFor,p=a.find,y=a.findIndex,d=r([].splice),h=0,g=function(r){return r.frozen||(r.frozen=new b)},b=function(){this.entries=[]},m=function(r,t){return p(r.entries,function(r){return r[0]===t})};return b.prototype={get:function(r){var t=m(this,r);if(t)return t[1]},has:function(r){return!!m(this,r)},set:function(r,t){var n=m(this,r);n?n[1]=t:this.entries.push([r,t])},delete:function(r){var t=y(this.entries,function(t){return t[0]===r});return~t&&d(this.entries,t,1),!!~t}},lu={getConstructor:function(r,a,s,p){var y=r(function(r,t){e(r,d),l(r,{type:a,id:h++,frozen:null}),o(t)||f(t,r[p],{that:r,AS_ENTRIES:s})}),d=y.prototype,b=v(a),m=function(r,t,e){var o=b(r),u=n(i(t),!0);return!0===u?g(o).set(t,e):u[o.id]=e,r};return t(d,{delete:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).delete(r):e&&c(e,t.id)&&delete e[t.id]},has:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).has(r):e&&c(e,t.id)}}),t(d,s?{get:function(r){var t=b(this);if(u(r)){var e=n(r);if(!0===e)return g(t).get(r);if(e)return e[t.id]}},set:function(r,t){return m(this,r,t)}}:{add:function(r){return m(this,r,!0)}}),y}}}yu||(yu=1,function(){if(pu)return du;pu=1;var r,t=So(),n=c(),e=pr(),i=hu(),o=Fo(),u=wu(),f=Ou(),a=wr(),s=Ht().enforce,l=m(),v=Jt(),p=Object,y=Array.isArray,d=p.isExtensible,h=p.isFrozen,g=p.isSealed,b=p.freeze,w=p.seal,O=!n.ActiveXObject&&"ActiveXObject"in n,S=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},j=u("WeakMap",S,f),E=j.prototype,R=e(E.set);if(v)if(O){r=f.getConstructor(S,"WeakMap",!0),o.enable();var P=e(E.delete),x=e(E.has),A=e(E.get);i(E,{delete:function(t){if(a(t)&&!d(t)){var n=s(this);return n.frozen||(n.frozen=new r),P(this,t)||n.frozen.delete(t)}return P(this,t)},has:function(t){if(a(t)&&!d(t)){var n=s(this);return n.frozen||(n.frozen=new r),x(this,t)||n.frozen.has(t)}return x(this,t)},get:function(t){if(a(t)&&!d(t)){var n=s(this);return n.frozen||(n.frozen=new r),x(this,t)?A(this,t):n.frozen.get(t)}return A(this,t)},set:function(t,n){if(a(t)&&!d(t)){var e=s(this);e.frozen||(e.frozen=new r),x(this,t)?R(this,t,n):e.frozen.set(t,n)}else R(this,t,n);return this}})}else t&&l(function(){var r=b([]);return R(new j,r,1),!h(r)})&&i(E,{set:function(r,t){var n;return y(r)&&(h(r)?n=b:g(r)&&(n=w)),R(this,r,t),n&&n(r),this}})}());var Su,ju,Eu,Ru,Pu,xu={};function Au(){return ju?Su:(ju=1,Su={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function Tu(){if(Ru)return Eu;Ru=1;var r=vt()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return Eu=t===Object.prototype?void 0:t}!function(){if(Pu)return xu;Pu=1;var r=c(),t=Au(),n=Tu(),e=ao(),i=Pt(),o=Ue(),u=ct()("iterator"),f=e.values,a=function(r,n){if(r){if(r[u]!==f)try{i(r,u,f)}catch(t){r[u]=f}if(o(r,n,!0),t[n])for(var a in e)if(r[a]!==e[a])try{i(r,a,e[a])}catch(t){r[a]=e[a]}}};for(var s in t)a(r[s]&&r[s].prototype,s);a(n,"DOMTokenList")}();var Cu=function(){return Cu=Object.assign||function(r){for(var t,n=1,e=arguments.length;n<e;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},Cu.apply(this,arguments)};function Fu(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,i,o=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(r){i={error:r}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var ku=new WeakMap;function Iu(r,t){if(!t.relativeSelection)return null;var e=ku.get(r.children);e||(e=new WeakMap,ku.set(r.children,e));var i=e.get(t);if(void 0===i)try{i=n.relativeRangeToSlateRange(r.sharedRoot,r,t.relativeSelection),e.set(t,i)}catch(r){return null}return void 0===i?null:i}function Lu(r,t,n){var o,u,f=n.yOffset,a=n.xOffset,c=n.shouldGenerateOverlay,s=Fu(i.Range.edges(t),2),l=s[0],v=s[1],p=function(r,t){try{return e.DomEditor.toDOMRange(r,t)}catch(r){return null}}(r,t);if(!p)return{caretPosition:null,selectionRects:[]};var y=[],d=i.Editor.nodes(r,{at:t,match:function(r,t){return i.Text.isText(r)&&(!c||c(r,t))}}),h=null,g=i.Range.isBackward(t);try{for(var b=function(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),m=b.next();!m.done;m=b.next()){var w=Fu(m.value,2),O=w[0],S=w[1],j=e.DomEditor.toDOMNode(r,O),E=i.Path.equals(S,l.path),R=i.Path.equals(S,v.path),P=null;if(E||R){var x=document.createRange();x.selectNode(j),E&&x.setStart(p.startContainer,p.startOffset),R&&x.setEnd(p.endContainer,p.endOffset),P=x.getClientRects()}else P=j.getClientRects();for(var A=g?E:R,T=0;T<P.length;T+=1){var C=P.item(T);if(C){var F=A&&(g?0===T:T===P.length-1),k=C.top-f,I=C.left-a;F&&(h={height:C.height,top:k,left:I+(g||i.Range.isCollapsed(t)?0:C.width)}),y.push({width:C.width,height:C.height,top:k,left:I})}}}}catch(r){o={error:r}}finally{try{m&&!m.done&&(u=b.return)&&u.call(b)}finally{if(o)throw o.error}}return{selectionRects:y,caretPosition:h}}var Du,Mu,Nu,zu,_u,Gu,Wu,Bu={};function Uu(){if(Gu)return _u;Gu=1;var r=S(),t=ft(),n=Sr(),e=function(){if(Mu)return Du;Mu=1;var r=c(),t=m(),n=r.RegExp,e=!t(function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",i=r?"dgimsy":"gimsy",o=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in r&&(u.hasIndices="d"),u)o(f,u[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||e!==i});return Du={correct:e}}(),i=function(){if(zu)return Nu;zu=1;var r=Et();return Nu=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}(),o=RegExp.prototype;return _u=e.correct?function(r){return r.flags}:function(u){return e.correct||!n(o,u)||t(u,"flags")?u.flags:r(i,u)}}!function(){if(Wu)return Bu;Wu=1;var r=Ut().PROPER,t=Yt(),n=Et(),e=Vn(),i=m(),o=Uu(),u="toString",f=RegExp.prototype,a=f[u],c=i(function(){return"/a/b"!==a.call({source:"a",flags:"b"})}),s=r&&a.name!==u;(c||s)&&t(f,u,function(){var r=n(this);return"/"+e(r.source)+"/"+e(o(r))},{unsafe:!0})}();var qu,Ju,Vu,$u,Hu,Xu={};!function(){if(Hu)return Xu;Hu=1;var r=c(),t=Au(),n=Tu(),e=function(){if($u)return Vu;$u=1;var r=Ye().forEach,t=function(){if(Ju)return qu;Ju=1;var r=m();return qu=function(t,n){var e=[][t];return!!e&&r(function(){e.call(null,n||function(){return 1},1)})}}()("forEach");return Vu=t?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)},Vu}(),i=Pt(),o=function(r){if(r&&r.forEach!==e)try{i(r,"forEach",e)}catch(t){r.forEach=e}};for(var u in t)t[u]&&o(r[u]&&r[u].prototype);o(n)}();var Yu=function(r){var e=t.ref({}),i=function(i){var o=t.toRaw(r.value);if(o){var u=n.CursorEditor.cursorState(o,i);null!==u?e.value[i.toString()]=u:delete e.value[i.toString()]}},o=function(r){r.added.forEach(function(r){i(r)}),r.removed.forEach(function(r){i(r)}),r.updated.forEach(function(r){i(r)})};return t.watch(function(){return r.value},function(r,e){e&&n.CursorEditor.off(t.toRaw(e),"change",o),r&&n.CursorEditor.on(t.toRaw(r),"change",o)},{immediate:!0}),t.onUnmounted(function(){r.value&&n.CursorEditor.off(t.toRaw(r.value),"change",o)}),{cursors:e}},Ku=Object.freeze([]);r.getCursorRange=Iu,r.provideEditor=function(r){t.provide(Ri,{editor:r})},r.useEditorStatic=Qi,r.useRemoteCursorOverlayPositions=function(r){var n,e=r.containerRef,i=r.shouldGenerateOverlay,o=r.editorRef,u=function(r,t){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(n[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(r);i<e.length;i++)t.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i])&&(n[e[i]]=r[e[i]])}return n}(r,["containerRef","shouldGenerateOverlay","editorRef"]);null==o&&(o=Qi());var f=new WeakMap,a=Yu(o).cursors,c=t.ref({}),s=function(r){var n,u,a;if(o.value){var s=null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.getBoundingClientRect(),l=null!==(u=null==s?void 0:s.x)&&void 0!==u?u:0,v=null!==(a=null==s?void 0:s.y)&&void 0!==a?a:0,p=t.toRaw(o.value),y=Object.keys(c.value).length!==Object.keys(r).length,d=Object.fromEntries(Object.entries(r).map(function(r){var t=Fu(r,2),n=t[0],e=t[1],o=e.relativeSelection&&Iu(p,e);if(!o)return[n,Ku];if(f.get(o))return[n,f.get(o)];var u=Lu(p,o,{xOffset:l,yOffset:v,shouldGenerateOverlay:i});return f.set(o,u),y=!0,[n,u]}));y&&(c.value=d)}},l=!!e&&(null===(n=u.refreshOnResize)||void 0===n||n),v=null,p=new ResizeObserver(function(){f=new WeakMap,"debounced"===l?(v&&cancelAnimationFrame(v),v=requestAnimationFrame(function(){s(a.value)})):s(a.value)});t.watchEffect(function(r){if(l&&e.value){var t=e.value;p.observe(t)}r(function(){if(v&&(cancelAnimationFrame(v),v=null),l&&e.value){var r=e.value;p.unobserve(r)}})});var y=function(){f=new WeakMap,v&&cancelAnimationFrame(v),v=requestAnimationFrame(function(){s(a.value)})};t.watch(function(){return o.value},function(r,t){t&&t.off("scroll",y),r&&r.on("scroll",y)},{immediate:!0}),t.onUnmounted(function(){o.value&&o.value.off("scroll",y)}),t.watch(function(){return[a.value,null==e?void 0:e.value,o.value]},function(){o.value&&s(a.value)},{immediate:!0,flush:"sync",deep:!0});var d=t.computed(function(){if(!o.value)return[];var r=o.value;return Object.entries(a.value).map(function(t){var n,e,i=Fu(t,2),o=i[0],u=i[1],f=u.relativeSelection?Iu(r,u):null,a=c.value[o];return Cu(Cu({},u),{range:f,caretPosition:null!==(n=null==a?void 0:a.caretPosition)&&void 0!==n?n:null,selectionRects:null!==(e=null==a?void 0:a.selectionRects)&&void 0!==e?e:Ku})})});return{cursors:d,refresh:function(){f=new WeakMap,s(a.value)}}},r.useRemoteCursorStates=Yu});
|
|
1
|
+
!function(r,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("@wangeditor-next/yjs"),require("@wangeditor-next/editor"),require("slate")):"function"==typeof define&&define.amd?define(["exports","vue","@wangeditor-next/yjs","@wangeditor-next/editor","slate"],t):t((r="undefined"!=typeof globalThis?globalThis:r||self).WangEditorYjsForVue={},r.vue,r.yjs,r.editor,r.slate)}(this,function(r,t,n,e,i){"use strict";var o,u,f="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},a={};function c(){if(u)return o;u=1;var r=function(r){return r&&r.Math===Math&&r};return o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof f&&f)||r("object"==typeof o&&o)||function(){return this}()||Function("return this")()}var s,l,v,p,y,d,h,g,b={};function m(){return l?s:(l=1,s=function(r){try{return!!r()}catch(r){return!0}})}function w(){if(p)return v;p=1;var r=m();return v=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function O(){if(d)return y;d=1;var r=m();return y=!r(function(){var r=function(){}.bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})}function S(){if(g)return h;g=1;var r=O(),t=Function.prototype.call;return h=r?t.bind(t):function(){return t.apply(t,arguments)},h}var j,E,R,P,x,A,T,C,F,k,I,L,D,M,N,z,_,G,W,B,U,q,J,V,$,H,X,Y,K,Q,Z,rr,tr,nr,er,ir,or,ur,fr,ar,cr,sr={};function lr(){if(j)return sr;j=1;var r={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!r.call({1:2},1);return sr.f=n?function(r){var n=t(this,r);return!!n&&n.enumerable}:r,sr}function vr(){return R?E:(R=1,E=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}})}function pr(){if(x)return P;x=1;var r=O(),t=Function.prototype,n=t.call,e=r&&t.bind.bind(n,n);return P=r?e:function(r){return function(){return n.apply(r,arguments)}},P}function yr(){if(T)return A;T=1;var r=pr(),t=r({}.toString),n=r("".slice);return A=function(r){return n(t(r),8,-1)}}function dr(){if(F)return C;F=1;var r=pr(),t=m(),n=yr(),e=Object,i=r("".split);return C=t(function(){return!e("z").propertyIsEnumerable(0)})?function(r){return"String"===n(r)?i(r,""):e(r)}:e}function hr(){return I?k:(I=1,k=function(r){return null==r})}function gr(){if(D)return L;D=1;var r=hr(),t=TypeError;return L=function(n){if(r(n))throw new t("Can't call method on "+n);return n}}function br(){if(N)return M;N=1;var r=dr(),t=gr();return M=function(n){return r(t(n))}}function mr(){if(_)return z;_=1;var r="object"==typeof document&&document.all;return z=void 0===r&&void 0!==r?function(t){return"function"==typeof t||t===r}:function(r){return"function"==typeof r}}function wr(){if(W)return G;W=1;var r=mr();return G=function(t){return"object"==typeof t?null!==t:r(t)}}function Or(){if(U)return B;U=1;var r=c(),t=mr();return B=function(n,e){return arguments.length<2?(i=r[n],t(i)?i:void 0):r[n]&&r[n][e];var i},B}function Sr(){if(J)return q;J=1;var r=pr();return q=r({}.isPrototypeOf)}function jr(){if(X)return H;X=1;var r,t,n=c(),e=function(){if($)return V;$=1;var r=c().navigator,t=r&&r.userAgent;return V=t?String(t):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.version,f=u&&u.v8;return f&&(t=(r=f.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!t&&e&&(!(r=e.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=e.match(/Chrome\/(\d+)/))&&(t=+r[1]),H=t}function Er(){if(K)return Y;K=1;var r=jr(),t=m(),n=c().String;return Y=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41})}function Rr(){if(Z)return Q;Z=1;var r=Er();return Q=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Pr(){if(tr)return rr;tr=1;var r=Or(),t=mr(),n=Sr(),e=Rr(),i=Object;return rr=e?function(r){return"symbol"==typeof r}:function(e){var o=r("Symbol");return t(o)&&n(o.prototype,i(e))}}function xr(){if(er)return nr;er=1;var r=String;return nr=function(t){try{return r(t)}catch(r){return"Object"}}}function Ar(){if(or)return ir;or=1;var r=mr(),t=xr(),n=TypeError;return ir=function(e){if(r(e))return e;throw new n(t(e)+" is not a function")}}function Tr(){if(fr)return ur;fr=1;var r=Ar(),t=hr();return ur=function(n,e){var i=n[e];return t(i)?void 0:r(i)}}function Cr(){if(cr)return ar;cr=1;var r=S(),t=mr(),n=wr(),e=TypeError;return ar=function(i,o){var u,f;if("string"===o&&t(u=i.toString)&&!n(f=r(u,i)))return f;if(t(u=i.valueOf)&&!n(f=r(u,i)))return f;if("string"!==o&&t(u=i.toString)&&!n(f=r(u,i)))return f;throw new e("Can't convert object to primitive value")}}var Fr,kr,Ir,Lr,Dr,Mr,Nr,zr,_r,Gr,Wr,Br,Ur,qr,Jr,Vr,$r,Hr,Xr,Yr,Kr,Qr,Zr,rt,tt={exports:{}};function nt(){return kr?Fr:(kr=1,Fr=!1)}function et(){if(Lr)return Ir;Lr=1;var r=c(),t=Object.defineProperty;return Ir=function(n,e){try{t(r,n,{value:e,configurable:!0,writable:!0})}catch(t){r[n]=e}return e}}function it(){if(Dr)return tt.exports;Dr=1;var r=nt(),t=c(),n=et(),e="__core-js_shared__",i=tt.exports=t[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.49.0",mode:r?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),tt.exports}function ot(){if(Nr)return Mr;Nr=1;var r=it();return Mr=function(t,n){return r[t]||(r[t]=n||{})}}function ut(){if(_r)return zr;_r=1;var r=gr(),t=Object;return zr=function(n){return t(r(n))}}function ft(){if(Wr)return Gr;Wr=1;var r=pr(),t=ut(),n=r({}.hasOwnProperty);return Gr=Object.hasOwn||function(r,e){return n(t(r),e)}}function at(){if(Ur)return Br;Ur=1;var r=pr(),t=0,n=Math.random(),e=r(1.1.toString);return Br=function(r){return"Symbol("+(void 0===r?"":r)+")_"+e(++t+n,36)}}function ct(){if(Jr)return qr;Jr=1;var r=c(),t=ot(),n=ft(),e=at(),i=Er(),o=Rr(),u=r.Symbol,f=t("wks"),a=o?u.for||u:u&&u.withoutSetter||e;return qr=function(r){return n(f,r)||(f[r]=i&&n(u,r)?u[r]:a("Symbol."+r)),f[r]}}function st(){if($r)return Vr;$r=1;var r=S(),t=wr(),n=Pr(),e=Tr(),i=Cr(),o=ct(),u=TypeError,f=o("toPrimitive");return Vr=function(o,a){if(!t(o)||n(o))return o;var c,s=e(o,f);if(s){if(void 0===a&&(a="default"),c=r(s,o,a),!t(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===a&&(a="number"),i(o,a)}}function lt(){if(Xr)return Hr;Xr=1;var r=st(),t=Pr();return Hr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function vt(){if(Kr)return Yr;Kr=1;var r=c(),t=wr(),n=r.document,e=t(n)&&t(n.createElement);return Yr=function(r){return e?n.createElement(r):{}}}function pt(){if(Zr)return Qr;Zr=1;var r=w(),t=m(),n=vt();return Qr=!r&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function yt(){if(rt)return b;rt=1;var r=w(),t=S(),n=lr(),e=vr(),i=br(),o=lt(),u=ft(),f=pt(),a=Object.getOwnPropertyDescriptor;return b.f=r?a:function(r,c){if(r=i(r),c=o(c),f)try{return a(r,c)}catch(r){}if(u(r,c))return e(!t(n.f,r,c),r[c])},b}var dt,ht,gt,bt,mt,wt,Ot,St={};function jt(){if(ht)return dt;ht=1;var r=w(),t=m();return dt=r&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Et(){if(bt)return gt;bt=1;var r=wr(),t=String,n=TypeError;return gt=function(e){if(r(e))return e;throw new n(t(e)+" is not an object")}}function Rt(){if(mt)return St;mt=1;var r=w(),t=pt(),n=jt(),e=Et(),i=lt(),o=TypeError,u=Object.defineProperty,f=Object.getOwnPropertyDescriptor,a="enumerable",c="configurable",s="writable";return St.f=r?n?function(r,t,n){if(e(r),t=i(t),e(n),"function"==typeof r&&"prototype"===t&&"value"in n&&s in n&&!n[s]){var o=f(r,t);o&&o[s]&&(r[t]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:a in n?n[a]:o[a],writable:!1})}return u(r,t,n)}:u:function(r,n,f){if(e(r),n=i(n),e(f),t)try{return u(r,n,f)}catch(r){}if("get"in f||"set"in f)throw new o("Accessors not supported");return"value"in f&&(r[n]=f.value),r},St}function Pt(){if(Ot)return wt;Ot=1;var r=w(),t=Rt(),n=vr();return wt=r?function(r,e,i){return t.f(r,e,n(1,i))}:function(r,t,n){return r[t]=n,r}}var xt,At,Tt,Ct,Ft,kt,It,Lt,Dt,Mt,Nt,zt,_t,Gt,Wt,Bt={exports:{}};function Ut(){if(At)return xt;At=1;var r=w(),t=ft(),n=Function.prototype,e=r&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,u=i&&(!r||r&&e(n,"name").configurable);return xt={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function qt(){if(Ct)return Tt;Ct=1;var r=pr(),t=mr(),n=it(),e=r(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(r){return e(r)}),Tt=n.inspectSource}function Jt(){if(kt)return Ft;kt=1;var r=c(),t=mr(),n=r.WeakMap;return Ft=t(n)&&/native code/.test(String(n))}function Vt(){if(Lt)return It;Lt=1;var r=ot(),t=at(),n=r("keys");return It=function(r){return n[r]||(n[r]=t(r))}}function $t(){return Mt?Dt:(Mt=1,Dt={})}function Ht(){if(zt)return Nt;zt=1;var r,t,n,e=Jt(),i=c(),o=wr(),u=Pt(),f=ft(),a=it(),s=Vt(),l=$t(),v="Object already initialized",p=i.TypeError,y=i.WeakMap;if(e||a.state){var d=a.state||(a.state=new y);d.get=d.get,d.has=d.has,d.set=d.set,r=function(r,t){if(d.has(r))throw new p(v);return t.facade=r,d.set(r,t),t},t=function(r){return d.get(r)||{}},n=function(r){return d.has(r)}}else{var h=s("state");l[h]=!0,r=function(r,t){if(f(r,h))throw new p(v);return t.facade=r,u(r,h,t),t},t=function(r){return f(r,h)?r[h]:{}},n=function(r){return f(r,h)}}return Nt={set:r,get:t,has:n,enforce:function(e){return n(e)?t(e):r(e,{})},getterFor:function(r){return function(n){var e;if(!o(n)||(e=t(n)).type!==r)throw new p("Incompatible receiver, "+r+" required");return e}}}}function Xt(){if(_t)return Bt.exports;_t=1;var r=pr(),t=m(),n=mr(),e=ft(),i=w(),o=Ut().CONFIGURABLE,u=qt(),f=Ht(),a=f.enforce,c=f.get,s=String,l=Object.defineProperty,v=r("".slice),p=r("".replace),y=r([].join),d=i&&!t(function(){return 8!==l(function(){},"length",{value:8}).length}),h=String(String).split("String"),g=Bt.exports=function(r,t,n){"Symbol("===v(s(t),0,7)&&(t="["+p(s(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!e(r,"name")||o&&r.name!==t)&&(i?l(r,"name",{value:t,configurable:!0}):r.name=t),d&&n&&e(n,"arity")&&r.length!==n.arity&&l(r,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?i&&l(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var u=a(r);return e(u,"source")||(u.source=y(h,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&c(this).source||u(this)},"toString"),Bt.exports}function Yt(){if(Wt)return Gt;Wt=1;var r=mr(),t=Rt(),n=Xt(),e=et();return Gt=function(i,o,u,f){f||(f={});var a=f.enumerable,c=void 0!==f.name?f.name:o;if(r(u)&&n(u,c,f),f.global)a?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(a=!0):delete i[o]}catch(r){}a?i[o]=u:t.f(i,o,{value:u,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return i}}var Kt,Qt,Zt,rn,tn,nn,en,on,un,fn,an,cn,sn,ln,vn,pn,yn,dn={};function hn(){if(rn)return Zt;rn=1;var r=function(){if(Qt)return Kt;Qt=1;var r=Math.ceil,t=Math.floor;return Kt=Math.trunc||function(n){var e=+n;return(e>0?t:r)(e)}}();return Zt=function(t){var n=+t;return n!=n||0===n?0:r(n)}}function gn(){if(nn)return tn;nn=1;var r=hn(),t=Math.max,n=Math.min;return tn=function(e,i){var o=r(e);return o<0?t(o+i,0):n(o,i)}}function bn(){if(on)return en;on=1;var r=hn(),t=Math.min;return en=function(n){var e=r(n);return e>0?t(e,9007199254740991):0}}function mn(){if(fn)return un;fn=1;var r=bn();return un=function(t){return r(t.length)}}function wn(){if(ln)return sn;ln=1;var r=pr(),t=ft(),n=br(),e=function(){if(cn)return an;cn=1;var r=br(),t=gn(),n=mn(),e=function(e){return function(i,o,u){var f=r(i),a=n(f);if(0===a)return!e&&-1;var c,s=t(u,a);if(e&&o!=o){for(;a>s;)if((c=f[s++])!=c)return!0}else for(;a>s;s++)if((e||s in f)&&f[s]===o)return e||s||0;return!e&&-1}};return an={includes:e(!0),indexOf:e(!1)}}().indexOf,i=$t(),o=r([].push);return sn=function(r,u){var f,a=n(r),c=0,s=[];for(f in a)!t(i,f)&&t(a,f)&&o(s,f);for(;u.length>c;)t(a,f=u[c++])&&(~e(s,f)||o(s,f));return s}}function On(){return pn?vn:(pn=1,vn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function Sn(){if(yn)return dn;yn=1;var r=wn(),t=On().concat("length","prototype");return dn.f=Object.getOwnPropertyNames||function(n){return r(n,t)},dn}var jn,En,Rn,Pn,xn,An,Tn,Cn,Fn,kn,In,Ln,Dn,Mn,Nn,zn={};function _n(){return jn||(jn=1,zn.f=Object.getOwnPropertySymbols),zn}function Gn(){if(Rn)return En;Rn=1;var r=Or(),t=pr(),n=Sn(),e=_n(),i=Et(),o=t([].concat);return En=r("Reflect","ownKeys")||function(r){var t=n.f(i(r)),u=e.f;return u?o(t,u(r)):t}}function Wn(){if(xn)return Pn;xn=1;var r=ft(),t=Gn(),n=yt(),e=Rt();return Pn=function(i,o,u){for(var f=t(o),a=e.f,c=n.f,s=0;s<f.length;s++){var l=f[s];r(i,l)||u&&r(u,l)||a(i,l,c(o,l))}}}function Bn(){if(Tn)return An;Tn=1;var r=m(),t=mr(),n=/#|\.prototype\./,e=function(n,e){var a=o[i(n)];return a===f||a!==u&&(t(e)?r(e):!!e)},i=e.normalize=function(r){return String(r).replace(n,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",f=e.POLYFILL="P";return An=e}function Un(){if(Fn)return Cn;Fn=1;var r=c(),t=yt().f,n=Pt(),e=Yt(),i=et(),o=Wn(),u=Bn();return Cn=function(f,a){var c,s,l,v,p,y=f.target,d=f.global,h=f.stat;if(c=d?r:h?r[y]||i(y,{}):r[y]&&r[y].prototype)for(s in a){if(v=a[s],l=f.dontCallGetSet?(p=t(c,s))&&p.value:c[s],!u(d?s:y+(h?".":"#")+s,f.forced)&&void 0!==l){if(typeof v==typeof l)continue;o(v,l)}(f.sham||l&&l.sham)&&n(v,"sham",!0),e(c,s,v,f)}}}function qn(){if(In)return kn;In=1;var r={};return r[ct()("toStringTag")]="z",kn="[object z]"===String(r)}function Jn(){if(Dn)return Ln;Dn=1;var r=qn(),t=mr(),n=yr(),e=ct()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Ln=r?n:function(r){var u,f,a;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(f=function(r,t){try{return r[t]}catch(r){}}(u=i(r),e))?f:o?n(u):"Object"===(a=n(u))&&t(u.callee)?"Arguments":a}}function Vn(){if(Nn)return Mn;Nn=1;var r=Jn(),t=String;return Mn=function(n){if("Symbol"===r(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}var $n,Hn,Xn,Yn,Kn,Qn,Zn,re={};function te(){if(Hn)return $n;Hn=1;var r=wn(),t=On();return $n=Object.keys||function(n){return r(n,t)}}function ne(){if(Xn)return re;Xn=1;var r=w(),t=jt(),n=Rt(),e=Et(),i=br(),o=te();return re.f=r&&!t?Object.defineProperties:function(r,t){e(r);for(var u,f=i(t),a=o(t),c=a.length,s=0;c>s;)n.f(r,u=a[s++],f[u]);return r},re}function ee(){if(Kn)return Yn;Kn=1;var r=Or();return Yn=r("document","documentElement")}function ie(){if(Zn)return Qn;Zn=1;var r,t=Et(),n=ne(),e=On(),i=$t(),o=ee(),u=vt(),f=Vt(),a="prototype",c="script",s=f("IE_PROTO"),l=function(){},v=function(r){return"<"+c+">"+r+"</"+c+">"},p=function(r){r.write(v("")),r.close();var t=r.parentWindow.Object;return r=null,t},y=function(){try{r=new ActiveXObject("htmlfile")}catch(r){}var t,n,i;y="undefined"!=typeof document?document.domain&&r?p(r):(n=u("iframe"),i="java"+c+":",n.style.display="none",o.appendChild(n),n.src=String(i),(t=n.contentWindow.document).open(),t.write(v("document.F=Object")),t.close(),t.F):p(r);for(var f=e.length;f--;)delete y[a][e[f]];return y()};return i[s]=!0,Qn=Object.create||function(r,e){var i;return null!==r?(l[a]=t(r),i=new l,l[a]=null,i[s]=r):i=y(),void 0===e?i:n.f(i,e)}}var oe,ue,fe,ae,ce,se={};function le(){if(ue)return oe;ue=1;var r=pr();return oe=r([].slice)}function ve(){if(fe)return se;fe=1;var r=yr(),t=br(),n=Sn().f,e=le(),i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return se.f=function(o){return i&&"Window"===r(o)?function(r){try{return n(r)}catch(r){return e(i)}}(o):n(t(o))},se}function pe(){if(ce)return ae;ce=1;var r=Xt(),t=Rt();return ae=function(n,e,i){return i.get&&r(i.get,e,{getter:!0}),i.set&&r(i.set,e,{setter:!0}),t.f(n,e,i)}}var ye,de,he,ge,be,me,we,Oe,Se,je,Ee,Re,Pe,xe,Ae,Te,Ce,Fe,ke,Ie,Le,De,Me,Ne,ze,_e,Ge={};function We(){if(ye)return Ge;ye=1;var r=ct();return Ge.f=r,Ge}function Be(){if(he)return de;he=1;var r=c();return de=r}function Ue(){if(Se)return Oe;Se=1;var r=Rt().f,t=ft(),n=ct()("toStringTag");return Oe=function(e,i,o){e&&!o&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:i})}}function qe(){if(Pe)return Re;Pe=1;var r=function(){if(Ee)return je;Ee=1;var r=yr(),t=pr();return je=function(n){if("Function"===r(n))return t(n)}}(),t=Ar(),n=O(),e=r(r.bind);return Re=function(r,i){return t(r),void 0===i?r:n?e(r,i):function(){return r.apply(i,arguments)}},Re}function Je(){if(Ae)return xe;Ae=1;var r=yr();return xe=Array.isArray||function(t){return"Array"===r(t)}}function Ve(){if(Ce)return Te;Ce=1;var r=pr(),t=m(),n=mr(),e=Jn(),i=Or(),o=qt(),u=function(){},f=i("Reflect","construct"),a=/^\s*(?:class|function)\b/,c=r(a.exec),s=!a.test(u),l=function(r){if(!n(r))return!1;try{return f(u,[],r),!0}catch(r){return!1}},v=function(r){if(!n(r))return!1;switch(e(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!c(a,o(r))}catch(r){return!0}};return v.sham=!0,Te=!f||t(function(){var r;return l(l.call)||!l(Object)||!l(function(){r=!0})||r})?v:l}function $e(){if(ke)return Fe;ke=1;var r=Je(),t=Ve(),n=wr(),e=ct()("species"),i=Array;return Fe=function(o){var u;return r(o)&&(u=o.constructor,(t(u)&&(u===i||r(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}function He(){if(Le)return Ie;Le=1;var r=$e();return Ie=function(t,n){return new(r(t))(0===n?0:n)}}function Xe(){if(Me)return De;Me=1;var r=w(),t=Rt(),n=vr();return De=function(e,i,o){r?t.f(e,i,n(0,o)):e[i]=o}}function Ye(){if(ze)return Ne;ze=1;var r=qe(),t=dr(),n=ut(),e=mn(),i=He(),o=Xe(),u=function(u){var f=1===u,a=2===u,c=3===u,s=4===u,l=6===u,v=7===u,p=5===u||l;return function(y,d,h){for(var g,b,m=n(y),w=t(m),O=e(w),S=r(d,h),j=0,E=0,R=f?i(y,O):a||v?i(y,0):void 0;O>j;j++)if((p||j in w)&&(b=S(g=w[j],j,m),u))if(f)o(R,j,b);else if(b)switch(u){case 3:return!0;case 5:return g;case 6:return j;case 2:o(R,E++,g)}else switch(u){case 4:return!1;case 7:o(R,E++,g)}return l?-1:c||s?s:R}};return Ne={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}function Ke(){if(_e)return a;_e=1;var r=Un(),t=c(),n=S(),e=pr(),i=nt(),o=w(),u=Er(),f=m(),s=ft(),l=Sr(),v=Et(),p=br(),y=lt(),d=Vn(),h=vr(),g=ie(),b=te(),O=Sn(),j=ve(),E=_n(),R=yt(),P=Rt(),x=ne(),A=lr(),T=Yt(),C=pe(),F=ot(),k=Vt(),I=$t(),L=at(),D=ct(),M=We(),N=function(){if(be)return ge;be=1;var r=Be(),t=ft(),n=We(),e=Rt().f;return ge=function(i){var o=r.Symbol||(r.Symbol={});t(o,i)||e(o,i,{value:n.f(i)})}}(),z=function(){if(we)return me;we=1;var r=S(),t=Or(),n=ct(),e=Yt();return me=function(){var i=t("Symbol"),o=i&&i.prototype,u=o&&o.valueOf,f=n("toPrimitive");o&&!o[f]&&e(o,f,function(t){return r(u,this)},{arity:1})}}(),_=Ue(),G=Ht(),W=Ye().forEach,B=k("hidden"),U="Symbol",q="prototype",J=G.set,V=G.getterFor(U),$=Object[q],H=t.Symbol,X=H&&H[q],Y=t.RangeError,K=t.TypeError,Q=t.QObject,Z=R.f,rr=P.f,tr=j.f,nr=A.f,er=e([].push),ir=F("symbols"),or=F("op-symbols"),ur=F("wks"),fr=!Q||!Q[q]||!Q[q].findChild,ar=function(r,t,n){var e=Z($,t);return e&&delete $[t],rr(r,t,n),e&&r!==$&&rr($,t,e),r},cr=o&&f(function(){return 7!==g(rr({},"a",{get:function(){return rr(this,"a",{value:7}).a}})).a})?ar:rr,sr=function(r,t){var n=ir[r]=g(X);return J(n,{type:U,tag:r,description:t}),o||(n.description=t),n},yr=function(r,t,n){r===$&&yr(or,t,n),v(r);var e=y(t);return v(n),s(ir,e)?(("enumerable"in n?!n.enumerable:!s(r,e)||s(r,B)&&r[B][e])?(s(r,B)||rr(r,B,h(1,g(null))),r[B][e]=!0):(s(r,B)&&r[B][e]&&(r[B][e]=!1),n=g(n,{enumerable:h(0,!1)})),cr(r,e,n)):rr(r,e,n)},dr=function(r,t){v(r);var e=p(t),i=b(e).concat(wr(e));return W(i,function(t){o&&!n(hr,e,t)||yr(r,t,e[t])}),r},hr=function(r){var t=y(r),e=n(nr,this,t);return!(this===$&&s(ir,t)&&!s(or,t))&&(!(e||!s(this,t)||!s(ir,t)||s(this,B)&&this[B][t])||e)},gr=function(r,t){var n=p(r),e=y(t);if(n!==$||!s(ir,e)||s(or,e)){var i=Z(n,e);return!i||!s(ir,e)||s(n,B)&&n[B][e]||(i.enumerable=!0),i}},mr=function(r){var t=tr(p(r)),n=[];return W(t,function(r){s(ir,r)||s(I,r)||er(n,r)}),n},wr=function(r){var t=r===$,n=tr(t?or:p(r)),e=[];return W(n,function(r){!s(ir,r)||t&&!s($,r)||er(e,ir[r])}),e};return u||(H=function(){if(l(X,this))throw new K("Symbol is not a constructor");var r=arguments.length&&void 0!==arguments[0]?d(arguments[0]):void 0,e=L(r),i=function(r){var o=void 0===this?t:this;o===$&&n(i,or,r),s(o,B)&&s(o[B],e)&&(o[B][e]=!1);var u=h(1,r);try{cr(o,e,u)}catch(r){if(!(r instanceof Y))throw r;ar(o,e,u)}};return o&&fr&&cr($,e,{configurable:!0,set:i}),sr(e,r)},T(X=H[q],"toString",function(){return V(this).tag}),T(H,"withoutSetter",function(r){return sr(L(r),r)}),A.f=hr,P.f=yr,x.f=dr,R.f=gr,O.f=j.f=mr,E.f=wr,M.f=function(r){return sr(D(r),r)},o&&(C(X,"description",{configurable:!0,get:function(){return V(this).description}}),i||T($,"propertyIsEnumerable",hr,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:H}),W(b(ur),function(r){N(r)}),r({target:U,stat:!0,forced:!u},{useSetter:function(){fr=!0},useSimple:function(){fr=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!o},{create:function(r,t){return void 0===t?g(r):dr(g(r),t)},defineProperty:yr,defineProperties:dr,getOwnPropertyDescriptor:gr}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:mr}),z(),_(H,U),I[B]=!0,a}var Qe,Ze,ri,ti={};function ni(){if(Ze)return Qe;Ze=1;var r=Er();return Qe=r&&!!Symbol.for&&!!Symbol.keyFor}var ei,ii={};var oi,ui,fi,ai,ci,si,li,vi,pi,yi={};function di(){if(pi)return yi;pi=1;var r=Un(),t=Or(),n=function(){if(ui)return oi;ui=1;var r=O(),t=Function.prototype,n=t.apply,e=t.call;return oi="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),oi}(),e=S(),i=pr(),o=m(),u=Je(),f=mr(),a=function(){if(ai)return fi;ai=1;var r=wr(),t=Ht().get;return fi=function(n){if(!r(n))return!1;var e=t(n);return!!e&&"RawJSON"===e.type}}(),c=Pr(),s=yr(),l=Vn(),v=le(),p=function(){if(si)return ci;si=1;var r=pr(),t=ft(),n=SyntaxError,e=parseInt,i=String.fromCharCode,o=r("".charAt),u=r("".slice),f=r(/./.exec),a={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},c=/^[\da-f]{4}$/i,s=/^[\u0000-\u001F]$/;return ci=function(r,l){for(var v=!0,p="";l<r.length;){var y=o(r,l);if("\\"===y){var d=u(r,l,l+2);if(t(a,d))p+=a[d],l+=2;else{if("\\u"!==d)throw new n('Unknown escape sequence: "'+d+'"');var h=u(r,l+=2,l+4);if(!f(c,h))throw new n("Bad Unicode escape at: "+l);p+=i(e(h,16)),l+=4}}else{if('"'===y){v=!1,l++;break}if(f(s,y))throw new n("Bad control character in string literal at: "+l);p+=y,l++}}if(v)throw new n("Unterminated string at: "+l);return{value:p,end:l}}}(),y=at(),d=Er(),h=function(){if(vi)return li;vi=1;var r=m();return li=!r(function(){var r="9007199254740993",t=JSON.rawJSON(r);return!JSON.isRawJSON(t)||JSON.stringify(t)!==r})}(),g=String,b=t("JSON","stringify"),w=i(/./.exec),j=i("".charAt),E=i("".charCodeAt),R=i("".replace),P=i("".slice),x=i([].push),A=i(1.1.toString),T=/[\uD800-\uDFFF]/g,C=/^[\uD800-\uDBFF]$/,F=/^[\uDC00-\uDFFF]$/,k=y(),I=k.length,L=!d||o(function(){var r=t("Symbol")("stringify detection");return"[null]"!==b([r])||"{}"!==b({a:r})||"{}"!==b(Object(r))}),D=o(function(){return'"\\udf06\\ud834"'!==b("\udf06\ud834")||'"\\udead"'!==b("\udead")}),M=L?function(r,t){var i=v(arguments),o=z(t);if(f(o)||void 0!==r&&!c(r))return i[1]=function(r,t){if(f(o)&&(t=e(o,this,g(r),t)),!c(t))return t},n(b,null,i)}:b,N=function(r,t,n){var e=j(n,t-1),i=j(n,t+1);return w(C,r)&&!w(F,i)||w(F,r)&&!w(C,e)?"\\u"+A(E(r,0),16):r},z=function(r){if(f(r))return r;if(u(r)){for(var t=r.length,n=[],e=0;e<t;e++){var i=r[e];"string"==typeof i?x(n,i):"number"!=typeof i&&"Number"!==s(i)&&"String"!==s(i)||x(n,l(i))}var o=n.length,a=!0;return function(r,t){if(a)return a=!1,t;if(u(this))return t;for(var e=0;e<o;e++)if(n[e]===r)return t}}};return b&&r({target:"JSON",stat:!0,arity:3,forced:L||D||!h},{stringify:function(r,t,n){var i=z(t),o=[],u=M(r,function(r,t){var n=f(i)?e(i,this,g(r),t):t;return!h&&a(n)?k+(x(o,n.rawJSON)-1):n},n);if("string"!=typeof u)return u;if(D&&(u=R(u,T,N)),h)return u;for(var c="",s=u.length,l=0;l<s;l++){var v=j(u,l);if('"'===v){var y=p(u,++l).end-1,d=P(u,l,y);c+=P(d,0,I)===k?o[P(d,I)]:'"'+d+'"',l=y}else c+=v}return c}}),yi}var hi,gi,bi={};gi||(gi=1,Ke(),function(){if(ri)return ti;ri=1;var r=Un(),t=Or(),n=ft(),e=Vn(),i=ot(),o=ni(),u=i("string-to-symbol-registry"),f=i("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!o},{for:function(r){var i=e(r);if(n(u,i))return u[i];var o=t("Symbol")(i);return u[i]=o,f[o]=i,o}})}(),function(){if(ei)return ii;ei=1;var r=Un(),t=ft(),n=Pr(),e=xr(),i=ot(),o=ni(),u=i("symbol-to-string-registry");r({target:"Symbol",stat:!0,forced:!o},{keyFor:function(r){if(!n(r))throw new TypeError(e(r)+" is not a symbol");if(t(u,r))return u[r]}})}(),di(),function(){if(hi)return bi;hi=1;var r=Un(),t=Er(),n=m(),e=_n(),i=ut();r({target:"Object",stat:!0,forced:!t||n(function(){e.f(1)})},{getOwnPropertySymbols:function(r){var t=e.f;return t?t(i(r)):[]}})}());var mi,wi={};!function(){if(mi)return wi;mi=1;var r=Un(),t=w(),n=c(),e=S(),i=pr(),o=ft(),u=mr(),f=Sr(),a=Vn(),s=pe(),l=Wn(),v=n.Symbol,p=v&&v.prototype;if(t&&u(v)&&(!("description"in p)||void 0!==v().description)){var y={},d=function(){var r=arguments.length<1||void 0===arguments[0]?void 0:a(arguments[0]),t=f(p,this)?new v(r):void 0===r?v():v(r);return""===r&&(y[t]=!0),t};l(d,v);var h=d.for;d.for={for:function(r){var t=a(r),n=e(h,this,t);return""===t&&(y[n]=!0),n}}.for,d.prototype=p,p.constructor=d;var g="Symbol(description detection)"===String(v("description detection")),b=i(p.valueOf),m=i(p.toString),O=/^Symbol\((.*)\)[^)]+$/,j=i("".replace),E=i("".slice);s(p,"description",{configurable:!0,get:function(){var r=b(this);if(o(y,r))return"";var t=m(r),n=g?E(t,7,-1):j(t,O,"$1");return""===n?void 0:n}}),r({global:!0,constructor:!0,forced:!0},{Symbol:d})}}();var Oi,Si,ji,Ei={};!function(){if(ji)return Ei;ji=1;var r=qn(),t=Yt(),n=function(){if(Si)return Oi;Si=1;var r=qn(),t=Jn();return Oi=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var Ri=Symbol("editorContext");var Pi,xi,Ai,Ti,Ci,Fi,ki,Ii,Li,Di,Mi,Ni,zi,_i,Gi,Wi,Bi,Ui,qi,Ji,Vi,$i,Hi,Xi,Yi,Ki,Qi=function(){var r=t.inject(Ri);if(!r)throw new Error("[useEditorStatic] editor context not provided.Call provideEditor() in a parent component before using useEditorStatic().");return r.editor};function Zi(){if(xi)return Pi;xi=1;var r=ct(),t=ie(),n=Rt().f,e=r("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:t(null)}),Pi=function(r){i[e][r]=!0}}function ro(){return Ti?Ai:(Ti=1,Ai={})}function to(){if(Ii)return ki;Ii=1;var r=ft(),t=mr(),n=ut(),e=Vt(),i=function(){if(Fi)return Ci;Fi=1;var r=m();return Ci=!r(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})}(),o=e("IE_PROTO"),u=Object,f=u.prototype;return ki=i?u.getPrototypeOf:function(e){var i=n(e);if(r(i,o))return i[o];var a=i.constructor;return t(a)&&i instanceof a?a.prototype:i instanceof u?f:null}}function no(){if(Di)return Li;Di=1;var r,t,n,e=m(),i=mr(),o=wr(),u=ie(),f=to(),a=Yt(),c=ct(),s=nt(),l=c("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(t=f(f(n)))!==Object.prototype&&(r=t):v=!0),!o(r)||e(function(){var t={};return r[l].call(t)!==t})?r={}:s&&(r=u(r)),i(r[l])||a(r,l,function(){return this}),Li={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function eo(){if(Wi)return Gi;Wi=1;var r=wr();return Gi=function(t){return r(t)||null===t}}function io(){if(Ui)return Bi;Ui=1;var r=eo(),t=String,n=TypeError;return Bi=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function oo(){if(Ji)return qi;Ji=1;var r=function(){if(_i)return zi;_i=1;var r=pr(),t=Ar();return zi=function(n,e,i){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[i]))}catch(r){}}}(),t=wr(),n=gr(),e=io();return qi=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,u={};try{(i=r(Object.prototype,"__proto__","set"))(u,[]),o=u instanceof Array}catch(r){}return function(r,u){return n(r),e(u),t(r)?(o?i(r,u):r.__proto__=u,r):r}}():void 0)}function uo(){if($i)return Vi;$i=1;var r=Un(),t=S(),n=nt(),e=Ut(),i=mr(),o=function(){if(Ni)return Mi;Ni=1;var r=no().IteratorPrototype,t=ie(),n=vr(),e=Ue(),i=ro(),o=function(){return this};return Mi=function(u,f,a,c){var s=f+" Iterator";return u.prototype=t(r,{next:n(+!c,a)}),e(u,s,!1,!0),i[s]=o,u}}(),u=to(),f=oo(),a=Ue(),c=Pt(),s=Yt(),l=ct(),v=ro(),p=no(),y=e.PROPER,d=e.CONFIGURABLE,h=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,b=l("iterator"),m="keys",w="values",O="entries",j=function(){return this};return Vi=function(e,l,p,S,E,R,P){o(p,l,S);var x,A,T,C=function(r){if(r===E&&D)return D;if(!g&&r&&r in I)return I[r];switch(r){case m:case w:case O:return function(){return new p(this,r)}}return function(){return new p(this)}},F=l+" Iterator",k=!1,I=e.prototype,L=I[b]||I["@@iterator"]||E&&I[E],D=!g&&L||C(E),M="Array"===l&&I.entries||L;if(M&&(x=u(M.call(new e)))!==Object.prototype&&x.next&&(n||u(x)===h||(f?f(x,h):i(x[b])||s(x,b,j)),a(x,F,!0,!0),n&&(v[F]=j)),y&&E===w&&L&&L.name!==w&&(!n&&d?c(I,"name",w):(k=!0,D=function(){return t(L,this)})),E)if(A={values:C(w),keys:R?D:C(m),entries:C(O)},P)for(T in A)(g||k||!(T in I))&&s(I,T,A[T]);else r({target:l,proto:!0,forced:g||k},A);return n&&!P||I[b]===D||s(I,b,D,{name:E}),v[l]=D,A}}function fo(){return Xi?Hi:(Xi=1,Hi=function(r,t){return{value:r,done:t}})}function ao(){if(Ki)return Yi;Ki=1;var r=br(),t=Zi(),n=ro(),e=Ht(),i=Rt().f,o=uo(),u=fo(),f=nt(),a=w(),c="Array Iterator",s=e.set,l=e.getterFor(c);Yi=o(Array,"Array",function(t,n){s(this,{type:c,target:r(t),index:0,kind:n})},function(){var r=l(this),t=r.target,n=r.index++;if(!t||n>=t.length)return r.target=null,u(void 0,!0);switch(r.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)},"values");var v=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!f&&a&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(r){}return Yi}ao();var co,so,lo,vo={};function po(){if(so)return co;so=1;var r=m(),t=ct(),n=jr(),e=t("species");return co=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(lo)return vo;lo=1;var r=Un(),t=Ye().map;r({target:"Array",proto:!0,forced:!po()("map")},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var yo,ho,go,bo={};!function(){if(go)return bo;go=1;var r=Un(),t=function(){if(ho)return yo;ho=1;var r=w(),t=m(),n=pr(),e=to(),i=te(),o=br(),u=n(lr().f),f=n([].push),a=r&&t(function(){var r=Object.create(null);return r[2]=2,!u(r,2)}),c=function(t){return function(n){for(var c,s=o(n),l=i(s),v=a&&null===e(s),p=l.length,y=0,d=[];p>y;)c=l[y++],r&&!(v?c in s:u(s,c))||f(d,t?[c,s[c]]:s[c]);return d}};return yo={entries:c(!0),values:c(!1)}}().entries;r({target:"Object",stat:!0},{entries:function(r){return t(r)}})}();var mo,wo,Oo={};function So(){if(wo)return mo;wo=1;var r=m();return mo=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}var jo,Eo,Ro,Po,xo,Ao,To={exports:{}};function Co(){if(Po)return Ro;Po=1;var r=m(),t=wr(),n=yr(),e=function(){if(Eo)return jo;Eo=1;var r=m();return jo=r(function(){if("function"==typeof ArrayBuffer){var r=new ArrayBuffer(8);Object.isExtensible(r)&&Object.defineProperty(r,"a",{value:8})}})}(),i=Object.isExtensible,o=r(function(){});return Ro=o||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!i||i(r)))}:i}function Fo(){if(xo)return To.exports;xo=1;var r=Un(),t=pr(),n=$t(),e=wr(),i=ft(),o=Rt().f,u=Sn(),f=ve(),a=Co(),c=at(),s=So(),l=!1,v=c("meta"),p=0,y=function(r){o(r,v,{value:{objectID:"O"+p++,weakData:{}}})},d=To.exports={enable:function(){d.enable=function(){},l=!0;var n=u.f,e=t([].splice),i={};i[v]=1,n(i).length&&(u.f=function(r){for(var t=n(r),i=0,o=t.length;i<o;i++)if(t[i]===v){e(t,i,1);break}return t},r({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(r,t){if(!e(r))return"symbol"==typeof r?r:("string"==typeof r?"S":"P")+r;if(!i(r,v)){if(!a(r))return"F";if(!t)return"E";y(r)}return r[v].objectID},getWeakData:function(r,t){if(!i(r,v)){if(!a(r))return!0;if(!t)return!1;y(r)}return r[v].weakData},onFreeze:function(r){return s&&l&&a(r)&&!i(r,v)&&y(r),r}};return n[v]=!0,To.exports}!function(){if(Ao)return Oo;Ao=1;var r=Un(),t=So(),n=m(),e=wr(),i=Fo().onFreeze,o=Object.freeze;r({target:"Object",stat:!0,forced:n(function(){o(1)}),sham:!t},{freeze:function(r){return o&&e(r)?o(i(r)):r}})}();var ko,Io,Lo,Do,Mo,No,zo,_o,Go,Wo,Bo,Uo={};function qo(){if(Io)return ko;Io=1;var r=ct(),t=ro(),n=r("iterator"),e=Array.prototype;return ko=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Jo(){if(Do)return Lo;Do=1;var r=Jn(),t=Tr(),n=hr(),e=ro(),i=ct()("iterator");return Lo=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||e[r(o)]}}function Vo(){if(No)return Mo;No=1;var r=S(),t=Ar(),n=Et(),e=xr(),i=Jo(),o=TypeError;return Mo=function(u,f){var a=arguments.length<2?i(u):f;if(t(a))return n(r(a,u));throw new o(e(u)+" is not iterable")},Mo}function $o(){if(_o)return zo;_o=1;var r=S(),t=Et(),n=Tr();return zo=function(e,i,o){var u,f;t(e);try{if(!(u=n(e,"return"))){if("throw"===i)throw o;return o}u=r(u,e)}catch(r){f=!0,u=r}if("throw"===i)throw o;if(f)throw u;return t(u),o}}function Ho(){if(Wo)return Go;Wo=1;var r=qe(),t=S(),n=Et(),e=xr(),i=qo(),o=mn(),u=Sr(),f=Vo(),a=Jo(),c=$o(),s=TypeError,l=function(r,t){this.stopped=r,this.result=t},v=l.prototype;return Go=function(p,y,d){var h,g,b,m,w,O,S,j=d&&d.that,E=!(!d||!d.AS_ENTRIES),R=!(!d||!d.IS_RECORD),P=!(!d||!d.IS_ITERATOR),x=!(!d||!d.INTERRUPTED),A=r(y,j),T=function(r){var t=h;return h=void 0,t&&c(t,"normal"),new l(!0,r)},C=function(r){return E?(n(r),x?A(r[0],r[1],T):A(r[0],r[1])):x?A(r,T):A(r)};if(R)h=p.iterator;else if(P)h=p;else{if(!(g=a(p)))throw new s(e(p)+" is not iterable");if(i(g)){for(b=0,m=o(p);m>b;b++)if((w=C(p[b]))&&u(v,w))return w;return new l(!1)}h=f(p,g)}for(O=R?p.next:h.next;!(S=t(O,h)).done;){var F=S.value;try{w=C(F)}catch(r){if(!h)throw r;c(h,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}!function(){if(Bo)return Uo;Bo=1;var r=Un(),t=Ho(),n=Xe();r({target:"Object",stat:!0},{fromEntries:function(r){var e={};return t(r,function(r,t){n(e,r,t)},{AS_ENTRIES:!0}),e}})}();var Xo,Yo={};!function(){if(Xo)return Yo;Xo=1;var r=Un(),t=ut(),n=te();r({target:"Object",stat:!0,forced:m()(function(){n(1)})},{keys:function(r){return n(t(r))}})}();var Ko,Qo,Zo,ru={};!function(){if(Zo)return ru;Zo=1;var r=function(){if(Qo)return Ko;Qo=1;var r=pr(),t=hn(),n=Vn(),e=gr(),i=r("".charAt),o=r("".charCodeAt),u=r("".slice),f=function(r){return function(f,a){var c,s,l=n(e(f)),v=t(a),p=l.length;return v<0||v>=p?r?"":void 0:(c=o(l,v))<55296||c>56319||v+1===p||(s=o(l,v+1))<56320||s>57343?r?i(l,v):c:r?u(l,v,v+2):s-56320+(c-55296<<10)+65536}};return Ko={codeAt:f(!1),charAt:f(!0)}}().charAt,t=Vn(),n=Ht(),e=uo(),i=fo(),o="String Iterator",u=n.set,f=n.getterFor(o);e(String,"String",function(r){u(this,{type:o,string:t(r),index:0})},function(){var t,n=f(this),e=n.string,o=n.index;return o>=e.length?i(void 0,!0):(t=r(e,o),n.index+=t.length,i(t,!1))})}();var tu,nu,eu,iu,ou,uu,fu,au,cu,su,lu,vu,pu,yu,du={};function hu(){if(nu)return tu;nu=1;var r=Yt();return tu=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}}function gu(){if(iu)return eu;iu=1;var r=Sr(),t=TypeError;return eu=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function bu(){if(uu)return ou;uu=1;var r=ct()("iterator"),t=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){t=!0}};e[r]=function(){return this},Array.from(e,function(){throw 2})}catch(r){}return ou=function(n,e){try{if(!e&&!t)return!1}catch(r){return!1}var i=!1;try{var o={};o[r]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(r){}return i}}function mu(){if(au)return fu;au=1;var r=mr(),t=wr(),n=oo();return fu=function(e,i,o){var u,f;return n&&r(u=i.constructor)&&u!==o&&t(f=u.prototype)&&f!==o.prototype&&n(e,f),e}}function wu(){if(su)return cu;su=1;var r=Un(),t=c(),n=pr(),e=Bn(),i=Yt(),o=Fo(),u=Ho(),f=gu(),a=mr(),s=hr(),l=wr(),v=m(),p=bu(),y=Ue(),d=mu();return cu=function(c,h,g){var b=-1!==c.indexOf("Map"),m=-1!==c.indexOf("Weak"),w=b?"set":"add",O=t[c],S=O&&O.prototype,j=O,E={},R=function(r){var t=n(S[r]);i(S,r,"add"===r?function(r){return t(this,0===r?0:r),this}:"delete"===r?function(r){return!(m&&!l(r))&&t(this,0===r?0:r)}:"get"===r?function(r){return m&&!l(r)?void 0:t(this,0===r?0:r)}:"has"===r?function(r){return!(m&&!l(r))&&t(this,0===r?0:r)}:function(r,n){return t(this,0===r?0:r,n),this})};if(e(c,!a(O)||!(m||S.forEach&&!v(function(){(new O).entries().next()}))))j=g.getConstructor(h,c,b,w),o.enable();else if(e(c,!0)){var P=new j,x=P[w](m?{}:-0,1)!==P,A=v(function(){P.has(1)}),T=p(function(r){new O(r)}),C=!m&&v(function(){for(var r=new O,t=5;t--;)r[w](t,t);return!r.has(-0)});T||((j=h(function(r,t){f(r,S);var n=d(new O,r,j);return s(t)||u(t,n[w],{that:n,AS_ENTRIES:b}),n})).prototype=S,S.constructor=j),(A||C)&&(R("delete"),R("has"),b&&R("get")),(C||x)&&R(w),m&&S.clear&&delete S.clear}return E[c]=j,r({global:!0,constructor:!0,forced:j!==O},E),y(j,c),m||g.setStrong(j,c,b),j}}function Ou(){if(vu)return lu;vu=1;var r=pr(),t=hu(),n=Fo().getWeakData,e=gu(),i=Et(),o=hr(),u=wr(),f=Ho(),a=Ye(),c=ft(),s=Ht(),l=s.set,v=s.getterFor,p=a.find,y=a.findIndex,d=r([].splice),h=0,g=function(r){return r.frozen||(r.frozen=new b)},b=function(){this.entries=[]},m=function(r,t){return p(r.entries,function(r){return r[0]===t})};return b.prototype={get:function(r){var t=m(this,r);if(t)return t[1]},has:function(r){return!!m(this,r)},set:function(r,t){var n=m(this,r);n?n[1]=t:this.entries.push([r,t])},delete:function(r){var t=y(this.entries,function(t){return t[0]===r});return~t&&d(this.entries,t,1),!!~t}},lu={getConstructor:function(r,a,s,p){var y=r(function(r,t){e(r,d),l(r,{type:a,id:h++,frozen:null}),o(t)||f(t,r[p],{that:r,AS_ENTRIES:s})}),d=y.prototype,b=v(a),m=function(r,t,e){var o=b(r),u=n(i(t),!0);return!0===u?g(o).set(t,e):u[o.id]=e,r};return t(d,{delete:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).delete(r):e&&c(e,t.id)&&delete e[t.id]},has:function(r){var t=b(this);if(!u(r))return!1;var e=n(r);return!0===e?g(t).has(r):e&&c(e,t.id)}}),t(d,s?{get:function(r){var t=b(this);if(u(r)){var e=n(r);if(!0===e)return g(t).get(r);if(e)return e[t.id]}},set:function(r,t){return m(this,r,t)}}:{add:function(r){return m(this,r,!0)}}),y}}}yu||(yu=1,function(){if(pu)return du;pu=1;var r,t=So(),n=c(),e=pr(),i=hu(),o=Fo(),u=wu(),f=Ou(),a=wr(),s=Ht().enforce,l=m(),v=Jt(),p=Object,y=Array.isArray,d=p.isExtensible,h=p.isFrozen,g=p.isSealed,b=p.freeze,w=p.seal,O=!n.ActiveXObject&&"ActiveXObject"in n,S=function(r){return function(){return r(this,arguments.length?arguments[0]:void 0)}},j=u("WeakMap",S,f),E=j.prototype,R=e(E.set);if(v)if(O){r=f.getConstructor(S,"WeakMap",!0),o.enable();var P=e(E.delete),x=e(E.has),A=e(E.get);i(E,{delete:function(t){if(a(t)&&!d(t)){var n=s(this);return n.frozen||(n.frozen=new r),P(this,t)||n.frozen.delete(t)}return P(this,t)},has:function(t){if(a(t)&&!d(t)){var n=s(this);return n.frozen||(n.frozen=new r),x(this,t)||n.frozen.has(t)}return x(this,t)},get:function(t){if(a(t)&&!d(t)){var n=s(this);return n.frozen||(n.frozen=new r),x(this,t)?A(this,t):n.frozen.get(t)}return A(this,t)},set:function(t,n){if(a(t)&&!d(t)){var e=s(this);e.frozen||(e.frozen=new r),x(this,t)?R(this,t,n):e.frozen.set(t,n)}else R(this,t,n);return this}})}else t&&l(function(){var r=b([]);return R(new j,r,1),!h(r)})&&i(E,{set:function(r,t){var n;return y(r)&&(h(r)?n=b:g(r)&&(n=w)),R(this,r,t),n&&n(r),this}})}());var Su,ju,Eu,Ru,Pu,xu={};function Au(){return ju?Su:(ju=1,Su={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0})}function Tu(){if(Ru)return Eu;Ru=1;var r=vt()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return Eu=t===Object.prototype?void 0:t}!function(){if(Pu)return xu;Pu=1;var r=c(),t=Au(),n=Tu(),e=ao(),i=Pt(),o=Ue(),u=ct()("iterator"),f=e.values,a=function(r,n){if(r){if(r[u]!==f)try{i(r,u,f)}catch(t){r[u]=f}if(o(r,n,!0),t[n])for(var a in e)if(r[a]!==e[a])try{i(r,a,e[a])}catch(t){r[a]=e[a]}}};for(var s in t)a(r[s]&&r[s].prototype,s);a(n,"DOMTokenList")}();var Cu=function(){return Cu=Object.assign||function(r){for(var t,n=1,e=arguments.length;n<e;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i]);return r},Cu.apply(this,arguments)};function Fu(r,t){var n="function"==typeof Symbol&&r[Symbol.iterator];if(!n)return r;var e,i,o=n.call(r),u=[];try{for(;(void 0===t||t-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(r){i={error:r}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var ku=new WeakMap;function Iu(r,t){if(!t.relativeSelection)return null;var e=ku.get(r.children);e||(e=new WeakMap,ku.set(r.children,e));var i=e.get(t);if(void 0===i)try{i=n.relativeRangeToSlateRange(r.sharedRoot,r,t.relativeSelection),e.set(t,i)}catch(r){return null}return void 0===i?null:i}function Lu(r,t,n){var o,u,f=n.yOffset,a=n.xOffset,c=n.shouldGenerateOverlay,s=Fu(i.Range.edges(t),2),l=s[0],v=s[1],p=function(r,t){try{return e.DomEditor.toDOMRange(r,t)}catch(r){return null}}(r,t);if(!p)return{caretPosition:null,selectionRects:[]};var y=[],d=i.Editor.nodes(r,{at:t,match:function(r,t){return i.Text.isText(r)&&(!c||c(r,t))}}),h=null,g=i.Range.isBackward(t);try{for(var b=function(r){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&r[t],e=0;if(n)return n.call(r);if(r&&"number"==typeof r.length)return{next:function(){return r&&e>=r.length&&(r=void 0),{value:r&&r[e++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(d),m=b.next();!m.done;m=b.next()){var w=Fu(m.value,2),O=w[0],S=w[1],j=e.DomEditor.toDOMNode(r,O),E=i.Path.equals(S,l.path),R=i.Path.equals(S,v.path),P=null;if(E||R){var x=document.createRange();x.selectNode(j),E&&x.setStart(p.startContainer,p.startOffset),R&&x.setEnd(p.endContainer,p.endOffset),P=x.getClientRects()}else P=j.getClientRects();for(var A=g?E:R,T=0;T<P.length;T+=1){var C=P.item(T);if(C){var F=A&&(g?0===T:T===P.length-1),k=C.top-f,I=C.left-a;F&&(h={height:C.height,top:k,left:I+(g||i.Range.isCollapsed(t)?0:C.width)}),y.push({width:C.width,height:C.height,top:k,left:I})}}}}catch(r){o={error:r}}finally{try{m&&!m.done&&(u=b.return)&&u.call(b)}finally{if(o)throw o.error}}return{selectionRects:y,caretPosition:h}}var Du,Mu,Nu,zu,_u,Gu,Wu,Bu={};function Uu(){if(Gu)return _u;Gu=1;var r=S(),t=ft(),n=Sr(),e=function(){if(Mu)return Du;Mu=1;var r=c(),t=m(),n=r.RegExp,e=!t(function(){var r=!0;try{n(".","d")}catch(t){r=!1}var t={},e="",i=r?"dgimsy":"gimsy",o=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},u={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in r&&(u.hasIndices="d"),u)o(f,u[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||e!==i});return Du={correct:e}}(),i=function(){if(zu)return Nu;zu=1;var r=Et();return Nu=function(){var t=r(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}(),o=RegExp.prototype;return _u=e.correct?function(r){return r.flags}:function(u){return e.correct||!n(o,u)||t(u,"flags")?u.flags:r(i,u)}}!function(){if(Wu)return Bu;Wu=1;var r=Ut().PROPER,t=Yt(),n=Et(),e=Vn(),i=m(),o=Uu(),u="toString",f=RegExp.prototype,a=f[u],c=i(function(){return"/a/b"!==a.call({source:"a",flags:"b"})}),s=r&&a.name!==u;(c||s)&&t(f,u,function(){var r=n(this);return"/"+e(r.source)+"/"+e(o(r))},{unsafe:!0})}();var qu,Ju,Vu,$u,Hu,Xu={};!function(){if(Hu)return Xu;Hu=1;var r=c(),t=Au(),n=Tu(),e=function(){if($u)return Vu;$u=1;var r=Ye().forEach,t=function(){if(Ju)return qu;Ju=1;var r=m();return qu=function(t,n){var e=[][t];return!!e&&r(function(){e.call(null,n||function(){return 1},1)})}}()("forEach");return Vu=t?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)},Vu}(),i=Pt(),o=function(r){if(r&&r.forEach!==e)try{i(r,"forEach",e)}catch(t){r.forEach=e}};for(var u in t)t[u]&&o(r[u]&&r[u].prototype);o(n)}();var Yu=function(r){var e=t.ref({}),i=function(i){var o=t.toRaw(r.value);if(o){var u=n.CursorEditor.cursorState(o,i);null!==u?e.value[i.toString()]=u:delete e.value[i.toString()]}},o=function(r){r.added.forEach(function(r){i(r)}),r.removed.forEach(function(r){i(r)}),r.updated.forEach(function(r){i(r)})};return t.watch(function(){return r.value},function(r,e){e&&n.CursorEditor.off(t.toRaw(e),"change",o),r&&n.CursorEditor.on(t.toRaw(r),"change",o)},{immediate:!0}),t.onUnmounted(function(){r.value&&n.CursorEditor.off(t.toRaw(r.value),"change",o)}),{cursors:e}},Ku=Object.freeze([]);r.getCursorRange=Iu,r.provideEditor=function(r){t.provide(Ri,{editor:r})},r.useEditorStatic=Qi,r.useRemoteCursorOverlayPositions=function(r){var n,e=r.containerRef,i=r.shouldGenerateOverlay,o=r.editorRef,u=function(r,t){var n={};for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&t.indexOf(e)<0&&(n[e]=r[e]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(e=Object.getOwnPropertySymbols(r);i<e.length;i++)t.indexOf(e[i])<0&&Object.prototype.propertyIsEnumerable.call(r,e[i])&&(n[e[i]]=r[e[i]])}return n}(r,["containerRef","shouldGenerateOverlay","editorRef"]);null==o&&(o=Qi());var f=new WeakMap,a=Yu(o).cursors,c=t.ref({}),s=function(r){var n,u,a;if(o.value){var s=null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.getBoundingClientRect(),l=null!==(u=null==s?void 0:s.x)&&void 0!==u?u:0,v=null!==(a=null==s?void 0:s.y)&&void 0!==a?a:0,p=t.toRaw(o.value),y=Object.keys(c.value).length!==Object.keys(r).length,d=Object.fromEntries(Object.entries(r).map(function(r){var t=Fu(r,2),n=t[0],e=t[1],o=e.relativeSelection&&Iu(p,e);if(!o)return[n,Ku];if(f.get(o))return[n,f.get(o)];var u=Lu(p,o,{xOffset:l,yOffset:v,shouldGenerateOverlay:i});return f.set(o,u),y=!0,[n,u]}));y&&(c.value=d)}},l=!!e&&(null===(n=u.refreshOnResize)||void 0===n||n),v=null,p=new ResizeObserver(function(){f=new WeakMap,"debounced"===l?(v&&cancelAnimationFrame(v),v=requestAnimationFrame(function(){s(a.value)})):s(a.value)});t.watchEffect(function(r){if(l&&e.value){var t=e.value;p.observe(t)}r(function(){if(v&&(cancelAnimationFrame(v),v=null),l&&e.value){var r=e.value;p.unobserve(r)}})});var y=function(){f=new WeakMap,v&&cancelAnimationFrame(v),v=requestAnimationFrame(function(){s(a.value)})};t.watch(function(){return o.value},function(r,t){t&&t.off("scroll",y),r&&r.on("scroll",y)},{immediate:!0}),t.onUnmounted(function(){o.value&&o.value.off("scroll",y)}),t.watch(function(){return[a.value,null==e?void 0:e.value,o.value]},function(){o.value&&s(a.value)},{immediate:!0,flush:"sync",deep:!0});var d=t.computed(function(){if(!o.value)return[];var r=o.value;return Object.entries(a.value).map(function(t){var n,e,i=Fu(t,2),o=i[0],u=i[1],f=u.relativeSelection?Iu(r,u):null,a=c.value[o];return Cu(Cu({},u),{range:f,caretPosition:null!==(n=null==a?void 0:a.caretPosition)&&void 0!==n?n:null,selectionRects:null!==(e=null==a?void 0:a.selectionRects)&&void 0!==e?e:Ku})})});return{cursors:d,refresh:function(){f=new WeakMap,s(a.value)}}},r.useRemoteCursorStates=Yu});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|