@wangeditor-next/plugin-float-image 2.0.0 → 2.0.1
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/core/src/config/interface.d.ts +1 -1
- package/dist/core/src/editor/dom-editor.d.ts +9 -0
- package/dist/core/src/index.d.ts +11 -1
- package/dist/core/src/upload.d.ts +5 -0
- package/dist/editor/src/index.d.ts +3 -2
- 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{i18nAddResources as t,getTextStyleMode as r,DomEditor as n,SlateTransforms as e,t as i}from"@wangeditor-next/editor";import o,{css as u,append as a,prepend as f,addClass as c,removeClass as l,hasClass as s,on as v,off as p,focus as h,attr as d,removeAttr as g,hide as y,show as m,parents as b,dataset as w,val as x,text as O,html as S,children as j,remove as E,find as q,width as T,height as A,filter as P,empty as I}from"dom7";import{jsx as C}from"snabbdom";t("en",{float:{none:"Default",left:"Float Left",right:"Float Right"}}),t("zh-CN",{float:{none:"默认",left:"左浮动",right:"右浮动"}});var R="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function N(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var M,F,_={};function k(){if(F)return M;F=1;var t=function(t){return t&&t.Math===Math&&t};return M=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof R&&R)||t("object"==typeof M&&M)||function(){return this}()||Function("return this")()}var D,z,L,B,Z,$,W,U,H={};function G(){return z?D:(z=1,D=function(t){try{return!!t()}catch(t){return!0}})}function K(){if(B)return L;B=1;var t=G();return L=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function X(){if($)return Z;$=1;var t=G();return Z=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function Y(){if(U)return W;U=1;var t=X(),r=Function.prototype.call;return W=t?r.bind(r):function(){return r.apply(r,arguments)},W}var V,J,Q,tt,rt,nt,et,it,ot,ut,at,ft,ct,lt,st,vt,pt,ht,dt,gt,yt,mt,bt,wt,xt,Ot,St,jt,Et,qt,Tt,At,Pt,It,Ct,Rt,Nt,Mt,Ft,_t,kt,Dt={};function zt(){return Q?J:(Q=1,J=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function Lt(){if(rt)return tt;rt=1;var t=X(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return tt=t?e:function(t){return function(){return n.apply(t,arguments)}},tt}function Bt(){if(et)return nt;et=1;var t=Lt(),r=t({}.toString),n=t("".slice);return nt=function(t){return n(r(t),8,-1)}}function Zt(){if(ot)return it;ot=1;var t=Lt(),r=G(),n=Bt(),e=Object,i=t("".split);return it=r(function(){return!e("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?i(t,""):e(t)}:e}function $t(){return at?ut:(at=1,ut=function(t){return null==t})}function Wt(){if(ct)return ft;ct=1;var t=$t(),r=TypeError;return ft=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function Ut(){if(st)return lt;st=1;var t=Zt(),r=Wt();return lt=function(n){return t(r(n))}}function Ht(){if(pt)return vt;pt=1;var t="object"==typeof document&&document.all;return vt=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function Gt(){if(dt)return ht;dt=1;var t=Ht();return ht=function(r){return"object"==typeof r?null!==r:t(r)}}function Kt(){if(yt)return gt;yt=1;var t=k(),r=Ht();return gt=function(n,e){return arguments.length<2?(i=t[n],r(i)?i:void 0):t[n]&&t[n][e];var i},gt}function Xt(){if(St)return Ot;St=1;var t,r,n=k(),e=function(){if(xt)return wt;xt=1;var t=k().navigator,r=t&&t.userAgent;return wt=r?String(r):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.version,a=u&&u.v8;return a&&(r=(t=a.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),Ot=r}function Yt(){if(Et)return jt;Et=1;var t=Xt(),r=G(),n=k().String;return jt=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function Vt(){if(Tt)return qt;Tt=1;var t=Yt();return qt=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Jt(){if(Pt)return At;Pt=1;var t=Kt(),r=Ht(),n=function(){if(bt)return mt;bt=1;var t=Lt();return mt=t({}.isPrototypeOf)}(),e=Vt(),i=Object;return At=e?function(t){return"symbol"==typeof t}:function(e){var o=t("Symbol");return r(o)&&n(o.prototype,i(e))}}function Qt(){if(Ct)return It;Ct=1;var t=String;return It=function(r){try{return t(r)}catch(t){return"Object"}}}function tr(){if(Nt)return Rt;Nt=1;var t=Ht(),r=Qt(),n=TypeError;return Rt=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function rr(){if(Ft)return Mt;Ft=1;var t=tr(),r=$t();return Mt=function(n,e){var i=n[e];return r(i)?void 0:t(i)}}function nr(){if(kt)return _t;kt=1;var t=Y(),r=Ht(),n=Gt(),e=TypeError;return _t=function(i,o){var u,a;if("string"===o&&r(u=i.toString)&&!n(a=t(u,i)))return a;if(r(u=i.valueOf)&&!n(a=t(u,i)))return a;if("string"!==o&&r(u=i.toString)&&!n(a=t(u,i)))return a;throw new e("Can't convert object to primitive value")},_t}var er,ir,or,ur,ar,fr,cr,lr,sr,vr,pr,hr,dr,gr,yr,mr,br,wr,xr,Or,Sr,jr,Er,qr,Tr={exports:{}};function Ar(){if(ur)return or;ur=1;var t=k(),r=Object.defineProperty;return or=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function Pr(){if(ar)return Tr.exports;ar=1;var t=ir?er:(ir=1,er=!1),r=k(),n=Ar(),e="__core-js_shared__",i=Tr.exports=r[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.47.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Tr.exports}function Ir(){if(cr)return fr;cr=1;var t=Pr();return fr=function(r,n){return t[r]||(t[r]=n||{})}}function Cr(){if(sr)return lr;sr=1;var t=Wt(),r=Object;return lr=function(n){return r(t(n))}}function Rr(){if(pr)return vr;pr=1;var t=Lt(),r=Cr(),n=t({}.hasOwnProperty);return vr=Object.hasOwn||function(t,e){return n(r(t),e)}}function Nr(){if(dr)return hr;dr=1;var t=Lt(),r=0,n=Math.random(),e=t(1.1.toString);return hr=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function Mr(){if(yr)return gr;yr=1;var t=k(),r=Ir(),n=Rr(),e=Nr(),i=Yt(),o=Vt(),u=t.Symbol,a=r("wks"),f=o?u.for||u:u&&u.withoutSetter||e;return gr=function(t){return n(a,t)||(a[t]=i&&n(u,t)?u[t]:f("Symbol."+t)),a[t]}}function Fr(){if(br)return mr;br=1;var t=Y(),r=Gt(),n=Jt(),e=rr(),i=nr(),o=Mr(),u=TypeError,a=o("toPrimitive");return mr=function(o,f){if(!r(o)||n(o))return o;var c,l=e(o,a);if(l){if(void 0===f&&(f="default"),c=t(l,o,f),!r(c)||n(c))return c;throw new u("Can't convert object to primitive value")}return void 0===f&&(f="number"),i(o,f)}}function _r(){if(xr)return wr;xr=1;var t=Fr(),r=Jt();return wr=function(n){var e=t(n,"string");return r(e)?e:e+""}}function kr(){if(Sr)return Or;Sr=1;var t=k(),r=Gt(),n=t.document,e=r(n)&&r(n.createElement);return Or=function(t){return e?n.createElement(t):{}}}function Dr(){if(Er)return jr;Er=1;var t=K(),r=G(),n=kr();return jr=!t&&!r(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function zr(){if(qr)return H;qr=1;var t=K(),r=Y(),n=function(){if(V)return Dt;V=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return Dt.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,Dt}(),e=zt(),i=Ut(),o=_r(),u=Rr(),a=Dr(),f=Object.getOwnPropertyDescriptor;return H.f=t?f:function(t,c){if(t=i(t),c=o(c),a)try{return f(t,c)}catch(t){}if(u(t,c))return e(!r(n.f,t,c),t[c])},H}var Lr,Br,Zr,$r,Wr,Ur,Hr,Gr={};function Kr(){if(Br)return Lr;Br=1;var t=K(),r=G();return Lr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Xr(){if($r)return Zr;$r=1;var t=Gt(),r=String,n=TypeError;return Zr=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function Yr(){if(Wr)return Gr;Wr=1;var t=K(),r=Dr(),n=Kr(),e=Xr(),i=_r(),o=TypeError,u=Object.defineProperty,a=Object.getOwnPropertyDescriptor,f="enumerable",c="configurable",l="writable";return Gr.f=t?n?function(t,r,n){if(e(t),r=i(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&l in n&&!n[l]){var o=a(t,r);o&&o[l]&&(t[r]=n.value,n={configurable:c in n?n[c]:o[c],enumerable:f in n?n[f]:o[f],writable:!1})}return u(t,r,n)}:u:function(t,n,a){if(e(t),n=i(n),e(a),r)try{return u(t,n,a)}catch(t){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(t[n]=a.value),t},Gr}function Vr(){if(Hr)return Ur;Hr=1;var t=K(),r=Yr(),n=zt();return Ur=t?function(t,e,i){return r.f(t,e,n(1,i))}:function(t,r,n){return t[r]=n,t}}var Jr,Qr,tn,rn,nn,en,on,un,an,fn,cn,ln,sn,vn,pn,hn={exports:{}};function dn(){if(Qr)return Jr;Qr=1;var t=K(),r=Rr(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,i=r(n,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&e(n,"name").configurable);return Jr={EXISTS:i,PROPER:o,CONFIGURABLE:u}}function gn(){if(rn)return tn;rn=1;var t=Lt(),r=Ht(),n=Pr(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),tn=n.inspectSource}function yn(){if(un)return on;un=1;var t=Ir(),r=Nr(),n=t("keys");return on=function(t){return n[t]||(n[t]=r(t))}}function mn(){return fn?an:(fn=1,an={})}function bn(){if(ln)return cn;ln=1;var t,r,n,e=function(){if(en)return nn;en=1;var t=k(),r=Ht(),n=t.WeakMap;return nn=r(n)&&/native code/.test(String(n))}(),i=k(),o=Gt(),u=Vr(),a=Rr(),f=Pr(),c=yn(),l=mn(),s="Object already initialized",v=i.TypeError,p=i.WeakMap;if(e||f.state){var h=f.state||(f.state=new p);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new v(s);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var d=c("state");l[d]=!0,t=function(t,r){if(a(t,d))throw new v(s);return r.facade=t,u(t,d,r),r},r=function(t){return a(t,d)?t[d]:{}},n=function(t){return a(t,d)}}return cn={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!o(n)||(e=r(n)).type!==t)throw new v("Incompatible receiver, "+t+" required");return e}}}}function wn(){if(sn)return hn.exports;sn=1;var t=Lt(),r=G(),n=Ht(),e=Rr(),i=K(),o=dn().CONFIGURABLE,u=gn(),a=bn(),f=a.enforce,c=a.get,l=String,s=Object.defineProperty,v=t("".slice),p=t("".replace),h=t([].join),d=i&&!r(function(){return 8!==s(function(){},"length",{value:8}).length}),g=String(String).split("String"),y=hn.exports=function(t,r,n){"Symbol("===v(l(r),0,7)&&(r="["+p(l(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||o&&t.name!==r)&&(i?s(t,"name",{value:r,configurable:!0}):t.name=r),d&&n&&e(n,"arity")&&t.length!==n.arity&&s(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?i&&s(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return e(u,"source")||(u.source=h(g,"string"==typeof r?r:"")),t};return Function.prototype.toString=y(function(){return n(this)&&c(this).source||u(this)},"toString"),hn.exports}function xn(){if(pn)return vn;pn=1;var t=Ht(),r=Yr(),n=wn(),e=Ar();return vn=function(i,o,u,a){a||(a={});var f=a.enumerable,c=void 0!==a.name?a.name:o;if(t(u)&&n(u,c,a),a.global)f?i[o]=u:e(o,u);else{try{a.unsafe?i[o]&&(f=!0):delete i[o]}catch(t){}f?i[o]=u:r.f(i,o,{value:u,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i}}var On,Sn,jn,En,qn,Tn,An,Pn,In,Cn,Rn,Nn,Mn,Fn,_n,kn,Dn,zn={};function Ln(){if(En)return jn;En=1;var t=function(){if(Sn)return On;Sn=1;var t=Math.ceil,r=Math.floor;return On=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return jn=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function Bn(){if(Tn)return qn;Tn=1;var t=Ln(),r=Math.max,n=Math.min;return qn=function(e,i){var o=t(e);return o<0?r(o+i,0):n(o,i)}}function Zn(){if(Pn)return An;Pn=1;var t=Ln(),r=Math.min;return An=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function $n(){if(Cn)return In;Cn=1;var t=Zn();return In=function(r){return t(r.length)}}function Wn(){if(Nn)return Rn;Nn=1;var t=Ut(),r=Bn(),n=$n(),e=function(e){return function(i,o,u){var a=t(i),f=n(a);if(0===f)return!e&&-1;var c,l=r(u,f);if(e&&o!=o){for(;f>l;)if((c=a[l++])!=c)return!0}else for(;f>l;l++)if((e||l in a)&&a[l]===o)return e||l||0;return!e&&-1}};return Rn={includes:e(!0),indexOf:e(!1)}}function Un(){if(Fn)return Mn;Fn=1;var t=Lt(),r=Rr(),n=Ut(),e=Wn().indexOf,i=mn(),o=t([].push);return Mn=function(t,u){var a,f=n(t),c=0,l=[];for(a in f)!r(i,a)&&r(f,a)&&o(l,a);for(;u.length>c;)r(f,a=u[c++])&&(~e(l,a)||o(l,a));return l}}function Hn(){return kn?_n:(kn=1,_n=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Gn,Kn,Xn,Yn,Vn,Jn,Qn,te,re,ne,ee,ie,oe,ue,ae,fe,ce,le,se,ve,pe,he,de,ge,ye,me,be,we,xe={};function Oe(){if(Xn)return Kn;Xn=1;var t=Kt(),r=Lt(),n=function(){if(Dn)return zn;Dn=1;var t=Un(),r=Hn().concat("length","prototype");return zn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},zn}(),e=(Gn||(Gn=1,xe.f=Object.getOwnPropertySymbols),xe),i=Xr(),o=r([].concat);return Kn=t("Reflect","ownKeys")||function(t){var r=n.f(i(t)),u=e.f;return u?o(r,u(t)):r}}function Se(){if(Vn)return Yn;Vn=1;var t=Rr(),r=Oe(),n=zr(),e=Yr();return Yn=function(i,o,u){for(var a=r(o),f=e.f,c=n.f,l=0;l<a.length;l++){var s=a[l];t(i,s)||u&&t(u,s)||f(i,s,c(o,s))}}}function je(){if(re)return te;re=1;var t=k(),r=zr().f,n=Vr(),e=xn(),i=Ar(),o=Se(),u=function(){if(Qn)return Jn;Qn=1;var t=G(),r=Ht(),n=/#|\.prototype\./,e=function(n,e){var f=o[i(n)];return f===a||f!==u&&(r(e)?t(e):!!e)},i=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",a=e.POLYFILL="P";return Jn=e}();return te=function(a,f){var c,l,s,v,p,h=a.target,d=a.global,g=a.stat;if(c=d?t:g?t[h]||i(h,{}):t[h]&&t[h].prototype)for(l in f){if(v=f[l],s=a.dontCallGetSet?(p=r(c,l))&&p.value:c[l],!u(d?l:h+(g?".":"#")+l,a.forced)&&void 0!==s){if(typeof v==typeof s)continue;o(v,s)}(a.sham||s&&s.sham)&&n(v,"sham",!0),e(c,l,v,a)}}}function Ee(){if(ee)return ne;ee=1;var t=Bt();return ne=Array.isArray||function(r){return"Array"===t(r)}}function qe(){if(oe)return ie;oe=1;var t=TypeError;return ie=function(r){if(r>9007199254740991)throw t("Maximum allowed index exceeded");return r}}function Te(){if(ae)return ue;ae=1;var t=K(),r=Yr(),n=zt();return ue=function(e,i,o){t?r.f(e,i,n(0,o)):e[i]=o}}function Ae(){if(ce)return fe;ce=1;var t={};return t[Mr()("toStringTag")]="z",fe="[object z]"===String(t)}function Pe(){if(se)return le;se=1;var t=Ae(),r=Ht(),n=Bt(),e=Mr()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return le=t?n:function(t){var u,a,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(a=function(t,r){try{return t[r]}catch(t){}}(u=i(t),e))?a:o?n(u):"Object"===(f=n(u))&&r(u.callee)?"Arguments":f}}function Ie(){if(pe)return ve;pe=1;var t=Lt(),r=G(),n=Ht(),e=Pe(),i=Kt(),o=gn(),u=function(){},a=i("Reflect","construct"),f=/^\s*(?:class|function)\b/,c=t(f.exec),l=!f.test(u),s=function(t){if(!n(t))return!1;try{return a(u,[],t),!0}catch(t){return!1}},v=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!c(f,o(t))}catch(t){return!0}};return v.sham=!0,ve=!a||r(function(){var t;return s(s.call)||!s(Object)||!s(function(){t=!0})||t})?v:s}function Ce(){if(de)return he;de=1;var t=Ee(),r=Ie(),n=Gt(),e=Mr()("species"),i=Array;return he=function(o){var u;return t(o)&&(u=o.constructor,(r(u)&&(u===i||t(u.prototype))||n(u)&&null===(u=u[e]))&&(u=void 0)),void 0===u?i:u}}function Re(){if(ye)return ge;ye=1;var t=Ce();return ge=function(r,n){return new(t(r))(0===n?0:n)}}function Ne(){if(be)return me;be=1;var t=G(),r=Mr(),n=Xt(),e=r("species");return me=function(r){return n>=51||!t(function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(we)return _;we=1;var t=je(),r=G(),n=Ee(),e=Gt(),i=Cr(),o=$n(),u=qe(),a=Te(),f=Re(),c=Ne(),l=Mr(),s=Xt(),v=l("isConcatSpreadable"),p=s>=51||!r(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}),h=function(t){if(!e(t))return!1;var r=t[v];return void 0!==r?!!r:n(t)};t({target:"Array",proto:!0,arity:1,forced:!p||!c("concat")},{concat:function(t){var r,n,e,c,l,s=i(this),v=f(s,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(h(l=-1===r?s:arguments[r]))for(c=o(l),u(p+c),n=0;n<c;n++,p++)n in l&&a(v,p,l[n]);else u(p+1),a(v,p++,l);return v.length=p,v}})}();var Me,Fe,_e,ke,De,ze,Le,Be,Ze,$e={};function We(){if(Fe)return Me;Fe=1;var t=Pe(),r=String;return Me=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}function Ue(){return ke?_e:(ke=1,_e="\t\n\v\f\r \u2028\u2029\ufeff")}!function(){if(Ze)return $e;Ze=1;var t=je(),r=function(){if(ze)return De;ze=1;var t=Lt(),r=Wt(),n=We(),e=Ue(),i=t("".replace),o=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),a=function(t){return function(e){var a=n(r(e));return 1&t&&(a=i(a,o,"")),2&t&&(a=i(a,u,"$1")),a}};return De={start:a(1),end:a(2),trim:a(3)}}().trim,n=function(){if(Be)return Le;Be=1;var t=dn().PROPER,r=G(),n=Ue();return Le=function(e){return r(function(){return!!n[e]()||"
"!=="
"[e]()||t&&n[e].name!==e})}}();t({target:"String",proto:!0,forced:n("trim")},{trim:function(){return r(this)}})}();var He={type:"image",elemToHtml:function(t,n,e){var i=t,o=i.src,u=i.alt,a=void 0===u?"":u,f=i.href,c=void 0===f?"":f,l=i.style,s=void 0===l?{}:l,v=s.width,p=void 0===v?"":v,h=s.height,d=void 0===h?"":h,g=s.float,y=void 0===g?"":g;if("class"===r(e)){var m=p?' data-w-e-style-width="'.concat(p,'"'):"",b=d?' data-w-e-style-height="'.concat(d,'"'):"",w=y?' data-w-e-style-float="'.concat(y,'"'):"",x=function(t){var r=(t||"").trim().toLowerCase();return"left"===r?"w-e-float-image-left":"right"===r?"w-e-float-image-right":"none"===r?"w-e-float-image-none":""}(y),O=x?' class="'.concat(x,'"'):"";return'<img src="'.concat(o,'" alt="').concat(a,'" data-href="').concat(c,'" width="').concat(p,'" height="').concat(d,'"').concat(O).concat(m).concat(b).concat(w,"/>")}var S="";return p&&(S+="width: ".concat(p,";")),d&&(S+="height: ".concat(d,";")),y&&(S+="float: ".concat(y,";")),'<img src="'.concat(o,'" alt="').concat(a,'" data-href="').concat(c,'" style="').concat(S,'"/>')}},Ge=function(t,r){return Ge=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Ge(t,r)};function Ke(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}Ge(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var Xe=function(){return Xe=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var i in r=arguments[n])Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t},Xe.apply(this,arguments)};function Ye(t,r){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,i,o=n.call(t),u=[];try{for(;(void 0===r||r-- >0)&&!(e=o.next()).done;)u.push(e.value)}catch(t){i={error:t}}finally{try{e&&!e.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return u}function Ve(t,r,n){if(n||2===arguments.length)for(var e,i=0,o=r.length;i<o;i++)!e&&i in r||(e||(e=Array.prototype.slice.call(r,0,i)),e[i]=r[i]);return t.concat(e||Array.prototype.slice.call(r))}"function"==typeof SuppressedError&&SuppressedError;var Je,Qe,ti,ri,ni={};function ei(){if(Qe)return Je;Qe=1;var t=Xr();return Je=function(){var r=t(this),n="";return r.hasIndices&&(n+="d"),r.global&&(n+="g"),r.ignoreCase&&(n+="i"),r.multiline&&(n+="m"),r.dotAll&&(n+="s"),r.unicode&&(n+="u"),r.unicodeSets&&(n+="v"),r.sticky&&(n+="y"),n}}function ii(){if(ri)return ti;ri=1;var t=G(),r=k().RegExp,n=t(function(){var t=r("a","y");return t.lastIndex=2,null!==t.exec("abcd")}),e=n||t(function(){return!r("a","y").sticky}),i=n||t(function(){var t=r("^r","gy");return t.lastIndex=2,null!==t.exec("str")});return ti={BROKEN_CARET:i,MISSED_STICKY:e,UNSUPPORTED_Y:n}}var oi,ui,ai,fi,ci,li,si,vi,pi,hi,di,gi,yi,mi,bi={};function wi(){if(ui)return oi;ui=1;var t=Un(),r=Hn();return oi=Object.keys||function(n){return t(n,r)}}function xi(){if(ci)return fi;ci=1;var t=Kt();return fi=t("document","documentElement")}function Oi(){if(si)return li;si=1;var t,r=Xr(),n=function(){if(ai)return bi;ai=1;var t=K(),r=Kr(),n=Yr(),e=Xr(),i=Ut(),o=wi();return bi.f=t&&!r?Object.defineProperties:function(t,r){e(t);for(var u,a=i(r),f=o(r),c=f.length,l=0;c>l;)n.f(t,u=f[l++],a[u]);return t},bi}(),e=Hn(),i=mn(),o=xi(),u=kr(),a=yn(),f="prototype",c="script",l=a("IE_PROTO"),s=function(){},v=function(t){return"<"+c+">"+t+"</"+c+">"},p=function(t){t.write(v("")),t.close();var r=t.parentWindow.Object;return t=null,r},h=function(){try{t=new ActiveXObject("htmlfile")}catch(t){}var r,n,i;h="undefined"!=typeof document?document.domain&&t?p(t):(n=u("iframe"),i="java"+c+":",n.style.display="none",o.appendChild(n),n.src=String(i),(r=n.contentWindow.document).open(),r.write(v("document.F=Object")),r.close(),r.F):p(t);for(var a=e.length;a--;)delete h[f][e[a]];return h()};return i[l]=!0,li=Object.create||function(t,e){var i;return null!==t?(s[f]=r(t),i=new s,s[f]=null,i[l]=t):i=h(),void 0===e?i:n.f(i,e)}}function Si(){if(yi)return gi;yi=1;var t,r,n=Y(),e=Lt(),i=We(),o=ei(),u=ii(),a=Ir(),f=Oi(),c=bn().get,l=function(){if(pi)return vi;pi=1;var t=G(),r=k().RegExp;return vi=t(function(){var t=r(".","s");return!(t.dotAll&&t.test("\n")&&"s"===t.flags)})}(),s=function(){if(di)return hi;di=1;var t=G(),r=k().RegExp;return hi=t(function(){var t=r("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})}(),v=a("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,h=p,d=e("".charAt),g=e("".indexOf),y=e("".replace),m=e("".slice),b=(r=/b*/g,n(p,t=/a/,"a"),n(p,r,"a"),0!==t.lastIndex||0!==r.lastIndex),w=u.BROKEN_CARET,x=void 0!==/()??/.exec("")[1];return(b||x||w||l||s)&&(h=function(t){var r,e,u,a,l,s,O,S=this,j=c(S),E=i(t),q=j.raw;if(q)return q.lastIndex=S.lastIndex,r=n(h,q,E),S.lastIndex=q.lastIndex,r;var T=j.groups,A=w&&S.sticky,P=n(o,S),I=S.source,C=0,R=E;if(A&&(P=y(P,"y",""),-1===g(P,"g")&&(P+="g"),R=m(E,S.lastIndex),S.lastIndex>0&&(!S.multiline||S.multiline&&"\n"!==d(E,S.lastIndex-1))&&(I="(?: "+I+")",R=" "+R,C++),e=new RegExp("^(?:"+I+")",P)),x&&(e=new RegExp("^"+I+"$(?!\\s)",P)),b&&(u=S.lastIndex),a=n(p,A?e:S,R),A?a?(a.input=m(a.input,C),a[0]=m(a[0],C),a.index=S.lastIndex,S.lastIndex+=a[0].length):S.lastIndex=0:b&&a&&(S.lastIndex=S.global?a.index+a[0].length:u),x&&a&&a.length>1&&n(v,a[0],e,function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(a[l]=void 0)}),a&&T)for(a.groups=s=f(null),l=0;l<T.length;l++)s[(O=T[l])[0]]=a[O[1]];return a}),gi=h}function ji(){if(mi)return ni;mi=1;var t=je(),r=Si();return t({target:"RegExp",proto:!0,forced:/./.exec!==r},{exec:r}),ni}ji();var Ei,qi,Ti,Ai,Pi,Ii,Ci,Ri=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return n.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,r){if(!this.isDisabled(t)){var i=this.getSelectedNode(t);if(null!=i){var o=n.getHoverbar(t);o&&o.hideAndClean();var u=i.style,a={style:Xe(Xe({},void 0===u?{}:u),{float:this.value})};e.setNodes(t,a,{match:function(t){return n.checkNodeType(t,"image")}})}}},t}(),Ni=function(t){function r(){var r=t.apply(this,Ve([],Ye(arguments),!1))||this;return r.title=i("float.left"),r.value="left",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M77.03514075 117.83964445m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.4275674l0 68.35162074q0 12.42756741-12.4275674 12.42756741l-845.0745837 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162074q0-12.42756741 12.4275674-12.4275674Z"></path><path d="M77.03514075 801.35585185m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.42756741l0 68.35162074q0 12.42756741-12.4275674 12.42756742l-845.0745837 0q-12.42756741 0-12.4275674-12.42756742l0-68.35162074q0-12.42756741 12.4275674-12.42756741Z"></path><path d="M89.46270815 304.25315556h347.9718874c6.83516208 0 12.42756741 5.59240533 12.42756742 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.42756742 12.4275674h-347.9718874a12.42756741 12.42756741 0 0 1-12.4275674-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.4275674-12.42756741z"></path><path d="M512 552.8045037m12.42756741 0l410.10972444 0q12.42756741 0 12.4275674 12.42756742l0 68.35162073q0 12.42756741-12.4275674 12.42756741l-410.10972444 0q-12.42756741 0-12.42756741-12.42756741l0-68.35162073q0-12.42756741 12.42756741-12.42756742Z"></path><path d="M512 366.39099259m12.42756741 0l410.10972444 0q12.42756741 0 12.4275674 12.42756741l0 68.35162075q0 12.42756741-12.4275674 12.4275674l-410.10972444 0q-12.42756741 0-12.42756741-12.4275674l0-68.35162075q0-12.42756741 12.42756741-12.42756741Z"></path></svg>',r}return Ke(r,t),r}(Ri),Mi=function(t){function r(){var r=t.apply(this,Ve([],Ye(arguments),!1))||this;return r.title=i("float.none"),r.value="none",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M76.73805432 117.83964445m12.42756741 0l845.0745837 0q12.42756741 0 12.42756741 12.4275674l0 68.35162074q0 12.42756741-12.42756741 12.42756741l-845.0745837 0q-12.42756741 0-12.42756741-12.42756741l0-68.35162074q0-12.42756741 12.42756741-12.4275674Z"></path><path d="M76.73805432 801.35585185m12.42756741 0l845.0745837 0q12.42756741 0 12.42756741 12.42756741l0 68.35162074q0 12.42756741-12.42756741 12.42756742l-845.0745837 0q-12.42756741 0-12.42756741-12.42756742l0-68.35162074q0-12.42756741 12.42756741-12.42756741Z"></path><path d="M89.16562173 304.25315556h410.10972444c6.83516208 0 12.42756741 5.59240533 12.42756741 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.42756741 12.4275674h-410.10972444a12.42756741 12.42756741 0 0 1-12.42756741-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.42756741-12.42756741z"></path></svg>',r}return Ke(r,t),r}(Ri),Fi=function(t){function r(){var r=t.apply(this,Ve([],Ye(arguments),!1))||this;return r.title=i("float.right"),r.value="right",r.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M77.03514075 117.83964445m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.4275674l0 68.35162074q0 12.42756741-12.4275674 12.42756741l-845.0745837 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162074q0-12.42756741 12.4275674-12.4275674Z"></path><path d="M77.03514075 801.35585185m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.42756741l0 68.35162074q0 12.42756741-12.4275674 12.42756742l-845.0745837 0q-12.42756741 0-12.4275674-12.42756742l0-68.35162074q0-12.42756741 12.4275674-12.42756741Z"></path><path d="M586.56540445 304.25315556h347.9718874c6.83516208 0 12.42756741 5.59240533 12.4275674 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.4275674 12.4275674h-347.9718874a12.42756741 12.42756741 0 0 1-12.42756742-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.42756742-12.42756741z"></path><path d="M77.03514075 552.8045037m12.4275674 0l410.10972444 0q12.42756741 0 12.42756741 12.42756742l0 68.35162073q0 12.42756741-12.42756741 12.42756741l-410.10972444 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162073q0-12.42756741 12.4275674-12.42756742Z"></path><path d="M77.03514075 366.39099259m12.4275674 0l410.10972444 0q12.42756741 0 12.42756741 12.42756741l0 68.35162075q0 12.42756741-12.42756741 12.4275674l-410.10972444 0q-12.42756741 0-12.4275674-12.4275674l0-68.35162075q0-12.42756741 12.4275674-12.42756741Z"></path></svg>',r}return Ke(r,t),r}(Ri),_i={key:"imageFloatNone",factory:function(){return new Mi}},ki={key:"imageFloatLeft",factory:function(){return new Ni}},Di={key:"imageFloatRight",factory:function(){return new Fi}},zi={};function Li(){if(Ai)return Ti;Ai=1;var t=function(){if(qi)return Ei;qi=1;var t=Bt(),r=Lt();return Ei=function(n){if("Function"===t(n))return r(n)}}(),r=tr(),n=X(),e=t(t.bind);return Ti=function(t,i){return r(t),void 0===i?t:n?e(t,i):function(){return t.apply(i,arguments)}},Ti}function Bi(){if(Ii)return Pi;Ii=1;var t=Li(),r=Lt(),n=Zt(),e=Cr(),i=$n(),o=Re(),u=r([].push),a=function(r){var a=1===r,f=2===r,c=3===r,l=4===r,s=6===r,v=7===r,p=5===r||s;return function(h,d,g,y){for(var m,b,w=e(h),x=n(w),O=i(x),S=t(d,g),j=0,E=y||o,q=a?E(h,O):f||v?E(h,0):void 0;O>j;j++)if((p||j in x)&&(b=S(m=x[j],j,w),r))if(a)q[j]=b;else if(b)switch(r){case 3:return!0;case 5:return m;case 6:return j;case 2:u(q,m)}else switch(r){case 4:return!1;case 7:u(q,m)}return s?-1:c||l?l:q}};return Pi={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}!function(){if(Ci)return zi;Ci=1;var t=je(),r=Bi().filter;t({target:"Array",proto:!0,forced:!Ne()("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})}();var Zi,$i,Wi,Ui={};function Hi(){if($i)return Zi;$i=1;var t=Mr(),r=Oi(),n=Yr().f,e=t("unscopables"),i=Array.prototype;return void 0===i[e]&&n(i,e,{configurable:!0,value:r(null)}),Zi=function(t){i[e][t]=!0}}!function(){if(Wi)return Ui;Wi=1;var t=je(),r=Wn().includes,n=G(),e=Hi();t({target:"Array",proto:!0,forced:n(function(){return!Array(1).includes()})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),e("includes")}();var Gi,Ki,Xi,Yi={};!function(){if(Xi)return Yi;Xi=1;var t=Ae(),r=xn(),n=function(){if(Ki)return Gi;Ki=1;var t=Ae(),r=Pe();return Gi=t?{}.toString:function(){return"[object "+r(this)+"]"}}();t||r(Object.prototype,"toString",n,{unsafe:!0})}();var Vi,Ji,Qi,to,ro,no,eo,io={};function oo(){if(to)return Qi;to=1;var t=function(){if(Ji)return Vi;Ji=1;var t=Gt(),r=Bt(),n=Mr()("match");return Vi=function(e){var i;return t(e)&&(void 0!==(i=e[n])?!!i:"RegExp"===r(e))}}(),r=TypeError;return Qi=function(n){if(t(n))throw new r("The method doesn't accept regular expressions");return n}}!function(){if(eo)return io;eo=1;var t=je(),r=Lt(),n=oo(),e=Wt(),i=We(),o=function(){if(no)return ro;no=1;var t=Mr()("match");return ro=function(r){var n=/./;try{"/./"[r](n)}catch(e){try{return n[t]=!1,"/./"[r](n)}catch(t){}}return!1}}(),u=r("".indexOf);t({target:"String",proto:!0,forced:!o("includes")},{includes:function(t){return!!~u(i(e(this)),i(n(t)),arguments.length>1?arguments[1]:void 0)}})}();var uo,ao,fo,co,lo,so,vo,po,ho,go,yo,mo,bo,wo={};function xo(){if(co)return fo;co=1;var t=Ie(),r=Qt(),n=TypeError;return fo=function(e){if(t(e))return e;throw new n(r(e)+" is not a constructor")}}function Oo(){if(so)return lo;so=1;var t=Xr(),r=xo(),n=$t(),e=Mr()("species");return lo=function(i,o){var u,a=t(i).constructor;return void 0===a||n(u=t(a)[e])?o:r(u)}}function So(){if(go)return ho;go=1;var t=function(){if(po)return vo;po=1;var t=Lt(),r=Ln(),n=We(),e=Wt(),i=t("".charAt),o=t("".charCodeAt),u=t("".slice),a=function(t){return function(a,f){var c,l,s=n(e(a)),v=r(f),p=s.length;return v<0||v>=p?t?"":void 0:(c=o(s,v))<55296||c>56319||v+1===p||(l=o(s,v+1))<56320||l>57343?t?i(s,v):c:t?u(s,v,v+2):l-56320+(c-55296<<10)+65536}};return vo={codeAt:a(!1),charAt:a(!0)}}().charAt;return ho=function(r,n,e){return n+(e?t(r,n).length:1)}}!function(){if(bo)return wo;bo=1;var t=Y(),r=Lt(),n=function(){if(ao)return uo;ao=1,ji();var t=Y(),r=xn(),n=Si(),e=G(),i=Mr(),o=Vr(),u=i("species"),a=RegExp.prototype;return uo=function(f,c,l,s){var v=i(f),p=!e(function(){var t={};return t[v]=function(){return 7},7!==""[f](t)}),h=p&&!e(function(){var t=!1,r=/a/;if("split"===f){var n={};n[u]=function(){return r},(r={constructor:n,flags:""})[v]=/./[v]}return r.exec=function(){return t=!0,null},r[v](""),!t});if(!p||!h||l){var d=/./[v],g=c(v,""[f],function(r,e,i,o,u){var f=e.exec;return f===n||f===a.exec?p&&!u?{done:!0,value:t(d,e,i,o)}:{done:!0,value:t(r,i,e,o)}:{done:!1}});r(String.prototype,f,g[0]),r(a,v,g[1])}s&&o(a[v],"sham",!0)}}(),e=Xr(),i=Gt(),o=Wt(),u=Oo(),a=So(),f=Zn(),c=We(),l=rr(),s=function(){if(mo)return yo;mo=1;var t=Y(),r=Xr(),n=Ht(),e=Bt(),i=Si(),o=TypeError;return yo=function(u,a){var f=u.exec;if(n(f)){var c=t(f,u,a);return null!==c&&r(c),c}if("RegExp"===e(u))return t(i,u,a);throw new o("RegExp#exec called on incompatible receiver")}}(),v=ii(),p=G(),h=v.UNSUPPORTED_Y,d=Math.min,g=r([].push),y=r("".slice),m=!p(function(){var t=/(?:)/,r=t.exec;t.exec=function(){return r.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]}),b="c"==="abbc".split(/(b)*/)[1]||4!=="test".split(/(?:)/,-1).length||2!=="ab".split(/(?:ab)*/).length||4!==".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length;n("split",function(r,n,v){var p="0".split(void 0,0).length?function(r,e){return void 0===r&&0===e?[]:t(n,this,r,e)}:n;return[function(n,e){var u=o(this),a=i(n)?l(n,r):void 0;return a?t(a,n,u,e):t(p,c(u),n,e)},function(t,r){var i=e(this),o=c(t);if(!b){var l=v(p,i,o,r,p!==n);if(l.done)return l.value}var m=u(i,RegExp),w=i.unicode,x=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(h?"g":"y"),O=new m(h?"^(?:"+i.source+")":i,x),S=void 0===r?4294967295:r>>>0;if(0===S)return[];if(0===o.length)return null===s(O,o)?[o]:[];for(var j=0,E=0,q=[];E<o.length;){O.lastIndex=h?0:E;var T,A=s(O,h?y(o,E):o);if(null===A||(T=d(f(O.lastIndex+(h?E:0)),o.length))===j)E=a(o,E,w);else{if(g(q,y(o,j,E)),q.length===S)return q;for(var P=1;P<=A.length-1;P++)if(g(q,A[P]),q.length===S)return q;E=j=T}}return g(q,y(o,j)),q}]},b||!m,h)}();var jo,Eo={};!function(){if(jo)return Eo;jo=1;var t=je(),r=Bi().find,n=Hi(),e="find",i=!0;e in[]&&Array(1)[e](function(){i=!1}),t({target:"Array",proto:!0,forced:i},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n(e)}();var qo,To,Ao={};function Po(t,r){for(var n="",e=(t.attr("style")||"").split(";"),i=e.length,o=0;o<i;o+=1){var u=e[o];if(u){var a=u.split(":");a[0].trim()===r&&(n=a[1].trim())}}return n}To||(To=1,function(){if(qo)return Ao;qo=1;var t=je(),r=k();t({global:!0,forced:r.globalThis!==r},{globalThis:r})}()),u&&(o.fn.css=u),a&&(o.fn.append=a),f&&(o.fn.prepend=f),c&&(o.fn.addClass=c),l&&(o.fn.removeClass=l),s&&(o.fn.hasClass=s),v&&(o.fn.on=v),p&&(o.fn.off=p),h&&(o.fn.focus=h),d&&(o.fn.attr=d),g&&(o.fn.removeAttr=g),y&&(o.fn.hide=y),m&&(o.fn.show=m),b&&(o.fn.parents=b),w&&(o.fn.dataset=w),x&&(o.fn.val=x),O&&(o.fn.text=O),S&&(o.fn.html=S),j&&(o.fn.children=j),E&&(o.fn.remove=E),q&&(o.fn.find=q),T&&(o.fn.width=T),A&&(o.fn.height=A),P&&(o.fn.filter=P),I&&(o.fn.empty=I);var Io,Co,Ro,No,Mo,Fo,_o,ko={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,r,n){var e=o(t),i=e.attr("data-href")||"",u=e.attr("width")||"",a=e.attr("height")||"",f=Po(e,"width")||e.attr("data-w-e-style-width")||u,c=Po(e,"height")||e.attr("data-w-e-style-height")||a,l=function(t){var r=Po(t,"float");if(r)return r;var n=(t.attr("data-w-e-style-float")||"").trim();if(n)return n;var e=(t.attr("class")||"").trim().split(/\s+/).filter(Boolean);return e.includes("w-e-float-image-left")?"left":e.includes("w-e-float-image-right")?"right":e.includes("w-e-float-image-none")?"none":""}(e);return i=decodeURIComponent(i),{type:"image",src:e.attr("src")||"",alt:e.attr("alt")||"",href:i,style:{width:f,height:c,float:l},width:u,height:a,children:[{text:""}]}}},Do={};function zo(){if(Co)return Io;Co=1;var t=Lt();return Io=t(1.1.valueOf)}!function(){if(Mo)return Do;Mo=1;var t=je(),r=Lt(),n=Ln(),e=zo(),i=function(){if(No)return Ro;No=1;var t=Ln(),r=We(),n=Wt(),e=RangeError;return Ro=function(i){var o=r(n(this)),u="",a=t(i);if(a<0||a===1/0)throw new e("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(o+=o))1&a&&(u+=o);return u}}(),o=G(),u=RangeError,a=String,f=Math.floor,c=r(i),l=r("".slice),s=r(1.1.toFixed),v=function(t,r,n){return 0===r?n:r%2==1?v(t,r-1,n*t):v(t*t,r/2,n)},p=function(t,r,n){for(var e=-1,i=n;++e<6;)i+=r*t[e],t[e]=i%1e7,i=f(i/1e7)},h=function(t,r){for(var n=6,e=0;--n>=0;)e+=t[n],t[n]=f(e/r),e=e%r*1e7},d=function(t){for(var r=6,n="";--r>=0;)if(""!==n||0===r||0!==t[r]){var e=a(t[r]);n=""===n?e:n+c("0",7-e.length)+e}return n};t({target:"Number",proto:!0,forced:o(function(){return"0.000"!==s(8e-5,3)||"1"!==s(.9,0)||"1.25"!==s(1.255,2)||"1000000000000000128"!==s(0xde0b6b3a7640080,0)})||!o(function(){s({})})},{toFixed:function(t){var r,i,o,f,s=e(this),g=n(t),y=[0,0,0,0,0,0],m="",b="0";if(g<0||g>20)throw new u("Incorrect fraction digits");if(s!=s)return"NaN";if(s<=-1e21||s>=1e21)return a(s);if(s<0&&(m="-",s=-s),s>1e-21)if(i=(r=function(t){for(var r=0,n=t;n>=4096;)r+=12,n/=4096;for(;n>=2;)r+=1,n/=2;return r}(s*v(2,69,1))-69)<0?s*v(2,-r,1):s/v(2,r,1),i*=4503599627370496,(r=52-r)>0){for(p(y,0,i),o=g;o>=7;)p(y,1e7,0),o-=7;for(p(y,v(10,o,1),0),o=r-1;o>=23;)h(y,1<<23),o-=23;h(y,1<<o),p(y,1,1),h(y,2),b=d(y)}else p(y,0,i),p(y,1<<-r,0),b=d(y)+c("0",g);return b=g>0?m+((f=b.length)<=g?"0."+c("0",g-f)+b:l(b,0,f-g)+"."+l(b,f-g)):m+b}})}();var Lo=function(){if(_o)return Fo;_o=1;var t="Expected a function",r=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,e=/^0b[01]+$/i,i=/^0o[0-7]+$/i,o=parseInt,u="object"==typeof R&&R&&R.Object===Object&&R,a="object"==typeof self&&self&&self.Object===Object&&self,f=u||a||Function("return this")(),c=Object.prototype.toString,l=Math.max,s=Math.min,v=function(){return f.Date.now()};function p(r,n,e){var i,o,u,a,f,c,p=0,g=!1,y=!1,m=!0;if("function"!=typeof r)throw new TypeError(t);function b(t){var n=i,e=o;return i=o=void 0,p=t,a=r.apply(e,n)}function w(t){var r=t-c;return void 0===c||r>=n||r<0||y&&t-p>=u}function x(){var t=v();if(w(t))return O(t);f=setTimeout(x,function(t){var r=n-(t-c);return y?s(r,u-(t-p)):r}(t))}function O(t){return f=void 0,m&&i?b(t):(i=o=void 0,a)}function S(){var t=v(),r=w(t);if(i=arguments,o=this,c=t,r){if(void 0===f)return function(t){return p=t,f=setTimeout(x,n),g?b(t):a}(c);if(y)return f=setTimeout(x,n),b(c)}return void 0===f&&(f=setTimeout(x,n)),a}return n=d(n)||0,h(e)&&(g=!!e.leading,u=(y="maxWait"in e)?l(d(e.maxWait)||0,n):u,m="trailing"in e?!!e.trailing:m),S.cancel=function(){void 0!==f&&clearTimeout(f),p=0,i=c=o=f=void 0},S.flush=function(){return void 0===f?a:O(v())},S}function h(t){var r=typeof t;return!!t&&("object"==r||"function"==r)}function d(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==c.call(t)}(t))return NaN;if(h(t)){var u="function"==typeof t.valueOf?t.valueOf():t;t=h(u)?u+"":u}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var a=e.test(t);return a||i.test(t)?o(t.slice(2),a?2:8):n.test(t)?NaN:+t}return Fo=function(r,n,e){var i=!0,o=!0;if("function"!=typeof r)throw new TypeError(t);return h(e)&&(i="leading"in e?!!e.leading:i,o="trailing"in e?!!e.trailing:o),p(r,n,{leading:i,maxWait:n,trailing:o})}}(),Bo=N(Lo);function Zo(t,r){var e=n.findKey(t,r).id;return"w-e-image-container-".concat(e)}function $o(t,r,i,u){var a=o("body"),f=Zo(t,r),c=u.width,l=u.height,s=u.float,v=0,p=0,h=0,d=!1,g=null;var y=Bo(function(t){t.preventDefault();var r=t.clientX,n=p+(d?v-r:r-v),e=h*(n/p);null!=g&&(n<=15||e<=15||(g.css("width","".concat(n,"px")),g.css("height","".concat(e,"px"))))},100);function m(i){if(a.off("mousemove",y),null!=g){var o=g.width().toFixed(2),u=g.height().toFixed(2),f={style:Xe(Xe({},r.style),{width:"".concat(o,"px"),height:"".concat(u,"px")})};e.setNodes(t,f,{at:n.findPath(t,r)}),a.off("mouseup",m)}}function b(r){g=function(){var t=o("#".concat(f));if(0===t.length)throw new Error("Cannot find image container elem");return t}(),v=r;var e=g.find("img");if(0===e.length)throw new Error("Cannot find image elem");p=e.width(),h=e.height(),a.on("mousemove",y),a.on("mouseup",m);var i=n.getHoverbar(t);i&&i.hideAndClean()}var w={};return c&&(w.width=c),l&&(w.height=l),s&&(w.float=s),C("div",{id:f,style:w,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var r=o(t.target);r.hasClass("w-e-image-dragger")&&(t.preventDefault(),(r.hasClass("left-top")||r.hasClass("left-bottom"))&&(d=!0),b(t.clientX))}}},i,C("div",{className:"w-e-image-dragger left-top"}),C("div",{className:"w-e-image-dragger right-top"}),C("div",{className:"w-e-image-dragger left-bottom"}),C("div",{className:"w-e-image-dragger right-bottom"}))}var Wo={type:"image",renderElem:function(t,r,e){var i=t,o=i.src,u=i.alt,a=void 0===u?"":u,f=i.href,c=void 0===f?"":f,l=i.style,s=void 0===l?{}:l,v=s.width,p=void 0===v?"":v,h=s.height,d=void 0===h?"":h,g=s.float,y=n.isNodeSelected(e,t),m={};p&&(m.width="100%"),d&&(m.height="100%"),g&&(m.float=g);var b=C("img",{style:m,src:o,alt:a,"data-href":c}),w=e.isDisabled();return y&&!w?$o(e,t,b,{width:p,height:d,float:g}):function(t,r,n,e){var i=e.width,o=e.height,u=e.float,a={};i&&(a.width=i),o&&(a.height=o),u&&(a.float=u);var f=Zo(t,r);return C("div",{id:f,style:a,className:"w-e-image-container"},n)}(e,t,b,{width:p,height:d,float:g})}},Uo={renderElems:[Wo],elemsToHtml:[He],parseElemsHtml:[ko],menus:[ki,Di,_i]};export{Uo as default};
|
|
1
|
+
import{i18nAddResources as t,getTextStyleMode as e,DomEditor as n,SlateTransforms as r,t as a}from"@wangeditor-next/editor";import o,{css as i,append as l,prepend as f,addClass as c,removeClass as u,hasClass as h,on as s,off as d,focus as p,attr as v,removeAttr as g,hide as m,show as y,parents as w,dataset as q,val as b,text as x,html as N,children as O,remove as j,find as M,width as S,height as C,filter as T,empty as E}from"dom7";import{jsx as Z}from"snabbdom";t("en",{float:{none:"Default",left:"Float Left",right:"Float Right"}}),t("zh-CN",{float:{none:"默认",left:"左浮动",right:"右浮动"}});var _={type:"image",elemToHtml:function(t,n,r){var a=t,o=a.src,i=a.alt,l=void 0===i?"":i,f=a.href,c=void 0===f?"":f,u=a.style,h=void 0===u?{}:u,s=h.width,d=void 0===s?"":s,p=h.height,v=void 0===p?"":p,g=h.float,m=void 0===g?"":g;if("class"===e(r)){var y=d?' data-w-e-style-width="'.concat(d,'"'):"",w=v?' data-w-e-style-height="'.concat(v,'"'):"",q=m?' data-w-e-style-float="'.concat(m,'"'):"",b=function(t){var e=(t||"").trim().toLowerCase();return"left"===e?"w-e-float-image-left":"right"===e?"w-e-float-image-right":"none"===e?"w-e-float-image-none":""}(m),x=b?' class="'.concat(b,'"'):"";return'<img src="'.concat(o,'" alt="').concat(l,'" data-href="').concat(c,'" width="').concat(d,'" height="').concat(v,'"').concat(x).concat(y).concat(w).concat(q,"/>")}var N="";return d&&(N+="width: ".concat(d,";")),v&&(N+="height: ".concat(v,";")),m&&(N+="float: ".concat(m,";")),'<img src="'.concat(o,'" alt="').concat(l,'" data-href="').concat(c,'" style="').concat(N,'"/>')}},F=function(t,e){return F=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},F(t,e)};function A(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}F(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var D=function(){return D=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},D.apply(this,arguments)};function H(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,a,o=n.call(t),i=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)i.push(r.value)}catch(t){a={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(a)throw a.error}}return i}function B(t,e,n){if(n||2===arguments.length)for(var r,a=0,o=e.length;a<o;a++)!r&&a in e||(r||(r=Array.prototype.slice.call(e,0,a)),r[a]=e[a]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError;var P=function(){function t(){this.tag="button"}return t.prototype.getValue=function(t){return""},t.prototype.isActive=function(t){return!1},t.prototype.getSelectedNode=function(t){return n.getSelectedNodeByType(t,"image")},t.prototype.isDisabled=function(t){return null==t.selection||null==this.getSelectedNode(t)},t.prototype.exec=function(t,e){if(!this.isDisabled(t)){var a=this.getSelectedNode(t);if(null!=a){var o=n.getHoverbar(t);o&&o.hideAndClean();var i=a.style,l={style:D(D({},void 0===i?{}:i),{float:this.value})};r.setNodes(t,l,{match:function(t){return n.checkNodeType(t,"image")}})}}},t}(),k=function(t){function e(){var e=t.apply(this,B([],H(arguments),!1))||this;return e.title=a("float.left"),e.value="left",e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M77.03514075 117.83964445m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.4275674l0 68.35162074q0 12.42756741-12.4275674 12.42756741l-845.0745837 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162074q0-12.42756741 12.4275674-12.4275674Z"></path><path d="M77.03514075 801.35585185m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.42756741l0 68.35162074q0 12.42756741-12.4275674 12.42756742l-845.0745837 0q-12.42756741 0-12.4275674-12.42756742l0-68.35162074q0-12.42756741 12.4275674-12.42756741Z"></path><path d="M89.46270815 304.25315556h347.9718874c6.83516208 0 12.42756741 5.59240533 12.42756742 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.42756742 12.4275674h-347.9718874a12.42756741 12.42756741 0 0 1-12.4275674-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.4275674-12.42756741z"></path><path d="M512 552.8045037m12.42756741 0l410.10972444 0q12.42756741 0 12.4275674 12.42756742l0 68.35162073q0 12.42756741-12.4275674 12.42756741l-410.10972444 0q-12.42756741 0-12.42756741-12.42756741l0-68.35162073q0-12.42756741 12.42756741-12.42756742Z"></path><path d="M512 366.39099259m12.42756741 0l410.10972444 0q12.42756741 0 12.4275674 12.42756741l0 68.35162075q0 12.42756741-12.4275674 12.4275674l-410.10972444 0q-12.42756741 0-12.42756741-12.4275674l0-68.35162075q0-12.42756741 12.42756741-12.42756741Z"></path></svg>',e}return A(e,t),e}(P),z=function(t){function e(){var e=t.apply(this,B([],H(arguments),!1))||this;return e.title=a("float.none"),e.value="none",e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M76.73805432 117.83964445m12.42756741 0l845.0745837 0q12.42756741 0 12.42756741 12.4275674l0 68.35162074q0 12.42756741-12.42756741 12.42756741l-845.0745837 0q-12.42756741 0-12.42756741-12.42756741l0-68.35162074q0-12.42756741 12.42756741-12.4275674Z"></path><path d="M76.73805432 801.35585185m12.42756741 0l845.0745837 0q12.42756741 0 12.42756741 12.42756741l0 68.35162074q0 12.42756741-12.42756741 12.42756742l-845.0745837 0q-12.42756741 0-12.42756741-12.42756742l0-68.35162074q0-12.42756741 12.42756741-12.42756741Z"></path><path d="M89.16562173 304.25315556h410.10972444c6.83516208 0 12.42756741 5.59240533 12.42756741 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.42756741 12.4275674h-410.10972444a12.42756741 12.42756741 0 0 1-12.42756741-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.42756741-12.42756741z"></path></svg>',e}return A(e,t),e}(P),$=function(t){function e(){var e=t.apply(this,B([],H(arguments),!1))||this;return e.title=a("float.right"),e.value="right",e.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M77.03514075 117.83964445m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.4275674l0 68.35162074q0 12.42756741-12.4275674 12.42756741l-845.0745837 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162074q0-12.42756741 12.4275674-12.4275674Z"></path><path d="M77.03514075 801.35585185m12.4275674 0l845.0745837 0q12.42756741 0 12.4275674 12.42756741l0 68.35162074q0 12.42756741-12.4275674 12.42756742l-845.0745837 0q-12.42756741 0-12.4275674-12.42756742l0-68.35162074q0-12.42756741 12.4275674-12.42756741Z"></path><path d="M586.56540445 304.25315556h347.9718874c6.83516208 0 12.42756741 5.59240533 12.4275674 12.42756741v410.10972445a12.42756741 12.42756741 0 0 1-12.4275674 12.4275674h-347.9718874a12.42756741 12.42756741 0 0 1-12.42756742-12.4275674v-410.10972445c0-6.83516208 5.59240533-12.42756741 12.42756742-12.42756741z"></path><path d="M77.03514075 552.8045037m12.4275674 0l410.10972444 0q12.42756741 0 12.42756741 12.42756742l0 68.35162073q0 12.42756741-12.42756741 12.42756741l-410.10972444 0q-12.42756741 0-12.4275674-12.42756741l0-68.35162073q0-12.42756741 12.4275674-12.42756742Z"></path><path d="M77.03514075 366.39099259m12.4275674 0l410.10972444 0q12.42756741 0 12.42756741 12.42756741l0 68.35162075q0 12.42756741-12.42756741 12.4275674l-410.10972444 0q-12.42756741 0-12.4275674-12.4275674l0-68.35162075q0-12.42756741 12.4275674-12.42756741Z"></path></svg>',e}return A(e,t),e}(P),L={key:"imageFloatNone",factory:function(){return new z}},R={key:"imageFloatLeft",factory:function(){return new k}},W={key:"imageFloatRight",factory:function(){return new $}};function I(t,e){for(var n="",r=(t.attr("style")||"").split(";"),a=r.length,o=0;o<a;o+=1){var i=r[o];if(i){var l=i.split(":");l[0].trim()===e&&(n=l[1].trim())}}return n}i&&(o.fn.css=i),l&&(o.fn.append=l),f&&(o.fn.prepend=f),c&&(o.fn.addClass=c),u&&(o.fn.removeClass=u),h&&(o.fn.hasClass=h),s&&(o.fn.on=s),d&&(o.fn.off=d),p&&(o.fn.focus=p),v&&(o.fn.attr=v),g&&(o.fn.removeAttr=g),m&&(o.fn.hide=m),y&&(o.fn.show=y),w&&(o.fn.parents=w),q&&(o.fn.dataset=q),b&&(o.fn.val=b),x&&(o.fn.text=x),N&&(o.fn.html=N),O&&(o.fn.children=O),j&&(o.fn.remove=j),M&&(o.fn.find=M),S&&(o.fn.width=S),C&&(o.fn.height=C),T&&(o.fn.filter=T),E&&(o.fn.empty=E);var X,K,U={selector:"img:not([data-w-e-type])",parseElemHtml:function(t,e,n){var r=o(t),a=r.attr("data-href")||"",i=r.attr("width")||"",l=r.attr("height")||"",f=I(r,"width")||r.attr("data-w-e-style-width")||i,c=I(r,"height")||r.attr("data-w-e-style-height")||l,u=function(t){var e=I(t,"float");if(e)return e;var n=(t.attr("data-w-e-style-float")||"").trim();if(n)return n;var r=(t.attr("class")||"").trim().split(/\s+/).filter(Boolean);return r.includes("w-e-float-image-left")?"left":r.includes("w-e-float-image-right")?"right":r.includes("w-e-float-image-none")?"none":""}(r);return a=decodeURIComponent(a),{type:"image",src:r.attr("src")||"",alt:r.attr("alt")||"",href:a,style:{width:f,height:c,float:u},width:i,height:l,children:[{text:""}]}}},V="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function G(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var J=G(function(){if(K)return X;K=1;var t="Expected a function",e=/^\s+|\s+$/g,n=/^[-+]0x[0-9a-f]+$/i,r=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,i="object"==typeof V&&V&&V.Object===Object&&V,l="object"==typeof self&&self&&self.Object===Object&&self,f=i||l||Function("return this")(),c=Object.prototype.toString,u=Math.max,h=Math.min,s=function(){return f.Date.now()};function d(e,n,r){var a,o,i,l,f,c,d=0,g=!1,m=!1,y=!0;if("function"!=typeof e)throw new TypeError(t);function w(t){var n=a,r=o;return a=o=void 0,d=t,l=e.apply(r,n)}function q(t){var e=t-c;return void 0===c||e>=n||e<0||m&&t-d>=i}function b(){var t=s();if(q(t))return x(t);f=setTimeout(b,function(t){var e=n-(t-c);return m?h(e,i-(t-d)):e}(t))}function x(t){return f=void 0,y&&a?w(t):(a=o=void 0,l)}function N(){var t=s(),e=q(t);if(a=arguments,o=this,c=t,e){if(void 0===f)return function(t){return d=t,f=setTimeout(b,n),g?w(t):l}(c);if(m)return f=setTimeout(b,n),w(c)}return void 0===f&&(f=setTimeout(b,n)),l}return n=v(n)||0,p(r)&&(g=!!r.leading,i=(m="maxWait"in r)?u(v(r.maxWait)||0,n):i,y="trailing"in r?!!r.trailing:y),N.cancel=function(){void 0!==f&&clearTimeout(f),d=0,a=c=o=f=void 0},N.flush=function(){return void 0===f?l:x(s())},N}function p(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function v(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==c.call(t)}(t))return NaN;if(p(t)){var i="function"==typeof t.valueOf?t.valueOf():t;t=p(i)?i+"":i}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(e,"");var l=r.test(t);return l||a.test(t)?o(t.slice(2),l?2:8):n.test(t)?NaN:+t}return X=function(e,n,r){var a=!0,o=!0;if("function"!=typeof e)throw new TypeError(t);return p(r)&&(a="leading"in r?!!r.leading:a,o="trailing"in r?!!r.trailing:o),d(e,n,{leading:a,maxWait:n,trailing:o})}}());function Q(t,e){var r=n.findKey(t,e).id;return"w-e-image-container-".concat(r)}function Y(t,e,a,i){var l=o("body"),f=Q(t,e),c=i.width,u=i.height,h=i.float,s=0,d=0,p=0,v=!1,g=null;var m=J(function(t){t.preventDefault();var e=t.clientX,n=d+(v?s-e:e-s),r=p*(n/d);null!=g&&(n<=15||r<=15||(g.css("width","".concat(n,"px")),g.css("height","".concat(r,"px"))))},100);function y(a){if(l.off("mousemove",m),null!=g){var o=g.width().toFixed(2),i=g.height().toFixed(2),f={style:D(D({},e.style),{width:"".concat(o,"px"),height:"".concat(i,"px")})};r.setNodes(t,f,{at:n.findPath(t,e)}),l.off("mouseup",y)}}function w(e){g=function(){var t=o("#".concat(f));if(0===t.length)throw new Error("Cannot find image container elem");return t}(),s=e;var r=g.find("img");if(0===r.length)throw new Error("Cannot find image elem");d=r.width(),p=r.height(),l.on("mousemove",m),l.on("mouseup",y);var a=n.getHoverbar(t);a&&a.hideAndClean()}var q={};return c&&(q.width=c),u&&(q.height=u),h&&(q.float=h),Z("div",{id:f,style:q,className:"w-e-image-container w-e-selected-image-container",on:{mousedown:function(t){var e=o(t.target);e.hasClass("w-e-image-dragger")&&(t.preventDefault(),(e.hasClass("left-top")||e.hasClass("left-bottom"))&&(v=!0),w(t.clientX))}}},a,Z("div",{className:"w-e-image-dragger left-top"}),Z("div",{className:"w-e-image-dragger right-top"}),Z("div",{className:"w-e-image-dragger left-bottom"}),Z("div",{className:"w-e-image-dragger right-bottom"}))}var tt={type:"image",renderElem:function(t,e,r){var a=t,o=a.src,i=a.alt,l=void 0===i?"":i,f=a.href,c=void 0===f?"":f,u=a.style,h=void 0===u?{}:u,s=h.width,d=void 0===s?"":s,p=h.height,v=void 0===p?"":p,g=h.float,m=n.isNodeSelected(r,t),y={};d&&(y.width="100%"),v&&(y.height="100%"),g&&(y.float=g);var w=Z("img",{style:y,src:o,alt:l,"data-href":c}),q=r.isDisabled();return m&&!q?Y(r,t,w,{width:d,height:v,float:g}):function(t,e,n,r){var a=r.width,o=r.height,i=r.float,l={};a&&(l.width=a),o&&(l.height=o),i&&(l.float=i);var f=Q(t,e);return Z("div",{id:f,style:l,className:"w-e-image-container"},n)}(r,t,w,{width:d,height:v,float:g})}},et={renderElems:[tt],elemsToHtml:[_],parseElemsHtml:[U],menus:[R,W,L]};export{et as default};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|