tenghui-ui 2.5.15 → 2.5.16

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.
@@ -61,5 +61,5 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
61
61
  `),K}function he(W,K){if(L(W)&&W.nextElementSibling!=null&&!j(K,`
62
62
 
63
63
  `)){var Z=W.offsetHeight+parseFloat(F(W).marginTop)+parseFloat(F(W).marginBottom);W.nextElementSibling.offsetTop>W.offsetTop+Z*1.5&&K.insert(`
64
- `)}return K}function Fe(W,K){var Z={},J=W.style||{};return J.fontStyle&&F(W).fontStyle==="italic"&&(Z.italic=!0),J.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=N(K,Z)),parseFloat(J.textIndent||0)>0&&(K=new l.default().insert(" ").concat(K)),K}function Ae(W,K){var Z=W.data;if(W.parentNode.tagName==="O:P")return K.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return K;if(!F(W.parentNode).whiteSpace.startsWith("pre")){var J=function(le,se){return se=se.replace(/[^\u00a0]/g,""),se.length<1&&le?" ":se};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,J.bind(J,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,J.bind(J,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,J.bind(J,!1)))}return K.insert(Z)}t.default=C,t.matchAttributor=z,t.matchBlot=V,t.matchNewline=fe,t.matchSpacing=he,t.matchText=Ae},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(6),f=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function c(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return c(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(m){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(f.default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function S(x,I){var D=[],$=!0,B=!1,U=void 0;try{for(var G=x[Symbol.iterator](),q;!($=(q=G.next()).done)&&(D.push(q.value),!(I&&D.length===I));$=!0);}catch(R){B=!0,U=R}finally{try{!$&&G.return&&G.return()}finally{if(B)throw U}}return D}return function(x,I){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return S(x,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(x,I){for(var D=0;D<I.length;D++){var $=I[D];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(x,$.key,$)}}return function(x,I,D){return I&&S(x.prototype,I),D&&S(x,D),x}}(),d=o(2),f=m(d),h=o(0),c=m(h),l=o(5),a=m(l),u=o(10),v=m(u),p=o(9),b=m(p);function m(S){return S&&S.__esModule?S:{default:S}}function y(S,x,I){return x in S?Object.defineProperty(S,x,{value:I,enumerable:!0,configurable:!0,writable:!0}):S[x]=I,S}function _(S,x){if(!(S instanceof x))throw new TypeError("Cannot call a class as a function")}function g(S,x){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:S}function O(S,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);S.prototype=Object.create(x&&x.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(S,x):S.__proto__=x)}var k=(0,v.default)("quill:toolbar"),T=function(S){O(x,S);function x(I,D){_(this,x);var $=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,I,D));if(Array.isArray($.options.container)){var B=document.createElement("div");P(B,$.options.container),I.container.parentNode.insertBefore(B,I.container),$.container=B}else typeof $.options.container=="string"?$.container=document.querySelector($.options.container):$.container=$.options.container;if(!($.container instanceof HTMLElement)){var U;return U=k.error("Container required for toolbar",$.options),g($,U)}return $.container.classList.add("ql-toolbar"),$.controls=[],$.handlers={},Object.keys($.options.handlers).forEach(function(G){$.addHandler(G,$.options.handlers[G])}),[].forEach.call($.container.querySelectorAll("button, select"),function(G){$.attach(G)}),$.quill.on(a.default.events.EDITOR_CHANGE,function(G,q){G===a.default.events.SELECTION_CHANGE&&$.update(q)}),$.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var G=$.quill.selection.getRange(),q=i(G,1),R=q[0];$.update(R)}),$}return s(x,[{key:"addHandler",value:function(D,$){this.handlers[D]=$}},{key:"attach",value:function(D){var $=this,B=[].find.call(D.classList,function(G){return G.indexOf("ql-")===0});if(!!B){if(B=B.slice("ql-".length),D.tagName==="BUTTON"&&D.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){k.warn("ignoring attaching to disabled format",B,D);return}if(c.default.query(B)==null){k.warn("ignoring attaching to nonexistent format",B,D);return}}var U=D.tagName==="SELECT"?"change":"click";D.addEventListener(U,function(G){var q=void 0;if(D.tagName==="SELECT"){if(D.selectedIndex<0)return;var R=D.options[D.selectedIndex];R.hasAttribute("selected")?q=!1:q=R.value||!1}else D.classList.contains("ql-active")?q=!1:q=D.value||!D.hasAttribute("value"),G.preventDefault();$.quill.focus();var E=$.quill.selection.getRange(),C=i(E,1),N=C[0];if($.handlers[B]!=null)$.handlers[B].call($,q);else if(c.default.query(B).prototype instanceof c.default.Embed){if(q=prompt("Enter "+B),!q)return;$.quill.updateContents(new f.default().retain(N.index).delete(N.length).insert(y({},B,q)),a.default.sources.USER)}else $.quill.format(B,q,a.default.sources.USER);$.update(N)}),this.controls.push([B,D])}}},{key:"update",value:function(D){var $=D==null?{}:this.quill.getFormat(D);this.controls.forEach(function(B){var U=i(B,2),G=U[0],q=U[1];if(q.tagName==="SELECT"){var R=void 0;if(D==null)R=null;else if($[G]==null)R=q.querySelector("option[selected]");else if(!Array.isArray($[G])){var E=$[G];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),R=q.querySelector('option[value="'+E+'"]')}R==null?(q.value="",q.selectedIndex=-1):R.selected=!0}else if(D==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var C=$[G]===q.getAttribute("value")||$[G]!=null&&$[G].toString()===q.getAttribute("value")||$[G]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",C)}else q.classList.toggle("ql-active",$[G]!=null)})}}]),x}(b.default);T.DEFAULTS={};function A(S,x,I){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+x),I!=null&&(D.value=I),S.appendChild(D)}function P(S,x){Array.isArray(x[0])||(x=[x]),x.forEach(function(I){var D=document.createElement("span");D.classList.add("ql-formats"),I.forEach(function($){if(typeof $=="string")A(D,$);else{var B=Object.keys($)[0],U=$[B];Array.isArray(U)?w(D,B,U):A(D,B,U)}}),S.appendChild(D)})}function w(S,x,I){var D=document.createElement("select");D.classList.add("ql-"+x),I.forEach(function($){var B=document.createElement("option");$!==!1?B.setAttribute("value",$):B.setAttribute("selected","selected"),D.appendChild(B)}),S.appendChild(D)}T.DEFAULTS={container:null,handlers:{clean:function(){var x=this,I=this.quill.getSelection();if(I!=null)if(I.length==0){var D=this.quill.getFormat();Object.keys(D).forEach(function($){c.default.query($,c.default.Scope.INLINE)!=null&&x.quill.format($,!1)})}else this.quill.removeFormat(I,a.default.sources.USER)},direction:function(x){var I=this.quill.getFormat().align;x==="rtl"&&I==null?this.quill.format("align","right",a.default.sources.USER):!x&&I==="right"&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",x,a.default.sources.USER)},indent:function(x){var I=this.quill.getSelection(),D=this.quill.getFormat(I),$=parseInt(D.indent||0);if(x==="+1"||x==="-1"){var B=x==="+1"?1:-1;D.direction==="rtl"&&(B*=-1),this.quill.format("indent",$+B,a.default.sources.USER)}},link:function(x){x===!0&&(x=prompt("Enter link URL:")),this.quill.format("link",x,a.default.sources.USER)},list:function(x){var I=this.quill.getSelection(),D=this.quill.getFormat(I);x==="check"?D.list==="checked"||D.list==="unchecked"?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",x,a.default.sources.USER)}}},t.default=T,t.addControls=P},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(28),f=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function c(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){c(this,p);var y=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return y.label.innerHTML=m,y.container.classList.add("ql-color-picker"),[].slice.call(y.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),y}return i(p,[{key:"buildItem",value:function(m){var y=s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,m);return y.style.backgroundColor=m.getAttribute("value")||"",y}},{key:"selectItem",value:function(m,y){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,y);var _=this.label.querySelector(".ql-color-label"),g=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=g:_.style.fill=g)}}]),p}(f.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(28),f=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function c(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){c(this,p);var y=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return y.container.classList.add("ql-icon-picker"),[].forEach.call(y.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),y.defaultItem=y.container.querySelector(".ql-selected"),y.selectItem(y.defaultItem),y}return i(p,[{key:"selectItem",value:function(m,y){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,y),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),p}(f.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function f(h,c){for(var l=0;l<c.length;l++){var a=c[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,c,l){return c&&f(h.prototype,c),l&&f(h,l),h}}();function s(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function f(h,c){var l=this;s(this,f),this.quill=h,this.boundsContainer=c||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return i(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var l=c.left+c.width/2-this.root.offsetWidth/2,a=c.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=a+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>u.right&&(p=u.right-v.right,this.root.style.left=l+p+"px"),v.left<u.left&&(p=u.left-v.left,this.root.style.left=l+p+"px"),v.bottom>u.bottom){var b=v.bottom-v.top,m=c.bottom-c.top+b;this.root.style.top=a-m+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function w(S,x){var I=[],D=!0,$=!1,B=void 0;try{for(var U=S[Symbol.iterator](),G;!(D=(G=U.next()).done)&&(I.push(G.value),!(x&&I.length===x));D=!0);}catch(q){$=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if($)throw B}}return I}return function(S,x){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return w(S,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function w(S,x,I){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,x);if(D===void 0){var $=Object.getPrototypeOf(S);return $===null?void 0:w($,x,I)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(I)}},d=function(){function w(S,x){for(var I=0;I<x.length;I++){var D=x[I];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,x,I){return x&&w(S.prototype,x),I&&w(S,I),S}}(),f=o(3),h=_(f),c=o(8),l=_(c),a=o(43),u=_(a),v=o(27),p=_(v),b=o(15),m=o(41),y=_(m);function _(w){return w&&w.__esModule?w:{default:w}}function g(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")}function O(w,S){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:w}function k(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);w.prototype=Object.create(S&&S.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(w,S):w.__proto__=S)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(w){k(S,w);function S(x,I){g(this,S),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=T);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,x,I));return D.quill.container.classList.add("ql-snow"),D}return d(S,[{key:"extendToolbar",value:function(I){I.container.classList.add("ql-snow"),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),y.default),this.tooltip=new P(this.quill,this.options.bounds),I.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(D,$){I.handlers.link.call(I,!$.format.link)})}}]),S}(u.default);A.DEFAULTS=(0,h.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var x=this.quill.getSelection();if(x==null||x.length==0)return;var I=this.quill.getText(x);/^\S+@\S+\.\S+$/.test(I)&&I.indexOf("mailto:")!==0&&(I="mailto:"+I);var D=this.quill.theme.tooltip;D.edit("link",I)}else this.quill.format("link",!1)}}}}});var P=function(w){k(S,w);function S(x,I){g(this,S);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,x,I));return D.preview=D.root.querySelector("a.ql-preview"),D}return d(S,[{key:"listen",value:function(){var I=this;s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(D){I.root.classList.contains("ql-editing")?I.save():I.edit("link",I.preview.textContent),D.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(D){if(I.linkRange!=null){var $=I.linkRange;I.restoreFocus(),I.quill.formatText($,"link",!1,l.default.sources.USER),delete I.linkRange}D.preventDefault(),I.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(D,$,B){if(D!=null){if(D.length===0&&B===l.default.sources.USER){var U=I.quill.scroll.descendant(p.default,D.index),G=i(U,2),q=G[0],R=G[1];if(q!=null){I.linkRange=new b.Range(D.index-R,q.length());var E=p.default.formats(q.domNode);I.preview.textContent=E,I.preview.setAttribute("href",E),I.show(),I.position(I.quill.getBounds(I.linkRange));return}}else delete I.linkRange;I.hide()}})}},{key:"show",value:function(){s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S}(a.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=A},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),s=Y(i),d=o(36),f=o(38),h=o(64),c=o(65),l=Y(c),a=o(66),u=Y(a),v=o(67),p=Y(v),b=o(37),m=o(26),y=o(39),_=o(40),g=o(56),O=Y(g),k=o(68),T=Y(k),A=o(27),P=Y(A),w=o(69),S=Y(w),x=o(70),I=Y(x),D=o(71),$=Y(D),B=o(72),U=Y(B),G=o(73),q=Y(G),R=o(13),E=Y(R),C=o(74),N=Y(C),F=o(75),j=Y(F),L=o(57),M=Y(L),H=o(41),z=Y(H),V=o(28),Q=Y(V),ne=o(59),oe=Y(ne),fe=o(60),he=Y(fe),Fe=o(61),Ae=Y(Fe),W=o(108),K=Y(W),Z=o(62),J=Y(Z);function Y(le){return le&&le.__esModule?le:{default:le}}s.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":d.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":y.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":d.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":y.FontStyle,"attributors/style/size":_.SizeStyle},!0),s.default.register({"formats/align":d.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":y.FontClass,"formats/size":_.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":u.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":R.Code,"formats/italic":T.default,"formats/link":P.default,"formats/script":S.default,"formats/strike":I.default,"formats/underline":$.default,"formats/image":U.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":N.default,"modules/syntax":j.default,"modules/toolbar":M.default,"themes/bubble":K.default,"themes/snow":J.default,"ui/icons":z.default,"ui/picker":Q.default,"ui/icon-picker":he.default,"ui/color-picker":oe.default,"ui/tooltip":Ae.default},!0),t.default=s.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function p(b,m){for(var y=0;y<m.length;y++){var _=m[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,y){return m&&p(b.prototype,m),y&&p(b,y),b}}(),s=function p(b,m,y){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var g=Object.getPrototypeOf(b);return g===null?void 0:p(g,m,y)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(y)}},d=o(0),f=h(d);function h(p){return p&&p.__esModule?p:{default:p}}function c(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var u=function(p){a(b,p);function b(){return c(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(y,_){if(_==="+1"||_==="-1"){var g=this.value(y)||0;_=_==="+1"?g+1:g-1}return _===0?(this.remove(y),!0):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,y,_)}},{key:"canAdd",value:function(y,_){return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,y,_)||s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,y,parseInt(_))}},{key:"value",value:function(y){return parseInt(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,y))||void 0}}]),b}(f.default.Attributor.Class),v=new u("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function c(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){c(u,a);function u(){return f(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function u(v,p){for(var b=0;b<p.length;b++){var m=p[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,p,b){return p&&u(v.prototype,p),b&&u(v,b),v}}(),s=o(4),d=f(s);function f(u){return u&&u.__esModule?u:{default:u}}function h(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}function c(u,v){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:u}function l(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);u.prototype=Object.create(v&&v.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(u,v):u.__proto__=v)}var a=function(u){l(v,u);function v(){return h(this,v),c(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}(d.default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function g(O,k){for(var T=0;T<k.length;T++){var A=k[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,k,T){return k&&g(O.prototype,k),T&&g(O,T),O}}(),s=function g(O,k,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,k);if(A===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:g(P,k,T)}else{if("value"in A)return A.value;var w=A.get;return w===void 0?void 0:w.call(T)}},d=o(0),f=u(d),h=o(4),c=u(h),l=o(25),a=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function v(g,O,k){return O in g?Object.defineProperty(g,O,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[O]=k,g}function p(g,O){if(!(g instanceof O))throw new TypeError("Cannot call a class as a function")}function b(g,O){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:g}function m(g,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);g.prototype=Object.create(O&&O.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(g,O):g.__proto__=O)}var y=function(g){m(O,g);function O(){return p(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"format",value:function(T,A){T===_.blotName&&!A?this.replaceWith(f.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,T,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,A){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,A),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,T,A))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(c.default);y.blotName="list-item",y.tagName="LI";var _=function(g){m(O,g),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",P=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return(T==="checked"||T==="unchecked")&&P.setAttribute("data-checked",T==="checked"),P}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(k){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k)),A=function(w){if(w.target.parentNode===k){var S=T.statics.formats(k),x=f.default.find(w.target);S==="checked"?x.format("list","unchecked"):S==="unchecked"&&x.format("list","checked")}};return k.addEventListener("touchstart",A),k.addEventListener("mousedown",A),T}return i(O,[{key:"format",value:function(T,A){this.children.length>0&&this.children.tail.format(T,A)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof y)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var P=A==null?this.length():A.offset(this),w=this.split(P);w.parent.insertBefore(T,w)}}},{key:"optimize",value:function(T){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,T);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var A=f.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(a.default);_.blotName="list",_.scope=f.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[y],t.ListItem=y,t.default=_},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(56),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function c(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){c(u,a);function u(){return f(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(6),f=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function c(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return c(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),p}(f.default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function c(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){c(u,a);function u(){return f(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="strike",l.tagName="S",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function c(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){c(u,a);function u(){return f(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="underline",l.tagName="U",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),s=function b(m,y,_){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,y);if(g===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,y,_)}else{if("value"in g)return g.value;var k=g.get;return k===void 0?void 0:k.call(_)}},d=o(0),f=c(d),h=o(27);function c(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["alt","height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,g){v.indexOf(_)>-1?g?this.domNode.setAttribute(_,g):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,g)}}],[{key:"create",value:function(_){var g=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&g.setAttribute("src",this.sanitize(_)),g}},{key:"formats",value:function(_){return v.reduce(function(g,O){return _.hasAttribute(O)&&(g[O]=_.getAttribute(O)),g},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,h.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(f.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),s=function b(m,y,_){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,y);if(g===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,y,_)}else{if("value"in g)return g.value;var k=g.get;return k===void 0?void 0:k.call(_)}},d=o(4),f=o(27),h=c(f);function c(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,g){v.indexOf(_)>-1?g?this.domNode.setAttribute(_,g):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,g)}}],[{key:"create",value:function(_){var g=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return g.setAttribute("frameborder","0"),g.setAttribute("allowfullscreen",!0),g.setAttribute("src",this.sanitize(_)),g}},{key:"formats",value:function(_){return v.reduce(function(g,O){return _.hasAttribute(O)&&(g[O]=_.getAttribute(O)),g},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(d.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(g,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(g,T.key,T)}}return function(g,O,k){return O&&_(g.prototype,O),k&&_(g,k),g}}(),s=function _(g,O,k){g===null&&(g=Function.prototype);var T=Object.getOwnPropertyDescriptor(g,O);if(T===void 0){var A=Object.getPrototypeOf(g);return A===null?void 0:_(A,O,k)}else{if("value"in T)return T.value;var P=T.get;return P===void 0?void 0:P.call(k)}},d=o(35),f=u(d),h=o(5),c=u(h),l=o(9),a=u(l);function u(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function p(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function b(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var m=function(_){b(g,_);function g(){return v(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,null,[{key:"create",value:function(k){var T=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",k)),T}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),g}(f.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var y=function(_){b(g,_),i(g,null,[{key:"register",value:function(){c.default.register(m,!0)}}]);function g(){v(this,g);var O=p(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return g}(a.default);t.FormulaBlot=m,t.default=y},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function k(T,A){for(var P=0;P<A.length;P++){var w=A[P];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(T,w.key,w)}}return function(T,A,P){return A&&k(T.prototype,A),P&&k(T,P),T}}(),s=function k(T,A,P){T===null&&(T=Function.prototype);var w=Object.getOwnPropertyDescriptor(T,A);if(w===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:k(S,A,P)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(P)}},d=o(0),f=p(d),h=o(5),c=p(h),l=o(9),a=p(l),u=o(13),v=p(u);function p(k){return k&&k.__esModule?k:{default:k}}function b(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function m(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:k}function y(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(k,T):k.__proto__=T)}var _=function(k){y(T,k);function T(){return b(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var w=this.domNode.textContent;this.cachedText!==w&&((w.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(w),this.domNode.normalize(),this.attach()),this.cachedText=w)}}]),T}(v.default);_.className="ql-syntax";var g=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),O=function(k){y(T,k),i(T,null,[{key:"register",value:function(){c.default.register(g,!0),c.default.register(_,!0)}}]);function T(A,P){b(this,T);var w=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,P));if(typeof w.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return w.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){w.highlight(),S=null},w.options.interval)}),w.highlight(),w}return i(T,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var w=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(S){S.highlight(P.options.highlight)}),this.quill.update(c.default.sources.SILENT),w!=null&&this.quill.setSelection(w,c.default.sources.SILENT)}}}]),T}(a.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var T=window.hljs.highlightAuto(k);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=g,t.default=O},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function T(A,P,w){A===null&&(A=Function.prototype);var S=Object.getOwnPropertyDescriptor(A,P);if(S===void 0){var x=Object.getPrototypeOf(A);return x===null?void 0:T(x,P,w)}else{if("value"in S)return S.value;var I=S.get;return I===void 0?void 0:I.call(w)}},s=function(){function T(A,P){for(var w=0;w<P.length;w++){var S=P[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}return function(A,P,w){return P&&T(A.prototype,P),w&&T(A,w),A}}(),d=o(3),f=b(d),h=o(8),c=b(h),l=o(43),a=b(l),u=o(15),v=o(41),p=b(v);function b(T){return T&&T.__esModule?T:{default:T}}function m(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function y(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function _(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(P,w){m(this,A),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=g);var S=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,w));return S.quill.container.classList.add("ql-bubble"),S}return s(A,[{key:"extendToolbar",value:function(w){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(w.container),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),p.default)}}]),A}(a.default);O.DEFAULTS=(0,f.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(T){_(A,T);function A(P,w){m(this,A);var S=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,w));return S.quill.on(c.default.events.EDITOR_CHANGE,function(x,I,D,$){if(x===c.default.events.SELECTION_CHANGE)if(I!=null&&I.length>0&&$===c.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var B=S.quill.getLines(I.index,I.length);if(B.length===1)S.position(S.quill.getBounds(I));else{var U=B[B.length-1],G=S.quill.getIndex(U),q=Math.min(U.length()-1,I.index+I.length-G),R=S.quill.getBounds(new u.Range(G,q));S.position(R)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return s(A,[{key:"listen",value:function(){var w=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){w.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!w.root.classList.contains("ql-hidden")){var S=w.quill.getSelection();S!=null&&w.position(w.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(w){var S=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,w),x=this.root.querySelector(".ql-tooltip-arrow");if(x.style.marginLeft="",S===0)return S;x.style.marginLeft=-1*S-x.offsetWidth/2+"px"}}]),A}(l.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=k,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(ho);var po=Mr(ho.exports),Zc="",Jc="",Qc="",Uu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-editor"},[n("div",{ref:"editorContailner",staticClass:"ui-editor__contailner"})])},Hu=[],ef="";const zu={name:"ComEditor",model:{prop:"model",event:"inputtext"},props:{model:void 0},data(){return{quillRef:null,modelForm:this.model,composition:!1}},methods:{handleRenderInput:On(300,e=>{const r=e.handleGetVal();e.composition||(e.modelForm=r)}),handleGetVal(){const e=this.quillRef.getContents(),r=document.createElement("div");return new po(r).setContents(e),r.getElementsByClassName("ql-editor")[0].innerHTML},hadnleSelectionChange(e){if(!e){const r=this.handleGetVal();this.$emit("inputtext",r),this.$emit("onBlur",r)}},handleInput(e,r,n){this.handleRenderInput(this)},handleSetValue(e){const r=this.quillRef.clipboard.convert(e);this.quillRef.setContents(r,"silent")},handleCompositionstart(){this.composition=!0},handleCompositionend(){this.composition=!1}},mounted(){this.quillRef=new po(this.$refs.editorContailner,{theme:"snow"}),this.quillRef.on("text-change",this.handleInput),this.quillRef.on("selection-change",this.hadnleSelectionChange),document.querySelector(".ql-editor").addEventListener("compositionstart",this.handleCompositionstart),document.querySelector(".ql-editor").addEventListener("compositionend",this.handleCompositionend),this.$emit("onCreated",this.quillRef),this.handleSetValue(this.modelForm||"")},beforeDestroy(){var e,r;(e=document.querySelector(".ql-editor"))==null||e.removeEventListener("compositionstart",this.handleCompositionstart),(r=document.querySelector(".ql-editor"))==null||r.removeEventListener("compositionend",this.handleCompositionend),this.quillRef.off("text-change",this.handleInput),this.quillRef.off("selection-change",this.hadnleSelectionChange)},watch:{model(e,r){this.modelForm!=e&&(this.modelForm=e,this.handleSetValue(e||""))},modelForm(e){this.$emit("inputtext",e)}}},vo={};var Wu=be(zu,Uu,Hu,!1,Gu,"009bd892",null,null);function Gu(e){for(let r in vo)this[r]=vo[r]}var Dn=function(){return Wu.exports}();Dn.install=e=>{e.component(Dn.name,Dn)};const mo=Dn;var Ku=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[n("div",{staticStyle:{position:"fixed",border:"1px solid #4d6bfe","z-index":"99999",right:"10px","background-color":"#FFF",bottom:"100px","border-radius":"50%",height:"40px",width:"40px",display:"flex","justify-content":"center","align-items":"center"},attrs:{id:"deepseek"+e.idKey},on:{click:function(t){e.show=!0}}},[n("svg",{staticClass:"icon",attrs:{t:"1745995428048",viewBox:"0 0 1391 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12074",width:"32",height:"32"}},[n("path",{attrs:{d:"M1333.74443323 82.22042509c-13.80988113-6.90651166-19.77216769 6.25765149-27.83971486 12.94735271-2.7494075 2.15867766-5.09661597 4.96464441-7.44382443 7.55380074-20.17908001 22.01097094-43.75485659 36.47128333-74.589069 34.74465541-45.04943475-2.58915632-83.51757347 11.86958497-117.50810569 47.04629015-7.2285851-43.37779501-31.23798253-69.2740715-67.78939144-85.89149046-19.15315822-8.63156848-38.46813872-17.26470805-51.87582082-36.04080467-9.33227462-13.37940245-11.86958497-28.2701935-16.56243082-42.94417414-2.96778901-8.8483789-5.93557805-17.91199713-15.91514173-19.42338573-10.87194282-1.72662791-15.10760146 7.55380073-19.36996865 15.3228408-16.99448057 31.72344934-23.6040562 66.68491519-22.93005859 102.07685969 1.45797153 79.63383898 34.42258196 143.08073766 99.86633603 188.18516058 7.44539552 5.17831264 9.36055423 10.35819639 7.01334578 17.91042602-4.45089798 15.53808012-9.79260399 30.6456816-14.45874129 46.18376174-2.9693601 9.92771773-7.418687 12.0848243-17.85858007 7.76904006-35.90569092-15.3228408-66.92843413-37.9826719-94.36280776-65.38876592-46.53254371-45.9685224-88.61576053-96.6833077-141.08388229-136.39103645a620.44857966 620.44857966 0 0 0-37.41550843-26.11308694c-53.54746058-53.0887023 7.01334578-96.68173661 21.0416084-101.86162035 14.6472721-5.39512307 5.09818706-23.95440928-42.29845612-23.73916995s-90.74772965 16.40217963-145.99510964 37.98267191c-8.09111351 3.2364454-16.59071043 5.6103624-25.27569597 7.55380074-50.17590143-9.71247839-102.23868196-11.86958497-156.65024201-5.61193348-102.42721275 11.65434565-184.24643792 61.07455278-244.40190308 145.45465466-72.24186053 101.4295706-89.26462071 216.6721645-68.4115431 336.87626062 21.85071977 126.68012914 85.21592177 231.56295556 182.54651857 313.56914048 100.94410379 85.02739095 217.18433986 126.68012914 349.79847589 118.69584973 80.54978445-4.74940507 170.2181753-15.75489055 271.37751842-103.15776961 25.51921492 12.94892381 52.30629946 18.12880755 96.71001624 22.01254203 34.23248007 3.2364454 67.17038198-1.72662791 92.66288839-7.12175096 39.95124769-8.63156848 37.17198947-46.39900106 22.7399567-53.30394163-117.10276448-55.67942971-91.39501876-33.01959858-114.755556-51.36207439 59.50817604-71.86479892 149.17656689-146.53556459 184.24643795-388.45514546 2.77768711-19.20657529 0.43047867-31.29139958 0-46.82947971-0.21681042-9.49566798 1.88687908-13.16573423 12.54358259-14.24350198 29.32282382-3.45325582 57.80982774-11.65434565 83.9496232-26.32832626 75.85536753-42.29845616 106.47276951-111.78933809 113.70292571-195.09167222 1.07933883-12.73211339-0.21523932-25.89627652-13.40768208-32.58597776M672.59048267 831.93671913c-113.46097785-91.07137422-168.51982701-121.06819563-191.25978372-119.77361748-21.25684774 1.29457817-17.42653031 26.11308695-12.76039301 42.29845614 4.88294773 15.97012989 11.27571295 26.97561536 20.20421747 41.00387801 6.15238845 9.28042865 10.41475564 23.09188086-6.17595481 33.45007725-36.55298001 23.09188086-100.08157538-7.76904006-103.04779332-9.27885757-73.96848843-44.45713381-135.82544403-103.1577696-179.39176984-183.43732658-42.08164574-77.25992199-66.4948133-160.1302064-70.54194114-248.61085317-1.07933883-21.36525295 5.09818706-28.91905367 25.89784762-32.80435928a250.87636497 250.87636497 0 0 1 83.11223228-2.15710656c115.83646593 17.26627914 214.46006978 70.138171 297.11354374 153.8725549 47.18140388 47.69200813 82.87028441 104.66601601 119.66521225 160.34544572 39.08871926 59.12954337 81.17193611 115.45626214 134.71939669 161.63845278 18.90963927 16.18536923 33.98896113 28.48700395 48.44770242 37.55062216-43.56632578 4.96464441-116.26537349 6.04241215-165.98251663-34.09736632m54.40998899-357.16217477c0-9.49566798 7.44696661-17.04946873 16.80594974-17.04946872q3.18302835 0.05498814 5.71876762 1.07933883a16.91435498 16.91435498 0 0 1 10.84523431 15.97012989 16.83265829 16.83265829 0 0 1-16.77924123 17.04946872 16.6441275 16.6441275 0 0 1-16.59071044-17.04946872m168.95187674 88.48064679c-10.81852576 4.53259466-21.66218896 8.41790022-32.10208201 8.8483789-16.13195215 0.8640995-33.7737218-5.82560173-43.32280686-14.02669155-14.89079105-12.73368447-25.52078602-19.85543545-29.97168398-42.08321683-1.91515871-9.49566798-0.8640995-24.16964861 0.83739098-32.58597774 3.83031742-18.12880755-0.43204976-29.78158209-12.94892381-40.35658891-10.19637413-8.63313957-23.17357754-11.00705657-37.41550843-11.00705657-5.31499747 0-10.19637413-2.37234591-13.81145222-4.31578423a14.16180529 14.16180529 0 0 1-6.15081735-19.85386437c1.48310897-3.02120608 8.71326515-10.35976749 10.41318453-11.65434564 19.34011795-11.2222959 41.64959598-7.55222964 62.25915463 0.8640995 19.1264497 7.9842794 33.55848246 22.65983111 54.4115601 43.37779497 21.25684774 25.03374811 25.08716515 31.94025977 37.17198946 50.71478532 9.57736465 14.67398064 18.29062981 29.78158209 24.22620784 47.04471904 3.64021553 10.79181723-1.0526303 19.63862503-13.59621288 25.03374811",fill:"#4D6BFE","p-id":"12075"}})])]),n("el-drawer",e._b({attrs:{title:"Deepseek",visible:e.show,size:"500px",modal:!1},on:{"update:visible":function(t){e.show=t}}},"el-drawer",e.$attrs,!1),[n("div",{staticStyle:{padding:"10px",height:"100%",display:"flex","flex-direction":"column"}},[n("div",{staticStyle:{flex:"1","border-bottom":"1px solid #f1f1f1",overflow:"auto","margin-bottom":"15px"}},e._l(e.messageList,function(t){return n("div",{key:t.id,staticClass:"chat--item",class:{"chat--ai":t.role!="user"}},[n("div",{staticClass:"chat--flag"},[t.role!="user"?n("svg",{staticClass:"icon",attrs:{t:"1745995428048",viewBox:"0 0 1391 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12074",width:"32",height:"32"}},[n("path",{attrs:{d:"M1333.74443323 82.22042509c-13.80988113-6.90651166-19.77216769 6.25765149-27.83971486 12.94735271-2.7494075 2.15867766-5.09661597 4.96464441-7.44382443 7.55380074-20.17908001 22.01097094-43.75485659 36.47128333-74.589069 34.74465541-45.04943475-2.58915632-83.51757347 11.86958497-117.50810569 47.04629015-7.2285851-43.37779501-31.23798253-69.2740715-67.78939144-85.89149046-19.15315822-8.63156848-38.46813872-17.26470805-51.87582082-36.04080467-9.33227462-13.37940245-11.86958497-28.2701935-16.56243082-42.94417414-2.96778901-8.8483789-5.93557805-17.91199713-15.91514173-19.42338573-10.87194282-1.72662791-15.10760146 7.55380073-19.36996865 15.3228408-16.99448057 31.72344934-23.6040562 66.68491519-22.93005859 102.07685969 1.45797153 79.63383898 34.42258196 143.08073766 99.86633603 188.18516058 7.44539552 5.17831264 9.36055423 10.35819639 7.01334578 17.91042602-4.45089798 15.53808012-9.79260399 30.6456816-14.45874129 46.18376174-2.9693601 9.92771773-7.418687 12.0848243-17.85858007 7.76904006-35.90569092-15.3228408-66.92843413-37.9826719-94.36280776-65.38876592-46.53254371-45.9685224-88.61576053-96.6833077-141.08388229-136.39103645a620.44857966 620.44857966 0 0 0-37.41550843-26.11308694c-53.54746058-53.0887023 7.01334578-96.68173661 21.0416084-101.86162035 14.6472721-5.39512307 5.09818706-23.95440928-42.29845612-23.73916995s-90.74772965 16.40217963-145.99510964 37.98267191c-8.09111351 3.2364454-16.59071043 5.6103624-25.27569597 7.55380074-50.17590143-9.71247839-102.23868196-11.86958497-156.65024201-5.61193348-102.42721275 11.65434565-184.24643792 61.07455278-244.40190308 145.45465466-72.24186053 101.4295706-89.26462071 216.6721645-68.4115431 336.87626062 21.85071977 126.68012914 85.21592177 231.56295556 182.54651857 313.56914048 100.94410379 85.02739095 217.18433986 126.68012914 349.79847589 118.69584973 80.54978445-4.74940507 170.2181753-15.75489055 271.37751842-103.15776961 25.51921492 12.94892381 52.30629946 18.12880755 96.71001624 22.01254203 34.23248007 3.2364454 67.17038198-1.72662791 92.66288839-7.12175096 39.95124769-8.63156848 37.17198947-46.39900106 22.7399567-53.30394163-117.10276448-55.67942971-91.39501876-33.01959858-114.755556-51.36207439 59.50817604-71.86479892 149.17656689-146.53556459 184.24643795-388.45514546 2.77768711-19.20657529 0.43047867-31.29139958 0-46.82947971-0.21681042-9.49566798 1.88687908-13.16573423 12.54358259-14.24350198 29.32282382-3.45325582 57.80982774-11.65434565 83.9496232-26.32832626 75.85536753-42.29845616 106.47276951-111.78933809 113.70292571-195.09167222 1.07933883-12.73211339-0.21523932-25.89627652-13.40768208-32.58597776M672.59048267 831.93671913c-113.46097785-91.07137422-168.51982701-121.06819563-191.25978372-119.77361748-21.25684774 1.29457817-17.42653031 26.11308695-12.76039301 42.29845614 4.88294773 15.97012989 11.27571295 26.97561536 20.20421747 41.00387801 6.15238845 9.28042865 10.41475564 23.09188086-6.17595481 33.45007725-36.55298001 23.09188086-100.08157538-7.76904006-103.04779332-9.27885757-73.96848843-44.45713381-135.82544403-103.1577696-179.39176984-183.43732658-42.08164574-77.25992199-66.4948133-160.1302064-70.54194114-248.61085317-1.07933883-21.36525295 5.09818706-28.91905367 25.89784762-32.80435928a250.87636497 250.87636497 0 0 1 83.11223228-2.15710656c115.83646593 17.26627914 214.46006978 70.138171 297.11354374 153.8725549 47.18140388 47.69200813 82.87028441 104.66601601 119.66521225 160.34544572 39.08871926 59.12954337 81.17193611 115.45626214 134.71939669 161.63845278 18.90963927 16.18536923 33.98896113 28.48700395 48.44770242 37.55062216-43.56632578 4.96464441-116.26537349 6.04241215-165.98251663-34.09736632m54.40998899-357.16217477c0-9.49566798 7.44696661-17.04946873 16.80594974-17.04946872q3.18302835 0.05498814 5.71876762 1.07933883a16.91435498 16.91435498 0 0 1 10.84523431 15.97012989 16.83265829 16.83265829 0 0 1-16.77924123 17.04946872 16.6441275 16.6441275 0 0 1-16.59071044-17.04946872m168.95187674 88.48064679c-10.81852576 4.53259466-21.66218896 8.41790022-32.10208201 8.8483789-16.13195215 0.8640995-33.7737218-5.82560173-43.32280686-14.02669155-14.89079105-12.73368447-25.52078602-19.85543545-29.97168398-42.08321683-1.91515871-9.49566798-0.8640995-24.16964861 0.83739098-32.58597774 3.83031742-18.12880755-0.43204976-29.78158209-12.94892381-40.35658891-10.19637413-8.63313957-23.17357754-11.00705657-37.41550843-11.00705657-5.31499747 0-10.19637413-2.37234591-13.81145222-4.31578423a14.16180529 14.16180529 0 0 1-6.15081735-19.85386437c1.48310897-3.02120608 8.71326515-10.35976749 10.41318453-11.65434564 19.34011795-11.2222959 41.64959598-7.55222964 62.25915463 0.8640995 19.1264497 7.9842794 33.55848246 22.65983111 54.4115601 43.37779497 21.25684774 25.03374811 25.08716515 31.94025977 37.17198946 50.71478532 9.57736465 14.67398064 18.29062981 29.78158209 24.22620784 47.04471904 3.64021553 10.79181723-1.0526303 19.63862503-13.59621288 25.03374811",fill:"#4D6BFE","p-id":"12075"}})]):n("svg",{staticClass:"icon",attrs:{t:"1745995639969",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14790",width:"24",height:"24"}},[n("path",{attrs:{d:"M510.112324 1023.82403H168.810986C117.23585 1023.82403 72.075612 979.959569 72.075612 929.952164c0-114.604302 118.971552-283.631251 240.166721-341.221352a29.738889 29.738889 0 0 1 25.739576 53.622783l-0.175969 0.079987C228.672697 694.360657 131.537392 846.462514 131.537392 929.952164c0 17.357017 18.44483 34.378091 37.241599 34.378092h341.989221a29.738889 29.738889 0 1 1 0 59.477777l-0.687882-0.015997h0.031994z","p-id":"14791",fill:"#43bd85"}}),n("path",{attrs:{d:"M851.413663 1023.82403H509.456437a29.738889 29.738889 0 1 1 0-59.477777l0.687882 0.015997h-0.031995 341.301339c18.812767 0 37.241599-17.053069 37.241599-34.378091 0-83.505647-97.10331-235.591508-206.268547-287.518583a29.754886 29.754886 0 1 1 25.77157-53.638781l-0.175969-0.079986c121.211167 57.670088 240.182719 226.681039 240.182718 341.221353 0 50.007405-45.192233 93.871866-96.735373 93.871865zM514.55956 584.66751c-161.188296 0-292.333755-131.145459-292.333755-292.333755S353.371264 0 514.55956 0s292.36575 131.145459 292.36575 292.333755-131.177454 292.333755-292.36575 292.333755z m0-525.189733c-128.40993 0-232.855978 104.462046-232.855978 232.855978s104.462046 232.871975 232.855978 232.871975 232.855978-104.462046 232.855978-232.855978S642.953492 59.477777 514.55956 59.477777z","p-id":"14792",fill:"#43bd85"}}),n("path",{attrs:{d:"M347.004359 307.211198a14.877443 14.877443 0 0 1-14.877443-14.877443c0.127978-100.702692 81.729953-182.304666 182.416647-182.416647H515.02348a14.877443 14.877443 0 1 1 0 29.722891l-0.479917-0.015997h0.031994c-84.289513 0.111981-152.597772 68.404243-152.693755 152.693756v0.031994a14.877443 14.877443 0 0 1-14.861446 14.861446zM377.847058 352.387433v0.063989a15.037415 15.037415 0 1 1-15.021419-15.021418h0.047992a15.037415 15.037415 0 0 1 14.989424 14.973427z","p-id":"14793",fill:"#43bd85"}})])]),n("pre",{domProps:{textContent:e._s(t.content)}})])}),0),n("div",[n("div",{staticStyle:{"margin-bottom":"5px"}},[n("el-button",{attrs:{type:"primary",size:"mini",loading:e.loading},on:{click:e.handleSend}},[e._v(e._s(e.loading?"\u8BF7\u7A0D\u7B49":"\u53D1\u9001"))])],1),n("el-input",{attrs:{type:"textarea",placeholder:"\u6309Enter\u53EF\u53D1\u9001\u3002",readonly:e.loading},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSend(t)}},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1)])])],1)},Vu=[],tf="";const Yu={name:"ComDeepseek",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"}},data(){return{show:!1,message:"",messageList:[],loading:!1,idKey:new Date().getTime()}},mounted(){new Hr(`#deepseek${this.idKey}`)},methods:{handleSend(){console.log(this.$UICONFIG,this.$http),this.messageList.push({content:this.message,role:"user",id:new Date().getTime()}),this.$nextTick().then(()=>{this.message=""}),this.loading=!0,this.$http.post(this.$UICONFIG.deepseekApi,{message:this.message}).then(e=>{if(e.code!=1)return this.$message.warning(e.mes||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.messageList.push(We(ve({},e.data),{id:new Date().getTime()})),this.loading=!1})},handleClose(){this.show=!1,this.$emit("close"),this.$emit("update:visible",!1)}}},go={};var Xu=be(Yu,Ku,Vu,!1,Zu,"4309f316",null,null);function Zu(e){for(let r in go)this[r]=go[r]}var $n=function(){return Xu.exports}();$n.install=e=>{e.component($n.name,$n)};const yo=$n;var Ju=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("com-container",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"static-num":e.staticNum}},[n("div",{ref:"container",staticClass:"sku-comparison",attrs:{tabindex:"0"},on:{keydown:e.handleKeyDown}},[n("div",{staticClass:"header"},[n("div",{staticClass:"sku-info"},[n("div",{staticClass:"sku-code"},[e._v("SKU: "+e._s(e.currentGroup.sku))]),n("div",{staticClass:"image-counter"},[e._v(e._s(e.currentGroupIndex+1)+"/"+e._s(Object.keys(this.imageGroups).length))])]),n("div",{staticClass:"keyboard-hints"},[n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("\u2190")]),n("span",{staticClass:"desc"},[e._v("\u4E0A\u4E00\u5F20")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("\u2192")]),n("span",{staticClass:"desc"},[e._v("\u4E0B\u4E00\u5F20")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("Enter")]),n("span",{staticClass:"desc"},[e._v("\u786E\u8BA4")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("Backspace")]),n("span",{staticClass:"desc"},[e._v("\u9A73\u56DE")])])])]),n("div",{staticClass:"comparison-container"},[n("div",{staticClass:"original-section"},[n("div",{staticClass:"image-container"},[n("div",{staticClass:"image-header"},[n("div",{staticClass:"badge original"},[e._v("\u539F\u56FE")]),n("div",{staticClass:"image-title"},[e._v(e._s(e.currentGroup.title))])]),n("div",{staticClass:"image-content"},[e.currentGroup.image?n("img",{staticClass:"main-image",attrs:{src:e.currentGroup.image,alt:"\u539F\u56FE"},on:{error:e.handleImageError}}):e._e()])])]),n("div",{staticClass:"ai-main-section"},[n("div",{staticClass:"image-container"},[n("div",{staticClass:"image-header"},[n("div",{staticClass:"badge ai"},[e._v("AI\u5957\u56FE")]),n("div",{staticClass:"image-title"},[e._v(e._s(e.currentAiImage.image_type_name||"AI\u751F\u6210\u56FE\u7247"))])]),n("div",{staticClass:"image-content"},[e.currentAiImage.handle_image?n("img",{staticClass:"main-image",attrs:{src:e.currentAiImage.handle_image,alt:e.currentAiImage.image_type_name},on:{error:e.handleImageError}}):e._e()])]),n("div",{staticClass:"button-left"},[n("span",{staticClass:"el-icon-arrow-left",on:{click:function(t){return e.handleKeyDown({key:"ArrowLeft"})}}})]),n("div",{staticClass:"button-right"},[n("span",{staticClass:"el-icon-arrow-right",on:{click:function(t){return e.handleKeyDown({key:"ArrowRight"})}}})])]),n("div",{staticClass:"thumbnail-section"},[n("div",{staticClass:"thumbnail-container"},[n("div",{staticClass:"thumbnail-header"},[n("div",{staticClass:"thumbnail-count"},[e._v("\u5171 "+e._s(e.aiImagesList.length)+" \u5F20")]),e.uniqueImageTypes.length>1?n("div",{staticClass:"filter-tabs"},e._l(e.uniqueImageTypes,function(t){return n("div",{key:t.value,staticClass:"filter-tab",class:{active:e.activeFilter===t.value},on:{click:function(o){return e.setFilter(t.value)}}},[e._v(" "+e._s(t.name)+" "),n("span",{staticClass:"tab-count"},[e._v(e._s(t.count))])])}),0):e._e()]),n("div",{staticClass:"thumbnail-grid"},e._l(e.filteredImages,function(t,o){return n("div",{key:t.task_id,staticClass:"thumbnail-item",class:{active:e.currentAiIndex===o,matched:e.matchedImages.includes(t.handle_image),rejected:e.rejectImages.includes(t.handle_image)},on:{click:function(i){return e.selectAiImage(o)},mouseenter:function(i){e.hoverThumbnail=o},mouseleave:function(i){e.hoverThumbnail=-1}}},[n("div",{staticClass:"thumbnail-image-container"},[n("img",{staticClass:"thumbnail-image",attrs:{src:t.handle_image,alt:t.image_type_name},on:{error:e.handleThumbnailError}}),t.status?n("div",{staticClass:"status-indicator"},[n("span",{staticClass:"status-icon",class:e.matchedImages.includes(t.handle_image)?"matched":"pending"},[e._v(" "+e._s(e.matchedImages.includes(t.handle_image)?"\u2713":"\u2717")+" ")])]):e._e(),e.currentAiIndex===o?n("div",{staticClass:"selected-indicator"},[n("div",{staticClass:"selected-border"})]):e._e(),e.hoverThumbnail===o?n("div",{staticClass:"thumbnail-overlay"},[n("div",{staticClass:"overlay-content"},[n("div",{staticClass:"overlay-title"},[e._v(e._s(t.image_type_name))])])]):e._e()])])}),0)])])]),e.showFeedback?n("div",{staticClass:"feedback-toast",class:e.feedbackType},[e._v(" "+e._s(e.feedbackMessage)+" ")]):e._e()])])},Qu=[],nf="";const ec={name:"ComAiImages",props:{staticNum:{type:Number,default:0}},data(){return{loading:!0,sourceId:"",currentPid:null,currentGroupIndex:0,imageGroups:{},matchedImages:[],rejectImages:[],currentAiIndex:0,activeFilter:"all",showFeedback:!1,feedbackMessage:"",feedbackType:"",hoverThumbnail:-1}},computed:{currentAiImage(){return this.filteredImages[this.currentAiIndex]||{}},currentPidData(){return this.currentPid?Object.values(this.imageGroups[this.currentPid]):[]},currentGroup(){return this.currentPidData[this.currentGroupIndex]||{}},aiImagesList(){return this.currentGroup.tplGroupImages||[]},uniqueImageTypes(){const e={};this.aiImagesList.forEach(n=>{const t=n.image_type;e[t]||(e[t]={value:t,name:n.image_type_name,count:0}),e[t].count++});const r=Object.values(e);return r.unshift({value:"all",name:"\u5168\u90E8",count:this.aiImagesList.length}),r},filteredImages(){return this.activeFilter==="all"?this.aiImagesList:this.aiImagesList.filter(e=>e.image_type==this.activeFilter)}},watch:{},async created(){this.refreshData()},methods:{async refreshData(){var r,n;this.loading=!0;const e=await this.$http.post(this.$UICONFIG.getAiSourceList,{page:1});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u67E5\u8BE2\u5931\u8D25\uFF01");if(!((n=(r=e.data)==null?void 0:r.sourceIds)==null?void 0:n.length))return this.$message.warning("\u65E0\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");this.sourceId=e.data.sourceIds[0],this.processApiData()},async processApiData(){try{if(!this.sourceId)return;this.loading=!0;const e=await this.$http.post(this.$UICONFIG.getAiTplGroupApi,{sourceIds:[this.sourceId]});this.loading=!1;const r=Object.keys(e.data);if(r.length===0)return;this.currentPid=r[0],this.imageGroups=e.data;return}catch(e){console.error("\u5904\u7406API\u6570\u636E\u65F6\u51FA\u9519:",e)}},getMockData(){return{code:1,msg:"Success",data:{"3375":{"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg":{"6":[{task_id:3,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:6,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/c114a635c6e51f4d66161259ec6e75c8.png",group_task_id:2,image_type:6,image_type_name:"\u573A\u666F\u56FE"},{task_id:4,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:6,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/13ebf825aaa226702fbfdce7528f4048.png",group_task_id:2,image_type:6,image_type_name:"\u573A\u666F\u56FE"}],"1":[{task_id:5,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:1,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/a43334106f68787f3b224941e6a8ec75.jpeg",group_task_id:2,image_type:1,image_type_name:"\u529F\u80FD/\u7EC6\u8282\u56FE"}],"2":[{task_id:9,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:2,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/ed0c6979a5c704528662e6b3495dcff9.jpeg",group_task_id:2,image_type:2,image_type_name:"\u5C3A\u5BF8\u56FE"}]}}}}},handleKeyDown(e){switch(e.preventDefault&&e.preventDefault(),e.key){case"ArrowLeft":this.prevAiImage();break;case"ArrowRight":this.nextAiImage();break;case"Enter":this.confirmMatch();break;case"Backspace":this.rejectMatch();break;case" ":e.preventDefault(),this.skipImage();break}},prevAiImage(){this.currentAiIndex>0&&this.currentAiIndex--},nextAiImage(){this.currentAiIndex<this.aiImagesList.length-1?this.currentAiIndex++:this.currentGroupIndex<Object.keys(this.imageGroups).length-1?(this.currentGroupIndex++,this.currentAiIndex=0):(this.currentGroupIndex=0,this.currentAiIndex=0,this.refreshData())},selectAiImage(e){this.currentAiIndex=e},setFilter(e){this.activeFilter=e,this.currentAiIndex=0},async confirmMatch(){if(!this.loading&&!this.matchedImages.includes(this.currentAiImage.handle_image)){this.loading=!0;const e=await this.$http.post(this.$UICONFIG.passAiTplGroupApi,{task_id:this.currentAiImage.task_id,handle_image:this.currentAiImage.handle_image});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.matchedImages.push(this.currentAiImage.handle_image),this.handleShowFeedback(`\u56FE\u7247 #${this.currentAiImage.task_id} \u5339\u914D\u6210\u529F\uFF01`,"success"),this.nextAiImage()}},async rejectMatch(){if(!this.loading&&!this.rejectImages.includes(this.currentAiImage.handle_image)){this.loading=!0;const e=await this.$http.post(this.$UICONFIG.rejectAiTplGroupApi,{task_id:this.currentAiImage.task_id,handle_image:this.currentAiImage.handle_image});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.rejectImages.push(this.currentAiImage.handle_image),this.handleShowFeedback(`\u56FE\u7247 #${this.currentAiImage.task_id} \u5DF2\u9A73\u56DE`,"error"),this.nextAiImage()}},skipImage(){this.nextAiImage()},handleShowFeedback(e,r="info"){this.feedbackMessage=e,this.feedbackType=r,this.showFeedback=!0,setTimeout(()=>{this.showFeedback=!1},1e3)},handleImageError(e){e.target.src=""},handleThumbnailError(e){e.target.src=""}}},bo={};var tc=be(ec,Ju,Qu,!1,nc,"0755eb8f",null,null);function nc(e){for(let r in bo)this[r]=bo[r]}var Rn=function(){return tc.exports}();Rn.install=e=>{e.component(Rn.name,Rn)};const rc=Rn;var ic=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},oc=[];const ac={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},_o={};var lc=be(ac,ic,oc,!1,sc,null,null,null);function sc(e){for(let r in _o)this[r]=_o[r]}var uc=function(){return lc.exports}();const cc=Re.default.extend(uc);var fc={requestLoading:{bind(e,r,{context:n}){if(!n.$store)return;const t=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),i=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),d=new cc({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:s,fullscreen:!1}});e.instance=d,e.mask=d.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},dc=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.title,visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[n("el-button",{class:e.cancelButtonClass,attrs:{size:"small"},on:{click:e.handleClose}},[e._v(e._s(e.cancelButtonText))]),n("el-button",{class:e.confirmButtonClass,attrs:{size:"small",type:"primary",loading:e.buttonLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmButtonText)+" ")])])]},proxy:!0}],null,!0)},[n("div",[n("el-form",{ref:"rulesForm",attrs:{rules:e.formRules,model:e.formData,"label-width":e.labelWidth}},e._l(e.items,function(t,o){return n("el-form-item",{key:o,attrs:{label:t.label,prop:t.field}},[t.type?n("com-form-item",e._b({attrs:{type:t.type},model:{value:e.formData[t.field],callback:function(i){e.$set(e.formData,t.field,i)},expression:"formData[item.field]"}},"com-form-item",t.attrs,!1)):e._e()],1)}),1)],1)])},hc=[],of="";const Vt={confirm:"confirm",cancel:"cancel"},pc={data(){return{visible:!1,buttonLoading:!1,action:"",labelWidth:"120px",uid:1,title:"",formData:{},items:[],rules:{},confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",confirmButtonClass:"",cancelButtonClass:"",resolve:()=>{},beforeConfirm:null,beforeCancel:null}},computed:{formRules(){return Object.entries(this.rules).reduce((e,[r,n])=>{const{required:t,message:o}=n;return e[r]=We(ve({},n),{required:!!(t||o)}),e},{})}},watch:{visible(e){e&&(this.uid++,this.buttonLoading=!1,this.$nextTick(()=>{this.$refs.rulesForm.clearValidate()}))}},methods:{getSafeClose(){const e=this.uid;return()=>{this.$nextTick(()=>{e===this.uid&&this.doClose()})}},handleClose(){this.triggerCallBack(Vt.cancel)},triggerCallBack(e){const r={[Vt.confirm]:"beforeConfirm",[Vt.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===Vt.confirm,n({formData:this.formData,done:this.getSafeClose(),instance:this,stopLoading:()=>{this.buttonLoading=!1}})):this.doClose()},handleConfirm(){this.$refs.rulesForm.validate(e=>{e&&this.triggerCallBack(Vt.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},Oo={};var vc=be(pc,dc,hc,!1,mc,null,null,null);function mc(e){for(let r in Oo)this[r]=Oo[r]}var gc=function(){return vc.exports}();const yc={title:"",items:[]},bc=Re.default.extend(gc);let So,Yt,Cr=[];const _c=()=>{Yt=new bc({el:document.createElement("div")})},Oc=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},Sc=e=>{const r=Oc(e.items);Object.entries(We(ve({},e),{formData:r})).forEach(([n,t])=>{Yt[n]=t}),document.body.appendChild(Yt.$el),Re.default.nextTick(()=>{Yt.visible=!0})},Ec=()=>{Yt||_c(),Cr.length>0&&(So=Cr.shift(),Sc(So))},wc=e=>new Promise((r,n)=>{Cr.push(We(ve(ve({},yc),e),{resolve:r,reject:n})),Ec()}),xc=[Ir,Pr,Dr,Rr,Wr,Yr,Jr,Ai,lo,uo,fo,mo,yo,rc],Eo={version:"dev",install:(e,r={config:{}})=>{xc.forEach(o=>e.component(o.name,o));const n={tablePreset:{separator:"@",presetPropMap:{image(o,{field:i,params:s}){const d=o[i].split("|"),f=s.size||59;return["com-image",{attrs:{src:d,size:f,lazy:!0}}]},link(o,{field:i,params:s}){const d=o[i];let{target:f,href:h,type:c,underline:l}=s;return f=f||"_blank",h=o[h]||d,c=c||"primary",l=!!l,["el-link",{attrs:{target:f,href:h,type:c,underline:l}},d]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=ve(ve({},n),r.config),Object.entries(fc).forEach(([o,i])=>{e.directive(o,i)}),e.prototype.$formDialog=wc,e.prototype.$jump=(o,i="_blank")=>{window.open(o,i)};const t=new e;e.prototype.$toChildren=t},ComTemplate:Ir,ComMenu:Pr,ComTabs:Dr,ComTool:Rr,ComDialog:Wr,ComFormItem:Yr,ComOperation:Jr,ComSearch:Ai,ComTable:lo,ComImage:uo,ComContainer:fo,ComEditor:mo,ComDeepseek:yo};try{Eo.version=require("../package.json").version}catch{console.log("no require")}return Eo});
64
+ `)}return K}function Fe(W,K){var Z={},J=W.style||{};return J.fontStyle&&F(W).fontStyle==="italic"&&(Z.italic=!0),J.fontWeight&&(F(W).fontWeight.startsWith("bold")||parseInt(F(W).fontWeight)>=700)&&(Z.bold=!0),Object.keys(Z).length>0&&(K=N(K,Z)),parseFloat(J.textIndent||0)>0&&(K=new l.default().insert(" ").concat(K)),K}function Ae(W,K){var Z=W.data;if(W.parentNode.tagName==="O:P")return K.insert(Z.trim());if(Z.trim().length===0&&W.parentNode.classList.contains("ql-clipboard"))return K;if(!F(W.parentNode).whiteSpace.startsWith("pre")){var J=function(le,se){return se=se.replace(/[^\u00a0]/g,""),se.length<1&&le?" ":se};Z=Z.replace(/\r\n/g," ").replace(/\n/g," "),Z=Z.replace(/\s\s+/g,J.bind(J,!0)),(W.previousSibling==null&&L(W.parentNode)||W.previousSibling!=null&&L(W.previousSibling))&&(Z=Z.replace(/^\s+/,J.bind(J,!1))),(W.nextSibling==null&&L(W.parentNode)||W.nextSibling!=null&&L(W.nextSibling))&&(Z=Z.replace(/\s+$/,J.bind(J,!1)))}return K.insert(Z)}t.default=C,t.matchAttributor=z,t.matchBlot=V,t.matchNewline=fe,t.matchSpacing=he,t.matchText=Ae},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(6),f=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function c(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return c(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,[{key:"optimize",value:function(m){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"optimize",this).call(this,m),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),p}(f.default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var i=function(){function S(x,I){var D=[],$=!0,B=!1,U=void 0;try{for(var G=x[Symbol.iterator](),q;!($=(q=G.next()).done)&&(D.push(q.value),!(I&&D.length===I));$=!0);}catch(R){B=!0,U=R}finally{try{!$&&G.return&&G.return()}finally{if(B)throw U}}return D}return function(x,I){if(Array.isArray(x))return x;if(Symbol.iterator in Object(x))return S(x,I);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function(){function S(x,I){for(var D=0;D<I.length;D++){var $=I[D];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(x,$.key,$)}}return function(x,I,D){return I&&S(x.prototype,I),D&&S(x,D),x}}(),d=o(2),f=m(d),h=o(0),c=m(h),l=o(5),a=m(l),u=o(10),v=m(u),p=o(9),b=m(p);function m(S){return S&&S.__esModule?S:{default:S}}function y(S,x,I){return x in S?Object.defineProperty(S,x,{value:I,enumerable:!0,configurable:!0,writable:!0}):S[x]=I,S}function _(S,x){if(!(S instanceof x))throw new TypeError("Cannot call a class as a function")}function g(S,x){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:S}function O(S,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);S.prototype=Object.create(x&&x.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(S,x):S.__proto__=x)}var k=(0,v.default)("quill:toolbar"),T=function(S){O(x,S);function x(I,D){_(this,x);var $=g(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,I,D));if(Array.isArray($.options.container)){var B=document.createElement("div");P(B,$.options.container),I.container.parentNode.insertBefore(B,I.container),$.container=B}else typeof $.options.container=="string"?$.container=document.querySelector($.options.container):$.container=$.options.container;if(!($.container instanceof HTMLElement)){var U;return U=k.error("Container required for toolbar",$.options),g($,U)}return $.container.classList.add("ql-toolbar"),$.controls=[],$.handlers={},Object.keys($.options.handlers).forEach(function(G){$.addHandler(G,$.options.handlers[G])}),[].forEach.call($.container.querySelectorAll("button, select"),function(G){$.attach(G)}),$.quill.on(a.default.events.EDITOR_CHANGE,function(G,q){G===a.default.events.SELECTION_CHANGE&&$.update(q)}),$.quill.on(a.default.events.SCROLL_OPTIMIZE,function(){var G=$.quill.selection.getRange(),q=i(G,1),R=q[0];$.update(R)}),$}return s(x,[{key:"addHandler",value:function(D,$){this.handlers[D]=$}},{key:"attach",value:function(D){var $=this,B=[].find.call(D.classList,function(G){return G.indexOf("ql-")===0});if(!!B){if(B=B.slice("ql-".length),D.tagName==="BUTTON"&&D.setAttribute("type","button"),this.handlers[B]==null){if(this.quill.scroll.whitelist!=null&&this.quill.scroll.whitelist[B]==null){k.warn("ignoring attaching to disabled format",B,D);return}if(c.default.query(B)==null){k.warn("ignoring attaching to nonexistent format",B,D);return}}var U=D.tagName==="SELECT"?"change":"click";D.addEventListener(U,function(G){var q=void 0;if(D.tagName==="SELECT"){if(D.selectedIndex<0)return;var R=D.options[D.selectedIndex];R.hasAttribute("selected")?q=!1:q=R.value||!1}else D.classList.contains("ql-active")?q=!1:q=D.value||!D.hasAttribute("value"),G.preventDefault();$.quill.focus();var E=$.quill.selection.getRange(),C=i(E,1),N=C[0];if($.handlers[B]!=null)$.handlers[B].call($,q);else if(c.default.query(B).prototype instanceof c.default.Embed){if(q=prompt("Enter "+B),!q)return;$.quill.updateContents(new f.default().retain(N.index).delete(N.length).insert(y({},B,q)),a.default.sources.USER)}else $.quill.format(B,q,a.default.sources.USER);$.update(N)}),this.controls.push([B,D])}}},{key:"update",value:function(D){var $=D==null?{}:this.quill.getFormat(D);this.controls.forEach(function(B){var U=i(B,2),G=U[0],q=U[1];if(q.tagName==="SELECT"){var R=void 0;if(D==null)R=null;else if($[G]==null)R=q.querySelector("option[selected]");else if(!Array.isArray($[G])){var E=$[G];typeof E=="string"&&(E=E.replace(/\"/g,'\\"')),R=q.querySelector('option[value="'+E+'"]')}R==null?(q.value="",q.selectedIndex=-1):R.selected=!0}else if(D==null)q.classList.remove("ql-active");else if(q.hasAttribute("value")){var C=$[G]===q.getAttribute("value")||$[G]!=null&&$[G].toString()===q.getAttribute("value")||$[G]==null&&!q.getAttribute("value");q.classList.toggle("ql-active",C)}else q.classList.toggle("ql-active",$[G]!=null)})}}]),x}(b.default);T.DEFAULTS={};function A(S,x,I){var D=document.createElement("button");D.setAttribute("type","button"),D.classList.add("ql-"+x),I!=null&&(D.value=I),S.appendChild(D)}function P(S,x){Array.isArray(x[0])||(x=[x]),x.forEach(function(I){var D=document.createElement("span");D.classList.add("ql-formats"),I.forEach(function($){if(typeof $=="string")A(D,$);else{var B=Object.keys($)[0],U=$[B];Array.isArray(U)?w(D,B,U):A(D,B,U)}}),S.appendChild(D)})}function w(S,x,I){var D=document.createElement("select");D.classList.add("ql-"+x),I.forEach(function($){var B=document.createElement("option");$!==!1?B.setAttribute("value",$):B.setAttribute("selected","selected"),D.appendChild(B)}),S.appendChild(D)}T.DEFAULTS={container:null,handlers:{clean:function(){var x=this,I=this.quill.getSelection();if(I!=null)if(I.length==0){var D=this.quill.getFormat();Object.keys(D).forEach(function($){c.default.query($,c.default.Scope.INLINE)!=null&&x.quill.format($,!1)})}else this.quill.removeFormat(I,a.default.sources.USER)},direction:function(x){var I=this.quill.getFormat().align;x==="rtl"&&I==null?this.quill.format("align","right",a.default.sources.USER):!x&&I==="right"&&this.quill.format("align",!1,a.default.sources.USER),this.quill.format("direction",x,a.default.sources.USER)},indent:function(x){var I=this.quill.getSelection(),D=this.quill.getFormat(I),$=parseInt(D.indent||0);if(x==="+1"||x==="-1"){var B=x==="+1"?1:-1;D.direction==="rtl"&&(B*=-1),this.quill.format("indent",$+B,a.default.sources.USER)}},link:function(x){x===!0&&(x=prompt("Enter link URL:")),this.quill.format("link",x,a.default.sources.USER)},list:function(x){var I=this.quill.getSelection(),D=this.quill.getFormat(I);x==="check"?D.list==="checked"||D.list==="unchecked"?this.quill.format("list",!1,a.default.sources.USER):this.quill.format("list","unchecked",a.default.sources.USER):this.quill.format("list",x,a.default.sources.USER)}}},t.default=T,t.addControls=P},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(28),f=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function c(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){c(this,p);var y=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return y.label.innerHTML=m,y.container.classList.add("ql-color-picker"),[].slice.call(y.container.querySelectorAll(".ql-picker-item"),0,7).forEach(function(_){_.classList.add("ql-primary")}),y}return i(p,[{key:"buildItem",value:function(m){var y=s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"buildItem",this).call(this,m);return y.style.backgroundColor=m.getAttribute("value")||"",y}},{key:"selectItem",value:function(m,y){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,y);var _=this.label.querySelector(".ql-color-label"),g=m&&m.getAttribute("data-value")||"";_&&(_.tagName==="line"?_.style.stroke=g:_.style.fill=g)}}]),p}(f.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(28),f=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function c(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(b,m){c(this,p);var y=l(this,(p.__proto__||Object.getPrototypeOf(p)).call(this,b));return y.container.classList.add("ql-icon-picker"),[].forEach.call(y.container.querySelectorAll(".ql-picker-item"),function(_){_.innerHTML=m[_.getAttribute("data-value")||""]}),y.defaultItem=y.container.querySelector(".ql-selected"),y.selectItem(y.defaultItem),y}return i(p,[{key:"selectItem",value:function(m,y){s(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"selectItem",this).call(this,m,y),m=m||this.defaultItem,this.label.innerHTML=m.innerHTML}}]),p}(f.default);t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function f(h,c){for(var l=0;l<c.length;l++){var a=c[l];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(h,a.key,a)}}return function(h,c,l){return c&&f(h.prototype,c),l&&f(h,l),h}}();function s(f,h){if(!(f instanceof h))throw new TypeError("Cannot call a class as a function")}var d=function(){function f(h,c){var l=this;s(this,f),this.quill=h,this.boundsContainer=c||document.body,this.root=h.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",function(){l.root.style.marginTop=-1*l.quill.root.scrollTop+"px"}),this.hide()}return i(f,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(c){var l=c.left+c.width/2-this.root.offsetWidth/2,a=c.bottom+this.quill.root.scrollTop;this.root.style.left=l+"px",this.root.style.top=a+"px",this.root.classList.remove("ql-flip");var u=this.boundsContainer.getBoundingClientRect(),v=this.root.getBoundingClientRect(),p=0;if(v.right>u.right&&(p=u.right-v.right,this.root.style.left=l+p+"px"),v.left<u.left&&(p=u.left-v.left,this.root.style.left=l+p+"px"),v.bottom>u.bottom){var b=v.bottom-v.top,m=c.bottom-c.top+b;this.root.style.top=a-m+"px",this.root.classList.add("ql-flip")}return p}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),f}();t.default=d},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function w(S,x){var I=[],D=!0,$=!1,B=void 0;try{for(var U=S[Symbol.iterator](),G;!(D=(G=U.next()).done)&&(I.push(G.value),!(x&&I.length===x));D=!0);}catch(q){$=!0,B=q}finally{try{!D&&U.return&&U.return()}finally{if($)throw B}}return I}return function(S,x){if(Array.isArray(S))return S;if(Symbol.iterator in Object(S))return w(S,x);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=function w(S,x,I){S===null&&(S=Function.prototype);var D=Object.getOwnPropertyDescriptor(S,x);if(D===void 0){var $=Object.getPrototypeOf(S);return $===null?void 0:w($,x,I)}else{if("value"in D)return D.value;var B=D.get;return B===void 0?void 0:B.call(I)}},d=function(){function w(S,x){for(var I=0;I<x.length;I++){var D=x[I];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(S,D.key,D)}}return function(S,x,I){return x&&w(S.prototype,x),I&&w(S,I),S}}(),f=o(3),h=_(f),c=o(8),l=_(c),a=o(43),u=_(a),v=o(27),p=_(v),b=o(15),m=o(41),y=_(m);function _(w){return w&&w.__esModule?w:{default:w}}function g(w,S){if(!(w instanceof S))throw new TypeError("Cannot call a class as a function")}function O(w,S){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S&&(typeof S=="object"||typeof S=="function")?S:w}function k(w,S){if(typeof S!="function"&&S!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof S);w.prototype=Object.create(S&&S.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),S&&(Object.setPrototypeOf?Object.setPrototypeOf(w,S):w.__proto__=S)}var T=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],A=function(w){k(S,w);function S(x,I){g(this,S),I.modules.toolbar!=null&&I.modules.toolbar.container==null&&(I.modules.toolbar.container=T);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,x,I));return D.quill.container.classList.add("ql-snow"),D}return d(S,[{key:"extendToolbar",value:function(I){I.container.classList.add("ql-snow"),this.buildButtons([].slice.call(I.container.querySelectorAll("button")),y.default),this.buildPickers([].slice.call(I.container.querySelectorAll("select")),y.default),this.tooltip=new P(this.quill,this.options.bounds),I.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},function(D,$){I.handlers.link.call(I,!$.format.link)})}}]),S}(u.default);A.DEFAULTS=(0,h.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(S){if(S){var x=this.quill.getSelection();if(x==null||x.length==0)return;var I=this.quill.getText(x);/^\S+@\S+\.\S+$/.test(I)&&I.indexOf("mailto:")!==0&&(I="mailto:"+I);var D=this.quill.theme.tooltip;D.edit("link",I)}else this.quill.format("link",!1)}}}}});var P=function(w){k(S,w);function S(x,I){g(this,S);var D=O(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,x,I));return D.preview=D.root.querySelector("a.ql-preview"),D}return d(S,[{key:"listen",value:function(){var I=this;s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",function(D){I.root.classList.contains("ql-editing")?I.save():I.edit("link",I.preview.textContent),D.preventDefault()}),this.root.querySelector("a.ql-remove").addEventListener("click",function(D){if(I.linkRange!=null){var $=I.linkRange;I.restoreFocus(),I.quill.formatText($,"link",!1,l.default.sources.USER),delete I.linkRange}D.preventDefault(),I.hide()}),this.quill.on(l.default.events.SELECTION_CHANGE,function(D,$,B){if(D!=null){if(D.length===0&&B===l.default.sources.USER){var U=I.quill.scroll.descendant(p.default,D.index),G=i(U,2),q=G[0],R=G[1];if(q!=null){I.linkRange=new b.Range(D.index-R,q.length());var E=p.default.formats(q.domNode);I.preview.textContent=E,I.preview.setAttribute("href",E),I.show(),I.position(I.quill.getBounds(I.linkRange));return}}else delete I.linkRange;I.hide()}})}},{key:"show",value:function(){s(S.prototype.__proto__||Object.getPrototypeOf(S.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),S}(a.BaseTooltip);P.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=A},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(29),s=Y(i),d=o(36),f=o(38),h=o(64),c=o(65),l=Y(c),a=o(66),u=Y(a),v=o(67),p=Y(v),b=o(37),m=o(26),y=o(39),_=o(40),g=o(56),O=Y(g),k=o(68),T=Y(k),A=o(27),P=Y(A),w=o(69),S=Y(w),x=o(70),I=Y(x),D=o(71),$=Y(D),B=o(72),U=Y(B),G=o(73),q=Y(G),R=o(13),E=Y(R),C=o(74),N=Y(C),F=o(75),j=Y(F),L=o(57),M=Y(L),H=o(41),z=Y(H),V=o(28),Q=Y(V),ne=o(59),oe=Y(ne),fe=o(60),he=Y(fe),Fe=o(61),Ae=Y(Fe),W=o(108),K=Y(W),Z=o(62),J=Y(Z);function Y(le){return le&&le.__esModule?le:{default:le}}s.default.register({"attributors/attribute/direction":f.DirectionAttribute,"attributors/class/align":d.AlignClass,"attributors/class/background":b.BackgroundClass,"attributors/class/color":m.ColorClass,"attributors/class/direction":f.DirectionClass,"attributors/class/font":y.FontClass,"attributors/class/size":_.SizeClass,"attributors/style/align":d.AlignStyle,"attributors/style/background":b.BackgroundStyle,"attributors/style/color":m.ColorStyle,"attributors/style/direction":f.DirectionStyle,"attributors/style/font":y.FontStyle,"attributors/style/size":_.SizeStyle},!0),s.default.register({"formats/align":d.AlignClass,"formats/direction":f.DirectionClass,"formats/indent":h.IndentClass,"formats/background":b.BackgroundStyle,"formats/color":m.ColorStyle,"formats/font":y.FontClass,"formats/size":_.SizeClass,"formats/blockquote":l.default,"formats/code-block":E.default,"formats/header":u.default,"formats/list":p.default,"formats/bold":O.default,"formats/code":R.Code,"formats/italic":T.default,"formats/link":P.default,"formats/script":S.default,"formats/strike":I.default,"formats/underline":$.default,"formats/image":U.default,"formats/video":q.default,"formats/list/item":v.ListItem,"modules/formula":N.default,"modules/syntax":j.default,"modules/toolbar":M.default,"themes/bubble":K.default,"themes/snow":J.default,"ui/icons":z.default,"ui/picker":Q.default,"ui/icon-picker":he.default,"ui/color-picker":oe.default,"ui/tooltip":Ae.default},!0),t.default=s.default},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var i=function(){function p(b,m){for(var y=0;y<m.length;y++){var _=m[y];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(b,_.key,_)}}return function(b,m,y){return m&&p(b.prototype,m),y&&p(b,y),b}}(),s=function p(b,m,y){b===null&&(b=Function.prototype);var _=Object.getOwnPropertyDescriptor(b,m);if(_===void 0){var g=Object.getPrototypeOf(b);return g===null?void 0:p(g,m,y)}else{if("value"in _)return _.value;var O=_.get;return O===void 0?void 0:O.call(y)}},d=o(0),f=h(d);function h(p){return p&&p.__esModule?p:{default:p}}function c(p,b){if(!(p instanceof b))throw new TypeError("Cannot call a class as a function")}function l(p,b){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return b&&(typeof b=="object"||typeof b=="function")?b:p}function a(p,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof b);p.prototype=Object.create(b&&b.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),b&&(Object.setPrototypeOf?Object.setPrototypeOf(p,b):p.__proto__=b)}var u=function(p){a(b,p);function b(){return c(this,b),l(this,(b.__proto__||Object.getPrototypeOf(b)).apply(this,arguments))}return i(b,[{key:"add",value:function(y,_){if(_==="+1"||_==="-1"){var g=this.value(y)||0;_=_==="+1"?g+1:g-1}return _===0?(this.remove(y),!0):s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"add",this).call(this,y,_)}},{key:"canAdd",value:function(y,_){return s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,y,_)||s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"canAdd",this).call(this,y,parseInt(_))}},{key:"value",value:function(y){return parseInt(s(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"value",this).call(this,y))||void 0}}]),b}(f.default.Attributor.Class),v=new u("indent","ql-indent",{scope:f.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=v},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(4),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function c(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){c(u,a);function u(){return f(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="blockquote",l.tagName="blockquote",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function u(v,p){for(var b=0;b<p.length;b++){var m=p[b];m.enumerable=m.enumerable||!1,m.configurable=!0,"value"in m&&(m.writable=!0),Object.defineProperty(v,m.key,m)}}return function(v,p,b){return p&&u(v.prototype,p),b&&u(v,b),v}}(),s=o(4),d=f(s);function f(u){return u&&u.__esModule?u:{default:u}}function h(u,v){if(!(u instanceof v))throw new TypeError("Cannot call a class as a function")}function c(u,v){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return v&&(typeof v=="object"||typeof v=="function")?v:u}function l(u,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof v);u.prototype=Object.create(v&&v.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),v&&(Object.setPrototypeOf?Object.setPrototypeOf(u,v):u.__proto__=v)}var a=function(u){l(v,u);function v(){return h(this,v),c(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}return i(v,null,[{key:"formats",value:function(b){return this.tagName.indexOf(b.tagName)+1}}]),v}(d.default);a.blotName="header",a.tagName=["H1","H2","H3","H4","H5","H6"],t.default=a},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var i=function(){function g(O,k){for(var T=0;T<k.length;T++){var A=k[T];A.enumerable=A.enumerable||!1,A.configurable=!0,"value"in A&&(A.writable=!0),Object.defineProperty(O,A.key,A)}}return function(O,k,T){return k&&g(O.prototype,k),T&&g(O,T),O}}(),s=function g(O,k,T){O===null&&(O=Function.prototype);var A=Object.getOwnPropertyDescriptor(O,k);if(A===void 0){var P=Object.getPrototypeOf(O);return P===null?void 0:g(P,k,T)}else{if("value"in A)return A.value;var w=A.get;return w===void 0?void 0:w.call(T)}},d=o(0),f=u(d),h=o(4),c=u(h),l=o(25),a=u(l);function u(g){return g&&g.__esModule?g:{default:g}}function v(g,O,k){return O in g?Object.defineProperty(g,O,{value:k,enumerable:!0,configurable:!0,writable:!0}):g[O]=k,g}function p(g,O){if(!(g instanceof O))throw new TypeError("Cannot call a class as a function")}function b(g,O){if(!g)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O&&(typeof O=="object"||typeof O=="function")?O:g}function m(g,O){if(typeof O!="function"&&O!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof O);g.prototype=Object.create(O&&O.prototype,{constructor:{value:g,enumerable:!1,writable:!0,configurable:!0}}),O&&(Object.setPrototypeOf?Object.setPrototypeOf(g,O):g.__proto__=O)}var y=function(g){m(O,g);function O(){return p(this,O),b(this,(O.__proto__||Object.getPrototypeOf(O)).apply(this,arguments))}return i(O,[{key:"format",value:function(T,A){T===_.blotName&&!A?this.replaceWith(f.default.create(this.statics.scope)):s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"format",this).call(this,T,A)}},{key:"remove",value:function(){this.prev==null&&this.next==null?this.parent.remove():s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(T,A){return this.parent.isolate(this.offset(this.parent),this.length()),T===this.parent.statics.blotName?(this.parent.replaceWith(T,A),this):(this.parent.unwrap(),s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replaceWith",this).call(this,T,A))}}],[{key:"formats",value:function(T){return T.tagName===this.tagName?void 0:s(O.__proto__||Object.getPrototypeOf(O),"formats",this).call(this,T)}}]),O}(c.default);y.blotName="list-item",y.tagName="LI";var _=function(g){m(O,g),i(O,null,[{key:"create",value:function(T){var A=T==="ordered"?"OL":"UL",P=s(O.__proto__||Object.getPrototypeOf(O),"create",this).call(this,A);return(T==="checked"||T==="unchecked")&&P.setAttribute("data-checked",T==="checked"),P}},{key:"formats",value:function(T){if(T.tagName==="OL")return"ordered";if(T.tagName==="UL")return T.hasAttribute("data-checked")?T.getAttribute("data-checked")==="true"?"checked":"unchecked":"bullet"}}]);function O(k){p(this,O);var T=b(this,(O.__proto__||Object.getPrototypeOf(O)).call(this,k)),A=function(w){if(w.target.parentNode===k){var S=T.statics.formats(k),x=f.default.find(w.target);S==="checked"?x.format("list","unchecked"):S==="unchecked"&&x.format("list","checked")}};return k.addEventListener("touchstart",A),k.addEventListener("mousedown",A),T}return i(O,[{key:"format",value:function(T,A){this.children.length>0&&this.children.tail.format(T,A)}},{key:"formats",value:function(){return v({},this.statics.blotName,this.statics.formats(this.domNode))}},{key:"insertBefore",value:function(T,A){if(T instanceof y)s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"insertBefore",this).call(this,T,A);else{var P=A==null?this.length():A.offset(this),w=this.split(P);w.parent.insertBefore(T,w)}}},{key:"optimize",value:function(T){s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"optimize",this).call(this,T);var A=this.next;A!=null&&A.prev===this&&A.statics.blotName===this.statics.blotName&&A.domNode.tagName===this.domNode.tagName&&A.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(A.moveChildren(this),A.remove())}},{key:"replace",value:function(T){if(T.statics.blotName!==this.statics.blotName){var A=f.default.create(this.statics.defaultChild);T.moveChildren(A),this.appendChild(A)}s(O.prototype.__proto__||Object.getPrototypeOf(O.prototype),"replace",this).call(this,T)}}]),O}(a.default);_.blotName="list",_.scope=f.default.Scope.BLOCK_BLOT,_.tagName=["OL","UL"],_.defaultChild="list-item",_.allowedChildren=[y],t.ListItem=y,t.default=_},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(56),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function c(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){c(u,a);function u(){return f(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="italic",l.tagName=["EM","I"],t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function v(p,b){for(var m=0;m<b.length;m++){var y=b[m];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(p,y.key,y)}}return function(p,b,m){return b&&v(p.prototype,b),m&&v(p,m),p}}(),s=function v(p,b,m){p===null&&(p=Function.prototype);var y=Object.getOwnPropertyDescriptor(p,b);if(y===void 0){var _=Object.getPrototypeOf(p);return _===null?void 0:v(_,b,m)}else{if("value"in y)return y.value;var g=y.get;return g===void 0?void 0:g.call(m)}},d=o(6),f=h(d);function h(v){return v&&v.__esModule?v:{default:v}}function c(v,p){if(!(v instanceof p))throw new TypeError("Cannot call a class as a function")}function l(v,p){if(!v)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p&&(typeof p=="object"||typeof p=="function")?p:v}function a(v,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);v.prototype=Object.create(p&&p.prototype,{constructor:{value:v,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(v,p):v.__proto__=p)}var u=function(v){a(p,v);function p(){return c(this,p),l(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}return i(p,null,[{key:"create",value:function(m){return m==="super"?document.createElement("sup"):m==="sub"?document.createElement("sub"):s(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,m)}},{key:"formats",value:function(m){if(m.tagName==="SUB")return"sub";if(m.tagName==="SUP")return"super"}}]),p}(f.default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function c(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){c(u,a);function u(){return f(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="strike",l.tagName="S",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=o(6),s=d(i);function d(a){return a&&a.__esModule?a:{default:a}}function f(a,u){if(!(a instanceof u))throw new TypeError("Cannot call a class as a function")}function h(a,u){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u&&(typeof u=="object"||typeof u=="function")?u:a}function c(a,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);a.prototype=Object.create(u&&u.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(a,u):a.__proto__=u)}var l=function(a){c(u,a);function u(){return f(this,u),h(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}return u}(s.default);l.blotName="underline",l.tagName="U",t.default=l},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),s=function b(m,y,_){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,y);if(g===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,y,_)}else{if("value"in g)return g.value;var k=g.get;return k===void 0?void 0:k.call(_)}},d=o(0),f=c(d),h=o(27);function c(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["alt","height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,g){v.indexOf(_)>-1?g?this.domNode.setAttribute(_,g):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,g)}}],[{key:"create",value:function(_){var g=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return typeof _=="string"&&g.setAttribute("src",this.sanitize(_)),g}},{key:"formats",value:function(_){return v.reduce(function(g,O){return _.hasAttribute(O)&&(g[O]=_.getAttribute(O)),g},{})}},{key:"match",value:function(_){return/\.(jpe?g|gif|png)$/.test(_)||/^data:image\/.+;base64/.test(_)}},{key:"sanitize",value:function(_){return(0,h.sanitize)(_,["http","https","data"])?_:"//:0"}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(f.default.Embed);p.blotName="image",p.tagName="IMG",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function b(m,y){for(var _=0;_<y.length;_++){var g=y[_];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(m,g.key,g)}}return function(m,y,_){return y&&b(m.prototype,y),_&&b(m,_),m}}(),s=function b(m,y,_){m===null&&(m=Function.prototype);var g=Object.getOwnPropertyDescriptor(m,y);if(g===void 0){var O=Object.getPrototypeOf(m);return O===null?void 0:b(O,y,_)}else{if("value"in g)return g.value;var k=g.get;return k===void 0?void 0:k.call(_)}},d=o(4),f=o(27),h=c(f);function c(b){return b&&b.__esModule?b:{default:b}}function l(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}function a(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return m&&(typeof m=="object"||typeof m=="function")?m:b}function u(b,m){if(typeof m!="function"&&m!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof m);b.prototype=Object.create(m&&m.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),m&&(Object.setPrototypeOf?Object.setPrototypeOf(b,m):b.__proto__=m)}var v=["height","width"],p=function(b){u(m,b);function m(){return l(this,m),a(this,(m.__proto__||Object.getPrototypeOf(m)).apply(this,arguments))}return i(m,[{key:"format",value:function(_,g){v.indexOf(_)>-1?g?this.domNode.setAttribute(_,g):this.domNode.removeAttribute(_):s(m.prototype.__proto__||Object.getPrototypeOf(m.prototype),"format",this).call(this,_,g)}}],[{key:"create",value:function(_){var g=s(m.__proto__||Object.getPrototypeOf(m),"create",this).call(this,_);return g.setAttribute("frameborder","0"),g.setAttribute("allowfullscreen",!0),g.setAttribute("src",this.sanitize(_)),g}},{key:"formats",value:function(_){return v.reduce(function(g,O){return _.hasAttribute(O)&&(g[O]=_.getAttribute(O)),g},{})}},{key:"sanitize",value:function(_){return h.default.sanitize(_)}},{key:"value",value:function(_){return _.getAttribute("src")}}]),m}(d.BlockEmbed);p.blotName="video",p.className="ql-video",p.tagName="IFRAME",t.default=p},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var i=function(){function _(g,O){for(var k=0;k<O.length;k++){var T=O[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(g,T.key,T)}}return function(g,O,k){return O&&_(g.prototype,O),k&&_(g,k),g}}(),s=function _(g,O,k){g===null&&(g=Function.prototype);var T=Object.getOwnPropertyDescriptor(g,O);if(T===void 0){var A=Object.getPrototypeOf(g);return A===null?void 0:_(A,O,k)}else{if("value"in T)return T.value;var P=T.get;return P===void 0?void 0:P.call(k)}},d=o(35),f=u(d),h=o(5),c=u(h),l=o(9),a=u(l);function u(_){return _&&_.__esModule?_:{default:_}}function v(_,g){if(!(_ instanceof g))throw new TypeError("Cannot call a class as a function")}function p(_,g){if(!_)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g&&(typeof g=="object"||typeof g=="function")?g:_}function b(_,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);_.prototype=Object.create(g&&g.prototype,{constructor:{value:_,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(_,g):_.__proto__=g)}var m=function(_){b(g,_);function g(){return v(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}return i(g,null,[{key:"create",value:function(k){var T=s(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,k);return typeof k=="string"&&(window.katex.render(k,T,{throwOnError:!1,errorColor:"#f00"}),T.setAttribute("data-value",k)),T}},{key:"value",value:function(k){return k.getAttribute("data-value")}}]),g}(f.default);m.blotName="formula",m.className="ql-formula",m.tagName="SPAN";var y=function(_){b(g,_),i(g,null,[{key:"register",value:function(){c.default.register(m,!0)}}]);function g(){v(this,g);var O=p(this,(g.__proto__||Object.getPrototypeOf(g)).call(this));if(window.katex==null)throw new Error("Formula module requires KaTeX.");return O}return g}(a.default);t.FormulaBlot=m,t.default=y},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var i=function(){function k(T,A){for(var P=0;P<A.length;P++){var w=A[P];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(T,w.key,w)}}return function(T,A,P){return A&&k(T.prototype,A),P&&k(T,P),T}}(),s=function k(T,A,P){T===null&&(T=Function.prototype);var w=Object.getOwnPropertyDescriptor(T,A);if(w===void 0){var S=Object.getPrototypeOf(T);return S===null?void 0:k(S,A,P)}else{if("value"in w)return w.value;var x=w.get;return x===void 0?void 0:x.call(P)}},d=o(0),f=p(d),h=o(5),c=p(h),l=o(9),a=p(l),u=o(13),v=p(u);function p(k){return k&&k.__esModule?k:{default:k}}function b(k,T){if(!(k instanceof T))throw new TypeError("Cannot call a class as a function")}function m(k,T){if(!k)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T&&(typeof T=="object"||typeof T=="function")?T:k}function y(k,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);k.prototype=Object.create(T&&T.prototype,{constructor:{value:k,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(k,T):k.__proto__=T)}var _=function(k){y(T,k);function T(){return b(this,T),m(this,(T.__proto__||Object.getPrototypeOf(T)).apply(this,arguments))}return i(T,[{key:"replaceWith",value:function(P){this.domNode.textContent=this.domNode.textContent,this.attach(),s(T.prototype.__proto__||Object.getPrototypeOf(T.prototype),"replaceWith",this).call(this,P)}},{key:"highlight",value:function(P){var w=this.domNode.textContent;this.cachedText!==w&&((w.trim().length>0||this.cachedText==null)&&(this.domNode.innerHTML=P(w),this.domNode.normalize(),this.attach()),this.cachedText=w)}}]),T}(v.default);_.className="ql-syntax";var g=new f.default.Attributor.Class("token","hljs",{scope:f.default.Scope.INLINE}),O=function(k){y(T,k),i(T,null,[{key:"register",value:function(){c.default.register(g,!0),c.default.register(_,!0)}}]);function T(A,P){b(this,T);var w=m(this,(T.__proto__||Object.getPrototypeOf(T)).call(this,A,P));if(typeof w.options.highlight!="function")throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var S=null;return w.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){clearTimeout(S),S=setTimeout(function(){w.highlight(),S=null},w.options.interval)}),w.highlight(),w}return i(T,[{key:"highlight",value:function(){var P=this;if(!this.quill.selection.composing){this.quill.update(c.default.sources.USER);var w=this.quill.getSelection();this.quill.scroll.descendants(_).forEach(function(S){S.highlight(P.options.highlight)}),this.quill.update(c.default.sources.SILENT),w!=null&&this.quill.setSelection(w,c.default.sources.SILENT)}}}]),T}(a.default);O.DEFAULTS={highlight:function(){return window.hljs==null?null:function(k){var T=window.hljs.highlightAuto(k);return T.value}}(),interval:1e3},t.CodeBlock=_,t.CodeToken=g,t.default=O},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(n,t){n.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(n,t){n.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(n,t){n.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(n,t,o){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var i=function T(A,P,w){A===null&&(A=Function.prototype);var S=Object.getOwnPropertyDescriptor(A,P);if(S===void 0){var x=Object.getPrototypeOf(A);return x===null?void 0:T(x,P,w)}else{if("value"in S)return S.value;var I=S.get;return I===void 0?void 0:I.call(w)}},s=function(){function T(A,P){for(var w=0;w<P.length;w++){var S=P[w];S.enumerable=S.enumerable||!1,S.configurable=!0,"value"in S&&(S.writable=!0),Object.defineProperty(A,S.key,S)}}return function(A,P,w){return P&&T(A.prototype,P),w&&T(A,w),A}}(),d=o(3),f=b(d),h=o(8),c=b(h),l=o(43),a=b(l),u=o(15),v=o(41),p=b(v);function b(T){return T&&T.__esModule?T:{default:T}}function m(T,A){if(!(T instanceof A))throw new TypeError("Cannot call a class as a function")}function y(T,A){if(!T)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&(typeof A=="object"||typeof A=="function")?A:T}function _(T,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);T.prototype=Object.create(A&&A.prototype,{constructor:{value:T,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(T,A):T.__proto__=A)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],O=function(T){_(A,T);function A(P,w){m(this,A),w.modules.toolbar!=null&&w.modules.toolbar.container==null&&(w.modules.toolbar.container=g);var S=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,w));return S.quill.container.classList.add("ql-bubble"),S}return s(A,[{key:"extendToolbar",value:function(w){this.tooltip=new k(this.quill,this.options.bounds),this.tooltip.root.appendChild(w.container),this.buildButtons([].slice.call(w.container.querySelectorAll("button")),p.default),this.buildPickers([].slice.call(w.container.querySelectorAll("select")),p.default)}}]),A}(a.default);O.DEFAULTS=(0,f.default)(!0,{},a.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(A){A?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var k=function(T){_(A,T);function A(P,w){m(this,A);var S=y(this,(A.__proto__||Object.getPrototypeOf(A)).call(this,P,w));return S.quill.on(c.default.events.EDITOR_CHANGE,function(x,I,D,$){if(x===c.default.events.SELECTION_CHANGE)if(I!=null&&I.length>0&&$===c.default.sources.USER){S.show(),S.root.style.left="0px",S.root.style.width="",S.root.style.width=S.root.offsetWidth+"px";var B=S.quill.getLines(I.index,I.length);if(B.length===1)S.position(S.quill.getBounds(I));else{var U=B[B.length-1],G=S.quill.getIndex(U),q=Math.min(U.length()-1,I.index+I.length-G),R=S.quill.getBounds(new u.Range(G,q));S.position(R)}}else document.activeElement!==S.textbox&&S.quill.hasFocus()&&S.hide()}),S}return s(A,[{key:"listen",value:function(){var w=this;i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",function(){w.root.classList.remove("ql-editing")}),this.quill.on(c.default.events.SCROLL_OPTIMIZE,function(){setTimeout(function(){if(!w.root.classList.contains("ql-hidden")){var S=w.quill.getSelection();S!=null&&w.position(w.quill.getBounds(S))}},1)})}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(w){var S=i(A.prototype.__proto__||Object.getPrototypeOf(A.prototype),"position",this).call(this,w),x=this.root.querySelector(".ql-tooltip-arrow");if(x.style.marginLeft="",S===0)return S;x.style.marginLeft=-1*S-x.offsetWidth/2+"px"}}]),A}(l.BaseTooltip);k.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=k,t.default=O},function(n,t,o){n.exports=o(63)}]).default})})(ho);var po=Mr(ho.exports),Zc="",Jc="",Qc="",Uu=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",{staticClass:"ui-editor"},[n("div",{ref:"editorContailner",staticClass:"ui-editor__contailner"})])},Hu=[],ef="";const zu={name:"ComEditor",model:{prop:"model",event:"inputtext"},props:{model:void 0},data(){return{quillRef:null,modelForm:this.model,composition:!1}},methods:{handleRenderInput:On(300,e=>{const r=e.handleGetVal();e.composition||(e.modelForm=r)}),handleGetVal(){const e=this.quillRef.getContents(),r=document.createElement("div");return new po(r).setContents(e),r.getElementsByClassName("ql-editor")[0].innerHTML},hadnleSelectionChange(e){if(!e){const r=this.handleGetVal();this.$emit("inputtext",r),this.$emit("onBlur",r)}},handleInput(e,r,n){this.handleRenderInput(this)},handleSetValue(e){const r=this.quillRef.clipboard.convert(e);this.quillRef.setContents(r,"silent")},handleCompositionstart(){this.composition=!0},handleCompositionend(){this.composition=!1}},mounted(){this.quillRef=new po(this.$refs.editorContailner,{theme:"snow"}),this.quillRef.on("text-change",this.handleInput),this.quillRef.on("selection-change",this.hadnleSelectionChange),document.querySelector(".ql-editor").addEventListener("compositionstart",this.handleCompositionstart),document.querySelector(".ql-editor").addEventListener("compositionend",this.handleCompositionend),this.$emit("onCreated",this.quillRef),this.handleSetValue(this.modelForm||"")},beforeDestroy(){var e,r;(e=document.querySelector(".ql-editor"))==null||e.removeEventListener("compositionstart",this.handleCompositionstart),(r=document.querySelector(".ql-editor"))==null||r.removeEventListener("compositionend",this.handleCompositionend),this.quillRef.off("text-change",this.handleInput),this.quillRef.off("selection-change",this.hadnleSelectionChange)},watch:{model(e,r){this.modelForm!=e&&(this.modelForm=e,this.handleSetValue(e||""))},modelForm(e){this.$emit("inputtext",e)}}},vo={};var Wu=be(zu,Uu,Hu,!1,Gu,"009bd892",null,null);function Gu(e){for(let r in vo)this[r]=vo[r]}var Dn=function(){return Wu.exports}();Dn.install=e=>{e.component(Dn.name,Dn)};const mo=Dn;var Ku=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("div",[n("div",{staticStyle:{position:"fixed",border:"1px solid #4d6bfe","z-index":"99999",right:"10px","background-color":"#FFF",bottom:"100px","border-radius":"50%",height:"40px",width:"40px",display:"flex","justify-content":"center","align-items":"center"},attrs:{id:"deepseek"+e.idKey},on:{click:function(t){e.show=!0}}},[n("svg",{staticClass:"icon",attrs:{t:"1745995428048",viewBox:"0 0 1391 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12074",width:"32",height:"32"}},[n("path",{attrs:{d:"M1333.74443323 82.22042509c-13.80988113-6.90651166-19.77216769 6.25765149-27.83971486 12.94735271-2.7494075 2.15867766-5.09661597 4.96464441-7.44382443 7.55380074-20.17908001 22.01097094-43.75485659 36.47128333-74.589069 34.74465541-45.04943475-2.58915632-83.51757347 11.86958497-117.50810569 47.04629015-7.2285851-43.37779501-31.23798253-69.2740715-67.78939144-85.89149046-19.15315822-8.63156848-38.46813872-17.26470805-51.87582082-36.04080467-9.33227462-13.37940245-11.86958497-28.2701935-16.56243082-42.94417414-2.96778901-8.8483789-5.93557805-17.91199713-15.91514173-19.42338573-10.87194282-1.72662791-15.10760146 7.55380073-19.36996865 15.3228408-16.99448057 31.72344934-23.6040562 66.68491519-22.93005859 102.07685969 1.45797153 79.63383898 34.42258196 143.08073766 99.86633603 188.18516058 7.44539552 5.17831264 9.36055423 10.35819639 7.01334578 17.91042602-4.45089798 15.53808012-9.79260399 30.6456816-14.45874129 46.18376174-2.9693601 9.92771773-7.418687 12.0848243-17.85858007 7.76904006-35.90569092-15.3228408-66.92843413-37.9826719-94.36280776-65.38876592-46.53254371-45.9685224-88.61576053-96.6833077-141.08388229-136.39103645a620.44857966 620.44857966 0 0 0-37.41550843-26.11308694c-53.54746058-53.0887023 7.01334578-96.68173661 21.0416084-101.86162035 14.6472721-5.39512307 5.09818706-23.95440928-42.29845612-23.73916995s-90.74772965 16.40217963-145.99510964 37.98267191c-8.09111351 3.2364454-16.59071043 5.6103624-25.27569597 7.55380074-50.17590143-9.71247839-102.23868196-11.86958497-156.65024201-5.61193348-102.42721275 11.65434565-184.24643792 61.07455278-244.40190308 145.45465466-72.24186053 101.4295706-89.26462071 216.6721645-68.4115431 336.87626062 21.85071977 126.68012914 85.21592177 231.56295556 182.54651857 313.56914048 100.94410379 85.02739095 217.18433986 126.68012914 349.79847589 118.69584973 80.54978445-4.74940507 170.2181753-15.75489055 271.37751842-103.15776961 25.51921492 12.94892381 52.30629946 18.12880755 96.71001624 22.01254203 34.23248007 3.2364454 67.17038198-1.72662791 92.66288839-7.12175096 39.95124769-8.63156848 37.17198947-46.39900106 22.7399567-53.30394163-117.10276448-55.67942971-91.39501876-33.01959858-114.755556-51.36207439 59.50817604-71.86479892 149.17656689-146.53556459 184.24643795-388.45514546 2.77768711-19.20657529 0.43047867-31.29139958 0-46.82947971-0.21681042-9.49566798 1.88687908-13.16573423 12.54358259-14.24350198 29.32282382-3.45325582 57.80982774-11.65434565 83.9496232-26.32832626 75.85536753-42.29845616 106.47276951-111.78933809 113.70292571-195.09167222 1.07933883-12.73211339-0.21523932-25.89627652-13.40768208-32.58597776M672.59048267 831.93671913c-113.46097785-91.07137422-168.51982701-121.06819563-191.25978372-119.77361748-21.25684774 1.29457817-17.42653031 26.11308695-12.76039301 42.29845614 4.88294773 15.97012989 11.27571295 26.97561536 20.20421747 41.00387801 6.15238845 9.28042865 10.41475564 23.09188086-6.17595481 33.45007725-36.55298001 23.09188086-100.08157538-7.76904006-103.04779332-9.27885757-73.96848843-44.45713381-135.82544403-103.1577696-179.39176984-183.43732658-42.08164574-77.25992199-66.4948133-160.1302064-70.54194114-248.61085317-1.07933883-21.36525295 5.09818706-28.91905367 25.89784762-32.80435928a250.87636497 250.87636497 0 0 1 83.11223228-2.15710656c115.83646593 17.26627914 214.46006978 70.138171 297.11354374 153.8725549 47.18140388 47.69200813 82.87028441 104.66601601 119.66521225 160.34544572 39.08871926 59.12954337 81.17193611 115.45626214 134.71939669 161.63845278 18.90963927 16.18536923 33.98896113 28.48700395 48.44770242 37.55062216-43.56632578 4.96464441-116.26537349 6.04241215-165.98251663-34.09736632m54.40998899-357.16217477c0-9.49566798 7.44696661-17.04946873 16.80594974-17.04946872q3.18302835 0.05498814 5.71876762 1.07933883a16.91435498 16.91435498 0 0 1 10.84523431 15.97012989 16.83265829 16.83265829 0 0 1-16.77924123 17.04946872 16.6441275 16.6441275 0 0 1-16.59071044-17.04946872m168.95187674 88.48064679c-10.81852576 4.53259466-21.66218896 8.41790022-32.10208201 8.8483789-16.13195215 0.8640995-33.7737218-5.82560173-43.32280686-14.02669155-14.89079105-12.73368447-25.52078602-19.85543545-29.97168398-42.08321683-1.91515871-9.49566798-0.8640995-24.16964861 0.83739098-32.58597774 3.83031742-18.12880755-0.43204976-29.78158209-12.94892381-40.35658891-10.19637413-8.63313957-23.17357754-11.00705657-37.41550843-11.00705657-5.31499747 0-10.19637413-2.37234591-13.81145222-4.31578423a14.16180529 14.16180529 0 0 1-6.15081735-19.85386437c1.48310897-3.02120608 8.71326515-10.35976749 10.41318453-11.65434564 19.34011795-11.2222959 41.64959598-7.55222964 62.25915463 0.8640995 19.1264497 7.9842794 33.55848246 22.65983111 54.4115601 43.37779497 21.25684774 25.03374811 25.08716515 31.94025977 37.17198946 50.71478532 9.57736465 14.67398064 18.29062981 29.78158209 24.22620784 47.04471904 3.64021553 10.79181723-1.0526303 19.63862503-13.59621288 25.03374811",fill:"#4D6BFE","p-id":"12075"}})])]),n("el-drawer",e._b({attrs:{title:"Deepseek",visible:e.show,size:"500px",modal:!1},on:{"update:visible":function(t){e.show=t}}},"el-drawer",e.$attrs,!1),[n("div",{staticStyle:{padding:"10px",height:"100%",display:"flex","flex-direction":"column"}},[n("div",{staticStyle:{flex:"1","border-bottom":"1px solid #f1f1f1",overflow:"auto","margin-bottom":"15px"}},e._l(e.messageList,function(t){return n("div",{key:t.id,staticClass:"chat--item",class:{"chat--ai":t.role!="user"}},[n("div",{staticClass:"chat--flag"},[t.role!="user"?n("svg",{staticClass:"icon",attrs:{t:"1745995428048",viewBox:"0 0 1391 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"12074",width:"32",height:"32"}},[n("path",{attrs:{d:"M1333.74443323 82.22042509c-13.80988113-6.90651166-19.77216769 6.25765149-27.83971486 12.94735271-2.7494075 2.15867766-5.09661597 4.96464441-7.44382443 7.55380074-20.17908001 22.01097094-43.75485659 36.47128333-74.589069 34.74465541-45.04943475-2.58915632-83.51757347 11.86958497-117.50810569 47.04629015-7.2285851-43.37779501-31.23798253-69.2740715-67.78939144-85.89149046-19.15315822-8.63156848-38.46813872-17.26470805-51.87582082-36.04080467-9.33227462-13.37940245-11.86958497-28.2701935-16.56243082-42.94417414-2.96778901-8.8483789-5.93557805-17.91199713-15.91514173-19.42338573-10.87194282-1.72662791-15.10760146 7.55380073-19.36996865 15.3228408-16.99448057 31.72344934-23.6040562 66.68491519-22.93005859 102.07685969 1.45797153 79.63383898 34.42258196 143.08073766 99.86633603 188.18516058 7.44539552 5.17831264 9.36055423 10.35819639 7.01334578 17.91042602-4.45089798 15.53808012-9.79260399 30.6456816-14.45874129 46.18376174-2.9693601 9.92771773-7.418687 12.0848243-17.85858007 7.76904006-35.90569092-15.3228408-66.92843413-37.9826719-94.36280776-65.38876592-46.53254371-45.9685224-88.61576053-96.6833077-141.08388229-136.39103645a620.44857966 620.44857966 0 0 0-37.41550843-26.11308694c-53.54746058-53.0887023 7.01334578-96.68173661 21.0416084-101.86162035 14.6472721-5.39512307 5.09818706-23.95440928-42.29845612-23.73916995s-90.74772965 16.40217963-145.99510964 37.98267191c-8.09111351 3.2364454-16.59071043 5.6103624-25.27569597 7.55380074-50.17590143-9.71247839-102.23868196-11.86958497-156.65024201-5.61193348-102.42721275 11.65434565-184.24643792 61.07455278-244.40190308 145.45465466-72.24186053 101.4295706-89.26462071 216.6721645-68.4115431 336.87626062 21.85071977 126.68012914 85.21592177 231.56295556 182.54651857 313.56914048 100.94410379 85.02739095 217.18433986 126.68012914 349.79847589 118.69584973 80.54978445-4.74940507 170.2181753-15.75489055 271.37751842-103.15776961 25.51921492 12.94892381 52.30629946 18.12880755 96.71001624 22.01254203 34.23248007 3.2364454 67.17038198-1.72662791 92.66288839-7.12175096 39.95124769-8.63156848 37.17198947-46.39900106 22.7399567-53.30394163-117.10276448-55.67942971-91.39501876-33.01959858-114.755556-51.36207439 59.50817604-71.86479892 149.17656689-146.53556459 184.24643795-388.45514546 2.77768711-19.20657529 0.43047867-31.29139958 0-46.82947971-0.21681042-9.49566798 1.88687908-13.16573423 12.54358259-14.24350198 29.32282382-3.45325582 57.80982774-11.65434565 83.9496232-26.32832626 75.85536753-42.29845616 106.47276951-111.78933809 113.70292571-195.09167222 1.07933883-12.73211339-0.21523932-25.89627652-13.40768208-32.58597776M672.59048267 831.93671913c-113.46097785-91.07137422-168.51982701-121.06819563-191.25978372-119.77361748-21.25684774 1.29457817-17.42653031 26.11308695-12.76039301 42.29845614 4.88294773 15.97012989 11.27571295 26.97561536 20.20421747 41.00387801 6.15238845 9.28042865 10.41475564 23.09188086-6.17595481 33.45007725-36.55298001 23.09188086-100.08157538-7.76904006-103.04779332-9.27885757-73.96848843-44.45713381-135.82544403-103.1577696-179.39176984-183.43732658-42.08164574-77.25992199-66.4948133-160.1302064-70.54194114-248.61085317-1.07933883-21.36525295 5.09818706-28.91905367 25.89784762-32.80435928a250.87636497 250.87636497 0 0 1 83.11223228-2.15710656c115.83646593 17.26627914 214.46006978 70.138171 297.11354374 153.8725549 47.18140388 47.69200813 82.87028441 104.66601601 119.66521225 160.34544572 39.08871926 59.12954337 81.17193611 115.45626214 134.71939669 161.63845278 18.90963927 16.18536923 33.98896113 28.48700395 48.44770242 37.55062216-43.56632578 4.96464441-116.26537349 6.04241215-165.98251663-34.09736632m54.40998899-357.16217477c0-9.49566798 7.44696661-17.04946873 16.80594974-17.04946872q3.18302835 0.05498814 5.71876762 1.07933883a16.91435498 16.91435498 0 0 1 10.84523431 15.97012989 16.83265829 16.83265829 0 0 1-16.77924123 17.04946872 16.6441275 16.6441275 0 0 1-16.59071044-17.04946872m168.95187674 88.48064679c-10.81852576 4.53259466-21.66218896 8.41790022-32.10208201 8.8483789-16.13195215 0.8640995-33.7737218-5.82560173-43.32280686-14.02669155-14.89079105-12.73368447-25.52078602-19.85543545-29.97168398-42.08321683-1.91515871-9.49566798-0.8640995-24.16964861 0.83739098-32.58597774 3.83031742-18.12880755-0.43204976-29.78158209-12.94892381-40.35658891-10.19637413-8.63313957-23.17357754-11.00705657-37.41550843-11.00705657-5.31499747 0-10.19637413-2.37234591-13.81145222-4.31578423a14.16180529 14.16180529 0 0 1-6.15081735-19.85386437c1.48310897-3.02120608 8.71326515-10.35976749 10.41318453-11.65434564 19.34011795-11.2222959 41.64959598-7.55222964 62.25915463 0.8640995 19.1264497 7.9842794 33.55848246 22.65983111 54.4115601 43.37779497 21.25684774 25.03374811 25.08716515 31.94025977 37.17198946 50.71478532 9.57736465 14.67398064 18.29062981 29.78158209 24.22620784 47.04471904 3.64021553 10.79181723-1.0526303 19.63862503-13.59621288 25.03374811",fill:"#4D6BFE","p-id":"12075"}})]):n("svg",{staticClass:"icon",attrs:{t:"1745995639969",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14790",width:"24",height:"24"}},[n("path",{attrs:{d:"M510.112324 1023.82403H168.810986C117.23585 1023.82403 72.075612 979.959569 72.075612 929.952164c0-114.604302 118.971552-283.631251 240.166721-341.221352a29.738889 29.738889 0 0 1 25.739576 53.622783l-0.175969 0.079987C228.672697 694.360657 131.537392 846.462514 131.537392 929.952164c0 17.357017 18.44483 34.378091 37.241599 34.378092h341.989221a29.738889 29.738889 0 1 1 0 59.477777l-0.687882-0.015997h0.031994z","p-id":"14791",fill:"#43bd85"}}),n("path",{attrs:{d:"M851.413663 1023.82403H509.456437a29.738889 29.738889 0 1 1 0-59.477777l0.687882 0.015997h-0.031995 341.301339c18.812767 0 37.241599-17.053069 37.241599-34.378091 0-83.505647-97.10331-235.591508-206.268547-287.518583a29.754886 29.754886 0 1 1 25.77157-53.638781l-0.175969-0.079986c121.211167 57.670088 240.182719 226.681039 240.182718 341.221353 0 50.007405-45.192233 93.871866-96.735373 93.871865zM514.55956 584.66751c-161.188296 0-292.333755-131.145459-292.333755-292.333755S353.371264 0 514.55956 0s292.36575 131.145459 292.36575 292.333755-131.177454 292.333755-292.36575 292.333755z m0-525.189733c-128.40993 0-232.855978 104.462046-232.855978 232.855978s104.462046 232.871975 232.855978 232.871975 232.855978-104.462046 232.855978-232.855978S642.953492 59.477777 514.55956 59.477777z","p-id":"14792",fill:"#43bd85"}}),n("path",{attrs:{d:"M347.004359 307.211198a14.877443 14.877443 0 0 1-14.877443-14.877443c0.127978-100.702692 81.729953-182.304666 182.416647-182.416647H515.02348a14.877443 14.877443 0 1 1 0 29.722891l-0.479917-0.015997h0.031994c-84.289513 0.111981-152.597772 68.404243-152.693755 152.693756v0.031994a14.877443 14.877443 0 0 1-14.861446 14.861446zM377.847058 352.387433v0.063989a15.037415 15.037415 0 1 1-15.021419-15.021418h0.047992a15.037415 15.037415 0 0 1 14.989424 14.973427z","p-id":"14793",fill:"#43bd85"}})])]),n("pre",{domProps:{textContent:e._s(t.content)}})])}),0),n("div",[n("div",{staticStyle:{"margin-bottom":"5px"}},[n("el-button",{attrs:{type:"primary",size:"mini",loading:e.loading},on:{click:e.handleSend}},[e._v(e._s(e.loading?"\u8BF7\u7A0D\u7B49":"\u53D1\u9001"))])],1),n("el-input",{attrs:{type:"textarea",placeholder:"\u6309Enter\u53EF\u53D1\u9001\u3002",readonly:e.loading},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSend(t)}},model:{value:e.message,callback:function(t){e.message=t},expression:"message"}})],1)])])],1)},Vu=[],tf="";const Yu={name:"ComDeepseek",props:{visible:{type:Boolean,default:!1},title:{type:String,default:"\u6807\u9898"}},data(){return{show:!1,message:"",messageList:[],loading:!1,idKey:new Date().getTime()}},mounted(){new Hr(`#deepseek${this.idKey}`)},methods:{handleSend(){console.log(this.$UICONFIG,this.$http),this.messageList.push({content:this.message,role:"user",id:new Date().getTime()}),this.$nextTick().then(()=>{this.message=""}),this.loading=!0,this.$http.post(this.$UICONFIG.deepseekApi,{message:this.message}).then(e=>{if(e.code!=1)return this.$message.warning(e.mes||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.messageList.push(We(ve({},e.data),{id:new Date().getTime()})),this.loading=!1})},handleClose(){this.show=!1,this.$emit("close"),this.$emit("update:visible",!1)}}},go={};var Xu=be(Yu,Ku,Vu,!1,Zu,"4309f316",null,null);function Zu(e){for(let r in go)this[r]=go[r]}var $n=function(){return Xu.exports}();$n.install=e=>{e.component($n.name,$n)};const yo=$n;var Ju=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("com-container",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"static-num":e.staticNum}},[n("div",{ref:"container",staticClass:"sku-comparison",attrs:{tabindex:"0"},on:{keydown:e.handleKeyDown}},[n("div",{staticClass:"header"},[n("div",{staticClass:"sku-info"},[n("div",{staticClass:"sku-code"},[e._v("SKU: "),n("span",{staticStyle:{cursor:"pointer"},on:{click:function(t){return e.$emit("openSku",e.currentGroup.sku)}}},[e._v(e._s(e.currentGroup.sku))])]),n("div",{staticClass:"image-counter"},[e._v(e._s(e.currentGroupIndex+1)+"/"+e._s(Object.keys(this.imageGroups).length))])]),n("div",{staticClass:"keyboard-hints"},[n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("\u2190")]),n("span",{staticClass:"desc"},[e._v("\u4E0A\u4E00\u5F20")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("\u2192")]),n("span",{staticClass:"desc"},[e._v("\u4E0B\u4E00\u5F20")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("Enter")]),n("span",{staticClass:"desc"},[e._v("\u786E\u8BA4")])]),n("div",{staticClass:"hint-item"},[n("span",{staticClass:"key"},[e._v("Backspace")]),n("span",{staticClass:"desc"},[e._v("\u9A73\u56DE")])])])]),n("div",{staticClass:"comparison-container"},[n("div",{staticClass:"original-section"},[n("div",{staticClass:"image-container"},[n("div",{staticClass:"image-header"},[n("div",{staticClass:"badge original"},[e._v("\u539F\u56FE")]),n("div",{staticClass:"image-title"},[e._v(e._s(e.currentGroup.title))])]),n("div",{staticClass:"image-content"},[e.currentGroup.image?n("img",{staticClass:"main-image",attrs:{src:e.currentGroup.image,alt:"\u539F\u56FE"},on:{error:e.handleImageError}}):e._e()])])]),n("div",{staticClass:"ai-main-section"},[n("div",{staticClass:"image-container"},[n("div",{staticClass:"image-header"},[n("div",{staticClass:"badge ai"},[e._v("AI\u5957\u56FE")]),n("div",{staticClass:"image-title"},[e._v(e._s(e.currentAiImage.image_type_name||"AI\u751F\u6210\u56FE\u7247"))]),n("div",{staticClass:"image-desc"},[e._v(e._s(e.currentAiImage.product_size))])]),n("div",{staticClass:"image-content"},[e.currentAiImage.handle_image?n("img",{staticClass:"main-image",attrs:{src:e.currentAiImage.handle_image,alt:e.currentAiImage.image_type_name},on:{error:e.handleImageError}}):e._e()])]),n("div",{staticClass:"button-left"},[n("span",{staticClass:"el-icon-arrow-left",on:{click:function(t){return e.handleKeyDown({key:"ArrowLeft"})}}})]),n("div",{staticClass:"button-right"},[n("span",{staticClass:"el-icon-arrow-right",on:{click:function(t){return e.handleKeyDown({key:"ArrowRight"})}}})])]),n("div",{staticClass:"thumbnail-section"},[n("div",{staticClass:"thumbnail-container"},[n("div",{staticClass:"thumbnail-header"},[n("div",{staticClass:"thumbnail-count"},[e._v("\u5171 "+e._s(e.aiImagesList.length)+" \u5F20")]),e.uniqueImageTypes.length>1?n("div",{staticClass:"filter-tabs"},e._l(e.uniqueImageTypes,function(t){return n("div",{key:t.value,staticClass:"filter-tab",class:{active:e.activeFilter===t.value},on:{click:function(o){return e.setFilter(t.value)}}},[e._v(" "+e._s(t.name)+" "),n("span",{staticClass:"tab-count"},[e._v(e._s(t.count))])])}),0):e._e()]),n("div",{staticClass:"thumbnail-grid"},e._l(e.filteredImages,function(t,o){return n("div",{key:t.task_id,staticClass:"thumbnail-item",class:{active:e.currentAiIndex===o,matched:e.matchedImages.includes(t.handle_image),rejected:e.rejectImages.includes(t.handle_image)},on:{click:function(i){return e.selectAiImage(o)},mouseenter:function(i){e.hoverThumbnail=o},mouseleave:function(i){e.hoverThumbnail=-1}}},[n("div",{staticClass:"thumbnail-image-container"},[n("img",{staticClass:"thumbnail-image",attrs:{src:t.handle_image,alt:t.image_type_name},on:{error:e.handleThumbnailError}}),t.status?n("div",{staticClass:"status-indicator"},[n("span",{staticClass:"status-icon",class:e.matchedImages.includes(t.handle_image)?"matched":"pending"},[e._v(" "+e._s(e.matchedImages.includes(t.handle_image)?"\u2713":"\u2717")+" ")])]):e._e(),e.currentAiIndex===o?n("div",{staticClass:"selected-indicator"},[n("div",{staticClass:"selected-border"})]):e._e(),e.hoverThumbnail===o?n("div",{staticClass:"thumbnail-overlay"},[n("div",{staticClass:"overlay-content"},[n("div",{staticClass:"overlay-title"},[e._v(e._s(t.image_type_name))])])]):e._e()])])}),0)])])]),e.showFeedback?n("div",{staticClass:"feedback-toast",class:e.feedbackType},[e._v(" "+e._s(e.feedbackMessage)+" ")]):e._e()])])},Qu=[],nf="";const ec={name:"ComAiImages",props:{staticNum:{type:Number,default:0}},data(){return{loading:!0,sourceId:"",currentPid:null,currentGroupIndex:0,imageGroups:{},matchedImages:[],rejectImages:[],currentAiIndex:0,activeFilter:"all",showFeedback:!1,feedbackMessage:"",feedbackType:"",hoverThumbnail:-1}},computed:{currentAiImage(){return this.filteredImages[this.currentAiIndex]||{}},currentPidData(){return this.currentPid?Object.values(this.imageGroups[this.currentPid]):[]},currentGroup(){return this.currentPidData[this.currentGroupIndex]||{}},aiImagesList(){return this.currentGroup.tplGroupImages||[]},uniqueImageTypes(){const e={};this.aiImagesList.forEach(n=>{const t=n.image_type;e[t]||(e[t]={value:t,name:n.image_type_name,count:0}),e[t].count++});const r=Object.values(e);return r.unshift({value:"all",name:"\u5168\u90E8",count:this.aiImagesList.length}),r},filteredImages(){return this.activeFilter==="all"?this.aiImagesList:this.aiImagesList.filter(e=>e.image_type==this.activeFilter)}},watch:{},async created(){this.refreshData()},methods:{async refreshData(){var r,n;this.loading=!0;const e=await this.$http.post(this.$UICONFIG.getAiSourceList,{page:1});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u67E5\u8BE2\u5931\u8D25\uFF01");if(!((n=(r=e.data)==null?void 0:r.sourceIds)==null?void 0:n.length))return this.$message.warning("\u65E0\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");this.sourceId=e.data.sourceIds[0],this.processApiData()},async processApiData(){try{if(!this.sourceId)return;this.loading=!0;const e=await this.$http.post(this.$UICONFIG.getAiTplGroupApi,{sourceIds:[this.sourceId]});this.loading=!1;const r=Object.keys(e.data);if(r.length===0)return;this.currentPid=r[0],this.imageGroups=e.data;return}catch(e){console.error("\u5904\u7406API\u6570\u636E\u65F6\u51FA\u9519:",e)}},getMockData(){return{code:1,msg:"Success",data:{"3375":{"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg":{"6":[{task_id:3,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:6,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/c114a635c6e51f4d66161259ec6e75c8.png",group_task_id:2,image_type:6,image_type_name:"\u573A\u666F\u56FE"},{task_id:4,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:6,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/13ebf825aaa226702fbfdce7528f4048.png",group_task_id:2,image_type:6,image_type_name:"\u573A\u666F\u56FE"}],"1":[{task_id:5,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:1,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/a43334106f68787f3b224941e6a8ec75.jpeg",group_task_id:2,image_type:1,image_type_name:"\u529F\u80FD/\u7EC6\u8282\u56FE"}],"2":[{task_id:9,pid:3375,image:"https://cbu01.alicdn.com/img/ibank/O1CN01EGeBLg23uKBtgZfuM_!!2216240507315-0-cib.jpg",task_type:2,handle_image:"http://192.168.10.100:1901/filedata/pms/upload/ai_images/images/20260105/ed0c6979a5c704528662e6b3495dcff9.jpeg",group_task_id:2,image_type:2,image_type_name:"\u5C3A\u5BF8\u56FE"}]}}}}},handleKeyDown(e){switch(e.preventDefault&&e.preventDefault(),e.key){case"ArrowLeft":this.prevAiImage();break;case"ArrowRight":this.nextAiImage();break;case"Enter":this.confirmMatch();break;case"Backspace":this.rejectMatch();break;case" ":e.preventDefault(),this.skipImage();break}},prevAiImage(){this.currentAiIndex>0&&this.currentAiIndex--},nextAiImage(){this.currentAiIndex<this.aiImagesList.length-1?this.currentAiIndex++:this.currentGroupIndex<Object.keys(this.imageGroups).length-1?(this.currentGroupIndex++,this.currentAiIndex=0):(this.currentGroupIndex=0,this.currentAiIndex=0,this.refreshData())},selectAiImage(e){this.currentAiIndex=e},setFilter(e){this.activeFilter=e,this.currentAiIndex=0},async confirmMatch(){if(!this.loading&&!this.matchedImages.includes(this.currentAiImage.handle_image)){this.loading=!0;const e=await this.$http.post(this.$UICONFIG.passAiTplGroupApi,{task_id:this.currentAiImage.task_id,handle_image:this.currentAiImage.handle_image});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.matchedImages.push(this.currentAiImage.handle_image),this.handleShowFeedback(`\u56FE\u7247 #${this.currentAiImage.task_id} \u5339\u914D\u6210\u529F\uFF01`,"success"),this.nextAiImage()}},async rejectMatch(){if(!this.loading&&!this.rejectImages.includes(this.currentAiImage.handle_image)){this.loading=!0;const e=await this.$http.post(this.$UICONFIG.rejectAiTplGroupApi,{task_id:this.currentAiImage.task_id,handle_image:this.currentAiImage.handle_image});if(this.loading=!1,e.code!=1)return this.$message.warning(e.msg||e.message||"\u64CD\u4F5C\u5931\u8D25\uFF01");this.rejectImages.push(this.currentAiImage.handle_image),this.handleShowFeedback(`\u56FE\u7247 #${this.currentAiImage.task_id} \u5DF2\u9A73\u56DE`,"error"),this.nextAiImage()}},skipImage(){this.nextAiImage()},handleShowFeedback(e,r="info"){this.feedbackMessage=e,this.feedbackType=r,this.showFeedback=!0,setTimeout(()=>{this.showFeedback=!1},1e3)},handleImageError(e){e.target.src=""},handleThumbnailError(e){e.target.src=""}}},bo={};var tc=be(ec,Ju,Qu,!1,nc,"8733fc5a",null,null);function nc(e){for(let r in bo)this[r]=bo[r]}var Rn=function(){return tc.exports}();Rn.install=e=>{e.component(Rn.name,Rn)};const rc=Rn;var ic=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("transition",{attrs:{name:"el-loading-fade"},on:{"after-leave":e.handleAfterLeave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-loading-mask",class:[e.customClass,{"is-fullscreen":e.fullscreen}],style:{backgroundColor:e.background||""}},[n("div",{staticClass:"el-loading-spinner"},[e.spinner?n("i",{class:e.spinner}):n("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[n("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})]),e.text?n("p",{staticClass:"el-loading-text"},[e._v(e._s(e.text))]):e._e()])])])},oc=[];const ac={data(){return{text:null,spinner:null,background:null,fullscreen:!0,visible:!1,customClass:""}},methods:{handleAfterLeave(){this.$emit("after-leave")},setText(e){this.text=e}}},_o={};var lc=be(ac,ic,oc,!1,sc,null,null,null);function sc(e){for(let r in _o)this[r]=_o[r]}var uc=function(){return lc.exports}();const cc=Re.default.extend(uc);var fc={requestLoading:{bind(e,r,{context:n}){if(!n.$store)return;const t=e.getAttribute("element-loading-text"),o=e.getAttribute("element-loading-spinner"),i=e.getAttribute("element-loading-background"),s=e.getAttribute("element-loading-custom-class"),d=new cc({el:document.createElement("div"),data:{text:t,spinner:o,background:i,customClass:s,fullscreen:!1}});e.instance=d,e.mask=d.$el,e.maskStyle={},e.flagId=`Loading_${new Date().getTime()}`,n.$store.commit("SAVE_HTTP_LOADINGS",{el:e,name:r.arg,id:e.flagId})}}},dc=function(){var e=this,r=e.$createElement,n=e._self._c||r;return n("el-dialog",{attrs:{title:e.title,visible:e.visible,"append-to-body":""},on:{"update:visible":function(t){e.visible=t}},scopedSlots:e._u([{key:"footer",fn:function(){return[e._t("footer",[n("el-button",{class:e.cancelButtonClass,attrs:{size:"small"},on:{click:e.handleClose}},[e._v(e._s(e.cancelButtonText))]),n("el-button",{class:e.confirmButtonClass,attrs:{size:"small",type:"primary",loading:e.buttonLoading},on:{click:e.handleConfirm}},[e._v(" "+e._s(e.confirmButtonText)+" ")])])]},proxy:!0}],null,!0)},[n("div",[n("el-form",{ref:"rulesForm",attrs:{rules:e.formRules,model:e.formData,"label-width":e.labelWidth}},e._l(e.items,function(t,o){return n("el-form-item",{key:o,attrs:{label:t.label,prop:t.field}},[t.type?n("com-form-item",e._b({attrs:{type:t.type},model:{value:e.formData[t.field],callback:function(i){e.$set(e.formData,t.field,i)},expression:"formData[item.field]"}},"com-form-item",t.attrs,!1)):e._e()],1)}),1)],1)])},hc=[],of="";const Vt={confirm:"confirm",cancel:"cancel"},pc={data(){return{visible:!1,buttonLoading:!1,action:"",labelWidth:"120px",uid:1,title:"",formData:{},items:[],rules:{},confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",confirmButtonClass:"",cancelButtonClass:"",resolve:()=>{},beforeConfirm:null,beforeCancel:null}},computed:{formRules(){return Object.entries(this.rules).reduce((e,[r,n])=>{const{required:t,message:o}=n;return e[r]=We(ve({},n),{required:!!(t||o)}),e},{})}},watch:{visible(e){e&&(this.uid++,this.buttonLoading=!1,this.$nextTick(()=>{this.$refs.rulesForm.clearValidate()}))}},methods:{getSafeClose(){const e=this.uid;return()=>{this.$nextTick(()=>{e===this.uid&&this.doClose()})}},handleClose(){this.triggerCallBack(Vt.cancel)},triggerCallBack(e){const r={[Vt.confirm]:"beforeConfirm",[Vt.cancel]:"beforeCancel"},n=this[r[e]];this.action=e,n&&typeof n=="function"?(this.buttonLoading=e===Vt.confirm,n({formData:this.formData,done:this.getSafeClose(),instance:this,stopLoading:()=>{this.buttonLoading=!1}})):this.doClose()},handleConfirm(){this.$refs.rulesForm.validate(e=>{e&&this.triggerCallBack(Vt.confirm)})},doClose(){this.visible=!1,this.buttonLoading=!1,this.resolve({action:this.action})}}},Oo={};var vc=be(pc,dc,hc,!1,mc,null,null,null);function mc(e){for(let r in Oo)this[r]=Oo[r]}var gc=function(){return vc.exports}();const yc={title:"",items:[]},bc=Re.default.extend(gc);let So,Yt,Cr=[];const _c=()=>{Yt=new bc({el:document.createElement("div")})},Oc=e=>{let r={};return e.forEach(n=>{r[n.field]=""}),r},Sc=e=>{const r=Oc(e.items);Object.entries(We(ve({},e),{formData:r})).forEach(([n,t])=>{Yt[n]=t}),document.body.appendChild(Yt.$el),Re.default.nextTick(()=>{Yt.visible=!0})},Ec=()=>{Yt||_c(),Cr.length>0&&(So=Cr.shift(),Sc(So))},wc=e=>new Promise((r,n)=>{Cr.push(We(ve(ve({},yc),e),{resolve:r,reject:n})),Ec()}),xc=[Ir,Pr,Dr,Rr,Wr,Yr,Jr,Ai,lo,uo,fo,mo,yo,rc],Eo={version:"dev",install:(e,r={config:{}})=>{xc.forEach(o=>e.component(o.name,o));const n={tablePreset:{separator:"@",presetPropMap:{image(o,{field:i,params:s}){const d=o[i].split("|"),f=s.size||59;return["com-image",{attrs:{src:d,size:f,lazy:!0}}]},link(o,{field:i,params:s}){const d=o[i];let{target:f,href:h,type:c,underline:l}=s;return f=f||"_blank",h=o[h]||d,c=c||"primary",l=!!l,["el-link",{attrs:{target:f,href:h,type:c,underline:l}},d]}}},formItemConfig:{input:{placeholder:"\u8BF7\u8F93\u5165"}}};e.prototype.$UICONFIG=ve(ve({},n),r.config),Object.entries(fc).forEach(([o,i])=>{e.directive(o,i)}),e.prototype.$formDialog=wc,e.prototype.$jump=(o,i="_blank")=>{window.open(o,i)};const t=new e;e.prototype.$toChildren=t},ComTemplate:Ir,ComMenu:Pr,ComTabs:Dr,ComTool:Rr,ComDialog:Wr,ComFormItem:Yr,ComOperation:Jr,ComSearch:Ai,ComTable:lo,ComImage:uo,ComContainer:fo,ComEditor:mo,ComDeepseek:yo};try{Eo.version=require("../package.json").version}catch{console.log("no require")}return Eo});
65
65
  //# sourceMappingURL=tenghui-ui.umd.js.map