@wangeditor-next/plugin-formula 1.0.36 → 1.0.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/core/src/editor/dom-editor.d.ts +1 -0
- package/dist/core/src/editor/interface.d.ts +4 -1
- package/dist/core/src/render/text/renderText.d.ts +1 -1
- package/dist/core/src/text-area/TextArea.d.ts +3 -0
- package/dist/core/src/text-area/helpers.d.ts +7 -3
- package/dist/core/src/utils/weak-maps.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import t from"katex";import{i18nAddResources as n,t as r,DomEditor as e,SlateRange as o,genModalTextareaElems as i,genModalButtonElems as u,SlateTransforms as c}from"@wangeditor-next/editor";import{h as f}from"snabbdom";var a=function(t,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},a(t,n)};function l(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,o,i=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var s,p,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v={};function h(){if(p)return s;p=1;var t=function(t){return t&&t.Math===Math&&t};return s=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof d&&d)||t("object"==typeof s&&s)||function(){return this}()||Function("return this")()}var y,m,g,b,w,E,x,O,S,j,T,L,I,P,A,C,M,R,N,_,k,F,D,H,z,$,B,V,W,U,q,G,K,X,Y,J,Q,Z={exports:{}};function tt(){if(b)return g;b=1;var t=h(),n=Object.defineProperty;return g=function(r,e){try{n(t,r,{value:e,configurable:!0,writable:!0})}catch(n){t[r]=e}return e}}function nt(){if(w)return Z.exports;w=1;var t=m?y:(m=1,y=!1),n=h(),r=tt(),e="__core-js_shared__",o=Z.exports=n[e]||r(e,{});return(o.versions||(o.versions=[])).push({version:"3.48.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Z.exports}function rt(){if(x)return E;x=1;var t=nt();return E=function(n,r){return t[n]||(t[n]=r||{})}}function et(){return S?O:(S=1,O=function(t){try{return!!t()}catch(t){return!0}})}function ot(){if(T)return j;T=1;var t=et();return j=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function it(){if(I)return L;I=1;var t=ot(),n=Function.prototype,r=n.call,e=t&&n.bind.bind(r,r);return L=t?e:function(t){return function(){return r.apply(t,arguments)}},L}function ut(){return A?P:(A=1,P=function(t){return null==t})}function ct(){if(M)return C;M=1;var t=ut(),n=TypeError;return C=function(r){if(t(r))throw new n("Can't call method on "+r);return r}}function ft(){if(N)return R;N=1;var t=ct(),n=Object;return R=function(r){return n(t(r))}}function at(){if(k)return _;k=1;var t=it(),n=ft(),r=t({}.hasOwnProperty);return _=Object.hasOwn||function(t,e){return r(n(t),e)}}function lt(){if(D)return F;D=1;var t=it(),n=0,r=Math.random(),e=t(1.1.toString);return F=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++n+r,36)}}function st(){if(B)return $;B=1;var t,n,r=h(),e=function(){if(z)return H;z=1;var t=h().navigator,n=t&&t.userAgent;return H=n?String(n):""}(),o=r.process,i=r.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(n=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!n&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(n=+t[1]),$=n}function pt(){if(W)return V;W=1;var t=st(),n=et(),r=h().String;return V=!!Object.getOwnPropertySymbols&&!n(function(){var n=Symbol("symbol detection");return!r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function dt(){if(q)return U;q=1;var t=pt();return U=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function vt(){if(K)return G;K=1;var t=h(),n=rt(),r=at(),e=lt(),o=pt(),i=dt(),u=t.Symbol,c=n("wks"),f=i?u.for||u:u&&u.withoutSetter||e;return G=function(t){return r(c,t)||(c[t]=o&&r(u,t)?u[t]:f("Symbol."+t)),c[t]}}function ht(){if(Y)return X;Y=1;var t={};return t[vt()("toStringTag")]="z",X="[object z]"===String(t)}function yt(){if(Q)return J;Q=1;var t="object"==typeof document&&document.all;return J=void 0===t&&void 0!==t?function(n){return"function"==typeof n||n===t}:function(t){return"function"==typeof t}}var mt,gt,bt,wt,Et,xt,Ot,St,jt,Tt,Lt,It,Pt,At,Ct,Mt,Rt,Nt,_t,kt,Ft,Dt,Ht,zt,$t,Bt,Vt,Wt,Ut,qt,Gt,Kt,Xt,Yt={};function Jt(){if(gt)return mt;gt=1;var t=et();return mt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Qt(){if(wt)return bt;wt=1;var t=yt();return bt=function(n){return"object"==typeof n?null!==n:t(n)}}function Zt(){if(xt)return Et;xt=1;var t=h(),n=Qt(),r=t.document,e=n(r)&&n(r.createElement);return Et=function(t){return e?r.createElement(t):{}}}function tn(){if(St)return Ot;St=1;var t=Jt(),n=et(),r=Zt();return Ot=!t&&!n(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function nn(){if(Tt)return jt;Tt=1;var t=Jt(),n=et();return jt=t&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function rn(){if(It)return Lt;It=1;var t=Qt(),n=String,r=TypeError;return Lt=function(e){if(t(e))return e;throw new r(n(e)+" is not an object")}}function en(){if(At)return Pt;At=1;var t=ot(),n=Function.prototype.call;return Pt=t?n.bind(n):function(){return n.apply(n,arguments)},Pt}function on(){if(Mt)return Ct;Mt=1;var t=h(),n=yt();return Ct=function(r,e){return arguments.length<2?(o=t[r],n(o)?o:void 0):t[r]&&t[r][e];var o},Ct}function un(){if(kt)return _t;kt=1;var t=on(),n=yt(),r=function(){if(Nt)return Rt;Nt=1;var t=it();return Rt=t({}.isPrototypeOf)}(),e=dt(),o=Object;return _t=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return n(i)&&r(i.prototype,o(e))}}function cn(){if(Dt)return Ft;Dt=1;var t=String;return Ft=function(n){try{return t(n)}catch(t){return"Object"}}}function fn(){if(zt)return Ht;zt=1;var t=yt(),n=cn(),r=TypeError;return Ht=function(e){if(t(e))return e;throw new r(n(e)+" is not a function")}}function an(){if(Bt)return $t;Bt=1;var t=fn(),n=ut();return $t=function(r,e){var o=r[e];return n(o)?void 0:t(o)}}function ln(){if(Wt)return Vt;Wt=1;var t=en(),n=yt(),r=Qt(),e=TypeError;return Vt=function(o,i){var u,c;if("string"===i&&n(u=o.toString)&&!r(c=t(u,o)))return c;if(n(u=o.valueOf)&&!r(c=t(u,o)))return c;if("string"!==i&&n(u=o.toString)&&!r(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")},Vt}function sn(){if(qt)return Ut;qt=1;var t=en(),n=Qt(),r=un(),e=an(),o=ln(),i=vt(),u=TypeError,c=i("toPrimitive");return Ut=function(i,f){if(!n(i)||r(i))return i;var a,l=e(i,c);if(l){if(void 0===f&&(f="default"),a=t(l,i,f),!n(a)||r(a))return a;throw new u("Can't convert object to primitive value")}return void 0===f&&(f="number"),o(i,f)}}function pn(){if(Kt)return Gt;Kt=1;var t=sn(),n=un();return Gt=function(r){var e=t(r,"string");return n(e)?e:e+""}}function dn(){if(Xt)return Yt;Xt=1;var t=Jt(),n=tn(),r=nn(),e=rn(),o=pn(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",a="configurable",l="writable";return Yt.f=t?r?function(t,n,r){if(e(t),n=o(n),e(r),"function"==typeof t&&"prototype"===n&&"value"in r&&l in r&&!r[l]){var i=c(t,n);i&&i[l]&&(t[n]=r.value,r={configurable:a in r?r[a]:i[a],enumerable:f in r?r[f]:i[f],writable:!1})}return u(t,n,r)}:u:function(t,r,c){if(e(t),r=o(r),e(c),n)try{return u(t,r,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[r]=c.value),t},Yt}var vn,hn,yn,mn,gn,bn,wn,En,xn,On,Sn,jn,Tn,Ln,In,Pn,An,Cn,Mn,Rn,Nn,_n,kn,Fn,Dn,Hn,zn={exports:{}};function $n(){if(hn)return vn;hn=1;var t=Jt(),n=at(),r=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=n(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(r,"name").configurable);return vn={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Bn(){if(mn)return yn;mn=1;var t=it(),n=yt(),r=nt(),e=t(Function.toString);return n(r.inspectSource)||(r.inspectSource=function(t){return e(t)}),yn=r.inspectSource}function Vn(){return En?wn:(En=1,wn=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}})}function Wn(){if(On)return xn;On=1;var t=Jt(),n=dn(),r=Vn();return xn=t?function(t,e,o){return n.f(t,e,r(1,o))}:function(t,n,r){return t[n]=r,t}}function Un(){if(jn)return Sn;jn=1;var t=rt(),n=lt(),r=t("keys");return Sn=function(t){return r[t]||(r[t]=n(t))}}function qn(){return Ln?Tn:(Ln=1,Tn={})}function Gn(){if(Pn)return In;Pn=1;var t,n,r,e=function(){if(bn)return gn;bn=1;var t=h(),n=yt(),r=t.WeakMap;return gn=n(r)&&/native code/.test(String(r))}(),o=h(),i=Qt(),u=Wn(),c=at(),f=nt(),a=Un(),l=qn(),s="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||f.state){var v=f.state||(f.state=new d);v.get=v.get,v.has=v.has,v.set=v.set,t=function(t,n){if(v.has(t))throw new p(s);return n.facade=t,v.set(t,n),n},n=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var y=a("state");l[y]=!0,t=function(t,n){if(c(t,y))throw new p(s);return n.facade=t,u(t,y,n),n},n=function(t){return c(t,y)?t[y]:{}},r=function(t){return c(t,y)}}return In={set:t,get:n,has:r,enforce:function(e){return r(e)?n(e):t(e,{})},getterFor:function(t){return function(r){var e;if(!i(r)||(e=n(r)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function Kn(){if(An)return zn.exports;An=1;var t=it(),n=et(),r=yt(),e=at(),o=Jt(),i=$n().CONFIGURABLE,u=Bn(),c=Gn(),f=c.enforce,a=c.get,l=String,s=Object.defineProperty,p=t("".slice),d=t("".replace),v=t([].join),h=o&&!n(function(){return 8!==s(function(){},"length",{value:8}).length}),y=String(String).split("String"),m=zn.exports=function(t,n,r){"Symbol("===p(l(n),0,7)&&(n="["+d(l(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!e(t,"name")||i&&t.name!==n)&&(o?s(t,"name",{value:n,configurable:!0}):t.name=n),h&&r&&e(r,"arity")&&t.length!==r.arity&&s(t,"length",{value:r.arity});try{r&&e(r,"constructor")&&r.constructor?o&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return e(u,"source")||(u.source=v(y,"string"==typeof n?n:"")),t};return Function.prototype.toString=m(function(){return r(this)&&a(this).source||u(this)},"toString"),zn.exports}function Xn(){if(Mn)return Cn;Mn=1;var t=yt(),n=dn(),r=Kn(),e=tt();return Cn=function(o,i,u,c){c||(c={});var f=c.enumerable,a=void 0!==c.name?c.name:i;if(t(u)&&r(u,a,c),c.global)f?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(f=!0):delete o[i]}catch(t){}f?o[i]=u:n.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}function Yn(){if(Nn)return Rn;Nn=1;var t=it(),n=t({}.toString),r=t("".slice);return Rn=function(t){return r(n(t),8,-1)}}function Jn(){if(kn)return _n;kn=1;var t=ht(),n=yt(),r=Yn(),e=vt()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return _n=t?r:function(t){var u,c,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,n){try{return t[n]}catch(t){}}(u=o(t),e))?c:i?r(u):"Object"===(f=r(u))&&n(u.callee)?"Arguments":f}}!function(){if(Hn)return v;Hn=1;var t=ht(),n=Xn(),r=function(){if(Dn)return Fn;Dn=1;var t=ht(),n=Jn();return Fn=t?{}.toString:function(){return"[object "+n(this)+"]"}}();t||n(Object.prototype,"toString",r,{unsafe:!0})}();var Qn,Zn,tr,nr,rr,er,or={},ir={},ur={};function cr(){if(tr)return Zn;tr=1;var t=it(),n=et(),r=Yn(),e=Object,o=t("".split);return Zn=n(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):e(t)}:e}function fr(){if(rr)return nr;rr=1;var t=cr(),n=ct();return nr=function(r){return t(n(r))}}function ar(){if(er)return ir;er=1;var t=Jt(),n=en(),r=function(){if(Qn)return ur;Qn=1;var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);return ur.f=r?function(t){var r=n(this,t);return!!r&&r.enumerable}:t,ur}(),e=Vn(),o=fr(),i=pn(),u=at(),c=tn(),f=Object.getOwnPropertyDescriptor;return ir.f=t?f:function(t,a){if(t=o(t),a=i(a),c)try{return f(t,a)}catch(t){}if(u(t,a))return e(!n(r.f,t,a),t[a])},ir}var lr,sr,pr,dr,vr,hr,yr,mr,gr,br,wr,Er,xr,Or,Sr,jr,Tr,Lr={};function Ir(){if(dr)return pr;dr=1;var t=function(){if(sr)return lr;sr=1;var t=Math.ceil,n=Math.floor;return lr=Math.trunc||function(r){var e=+r;return(e>0?n:t)(e)}}();return pr=function(n){var r=+n;return r!=r||0===r?0:t(r)}}function Pr(){if(hr)return vr;hr=1;var t=Ir(),n=Math.max,r=Math.min;return vr=function(e,o){var i=t(e);return i<0?n(i+o,0):r(i,o)}}function Ar(){if(mr)return yr;mr=1;var t=Ir(),n=Math.min;return yr=function(r){var e=t(r);return e>0?n(e,9007199254740991):0}}function Cr(){if(br)return gr;br=1;var t=Ar();return gr=function(n){return t(n.length)}}function Mr(){if(Or)return xr;Or=1;var t=it(),n=at(),r=fr(),e=function(){if(Er)return wr;Er=1;var t=fr(),n=Pr(),r=Cr(),e=function(e){return function(o,i,u){var c=t(o),f=r(c);if(0===f)return!e&&-1;var a,l=n(u,f);if(e&&i!=i){for(;f>l;)if((a=c[l++])!=a)return!0}else for(;f>l;l++)if((e||l in c)&&c[l]===i)return e||l||0;return!e&&-1}};return wr={includes:e(!0),indexOf:e(!1)}}().indexOf,o=qn(),i=t([].push);return xr=function(t,u){var c,f=r(t),a=0,l=[];for(c in f)!n(o,c)&&n(f,c)&&i(l,c);for(;u.length>a;)n(f,c=u[a++])&&(~e(l,c)||i(l,c));return l}}function Rr(){return jr?Sr:(jr=1,Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Nr,_r,kr,Fr,Dr,Hr,zr,$r,Br,Vr,Wr,Ur,qr,Gr,Kr,Xr,Yr,Jr,Qr,Zr={};function te(){if(kr)return _r;kr=1;var t=on(),n=it(),r=function(){if(Tr)return Lr;Tr=1;var t=Mr(),n=Rr().concat("length","prototype");return Lr.f=Object.getOwnPropertyNames||function(r){return t(r,n)},Lr}(),e=(Nr||(Nr=1,Zr.f=Object.getOwnPropertySymbols),Zr),o=rn(),i=n([].concat);return _r=t("Reflect","ownKeys")||function(t){var n=r.f(o(t)),u=e.f;return u?i(n,u(t)):n}}function ne(){if(Dr)return Fr;Dr=1;var t=at(),n=te(),r=ar(),e=dn();return Fr=function(o,i,u){for(var c=n(i),f=e.f,a=r.f,l=0;l<c.length;l++){var s=c[l];t(o,s)||u&&t(u,s)||f(o,s,a(i,s))}}}function re(){if(Br)return $r;Br=1;var t=h(),n=ar().f,r=Wn(),e=Xn(),o=tt(),i=ne(),u=function(){if(zr)return Hr;zr=1;var t=et(),n=yt(),r=/#|\.prototype\./,e=function(r,e){var f=i[o(r)];return f===c||f!==u&&(n(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Hr=e}();return $r=function(c,f){var a,l,s,p,d,v=c.target,h=c.global,y=c.stat;if(a=h?t:y?t[v]||o(v,{}):t[v]&&t[v].prototype)for(l in f){if(p=f[l],s=c.dontCallGetSet?(d=n(a,l))&&d.value:a[l],!u(h?l:v+(y?".":"#")+l,c.forced)&&void 0!==s){if(typeof p==typeof s)continue;i(p,s)}(c.sham||s&&s.sham)&&r(p,"sham",!0),e(a,l,p,c)}}}function ee(){if(qr)return Ur;qr=1;var t=it();return Ur=t([].slice)}function oe(){if(Kr)return Gr;Kr=1;var t=it(),n=fn(),r=Qt(),e=at(),o=ee(),i=ot(),u=Function,c=t([].concat),f=t([].join),a={};return Gr=i?u.bind:function(t){var i=n(this),l=i.prototype,s=o(arguments,1),p=function(){var n=c(s,o(arguments));return this instanceof p?function(t,n,r){if(!e(a,n)){for(var o=[],i=0;i<n;i++)o[i]="a["+i+"]";a[n]=u("C,a","return new C("+f(o,",")+")")}return a[n](t,r)}(i,n.length,n):i.apply(t,n)};return r(l)&&(p.prototype=l),p},Gr}function ie(){if(Yr)return Xr;Yr=1;var t=it(),n=et(),r=yt(),e=Jn(),o=on(),i=Bn(),u=function(){},c=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,a=t(f.exec),l=!f.test(u),s=function(t){if(!r(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},p=function(t){if(!r(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!a(f,i(t))}catch(t){return!0}};return p.sham=!0,Xr=!c||n(function(){var t;return s(s.call)||!s(Object)||!s(function(){t=!0})||t})?p:s}function ue(){if(Qr)return Jr;Qr=1;var t=ie(),n=cn(),r=TypeError;return Jr=function(e){if(t(e))return e;throw new r(n(e)+" is not a constructor")}}var ce,fe,ae,le,se,pe,de,ve,he={};function ye(){if(fe)return ce;fe=1;var t=Mr(),n=Rr();return ce=Object.keys||function(r){return t(r,n)}}function me(){if(de)return pe;de=1;var t,n=rn(),r=function(){if(ae)return he;ae=1;var t=Jt(),n=nn(),r=dn(),e=rn(),o=fr(),i=ye();return he.f=t&&!n?Object.defineProperties:function(t,n){e(t);for(var u,c=o(n),f=i(n),a=f.length,l=0;a>l;)r.f(t,u=f[l++],c[u]);return t},he}(),e=Rr(),o=qn(),i=function(){if(se)return le;se=1;var t=on();return le=t("document","documentElement")}(),u=Zt(),c=Un(),f="prototype",a="script",l=c("IE_PROTO"),s=function(){},p=function(t){return"<"+a+">"+t+"</"+a+">"},d=function(t){t.write(p("")),t.close();var n=t.parentWindow.Object;return t=null,n},v=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var n,r,o;v="undefined"!=typeof document?document.domain&&t?d(t):(r=u("iframe"),o="java"+a+":",r.style.display="none",i.appendChild(r),r.src=String(o),(n=r.contentWindow.document).open(),n.write(p("document.F=Object")),n.close(),n.F):d(t);for(var c=e.length;c--;)delete v[f][e[c]];return v()};return o[l]=!0,pe=Object.create||function(t,e){var o;return null!==t?(s[f]=n(t),o=new s,s[f]=null,o[l]=t):o=v(),void 0===e?o:r.f(o,e)}}!function(){if(ve)return or;ve=1;var t=re(),n=on(),r=function(){if(Wr)return Vr;Wr=1;var t=ot(),n=Function.prototype,r=n.apply,e=n.call;return Vr="object"==typeof Reflect&&Reflect.apply||(t?e.bind(r):function(){return e.apply(r,arguments)}),Vr}(),e=oe(),o=ue(),i=rn(),u=Qt(),c=me(),f=et(),a=n("Reflect","construct"),l=Object.prototype,s=[].push,p=f(function(){function t(){}return!(a(function(){},[],t)instanceof t)}),d=!f(function(){a(function(){})}),v=p||d;t({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,n){o(t),i(n);var f=arguments.length<3?t:o(arguments[2]);if(d&&!p)return a(t,n,f);if(t===f){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var v=[null];return r(s,v,n),new(r(e,t,v))}var h=f.prototype,y=c(u(h)?h:l),m=r(t,y,n);return u(m)?m:y}})}(),function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var t=HTMLElement,n=function(){return Reflect.construct(t,[],this.constructor)};window.HTMLElement=n,HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var ge=function(n){function r(){var t=n.call(this)||this,r=t.attachShadow({mode:"open"}),e=r.ownerDocument.createElement("span");return e.style.display="inline-block",r.appendChild(e),t.span=e,t}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,n),Object.defineProperty(r,"observedAttributes",{get:function(){return["data-value"]},enumerable:!1,configurable:!0}),r.prototype.attributeChangedCallback=function(t,n,r){if("data-value"===t){if(n===r)return;this.render(r||"")}},r.prototype.render=function(n){t.render(n,this.span,{throwOnError:!1,output:"mathml"})},r}(HTMLElement);window.customElements.get("w-e-formula-card")||window.customElements.define("w-e-formula-card",ge),n("en",{formula:{formula:"Formula",placeholder:"Use LateX syntax",insert:"Insert formula",edit:"Edit formula",ok:"OK"}}),n("zh-CN",{formula:{formula:"公式",placeholder:"使用 LateX 语法",insert:"插入公式",edit:"编辑公式",ok:"确定"}});var be,we,Ee,xe,Oe,Se,je,Te,Le,Ie,Pe,Ae,Ce,Me,Re,Ne,_e,ke={type:"formula",elemToHtml:function(t,n){var r=t.value;return'<span data-w-e-type="formula" data-w-e-is-void data-w-e-is-inline data-value="'.concat(void 0===r?"":r,'"></span>')}},Fe={};function De(){if(xe)return Ee;xe=1;var t=function(){if(we)return be;we=1;var t=Yn(),n=it();return be=function(r){if("Function"===t(r))return n(r)}}(),n=fn(),r=ot(),e=t(t.bind);return Ee=function(t,o){return n(t),void 0===o?t:r?e(t,o):function(){return t.apply(o,arguments)}},Ee}function He(){if(Se)return Oe;Se=1;var t=Yn();return Oe=Array.isArray||function(n){return"Array"===t(n)}}function ze(){if(Te)return je;Te=1;var t=He(),n=ie(),r=Qt(),e=vt()("species"),o=Array;return je=function(i){var u;return t(i)&&(u=i.constructor,(n(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function $e(){if(Ie)return Le;Ie=1;var t=ze();return Le=function(n,r){return new(t(n))(0===r?0:r)}}function Be(){if(Ae)return Pe;Ae=1;var t=Jt(),n=dn(),r=Vn();return Pe=function(e,o,i){t?n.f(e,o,r(0,i)):e[o]=i}}function Ve(){if(Ne)return Re;Ne=1;var t=vt(),n=me(),r=dn().f,e=t("unscopables"),o=Array.prototype;return void 0===o[e]&&r(o,e,{configurable:!0,value:n(null)}),Re=function(t){o[e][t]=!0}}!function(){if(_e)return Fe;_e=1;var t=re(),n=function(){if(Me)return Ce;Me=1;var t=De(),n=cr(),r=ft(),e=Cr(),o=$e(),i=Be(),u=function(u){var c=1===u,f=2===u,a=3===u,l=4===u,s=6===u,p=7===u,d=5===u||s;return function(v,h,y){for(var m,g,b=r(v),w=n(b),E=e(w),x=t(h,y),O=0,S=0,j=c?o(v,E):f||p?o(v,0):void 0;E>O;O++)if((d||O in w)&&(g=x(m=w[O],O,b),u))if(c)i(j,O,g);else if(g)switch(u){case 3:return!0;case 5:return m;case 6:return O;case 2:i(j,S++,m)}else switch(u){case 4:return!1;case 7:i(j,S++,m)}return s?-1:a||l?l:j}};return Ce={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}().find,r=Ve(),e="find",o=!0;e in[]&&Array(1)[e](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r(e)}();var We,Ue,qe,Ge,Ke,Xe,Ye,Je,Qe,Ze,to,no,ro,eo={};function oo(){if(Ue)return We;Ue=1;var t=Jn(),n=String;return We=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}}function io(){if(Ge)return qe;Ge=1;var t=rn();return qe=function(){var n=t(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}}function uo(){if(no)return to;no=1;var t,n,r=en(),e=it(),o=oo(),i=io(),u=function(){if(Xe)return Ke;Xe=1;var t=et(),n=h().RegExp,r=t(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=r||t(function(){return!n("a","y").sticky}),o=r||t(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Ke={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:r}}(),c=rt(),f=me(),a=Gn().get,l=function(){if(Je)return Ye;Je=1;var t=et(),n=h().RegExp;return Ye=t(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),s=function(){if(Ze)return Qe;Ze=1;var t=et(),n=h().RegExp;return Qe=t(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),p=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,y=e("".charAt),m=e("".indexOf),g=e("".replace),b=e("".slice),w=(n=/b*/g,r(d,t=/a/,"a"),r(d,n,"a"),0!==t.lastIndex||0!==n.lastIndex),E=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(w||x||E||l||s)&&(v=function(t){var n,e,u,c,l,s,h,O=this,S=a(O),j=o(t),T=S.raw;if(T)return T.lastIndex=O.lastIndex,n=r(v,T,j),O.lastIndex=T.lastIndex,n;var L=S.groups,I=E&&O.sticky,P=r(i,O),A=O.source,C=0,M=j;if(I&&(P=g(P,"y",""),-1===m(P,"g")&&(P+="g"),M=b(j,O.lastIndex),O.lastIndex>0&&(!O.multiline||O.multiline&&"\n"!==y(j,O.lastIndex-1))&&(A="(?: "+A+")",M=" "+M,C++),e=new RegExp("^(?:"+A+")",P)),x&&(e=new RegExp("^"+A+"$(?!\\s)",P)),w&&(u=O.lastIndex),c=r(d,I?e:O,M),I?c?(c.input=b(c.input,C),c[0]=b(c[0],C),c.index=O.lastIndex,O.lastIndex+=c[0].length):O.lastIndex=0:w&&c&&(O.lastIndex=O.global?c.index+c[0].length:u),x&&c&&c.length>1&&r(p,c[0],e,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(c[l]=void 0)}),c&&L)for(c.groups=s=f(null),l=0;l<L.length;l++)s[(h=L[l])[0]]=c[h[1]];return c}),to=v}!function(){if(ro)return eo;ro=1;var t=re(),n=uo();t({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})}();var co,fo,ao,lo,so,po,vo,ho={};function yo(){return fo?co:(fo=1,co="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(vo)return ho;vo=1;var t=re(),n=function(){if(lo)return ao;lo=1;var t=it(),n=ct(),r=oo(),e=yo(),o=t("".replace),i=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),c=function(t){return function(e){var c=r(n(e));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return ao={start:c(1),end:c(2),trim:c(3)}}().trim,r=function(){if(po)return so;po=1;var t=$n().PROPER,n=et(),r=yo();return so=function(e){return n(function(){return!!r[e]()||"
"!=="
"[e]()||t&&r[e].name!==e})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return n(this)}})}();var mo,go,bo={};function wo(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function Eo(t={},n={}){Object.keys(n).forEach(r=>{void 0===t[r]?t[r]=n[r]:wo(n[r])&&wo(t[r])&&Object.keys(n[r]).length>0&&Eo(t[r],n[r])})}go||(go=1,function(){if(mo)return bo;mo=1;var t=re(),n=h();t({global:!0,forced:n.globalThis!==n},{globalThis:n})}());const xo={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Oo(){const t="undefined"!=typeof document?document:{};return Eo(t,xo),t}const So={document:xo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function jo(){const t="undefined"!=typeof window?window:{};return Eo(t,So),t}class To extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const n=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>n,set(t){n.__proto__=t}})}(this))}}function Lo(t,n){const r=jo(),e=Oo();let o=[];if(!n&&t instanceof To)return t;if(!t)return new To(o);if("string"==typeof t){const r=t.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let t="div";0===r.indexOf("<li")&&(t="ul"),0===r.indexOf("<tr")&&(t="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(t="tr"),0===r.indexOf("<tbody")&&(t="table"),0===r.indexOf("<option")&&(t="select");const n=e.createElement(t);n.innerHTML=r;for(let t=0;t<n.childNodes.length;t+=1)o.push(n.childNodes[t])}else o=function(t,n){if("string"!=typeof t)return[t];const r=[],e=n.querySelectorAll(t);for(let t=0;t<e.length;t+=1)r.push(e[t]);return r}(t.trim(),n||e)}else if(t.nodeType||t===r||t===e)o.push(t);else if(Array.isArray(t)){if(t instanceof To)return t;o=t}return new To(function(t){const n=[];for(let r=0;r<t.length;r+=1)-1===n.indexOf(t[r])&&n.push(t[r]);return n}(o))}function Io(t){if(void 0===t){const t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){const n=[];for(let r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(let n=0;n<this.length;n+=1){const r=this[n];if(Array.isArray(t)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(let n=0;n<r.options.length;n+=1)r.options[n].selected=t.indexOf(r.options[n].value)>=0;else r.value=t}return this}function Po(...t){let[n,r,e,o]=t;function i(t){const n=t.target;if(!n)return;const o=t.target.dom7EventData||[];if(o.indexOf(t)<0&&o.unshift(t),Lo(n).is(r))e.apply(n,o);else{const t=Lo(n).parents();for(let n=0;n<t.length;n+=1)Lo(t[n]).is(r)&&e.apply(t[n],o)}}function u(t){const n=t&&t.target&&t.target.dom7EventData||[];n.indexOf(t)<0&&n.unshift(t),e.apply(this,n)}"function"==typeof t[1]&&([n,e,o]=t,r=void 0),o||(o=!1);const c=n.split(" ");let f;for(let t=0;t<this.length;t+=1){const n=this[t];if(r)for(f=0;f<c.length;f+=1){const t=c[f];n.dom7LiveListeners||(n.dom7LiveListeners={}),n.dom7LiveListeners[t]||(n.dom7LiveListeners[t]=[]),n.dom7LiveListeners[t].push({listener:e,proxyListener:i}),n.addEventListener(t,i,o)}else for(f=0;f<c.length;f+=1){const t=c[f];n.dom7Listeners||(n.dom7Listeners={}),n.dom7Listeners[t]||(n.dom7Listeners[t]=[]),n.dom7Listeners[t].push({listener:e,proxyListener:u}),n.addEventListener(t,u,o)}}return this}function Ao(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let n=0;n<this.length;n+=1)this[n].innerHTML=t;return this}function Co(t){const n=jo(),r=Oo(),e=this[0];let o,i;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(o=Lo(t),i=0;i<o.length;i+=1)if(o[i]===e)return!0;return!1}if(t===r)return e===r;if(t===n)return e===n;if(t.nodeType||t instanceof To){for(o=t.nodeType?[t]:t,i=0;i<o.length;i+=1)if(o[i]===e)return!0;return!1}return!1}function Mo(...t){let n;const r=Oo();for(let e=0;e<t.length;e+=1){n=t[e];for(let t=0;t<this.length;t+=1)if("string"==typeof n){const e=r.createElement("div");for(e.innerHTML=n;e.firstChild;)this[t].appendChild(e.firstChild)}else if(n instanceof To)for(let r=0;r<n.length;r+=1)this[t].appendChild(n[r]);else this[t].appendChild(n)}return this}function Ro(t){const n=[];for(let r=0;r<this.length;r+=1){let e=this[r].parentNode;for(;e;)t?Lo(e).is(t)&&n.push(e):n.push(e),e=e.parentNode}return Lo(n)}function No(t){const n=[];for(let r=0;r<this.length;r+=1){const e=this[r].querySelectorAll(t);for(let t=0;t<e.length;t+=1)n.push(e[t])}return Lo(n)}Lo.fn=To.prototype;const _o="resize scroll".split(" ");const ko=(Fo="focus",function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)_o.indexOf(Fo)<0&&(Fo in this[t]?this[t][Fo]():Lo(this[t]).trigger(Fo));return this}return this.on(Fo,...t)});var Fo;Mo&&(Lo.fn.append=Mo),Ao&&(Lo.fn.html=Ao),Io&&(Lo.fn.val=Io),Po&&(Lo.fn.on=Po),ko&&(Lo.fn.focus=ko),Co&&(Lo.fn.is=Co),Ro&&(Lo.fn.parents=Ro),No&&(Lo.fn.find=No);var Do,Ho,zo,$o,Bo,Vo,Wo,Uo={};function qo(){if(Ho)return Do;Ho=1;var t=TypeError;return Do=function(n){if(n>9007199254740991)throw t("Maximum allowed index exceeded");return n}}function Go(){if(Vo)return Bo;Vo=1;var t=et(),n=vt(),r=st(),e=n("species");return Bo=function(n){return r>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[n](Boolean).foo})}}!function(){if(Wo)return Uo;Wo=1;var t=re(),n=et(),r=He(),e=Qt(),o=ft(),i=Cr(),u=qo(),c=Be(),f=function(){if($o)return zo;$o=1;var t=Jt(),n=He(),r=TypeError,e=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return zo=o?function(t,o){if(n(t)&&!e(t,"length").writable)throw new r("Cannot set read only .length");return t.length=o}:function(t,n){return t.length=n}}(),a=$e(),l=Go(),s=vt(),p=st(),d=s("isConcatSpreadable"),v=p>=51||!n(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!e(t))return!1;var n=t[d];return void 0!==n?!!n:r(t)};t({target:"Array",proto:!0,arity:1,forced:!v||!l("concat")},{concat:function(t){var n,r,e,l,s,p=o(this),d=a(p,0),v=0;for(n=-1,e=arguments.length;n<e;n++)if(h(s=-1===n?p:arguments[n]))for(l=i(s),u(v+l),r=0;r<l;r++,v++)r in s&&c(d,v,s[r]);else u(v+1),c(d,v++,s);return f(d,v),d}})}();function Ko(t){return"".concat(t,"-").concat(((t=21)=>{let n="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return n})())}function Xo(){return Ko("w-e-insert-formula")}var Yo=function(){function t(){this.title=r("formula.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=Xo(),this.buttonId=Xo()}return t.prototype.getSelectedElem=function(t){var n=e.getSelectedNodeByType(t,"formula");return null==n?null:n},t.prototype.getValue=function(t){var n=this.getSelectedElem(t);return n&&n.value||""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,n){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!!o.isExpanded(n)||null==this.getSelectedElem(t))},t.prototype.getModalPositionNode=function(t){return this.getSelectedElem(t)},t.prototype.getModalContentElem=function(t){var n=this,e=this.textareaId,o=this.buttonId,c=l(i(r("formula.formula"),e,r("formula.placeholder")),2),f=c[0],a=Lo(c[1]),s=l(u(o,r("formula.ok")),1)[0];if(null==this.$content){var p=Lo("<div></div>");p.on("click","#".concat(o),function(r){r.preventDefault();var o=p.find("#".concat(e)).val().trim();n.updateFormula(t,o),t.hidePanelOrModal()}),this.$content=p}var d=this.$content;d.html(""),d.append(f),d.append(s);var v=this.getValue(t);return a.val(v),setTimeout(function(){a.focus()}),d[0]},t.prototype.updateFormula=function(t,n){if(n&&(t.restoreSelection(),!this.isDisabled(t))){var r=this.getSelectedElem(t);if(null!=r){var o=e.findPath(t,r),i={value:n};c.setNodes(t,i,{at:o})}}},t}();function Jo(){return Ko("w-e-insert-formula")}var Qo=function(){function t(){this.title=r("formula.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M941.6 734.72L985.984 640H1024l-64 384H0v-74.24l331.552-391.2L0 227.008V0h980L1024 256h-34.368l-18.72-38.88C935.584 143.744 909.024 128 832 128H169.984l353.056 353.056L225.632 832H768c116 0 146.656-41.568 173.6-97.28z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=Jo(),this.buttonId=Jo()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,n){},t.prototype.isDisabled=function(t){var n=t.selection;if(null==n)return!0;if(o.isExpanded(n))return!0;var r=e.getSelectedElems(t);return!!r.some(function(n){return t.isVoid(n)})||!!r.some(function(t){return"pre"===e.getNodeType(t)})},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,e=this.textareaId,o=this.buttonId,c=l(i(r("formula.formula"),e,r("formula.placeholder")),2),f=c[0],a=Lo(c[1]),s=l(u(o,r("formula.ok")),1)[0];if(null==this.$content){var p=Lo("<div></div>");p.on("click","#".concat(o),function(r){r.preventDefault();var o=p.find("#".concat(e)).val().trim();n.insertFormula(t,o),t.hidePanelOrModal()}),this.$content=p}var d=this.$content;return d.html(""),d.append(f),d.append(s),a.val(""),setTimeout(function(){a.focus()}),d[0]},t.prototype.insertFormula=function(t,n){if(n&&(t.restoreSelection(),!this.isDisabled(t))){var r={type:"formula",value:n,children:[{text:""}]};t.insertNode(r)}},t}();var Zo={editorPlugin:function(t){var n=t.isInline,r=t.isVoid,o=t;return o.isInline=function(t){return"formula"===e.getNodeType(t)||n(t)},o.isVoid=function(t){return"formula"===e.getNodeType(t)||r(t)},o},renderElems:[{type:"formula",renderElem:function(t,n,r){var o=e.isNodeSelected(r,t),i=t.value,u=f("w-e-formula-card",{dataset:{value:void 0===i?"":i}},null);return f("div",{className:"w-e-textarea-formula-container",props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:o?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"3px 3px"}},[u])}}],elemsToHtml:[ke],parseElemsHtml:[{selector:'span[data-w-e-type="formula"]',parseElemHtml:function(t,n,r){return{type:"formula",value:t.getAttribute("data-value")||"",children:[{text:""}]}}}],menus:[{key:"insertFormula",factory:function(){return new Qo}},{key:"editFormula",factory:function(){return new Yo}}]};export{Zo as default};
|
|
1
|
+
import t from"katex";import{i18nAddResources as n,t as r,DomEditor as e,SlateRange as o,genModalTextareaElems as i,genModalButtonElems as u,SlateTransforms as c}from"@wangeditor-next/editor";import{h as f}from"snabbdom";var a=function(t,n){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},a(t,n)};function l(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var e,o,i=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(e=i.next()).done;)u.push(e.value)}catch(t){o={error:t}}finally{try{e&&!e.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return u}"function"==typeof SuppressedError&&SuppressedError;var s,p,d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v={};function h(){if(p)return s;p=1;var t=function(t){return t&&t.Math===Math&&t};return s=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof d&&d)||t("object"==typeof s&&s)||function(){return this}()||Function("return this")()}var y,m,g,b,w,x,E,O,S,j,T,L,I,P,A,C,M,R,N,_,k,F,D,H,z,$,B,V,W,U,q,G,K,X,Y,J,Q,Z={exports:{}};function tt(){if(b)return g;b=1;var t=h(),n=Object.defineProperty;return g=function(r,e){try{n(t,r,{value:e,configurable:!0,writable:!0})}catch(n){t[r]=e}return e}}function nt(){if(w)return Z.exports;w=1;var t=m?y:(m=1,y=!1),n=h(),r=tt(),e="__core-js_shared__",o=Z.exports=n[e]||r(e,{});return(o.versions||(o.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Z.exports}function rt(){if(E)return x;E=1;var t=nt();return x=function(n,r){return t[n]||(t[n]=r||{})}}function et(){return S?O:(S=1,O=function(t){try{return!!t()}catch(t){return!0}})}function ot(){if(T)return j;T=1;var t=et();return j=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function it(){if(I)return L;I=1;var t=ot(),n=Function.prototype,r=n.call,e=t&&n.bind.bind(r,r);return L=t?e:function(t){return function(){return r.apply(t,arguments)}},L}function ut(){return A?P:(A=1,P=function(t){return null==t})}function ct(){if(M)return C;M=1;var t=ut(),n=TypeError;return C=function(r){if(t(r))throw new n("Can't call method on "+r);return r}}function ft(){if(N)return R;N=1;var t=ct(),n=Object;return R=function(r){return n(t(r))}}function at(){if(k)return _;k=1;var t=it(),n=ft(),r=t({}.hasOwnProperty);return _=Object.hasOwn||function(t,e){return r(n(t),e)}}function lt(){if(D)return F;D=1;var t=it(),n=0,r=Math.random(),e=t(1.1.toString);return F=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++n+r,36)}}function st(){if(B)return $;B=1;var t,n,r=h(),e=function(){if(z)return H;z=1;var t=h().navigator,n=t&&t.userAgent;return H=n?String(n):""}(),o=r.process,i=r.Deno,u=o&&o.versions||i&&i.version,c=u&&u.v8;return c&&(n=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!n&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(n=+t[1]),$=n}function pt(){if(W)return V;W=1;var t=st(),n=et(),r=h().String;return V=!!Object.getOwnPropertySymbols&&!n(function(){var n=Symbol("symbol detection");return!r(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function dt(){if(q)return U;q=1;var t=pt();return U=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function vt(){if(K)return G;K=1;var t=h(),n=rt(),r=at(),e=lt(),o=pt(),i=dt(),u=t.Symbol,c=n("wks"),f=i?u.for||u:u&&u.withoutSetter||e;return G=function(t){return r(c,t)||(c[t]=o&&r(u,t)?u[t]:f("Symbol."+t)),c[t]}}function ht(){if(Y)return X;Y=1;var t={};return t[vt()("toStringTag")]="z",X="[object z]"===String(t)}function yt(){if(Q)return J;Q=1;var t="object"==typeof document&&document.all;return J=void 0===t&&void 0!==t?function(n){return"function"==typeof n||n===t}:function(t){return"function"==typeof t}}var mt,gt,bt,wt,xt,Et,Ot,St,jt,Tt,Lt,It,Pt,At,Ct,Mt,Rt,Nt,_t,kt,Ft,Dt,Ht,zt,$t,Bt,Vt,Wt,Ut,qt,Gt,Kt,Xt,Yt={};function Jt(){if(gt)return mt;gt=1;var t=et();return mt=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function Qt(){if(wt)return bt;wt=1;var t=yt();return bt=function(n){return"object"==typeof n?null!==n:t(n)}}function Zt(){if(Et)return xt;Et=1;var t=h(),n=Qt(),r=t.document,e=n(r)&&n(r.createElement);return xt=function(t){return e?r.createElement(t):{}}}function tn(){if(St)return Ot;St=1;var t=Jt(),n=et(),r=Zt();return Ot=!t&&!n(function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a})}function nn(){if(Tt)return jt;Tt=1;var t=Jt(),n=et();return jt=t&&n(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function rn(){if(It)return Lt;It=1;var t=Qt(),n=String,r=TypeError;return Lt=function(e){if(t(e))return e;throw new r(n(e)+" is not an object")}}function en(){if(At)return Pt;At=1;var t=ot(),n=Function.prototype.call;return Pt=t?n.bind(n):function(){return n.apply(n,arguments)},Pt}function on(){if(Mt)return Ct;Mt=1;var t=h(),n=yt();return Ct=function(r,e){return arguments.length<2?(o=t[r],n(o)?o:void 0):t[r]&&t[r][e];var o},Ct}function un(){if(kt)return _t;kt=1;var t=on(),n=yt(),r=function(){if(Nt)return Rt;Nt=1;var t=it();return Rt=t({}.isPrototypeOf)}(),e=dt(),o=Object;return _t=e?function(t){return"symbol"==typeof t}:function(e){var i=t("Symbol");return n(i)&&r(i.prototype,o(e))}}function cn(){if(Dt)return Ft;Dt=1;var t=String;return Ft=function(n){try{return t(n)}catch(t){return"Object"}}}function fn(){if(zt)return Ht;zt=1;var t=yt(),n=cn(),r=TypeError;return Ht=function(e){if(t(e))return e;throw new r(n(e)+" is not a function")}}function an(){if(Bt)return $t;Bt=1;var t=fn(),n=ut();return $t=function(r,e){var o=r[e];return n(o)?void 0:t(o)}}function ln(){if(Wt)return Vt;Wt=1;var t=en(),n=yt(),r=Qt(),e=TypeError;return Vt=function(o,i){var u,c;if("string"===i&&n(u=o.toString)&&!r(c=t(u,o)))return c;if(n(u=o.valueOf)&&!r(c=t(u,o)))return c;if("string"!==i&&n(u=o.toString)&&!r(c=t(u,o)))return c;throw new e("Can't convert object to primitive value")},Vt}function sn(){if(qt)return Ut;qt=1;var t=en(),n=Qt(),r=un(),e=an(),o=ln(),i=vt(),u=TypeError,c=i("toPrimitive");return Ut=function(i,f){if(!n(i)||r(i))return i;var a,l=e(i,c);if(l){if(void 0===f&&(f="default"),a=t(l,i,f),!n(a)||r(a))return a;throw new u("Can't convert object to primitive value")}return void 0===f&&(f="number"),o(i,f)}}function pn(){if(Kt)return Gt;Kt=1;var t=sn(),n=un();return Gt=function(r){var e=t(r,"string");return n(e)?e:e+""}}function dn(){if(Xt)return Yt;Xt=1;var t=Jt(),n=tn(),r=nn(),e=rn(),o=pn(),i=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",a="configurable",l="writable";return Yt.f=t?r?function(t,n,r){if(e(t),n=o(n),e(r),"function"==typeof t&&"prototype"===n&&"value"in r&&l in r&&!r[l]){var i=c(t,n);i&&i[l]&&(t[n]=r.value,r={configurable:a in r?r[a]:i[a],enumerable:f in r?r[f]:i[f],writable:!1})}return u(t,n,r)}:u:function(t,r,c){if(e(t),r=o(r),e(c),n)try{return u(t,r,c)}catch(t){}if("get"in c||"set"in c)throw new i("Accessors not supported");return"value"in c&&(t[r]=c.value),t},Yt}var vn,hn,yn,mn,gn,bn,wn,xn,En,On,Sn,jn,Tn,Ln,In,Pn,An,Cn,Mn,Rn,Nn,_n,kn,Fn,Dn,Hn,zn={exports:{}};function $n(){if(hn)return vn;hn=1;var t=Jt(),n=at(),r=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,o=n(r,"name"),i=o&&"something"===function(){}.name,u=o&&(!t||t&&e(r,"name").configurable);return vn={EXISTS:o,PROPER:i,CONFIGURABLE:u}}function Bn(){if(mn)return yn;mn=1;var t=it(),n=yt(),r=nt(),e=t(Function.toString);return n(r.inspectSource)||(r.inspectSource=function(t){return e(t)}),yn=r.inspectSource}function Vn(){return xn?wn:(xn=1,wn=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}})}function Wn(){if(On)return En;On=1;var t=Jt(),n=dn(),r=Vn();return En=t?function(t,e,o){return n.f(t,e,r(1,o))}:function(t,n,r){return t[n]=r,t}}function Un(){if(jn)return Sn;jn=1;var t=rt(),n=lt(),r=t("keys");return Sn=function(t){return r[t]||(r[t]=n(t))}}function qn(){return Ln?Tn:(Ln=1,Tn={})}function Gn(){if(Pn)return In;Pn=1;var t,n,r,e=function(){if(bn)return gn;bn=1;var t=h(),n=yt(),r=t.WeakMap;return gn=n(r)&&/native code/.test(String(r))}(),o=h(),i=Qt(),u=Wn(),c=at(),f=nt(),a=Un(),l=qn(),s="Object already initialized",p=o.TypeError,d=o.WeakMap;if(e||f.state){var v=f.state||(f.state=new d);v.get=v.get,v.has=v.has,v.set=v.set,t=function(t,n){if(v.has(t))throw new p(s);return n.facade=t,v.set(t,n),n},n=function(t){return v.get(t)||{}},r=function(t){return v.has(t)}}else{var y=a("state");l[y]=!0,t=function(t,n){if(c(t,y))throw new p(s);return n.facade=t,u(t,y,n),n},n=function(t){return c(t,y)?t[y]:{}},r=function(t){return c(t,y)}}return In={set:t,get:n,has:r,enforce:function(e){return r(e)?n(e):t(e,{})},getterFor:function(t){return function(r){var e;if(!i(r)||(e=n(r)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function Kn(){if(An)return zn.exports;An=1;var t=it(),n=et(),r=yt(),e=at(),o=Jt(),i=$n().CONFIGURABLE,u=Bn(),c=Gn(),f=c.enforce,a=c.get,l=String,s=Object.defineProperty,p=t("".slice),d=t("".replace),v=t([].join),h=o&&!n(function(){return 8!==s(function(){},"length",{value:8}).length}),y=String(String).split("String"),m=zn.exports=function(t,n,r){"Symbol("===p(l(n),0,7)&&(n="["+d(l(n),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!e(t,"name")||i&&t.name!==n)&&(o?s(t,"name",{value:n,configurable:!0}):t.name=n),h&&r&&e(r,"arity")&&t.length!==r.arity&&s(t,"length",{value:r.arity});try{r&&e(r,"constructor")&&r.constructor?o&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return e(u,"source")||(u.source=v(y,"string"==typeof n?n:"")),t};return Function.prototype.toString=m(function(){return r(this)&&a(this).source||u(this)},"toString"),zn.exports}function Xn(){if(Mn)return Cn;Mn=1;var t=yt(),n=dn(),r=Kn(),e=tt();return Cn=function(o,i,u,c){c||(c={});var f=c.enumerable,a=void 0!==c.name?c.name:i;if(t(u)&&r(u,a,c),c.global)f?o[i]=u:e(i,u);else{try{c.unsafe?o[i]&&(f=!0):delete o[i]}catch(t){}f?o[i]=u:n.f(o,i,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return o}}function Yn(){if(Nn)return Rn;Nn=1;var t=it(),n=t({}.toString),r=t("".slice);return Rn=function(t){return r(n(t),8,-1)}}function Jn(){if(kn)return _n;kn=1;var t=ht(),n=yt(),r=Yn(),e=vt()("toStringTag"),o=Object,i="Arguments"===r(function(){return arguments}());return _n=t?r:function(t){var u,c,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,n){try{return t[n]}catch(t){}}(u=o(t),e))?c:i?r(u):"Object"===(f=r(u))&&n(u.callee)?"Arguments":f}}!function(){if(Hn)return v;Hn=1;var t=ht(),n=Xn(),r=function(){if(Dn)return Fn;Dn=1;var t=ht(),n=Jn();return Fn=t?{}.toString:function(){return"[object "+n(this)+"]"}}();t||n(Object.prototype,"toString",r,{unsafe:!0})}();var Qn,Zn,tr,nr,rr,er,or={},ir={},ur={};function cr(){if(tr)return Zn;tr=1;var t=it(),n=et(),r=Yn(),e=Object,o=t("".split);return Zn=n(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===r(t)?o(t,""):e(t)}:e}function fr(){if(rr)return nr;rr=1;var t=cr(),n=ct();return nr=function(r){return t(n(r))}}function ar(){if(er)return ir;er=1;var t=Jt(),n=en(),r=function(){if(Qn)return ur;Qn=1;var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!t.call({1:2},1);return ur.f=r?function(t){var r=n(this,t);return!!r&&r.enumerable}:t,ur}(),e=Vn(),o=fr(),i=pn(),u=at(),c=tn(),f=Object.getOwnPropertyDescriptor;return ir.f=t?f:function(t,a){if(t=o(t),a=i(a),c)try{return f(t,a)}catch(t){}if(u(t,a))return e(!n(r.f,t,a),t[a])},ir}var lr,sr,pr,dr,vr,hr,yr,mr,gr,br,wr,xr,Er,Or,Sr,jr,Tr,Lr={};function Ir(){if(dr)return pr;dr=1;var t=function(){if(sr)return lr;sr=1;var t=Math.ceil,n=Math.floor;return lr=Math.trunc||function(r){var e=+r;return(e>0?n:t)(e)}}();return pr=function(n){var r=+n;return r!=r||0===r?0:t(r)}}function Pr(){if(hr)return vr;hr=1;var t=Ir(),n=Math.max,r=Math.min;return vr=function(e,o){var i=t(e);return i<0?n(i+o,0):r(i,o)}}function Ar(){if(mr)return yr;mr=1;var t=Ir(),n=Math.min;return yr=function(r){var e=t(r);return e>0?n(e,9007199254740991):0}}function Cr(){if(br)return gr;br=1;var t=Ar();return gr=function(n){return t(n.length)}}function Mr(){if(Or)return Er;Or=1;var t=it(),n=at(),r=fr(),e=function(){if(xr)return wr;xr=1;var t=fr(),n=Pr(),r=Cr(),e=function(e){return function(o,i,u){var c=t(o),f=r(c);if(0===f)return!e&&-1;var a,l=n(u,f);if(e&&i!=i){for(;f>l;)if((a=c[l++])!=a)return!0}else for(;f>l;l++)if((e||l in c)&&c[l]===i)return e||l||0;return!e&&-1}};return wr={includes:e(!0),indexOf:e(!1)}}().indexOf,o=qn(),i=t([].push);return Er=function(t,u){var c,f=r(t),a=0,l=[];for(c in f)!n(o,c)&&n(f,c)&&i(l,c);for(;u.length>a;)n(f,c=u[a++])&&(~e(l,c)||i(l,c));return l}}function Rr(){return jr?Sr:(jr=1,Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Nr,_r,kr,Fr,Dr,Hr,zr,$r,Br,Vr,Wr,Ur,qr,Gr,Kr,Xr,Yr,Jr,Qr,Zr={};function te(){if(kr)return _r;kr=1;var t=on(),n=it(),r=function(){if(Tr)return Lr;Tr=1;var t=Mr(),n=Rr().concat("length","prototype");return Lr.f=Object.getOwnPropertyNames||function(r){return t(r,n)},Lr}(),e=(Nr||(Nr=1,Zr.f=Object.getOwnPropertySymbols),Zr),o=rn(),i=n([].concat);return _r=t("Reflect","ownKeys")||function(t){var n=r.f(o(t)),u=e.f;return u?i(n,u(t)):n}}function ne(){if(Dr)return Fr;Dr=1;var t=at(),n=te(),r=ar(),e=dn();return Fr=function(o,i,u){for(var c=n(i),f=e.f,a=r.f,l=0;l<c.length;l++){var s=c[l];t(o,s)||u&&t(u,s)||f(o,s,a(i,s))}}}function re(){if(Br)return $r;Br=1;var t=h(),n=ar().f,r=Wn(),e=Xn(),o=tt(),i=ne(),u=function(){if(zr)return Hr;zr=1;var t=et(),n=yt(),r=/#|\.prototype\./,e=function(r,e){var f=i[o(r)];return f===c||f!==u&&(n(e)?t(e):!!e)},o=e.normalize=function(t){return String(t).replace(r,".").toLowerCase()},i=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Hr=e}();return $r=function(c,f){var a,l,s,p,d,v=c.target,h=c.global,y=c.stat;if(a=h?t:y?t[v]||o(v,{}):t[v]&&t[v].prototype)for(l in f){if(p=f[l],s=c.dontCallGetSet?(d=n(a,l))&&d.value:a[l],!u(h?l:v+(y?".":"#")+l,c.forced)&&void 0!==s){if(typeof p==typeof s)continue;i(p,s)}(c.sham||s&&s.sham)&&r(p,"sham",!0),e(a,l,p,c)}}}function ee(){if(qr)return Ur;qr=1;var t=it();return Ur=t([].slice)}function oe(){if(Kr)return Gr;Kr=1;var t=it(),n=fn(),r=Qt(),e=at(),o=ee(),i=ot(),u=Function,c=t([].concat),f=t([].join),a={};return Gr=i?u.bind:function(t){var i=n(this),l=i.prototype,s=o(arguments,1),p=function(){var n=c(s,o(arguments));return this instanceof p?function(t,n,r){if(!e(a,n)){for(var o=[],i=0;i<n;i++)o[i]="a["+i+"]";a[n]=u("C,a","return new C("+f(o,",")+")")}return a[n](t,r)}(i,n.length,n):i.apply(t,n)};return r(l)&&(p.prototype=l),p},Gr}function ie(){if(Yr)return Xr;Yr=1;var t=it(),n=et(),r=yt(),e=Jn(),o=on(),i=Bn(),u=function(){},c=o("Reflect","construct"),f=/^\s*(?:class|function)\b/,a=t(f.exec),l=!f.test(u),s=function(t){if(!r(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},p=function(t){if(!r(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!a(f,i(t))}catch(t){return!0}};return p.sham=!0,Xr=!c||n(function(){var t;return s(s.call)||!s(Object)||!s(function(){t=!0})||t})?p:s}function ue(){if(Qr)return Jr;Qr=1;var t=ie(),n=cn(),r=TypeError;return Jr=function(e){if(t(e))return e;throw new r(n(e)+" is not a constructor")}}var ce,fe,ae,le,se,pe,de,ve,he={};function ye(){if(fe)return ce;fe=1;var t=Mr(),n=Rr();return ce=Object.keys||function(r){return t(r,n)}}function me(){if(de)return pe;de=1;var t,n=rn(),r=function(){if(ae)return he;ae=1;var t=Jt(),n=nn(),r=dn(),e=rn(),o=fr(),i=ye();return he.f=t&&!n?Object.defineProperties:function(t,n){e(t);for(var u,c=o(n),f=i(n),a=f.length,l=0;a>l;)r.f(t,u=f[l++],c[u]);return t},he}(),e=Rr(),o=qn(),i=function(){if(se)return le;se=1;var t=on();return le=t("document","documentElement")}(),u=Zt(),c=Un(),f="prototype",a="script",l=c("IE_PROTO"),s=function(){},p=function(t){return"<"+a+">"+t+"</"+a+">"},d=function(t){t.write(p("")),t.close();var n=t.parentWindow.Object;return t=null,n},v=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var n,r,o;v="undefined"!=typeof document?document.domain&&t?d(t):(r=u("iframe"),o="java"+a+":",r.style.display="none",i.appendChild(r),r.src=String(o),(n=r.contentWindow.document).open(),n.write(p("document.F=Object")),n.close(),n.F):d(t);for(var c=e.length;c--;)delete v[f][e[c]];return v()};return o[l]=!0,pe=Object.create||function(t,e){var o;return null!==t?(s[f]=n(t),o=new s,s[f]=null,o[l]=t):o=v(),void 0===e?o:r.f(o,e)}}!function(){if(ve)return or;ve=1;var t=re(),n=on(),r=function(){if(Wr)return Vr;Wr=1;var t=ot(),n=Function.prototype,r=n.apply,e=n.call;return Vr="object"==typeof Reflect&&Reflect.apply||(t?e.bind(r):function(){return e.apply(r,arguments)}),Vr}(),e=oe(),o=ue(),i=rn(),u=Qt(),c=me(),f=et(),a=n("Reflect","construct"),l=Object.prototype,s=[].push,p=f(function(){function t(){}return!(a(function(){},[],t)instanceof t)}),d=!f(function(){a(function(){})}),v=p||d;t({target:"Reflect",stat:!0,forced:v,sham:v},{construct:function(t,n){o(t);var f=arguments.length<3?t:o(arguments[2]);if(i(n),d&&!p)return a(t,n,f);if(t===f){switch(n.length){case 0:return new t;case 1:return new t(n[0]);case 2:return new t(n[0],n[1]);case 3:return new t(n[0],n[1],n[2]);case 4:return new t(n[0],n[1],n[2],n[3])}var v=[null];return r(s,v,n),new(r(e,t,v))}var h=f.prototype,y=c(u(h)?h:l),m=r(t,y,n);return u(m)?m:y}})}(),function(){if(void 0!==window.Reflect&&void 0!==window.customElements&&!window.customElements.polyfillWrapFlushCallback){var t=HTMLElement,n=function(){return Reflect.construct(t,[],this.constructor)};window.HTMLElement=n,HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}();var ge=function(n){function r(){var t=n.call(this)||this,r=t.attachShadow({mode:"open"}),e=r.ownerDocument.createElement("span");return e.style.display="inline-block",r.appendChild(e),t.span=e,t}return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}a(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(r,n),Object.defineProperty(r,"observedAttributes",{get:function(){return["data-value"]},enumerable:!1,configurable:!0}),r.prototype.attributeChangedCallback=function(t,n,r){if("data-value"===t){if(n===r)return;this.render(r||"")}},r.prototype.render=function(n){t.render(n,this.span,{throwOnError:!1,output:"mathml"})},r}(HTMLElement);window.customElements.get("w-e-formula-card")||window.customElements.define("w-e-formula-card",ge),n("en",{formula:{formula:"Formula",placeholder:"Use LateX syntax",insert:"Insert formula",edit:"Edit formula",ok:"OK"}}),n("zh-CN",{formula:{formula:"公式",placeholder:"使用 LateX 语法",insert:"插入公式",edit:"编辑公式",ok:"确定"}});var be,we,xe,Ee,Oe,Se,je,Te,Le,Ie,Pe,Ae,Ce,Me,Re,Ne,_e,ke={type:"formula",elemToHtml:function(t,n){var r=t.value;return'<span data-w-e-type="formula" data-w-e-is-void data-w-e-is-inline data-value="'.concat(void 0===r?"":r,'"></span>')}},Fe={};function De(){if(Ee)return xe;Ee=1;var t=function(){if(we)return be;we=1;var t=Yn(),n=it();return be=function(r){if("Function"===t(r))return n(r)}}(),n=fn(),r=ot(),e=t(t.bind);return xe=function(t,o){return n(t),void 0===o?t:r?e(t,o):function(){return t.apply(o,arguments)}},xe}function He(){if(Se)return Oe;Se=1;var t=Yn();return Oe=Array.isArray||function(n){return"Array"===t(n)}}function ze(){if(Te)return je;Te=1;var t=He(),n=ie(),r=Qt(),e=vt()("species"),o=Array;return je=function(i){var u;return t(i)&&(u=i.constructor,(n(u)&&(u===o||t(u.prototype))||r(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?o:u}}function $e(){if(Ie)return Le;Ie=1;var t=ze();return Le=function(n,r){return new(t(n))(0===r?0:r)}}function Be(){if(Ae)return Pe;Ae=1;var t=Jt(),n=dn(),r=Vn();return Pe=function(e,o,i){t?n.f(e,o,r(0,i)):e[o]=i}}function Ve(){if(Ne)return Re;Ne=1;var t=vt(),n=me(),r=dn().f,e=t("unscopables"),o=Array.prototype;return void 0===o[e]&&r(o,e,{configurable:!0,value:n(null)}),Re=function(t){o[e][t]=!0}}!function(){if(_e)return Fe;_e=1;var t=re(),n=function(){if(Me)return Ce;Me=1;var t=De(),n=cr(),r=ft(),e=Cr(),o=$e(),i=Be(),u=function(u){var c=1===u,f=2===u,a=3===u,l=4===u,s=6===u,p=7===u,d=5===u||s;return function(v,h,y){for(var m,g,b=r(v),w=n(b),x=e(w),E=t(h,y),O=0,S=0,j=c?o(v,x):f||p?o(v,0):void 0;x>O;O++)if((d||O in w)&&(g=E(m=w[O],O,b),u))if(c)i(j,O,g);else if(g)switch(u){case 3:return!0;case 5:return m;case 6:return O;case 2:i(j,S++,m)}else switch(u){case 4:return!1;case 7:i(j,S++,m)}return s?-1:a||l?l:j}};return Ce={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}}().find,r=Ve(),e="find",o=!0;e in[]&&Array(1)[e](function(){o=!1}),t({target:"Array",proto:!0,forced:o},{find:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}}),r(e)}();var We,Ue,qe,Ge,Ke,Xe,Ye,Je,Qe,Ze,to,no,ro,eo={};function oo(){if(Ue)return We;Ue=1;var t=Jn(),n=String;return We=function(r){if("Symbol"===t(r))throw new TypeError("Cannot convert a Symbol value to a string");return n(r)}}function io(){if(Ge)return qe;Ge=1;var t=rn();return qe=function(){var n=t(this),r="";return n.hasIndices&&(r+="d"),n.global&&(r+="g"),n.ignoreCase&&(r+="i"),n.multiline&&(r+="m"),n.dotAll&&(r+="s"),n.unicode&&(r+="u"),n.unicodeSets&&(r+="v"),n.sticky&&(r+="y"),r}}function uo(){if(no)return to;no=1;var t,n,r=en(),e=it(),o=oo(),i=io(),u=function(){if(Xe)return Ke;Xe=1;var t=et(),n=h().RegExp,r=t(function(){var t=n("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=r||t(function(){return!n("a","y").sticky}),o=r||t(function(){var t=n("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return Ke={BROKEN_CARET:o,MISSED_STICKY:e,UNSUPPORTED_Y:r}}(),c=rt(),f=me(),a=Gn().get,l=function(){if(Je)return Ye;Je=1;var t=et(),n=h().RegExp;return Ye=t(function(){var t=n(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),s=function(){if(Ze)return Qe;Ze=1;var t=et(),n=h().RegExp;return Qe=t(function(){var t=n("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),p=c("native-string-replace",String.prototype.replace),d=RegExp.prototype.exec,v=d,y=e("".charAt),m=e("".indexOf),g=e("".replace),b=e("".slice),w=(n=/b*/g,r(d,t=/a/,"a"),r(d,n,"a"),0!==t.lastIndex||0!==n.lastIndex),x=u.BROKEN_CARET,E=void 0!==/()??/.exec("")[1],O=function(t,n){for(var r=t.groups=f(null),e=0;e<n.length;e++){var o=n[e];r[o[0]]=t[o[1]]}};return(w||E||x||l||s)&&(v=function(t){var n,e,u,c=this,f=a(c),l=o(t),s=f.raw;if(s)return s.lastIndex=c.lastIndex,n=r(v,s,l),c.lastIndex=s.lastIndex,n&&f.groups&&O(n,f.groups),n;var h=f.groups,S=x&&c.sticky,j=r(i,c),T=c.source,L=0,I=l;if(S){j=g(j,"y",""),-1===m(j,"g")&&(j+="g"),I=b(l,c.lastIndex);var P=c.lastIndex>0&&y(l,c.lastIndex-1);c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==P&&"\r"!==P&&"\u2028"!==P&&"\u2029"!==P)&&(T="(?: (?:"+T+"))",I=" "+I,L++),e=new RegExp("^(?:"+T+")",j)}E&&(e=new RegExp("^"+T+"$(?!\\s)",j)),w&&(u=c.lastIndex);var A=r(d,S?e:c,I);return S?A?(A.input=l,A[0]=b(A[0],L),A.index=c.lastIndex,c.lastIndex+=A[0].length):c.lastIndex=0:w&&A&&(c.lastIndex=c.global?A.index+A[0].length:u),E&&A&&A.length>1&&r(p,A[0],e,function(){for(var t=1;t<arguments.length-2;t++)void 0===arguments[t]&&(A[t]=void 0)}),A&&h&&O(A,h),A}),to=v}!function(){if(ro)return eo;ro=1;var t=re(),n=uo();t({target:"RegExp",proto:!0,forced:/./.exec!==n},{exec:n})}();var co,fo,ao,lo,so,po,vo,ho={};function yo(){return fo?co:(fo=1,co="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(vo)return ho;vo=1;var t=re(),n=function(){if(lo)return ao;lo=1;var t=it(),n=ct(),r=oo(),e=yo(),o=t("".replace),i=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),c=function(t){return function(e){var c=r(n(e));return 1&t&&(c=o(c,i,"")),2&t&&(c=o(c,u,"$1")),c}};return ao={start:c(1),end:c(2),trim:c(3)}}().trim,r=function(){if(po)return so;po=1;var t=$n().PROPER,n=et(),r=yo();return so=function(e){return n(function(){return!!r[e]()||"
"!=="
"[e]()||t&&r[e].name!==e})}}();t({target:"String",proto:!0,forced:r("trim")},{trim:function(){return n(this)}})}();var mo,go,bo={};function wo(t){return null!==t&&"object"==typeof t&&"constructor"in t&&t.constructor===Object}function xo(t={},n={}){Object.keys(n).forEach(r=>{void 0===t[r]?t[r]=n[r]:wo(n[r])&&wo(t[r])&&Object.keys(n[r]).length>0&&xo(t[r],n[r])})}go||(go=1,function(){if(mo)return bo;mo=1;var t=re(),n=h();t({global:!0,forced:n.globalThis!==n},{globalThis:n})}());const Eo={body:{},addEventListener(){},removeEventListener(){},activeElement:{blur(){},nodeName:""},querySelector:()=>null,querySelectorAll:()=>[],getElementById:()=>null,createEvent:()=>({initEvent(){}}),createElement:()=>({children:[],childNodes:[],style:{},setAttribute(){},getElementsByTagName:()=>[]}),createElementNS:()=>({}),importNode:()=>null,location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};function Oo(){const t="undefined"!=typeof document?document:{};return xo(t,Eo),t}const So={document:Eo,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState(){},pushState(){},go(){},back(){}},CustomEvent:function(){return this},addEventListener(){},removeEventListener(){},getComputedStyle:()=>({getPropertyValue:()=>""}),Image(){},Date(){},screen:{},setTimeout(){},clearTimeout(){},matchMedia:()=>({}),requestAnimationFrame:t=>"undefined"==typeof setTimeout?(t(),null):setTimeout(t,0),cancelAnimationFrame(t){"undefined"!=typeof setTimeout&&clearTimeout(t)}};function jo(){const t="undefined"!=typeof window?window:{};return xo(t,So),t}class To extends Array{constructor(t){"number"==typeof t?super(t):(super(...t||[]),function(t){const n=t.__proto__;Object.defineProperty(t,"__proto__",{get:()=>n,set(t){n.__proto__=t}})}(this))}}function Lo(t,n){const r=jo(),e=Oo();let o=[];if(!n&&t instanceof To)return t;if(!t)return new To(o);if("string"==typeof t){const r=t.trim();if(r.indexOf("<")>=0&&r.indexOf(">")>=0){let t="div";0===r.indexOf("<li")&&(t="ul"),0===r.indexOf("<tr")&&(t="tbody"),0!==r.indexOf("<td")&&0!==r.indexOf("<th")||(t="tr"),0===r.indexOf("<tbody")&&(t="table"),0===r.indexOf("<option")&&(t="select");const n=e.createElement(t);n.innerHTML=r;for(let t=0;t<n.childNodes.length;t+=1)o.push(n.childNodes[t])}else o=function(t,n){if("string"!=typeof t)return[t];const r=[],e=n.querySelectorAll(t);for(let t=0;t<e.length;t+=1)r.push(e[t]);return r}(t.trim(),n||e)}else if(t.nodeType||t===r||t===e)o.push(t);else if(Array.isArray(t)){if(t instanceof To)return t;o=t}return new To(function(t){const n=[];for(let r=0;r<t.length;r+=1)-1===n.indexOf(t[r])&&n.push(t[r]);return n}(o))}function Io(t){if(void 0===t){const t=this[0];if(!t)return;if(t.multiple&&"select"===t.nodeName.toLowerCase()){const n=[];for(let r=0;r<t.selectedOptions.length;r+=1)n.push(t.selectedOptions[r].value);return n}return t.value}for(let n=0;n<this.length;n+=1){const r=this[n];if(Array.isArray(t)&&r.multiple&&"select"===r.nodeName.toLowerCase())for(let n=0;n<r.options.length;n+=1)r.options[n].selected=t.indexOf(r.options[n].value)>=0;else r.value=t}return this}function Po(...t){let[n,r,e,o]=t;function i(t){const n=t.target;if(!n)return;const o=t.target.dom7EventData||[];if(o.indexOf(t)<0&&o.unshift(t),Lo(n).is(r))e.apply(n,o);else{const t=Lo(n).parents();for(let n=0;n<t.length;n+=1)Lo(t[n]).is(r)&&e.apply(t[n],o)}}function u(t){const n=t&&t.target&&t.target.dom7EventData||[];n.indexOf(t)<0&&n.unshift(t),e.apply(this,n)}"function"==typeof t[1]&&([n,e,o]=t,r=void 0),o||(o=!1);const c=n.split(" ");let f;for(let t=0;t<this.length;t+=1){const n=this[t];if(r)for(f=0;f<c.length;f+=1){const t=c[f];n.dom7LiveListeners||(n.dom7LiveListeners={}),n.dom7LiveListeners[t]||(n.dom7LiveListeners[t]=[]),n.dom7LiveListeners[t].push({listener:e,proxyListener:i}),n.addEventListener(t,i,o)}else for(f=0;f<c.length;f+=1){const t=c[f];n.dom7Listeners||(n.dom7Listeners={}),n.dom7Listeners[t]||(n.dom7Listeners[t]=[]),n.dom7Listeners[t].push({listener:e,proxyListener:u}),n.addEventListener(t,u,o)}}return this}function Ao(t){if(void 0===t)return this[0]?this[0].innerHTML:null;for(let n=0;n<this.length;n+=1)this[n].innerHTML=t;return this}function Co(t){const n=jo(),r=Oo(),e=this[0];let o,i;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(o=Lo(t),i=0;i<o.length;i+=1)if(o[i]===e)return!0;return!1}if(t===r)return e===r;if(t===n)return e===n;if(t.nodeType||t instanceof To){for(o=t.nodeType?[t]:t,i=0;i<o.length;i+=1)if(o[i]===e)return!0;return!1}return!1}function Mo(...t){let n;const r=Oo();for(let e=0;e<t.length;e+=1){n=t[e];for(let t=0;t<this.length;t+=1)if("string"==typeof n){const e=r.createElement("div");for(e.innerHTML=n;e.firstChild;)this[t].appendChild(e.firstChild)}else if(n instanceof To)for(let r=0;r<n.length;r+=1)this[t].appendChild(n[r]);else this[t].appendChild(n)}return this}function Ro(t){const n=[];for(let r=0;r<this.length;r+=1){let e=this[r].parentNode;for(;e;)t?Lo(e).is(t)&&n.push(e):n.push(e),e=e.parentNode}return Lo(n)}function No(t){const n=[];for(let r=0;r<this.length;r+=1){const e=this[r].querySelectorAll(t);for(let t=0;t<e.length;t+=1)n.push(e[t])}return Lo(n)}Lo.fn=To.prototype;const _o="resize scroll".split(" ");const ko=(Fo="focus",function(...t){if(void 0===t[0]){for(let t=0;t<this.length;t+=1)_o.indexOf(Fo)<0&&(Fo in this[t]?this[t][Fo]():Lo(this[t]).trigger(Fo));return this}return this.on(Fo,...t)});var Fo;Mo&&(Lo.fn.append=Mo),Ao&&(Lo.fn.html=Ao),Io&&(Lo.fn.val=Io),Po&&(Lo.fn.on=Po),ko&&(Lo.fn.focus=ko),Co&&(Lo.fn.is=Co),Ro&&(Lo.fn.parents=Ro),No&&(Lo.fn.find=No);var Do,Ho,zo,$o,Bo,Vo,Wo,Uo={};function qo(){if(Ho)return Do;Ho=1;var t=TypeError;return Do=function(n){if(n>9007199254740991)throw new t("Maximum allowed index exceeded");return n}}function Go(){if(Vo)return Bo;Vo=1;var t=et(),n=vt(),r=st(),e=n("species");return Bo=function(n){return r>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[n](Boolean).foo})}}!function(){if(Wo)return Uo;Wo=1;var t=re(),n=et(),r=He(),e=Qt(),o=ft(),i=Cr(),u=qo(),c=Be(),f=function(){if($o)return zo;$o=1;var t=Jt(),n=He(),r=TypeError,e=Object.getOwnPropertyDescriptor,o=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return zo=o?function(t,o){if(n(t)&&!e(t,"length").writable)throw new r("Cannot set read only .length");return t.length=o}:function(t,n){return t.length=n}}(),a=$e(),l=Go(),s=vt(),p=st(),d=s("isConcatSpreadable"),v=p>=51||!n(function(){var t=[];return t[d]=!1,t.concat()[0]!==t}),h=function(t){if(!e(t))return!1;var n=t[d];return void 0!==n?!!n:r(t)};t({target:"Array",proto:!0,arity:1,forced:!v||!l("concat")},{concat:function(t){var n,r,e,l,s,p=o(this),d=a(p,0),v=0;for(n=-1,e=arguments.length;n<e;n++)if(h(s=-1===n?p:arguments[n]))for(l=i(s),u(v+l),r=0;r<l;r++,v++)r in s&&c(d,v,s[r]);else u(v+1),c(d,v++,s);return f(d,v),d}})}();function Ko(t){return"".concat(t,"-").concat(((t=21)=>{let n="",r=crypto.getRandomValues(new Uint8Array(t|=0));for(;t--;)n+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[t]];return n})())}function Xo(){return Ko("w-e-insert-formula")}var Yo=function(){function t(){this.title=r("formula.edit"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M864 0a160 160 0 0 1 128 256l-64 64-224-224 64-64c26.752-20.096 59.968-32 96-32zM64 736l-64 288 288-64 592-592-224-224L64 736z m651.584-372.416l-448 448-55.168-55.168 448-448 55.168 55.168z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=Xo(),this.buttonId=Xo()}return t.prototype.getSelectedElem=function(t){var n=e.getSelectedNodeByType(t,"formula");return null==n?null:n},t.prototype.getValue=function(t){var n=this.getSelectedElem(t);return n&&n.value||""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,n){},t.prototype.isDisabled=function(t){var n=t.selection;return null==n||(!!o.isExpanded(n)||null==this.getSelectedElem(t))},t.prototype.getModalPositionNode=function(t){return this.getSelectedElem(t)},t.prototype.getModalContentElem=function(t){var n=this,e=this.textareaId,o=this.buttonId,c=l(i(r("formula.formula"),e,r("formula.placeholder")),2),f=c[0],a=Lo(c[1]),s=l(u(o,r("formula.ok")),1)[0];if(null==this.$content){var p=Lo("<div></div>");p.on("click","#".concat(o),function(r){r.preventDefault();var o=p.find("#".concat(e)).val().trim();n.updateFormula(t,o),t.hidePanelOrModal()}),this.$content=p}var d=this.$content;d.html(""),d.append(f),d.append(s);var v=this.getValue(t);return a.val(v),setTimeout(function(){a.focus()}),d[0]},t.prototype.updateFormula=function(t,n){if(n&&(t.restoreSelection(),!this.isDisabled(t))){var r=this.getSelectedElem(t);if(null!=r){var o=e.findPath(t,r),i={value:n};c.setNodes(t,i,{at:o})}}},t}();function Jo(){return Ko("w-e-insert-formula")}var Qo=function(){function t(){this.title=r("formula.insert"),this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M941.6 734.72L985.984 640H1024l-64 384H0v-74.24l331.552-391.2L0 227.008V0h980L1024 256h-34.368l-18.72-38.88C935.584 143.744 909.024 128 832 128H169.984l353.056 353.056L225.632 832H768c116 0 146.656-41.568 173.6-97.28z"></path></svg>',this.tag="button",this.showModal=!0,this.modalWidth=300,this.$content=null,this.textareaId=Jo(),this.buttonId=Jo()}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.exec=function(t,n){},t.prototype.isDisabled=function(t){var n=t.selection;if(null==n)return!0;if(o.isExpanded(n))return!0;var r=e.getSelectedElems(t);return!!r.some(function(n){return t.isVoid(n)})||!!r.some(function(t){return"pre"===e.getNodeType(t)})},t.prototype.getModalPositionNode=function(t){return null},t.prototype.getModalContentElem=function(t){var n=this,e=this.textareaId,o=this.buttonId,c=l(i(r("formula.formula"),e,r("formula.placeholder")),2),f=c[0],a=Lo(c[1]),s=l(u(o,r("formula.ok")),1)[0];if(null==this.$content){var p=Lo("<div></div>");p.on("click","#".concat(o),function(r){r.preventDefault();var o=p.find("#".concat(e)).val().trim();n.insertFormula(t,o),t.hidePanelOrModal()}),this.$content=p}var d=this.$content;return d.html(""),d.append(f),d.append(s),a.val(""),setTimeout(function(){a.focus()}),d[0]},t.prototype.insertFormula=function(t,n){if(n&&(t.restoreSelection(),!this.isDisabled(t))){var r={type:"formula",value:n,children:[{text:""}]};t.insertNode(r)}},t}();var Zo={editorPlugin:function(t){var n=t.isInline,r=t.isVoid,o=t;return o.isInline=function(t){return"formula"===e.getNodeType(t)||n(t)},o.isVoid=function(t){return"formula"===e.getNodeType(t)||r(t)},o},renderElems:[{type:"formula",renderElem:function(t,n,r){var o=e.isNodeSelected(r,t),i=t.value,u=f("w-e-formula-card",{dataset:{value:void 0===i?"":i}},null);return f("div",{className:"w-e-textarea-formula-container",props:{contentEditable:!1},style:{display:"inline-block",marginLeft:"3px",marginRight:"3px",border:o?"2px solid var(--w-e-textarea-selected-border-color)":"2px solid transparent",borderRadius:"3px",padding:"3px 3px"}},[u])}}],elemsToHtml:[ke],parseElemsHtml:[{selector:'span[data-w-e-type="formula"]',parseElemHtml:function(t,n,r){return{type:"formula",value:t.getAttribute("data-value")||"",children:[{text:""}]}}}],menus:[{key:"insertFormula",factory:function(){return new Qo}},{key:"editFormula",factory:function(){return new Yo}}]};export{Zo as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|