@wangeditor-next/yjs-for-react 0.1.59 → 0.1.60
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(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react"),require("@wangeditor-next/yjs"),require("@wangeditor-next/editor"),require("slate")):"function"==typeof define&&define.amd?define(["exports","react","@wangeditor-next/yjs","@wangeditor-next/editor","slate"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorYjsForReact={},t.require$$0,t.yjs,t.editor,t.slate)}(this,function(t,r,n,e,u){"use strict";var i,o,f,c,a,s,l,v,p,d,h,y,g,b,m,S,w,O,E=r.createContext(null),j=function(){var t=r.useContext(E);return t||console.warn("The `useEditorStatic` hook must be used inside the <EditorContext> component's context."),t},x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(){return o?i:(o=1,i=function(t){try{return!!t()}catch(t){return!0}})}function P(){if(c)return f;c=1;var t=R();return f=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function A(){if(s)return a;s=1;var t=P(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return a=t?e:function(t){return function(){return n.apply(t,arguments)}},a}function T(){if(v)return l;v=1;var t=A(),r=t({}.toString),n=t("".slice);return l=function(t){return n(r(t),8,-1)}}function C(){if(d)return p;d=1;var t=A(),r=R(),n=T(),e=Object,u=t("".split);return p=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?u(t,""):e(t)}:e}function k(){return y?h:(y=1,h=function(t){return null==t})}function z(){if(b)return g;b=1;var t=k(),r=TypeError;return g=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function I(){if(S)return m;S=1;var t=C(),r=z();return m=function(n){return t(r(n))}}function L(){if(O)return w;O=1;var t=function(t){return t&&t.Math===Math&&t};return w=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof x&&x)||t("object"==typeof w&&w)||function(){return this}()||Function("return this")()}var M,F,_,D,N,G,W,V,B,q,U,H,X,Y,$,K,J,Q,Z,tt,rt,nt,et,ut,it,ot,ft,ct,at,st={exports:{}};function lt(){return F?M:(F=1,M=!1)}function vt(){if(D)return _;D=1;var t=L(),r=Object.defineProperty;return _=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function pt(){if(N)return st.exports;N=1;var t=lt(),r=L(),n=vt(),e="__core-js_shared__",u=st.exports=r[e]||n(e,{});return(u.versions||(u.versions=[])).push({version:"3.46.0",mode:t?"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"}),st.exports}function dt(){if(W)return G;W=1;var t=pt();return G=function(r,n){return t[r]||(t[r]=n||{})}}function ht(){if(B)return V;B=1;var t=z(),r=Object;return V=function(n){return r(t(n))}}function yt(){if(U)return q;U=1;var t=A(),r=ht(),n=t({}.hasOwnProperty);return q=Object.hasOwn||function(t,e){return n(r(t),e)}}function gt(){if(X)return H;X=1;var t=A(),r=0,n=Math.random(),e=t(1.1.toString);return H=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function bt(){if(J)return K;J=1;var t,r,n=L(),e=function(){if($)return Y;$=1;var t=L().navigator,r=t&&t.userAgent;return Y=r?String(r):""}(),u=n.process,i=n.Deno,o=u&&u.versions||i&&i.version,f=o&&o.v8;return f&&(r=(t=f.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),K=r}function mt(){if(Z)return Q;Z=1;var t=bt(),r=R(),n=L().String;return Q=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function St(){if(rt)return tt;rt=1;var t=mt();return tt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function wt(){if(et)return nt;et=1;var t=L(),r=dt(),n=yt(),e=gt(),u=mt(),i=St(),o=t.Symbol,f=r("wks"),c=i?o.for||o:o&&o.withoutSetter||e;return nt=function(t){return n(f,t)||(f[t]=u&&n(o,t)?o[t]:c("Symbol."+t)),f[t]}}function Ot(){if(it)return ut;it=1;var t="object"==typeof document&&document.all;return ut=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function Et(){if(ft)return ot;ft=1;var t=Ot();return ot=function(r){return"object"==typeof r?null!==r:t(r)}}function jt(){if(at)return ct;at=1;var t=Et(),r=String,n=TypeError;return ct=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}var xt,Rt,Pt,At,Tt={};function Ct(){if(Rt)return xt;Rt=1;var t=R();return xt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function kt(){if(At)return Pt;At=1;var t=Ct(),r=R();return Pt=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}var zt,It,Lt,Mt,Ft,_t,Dt,Nt,Gt,Wt,Vt,Bt,qt,Ut,Ht,Xt,Yt,$t,Kt,Jt,Qt,Zt,tr,rr,nr,er,ur,ir,or,fr,cr,ar,sr,lr,vr,pr,dr,hr,yr,gr,br,mr,Sr,wr,Or,Er,jr,xr,Rr,Pr,Ar,Tr,Cr,kr,zr,Ir,Lr,Mr,Fr,_r,Dr,Nr,Gr,Wr,Vr={};function Br(){if(It)return zt;It=1;var t=L(),r=Et(),n=t.document,e=r(n)&&r(n.createElement);return zt=function(t){return e?n.createElement(t):{}}}function qr(){if(Mt)return Lt;Mt=1;var t=Ct(),r=R(),n=Br();return Lt=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ur(){if(_t)return Ft;_t=1;var t=P(),r=Function.prototype.call;return Ft=t?r.bind(r):function(){return r.apply(r,arguments)},Ft}function Hr(){if(Nt)return Dt;Nt=1;var t=L(),r=Ot();return Dt=function(n,e){return arguments.length<2?(u=t[n],r(u)?u:void 0):t[n]&&t[n][e];var u},Dt}function Xr(){if(Wt)return Gt;Wt=1;var t=A();return Gt=t({}.isPrototypeOf)}function Yr(){if(Bt)return Vt;Bt=1;var t=Hr(),r=Ot(),n=Xr(),e=St(),u=Object;return Vt=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,u(e))}}function $r(){if(Ut)return qt;Ut=1;var t=String;return qt=function(r){try{return t(r)}catch(t){return"Object"}}}function Kr(){if(Xt)return Ht;Xt=1;var t=Ot(),r=$r(),n=TypeError;return Ht=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function Jr(){if($t)return Yt;$t=1;var t=Kr(),r=k();return Yt=function(n,e){var u=n[e];return r(u)?void 0:t(u)}}function Qr(){if(Jt)return Kt;Jt=1;var t=Ur(),r=Ot(),n=Et(),e=TypeError;return Kt=function(u,i){var o,f;if("string"===i&&r(o=u.toString)&&!n(f=t(o,u)))return f;if(r(o=u.valueOf)&&!n(f=t(o,u)))return f;if("string"!==i&&r(o=u.toString)&&!n(f=t(o,u)))return f;throw new e("Can't convert object to primitive value")}}function Zr(){if(Zt)return Qt;Zt=1;var t=Ur(),r=Et(),n=Yr(),e=Jr(),u=Qr(),i=wt(),o=TypeError,f=i("toPrimitive");return Qt=function(i,c){if(!r(i)||n(i))return i;var a,s=e(i,f);if(s){if(void 0===c&&(c="default"),a=t(s,i,c),!r(a)||n(a))return a;throw new o("Can't convert object to primitive value")}return void 0===c&&(c="number"),u(i,c)}}function tn(){if(rr)return tr;rr=1;var t=Zr(),r=Yr();return tr=function(n){var e=t(n,"string");return r(e)?e:e+""}}function rn(){if(nr)return Vr;nr=1;var t=Ct(),r=qr(),n=kt(),e=jt(),u=tn(),i=TypeError,o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",s="writable";return Vr.f=t?n?function(t,r,n){if(e(t),r=u(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=f(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:a in n?n[a]:i[a],enumerable:c in n?n[c]:i[c],writable:!1})}return o(t,r,n)}:o:function(t,n,f){if(e(t),n=u(n),e(f),r)try{return o(t,n,f)}catch(t){}if("get"in f||"set"in f)throw new i("Accessors not supported");return"value"in f&&(t[n]=f.value),t},Vr}function nn(){if(or)return ir;or=1;var t=function(){if(ur)return er;ur=1;var t=Math.ceil,r=Math.floor;return er=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return ir=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function en(){if(cr)return fr;cr=1;var t=nn(),r=Math.max,n=Math.min;return fr=function(e,u){var i=t(e);return i<0?r(i+u,0):n(i,u)}}function un(){if(sr)return ar;sr=1;var t=nn(),r=Math.min;return ar=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function on(){if(vr)return lr;vr=1;var t=un();return lr=function(r){return t(r.length)}}function fn(){return yr?hr:(yr=1,hr={})}function cn(){if(br)return gr;br=1;var t=A(),r=yt(),n=I(),e=function(){if(dr)return pr;dr=1;var t=I(),r=en(),n=on(),e=function(e){return function(u,i,o){var f=t(u),c=n(f);if(0===c)return!e&&-1;var a,s=r(o,c);if(e&&i!=i){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===i)return e||s||0;return!e&&-1}};return pr={includes:e(!0),indexOf:e(!1)}}().indexOf,u=fn(),i=t([].push);return gr=function(t,o){var f,c=n(t),a=0,s=[];for(f in c)!r(u,f)&&r(c,f)&&i(s,f);for(;o.length>a;)r(c,f=o[a++])&&(~e(s,f)||i(s,f));return s}}function an(){return Sr?mr:(Sr=1,mr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function sn(){if(Or)return wr;Or=1;var t=cn(),r=an();return wr=Object.keys||function(n){return t(n,r)}}function ln(){if(xr)return jr;xr=1;var t=Hr();return jr=t("document","documentElement")}function vn(){if(Pr)return Rr;Pr=1;var t=dt(),r=gt(),n=t("keys");return Rr=function(t){return n[t]||(n[t]=r(t))}}function pn(){if(Tr)return Ar;Tr=1;var t,r=jt(),n=function(){if(Er)return Tt;Er=1;var t=Ct(),r=kt(),n=rn(),e=jt(),u=I(),i=sn();return Tt.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var o,f=u(r),c=i(r),a=c.length,s=0;a>s;)n.f(t,o=c[s++],f[o]);return t},Tt}(),e=an(),u=fn(),i=ln(),o=Br(),f=vn(),c="prototype",a="script",s=f("IE_PROTO"),l=function(){},v=function(t){return"<"+a+">"+t+"</"+a+">"},p=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,u;d="undefined"!=typeof document?document.domain&&t?p(t):(n=o("iframe"),u="java"+a+":",n.style.display="none",i.appendChild(n),n.src=String(u),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):p(t);for(var f=e.length;f--;)delete d[c][e[f]];return d()};return u[s]=!0,Ar=Object.create||function(t,e){var u;return null!==t?(l[c]=r(t),u=new l,l[c]=null,u[s]=t):u=d(),void 0===e?u:n.f(u,e)}}function dn(){if(kr)return Cr;kr=1;var t=wt(),r=pn(),n=rn().f,e=t("unscopables"),u=Array.prototype;return void 0===u[e]&&n(u,e,{configurable:!0,value:r(null)}),Cr=function(t){u[e][t]=!0}}function hn(){return Ir?zr:(Ir=1,zr={})}function yn(){if(Mr)return Lr;Mr=1;var t=L(),r=Ot(),n=t.WeakMap;return Lr=r(n)&&/native code/.test(String(n))}function gn(){return _r?Fr:(_r=1,Fr=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function bn(){if(Nr)return Dr;Nr=1;var t=Ct(),r=rn(),n=gn();return Dr=t?function(t,e,u){return r.f(t,e,n(1,u))}:function(t,r,n){return t[r]=n,t}}function mn(){if(Wr)return Gr;Wr=1;var t,r,n,e=yn(),u=L(),i=Et(),o=bn(),f=yt(),c=pt(),a=vn(),s=fn(),l="Object already initialized",v=u.TypeError,p=u.WeakMap;if(e||c.state){var d=c.state||(c.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,r){if(d.has(t))throw new v(l);return r.facade=t,d.set(t,r),r},r=function(t){return d.get(t)||{}},n=function(t){return d.has(t)}}else{var h=a("state");s[h]=!0,t=function(t,r){if(f(t,h))throw new v(l);return r.facade=t,o(t,h,r),r},r=function(t){return f(t,h)?t[h]:{}},n=function(t){return f(t,h)}}return Gr={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!i(n)||(e=r(n)).type!==t)throw new v("Incompatible receiver, "+t+" required");return e}}}}var Sn,wn,On={},En={};function jn(){if(Sn)return En;Sn=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return En.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,En}function xn(){if(wn)return On;wn=1;var t=Ct(),r=Ur(),n=jn(),e=gn(),u=I(),i=tn(),o=yt(),f=qr(),c=Object.getOwnPropertyDescriptor;return On.f=t?c:function(t,a){if(t=u(t),a=i(a),f)try{return c(t,a)}catch(t){}if(o(t,a))return e(!r(n.f,t,a),t[a])},On}var Rn,Pn,An,Tn,Cn,kn,zn,In={exports:{}};function Ln(){if(Pn)return Rn;Pn=1;var t=Ct(),r=yt(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,u=r(n,"name"),i=u&&"something"===function(){}.name,o=u&&(!t||t&&e(n,"name").configurable);return Rn={EXISTS:u,PROPER:i,CONFIGURABLE:o}}function Mn(){if(Tn)return An;Tn=1;var t=A(),r=Ot(),n=pt(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),An=n.inspectSource}function Fn(){if(Cn)return In.exports;Cn=1;var t=A(),r=R(),n=Ot(),e=yt(),u=Ct(),i=Ln().CONFIGURABLE,o=Mn(),f=mn(),c=f.enforce,a=f.get,s=String,l=Object.defineProperty,v=t("".slice),p=t("".replace),d=t([].join),h=u&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),g=In.exports=function(t,r,n){"Symbol("===v(s(r),0,7)&&(r="["+p(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(u?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?u&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var o=c(t);return e(o,"source")||(o.source=d(y,"string"==typeof r?r:"")),t};return Function.prototype.toString=g(function(){return n(this)&&a(this).source||o(this)},"toString"),In.exports}function _n(){if(zn)return kn;zn=1;var t=Ot(),r=rn(),n=Fn(),e=vt();return kn=function(u,i,o,f){f||(f={});var c=f.enumerable,a=void 0!==f.name?f.name:i;if(t(o)&&n(o,a,f),f.global)c?u[i]=o:e(i,o);else{try{f.unsafe?u[i]&&(c=!0):delete u[i]}catch(t){}c?u[i]=o:r.f(u,i,{value:o,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return u}}var Dn,Nn={};function Gn(){if(Dn)return Nn;Dn=1;var t=cn(),r=an().concat("length","prototype");return Nn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},Nn}var Wn,Vn,Bn,qn,Un,Hn,Xn,Yn,$n,Kn,Jn,Qn,Zn,te,re,ne,ee,ue,ie,oe,fe,ce,ae,se,le,ve,pe,de,he,ye,ge,be,me,Se={};function we(){if(Bn)return Vn;Bn=1;var t=Hr(),r=A(),n=Gn(),e=(Wn||(Wn=1,Se.f=Object.getOwnPropertySymbols),Se),u=jt(),i=r([].concat);return Vn=t("Reflect","ownKeys")||function(t){var r=n.f(u(t)),o=e.f;return o?i(r,o(t)):r}}function Oe(){if(Un)return qn;Un=1;var t=yt(),r=we(),n=xn(),e=rn();return qn=function(u,i,o){for(var f=r(i),c=e.f,a=n.f,s=0;s<f.length;s++){var l=f[s];t(u,l)||o&&t(o,l)||c(u,l,a(i,l))}}}function Ee(){if(Xn)return Hn;Xn=1;var t=R(),r=Ot(),n=/#|\.prototype\./,e=function(n,e){var c=i[u(n)];return c===f||c!==o&&(r(e)?t(e):!!e)},u=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},o=e.NATIVE="N",f=e.POLYFILL="P";return Hn=e}function je(){if($n)return Yn;$n=1;var t=L(),r=xn().f,n=bn(),e=_n(),u=vt(),i=Oe(),o=Ee();return Yn=function(f,c){var a,s,l,v,p,d=f.target,h=f.global,y=f.stat;if(a=h?t:y?t[d]||u(d,{}):t[d]&&t[d].prototype)for(s in c){if(v=c[s],l=f.dontCallGetSet?(p=r(a,s))&&p.value:a[s],!o(h?s:d+(y?".":"#")+s,f.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(f.sham||l&&l.sham)&&n(v,"sham",!0),e(a,s,v,f)}}}function xe(){if(Zn)return Qn;Zn=1;var t=yt(),r=Ot(),n=ht(),e=vn(),u=function(){if(Jn)return Kn;Jn=1;var t=R();return Kn=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=e("IE_PROTO"),o=Object,f=o.prototype;return Qn=u?o.getPrototypeOf:function(e){var u=n(e);if(t(u,i))return u[i];var c=u.constructor;return r(c)&&u instanceof c?c.prototype:u instanceof o?f:null}}function Re(){if(re)return te;re=1;var t,r,n,e=R(),u=Ot(),i=Et(),o=pn(),f=xe(),c=_n(),a=wt(),s=lt(),l=a("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(r=f(f(n)))!==Object.prototype&&(t=r):v=!0),!i(t)||e(function(){var r={};return t[l].call(r)!==r})?t={}:s&&(t=o(t)),u(t[l])||c(t,l,function(){return this}),te={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function Pe(){if(ee)return ne;ee=1;var t=rn().f,r=yt(),n=wt()("toStringTag");return ne=function(e,u,i){e&&!i&&(e=e.prototype),e&&!r(e,n)&&t(e,n,{configurable:!0,value:u})}}function Ae(){if(ae)return ce;ae=1;var t=Et();return ce=function(r){return t(r)||null===r}}function Te(){if(le)return se;le=1;var t=Ae(),r=String,n=TypeError;return se=function(e){if(t(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}}function Ce(){if(pe)return ve;pe=1;var t=function(){if(fe)return oe;fe=1;var t=A(),r=Kr();return oe=function(n,e,u){try{return t(r(Object.getOwnPropertyDescriptor(n,e)[u]))}catch(t){}}}(),r=Et(),n=z(),e=Te();return ve=Object.setPrototypeOf||("__proto__"in{}?function(){var u,i=!1,o={};try{(u=t(Object.prototype,"__proto__","set"))(o,[]),i=o instanceof Array}catch(t){}return function(t,o){return n(t),e(o),r(t)?(i?u(t,o):t.__proto__=o,t):t}}():void 0)}function ke(){if(he)return de;he=1;var t=je(),r=Ur(),n=lt(),e=Ln(),u=Ot(),i=function(){if(ie)return ue;ie=1;var t=Re().IteratorPrototype,r=pn(),n=gn(),e=Pe(),u=hn(),i=function(){return this};return ue=function(o,f,c,a){var s=f+" Iterator";return o.prototype=r(t,{next:n(+!a,c)}),e(o,s,!1,!0),u[s]=i,o}}(),o=xe(),f=Ce(),c=Pe(),a=bn(),s=_n(),l=wt(),v=hn(),p=Re(),d=e.PROPER,h=e.CONFIGURABLE,y=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,b=l("iterator"),m="keys",S="values",w="entries",O=function(){return this};return de=function(e,l,p,E,j,x,R){i(p,l,E);var P,A,T,C=function(t){if(t===j&&M)return M;if(!g&&t&&t in I)return I[t];switch(t){case m:case S:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=l+" Iterator",z=!1,I=e.prototype,L=I[b]||I["@@iterator"]||j&&I[j],M=!g&&L||C(j),F="Array"===l&&I.entries||L;if(F&&(P=o(F.call(new e)))!==Object.prototype&&P.next&&(n||o(P)===y||(f?f(P,y):u(P[b])||s(P,b,O)),c(P,k,!0,!0),n&&(v[k]=O)),d&&j===S&&L&&L.name!==S&&(!n&&h?a(I,"name",S):(z=!0,M=function(){return r(L,this)})),j)if(A={values:C(S),keys:x?M:C(m),entries:C(w)},R)for(T in A)(g||z||!(T in I))&&s(I,T,A[T]);else t({target:l,proto:!0,forced:g||z},A);return n&&!R||I[b]===M||s(I,b,M,{name:j}),v[l]=M,A}}function ze(){return ge?ye:(ge=1,ye=function(t,r){return{value:t,done:r}})}function Ie(){if(me)return be;me=1;var t=I(),r=dn(),n=hn(),e=mn(),u=rn().f,i=ke(),o=ze(),f=lt(),c=Ct(),a="Array Iterator",s=e.set,l=e.getterFor(a);be=i(Array,"Array",function(r,n){s(this,{type:a,target:t(r),index:0,kind:n})},function(){var t=l(this),r=t.target,n=t.index++;if(!r||n>=r.length)return t.target=null,o(void 0,!0);switch(t.kind){case"keys":return o(n,!1);case"values":return o(r[n],!1)}return o([n,r[n]],!1)},"values");var v=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!f&&c&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(t){}return be}Ie();var Le,Me,Fe,_e,De,Ne,Ge,We,Ve,Be,qe,Ue,He,Xe,Ye,$e,Ke,Je,Qe,Ze,tu,ru={};function nu(){if(_e)return Fe;_e=1;var t=function(){if(Me)return Le;Me=1;var t=T(),r=A();return Le=function(n){if("Function"===t(n))return r(n)}}(),r=Kr(),n=P(),e=t(t.bind);return Fe=function(t,u){return r(t),void 0===u?t:n?e(t,u):function(){return t.apply(u,arguments)}},Fe}function eu(){if(Ne)return De;Ne=1;var t=T();return De=Array.isArray||function(r){return"Array"===t(r)}}function uu(){if(We)return Ge;We=1;var t={};return t[wt()("toStringTag")]="z",Ge="[object z]"===String(t)}function iu(){if(Be)return Ve;Be=1;var t=uu(),r=Ot(),n=T(),e=wt()("toStringTag"),u=Object,i="Arguments"===n(function(){return arguments}());return Ve=t?n:function(t){var o,f,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(f=function(t,r){try{return t[r]}catch(t){}}(o=u(t),e))?f:i?n(o):"Object"===(c=n(o))&&r(o.callee)?"Arguments":c}}function ou(){if(Ue)return qe;Ue=1;var t=A(),r=R(),n=Ot(),e=iu(),u=Hr(),i=Mn(),o=function(){},f=u("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=t(c.exec),s=!c.test(o),l=function(t){if(!n(t))return!1;try{return f(o,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(c,i(t))}catch(t){return!0}};return v.sham=!0,qe=!f||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function fu(){if(Xe)return He;Xe=1;var t=eu(),r=ou(),n=Et(),e=wt()("species"),u=Array;return He=function(i){var o;return t(i)&&(o=i.constructor,(r(o)&&(o===u||t(o.prototype))||n(o)&&null===(o=o[e]))&&(o=void 0)),void 0===o?u:o}}function cu(){if($e)return Ye;$e=1;var t=fu();return Ye=function(r,n){return new(t(r))(0===n?0:n)}}function au(){if(Je)return Ke;Je=1;var t=nu(),r=A(),n=C(),e=ht(),u=on(),i=cu(),o=r([].push),f=function(r){var f=1===r,c=2===r,a=3===r,s=4===r,l=6===r,v=7===r,p=5===r||l;return function(d,h,y,g){for(var b,m,S=e(d),w=n(S),O=u(w),E=t(h,y),j=0,x=g||i,R=f?x(d,O):c||v?x(d,0):void 0;O>j;j++)if((p||j in w)&&(m=E(b=w[j],j,S),r))if(f)R[j]=m;else if(m)switch(r){case 3:return!0;case 5:return b;case 6:return j;case 2:o(R,b)}else switch(r){case 4:return!1;case 7:o(R,b)}return l?-1:a||s?s:R}};return Ke={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 su(){if(Ze)return Qe;Ze=1;var t=R(),r=wt(),n=bt(),e=r("species");return Qe=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(tu)return ru;tu=1;var t=je(),r=au().map;t({target:"Array",proto:!0,forced:!su()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var lu,vu,pu,du={};!function(){if(pu)return du;pu=1;var t=je(),r=function(){if(vu)return lu;vu=1;var t=Ct(),r=R(),n=A(),e=xe(),u=sn(),i=I(),o=n(jn().f),f=n([].push),c=t&&r(function(){var t=Object.create(null);return t[2]=2,!o(t,2)}),a=function(r){return function(n){for(var a,s=i(n),l=u(s),v=c&&null===e(s),p=l.length,d=0,h=[];p>d;)a=l[d++],t&&!(v?a in s:o(s,a))||f(h,r?[a,s[a]]:s[a]);return h}};return lu={entries:a(!0),values:a(!1)}}().entries;t({target:"Object",stat:!0},{entries:function(t){return r(t)}})}();var hu,yu,gu={};function bu(){if(yu)return hu;yu=1;var t=R();return hu=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}var mu,Su,wu,Ou,Eu,ju,xu,Ru,Pu,Au={exports:{}},Tu={};function Cu(){if(Su)return mu;Su=1;var t=A();return mu=t([].slice)}function ku(){if(wu)return Tu;wu=1;var t=T(),r=I(),n=Gn().f,e=Cu(),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Tu.f=function(i){return u&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return e(u)}}(i):n(r(i))},Tu}function zu(){if(xu)return ju;xu=1;var t=R(),r=Et(),n=T(),e=function(){if(Eu)return Ou;Eu=1;var t=R();return Ou=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),u=Object.isExtensible,i=t(function(){});return ju=i||e?function(t){return!!r(t)&&((!e||"ArrayBuffer"!==n(t))&&(!u||u(t)))}:u}function Iu(){if(Ru)return Au.exports;Ru=1;var t=je(),r=A(),n=fn(),e=Et(),u=yt(),i=rn().f,o=Gn(),f=ku(),c=zu(),a=gt(),s=bu(),l=!1,v=a("meta"),p=0,d=function(t){i(t,v,{value:{objectID:"O"+p++,weakData:{}}})},h=Au.exports={enable:function(){h.enable=function(){},l=!0;var n=o.f,e=r([].splice),u={};u[v]=1,n(u).length&&(o.f=function(t){for(var r=n(t),u=0,i=r.length;u<i;u++)if(r[u]===v){e(r,u,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,r){if(!e(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,v)){if(!c(t))return"F";if(!r)return"E";d(t)}return t[v].objectID},getWeakData:function(t,r){if(!u(t,v)){if(!c(t))return!0;if(!r)return!1;d(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&c(t)&&!u(t,v)&&d(t),t}};return n[v]=!0,Au.exports}!function(){if(Pu)return gu;Pu=1;var t=je(),r=bu(),n=R(),e=Et(),u=Iu().onFreeze,i=Object.freeze;t({target:"Object",stat:!0,forced:n(function(){i(1)}),sham:!r},{freeze:function(t){return i&&e(t)?i(u(t)):t}})}();var Lu,Mu,Fu,_u,Du,Nu,Gu,Wu,Vu,Bu,qu,Uu,Hu,Xu={};function Yu(){if(Mu)return Lu;Mu=1;var t=wt(),r=hn(),n=t("iterator"),e=Array.prototype;return Lu=function(t){return void 0!==t&&(r.Array===t||e[n]===t)}}function $u(){if(_u)return Fu;_u=1;var t=iu(),r=Jr(),n=k(),e=hn(),u=wt()("iterator");return Fu=function(i){if(!n(i))return r(i,u)||r(i,"@@iterator")||e[t(i)]}}function Ku(){if(Nu)return Du;Nu=1;var t=Ur(),r=Kr(),n=jt(),e=$r(),u=$u(),i=TypeError;return Du=function(o,f){var c=arguments.length<2?u(o):f;if(r(c))return n(t(c,o));throw new i(e(o)+" is not iterable")},Du}function Ju(){if(Wu)return Gu;Wu=1;var t=Ur(),r=jt(),n=Jr();return Gu=function(e,u,i){var o,f;r(e);try{if(!(o=n(e,"return"))){if("throw"===u)throw i;return i}o=t(o,e)}catch(t){f=!0,o=t}if("throw"===u)throw i;if(f)throw o;return r(o),i}}function Qu(){if(Bu)return Vu;Bu=1;var t=nu(),r=Ur(),n=jt(),e=$r(),u=Yu(),i=on(),o=Xr(),f=Ku(),c=$u(),a=Ju(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return Vu=function(p,d,h){var y,g,b,m,S,w,O,E=h&&h.that,j=!(!h||!h.AS_ENTRIES),x=!(!h||!h.IS_RECORD),R=!(!h||!h.IS_ITERATOR),P=!(!h||!h.INTERRUPTED),A=t(d,E),T=function(t){return y&&a(y,"normal"),new l(!0,t)},C=function(t){return j?(n(t),P?A(t[0],t[1],T):A(t[0],t[1])):P?A(t,T):A(t)};if(x)y=p.iterator;else if(R)y=p;else{if(!(g=c(p)))throw new s(e(p)+" is not iterable");if(u(g)){for(b=0,m=i(p);m>b;b++)if((S=C(p[b]))&&o(v,S))return S;return new l(!1)}y=f(p,g)}for(w=x?p.next:y.next;!(O=r(w,y)).done;){try{S=C(O.value)}catch(t){a(y,"throw",t)}if("object"==typeof S&&S&&o(v,S))return S}return new l(!1)}}function Zu(){if(Uu)return qu;Uu=1;var t=Ct(),r=rn(),n=gn();return qu=function(e,u,i){t?r.f(e,u,n(0,i)):e[u]=i}}!function(){if(Hu)return Xu;Hu=1;var t=je(),r=Qu(),n=Zu();t({target:"Object",stat:!0},{fromEntries:function(t){var e={};return r(t,function(t,r){n(e,t,r)},{AS_ENTRIES:!0}),e}})}();var ti,ri={};!function(){if(ti)return ri;ti=1;var t=je(),r=ht(),n=sn();t({target:"Object",stat:!0,forced:R()(function(){n(1)})},{keys:function(t){return n(r(t))}})}();var ni,ei,ui,ii={};!function(){if(ui)return ii;ui=1;var t=uu(),r=_n(),n=function(){if(ei)return ni;ei=1;var t=uu(),r=iu();return ni=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var oi,fi,ci,ai,si,li={};function vi(){if(fi)return oi;fi=1;var t=iu(),r=String;return oi=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}!function(){if(si)return li;si=1;var t=function(){if(ai)return ci;ai=1;var t=A(),r=nn(),n=vi(),e=z(),u=t("".charAt),i=t("".charCodeAt),o=t("".slice),f=function(t){return function(f,c){var a,s,l=n(e(f)),v=r(c),p=l.length;return v<0||v>=p?t?"":void 0:(a=i(l,v))<55296||a>56319||v+1===p||(s=i(l,v+1))<56320||s>57343?t?u(l,v):a:t?o(l,v,v+2):s-56320+(a-55296<<10)+65536}};return ci={codeAt:f(!1),charAt:f(!0)}}().charAt,r=vi(),n=mn(),e=ke(),u=ze(),i="String Iterator",o=n.set,f=n.getterFor(i);e(String,"String",function(t){o(this,{type:i,string:r(t),index:0})},function(){var r,n=f(this),e=n.string,i=n.index;return i>=e.length?u(void 0,!0):(r=t(e,i),n.index+=r.length,u(r,!1))})}();var pi,di,hi,yi,gi,bi,mi,Si,wi,Oi,Ei,ji,xi,Ri,Pi={};function Ai(){if(di)return pi;di=1;var t=_n();return pi=function(r,n,e){for(var u in n)t(r,u,n[u],e);return r}}function Ti(){if(yi)return hi;yi=1;var t=Xr(),r=TypeError;return hi=function(n,e){if(t(e,n))return n;throw new r("Incorrect invocation")}}function Ci(){if(bi)return gi;bi=1;var t=wt()("iterator"),r=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){r=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return gi=function(n,e){try{if(!e&&!r)return!1}catch(t){return!1}var u=!1;try{var i={};i[t]=function(){return{next:function(){return{done:u=!0}}}},n(i)}catch(t){}return u}}function ki(){if(Si)return mi;Si=1;var t=Ot(),r=Et(),n=Ce();return mi=function(e,u,i){var o,f;return n&&t(o=u.constructor)&&o!==i&&r(f=o.prototype)&&f!==i.prototype&&n(e,f),e}}function zi(){if(Oi)return wi;Oi=1;var t=je(),r=L(),n=A(),e=Ee(),u=_n(),i=Iu(),o=Qu(),f=Ti(),c=Ot(),a=k(),s=Et(),l=R(),v=Ci(),p=Pe(),d=ki();return wi=function(h,y,g){var b=-1!==h.indexOf("Map"),m=-1!==h.indexOf("Weak"),S=b?"set":"add",w=r[h],O=w&&w.prototype,E=w,j={},x=function(t){var r=n(O[t]);u(O,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(m&&!s(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return m&&!s(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(m&&!s(t))&&r(this,0===t?0:t)}:function(t,n){return r(this,0===t?0:t,n),this})};if(e(h,!c(w)||!(m||O.forEach&&!l(function(){(new w).entries().next()}))))E=g.getConstructor(y,h,b,S),i.enable();else if(e(h,!0)){var R=new E,P=R[S](m?{}:-0,1)!==R,A=l(function(){R.has(1)}),T=v(function(t){new w(t)}),C=!m&&l(function(){for(var t=new w,r=5;r--;)t[S](r,r);return!t.has(-0)});T||((E=y(function(t,r){f(t,O);var n=d(new w,t,E);return a(r)||o(r,n[S],{that:n,AS_ENTRIES:b}),n})).prototype=O,O.constructor=E),(A||C)&&(x("delete"),x("has"),b&&x("get")),(C||P)&&x(S),m&&O.clear&&delete O.clear}return j[h]=E,t({global:!0,constructor:!0,forced:E!==w},j),p(E,h),m||g.setStrong(E,h,b),E}}function Ii(){if(ji)return Ei;ji=1;var t=A(),r=Ai(),n=Iu().getWeakData,e=Ti(),u=jt(),i=k(),o=Et(),f=Qu(),c=au(),a=yt(),s=mn(),l=s.set,v=s.getterFor,p=c.find,d=c.findIndex,h=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},m=function(t,r){return p(t.entries,function(t){return t[0]===r})};return b.prototype={get:function(t){var r=m(this,t);if(r)return r[1]},has:function(t){return!!m(this,t)},set:function(t,r){var n=m(this,t);n?n[1]=r:this.entries.push([t,r])},delete:function(t){var r=d(this.entries,function(r){return r[0]===t});return~r&&h(this.entries,r,1),!!~r}},Ei={getConstructor:function(t,c,s,p){var d=t(function(t,r){e(t,h),l(t,{type:c,id:y++,frozen:null}),i(r)||f(r,t[p],{that:t,AS_ENTRIES:s})}),h=d.prototype,b=v(c),m=function(t,r,e){var i=b(t),o=n(u(r),!0);return!0===o?g(i).set(r,e):o[i.id]=e,t};return r(h,{delete:function(t){var r=b(this);if(!o(t))return!1;var e=n(t);return!0===e?g(r).delete(t):e&&a(e,r.id)&&delete e[r.id]},has:function(t){var r=b(this);if(!o(t))return!1;var e=n(t);return!0===e?g(r).has(t):e&&a(e,r.id)}}),r(h,s?{get:function(t){var r=b(this);if(o(t)){var e=n(t);if(!0===e)return g(r).get(t);if(e)return e[r.id]}},set:function(t,r){return m(this,t,r)}}:{add:function(t){return m(this,t,!0)}}),d}}}Ri||(Ri=1,function(){if(xi)return Pi;xi=1;var t,r=bu(),n=L(),e=A(),u=Ai(),i=Iu(),o=zi(),f=Ii(),c=Et(),a=mn().enforce,s=R(),l=yn(),v=Object,p=Array.isArray,d=v.isExtensible,h=v.isFrozen,y=v.isSealed,g=v.freeze,b=v.seal,m=!n.ActiveXObject&&"ActiveXObject"in n,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=o("WeakMap",S,f),O=w.prototype,E=e(O.set);if(l)if(m){t=f.getConstructor(S,"WeakMap",!0),i.enable();var j=e(O.delete),x=e(O.has),P=e(O.get);u(O,{delete:function(r){if(c(r)&&!d(r)){var n=a(this);return n.frozen||(n.frozen=new t),j(this,r)||n.frozen.delete(r)}return j(this,r)},has:function(r){if(c(r)&&!d(r)){var n=a(this);return n.frozen||(n.frozen=new t),x(this,r)||n.frozen.has(r)}return x(this,r)},get:function(r){if(c(r)&&!d(r)){var n=a(this);return n.frozen||(n.frozen=new t),x(this,r)?P(this,r):n.frozen.get(r)}return P(this,r)},set:function(r,n){if(c(r)&&!d(r)){var e=a(this);e.frozen||(e.frozen=new t),x(this,r)?E(this,r,n):e.frozen.set(r,n)}else E(this,r,n);return this}})}else r&&s(function(){var t=g([]);return E(new w,t,1),!h(t)})&&u(O,{set:function(t,r){var n;return p(t)&&(h(t)?n=g:y(t)&&(n=b)),E(this,t,r),n&&n(t),this}})}());var Li,Mi,Fi,_i,Di,Ni={};function Gi(){return Mi?Li:(Mi=1,Li={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 Wi(){if(_i)return Fi;_i=1;var t=Br()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return Fi=r===Object.prototype?void 0:r}!function(){if(Di)return Ni;Di=1;var t=L(),r=Gi(),n=Wi(),e=Ie(),u=bn(),i=Pe(),o=wt()("iterator"),f=e.values,c=function(t,n){if(t){if(t[o]!==f)try{u(t,o,f)}catch(r){t[o]=f}if(i(t,n,!0),r[n])for(var c in e)if(t[c]!==e[c])try{u(t,c,e[c])}catch(r){t[c]=e[c]}}};for(var a in r)c(t[a]&&t[a].prototype,a);c(n,"DOMTokenList")}();var Vi=function(){return Vi=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var u in r=arguments[n])Object.prototype.hasOwnProperty.call(r,u)&&(t[u]=r[u]);return t},Vi.apply(this,arguments)};function Bi(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,u,i=n.call(t),o=[];try{for(;(void 0===r||r-- >0)&&!(e=i.next()).done;)o.push(e.value)}catch(t){u={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(u)throw u.error}}return o}"function"==typeof SuppressedError&&SuppressedError;var qi=new WeakMap;function Ui(t,r){if(!r.relativeSelection)return null;var e=qi.get(t.children);e||(e=new WeakMap,qi.set(t.children,e));var u=e.get(r);if(void 0===u)try{u=n.relativeRangeToSlateRange(t.sharedRoot,t,r.relativeSelection),e.set(r,u)}catch(t){return null}return u}function Hi(t,r,n){var i,o,f=n.yOffset,c=n.xOffset,a=n.shouldGenerateOverlay,s=Bi(u.Range.edges(r),2),l=s[0],v=s[1],p=function(t,r){try{return e.DomEditor.toDOMRange(t,r)}catch(t){return null}}(t,r);if(!p)return{caretPosition:null,selectionRects:[]};var d=[],h=u.Editor.nodes(t,{at:r,match:function(t,r){return u.Text.isText(t)&&(!a||a(t,r))}}),y=null,g=u.Range.isBackward(r);try{for(var b=function(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),m=b.next();!m.done;m=b.next()){var S=Bi(m.value,2),w=S[0],O=S[1],E=e.DomEditor.toDOMNode(t,w),j=u.Path.equals(O,l.path),x=u.Path.equals(O,v.path),R=null;if(j||x){var P=document.createRange();P.selectNode(E),j&&P.setStart(p.startContainer,p.startOffset),x&&P.setEnd(p.endContainer,p.endOffset),R=P.getClientRects()}else R=E.getClientRects();for(var A=g?j:x,T=0;T<R.length;T+=1){var C=R.item(T);if(C){var k=A&&(g?0===T:T===R.length-1),z=C.top-f,I=C.left-c;k&&(y={height:C.height,top:z,left:I+(g||u.Range.isCollapsed(r)?0:C.width)}),d.push({width:C.width,height:C.height,top:z,left:I})}}}}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}return{selectionRects:d,caretPosition:y}}function Xi(){var t=j();return n.CursorEditor.isCursorEditor(t)||console.warn("Cannot use useSyncExternalStore outside the context of a RemoteCursorEditor"),t}var Yi,$i,Ki={exports:{}},Ji={};function Qi(){return $i||($i=1,Ki.exports=function(){if(Yi)return Ji;Yi=1;var t=r,n="function"==typeof Object.is?Object.is:function(t,r){return t===r&&(0!==t||1/t==1/r)||t!=t&&r!=r},e=t.useState,u=t.useEffect,i=t.useLayoutEffect,o=t.useDebugValue;function f(t){var r=t.getSnapshot;t=t.value;try{var e=r();return!n(t,e)}catch(t){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,r){return r()}:function(t,r){var n=r(),c=e({inst:{value:n,getSnapshot:r}}),a=c[0].inst,s=c[1];return i(function(){a.value=n,a.getSnapshot=r,f(a)&&s({inst:a})},[t,n,r]),u(function(){return f(a)&&s({inst:a}),t(function(){f(a)&&s({inst:a})})},[t]),o(n),n};return Ji.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:c,Ji}()),Ki.exports}var Zi,to,ro=Qi(),no={exports:{}},eo={};var uo,io,oo,fo,co,ao,so,lo=(to||(to=1,no.exports=function(){if(Zi)return eo;Zi=1;var t=r,n=Qi(),e="function"==typeof Object.is?Object.is:function(t,r){return t===r&&(0!==t||1/t==1/r)||t!=t&&r!=r},u=n.useSyncExternalStore,i=t.useRef,o=t.useEffect,f=t.useMemo,c=t.useDebugValue;return eo.useSyncExternalStoreWithSelector=function(t,r,n,a,s){var l=i(null);if(null===l.current){var v={hasValue:!1,value:null};l.current=v}else v=l.current;l=f(function(){function t(t){if(!o){if(o=!0,u=t,t=a(t),void 0!==s&&v.hasValue){var r=v.value;if(s(r,t))return i=r}return i=t}if(r=i,e(u,t))return r;var n=a(t);return void 0!==s&&s(r,n)?(u=t,r):(u=t,i=n)}var u,i,o=!1,f=void 0===n?null:n;return[function(){return t(r())},null===f?void 0:function(){return t(f())}]},[r,n,a,s]);var p=u(t,l[0],l[1]);return o(function(){v.hasValue=!0,v.value=p},[p]),c(p),p},eo}()),no.exports),vo={};function po(){if(ao)return co;ao=1;var t=Ur(),r=yt(),n=Xr(),e=function(){if(io)return uo;io=1;var t=L(),r=R(),n=t.RegExp,e=!r(function(){var t=!0;try{n(".","d")}catch(r){t=!1}var r={},e="",u=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(r,t,{get:function(){return e+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in t&&(o.hasIndices="d"),o)i(f,o[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(r)!==u||e!==u});return uo={correct:e}}(),u=function(){if(fo)return oo;fo=1;var t=jt();return oo=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}(),i=RegExp.prototype;return co=e.correct?function(t){return t.flags}:function(o){return e.correct||!n(i,o)||r(o,"flags")?o.flags:t(u,o)}}!function(){if(so)return vo;so=1;var t=Ln().PROPER,r=_n(),n=jt(),e=vi(),u=R(),i=po(),o="toString",f=RegExp.prototype,c=f[o],a=u(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),s=t&&c.name!==o;(a||s)&&r(f,o,function(){var t=n(this);return"/"+e(t.source)+"/"+e(i(t))},{unsafe:!0})}();var ho,yo,go,bo,mo,So,wo,Oo;function Eo(){if(yo)return ho;yo=1;var t=Fn(),r=rn();return ho=function(n,e,u){return u.get&&t(u.get,e,{getter:!0}),u.set&&t(u.set,e,{setter:!0}),r.f(n,e,u)}}function jo(){if(bo)return go;bo=1;var t=Hr(),r=Eo(),n=wt(),e=Ct(),u=n("species");return go=function(n){var i=t(n);e&&i&&!i[u]&&r(i,u,{configurable:!0,get:function(){return this}})}}Oo||(Oo=1,wo||(wo=1,zi()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},function(){if(So)return mo;So=1;var t=pn(),r=Eo(),n=Ai(),e=nu(),u=Ti(),i=k(),o=Qu(),f=ke(),c=ze(),a=jo(),s=Ct(),l=Iu().fastKey,v=mn(),p=v.set,d=v.getterFor;return mo={getConstructor:function(f,c,a,v){var h=f(function(r,n){u(r,y),p(r,{type:c,index:t(null),first:null,last:null,size:0}),s||(r.size=0),i(n)||o(n,r[v],{that:r,AS_ENTRIES:a})}),y=h.prototype,g=d(c),b=function(t,r,n){var e,u,i=g(t),o=m(t,r);return o?o.value=n:(i.last=o={index:u=l(r,!0),key:r,value:n,previous:e=i.last,next:null,removed:!1},i.first||(i.first=o),e&&(e.next=o),s?i.size++:t.size++,"F"!==u&&(i.index[u]=o)),t},m=function(t,r){var n,e=g(t),u=l(r);if("F"!==u)return e.index[u];for(n=e.first;n;n=n.next)if(n.key===r)return n};return n(y,{clear:function(){for(var r=g(this),n=r.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;r.first=r.last=null,r.index=t(null),s?r.size=0:this.size=0},delete:function(t){var r=this,n=g(r),e=m(r,t);if(e){var u=e.next,i=e.previous;delete n.index[e.index],e.removed=!0,i&&(i.next=u),u&&(u.previous=i),n.first===e&&(n.first=u),n.last===e&&(n.last=i),s?n.size--:r.size--}return!!e},forEach:function(t){for(var r,n=g(this),u=e(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:n.first;)for(u(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!m(this,t)}}),n(y,a?{get:function(t){var r=m(this,t);return r&&r.value},set:function(t,r){return b(this,0===t?0:t,r)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),s&&r(y,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(t,r,n){var e=r+" Iterator",u=d(r),i=d(e);f(t,r,function(t,r){p(this,{type:e,target:t,state:u(t),kind:r,last:null})},function(){for(var t=i(this),r=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?c("keys"===r?n.key:"values"===r?n.value:[n.key,n.value],!1):(t.target=null,c(void 0,!0))},n?"entries":"values",!n,!0),a(r)}},mo}())));var xo,Ro,Po,Ao,To,Co={};!function(){if(To)return Co;To=1;var t=L(),r=Gi(),n=Wi(),e=function(){if(Ao)return Po;Ao=1;var t=au().forEach,r=function(){if(Ro)return xo;Ro=1;var t=R();return xo=function(r,n){var e=[][r];return!!e&&t(function(){e.call(null,n||function(){return 1},1)})}}()("forEach");return Po=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},Po}(),u=bn(),i=function(t){if(t&&t.forEach!==e)try{u(t,"forEach",e)}catch(r){t.forEach=e}};for(var o in r)r[o]&&i(t[o]&&t[o].prototype);i(n)}();var ko=new WeakMap;function zo(t){var r=ko.get(t);if(r)return r;var e=function(t){var r={},e=new Set,u=e.add.bind(e),i=new Set,o=null;return[function(r){return i.add(r),o||(o=function(t){t.added.forEach(u),t.removed.forEach(u),t.updated.forEach(u),i.forEach(function(t){return t()})},n.CursorEditor.on(t,"change",o)),function(){i.delete(r),o&&0===i.size&&(n.CursorEditor.off(t,"change",o),o=null)}},function(){return 0===e.size?r:(e.forEach(function(e){var u=n.CursorEditor.cursorState(t,e);null!==u?r[e]=u:delete r[e.toString()]}),e.clear(),r=Vi({},r))}]}(t);return t&&ko.set(t,e),e}function Io(){return zo(Xi())}function Lo(){var t=Bi(Io(),2),r=t[0],n=t[1];return ro.useSyncExternalStore(r,n)}var Mo=Object.freeze([]);t.EditorContext=E,t.getCursorRange=Ui,t.useEditorStatic=j,t.useRemoteCursorOverlayPositions=function(t){var n;void 0===t&&(t={});var e,u,i,o=t.containerRef,f=t.shouldGenerateOverlay,c=function(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(e=Object.getOwnPropertySymbols(t);u<e.length;u++)r.indexOf(e[u])<0&&Object.prototype.propertyIsEnumerable.call(t,e[u])&&(n[e[u]]=t[e[u]])}return n}(t,["containerRef","shouldGenerateOverlay"]),a=Xi(),s=Lo(),l=(e=Bi(r.useReducer(function(t){return t+1},0),2)[1],u=r.useRef(null),i=function(){u.current&&(cancelAnimationFrame(u.current),u.current=0)},r.useEffect(i),r.useEffect(function(){return i},[]),r.useCallback(function(t){void 0===t&&(t=!1),t?e():u.current||(u.current=requestAnimationFrame(e))},[])),v=r.useRef(new WeakMap),p=Bi(r.useState({}),2),d=p[0],h=p[1],y=!("refreshOnResize"in c)||(null===(n=c.refreshOnResize)||void 0===n||n);!function(t,n){var e=r.useRef(n);e.current=n;var u=Bi(r.useState(function(){return new ResizeObserver(function(){e.current()})}),1)[0];r.useEffect(function(){if(null==t?void 0:t.current){var r=t.current;return u.observe(r),function(){return u.unobserve(r)}}},[u,t])}(y?o:void 0,function(){v.current=new WeakMap,l("debounced"!==y)}),r.useLayoutEffect(function(){var t,r,n;if(!o||o.current){var e=null===(t=null==o?void 0:o.current)||void 0===t?void 0:t.getBoundingClientRect(),u=null!==(r=null==e?void 0:e.x)&&void 0!==r?r:0,i=null!==(n=null==e?void 0:e.y)&&void 0!==n?n:0,c=Object.keys(d).length!==Object.keys(s).length,l=Object.fromEntries(Object.entries(s).map(function(t){var r=Bi(t,2),n=r[0],e=r[1],o=e.relativeSelection&&Ui(a,e);if(!o)return[n,Mo];var s=v.current.get(o);if(s)return[n,s];var l=Hi(a,o,{xOffset:u,yOffset:i,shouldGenerateOverlay:f});return c=!0,v.current.set(o,l),[n,l]}));c&&h(l)}});var g=r.useMemo(function(){return Object.entries(s).map(function(t){var r,n,e=Bi(t,2),u=e[0],i=e[1],o=i.relativeSelection&&Ui(a,i),f=d[u];return Vi(Vi({},i),{range:o,caretPosition:null!==(r=null==f?void 0:f.caretPosition)&&void 0!==r?r:null,selectionRects:null!==(n=null==f?void 0:f.selectionRects)&&void 0!==n?n:Mo})})},[s,a,d]);return[g,r.useCallback(function(){v.current=new WeakMap,l(!0)},[l])]},t.useRemoteCursorStates=Lo,t.useRemoteCursorStatesSelector=function(t,r){var n=Bi(Io(),2),e=n[0],u=n[1];return lo.useSyncExternalStoreWithSelector(e,u,null,t,r)}});
|
|
1
|
+
!function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports,require("react"),require("@wangeditor-next/yjs"),require("@wangeditor-next/editor"),require("slate")):"function"==typeof define&&define.amd?define(["exports","react","@wangeditor-next/yjs","@wangeditor-next/editor","slate"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorYjsForReact={},t.require$$0,t.yjs,t.editor,t.slate)}(this,function(t,r,n,e,u){"use strict";var i,o,f,c,a,s,l,v,p,d,h,y,g,b,m,S,w,O,E=r.createContext(null),j=function(){var t=r.useContext(E);return t||console.warn("The `useEditorStatic` hook must be used inside the <EditorContext> component's context."),t},x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(){return o?i:(o=1,i=function(t){try{return!!t()}catch(t){return!0}})}function P(){if(c)return f;c=1;var t=R();return f=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function A(){if(s)return a;s=1;var t=P(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return a=t?e:function(t){return function(){return n.apply(t,arguments)}},a}function T(){if(v)return l;v=1;var t=A(),r=t({}.toString),n=t("".slice);return l=function(t){return n(r(t),8,-1)}}function C(){if(d)return p;d=1;var t=A(),r=R(),n=T(),e=Object,u=t("".split);return p=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?u(t,""):e(t)}:e}function k(){return y?h:(y=1,h=function(t){return null==t})}function z(){if(b)return g;b=1;var t=k(),r=TypeError;return g=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function I(){if(S)return m;S=1;var t=C(),r=z();return m=function(n){return t(r(n))}}function L(){if(O)return w;O=1;var t=function(t){return t&&t.Math===Math&&t};return w=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof x&&x)||t("object"==typeof w&&w)||function(){return this}()||Function("return this")()}var M,F,_,D,N,G,W,V,B,q,U,H,X,Y,$,K,J,Q,Z,tt,rt,nt,et,ut,it,ot,ft,ct,at,st={exports:{}};function lt(){return F?M:(F=1,M=!1)}function vt(){if(D)return _;D=1;var t=L(),r=Object.defineProperty;return _=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function pt(){if(N)return st.exports;N=1;var t=lt(),r=L(),n=vt(),e="__core-js_shared__",u=st.exports=r[e]||n(e,{});return(u.versions||(u.versions=[])).push({version:"3.47.0",mode:t?"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"}),st.exports}function dt(){if(W)return G;W=1;var t=pt();return G=function(r,n){return t[r]||(t[r]=n||{})}}function ht(){if(B)return V;B=1;var t=z(),r=Object;return V=function(n){return r(t(n))}}function yt(){if(U)return q;U=1;var t=A(),r=ht(),n=t({}.hasOwnProperty);return q=Object.hasOwn||function(t,e){return n(r(t),e)}}function gt(){if(X)return H;X=1;var t=A(),r=0,n=Math.random(),e=t(1.1.toString);return H=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function bt(){if(J)return K;J=1;var t,r,n=L(),e=function(){if($)return Y;$=1;var t=L().navigator,r=t&&t.userAgent;return Y=r?String(r):""}(),u=n.process,i=n.Deno,o=u&&u.versions||i&&i.version,f=o&&o.v8;return f&&(r=(t=f.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),K=r}function mt(){if(Z)return Q;Z=1;var t=bt(),r=R(),n=L().String;return Q=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function St(){if(rt)return tt;rt=1;var t=mt();return tt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function wt(){if(et)return nt;et=1;var t=L(),r=dt(),n=yt(),e=gt(),u=mt(),i=St(),o=t.Symbol,f=r("wks"),c=i?o.for||o:o&&o.withoutSetter||e;return nt=function(t){return n(f,t)||(f[t]=u&&n(o,t)?o[t]:c("Symbol."+t)),f[t]}}function Ot(){if(it)return ut;it=1;var t="object"==typeof document&&document.all;return ut=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function Et(){if(ft)return ot;ft=1;var t=Ot();return ot=function(r){return"object"==typeof r?null!==r:t(r)}}function jt(){if(at)return ct;at=1;var t=Et(),r=String,n=TypeError;return ct=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}var xt,Rt,Pt,At,Tt={};function Ct(){if(Rt)return xt;Rt=1;var t=R();return xt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function kt(){if(At)return Pt;At=1;var t=Ct(),r=R();return Pt=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}var zt,It,Lt,Mt,Ft,_t,Dt,Nt,Gt,Wt,Vt,Bt,qt,Ut,Ht,Xt,Yt,$t,Kt,Jt,Qt,Zt,tr,rr,nr,er,ur,ir,or,fr,cr,ar,sr,lr,vr,pr,dr,hr,yr,gr,br,mr,Sr,wr,Or,Er,jr,xr,Rr,Pr,Ar,Tr,Cr,kr,zr,Ir,Lr,Mr,Fr,_r,Dr,Nr,Gr,Wr,Vr={};function Br(){if(It)return zt;It=1;var t=L(),r=Et(),n=t.document,e=r(n)&&r(n.createElement);return zt=function(t){return e?n.createElement(t):{}}}function qr(){if(Mt)return Lt;Mt=1;var t=Ct(),r=R(),n=Br();return Lt=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function Ur(){if(_t)return Ft;_t=1;var t=P(),r=Function.prototype.call;return Ft=t?r.bind(r):function(){return r.apply(r,arguments)},Ft}function Hr(){if(Nt)return Dt;Nt=1;var t=L(),r=Ot();return Dt=function(n,e){return arguments.length<2?(u=t[n],r(u)?u:void 0):t[n]&&t[n][e];var u},Dt}function Xr(){if(Wt)return Gt;Wt=1;var t=A();return Gt=t({}.isPrototypeOf)}function Yr(){if(Bt)return Vt;Bt=1;var t=Hr(),r=Ot(),n=Xr(),e=St(),u=Object;return Vt=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return r(i)&&n(i.prototype,u(e))}}function $r(){if(Ut)return qt;Ut=1;var t=String;return qt=function(r){try{return t(r)}catch(t){return"Object"}}}function Kr(){if(Xt)return Ht;Xt=1;var t=Ot(),r=$r(),n=TypeError;return Ht=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function Jr(){if($t)return Yt;$t=1;var t=Kr(),r=k();return Yt=function(n,e){var u=n[e];return r(u)?void 0:t(u)}}function Qr(){if(Jt)return Kt;Jt=1;var t=Ur(),r=Ot(),n=Et(),e=TypeError;return Kt=function(u,i){var o,f;if("string"===i&&r(o=u.toString)&&!n(f=t(o,u)))return f;if(r(o=u.valueOf)&&!n(f=t(o,u)))return f;if("string"!==i&&r(o=u.toString)&&!n(f=t(o,u)))return f;throw new e("Can't convert object to primitive value")}}function Zr(){if(Zt)return Qt;Zt=1;var t=Ur(),r=Et(),n=Yr(),e=Jr(),u=Qr(),i=wt(),o=TypeError,f=i("toPrimitive");return Qt=function(i,c){if(!r(i)||n(i))return i;var a,s=e(i,f);if(s){if(void 0===c&&(c="default"),a=t(s,i,c),!r(a)||n(a))return a;throw new o("Can't convert object to primitive value")}return void 0===c&&(c="number"),u(i,c)}}function tn(){if(rr)return tr;rr=1;var t=Zr(),r=Yr();return tr=function(n){var e=t(n,"string");return r(e)?e:e+""}}function rn(){if(nr)return Vr;nr=1;var t=Ct(),r=qr(),n=kt(),e=jt(),u=tn(),i=TypeError,o=Object.defineProperty,f=Object.getOwnPropertyDescriptor,c="enumerable",a="configurable",s="writable";return Vr.f=t?n?function(t,r,n){if(e(t),r=u(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var i=f(t,r);i&&i[s]&&(t[r]=n.value,n={configurable:a in n?n[a]:i[a],enumerable:c in n?n[c]:i[c],writable:!1})}return o(t,r,n)}:o:function(t,n,f){if(e(t),n=u(n),e(f),r)try{return o(t,n,f)}catch(t){}if("get"in f||"set"in f)throw new i("Accessors not supported");return"value"in f&&(t[n]=f.value),t},Vr}function nn(){if(or)return ir;or=1;var t=function(){if(ur)return er;ur=1;var t=Math.ceil,r=Math.floor;return er=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return ir=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function en(){if(cr)return fr;cr=1;var t=nn(),r=Math.max,n=Math.min;return fr=function(e,u){var i=t(e);return i<0?r(i+u,0):n(i,u)}}function un(){if(sr)return ar;sr=1;var t=nn(),r=Math.min;return ar=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function on(){if(vr)return lr;vr=1;var t=un();return lr=function(r){return t(r.length)}}function fn(){return yr?hr:(yr=1,hr={})}function cn(){if(br)return gr;br=1;var t=A(),r=yt(),n=I(),e=function(){if(dr)return pr;dr=1;var t=I(),r=en(),n=on(),e=function(e){return function(u,i,o){var f=t(u),c=n(f);if(0===c)return!e&&-1;var a,s=r(o,c);if(e&&i!=i){for(;c>s;)if((a=f[s++])!=a)return!0}else for(;c>s;s++)if((e||s in f)&&f[s]===i)return e||s||0;return!e&&-1}};return pr={includes:e(!0),indexOf:e(!1)}}().indexOf,u=fn(),i=t([].push);return gr=function(t,o){var f,c=n(t),a=0,s=[];for(f in c)!r(u,f)&&r(c,f)&&i(s,f);for(;o.length>a;)r(c,f=o[a++])&&(~e(s,f)||i(s,f));return s}}function an(){return Sr?mr:(Sr=1,mr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function sn(){if(Or)return wr;Or=1;var t=cn(),r=an();return wr=Object.keys||function(n){return t(n,r)}}function ln(){if(xr)return jr;xr=1;var t=Hr();return jr=t("document","documentElement")}function vn(){if(Pr)return Rr;Pr=1;var t=dt(),r=gt(),n=t("keys");return Rr=function(t){return n[t]||(n[t]=r(t))}}function pn(){if(Tr)return Ar;Tr=1;var t,r=jt(),n=function(){if(Er)return Tt;Er=1;var t=Ct(),r=kt(),n=rn(),e=jt(),u=I(),i=sn();return Tt.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var o,f=u(r),c=i(r),a=c.length,s=0;a>s;)n.f(t,o=c[s++],f[o]);return t},Tt}(),e=an(),u=fn(),i=ln(),o=Br(),f=vn(),c="prototype",a="script",s=f("IE_PROTO"),l=function(){},v=function(t){return"<"+a+">"+t+"</"+a+">"},p=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},d=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,u;d="undefined"!=typeof document?document.domain&&t?p(t):(n=o("iframe"),u="java"+a+":",n.style.display="none",i.appendChild(n),n.src=String(u),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):p(t);for(var f=e.length;f--;)delete d[c][e[f]];return d()};return u[s]=!0,Ar=Object.create||function(t,e){var u;return null!==t?(l[c]=r(t),u=new l,l[c]=null,u[s]=t):u=d(),void 0===e?u:n.f(u,e)}}function dn(){if(kr)return Cr;kr=1;var t=wt(),r=pn(),n=rn().f,e=t("unscopables"),u=Array.prototype;return void 0===u[e]&&n(u,e,{configurable:!0,value:r(null)}),Cr=function(t){u[e][t]=!0}}function hn(){return Ir?zr:(Ir=1,zr={})}function yn(){if(Mr)return Lr;Mr=1;var t=L(),r=Ot(),n=t.WeakMap;return Lr=r(n)&&/native code/.test(String(n))}function gn(){return _r?Fr:(_r=1,Fr=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function bn(){if(Nr)return Dr;Nr=1;var t=Ct(),r=rn(),n=gn();return Dr=t?function(t,e,u){return r.f(t,e,n(1,u))}:function(t,r,n){return t[r]=n,t}}function mn(){if(Wr)return Gr;Wr=1;var t,r,n,e=yn(),u=L(),i=Et(),o=bn(),f=yt(),c=pt(),a=vn(),s=fn(),l="Object already initialized",v=u.TypeError,p=u.WeakMap;if(e||c.state){var d=c.state||(c.state=new p);d.get=d.get,d.has=d.has,d.set=d.set,t=function(t,r){if(d.has(t))throw new v(l);return r.facade=t,d.set(t,r),r},r=function(t){return d.get(t)||{}},n=function(t){return d.has(t)}}else{var h=a("state");s[h]=!0,t=function(t,r){if(f(t,h))throw new v(l);return r.facade=t,o(t,h,r),r},r=function(t){return f(t,h)?t[h]:{}},n=function(t){return f(t,h)}}return Gr={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!i(n)||(e=r(n)).type!==t)throw new v("Incompatible receiver, "+t+" required");return e}}}}var Sn,wn,On={},En={};function jn(){if(Sn)return En;Sn=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return En.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,En}function xn(){if(wn)return On;wn=1;var t=Ct(),r=Ur(),n=jn(),e=gn(),u=I(),i=tn(),o=yt(),f=qr(),c=Object.getOwnPropertyDescriptor;return On.f=t?c:function(t,a){if(t=u(t),a=i(a),f)try{return c(t,a)}catch(t){}if(o(t,a))return e(!r(n.f,t,a),t[a])},On}var Rn,Pn,An,Tn,Cn,kn,zn,In={exports:{}};function Ln(){if(Pn)return Rn;Pn=1;var t=Ct(),r=yt(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,u=r(n,"name"),i=u&&"something"===function(){}.name,o=u&&(!t||t&&e(n,"name").configurable);return Rn={EXISTS:u,PROPER:i,CONFIGURABLE:o}}function Mn(){if(Tn)return An;Tn=1;var t=A(),r=Ot(),n=pt(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),An=n.inspectSource}function Fn(){if(Cn)return In.exports;Cn=1;var t=A(),r=R(),n=Ot(),e=yt(),u=Ct(),i=Ln().CONFIGURABLE,o=Mn(),f=mn(),c=f.enforce,a=f.get,s=String,l=Object.defineProperty,v=t("".slice),p=t("".replace),d=t([].join),h=u&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),y=String(String).split("String"),g=In.exports=function(t,r,n){"Symbol("===v(s(r),0,7)&&(r="["+p(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||i&&t.name!==r)&&(u?l(t,"name",{value:r,configurable:!0}):t.name=r),h&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?u&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var o=c(t);return e(o,"source")||(o.source=d(y,"string"==typeof r?r:"")),t};return Function.prototype.toString=g(function(){return n(this)&&a(this).source||o(this)},"toString"),In.exports}function _n(){if(zn)return kn;zn=1;var t=Ot(),r=rn(),n=Fn(),e=vt();return kn=function(u,i,o,f){f||(f={});var c=f.enumerable,a=void 0!==f.name?f.name:i;if(t(o)&&n(o,a,f),f.global)c?u[i]=o:e(i,o);else{try{f.unsafe?u[i]&&(c=!0):delete u[i]}catch(t){}c?u[i]=o:r.f(u,i,{value:o,enumerable:!1,configurable:!f.nonConfigurable,writable:!f.nonWritable})}return u}}var Dn,Nn={};function Gn(){if(Dn)return Nn;Dn=1;var t=cn(),r=an().concat("length","prototype");return Nn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},Nn}var Wn,Vn,Bn,qn,Un,Hn,Xn,Yn,$n,Kn,Jn,Qn,Zn,te,re,ne,ee,ue,ie,oe,fe,ce,ae,se,le,ve,pe,de,he,ye,ge,be,me,Se={};function we(){if(Bn)return Vn;Bn=1;var t=Hr(),r=A(),n=Gn(),e=(Wn||(Wn=1,Se.f=Object.getOwnPropertySymbols),Se),u=jt(),i=r([].concat);return Vn=t("Reflect","ownKeys")||function(t){var r=n.f(u(t)),o=e.f;return o?i(r,o(t)):r}}function Oe(){if(Un)return qn;Un=1;var t=yt(),r=we(),n=xn(),e=rn();return qn=function(u,i,o){for(var f=r(i),c=e.f,a=n.f,s=0;s<f.length;s++){var l=f[s];t(u,l)||o&&t(o,l)||c(u,l,a(i,l))}}}function Ee(){if(Xn)return Hn;Xn=1;var t=R(),r=Ot(),n=/#|\.prototype\./,e=function(n,e){var c=i[u(n)];return c===f||c!==o&&(r(e)?t(e):!!e)},u=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},i=e.data={},o=e.NATIVE="N",f=e.POLYFILL="P";return Hn=e}function je(){if($n)return Yn;$n=1;var t=L(),r=xn().f,n=bn(),e=_n(),u=vt(),i=Oe(),o=Ee();return Yn=function(f,c){var a,s,l,v,p,d=f.target,h=f.global,y=f.stat;if(a=h?t:y?t[d]||u(d,{}):t[d]&&t[d].prototype)for(s in c){if(v=c[s],l=f.dontCallGetSet?(p=r(a,s))&&p.value:a[s],!o(h?s:d+(y?".":"#")+s,f.forced)&&void 0!==l){if(typeof v==typeof l)continue;i(v,l)}(f.sham||l&&l.sham)&&n(v,"sham",!0),e(a,s,v,f)}}}function xe(){if(Zn)return Qn;Zn=1;var t=yt(),r=Ot(),n=ht(),e=vn(),u=function(){if(Jn)return Kn;Jn=1;var t=R();return Kn=!t(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})}(),i=e("IE_PROTO"),o=Object,f=o.prototype;return Qn=u?o.getPrototypeOf:function(e){var u=n(e);if(t(u,i))return u[i];var c=u.constructor;return r(c)&&u instanceof c?c.prototype:u instanceof o?f:null}}function Re(){if(re)return te;re=1;var t,r,n,e=R(),u=Ot(),i=Et(),o=pn(),f=xe(),c=_n(),a=wt(),s=lt(),l=a("iterator"),v=!1;return[].keys&&("next"in(n=[].keys())?(r=f(f(n)))!==Object.prototype&&(t=r):v=!0),!i(t)||e(function(){var r={};return t[l].call(r)!==r})?t={}:s&&(t=o(t)),u(t[l])||c(t,l,function(){return this}),te={IteratorPrototype:t,BUGGY_SAFARI_ITERATORS:v}}function Pe(){if(ee)return ne;ee=1;var t=rn().f,r=yt(),n=wt()("toStringTag");return ne=function(e,u,i){e&&!i&&(e=e.prototype),e&&!r(e,n)&&t(e,n,{configurable:!0,value:u})}}function Ae(){if(ae)return ce;ae=1;var t=Et();return ce=function(r){return t(r)||null===r}}function Te(){if(le)return se;le=1;var t=Ae(),r=String,n=TypeError;return se=function(e){if(t(e))return e;throw new n("Can't set "+r(e)+" as a prototype")}}function Ce(){if(pe)return ve;pe=1;var t=function(){if(fe)return oe;fe=1;var t=A(),r=Kr();return oe=function(n,e,u){try{return t(r(Object.getOwnPropertyDescriptor(n,e)[u]))}catch(t){}}}(),r=Et(),n=z(),e=Te();return ve=Object.setPrototypeOf||("__proto__"in{}?function(){var u,i=!1,o={};try{(u=t(Object.prototype,"__proto__","set"))(o,[]),i=o instanceof Array}catch(t){}return function(t,o){return n(t),e(o),r(t)?(i?u(t,o):t.__proto__=o,t):t}}():void 0)}function ke(){if(he)return de;he=1;var t=je(),r=Ur(),n=lt(),e=Ln(),u=Ot(),i=function(){if(ie)return ue;ie=1;var t=Re().IteratorPrototype,r=pn(),n=gn(),e=Pe(),u=hn(),i=function(){return this};return ue=function(o,f,c,a){var s=f+" Iterator";return o.prototype=r(t,{next:n(+!a,c)}),e(o,s,!1,!0),u[s]=i,o}}(),o=xe(),f=Ce(),c=Pe(),a=bn(),s=_n(),l=wt(),v=hn(),p=Re(),d=e.PROPER,h=e.CONFIGURABLE,y=p.IteratorPrototype,g=p.BUGGY_SAFARI_ITERATORS,b=l("iterator"),m="keys",S="values",w="entries",O=function(){return this};return de=function(e,l,p,E,j,x,R){i(p,l,E);var P,A,T,C=function(t){if(t===j&&M)return M;if(!g&&t&&t in I)return I[t];switch(t){case m:case S:case w:return function(){return new p(this,t)}}return function(){return new p(this)}},k=l+" Iterator",z=!1,I=e.prototype,L=I[b]||I["@@iterator"]||j&&I[j],M=!g&&L||C(j),F="Array"===l&&I.entries||L;if(F&&(P=o(F.call(new e)))!==Object.prototype&&P.next&&(n||o(P)===y||(f?f(P,y):u(P[b])||s(P,b,O)),c(P,k,!0,!0),n&&(v[k]=O)),d&&j===S&&L&&L.name!==S&&(!n&&h?a(I,"name",S):(z=!0,M=function(){return r(L,this)})),j)if(A={values:C(S),keys:x?M:C(m),entries:C(w)},R)for(T in A)(g||z||!(T in I))&&s(I,T,A[T]);else t({target:l,proto:!0,forced:g||z},A);return n&&!R||I[b]===M||s(I,b,M,{name:j}),v[l]=M,A}}function ze(){return ge?ye:(ge=1,ye=function(t,r){return{value:t,done:r}})}function Ie(){if(me)return be;me=1;var t=I(),r=dn(),n=hn(),e=mn(),u=rn().f,i=ke(),o=ze(),f=lt(),c=Ct(),a="Array Iterator",s=e.set,l=e.getterFor(a);be=i(Array,"Array",function(r,n){s(this,{type:a,target:t(r),index:0,kind:n})},function(){var t=l(this),r=t.target,n=t.index++;if(!r||n>=r.length)return t.target=null,o(void 0,!0);switch(t.kind){case"keys":return o(n,!1);case"values":return o(r[n],!1)}return o([n,r[n]],!1)},"values");var v=n.Arguments=n.Array;if(r("keys"),r("values"),r("entries"),!f&&c&&"values"!==v.name)try{u(v,"name",{value:"values"})}catch(t){}return be}Ie();var Le,Me,Fe,_e,De,Ne,Ge,We,Ve,Be,qe,Ue,He,Xe,Ye,$e,Ke,Je,Qe,Ze,tu,ru={};function nu(){if(_e)return Fe;_e=1;var t=function(){if(Me)return Le;Me=1;var t=T(),r=A();return Le=function(n){if("Function"===t(n))return r(n)}}(),r=Kr(),n=P(),e=t(t.bind);return Fe=function(t,u){return r(t),void 0===u?t:n?e(t,u):function(){return t.apply(u,arguments)}},Fe}function eu(){if(Ne)return De;Ne=1;var t=T();return De=Array.isArray||function(r){return"Array"===t(r)}}function uu(){if(We)return Ge;We=1;var t={};return t[wt()("toStringTag")]="z",Ge="[object z]"===String(t)}function iu(){if(Be)return Ve;Be=1;var t=uu(),r=Ot(),n=T(),e=wt()("toStringTag"),u=Object,i="Arguments"===n(function(){return arguments}());return Ve=t?n:function(t){var o,f,c;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(f=function(t,r){try{return t[r]}catch(t){}}(o=u(t),e))?f:i?n(o):"Object"===(c=n(o))&&r(o.callee)?"Arguments":c}}function ou(){if(Ue)return qe;Ue=1;var t=A(),r=R(),n=Ot(),e=iu(),u=Hr(),i=Mn(),o=function(){},f=u("Reflect","construct"),c=/^\s*(?:class|function)\b/,a=t(c.exec),s=!c.test(o),l=function(t){if(!n(t))return!1;try{return f(o,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(c,i(t))}catch(t){return!0}};return v.sham=!0,qe=!f||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?v:l}function fu(){if(Xe)return He;Xe=1;var t=eu(),r=ou(),n=Et(),e=wt()("species"),u=Array;return He=function(i){var o;return t(i)&&(o=i.constructor,(r(o)&&(o===u||t(o.prototype))||n(o)&&null===(o=o[e]))&&(o=void 0)),void 0===o?u:o}}function cu(){if($e)return Ye;$e=1;var t=fu();return Ye=function(r,n){return new(t(r))(0===n?0:n)}}function au(){if(Je)return Ke;Je=1;var t=nu(),r=A(),n=C(),e=ht(),u=on(),i=cu(),o=r([].push),f=function(r){var f=1===r,c=2===r,a=3===r,s=4===r,l=6===r,v=7===r,p=5===r||l;return function(d,h,y,g){for(var b,m,S=e(d),w=n(S),O=u(w),E=t(h,y),j=0,x=g||i,R=f?x(d,O):c||v?x(d,0):void 0;O>j;j++)if((p||j in w)&&(m=E(b=w[j],j,S),r))if(f)R[j]=m;else if(m)switch(r){case 3:return!0;case 5:return b;case 6:return j;case 2:o(R,b)}else switch(r){case 4:return!1;case 7:o(R,b)}return l?-1:a||s?s:R}};return Ke={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 su(){if(Ze)return Qe;Ze=1;var t=R(),r=wt(),n=bt(),e=r("species");return Qe=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(tu)return ru;tu=1;var t=je(),r=au().map;t({target:"Array",proto:!0,forced:!su()("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var lu,vu,pu,du={};!function(){if(pu)return du;pu=1;var t=je(),r=function(){if(vu)return lu;vu=1;var t=Ct(),r=R(),n=A(),e=xe(),u=sn(),i=I(),o=n(jn().f),f=n([].push),c=t&&r(function(){var t=Object.create(null);return t[2]=2,!o(t,2)}),a=function(r){return function(n){for(var a,s=i(n),l=u(s),v=c&&null===e(s),p=l.length,d=0,h=[];p>d;)a=l[d++],t&&!(v?a in s:o(s,a))||f(h,r?[a,s[a]]:s[a]);return h}};return lu={entries:a(!0),values:a(!1)}}().entries;t({target:"Object",stat:!0},{entries:function(t){return r(t)}})}();var hu,yu,gu={};function bu(){if(yu)return hu;yu=1;var t=R();return hu=!t(function(){return Object.isExtensible(Object.preventExtensions({}))})}var mu,Su,wu,Ou,Eu,ju,xu,Ru,Pu,Au={exports:{}},Tu={};function Cu(){if(Su)return mu;Su=1;var t=A();return mu=t([].slice)}function ku(){if(wu)return Tu;wu=1;var t=T(),r=I(),n=Gn().f,e=Cu(),u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];return Tu.f=function(i){return u&&"Window"===t(i)?function(t){try{return n(t)}catch(t){return e(u)}}(i):n(r(i))},Tu}function zu(){if(xu)return ju;xu=1;var t=R(),r=Et(),n=T(),e=function(){if(Eu)return Ou;Eu=1;var t=R();return Ou=t(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})}(),u=Object.isExtensible,i=t(function(){});return ju=i||e?function(t){return!!r(t)&&((!e||"ArrayBuffer"!==n(t))&&(!u||u(t)))}:u}function Iu(){if(Ru)return Au.exports;Ru=1;var t=je(),r=A(),n=fn(),e=Et(),u=yt(),i=rn().f,o=Gn(),f=ku(),c=zu(),a=gt(),s=bu(),l=!1,v=a("meta"),p=0,d=function(t){i(t,v,{value:{objectID:"O"+p++,weakData:{}}})},h=Au.exports={enable:function(){h.enable=function(){},l=!0;var n=o.f,e=r([].splice),u={};u[v]=1,n(u).length&&(o.f=function(t){for(var r=n(t),u=0,i=r.length;u<i;u++)if(r[u]===v){e(r,u,1);break}return r},t({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:f.f}))},fastKey:function(t,r){if(!e(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!u(t,v)){if(!c(t))return"F";if(!r)return"E";d(t)}return t[v].objectID},getWeakData:function(t,r){if(!u(t,v)){if(!c(t))return!0;if(!r)return!1;d(t)}return t[v].weakData},onFreeze:function(t){return s&&l&&c(t)&&!u(t,v)&&d(t),t}};return n[v]=!0,Au.exports}!function(){if(Pu)return gu;Pu=1;var t=je(),r=bu(),n=R(),e=Et(),u=Iu().onFreeze,i=Object.freeze;t({target:"Object",stat:!0,forced:n(function(){i(1)}),sham:!r},{freeze:function(t){return i&&e(t)?i(u(t)):t}})}();var Lu,Mu,Fu,_u,Du,Nu,Gu,Wu,Vu,Bu,qu,Uu,Hu,Xu={};function Yu(){if(Mu)return Lu;Mu=1;var t=wt(),r=hn(),n=t("iterator"),e=Array.prototype;return Lu=function(t){return void 0!==t&&(r.Array===t||e[n]===t)}}function $u(){if(_u)return Fu;_u=1;var t=iu(),r=Jr(),n=k(),e=hn(),u=wt()("iterator");return Fu=function(i){if(!n(i))return r(i,u)||r(i,"@@iterator")||e[t(i)]}}function Ku(){if(Nu)return Du;Nu=1;var t=Ur(),r=Kr(),n=jt(),e=$r(),u=$u(),i=TypeError;return Du=function(o,f){var c=arguments.length<2?u(o):f;if(r(c))return n(t(c,o));throw new i(e(o)+" is not iterable")},Du}function Ju(){if(Wu)return Gu;Wu=1;var t=Ur(),r=jt(),n=Jr();return Gu=function(e,u,i){var o,f;r(e);try{if(!(o=n(e,"return"))){if("throw"===u)throw i;return i}o=t(o,e)}catch(t){f=!0,o=t}if("throw"===u)throw i;if(f)throw o;return r(o),i}}function Qu(){if(Bu)return Vu;Bu=1;var t=nu(),r=Ur(),n=jt(),e=$r(),u=Yu(),i=on(),o=Xr(),f=Ku(),c=$u(),a=Ju(),s=TypeError,l=function(t,r){this.stopped=t,this.result=r},v=l.prototype;return Vu=function(p,d,h){var y,g,b,m,S,w,O,E=h&&h.that,j=!(!h||!h.AS_ENTRIES),x=!(!h||!h.IS_RECORD),R=!(!h||!h.IS_ITERATOR),P=!(!h||!h.INTERRUPTED),A=t(d,E),T=function(t){return y&&a(y,"normal"),new l(!0,t)},C=function(t){return j?(n(t),P?A(t[0],t[1],T):A(t[0],t[1])):P?A(t,T):A(t)};if(x)y=p.iterator;else if(R)y=p;else{if(!(g=c(p)))throw new s(e(p)+" is not iterable");if(u(g)){for(b=0,m=i(p);m>b;b++)if((S=C(p[b]))&&o(v,S))return S;return new l(!1)}y=f(p,g)}for(w=x?p.next:y.next;!(O=r(w,y)).done;){try{S=C(O.value)}catch(t){a(y,"throw",t)}if("object"==typeof S&&S&&o(v,S))return S}return new l(!1)}}function Zu(){if(Uu)return qu;Uu=1;var t=Ct(),r=rn(),n=gn();return qu=function(e,u,i){t?r.f(e,u,n(0,i)):e[u]=i}}!function(){if(Hu)return Xu;Hu=1;var t=je(),r=Qu(),n=Zu();t({target:"Object",stat:!0},{fromEntries:function(t){var e={};return r(t,function(t,r){n(e,t,r)},{AS_ENTRIES:!0}),e}})}();var ti,ri={};!function(){if(ti)return ri;ti=1;var t=je(),r=ht(),n=sn();t({target:"Object",stat:!0,forced:R()(function(){n(1)})},{keys:function(t){return n(r(t))}})}();var ni,ei,ui,ii={};!function(){if(ui)return ii;ui=1;var t=uu(),r=_n(),n=function(){if(ei)return ni;ei=1;var t=uu(),r=iu();return ni=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var oi,fi,ci,ai,si,li={};function vi(){if(fi)return oi;fi=1;var t=iu(),r=String;return oi=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}!function(){if(si)return li;si=1;var t=function(){if(ai)return ci;ai=1;var t=A(),r=nn(),n=vi(),e=z(),u=t("".charAt),i=t("".charCodeAt),o=t("".slice),f=function(t){return function(f,c){var a,s,l=n(e(f)),v=r(c),p=l.length;return v<0||v>=p?t?"":void 0:(a=i(l,v))<55296||a>56319||v+1===p||(s=i(l,v+1))<56320||s>57343?t?u(l,v):a:t?o(l,v,v+2):s-56320+(a-55296<<10)+65536}};return ci={codeAt:f(!1),charAt:f(!0)}}().charAt,r=vi(),n=mn(),e=ke(),u=ze(),i="String Iterator",o=n.set,f=n.getterFor(i);e(String,"String",function(t){o(this,{type:i,string:r(t),index:0})},function(){var r,n=f(this),e=n.string,i=n.index;return i>=e.length?u(void 0,!0):(r=t(e,i),n.index+=r.length,u(r,!1))})}();var pi,di,hi,yi,gi,bi,mi,Si,wi,Oi,Ei,ji,xi,Ri,Pi={};function Ai(){if(di)return pi;di=1;var t=_n();return pi=function(r,n,e){for(var u in n)t(r,u,n[u],e);return r}}function Ti(){if(yi)return hi;yi=1;var t=Xr(),r=TypeError;return hi=function(n,e){if(t(e,n))return n;throw new r("Incorrect invocation")}}function Ci(){if(bi)return gi;bi=1;var t=wt()("iterator"),r=!1;try{var n=0,e={next:function(){return{done:!!n++}},return:function(){r=!0}};e[t]=function(){return this},Array.from(e,function(){throw 2})}catch(t){}return gi=function(n,e){try{if(!e&&!r)return!1}catch(t){return!1}var u=!1;try{var i={};i[t]=function(){return{next:function(){return{done:u=!0}}}},n(i)}catch(t){}return u}}function ki(){if(Si)return mi;Si=1;var t=Ot(),r=Et(),n=Ce();return mi=function(e,u,i){var o,f;return n&&t(o=u.constructor)&&o!==i&&r(f=o.prototype)&&f!==i.prototype&&n(e,f),e}}function zi(){if(Oi)return wi;Oi=1;var t=je(),r=L(),n=A(),e=Ee(),u=_n(),i=Iu(),o=Qu(),f=Ti(),c=Ot(),a=k(),s=Et(),l=R(),v=Ci(),p=Pe(),d=ki();return wi=function(h,y,g){var b=-1!==h.indexOf("Map"),m=-1!==h.indexOf("Weak"),S=b?"set":"add",w=r[h],O=w&&w.prototype,E=w,j={},x=function(t){var r=n(O[t]);u(O,t,"add"===t?function(t){return r(this,0===t?0:t),this}:"delete"===t?function(t){return!(m&&!s(t))&&r(this,0===t?0:t)}:"get"===t?function(t){return m&&!s(t)?void 0:r(this,0===t?0:t)}:"has"===t?function(t){return!(m&&!s(t))&&r(this,0===t?0:t)}:function(t,n){return r(this,0===t?0:t,n),this})};if(e(h,!c(w)||!(m||O.forEach&&!l(function(){(new w).entries().next()}))))E=g.getConstructor(y,h,b,S),i.enable();else if(e(h,!0)){var R=new E,P=R[S](m?{}:-0,1)!==R,A=l(function(){R.has(1)}),T=v(function(t){new w(t)}),C=!m&&l(function(){for(var t=new w,r=5;r--;)t[S](r,r);return!t.has(-0)});T||((E=y(function(t,r){f(t,O);var n=d(new w,t,E);return a(r)||o(r,n[S],{that:n,AS_ENTRIES:b}),n})).prototype=O,O.constructor=E),(A||C)&&(x("delete"),x("has"),b&&x("get")),(C||P)&&x(S),m&&O.clear&&delete O.clear}return j[h]=E,t({global:!0,constructor:!0,forced:E!==w},j),p(E,h),m||g.setStrong(E,h,b),E}}function Ii(){if(ji)return Ei;ji=1;var t=A(),r=Ai(),n=Iu().getWeakData,e=Ti(),u=jt(),i=k(),o=Et(),f=Qu(),c=au(),a=yt(),s=mn(),l=s.set,v=s.getterFor,p=c.find,d=c.findIndex,h=t([].splice),y=0,g=function(t){return t.frozen||(t.frozen=new b)},b=function(){this.entries=[]},m=function(t,r){return p(t.entries,function(t){return t[0]===r})};return b.prototype={get:function(t){var r=m(this,t);if(r)return r[1]},has:function(t){return!!m(this,t)},set:function(t,r){var n=m(this,t);n?n[1]=r:this.entries.push([t,r])},delete:function(t){var r=d(this.entries,function(r){return r[0]===t});return~r&&h(this.entries,r,1),!!~r}},Ei={getConstructor:function(t,c,s,p){var d=t(function(t,r){e(t,h),l(t,{type:c,id:y++,frozen:null}),i(r)||f(r,t[p],{that:t,AS_ENTRIES:s})}),h=d.prototype,b=v(c),m=function(t,r,e){var i=b(t),o=n(u(r),!0);return!0===o?g(i).set(r,e):o[i.id]=e,t};return r(h,{delete:function(t){var r=b(this);if(!o(t))return!1;var e=n(t);return!0===e?g(r).delete(t):e&&a(e,r.id)&&delete e[r.id]},has:function(t){var r=b(this);if(!o(t))return!1;var e=n(t);return!0===e?g(r).has(t):e&&a(e,r.id)}}),r(h,s?{get:function(t){var r=b(this);if(o(t)){var e=n(t);if(!0===e)return g(r).get(t);if(e)return e[r.id]}},set:function(t,r){return m(this,t,r)}}:{add:function(t){return m(this,t,!0)}}),d}}}Ri||(Ri=1,function(){if(xi)return Pi;xi=1;var t,r=bu(),n=L(),e=A(),u=Ai(),i=Iu(),o=zi(),f=Ii(),c=Et(),a=mn().enforce,s=R(),l=yn(),v=Object,p=Array.isArray,d=v.isExtensible,h=v.isFrozen,y=v.isSealed,g=v.freeze,b=v.seal,m=!n.ActiveXObject&&"ActiveXObject"in n,S=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},w=o("WeakMap",S,f),O=w.prototype,E=e(O.set);if(l)if(m){t=f.getConstructor(S,"WeakMap",!0),i.enable();var j=e(O.delete),x=e(O.has),P=e(O.get);u(O,{delete:function(r){if(c(r)&&!d(r)){var n=a(this);return n.frozen||(n.frozen=new t),j(this,r)||n.frozen.delete(r)}return j(this,r)},has:function(r){if(c(r)&&!d(r)){var n=a(this);return n.frozen||(n.frozen=new t),x(this,r)||n.frozen.has(r)}return x(this,r)},get:function(r){if(c(r)&&!d(r)){var n=a(this);return n.frozen||(n.frozen=new t),x(this,r)?P(this,r):n.frozen.get(r)}return P(this,r)},set:function(r,n){if(c(r)&&!d(r)){var e=a(this);e.frozen||(e.frozen=new t),x(this,r)?E(this,r,n):e.frozen.set(r,n)}else E(this,r,n);return this}})}else r&&s(function(){var t=g([]);return E(new w,t,1),!h(t)})&&u(O,{set:function(t,r){var n;return p(t)&&(h(t)?n=g:y(t)&&(n=b)),E(this,t,r),n&&n(t),this}})}());var Li,Mi,Fi,_i,Di,Ni={};function Gi(){return Mi?Li:(Mi=1,Li={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 Wi(){if(_i)return Fi;_i=1;var t=Br()("span").classList,r=t&&t.constructor&&t.constructor.prototype;return Fi=r===Object.prototype?void 0:r}!function(){if(Di)return Ni;Di=1;var t=L(),r=Gi(),n=Wi(),e=Ie(),u=bn(),i=Pe(),o=wt()("iterator"),f=e.values,c=function(t,n){if(t){if(t[o]!==f)try{u(t,o,f)}catch(r){t[o]=f}if(i(t,n,!0),r[n])for(var c in e)if(t[c]!==e[c])try{u(t,c,e[c])}catch(r){t[c]=e[c]}}};for(var a in r)c(t[a]&&t[a].prototype,a);c(n,"DOMTokenList")}();var Vi=function(){return Vi=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var u in r=arguments[n])Object.prototype.hasOwnProperty.call(r,u)&&(t[u]=r[u]);return t},Vi.apply(this,arguments)};function Bi(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,u,i=n.call(t),o=[];try{for(;(void 0===r||r-- >0)&&!(e=i.next()).done;)o.push(e.value)}catch(t){u={error:t}}finally{try{e&&!e.done&&(n=i.return)&&n.call(i)}finally{if(u)throw u.error}}return o}"function"==typeof SuppressedError&&SuppressedError;var qi=new WeakMap;function Ui(t,r){if(!r.relativeSelection)return null;var e=qi.get(t.children);e||(e=new WeakMap,qi.set(t.children,e));var u=e.get(r);if(void 0===u)try{u=n.relativeRangeToSlateRange(t.sharedRoot,t,r.relativeSelection),e.set(r,u)}catch(t){return null}return u}function Hi(t,r,n){var i,o,f=n.yOffset,c=n.xOffset,a=n.shouldGenerateOverlay,s=Bi(u.Range.edges(r),2),l=s[0],v=s[1],p=function(t,r){try{return e.DomEditor.toDOMRange(t,r)}catch(t){return null}}(t,r);if(!p)return{caretPosition:null,selectionRects:[]};var d=[],h=u.Editor.nodes(t,{at:r,match:function(t,r){return u.Text.isText(t)&&(!a||a(t,r))}}),y=null,g=u.Range.isBackward(r);try{for(var b=function(t){var r="function"==typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(h),m=b.next();!m.done;m=b.next()){var S=Bi(m.value,2),w=S[0],O=S[1],E=e.DomEditor.toDOMNode(t,w),j=u.Path.equals(O,l.path),x=u.Path.equals(O,v.path),R=null;if(j||x){var P=document.createRange();P.selectNode(E),j&&P.setStart(p.startContainer,p.startOffset),x&&P.setEnd(p.endContainer,p.endOffset),R=P.getClientRects()}else R=E.getClientRects();for(var A=g?j:x,T=0;T<R.length;T+=1){var C=R.item(T);if(C){var k=A&&(g?0===T:T===R.length-1),z=C.top-f,I=C.left-c;k&&(y={height:C.height,top:z,left:I+(g||u.Range.isCollapsed(r)?0:C.width)}),d.push({width:C.width,height:C.height,top:z,left:I})}}}}catch(t){i={error:t}}finally{try{m&&!m.done&&(o=b.return)&&o.call(b)}finally{if(i)throw i.error}}return{selectionRects:d,caretPosition:y}}function Xi(){var t=j();return n.CursorEditor.isCursorEditor(t)||console.warn("Cannot use useSyncExternalStore outside the context of a RemoteCursorEditor"),t}var Yi,$i,Ki={exports:{}},Ji={};function Qi(){return $i||($i=1,Ki.exports=function(){if(Yi)return Ji;Yi=1;var t=r,n="function"==typeof Object.is?Object.is:function(t,r){return t===r&&(0!==t||1/t==1/r)||t!=t&&r!=r},e=t.useState,u=t.useEffect,i=t.useLayoutEffect,o=t.useDebugValue;function f(t){var r=t.getSnapshot;t=t.value;try{var e=r();return!n(t,e)}catch(t){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,r){return r()}:function(t,r){var n=r(),c=e({inst:{value:n,getSnapshot:r}}),a=c[0].inst,s=c[1];return i(function(){a.value=n,a.getSnapshot=r,f(a)&&s({inst:a})},[t,n,r]),u(function(){return f(a)&&s({inst:a}),t(function(){f(a)&&s({inst:a})})},[t]),o(n),n};return Ji.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:c,Ji}()),Ki.exports}var Zi,to,ro=Qi(),no={exports:{}},eo={};var uo,io,oo,fo,co,ao,so,lo=(to||(to=1,no.exports=function(){if(Zi)return eo;Zi=1;var t=r,n=Qi(),e="function"==typeof Object.is?Object.is:function(t,r){return t===r&&(0!==t||1/t==1/r)||t!=t&&r!=r},u=n.useSyncExternalStore,i=t.useRef,o=t.useEffect,f=t.useMemo,c=t.useDebugValue;return eo.useSyncExternalStoreWithSelector=function(t,r,n,a,s){var l=i(null);if(null===l.current){var v={hasValue:!1,value:null};l.current=v}else v=l.current;l=f(function(){function t(t){if(!o){if(o=!0,u=t,t=a(t),void 0!==s&&v.hasValue){var r=v.value;if(s(r,t))return i=r}return i=t}if(r=i,e(u,t))return r;var n=a(t);return void 0!==s&&s(r,n)?(u=t,r):(u=t,i=n)}var u,i,o=!1,f=void 0===n?null:n;return[function(){return t(r())},null===f?void 0:function(){return t(f())}]},[r,n,a,s]);var p=u(t,l[0],l[1]);return o(function(){v.hasValue=!0,v.value=p},[p]),c(p),p},eo}()),no.exports),vo={};function po(){if(ao)return co;ao=1;var t=Ur(),r=yt(),n=Xr(),e=function(){if(io)return uo;io=1;var t=L(),r=R(),n=t.RegExp,e=!r(function(){var t=!0;try{n(".","d")}catch(r){t=!1}var r={},e="",u=t?"dgimsy":"gimsy",i=function(t,n){Object.defineProperty(r,t,{get:function(){return e+=n,!0}})},o={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var f in t&&(o.hasIndices="d"),o)i(f,o[f]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(r)!==u||e!==u});return uo={correct:e}}(),u=function(){if(fo)return oo;fo=1;var t=jt();return oo=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}(),i=RegExp.prototype;return co=e.correct?function(t){return t.flags}:function(o){return e.correct||!n(i,o)||r(o,"flags")?o.flags:t(u,o)}}!function(){if(so)return vo;so=1;var t=Ln().PROPER,r=_n(),n=jt(),e=vi(),u=R(),i=po(),o="toString",f=RegExp.prototype,c=f[o],a=u(function(){return"/a/b"!==c.call({source:"a",flags:"b"})}),s=t&&c.name!==o;(a||s)&&r(f,o,function(){var t=n(this);return"/"+e(t.source)+"/"+e(i(t))},{unsafe:!0})}();var ho,yo,go,bo,mo,So,wo,Oo;function Eo(){if(yo)return ho;yo=1;var t=Fn(),r=rn();return ho=function(n,e,u){return u.get&&t(u.get,e,{getter:!0}),u.set&&t(u.set,e,{setter:!0}),r.f(n,e,u)}}function jo(){if(bo)return go;bo=1;var t=Hr(),r=Eo(),n=wt(),e=Ct(),u=n("species");return go=function(n){var i=t(n);e&&i&&!i[u]&&r(i,u,{configurable:!0,get:function(){return this}})}}Oo||(Oo=1,wo||(wo=1,zi()("Set",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},function(){if(So)return mo;So=1;var t=pn(),r=Eo(),n=Ai(),e=nu(),u=Ti(),i=k(),o=Qu(),f=ke(),c=ze(),a=jo(),s=Ct(),l=Iu().fastKey,v=mn(),p=v.set,d=v.getterFor;return mo={getConstructor:function(f,c,a,v){var h=f(function(r,n){u(r,y),p(r,{type:c,index:t(null),first:null,last:null,size:0}),s||(r.size=0),i(n)||o(n,r[v],{that:r,AS_ENTRIES:a})}),y=h.prototype,g=d(c),b=function(t,r,n){var e,u,i=g(t),o=m(t,r);return o?o.value=n:(i.last=o={index:u=l(r,!0),key:r,value:n,previous:e=i.last,next:null,removed:!1},i.first||(i.first=o),e&&(e.next=o),s?i.size++:t.size++,"F"!==u&&(i.index[u]=o)),t},m=function(t,r){var n,e=g(t),u=l(r);if("F"!==u)return e.index[u];for(n=e.first;n;n=n.next)if(n.key===r)return n};return n(y,{clear:function(){for(var r=g(this),n=r.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=null),n=n.next;r.first=r.last=null,r.index=t(null),s?r.size=0:this.size=0},delete:function(t){var r=this,n=g(r),e=m(r,t);if(e){var u=e.next,i=e.previous;delete n.index[e.index],e.removed=!0,i&&(i.next=u),u&&(u.previous=i),n.first===e&&(n.first=u),n.last===e&&(n.last=i),s?n.size--:r.size--}return!!e},forEach:function(t){for(var r,n=g(this),u=e(t,arguments.length>1?arguments[1]:void 0);r=r?r.next:n.first;)for(u(r.value,r.key,this);r&&r.removed;)r=r.previous},has:function(t){return!!m(this,t)}}),n(y,a?{get:function(t){var r=m(this,t);return r&&r.value},set:function(t,r){return b(this,0===t?0:t,r)}}:{add:function(t){return b(this,t=0===t?0:t,t)}}),s&&r(y,"size",{configurable:!0,get:function(){return g(this).size}}),h},setStrong:function(t,r,n){var e=r+" Iterator",u=d(r),i=d(e);f(t,r,function(t,r){p(this,{type:e,target:t,state:u(t),kind:r,last:null})},function(){for(var t=i(this),r=t.kind,n=t.last;n&&n.removed;)n=n.previous;return t.target&&(t.last=n=n?n.next:t.state.first)?c("keys"===r?n.key:"values"===r?n.value:[n.key,n.value],!1):(t.target=null,c(void 0,!0))},n?"entries":"values",!n,!0),a(r)}},mo}())));var xo,Ro,Po,Ao,To,Co={};!function(){if(To)return Co;To=1;var t=L(),r=Gi(),n=Wi(),e=function(){if(Ao)return Po;Ao=1;var t=au().forEach,r=function(){if(Ro)return xo;Ro=1;var t=R();return xo=function(r,n){var e=[][r];return!!e&&t(function(){e.call(null,n||function(){return 1},1)})}}()("forEach");return Po=r?[].forEach:function(r){return t(this,r,arguments.length>1?arguments[1]:void 0)},Po}(),u=bn(),i=function(t){if(t&&t.forEach!==e)try{u(t,"forEach",e)}catch(r){t.forEach=e}};for(var o in r)r[o]&&i(t[o]&&t[o].prototype);i(n)}();var ko=new WeakMap;function zo(t){var r=ko.get(t);if(r)return r;var e=function(t){var r={},e=new Set,u=e.add.bind(e),i=new Set,o=null;return[function(r){return i.add(r),o||(o=function(t){t.added.forEach(u),t.removed.forEach(u),t.updated.forEach(u),i.forEach(function(t){return t()})},n.CursorEditor.on(t,"change",o)),function(){i.delete(r),o&&0===i.size&&(n.CursorEditor.off(t,"change",o),o=null)}},function(){return 0===e.size?r:(e.forEach(function(e){var u=n.CursorEditor.cursorState(t,e);null!==u?r[e]=u:delete r[e.toString()]}),e.clear(),r=Vi({},r))}]}(t);return t&&ko.set(t,e),e}function Io(){return zo(Xi())}function Lo(){var t=Bi(Io(),2),r=t[0],n=t[1];return ro.useSyncExternalStore(r,n)}var Mo=Object.freeze([]);t.EditorContext=E,t.getCursorRange=Ui,t.useEditorStatic=j,t.useRemoteCursorOverlayPositions=function(t){var n;void 0===t&&(t={});var e,u,i,o=t.containerRef,f=t.shouldGenerateOverlay,c=function(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var u=0;for(e=Object.getOwnPropertySymbols(t);u<e.length;u++)r.indexOf(e[u])<0&&Object.prototype.propertyIsEnumerable.call(t,e[u])&&(n[e[u]]=t[e[u]])}return n}(t,["containerRef","shouldGenerateOverlay"]),a=Xi(),s=Lo(),l=(e=Bi(r.useReducer(function(t){return t+1},0),2)[1],u=r.useRef(null),i=function(){u.current&&(cancelAnimationFrame(u.current),u.current=0)},r.useEffect(i),r.useEffect(function(){return i},[]),r.useCallback(function(t){void 0===t&&(t=!1),t?e():u.current||(u.current=requestAnimationFrame(e))},[])),v=r.useRef(new WeakMap),p=Bi(r.useState({}),2),d=p[0],h=p[1],y=!("refreshOnResize"in c)||(null===(n=c.refreshOnResize)||void 0===n||n);!function(t,n){var e=r.useRef(n);e.current=n;var u=Bi(r.useState(function(){return new ResizeObserver(function(){e.current()})}),1)[0];r.useEffect(function(){if(null==t?void 0:t.current){var r=t.current;return u.observe(r),function(){return u.unobserve(r)}}},[u,t])}(y?o:void 0,function(){v.current=new WeakMap,l("debounced"!==y)}),r.useLayoutEffect(function(){var t,r,n;if(!o||o.current){var e=null===(t=null==o?void 0:o.current)||void 0===t?void 0:t.getBoundingClientRect(),u=null!==(r=null==e?void 0:e.x)&&void 0!==r?r:0,i=null!==(n=null==e?void 0:e.y)&&void 0!==n?n:0,c=Object.keys(d).length!==Object.keys(s).length,l=Object.fromEntries(Object.entries(s).map(function(t){var r=Bi(t,2),n=r[0],e=r[1],o=e.relativeSelection&&Ui(a,e);if(!o)return[n,Mo];var s=v.current.get(o);if(s)return[n,s];var l=Hi(a,o,{xOffset:u,yOffset:i,shouldGenerateOverlay:f});return c=!0,v.current.set(o,l),[n,l]}));c&&h(l)}});var g=r.useMemo(function(){return Object.entries(s).map(function(t){var r,n,e=Bi(t,2),u=e[0],i=e[1],o=i.relativeSelection&&Ui(a,i),f=d[u];return Vi(Vi({},i),{range:o,caretPosition:null!==(r=null==f?void 0:f.caretPosition)&&void 0!==r?r:null,selectionRects:null!==(n=null==f?void 0:f.selectionRects)&&void 0!==n?n:Mo})})},[s,a,d]);return[g,r.useCallback(function(){v.current=new WeakMap,l(!0)},[l])]},t.useRemoteCursorStates=Lo,t.useRemoteCursorStatesSelector=function(t,r){var n=Bi(Io(),2),e=n[0],u=n[1];return lo.useSyncExternalStoreWithSelector(e,u,null,t,r)}});
|
|
2
2
|
//# sourceMappingURL=index.js.map
|