@wangeditor-next/yjs-for-vue 0.1.1 → 0.1.3

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/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:{},c={};function a(){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,z,_,N,G,W,B,q,U,V,$,H,X,Y,J,K,Q,Z,rr,tr,nr,er,ir,or,ur,fr,cr,ar,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(z)return M;z=1;var r=dr(),t=gr();return M=function(n){return r(t(n))}}function mr(){if(N)return _;N=1;var r="object"==typeof document&&document.all;return _=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(q)return B;q=1;var r=a(),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(V)return U;V=1;var r=pr();return U=r({}.isPrototypeOf)}function jr(){if(Y)return X;Y=1;var r,t,n=a(),e=function(){if(H)return $;H=1;var r=a().navigator,t=r&&r.userAgent;return $=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]),X=t}function Er(){if(K)return J;K=1;var r=jr(),t=m(),n=a().String;return J=!!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(ar)return cr;ar=1;var r=S(),t=mr(),n=wr(),e=TypeError;return cr=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,zr,_r,Nr,Gr,Wr,Br,qr,Ur,Vr,$r,Hr,Xr,Yr,Jr,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=a(),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=a(),n=et(),e="__core-js_shared__",i=tt.exports=t[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.46.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"}),tt.exports}function ot(){if(zr)return Mr;zr=1;var r=it();return Mr=function(t,n){return r[t]||(r[t]=n||{})}}function ut(){if(Nr)return _r;Nr=1;var r=gr(),t=Object;return _r=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 ct(){if(qr)return Br;qr=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 at(){if(Vr)return Ur;Vr=1;var r=a(),t=ot(),n=ft(),e=ct(),i=Er(),o=Rr(),u=r.Symbol,f=t("wks"),c=o?u.for||u:u&&u.withoutSetter||e;return Ur=function(r){return n(f,r)||(f[r]=i&&n(u,r)?u[r]:c("Symbol."+r)),f[r]}}function st(){if(Hr)return $r;Hr=1;var r=S(),t=wr(),n=Pr(),e=Tr(),i=Cr(),o=at(),u=TypeError,f=o("toPrimitive");return $r=function(o,c){if(!t(o)||n(o))return o;var a,s=e(o,f);if(s){if(void 0===c&&(c="default"),a=r(s,o,c),!t(a)||n(a))return a;throw new u("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(o,c)}}function lt(){if(Yr)return Xr;Yr=1;var r=st(),t=Pr();return Xr=function(n){var e=r(n,"string");return t(e)?e:e+""}}function vt(){if(Kr)return Jr;Kr=1;var r=a(),t=wr(),n=r.document,e=t(n)&&t(n.createElement);return Jr=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(),c=Object.getOwnPropertyDescriptor;return b.f=r?c:function(r,a){if(r=i(r),a=o(a),f)try{return c(r,a)}catch(r){}if(u(r,a))return e(!t(n.f,r,a),r[a])},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,c="enumerable",a="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:a in n?n[a]:o[a],enumerable:c in n?n[c]:o[c],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,zt,_t,Nt,Gt,Wt,Bt={exports:{}};function qt(){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 Ut(){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 Vt(){if(kt)return Ft;kt=1;var r=a(),t=mr(),n=r.WeakMap;return Ft=t(n)&&/native code/.test(String(n))}function $t(){if(Lt)return It;Lt=1;var r=ot(),t=ct(),n=r("keys");return It=function(r){return n[r]||(n[r]=t(r))}}function Ht(){return Mt?Dt:(Mt=1,Dt={})}function Xt(){if(_t)return zt;_t=1;var r,t,n,e=Vt(),i=a(),o=wr(),u=Pt(),f=ft(),c=it(),s=$t(),l=Ht(),v="Object already initialized",p=i.TypeError,y=i.WeakMap;if(e||c.state){var d=c.state||(c.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 zt={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 Yt(){if(Nt)return Bt.exports;Nt=1;var r=pr(),t=m(),n=mr(),e=ft(),i=w(),o=qt().CONFIGURABLE,u=Ut(),f=Xt(),c=f.enforce,a=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=c(r);return e(u,"source")||(u.source=y(h,"string"==typeof t?t:"")),r};return Function.prototype.toString=g(function(){return n(this)&&a(this).source||u(this)},"toString"),Bt.exports}function Jt(){if(Wt)return Gt;Wt=1;var r=mr(),t=Rt(),n=Yt(),e=et();return Gt=function(i,o,u,f){f||(f={});var c=f.enumerable,a=void 0!==f.name?f.name:o;if(r(u)&&n(u,a,f),f.global)c?i[o]=u:e(o,u);else{try{f.unsafe?i[o]&&(c=!0):delete i[o]}catch(r){}c?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,cn,an,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(an)return cn;an=1;var r=br(),t=gn(),n=mn(),e=function(e){return function(i,o,u){var f=r(i),c=n(f);if(0===c)return!e&&-1;var a,s=t(u,c);if(e&&o!=o){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===o)return e||s||0;return!e&&-1}};return cn={includes:e(!0),indexOf:e(!1)}}().indexOf,i=Ht(),o=r([].push);return sn=function(r,u){var f,c=n(r),a=0,s=[];for(f in c)!t(i,f)&&t(c,f)&&o(s,f);for(;u.length>a;)t(c,f=u[a++])&&(~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,zn,_n={};function Nn(){return jn||(jn=1,_n.f=Object.getOwnPropertySymbols),_n}function Gn(){if(Rn)return En;Rn=1;var r=Or(),t=pr(),n=Sn(),e=Nn(),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),c=e.f,a=n.f,s=0;s<f.length;s++){var l=f[s];r(i,l)||u&&r(u,l)||c(i,l,a(o,l))}}}function Bn(){if(Tn)return An;Tn=1;var r=m(),t=mr(),n=/#|\.prototype\./,e=function(n,e){var c=o[i(n)];return c===f||c!==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 qn(){if(Fn)return Cn;Fn=1;var r=a(),t=yt().f,n=Pt(),e=Jt(),i=et(),o=Wn(),u=Bn();return Cn=function(f,c){var a,s,l,v,p,y=f.target,d=f.global,h=f.stat;if(a=d?r:h?r[y]||i(y,{}):r[y]&&r[y].prototype)for(s in c){if(v=c[s],l=f.dontCallGetSet?(p=t(a,s))&&p.value:a[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(a,s,v,f)}}}function Un(){if(In)return kn;In=1;var r={};return r[at()("toStringTag")]="z",kn="[object z]"===String(r)}function Vn(){if(Dn)return Ln;Dn=1;var r=Un(),t=mr(),n=yr(),e=at()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Ln=r?n:function(r){var u,f,c;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"===(c=n(u))&&t(u.callee)?"Arguments":c}}function $n(){if(zn)return Mn;zn=1;var r=Vn(),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 Hn,Xn,Yn,Jn,Kn,Qn,Zn,re={};function te(){if(Xn)return Hn;Xn=1;var r=wn(),t=On();return Hn=Object.keys||function(n){return r(n,t)}}function ne(){if(Yn)return re;Yn=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),c=o(t),a=c.length,s=0;a>s;)n.f(r,u=c[s++],f[u]);return r},re}function ee(){if(Kn)return Jn;Kn=1;var r=Or();return Jn=r("document","documentElement")}function ie(){if(Zn)return Qn;Zn=1;var r,t=Et(),n=ne(),e=On(),i=Ht(),o=ee(),u=vt(),f=$t(),c="prototype",a="script",s=f("IE_PROTO"),l=function(){},v=function(r){return"<"+a+">"+r+"</"+a+">"},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"+a+":",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[c][e[f]];return y()};return i[s]=!0,Qn=Object.create||function(r,e){var i;return null!==r?(l[c]=t(r),i=new l,l[c]=null,i[s]=r):i=y(),void 0===e?i:n.f(i,e)}}var oe,ue,fe,ce,ae,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(ae)return ce;ae=1;var r=Yt(),t=Rt();return ce=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,ze,_e={};function Ne(){if(ye)return _e;ye=1;var r=at();return _e.f=r,_e}function Ge(){if(he)return de;he=1;var r=a();return de=r}function We(){if(Se)return Oe;Se=1;var r=Rt().f,t=ft(),n=at()("toStringTag");return Oe=function(e,i,o){e&&!o&&(e=e.prototype),e&&!t(e,n)&&r(e,n,{configurable:!0,value:i})}}function Be(){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 qe(){if(Ae)return xe;Ae=1;var r=yr();return xe=Array.isArray||function(t){return"Array"===r(t)}}function Ue(){if(Ce)return Te;Ce=1;var r=pr(),t=m(),n=mr(),e=Vn(),i=Or(),o=Ut(),u=function(){},f=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=r(c.exec),s=!c.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||!!a(c,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 Ve(){if(ke)return Fe;ke=1;var r=qe(),t=Ue(),n=wr(),e=at()("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 $e(){if(Le)return Ie;Le=1;var r=Ve();return Ie=function(t,n){return new(r(t))(0===n?0:n)}}function He(){if(Me)return De;Me=1;var r=Be(),t=pr(),n=dr(),e=ut(),i=mn(),o=$e(),u=t([].push),f=function(t){var f=1===t,c=2===t,a=3===t,s=4===t,l=6===t,v=7===t,p=5===t||l;return function(y,d,h,g){for(var b,m,w=e(y),O=n(w),S=i(O),j=r(d,h),E=0,R=g||o,P=f?R(y,S):c||v?R(y,0):void 0;S>E;E++)if((p||E in O)&&(m=j(b=O[E],E,w),t))if(f)P[E]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return E;case 2:u(P,b)}else switch(t){case 4:return!1;case 7:u(P,b)}return l?-1:a||s?s:P}};return De={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}}function Xe(){if(ze)return c;ze=1;var r=qn(),t=a(),n=S(),e=pr(),i=nt(),o=w(),u=Er(),f=m(),s=ft(),l=Sr(),v=Et(),p=br(),y=lt(),d=$n(),h=vr(),g=ie(),b=te(),O=Sn(),j=ve(),E=Nn(),R=yt(),P=Rt(),x=ne(),A=lr(),T=Jt(),C=pe(),F=ot(),k=$t(),I=Ht(),L=ct(),D=at(),M=Ne(),z=function(){if(be)return ge;be=1;var r=Ge(),t=ft(),n=Ne(),e=Rt().f;return ge=function(i){var o=r.Symbol||(r.Symbol={});t(o,i)||e(o,i,{value:n.f(i)})}}(),_=function(){if(we)return me;we=1;var r=S(),t=Or(),n=at(),e=Jt();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})}}(),N=We(),G=Xt(),W=He().forEach,B=k("hidden"),q="Symbol",U="prototype",V=G.set,$=G.getterFor(q),H=Object[U],X=t.Symbol,Y=X&&X[U],J=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[U]||!Q[U].findChild,cr=function(r,t,n){var e=Z(H,t);e&&delete H[t],rr(r,t,n),e&&r!==H&&rr(H,t,e)},ar=o&&f(function(){return 7!==g(rr({},"a",{get:function(){return rr(this,"a",{value:7}).a}})).a})?cr:rr,sr=function(r,t){var n=ir[r]=g(Y);return V(n,{type:q,tag:r,description:t}),o||(n.description=t),n},yr=function(r,t,n){r===H&&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),ar(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===H&&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!==H||!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===H,n=tr(t?or:p(r)),e=[];return W(n,function(r){!s(ir,r)||t&&!s(H,r)||er(e,ir[r])}),e};return u||(X=function(){if(l(Y,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===H&&n(i,or,r),s(o,B)&&s(o[B],e)&&(o[B][e]=!1);var u=h(1,r);try{ar(o,e,u)}catch(r){if(!(r instanceof J))throw r;cr(o,e,u)}};return o&&fr&&ar(H,e,{configurable:!0,set:i}),sr(e,r)},T(Y=X[U],"toString",function(){return $(this).tag}),T(X,"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(Y,"description",{configurable:!0,get:function(){return $(this).description}}),i||T(H,"propertyIsEnumerable",hr,{unsafe:!0}))),r({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:X}),W(b(ur),function(r){z(r)}),r({target:q,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}),_(),N(X,q),I[B]=!0,c}var Ye,Je,Ke,Qe={};function Ze(){if(Je)return Ye;Je=1;var r=Er();return Ye=r&&!!Symbol.for&&!!Symbol.keyFor}var ri,ti={};var ni,ei,ii,oi,ui,fi={};function ci(){if(ui)return fi;ui=1;var r=qn(),t=Or(),n=function(){if(ei)return ni;ei=1;var r=O(),t=Function.prototype,n=t.apply,e=t.call;return ni="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),ni}(),e=S(),i=pr(),o=m(),u=mr(),f=Pr(),c=le(),a=function(){if(oi)return ii;oi=1;var r=pr(),t=qe(),n=mr(),e=yr(),i=$n(),o=r([].push);return ii=function(r){if(n(r))return r;if(t(r)){for(var u=r.length,f=[],c=0;c<u;c++){var a=r[c];"string"==typeof a?o(f,a):"number"!=typeof a&&"Number"!==e(a)&&"String"!==e(a)||o(f,i(a))}var s=f.length,l=!0;return function(r,n){if(l)return l=!1,n;if(t(this))return n;for(var e=0;e<s;e++)if(f[e]===r)return n}}}}(),s=Er(),l=String,v=t("JSON","stringify"),p=i(/./.exec),y=i("".charAt),d=i("".charCodeAt),h=i("".replace),g=i(1.1.toString),b=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,E=!s||o(function(){var r=t("Symbol")("stringify detection");return"[null]"!==v([r])||"{}"!==v({a:r})||"{}"!==v(Object(r))}),R=o(function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")}),P=function(r,t){var i=c(arguments),o=a(t);if(u(o)||void 0!==r&&!f(r))return i[1]=function(r,t){if(u(o)&&(t=e(o,this,l(r),t)),!f(t))return t},n(v,null,i)},x=function(r,t,n){var e=y(n,t-1),i=y(n,t+1);return p(w,r)&&!p(j,i)||p(j,r)&&!p(w,e)?"\\u"+g(d(r,0),16):r};return v&&r({target:"JSON",stat:!0,arity:3,forced:E||R},{stringify:function(r,t,e){var i=c(arguments),o=n(E?P:v,null,i);return R&&"string"==typeof o?h(o,b,x):o}}),fi}var ai,si,li={};si||(si=1,Xe(),function(){if(Ke)return Qe;Ke=1;var r=qn(),t=Or(),n=ft(),e=$n(),i=ot(),o=Ze(),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(ri)return ti;ri=1;var r=qn(),t=ft(),n=Pr(),e=xr(),i=ot(),o=Ze(),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]}})}(),ci(),function(){if(ai)return li;ai=1;var r=qn(),t=Er(),n=m(),e=Nn(),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 vi,pi={};!function(){if(vi)return pi;vi=1;var r=qn(),t=w(),n=a(),e=pr(),i=ft(),o=mr(),u=Sr(),f=$n(),c=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);c(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 yi,di,hi,gi={};!function(){if(hi)return gi;hi=1;var r=Un(),t=Jt(),n=function(){if(di)return yi;di=1;var r=Un(),t=Vn();return yi=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var bi=Symbol("editorContext");var mi,wi,Oi,Si,ji,Ei,Ri,Pi,xi,Ai,Ti,Ci,Fi,ki,Ii,Li,Di,Mi,zi,_i,Ni,Gi,Wi,Bi,qi,Ui,Vi=function(){var r=t.inject(bi);if(!r)throw new Error("[useEditorStatic] editor context not provided.Call provideEditor() in a parent component before using useEditorStatic().");return r.editor};function $i(){if(wi)return mi;wi=1;var r=at(),t=ie(),n=Rt().f,e=r("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:t(null)}),mi=function(r){i[e][r]=!0}}function Hi(){return Si?Oi:(Si=1,Oi={})}function Xi(){if(Pi)return Ri;Pi=1;var r=ft(),t=mr(),n=ut(),e=$t(),i=function(){if(Ei)return ji;Ei=1;var r=m();return ji=!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 Ri=i?u.getPrototypeOf:function(e){var i=n(e);if(r(i,o))return i[o];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof u?f:null}}function Yi(){if(Ai)return xi;Ai=1;var r,t,n,e=m(),i=mr(),o=wr(),u=ie(),f=Xi(),c=Jt(),a=at(),s=nt(),l=a("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])||c(r,l,function(){return this}),xi={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function Ji(){if(Li)return Ii;Li=1;var r=wr();return Ii=function(t){return r(t)||null===t}}function Ki(){if(Mi)return Di;Mi=1;var r=Ji(),t=String,n=TypeError;return Di=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function Qi(){if(_i)return zi;_i=1;var r=function(){if(ki)return Fi;ki=1;var r=pr(),t=Ar();return Fi=function(n,e,i){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[i]))}catch(r){}}}(),t=wr(),n=gr(),e=Ki();return zi=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 Zi(){if(Gi)return Ni;Gi=1;var r=qn(),t=S(),n=nt(),e=qt(),i=mr(),o=function(){if(Ci)return Ti;Ci=1;var r=Yi().IteratorPrototype,t=ie(),n=vr(),e=We(),i=Hi(),o=function(){return this};return Ti=function(u,f,c,a){var s=f+" Iterator";return u.prototype=t(r,{next:n(+!a,c)}),e(u,s,!1,!0),i[s]=o,u}}(),u=Xi(),f=Qi(),c=We(),a=Pt(),s=Jt(),l=at(),v=Hi(),p=Yi(),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 Ni=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)),c(x,F,!0,!0),n&&(v[F]=j)),y&&E===w&&L&&L.name!==w&&(!n&&d?a(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 ro(){return Bi?Wi:(Bi=1,Wi=function(r,t){return{value:r,done:t}})}function to(){if(Ui)return qi;Ui=1;var r=br(),t=$i(),n=Hi(),e=Xt(),i=Rt().f,o=Zi(),u=ro(),f=nt(),c=w(),a="Array Iterator",s=e.set,l=e.getterFor(a);qi=o(Array,"Array",function(t,n){s(this,{type:a,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&&c&&"values"!==v.name)try{i(v,"name",{value:"values"})}catch(r){}return qi}to();var no,eo,io,oo={};function uo(){if(eo)return no;eo=1;var r=m(),t=at(),n=jr(),e=t("species");return no=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(io)return oo;io=1;var r=qn(),t=He().map;r({target:"Array",proto:!0,forced:!uo()("map")},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var fo,co,ao,so={};!function(){if(ao)return so;ao=1;var r=qn(),t=function(){if(co)return fo;co=1;var r=w(),t=m(),n=pr(),e=Xi(),i=te(),o=br(),u=n(lr().f),f=n([].push),c=r&&t(function(){var r=Object.create(null);return r[2]=2,!u(r,2)}),a=function(t){return function(n){for(var a,s=o(n),l=i(s),v=c&&null===e(s),p=l.length,y=0,d=[];p>y;)a=l[y++],r&&!(v?a in s:u(s,a))||f(d,t?[a,s[a]]:s[a]);return d}};return fo={entries:a(!0),values:a(!1)}}().entries;r({target:"Object",stat:!0},{entries:function(r){return t(r)}})}();var lo,vo,po={};function yo(){if(vo)return lo;vo=1;var r=m();return lo=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}var ho,go,bo,mo,wo,Oo,So={exports:{}};function jo(){if(mo)return bo;mo=1;var r=m(),t=wr(),n=yr(),e=function(){if(go)return ho;go=1;var r=m();return ho=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 bo=o||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!i||i(r)))}:i}function Eo(){if(wo)return So.exports;wo=1;var r=qn(),t=pr(),n=Ht(),e=wr(),i=ft(),o=Rt().f,u=Sn(),f=ve(),c=jo(),a=ct(),s=yo(),l=!1,v=a("meta"),p=0,y=function(r){o(r,v,{value:{objectID:"O"+p++,weakData:{}}})},d=So.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(!c(r))return"F";if(!t)return"E";y(r)}return r[v].objectID},getWeakData:function(r,t){if(!i(r,v)){if(!c(r))return!0;if(!t)return!1;y(r)}return r[v].weakData},onFreeze:function(r){return s&&l&&c(r)&&!i(r,v)&&y(r),r}};return n[v]=!0,So.exports}!function(){if(Oo)return po;Oo=1;var r=qn(),t=yo(),n=m(),e=wr(),i=Eo().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 Ro,Po,xo,Ao,To,Co,Fo,ko,Io,Lo,Do,Mo,zo,_o={};function No(){if(Po)return Ro;Po=1;var r=at(),t=Hi(),n=r("iterator"),e=Array.prototype;return Ro=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function Go(){if(Ao)return xo;Ao=1;var r=Vn(),t=Tr(),n=hr(),e=Hi(),i=at()("iterator");return xo=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||e[r(o)]}}function Wo(){if(Co)return To;Co=1;var r=S(),t=Ar(),n=Et(),e=xr(),i=Go(),o=TypeError;return To=function(u,f){var c=arguments.length<2?i(u):f;if(t(c))return n(r(c,u));throw new o(e(u)+" is not iterable")},To}function Bo(){if(ko)return Fo;ko=1;var r=S(),t=Et(),n=Tr();return Fo=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 qo(){if(Lo)return Io;Lo=1;var r=Be(),t=S(),n=Et(),e=xr(),i=No(),o=mn(),u=Sr(),f=Wo(),c=Go(),a=Bo(),s=TypeError,l=function(r,t){this.stopped=r,this.result=t},v=l.prototype;return Io=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&&a(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=c(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){a(h,"throw",r)}if("object"==typeof w&&w&&u(v,w))return w}return new l(!1)}}function Uo(){if(Mo)return Do;Mo=1;var r=w(),t=Rt(),n=vr();return Do=function(e,i,o){r?t.f(e,i,n(0,o)):e[i]=o}}!function(){if(zo)return _o;zo=1;var r=qn(),t=qo(),n=Uo();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 Vo,$o={};!function(){if(Vo)return $o;Vo=1;var r=qn(),t=ut(),n=te();r({target:"Object",stat:!0,forced:m()(function(){n(1)})},{keys:function(r){return n(t(r))}})}();var Ho,Xo,Yo,Jo={};!function(){if(Yo)return Jo;Yo=1;var r=function(){if(Xo)return Ho;Xo=1;var r=pr(),t=hn(),n=$n(),e=gr(),i=r("".charAt),o=r("".charCodeAt),u=r("".slice),f=function(r){return function(f,c){var a,s,l=n(e(f)),v=t(c),p=l.length;return v<0||v>=p?r?"":void 0:(a=o(l,v))<55296||a>56319||v+1===p||(s=o(l,v+1))<56320||s>57343?r?i(l,v):a:r?u(l,v,v+2):s-56320+(a-55296<<10)+65536}};return Ho={codeAt:f(!1),charAt:f(!0)}}().charAt,t=$n(),n=Xt(),e=Zi(),i=ro(),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 Ko,Qo,Zo,ru,tu,nu,eu,iu,ou,uu,fu,cu,au,su,lu={};function vu(){if(Qo)return Ko;Qo=1;var r=Jt();return Ko=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}}function pu(){if(ru)return Zo;ru=1;var r=Sr(),t=TypeError;return Zo=function(n,e){if(r(e,n))return n;throw new t("Incorrect invocation")}}function yu(){if(nu)return tu;nu=1;var r=at()("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 tu=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 du(){if(iu)return eu;iu=1;var r=mr(),t=wr(),n=Qi();return eu=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 hu(){if(uu)return ou;uu=1;var r=qn(),t=a(),n=pr(),e=Bn(),i=Jt(),o=Eo(),u=qo(),f=pu(),c=mr(),s=hr(),l=wr(),v=m(),p=yu(),y=We(),d=du();return ou=function(a,h,g){var b=-1!==a.indexOf("Map"),m=-1!==a.indexOf("Weak"),w=b?"set":"add",O=t[a],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(a,!c(O)||!(m||S.forEach&&!v(function(){(new O).entries().next()}))))j=g.getConstructor(h,a,b,w),o.enable();else if(e(a,!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[a]=j,r({global:!0,constructor:!0,forced:j!==O},E),y(j,a),m||g.setStrong(j,a,b),j}}function gu(){if(cu)return fu;cu=1;var r=pr(),t=vu(),n=Eo().getWeakData,e=pu(),i=Et(),o=hr(),u=wr(),f=qo(),c=He(),a=ft(),s=Xt(),l=s.set,v=s.getterFor,p=c.find,y=c.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}},fu={getConstructor:function(r,c,s,p){var y=r(function(r,t){e(r,d),l(r,{type:c,id:h++,frozen:null}),o(t)||f(t,r[p],{that:r,AS_ENTRIES:s})}),d=y.prototype,b=v(c),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&&a(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&&a(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}}}su||(su=1,function(){if(au)return lu;au=1;var r,t=yo(),n=a(),e=pr(),i=vu(),o=Eo(),u=hu(),f=gu(),c=wr(),s=Xt().enforce,l=m(),v=Vt(),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(c(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(c(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(c(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(c(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 bu,mu,wu,Ou,Su,ju={};function Eu(){return mu?bu:(mu=1,bu={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 Ru(){if(Ou)return wu;Ou=1;var r=vt()("span").classList,t=r&&r.constructor&&r.constructor.prototype;return wu=t===Object.prototype?void 0:t}!function(){if(Su)return ju;Su=1;var r=a(),t=Eu(),n=Ru(),e=to(),i=Pt(),o=We(),u=at()("iterator"),f=e.values,c=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 c in e)if(r[c]!==e[c])try{i(r,c,e[c])}catch(t){r[c]=e[c]}}};for(var s in t)c(r[s]&&r[s].prototype,s);c(n,"DOMTokenList")}();var Pu=function(){return Pu=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},Pu.apply(this,arguments)};function xu(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 Au=new WeakMap;function Tu(r,t){if(!t.relativeSelection)return null;var e=Au.get(r.children);e||(e=new WeakMap,Au.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 Cu(r,t,n){var o,u,f=n.yOffset,c=n.xOffset,a=n.shouldGenerateOverlay,s=xu(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)&&(!a||a(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=xu(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-c;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 Fu,ku,Iu,Lu,Du,Mu,zu,_u={};function Nu(){if(Mu)return Du;Mu=1;var r=S(),t=ft(),n=Sr(),e=function(){if(ku)return Fu;ku=1;var r=a(),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 Fu={correct:e}}(),i=function(){if(Lu)return Iu;Lu=1;var r=Et();return Iu=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 Du=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(zu)return _u;zu=1;var r=qt().PROPER,t=Jt(),n=Et(),e=$n(),i=m(),o=Nu(),u="toString",f=RegExp.prototype,c=f[u],a=i(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),s=r&&c.name!==u;(a||s)&&t(f,u,function(){var r=n(this);return"/"+e(r.source)+"/"+e(o(r))},{unsafe:!0})}();var Gu,Wu,Bu,qu,Uu,Vu={};!function(){if(Uu)return Vu;Uu=1;var r=a(),t=Eu(),n=Ru(),e=function(){if(qu)return Bu;qu=1;var r=He().forEach,t=function(){if(Wu)return Gu;Wu=1;var r=m();return Gu=function(t,n){var e=[][t];return!!e&&r(function(){e.call(null,n||function(){return 1},1)})}}()("forEach");return Bu=t?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)},Bu}(),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 $u=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}},Hu=Object.freeze([]);r.getCursorRange=Tu,r.provideEditor=function(r){t.provide(bi,{editor:r})},r.useEditorStatic=Vi,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=Vi());var f=new WeakMap,c=$u(o).cursors,a=t.ref({}),s=function(r){var n,u,c;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!==(c=null==s?void 0:s.y)&&void 0!==c?c:0,p=t.toRaw(o.value),y=Object.keys(a.value).length!==Object.keys(r).length,d=Object.fromEntries(Object.entries(r).map(function(r){var t=xu(r,2),n=t[0],e=t[1],o=e.relativeSelection&&Tu(p,e);if(!o)return[n,Hu];if(f.get(o))return[n,f.get(o)];var u=Cu(p,o,{xOffset:l,yOffset:v,shouldGenerateOverlay:i});return f.set(o,u),y=!0,[n,u]}));y&&(a.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(c.value)})):s(c.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(c.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[c.value,null==e?void 0:e.value,o.value]},function(){o.value&&s(c.value)},{immediate:!0,flush:"sync",deep:!0});var d=t.computed(function(){if(!o.value)return[];var r=o.value;return Object.entries(c.value).map(function(t){var n,e,i=xu(t,2),o=i[0],u=i[1],f=u.relativeSelection?Tu(r,u):null,c=a.value[o];return Pu(Pu({},u),{range:f,caretPosition:null!==(n=null==c?void 0:c.caretPosition)&&void 0!==n?n:null,selectionRects:null!==(e=null==c?void 0:c.selectionRects)&&void 0!==e?e:Hu})})});return{cursors:d,refresh:function(){f=new WeakMap,s(c.value)}}},r.useRemoteCursorStates=$u});
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.47.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.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={};function _e(){if(ye)return ze;ye=1;var r=ct();return ze.f=r,ze}function Ge(){if(he)return de;he=1;var r=c();return de=r}function We(){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 Be(){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 Ue(){if(Ae)return xe;Ae=1;var r=yr();return xe=Array.isArray||function(t){return"Array"===r(t)}}function qe(){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 Je(){if(ke)return Fe;ke=1;var r=Ue(),t=qe(),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 Ve(){if(Le)return Ie;Le=1;var r=Je();return Ie=function(t,n){return new(r(t))(0===n?0:n)}}function $e(){if(Me)return De;Me=1;var r=Be(),t=pr(),n=dr(),e=ut(),i=mn(),o=Ve(),u=t([].push),f=function(t){var f=1===t,a=2===t,c=3===t,s=4===t,l=6===t,v=7===t,p=5===t||l;return function(y,d,h,g){for(var b,m,w=e(y),O=n(w),S=i(O),j=r(d,h),E=0,R=g||o,P=f?R(y,S):a||v?R(y,0):void 0;S>E;E++)if((p||E in O)&&(m=j(b=O[E],E,w),t))if(f)P[E]=m;else if(m)switch(t){case 3:return!0;case 5:return b;case 6:return E;case 2:u(P,b)}else switch(t){case 4:return!1;case 7:u(P,b)}return l?-1:c||s?s:P}};return De={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}}function He(){if(Ne)return a;Ne=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=_e(),N=function(){if(be)return ge;be=1;var r=Ge(),t=ft(),n=_e(),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})}}(),_=We(),G=Ht(),W=$e().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 Xe,Ye,Ke,Qe={};function Ze(){if(Ye)return Xe;Ye=1;var r=Er();return Xe=r&&!!Symbol.for&&!!Symbol.keyFor}var ri,ti={};var ni,ei,ii,oi,ui,fi,ai,ci,si,li={};function vi(){if(si)return li;si=1;var r=Un(),t=Or(),n=function(){if(ei)return ni;ei=1;var r=O(),t=Function.prototype,n=t.apply,e=t.call;return ni="object"==typeof Reflect&&Reflect.apply||(r?e.bind(n):function(){return e.apply(n,arguments)}),ni}(),e=S(),i=pr(),o=m(),u=Ue(),f=mr(),a=function(){if(oi)return ii;oi=1;var r=wr(),t=Ht().get;return ii=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(fi)return ui;fi=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 ui=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(ci)return ai;ci=1;var r=m();return ai=!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}}),li}var pi,yi,di={};yi||(yi=1,He(),function(){if(Ke)return Qe;Ke=1;var r=Un(),t=Or(),n=ft(),e=Vn(),i=ot(),o=Ze(),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(ri)return ti;ri=1;var r=Un(),t=ft(),n=Pr(),e=xr(),i=ot(),o=Ze(),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]}})}(),vi(),function(){if(pi)return di;pi=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 hi,gi={};!function(){if(hi)return gi;hi=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 bi,mi,wi,Oi={};!function(){if(wi)return Oi;wi=1;var r=qn(),t=Yt(),n=function(){if(mi)return bi;mi=1;var r=qn(),t=Jn();return bi=r?{}.toString:function(){return"[object "+t(this)+"]"}}();r||t(Object.prototype,"toString",n,{unsafe:!0})}();var Si=Symbol("editorContext");var ji,Ei,Ri,Pi,xi,Ai,Ti,Ci,Fi,ki,Ii,Li,Di,Mi,Ni,zi,_i,Gi,Wi,Bi,Ui,qi,Ji,Vi,$i,Hi,Xi=function(){var r=t.inject(Si);if(!r)throw new Error("[useEditorStatic] editor context not provided.Call provideEditor() in a parent component before using useEditorStatic().");return r.editor};function Yi(){if(Ei)return ji;Ei=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)}),ji=function(r){i[e][r]=!0}}function Ki(){return Pi?Ri:(Pi=1,Ri={})}function Qi(){if(Ci)return Ti;Ci=1;var r=ft(),t=mr(),n=ut(),e=Vt(),i=function(){if(Ai)return xi;Ai=1;var r=m();return xi=!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 Ti=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 Zi(){if(ki)return Fi;ki=1;var r,t,n,e=m(),i=mr(),o=wr(),u=ie(),f=Qi(),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}),Fi={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:v}}function ro(){if(zi)return Ni;zi=1;var r=wr();return Ni=function(t){return r(t)||null===t}}function to(){if(Gi)return _i;Gi=1;var r=ro(),t=String,n=TypeError;return _i=function(e){if(r(e))return e;throw new n("Can't set "+t(e)+" as a prototype")}}function no(){if(Bi)return Wi;Bi=1;var r=function(){if(Mi)return Di;Mi=1;var r=pr(),t=Ar();return Di=function(n,e,i){try{return r(t(Object.getOwnPropertyDescriptor(n,e)[i]))}catch(r){}}}(),t=wr(),n=gr(),e=to();return Wi=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 eo(){if(qi)return Ui;qi=1;var r=Un(),t=S(),n=nt(),e=Ut(),i=mr(),o=function(){if(Li)return Ii;Li=1;var r=Zi().IteratorPrototype,t=ie(),n=vr(),e=We(),i=Ki(),o=function(){return this};return Ii=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=Qi(),f=no(),a=We(),c=Pt(),s=Yt(),l=ct(),v=Ki(),p=Zi(),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 Ui=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 io(){return Vi?Ji:(Vi=1,Ji=function(r,t){return{value:r,done:t}})}function oo(){if(Hi)return $i;Hi=1;var r=br(),t=Yi(),n=Ki(),e=Ht(),i=Rt().f,o=eo(),u=io(),f=nt(),a=w(),c="Array Iterator",s=e.set,l=e.getterFor(c);$i=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 $i}oo();var uo,fo,ao,co={};function so(){if(fo)return uo;fo=1;var r=m(),t=ct(),n=jr(),e=t("species");return uo=function(t){return n>=51||!r(function(){var r=[];return(r.constructor={})[e]=function(){return{foo:1}},1!==r[t](Boolean).foo})}}!function(){if(ao)return co;ao=1;var r=Un(),t=$e().map;r({target:"Array",proto:!0,forced:!so()("map")},{map:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)}})}();var lo,vo,po,yo={};!function(){if(po)return yo;po=1;var r=Un(),t=function(){if(vo)return lo;vo=1;var r=w(),t=m(),n=pr(),e=Qi(),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 lo={entries:c(!0),values:c(!1)}}().entries;r({target:"Object",stat:!0},{entries:function(r){return t(r)}})}();var ho,go,bo={};function mo(){if(go)return ho;go=1;var r=m();return ho=!r(function(){return Object.isExtensible(Object.preventExtensions({}))})}var wo,Oo,So,jo,Eo,Ro,Po={exports:{}};function xo(){if(jo)return So;jo=1;var r=m(),t=wr(),n=yr(),e=function(){if(Oo)return wo;Oo=1;var r=m();return wo=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 So=o||e?function(r){return!!t(r)&&((!e||"ArrayBuffer"!==n(r))&&(!i||i(r)))}:i}function Ao(){if(Eo)return Po.exports;Eo=1;var r=Un(),t=pr(),n=$t(),e=wr(),i=ft(),o=Rt().f,u=Sn(),f=ve(),a=xo(),c=at(),s=mo(),l=!1,v=c("meta"),p=0,y=function(r){o(r,v,{value:{objectID:"O"+p++,weakData:{}}})},d=Po.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,Po.exports}!function(){if(Ro)return bo;Ro=1;var r=Un(),t=mo(),n=m(),e=wr(),i=Ao().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 To,Co,Fo,ko,Io,Lo,Do,Mo,No,zo,_o,Go,Wo,Bo={};function Uo(){if(Co)return To;Co=1;var r=ct(),t=Ki(),n=r("iterator"),e=Array.prototype;return To=function(r){return void 0!==r&&(t.Array===r||e[n]===r)}}function qo(){if(ko)return Fo;ko=1;var r=Jn(),t=Tr(),n=hr(),e=Ki(),i=ct()("iterator");return Fo=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||e[r(o)]}}function Jo(){if(Lo)return Io;Lo=1;var r=S(),t=Ar(),n=Et(),e=xr(),i=qo(),o=TypeError;return Io=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")},Io}function Vo(){if(Mo)return Do;Mo=1;var r=S(),t=Et(),n=Tr();return Do=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 $o(){if(zo)return No;zo=1;var r=Be(),t=S(),n=Et(),e=xr(),i=Uo(),o=mn(),u=Sr(),f=Jo(),a=qo(),c=Vo(),s=TypeError,l=function(r,t){this.stopped=r,this.result=t},v=l.prototype;return No=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 Ho(){if(Go)return _o;Go=1;var r=w(),t=Rt(),n=vr();return _o=function(e,i,o){r?t.f(e,i,n(0,o)):e[i]=o}}!function(){if(Wo)return Bo;Wo=1;var r=Un(),t=$o(),n=Ho();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=eo(),i=io(),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=no();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=Ao(),u=$o(),f=gu(),a=mr(),s=hr(),l=wr(),v=m(),p=bu(),y=We(),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=Ao().getWeakData,e=gu(),i=Et(),o=hr(),u=wr(),f=$o(),a=$e(),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=mo(),n=c(),e=pr(),i=hu(),o=Ao(),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=oo(),i=Pt(),o=We(),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=$e().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(Si,{editor:r})},r.useEditorStatic=Xi,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=Xi());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