@wangeditor-next/yjs-for-react 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/hooks/useRemoteCursorOverlayPositions.d.ts +2 -2
- package/dist/hooks/useRemoteCursorStateStore.d.ts +1 -1
- package/dist/hooks/utils.d.ts +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils/getOverlayPosition.d.ts +4 -4
- package/package.json +6 -5
- package/dist/hooks/useDecorateRemoteCursors.d.ts +0 -24
- package/dist/hooks/useDecorateRemoteCursors.d.ts.map +0 -1
- package/dist/hooks/useRemoteCursorEditor.d.ts.map +0 -1
- package/dist/hooks/useRemoteCursorOverlayPositions.d.ts.map +0 -1
- package/dist/hooks/useRemoteCursorStateStore.d.ts.map +0 -1
- package/dist/hooks/useRemoteCursorStates.d.ts.map +0 -1
- package/dist/hooks/useUnsetCursorPositionOnBlur.d.ts +0 -2
- package/dist/hooks/useUnsetCursorPositionOnBlur.d.ts.map +0 -1
- package/dist/hooks/utils.d.ts.map +0 -1
- package/dist/index.cjs +0 -453
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.global.js +0 -31877
- package/dist/index.global.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/utils/getCursorRange.d.ts.map +0 -1
- package/dist/utils/getOverlayPosition.d.ts.map +0 -1
- package/dist/utils/react-editor-to-dom-range-safe.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("react"),require("@wangeditor-next/yjs"),require("slate"),require("@wangeditor-next/editor")):"function"==typeof define&&define.amd?define(["exports","react","@wangeditor-next/yjs","slate","@wangeditor-next/editor"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).WangEditorCodeHighLight={},t.e,t.yjs,t.slate,t.editor)}(this,(function(t,e,r,n,o){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=i(e),a=e.createContext(null),c=function(){var t=e.useContext(a);return t||console.warn("The `useEditorStatic` hook must be used inside the <EditorContext> component's context."),t},f=function(){return f=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},f.apply(this,arguments)};function s(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(t){var e={exports:{}};return t(e,e.exports),e.exports
|
|
2
2
|
/**
|
|
3
3
|
* @license React
|
|
4
4
|
* use-sync-external-store-shim.production.min.js
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This source code is licensed under the MIT license found in the
|
|
9
9
|
* LICENSE file in the root directory of this source tree.
|
|
10
|
-
*/}var p="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},
|
|
10
|
+
*/}var p="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},d=u.default.useState,h=u.default.useEffect,y=u.default.useLayoutEffect,g=u.default.useDebugValue;function b(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!p(t,r)}catch(t){return!0}}var m="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(t,e){return e()}:function(t,e){var r=e(),n=d({inst:{value:r,getSnapshot:e}}),o=n[0].inst,i=n[1];return y((function(){o.value=r,o.getSnapshot=e,b(o)&&i({inst:o})}),[t,r,e]),h((function(){return b(o)&&i({inst:o}),t((function(){b(o)&&i({inst:o})}))}),[t]),g(r),r},S={useSyncExternalStore:void 0!==u.default.useSyncExternalStore?u.default.useSyncExternalStore:m};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* use-sync-external-store-shim.development.js
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
* This source code is licensed under the MIT license found in the
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
v((function(t,e){}));var w=v((function(t){t.exports=S}));
|
|
21
21
|
/**
|
|
22
22
|
* @license React
|
|
23
23
|
* use-sync-external-store-shim/with-selector.production.min.js
|
|
@@ -26,7 +26,7 @@ h((function(t,e){}));var x=h((function(t){t.exports=S}));
|
|
|
26
26
|
*
|
|
27
27
|
* This source code is licensed under the MIT license found in the
|
|
28
28
|
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/var
|
|
29
|
+
*/var O="function"==typeof Object.is?Object.is:function(t,e){return t===e&&(0!==t||1/t==1/e)||t!=t&&e!=e},E=w.useSyncExternalStore,j=u.default.useRef,x=u.default.useEffect,R=u.default.useMemo,P=u.default.useDebugValue,A={useSyncExternalStoreWithSelector:function(t,e,r,n,o){var i=j(null);if(null===i.current){var u={hasValue:!1,value:null};i.current=u}else u=i.current;i=R((function(){function t(t){if(!c){if(c=!0,i=t,t=n(t),void 0!==o&&u.hasValue){var e=u.value;if(o(e,t))return a=e}return a=t}if(e=a,O(i,t))return e;var r=n(t);return void 0!==o&&o(e,r)?e:(i=t,a=r)}var i,a,c=!1,f=void 0===r?null:r;return[function(){return t(e())},null===f?void 0:function(){return t(f())}]}),[e,r,n,o]);var a=E(t,i[0],i[1]);return x((function(){u.hasValue=!0,u.value=a}),[a]),P(a),a}};
|
|
30
30
|
/**
|
|
31
31
|
* @license React
|
|
32
32
|
* use-sync-external-store-shim/with-selector.development.js
|
|
@@ -36,5 +36,5 @@ h((function(t,e){}));var x=h((function(t){t.exports=S}));
|
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
38
|
*/
|
|
39
|
-
h((function(t,e){}));var C,L,I=h((function(t){t.exports=k})),z=function(t){return t&&t.Math==Math&&t},_=z("object"==typeof globalThis&&globalThis)||z("object"==typeof window&&window)||z("object"==typeof self&&self)||z("object"==typeof d&&d)||function(){return this}()||Function("return this")(),M=Function.prototype,F=M.bind,D=M.call,N=F&&F.bind(D),W=F?function(t){return t&&N(D,t)}:function(t){return t&&function(){return D.apply(t,arguments)}},G=function(t){try{return!!t()}catch(t){return!0}},B=W({}.toString),V=W("".slice),X=function(t){return V(B(t),8,-1)},U=_.Object,q=W("".split),Y=G((function(){return!U("z").propertyIsEnumerable(0)}))?function(t){return"String"==X(t)?q(t,""):U(t)}:U,H=_.TypeError,K=function(t){if(null==t)throw H("Can't call method on "+t);return t},$=function(t){return Y(K(t))},J=Object.defineProperty,Q=function(t,e){try{J(_,t,{value:e,configurable:!0,writable:!0})}catch(r){_[t]=e}return e},Z="__core-js_shared__",tt=_[Z]||Q(Z,{}),et=h((function(t){(t.exports=function(t,e){return tt[t]||(tt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),rt=_.Object,nt=function(t){return rt(K(t))},ot=W({}.hasOwnProperty),it=Object.hasOwn||function(t,e){return ot(nt(t),e)},ut=0,at=Math.random(),ct=W(1..toString),ft=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ct(++ut+at,36)},st=function(t){return"function"==typeof t},lt=function(t,e){return arguments.length<2?(r=_[t],st(r)?r:void 0):_[t]&&_[t][e];var r},vt=lt("navigator","userAgent")||"",dt=_.process,ht=_.Deno,pt=dt&&dt.versions||ht&&ht.version,yt=pt&&pt.v8;yt&&(L=(C=yt.split("."))[0]>0&&C[0]<4?1:+(C[0]+C[1])),!L&&vt&&(!(C=vt.match(/Edge\/(\d+)/))||C[1]>=74)&&(C=vt.match(/Chrome\/(\d+)/))&&(L=+C[1]);var gt,bt=L,mt=!!Object.getOwnPropertySymbols&&!G((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&bt&&bt<41})),wt=mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=et("wks"),St=_.Symbol,xt=St&&St.for,Et=wt?St:St&&St.withoutSetter||ft,jt=function(t){if(!it(Ot,t)||!mt&&"string"!=typeof Ot[t]){var e="Symbol."+t;mt&&it(St,t)?Ot[t]=St[t]:Ot[t]=wt&&xt?xt(e):Et(e)}return Ot[t]},Tt=function(t){return"object"==typeof t?null!==t:st(t)},Pt=_.String,Rt=_.TypeError,At=function(t){if(Tt(t))return t;throw Rt(Pt(t)+" is not an object")},kt=!G((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Ct=_.document,Lt=Tt(Ct)&&Tt(Ct.createElement),It=function(t){return Lt?Ct.createElement(t):{}},zt=!kt&&!G((function(){return 7!=Object.defineProperty(It("div"),"a",{get:function(){return 7}}).a})),_t=Function.prototype.call,Mt=_t.bind?_t.bind(_t):function(){return _t.apply(_t,arguments)},Ft=W({}.isPrototypeOf),Dt=_.Object,Nt=wt?function(t){return"symbol"==typeof t}:function(t){var e=lt("Symbol");return st(e)&&Ft(e.prototype,Dt(t))},Wt=_.String,Gt=function(t){try{return Wt(t)}catch(t){return"Object"}},Bt=_.TypeError,Vt=function(t){if(st(t))return t;throw Bt(Gt(t)+" is not a function")},Xt=function(t,e){var r=t[e];return null==r?void 0:Vt(r)},Ut=_.TypeError,qt=_.TypeError,Yt=jt("toPrimitive"),Ht=function(t,e){if(!Tt(t)||Nt(t))return t;var r,n=Xt(t,Yt);if(n){if(void 0===e&&(e="default"),r=Mt(n,t,e),!Tt(r)||Nt(r))return r;throw qt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&st(r=t.toString)&&!Tt(n=Mt(r,t)))return n;if(st(r=t.valueOf)&&!Tt(n=Mt(r,t)))return n;if("string"!==e&&st(r=t.toString)&&!Tt(n=Mt(r,t)))return n;throw Ut("Can't convert object to primitive value")}(t,e)},Kt=function(t){var e=Ht(t,"string");return Nt(e)?e:e+""},$t=_.TypeError,Jt=Object.defineProperty,Qt=kt?Jt:function(t,e,r){if(At(t),e=Kt(e),At(r),zt)try{return Jt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw $t("Accessors not supported");return"value"in r&&(t[e]=r.value),t},Zt={f:Qt},te=Math.ceil,ee=Math.floor,re=function(t){var e=+t;return e!=e||0===e?0:(e>0?ee:te)(e)},ne=Math.max,oe=Math.min,ie=function(t,e){var r=re(t);return r<0?ne(r+e,0):oe(r,e)},ue=Math.min,ae=function(t){return(e=t.length)>0?ue(re(e),9007199254740991):0;var e},ce=function(t){return function(e,r,n){var o,i=$(e),u=ae(i),a=ie(n,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},fe={includes:ce(!0),indexOf:ce(!1)},se={},le=fe.indexOf,ve=W([].push),de=function(t,e){var r,n=$(t),o=0,i=[];for(r in n)!it(se,r)&&it(n,r)&&ve(i,r);for(;e.length>o;)it(n,r=e[o++])&&(~le(i,r)||ve(i,r));return i},he=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],pe=Object.keys||function(t){return de(t,he)},ye=kt?Object.defineProperties:function(t,e){At(t);for(var r,n=$(e),o=pe(e),i=o.length,u=0;i>u;)Zt.f(t,r=o[u++],n[r]);return t},ge=lt("document","documentElement"),be=et("keys"),me=function(t){return be[t]||(be[t]=ft(t))},we="prototype",Oe="script",Se=me("IE_PROTO"),xe=function(){},Ee=function(t){return"<"+Oe+">"+t+"</"+Oe+">"},je=function(t){t.write(Ee("")),t.close();var e=t.parentWindow.Object;return t=null,e},Te=function(){try{gt=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;Te="undefined"!=typeof document?document.domain&>?je(gt):(e=It("iframe"),r="java"+Oe+":",e.style.display="none",ge.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ee("document.F=Object")),t.close(),t.F):je(gt);for(var n=he.length;n--;)delete Te[we][he[n]];return Te()};se[Se]=!0;var Pe=Object.create||function(t,e){var r;return null!==t?(xe[we]=At(t),r=new xe,xe[we]=null,r[Se]=t):r=Te(),void 0===e?r:ye(r,e)},Re=jt("unscopables"),Ae=Array.prototype;null==Ae[Re]&&Zt.f(Ae,Re,{configurable:!0,value:Pe(null)});var ke=function(t){Ae[Re][t]=!0},Ce={},Le=W(Function.toString);st(tt.inspectSource)||(tt.inspectSource=function(t){return Le(t)});var Ie,ze,_e,Me=tt.inspectSource,Fe=_.WeakMap,De=st(Fe)&&/native code/.test(Me(Fe)),Ne=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},We=kt?function(t,e,r){return Zt.f(t,e,Ne(1,r))}:function(t,e,r){return t[e]=r,t},Ge="Object already initialized",Be=_.TypeError,Ve=_.WeakMap;if(De||tt.state){var Xe=tt.state||(tt.state=new Ve),Ue=W(Xe.get),qe=W(Xe.has),Ye=W(Xe.set);Ie=function(t,e){if(qe(Xe,t))throw new Be(Ge);return e.facade=t,Ye(Xe,t,e),e},ze=function(t){return Ue(Xe,t)||{}},_e=function(t){return qe(Xe,t)}}else{var He=me("state");se[He]=!0,Ie=function(t,e){if(it(t,He))throw new Be(Ge);return e.facade=t,We(t,He,e),e},ze=function(t){return it(t,He)?t[He]:{}},_e=function(t){return it(t,He)}}var Ke,$e,Je,Qe={set:Ie,get:ze,has:_e,enforce:function(t){return _e(t)?ze(t):Ie(t,{})},getterFor:function(t){return function(e){var r;if(!Tt(e)||(r=ze(e)).type!==t)throw Be("Incompatible receiver, "+t+" required");return r}}},Ze={}.propertyIsEnumerable,tr=Object.getOwnPropertyDescriptor,er=tr&&!Ze.call({1:2},1)?function(t){var e=tr(this,t);return!!e&&e.enumerable}:Ze,rr={f:er},nr=Object.getOwnPropertyDescriptor,or=kt?nr:function(t,e){if(t=$(t),e=Kt(e),zt)try{return nr(t,e)}catch(t){}if(it(t,e))return Ne(!Mt(rr.f,t,e),t[e])},ir={f:or},ur=Function.prototype,ar=kt&&Object.getOwnPropertyDescriptor,cr=it(ur,"name"),fr={EXISTS:cr,PROPER:cr&&"something"===function(){}.name,CONFIGURABLE:cr&&(!kt||kt&&ar(ur,"name").configurable)},sr=h((function(t){var e=fr.CONFIGURABLE,r=Qe.get,n=Qe.enforce,o=String(String).split("String");(t.exports=function(t,r,i,u){var a,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,s=!!u&&!!u.noTargetGet,l=u&&void 0!==u.name?u.name:r;st(i)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!it(i,"name")||e&&i.name!==l)&&We(i,"name",l),(a=n(i)).source||(a.source=o.join("string"==typeof l?l:""))),t!==_?(c?!s&&t[r]&&(f=!0):delete t[r],f?t[r]=i:We(t,r,i)):f?t[r]=i:Q(r,i)})(Function.prototype,"toString",(function(){return st(this)&&r(this).source||Me(this)}))})),lr=he.concat("length","prototype"),vr=Object.getOwnPropertyNames||function(t){return de(t,lr)},dr={f:vr},hr={f:Object.getOwnPropertySymbols},pr=W([].concat),yr=lt("Reflect","ownKeys")||function(t){var e=dr.f(At(t)),r=hr.f;return r?pr(e,r(t)):e},gr=function(t,e){for(var r=yr(e),n=Zt.f,o=ir.f,i=0;i<r.length;i++){var u=r[i];it(t,u)||n(t,u,o(e,u))}},br=/#|\.prototype\./,mr=function(t,e){var r=Or[wr(t)];return r==xr||r!=Sr&&(st(e)?G(e):!!e)},wr=mr.normalize=function(t){return String(t).replace(br,".").toLowerCase()},Or=mr.data={},Sr=mr.NATIVE="N",xr=mr.POLYFILL="P",Er=mr,jr=ir.f,Tr=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?_:f?_[a]||Q(a,{}):(_[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=jr(r,n))&&u.value:r[n],!Er(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;gr(i,o)}(t.sham||o&&o.sham)&&We(i,"sham",!0),sr(r,n,i,t)}},Pr=!G((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Rr=me("IE_PROTO"),Ar=_.Object,kr=Ar.prototype,Cr=Pr?Ar.getPrototypeOf:function(t){var e=nt(t);if(it(e,Rr))return e[Rr];var r=e.constructor;return st(r)&&e instanceof r?r.prototype:e instanceof Ar?kr:null},Lr=jt("iterator"),Ir=!1;[].keys&&("next"in(Je=[].keys())?($e=Cr(Cr(Je)))!==Object.prototype&&(Ke=$e):Ir=!0);var zr=null==Ke||G((function(){var t={};return Ke[Lr].call(t)!==t}));zr&&(Ke={}),st(Ke[Lr])||sr(Ke,Lr,(function(){return this}));var _r={IteratorPrototype:Ke,BUGGY_SAFARI_ITERATORS:Ir},Mr=Zt.f,Fr=jt("toStringTag"),Dr=function(t,e,r){t&&!it(t=r?t:t.prototype,Fr)&&Mr(t,Fr,{configurable:!0,value:e})},Nr=_r.IteratorPrototype,Wr=function(){return this},Gr=_.String,Br=_.TypeError,Vr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=W(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return At(r),function(t){if("object"==typeof t||st(t))return t;throw Br("Can't set "+Gr(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Xr=fr.PROPER,Ur=fr.CONFIGURABLE,qr=_r.IteratorPrototype,Yr=_r.BUGGY_SAFARI_ITERATORS,Hr=jt("iterator"),Kr="keys",$r="values",Jr="entries",Qr=function(){return this},Zr=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=Pe(Nr,{next:Ne(+!n,r)}),Dr(t,o,!1),Ce[o]=Wr}(r,e,n);var a,c,f,s=function(t){if(t===o&&p)return p;if(!Yr&&t in d)return d[t];switch(t){case Kr:case $r:case Jr:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",v=!1,d=t.prototype,h=d[Hr]||d["@@iterator"]||o&&d[o],p=!Yr&&h||s(o),y="Array"==e&&d.entries||h;if(y&&(a=Cr(y.call(new t)))!==Object.prototype&&a.next&&(Cr(a)!==qr&&(Vr?Vr(a,qr):st(a[Hr])||sr(a,Hr,Qr)),Dr(a,l,!0)),Xr&&o==$r&&h&&h.name!==$r&&(Ur?We(d,"name",$r):(v=!0,p=function(){return Mt(h,this)})),o)if(c={values:s($r),keys:i?p:s(Kr),entries:s(Jr)},u)for(f in c)(Yr||v||!(f in d))&&sr(d,f,c[f]);else Tr({target:e,proto:!0,forced:Yr||v},c);return d[Hr]!==p&&sr(d,Hr,p,{name:o}),Ce[e]=p,c},tn="Array Iterator",en=Qe.set,rn=Qe.getterFor(tn),nn=Zr(Array,"Array",(function(t,e){en(this,{type:tn,target:$(t),index:0,kind:e})}),(function(){var t=rn(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Ce.Arguments=Ce.Array,ke("keys"),ke("values"),ke("entries");var on={};on[jt("toStringTag")]="z";var un="[object z]"===String(on),an=jt("toStringTag"),cn=_.Object,fn="Arguments"==X(function(){return arguments}()),sn=un?X:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=cn(t),an))?r:fn?X(e):"Object"==(n=X(e))&&st(e.callee)?"Arguments":n},ln=un?{}.toString:function(){return"[object "+sn(this)+"]"};un||sr(Object.prototype,"toString",ln,{unsafe:!0});var vn=_.String,dn=function(t){if("Symbol"===sn(t))throw TypeError("Cannot convert a Symbol value to a string");return vn(t)},hn=fr.PROPER,pn="toString",yn=RegExp.prototype,gn=yn[pn],bn=W((function(){var t=At(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e})),mn=G((function(){return"/a/b"!=gn.call({source:"a",flags:"b"})})),wn=hn&&gn.name!=pn;(mn||wn)&&sr(RegExp.prototype,pn,(function(){var t=At(this),e=dn(t.source),r=t.flags;return"/"+e+"/"+dn(void 0===r&&Ft(yn,t)&&!("flags"in yn)?bn(t):r)}),{unsafe:!0});var On=function(t,e,r){var n=Kt(e);n in t?Zt.f(t,n,Ne(0,r)):t[n]=r},Sn=_.Array,xn=Math.max,En=dr.f,jn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Tn=function(t){try{return En(t)}catch(t){return function(t,e,r){for(var n=ae(t),o=ie(e,n),i=ie(void 0===r?n:r,n),u=Sn(xn(i-o,0)),a=0;o<i;o++,a++)On(u,a,t[o]);return u.length=a,u}(jn)}},Pn={f:function(t){return jn&&"Window"==X(t)?Tn(t):En($(t))}},Rn=G((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),An=Object.isExtensible,kn=G((function(){An(1)}))||Rn?function(t){return!!Tt(t)&&((!Rn||"ArrayBuffer"!=X(t))&&(!An||An(t)))}:An,Cn=!G((function(){return Object.isExtensible(Object.preventExtensions({}))})),Ln=h((function(t){var e=Zt.f,r=!1,n=ft("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=dr.f,e=W([].splice),o={};o[n]=1,t(o).length&&(dr.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},Tr({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Pn.f}))},fastKey:function(t,e){if(!Tt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!it(t,n)){if(!kn(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!it(t,n)){if(!kn(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return Cn&&r&&kn(t)&&!it(t,n)&&i(t),t}};se[n]=!0})),In=W(W.bind),zn=function(t,e){return Vt(t),void 0===e?t:In?In(t,e):function(){return t.apply(e,arguments)}},_n=jt("iterator"),Mn=Array.prototype,Fn=jt("iterator"),Dn=function(t){if(null!=t)return Xt(t,Fn)||Xt(t,"@@iterator")||Ce[sn(t)]},Nn=_.TypeError,Wn=function(t,e,r){var n,o;At(t);try{if(!(n=Xt(t,"return"))){if("throw"===e)throw r;return r}n=Mt(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return At(n),r},Gn=_.TypeError,Bn=function(t,e){this.stopped=t,this.result=e},Vn=Bn.prototype,Xn=function(t,e,r){var n,o,i,u,a,c,f,s=r&&r.that,l=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),h=zn(e,s),p=function(t){return n&&Wn(n,"normal",t),new Bn(!0,t)},y=function(t){return l?(At(t),d?h(t[0],t[1],p):h(t[0],t[1])):d?h(t,p):h(t)};if(v)n=t;else{if(!(o=Dn(t)))throw Gn(Gt(t)+" is not iterable");if(function(t){return void 0!==t&&(Ce.Array===t||Mn[_n]===t)}(o)){for(i=0,u=ae(t);u>i;i++)if((a=y(t[i]))&&Ft(Vn,a))return a;return new Bn(!1)}n=function(t,e){var r=arguments.length<2?Dn(t):e;if(Vt(r))return At(Mt(r,t));throw Nn(Gt(t)+" is not iterable")}(t,o)}for(c=n.next;!(f=Mt(c,n)).done;){try{a=y(f.value)}catch(t){Wn(n,"throw",t)}if("object"==typeof a&&a&&Ft(Vn,a))return a}return new Bn(!1)},Un=_.TypeError,qn=function(t,e){if(Ft(e,t))return t;throw Un("Incorrect invocation")},Yn=jt("iterator"),Hn=!1;try{var Kn=0,$n={next:function(){return{done:!!Kn++}},return:function(){Hn=!0}};$n[Yn]=function(){return this},Array.from($n,(function(){throw 2}))}catch(t){}var Jn=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=_[t],a=u&&u.prototype,c=u,f={},s=function(t){var e=W(a[t]);sr(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!Tt(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!Tt(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!Tt(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Er(t,!st(u)||!(o||a.forEach&&!G((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),Ln.enable();else if(Er(t,!0)){var l=new c,v=l[i](o?{}:-0,1)!=l,d=G((function(){l.has(1)})),h=function(t,e){if(!e&&!Hn)return!1;var r=!1;try{var n={};n[Yn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){new u(t)})),p=!o&&G((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));h||((c=e((function(t,e){qn(t,a);var r=function(t,e,r){var n,o;return Vr&&st(n=e.constructor)&&n!==r&&Tt(o=n.prototype)&&o!==r.prototype&&Vr(t,o),t}(new u,t,c);return null!=e&&Xn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(d||p)&&(s("delete"),s("has"),n&&s("get")),(p||v)&&s(i),o&&a.clear&&delete a.clear}return f[t]=c,Tr({global:!0,forced:c!=u},f),Dr(c,t),o||r.setStrong(c,t,n),c},Qn=function(t,e,r){for(var n in e)sr(t,n,e[n],r);return t},Zn=jt("species"),to=Zt.f,eo=Ln.fastKey,ro=Qe.set,no=Qe.getterFor,oo={getConstructor:function(t,e,r,n){var o=t((function(t,o){qn(t,i),ro(t,{type:e,index:Pe(null),first:void 0,last:void 0,size:0}),kt||(t.size=0),null!=o&&Xn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=no(e),a=function(t,e,r){var n,o,i=u(t),a=c(t,e);return a?a.value=r:(i.last=a={index:o=eo(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),kt?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},c=function(t,e){var r,n=u(t),o=eo(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return Qn(i,{clear:function(){for(var t=u(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,kt?t.size=0:this.size=0},delete:function(t){var e=this,r=u(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),kt?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=u(this),n=zn(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),Qn(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),kt&&to(i,"size",{get:function(){return u(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=no(e),i=no(n);Zr(t,e,(function(t,e){ro(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),function(t){var e=lt(t),r=Zt.f;kt&&e&&!e[Zn]&&r(e,Zn,{configurable:!0,get:function(){return this}})}(e)}};Jn("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),oo);var io=W("".charAt),uo=W("".charCodeAt),ao=W("".slice),co=function(t){return function(e,r){var n,o,i=dn(K(e)),u=re(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=uo(i,u))<55296||n>56319||u+1===a||(o=uo(i,u+1))<56320||o>57343?t?io(i,u):n:t?ao(i,u,u+2):o-56320+(n-55296<<10)+65536}},fo={codeAt:co(!1),charAt:co(!0)}.charAt,so="String Iterator",lo=Qe.set,vo=Qe.getterFor(so);Zr(String,"String",(function(t){lo(this,{type:so,string:dn(t),index:0})}),(function(){var t,e=vo(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=fo(r,n),e.index+=t.length,{value:t,done:!1})}));var ho=Array.isArray||function(t){return"Array"==X(t)},po=function(){},yo=[],go=lt("Reflect","construct"),bo=/^\s*(?:class|function)\b/,mo=W(bo.exec),wo=!bo.exec(po),Oo=function(t){if(!st(t))return!1;try{return go(po,yo,t),!0}catch(t){return!1}},So=!go||G((function(){var t;return Oo(Oo.call)||!Oo(Object)||!Oo((function(){t=!0}))||t}))?function(t){if(!st(t))return!1;switch(sn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return wo||!!mo(bo,Me(t))}:Oo,xo=jt("species"),Eo=_.Array,jo=function(t,e){return new(function(t){var e;return ho(t)&&(e=t.constructor,(So(e)&&(e===Eo||ho(e.prototype))||Tt(e)&&null===(e=e[xo]))&&(e=void 0)),void 0===e?Eo:e}(t))(0===e?0:e)},To=W([].push),Po=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,f,s,l){for(var v,d,h=nt(c),p=Y(h),y=zn(f,s),g=ae(p),b=0,m=l||jo,w=e?m(c,g):r||u?m(c,0):void 0;g>b;b++)if((a||b in p)&&(d=y(v=p[b],b,h),t))if(e)w[b]=d;else if(d)switch(t){case 3:return!0;case 5:return v;case 6:return b;case 2:To(w,v)}else switch(t){case 4:return!1;case 7:To(w,v)}return i?-1:n||o?o:w}},Ro={forEach:Po(0),map:Po(1),filter:Po(2),some:Po(3),every:Po(4),find:Po(5),findIndex:Po(6),filterReject:Po(7)},Ao=Ln.getWeakData,ko=Qe.set,Co=Qe.getterFor,Lo=Ro.find,Io=Ro.findIndex,zo=W([].splice),_o=0,Mo=function(t){return t.frozen||(t.frozen=new Fo)},Fo=function(){this.entries=[]},Do=function(t,e){return Lo(t.entries,(function(t){return t[0]===e}))};Fo.prototype={get:function(t){var e=Do(this,t);if(e)return e[1]},has:function(t){return!!Do(this,t)},set:function(t,e){var r=Do(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Io(this.entries,(function(e){return e[0]===t}));return~e&&zo(this.entries,e,1),!!~e}};var No,Wo={getConstructor:function(t,e,r,n){var o=t((function(t,o){qn(t,i),ko(t,{type:e,id:_o++,frozen:void 0}),null!=o&&Xn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=Co(e),a=function(t,e,r){var n=u(t),o=Ao(At(e),!0);return!0===o?Mo(n).set(e,r):o[n.id]=r,t};return Qn(i,{delete:function(t){var e=u(this);if(!Tt(t))return!1;var r=Ao(t);return!0===r?Mo(e).delete(t):r&&it(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!Tt(t))return!1;var r=Ao(t);return!0===r?Mo(e).has(t):r&&it(r,e.id)}}),Qn(i,r?{get:function(t){var e=u(this);if(Tt(t)){var r=Ao(t);return!0===r?Mo(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Go=Qe.enforce,Bo=!_.ActiveXObject&&"ActiveXObject"in _,Vo=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},Xo=Jn("WeakMap",Vo,Wo);if(De&&Bo){No=Wo.getConstructor(Vo,"WeakMap",!0),Ln.enable();var Uo=Xo.prototype,qo=W(Uo.delete),Yo=W(Uo.has),Ho=W(Uo.get),Ko=W(Uo.set);Qn(Uo,{delete:function(t){if(Tt(t)&&!kn(t)){var e=Go(this);return e.frozen||(e.frozen=new No),qo(this,t)||e.frozen.delete(t)}return qo(this,t)},has:function(t){if(Tt(t)&&!kn(t)){var e=Go(this);return e.frozen||(e.frozen=new No),Yo(this,t)||e.frozen.has(t)}return Yo(this,t)},get:function(t){if(Tt(t)&&!kn(t)){var e=Go(this);return e.frozen||(e.frozen=new No),Yo(this,t)?Ho(this,t):e.frozen.get(t)}return Ho(this,t)},set:function(t,e){if(Tt(t)&&!kn(t)){var r=Go(this);r.frozen||(r.frozen=new No),Yo(this,t)?Ko(this,t,e):r.frozen.set(t,e)}else Ko(this,t,e);return this}})}var $o,Jo,Qo={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},Zo=It("span").classList,ti=Zo&&Zo.constructor&&Zo.constructor.prototype,ei=ti===Object.prototype?void 0:ti,ri=Ro.forEach,ni=!!(Jo=[]["forEach"])&&G((function(){Jo.call(null,$o||function(){throw 1},1)}))?[].forEach:function(t){return ri(this,t,arguments.length>1?arguments[1]:void 0)},oi=function(t){if(t&&t.forEach!==ni)try{We(t,"forEach",ni)}catch(e){t.forEach=ni}};for(var ii in Qo)Qo[ii]&&oi(_[ii]&&_[ii].prototype);oi(ei);var ui=jt("iterator"),ai=jt("toStringTag"),ci=nn.values,fi=function(t,e){if(t){if(t[ui]!==ci)try{We(t,ui,ci)}catch(e){t[ui]=ci}if(t[ai]||We(t,ai,e),Qo[e])for(var r in nn)if(t[r]!==nn[r])try{We(t,r,nn[r])}catch(e){t[r]=nn[r]}}};for(var si in Qo)fi(_[si]&&_[si].prototype,si);fi(ei,"DOMTokenList");var li="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function vi(t){var e={exports:{}};return t(e,e.exports),e.exports}var di,hi,pi=function(t){return t&&t.Math==Math&&t},yi=pi("object"==typeof globalThis&&globalThis)||pi("object"==typeof window&&window)||pi("object"==typeof self&&self)||pi("object"==typeof li&&li)||function(){return this}()||Function("return this")(),gi=function(t){try{return!!t()}catch(t){return!0}},bi=!gi((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),mi=Function.prototype.call,wi=mi.bind?mi.bind(mi):function(){return mi.apply(mi,arguments)},Oi={}.propertyIsEnumerable,Si=Object.getOwnPropertyDescriptor,xi=Si&&!Oi.call({1:2},1)?function(t){var e=Si(this,t);return!!e&&e.enumerable}:Oi,Ei={f:xi},ji=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ti=Function.prototype,Pi=Ti.bind,Ri=Ti.call,Ai=Pi&&Pi.bind(Ri),ki=Pi?function(t){return t&&Ai(Ri,t)}:function(t){return t&&function(){return Ri.apply(t,arguments)}},Ci=ki({}.toString),Li=ki("".slice),Ii=function(t){return Li(Ci(t),8,-1)},zi=yi.Object,_i=ki("".split),Mi=gi((function(){return!zi("z").propertyIsEnumerable(0)}))?function(t){return"String"==Ii(t)?_i(t,""):zi(t)}:zi,Fi=yi.TypeError,Di=function(t){if(null==t)throw Fi("Can't call method on "+t);return t},Ni=function(t){return Mi(Di(t))},Wi=function(t){return"function"==typeof t},Gi=function(t){return"object"==typeof t?null!==t:Wi(t)},Bi=function(t,e){return arguments.length<2?(r=yi[t],Wi(r)?r:void 0):yi[t]&&yi[t][e];var r},Vi=ki({}.isPrototypeOf),Xi=Bi("navigator","userAgent")||"",Ui=yi.process,qi=yi.Deno,Yi=Ui&&Ui.versions||qi&&qi.version,Hi=Yi&&Yi.v8;Hi&&(hi=(di=Hi.split("."))[0]>0&&di[0]<4?1:+(di[0]+di[1])),!hi&&Xi&&(!(di=Xi.match(/Edge\/(\d+)/))||di[1]>=74)&&(di=Xi.match(/Chrome\/(\d+)/))&&(hi=+di[1]);var Ki=hi,$i=!!Object.getOwnPropertySymbols&&!gi((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&Ki&&Ki<41})),Ji=$i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Qi=yi.Object,Zi=Ji?function(t){return"symbol"==typeof t}:function(t){var e=Bi("Symbol");return Wi(e)&&Vi(e.prototype,Qi(t))},tu=yi.String,eu=function(t){try{return tu(t)}catch(t){return"Object"}},ru=yi.TypeError,nu=function(t){if(Wi(t))return t;throw ru(eu(t)+" is not a function")},ou=function(t,e){var r=t[e];return null==r?void 0:nu(r)},iu=yi.TypeError,uu=Object.defineProperty,au=function(t,e){try{uu(yi,t,{value:e,configurable:!0,writable:!0})}catch(r){yi[t]=e}return e},cu="__core-js_shared__",fu=yi[cu]||au(cu,{}),su=vi((function(t){(t.exports=function(t,e){return fu[t]||(fu[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.19.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),lu=yi.Object,vu=function(t){return lu(Di(t))},du=ki({}.hasOwnProperty),hu=Object.hasOwn||function(t,e){return du(vu(t),e)},pu=0,yu=Math.random(),gu=ki(1..toString),bu=function(t){return"Symbol("+(void 0===t?"":t)+")_"+gu(++pu+yu,36)},mu=su("wks"),wu=yi.Symbol,Ou=wu&&wu.for,Su=Ji?wu:wu&&wu.withoutSetter||bu,xu=function(t){if(!hu(mu,t)||!$i&&"string"!=typeof mu[t]){var e="Symbol."+t;$i&&hu(wu,t)?mu[t]=wu[t]:mu[t]=Ji&&Ou?Ou(e):Su(e)}return mu[t]},Eu=yi.TypeError,ju=xu("toPrimitive"),Tu=function(t){var e=function(t,e){if(!Gi(t)||Zi(t))return t;var r,n=ou(t,ju);if(n){if(void 0===e&&(e="default"),r=wi(n,t,e),!Gi(r)||Zi(r))return r;throw Eu("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&Wi(r=t.toString)&&!Gi(n=wi(r,t)))return n;if(Wi(r=t.valueOf)&&!Gi(n=wi(r,t)))return n;if("string"!==e&&Wi(r=t.toString)&&!Gi(n=wi(r,t)))return n;throw iu("Can't convert object to primitive value")}(t,e)}(t,"string");return Zi(e)?e:e+""},Pu=yi.document,Ru=Gi(Pu)&&Gi(Pu.createElement),Au=function(t){return Ru?Pu.createElement(t):{}},ku=!bi&&!gi((function(){return 7!=Object.defineProperty(Au("div"),"a",{get:function(){return 7}}).a})),Cu=Object.getOwnPropertyDescriptor,Lu={f:bi?Cu:function(t,e){if(t=Ni(t),e=Tu(e),ku)try{return Cu(t,e)}catch(t){}if(hu(t,e))return ji(!wi(Ei.f,t,e),t[e])}},Iu=yi.String,zu=yi.TypeError,_u=function(t){if(Gi(t))return t;throw zu(Iu(t)+" is not an object")},Mu=yi.TypeError,Fu=Object.defineProperty,Du={f:bi?Fu:function(t,e,r){if(_u(t),e=Tu(e),_u(r),ku)try{return Fu(t,e,r)}catch(t){}if("get"in r||"set"in r)throw Mu("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},Nu=bi?function(t,e,r){return Du.f(t,e,ji(1,r))}:function(t,e,r){return t[e]=r,t},Wu=ki(Function.toString);Wi(fu.inspectSource)||(fu.inspectSource=function(t){return Wu(t)});var Gu,Bu,Vu,Xu=fu.inspectSource,Uu=yi.WeakMap,qu=Wi(Uu)&&/native code/.test(Xu(Uu)),Yu=su("keys"),Hu=function(t){return Yu[t]||(Yu[t]=bu(t))},Ku={},$u="Object already initialized",Ju=yi.TypeError,Qu=yi.WeakMap;if(qu||fu.state){var Zu=fu.state||(fu.state=new Qu),ta=ki(Zu.get),ea=ki(Zu.has),ra=ki(Zu.set);Gu=function(t,e){if(ea(Zu,t))throw new Ju($u);return e.facade=t,ra(Zu,t,e),e},Bu=function(t){return ta(Zu,t)||{}},Vu=function(t){return ea(Zu,t)}}else{var na=Hu("state");Ku[na]=!0,Gu=function(t,e){if(hu(t,na))throw new Ju($u);return e.facade=t,Nu(t,na,e),e},Bu=function(t){return hu(t,na)?t[na]:{}},Vu=function(t){return hu(t,na)}}var oa={set:Gu,get:Bu,has:Vu,enforce:function(t){return Vu(t)?Bu(t):Gu(t,{})},getterFor:function(t){return function(e){var r;if(!Gi(e)||(r=Bu(e)).type!==t)throw Ju("Incompatible receiver, "+t+" required");return r}}},ia=Function.prototype,ua=bi&&Object.getOwnPropertyDescriptor,aa=hu(ia,"name"),ca={EXISTS:aa,PROPER:aa&&"something"===function(){}.name,CONFIGURABLE:aa&&(!bi||bi&&ua(ia,"name").configurable)},fa=vi((function(t){var e=ca.CONFIGURABLE,r=oa.get,n=oa.enforce,o=String(String).split("String");(t.exports=function(t,r,i,u){var a,c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,s=!!u&&!!u.noTargetGet,l=u&&void 0!==u.name?u.name:r;Wi(i)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!hu(i,"name")||e&&i.name!==l)&&Nu(i,"name",l),(a=n(i)).source||(a.source=o.join("string"==typeof l?l:""))),t!==yi?(c?!s&&t[r]&&(f=!0):delete t[r],f?t[r]=i:Nu(t,r,i)):f?t[r]=i:au(r,i)})(Function.prototype,"toString",(function(){return Wi(this)&&r(this).source||Xu(this)}))})),sa=Math.ceil,la=Math.floor,va=function(t){var e=+t;return e!=e||0===e?0:(e>0?la:sa)(e)},da=Math.max,ha=Math.min,pa=function(t,e){var r=va(t);return r<0?da(r+e,0):ha(r,e)},ya=Math.min,ga=function(t){return t>0?ya(va(t),9007199254740991):0},ba=function(t){return ga(t.length)},ma=function(t){return function(e,r,n){var o,i=Ni(e),u=ba(i),a=pa(n,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},wa={includes:ma(!0),indexOf:ma(!1)},Oa=wa.indexOf,Sa=ki([].push),xa=function(t,e){var r,n=Ni(t),o=0,i=[];for(r in n)!hu(Ku,r)&&hu(n,r)&&Sa(i,r);for(;e.length>o;)hu(n,r=e[o++])&&(~Oa(i,r)||Sa(i,r));return i},Ea=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ja=Ea.concat("length","prototype"),Ta={f:Object.getOwnPropertyNames||function(t){return xa(t,ja)}},Pa={f:Object.getOwnPropertySymbols},Ra=ki([].concat),Aa=Bi("Reflect","ownKeys")||function(t){var e=Ta.f(_u(t)),r=Pa.f;return r?Ra(e,r(t)):e},ka=function(t,e){for(var r=Aa(e),n=Du.f,o=Lu.f,i=0;i<r.length;i++){var u=r[i];hu(t,u)||n(t,u,o(e,u))}},Ca=/#|\.prototype\./,La=function(t,e){var r=za[Ia(t)];return r==Ma||r!=_a&&(Wi(e)?gi(e):!!e)},Ia=La.normalize=function(t){return String(t).replace(Ca,".").toLowerCase()},za=La.data={},_a=La.NATIVE="N",Ma=La.POLYFILL="P",Fa=La,Da=Lu.f,Na=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?yi:f?yi[a]||au(a,{}):(yi[a]||{}).prototype)for(n in e){if(i=e[n],o=t.noTargetGet?(u=Da(r,n))&&u.value:r[n],!Fa(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ka(i,o)}(t.sham||o&&o.sham)&&Nu(i,"sham",!0),fa(r,n,i,t)}},Wa=Function.prototype,Ga=Wa.apply,Ba=Wa.bind,Va=Wa.call,Xa="object"==typeof Reflect&&Reflect.apply||(Ba?Va.bind(Ga):function(){return Va.apply(Ga,arguments)}),Ua=Array.isArray||function(t){return"Array"==Ii(t)},qa={};qa[xu("toStringTag")]="z";var Ya,Ha="[object z]"===String(qa),Ka=xu("toStringTag"),$a=yi.Object,Ja="Arguments"==Ii(function(){return arguments}()),Qa=Ha?Ii:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=$a(t),Ka))?r:Ja?Ii(e):"Object"==(n=Ii(e))&&Wi(e.callee)?"Arguments":n},Za=yi.String,tc=function(t){if("Symbol"===Qa(t))throw TypeError("Cannot convert a Symbol value to a string");return Za(t)},ec=Object.keys||function(t){return xa(t,Ea)},rc=bi?Object.defineProperties:function(t,e){_u(t);for(var r,n=Ni(e),o=ec(e),i=o.length,u=0;i>u;)Du.f(t,r=o[u++],n[r]);return t},nc=Bi("document","documentElement"),oc="prototype",ic="script",uc=Hu("IE_PROTO"),ac=function(){},cc=function(t){return"<"+ic+">"+t+"</"+ic+">"},fc=function(t){t.write(cc("")),t.close();var e=t.parentWindow.Object;return t=null,e},sc=function(){try{Ya=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;sc="undefined"!=typeof document?document.domain&&Ya?fc(Ya):(e=Au("iframe"),r="java"+ic+":",e.style.display="none",nc.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(cc("document.F=Object")),t.close(),t.F):fc(Ya);for(var n=Ea.length;n--;)delete sc[oc][Ea[n]];return sc()};Ku[uc]=!0;var lc=Object.create||function(t,e){var r;return null!==t?(ac[oc]=_u(t),r=new ac,ac[oc]=null,r[uc]=t):r=sc(),void 0===e?r:rc(r,e)},vc=function(t,e,r){var n=Tu(e);n in t?Du.f(t,n,ji(0,r)):t[n]=r},dc=yi.Array,hc=Math.max,pc=Ta.f,yc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],gc={f:function(t){return yc&&"Window"==Ii(t)?function(t){try{return pc(t)}catch(t){return function(t){for(var e=ba(t),r=pa(void 0,e),n=pa(e,e),o=dc(hc(n-r,0)),i=0;r<n;r++,i++)vc(o,i,t[r]);return o.length=i,o}(yc)}}(t):pc(Ni(t))}},bc=ki([].slice),mc={f:xu},wc=yi,Oc=Du.f,Sc=Du.f,xc=xu("toStringTag"),Ec=function(t,e,r){t&&!hu(t=r?t:t.prototype,xc)&&Sc(t,xc,{configurable:!0,value:e})},jc=ki(ki.bind),Tc=function(t,e){return nu(t),void 0===e?t:jc?jc(t,e):function(){return t.apply(e,arguments)}},Pc=function(){},Rc=[],Ac=Bi("Reflect","construct"),kc=/^\s*(?:class|function)\b/,Cc=ki(kc.exec),Lc=!kc.exec(Pc),Ic=function(t){if(!Wi(t))return!1;try{return Ac(Pc,Rc,t),!0}catch(t){return!1}},zc=!Ac||gi((function(){var t;return Ic(Ic.call)||!Ic(Object)||!Ic((function(){t=!0}))||t}))?function(t){if(!Wi(t))return!1;switch(Qa(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Lc||!!Cc(kc,Xu(t))}:Ic,_c=xu("species"),Mc=yi.Array,Fc=function(t,e){return new(function(t){var e;return Ua(t)&&(e=t.constructor,(zc(e)&&(e===Mc||Ua(e.prototype))||Gi(e)&&null===(e=e[_c]))&&(e=void 0)),void 0===e?Mc:e}(t))(0===e?0:e)},Dc=ki([].push),Nc=function(t){var e=1==t,r=2==t,n=3==t,o=4==t,i=6==t,u=7==t,a=5==t||i;return function(c,f,s,l){for(var v,d,h=vu(c),p=Mi(h),y=Tc(f,s),g=ba(p),b=0,m=l||Fc,w=e?m(c,g):r||u?m(c,0):void 0;g>b;b++)if((a||b in p)&&(d=y(v=p[b],b,h),t))if(e)w[b]=d;else if(d)switch(t){case 3:return!0;case 5:return v;case 6:return b;case 2:Dc(w,v)}else switch(t){case 4:return!1;case 7:Dc(w,v)}return i?-1:n||o?o:w}},Wc={forEach:Nc(0),map:Nc(1),filter:Nc(2),some:Nc(3),every:Nc(4),find:Nc(5),findIndex:Nc(6),filterReject:Nc(7)},Gc=Wc.forEach,Bc=Hu("hidden"),Vc="Symbol",Xc="prototype",Uc=xu("toPrimitive"),qc=oa.set,Yc=oa.getterFor(Vc),Hc=Object[Xc],Kc=yi.Symbol,$c=Kc&&Kc[Xc],Jc=yi.TypeError,Qc=yi.QObject,Zc=Bi("JSON","stringify"),tf=Lu.f,ef=Du.f,rf=gc.f,nf=Ei.f,of=ki([].push),uf=su("symbols"),af=su("op-symbols"),cf=su("string-to-symbol-registry"),ff=su("symbol-to-string-registry"),sf=su("wks"),lf=!Qc||!Qc[Xc]||!Qc[Xc].findChild,vf=bi&&gi((function(){return 7!=lc(ef({},"a",{get:function(){return ef(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=tf(Hc,e);n&&delete Hc[e],ef(t,e,r),n&&t!==Hc&&ef(Hc,e,n)}:ef,df=function(t,e){var r=uf[t]=lc($c);return qc(r,{type:Vc,tag:t,description:e}),bi||(r.description=e),r},hf=function(t,e,r){t===Hc&&hf(af,e,r),_u(t);var n=Tu(e);return _u(r),hu(uf,n)?(r.enumerable?(hu(t,Bc)&&t[Bc][n]&&(t[Bc][n]=!1),r=lc(r,{enumerable:ji(0,!1)})):(hu(t,Bc)||ef(t,Bc,ji(1,{})),t[Bc][n]=!0),vf(t,n,r)):ef(t,n,r)},pf=function(t,e){_u(t);var r=Ni(e),n=ec(r).concat(mf(r));return Gc(n,(function(e){bi&&!wi(yf,r,e)||hf(t,e,r[e])})),t},yf=function(t){var e=Tu(t),r=wi(nf,this,e);return!(this===Hc&&hu(uf,e)&&!hu(af,e))&&(!(r||!hu(this,e)||!hu(uf,e)||hu(this,Bc)&&this[Bc][e])||r)},gf=function(t,e){var r=Ni(t),n=Tu(e);if(r!==Hc||!hu(uf,n)||hu(af,n)){var o=tf(r,n);return!o||!hu(uf,n)||hu(r,Bc)&&r[Bc][n]||(o.enumerable=!0),o}},bf=function(t){var e=rf(Ni(t)),r=[];return Gc(e,(function(t){hu(uf,t)||hu(Ku,t)||of(r,t)})),r},mf=function(t){var e=t===Hc,r=rf(e?af:Ni(t)),n=[];return Gc(r,(function(t){!hu(uf,t)||e&&!hu(Hc,t)||of(n,uf[t])})),n};if($i||($c=(Kc=function(){if(Vi($c,this))throw Jc("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?tc(arguments[0]):void 0,e=bu(t),r=function(t){this===Hc&&wi(r,af,t),hu(this,Bc)&&hu(this[Bc],e)&&(this[Bc][e]=!1),vf(this,e,ji(1,t))};return bi&&lf&&vf(Hc,e,{configurable:!0,set:r}),df(e,t)})[Xc],fa($c,"toString",(function(){return Yc(this).tag})),fa(Kc,"withoutSetter",(function(t){return df(bu(t),t)})),Ei.f=yf,Du.f=hf,Lu.f=gf,Ta.f=gc.f=bf,Pa.f=mf,mc.f=function(t){return df(xu(t),t)},bi&&(ef($c,"description",{configurable:!0,get:function(){return Yc(this).description}}),fa(Hc,"propertyIsEnumerable",yf,{unsafe:!0}))),Na({global:!0,wrap:!0,forced:!$i,sham:!$i},{Symbol:Kc}),Gc(ec(sf),(function(t){!function(t){var e=wc.Symbol||(wc.Symbol={});hu(e,t)||Oc(e,t,{value:mc.f(t)})}(t)})),Na({target:Vc,stat:!0,forced:!$i},{for:function(t){var e=tc(t);if(hu(cf,e))return cf[e];var r=Kc(e);return cf[e]=r,ff[r]=e,r},keyFor:function(t){if(!Zi(t))throw Jc(t+" is not a symbol");if(hu(ff,t))return ff[t]},useSetter:function(){lf=!0},useSimple:function(){lf=!1}}),Na({target:"Object",stat:!0,forced:!$i,sham:!bi},{create:function(t,e){return void 0===e?lc(t):pf(lc(t),e)},defineProperty:hf,defineProperties:pf,getOwnPropertyDescriptor:gf}),Na({target:"Object",stat:!0,forced:!$i},{getOwnPropertyNames:bf,getOwnPropertySymbols:mf}),Na({target:"Object",stat:!0,forced:gi((function(){Pa.f(1)}))},{getOwnPropertySymbols:function(t){return Pa.f(vu(t))}}),Zc){var wf=!$i||gi((function(){var t=Kc();return"[null]"!=Zc([t])||"{}"!=Zc({a:t})||"{}"!=Zc(Object(t))}));Na({target:"JSON",stat:!0,forced:wf},{stringify:function(t,e,r){var n=bc(arguments),o=e;if((Gi(e)||void 0!==t)&&!Zi(t))return Ua(e)||(e=function(t,e){if(Wi(o)&&(e=wi(o,this,t,e)),!Zi(e))return e}),n[1]=e,Xa(Zc,null,n)}})}if(!$c[Uc]){var Of=$c.valueOf;fa($c,Uc,(function(t){return wi(Of,this)}))}Ec(Kc,Vc),Ku[Bc]=!0;var Sf=Du.f,xf=yi.Symbol,Ef=xf&&xf.prototype;if(bi&&Wi(xf)&&(!("description"in Ef)||void 0!==xf().description)){var jf={},Tf=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:tc(arguments[0]),e=Vi(Ef,this)?new xf(t):void 0===t?xf():xf(t);return""===t&&(jf[e]=!0),e};ka(Tf,xf),Tf.prototype=Ef,Ef.constructor=Tf;var Pf="Symbol(test)"==String(xf("test")),Rf=ki(Ef.toString),Af=ki(Ef.valueOf),kf=/^Symbol\((.*)\)[^)]+$/,Cf=ki("".replace),Lf=ki("".slice);Sf(Ef,"description",{configurable:!0,get:function(){var t=Af(this),e=Rf(t);if(hu(jf,t))return"";var r=Pf?Lf(e,7,-1):Cf(e,kf,"$1");return""===r?void 0:r}}),Na({global:!0,forced:!0},{Symbol:Tf})}var If=xu("unscopables"),zf=Array.prototype;null==zf[If]&&Du.f(zf,If,{configurable:!0,value:lc(null)});var _f,Mf,Ff,Df=function(t){zf[If][t]=!0},Nf={},Wf=!gi((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Gf=Hu("IE_PROTO"),Bf=yi.Object,Vf=Bf.prototype,Xf=Wf?Bf.getPrototypeOf:function(t){var e=vu(t);if(hu(e,Gf))return e[Gf];var r=e.constructor;return Wi(r)&&e instanceof r?r.prototype:e instanceof Bf?Vf:null},Uf=xu("iterator"),qf=!1;[].keys&&("next"in(Ff=[].keys())?(Mf=Xf(Xf(Ff)))!==Object.prototype&&(_f=Mf):qf=!0);var Yf=null==_f||gi((function(){var t={};return _f[Uf].call(t)!==t}));Yf&&(_f={}),Wi(_f[Uf])||fa(_f,Uf,(function(){return this}));var Hf={IteratorPrototype:_f,BUGGY_SAFARI_ITERATORS:qf},Kf=Hf.IteratorPrototype,$f=function(){return this},Jf=yi.String,Qf=yi.TypeError,Zf=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=ki(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return _u(r),function(t){if("object"==typeof t||Wi(t))return t;throw Qf("Can't set "+Jf(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),ts=ca.PROPER,es=ca.CONFIGURABLE,rs=Hf.IteratorPrototype,ns=Hf.BUGGY_SAFARI_ITERATORS,os=xu("iterator"),is="keys",us="values",as="entries",cs=function(){return this},fs=function(t,e,r,n,o,i,u){!function(t,e,r){var n=e+" Iterator";t.prototype=lc(Kf,{next:ji(1,r)}),Ec(t,n,!1),Nf[n]=$f}(r,e,n);var a,c,f,s=function(t){if(t===o&&p)return p;if(!ns&&t in d)return d[t];switch(t){case is:case us:case as:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",v=!1,d=t.prototype,h=d[os]||d["@@iterator"]||o&&d[o],p=!ns&&h||s(o),y="Array"==e&&d.entries||h;if(y&&(a=Xf(y.call(new t)))!==Object.prototype&&a.next&&(Xf(a)!==rs&&(Zf?Zf(a,rs):Wi(a[os])||fa(a,os,cs)),Ec(a,l,!0)),ts&&o==us&&h&&h.name!==us&&(es?Nu(d,"name",us):(v=!0,p=function(){return wi(h,this)})),o)if(c={values:s(us),keys:i?p:s(is),entries:s(as)},u)for(f in c)(ns||v||!(f in d))&&fa(d,f,c[f]);else Na({target:e,proto:!0,forced:ns||v},c);return d[os]!==p&&fa(d,os,p,{name:o}),Nf[e]=p,c},ss="Array Iterator",ls=oa.set,vs=oa.getterFor(ss),ds=fs(Array,"Array",(function(t,e){ls(this,{type:ss,target:Ni(t),index:0,kind:e})}),(function(){var t=vs(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values");Nf.Arguments=Nf.Array,Df("keys"),Df("values"),Df("entries");var hs=Ha?{}.toString:function(){return"[object "+Qa(this)+"]"};Ha||fa(Object.prototype,"toString",hs,{unsafe:!0});var ps=ki("".charAt),ys=ki("".charCodeAt),gs=ki("".slice),bs=function(t){return function(e,r){var n,o,i=tc(Di(e)),u=va(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=ys(i,u))<55296||n>56319||u+1===a||(o=ys(i,u+1))<56320||o>57343?t?ps(i,u):n:t?gs(i,u,u+2):o-56320+(n-55296<<10)+65536}},ms=(bs(!1),bs(!0)),ws="String Iterator",Os=oa.set,Ss=oa.getterFor(ws);fs(String,"String",(function(t){Os(this,{type:ws,string:tc(t),index:0})}),(function(){var t,e=Ss(this),r=e.string,n=e.index;return n>=r.length?{value:void 0,done:!0}:(t=ms(r,n),e.index+=t.length,{value:t,done:!1})}));var xs=function(t,e,r){for(var n in e)fa(t,n,e[n],r);return t},Es=gi((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),js=Object.isExtensible,Ts=gi((function(){js(1)}))||Es?function(t){return!!Gi(t)&&(!Es||"ArrayBuffer"!=Ii(t))&&(!js||js(t))}:js,Ps=!gi((function(){return Object.isExtensible(Object.preventExtensions({}))})),Rs=vi((function(t){var e=Du.f,r=!1,n=bu("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=Ta.f,e=ki([].splice),o={};o[n]=1,t(o).length&&(Ta.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},Na({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:gc.f}))},fastKey:function(t,e){if(!Gi(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!hu(t,n)){if(!Ts(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!hu(t,n)){if(!Ts(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return Ps&&r&&Ts(t)&&!hu(t,n)&&i(t),t}};Ku[n]=!0})),As=xu("iterator"),ks=Array.prototype,Cs=function(t){return void 0!==t&&(Nf.Array===t||ks[As]===t)},Ls=xu("iterator"),Is=function(t){if(null!=t)return ou(t,Ls)||ou(t,"@@iterator")||Nf[Qa(t)]},zs=yi.TypeError,_s=function(t,e){var r=arguments.length<2?Is(t):e;if(nu(r))return _u(wi(r,t));throw zs(eu(t)+" is not iterable")},Ms=function(t,e,r){var n,o;_u(t);try{if(!(n=ou(t,"return"))){if("throw"===e)throw r;return r}n=wi(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return _u(n),r},Fs=yi.TypeError,Ds=function(t,e){this.stopped=t,this.result=e},Ns=Ds.prototype,Ws=function(t,e,r){var n,o,i,u,a,c,f,s=r&&r.that,l=!(!r||!r.AS_ENTRIES),v=!(!r||!r.IS_ITERATOR),d=!(!r||!r.INTERRUPTED),h=Tc(e,s),p=function(t){return n&&Ms(n,"normal",t),new Ds(!0,t)},y=function(t){return l?(_u(t),d?h(t[0],t[1],p):h(t[0],t[1])):d?h(t,p):h(t)};if(v)n=t;else{if(!(o=Is(t)))throw Fs(eu(t)+" is not iterable");if(Cs(o)){for(i=0,u=ba(t);u>i;i++)if((a=y(t[i]))&&Vi(Ns,a))return a;return new Ds(!1)}n=_s(t,o)}for(c=n.next;!(f=wi(c,n)).done;){try{a=y(f.value)}catch(t){Ms(n,"throw",t)}if("object"==typeof a&&a&&Vi(Ns,a))return a}return new Ds(!1)},Gs=yi.TypeError,Bs=function(t,e){if(Vi(e,t))return t;throw Gs("Incorrect invocation")},Vs=xu("iterator"),Xs=!1;try{var Us=0,qs={next:function(){return{done:!!Us++}},return:function(){Xs=!0}};qs[Vs]=function(){return this},Array.from(qs,(function(){throw 2}))}catch(T){}var Ys=function(t,e){if(!e&&!Xs)return!1;var r=!1;try{var n={};n[Vs]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r},Hs=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=yi[t],a=u&&u.prototype,c=u,f={},s=function(t){var e=ki(a[t]);fa(a,t,"add"==t?function(t){return e(this,0===t?0:t),this}:"delete"==t?function(t){return!(o&&!Gi(t))&&e(this,0===t?0:t)}:"get"==t?function(t){return o&&!Gi(t)?void 0:e(this,0===t?0:t)}:"has"==t?function(t){return!(o&&!Gi(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Fa(t,!Wi(u)||!(o||a.forEach&&!gi((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),Rs.enable();else if(Fa(t,!0)){var l=new c,v=l[i](o?{}:-0,1)!=l,d=gi((function(){l.has(1)})),h=Ys((function(t){new u(t)})),p=!o&&gi((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));h||((c=e((function(t,e){Bs(t,a);var r=function(t,e,r){var n,o;return Zf&&Wi(n=e.constructor)&&n!==r&&Gi(o=n.prototype)&&o!==r.prototype&&Zf(t,o),t}(new u,t,c);return null!=e&&Ws(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(d||p)&&(s("delete"),s("has"),n&&s("get")),(p||v)&&s(i),o&&a.clear&&delete a.clear}return f[t]=c,Na({global:!0,forced:c!=u},f),Ec(c,t),o||r.setStrong(c,t,n),c},Ks=Rs.getWeakData,$s=oa.set,Js=oa.getterFor,Qs=Wc.find,Zs=Wc.findIndex,tl=ki([].splice),el=0,rl=function(t){return t.frozen||(t.frozen=new nl)},nl=function(){this.entries=[]},ol=function(t,e){return Qs(t.entries,(function(t){return t[0]===e}))};nl.prototype={get:function(t){var e=ol(this,t);if(e)return e[1]},has:function(t){return!!ol(this,t)},set:function(t,e){var r=ol(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Zs(this.entries,(function(e){return e[0]===t}));return~e&&tl(this.entries,e,1),!!~e}};var il,ul={getConstructor:function(t,e,r,n){var o=t((function(t,o){Bs(t,i),$s(t,{type:e,id:el++,frozen:void 0}),null!=o&&Ws(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=Js(e),a=function(t,e,r){var n=u(t),o=Ks(_u(e),!0);return!0===o?rl(n).set(e,r):o[n.id]=r,t};return xs(i,{delete:function(t){var e=u(this);if(!Gi(t))return!1;var r=Ks(t);return!0===r?rl(e).delete(t):r&&hu(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!Gi(t))return!1;var r=Ks(t);return!0===r?rl(e).has(t):r&&hu(r,e.id)}}),xs(i,r?{get:function(t){var e=u(this);if(Gi(t)){var r=Ks(t);return!0===r?rl(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},al=oa.enforce,cl=!yi.ActiveXObject&&"ActiveXObject"in yi,fl=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},sl=Hs("WeakMap",fl,ul);if(qu&&cl){il=ul.getConstructor(fl,"WeakMap",!0),Rs.enable();var ll=sl.prototype,vl=ki(ll.delete),dl=ki(ll.has),hl=ki(ll.get),pl=ki(ll.set);xs(ll,{delete:function(t){if(Gi(t)&&!Ts(t)){var e=al(this);return e.frozen||(e.frozen=new il),vl(this,t)||e.frozen.delete(t)}return vl(this,t)},has:function(t){if(Gi(t)&&!Ts(t)){var e=al(this);return e.frozen||(e.frozen=new il),dl(this,t)||e.frozen.has(t)}return dl(this,t)},get:function(t){if(Gi(t)&&!Ts(t)){var e=al(this);return e.frozen||(e.frozen=new il),dl(this,t)?hl(this,t):e.frozen.get(t)}return hl(this,t)},set:function(t,e){if(Gi(t)&&!Ts(t)){var r=al(this);r.frozen||(r.frozen=new il),dl(this,t)?pl(this,t,e):r.frozen.set(t,e)}else pl(this,t,e);return this}})}Hs("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),ul);var yl,gl={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},bl=Au("span").classList,ml=bl&&bl.constructor&&bl.constructor.prototype,wl=ml===Object.prototype?void 0:ml,Ol=Wc.forEach,Sl=(yl=[].forEach)&&gi((function(){yl.call(null,(function(){throw 1}),1)}))?[].forEach:function(t){return Ol(this,t,arguments.length>1?arguments[1]:void 0)},xl=function(t){if(t&&t.forEach!==Sl)try{Nu(t,"forEach",Sl)}catch(e){t.forEach=Sl}};for(var El in gl)gl[El]&&xl(yi[El]&&yi[El].prototype);xl(wl);var jl=xu("iterator"),Tl=xu("toStringTag"),Pl=ds.values,Rl=function(t,e){if(t){if(t[jl]!==Pl)try{Nu(t,jl,Pl)}catch(e){t[jl]=Pl}if(t[Tl]||Nu(t,Tl,e),gl[e])for(var r in ds)if(t[r]!==ds[r])try{Nu(t,r,ds[r])}catch(e){t[r]=ds[r]}}};for(var Al in gl)Rl(yi[Al]&&yi[Al].prototype,Al);Rl(wl,"DOMTokenList");var kl=function(){return kl=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},kl.apply(this,arguments)};function Cl(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ll(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),u=[];try{for(;(void 0===e||e-- >0)&&!(n=i.next()).done;)u.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}function Il(t,e,r){if(r||2===arguments.length)for(var n,o=0,i=e.length;o<i;o++)!n&&o in e||(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var zl=function(t,e,r,n){try{return n?e(_u(r)[0],r[1]):e(r)}catch(e){Ms(t,"throw",e)}},_l=yi.Array,Ml=!Ys((function(t){Array.from(t)}));Na({target:"Array",stat:!0,forced:Ml},{from:function(t){var e=vu(t),r=zc(this),n=arguments.length,o=n>1?arguments[1]:void 0,i=void 0!==o;i&&(o=Tc(o,n>2?arguments[2]:void 0));var u,a,c,f,s,l,v=Is(e),d=0;if(!v||this==_l&&Cs(v))for(u=ba(e),a=r?new this(u):_l(u);u>d;d++)l=i?o(e[d],d):e[d],vc(a,d,l);else for(s=(f=_s(e,v)).next,a=r?new this:[];!(c=wi(s,f)).done;d++)l=i?zl(f,o,[c.value,d],!0):c.value,vc(a,d,l);return a.length=d,a}});var Fl=xu("species"),Dl=function(t){return Ki>=51||!gi((function(){var e=[];return(e.constructor={})[Fl]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Nl=Wc.map,Wl=Dl("map");Na({target:"Array",proto:!0,forced:!Wl},{map:function(t){return Nl(this,t,arguments.length>1?arguments[1]:void 0)}});var Gl=Dl("slice"),Bl=xu("species"),Vl=yi.Array,Xl=Math.max;Na({target:"Array",proto:!0,forced:!Gl},{slice:function(t,e){var r,n,o,i=Ni(this),u=ba(i),a=pa(t,u),c=pa(void 0===e?u:e,u);if(Ua(i)&&(r=i.constructor,(zc(r)&&(r===Vl||Ua(r.prototype))||Gi(r)&&null===(r=r[Bl]))&&(r=void 0),r===Vl||void 0===r))return bc(i,a,c);for(n=new(void 0===r?Vl:r)(Xl(c-a,0)),o=0;a<c;a++,o++)a in i&&vc(n,o,i[a]);return n.length=o,n}}),Na({target:"Object",stat:!0},{fromEntries:function(t){var e={};return Ws(t,(function(t,r){vc(e,t,r)}),{AS_ENTRIES:!0}),e}});var Ul=gi((function(){ec(1)}));Na({target:"Object",stat:!0,forced:Ul},{keys:function(t){return ec(vu(t))}});var ql=Ei.f,Yl=ki(ql),Hl=ki([].push),Kl=function(t){return function(e){for(var r,n=Ni(e),o=ec(n),i=o.length,u=0,a=[];i>u;)r=o[u++],bi&&!Yl(n,r)||Hl(a,t?[r,n[r]]:n[r]);return a}},$l=[Kl(!0),Kl(!1)][0];Na({target:"Object",stat:!0},{entries:function(t){return $l(t)}});var Jl=Wc.filter,Ql=Dl("filter");Na({target:"Array",proto:!0,forced:!Ql},{filter:function(t){return Jl(this,t,arguments.length>1?arguments[1]:void 0)}});var Zl=wa.includes;Na({target:"Array",proto:!0},{includes:function(t){return Zl(this,t,arguments.length>1?arguments[1]:void 0)}}),Df("includes");var tv=ca.PROPER,ev="toString",rv=RegExp.prototype,nv=rv[ev],ov=ki((function(){var t=_u(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e})),iv=gi((function(){return"/a/b"!=nv.call({source:"a",flags:"b"})})),uv=tv&&nv.name!=ev;function av(t){return"[object Object]"===Object.prototype.toString.call(t)}function cv(t){if(!av(t))return!1;var e=t.constructor;if(void 0===e)return!0;var r=e.prototype;return!1!==av(r)&&!Object.prototype.hasOwnProperty.call(r,"isPrototypeOfOf")}function fv(t,e){for(var r in t){var n=t[r],o=e[r];if(cv(n)&&cv(o)){if(!fv(n,o))return!1}else if(Array.isArray(n)&&Array.isArray(o)){if(n.length!==o.length)return!1;for(var i=0;i<n.length;i++)if(n[i]!==o[i])return!1}else if(n!==o)return!1}for(var r in e)if(void 0===t[r]&&void 0!==e[r])return!1;return!0}function sv(t){return function(t){var e,r,n,o,i=[];try{for(var u=Cl(t),a=u.next();!a.done;a=u.next()){var c=a.value;if("string"!=typeof c.insert||0!==c.insert.length){var f=i[i.length-1];f&&"string"==typeof f.insert&&"string"==typeof c.insert&&(f.attributes===c.attributes||!f.attributes==!c.attributes&&fv(null!==(n=f.attributes)&&void 0!==n?n:{},null!==(o=c.attributes)&&void 0!==o?o:{}))?f.insert+=c.insert:i.push(c)}}}catch(t){e={error:t}}finally{try{a&&!a.done&&(r=u.return)&&r.call(u)}finally{if(e)throw e.error}}return i}(t.toDelta())}function lv(t){var e=t.insert;return"string"==typeof e?e.length:1}function vv(t){return t.reduce((function(t,e){return t+lv(e)}),0)}function dv(t,e,r){if(r<1)return[];for(var n=0,o=[],i=e+r,u=0;u<t.length&&!(n>=i);u++){var a=t[u],c=lv(a);if(n+c<=e)n+=c;else if("string"==typeof a.insert){var f=Math.max(0,e-n),s=Math.min(c,c-(n+c-i));o.push(kl(kl({},a),{insert:a.insert.slice(f,s)})),n+=c}else n+=c,o.push(a)}return o}function hv(t){return function(t){for(var e=[],r=1;r<arguments.length;r++)e[r-1]=arguments[r];return Object.fromEntries(Object.entries(t).filter((function(t){var r=Ll(t,1)[0];return!e.includes(r)})))}(t,r.Text.isText(t)?"text":"children")}function pv(t){var e=t.children,n=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["children"]),o=new c.XmlText;return Object.entries(n).forEach((function(t){var e=Ll(t,2),r=e[0],n=e[1];o.setAttribute(r,n)})),o.applyDelta(function(t){return t.map((function(t){return r.Text.isText(t)?{insert:t.text,attributes:hv(t)}:{insert:pv(t)}}))}(e),{sanitize:!1}),o}(iv||uv)&&fa(RegExp.prototype,ev,(function(){var t=_u(this),e=tc(t.source),r=t.flags;return"/"+e+"/"+tc(void 0===r&&Vi(rv,t)&&!("flags"in rv)?ov(t):r)}),{unsafe:!0});var yv=xu("isConcatSpreadable"),gv=9007199254740991,bv="Maximum allowed index exceeded",mv=yi.TypeError,wv=Ki>=51||!gi((function(){var t=[];return t[yv]=!1,t.concat()[0]!==t})),Ov=Dl("concat"),Sv=function(t){if(!Gi(t))return!1;var e=t[yv];return void 0!==e?!!e:Ua(t)};function xv(t){return t?r.Text.isText(t)?t.text.length:1:0}function Ev(t,e,n){var o;if(0===n.length)throw new Error("Path has to a have a length >= 1");if(r.Text.isText(e))throw new Error("Cannot descent into slate text");var i=Ll(n),u=i[0],a=i.slice(1),f=function(t,e){return t.children.slice(0,e).reduce((function(t,e){return t+xv(e)}),0)}(e,u),s=e.children[u],l=sv(t),v=xv(s),d=dv(l,f,v);if(d.length>1)throw new Error("Path doesn't match yText, yTarget spans multiple nodes");var h=null===(o=d[0])||void 0===o?void 0:o.insert;if(a.length>0){if(!(h instanceof c.XmlText))throw new Error("Path doesn't match yText, cannot descent into non-yText");return Ev(h,s,a)}return{yParent:t,textRange:{start:f,end:f+v},yTarget:h instanceof c.XmlText?h:void 0,slateParent:e,slateTarget:s,targetDelta:d}}function jv(t,e,n){void 0===n&&(n={});for(var o=n.assoc,i=void 0===o?0:o,u=n.insert,a=void 0!==u&&u,c=0,f=0,s=0;s<t.children.length;s++){var l=t.children[s],v=r.Text.isText(l)?l.text.length:1;v>0&&(f=s);var d=c+v;if(v>0&&(i>=0?d>e:d>=e))return[s,e-c];c+=v}if(e>c+(a?1:0))throw new Error("yOffset out of bounds");if(a)return[t.children.length,0];var h=t.children[f];return[f,r.Text.isText(h)?h.text.length:1]}function Tv(t){return t.map((function(t){return"string"==typeof t.insert?t:kl(kl({},t),{insert:Pv(t.insert)})}))}function Pv(t){var e=new c.XmlText,r=t.getAttributes();return Object.entries(r).forEach((function(t){var r=Ll(t,2),n=r[0],o=r[1];e.setAttribute(n,o)})),e.applyDelta(Tv(sv(t)),{sanitize:!1}),e}Na({target:"Array",proto:!0,forced:!wv||!Ov},{concat:function(t){var e,r,n,o,i,u=vu(this),a=Fc(u,0),c=0;for(e=-1,n=arguments.length;e<n;e++)if(Sv(i=-1===e?u:arguments[e])){if(c+(o=ba(i))>gv)throw mv(bv);for(r=0;r<o;r++,c++)r in i&&vc(a,c,i[r])}else{if(c>=gv)throw mv(bv);vc(a,c++,i)}return a.length=c,a}});var Rv=Object.assign,Av=Object.defineProperty,kv=ki([].concat),Cv=!Rv||gi((function(){if(bi&&1!==Rv({b:1},Rv(Av({},"a",{enumerable:!0,get:function(){Av(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol(),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!=Rv({},t)[r]||ec(Rv({},e)).join("")!=n}))?function(t,e){for(var r=vu(t),n=arguments.length,o=1,i=Pa.f,u=Ei.f;n>o;)for(var a,c=Mi(arguments[o++]),f=i?kv(ec(c),i(c)):ec(c),s=f.length,l=0;s>l;)a=f[l++],bi&&!wi(u,c,a)||(r[a]=c[a]);return r}:Rv;Na({target:"Object",stat:!0,forced:Object.assign!==Cv},{assign:Cv});var Lv,Iv=xu("match"),zv=yi.TypeError,_v=xu("match"),Mv=Lu.f,Fv=ki("".startsWith),Dv=ki("".slice),Nv=Math.min,Wv=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[_v]=!1,"/./"[t](e)}catch(t){}}return!1}("startsWith"),Gv=!(Wv||(Lv=Mv(String.prototype,"startsWith"),!Lv||Lv.writable));Na({target:"String",proto:!0,forced:!Gv&&!Wv},{startsWith:function(t){var e=tc(Di(this));!function(t){if(function(t){var e;return Gi(t)&&(void 0!==(e=t[Iv])?!!e:"RegExp"==Ii(t))}(t))throw zv("The method doesn't accept regular expressions")}(t);var r=ga(Nv(arguments.length>1?arguments[1]:void 0,e.length)),n=tc(t);return Fv?Fv(e,n,r):Dv(e,r,r+n.length)===n}});var Bv=/"/g,Vv=ki("".replace);function Xv(t){if(!t.doc)throw new Error("shared type isn't attached to a document")}Na({target:"String",proto:!0,forced:gi((function(){var t="".anchor('"');return t!==t.toLowerCase()||t.split('"').length>3}))},{anchor:function(t){return e=t,r=tc(Di(this)),n="<a",(n+=' name="'+Vv(tc(e),Bv,""")+'"')+">"+r+"</a>";var e,r,n}});var Uv="__slateYjsStoredPosition_";function qv(t,e,n){if(!t.doc)throw new Error("sharedRoot isn't attach to a yDoc");var o=c.createAbsolutePositionFromRelativePosition(n,t.doc);return o&&function(t,e,n){var o=n.type,i=n.index,u=n.assoc;if(!(o instanceof c.XmlText))throw new Error("Absolute position points to a non-XMLText");var a=function(t,e,n){for(var o=[n];o[0]!==t;){var i=o[0].parent;if(!i)throw new Error("yText isn't a descendant of root element");if(!(i instanceof c.XmlText))throw new Error("Unexpected y parent type");o.unshift(i)}if(o.length<2)return[];var u=e;return o.reduce((function(t,e,n){var i,a,c=o[n+1];if(!c)return t;var f=0,s=sv(e);try{for(var l=Cl(s),v=l.next();!v.done;v=l.next()){var d=v.value;if(d.insert===c)break;f+="string"==typeof d.insert?d.insert.length:1}}catch(t){i={error:t}}finally{try{v&&!v.done&&(a=l.return)&&a.call(l)}finally{if(i)throw i.error}}if(r.Text.isText(u))throw new Error("Cannot descent into slate text");var h=Ll(jv(u,f),1)[0];return u=u.children[h],t.concat(h)}),[])}(t,e,o),f=r.Node.get(e,a);if(r.Text.isText(f))throw new Error("Absolute position doesn't match slateRoot, cannot descent into text");var s=Ll(jv(f,i,{assoc:u}),2),l=s[0],v=s[1],d=f.children[l];return r.Text.isText(d)?{path:Il(Il([],Ll(a)),[l]),offset:v}:null}(t,e,o)}function Yv(t,e,r){t.setAttribute(Uv+e,c.encodeRelativePosition(r))}function Hv(t,e,r){return Object.fromEntries(Object.entries(t).filter((function(t){var n=Ll(t,2)[1];return n.type===e&&(!r||(n.assoc>=0?n.index>=r.start&&n.index<r.end:n.index>r.start&&n.index>=r.end))})))}function Kv(t,e,r){var n;void 0===r&&(r="");var o=((n={})[r]=Hv(t,e),n);return sv(e).forEach((function(e,n){var i=e.insert;i instanceof c.XmlText&&Object.assign(o,Kv(t,i,r?r+"."+n:n.toString()))})),o}function $v(t,e,r,n){void 0===n&&(n=0);var o=function(t){return Xv(t),Object.fromEntries(Object.entries(t.getAttributes()).filter((function(t){return Ll(t,1)[0].startsWith(Uv)})).map((function(e){var r=Ll(e,2),n=r[0],o=r[1];return[n.slice(Uv.length),c.createAbsolutePositionFromRelativePosition(c.decodeRelativePosition(o),t.doc)]})).filter((function(t){return Ll(t,2)[1]})))}(t),i={"":Hv(o,e,{start:n,end:n+vv(r)})};return r.forEach((function(t,e){var r=t.insert;r instanceof c.XmlText&&Object.assign(i,Kv(o,r,e.toString()))})),i}function Jv(t,e,r,n,o,i,u){void 0===o&&(o=0),void 0===i&&(i=0),void 0===u&&(u="");var a=r[u];a&&Object.entries(a).forEach((function(r){var n=Ll(r,2),u=n[0],a=n[1];Yv(t,u,c.createRelativePositionFromTypeIndex(e,a.index-i+o,a.assoc))})),n.forEach((function(e,n){var o=e.insert;o instanceof c.XmlText&&Jv(t,o,r,sv(o),0,0,u?u+"."+n:n.toString())}))}var Qv={insert_node:function(t,e,n){var o=Ev(t,e,n.path),i=o.yParent,u=o.textRange;if(r.Text.isText(n.node))return i.insert(u.start,n.node.text,hv(n.node));i.insertEmbed(u.start,pv(n.node))},remove_node:function(t,e,r){var n=Ev(t,e,r.path),o=n.yParent,i=n.textRange;o.delete(i.start,i.end-i.start)},set_node:function(t,e,r){var n=Ev(t,e,r.path),o=n.yTarget,i=n.textRange,u=n.yParent;if(o)return Object.entries(r.newProperties).forEach((function(t){var e=Ll(t,2),r=e[0],n=e[1];if(null===n)return o.removeAttribute(r);o.setAttribute(r,n)})),Object.entries(r.properties).forEach((function(t){var e=Ll(t,1)[0];Object.prototype.hasOwnProperty.call(r.newProperties,e)||o.removeAttribute(e)}));var a=Object.fromEntries(Object.keys(r.properties).map((function(t){return[t,null]}))),c=kl(kl({},a),r.newProperties);u.format(i.start,i.end-i.start,c)},merge_node:function(t,e,n){var o=Ev(t,e,n.path),i=Ev(o.yParent,o.slateParent,r.Path.previous(n.path.slice(-1)));if(!o.yTarget!=!i.yTarget)throw new Error("Cannot merge y text with y element");if(!i.yTarget||!o.yTarget){var u=o.yParent,a=o.textRange,c=o.slateTarget;if(!c)throw new Error("Expected Slate target node for merge op.");var f=r.Node.get(e,r.Path.previous(n.path));if(!r.Text.isText(f))throw new Error("Path points to Y.Text but not a Slate text node.");var s=hv(c),l=hv(f),v=Object.keys(s).reduce((function(t,e){var r;return e in l?t:kl(kl({},t),((r={})[e]=null,r))}),{});return u.format(a.start,a.end-a.start,kl(kl({},v),l))}var d=i.yTarget.length,h=sv(o.yTarget),p=Tv(h),y=$v(t,o.yTarget,h,d),g=Il([{retain:d}],Ll(p));i.yTarget.applyDelta(g,{sanitize:!1}),o.yParent.delete(o.textRange.start,o.textRange.end-o.textRange.start),Jv(t,i.yTarget,y,p,d)},move_node:function(t,e,n){var o=r.Path.parent(n.newPath),i=n.newPath[n.newPath.length-1],u=r.Node.get(e,o);if(r.Text.isText(u))throw new Error("Cannot move slate node into text element");var a=Il(Il([],Ll(o)),[Math.min(i,u.children.length)]),c=Ev(t,e,n.path),f=Ev(t,e,a),s=Tv(c.targetDelta),l=$v(t,c.yParent,c.targetDelta);c.yParent.delete(c.textRange.start,c.textRange.end-c.textRange.start);var v=vv(sv(f.yParent)),d=Math.min(f.textRange.start,v),h=Il([{retain:d}],Ll(s));f.yParent.applyDelta(h,{sanitize:!1}),Jv(t,f.yParent,l,s,d,c.textRange.start)},split_node:function(t,e,n){var o=Ev(t,e,n.path);if(!o.slateTarget)throw new Error("Y target without corresponding slate node");if(!o.yTarget){if(!r.Text.isText(o.slateTarget))throw new Error("Mismatch node type between y target and slate node");var i={};return o.targetDelta.forEach((function(t){t.attributes&&Object.keys(t.attributes).forEach((function(t){i[t]=null}))})),o.yParent.format(o.textRange.start,o.textRange.end-o.textRange.start,kl(kl({},i),n.properties))}if(r.Text.isText(o.slateTarget))throw new Error("Mismatch node type between y target and slate node");var u=Ev(o.yTarget,o.slateTarget,[n.position]),a=o.slateTarget.children.slice(0,n.position).reduce((function(t,e){return t+xv(e)}),0),f=o.slateTarget.children.reduce((function(t,e){return t+xv(e)}),0),s=dv(sv(o.yTarget),a,f-a),l=Tv(s),v=$v(t,o.yTarget,s,a),d=new c.XmlText;d.applyDelta(l,{sanitize:!1}),Object.entries(n.properties).forEach((function(t){var e=Ll(t,2),r=e[0],n=e[1];d.setAttribute(r,n)})),o.yTarget.delete(u.textRange.start,o.yTarget.length-u.textRange.start),o.yParent.insertEmbed(o.textRange.end,d),Jv(t,d,v,l,0,a)}};kl(kl(kl({},{insert_text:function(t,e,n){var o=Ev(t,e,n.path),i=o.yParent,u=o.textRange,a=r.Node.get(e,n.path);if(!r.Text.isText(a))throw new Error("Cannot insert text into non-text node");i.insert(u.start+n.offset,n.text,hv(a))},remove_text:function(t,e,r){var n=Ev(t,e,r.path),o=n.yParent,i=n.textRange;o.delete(i.start+r.offset,r.text.length)}}),Qv),{set_selection:function(){}});var Zv=new WeakMap,td=new WeakMap,ed=new WeakSet,rd={isYjsEditor:function(t){return r.Editor.isEditor(t)&&t.sharedRoot instanceof c.XmlText&&"localOrigin"in t&&"positionStorageOrigin"in t&&"function"==typeof t.applyRemoteEvents&&"function"==typeof t.storeLocalChange&&"function"==typeof t.flushLocalChanges&&"function"==typeof t.isLocalOrigin&&"function"==typeof t.connect&&"function"==typeof t.disconnect},localChanges:function(t){var e;return null!==(e=td.get(t))&&void 0!==e?e:[]},applyRemoteEvents:function(t,e,r){t.applyRemoteEvents(e,r)},storeLocalChange:function(t,e){t.storeLocalChange(e)},flushLocalChanges:function(t){t.flushLocalChanges()},connected:function(t){return ed.has(t)},connect:function(t){t.connect()},disconnect:function(t){t.disconnect()},isLocal:function(t){return t.isLocalOrigin(rd.origin(t))},origin:function(t){var e=Zv.get(t);return void 0!==e?e:t.localOrigin},withOrigin:function(t,e,r){var n=rd.origin(t);Zv.set(t,e),r(),Zv.set(t,n)},storePosition:function(t,e,r){var n=t.sharedRoot,o=t.positionStorageOrigin;Xv(n);var i=function(t,e,r){var n=Ev(t,e,r.path),o=n.yTarget,i=n.yParent,u=n.textRange;if(o)throw new Error("Slate point points to a non-text element inside sharedRoot");var a=u.start+r.offset;return c.createRelativePositionFromTypeIndex(i,a,a===u.end?-1:0)}(n,t,r);n.doc.transact((function(){Yv(n,e,i)}),o)},removeStoredPosition:function(t,e){var r=t.sharedRoot,n=t.positionStorageOrigin;Xv(r),r.doc.transact((function(){!function(t,e){t.removeAttribute(Uv+e)}(r,e)}),n)},position:function(t,e){var r=function(t,e){var r=t.getAttribute(Uv+e);return r?c.decodeRelativePosition(r):null}(t.sharedRoot,e);if(r)return qv(t.sharedRoot,t,r)},storedPositionsRelative:function(t){return e=t.sharedRoot,Object.fromEntries(Object.entries(e.getAttributes()).filter((function(t){return Ll(t,1)[0].startsWith(Uv)})).map((function(t){var e=Ll(t,2),r=e[0],n=e[1];return[r.slice(Uv.length),c.createRelativePositionFromJSON(n)]})));var e}},nd=xu("species"),od=Du.f,id=Rs.fastKey,ud=oa.set,ad=oa.getterFor,cd={getConstructor:function(t,e,r,n){var o=t((function(t,o){Bs(t,i),ud(t,{type:e,index:lc(null),first:void 0,last:void 0,size:0}),bi||(t.size=0),null!=o&&Ws(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=ad(e),a=function(t,e,r){var n,o,i=u(t),a=c(t,e);return a?a.value=r:(i.last=a={index:o=id(e,!0),key:e,value:r,previous:n=i.last,next:void 0,removed:!1},i.first||(i.first=a),n&&(n.next=a),bi?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},c=function(t,e){var r,n=u(t),o=id(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key==e)return r};return xs(i,{clear:function(){for(var t=u(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,bi?t.size=0:this.size=0},delete:function(t){var e=this,r=u(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first==n&&(r.first=o),r.last==n&&(r.last=i),bi?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=u(this),n=Tc(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),xs(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),bi&&od(i,"size",{get:function(){return u(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=ad(e),i=ad(n);fs(t,e,(function(t,e){ud(this,{type:n,target:t,state:o(t),kind:e,last:void 0})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),function(t){var e=Bi(t),r=Du.f;bi&&e&&!e[nd]&&r(e,nd,{configurable:!0,get:function(){return this}})}(e)}};Hs("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),cd);var fd=new WeakMap,sd={isCursorEditor:function(t){return rd.isYjsEditor(t)&&t.awareness&&"string"==typeof t.cursorDataField&&"string"==typeof t.selectionStateField&&"function"==typeof t.sendCursorPosition&&"function"==typeof t.sendCursorData},sendCursorPosition:function(t,e){void 0===e&&(e=t.selection),t.sendCursorPosition(e)},sendCursorData:function(t,e){t.sendCursorData(e)},on:function(t,e,r){var n;if("change"===e){var o=null!==(n=fd.get(t))&&void 0!==n?n:new Set;o.add(r),t&&fd.set(t,o)}},off:function(t,e,r){if("change"===e){var n=fd.get(t);n&&n.delete(r)}},cursorState:function(t,e){var r;if(e===t.awareness.clientID||!rd.connected(t))return null;var n=t.awareness.getStates().get(e);return n?{relativeSelection:null!==(r=n[t.selectionStateField])&&void 0!==r?r:null,data:n[t.cursorDataField],clientId:e}:null},cursorStates:function(t){return rd.connected(t)?Object.fromEntries(Array.from(t.awareness.getStates().entries(),(function(e){var r=Ll(e,2),n=r[0],o=r[1];return n!==t.awareness.clientID&&o?[n,{relativeSelection:o[t.selectionStateField],data:o[t.cursorDataField]}]:null})).filter(Array.isArray)):{}}};function ld(){var t=s();return sd.isCursorEditor(t)||console.warn("Cannot use useSyncExternalStore outside the context of a RemoteCursorEditor"),t}var vd=new WeakMap;function dd(t){var e=vd.get(t);if(e)return e;var r=function(t){var e={},r=new Set,n=r.add.bind(r),o=new Set,i=null;return[function(e){return o.add(e),i||(i=function(t){t.added.forEach(n),t.removed.forEach(n),t.updated.forEach(n),o.forEach((function(t){return t()}))},sd.on(t,"change",i)),function(){o.delete(e),i&&0===o.size&&(sd.off(t,"change",i),i=null)}},function(){return 0===r.size?e:(r.forEach((function(r){var n=sd.cursorState(t,r);null!==n?e[r]=n:delete e[r.toString()]})),r.clear(),e=l({},e))}]}(t);return t&&vd.set(t,r),r}function hd(){return dd(ld())}function pd(){var t=v(hd(),2),e=t[0],r=t[1];return x.useSyncExternalStore(e,r)}var yd=new WeakMap;function gd(t,e){if(!e.relativeSelection)return null;var r=yd.get(t.children);r||(r=new WeakMap,yd.set(t.children,r));var n=r.get(e);if(void 0===n)try{n=function(t,e,r){var n=qv(t,e,r.anchor);if(!n)return null;var o=qv(t,e,r.focus);return o?{anchor:n,focus:o}:null}(t.sharedRoot,t,e.relativeSelection),r.set(e,n)}catch(t){return null}return n}var bd=jt("species"),md=Ro.map,wd=function(t){return bt>=51||!G((function(){var e=[];return(e.constructor={})[bd]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("map");Tr({target:"Array",proto:!0,forced:!wd},{map:function(t){return md(this,t,arguments.length>1?arguments[1]:void 0)}});var Od=W(rr.f),Sd=W([].push),xd=function(t){return function(e){for(var r,n=$(e),o=pe(n),i=o.length,u=0,a=[];i>u;)r=o[u++],kt&&!Od(n,r)||Sd(a,t?[r,n[r]]:n[r]);return a}},Ed={entries:xd(!0),values:xd(!1)}.entries;Tr({target:"Object",stat:!0},{entries:function(t){return Ed(t)}});var jd=Ln.onFreeze,Td=Object.freeze,Pd=G((function(){Td(1)}));Tr({target:"Object",stat:!0,forced:Pd,sham:!Cn},{freeze:function(t){return Td&&Tt(t)?Td(jd(t)):t}}),Tr({target:"Object",stat:!0},{fromEntries:function(t){var e={};return Xn(t,(function(t,r){On(e,t,r)}),{AS_ENTRIES:!0}),e}});var Rd=G((function(){pe(1)}));function Ad(t,e,n){var i,u,a=n.yOffset,c=n.xOffset,f=n.shouldGenerateOverlay,s=v(r.Range.edges(e),2),l=s[0],d=s[1],h=function(t,e){try{return o.DomEditor.toDOMRange(t,e)}catch(t){return null}}(t,e);if(!h)return{caretPosition:null,selectionRects:[]};var p=[],y=r.Editor.nodes(t,{at:e,match:function(t,e){return r.Text.isText(t)&&(!f||f(t,e))}}),g=null,b=r.Range.isBackward(e);try{for(var m=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(y),w=m.next();!w.done;w=m.next()){var O=v(w.value,2),S=O[0],x=O[1],E=o.DomEditor.toDOMNode(t,S),j=r.Path.equals(x,l.path),T=r.Path.equals(x,d.path),P=null;if(j||T){var R=document.createRange();R.selectNode(E),j&&R.setStart(h.startContainer,h.startOffset),T&&R.setEnd(h.endContainer,h.endOffset),P=R.getClientRects()}else P=E.getClientRects();for(var A=b?j:T,k=0;k<P.length;k++){var C=P.item(k);if(C){var L=A&&(b?0===k:k===P.length-1),I=C.top-a,z=C.left-c;L&&(g={height:C.height,top:I,left:z+(b||r.Range.isCollapsed(e)?0:C.width)}),p.push({width:C.width,height:C.height,top:I,left:z})}}}}catch(t){i={error:t}}finally{try{w&&!w.done&&(u=m.return)&&u.call(m)}finally{if(i)throw i.error}}return{selectionRects:p,caretPosition:g}}Tr({target:"Object",stat:!0,forced:Rd},{keys:function(t){return pe(nt(t))}});var kd=Object.freeze([]);t.EditorContext=f,t.getCursorRange=gd,t.useEditorStatic=s,t.useRemoteCursorOverlayPositions=function(t){var r;void 0===t&&(t={});var n=t.containerRef,o=t.shouldGenerateOverlay,i=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["containerRef","shouldGenerateOverlay"]),u=ld(),a=pd(),c=function(){var t=v(e.useReducer((function(t){return t+1}),0),2),r=t[1],n=e.useRef(null),o=function(){n.current&&(cancelAnimationFrame(n.current),n.current=0)};return e.useEffect(o),e.useEffect((function(){return o}),[]),e.useCallback((function(t){void 0===t&&(t=!1),t?r():n.current||(n.current=requestAnimationFrame(r))}),[])}(),f=e.useRef(new WeakMap),s=v(e.useState({}),2),d=s[0],h=s[1],p=!("refreshOnResize"in i)||(null===(r=i.refreshOnResize)||void 0===r||r);!function(t,r){var n=e.useRef(r);n.current=r;var o=v(e.useState((function(){return new ResizeObserver((function(){n.current()}))})),1)[0];e.useEffect((function(){if(null==t?void 0:t.current){var e=t.current;return o.observe(e),function(){return o.unobserve(e)}}}),[o,t])}(p?n:void 0,(function(){f.current=new WeakMap,c("debounced"!==p)})),e.useLayoutEffect((function(){var t,e,r;if(!n||n.current){var i=null===(t=null==n?void 0:n.current)||void 0===t?void 0:t.getBoundingClientRect(),c=null!==(e=null==i?void 0:i.x)&&void 0!==e?e:0,s=null!==(r=null==i?void 0:i.y)&&void 0!==r?r:0,l=Object.keys(d).length!==Object.keys(a).length,p=Object.fromEntries(Object.entries(a).map((function(t){var e=v(t,2),r=e[0],n=e[1],i=n.relativeSelection&&gd(u,n);if(!i)return[r,kd];var a=f.current.get(i);if(a)return[r,a];var d=Ad(u,i,{xOffset:c,yOffset:s,shouldGenerateOverlay:o});return l=!0,f.current.set(i,d),[r,d]})));l&&h(p)}}));var y=e.useMemo((function(){return Object.entries(a).map((function(t){var e,r,n=v(t,2),o=n[0],i=n[1],a=i.relativeSelection&&gd(u,i),c=d[o];return l(l({},i),{range:a,caretPosition:null!==(e=null==c?void 0:c.caretPosition)&&void 0!==e?e:null,selectionRects:null!==(r=null==c?void 0:c.selectionRects)&&void 0!==r?r:kd})}))}),[a,u,d]);return[y,e.useCallback((function(){f.current=new WeakMap,c(!0)}),[c])]},t.useRemoteCursorStates=pd,t.useRemoteCursorStatesSelector=function(t,e){var r=v(hd(),2),n=r[0],o=r[1];return I.useSyncExternalStoreWithSelector(n,o,null,t,e)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
39
|
+
v((function(t,e){}));var T,C,k=v((function(t){t.exports=A})),z=function(t){try{return!!t()}catch(t){return!0}},I=!z((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),L=Function.prototype,M=L.call,F=I&&L.bind.bind(M,M),_=I?F:function(t){return function(){return M.apply(t,arguments)}},D=_({}.toString),N=_("".slice),G=function(t){return N(D(t),8,-1)},W=Object,V=_("".split),B=z((function(){return!W("z").propertyIsEnumerable(0)}))?function(t){return"String"===G(t)?V(t,""):W(t)}:W,q=function(t){return null==t},U=TypeError,H=function(t){if(q(t))throw new U("Can't call method on "+t);return t},X=function(t){return B(H(t))},K=function(t){return t&&t.Math===Math&&t},Y=K("object"==typeof globalThis&&globalThis)||K("object"==typeof window&&window)||K("object"==typeof self&&self)||K("object"==typeof l&&l)||K("object"==typeof l&&l)||function(){return this}()||Function("return this")(),$=Object.defineProperty,J=function(t,e){try{$(Y,t,{value:e,configurable:!0,writable:!0})}catch(r){Y[t]=e}return e},Q=v((function(t){var e="__core-js_shared__",r=t.exports=Y[e]||J(e,{});(r.versions||(r.versions=[])).push({version:"3.38.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})})),Z=function(t,e){return Q[t]||(Q[t]=e||{})},tt=Object,et=function(t){return tt(H(t))},rt=_({}.hasOwnProperty),nt=Object.hasOwn||function(t,e){return rt(et(t),e)},ot=0,it=Math.random(),ut=_(1..toString),at=function(t){return"Symbol("+(void 0===t?"":t)+")_"+ut(++ot+it,36)},ct=Y.navigator,ft=ct&&ct.userAgent,st=ft?String(ft):"",lt=Y.process,vt=Y.Deno,pt=lt&<.versions||vt&&vt.version,dt=pt&&pt.v8;dt&&(C=(T=dt.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!C&&st&&(!(T=st.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=st.match(/Chrome\/(\d+)/))&&(C=+T[1]);var ht,yt=C,gt=Y.String,bt=!!Object.getOwnPropertySymbols&&!z((function(){var t=Symbol("symbol detection");return!gt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&yt&&yt<41})),mt=bt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,St=Y.Symbol,wt=Z("wks"),Ot=mt?St.for||St:St&&St.withoutSetter||at,Et=function(t){return nt(wt,t)||(wt[t]=bt&&nt(St,t)?St[t]:Ot("Symbol."+t)),wt[t]},jt="object"==typeof document&&document.all,xt=void 0===jt&&void 0!==jt?function(t){return"function"==typeof t||t===jt}:function(t){return"function"==typeof t},Rt=function(t){return"object"==typeof t?null!==t:xt(t)},Pt=String,At=TypeError,Tt=function(t){if(Rt(t))return t;throw new At(Pt(t)+" is not an object")},Ct=!z((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),kt=Ct&&z((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),zt=Y.document,It=Rt(zt)&&Rt(zt.createElement),Lt=function(t){return It?zt.createElement(t):{}},Mt=!Ct&&!z((function(){return 7!==Object.defineProperty(Lt("div"),"a",{get:function(){return 7}}).a})),Ft=Function.prototype.call,_t=I?Ft.bind(Ft):function(){return Ft.apply(Ft,arguments)},Dt=function(t,e){return arguments.length<2?(r=Y[t],xt(r)?r:void 0):Y[t]&&Y[t][e];var r},Nt=_({}.isPrototypeOf),Gt=Object,Wt=mt?function(t){return"symbol"==typeof t}:function(t){var e=Dt("Symbol");return xt(e)&&Nt(e.prototype,Gt(t))},Vt=String,Bt=function(t){try{return Vt(t)}catch(t){return"Object"}},qt=TypeError,Ut=function(t){if(xt(t))return t;throw new qt(Bt(t)+" is not a function")},Ht=function(t,e){var r=t[e];return q(r)?void 0:Ut(r)},Xt=TypeError,Kt=TypeError,Yt=Et("toPrimitive"),$t=function(t,e){if(!Rt(t)||Wt(t))return t;var r,n=Ht(t,Yt);if(n){if(void 0===e&&(e="default"),r=_t(n,t,e),!Rt(r)||Wt(r))return r;throw new Kt("Can't convert object to primitive value")}return void 0===e&&(e="number"),function(t,e){var r,n;if("string"===e&&xt(r=t.toString)&&!Rt(n=_t(r,t)))return n;if(xt(r=t.valueOf)&&!Rt(n=_t(r,t)))return n;if("string"!==e&&xt(r=t.toString)&&!Rt(n=_t(r,t)))return n;throw new Xt("Can't convert object to primitive value")}(t,e)},Jt=function(t){var e=$t(t,"string");return Wt(e)?e:e+""},Qt=TypeError,Zt=Object.defineProperty,te=Object.getOwnPropertyDescriptor,ee="enumerable",re="configurable",ne="writable",oe={f:Ct?kt?function(t,e,r){if(Tt(t),e=Jt(e),Tt(r),"function"==typeof t&&"prototype"===e&&"value"in r&&ne in r&&!r[ne]){var n=te(t,e);n&&n[ne]&&(t[e]=r.value,r={configurable:re in r?r[re]:n[re],enumerable:ee in r?r[ee]:n[ee],writable:!1})}return Zt(t,e,r)}:Zt:function(t,e,r){if(Tt(t),e=Jt(e),Tt(r),Mt)try{return Zt(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new Qt("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},ie=Math.ceil,ue=Math.floor,ae=Math.trunc||function(t){var e=+t;return(e>0?ue:ie)(e)},ce=function(t){var e=+t;return e!=e||0===e?0:ae(e)},fe=Math.max,se=Math.min,le=Math.min,ve=function(t){return e=t.length,(r=ce(e))>0?le(r,9007199254740991):0;var e,r},pe=function(t){return function(e,r,n){var o=X(e),i=ve(o);if(0===i)return!t&&-1;var u,a=function(t,e){var r=ce(t);return r<0?fe(r+e,0):se(r,e)}(n,i);if(t&&r!=r){for(;i>a;)if((u=o[a++])!=u)return!0}else for(;i>a;a++)if((t||a in o)&&o[a]===r)return t||a||0;return!t&&-1}},de={includes:pe(!0),indexOf:pe(!1)},he={},ye=de.indexOf,ge=_([].push),be=function(t,e){var r,n=X(t),o=0,i=[];for(r in n)!nt(he,r)&&nt(n,r)&&ge(i,r);for(;e.length>o;)nt(n,r=e[o++])&&(~ye(i,r)||ge(i,r));return i},me=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Se=Object.keys||function(t){return be(t,me)},we=Ct&&!kt?Object.defineProperties:function(t,e){Tt(t);for(var r,n=X(e),o=Se(e),i=o.length,u=0;i>u;)oe.f(t,r=o[u++],n[r]);return t},Oe={f:we},Ee=Dt("document","documentElement"),je=Z("keys"),xe=function(t){return je[t]||(je[t]=at(t))},Re="prototype",Pe="script",Ae=xe("IE_PROTO"),Te=function(){},Ce=function(t){return"<"+Pe+">"+t+"</"+Pe+">"},ke=function(t){t.write(Ce("")),t.close();var e=t.parentWindow.Object;return t=null,e},ze=function(){try{ht=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;ze="undefined"!=typeof document?document.domain&&ht?ke(ht):(e=Lt("iframe"),r="java"+Pe+":",e.style.display="none",Ee.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(Ce("document.F=Object")),t.close(),t.F):ke(ht);for(var n=me.length;n--;)delete ze[Re][me[n]];return ze()};he[Ae]=!0;var Ie=Object.create||function(t,e){var r;return null!==t?(Te[Re]=Tt(t),r=new Te,Te[Re]=null,r[Ae]=t):r=ze(),void 0===e?r:Oe.f(r,e)},Le=oe.f,Me=Et("unscopables"),Fe=Array.prototype;void 0===Fe[Me]&&Le(Fe,Me,{configurable:!0,value:Ie(null)});var _e,De,Ne,Ge=function(t){Fe[Me][t]=!0},We={},Ve=Y.WeakMap,Be=xt(Ve)&&/native code/.test(String(Ve)),qe=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ue=Ct?function(t,e,r){return oe.f(t,e,qe(1,r))}:function(t,e,r){return t[e]=r,t},He="Object already initialized",Xe=Y.TypeError,Ke=Y.WeakMap;if(Be||Q.state){var Ye=Q.state||(Q.state=new Ke);Ye.get=Ye.get,Ye.has=Ye.has,Ye.set=Ye.set,_e=function(t,e){if(Ye.has(t))throw new Xe(He);return e.facade=t,Ye.set(t,e),e},De=function(t){return Ye.get(t)||{}},Ne=function(t){return Ye.has(t)}}else{var $e=xe("state");he[$e]=!0,_e=function(t,e){if(nt(t,$e))throw new Xe(He);return e.facade=t,Ue(t,$e,e),e},De=function(t){return nt(t,$e)?t[$e]:{}},Ne=function(t){return nt(t,$e)}}var Je={set:_e,get:De,has:Ne,enforce:function(t){return Ne(t)?De(t):_e(t,{})},getterFor:function(t){return function(e){var r;if(!Rt(e)||(r=De(e)).type!==t)throw new Xe("Incompatible receiver, "+t+" required");return r}}},Qe={}.propertyIsEnumerable,Ze=Object.getOwnPropertyDescriptor,tr={f:Ze&&!Qe.call({1:2},1)?function(t){var e=Ze(this,t);return!!e&&e.enumerable}:Qe},er=Object.getOwnPropertyDescriptor,rr={f:Ct?er:function(t,e){if(t=X(t),e=Jt(e),Mt)try{return er(t,e)}catch(t){}if(nt(t,e))return qe(!_t(tr.f,t,e),t[e])}},nr=Function.prototype,or=Ct&&Object.getOwnPropertyDescriptor,ir=nt(nr,"name"),ur={EXISTS:ir,PROPER:ir&&"something"===function(){}.name,CONFIGURABLE:ir&&(!Ct||Ct&&or(nr,"name").configurable)},ar=_(Function.toString);xt(Q.inspectSource)||(Q.inspectSource=function(t){return ar(t)});var cr,fr,sr,lr=Q.inspectSource,vr=v((function(t){var e=ur.CONFIGURABLE,r=Je.enforce,n=Je.get,o=String,i=Object.defineProperty,u=_("".slice),a=_("".replace),c=_([].join),f=Ct&&!z((function(){return 8!==i((function(){}),"length",{value:8}).length})),s=String(String).split("String"),l=t.exports=function(t,n,l){"Symbol("===u(o(n),0,7)&&(n="["+a(o(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),l&&l.getter&&(n="get "+n),l&&l.setter&&(n="set "+n),(!nt(t,"name")||e&&t.name!==n)&&(Ct?i(t,"name",{value:n,configurable:!0}):t.name=n),f&&l&&nt(l,"arity")&&t.length!==l.arity&&i(t,"length",{value:l.arity});try{l&&nt(l,"constructor")&&l.constructor?Ct&&i(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var v=r(t);return nt(v,"source")||(v.source=c(s,"string"==typeof n?n:"")),t};Function.prototype.toString=l((function(){return xt(this)&&n(this).source||lr(this)}),"toString")})),pr=function(t,e,r,n){n||(n={});var o=n.enumerable,i=void 0!==n.name?n.name:e;if(xt(r)&&vr(r,i,n),n.global)o?t[e]=r:J(e,r);else{try{n.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=r:oe.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},dr=me.concat("length","prototype"),hr={f:Object.getOwnPropertyNames||function(t){return be(t,dr)}},yr={f:Object.getOwnPropertySymbols},gr=_([].concat),br=Dt("Reflect","ownKeys")||function(t){var e=hr.f(Tt(t)),r=yr.f;return r?gr(e,r(t)):e},mr=function(t,e,r){for(var n=br(e),o=oe.f,i=rr.f,u=0;u<n.length;u++){var a=n[u];nt(t,a)||r&&nt(r,a)||o(t,a,i(e,a))}},Sr=/#|\.prototype\./,wr=function(t,e){var r=Er[Or(t)];return r===xr||r!==jr&&(xt(e)?z(e):!!e)},Or=wr.normalize=function(t){return String(t).replace(Sr,".").toLowerCase()},Er=wr.data={},jr=wr.NATIVE="N",xr=wr.POLYFILL="P",Rr=wr,Pr=rr.f,Ar=function(t,e){var r,n,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?Y:f?Y[a]||J(a,{}):Y[a]&&Y[a].prototype)for(n in e){if(i=e[n],o=t.dontCallGetSet?(u=Pr(r,n))&&u.value:r[n],!Rr(c?n:a+(f?".":"#")+n,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;mr(i,o)}(t.sham||o&&o.sham)&&Ue(i,"sham",!0),pr(r,n,i,t)}},Tr=!z((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Cr=xe("IE_PROTO"),kr=Object,zr=kr.prototype,Ir=Tr?kr.getPrototypeOf:function(t){var e=et(t);if(nt(e,Cr))return e[Cr];var r=e.constructor;return xt(r)&&e instanceof r?r.prototype:e instanceof kr?zr:null},Lr=Et("iterator"),Mr=!1;[].keys&&("next"in(sr=[].keys())?(fr=Ir(Ir(sr)))!==Object.prototype&&(cr=fr):Mr=!0);var Fr=!Rt(cr)||z((function(){var t={};return cr[Lr].call(t)!==t}));Fr&&(cr={}),xt(cr[Lr])||pr(cr,Lr,(function(){return this}));var _r={IteratorPrototype:cr,BUGGY_SAFARI_ITERATORS:Mr},Dr=oe.f,Nr=Et("toStringTag"),Gr=function(t,e,r){t&&!r&&(t=t.prototype),t&&!nt(t,Nr)&&Dr(t,Nr,{configurable:!0,value:e})},Wr=_r.IteratorPrototype,Vr=function(){return this},Br=String,qr=TypeError,Ur=function(t){if(function(t){return Rt(t)||null===t}(t))return t;throw new qr("Can't set "+Br(t)+" as a prototype")},Hr=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return _(Ut(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return H(r),Ur(n),Rt(r)?(e?t(r,n):r.__proto__=n,r):r}}():void 0),Xr=ur.PROPER,Kr=ur.CONFIGURABLE,Yr=_r.IteratorPrototype,$r=_r.BUGGY_SAFARI_ITERATORS,Jr=Et("iterator"),Qr="keys",Zr="values",tn="entries",en=function(){return this},rn=function(t,e,r,n,o,i,u){!function(t,e,r,n){var o=e+" Iterator";t.prototype=Ie(Wr,{next:qe(+!n,r)}),Gr(t,o,!1),We[o]=Vr}(r,e,n);var a,c,f,s=function(t){if(t===o&&h)return h;if(!$r&&t&&t in p)return p[t];switch(t){case Qr:case Zr:case tn:return function(){return new r(this,t)}}return function(){return new r(this)}},l=e+" Iterator",v=!1,p=t.prototype,d=p[Jr]||p["@@iterator"]||o&&p[o],h=!$r&&d||s(o),y="Array"===e&&p.entries||d;if(y&&(a=Ir(y.call(new t)))!==Object.prototype&&a.next&&(Ir(a)!==Yr&&(Hr?Hr(a,Yr):xt(a[Jr])||pr(a,Jr,en)),Gr(a,l,!0)),Xr&&o===Zr&&d&&d.name!==Zr&&(Kr?Ue(p,"name",Zr):(v=!0,h=function(){return _t(d,this)})),o)if(c={values:s(Zr),keys:i?h:s(Qr),entries:s(tn)},u)for(f in c)($r||v||!(f in p))&&pr(p,f,c[f]);else Ar({target:e,proto:!0,forced:$r||v},c);return p[Jr]!==h&&pr(p,Jr,h,{name:o}),We[e]=h,c},nn=function(t,e){return{value:t,done:e}},on=oe.f,un="Array Iterator",an=Je.set,cn=Je.getterFor(un),fn=rn(Array,"Array",(function(t,e){an(this,{type:un,target:X(t),index:0,kind:e})}),(function(){var t=cn(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,nn(void 0,!0);switch(t.kind){case"keys":return nn(r,!1);case"values":return nn(e[r],!1)}return nn([r,e[r]],!1)}),"values"),sn=We.Arguments=We.Array;if(Ge("keys"),Ge("values"),Ge("entries"),Ct&&"values"!==sn.name)try{on(sn,"name",{value:"values"})}catch(t){}var ln={};ln[Et("toStringTag")]="z";var vn="[object z]"===String(ln),pn=Et("toStringTag"),dn=Object,hn="Arguments"===G(function(){return arguments}()),yn=vn?G:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=dn(t),pn))?r:hn?G(e):"Object"===(n=G(e))&&xt(e.callee)?"Arguments":n},gn=vn?{}.toString:function(){return"[object "+yn(this)+"]"};vn||pr(Object.prototype,"toString",gn,{unsafe:!0});var bn=String,mn=function(t){if("Symbol"===yn(t))throw new TypeError("Cannot convert a Symbol value to a string");return bn(t)},Sn=function(){var t=Tt(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e},wn=RegExp.prototype,On=ur.PROPER,En="toString",jn=RegExp.prototype,xn=jn[En],Rn=z((function(){return"/a/b"!==xn.call({source:"a",flags:"b"})})),Pn=On&&xn.name!==En;(Rn||Pn)&&pr(jn,En,(function(){var t=Tt(this),e=mn(t.source),r=mn(function(t){var e=t.flags;return void 0!==e||"flags"in wn||nt(t,"flags")||!Nt(wn,t)?e:_t(Sn,t)}(t));return"/"+e+"/"+r}),{unsafe:!0});var An=_([].slice),Tn=hr.f,Cn="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],kn={f:function(t){return Cn&&"Window"===G(t)?function(t){try{return Tn(t)}catch(t){return An(Cn)}}(t):Tn(X(t))}},zn=z((function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})),In=Object.isExtensible,Ln=z((function(){In(1)}))||zn?function(t){return!!Rt(t)&&((!zn||"ArrayBuffer"!==G(t))&&(!In||In(t)))}:In,Mn=!z((function(){return Object.isExtensible(Object.preventExtensions({}))})),Fn=v((function(t){var e=oe.f,r=!1,n=at("meta"),o=0,i=function(t){e(t,n,{value:{objectID:"O"+o++,weakData:{}}})},u=t.exports={enable:function(){u.enable=function(){},r=!0;var t=hr.f,e=_([].splice),o={};o[n]=1,t(o).length&&(hr.f=function(r){for(var o=t(r),i=0,u=o.length;i<u;i++)if(o[i]===n){e(o,i,1);break}return o},Ar({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:kn.f}))},fastKey:function(t,e){if(!Rt(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!nt(t,n)){if(!Ln(t))return"F";if(!e)return"E";i(t)}return t[n].objectID},getWeakData:function(t,e){if(!nt(t,n)){if(!Ln(t))return!0;if(!e)return!1;i(t)}return t[n].weakData},onFreeze:function(t){return Mn&&r&&Ln(t)&&!nt(t,n)&&i(t),t}};he[n]=!0})),_n=function(t){if("Function"===G(t))return _(t)},Dn=_n(_n.bind),Nn=function(t,e){return Ut(t),void 0===e?t:I?Dn(t,e):function(){return t.apply(e,arguments)}},Gn=Et("iterator"),Wn=Array.prototype,Vn=Et("iterator"),Bn=function(t){if(!q(t))return Ht(t,Vn)||Ht(t,"@@iterator")||We[yn(t)]},qn=TypeError,Un=function(t,e,r){var n,o;Tt(t);try{if(!(n=Ht(t,"return"))){if("throw"===e)throw r;return r}n=_t(n,t)}catch(t){o=!0,n=t}if("throw"===e)throw r;if(o)throw n;return Tt(n),r},Hn=TypeError,Xn=function(t,e){this.stopped=t,this.result=e},Kn=Xn.prototype,Yn=function(t,e,r){var n,o,i,u,a,c,f,s,l=r&&r.that,v=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),d=!(!r||!r.IS_ITERATOR),h=!(!r||!r.INTERRUPTED),y=Nn(e,l),g=function(t){return n&&Un(n,"normal",t),new Xn(!0,t)},b=function(t){return v?(Tt(t),h?y(t[0],t[1],g):y(t[0],t[1])):h?y(t,g):y(t)};if(p)n=t.iterator;else if(d)n=t;else{if(!(o=Bn(t)))throw new Hn(Bt(t)+" is not iterable");if(void 0!==(s=o)&&(We.Array===s||Wn[Gn]===s)){for(i=0,u=ve(t);u>i;i++)if((a=b(t[i]))&&Nt(Kn,a))return a;return new Xn(!1)}n=function(t,e){var r=arguments.length<2?Bn(t):e;if(Ut(r))return Tt(_t(r,t));throw new qn(Bt(t)+" is not iterable")}(t,o)}for(c=p?t.next:n.next;!(f=_t(c,n)).done;){try{a=b(f.value)}catch(t){Un(n,"throw",t)}if("object"==typeof a&&a&&Nt(Kn,a))return a}return new Xn(!1)},$n=TypeError,Jn=function(t,e){if(Nt(e,t))return t;throw new $n("Incorrect invocation")},Qn=Et("iterator"),Zn=!1;try{var to=0,eo={next:function(){return{done:!!to++}},return:function(){Zn=!0}};eo[Qn]=function(){return this},Array.from(eo,(function(){throw 2}))}catch(t){}var ro=function(t,e,r){var n=-1!==t.indexOf("Map"),o=-1!==t.indexOf("Weak"),i=n?"set":"add",u=Y[t],a=u&&u.prototype,c=u,f={},s=function(t){var e=_(a[t]);pr(a,t,"add"===t?function(t){return e(this,0===t?0:t),this}:"delete"===t?function(t){return!(o&&!Rt(t))&&e(this,0===t?0:t)}:"get"===t?function(t){return o&&!Rt(t)?void 0:e(this,0===t?0:t)}:"has"===t?function(t){return!(o&&!Rt(t))&&e(this,0===t?0:t)}:function(t,r){return e(this,0===t?0:t,r),this})};if(Rr(t,!xt(u)||!(o||a.forEach&&!z((function(){(new u).entries().next()})))))c=r.getConstructor(e,t,n,i),Fn.enable();else if(Rr(t,!0)){var l=new c,v=l[i](o?{}:-0,1)!==l,p=z((function(){l.has(1)})),d=function(t,e){try{if(!e&&!Zn)return!1}catch(t){return!1}var r=!1;try{var n={};n[Qn]=function(){return{next:function(){return{done:r=!0}}}},t(n)}catch(t){}return r}((function(t){new u(t)})),h=!o&&z((function(){for(var t=new u,e=5;e--;)t[i](e,e);return!t.has(-0)}));d||((c=e((function(t,e){Jn(t,a);var r=function(t,e,r){var n,o;return Hr&&xt(n=e.constructor)&&n!==r&&Rt(o=n.prototype)&&o!==r.prototype&&Hr(t,o),t}(new u,t,c);return q(e)||Yn(e,r[i],{that:r,AS_ENTRIES:n}),r}))).prototype=a,a.constructor=c),(p||h)&&(s("delete"),s("has"),n&&s("get")),(h||v)&&s(i),o&&a.clear&&delete a.clear}return f[t]=c,Ar({global:!0,constructor:!0,forced:c!==u},f),Gr(c,t),o||r.setStrong(c,t,n),c},no=function(t,e,r){return r.get&&vr(r.get,e,{getter:!0}),r.set&&vr(r.set,e,{setter:!0}),oe.f(t,e,r)},oo=function(t,e,r){for(var n in e)pr(t,n,e[n],r);return t},io=Et("species"),uo=Fn.fastKey,ao=Je.set,co=Je.getterFor,fo={getConstructor:function(t,e,r,n){var o=t((function(t,o){Jn(t,i),ao(t,{type:e,index:Ie(null),first:null,last:null,size:0}),Ct||(t.size=0),q(o)||Yn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=co(e),a=function(t,e,r){var n,o,i=u(t),a=c(t,e);return a?a.value=r:(i.last=a={index:o=uo(e,!0),key:e,value:r,previous:n=i.last,next:null,removed:!1},i.first||(i.first=a),n&&(n.next=a),Ct?i.size++:t.size++,"F"!==o&&(i.index[o]=a)),t},c=function(t,e){var r,n=u(t),o=uo(e);if("F"!==o)return n.index[o];for(r=n.first;r;r=r.next)if(r.key===e)return r};return oo(i,{clear:function(){for(var t=u(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=null),e=e.next;t.first=t.last=null,t.index=Ie(null),Ct?t.size=0:this.size=0},delete:function(t){var e=this,r=u(e),n=c(e,t);if(n){var o=n.next,i=n.previous;delete r.index[n.index],n.removed=!0,i&&(i.next=o),o&&(o.previous=i),r.first===n&&(r.first=o),r.last===n&&(r.last=i),Ct?r.size--:e.size--}return!!n},forEach:function(t){for(var e,r=u(this),n=Nn(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!c(this,t)}}),oo(i,r?{get:function(t){var e=c(this,t);return e&&e.value},set:function(t,e){return a(this,0===t?0:t,e)}}:{add:function(t){return a(this,t=0===t?0:t,t)}}),Ct&&no(i,"size",{configurable:!0,get:function(){return u(this).size}}),o},setStrong:function(t,e,r){var n=e+" Iterator",o=co(e),i=co(n);rn(t,e,(function(t,e){ao(this,{type:n,target:t,state:o(t),kind:e,last:null})}),(function(){for(var t=i(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?nn("keys"===e?r.key:"values"===e?r.value:[r.key,r.value],!1):(t.target=null,nn(void 0,!0))}),r?"entries":"values",!r,!0),function(t){var e=Dt(t);Ct&&e&&!e[io]&&no(e,io,{configurable:!0,get:function(){return this}})}(e)}};ro("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),fo);var so=_("".charAt),lo=_("".charCodeAt),vo=_("".slice),po=function(t){return function(e,r){var n,o,i=mn(H(e)),u=ce(r),a=i.length;return u<0||u>=a?t?"":void 0:(n=lo(i,u))<55296||n>56319||u+1===a||(o=lo(i,u+1))<56320||o>57343?t?so(i,u):n:t?vo(i,u,u+2):o-56320+(n-55296<<10)+65536}},ho={codeAt:po(!1),charAt:po(!0)}.charAt,yo="String Iterator",go=Je.set,bo=Je.getterFor(yo);rn(String,"String",(function(t){go(this,{type:yo,string:mn(t),index:0})}),(function(){var t,e=bo(this),r=e.string,n=e.index;return n>=r.length?nn(void 0,!0):(t=ho(r,n),e.index+=t.length,nn(t,!1))}));var mo=Array.isArray||function(t){return"Array"===G(t)},So=function(){},wo=Dt("Reflect","construct"),Oo=/^\s*(?:class|function)\b/,Eo=_(Oo.exec),jo=!Oo.test(So),xo=function(t){if(!xt(t))return!1;try{return wo(So,[],t),!0}catch(t){return!1}},Ro=function(t){if(!xt(t))return!1;switch(yn(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return jo||!!Eo(Oo,lr(t))}catch(t){return!0}};Ro.sham=!0;var Po=!wo||z((function(){var t;return xo(xo.call)||!xo(Object)||!xo((function(){t=!0}))||t}))?Ro:xo,Ao=Et("species"),To=Array,Co=function(t,e){return new(function(t){var e;return mo(t)&&(e=t.constructor,(Po(e)&&(e===To||mo(e.prototype))||Rt(e)&&null===(e=e[Ao]))&&(e=void 0)),void 0===e?To:e}(t))(0===e?0:e)},ko=_([].push),zo=function(t){var e=1===t,r=2===t,n=3===t,o=4===t,i=6===t,u=7===t,a=5===t||i;return function(c,f,s,l){for(var v,p,d=et(c),h=B(d),y=ve(h),g=Nn(f,s),b=0,m=l||Co,S=e?m(c,y):r||u?m(c,0):void 0;y>b;b++)if((a||b in h)&&(p=g(v=h[b],b,d),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return v;case 6:return b;case 2:ko(S,v)}else switch(t){case 4:return!1;case 7:ko(S,v)}return i?-1:n||o?o:S}},Io={forEach:zo(0),map:zo(1),filter:zo(2),some:zo(3),every:zo(4),find:zo(5),findIndex:zo(6),filterReject:zo(7)},Lo=Fn.getWeakData,Mo=Je.set,Fo=Je.getterFor,_o=Io.find,Do=Io.findIndex,No=_([].splice),Go=0,Wo=function(t){return t.frozen||(t.frozen=new Vo)},Vo=function(){this.entries=[]},Bo=function(t,e){return _o(t.entries,(function(t){return t[0]===e}))};Vo.prototype={get:function(t){var e=Bo(this,t);if(e)return e[1]},has:function(t){return!!Bo(this,t)},set:function(t,e){var r=Bo(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=Do(this.entries,(function(e){return e[0]===t}));return~e&&No(this.entries,e,1),!!~e}};var qo,Uo={getConstructor:function(t,e,r,n){var o=t((function(t,o){Jn(t,i),Mo(t,{type:e,id:Go++,frozen:null}),q(o)||Yn(o,t[n],{that:t,AS_ENTRIES:r})})),i=o.prototype,u=Fo(e),a=function(t,e,r){var n=u(t),o=Lo(Tt(e),!0);return!0===o?Wo(n).set(e,r):o[n.id]=r,t};return oo(i,{delete:function(t){var e=u(this);if(!Rt(t))return!1;var r=Lo(t);return!0===r?Wo(e).delete(t):r&&nt(r,e.id)&&delete r[e.id]},has:function(t){var e=u(this);if(!Rt(t))return!1;var r=Lo(t);return!0===r?Wo(e).has(t):r&&nt(r,e.id)}}),oo(i,r?{get:function(t){var e=u(this);if(Rt(t)){var r=Lo(t);if(!0===r)return Wo(e).get(t);if(r)return r[e.id]}},set:function(t,e){return a(this,t,e)}}:{add:function(t){return a(this,t,!0)}}),o}},Ho=Je.enforce,Xo=Object,Ko=Array.isArray,Yo=Xo.isExtensible,$o=Xo.isFrozen,Jo=Xo.isSealed,Qo=Xo.freeze,Zo=Xo.seal,ti=!Y.ActiveXObject&&"ActiveXObject"in Y,ei=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},ri=ro("WeakMap",ei,Uo),ni=ri.prototype,oi=_(ni.set);if(Be)if(ti){qo=Uo.getConstructor(ei,"WeakMap",!0),Fn.enable();var ii=_(ni.delete),ui=_(ni.has),ai=_(ni.get);oo(ni,{delete:function(t){if(Rt(t)&&!Yo(t)){var e=Ho(this);return e.frozen||(e.frozen=new qo),ii(this,t)||e.frozen.delete(t)}return ii(this,t)},has:function(t){if(Rt(t)&&!Yo(t)){var e=Ho(this);return e.frozen||(e.frozen=new qo),ui(this,t)||e.frozen.has(t)}return ui(this,t)},get:function(t){if(Rt(t)&&!Yo(t)){var e=Ho(this);return e.frozen||(e.frozen=new qo),ui(this,t)?ai(this,t):e.frozen.get(t)}return ai(this,t)},set:function(t,e){if(Rt(t)&&!Yo(t)){var r=Ho(this);r.frozen||(r.frozen=new qo),ui(this,t)?oi(this,t,e):r.frozen.set(t,e)}else oi(this,t,e);return this}})}else Mn&&z((function(){var t=Qo([]);return oi(new ri,t,1),!$o(t)}))&&oo(ni,{set:function(t,e){var r;return Ko(t)&&($o(t)?r=Qo:Jo(t)&&(r=Zo)),oi(this,t,e),r&&r(t),this}});var ci,fi,si={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},li=Lt("span").classList,vi=li&&li.constructor&&li.constructor.prototype,pi=vi===Object.prototype?void 0:vi,di=Io.forEach,hi=!!(fi=[]["forEach"])&&z((function(){fi.call(null,ci||function(){return 1},1)}))?[].forEach:function(t){return di(this,t,arguments.length>1?arguments[1]:void 0)},yi=function(t){if(t&&t.forEach!==hi)try{Ue(t,"forEach",hi)}catch(e){t.forEach=hi}};for(var gi in si)si[gi]&&yi(Y[gi]&&Y[gi].prototype);yi(pi);var bi=Et("iterator"),mi=fn.values,Si=function(t,e){if(t){if(t[bi]!==mi)try{Ue(t,bi,mi)}catch(e){t[bi]=mi}if(Gr(t,e,!0),si[e])for(var r in fn)if(t[r]!==fn[r])try{Ue(t,r,fn[r])}catch(e){t[r]=fn[r]}}};for(var wi in si)Si(Y[wi]&&Y[wi].prototype,wi);function Oi(){var t=c();return r.CursorEditor.isCursorEditor(t)||console.warn("Cannot use useSyncExternalStore outside the context of a RemoteCursorEditor"),t}Si(pi,"DOMTokenList");var Ei=new WeakMap;function ji(t){var e=Ei.get(t);if(e)return e;var n=function(t){var e={},n=new Set,o=n.add.bind(n),i=new Set,u=null;return[function(e){return i.add(e),u||(u=function(t){t.added.forEach(o),t.removed.forEach(o),t.updated.forEach(o),i.forEach((function(t){return t()}))},r.CursorEditor.on(t,"change",u)),function(){i.delete(e),u&&0===i.size&&(r.CursorEditor.off(t,"change",u),u=null)}},function(){return 0===n.size?e:(n.forEach((function(n){var o=r.CursorEditor.cursorState(t,n);null!==o?e[n]=o:delete e[n.toString()]})),n.clear(),e=f({},e))}]}(t);return t&&Ei.set(t,n),n}function xi(){return ji(Oi())}function Ri(){var t=s(xi(),2),e=t[0],r=t[1];return w.useSyncExternalStore(e,r)}var Pi=new WeakMap;function Ai(t,e){if(!e.relativeSelection)return null;var n=Pi.get(t.children);n||(n=new WeakMap,Pi.set(t.children,n));var o=n.get(e);if(void 0===o)try{o=r.relativeRangeToSlateRange(t.sharedRoot,t,e.relativeSelection),n.set(e,o)}catch(t){return null}return o}var Ti=Et("species"),Ci=Io.map,ki=function(t){return yt>=51||!z((function(){var e=[];return(e.constructor={})[Ti]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("map");Ar({target:"Array",proto:!0,forced:!ki},{map:function(t){return Ci(this,t,arguments.length>1?arguments[1]:void 0)}});var zi=_(tr.f),Ii=_([].push),Li=Ct&&z((function(){var t=Object.create(null);return t[2]=2,!zi(t,2)})),Mi=function(t){return function(e){for(var r,n=X(e),o=Se(n),i=Li&&null===Ir(n),u=o.length,a=0,c=[];u>a;)r=o[a++],Ct&&!(i?r in n:zi(n,r))||Ii(c,t?[r,n[r]]:n[r]);return c}},Fi={entries:Mi(!0),values:Mi(!1)}.entries;Ar({target:"Object",stat:!0},{entries:function(t){return Fi(t)}});var _i=Fn.onFreeze,Di=Object.freeze,Ni=z((function(){Di(1)}));Ar({target:"Object",stat:!0,forced:Ni,sham:!Mn},{freeze:function(t){return Di&&Rt(t)?Di(_i(t)):t}});Ar({target:"Object",stat:!0},{fromEntries:function(t){var e={};return Yn(t,(function(t,r){var n,o,i;n=e,o=t,i=r,Ct?oe.f(n,o,qe(0,i)):n[o]=i}),{AS_ENTRIES:!0}),e}});var Gi=z((function(){Se(1)}));function Wi(t,e,r){var i,u,a=r.yOffset,c=r.xOffset,f=r.shouldGenerateOverlay,l=s(n.Range.edges(e),2),v=l[0],p=l[1],d=function(t,e){try{return o.DomEditor.toDOMRange(t,e)}catch(t){return null}}(t,e);if(!d)return{caretPosition:null,selectionRects:[]};var h=[],y=n.Editor.nodes(t,{at:e,match:function(t,e){return n.Text.isText(t)&&(!f||f(t,e))}}),g=null,b=n.Range.isBackward(e);try{for(var m=function(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(y),S=m.next();!S.done;S=m.next()){var w=s(S.value,2),O=w[0],E=w[1],j=o.DomEditor.toDOMNode(t,O),x=n.Path.equals(E,v.path),R=n.Path.equals(E,p.path),P=null;if(x||R){var A=document.createRange();A.selectNode(j),x&&A.setStart(d.startContainer,d.startOffset),R&&A.setEnd(d.endContainer,d.endOffset),P=A.getClientRects()}else P=j.getClientRects();for(var T=b?x:R,C=0;C<P.length;C++){var k=P.item(C);if(k){var z=T&&(b?0===C:C===P.length-1),I=k.top-a,L=k.left-c;z&&(g={height:k.height,top:I,left:L+(b||n.Range.isCollapsed(e)?0:k.width)}),h.push({width:k.width,height:k.height,top:I,left:L})}}}}catch(t){i={error:t}}finally{try{S&&!S.done&&(u=m.return)&&u.call(m)}finally{if(i)throw i.error}}return{selectionRects:h,caretPosition:g}}Ar({target:"Object",stat:!0,forced:Gi},{keys:function(t){return Se(et(t))}});var Vi=Object.freeze([]);t.EditorContext=a,t.getCursorRange=Ai,t.useEditorStatic=c,t.useRemoteCursorOverlayPositions=function(t){var r;void 0===t&&(t={});var n,o,i,u=t.containerRef,a=t.shouldGenerateOverlay,c=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]])}return r}(t,["containerRef","shouldGenerateOverlay"]),l=Oi(),v=Ri(),p=(n=s(e.useReducer((function(t){return t+1}),0),2)[1],o=e.useRef(null),i=function(){o.current&&(cancelAnimationFrame(o.current),o.current=0)},e.useEffect(i),e.useEffect((function(){return i}),[]),e.useCallback((function(t){void 0===t&&(t=!1),t?n():o.current||(o.current=requestAnimationFrame(n))}),[])),d=e.useRef(new WeakMap),h=s(e.useState({}),2),y=h[0],g=h[1],b=!("refreshOnResize"in c)||(null===(r=c.refreshOnResize)||void 0===r||r);!function(t,r){var n=e.useRef(r);n.current=r;var o=s(e.useState((function(){return new ResizeObserver((function(){n.current()}))})),1)[0];e.useEffect((function(){if(null==t?void 0:t.current){var e=t.current;return o.observe(e),function(){return o.unobserve(e)}}}),[o,t])}(b?u:void 0,(function(){d.current=new WeakMap,p("debounced"!==b)})),e.useLayoutEffect((function(){var t,e,r;if(!u||u.current){var n=null===(t=null==u?void 0:u.current)||void 0===t?void 0:t.getBoundingClientRect(),o=null!==(e=null==n?void 0:n.x)&&void 0!==e?e:0,i=null!==(r=null==n?void 0:n.y)&&void 0!==r?r:0,c=Object.keys(y).length!==Object.keys(v).length,f=Object.fromEntries(Object.entries(v).map((function(t){var e=s(t,2),r=e[0],n=e[1],u=n.relativeSelection&&Ai(l,n);if(!u)return[r,Vi];var f=d.current.get(u);if(f)return[r,f];var v=Wi(l,u,{xOffset:o,yOffset:i,shouldGenerateOverlay:a});return c=!0,d.current.set(u,v),[r,v]})));c&&g(f)}}));var m=e.useMemo((function(){return Object.entries(v).map((function(t){var e,r,n=s(t,2),o=n[0],i=n[1],u=i.relativeSelection&&Ai(l,i),a=y[o];return f(f({},i),{range:u,caretPosition:null!==(e=null==a?void 0:a.caretPosition)&&void 0!==e?e:null,selectionRects:null!==(r=null==a?void 0:a.selectionRects)&&void 0!==r?r:Vi})}))}),[v,l,y]);return[m,e.useCallback((function(){d.current=new WeakMap,p(!0)}),[p])]},t.useRemoteCursorStates=Ri,t.useRemoteCursorStatesSelector=function(t,e){var r=s(xi(),2),n=r[0],o=r[1];return k.useSyncExternalStoreWithSelector(n,o,null,t,e)},Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
40
40
|
//# sourceMappingURL=index.js.map
|