UNPKG

@form-create/designer

Version:

好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。

36 lines (34 loc) 296 kB
/*! * FormCreate 可视化表单设计器 * @form-create/designer v1.3.0 * (c) 2021-2025 xaboy * Github https://github.com/xaboy/form-create-designer * Site https://form-create.com/ * Released under the MIT License. */ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('._fc-title{width:100%;font-size:16px;font-weight:600;margin-top:1em;margin-bottom:16px}._fc-title.h1,._fc-title.h2{padding-bottom:.3em;border-bottom:1px solid #eee}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fc-signature{width:100%}._fc-signature-btn,._fc-signature-preview{width:100%;min-width:160px;height:88px;line-height:88px;font-size:14px;color:#c9ccd8;border-radius:4px;border:1px dashed rgb(212,215,224);text-align:center;background:#fff;position:relative;box-sizing:border-box}._fc-signature-btn{cursor:pointer}._fc-signature.disabled ._fc-signature-btn{cursor:not-allowed}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{position:absolute;top:9px;right:9px;display:inline-block;line-height:14px;font-size:14px;cursor:pointer}._fc-signature-btn i{font-size:14px}._fc-signature-dialog .el-dialog__body{text-align:center}._fc-signature-pad{border-radius:4px;border:1px dashed #D4D7E0;background-image:linear-gradient(#FFFFFF 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px}._fc-table-form{overflow:auto;color:#666}._fc-table-form .form-create .el-form-item{margin-bottom:1px}._fc-table-form .form-create .el-form-item.is-error{margin-bottom:22px}._fc-table-form .el-form-item__label,._fc-table-form .van-field__label{display:none!important}._fc-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-tf-head-idx,._fc-tf-idx{width:40px;min-width:40px;font-weight:500;text-align:center}._fc-tf-edit,._fc-tf-btn{width:70px;min-width:70px;text-align:center}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-tf-table{width:100%;height:100%;overflow:hidden;table-layout:fixed;border:1px solid #EBEEF5;border-bottom:0 none}._fc-table-form ._fc-tf-table>thead>tr>th{border:0 none;border-bottom:1px solid #EBEEF5;height:40px;font-weight:500;padding:0 5px;box-sizing:border-box}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #EBEEF5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{padding:5px;min-height:50px;min-width:80px;position:relative;box-sizing:border-box;overflow-wrap:break-word;overflow:hidden;border:0 none;border-bottom:1px solid #EBEEF5}._fc-table-form td+td{border-left:1px solid #EBEEF5}._fc-tf-table .el-input-number,._fc-tf-table .el-select,._fc-tf-table .el-slider,._fc-tf-table .el-cascader,._fc-tf-table .el-date-editor{width:100%}._fc-tf-head-required:before{content:"*";color:#f56c6c;margin-right:4px}._fc-table{overflow:auto}._fc-table>table{width:100%;height:100%;overflow:hidden;table-layout:fixed;border:1px solid #EBEEF5;border-bottom:0 none;border-right:0 none;border-collapse:collapse}._fc-table tr{min-height:50px}._fc-table td{padding:5px;min-height:50px;min-width:80px;position:relative;box-sizing:border-box;overflow-wrap:break-word;overflow:hidden;border:0 none;border-right:1px solid #EBEEF5;border-bottom:1px solid #EBEEF5;text-align:center;vertical-align:middle}._fc-table.is-mini td{padding:0;min-height:12px}._fc-table.is-mini .el-form-item{padding:0;margin:0}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); (function(ie,te){typeof exports=="object"&&typeof module!="undefined"?module.exports=te(require("@form-create/element-ui"),require("vue")):typeof define=="function"&&define.amd?define(["@form-create/element-ui","vue"],te):(ie=typeof globalThis!="undefined"?globalThis:ie||self,ie.FcDesignerComponents=te(ie.formCreate,ie.Vue))})(this,function(ie,te){"use strict";var yt=Object.defineProperty,_t=Object.defineProperties;var wt=Object.getOwnPropertyDescriptors;var $e=Object.getOwnPropertySymbols;var xt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable;var Ve=(ie,te,ae)=>te in ie?yt(ie,te,{enumerable:!0,configurable:!0,writable:!0,value:ae}):ie[te]=ae,Le=(ie,te)=>{for(var ae in te||(te={}))xt.call(te,ae)&&Ve(ie,ae,te[ae]);if($e)for(var ae of $e(te))bt.call(te,ae)&&Ve(ie,ae,te[ae]);return ie},Ge=(ie,te)=>_t(ie,wt(te));var We=(ie,te,ae)=>new Promise((Ne,Be)=>{var He=fe=>{try{ke(ae.next(fe))}catch(Me){Be(Me)}},Oe=fe=>{try{ke(ae.throw(fe))}catch(Me){Be(Me)}},ke=fe=>fe.done?Ne(fe.value):Promise.resolve(fe.value).then(He,Oe);ke((ae=ae.apply(ie,te)).next())});/*! * FormCreate 低代码表单渲染器 * @form-create/component-wangeditor v2.7.1 * (c) 2018-2025 xaboy * Github https://github.com/xaboy/form-create * Site https://form-create.com/ * Released under the MIT License. */function ae(L){return L&&L.__esModule&&Object.prototype.hasOwnProperty.call(L,"default")?L.default:L}var Ne={exports:{}};(function(L,k){(function(o,n){L.exports=n()})(window,function(){return function(o){var n={};function e(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return o[t].call(a.exports,a,a.exports,e),a.l=!0,a.exports}return e.m=o,e.c=n,e.d=function(t,a,r){e.o(t,a)||Object.defineProperty(t,a,{enumerable:!0,get:r})},e.r=function(t){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,a){if(a&1&&(t=e(t)),a&8||a&4&&typeof t=="object"&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),a&2&&typeof t!="string")for(var i in t)e.d(r,i,function(u){return t[u]}.bind(null,i));return r},e.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(a,"a",a),a},e.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},e.p="",e(e.s=141)}([function(o,n){function e(t){return t&&t.__esModule?t:{default:t}}o.exports=e},function(o,n,e){o.exports=e(142)},function(o,n,e){e.r(n),e.d(n,"__extends",function(){return a}),e.d(n,"__assign",function(){return r}),e.d(n,"__rest",function(){return i}),e.d(n,"__decorate",function(){return u}),e.d(n,"__param",function(){return h}),e.d(n,"__metadata",function(){return s}),e.d(n,"__awaiter",function(){return m}),e.d(n,"__generator",function(){return f}),e.d(n,"__createBinding",function(){return l}),e.d(n,"__exportStar",function(){return d}),e.d(n,"__values",function(){return c}),e.d(n,"__read",function(){return v}),e.d(n,"__spread",function(){return p}),e.d(n,"__spreadArrays",function(){return g}),e.d(n,"__spreadArray",function(){return A}),e.d(n,"__await",function(){return y}),e.d(n,"__asyncGenerator",function(){return w}),e.d(n,"__asyncDelegator",function(){return b}),e.d(n,"__asyncValues",function(){return E}),e.d(n,"__makeTemplateObject",function(){return C}),e.d(n,"__importStar",function(){return _}),e.d(n,"__importDefault",function(){return S}),e.d(n,"__classPrivateFieldGet",function(){return M}),e.d(n,"__classPrivateFieldSet",function(){return T});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var t=function(D,N){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(B,R){B.__proto__=R}||function(B,R){for(var I in R)Object.prototype.hasOwnProperty.call(R,I)&&(B[I]=R[I])},t(D,N)};function a(D,N){if(typeof N!="function"&&N!==null)throw new TypeError("Class extends value "+String(N)+" is not a constructor or null");t(D,N);function B(){this.constructor=D}D.prototype=N===null?Object.create(N):(B.prototype=N.prototype,new B)}var r=function(){return r=Object.assign||function(D){for(var N,B=1,R=arguments.length;B<R;B++){N=arguments[B];for(var I in N)Object.prototype.hasOwnProperty.call(N,I)&&(D[I]=N[I])}return D},r.apply(this,arguments)};function i(D,N){var B={};for(var R in D)Object.prototype.hasOwnProperty.call(D,R)&&N.indexOf(R)<0&&(B[R]=D[R]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,R=Object.getOwnPropertySymbols(D);I<R.length;I++)N.indexOf(R[I])<0&&Object.prototype.propertyIsEnumerable.call(D,R[I])&&(B[R[I]]=D[R[I]]);return B}function u(D,N,B,R){var I=arguments.length,P=I<3?N:R===null?R=Object.getOwnPropertyDescriptor(N,B):R,F;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(D,N,B,R);else for(var H=D.length-1;H>=0;H--)(F=D[H])&&(P=(I<3?F(P):I>3?F(N,B,P):F(N,B))||P);return I>3&&P&&Object.defineProperty(N,B,P),P}function h(D,N){return function(B,R){N(B,R,D)}}function s(D,N){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(D,N)}function m(D,N,B,R){function I(P){return P instanceof B?P:new B(function(F){F(P)})}return new(B||(B=Promise))(function(P,F){function H(W){try{Q(R.next(W))}catch(U){F(U)}}function V(W){try{Q(R.throw(W))}catch(U){F(U)}}function Q(W){W.done?P(W.value):I(W.value).then(H,V)}Q((R=R.apply(D,N||[])).next())})}function f(D,N){var B={label:0,sent:function(){if(P[0]&1)throw P[1];return P[1]},trys:[],ops:[]},R,I,P,F;return F={next:H(0),throw:H(1),return:H(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function H(Q){return function(W){return V([Q,W])}}function V(Q){if(R)throw new TypeError("Generator is already executing.");for(;B;)try{if(R=1,I&&(P=Q[0]&2?I.return:Q[0]?I.throw||((P=I.return)&&P.call(I),0):I.next)&&!(P=P.call(I,Q[1])).done)return P;switch(I=0,P&&(Q=[Q[0]&2,P.value]),Q[0]){case 0:case 1:P=Q;break;case 4:return B.label++,{value:Q[1],done:!1};case 5:B.label++,I=Q[1],Q=[0];continue;case 7:Q=B.ops.pop(),B.trys.pop();continue;default:if(P=B.trys,!(P=P.length>0&&P[P.length-1])&&(Q[0]===6||Q[0]===2)){B=0;continue}if(Q[0]===3&&(!P||Q[1]>P[0]&&Q[1]<P[3])){B.label=Q[1];break}if(Q[0]===6&&B.label<P[1]){B.label=P[1],P=Q;break}if(P&&B.label<P[2]){B.label=P[2],B.ops.push(Q);break}P[2]&&B.ops.pop(),B.trys.pop();continue}Q=N.call(D,B)}catch(W){Q=[6,W],I=0}finally{R=P=0}if(Q[0]&5)throw Q[1];return{value:Q[0]?Q[1]:void 0,done:!0}}}var l=Object.create?function(D,N,B,R){R===void 0&&(R=B),Object.defineProperty(D,R,{enumerable:!0,get:function(){return N[B]}})}:function(D,N,B,R){R===void 0&&(R=B),D[R]=N[B]};function d(D,N){for(var B in D)B!=="default"&&!Object.prototype.hasOwnProperty.call(N,B)&&l(N,D,B)}function c(D){var N=typeof Symbol=="function"&&Symbol.iterator,B=N&&D[N],R=0;if(B)return B.call(D);if(D&&typeof D.length=="number")return{next:function(){return D&&R>=D.length&&(D=void 0),{value:D&&D[R++],done:!D}}};throw new TypeError(N?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(D,N){var B=typeof Symbol=="function"&&D[Symbol.iterator];if(!B)return D;var R=B.call(D),I,P=[],F;try{for(;(N===void 0||N-- >0)&&!(I=R.next()).done;)P.push(I.value)}catch(H){F={error:H}}finally{try{I&&!I.done&&(B=R.return)&&B.call(R)}finally{if(F)throw F.error}}return P}function p(){for(var D=[],N=0;N<arguments.length;N++)D=D.concat(v(arguments[N]));return D}function g(){for(var D=0,N=0,B=arguments.length;N<B;N++)D+=arguments[N].length;for(var R=Array(D),I=0,N=0;N<B;N++)for(var P=arguments[N],F=0,H=P.length;F<H;F++,I++)R[I]=P[F];return R}function A(D,N){for(var B=0,R=N.length,I=D.length;B<R;B++,I++)D[I]=N[B];return D}function y(D){return this instanceof y?(this.v=D,this):new y(D)}function w(D,N,B){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var R=B.apply(D,N||[]),I,P=[];return I={},F("next"),F("throw"),F("return"),I[Symbol.asyncIterator]=function(){return this},I;function F(Y){R[Y]&&(I[Y]=function(z){return new Promise(function(J,Z){P.push([Y,z,J,Z])>1||H(Y,z)})})}function H(Y,z){try{V(R[Y](z))}catch(J){U(P[0][3],J)}}function V(Y){Y.value instanceof y?Promise.resolve(Y.value.v).then(Q,W):U(P[0][2],Y)}function Q(Y){H("next",Y)}function W(Y){H("throw",Y)}function U(Y,z){Y(z),P.shift(),P.length&&H(P[0][0],P[0][1])}}function b(D){var N,B;return N={},R("next"),R("throw",function(I){throw I}),R("return"),N[Symbol.iterator]=function(){return this},N;function R(I,P){N[I]=D[I]?function(F){return(B=!B)?{value:y(D[I](F)),done:I==="return"}:P?P(F):F}:P}}function E(D){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var N=D[Symbol.asyncIterator],B;return N?N.call(D):(D=typeof c=="function"?c(D):D[Symbol.iterator](),B={},R("next"),R("throw"),R("return"),B[Symbol.asyncIterator]=function(){return this},B);function R(P){B[P]=D[P]&&function(F){return new Promise(function(H,V){F=D[P](F),I(H,V,F.done,F.value)})}}function I(P,F,H,V){Promise.resolve(V).then(function(Q){P({value:Q,done:H})},F)}}function C(D,N){return Object.defineProperty?Object.defineProperty(D,"raw",{value:N}):D.raw=N,D}var x=Object.create?function(D,N){Object.defineProperty(D,"default",{enumerable:!0,value:N})}:function(D,N){D.default=N};function _(D){if(D&&D.__esModule)return D;var N={};if(D!=null)for(var B in D)B!=="default"&&Object.prototype.hasOwnProperty.call(D,B)&&l(N,D,B);return x(N,D),N}function S(D){return D&&D.__esModule?D:{default:D}}function M(D,N){if(!N.has(D))throw new TypeError("attempted to get private field on non-instance");return N.get(D)}function T(D,N,B){if(!N.has(D))throw new TypeError("attempted to set private field on non-instance");return N.set(D,B),B}},function(o,n,e){var t=e(0),a=t(e(1)),r=t(e(89)),i=t(e(4)),u=t(e(26)),h=t(e(17)),s=t(e(121)),m=t(e(27)),f=t(e(91)),l=t(e(70)),d=t(e(28)),c=t(e(57));(0,a.default)(n,"__esModule",{value:!0}),n.DomElement=void 0;var v=e(2),p=e(6),g=[];function A(x){var _=document.createElement("div");_.innerHTML=x;var S=_.children;return p.toArray(S)}function y(x){return x?x instanceof HTMLCollection||x instanceof NodeList:!1}function w(x){var _=document.querySelectorAll(x);return p.toArray(_)}function b(x){var _=[],S=[];return(0,r.default)(x)?_=x:_=x.split(";"),(0,i.default)(_).call(_,function(M){var T,D=(0,u.default)(T=M.split(":")).call(T,function(N){return(0,h.default)(N).call(N)});D.length===2&&S.push(D[0]+":"+D[1])}),S}var E=function(){function x(_){if(this.elems=[],this.length=this.elems.length,this.dataSource=new s.default,!!_){if(_ instanceof x)return _;var S=[],M=_ instanceof Node?_.nodeType:-1;if(this.selector=_,M===1||M===9)S=[_];else if(y(_))S=p.toArray(_);else if(_ instanceof Array)S=_;else if(typeof _=="string"){var T,D=(0,h.default)(T=_.replace(`/ /mg`,"")).call(T);(0,m.default)(D).call(D,"<")===0?S=A(D):S=w(D)}var N=S.length;if(!N)return this;for(var B=0;B<N;B++)this.elems.push(S[B]);this.length=N}}return(0,a.default)(x.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),x.prototype.forEach=function(_){for(var S=0;S<this.length;S++){var M=this.elems[S],T=_.call(M,M,S);if(T===!1)break}return this},x.prototype.clone=function(_){var S;_===void 0&&(_=!1);var M=[];return(0,i.default)(S=this.elems).call(S,function(T){M.push(T.cloneNode(!!_))}),C(M)},x.prototype.get=function(_){_===void 0&&(_=0);var S=this.length;return _>=S&&(_=_%S),C(this.elems[_])},x.prototype.first=function(){return this.get(0)},x.prototype.last=function(){var _=this.length;return this.get(_-1)},x.prototype.on=function(_,S,M){var T;return _?(typeof S=="function"&&(M=S,S=""),(0,i.default)(T=this).call(T,function(D){if(!S){D.addEventListener(_,M);return}var N=function(B){var R=B.target;R.matches(S)&&M.call(R,B)};D.addEventListener(_,N),g.push({elem:D,selector:S,fn:M,agentFn:N})})):this},x.prototype.off=function(_,S,M){var T;return _?(typeof S=="function"&&(M=S,S=""),(0,i.default)(T=this).call(T,function(D){if(S){for(var N=-1,B=0;B<g.length;B++){var R=g[B];if(R.selector===S&&R.fn===M&&R.elem===D){N=B;break}}if(N!==-1){var I=(0,f.default)(g).call(g,N,1)[0].agentFn;D.removeEventListener(_,I)}}else D.removeEventListener(_,M)})):this},x.prototype.attr=function(_,S){var M;return S==null?this.elems[0].getAttribute(_)||"":(0,i.default)(M=this).call(M,function(T){T.setAttribute(_,S)})},x.prototype.removeAttr=function(_){var S;(0,i.default)(S=this).call(S,function(M){M.removeAttribute(_)})},x.prototype.addClass=function(_){var S;return _?(0,i.default)(S=this).call(S,function(M){if(M.className){var T=M.className.split(/\s/);T=(0,l.default)(T).call(T,function(D){return!!(0,h.default)(D).call(D)}),(0,m.default)(T).call(T,_)<0&&T.push(_),M.className=T.join(" ")}else M.className=_}):this},x.prototype.removeClass=function(_){var S;return _?(0,i.default)(S=this).call(S,function(M){if(M.className){var T=M.className.split(/\s/);T=(0,l.default)(T).call(T,function(D){return D=(0,h.default)(D).call(D),!(!D||D===_)}),M.className=T.join(" ")}}):this},x.prototype.hasClass=function(_){if(!_)return!1;var S=this.elems[0];if(!S.className)return!1;var M=S.className.split(/\s/);return(0,d.default)(M).call(M,_)},x.prototype.css=function(_,S){var M,T;return S==""?T="":T=_+":"+S+";",(0,i.default)(M=this).call(M,function(D){var N,B=(0,h.default)(N=D.getAttribute("style")||"").call(N);if(B){var R=b(B);R=(0,u.default)(R).call(R,function(I){return(0,m.default)(I).call(I,_)===0?T:I}),T!=""&&(0,m.default)(R).call(R,T)<0&&R.push(T),T==""&&(R=b(R)),D.setAttribute("style",R.join("; "))}else D.setAttribute("style",T)})},x.prototype.getBoundingClientRect=function(){var _=this.elems[0];return _.getBoundingClientRect()},x.prototype.show=function(){return this.css("display","block")},x.prototype.hide=function(){return this.css("display","none")},x.prototype.children=function(){var _=this.elems[0];return _?C(_.children):null},x.prototype.childNodes=function(){var _=this.elems[0];return _?C(_.childNodes):null},x.prototype.replaceChildAll=function(_){for(var S=this.getNode(),M=this.elems[0];M.hasChildNodes();)S.firstChild&&M.removeChild(S.firstChild);this.append(_)},x.prototype.append=function(_){var S;return(0,i.default)(S=this).call(S,function(M){(0,i.default)(_).call(_,function(T){M.appendChild(T)})})},x.prototype.remove=function(){var _;return(0,i.default)(_=this).call(_,function(S){if(S.remove)S.remove();else{var M=S.parentElement;M&&M.removeChild(S)}})},x.prototype.isContain=function(_){var S=this.elems[0],M=_.elems[0];return S.contains(M)},x.prototype.getNodeName=function(){var _=this.elems[0];return _.nodeName},x.prototype.getNode=function(_){_===void 0&&(_=0);var S;return S=this.elems[_],S},x.prototype.find=function(_){var S=this.elems[0];return C(S.querySelectorAll(_))},x.prototype.text=function(_){if(_){var S;return(0,i.default)(S=this).call(S,function(T){T.innerHTML=_})}else{var M=this.elems[0];return M.innerHTML.replace(/<[^>]+>/g,function(){return""})}},x.prototype.html=function(_){var S=this.elems[0];return _?(S.innerHTML=_,this):S.innerHTML},x.prototype.val=function(){var _,S=this.elems[0];return(0,h.default)(_=S.value).call(_)},x.prototype.focus=function(){var _;return(0,i.default)(_=this).call(_,function(S){S.focus()})},x.prototype.prev=function(){var _=this.elems[0];return C(_.previousElementSibling)},x.prototype.next=function(){var _=this.elems[0];return C(_.nextElementSibling)},x.prototype.getNextSibling=function(){var _=this.elems[0];return C(_.nextSibling)},x.prototype.parent=function(){var _=this.elems[0];return C(_.parentElement)},x.prototype.parentUntil=function(_,S){var M=S||this.elems[0];if(M.nodeName==="BODY")return null;var T=M.parentElement;return T===null?null:T.matches(_)?C(T):this.parentUntil(_,T)},x.prototype.parentUntilEditor=function(_,S,M){var T=M||this.elems[0];if(C(T).equal(S.$textContainerElem)||C(T).equal(S.$toolbarElem))return null;var D=T.parentElement;return D===null?null:D.matches(_)?C(D):this.parentUntilEditor(_,S,D)},x.prototype.equal=function(_){return _ instanceof x?this.elems[0]===_.elems[0]:_ instanceof HTMLElement?this.elems[0]===_:!1},x.prototype.insertBefore=function(_){var S,M=C(_),T=M.elems[0];return T?(0,i.default)(S=this).call(S,function(D){var N=T.parentNode;N==null||N.insertBefore(D,T)}):this},x.prototype.insertAfter=function(_){var S,M=C(_),T=M.elems[0],D=T&&T.nextSibling;return T?(0,i.default)(S=this).call(S,function(N){var B=T.parentNode;D?B.insertBefore(N,D):B.appendChild(N)}):this},x.prototype.data=function(_,S){if(S!=null)this.dataSource.set(_,S);else return this.dataSource.get(_)},x.prototype.getNodeTop=function(_){if(this.length<1)return this;var S=this.parent();return _.$textElem.equal(this)||_.$textElem.equal(S)?this:(S.prior=this,S.getNodeTop(_))},x.prototype.getOffsetData=function(){var _=this.elems[0];return{top:_.offsetTop,left:_.offsetLeft,width:_.offsetWidth,height:_.offsetHeight,parent:_.offsetParent}},x.prototype.scrollTop=function(_){var S=this.elems[0];S.scrollTo({top:_})},x}();n.DomElement=E;function C(){for(var x=[],_=0;_<arguments.length;_++)x[_]=arguments[_];return new((0,c.default)(E).apply(E,v.__spreadArrays([void 0],x)))}n.default=C},function(o,n,e){o.exports=e(180)},function(o,n,e){var t=e(8),a=e(71).f,r=e(101),i=e(9),u=e(40),h=e(19),s=e(16),m=function(f){var l=function(d,c,v){if(this instanceof f){switch(arguments.length){case 0:return new f;case 1:return new f(d);case 2:return new f(d,c)}return new f(d,c,v)}return f.apply(this,arguments)};return l.prototype=f.prototype,l};o.exports=function(f,l){var d=f.target,c=f.global,v=f.stat,p=f.proto,g=c?t:v?t[d]:(t[d]||{}).prototype,A=c?i:i[d]||(i[d]={}),y=A.prototype,w,b,E,C,x,_,S,M,T;for(C in l)w=r(c?C:d+(v?".":"#")+C,f.forced),b=!w&&g&&s(g,C),_=A[C],b&&(f.noTargetGet?(T=a(g,C),S=T&&T.value):S=g[C]),x=b&&S?S:l[C],!(b&&typeof _==typeof x)&&(f.bind&&b?M=u(x,t):f.wrap&&b?M=m(x):p&&typeof x=="function"?M=u(Function.call,x):M=x,(f.sham||x&&x.sham||_&&_.sham)&&h(M,"sham",!0),A[C]=M,p&&(E=d+"Prototype",s(i,E)||h(i,E,{}),i[E][C]=x,f.real&&y&&!y[C]&&h(y,C,x)))}},function(o,n,e){var t=e(0),a=t(e(92)),r=t(e(1)),i=t(e(256)),u=t(e(45)),h=t(e(46)),s=t(e(89)),m=t(e(26));(0,r.default)(n,"__esModule",{value:!0}),n.hexToRgb=n.getRandomCode=n.toArray=n.deepClone=n.isFunction=n.debounce=n.throttle=n.arrForEach=n.forEach=n.replaceSpecialSymbol=n.replaceHtmlSymbol=n.getRandom=n.UA=void 0;var f=e(2),l=function(){function _(){this._ua=navigator.userAgent;var S=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(S&&S[1]=="Edge"&&(0,i.default)(S[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return _.prototype.isIE=function(){return"ActiveXObject"in window},_.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},_}();n.UA=new l;function d(_){var S;return _===void 0&&(_=""),_+(0,u.default)(S=Math.random().toString()).call(S,2)}n.getRandom=d;function c(_){return _.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}n.replaceHtmlSymbol=c;function v(_){return _.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/gm,'"')}n.replaceSpecialSymbol=v;function p(_,S){for(var M in _)if(Object.prototype.hasOwnProperty.call(_,M)){var T=S(M,_[M]);if(T===!1)break}}n.forEach=p;function g(_,S){var M,T,D,N=_.length||0;for(M=0;M<N&&(T=_[M],D=S.call(_,T,M),D!==!1);M++);}n.arrForEach=g;function A(_,S){S===void 0&&(S=200);var M=!1;return function(){for(var T=this,D=[],N=0;N<arguments.length;N++)D[N]=arguments[N];M||(M=!0,(0,h.default)(function(){M=!1,_.call.apply(_,f.__spreadArrays([T],D))},S))}}n.throttle=A;function y(_,S){S===void 0&&(S=200);var M=0;return function(){for(var T=this,D=[],N=0;N<arguments.length;N++)D[N]=arguments[N];M&&window.clearTimeout(M),M=(0,h.default)(function(){M=0,_.call.apply(_,f.__spreadArrays([T],D))},S)}}n.debounce=y;function w(_){return typeof _=="function"}n.isFunction=w;function b(_){if((0,a.default)(_)!=="object"||typeof _=="function"||_===null)return _;var S;(0,s.default)(_)&&(S=[]),(0,s.default)(_)||(S={});for(var M in _)Object.prototype.hasOwnProperty.call(_,M)&&(S[M]=b(_[M]));return S}n.deepClone=b;function E(_){return(0,u.default)(Array.prototype).call(_)}n.toArray=E;function C(){var _;return(0,u.default)(_=Math.random().toString(36)).call(_,-5)}n.getRandomCode=C;function x(_){var S=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(_);if(S==null)return null;var M=(0,m.default)(S).call(S,function(B){return(0,i.default)(B,16)}),T=M[1],D=M[2],N=M[3];return"rgb("+T+", "+D+", "+N+")"}n.hexToRgb=x},function(o,n,e){var t=e(0),a=t(e(1));(0,a.default)(n,"__esModule",{value:!0}),n.EMPTY_P_REGEX=n.EMPTY_P_LAST_REGEX=n.EMPTY_P=n.urlRegex=n.EMPTY_FN=void 0;function r(){}n.EMPTY_FN=r,n.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/g,n.EMPTY_P='<p data-we-empty-p=""><br></p>',n.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,n.EMPTY_P_REGEX=/<p data-we-empty-p="">/gim},function(o,n,e){(function(t){var a=function(r){return r&&r.Math==Math&&r};o.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof t=="object"&&t)||Function("return this")()}).call(this,e(145))},function(o,n){o.exports={}},function(o,n,e){var t=e(8),a=e(74),r=e(16),i=e(64),u=e(76),h=e(106),s=a("wks"),m=t.Symbol,f=h?m:m&&m.withoutSetter||i;o.exports=function(l){return r(s,l)||(u&&r(m,l)?s[l]=m[l]:s[l]=f("Symbol."+l)),s[l]}},function(o,n){o.exports=function(e){try{return!!e()}catch(t){return!0}}},function(o,n,e){var t=e(9),a=e(16),r=e(93),i=e(18).f;o.exports=function(u){var h=t.Symbol||(t.Symbol={});a(h,u)||i(h,u,{value:r.f(u)})}},function(o,n){o.exports=function(e){return typeof e=="object"?e!==null:typeof e=="function"}},function(o,n,e){var t=e(11);o.exports=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(o,n,e){var t=e(9);o.exports=function(a){return t[a+"Prototype"]}},function(o,n){var e={}.hasOwnProperty;o.exports=function(t,a){return e.call(t,a)}},function(o,n,e){o.exports=e(192)},function(o,n,e){var t=e(14),a=e(100),r=e(25),i=e(60),u=Object.defineProperty;n.f=t?u:function(h,s,m){if(r(h),s=i(s,!0),r(m),a)try{return u(h,s,m)}catch(f){}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[s]=m.value),h}},function(o,n,e){var t=e(14),a=e(18),r=e(48);o.exports=t?function(i,u,h){return a.f(i,u,r(1,h))}:function(i,u,h){return i[u]=h,i}},function(o,n,e){var t=function(){var p;return function(){return typeof p=="undefined"&&(p=!!(window&&document&&document.all&&!window.atob)),p}}(),a=function(){var p={};return function(g){if(typeof p[g]=="undefined"){var A=document.querySelector(g);if(window.HTMLIFrameElement&&A instanceof window.HTMLIFrameElement)try{A=A.contentDocument.head}catch(y){A=null}p[g]=A}return p[g]}}(),r=[];function i(p){for(var g=-1,A=0;A<r.length;A++)if(r[A].identifier===p){g=A;break}return g}function u(p,g){for(var A={},y=[],w=0;w<p.length;w++){var b=p[w],E=g.base?b[0]+g.base:b[0],C=A[E]||0,x="".concat(E," ").concat(C);A[E]=C+1;var _=i(x),S={css:b[1],media:b[2],sourceMap:b[3]};_!==-1?(r[_].references++,r[_].updater(S)):r.push({identifier:x,updater:v(S,g),references:1}),y.push(x)}return y}function h(p){var g=document.createElement("style"),A=p.attributes||{};if(typeof A.nonce=="undefined"){var y=e.nc;y&&(A.nonce=y)}if(Object.keys(A).forEach(function(b){g.setAttribute(b,A[b])}),typeof p.insert=="function")p.insert(g);else{var w=a(p.insert||"head");if(!w)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");w.appendChild(g)}return g}function s(p){if(p.parentNode===null)return!1;p.parentNode.removeChild(p)}var m=function(){var p=[];return function(g,A){return p[g]=A,p.filter(Boolean).join(` `)}}();function f(p,g,A,y){var w=A?"":y.media?"@media ".concat(y.media," {").concat(y.css,"}"):y.css;if(p.styleSheet)p.styleSheet.cssText=m(g,w);else{var b=document.createTextNode(w),E=p.childNodes;E[g]&&p.removeChild(E[g]),E.length?p.insertBefore(b,E[g]):p.appendChild(b)}}function l(p,g,A){var y=A.css,w=A.media,b=A.sourceMap;if(w?p.setAttribute("media",w):p.removeAttribute("media"),b&&typeof btoa!="undefined"&&(y+=` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(b))))," */")),p.styleSheet)p.styleSheet.cssText=y;else{for(;p.firstChild;)p.removeChild(p.firstChild);p.appendChild(document.createTextNode(y))}}var d=null,c=0;function v(p,g){var A,y,w;if(g.singleton){var b=c++;A=d||(d=h(g)),y=f.bind(null,A,b,!1),w=f.bind(null,A,b,!0)}else A=h(g),y=l.bind(null,A,g),w=function(){s(A)};return y(p),function(E){if(E){if(E.css===p.css&&E.media===p.media&&E.sourceMap===p.sourceMap)return;y(p=E)}else w()}}o.exports=function(p,g){g=g||{},!g.singleton&&typeof g.singleton!="boolean"&&(g.singleton=t()),p=p||[];var A=u(p,g);return function(y){if(y=y||[],Object.prototype.toString.call(y)==="[object Array]"){for(var w=0;w<A.length;w++){var b=A[w],E=i(b);r[E].references--}for(var C=u(y,g),x=0;x<A.length;x++){var _=A[x],S=i(_);r[S].references===0&&(r[S].updater(),r.splice(S,1))}A=C}}}},function(o,n,e){o.exports=function(r){var i=[];return i.toString=function(){return this.map(function(u){var h=t(u,r);return u[2]?"@media ".concat(u[2]," {").concat(h,"}"):h}).join("")},i.i=function(u,h,s){typeof u=="string"&&(u=[[null,u,""]]);var m={};if(s)for(var f=0;f<this.length;f++){var l=this[f][0];l!=null&&(m[l]=!0)}for(var d=0;d<u.length;d++){var c=[].concat(u[d]);s&&m[c[0]]||(h&&(c[2]?c[2]="".concat(h," and ").concat(c[2]):c[2]=h),i.push(c))}},i};function t(r,i){var u=r[1]||"",h=r[3];if(!h)return u;if(i&&typeof btoa=="function"){var s=a(h),m=h.sources.map(function(f){return"/*# sourceURL=".concat(h.sourceRoot||"").concat(f," */")});return[u].concat(m).concat([s]).join(` `)}return[u].join(` `)}function a(r){var i=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),u="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i);return"/*# ".concat(u," */")}},function(o,n,e){var t=e(14),a=e(11),r=e(16),i=Object.defineProperty,u={},h=function(s){throw s};o.exports=function(s,m){if(r(u,s))return u[s];m||(m={});var f=[][s],l=r(m,"ACCESSORS")?m.ACCESSORS:!1,d=r(m,0)?m[0]:h,c=r(m,1)?m[1]:void 0;return u[s]=!!f&&!a(function(){if(l&&!t)return!0;var v={length:-1};l?i(v,1,{enumerable:!0,get:h}):v[1]=1,f.call(v,d,c)})}},function(o,n,e){var t=e(0),a=t(e(1));(0,a.default)(n,"__esModule",{value:!0});var r=e(2),i=r.__importDefault(e(95)),u=function(h){r.__extends(s,h);function s(m,f){return h.call(this,m,f)||this}return s}(i.default);n.default=u},function(o,n,e){var t=e(0),a=t(e(1)),r=t(e(4)),i=t(e(46));(0,a.default)(n,"__esModule",{value:!0});var u=e(2),h=u.__importDefault(e(3)),s=u.__importDefault(e(95)),m=u.__importDefault(e(134)),f=function(l){u.__extends(d,l);function d(c,v,p){var g=l.call(this,c,v)||this;p.title=v.i18next.t("menus.dropListMenu."+p.title);var A=v.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(A!==""&&p.type==="list"){var y;(0,r.default)(y=p.list).call(y,function(b){var E=b.$elem,C=h.default(E.children());if(C.length>0){var x=C==null?void 0:C.getNodeName();x&&x==="I"&&E.addClass(A)}})}var w=new m.default(g,p);return g.dropList=w,c.on("click",function(){var b;v.selection.getRange()!=null&&(c.css("z-index",v.zIndex.get("menu")),(0,r.default)(b=v.txt.eventHooks.dropListMenuHoverEvents).call(b,function(E){return E()}),w.show())}).on("mouseleave",function(){c.css("z-index","auto"),w.hideTimeoutId=(0,i.default)(function(){w.hide()})}),g}return d}(s.default);n.default=f},function(o,n,e){var t=e(13);o.exports=function(a){if(!t(a))throw TypeError(String(a)+" is not an object");return a}},function(o,n,e){o.exports=e(188)},function(o,n,e){o.exports=e(201)},function(o,n,e){o.exports=e(213)},function(o,n,e){o.exports=e(283)},function(o,n,e){var t=e(72),a=e(49);o.exports=function(r){return t(a(r))}},function(o,n,e){var t=e(49);o.exports=function(a){return Object(t(a))}},function(o,n,e){var t=e(40),a=e(72),r=e(31),i=e(35),u=e(88),h=[].push,s=function(m){var f=m==1,l=m==2,d=m==3,c=m==4,v=m==6,p=m==5||v;return function(g,A,y,w){for(var b=r(g),E=a(b),C=t(A,y,3),x=i(E.length),_=0,S=w||u,M=f?S(g,x):l?S(g,0):void 0,T,D;x>_;_++)if((p||_ in E)&&(T=E[_],D=C(T,_,b),m)){if(f)M[_]=D;else if(D)switch(m){case 3:return!0;case 5:return T;case 6:return _;case 2:h.call(M,T)}else if(c)return!1}return v?-1:d||c?c:M}};o.exports={forEach:s(0),map:s(1),filter:s(2),some:s(3),every:s(4),find:s(5),findIndex:s(6)}},function(o,n,e){var t=e(0),a=t(e(1)),r=t(e(4)),i=t(e(29)),u=t(e(132));(0,a.default)(n,"__esModule",{value:!0});var h=e(2),s=h.__importDefault(e(3)),m=e(7),f=function(){function l(d,c){this.menu=d,this.conf=c,this.$container=s.default('<div class="w-e-panel-container"></div>');var v=d.editor;v.txt.eventHooks.clickEvents.push(l.hideCurAllPanels),v.txt.eventHooks.toolbarClickEvents.push(l.hideCurAllPanels),v.txt.eventHooks.dropListMenuHoverEvents.push(l.hideCurAllPanels)}return l.prototype.create=function(){var d=this,c=this.menu;if(!l.createdMenus.has(c)){var v=this.conf,p=this.$container,g=v.width||300,A=c.editor.$toolbarElem.getBoundingClientRect(),y=c.$elem.getBoundingClientRect(),w=A.height+A.top-y.top,b=(A.width-g)/2+A.left-y.left,E=300;Math.abs(b)>E&&(y.left<document.documentElement.clientWidth/2?b=-y.width/2:b=-g+y.width/2),p.css("width",g+"px").css("margin-top",w+"px").css("margin-left",b+"px").css("z-index",c.editor.zIndex.get("panel"));var C=s.default('<i class="w-e-icon-close w-e-panel-close"></i>');p.append(C),C.on("click",function(){d.remove()});var x=s.default('<ul class="w-e-panel-tab-title"></ul>'),_=s.default('<div class="w-e-panel-tab-content"></div>');p.append(x).append(_);var S=v.height;S&&_.css("height",S+"px").css("overflow-y","auto");var M=v.tabs||[],T=[],D=[];(0,r.default)(M).call(M,function(B,R){if(B){var I=B.title||"",P=B.tpl||"",F=s.default('<li class="w-e-item">'+I+"</li>");x.append(F);var H=s.default(P);_.append(H),T.push(F),D.push(H),R===0?(F.data("active",!0),F.addClass("w-e-active")):H.hide(),F.on("click",function(){F.data("active")||((0,r.default)(T).call(T,function(V){V.data("active",!1),V.removeClass("w-e-active")}),(0,r.default)(D).call(D,function(V){V.hide()}),F.data("active",!0),F.addClass("w-e-active"),H.show())})}}),p.on("click",function(B){B.stopPropagation()}),c.$elem.append(p),v.setLinkValue&&v.setLinkValue(p,"text"),v.setLinkValue&&v.setLinkValue(p,"link"),(0,r.default)(M).call(M,function(B,R){if(B){var I=B.events||[];(0,r.default)(I).call(I,function(P){var F,H=P.selector,V=P.type,Q=P.fn||m.EMPTY_FN,W=D[R],U=(F=P.bindEnter)!==null&&F!==void 0?F:!1,Y=function(z){return h.__awaiter(d,void 0,void 0,function(){var J;return h.__generator(this,function(Z){switch(Z.label){case 0:return z.stopPropagation(),[4,Q(z)];case 1:return J=Z.sent(),J&&this.remove(),[2]}})})};(0,i.default)(W).call(W,H).on(V,Y),U&&V==="click"&&W.on("keyup",function(z){z.keyCode==13&&Y(z)})})}});var N=(0,i.default)(p).call(p,"input[type=text],textarea");N.length&&N.get(0).focus(),l.hideCurAllPanels(),c.setPanel(this),l.createdMenus.add(c)}},l.prototype.remove=function(){var d=this.menu,c=this.$container;c&&c.remove(),l.createdMenus.delete(d)},l.hideCurAllPanels=function(){var d;l.createdMenus.size!==0&&(0,r.default)(d=l.createdMenus).call(d,function(c){var v=c.panel;v&&v.remove()})},l.createdMenus=new u.default,l}();n.default=f},function(o,n){var e={}.toString;o.exports=function(t){return e.call(t).slice(8,-1)}},function(o,n,e){var t=e(62),a=Math.min;o.exports=function(r){return r>0?a(t(r),9007199254740991):0}},function(o,n,e){var t=e(9),a=e(8),r=function(i){return typeof i=="function"?i:void 0};o.exports=function(i,u){return arguments.length<2?r(t[i])||r(a[i]):t[i]&&t[i][u]||a[i]&&a[i][u]}},function(o,n,e){var t=e(81),a=e(18).f,r=e(19),i=e(16),u=e(170),h=e(10),s=h("toStringTag");o.exports=function(m,f,l,d){if(m){var c=l?m:m.prototype;i(c,s)||a(c,s,{configurable:!0,value:f}),d&&!t&&r(c,"toString",u)}}},function(o,n,e){var t=e(0),a=t(e(1));(0,a.default)(n,"__esModule",{value:!0});var r=e(2),i=r.__importDefault(e(95)),u=function(h){r.__extends(s,h);function s(m,f){return h.call(this,m,f)||this}return s.prototype.setPanel=function(m){this.panel=m},s}(i.default);n.default=u},function(o,n,e){var t=e(0),a=t(e(1)),r=t(e(4)),i=t(e(57));(0,a.default)(n,"__esModule",{value:!0});var u=e(2),h=u.__importDefault(e(3)),s=function(){function m(f,l,d){this.editor=f,this.$targetElem=l,this.conf=d,this._show=!1,this._isInsertTextContainer=!1;var c=h.default("<div></div>");c.addClass("w-e-tooltip"),this.$container=c}return m.prototype.getPositionData=function(){var f=this.$container,l=0,d=0,c=20,v=document.documentElement.scrollTop,p=this.$targetElem.getBoundingClientRect(),g=this.editor.$textElem.getBoundingClientRect(),A=this.$targetElem.getOffsetData(),y=h.default(A.parent),w=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=y.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var b=y.getBoundingClientRect().height,E=A.top,C=A.left,x=A.height,_=E-w;_>c+5?(l=_-c-15,f.addClass("w-e-tooltip-up")):_+x+c<b?(l=_+x+10,f.addClass("w-e-tooltip-down")):(l=(_>0?_:0)+c+10,f.addClass("w-e-tooltip-down")),C<0?d=0:d=C}else p.top<c||p.top-g.top<c?(l=p.bottom+v+5,f.addClass("w-e-tooltip-down")):(l=p.top+v-c-15,f.addClass("w-e-tooltip-up")),p.left<0?d=0:d=p.left;return{top:l,left:d}},m.prototype.appendMenus=function(){var f=this,l=this.conf,d=this.editor,c=this.$targetElem,v=this.$container;(0,r.default)(l).call(l,function(p,g){var A=p.$elem,y=h.default("<div></div>");y.addClass("w-e-tooltip-item-wrapper "),y.append(A),v.append(y),A.on("click",function(w){w.preventDefault();var b=p.onClick(d,c);b&&f.remove()})})},m.prototype.create=function(){var f,l,d=this.editor,c=this.$container;this.appendMenus();var v=this.getPositionData(),p=v.top,g=v.left;c.css("top",p+"px"),c.css("left",g+"px"),c.css("z-index",d.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(c):h.default("body").append(c),this._show=!0,d.beforeDestroy((0,i.default)(f=this.remove).call(f,this)),d.txt.eventHooks.onBlurEvents.push((0,i.default)(l=this.remove).call(l,this))},m.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,a.default)(m.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),m}();n.default=s},function(o,n,e){var t=e(41);o.exports=function(a,r,i){if(t(a),r===void 0)return a;switch(i){case 0:return function(){return a.call(r)};case 1:return function(u){return a.call(r,u)};case 2:return function(u,h){return a.call(r,u,h)};case 3:return function(u,h,s){return a.call(r,u,h,s)}}return function(){return a.apply(r,arguments)}}},function(o,n){o.exports=function(e){if(typeof e!="function")throw TypeError(String(e)+" is not a function");return e}},function(o,n,e){var t=e(165),a=e(8),r=e(13),i=e(19),u=e(16),h=e(63),s=e(51),m=a.WeakMap,f,l,d,c=function(b){return d(b)?l(b):f(b,{})},v=function(b){return function(E){var C;if(!r(E)||(C=l(E)).type!==b)throw TypeError("Incompatible receiver, "+b+" required");return C}};if(t){var p=new m,g=p.get,A=p.has,y=p.set;f=function(b,E){return y.call(p,b,E),E},l=function(b){return g.call(p,b)||{}},d=function(b){return A.call(p,b)}}else{var w=h("state");s[w]=!0,f=function(b,E){return i(b,w,E),E},l=function(b){return u(b,w)?b[w]:{}},d=function(b){return u(b,w)}}o.exports={set:f,get:l,has:d,enforce:c,getterFor:v}},function(o,n){o.exports=!0},function(o,n){o.exports={}},function(o,n,e){o.exports=e(261)},function(o,n,e){o.exports=e(265)},function(o,n,e){var t=e(0),a=t(e(1)),r=t(e(4));(0,a.default)(n,"__esModule",{value:!0}),n.createElementFragment=n.createDocumentFragment=n.createElement=n.insertBefore=n.getEndPoint=n.getStartPoint=n.updateRange=n.filterSelectionNodes=void 0;var i=e(2),u=e(137),h=i.__importDefault(e(3));function s(g){var A=[];return(0,r.default)(g).call(g,function(y){var w=y.getNodeName();if(w!==u.ListType.OrderedList&&w!==u.ListType.UnorderedList)A.push(y);else if(y.prior)A.push(y.prior);else{var b=y.children();b==null||(0,r.default)(b).call(b,function(E){A.push(h.default(E))})}}),A}n.filterSelectionNodes=s;function m(g,A,y){var w=g.selection,b=document.createRange();A.length>1?(b.setStart(A.elems[0],0),b.setEnd(A.elems[A.length-1],A.elems[A.length-1].childNodes.length)):b.selectNodeContents(A.elems[0]),y&&b.collapse(!1),w.saveRange(b),w.restoreSelection()}n.updateRange=m;function f(g){var A;return g.prior?g.prior:h.default((A=g.children())===null||A===void 0?void 0:A.elems[0])}n.getStartPoint=f;function l(g){var A;return g.prior?g.prior:h.default((A=g.children())===null||A===void 0?void 0:A.last().elems[0])}n.getEndPoint=l;function d(g,A,y){y===void 0&&(y=null),g.parent().elems[0].insertBefore(A,y)}n.insertBefore=d;function c(g){return document.createElement(g)}n.createElement=c;function v(){return document.createDocumentFragment()}n.createDocumentFragment=v;function p(g,A,y){return y===void 0&&(y="li"),(0,r.default)(g).call(g,function(w){var b=c(y);b.innerHTML=w.html(),A.appendChild(b),w.remove()}),A}n.createElementFragment=p},function(o,n){o.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},function(o,n){o.exports=function(e){if(e==null)throw TypeError("Can't call method on "+e);return e}},function(o,n,e){var t=e(164).charAt,a=e(42),r=e(75),i="String Iterator",u=a.set,h=a.getterFor(i);r(String,"String",function(s){u(this,{type:i,string:String(s),index:0})},function(){var s=h(this),m=s.string,f=s.index,l;return f>=m.length?{value:void 0,done:!0}:(l=t(m,f),s.index+=l.length,{value:l,done:!1})})},function(o,n){o.exports={}},function(o,n,e){var t=e(107),a=e(80);o.exports=Object.keys||function(r){return t(r,a)}},function(o,n,e){var t=e(19);o.exports=function(a,r,i,u){u&&u.enumerable?a[r]=i:t(a,r,i)}},function(o,n,e){e(173);var t=e(174),a=e(8),r=e(65),i=e(19),u=e(44),h=e(10),s=h("toStringTag");for(var m in t){var f=a[m],l=f&&f.prototype;l&&r(l)!==s&&i(l,s,m),u[m]=u.Array}},function(o,n,e){var t=e(34);o.exports=Array.isArray||function(a){return t(a)=="Array"}},function(o,n,e){var t=e(11),a=e(10),r=e(86),i=a("species");o.exports=function(u){return r>=51||!t(function(){var h=[],s=h.constructor={};return s[i]=function(){return{foo:1}},h[u](Boolean).foo!==1})}},function(o,n,e){o.exports=e(222)},function(o,n,e){var t=e(0),a=t(e(1));(0,a.default)(n,"__esModule",{value:!0}),n.ListHandle=void 0;var r=e(2),i=r.__importDefault(e(373)),u=function(){function h(s){this.options=s,this.selectionRangeElem=new i.default}return h}();n.ListHandle=u},function(o,n,e){var t={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,r=a&&!t.call({1:2},1);n.f=r?function(i){var u=a(this,i);return!!u&&u.enumerable}:t},function(o,n,e){var t=e(13);o.exports=function(a,r){if(!t(a))return a;var i,u;if(r&&typeof(i=a.toString)=="function"&&!t(u=i.call(a))||typeof(i=a.valueOf)=="function"&&!t(u=i.call(a))||!r&&typeof(i=a.toString)=="function"&&!t(u=i.call(a)))return u;throw TypeError("Can't convert object to primitive value")}},function(o,n){},function(o,n){var e=Math.ceil,t=Math.floor;o.exports=function(a){return isNaN(a=+a)?0:(a>0?t:e)(a)}},function(o,n,e){var t=e(74),a=e(64),r=t("keys");o.exports=function(i){return r[i]||(r[i]=a(i))}},function(o,n){var e=0,t=Math.random();o.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++e+t).toString(36)}},function(o,n,e){var t=e(81),a=e(34),r=e(10),i=r("toStringTag"),u=a(function(){return arguments}())=="Arguments",h=function(s,m){try{return s[m]}catch(f){}};o.exports=t?a:function(s){var m,f,l;return s===void 0?"Undefined":s===null?"Null":typeof(f=h(m=Object(s),i))=="string"?f:u?a(m):(l=a(m))=="Object"&&typeof m.callee=="function"?"Arguments":l}},function(o,n,e){var t=e(25),a=e(112),r=e(35),i=e(40),u=e(113),h=e(114),s=function(f,l){this.stopped=f,this.result=l},m=o.exports=function(f,l,d,c,v){var p=i(l,d,c?2:1),g,A,y,w,b,E,C;if(v)g=f;else{if(A=u(f),typeof A!="function")throw TypeError("Target is not iterable");if(a(A)){for(y=0,w=r(f.length);w>y;y++)if(b=c?p(t(C=f[y])[0],C[1]):p(f[y]),b&&b instanceof s)return b;return new s(!1)}g=A.call(f)}for(E=g.next;!(C=E.call(g)).done;)if(b=h(g,p,C.value,c),typeof b=="object"&&b&&b instanceof s)return b;return new s(!1)};m.stop=function(f){return new s(!0,f)}},function(o,n,e){var t=e(11);o.exports=function(a,r){var i=[][a];return!!i&&t(function(){i.call(null,r||function(){throw 1},1)})}},function(o,n){o.exports=` \v\f\r                 \u2028\u2029\uFEFF`},function(o,n,e){var t=e(60),a=e(18),r=e(48);o.exports=function(i,u,h){var s=t(u);s in i?a.f(i,s,r(0,h)):i[s]=h}},function(o,n,e){o.exports=e(209)},function(o,n,e){var t=e(14),a=e(59),r=e(48),i=e(30),u=e(60),h=e(16),s=e(100),m=Object.getOwnPropertyDescriptor;n.f=t?m:function(f,l){if(f=i(f),l=u(l,!0),s)try{return m(f,l)}catch(d){}if(h(f,l))return r(!a.f.call(f,l),f[l])}},function(o,n,e){var t=e(11),a=e(34),r="".split;o.exports=t(function(){return!Object("z").propertyIsEnumerable(0)})?function(i){return a(i)=="String"?r.call(i,""):Object(i)}:Object},function(o,n,e){var t=e(8),a=e(13),r=t.document,i=a(r)&&a(r.createElement);o.exports=function(u){return i?r.createElement(u):{}}},function(o,n,e){var t=e(43),a=e(103);(o.exports=function(r,i){return a[r]||(a[r]=i!==void 0?i:{})})("versions",[]).push({version:"3.6.4",mode:t?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(o,n,e){var t=e(5),a=e(167),r=e(105),i=e(171),u=e(37),h=e(19),s=e(53),m=e(10),f=e(43),l=e(44),d=e(104),c=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,p=m("iterator"),g="keys",A="values",y="entries",w=function(){return this};o.exports=function(b,E,C,x,_,S,M){a(C,E,x);var T=function(Q){if(Q===_&&I)return I;if(!v&&Q in B)return B[Q];switch(Q){case g:return function(){return new C(this,Q)};case A:return function(){return new C(this,Q)};case y:return function(){return new C(this,Q)}}return function(){return new C(this)}},D=E+" Iterator",N=!1,B=b.prototype,R=B[p]||B["@@iterator"]||_&&B[_],I=!v&&R||T(_),P=E=="Array"&&B.entries||R,F,H,V;if(P&&(F=r(P.call(new b)),c!==Object.prototype&&F.next&&(!f&&r(F)!==c&&(i?i(F,c):typeof F[p]!="function"&&h(F,p,w)),u(F,D,!0,!0),f&&(l[D]=w))),_==A&&R&&R.name!==A&&(N=!0,I=function(){return R.call(this)}),(!f||M)&&B[p]!==I&&h(B,p,I),l[E]=I,_)if(H={values:T(A),keys:S?I:T(g),entries:T(y)},M)for(V in H)(v||N||!(V in B))&&s(B,V,H[V]);else t({target:E,proto:!0,forced:v||N},H);return H}},function(o,n,e){var t=e(11);o.exports=!!Object.getOwnPropertySymbols&&!t(function(){return!String(Symbol())})},function(o,n,e){var t=e(25),a=e(169),r=e(80),i=e(51),u=e(108),h=e(73),s=e(63),m=">",f="<",l="prototype",d="script",c=s("IE_PROTO"),v=function(){},p=function(b){return f+d+m+b+f+"/"+d+m},g=function(b){b.write(p("")),b.close();var E=b.parentWindow.Object;return b=null,E},A=function(){var b=h("iframe"),E="java"+d+":",C;return b.style.display="none",u.appendChild(b),b.src=String(E),C=b.contentWindow.document,C.open(),C.write(p("document.F=Object")),C.close(),C.F},y,w=function(){try{y=document.domain&&new ActiveXObject("htmlfile")}catch(E){}w=y?g(y):A();for(var b=r.length;b--;)delete w[l][r[b]];return w()};i[c]=!0,o.exports=Object.create||function(b,E){var C;return b!==null?(v[l]=t(b),C=new v,v[l]=null,C[c]=b):C=w(),E===void 0?C:a(C,E)}},function(o,n,e){var t=e(30),a=e(35),r=e(79),i=function(u){return function(h,s,m){var f=t(h),l=a(f.length),d=r(m,l),c;if(u&&s!=s){for(;l>d;)if(c=f[d++],c!=c)return!0}else for(;l>d;d++)if((u||d in f)&&f[d]===s)return u||d||0;return!u&&-1}};o.exports={includes:i(!0),indexOf:i(!1)}},function(o,n,e){var t=e(62),a=Math.max,r=Math.min;o.exports=function(i,u){var h=t(i);return h<0?a(h+u,0):r(h,u)}},function(o,n){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(o,n,e){var t=e(10),a=t("toStringTag"),r={};r[a]="z",o.exports=String(r)==="[object z]"},function(o,n){o.exports=function(){}},function(o,n){o.exports=function(e,t,a){if(!(e instanceof t))throw TypeError("Incorrect "+(a?a+" ":"")+"invocation");return e}},function(o,n,e){var t=e(36);o.exports=t("navigator","userAgent")||""},function(o,n,e){var t=e(41),a=function(r){var i,u;this.promise=new r(function(h,s){if(i!==void 0||u!==void 0)throw TypeError("Bad Promise constructor");i=h,u=s}),this.resolve=t(i),this.reject=t(u)};o.exports.f=function(r){return new a(r)}},function(o,n,e){var t=e(8),a=e(84),r=t.process,i=r&&r.versions,u=i&&i.v8,h,s;u?(h=u.split("."),s=h[0]+h[1]):a&&(h=a.match(/Edge\/(\d+)/),(!h||h[1]>=74)&&(h=a.match(/Chrome\/(\d+)/),h&&(s=h[1]))),o.exports=s&&+s},function(o,n,e){var t=e(0),a=t(e(1)),r=t(e(4));(0,a.default)(n,"__esModule",{value:!0});var i=e(2),u=i.__importDefault(e(3)),h=e(6),s=i.__importDefault(e(267)),m=i.__importDefault(e(280)),f=i.__importDefault(e(281)),l=i.__importDefault(e(282)),d=i.__importDefault(e(301)),c=i.__importStar(e(416)),v=i.__importDefault(e(417)),p=i.__importDefault(e(418)),g=i.__importDefault(e(419)),A=i.__importStar(e(420)),y=i.__importDefault(e(423)),w=i.__importDefault(e(424)),b=i.__importDefault(e(425)),E=i.__importDefault(e(427)),C=i.__importDefault(e(437)),x=i.__importDefault(e(440)),_=i.__importStar(e(441)),S=i.__importDefault(e(23)),M=i.__importDefault(e(134)),T=i.__importDefault(e(24)),D=i.__importDefault(e(33)),N=i.__importDefault(e(38)),B=i.__importDefault(e(39)),R=1,I=function(){function P(F,H){this.pluginsFunctionList={},this.be