PPTist/js/app.d797de58.js

2 lines
432 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(function(e){function t(t){for(var o,r,l=t[0],i=t[1],u=t[2],s=0,f=[];s<l.length;s++)r=l[s],Object.prototype.hasOwnProperty.call(c,r)&&c[r]&&f.push(c[r][0]),c[r]=0;for(o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o]);d&&d(t);while(f.length)f.shift()();return a.push.apply(a,u||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],o=!0,l=1;l<n.length;l++){var i=n[l];0!==c[i]&&(o=!1)}o&&(a.splice(t--,1),e=r(r.s=n[0]))}return e}var o={},c={app:0},a=[];function r(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=o,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="";var l=window["webpackJsonp"]=window["webpackJsonp"]||[],i=l.push.bind(l);l.push=t,l=l.slice();for(var u=0;u<l.length;u++)t(l[u]);var d=i;a.push([1,"chunk-vendors"]),n()})({0:function(e,t){},"041f":function(e,t,n){"use strict";n("3a9a")},"0606":function(e,t,n){"use strict";n("cdff")},"0646":function(e,t,n){"use strict";n("af3c")},"0679":function(e,t,n){"use strict";n("2d54")},"0725":function(e,t,n){"use strict";n("dc17")},"0737":function(e,t,n){},"097f":function(e,t,n){"use strict";n("4b78")},"0c74":function(e,t,n){"use strict";n("77a7")},"0d71":function(e,t,n){"use strict";n("7d3e")},"0e60":function(e,t,n){"use strict";n("c315")},"0eae":function(e,t,n){},"0f72":function(e,t,n){"use strict";n("f740")},1:function(e,t,n){e.exports=n("cd49")},10:function(e,t){},1012:function(e,t,n){},1036:function(e,t,n){"use strict";n("e059")},11:function(e,t){},1194:function(e,t,n){},12:function(e,t){},"12e8":function(e,t,n){"use strict";n("7656")},13:function(e,t){},"134b":function(e,t,n){},1360:function(e,t,n){"use strict";n("9eab")},"13b2":function(e,t,n){},"13c8":function(e,t,n){},14:function(e,t){},1401:function(e,t,n){"use strict";n("7932")},1539:function(e,t,n){"use strict";n("134b")},1667:function(e,t,n){},"169b":function(e,t,n){"use strict";n("f8f9")},1894:function(e,t,n){"use strict";n("dd50")},1949:function(e,t,n){"use strict";n("1012")},"1b1e":function(e,t,n){},"1cf6":function(e,t,n){},"1ec4":function(e,t,n){},"1fecb":function(e,t,n){"use strict";n("0737")},2:function(e,t){},2007:function(e,t,n){"use strict";n("ec3f")},"20c6":function(e,t,n){"use strict";n("c557")},"26b5":function(e,t,n){},2747:function(e,t,n){},"29ea":function(e,t,n){"use strict";n("5de1")},"2b61":function(e,t,n){"use strict";n("6103")},"2d54":function(e,t,n){},"2ecf":function(e,t,n){"use strict";n("afd2")},3:function(e,t){},"306b":function(e,t,n){"use strict";n("b3fd")},"33de":function(e,t,n){},"389d":function(e,t,n){"use strict";n("4088")},"38d1":function(e,t,n){},"393a":function(e,t,n){},"3a1a":function(e,t,n){},"3a9a":function(e,t,n){},"3bec":function(e,t,n){},"3ebd":function(e,t,n){"use strict";n("ba9f")},"3f8e":function(e,t,n){"use strict";n("dbe5")},4:function(e,t){},4088:function(e,t,n){},4142:function(e,t,n){"use strict";n("1ec4")},4481:function(e,t,n){},4501:function(e,t,n){},"45d5":function(e,t,n){},4678:function(e,t,n){var o={"./af":"2bfb","./af.js":"2bfb","./ar":"8e73","./ar-dz":"a356","./ar-dz.js":"a356","./ar-kw":"423e","./ar-kw.js":"423e","./ar-ly":"1cfd","./ar-ly.js":"1cfd","./ar-ma":"0a84","./ar-ma.js":"0a84","./ar-sa":"8230","./ar-sa.js":"8230","./ar-tn":"6d83","./ar-tn.js":"6d83","./ar.js":"8e73","./az":"485c","./az.js":"485c","./be":"1fc1","./be.js":"1fc1","./bg":"84aa","./bg.js":"84aa","./bm":"a7fa","./bm.js":"a7fa","./bn":"9043","./bn-bd":"9686","./bn-bd.js":"9686","./bn.js":"9043","./bo":"d26a","./bo.js":"d26a","./br":"6887","./br.js":"6887","./bs":"2554","./bs.js":"2554","./ca":"d716","./ca.js":"d716","./cs":"3c0d","./cs.js":"3c0d","./cv":"03ec","./cv.js":"03ec","./cy":"9797","./cy.js":"9797","./da":"0f14","./da.js":"0f14","./de":"b469","./de-at":"b3eb","./de-at.js":"b3eb","./de-ch":"bb71","./de-ch.js":"bb71","./de.js":"b469","./dv":"598a","./dv.js":"598a","./el":"8d47","./el.js":"8d47","./en-au":"0e6b","./en-au.js":"0e6b","./en-ca":"3886","./en-ca.js":"3886","./en-gb":"39a6","./en-gb.js":"39a6","./en-ie":"e1d3","./en-ie.js":"e1d3","./en-il":"7333","./en-il.js":"7333","./en-in":"ec2e","./en-in.js":"ec2e","./en-nz":"6f50","./en-nz.js":"6f50","./en-sg":"b7e9","./en-sg.js":"b7e9","./eo":"65db","./eo.js":"65db","./es":"898b","./es-do":"0a3c","./es-do.js":"0a3c","./es-mx":"b5b7","./es-mx.js":"b5b7","./es-us":"55c9","./es-us.js":"55c9","./es.js":"898b","./et":"ec18","./et.js":"ec18","./eu":"0ff2","./eu.js":"0ff2","./fa":"8df4","./fa.js":"8df4","./fi":"81e9","./fi.js":"81e9","./fil":"d69a","./fil.js":"d69a","./fo":"0721","./fo.js":"0721","./fr":"9f26","./fr-ca":"d9f8","./fr-ca.js":"d9f8","./fr-ch":"0e49","./fr-ch.js":"0e49","./fr.js":"9f26","./fy":"7118","./fy.js":"7118","./ga":"5120","./ga.js":"5120","./gd":"f6b4","./gd.js":"f6b4","./gl":"8840","./gl.js":"8840","./gom-deva":"aaf2","./gom-deva.js":"aaf2","./gom-latn":"0caa","./gom-latn.js":"0caa","./gu":"e0c5","./gu.js":"e0c5","./he":"c7aa","./he.js":"c7aa","./hi":"dc4d","./hi.js":"dc4d","./hr":"4ba9","./hr.js":"4ba9","./hu":"5b14","./hu.js":"5b14","./hy-am":"d6b6","./hy-am.js":"d6b6","./id":"5038","./id.js":"5038","./is":"0558","./is.js":"0558","./it":"6e98","./it-ch":"6f12","./it-ch.js":"6f12","./it.js":"6e98","./ja":"079e","./ja.js":"079e","./jv":"b540","./jv.js":"b540","./ka":"201b","./ka.js":"201b","./kk":"6d79","./kk.js":"6d79","./km":"e81d","./km.js":"e81d","./kn":"3e92","./kn.js":"3e92","./ko":"22f8","./ko.js":"22f8","./ku":"2421","./ku.js":"2421","./ky":"9609","./ky.js":"9609","./lb":"440c","./lb.js":"440c","./lo":"b29d","./lo.js":"b29d","./lt":"26f9","./lt.js":"26f9","./lv":"b97c","./lv.js":"b97c","./me":"293c","./me.js":"293c","./mi":"688b","./mi.js":"688b","./mk":"6909","./mk.js":"6909","./ml":"02fb","./ml.js":"02fb","./mn":"958b","./mn.js":"958b","./mr":"39bd","./mr.js":"39bd","./ms":"ebe4","./ms-my":"6403","./ms-my.js":"6403","./ms.js":"ebe4","./mt":"1b45","./mt.js":"1b45","./my":"8689","./my.js":"8689","./nb":"6ce3","./nb.js":"6ce3","./ne":"3a39","./ne.js":"3a39","./nl":"facd","./nl-be":"db29","./nl-be.js":"db29","./nl.js":"facd","./nn":"b84c","./nn.js":"b84c","./oc-lnc":"167b","./oc-lnc.js":"167b","./pa-in":"f3ff","./pa-in.js":"f3ff","./pl":"8d57","./pl.js":"8d57","./pt":"f260","./pt-br":"d2d4","./pt-br.js":"d2d4","./pt.js":"f260","./ro":"972c","./ro.js":"972c","./ru":"957c","./ru.js":"957c","./sd":"6784","./sd.js":"6784","./se":"ffff","./se.js":"ffff","./si":"eda5","./si.js":"eda5","./sk":"7be6","./sk.js":"7be6","./sl":"8155","./sl.js":"8155","./sq":"c8f3","./sq.js":"c8f3","./sr":"cf1e","./sr-cyrl":"13e9","./sr-cyrl.js":"13e9","./sr.js":"cf1e","./ss":"52bd","./ss.js":"52bd","./sv":"5fbd","./sv.js":"5fbd","./sw":"74dc","./sw.js":"74dc","./ta":"3de5","./ta.js":"3de5","./te":"5cbb","./te.js":"5cbb","./tet":"576c","./tet.js":"576c","./tg":"3b1b","./tg.js":"3b1b","./th":"10e8","./th.js":"10e8","./tk":"5aff","./tk.js":"5aff","./tl-ph":"0f38","./tl-ph.js":"0f38","./tlh":"cf75","./tlh.js":"cf75","./tr":"0e81","./tr.js":"0e81","./tzl":"cf51","./tzl.js":"cf51","./tzm":"c109","./tzm-latn":"b53d","./tzm-latn.js":"b53d","./tzm.js":"c109","./ug-cn":"6117","./ug-cn.js":"6117","./uk":"ada2","./uk.js":"ada2","./ur":"5294","./ur.js":"5294","./uz":"2e8c","./uz-latn":"010e","./uz-latn.js":"010e","./uz.js":"2e8c","./vi":"2921","./vi.js":"2921","./x-pseudo":"fd7e","./x-pseudo.js":"fd7e","./yo":"7f33","./yo.js":"7f33","./zh-cn":"5c3a","./zh-cn.js":"5c3a","./zh-hk":"49ab","./zh-hk.js":"49ab","./zh-mo":"3a6c","./zh-mo.js":"3a6c","./zh-tw":"90ea","./zh-tw.js":"90ea"};function c(e){var t=a(e);return n(t)}function a(e){if(!n.o(o,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return o[e]}c.keys=function(){return Object.keys(o)},c.resolve=a,e.exports=c,c.id="4678"},4967:function(e,t,n){},"4b78":function(e,t,n){},"4c37":function(e,t,n){},5:function(e,t){},"51b6":function(e,t,n){},5264:function(e,t,n){"use strict";n("dc5e")},5297:function(e,t,n){"use strict";n("393a")},"58d7":function(e,t,n){},5952:function(e,t,n){},"5de1":function(e,t,n){},6:function(e,t){},6086:function(e,t,n){},6103:function(e,t,n){},"61fc":function(e,t,n){"use strict";n("ce1a")},"64b8":function(e,t,n){"use strict";n("fff2")},"64c0":function(e,t,n){"use strict";n("f2d4")},6609:function(e,t,n){"use strict";n("1667")},"69b3":function(e,t,n){},"69d5":function(e,t,n){"use strict";n("b42f")},"6c0f":function(e,t,n){"use strict";n("4481")},"6c48":function(e,t,n){},"6f16":function(e,t,n){"use strict";n("ce7d")},7:function(e,t){},7197:function(e,t,n){"use strict";n("9ff1")},7368:function(e,t,n){"use strict";n("51b6")},"74e9":function(e,t,n){},7599:function(e,t,n){"use strict";n("1194")},7656:function(e,t,n){},7751:function(e,t,n){"use strict";n("e3dc")},"77a7":function(e,t,n){},7814:function(e,t,n){"use strict";n("a842")},7815:function(e,t,n){"use strict";n("9a68")},"782e":function(e,t,n){"use strict";n("cc63")},7932:function(e,t,n){},"7a07":function(e,t,n){"use strict";n("e02b")},"7b92":function(e,t,n){},"7d3e":function(e,t,n){},"7d4a":function(e,t,n){"use strict";n("1cf6")},"7fd1":function(e,t,n){"use strict";n("9c72")},8:function(e,t){},8055:function(e,t,n){"use strict";n("3a1a")},"84e7":function(e,t,n){},"86da":function(e,t,n){"use strict";n("bc32")},8754:function(e,t,n){"use strict";n("13c8")},"89f5":function(e,t,n){"use strict";n("38d1")},"8c56":function(e,t,n){},"8d0e":function(e,t,n){},"8df8":function(e,t,n){"use strict";n("3bec")},9:function(e,t){},"92ad":function(e,t,n){"use strict";n("33de")},"930c":function(e,t,n){},9383:function(e,t,n){},"94e5":function(e,t,n){},9569:function(e,t,n){"use strict";n("d38a")},9743:function(e,t,n){"use strict";n("9383")},"9a68":function(e,t,n){},"9c08":function(e,t,n){"use strict";n("c6be")},"9c47":function(e,t,n){"use strict";n("8d0e")},"9c72":function(e,t,n){},"9eab":function(e,t,n){},"9f42":function(e,t,n){"use strict";n("69b3")},"9ff1":function(e,t,n){},a25b:function(e,t,n){},a283:function(e,t,n){"use strict";n("6c48")},a51a:function(e,t,n){},a576:function(e,t,n){"use strict";n("6086")},a842:function(e,t,n){},ae02:function(e,t,n){"use strict";n("cfcd")},ae3f:function(e,t,n){},af3c:function(e,t,n){},afd2:function(e,t,n){},b146:function(e,t,n){"use strict";n("ccfd")},b1c5:function(e,t,n){},b2b3:function(e,t,n){"use strict";n("2747")},b3fd:function(e,t,n){},b42f:function(e,t,n){},b730:function(e,t,n){"use strict";n("7b92")},b8378:function(e,t,n){"use strict";n("94e5")},ba04:function(e,t,n){"use strict";n("c758")},ba9f:function(e,t,n){},bc32:function(e,t,n){},c2a4:function(e,t,n){"use strict";n("1b1e")},c315:function(e,t,n){},c557:function(e,t,n){},c6be:function(e,t,n){},c758:function(e,t,n){},c860:function(e,t,n){},cc4b:function(e,t,n){},cc63:function(e,t,n){},ccf6:function(e,t,n){"use strict";n("45d5")},ccfd:function(e,t,n){},cd46:function(e,t,n){"use strict";n("cc4b")},cd49:function(e,t,n){"use strict";n.r(t);n("7f6b");var o=n("8592"),c=(n("6d2a"),n("9571")),a=(n("ee00"),n("bb76")),r=(n("fbd8"),n("55f1")),l=(n("9d5c"),n("a600")),i=(n("cd17"),n("ed3b")),u=(n("5704"),n("b558")),d=(n("5783"),n("59a5")),s=(n("fbd6"),n("160c")),f=(n("2ef0f"),n("9839")),p=(n("438c"),n("fbdf")),b=(n("5136"),n("681b")),m=(n("9a33"),n("f933")),v=(n("6ba6"),n("5efb")),O=(n("55ec"),n("a79d")),h=(n("922d"),n("09d9")),j=(n("e260"),n("e6cf"),n("cca6"),n("a79df"),n("7a23"));function g(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Editor"),l=Object(j["resolveComponent"])("Screen");return e.screening?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1})):(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0}))}n("a4d3"),n("e01a"),n("d3b7");var y,k,I=n("5502"),E=[{id:"test123456",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"#5b9bd5",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"idn7Mx",left:355,top:65.25,width:585,height:188,lineHeight:1.2,content:"<p><strong><span style='font-size: 112px'>PPTIST</span></strong></p>",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"<p><span style='font-size: 24px'>基于 Vue 3.x + TypeScript 的在线演示文稿应用</span></p>",rotate:0,defaultFontName:"Microsoft Yahei",defaultColor:"#333"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"#5b9bd5",style:"solid",width:2}],background:{type:"solid",color:"#ffffff"}}],C={themeColor:"#5b9bd5",fontColor:"#333",fontName:"Microsoft Yahei",backgroundColor:"#fff"},x=n("5530"),S=n("b85c"),N=(n("b0c0"),n("1913"),function(e,t){return Array.isArray(e)&&e.indexOf(t.type)>-1||t.type===e}),T=function(e,t){for(var n=e.depth;n>0;n--){var o=e.node(n);if(t(o))return{pos:n>0?e.before(n):0,start:e.start(n),depth:n,node:o}}},w=function(e){return function(t){return T(t.$from,e)}},L=function(e){return function(t){return w((function(t){return N(e,t)}))(t)}},V=function(e,t){var n=t.schema.nodes[e];return!!L(n)(t.selection)},_=function(e){var t,n,o=e.state,c=o.selection,a=o.doc,r=c.from,l=a.nodeAt(r)||a.nodeAt(r-1);return null!==(t=l)&&void 0!==t&&t.lastChild&&(l=l.lastChild),(null===(n=l)||void 0===n?void 0:n.marks)||[]},B=function(e,t,n){var o,c=Object(S["a"])(e);try{for(c.s();!(o=c.n()).done;){var a=o.value;if(a.type.name===t&&a.attrs[n])return a.attrs[n]}}catch(r){c.e(r)}finally{c.f()}return null},D=function(e,t){var n,o=Object(S["a"])(e);try{for(o.s();!(n=o.n()).done;){var c=n.value;if(c.type.name===t)return!0}}catch(a){o.e(a)}finally{o.f()}return!1},M=function(e,t){var n=e.state,o=n.selection,c=n.doc,a=o.from,r=o.to,l=!0,i="";return c.nodesBetween(a,r,(function(e){return l&&e.attrs[t]&&(l=!1,i=e.attrs[t]),l})),i},A={color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left"},P=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=Object(x["a"])(Object(x["a"])({},A),t);var n=_(e),o=D(n,"strong"),c=D(n,"em"),a=D(n,"underline"),r=D(n,"strikethrough"),l=D(n,"superscript"),i=D(n,"subscript"),u=D(n,"code"),d=B(n,"forecolor","color")||t.color,s=B(n,"backcolor","backcolor")||t.backcolor,f=B(n,"fontsize","fontsize")||t.fontsize,p=B(n,"fontname","fontname")||t.fontname,b=M(e,"align")||t.align,m=V("bullet_list",e.state),v=V("ordered_list",e.state),O=V("blockquote",e.state);return{bold:o,em:c,underline:a,strikethrough:r,superscript:l,subscript:i,code:u,color:d,backcolor:s,fontsize:f,fontname:p,align:b,bulletList:m,orderedList:v,blockquote:O}},R={bold:!1,em:!1,underline:!1,strikethrough:!1,superscript:!1,subscript:!1,code:!1,color:"#000",backcolor:"#000",fontsize:"20px",fontname:"微软雅黑",align:"left",bulletList:!1,orderedList:!1,blockquote:!1},F={activeElementIdList:[],handleElementId:"",activeGroupElementId:"",canvasPercentage:90,canvasScale:1,thumbnailsFocus:!1,editorAreaFocus:!1,disableHotkeys:!1,showGridLines:!1,creatingElement:null,availableFonts:[],toolbarState:"slideStyle",viewportRatio:.5625,theme:C,slides:E,slideIndex:0,selectedSlidesIndex:[],snapshotCursor:-1,snapshotLength:0,ctrlKeyState:!1,shiftKeyState:!1,screening:!1,clipingImageElementId:"",richTextAttrs:R,selectedTableCells:[],isScaling:!1},H=(n("d81d"),n("4de4"),n("caad"),n("2532"),n("b64b"),n("5319"),n("ac1f"),n("7db0"),[{id:"template",elements:[{type:"text",id:"dTwwDl",left:104.12962962962959,top:213.75000000000003,width:791.7407407407408,height:116,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='font-size: 80px'>在此处添加标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:6}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"idn7Mx",left:145,top:148,width:711,height:77,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='font-size: 48px'>在此处添加标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"7stmVP",left:207.50000000000003,top:249.84259259259264,width:585,height:56,content:"<p style='text-align: center;'><span style='font-size: 24px'>在此处添加副标题</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Ri5fok",left:45,top:40,width:711,height:77,lineHeight:1.2,content:"<p style=''><strong><span style='font-size: 48px'>在此处添加标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"57jpaB",left:45,top:150,width:585,height:56,content:"<p style=''><span style='font-size: 24px'>在此处添加副标题</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"xEykLD",left:45,top:355,width:711,height:77,lineHeight:1.2,content:"<p><strong><span style='font-size: 48px'>在此处添加标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"text",id:"4lvQ5n",left:45,top:460,width:585,height:56,content:"<p><span style='font-size: 24px'>在此处添加副标题</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"shape",id:"4cbRxp",left:0,top:200,width:546,height:362.5,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,opacity:.7,rotate:0},{type:"shape",id:"ookHrf",left:0,top:0,width:300,height:320,viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z",fill:"{{themeColor}}",fixedRatio:!1,flipV:!0,rotate:0},{type:"text",id:"AkIh3E",left:355,top:95.11111111111111,width:585,height:116,lineHeight:1.2,content:"<p style=''><strong><span style='font-size: 80px'>输入标题</span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:6},{type:"text",id:"7stmVP",left:355,top:253.25,width:585,height:56,content:"<p><span style='font-size: 24px'>请在此处输入副标题</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}"},{type:"line",id:"FnpZs4",left:361,top:238,start:[0,0],end:[549,0],points:["",""],color:"{{themeColor}}",style:"solid",width:2}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Hj7ttp",left:69.35185185185185,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 36px'>1.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"FmKMNB",left:69.35185185185185,top:129.28240740740745,width:420,height:384,content:"<p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"},{type:"text",id:"rI7ZeO",left:510.64814814814815,top:49.21759259259262,width:420,height:63,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 36px'>2.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"KspwGc",left:510.64814814814815,top:129.28240740740745,width:420,height:384,content:"<p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 24px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"Rx63Jo",left:69.35185185185179,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 32px'>1.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"ulyuzE",left:69.35185185185179,top:131.78240740740745,width:420,height:129,content:"<p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"},{type:"text",id:"kr35Ca",left:510.6481481481481,top:51.71759259259262,width:420,height:58,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 32px'>2.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"BNQSpC",left:510.6481481481481,top:131.78240740740745,width:420,height:129,content:"<p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"},{type:"text",id:"Vr38Nu",left:69.35185185185185,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 32px'>3.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"IwKRSu",left:69.35185185185185,top:381.7824074074074,width:420,height:129,content:"<p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"},{type:"text",id:"0Opr1v",left:510.64814814814815,top:301.71759259259255,width:420,height:58,lineHeight:1.2,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 32px'>4.请输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"{{themeColor}}"},{type:"text",id:"4L9Uzz",left:510.64814814814815,top:381.7824074074074,width:420,height:129,content:"<p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p><p style='text-align: center;'><span style='font-size: 22px'>在此处输入内容</span></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"}],background:{type:"solid",color:"{{backgroundColor}}"}},{id:"template",elements:[{type:"text",id:"GdEGxg",left:134.53703703703704,top:127.25,width:152.77777777777777,height:308,lineHeight:1.8,content:"<p style='text-align: center;'><strong><span style='color: #ffffff;'><span style='font-size: 40px'>请在此处输入标题</span></span></strong></p>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",wordSpace:8,fill:"{{themeColor}}"},{type:"text",id:"y5sAfw",left:332.8703703703704,top:127.25,width:532.5925925925926,height:50,content:"<blockquote><p style=''>请在此处输入内容1</p></blockquote>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"},{type:"text",id:"VeuocM",left:332.8703703703704,top:212.0648148148148,width:532.5925925925926,height:50,content:"<blockquote><p style=''>请在此处输入内容2</p></blockquote>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"},{type:"text",id:"RyFWQe",left:332.8703703703704,top:296.8796296296296,width:532.5925925925926,height:50,content:"<blockquote><p style=''>请在此处输入内容3</p></blockquote>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"},{type:"text",id:"Q56viI",left:332.8703703703704,top:381.69444444444446,width:532.5925925925926,height:50,content:"<blockquote><p style=''>请在此处输入内容4</p></blockquote>",rotate:0,defaultFontName:"{{fontName}}",defaultColor:"{{fontColor}}",fill:"rgb(242, 242, 242)"}],background:{type:"solid",color:"{{backgroundColor}}"}}]),z={currentSlide:function(e){return e.slides[e.slideIndex]||null},currentSlideAnimations:function(e){var t=e.slides[e.slideIndex];if(!t)return null;var n=t.animations;if(!n)return null;var o=t.elements,c=o.map((function(e){return e.id}));return n.filter((function(e){return c.includes(e.elId)}))},layouts:function(e){var t=e.theme,n=t.themeColor,o=t.fontColor,c=t.fontName,a=t.backgroundColor;return H.map((function(e){var t=e.elements.map((function(e){for(var t={},a=0,r=Object.keys(e);a<r.length;a++){var l=r[a];"string"===typeof e[l]&&(t[l]=e[l].replace("{{themeColor}}",n).replace("{{fontColor}}",o).replace("{{fontName}}",c))}return Object(x["a"])(Object(x["a"])({},e),t)})),r=Object(x["a"])(Object(x["a"])({},e.background),{},{color:a});return Object(x["a"])(Object(x["a"])({},e),{},{elements:t,background:r})}))},activeElementList:function(e){var t=e.slides[e.slideIndex];return t&&t.elements?t.elements.filter((function(t){return e.activeElementIdList.includes(t.id)})):[]},handleElement:function(e){var t=e.slides[e.slideIndex];return t&&t.elements&&t.elements.find((function(t){return e.handleElementId===t.id}))||null},canUndo:function(e){return e.snapshotCursor>0},canRedo:function(e){return e.snapshotCursor<e.snapshotLength-1},ctrlOrShiftKeyActive:function(e){return e.ctrlKeyState||e.shiftKeyState}},U=n("ade3"),G=n("1da1");n("96cf"),n("fb6a"),n("ddb0");(function(e){e["SET_ACTIVE_ELEMENT_ID_LIST"]="setActiveElementIdList",e["SET_HANDLE_ELEMENT_ID"]="setHandleElementId",e["SET_ACTIVE_GROUP_ELEMENT_ID"]="setActiveGroupElementId",e["SET_CANVAS_PERCENTAGE"]="setCanvasPercentage",e["SET_CANVAS_SCALE"]="setCanvasScale",e["SET_THUMBNAILS_FOCUS"]="setThumbnailsFocus",e["SET_EDITORAREA_FOCUS"]="setEditorAreaFocus",e["SET_DISABLE_HOTKEYS_STATE"]="setDisableHotkeysState",e["SET_GRID_LINES_STATE"]="setGridLinesState",e["SET_CREATING_ELEMENT"]="setCreatingElement",e["SET_AVAILABLE_FONTS"]="setAvailableFonts",e["SET_TOOLBAR_STATE"]="setToolbarState",e["SET_CLIPING_IMAGE_ELEMENT_ID"]="setClipingImageElementId",e["SET_RICHTEXT_ATTRS"]="setRichTextAttrs",e["SET_SELECTED_TABLE_CELLS"]="setSelectedTableCells",e["SET_SCALING_STATE"]="setScalingState",e["SET_THEME"]="setTheme",e["SET_VIEWPORT_RATIO"]="setViewportRatio",e["SET_SLIDES"]="setSlides",e["ADD_SLIDE"]="addSlide",e["UPDATE_SLIDE"]="updateSlide",e["DELETE_SLIDE"]="deleteSlide",e["UPDATE_SLIDE_INDEX"]="updateSlideIndex",e["UPDATE_SELECTED_SLIDES_INDEX"]="updateSelectedSlidesIndex",e["ADD_ELEMENT"]="addElement",e["UPDATE_ELEMENT"]="updateElement",e["REMOVE_ELEMENT_PROPS"]="removeElementProps",e["SET_SNAPSHOT_CURSOR"]="setSnapshotCursor",e["SET_SNAPSHOT_LENGTH"]="setSnapshotLength",e["SET_CTRL_KEY_STATE"]="setCtrlKeyState",e["SET_SHIFT_KEY_STATE"]="setShiftKeyState",e["SET_SCREENING"]="setScreening"})(y||(y={})),function(e){e["INIT_SNAPSHOT_DATABASE"]="initSnapshotDatabase",e["ADD_SNAPSHOT"]="addSnapshot",e["UN_DO"]="undo",e["RE_DO"]="redo"}(k||(k={}));var q,X,W=n("d4ec"),Y=n("257e"),Z=n("262e"),J=n("2caf"),K=n("4dec"),Q=function(e){Object(Z["a"])(n,e);var t=Object(J["a"])(n);function n(){var e;return Object(W["a"])(this,n),e=t.call(this,"SnapshotDatabase"),Object(U["a"])(Object(Y["a"])(e),"snapshots",void 0),e.version(1).stores({snapshots:"++id"}),e.snapshots=e.table("snapshots"),e}return n}(K["a"]),$=new Q,ee=(q={},Object(U["a"])(q,k.INIT_SNAPSHOT_DATABASE,(function(e){return Object(G["a"])(regeneratorRuntime.mark((function t(){var n,o,c,a,r;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.commit,o=e.state,t.next=3,$.snapshots.orderBy("id").toArray();case 3:return c=t.sent,a=c.slice(-1)[0],a&&$.snapshots.clear(),r={index:o.slideIndex,slides:o.slides},t.next=9,$.snapshots.add(r);case 9:n(y.SET_SNAPSHOT_CURSOR,0),n(y.SET_SNAPSHOT_LENGTH,1);case 11:case"end":return t.stop()}}),t)})))()})),Object(U["a"])(q,k.ADD_SNAPSHOT,(function(e){return Object(G["a"])(regeneratorRuntime.mark((function t(){var n,o,c,a,r,l,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n=e.state,o=e.commit,t.next=3,$.snapshots.orderBy("id").keys();case 3:return c=t.sent,a=[],n.snapshotCursor>=0&&n.snapshotCursor<c.length-1&&(a=c.slice(n.snapshotCursor+1)),r={index:n.slideIndex,slides:n.slides},t.next=9,$.snapshots.add(r);case 9:return l=c.length-a.length+1,i=20,l>i&&(a.push(c[0]),l--),l>=2&&$.snapshots.update(c[l-2],{index:n.slideIndex}),t.next=15,$.snapshots.bulkDelete(a);case 15:o(y.SET_SNAPSHOT_CURSOR,l-1),o(y.SET_SNAPSHOT_LENGTH,l);case 17:case"end":return t.stop()}}),t)})))()})),Object(U["a"])(q,k.UN_DO,(function(e){return Object(G["a"])(regeneratorRuntime.mark((function t(){var n,o,c,a,r,l,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.state,o=e.commit,!(n.snapshotCursor<=0)){t.next=3;break}return t.abrupt("return");case 3:return c=n.snapshotCursor-1,t.next=6,$.snapshots.orderBy("id").toArray();case 6:a=t.sent,r=a[c],l=r.index,i=r.slides,u=l>i.length-1?i.length-1:l,o(y.SET_SLIDES,i),o(y.UPDATE_SLIDE_INDEX,u),o(y.SET_SNAPSHOT_CURSOR,c),o(y.SET_ACTIVE_ELEMENT_ID_LIST,[]);case 14:case"end":return t.stop()}}),t)})))()})),Object(U["a"])(q,k.RE_DO,(function(e){return Object(G["a"])(regeneratorRuntime.mark((function t(){var n,o,c,a,r,l,i,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=e.state,o=e.commit,!(n.snapshotCursor>=n.snapshotLength-1)){t.next=3;break}return t.abrupt("return");case 3:return c=n.snapshotCursor+1,t.next=6,$.snapshots.orderBy("id").toArray();case 6:a=t.sent,r=a[c],l=r.index,i=r.slides,u=l>i.length-1?i.length-1:l,o(y.SET_SLIDES,i),o(y.UPDATE_SLIDE_INDEX,u),o(y.SET_SNAPSHOT_CURSOR,c),o(y.SET_ACTIVE_ELEMENT_ID_LIST,[]);case 14:case"end":return t.stop()}}),t)})))()})),q),te=n("2909"),ne=(n("a434"),n("99af"),n("c740"),n("2ef0")),oe=[{label:"Arial",value:"Arial"},{label:"微软雅黑",value:"Microsoft Yahei"},{label:"宋体",value:"SimSun"},{label:"黑体",value:"SimHei"},{label:"楷体",value:"KaiTi"},{label:"新宋体",value:"NSimSun"},{label:"仿宋",value:"FangSong"},{label:"苹方",value:"PingFang SC"},{label:"华文黑体",value:"STHeiti"},{label:"华文楷体",value:"STKaiti"},{label:"华文宋体",value:"STSong"},{label:"华文仿宋",value:"STFangSong"},{label:"华文中宋",value:"STZhongSong"},{label:"华文琥珀",value:"STHupo"},{label:"华文新魏",value:"STXinwei"},{label:"华文隶书",value:"STLiti"},{label:"华文行楷",value:"STXingkai"},{label:"冬青黑体",value:"Hiragino Sans GB"},{label:"兰亭黑",value:"Lantinghei SC"},{label:"偏偏体",value:"Hanzipen SC"},{label:"手札体",value:"Hannotate SC"},{label:"宋体",value:"Songti SC"},{label:"娃娃体",value:"Wawati SC"},{label:"行楷",value:"Xingkai SC"},{label:"圆体",value:"Yuanti SC"},{label:"华文细黑",value:"STXihei"},{label:"幼圆",value:"YouYuan"},{label:"隶书",value:"LiSu"}],ce=[{label:"仓耳小丸子",value:"仓耳小丸子"},{label:"优设标题黑",value:"优设标题黑"},{label:"峰广明锐体",value:"峰广明锐体"},{label:"摄图摩登小方体",value:"摄图摩登小方体"},{label:"站酷快乐体",value:"站酷快乐体"},{label:"字制区喜脉体",value:"字制区喜脉体"},{label:"素材集市康康体",value:"素材集市康康体"},{label:"联盟起艺卢帅正锐黑体",value:"联盟起艺卢帅正锐黑体"},{label:"素材集市酷方体",value:"素材集市酷方体"},{label:"途牛类圆体",value:"途牛类圆体"},{label:"锐字真言体",value:"锐字真言体"},{label:"阿里汉仪智能黑体",value:"阿里汉仪智能黑体"}],ae=(n("a15b"),function(e){if("string"!==typeof e)return!1;var t="Arial";if(e.toLowerCase()===t.toLowerCase())return!0;var n=100,o=100,c=100,a="a",r=document.createElement("canvas"),l=r.getContext("2d");if(!l)return!1;r.width=o,r.height=c,l.textAlign="center",l.fillStyle="black",l.textBaseline="middle";var i=function(e){l.clearRect(0,0,o,c),l.font="".concat(n,"px ").concat(e,", ").concat(t),l.fillText(a,o/2,c/2);var r=l.getImageData(0,0,o,c).data;return[].slice.call(r).filter((function(e){return 0!==e}))};return i(t).join("")!==i(e).join("")}),re=(X={},Object(U["a"])(X,y.SET_ACTIVE_ELEMENT_ID_LIST,(function(e,t){1===t.length?e.handleElementId=t[0]:e.handleElementId="",e.activeElementIdList=t})),Object(U["a"])(X,y.SET_HANDLE_ELEMENT_ID,(function(e,t){e.handleElementId=t})),Object(U["a"])(X,y.SET_ACTIVE_GROUP_ELEMENT_ID,(function(e,t){e.activeGroupElementId=t})),Object(U["a"])(X,y.SET_CANVAS_PERCENTAGE,(function(e,t){e.canvasPercentage=t})),Object(U["a"])(X,y.SET_CANVAS_SCALE,(function(e,t){e.canvasScale=t})),Object(U["a"])(X,y.SET_THUMBNAILS_FOCUS,(function(e,t){e.thumbnailsFocus=t})),Object(U["a"])(X,y.SET_EDITORAREA_FOCUS,(function(e,t){e.editorAreaFocus=t})),Object(U["a"])(X,y.SET_DISABLE_HOTKEYS_STATE,(function(e,t){e.disableHotkeys=t})),Object(U["a"])(X,y.SET_GRID_LINES_STATE,(function(e,t){e.showGridLines=t})),Object(U["a"])(X,y.SET_CREATING_ELEMENT,(function(e,t){e.creatingElement=t})),Object(U["a"])(X,y.SET_AVAILABLE_FONTS,(function(e){e.availableFonts=oe.filter((function(e){return ae(e.value)}))})),Object(U["a"])(X,y.SET_TOOLBAR_STATE,(function(e,t){e.toolbarState=t})),Object(U["a"])(X,y.SET_CLIPING_IMAGE_ELEMENT_ID,(function(e,t){e.clipingImageElementId=t})),Object(U["a"])(X,y.SET_RICHTEXT_ATTRS,(function(e,t){e.richTextAttrs=t})),Object(U["a"])(X,y.SET_SELECTED_TABLE_CELLS,(function(e,t){e.selectedTableCells=t})),Object(U["a"])(X,y.SET_SCALING_STATE,(function(e,t){e.isScaling=t})),Object(U["a"])(X,y.SET_THEME,(function(e,t){e.theme=Object(x["a"])(Object(x["a"])({},e.theme),t)})),Object(U["a"])(X,y.SET_VIEWPORT_RATIO,(function(e,t){e.viewportRatio=t})),Object(U["a"])(X,y.SET_SLIDES,(function(e,t){e.slides=t})),Object(U["a"])(X,y.ADD_SLIDE,(function(e,t){var n,o=Array.isArray(t)?t:[t],c=e.slideIndex+1;(n=e.slides).splice.apply(n,[c,0].concat(Object(te["a"])(o))),e.slideIndex=c})),Object(U["a"])(X,y.UPDATE_SLIDE,(function(e,t){var n=e.slideIndex;e.slides[n]=Object(x["a"])(Object(x["a"])({},e.slides[n]),t)})),Object(U["a"])(X,y.DELETE_SLIDE,(function(e,t){for(var n=Array.isArray(t)?t:[t],o=[],c=function(t){var c=e.slides.findIndex((function(e){return e.id===n[t]}));o.push(c)},a=0;a<n.length;a++)c(a);var r=Math.min.apply(Math,o),l=e.slides.length-n.length-1;r>l&&(r=l),e.slideIndex=r,e.slides=e.slides.filter((function(e){return!n.includes(e.id)}))})),Object(U["a"])(X,y.UPDATE_SLIDE_INDEX,(function(e,t){e.slideIndex=t})),Object(U["a"])(X,y.UPDATE_SELECTED_SLIDES_INDEX,(function(e,t){e.selectedSlidesIndex=t})),Object(U["a"])(X,y.ADD_ELEMENT,(function(e,t){var n=Array.isArray(t)?t:[t],o=e.slides[e.slideIndex].elements,c=[].concat(Object(te["a"])(o),Object(te["a"])(n));e.slides[e.slideIndex].elements=c})),Object(U["a"])(X,y.UPDATE_ELEMENT,(function(e,t){var n=t.id,o=t.props,c="string"===typeof n?[n]:n,a=e.slideIndex,r=e.slides[a],l=r.elements.map((function(e){return c.includes(e.id)?Object(x["a"])(Object(x["a"])({},e),o):e}));e.slides[a].elements=l})),Object(U["a"])(X,y.REMOVE_ELEMENT_PROPS,(function(e,t){var n=t.id,o=t.propName,c="string"===typeof o?[o]:o,a=e.slideIndex,r=e.slides[a],l=r.elements.map((function(e){return e.id===n?Object(ne["omit"])(e,c):e}));e.slides[a].elements=l})),Object(U["a"])(X,y.SET_SNAPSHOT_CURSOR,(function(e,t){e.snapshotCursor=t})),Object(U["a"])(X,y.SET_SNAPSHOT_LENGTH,(function(e,t){e.snapshotLength=t})),Object(U["a"])(X,y.SET_CTRL_KEY_STATE,(function(e,t){e.ctrlKeyState=t})),Object(U["a"])(X,y.SET_SHIFT_KEY_STATE,(function(e,t){e.shiftKeyState=t})),Object(U["a"])(X,y.SET_SCREENING,(function(e,t){e.screening=t})),X),le=Symbol(),ie=Object(I["a"])({state:F,getters:z,mutations:re,actions:ee}),ue=function(){return Object(I["b"])(le)},de=Object(j["withScopeId"])("data-v-55178b6a");Object(j["pushScopeId"])("data-v-55178b6a");var se={class:"pptist-editor"},fe={class:"layout-content"},pe={class:"layout-content-center"};Object(j["popScopeId"])();var be,me,ve,Oe,he,je,ge=de((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("EditorHeader"),l=Object(j["resolveComponent"])("Thumbnails"),i=Object(j["resolveComponent"])("CanvasTool"),u=Object(j["resolveComponent"])("Canvas"),d=Object(j["resolveComponent"])("Remark"),s=Object(j["resolveComponent"])("Toolbar");return Object(j["openBlock"])(),Object(j["createBlock"])("div",se,[Object(j["createVNode"])(r,{class:"layout-header"}),Object(j["createVNode"])("div",fe,[Object(j["createVNode"])(l,{class:"layout-content-left"}),Object(j["createVNode"])("div",pe,[Object(j["createVNode"])(i,{class:"center-top"}),Object(j["createVNode"])(u,{class:"center-body",style:{height:"calc(100% - ".concat(e.remarkHeight+40,"px)")}},null,8,["style"]),Object(j["createVNode"])(d,{class:"center-bottom",height:e.remarkHeight,"onUpdate:height":t[1]||(t[1]=function(t){return e.remarkHeight=t}),style:{height:"".concat(e.remarkHeight,"px")}},null,8,["height","style"])]),Object(j["createVNode"])(s,{class:"layout-content-right"})])])}));(function(e){e["UP"]="up",e["DOWN"]="down",e["TOP"]="top",e["BOTTOM"]="bottom"})(be||(be={})),function(e){e["TOP"]="top",e["BOTTOM"]="bottom",e["LEFT"]="left",e["RIGHT"]="right",e["VERTICAL"]="vertical",e["HORIZONTAL"]="horizontal",e["CENTER"]="center"}(me||(me={})),function(e){e["T"]="top",e["B"]="bottom",e["L"]="left",e["R"]="right"}(ve||(ve={})),function(e){e["LEFT_TOP"]="left-top",e["TOP"]="top",e["RIGHT_TOP"]="right-top",e["LEFT"]="left",e["RIGHT"]="right",e["LEFT_BOTTOM"]="left-bottom",e["BOTTOM"]="bottom",e["RIGHT_BOTTOM"]="right-bottom"}(Oe||(Oe={})),function(e){e["START"]="start",e["END"]="end",e["MID"]="mid"}(he||(he={})),function(e){e["C"]="C",e["X"]="X",e["Z"]="Z",e["Y"]="Y",e["A"]="A",e["G"]="G",e["L"]="L",e["F"]="F",e["D"]="D",e["B"]="B",e["MINUS"]="-",e["EQUAL"]="=",e["DIGIT_0"]="0",e["DELETE"]="DELETE",e["UP"]="ARROWUP",e["DOWN"]="ARROWDOWN",e["LEFT"]="ARROWLEFT",e["RIGHT"]="ARROWRIGHT",e["ENTER"]="ENTER",e["SPACE"]=" ",e["TAB"]="TAB",e["BACKSPACE"]="BACKSPACE"}(je||(je={}));var ye=[{type:"通用",children:[{label:"剪切",value:"Ctrl + X"},{label:"复制",value:"Ctrl + C"},{label:"粘贴",value:"Ctrl + V"},{label:"快速复制粘贴",value:"Ctrl + D"},{label:"全选",value:"Ctrl + A"},{label:"撤销",value:"Ctrl + Z"},{label:"恢复",value:"Ctrl + Y"},{label:"删除",value:"Delete / Backspace"},{label:"多选",value:"按住 Ctrl 或 Shift"}]},{type:"幻灯片放映",children:[{label:"开始放映幻灯片",value:"Ctrl + F"},{label:"切换上一页",value:"↑ / ←"},{label:"切换下一页",value:"↓ / → / Enter / Space"},{label:"退出放映",value:"ESC"}]},{type:"幻灯片编辑",children:[{label:"新建幻灯片",value:"Enter"},{label:"缩放画布",value:"Ctrl + 鼠标滚动"},{label:"放大画布",value:"Ctrl + ="},{label:"缩小画布",value:"Ctrl + -"},{label:"缩放画布到合适大小",value:"Ctrl + 0"},{label:"编辑上一页",value:"↑ / ← / 鼠标上滚"},{label:"编辑下一页",value:"↓ / → / 鼠标下滚"}]},{type:"元素操作",children:[{label:"移动",value:"↑ / ← / ↓ / →"},{label:"锁定",value:"Ctrl + L"},{label:"组合",value:"Ctrl + G"},{label:"取消组合",value:"Ctrl + Shift + G"},{label:"置顶层",value:"Alt + F"},{label:"置底层",value:"Alt + B"},{label:"锁定宽高比例",value:"按住 Ctrl 或 Shift"},{label:"创建水平 / 垂直线条",value:"按住 Ctrl 或 Shift"},{label:"切换焦点元素",value:"Tab"},{label:"确认图片裁剪",value:"Enter"}]},{type:"表格编辑",children:[{label:"聚焦到下一个单元格",value:"Tab"},{label:"在上方插入一行",value:"Ctrl + ↑"},{label:"在下方插入一行",value:"Ctrl + ↓"},{label:"在左侧插入一列",value:"Ctrl + ←"},{label:"在右侧插入一列",value:"Ctrl + →"}]},{type:"图表数据编辑",children:[{label:"聚焦到下一行",value:"Enter"}]},{type:"文本编辑",children:[{label:"加粗",value:"Ctrl + B"},{label:"斜体",value:"Ctrl + I"},{label:"下划线",value:"Ctrl + U"},{label:"删除线",value:"Ctrl + D"}]}],ke=(n("3b18"),n("f64c")),Ie=(n("a630"),n("3ca3"),function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6,t="_0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",n=t.length,o="",c=0;c<e;c++){var a=Math.floor(Math.random()*n);o+=t[a]}return o}),Ee=function(e,t){return Object(ne["padStart"])(""+e,t,"0")},Ce=(n("1276"),n("b311")),xe=n.n(Ce),Se=(n("25f0"),n("3452")),Ne=n.n(Se),Te="pptist",we=function(e){return Ne.a.AES.encrypt(e,Te).toString()},Le=function(e){var t=Ne.a.AES.decrypt(e,Te);return t.toString(Ne.a.enc.Utf8)},Ve=function(e){return new Promise((function(t,n){var o=document.createElement("button"),c=new xe.a(o,{text:function(){return e},action:function(){return"copy"},container:document.body});c.on("success",(function(e){c.destroy(),t(e)})),c.on("error",(function(e){c.destroy(),n(e)})),document.body.appendChild(o),o.click(),document.body.removeChild(o)}))},_e=function(){return new Promise((function(e,t){var n;null!==(n=navigator.clipboard)&&void 0!==n&&n.readText?navigator.clipboard.readText().then((function(n){return n||t("剪贴板为空或者不包含文本"),e(n)})):t("浏览器不支持或禁止访问剪贴板,请使用快捷键 Ctrl + V")}))},Be=function(e){var t;try{t=JSON.parse(Le(e))}catch(n){t=e}return t},De=function(e){var t=e.split("\r\n");""===t[t.length-1]&&t.pop();var n=-1,o=[];for(var c in t){if(o[c]=t[c].split("\t"),1===o[c].length)return!1;if(-1===n)n=o[c].length;else if(n!==o[c].length)return!1}return o},Me=(n("159b"),n("66cb")),Ae=n.n(Me),Pe=function(e){var t=e.left,n=e.top,o=e.width,c=e.height,a=e.rotate,r=void 0===a?0:a,l=Math.sqrt(Math.pow(o,2)+Math.pow(c,2))/2,i=180*Math.atan(c/o)/Math.PI,u=(180-r-i)*Math.PI/180,d=(i-r)*Math.PI/180,s=t+o/2,f=n+c/2,p=[s+l*Math.cos(u),s+l*Math.cos(d),s-l*Math.cos(u),s-l*Math.cos(d)],b=[f-l*Math.sin(u),f-l*Math.sin(d),f+l*Math.sin(u),f+l*Math.sin(d)];return{xRange:[Math.min.apply(Math,p),Math.max.apply(Math,p)],yRange:[Math.min.apply(Math,b),Math.max.apply(Math,b)]}},Re=function(e){var t=Pe({left:e.left,top:e.top,width:e.width,height:e.height,rotate:0}),n=t.xRange,o=t.yRange,c=Pe({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=c.xRange,r=c.yRange;return{offsetX:a[0]-n[0],offsetY:r[0]-o[0]}},Fe=function(e){var t,n,o,c;if("line"===e.type)t=e.left,n=e.left+Math.max(e.start[0],e.end[0]),o=e.top,c=e.top+Math.max(e.start[1],e.end[1]);else if("rotate"in e&&e.rotate){var a=e.left,r=e.top,l=e.width,i=e.height,u=e.rotate,d=Pe({left:a,top:r,width:l,height:i,rotate:u}),s=d.xRange,f=d.yRange;t=s[0],n=s[1],o=f[0],c=f[1]}else t=e.left,n=e.left+e.width,o=e.top,c=e.top+e.height;return{minX:t,maxX:n,minY:o,maxY:c}},He=function(e){var t=[],n=[],o=[],c=[];e.forEach((function(e){var a=Fe(e),r=a.minX,l=a.maxX,i=a.minY,u=a.maxY;t.push(r),n.push(i),o.push(l),c.push(u)}));var a=Math.min.apply(Math,t),r=Math.max.apply(Math,o),l=Math.min.apply(Math,n),i=Math.max.apply(Math,c);return{minX:a,maxX:r,minY:l,maxY:i}},ze=function(e){var t=[];return e.forEach((function(e){var n=t.findIndex((function(t){return t.value===e.value}));if(-1===n)t.push(e);else{var o=t[n],c=Math.min(o.range[0],e.range[0]),a=Math.max(o.range[1],e.range[1]),r=[c,a],l={value:e.value,range:r};t[n]=l}})),t},Ue=function(e){var t,n={},o={},c=Object(S["a"])(e);try{for(c.s();!(t=c.n()).done;){var a=t.value,r=a.groupId;r&&!n[r]&&(n[r]=Ie()),o[a.id]=Ie()}}catch(l){c.e(l)}finally{c.f()}return{groupIdMap:n,elIdMap:o}},Ge=function(e){var t=Ae()(e).toRgb(),n={r:t.r,g:t.g,b:t.b,a:.3*t.a},o={r:t.r,g:t.g,b:t.b,a:.1*t.a};return["rgba(".concat([n.r,n.g,n.b,n.a].join(","),")"),"rgba(".concat([o.r,o.g,o.b,o.a].join(","),")")]},qe=function(e){var t=e.start.join(","),n=e.end.join(",");if(e.broken){var o=e.broken.join(",");return"M".concat(t," L").concat(o," L").concat(n)}if(e.curve){var c=e.curve.join(",");return"M".concat(t," Q").concat(c," ").concat(n)}return"M".concat(t," L").concat(n)},Xe=n("53ca"),We=(n("07ac"),function(e){var t,n=e.replace(/[\n\r]+/g,"<br>"),o=n.split("<br>"),c="",a=Object(S["a"])(o);try{for(a.s();!(t=a.n()).done;){var r=t.value;r&&(c+="<div>".concat(r,"</div>"))}}catch(l){a.e(l)}finally{a.f()}return c}),Ye=function(){var e=ue(),t=Object(ne["debounce"])((function(){e.dispatch(k.ADD_SNAPSHOT)}),300,{trailing:!0}),n=Object(ne["throttle"])((function(){e.dispatch(k.RE_DO)}),100,{leading:!0,trailing:!1}),o=Object(ne["throttle"])((function(){e.dispatch(k.UN_DO)}),100,{leading:!0,trailing:!1});return{addHistorySnapshot:t,redo:n,undo:o}},Ze=(n("cb29"),function(e){return new Promise((function(t){var n=document.createElement("img");n.src=e,n.style.opacity="0",document.body.appendChild(n),n.onload=function(){var e=n.clientWidth,o=n.clientHeight;n.onload=null,n.onerror=null,document.body.removeChild(n),t({width:e,height:o})},n.onerror=function(){n.onload=null,n.onerror=null}}))}),Je=function(e){return new Promise((function(t){var n=new FileReader;n.addEventListener("load",(function(){t(n.result)})),n.readAsDataURL(e)}))},Ke=1e3,Qe=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.theme.themeColor})),n=Object(j["computed"])((function(){return e.state.theme.fontColor})),o=Object(j["computed"])((function(){return e.state.theme.fontName})),c=Object(j["computed"])((function(){return e.state.viewportRatio})),a=Object(j["computed"])((function(){return e.state.creatingElement})),r=Ye(),l=r.addHistorySnapshot,i=function(t){e.commit(y.ADD_ELEMENT,t),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[t.id]),a.value&&e.commit(y.SET_CREATING_ELEMENT,null),setTimeout((function(){e.commit(y.SET_EDITORAREA_FOCUS,!0)}),0),l()},u=function(e){Ze(e).then((function(t){var n=t.width,o=t.height,a=o/n;a<c.value&&n>Ke?(n=Ke,o=n*a):o>Ke*c.value&&(o=Ke*c.value,n=o/a),i({type:"image",id:Ie(),src:e,width:n,height:o,left:(Ke-n)/2,top:(Ke*c.value-o)/2,fixedRatio:!0,rotate:0})}))},d=function(e){i({type:"chart",id:Ie(),chartType:e,left:300,top:81.25,width:400,height:400,themeColor:t.value,gridColor:n.value,data:{labels:["类别1","类别2","类别3","类别4","类别5"],series:[[12,19,5,2,18]]}})},s=function(e,a){for(var r={fontname:o.value,color:n.value},l=[],u=0;u<e;u++){for(var d=[],s=0;s<a;s++)d.push({id:Ie(),colspan:1,rowspan:1,text:"",style:r});l.push(d)}var f=100,p=36,b=new Array(a).fill(1/a),m=a*f,v=e*p;i({type:"table",id:Ie(),width:m,height:v,colWidths:b,data:l,left:(Ke-m)/2,top:(Ke*c.value-v)/2,outline:{width:2,style:"solid",color:"#eeece1"},theme:{color:t.value,rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}})},f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"请输入内容",c=e.left,a=e.top,r=e.width,l=e.height;i({type:"text",id:Ie(),left:c,top:a,width:r,height:l,content:t,rotate:0,defaultFontName:o.value,defaultColor:n.value})},p=function(e,n){var o=e.left,c=e.top,a=e.width,r=e.height,l={type:"shape",id:Ie(),left:o,top:c,width:a,height:r,viewBox:n.viewBox,path:n.path,fill:t.value,fixedRatio:!1,rotate:0};n.special&&(l.special=!0),i(l)},b=function(e,n){var o=e.left,c=e.top,a=e.start,r=e.end,l={type:"line",id:Ie(),left:o,top:c,start:a,end:r,points:n.points,color:t.value,style:n.style,width:2};n.isBroken&&(l.broken=[(a[0]+r[0])/2,(a[1]+r[1])/2]),n.isCurve&&(l.curve=[(a[0]+r[0])/2,(a[1]+r[1])/2]),i(l)};return{createImageElement:u,createChartElement:d,createTableElement:s,createTextElement:f,createShapeElement:p,createLineElement:b}},$e=function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.currentSlide})),n=Ye(),o=n.addHistorySnapshot,c=Qe(),a=c.createTextElement,r=function(n){var c,a=Ue(n),r=a.groupIdMap,l=a.elIdMap,i=t.value.elements.map((function(e){return e.id})),u=Object(S["a"])(n);try{for(u.s();!(c=u.n()).done;){var d=c.value,s=i.includes(d.id);d.id=l[d.id],s&&(d.left=d.left+10,d.top=d.top+10),d.groupId&&(d.groupId=r[d.groupId])}}catch(f){u.e(f)}finally{u.f()}e.commit(y.ADD_ELEMENT,n),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,Object.values(l)),o()},l=function(t){var n=t.map((function(e){var t,n=Ue(e.elements),o=n.groupIdMap,c=n.elIdMap,a=Object(S["a"])(e.elements);try{for(a.s();!(t=a.n()).done;){var r=t.value;r.id=c[r.id],r.groupId&&(r.groupId=o[r.groupId])}}catch(d){a.e(d)}finally{a.f()}if(e.animations){var l,i=Object(S["a"])(e.animations);try{for(i.s();!(l=i.n()).done;){var u=l.value;u.elId=c[u.elId]}}catch(d){i.e(d)}finally{i.f()}}return Object(x["a"])(Object(x["a"])({},e),{},{id:Ie(8)})}));e.commit(y.ADD_SLIDE,n),o()},i=function(e){a({left:0,top:0,width:600,height:50},e)},u=function(e,t){var n=(null===t||void 0===t?void 0:t.onlySlide)||!1,o=(null===t||void 0===t?void 0:t.onlyElements)||!1,c=Be(e);if("object"===Object(Xe["a"])(c)){var a=c.type,u=c.data;"elements"!==a||n?"slides"!==a||o||l(u):r(u)}else if(!o&&!n){var d=We(c);i(d)}};return{addSlidesFromClipboard:l,pasteTextClipboardData:u}},et=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.slideIndex})),n=Object(j["computed"])((function(){return e.state.theme})),o=Object(j["computed"])((function(){return e.state.slides})),c=Object(j["computed"])((function(){return e.getters.currentSlide})),a=Object(j["computed"])((function(){return[].concat(Object(te["a"])(e.state.selectedSlidesIndex),[t.value])})),r=Object(j["computed"])((function(){return o.value.filter((function(e,t){return a.value.includes(t)}))})),l=Object(j["computed"])((function(){return r.value.map((function(e){return e.id}))})),i=$e(),u=i.pasteTextClipboardData,d=i.addSlidesFromClipboard,s=Ye(),f=s.addHistorySnapshot,p=function(){var t={id:Ie(8),elements:[],background:{type:"solid",color:n.value.backgroundColor}};e.commit(y.UPDATE_SLIDE_INDEX,0),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.SET_SLIDES,[t])},b=function(n){n===je.UP&&t.value>0?e.commit(y.UPDATE_SLIDE_INDEX,t.value-1):n===je.DOWN&&t.value<o.value.length-1&&e.commit(y.UPDATE_SLIDE_INDEX,t.value+1)},m=function(){var t=we(JSON.stringify({type:"slides",data:r.value}));Ve(t).then((function(){e.commit(y.SET_THUMBNAILS_FOCUS,!0)}))},v=function(){_e().then((function(e){u(e,{onlySlide:!0})})).catch((function(e){return ke["a"].warning(e)}))},O=function(){var t={id:Ie(8),elements:[],background:{type:"solid",color:n.value.backgroundColor}};e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.ADD_SLIDE,t),f()},h=function(t){var n,o=Ue(t.elements),c=o.groupIdMap,a=o.elIdMap,r=Object(S["a"])(t.elements);try{for(r.s();!(n=r.n()).done;){var l=n.value;l.id=a[l.id],l.groupId&&(l.groupId=c[l.groupId])}}catch(u){r.e(u)}finally{r.f()}var i=Object(x["a"])(Object(x["a"])({},t),{},{id:Ie(8)});e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.ADD_SLIDE,i),f()},g=function(){var e=JSON.parse(JSON.stringify(c.value));d([e])},k=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.value;o.value.length===t.length?p():e.commit(y.DELETE_SLIDE,t),e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,[]),f()},I=function(){var e=Object(te["a"])(l.value);m(),k(e)},E=function(){var t=Array.from(Array(o.value.length),(function(e,t){return t}));e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,t)};return{resetSlides:p,updateSlideIndex:b,copySlide:m,pasteSlide:v,createSlide:O,createSlideByTemplate:h,copyAndPasteSlide:g,deleteSlide:k,cutSlide:I,selectAllSlide:E}},tt=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.currentSlide})),o=Ye(),c=o.addHistorySnapshot,a=function(){var o,a=JSON.parse(JSON.stringify(n.value.elements)),r=Object(S["a"])(a);try{for(r.s();!(o=r.n()).done;){var l=o.value;t.value.includes(l.id)&&(l.lock=!0)}}catch(i){r.e(i)}finally{r.f()}e.commit(y.UPDATE_SLIDE,{elements:a}),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),c()},r=function(t){var o=JSON.parse(JSON.stringify(n.value.elements));if(t.groupId){var a,r=Object(S["a"])(o);try{for(r.s();!(a=r.n()).done;){var l=a.value;l.groupId===t.groupId&&(l.lock=!1)}}catch(s){r.e(s)}finally{r.f()}return o}var i,u=Object(S["a"])(o);try{for(u.s();!(i=u.n()).done;){var d=i.value;if(d.id===t.id){d.lock=!1;break}}}catch(s){u.e(s)}finally{u.f()}e.commit(y.UPDATE_SLIDE,{elements:o}),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[t.id]),c()};return{lockElement:a,unlockElement:r}},nt=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.state.activeGroupElementId})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Ye(),a=c.addHistorySnapshot,r=function(){if(t.value.length){var c=[];c=n.value?o.value.elements.filter((function(e){return e.id!==n.value})):o.value.elements.filter((function(e){return!t.value.includes(e.id)})),e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.UPDATE_SLIDE,{elements:c}),a()}},l=function(){o.value.elements.length&&(e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),e.commit(y.UPDATE_SLIDE,{elements:[]}),a())};return{deleteElement:r,deleteAllElements:l}},ot=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.activeElementList})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Object(j["computed"])((function(){return e.state.handleElementId})),a=Ye(),r=a.addHistorySnapshot,l=Object(j["computed"])((function(){if(n.value.length<2)return!1;var e=n.value[0].groupId;if(!e)return!0;var t=n.value.every((function(t){return(t.groupId&&t.groupId)===e}));return!t})),i=function(){var c;if(n.value.length){var a,l=JSON.parse(JSON.stringify(o.value.elements)),i=Ie(),u=[],d=Object(S["a"])(l);try{for(d.s();!(a=d.n()).done;){var s=a.value;t.value.includes(s.id)&&(s.groupId=i,u.push(s))}}catch(m){d.e(m)}finally{d.f()}var f=l.findIndex((function(e){return e.id===u[u.length-1].id})),p=u.map((function(e){return e.id}));l=l.filter((function(e){return!p.includes(e.id)}));var b=f-u.length+1;(c=l).splice.apply(c,[b,0].concat(u)),e.commit(y.UPDATE_SLIDE,{elements:l}),r()}},u=function(){if(n.value.length){var a=n.value.some((function(e){return e.groupId}));if(a){var l,i=JSON.parse(JSON.stringify(o.value.elements)),u=Object(S["a"])(i);try{for(u.s();!(l=u.n()).done;){var d=l.value;t.value.includes(d.id)&&d.groupId&&delete d.groupId}}catch(f){u.e(f)}finally{u.f()}e.commit(y.UPDATE_SLIDE,{elements:i});var s=c.value?[c.value]:[];e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,s),r()}}};return{canCombine:l,combineElements:i,uncombineElements:u}},ct=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.activeElementList})),o=$e(),c=o.pasteTextClipboardData,a=nt(),r=a.deleteElement,l=function(){if(t.value.length){var o=we(JSON.stringify({type:"elements",data:n.value}));Ve(o).then((function(){e.commit(y.SET_EDITORAREA_FOCUS,!0)}))}},i=function(){l(),r()},u=function(){_e().then((function(e){c(e)})).catch((function(e){return ke["a"].warning(e)}))},d=function(){l(),u()};return{copyElement:l,cutElement:i,pasteElement:u,quickCopyElement:d}},at=function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.currentSlide})),n=function(){var n=t.value.elements.filter((function(e){return!e.lock})),o=n.map((function(e){return e.id}));e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,o)};return{selectAllElement:n}},rt=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.state.activeGroupElementId})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Ye(),a=c.addHistorySnapshot,r=function(c){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=[],i=function(e){var t=e.left,n=e.top;switch(c){case je.LEFT:t-=r;break;case je.RIGHT:t+=r;break;case je.UP:n-=r;break;case je.DOWN:n+=r;break;default:break}return Object(x["a"])(Object(x["a"])({},e),{},{left:t,top:n})};l=n.value?o.value.elements.map((function(e){return n.value===e.id?i(e):e})):o.value.elements.map((function(e){return t.value.includes(e.id)?i(e):e})),e.commit(y.UPDATE_SLIDE,{elements:l}),a()};return{moveElement:r}},lt=function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.currentSlide})),n=Ye(),o=n.addHistorySnapshot,c=function(e,t){return{minLevel:e.findIndex((function(e){return e.id===t[0].id})),maxLevel:e.findIndex((function(e){return e.id===t[t.length-1].id}))}},a=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),a=c(e,o),r=a.minLevel,l=a.maxLevel;if(l===e.length-1)return;var i=n[l+1],u=n.splice(r,o.length);if(i.groupId){var d=n.filter((function(e){return e.groupId===i.groupId}));n.splice.apply(n,[r+d.length,0].concat(Object(te["a"])(u)))}else n.splice.apply(n,[r+1,0].concat(Object(te["a"])(u)))}else{var s=e.findIndex((function(e){return e.id===t.id}));if(s===e.length-1)return;var f=n[s+1],p=n.splice(s,1)[0];if(f.groupId){var b=n.filter((function(e){return e.groupId===f.groupId}));n.splice(s+b.length,0,p)}else n.splice(s+1,0,p)}return n},r=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),a=c(e,o),r=a.minLevel;if(0===r)return;var l=n[r-1],i=n.splice(r,o.length);if(l.groupId){var u=n.filter((function(e){return e.groupId===l.groupId}));n.splice.apply(n,[r-u.length,0].concat(Object(te["a"])(i)))}else n.splice.apply(n,[r-1,0].concat(Object(te["a"])(i)))}else{var d=e.findIndex((function(e){return e.id===t.id}));if(0===d)return;var s=n[d-1],f=n.splice(d,1)[0];if(s.groupId){var p=n.filter((function(e){return e.groupId===s.groupId}));n.splice(d-p.length,0,f)}else n.splice(d-1,0,f)}return n},l=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),a=c(e,o),r=a.minLevel,l=a.maxLevel;if(l===e.length-1)return null;var i=n.splice(r,o.length);n.push.apply(n,Object(te["a"])(i))}else{var u=e.findIndex((function(e){return e.id===t.id}));if(u===e.length-1)return null;n.splice(u,1),n.push(t)}return n},i=function(e,t){var n=JSON.parse(JSON.stringify(e));if(t.groupId){var o=n.filter((function(e){return e.groupId===t.groupId})),a=c(e,o),r=a.minLevel;if(0===r)return;var l=n.splice(r,o.length);n.unshift.apply(n,Object(te["a"])(l))}else{var i=e.findIndex((function(e){return e.id===t.id}));if(0===i)return;n.splice(i,1),n.unshift(t)}return n},u=function(n,c){var u;c===be.UP?u=a(t.value.elements,n):c===be.DOWN?u=r(t.value.elements,n):c===be.TOP?u=l(t.value.elements,n):c===be.BOTTOM&&(u=i(t.value.elements,n)),u&&(e.commit(y.UPDATE_SLIDE,{elements:u}),o())};return{orderElement:u}},it=function(){var e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullScreen&&e.webkitRequestFullScreen()},ut=function(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen&&document.webkitCancelFullScreen()},dt=function(){return document.mozFullScreen||document.webkitIsFullScreen||document.webkitFullScreen},st=function(){var e=ue(),t=function(){it(),e.commit(y.SET_SCREENING,!0)},n=function(){e.commit(y.UPDATE_SLIDE_INDEX,0),t()},o=function(){e.commit(y.SET_SCREENING,!1),dt()&&ut()};return{enterScreening:t,enterScreeningFromStart:n,exitScreening:o}},ft=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.canvasPercentage})),n=function(n){var o=t.value,c=5,a=120,r=60;"+"===n&&o<=a&&(o+=c),"-"===n&&o>=r&&(o-=c),e.commit(y.SET_CANVAS_PERCENTAGE,o)},o=function(t){e.commit(y.SET_CANVAS_PERCENTAGE,t)};return{scaleCanvas:n,setCanvasPercentage:o}},pt=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.ctrlKeyState})),n=Object(j["computed"])((function(){return e.state.shiftKeyState})),o=Object(j["computed"])((function(){return e.state.disableHotkeys})),c=Object(j["computed"])((function(){return e.state.activeElementIdList})),a=Object(j["computed"])((function(){return e.getters.handleElement})),r=Object(j["computed"])((function(){return e.getters.currentSlide})),l=Object(j["computed"])((function(){return e.state.editorAreaFocus})),i=Object(j["computed"])((function(){return e.state.thumbnailsFocus})),u=et(),d=u.updateSlideIndex,s=u.copySlide,f=u.createSlide,p=u.deleteSlide,b=u.cutSlide,m=u.copyAndPasteSlide,v=u.selectAllSlide,O=ot(),h=O.combineElements,g=O.uncombineElements,k=nt(),I=k.deleteElement,E=tt(),C=E.lockElement,x=ct(),S=x.copyElement,N=x.cutElement,T=x.quickCopyElement,w=at(),L=w.selectAllElement,V=rt(),_=V.moveElement,B=lt(),D=B.orderElement,M=Ye(),A=M.redo,P=M.undo,R=st(),F=R.enterScreening,H=ft(),z=H.scaleCanvas,U=H.setCanvasPercentage,G=function(){c.value.length?S():i.value&&s()},q=function(){c.value.length?N():i.value&&b()},X=function(){c.value.length?T():i.value&&m()},W=function(){l.value&&L(),i.value&&v()},Y=function(){l.value&&C()},Z=function(){l.value&&h()},J=function(){l.value&&g()},K=function(){c.value.length?I():i.value&&p()},Q=function(e){c.value.length?_(e):e!==je.UP&&e!==je.DOWN||d(e)},$=function(e){a.value&&D(a.value,e)},ee=function(){i.value&&f()},te=function(){if(r.value.elements.length)if(a.value){var t=r.value.elements.findIndex((function(e){return e.id===a.value.id})),n=t>=r.value.elements.length-1?0:t+1,o=r.value.elements[n].id;e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[o])}else{var c=r.value.elements[0];e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[c.id])}},ne=function(c){var a=c.ctrlKey,r=c.shiftKey,u=c.altKey,d=c.metaKey,s=a||d,f=c.key.toUpperCase();if(s&&!t.value&&e.commit(y.SET_CTRL_KEY_STATE,!0),r&&!n.value&&e.commit(y.SET_SHIFT_KEY_STATE,!0),s&&f===je.F&&(c.preventDefault(),F(),e.commit(y.SET_CTRL_KEY_STATE,!1)),l.value||i.value){if(s&&f===je.C){if(o.value)return;c.preventDefault(),G()}if(s&&f===je.X){if(o.value)return;c.preventDefault(),q()}if(s&&f===je.D){if(o.value)return;c.preventDefault(),X()}if(s&&f===je.Z){if(o.value)return;c.preventDefault(),P()}if(s&&f===je.Y){if(o.value)return;c.preventDefault(),A()}if(s&&f===je.A){if(o.value)return;c.preventDefault(),W()}if(s&&f===je.L){if(o.value)return;c.preventDefault(),Y()}if(!r&&s&&f===je.G){if(o.value)return;c.preventDefault(),Z()}if(r&&s&&f===je.G){if(o.value)return;c.preventDefault(),J()}if(u&&f===je.F){if(o.value)return;c.preventDefault(),$(be.TOP)}if(u&&f===je.B){if(o.value)return;c.preventDefault(),$(be.BOTTOM)}if(f===je.DELETE||f===je.BACKSPACE){if(o.value)return;c.preventDefault(),K()}if(f===je.UP){if(o.value)return;c.preventDefault(),Q(je.UP)}if(f===je.DOWN){if(o.value)return;c.preventDefault(),Q(je.DOWN)}if(f===je.LEFT){if(o.value)return;c.preventDefault(),Q(je.LEFT)}if(f===je.RIGHT){if(o.value)return;c.preventDefault(),Q(je.RIGHT)}if(f===je.ENTER){if(o.value)return;c.preventDefault(),ee()}if(f===je.MINUS){if(o.value)return;c.preventDefault(),z("-")}if(f===je.EQUAL){if(o.value)return;c.preventDefault(),z("+")}if(f===je.DIGIT_0){if(o.value)return;c.preventDefault(),U(90)}if(f===je.TAB){if(o.value)return;c.preventDefault(),te()}}},oe=function(){t.value&&e.commit(y.SET_CTRL_KEY_STATE,!1),n.value&&e.commit(y.SET_SHIFT_KEY_STATE,!1)};Object(j["onMounted"])((function(){document.addEventListener("keydown",ne),document.addEventListener("keyup",oe),window.addEventListener("blur",oe)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",ne),document.removeEventListener("keyup",oe),window.removeEventListener("blur",oe)}))},bt=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.editorAreaFocus})),n=Object(j["computed"])((function(){return e.state.thumbnailsFocus})),o=Object(j["computed"])((function(){return e.state.disableHotkeys})),c=$e(),a=c.pasteTextClipboardData,r=Qe(),l=r.createImageElement,i=function(e){Je(e).then((function(e){return l(e)}))},u=function(e){if((t.value||n.value)&&!o.value&&e.clipboardData){var c=e.clipboardData.items,r=c[0];if(r){var l,u=Object(S["a"])(c);try{for(u.s();!(l=u.n()).done;){var d=l.value;if("file"===d.kind&&-1!==d.type.indexOf("image")){var s=d.getAsFile();return void(s&&i(s))}}}catch(f){u.e(f)}finally{u.f()}"string"===r.kind&&"text/plain"===r.type&&r.getAsString((function(e){return a(e)}))}}};Object(j["onMounted"])((function(){document.addEventListener("paste",u)})),Object(j["onUnmounted"])((function(){document.removeEventListener("paste",u)}))},mt=Object(j["withScopeId"])("data-v-13ca7328");Object(j["pushScopeId"])("data-v-13ca7328");var vt={class:"editor-header"},Ot={class:"left"},ht={class:"menu-item"},jt=Object(j["createTextVNode"])(),gt=Object(j["createVNode"])("span",{class:"text"},"文件",-1),yt=Object(j["createTextVNode"])("导出 JSON"),kt=Object(j["createTextVNode"])("导出 PPTX"),It={class:"menu-item"},Et=Object(j["createTextVNode"])(),Ct=Object(j["createVNode"])("span",{class:"text"},"编辑",-1),xt=Object(j["createTextVNode"])("撤销"),St=Object(j["createTextVNode"])("重做"),Nt=Object(j["createTextVNode"])("添加页面"),Tt=Object(j["createTextVNode"])("删除页面"),wt=Object(j["createTextVNode"])("重置幻灯片"),Lt={class:"menu-item"},Vt=Object(j["createTextVNode"])(),_t=Object(j["createVNode"])("span",{class:"text"},"演示",-1),Bt=Object(j["createTextVNode"])("从头开始"),Dt=Object(j["createTextVNode"])("从当前页开始"),Mt={class:"menu-item"},At=Object(j["createTextVNode"])(),Pt=Object(j["createVNode"])("span",{class:"text"},"帮助",-1),Rt=Object(j["createTextVNode"])("意见反馈"),Ft=Object(j["createTextVNode"])("快捷键"),Ht={class:"right"},zt={href:"https://github.com/pipipi-pikachu/PPTist",target:"_blank"},Ut={class:"menu-item"};Object(j["popScopeId"])();var Gt=mt((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconFolderClose"),l=Object(j["resolveComponent"])("MenuItem"),i=Object(j["resolveComponent"])("Menu"),u=Object(j["resolveComponent"])("Dropdown"),d=Object(j["resolveComponent"])("IconEdit"),s=Object(j["resolveComponent"])("IconPpt"),f=Object(j["resolveComponent"])("IconHelpcenter"),p=Object(j["resolveComponent"])("Tooltip"),b=Object(j["resolveComponent"])("IconGithub"),m=Object(j["resolveComponent"])("HotkeyDoc"),v=Object(j["resolveComponent"])("Drawer"),O=Object(j["resolveComponent"])("FullscreenSpin");return Object(j["openBlock"])(),Object(j["createBlock"])("div",vt,[Object(j["createVNode"])("div",Ot,[Object(j["createVNode"])(u,{trigger:["click"]},{overlay:mt((function(){return[Object(j["createVNode"])(i,null,{default:mt((function(){return[Object(j["createVNode"])(l,{onClick:t[1]||(t[1]=function(t){return e.exportJSON()})},{default:mt((function(){return[yt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[2]||(t[2]=function(t){return e.exportPPTX()})},{default:mt((function(){return[kt]})),_:1})]})),_:1})]})),default:mt((function(){return[Object(j["createVNode"])("div",ht,[Object(j["createVNode"])(r),jt,gt])]})),_:1}),Object(j["createVNode"])(u,{trigger:["click"]},{overlay:mt((function(){return[Object(j["createVNode"])(i,null,{default:mt((function(){return[Object(j["createVNode"])(l,{onClick:t[3]||(t[3]=function(t){return e.undo()})},{default:mt((function(){return[xt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[4]||(t[4]=function(t){return e.redo()})},{default:mt((function(){return[St]})),_:1}),Object(j["createVNode"])(l,{onClick:t[5]||(t[5]=function(t){return e.createSlide()})},{default:mt((function(){return[Nt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[6]||(t[6]=function(t){return e.deleteSlide()})},{default:mt((function(){return[Tt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[7]||(t[7]=function(t){return e.toggleGridLines()})},{default:mt((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e.showGridLines?"关闭网格线":"打开网格线"),1)]})),_:1}),Object(j["createVNode"])(l,{onClick:t[8]||(t[8]=function(t){return e.resetSlides()})},{default:mt((function(){return[wt]})),_:1})]})),_:1})]})),default:mt((function(){return[Object(j["createVNode"])("div",It,[Object(j["createVNode"])(d),Et,Ct])]})),_:1}),Object(j["createVNode"])(u,{trigger:["click"]},{overlay:mt((function(){return[Object(j["createVNode"])(i,null,{default:mt((function(){return[Object(j["createVNode"])(l,{onClick:t[9]||(t[9]=function(t){return e.enterScreeningFromStart()})},{default:mt((function(){return[Bt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[10]||(t[10]=function(t){return e.enterScreening()})},{default:mt((function(){return[Dt]})),_:1})]})),_:1})]})),default:mt((function(){return[Object(j["createVNode"])("div",Lt,[Object(j["createVNode"])(s),Vt,_t])]})),_:1}),Object(j["createVNode"])(u,{trigger:["click"]},{overlay:mt((function(){return[Object(j["createVNode"])(i,null,{default:mt((function(){return[Object(j["createVNode"])(l,{onClick:t[11]||(t[11]=function(t){return e.goIssues()})},{default:mt((function(){return[Rt]})),_:1}),Object(j["createVNode"])(l,{onClick:t[12]||(t[12]=function(t){return e.hotkeyDrawerVisible=!0})},{default:mt((function(){return[Ft]})),_:1})]})),_:1})]})),default:mt((function(){return[Object(j["createVNode"])("div",Mt,[Object(j["createVNode"])(f),At,Pt])]})),_:1})]),Object(j["createVNode"])("div",Ht,[Object(j["createVNode"])(p,{mouseLeaveDelay:0,title:"幻灯片放映"},{default:mt((function(){return[Object(j["createVNode"])("div",{class:"menu-item",onClick:t[13]||(t[13]=function(t){return e.enterScreening()})},[Object(j["createVNode"])(s,{size:"18",fill:"#666",style:{"margin-top":"2px"}})])]})),_:1}),Object(j["createVNode"])("a",zt,[Object(j["createVNode"])("div",Ut,[Object(j["createVNode"])(b,{size:"18",fill:"#666"})])])]),Object(j["createVNode"])(v,{width:"320",placement:"right",visible:e.hotkeyDrawerVisible,onClose:t[14]||(t[14]=function(t){return e.hotkeyDrawerVisible=!1})},{default:mt((function(){return[Object(j["createVNode"])(m)]})),_:1},8,["visible"]),Object(j["createVNode"])(O,{loading:e.exporting,tip:"正在导出..."},null,8,["loading"])])})),qt=n("3835"),Xt=(n("9911"),n("cc71"),n("21a6")),Wt=n("8f74"),Yt=["style","script","template"],Zt=["html","head","body","p","dt","dd","li","option","thead","th","tbody","tr","td","tfoot","colgroup"],Jt={li:["ul","ol","menu"],dt:["dl"],dd:["dl"],tbody:["table"],thead:["table"],tfoot:["table"],tr:["table"],td:["table"]},Kt=["!doctype","area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Qt=function(e,t){var n=t-e.position;$t(e,n)},$t=function(e,t){e.position=e.position+t},en=function(e,t){var n=!1;while(!n){var o=e.indexOf("<",t);if(-1===o)return o;var c=e.charAt(o+1);if("/"===c||"!"===c||/[A-Za-z0-9]/.test(c))return o;t=o+1}return-1},tn=function(e){var t=e.str,n=en(t,e.position);if(n!==e.position){-1===n&&(n=t.length);var o=t.slice(e.position,n);Qt(e,n),e.tokens.push({type:"text",content:o})}},nn=function(e){var t=e.str;$t(e,4);var n=t.indexOf("--\x3e",e.position),o=n+3;-1===n&&(n=o=t.length);var c=t.slice(e.position,n);Qt(e,o),e.tokens.push({type:"comment",content:c})},on=function(e){var t=e.str,n=t.length,o=e.position;while(o<n){var c=t.charAt(o),a=!(/\s/.test(c)||"/"===c||">"===c);if(a)break;o++}var r=o+1;while(r<n){var l=t.charAt(r),i=!(/\s/.test(l)||"/"===l||">"===l);if(!i)break;r++}Qt(e,r);var u=t.slice(o,r);return e.tokens.push({type:"tag",content:u}),u},cn=function(e){var t=e.str,n=e.tokens,o=e.position,c=null,a=o,r=[],l=t.length;while(o<l){var i=t.charAt(o);if(c){var u=i===c;u&&(c=null),o++}else{var d="/"===i||">"===i;if(d){o!==a&&r.push(t.slice(a,o));break}var s=/\s/.test(i);if(s)o!==a&&r.push(t.slice(a,o)),a=o+1,o++;else{var f="'"===i||'"'===i;f?(c=i,o++):o++}}}Qt(e,o);for(var p="attribute",b=0;b<r.length;b++){var m=r[b],v=-1===m.indexOf("=");if(v){var O=r[b+1];if(O&&Object(ne["startsWith"])(O,"=")){if(O.length>1){var h=m+O;n.push({type:p,content:h}),b+=1;continue}var j=r[b+2];if(b+=1,j){var g=m+"="+j;n.push({type:p,content:g}),b+=1;continue}}}if(Object(ne["endsWith"])(m,"=")){var y=r[b+1];if(y&&-1===y.indexOf("=")){var k=m+y;n.push({type:p,content:k}),b+=1;continue}var I=m.slice(0,-1);n.push({type:p,content:I})}else n.push({type:p,content:m})}},an=function(e,t){var n=t.str,o=t.tokens,c=e.toLowerCase(),a=n.length,r=t.position;while(r<a){var l=n.indexOf("</",r);if(-1===l){tn(t);break}var i={str:n,position:t.position,tokens:[]};Qt(i,l);var u=rn(i);if(c===u.toLowerCase()){if(l!==t.position){var d=t.position;Qt(t,l),o.push({type:"text",content:n.slice(d,l)})}o.push.apply(o,Object(te["a"])(i.tokens)),Qt(t,i.position);break}r=i.position}},rn=function(e){var t=e.str,n=t.charAt(e.position+1),o="/"===n;$t(e,o?2:1),e.tokens.push({type:"tag-start",close:o});var c=on(e);cn(e);var a=t.charAt(e.position),r="/"===a;return $t(e,r?2:1),e.tokens.push({type:"tag-end",close:r}),c},ln=function(e){var t=e.str,n=t.length;while(e.position<n){var o=e.position;if(tn(e),e.position===o){var c=Object(ne["startsWith"])(t,"!--",o+1);if(c)nn(e);else{var a=rn(e),r=a.toLowerCase();Yt.includes(r)&&an(a,e)}}}},un=function(e){var t={str:e,position:0,tokens:[]};return ln(t),t.tokens},dn=function(e){var t={tagName:null,children:[]},n={tokens:e,cursor:0,stack:[t]};return pn(n),t.children},sn=function(e,t){var n=Jt[e];if(n){var o=t.length-1;while(o>=0){var c=t[o].tagName;if(c===e)break;if(n.includes(c))return!0;o--}}return!1},fn=function(e,t){e.splice(t)},pn=function e(t){var n=t.stack,o=t.tokens,c=t.cursor,a=n[n.length-1].children,r=o.length;while(c<r){var l=o[c];if("tag-start"===l.type){var i=o[++c];c++;var u=i.content.toLowerCase();if(l.close){var d=n.length,s=!1;while(--d>-1)if(n[d].tagName===u){s=!0;break}while(c<r){if("tag-end"!==o[c].type)break;c++}if(s){fn(n,d);break}}else{var f=Zt.includes(u),p=f;if(p&&(p=!sn(u,n)),p){var b=n.length-1;while(b>0){if(u===n[b].tagName){fn(n,b);var m=b-1;a=n[m].children;break}b-=1}}var v=[],O=void 0;while(c<r){var h=o[c];if("tag-end"===h.type){O=h;break}v.push(h.content),c++}if(!O)break;c++;var j=[],g={type:"element",tagName:i.content,attributes:v,children:j};a.push(g);var y=!(O.close||Kt.includes(u));if(y){n.push({tagName:u,children:j});var k={tokens:o,cursor:c,stack:n};e(k),c=k.cursor}}}else a.push(l),c++}t.cursor=c},bn=(n("498a"),function(e,t){var n=e.indexOf(t);return-1===n?[e]:[e.slice(0,n),e.slice(n+t.length)]}),mn=function(e){var t=e.charAt(0),n=e.length-1,o='"'===t||"'"===t;return o&&t===e.charAt(n)?e.slice(1,n):e},vn=function(e){return e.map((function(e){var t=bn(e.trim(),"="),n=t[0],o="string"===typeof t[1]?mn(t[1]):null;return{key:n,value:o}}))},On=function e(t){return t.map((function(t){if("element"===t.type){var n=e(t.children),o={type:"element",tagName:t.tagName.toLowerCase(),attributes:vn(t.attributes),children:n};return o}var c={type:t.type,content:t.content};return c}))},hn=(n("13d5"),function(e){var t=un(e),n=dn(t);return On(n)}),jn=n("d01f"),gn=n("0b89"),yn={1:"Z",2:"M",4:"H",8:"V",16:"L",32:"C",64:"S",128:"Q",256:"T",512:"A"},kn=function(e){var t,n=new jn["a"](e),o=[],c=Object(S["a"])(n.commands);try{for(c.s();!(t=c.n()).done;){var a=t.value,r=yn[a.type];if(2!==a.type&&16!==a.type||o.push({x:a.x,y:a.y,relative:a.relative,type:r}),32===a.type)o.push({x:a.x,y:a.y,curve:{type:"cubic",x1:a.x1,y1:a.y1,x2:a.x2,y2:a.y2},relative:a.relative,type:r});else if(128===a.type)o.push({x:a.x,y:a.y,curve:{type:"quadratic",x1:a.x1,y1:a.y1},relative:a.relative,type:r});else if(512===a.type){var l=o[o.length-1];if(!["M","L","Q","C"].includes(l.type))continue;var i,u=Object(gn["a"])({px:l.x,py:l.y,cx:a.x,cy:a.y,rx:a.rX,ry:a.rY,xAxisRotation:a.xRot,largeArcFlag:a.lArcFlag,sweepFlag:a.sweepFlag}),d=Object(S["a"])(u);try{for(d.s();!(i=d.n()).done;){var s=i.value;o.push({x:s.x,y:s.y,curve:{type:"cubic",x1:s.x1,y1:s.y1,x2:s.x2,y2:s.y2},relative:!1,type:"C"})}}catch(f){d.e(f)}finally{d.f()}}else{if(1!==a.type)continue;o.push({close:!0,type:r})}}}catch(f){c.e(f)}finally{c.f()}return o},In="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",En="data:image/svg+xml;base64,",Cn=function(e){e=e.replace(/\r\n/g,"\n");for(var t="",n=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t+=String.fromCharCode(o):o>127&&o<2048?(t+=String.fromCharCode(o>>6|192),t+=String.fromCharCode(63&o|128)):(t+=String.fromCharCode(o>>12|224),t+=String.fromCharCode(o>>6&63|128),t+=String.fromCharCode(63&o|128))}return t},xn=function(e){var t,n,o,c,a,r,l,i="",u=0;e=Cn(e);while(u<e.length)t=e.charCodeAt(u++),n=e.charCodeAt(u++),o=e.charCodeAt(u++),c=t>>2,a=(3&t)<<4|n>>4,r=(15&n)<<2|o>>6,l=63&o,isNaN(n)?r=l=64:isNaN(o)&&(l=64),i=i+In.charAt(c)+In.charAt(a)+In.charAt(r)+In.charAt(l);return i},Sn=function(e){var t=new XMLSerializer,n=t.serializeToString(e);return En+xn(n)},Nn=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["ref"])(!1),o=function(){var e=new Blob([JSON.stringify(t.value)],{type:""});Object(Xt["saveAs"])(e,"pptist_slides.json")},c=function(e){var t=Ae()(e),n=t.getAlpha(),o=0===n?"#ffffff":t.setAlpha(1).toHexString();return{alpha:n,color:o}},a=function(e){var t=hn(e),n=[],o=function e(t){var o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=Object(S["a"])(t);try{for(r.s();!(o=r.n()).done;){var l=o.value;if("tagName"in l&&["div","ul","li","p"].includes(l.tagName)&&n.length){var i=n[n.length-1];i.options||(i.options={}),i.options.breakLine=!0}var u=Object(x["a"])({},a),d="attributes"in l?l.attributes.find((function(e){return"style"===e.key})):null;if(d&&d.value){var s,f=d.value.split(";"),p=Object(S["a"])(f);try{for(p.s();!(s=p.n()).done;){var b=s.value,m=b.split(": "),v=Object(qt["a"])(m,2),O=v[0],h=v[1],j=[Object(ne["trim"])(O),Object(ne["trim"])(h)],g=j[0],y=j[1];g&&y&&(u[g]=y)}}catch(E){p.e(E)}finally{p.f()}}if("tagName"in l&&("em"===l.tagName&&(u["font-style"]="italic"),"strong"===l.tagName&&(u["font-weight"]="bold"),"sup"===l.tagName&&(u["vertical-align"]="super"),"sub"===l.tagName&&(u["vertical-align"]="sub")),"tagName"in l&&"br"===l.tagName)n.push({text:"",options:{breakLine:!0}});else if("content"in l){var k=l.content.replace(/\n/g,"").replace(/&nbsp;/g," "),I={};u["font-size"]&&(I.fontSize=.75*parseInt(u["font-size"])),u["color"]&&(I.color=c(u["color"]).color),u["background-color"]&&(I.highlight=c(u["background-color"]).color),u["text-decoration-line"]&&(-1!==u["text-decoration-line"].indexOf("underline")&&(I.underline={color:I.color||"#000000",style:"sng"}),-1!==u["text-decoration-line"].indexOf("line-through")&&(I.strike="sngStrike")),u["text-decoration"]&&(-1!==u["text-decoration"].indexOf("underline")&&(I.underline={color:I.color||"#000000",style:"sng"}),-1!==u["text-decoration"].indexOf("line-through")&&(I.strike="sngStrike")),u["vertical-align"]&&("super"===u["vertical-align"]&&(I.superscript=!0),"sub"===u["vertical-align"]&&(I.subscript=!0)),u["text-align"]&&(I.align=u["text-align"]),u["font-weight"]&&(I.bold="bold"===u["font-weight"]),u["font-style"]&&(I.italic="italic"===u["font-style"]),u["font-family"]&&(I.fontFace=u["font-family"]),n.push({text:k,options:I})}else"children"in l&&e(l.children,u)}}catch(E){r.e(E)}finally{r.f()}};return o(t),n},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{x:1,y:1};return e.map((function(e){if(void 0!==e.close)return{close:!0};if("M"===e.type)return{x:e.x/100*t.x,y:e.y/100*t.y,moveTo:!0};if(e.curve){if("cubic"===e.curve.type)return{x:e.x/100*t.x,y:e.y/100*t.y,curve:{type:"cubic",x1:e.curve.x1/100*t.x,y1:e.curve.y1/100*t.y,x2:e.curve.x2/100*t.x,y2:e.curve.y2/100*t.y}};if("quadratic"===e.curve.type)return{x:e.x/100*t.x,y:e.y/100*t.y,curve:{type:"quadratic",x1:e.curve.x1/100*t.x,y1:e.curve.y1/100*t.y}}}return{x:e.x/100*t.x,y:e.y/100*t.y}}))},l=function(){n.value=!0;var e,o=new Wt["a"],l=Object(S["a"])(t.value);try{for(l.s();!(e=l.n()).done;){var i=e.value,u=o.addSlide();if(i.background){var d=i.background;if("image"===d.type&&d.image)u.background={data:d.image};else if("solid"===d.type&&d.color){var s=c(d.color);u.background={color:s.color,transparency:100*(1-s.alpha)}}else if("gradient"===d.type&&d.gradientColor){var f=Object(qt["a"])(d.gradientColor,2),p=f[0],b=f[1],m=Ae.a.mix(p,b).toHexString(),v=c(m);u.background={color:v.color,transparency:100*(1-v.alpha)}}}if(i.elements){var O,h=Object(S["a"])(i.elements);try{var j=function(){var e=O.value;if("text"===e.type){var t=a(e.content),n={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,fontSize:15,fontFace:"微软雅黑",color:"#000000",valign:"middle"};if(e.rotate&&(n.rotate=e.rotate),e.wordSpace&&(n.charSpacing=.75*e.wordSpace),e.lineHeight&&(n.lineSpacingMultiple=.75*e.lineHeight),e.fill){var l=c(e.fill),i=void 0===e.opacity?1:e.opacity;n.fill={color:l.color,transparency:100*(1-l.alpha*i)}}if(e.defaultColor&&(n.color=c(e.defaultColor).color),e.defaultFontName&&(n.fontFace=e.defaultFontName),e.shadow){var d=c(e.shadow.color);n.shadow={type:"outer",color:d.color.replace("#",""),opacity:d.alpha,blur:.75*e.shadow.blur,offset:(e.shadow.h+e.shadow.v)/2*.75,angle:45}}e.link&&(n.hyperlink={url:e.link}),u.addText(t,n)}else if("image"===e.type){var s={path:e.src,x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100};e.flipH&&(s.flipH=e.flipH),e.flipV&&(s.flipV=e.flipV),e.rotate&&(s.rotate=e.rotate),e.clip&&"ellipse"===e.clip.shape&&(s.rounding=!0),e.link&&(s.hyperlink={url:e.link}),u.addImage(s)}else if("shape"===e.type)if(e.special){var f=document.querySelector(".thumbnail-list .base-element-".concat(e.id," svg")),p=Sn(f),b={data:p,x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100};e.rotate&&(b.rotate=e.rotate),e.link&&(b.hyperlink={url:e.link}),u.addImage(b)}else{var m,v,h={x:e.width/e.viewBox,y:e.height/e.viewBox},j=r(kn(e.path),h),g=c(e.fill),y=void 0===e.opacity?1:e.opacity,k={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,fill:{color:g.color,transparency:100*(1-g.alpha*y)},points:j};if(e.flipH&&(k.flipH=e.flipH),e.flipV&&(k.flipV=e.flipV),null!==(m=e.outline)&&void 0!==m&&m.width)k.line={color:c((null===(v=e.outline)||void 0===v?void 0:v.color)||"#000000").color,width:.75*e.outline.width,dashType:"solid"===e.outline.style?"solid":"dash"};if(e.shadow){var I=c(e.shadow.color);k.shadow={type:"outer",color:I.color.replace("#",""),opacity:I.alpha,blur:.75*e.shadow.blur,offset:(e.shadow.h+e.shadow.v)/2*.75,angle:45}}e.link&&(k.hyperlink={url:e.link}),u.addShape("custGeom",k)}else if("line"===e.type){var E=qe(e),C=r(kn(E)),x=Fe(e),S=x.minX,N=x.maxX,T=x.minY,w=x.maxY,L={x:e.left/100,y:e.top/100,w:(N-S)/100,h:(w-T)/100,line:{color:c(e.color).color,width:.75*e.width,dashType:"solid"===e.style?"solid":"dash",beginArrowType:e.points[0]?"arrow":"none",endArrowType:e.points[1]?"arrow":"none"},points:C};u.addShape("custGeom",L)}else if("chart"===e.type){for(var V=[],_=0;_<e.data.series.length;_++){var B=e.data.series[_];V.push({name:"系列".concat(_+1),labels:e.data.labels,values:B})}var D,M=Ae()(e.themeColor).analogous(10).map((function(e){return e.toHexString()})),A={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,chartColors:"pie"===e.chartType?M:M.slice(0,e.data.series.length)},P=o.ChartType.bar;if("bar"===e.chartType)P=o.ChartType.bar,A.barDir=null!==(D=e.options)&&void 0!==D&&D.horizontalBars?"bar":"col";else if("line"===e.chartType){var R,F,H;null!==(R=e.options)&&void 0!==R&&R.showArea?P=o.ChartType.area:!1===(null===(F=e.options)||void 0===F?void 0:F.showLine)?(P=o.ChartType.scatter,V.unshift({name:"X-Axis",values:Array(e.data.series[0].length).fill(0).map((function(e,t){return t}))}),A.lineSize=0):P=o.ChartType.line,null!==(H=e.options)&&void 0!==H&&H.lineSmooth&&(A.lineSmooth=!0)}else if("pie"===e.chartType){var z;null!==(z=e.options)&&void 0!==z&&z.donut?(P=o.ChartType.doughnut,A.holeSize=75):P=o.ChartType.pie}u.addChart(P,V,A)}else if("table"===e.type){for(var U=[],G=0;G<e.data.length;G++)for(var q=e.data[G],X=0;X<q.length;X++){var W=q[X];if(W.colspan>1||W.rowspan>1)for(var Y=G;Y<G+W.rowspan;Y++)for(var Z=Y===G?X+1:X;Z<X+W.colspan;Z++)U.push("".concat(Y,"_").concat(Z))}var J=[],K=e.theme,Q=null,$=[];K&&(Q=c(K.color),$=Ge(K.color).map((function(e){return c(e)})));for(var ee=0;ee<e.data.length;ee++){for(var te=e.data[ee],ne=[],oe=0;oe<te.length;oe++){var ce,ae,re,le,ie,ue,de,se,fe,pe=te[oe],be={colspan:pe.colspan,rowspan:pe.rowspan,bold:(null===(ce=pe.style)||void 0===ce?void 0:ce.bold)||!1,italic:(null===(ae=pe.style)||void 0===ae?void 0:ae.em)||!1,underline:{style:null!==(re=pe.style)&&void 0!==re&&re.underline?"sng":"none"},align:(null===(le=pe.style)||void 0===le?void 0:le.align)||"left",valign:"middle",fontFace:(null===(ie=pe.style)||void 0===ie?void 0:ie.fontname)||"微软雅黑",fontSize:.75*(null!==(ue=pe.style)&&void 0!==ue&&ue.fontsize?parseInt(null===(de=pe.style)||void 0===de?void 0:de.fontsize):14)};if(K&&Q){var me=void 0;me=ee%2===0?$[1]:$[0],(K.rowHeader&&0===ee||K.rowFooter&&ee===e.data.length-1||K.colHeader&&0===oe||K.colFooter&&oe===te.length-1)&&(me=Q),be.fill={color:me.color,transparency:100*(1-me.alpha)}}if(null!==(se=pe.style)&&void 0!==se&&se.backcolor){var ve=c(pe.style.backcolor);be.fill={color:ve.color,transparency:100*(1-ve.alpha)}}null!==(fe=pe.style)&&void 0!==fe&&fe.color&&(be.color=c(pe.style.color).color),U.includes("".concat(ee,"_").concat(oe))||ne.push({text:pe.text,options:be})}ne.length&&J.push(ne)}var Oe={x:e.left/100,y:e.top/100,w:e.width/100,h:e.height/100,colW:e.colWidths.map((function(t){return e.width*t/100}))};e.outline.width&&e.outline.color&&(Oe.border={type:"solid"===e.outline.style?"solid":"dash",pt:.75*e.outline.width,color:c(e.outline.color).color}),u.addTable(J,Oe)}};for(h.s();!(O=h.n()).done;)j()}catch(g){h.e(g)}finally{h.f()}}}}catch(g){l.e(g)}finally{l.f()}o.writeFile({fileName:"pptist.pptx"}).then((function(){return n.value=!1})).catch((function(){n.value=!1,ke["a"].error("导出失败")}))};return{exporting:n,exportJSON:o,exportPPTX:l}},Tn=Object(j["withScopeId"])("data-v-47d0351b");Object(j["pushScopeId"])("data-v-47d0351b");var wn={class:"hotkey-doc"},Ln={class:"title"},Vn={class:"label"},_n={class:"value"};Object(j["popScopeId"])();var Bn=Tn((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",wn,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.hotkeys,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:e.type},[Object(j["createVNode"])("div",Ln,Object(j["toDisplayString"])(e.type),1),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.children,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"hotkey-item",key:e.label},[Object(j["createVNode"])("div",Vn,Object(j["toDisplayString"])(e.label),1),Object(j["createVNode"])("div",_n,Object(j["toDisplayString"])(e.value),1)])})),128))],64)})),128))])})),Dn=ye,Mn=Object(j["defineComponent"])({name:"hotkey-doc",setup:function(){return{hotkeys:Dn}}});n("ef0f");Mn.render=Bn,Mn.__scopeId="data-v-47d0351b";var An=Mn,Pn=Object(j["defineComponent"])({name:"editor-header",components:{HotkeyDoc:An},setup:function(){var e=ue(),t=st(),n=t.enterScreening,o=t.enterScreeningFromStart,c=et(),a=c.createSlide,r=c.deleteSlide,l=c.resetSlides,i=Ye(),u=i.redo,d=i.undo,s=Nn(),f=s.exporting,p=s.exportJSON,b=s.exportPPTX,m=Object(j["computed"])((function(){return e.state.showGridLines})),v=function(){e.commit(y.SET_GRID_LINES_STATE,!m.value)},O=Object(j["ref"])(!1),h=function(){window.open("https://github.com/pipipi-pikachu/PPTist/issues")};return{redo:u,undo:d,showGridLines:m,hotkeyDrawerVisible:O,exporting:f,enterScreening:n,enterScreeningFromStart:o,createSlide:a,deleteSlide:r,toggleGridLines:v,resetSlides:l,exportJSON:p,exportPPTX:b,goIssues:h}}});n("dc83");Pn.render=Gt,Pn.__scopeId="data-v-13ca7328";var Rn=Pn,Fn=Object(j["withScopeId"])("data-v-4edd93c1");Object(j["pushScopeId"])("data-v-4edd93c1");var Hn={class:"operates"};Object(j["popScopeId"])();var zn=Fn((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ElementCreateSelection"),l=Object(j["resolveComponent"])("AlignmentLine"),i=Object(j["resolveComponent"])("MultiSelectOperate"),u=Object(j["resolveComponent"])("Operate"),d=Object(j["resolveComponent"])("ViewportBackground"),s=Object(j["resolveComponent"])("MouseSelection"),f=Object(j["resolveComponent"])("EditableElement"),p=Object(j["resolveComponent"])("LinkDialog"),b=Object(j["resolveComponent"])("Modal"),m=Object(j["resolveDirective"])("contextmenu"),v=Object(j["resolveDirective"])("click-outside");return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"canvas",ref:"canvasRef",onMousewheel:t[4]||(t[4]=function(t){return e.handleMousewheelCanvas(t)}),onMousedown:t[5]||(t[5]=function(t){return e.handleClickBlankArea(t)})},[e.creatingElement?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,onCreated:t[1]||(t[1]=function(t){return e.insertElementFromCreateSelection(t)})})):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("div",{class:"viewport-wrapper",style:{width:e.viewportStyles.width*e.canvasScale+"px",height:e.viewportStyles.height*e.canvasScale+"px",left:e.viewportStyles.left+"px",top:e.viewportStyles.top+"px"}},[Object(j["createVNode"])("div",Hn,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.alignmentLines,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:t,type:e.type,axis:e.axis,length:e.length},null,8,["type","axis","length"])})),128)),e.activeElementIdList.length>1?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,elementList:e.elementList,scaleMultiElement:e.scaleMultiElement},null,8,["elementList","scaleMultiElement"])):Object(j["createCommentVNode"])("",!0),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.elementList,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(u,{key:t.id,elementInfo:t,isSelected:e.activeElementIdList.includes(t.id),isActive:e.handleElementId===t.id,isActiveGroupElement:e.activeGroupElementId===t.id,isMultiSelect:e.activeElementIdList.length>1,rotateElement:e.rotateElement,scaleElement:e.scaleElement,openLinkDialog:e.openLinkDialog,dragLineElement:e.dragLineElement},null,8,["elementInfo","isSelected","isActive","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","openLinkDialog","dragLineElement"])})),128)),Object(j["createVNode"])(d)]),Object(j["createVNode"])("div",{class:"viewport",ref:"viewportRef",style:{transform:"scale(".concat(e.canvasScale,")")}},[e.mouseSelectionState.isShow?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:0,top:e.mouseSelectionState.top,left:e.mouseSelectionState.left,width:e.mouseSelectionState.width,height:e.mouseSelectionState.height,quadrant:e.mouseSelectionState.quadrant},null,8,["top","left","width","height","quadrant"])):Object(j["createCommentVNode"])("",!0),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.elementList,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])(f,{key:t.id,elementInfo:t,elementIndex:n+1,isMultiSelect:e.activeElementIdList.length>1,selectElement:e.selectElement,openLinkDialog:e.openLinkDialog},null,8,["elementInfo","elementIndex","isMultiSelect","selectElement","openLinkDialog"])})),128))],4)],4),Object(j["createVNode"])(b,{visible:e.linkDialogVisible,"onUpdate:visible":t[3]||(t[3]=function(t){return e.linkDialogVisible=t}),footer:null,centered:"",width:540,destroyOnClose:""},{default:Fn((function(){return[Object(j["createVNode"])(p,{onClose:t[2]||(t[2]=function(t){return e.linkDialogVisible=!1})})]})),_:1},8,["visible"])],544)),[[m,e.contextmenus],[v,e.removeEditorAreaFocus]])})),Un=function(){var e=window.getSelection();e&&e.removeAllRanges()},Gn=function(e){var t=Object(j["ref"])(0),n=Object(j["ref"])(0),o=ue(),c=Object(j["computed"])((function(){return o.state.canvasPercentage})),a=Object(j["computed"])((function(){return o.state.viewportRatio})),r=function(){if(e.value){var r=e.value.clientWidth,l=e.value.clientHeight;if(l/r>a.value){var i=r*(c.value/100);o.commit(y.SET_CANVAS_SCALE,i/Ke),t.value=(r-i)/2,n.value=(l-i*a.value)/2}else{var u=l*(c.value/100);o.commit(y.SET_CANVAS_SCALE,u/(Ke*a.value)),t.value=(r-u/a.value)/2,n.value=(l-u)/2}}};Object(j["watch"])([c,a],r);var l=Object(j["computed"])((function(){return{width:Ke,height:Ke*a.value,left:t.value,top:n.value}})),i=new ResizeObserver(r);return Object(j["onMounted"])((function(){e.value&&i.observe(e.value)})),Object(j["onUnmounted"])((function(){e.value&&i.unobserve(e.value)})),{viewportStyles:l}},qn=function(e,t){var n=ue(),o=Object(j["computed"])((function(){return n.state.canvasScale})),c=Object(j["reactive"])({isShow:!1,top:0,left:0,width:0,height:0,quadrant:1}),a=function(a){if(t.value){var r=!0,l=t.value.getBoundingClientRect(),i=5,u=a.pageX,d=a.pageY,s=(u-l.x)/o.value,f=(d-l.y)/o.value;c.isShow=!1,c.quadrant=4,c.top=f,c.left=s,c.width=0,c.height=0,document.onmousemove=function(e){if(r){var t=e.pageX,n=e.pageY,a=(t-u)/o.value,l=(n-d)/o.value,s=Math.abs(a),f=Math.abs(l);if(!(s<i||f<i)){var p=0;a>0&&l>0?p=4:a<0&&l<0?p=1:a>0&&l<0?p=2:a<0&&l>0&&(p=3),c.isShow=!0,c.quadrant=p,c.width=s,c.height=f}}},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null,r=!1;for(var t=[],o=0;o<e.value.length;o++){var a=e.value[o],l=c.left,i=c.top,u=c.width,d=c.height,s=c.quadrant,f=Fe(a),p=f.minX,b=f.maxX,m=f.minY,v=f.maxY,O=!1;4===s?O=p>l&&b<l+u&&m>i&&v<i+d:1===s?O=p>l-u&&b<l-u+u&&m>i-d&&v<i-d+d:2===s?O=p>l&&b<l+u&&m>i-d&&v<i-d+d:3===s&&(O=p>l-u&&b<l-u+u&&m>i&&v<i+d),O&&!a.lock&&t.push(a)}t=t.filter((function(n){if(n.groupId){var o=t.map((function(e){return e.id})),c=e.value.filter((function(e){return e.groupId===n.groupId}));return c.every((function(e){return o.includes(e.id)}))}return!0}));var h=t.map((function(e){return e.id}));h.length&&n.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,h),c.isShow=!1}}};return{mouseSelectionState:c,updateMouseSelection:a}},Xn=function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.disableHotkeys})),o=Qe(),c=o.createImageElement,a=o.createTextElement,r=function(e){if(e.dataTransfer&&0!==e.dataTransfer.items.length){var t=e.dataTransfer.items[0];if("file"===t.kind&&-1!==t.type.indexOf("image")){var o=t.getAsFile();o&&Je(o).then((function(e){return c(e)}))}else"string"===t.kind&&"text/plain"===t.type&&t.getAsString((function(e){if(!n.value){var t=We(e);a({left:0,top:0,width:600,height:50},t)}}))}};Object(j["onMounted"])((function(){e.value&&e.value.addEventListener("drop",r),document.ondragleave=function(e){return e.preventDefault()},document.ondrop=function(e){return e.preventDefault()},document.ondragenter=function(e){return e.preventDefault()},document.ondragover=function(e){return e.preventDefault()}})),Object(j["onUnmounted"])((function(){e.value&&e.value.removeEventListener("drop",r),document.ondragleave=null,document.ondrop=null,document.ondragenter=null,document.ondragover=null}))},Wn=function(e,t){var n=Math.atan2(e,t),o=180/Math.PI*n;return o},Yn=function(e,t){var n=ue(),o=Object(j["computed"])((function(){return n.state.canvasScale})),c=Ye(),a=c.addHistorySnapshot,r=function(c){var r=!0,l=0,i=c.rotate||0,u=c.left,d=c.top,s=c.width,f=c.height,p=u+s/2,b=d+f/2;if(t.value){var m=t.value.getBoundingClientRect();document.onmousemove=function(t){if(r){var n=(t.pageX-m.left)/o.value,a=(t.pageY-m.top)/o.value,i=n-p,u=b-a;l=Wn(i,u);var d=5;Math.abs(l)<=d?l=0:l>0&&Math.abs(l-45)<=d?l-=l-45:l<0&&Math.abs(l+45)<=d?l-=l+45:l>0&&Math.abs(l-90)<=d?l-=l-90:l<0&&Math.abs(l+90)<=d?l-=l+90:l>0&&Math.abs(l-135)<=d?l-=l-135:l<0&&Math.abs(l+135)<=d?l-=l+135:l>0&&Math.abs(l-180)<=d?l-=l-180:l<0&&Math.abs(l+180)<=d&&(l-=l+180),e.value=e.value.map((function(e){return c.id===e.id?Object(x["a"])(Object(x["a"])({},e),{},{rotate:l}):e}))}},document.onmouseup=function(){r=!1,document.onmousemove=null,document.onmouseup=null,i!==l&&(n.commit(y.UPDATE_SLIDE,{elements:e.value}),a())}}};return{rotateElement:r}},Zn={text:"文本",image:"图片",shape:"形状",line:"线条",chart:"图表",table:"表格"},Jn={text:20,image:20,shape:15,chart:200,table:20},Kn=function(e,t){var n=e.left,o=e.top,c=e.width,a=e.height,r=Math.sqrt(Math.pow(c,2)+Math.pow(a,2))/2,l=180*Math.atan(a/c)/Math.PI,i=(180-t-l)*Math.PI/180,u=(l-t)*Math.PI/180,d=(90-t)*Math.PI/180,s=t*Math.PI/180,f=c/2,p=a/2,b=n+f,m=o+p,v={left:b+r*Math.cos(i),top:m-r*Math.sin(i)},O={left:b+p*Math.cos(d),top:m-p*Math.sin(d)},h={left:b+r*Math.cos(u),top:m-r*Math.sin(u)},j={left:b+f*Math.cos(s),top:m+f*Math.sin(s)},g={left:b-r*Math.cos(i),top:m+r*Math.sin(i)},y={left:b-p*Math.sin(s),top:m+p*Math.cos(s)},k={left:b-r*Math.cos(u),top:m+r*Math.sin(u)},I={left:b-f*Math.cos(s),top:m-f*Math.sin(s)};return{leftTopPoint:v,topPoint:O,rightTopPoint:h,rightPoint:j,rightBottomPoint:g,bottomPoint:y,leftBottomPoint:k,leftPoint:I}},Qn=function(e,t){var n,o=(n={},Object(U["a"])(n,Oe.RIGHT_BOTTOM,t.leftTopPoint),Object(U["a"])(n,Oe.LEFT_BOTTOM,t.rightTopPoint),Object(U["a"])(n,Oe.LEFT_TOP,t.rightBottomPoint),Object(U["a"])(n,Oe.RIGHT_TOP,t.leftBottomPoint),Object(U["a"])(n,Oe.TOP,t.bottomPoint),Object(U["a"])(n,Oe.BOTTOM,t.topPoint),Object(U["a"])(n,Oe.LEFT,t.rightPoint),Object(U["a"])(n,Oe.RIGHT,t.leftPoint),n);return o[e]},$n=function(e,t){var n=ue(),o=Object(j["computed"])((function(){return n.state.activeElementIdList})),c=Object(j["computed"])((function(){return n.state.activeGroupElementId})),a=Object(j["computed"])((function(){return n.state.canvasScale})),r=Object(j["computed"])((function(){return n.state.viewportRatio})),l=Object(j["computed"])((function(){return n.getters.ctrlOrShiftKeyActive})),i=Ye(),u=i.addHistorySnapshot,d=function(i,d,s){var f=!0;n.commit(y.SET_SCALING_STATE,!0);var p,b=d.left,m=d.top,v=d.width,O=d.height,h="rotate"in d&&d.rotate?d.rotate:0,j=Math.PI*h/180,g=l.value||"fixedRatio"in d&&d.fixedRatio,k=v/O,I=i.pageX,E=i.pageY,C=Jn[d.type]||20,N=function(e){return e<C?C:e},T=0,w=0,L=[],V=[];if("rotate"in d&&d.rotate){var _=d.left,B=d.top,D=d.width,M=d.height;p=Kn({left:_,top:B,width:D,height:M},h);var A=Qn(s,p);T=A.left,w=A.top}else{var P,R=Ke,F=Ke*r.value,H=d.id===c.value,z=Object(S["a"])(e.value);try{for(z.s();!(P=z.n()).done;){var U=P.value;if((!("rotate"in U)||!U.rotate)&&("line"!==U.type&&(!H||U.id!==d.id)&&(H||!o.value.includes(U.id)))){var G=U.left,q=U.top,X=U.width,W=U.height,Y=G+X,Z=q+W,J={value:q,range:[G,Y]},K={value:Z,range:[G,Y]},Q={value:G,range:[q,Z]},$={value:Y,range:[q,Z]};L.push(J,K),V.push(Q,$)}}}catch(ie){z.e(ie)}finally{z.f()}var ee={value:0,range:[0,R]},ne={value:F,range:[0,R]},oe={value:F/2,range:[0,R]},ce={value:0,range:[0,F]},ae={value:R,range:[0,F]},re={value:R/2,range:[0,F]};L.push(ee,ne,oe),V.push(ce,ae,re),L=ze(L),V=ze(V)}var le=function(e,n){var o=5,c=[],a=!1,r=!1,l={offsetX:0,offsetY:0};if(n||0===n)for(var i=0;i<L.length;i++){var u=L[i],d=u.value,s=u.range,f=Math.min.apply(Math,Object(te["a"])(s).concat([e||0])),p=Math.max.apply(Math,Object(te["a"])(s).concat([e||0]));Math.abs(n-d)<o&&!r&&(l.offsetY=n-d,r=!0,c.push({type:"horizontal",axis:{x:f-50,y:d},length:p-f+100}))}if(e||0===e)for(var b=0;b<V.length;b++){var m=V[b],v=m.value,O=m.range,h=Math.min.apply(Math,Object(te["a"])(O).concat([n||0])),j=Math.max.apply(Math,Object(te["a"])(O).concat([n||0]));Math.abs(e-v)<o&&!a&&(l.offsetX=e-v,a=!0,c.push({type:"vertical",axis:{x:v,y:h-50},length:j-h+100}))}return t.value=c,l};document.onmousemove=function(t){if(f){var n=t.pageX,o=t.pageY,c=n-I,r=o-E,l=v,i=O,u=b,p=m;if(h){var y=(Math.cos(j)*c+Math.sin(j)*r)/a.value,C=(Math.cos(j)*r-Math.sin(j)*c)/a.value;g&&(s!==Oe.RIGHT_BOTTOM&&s!==Oe.LEFT_TOP||(C=y/k),s!==Oe.LEFT_BOTTOM&&s!==Oe.RIGHT_TOP||(C=-y/k)),s===Oe.RIGHT_BOTTOM?(l=N(v+y),i=N(O+C)):s===Oe.LEFT_BOTTOM?(l=N(v-y),i=N(O+C),u=b-(l-v)):s===Oe.LEFT_TOP?(l=N(v-y),i=N(O-C),u=b-(l-v),p=m-(i-O)):s===Oe.RIGHT_TOP?(l=N(v+y),i=N(O-C),p=m-(i-O)):s===Oe.TOP?(i=N(O-C),p=m-(i-O)):s===Oe.BOTTOM?i=N(O+C):s===Oe.LEFT?(l=N(v-y),u=b-(l-v)):s===Oe.RIGHT&&(l=N(v+y));var S=Kn({width:l,height:i,left:u,top:p},h),L=Qn(s,S),V=L.left,_=L.top,B=V-T,D=_-w;u-=B,p-=D}else{var M=c/a.value,A=r/a.value;if(g&&(s!==Oe.RIGHT_BOTTOM&&s!==Oe.LEFT_TOP||(A=M/k),s!==Oe.LEFT_BOTTOM&&s!==Oe.RIGHT_TOP||(A=-M/k)),s===Oe.RIGHT_BOTTOM){var P=le(b+v+M,m+O+A),R=P.offsetX,F=P.offsetY;M-=R,A-=F,g&&(F?M=A*k:A=M/k),l=N(v+M),i=N(O+A)}else if(s===Oe.LEFT_BOTTOM){var H=le(b+M,m+O+A),z=H.offsetX,U=H.offsetY;M-=z,A-=U,g&&(U?M=-A*k:A=-M/k),l=N(v-M),i=N(O+A),u=b-(l-v)}else if(s===Oe.LEFT_TOP){var G=le(b+M,m+A),q=G.offsetX,X=G.offsetY;M-=q,A-=X,g&&(X?M=A*k:A=M/k),l=N(v-M),i=N(O-A),u=b-(l-v),p=m-(i-O)}else if(s===Oe.RIGHT_TOP){var W=le(b+v+M,m+A),Y=W.offsetX,Z=W.offsetY;M-=Y,A-=Z,g&&(Z?M=-A*k:A=-M/k),l=N(v+M),i=N(O-A),p=m-(i-O)}else if(s===Oe.LEFT){var J=le(b+M,null),K=J.offsetX;M-=K,l=N(v-M),u=b-(l-v)}else if(s===Oe.RIGHT){var Q=le(b+v+M,null),$=Q.offsetX;M-=$,l=N(v+M)}else if(s===Oe.TOP){var ee=le(null,m+A),te=ee.offsetY;A-=te,i=N(O-A),p=m-(i-O)}else if(s===Oe.BOTTOM){var ne=le(null,m+O+A),oe=ne.offsetY;A-=oe,i=N(O+A)}}e.value=e.value.map((function(e){return d.id===e.id?Object(x["a"])(Object(x["a"])({},e),{},{left:u,top:p,width:l,height:i}):e}))}},document.onmouseup=function(o){f=!1,document.onmousemove=null,document.onmouseup=null,t.value=[],I===o.pageX&&E===o.pageY||(n.commit(y.UPDATE_SLIDE,{elements:e.value}),n.commit(y.SET_SCALING_STATE,!1),u())}},s=function(t,c,r){var i=!0,d=c.minX,s=c.maxX,f=c.minY,p=c.maxY,b=s-d,m=p-f,v=b/m,O=t.pageX,h=t.pageY,j=JSON.parse(JSON.stringify(e.value));document.onmousemove=function(t){if(i){var n=t.pageX,c=t.pageY,u=(n-O)/a.value,g=(c-h)/a.value;l.value&&(r!==Oe.RIGHT_BOTTOM&&r!==Oe.LEFT_TOP||(g=u/v),r!==Oe.LEFT_BOTTOM&&r!==Oe.RIGHT_TOP||(g=-u/v));var y=d,k=s,I=f,E=p;r===Oe.RIGHT_BOTTOM?(k=s+u,E=p+g):r===Oe.LEFT_BOTTOM?(y=d+u,E=p+g):r===Oe.LEFT_TOP?(y=d+u,I=f+g):r===Oe.RIGHT_TOP?(k=s+u,I=f+g):r===Oe.TOP?I=f+g:r===Oe.BOTTOM?E=p+g:r===Oe.LEFT?y=d+u:r===Oe.RIGHT&&(k=s+u);var C=k-y,S=E-I,N=C/b,T=S/m;N<=0&&(N=0),T<=0&&(T=0),e.value=e.value.map((function(e){if(("image"===e.type||"shape"===e.type)&&o.value.includes(e.id)){var t=j.find((function(t){return t.id===e.id}));return Object(x["a"])(Object(x["a"])({},e),{},{width:t.width*N,height:t.height*T,left:y+(t.left-d)*N,top:I+(t.top-f)*T})}return e}))}},document.onmouseup=function(t){i=!1,document.onmousemove=null,document.onmouseup=null,O===t.pageX&&h===t.pageY||(n.commit(y.UPDATE_SLIDE,{elements:e.value}),u())}};return{scaleElement:d,scaleMultiElement:s}},eo=function(e,t){var n=ue(),o=Object(j["computed"])((function(){return n.state.activeElementIdList})),c=Object(j["computed"])((function(){return n.state.handleElementId})),a=Object(j["computed"])((function(){return n.state.activeGroupElementId})),r=Object(j["computed"])((function(){return n.state.editorAreaFocus})),l=Object(j["computed"])((function(){return n.getters.ctrlOrShiftKeyActive})),i=function(i,u){var d=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(r.value||n.commit(y.SET_EDITORAREA_FOCUS,!0),o.value.includes(u.id)){if(l.value){var s=[];if(u.groupId){var f=[];e.value.forEach((function(e){e.groupId===u.groupId&&f.push(e.id)})),s=o.value.filter((function(e){return!f.includes(e)}))}else s=o.value.filter((function(e){return e!==u.id}));s.length>0&&n.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,s)}else if(c.value!==u.id)n.commit(y.SET_HANDLE_ELEMENT_ID,u.id);else if(a.value!==u.id){var p=i.pageX,b=i.pageY;i.target.onmouseup=function(e){var t=e.pageX,o=e.pageY;p===t&&b===o&&(n.commit(y.SET_ACTIVE_GROUP_ELEMENT_ID,u.id),e.target.onmouseup=null)}}}else{var m=[];if(m=l.value?[].concat(Object(te["a"])(o.value),[u.id]):[u.id],u.groupId){var v=[];e.value.forEach((function(e){e.groupId===u.groupId&&v.push(e.id)})),m=[].concat(Object(te["a"])(m),v)}n.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,Object(ne["uniq"])(m)),n.commit(y.SET_HANDLE_ELEMENT_ID,u.id)}d&&t(i,u)},u=function(){var t=e.value.filter((function(e){return!e.lock})),o=t.map((function(e){return e.id}));n.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,o)};return{selectElement:i,selectAllElement:u}},to=function(e,t){var n=ue(),o=Object(j["computed"])((function(){return n.state.activeElementIdList})),c=Object(j["computed"])((function(){return n.state.activeGroupElementId})),a=Object(j["computed"])((function(){return n.state.canvasScale})),r=Object(j["computed"])((function(){return n.state.viewportRatio})),l=Ye(),i=l.addHistorySnapshot,u=function(l,u){if(o.value.includes(u.id)){var d,s=!0,f=Ke,p=Ke*r.value,b=5,m=JSON.parse(JSON.stringify(e.value)),v=m.filter((function(e){return o.value.includes(e.id)})),O=u.left,h=u.top,j=u.width,g="height"in u&&u.height?u.height:0,k="rotate"in u&&u.rotate?u.rotate:0,I=l.pageX,E=l.pageY,C=null,N=u.id===c.value,T=[],w=[],L=Object(S["a"])(e.value);try{for(L.s();!(d=L.n()).done;){var V=d.value;if("line"!==V.type&&((!N||V.id!==u.id)&&(N||!o.value.includes(V.id)))){var _=void 0,B=void 0,D=void 0,M=void 0;if("rotate"in V&&V.rotate){var A=Pe({left:V.left,top:V.top,width:V.width,height:V.height,rotate:V.rotate}),P=A.xRange,R=A.yRange;_=P[0],B=R[0],D=P[1]-P[0],M=R[1]-R[0]}else _=V.left,B=V.top,D=V.width,M=V.height;var F=_+D,H=B+M,z=B+M/2,U=_+D/2,G={value:B,range:[_,F]},q={value:H,range:[_,F]},X={value:z,range:[_,F]},W={value:_,range:[B,H]},Y={value:F,range:[B,H]},Z={value:U,range:[B,H]};T.push(G,q,X),w.push(W,Y,Z)}}}catch(oe){L.e(oe)}finally{L.f()}var J={value:0,range:[0,f]},K={value:p,range:[0,f]},Q={value:p/2,range:[0,f]},$={value:0,range:[0,p]},ee={value:f,range:[0,p]},ne={value:f/2,range:[0,p]};T.push(J,K,Q),w.push($,ee,ne),T=ze(T),w=ze(w),document.onmousemove=function(n){var c=n.pageX,r=n.pageY;if(!1!==C&&(C=Math.abs(I-c)<b&&Math.abs(E-r)<b),s&&!C){var l,i,d,f,p=(c-I)/a.value,m=(r-E)/a.value,y=O+p,S=h+m;if(1===o.value.length||N)if(k){var L=Pe({left:y,top:S,width:j,height:g,rotate:k}),V=L.xRange,_=L.yRange;l=V[0],i=V[1],d=_[0],f=_[1]}else"line"===u.type?(l=y,i=y+Math.max(u.start[0],u.end[0]),d=S,f=S+Math.max(u.start[1],u.end[1])):(l=y,i=y+j,d=S,f=S+g);else{for(var B=[],D=[],M=[],A=[],P=0;P<v.length;P++){var R=v[P],F=R.left+p,H=R.top+m,z=R.width,U="height"in R&&R.height?R.height:0,G="rotate"in R&&R.rotate?R.rotate:0;if("rotate"in R&&R.rotate){var q=Pe({left:F,top:H,width:z,height:U,rotate:G}),X=q.xRange,W=q.yRange;B.push(X[0]),D.push(W[0]),M.push(X[1]),A.push(W[1])}else"line"===R.type?(B.push(F),D.push(H),M.push(F+Math.max(R.start[0],R.end[0])),A.push(H+Math.max(R.start[1],R.end[1]))):(B.push(F),D.push(H),M.push(F+z),A.push(H+U))}l=Math.min.apply(Math,B),i=Math.max.apply(Math,M),d=Math.min.apply(Math,D),f=Math.max.apply(Math,A)}for(var Y=l+(i-l)/2,Z=d+(f-d)/2,J=[],K=!1,Q=!1,$=0;$<T.length;$++){var ee=T[$],ne=ee.value,oe=ee.range,ce=Math.min.apply(Math,Object(te["a"])(oe).concat([l,i])),ae=Math.max.apply(Math,Object(te["a"])(oe).concat([l,i]));Math.abs(d-ne)<b&&!Q&&(S-=d-ne,Q=!0,J.push({type:"horizontal",axis:{x:ce-50,y:ne},length:ae-ce+100})),Math.abs(f-ne)<b&&!Q&&(S-=f-ne,Q=!0,J.push({type:"horizontal",axis:{x:ce-50,y:ne},length:ae-ce+100})),Math.abs(Z-ne)<b&&!Q&&(S-=Z-ne,Q=!0,J.push({type:"horizontal",axis:{x:ce-50,y:ne},length:ae-ce+100}))}for(var re=0;re<w.length;re++){var le=w[re],ie=le.value,ue=le.range,de=Math.min.apply(Math,Object(te["a"])(ue).concat([d,f])),se=Math.max.apply(Math,Object(te["a"])(ue).concat([d,f]));Math.abs(l-ie)<b&&!K&&(y-=l-ie,K=!0,J.push({type:"vertical",axis:{x:ie,y:de-50},length:se-de+100})),Math.abs(i-ie)<b&&!K&&(y-=i-ie,K=!0,J.push({type:"vertical",axis:{x:ie,y:de-50},length:se-de+100})),Math.abs(Y-ie)<b&&!K&&(y-=Y-ie,K=!0,J.push({type:"vertical",axis:{x:ie,y:de-50},length:se-de+100}))}if(t.value=J,1===o.value.length||N)e.value=e.value.map((function(e){return e.id===u.id?Object(x["a"])(Object(x["a"])({},e),{},{left:y,top:S}):e}));else{var fe=e.value.find((function(e){return e.id===u.id}));if(!fe)return;e.value=e.value.map((function(e){return o.value.includes(e.id)?e.id===u.id?Object(x["a"])(Object(x["a"])({},e),{},{left:y,top:S}):Object(x["a"])(Object(x["a"])({},e),{},{left:e.left+(y-fe.left),top:e.top+(S-fe.top)}):e}))}}},document.onmouseup=function(o){s=!1,document.onmousemove=null,document.onmouseup=null,t.value=[];var c=o.pageX,a=o.pageY;I===c&&E===a||(n.commit(y.UPDATE_SLIDE,{elements:e.value}),i())}}};return{dragElement:u}},no=function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Ye(),c=o.addHistorySnapshot,a=function(o,a,r){for(var l=!0,i=8,u=o.pageX,d=o.pageY,s=[],f=0;f<e.value.length;f++){var p=e.value[f];if(!("line"===p.type||"rotate"in p&&p.rotate)){var b=p.left,m=p.top,v=p.width,O=p.height,h=b+v,j=m+O,g=m+O/2,k=b+v/2,I={x:k,y:m},E={x:k,y:j},C={x:b,y:g},N={x:h,y:g},T={x:b,y:m},w={x:h,y:m},L={x:b,y:j},V={x:h,y:j};s.push(I,E,C,N,T,w,L,V)}}document.onmousemove=function(t){if(l){var o=t.pageX,c=t.pageY,f=(o-u)/n.value,p=(c-d)/n.value,b=a.left+a.start[0],m=a.top+a.start[1],v=a.left+a.end[0],O=a.top+a.end[1],h=a.broken||a.curve||[0,0],j=a.left+h[0],g=a.top+h[1];if(r===he.START){b+=f,m+=p,Math.abs(b-v)<i&&(b=v),Math.abs(m-O)<i&&(m=O);var y,k=Object(S["a"])(s);try{for(k.s();!(y=k.n()).done;){var I=y.value,E=I.x,C=I.y;if(Math.abs(E-b)<i&&Math.abs(C-m)<i){b=E,m=C;break}}}catch(R){k.e(R)}finally{k.f()}}else if(r===he.END){v+=f,O+=p,Math.abs(b-v)<i&&(v=b),Math.abs(m-O)<i&&(O=m);var N,T=Object(S["a"])(s);try{for(T.s();!(N=T.n()).done;){var w=N.value,L=w.x,V=w.y;if(Math.abs(L-v)<i&&Math.abs(V-O)<i){v=L,O=V;break}}}catch(R){T.e(R)}finally{T.f()}}else j+=f,g+=p,Math.abs(j-b)<i&&(j=b),Math.abs(g-m)<i&&(g=m),Math.abs(j-v)<i&&(j=v),Math.abs(g-O)<i&&(g=O),Math.abs(j-(b+v)/2)<i&&Math.abs(g-(m+O)/2)<i&&(j=(b+v)/2,g=(m+O)/2);var _=Math.min(b,v),B=Math.min(m,O),D=Math.max(b,v),M=Math.max(m,O),A=[0,0],P=[D-_,M-B];b>v&&(A[0]=D-_,P[0]=0),m>O&&(A[1]=M-B,P[1]=0),e.value=e.value.map((function(e){if(e.id===a.id){var t=Object(x["a"])(Object(x["a"])({},e),{},{left:_,top:B,start:A,end:P});return r!==he.MID?(a.broken&&(t.broken=[(A[0]+P[0])/2,(A[1]+P[1])/2]),a.curve&&(t.curve=[(A[0]+P[0])/2,(A[1]+P[1])/2])):(a.broken&&(t.broken=[j-_,g-B]),a.curve&&(t.curve=[j-_,g-B])),t}return e}))}},document.onmouseup=function(n){l=!1,document.onmousemove=null,document.onmouseup=null;var o=n.pageX,a=n.pageY;u===o&&d===a||(t.commit(y.UPDATE_SLIDE,{elements:e.value}),c())}};return{dragLineElement:a}},oo=function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return t.state.creatingElement})),c=function(t){var o=t.start,c=t.end;if(e.value){var a=e.value.getBoundingClientRect(),r=Object(qt["a"])(o,2),l=r[0],i=r[1],u=Object(qt["a"])(c,2),d=u[0],s=u[1],f=Math.min(l,d),p=Math.max(l,d),b=Math.min(i,s),m=Math.max(i,s),v=(f-a.x)/n.value,O=(b-a.y)/n.value,h=(p-f)/n.value,j=(m-b)/n.value;return{left:v,top:O,width:h,height:j}}},a=function(t){var o=t.start,c=t.end;if(e.value){var a=e.value.getBoundingClientRect(),r=Object(qt["a"])(o,2),l=r[0],i=r[1],u=Object(qt["a"])(c,2),d=u[0],s=u[1],f=Math.min(l,d),p=Math.max(l,d),b=Math.min(i,s),m=Math.max(i,s),v=(f-a.x)/n.value,O=(b-a.y)/n.value,h=(p-f)/n.value,j=(m-b)/n.value,g=[l===f?0:h,i===b?0:j],y=[d===f?0:h,s===b?0:j];return{left:v,top:O,start:g,end:y}}},r=Qe(),l=r.createTextElement,i=r.createShapeElement,u=r.createLineElement,d=function(e){if(o.value){var n=o.value.type;if("text"===n){var r=c(e);r&&l(r)}else if("shape"===n){var d=c(e);d&&i(d,o.value.data)}else if("line"===n){var s=a(e);s&&u(s,o.value.data)}t.commit(y.SET_CREATING_ELEMENT,null)}};return{insertElementFromCreateSelection:d}};function co(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"editable-element",ref:"elementRef",id:"editable-element-".concat(e.elementInfo.id),style:{zIndex:e.elementIndex}},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo,selectElement:e.selectElement,contextmenus:e.contextmenus},null,8,["elementInfo","selectElement","contextmenus"]))],12,["id"])}var ao;n("a9e3");(function(e){e["TEXT"]="text",e["IMAGE"]="image",e["SHAPE"]="shape",e["LINE"]="line",e["CHART"]="chart",e["TABLE"]="table"})(ao||(ao={}));var ro,lo,io=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.state.viewportRatio})),o=Object(j["computed"])((function(){return e.getters.activeElementList})),c=Object(j["computed"])((function(){return e.getters.currentSlide})),a=Ye(),r=a.addHistorySnapshot,l=function(a){var l,i=Ke,u=Ke*n.value,d=He(o.value),s=d.minX,f=d.maxX,p=d.minY,b=d.maxY,m=JSON.parse(JSON.stringify(c.value.elements)),v=Object(S["a"])(m);try{for(v.s();!(l=v.n()).done;){var O=l.value;if(t.value.includes(O.id)){if(a===me.CENTER){var h=p+(b-p)/2-u/2,j=s+(f-s)/2-i/2;O.top=O.top-h,O.left=O.left-j}if(a===me.TOP){var g=p-0;O.top=O.top-g}else if(a===me.VERTICAL){var k=p+(b-p)/2-u/2;O.top=O.top-k}else if(a===me.BOTTOM){var I=b-u;O.top=O.top-I}else if(a===me.LEFT){var E=s-0;O.left=O.left-E}else if(a===me.HORIZONTAL){var C=s+(f-s)/2-i/2;O.left=O.left-C}else if(a===me.RIGHT){var x=f-i;O.left=O.left-x}}}}catch(N){v.e(N)}finally{v.f()}e.commit(y.UPDATE_SLIDE,{elements:m}),r()};return{alignElementToCanvas:l}},uo=Object(j["withScopeId"])("data-v-1622838f"),so=uo((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ImageClipHandler"),l=Object(j["resolveComponent"])("ImageOutline"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-image",{lock:e.elementInfo.lock}],style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[e.isCliping?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,src:e.elementInfo.src,clipData:e.elementInfo.clip,width:e.elementInfo.width,height:e.elementInfo.height,top:e.elementInfo.top,left:e.elementInfo.left,clipPath:e.clipShape.style,onClip:t[1]||(t[1]=function(t){return e.handleClip(t)})},null,8,["src","clipData","width","height","top","left","clipPath"])):Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:1,class:"element-content",style:{filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle},onMousedown:t[3]||(t[3]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(l,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(j["createVNode"])("div",{class:"image-content",style:{clipPath:e.clipShape.style}},[Object(j["createVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:{top:e.imgPosition.top,left:e.imgPosition.left,width:e.imgPosition.width,height:e.imgPosition.height,filter:e.filter},onDragstart:t[2]||(t[2]=Object(j["withModifiers"])((function(){}),["prevent"])),alt:""},null,44,["src"])],4)],36)),[[i,e.contextmenus]])],4)],6)})),fo=function(e){var t=Object(j["computed"])((function(){if(e.value){var t=e.value,n=t.h,o=t.v,c=t.blur,a=t.color;return"".concat(n,"px ").concat(o,"px ").concat(c,"px ").concat(a)}return""}));return{shadowStyle:t}},po=function(e,t){var n=Object(j["computed"])((function(){var n="";return e.value&&t.value?n="rotateX(180deg) rotateY(180deg)":t.value?n="rotateX(180deg)":e.value&&(n="rotateY(180deg)"),n}));return{flipStyle:n}};(function(e){e["RECT"]="rect",e["ELLIPSE"]="ellipse",e["POLYGON"]="polygon"})(ro||(ro={})),function(e){e["RECT"]="rect",e["ROUNDRECT"]="roundRect",e["ELLIPSE"]="ellipse",e["TRIANGLE"]="triangle",e["PENTAGON"]="pentagon",e["RHOMBUS"]="rhombus",e["STAR"]="star"}(lo||(lo={}));var bo={rect:{name:"矩形",type:ro.RECT,radius:"0",style:""},rect2:{name:"矩形2",type:ro.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 0 100%)",createPath:function(e,t){return"M 0 0 L ".concat(.8*e," 0 L ").concat(e," ").concat(.2*t," L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}},rect3:{name:"矩形3",type:ro.POLYGON,style:"polygon(0% 0%, 80% 0%, 100% 20%, 100% 100%, 20% 100%, 0% 80%)",createPath:function(e,t){return"M 0 0 L ".concat(.8*e," 0 L ").concat(e," ").concat(.2*t," L ").concat(e," ").concat(t," L ").concat(.2*e," ").concat(t," L 0 ").concat(.8*t," Z")}},roundRect:{name:"圆角矩形",type:ro.RECT,radius:"10%",style:"inset(0 0 0 0 round 10% 10% 10% 10%)"},ellipse:{name:"圆形",type:ro.ELLIPSE,style:"ellipse(50% 50% at 50% 50%)"},triangle:{name:"三角形",type:ro.POLYGON,style:"polygon(50% 0%, 0% 100%, 100% 100%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L 0 ").concat(t," L ").concat(e," ").concat(t," Z")}},triangle2:{name:"三角形2",type:ro.POLYGON,style:"polygon(50% 100%, 0% 0%, 100% 0%)",createPath:function(e,t){return"M ".concat(.5*e," ").concat(t," L 0 0 L ").concat(e," 0 Z")}},triangle3:{name:"三角形3",type:ro.POLYGON,style:"polygon(0% 0%, 0% 100%, 100% 100%)",createPath:function(e,t){return"M 0 0 L 0 ".concat(t," L ").concat(e," ").concat(t," Z")}},rhombus:{name:"菱形",type:ro.POLYGON,style:"polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.5*e," ").concat(t," L 0 ").concat(.5*t," Z")}},hexagon:{name:"六边形",type:ro.POLYGON,style:"polygon(20% 0%, 80% 0%, 100% 50%, 80% 100%, 20% 100%, 0% 50%)",createPath:function(e,t){return"M ".concat(.2*e," 0 L ").concat(.8*e," 0 L ").concat(e," ").concat(.5*t," L ").concat(.8*e," ").concat(t," L ").concat(.2*e," ").concat(t," L 0 ").concat(.5*t," Z")}},pentagon:{name:"五边形",type:ro.POLYGON,style:"polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%)",createPath:function(e,t){return"M ".concat(.5*e," 0 L ").concat(e," ").concat(.38*t," L ").concat(.82*e," ").concat(t," L ").concat(.18*e," ").concat(t," L 0 ").concat(.38*t," Z")}},parallelogram:{name:"平行四边形",type:ro.POLYGON,style:"polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%)",createPath:function(e,t){return"M ".concat(.3*e," 0 L ").concat(e," 0 L ").concat(.7*e," ").concat(t," L 0 ").concat(t," Z")}},parallelogram2:{name:"平行四边形2",type:ro.POLYGON,style:"polygon(30% 100%, 100% 100%, 70% 0%, 0% 0%)",createPath:function(e,t){return"M ".concat(.3*e," ").concat(t," L ").concat(e," ").concat(t," L ").concat(.7*e," 0 L 0 0 Z")}},trapezoid:{name:"梯形",type:ro.POLYGON,style:"polygon(25% 0%, 75% 0%, 100% 100%, 0% 100%)",createPath:function(e,t){return"M ".concat(.25*e," 0 L ").concat(.75*e," 0 L ").concat(e," ").concat(t," L 0 ").concat(t," Z")}},trapezoid2:{name:"梯形2",type:ro.POLYGON,style:"polygon(0% 0%, 100% 0%, 75% 100%, 25% 100%)",createPath:function(e,t){return"M 0 0 L ".concat(e," 0 L ").concat(.75*e," ").concat(t," L ").concat(.25*e," ").concat(t," Z")}}},mo=function(e){var t=Object(j["computed"])((function(){if(!e.value)return bo.rect;var t=e.value.shape||ro.RECT;return bo[t]})),n=Object(j["computed"])((function(){if(!e.value)return{top:"0",left:"0",width:"100%",height:"100%"};var t=Object(qt["a"])(e.value.range,2),n=t[0],o=t[1],c=(o[0]-n[0])/100,a=(o[1]-n[1])/100,r=n[0]/c,l=n[1]/a;return{left:-r+"%",top:-l+"%",width:100/c+"%",height:100/a+"%"}}));return{clipShape:t,imgPosition:n}},vo=function(e){var t=Object(j["computed"])((function(){if(!e.value)return"";for(var t="",n=0,o=Object.keys(e.value);n<o.length;n++){var c=o[n];t+="".concat(c,"(").concat(e.value[c],") ")}return t}));return{filter:t}},Oo={class:"image-outline"};function ho(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ImageRectOutline"),l=Object(j["resolveComponent"])("ImageEllipseOutline"),i=Object(j["resolveComponent"])("ImagePolygonOutline");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Oo,["rect"===e.clipShape.type?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,width:e.elementInfo.width,height:e.elementInfo.height,radius:e.clipShape.radius,outline:e.elementInfo.outline},null,8,["width","height","radius","outline"])):"ellipse"===e.clipShape.type?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"])):"polygon"===e.clipShape.type?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:2,width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline,createPath:e.clipShape.createPath},null,8,["width","height","outline","createPath"])):Object(j["createCommentVNode"])("",!0)])}var jo=Object(j["withScopeId"])("data-v-4126ab7f"),go=jo((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return e.outline?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,class:"image-rect-outline",overflow:"visible",width:e.width,height:e.height},{default:jo((function(){return[Object(j["createVNode"])("rect",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",rx:e.radius,ry:e.radius,width:e.width,height:e.height,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,["rx","ry","width","height","stroke","stroke-width","stroke-dasharray"])]})),_:1},8,["width","height"])):Object(j["createCommentVNode"])("",!0)})),yo=function(e){var t=Object(j["computed"])((function(){var t,n;return null!==(t=null===(n=e.value)||void 0===n?void 0:n.width)&&void 0!==t?t:0})),n=Object(j["computed"])((function(){var t;return(null===(t=e.value)||void 0===t?void 0:t.style)||"solid"})),o=Object(j["computed"])((function(){var t;return(null===(t=e.value)||void 0===t?void 0:t.color)||"#d14424"}));return{outlineWidth:t,outlineStyle:n,outlineColor:o}},ko=Object(j["defineComponent"])({name:"image-rect-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object},radius:{type:String,default:"0"}},setup:function(e){var t=yo(Object(j["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,c=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:c}}});n("b2b3");ko.render=go,ko.__scopeId="data-v-4126ab7f";var Io=ko,Eo=Object(j["withScopeId"])("data-v-6655f0f0"),Co=Eo((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return e.outline?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,class:"image-ellipse-outline",overflow:"visible",width:e.width,height:e.height},{default:Eo((function(){return[Object(j["createVNode"])("ellipse",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",cx:e.width/2,cy:e.height/2,rx:e.width/2,ry:e.height/2,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,["cx","cy","rx","ry","stroke","stroke-width","stroke-dasharray"])]})),_:1},8,["width","height"])):Object(j["createCommentVNode"])("",!0)})),xo=Object(j["defineComponent"])({name:"image-ellipse-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object}},setup:function(e){var t=yo(Object(j["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,c=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:c}}});n("169b");xo.render=Co,xo.__scopeId="data-v-6655f0f0";var So=xo,No=Object(j["withScopeId"])("data-v-8d85e878"),To=No((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return e.outline?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,class:"image-polygon-outline",overflow:"visible",width:e.width,height:e.height},{default:No((function(){return[Object(j["createVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",d:e.createPath(e.width,e.height),stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,["d","stroke","stroke-width","stroke-dasharray"])]})),_:1},8,["width","height"])):Object(j["createCommentVNode"])("",!0)})),wo=Object(j["defineComponent"])({name:"image-polygon-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object},createPath:{type:Function,required:!0}},setup:function(e){var t=yo(Object(j["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,c=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:c}}});n("64b8");wo.render=To,wo.__scopeId="data-v-8d85e878";var Lo=wo,Vo=Object(j["defineComponent"])({name:"image-outline",components:{ImageRectOutline:Io,ImageEllipseOutline:So,ImagePolygonOutline:Lo},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.clip})),n=mo(t),o=n.clipShape;return{clipShape:o}}});Vo.render=ho;var _o=Vo,Bo=Object(j["withScopeId"])("data-v-1d9b5032");Object(j["pushScopeId"])("data-v-1d9b5032");var Do=Object(j["createVNode"])("path",{"stroke-width":"0.3","shape-rendering":"crispEdges",d:"M 16 0 L 0 0 L 0 16 L 4 16 L 4 4 L 16 4 L 16 0 Z"},null,-1);Object(j["popScopeId"])();var Mo=Bo((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper"),l=Object(j["resolveDirective"])("click-outside");return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"image-clip-handler",style:e.clipWrapperPositionStyle},[Object(j["createVNode"])("img",{class:"bottom-img",src:e.src,draggable:!1,alt:"",style:e.bottomImgPositionStyle},null,12,["src"]),Object(j["createVNode"])("div",{class:"top-image-content",style:Object(x["a"])(Object(x["a"])({},e.topImgWrapperPositionStyle),{},{clipPath:e.clipPath})},[Object(j["createVNode"])("img",{class:"top-img",src:e.src,draggable:!1,alt:"",style:e.topImgPositionStyle},null,12,["src"])],4),Object(j["createVNode"])("div",{class:"operate",style:e.topImgWrapperPositionStyle,onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.moveClipRange(t)}),["stop"]))},[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(["t-l","t-r","b-l","b-r"],(function(t){return Object(j["createVNode"])("div",{class:["clip-point",t],key:t,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleClipRange(n,t)}),["stop"])},[Object(j["createVNode"])(r,{width:"16",height:"16",fill:"#fff",stroke:"#333"},{default:Bo((function(){return[Do]})),_:1})],42,["onMousedown"])})),64))],36)],4)),[[l,e.handleClip]])})),Ao=Object(j["defineComponent"])({name:"image-clip-handler",props:{src:{type:String,required:!0},clipData:{type:Object},clipPath:{type:String,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},top:{type:Number,required:!0},left:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=ue(),c=Object(j["computed"])((function(){return o.state.canvasScale})),a=Object(j["computed"])((function(){return o.getters.ctrlOrShiftKeyActive})),r=Object(j["reactive"])({top:"0",left:"0"}),l=Object(j["ref"])(!1),i=Object(j["ref"])(null),u=function(){var t=e.clipData?e.clipData.range:[[0,0],[100,100]],n=Object(qt["a"])(t,2),o=n[0],c=n[1],a=(c[0]-o[0])/100,r=(c[1]-o[1])/100,l=o[0]/a,i=o[1]/r;return{widthScale:a,heightScale:r,left:l,top:i}},d=Object(j["computed"])((function(){var e=u(),t=e.widthScale,n=e.heightScale,o=e.left,c=e.top;return{left:-o,top:-c,width:100/t,height:100/n}})),s=Object(j["computed"])((function(){return{top:d.value.top+"%",left:d.value.left+"%",width:d.value.width+"%",height:d.value.height+"%"}})),f=Object(j["reactive"])({top:0,left:0,width:0,height:0}),p=Object(j["computed"])((function(){return{top:f.top+"%",left:f.left+"%",width:f.width+"%",height:f.height+"%"}})),b=Object(j["computed"])((function(){var e=d.value.width,t=d.value.height,n=f.left,o=f.top,c=f.width,a=f.height;return{left:100/c*-n+"%",top:100/a*-o+"%",width:e/c*100+"%",height:t/a*100+"%"}})),m=function(){var e=u(),t=e.left,n=e.top;f.left=t,f.top=n,f.width=100,f.height=100,r.top=-n+"%",r.left=-t+"%"},v=function(){if(!l.value)if(i.value){var t=u(),o=t.left,c=t.top,a={left:(f.left-o)/100*e.width,top:(f.top-c)/100*e.height,width:(f.width-100)/100*e.width,height:(f.height-100)/100*e.height},r={range:i.value,position:a};n("clip",r)}else n("clip",null)},O=function(e){var t=e.key.toUpperCase();t===je.ENTER&&v()};Object(j["onMounted"])((function(){m(),document.addEventListener("keydown",O)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",O)}));var h=function(){var e={left:parseInt(b.value.left),top:parseInt(b.value.top),width:parseInt(b.value.width),height:parseInt(b.value.height)},t=100/e.width,n=100/e.height,o=[-e.left*t,-e.top*n],c=[100*t+o[0],100*n+o[1]];i.value=[o,c]},g=function(t){l.value=!0;var n=!0,o=t.pageX,a=t.pageY,r=d.value,i={left:f.left,top:f.top,width:f.width,height:f.height};document.onmousemove=function(t){if(n){var l=t.pageX,u=t.pageY,d=(l-o)/c.value/e.width*100,s=(u-a)/c.value/e.height*100,p=i.left+d,b=i.top+s;p<0?p=0:p+i.width>r.width&&(p=r.width-i.width),b<0?b=0:b+i.height>r.height&&(b=r.height-i.height),f.left=p,f.top=b}},document.onmouseup=function(){n=!1,document.onmousemove=null,document.onmouseup=null,h(),setTimeout((function(){l.value=!1}),0)}},y=function(t,n){l.value=!0;var o=!0,r=50/e.width*100,i=50/e.height*100,u=t.pageX,s=t.pageY,p=d.value,b={left:f.left,top:f.top,width:f.width,height:f.height},m=f.width/f.height;document.onmousemove=function(t){if(o){var l,d,v,O,h=t.pageX,j=t.pageY,g=(h-u)/c.value/e.width*100,y=(j-s)/c.value/e.height*100;a.value&&("b-r"!==n&&"t-l"!==n||(y=g/m),"b-l"!==n&&"t-r"!==n||(y=-g/m)),"t-l"===n?(b.left+g<0&&(g=-b.left),b.top+y<0&&(y=-b.top),b.width-g<r&&(g=b.width-r),b.height-y<i&&(y=b.height-i),v=b.width-g,O=b.height-y,l=b.left+g,d=b.top+y):"t-r"===n?(b.left+b.width+g>p.width&&(g=p.width-(b.left+b.width)),b.top+y<0&&(y=-b.top),b.width+g<r&&(g=r-b.width),b.height-y<i&&(y=b.height-i),v=b.width+g,O=b.height-y,l=b.left,d=b.top+y):"b-l"===n?(b.left+g<0&&(g=-b.left),b.top+b.height+y>p.height&&(y=p.height-(b.top+b.height)),b.width-g<r&&(g=b.width-r),b.height+y<i&&(y=i-b.height),v=b.width-g,O=b.height+y,l=b.left+g,d=b.top):(b.left+b.width+g>p.width&&(g=p.width-(b.left+b.width)),b.top+b.height+y>p.height&&(y=p.height-(b.top+b.height)),b.width+g<r&&(g=r-b.width),b.height+y<i&&(y=i-b.height),v=b.width+g,O=b.height+y,l=b.left,d=b.top),f.left=l,f.top=d,f.width=v,f.height=O}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null,h(),setTimeout((function(){return l.value=!1}),0)}};return{clipWrapperPositionStyle:r,bottomImgPositionStyle:s,topImgWrapperPositionStyle:p,topImgPositionStyle:b,handleClip:v,moveClipRange:g,scaleClipRange:y}}});n("6c0f");Ao.render=Mo,Ao.__scopeId="data-v-1d9b5032";var Po=Ao,Ro=Object(j["defineComponent"])({name:"editable-element-image",components:{ImageOutline:_o,ImageClipHandler:Po},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.clipingImageElementId})),o=Object(j["computed"])((function(){return n.value===e.elementInfo.id})),c=Object(j["computed"])((function(){return e.elementInfo.shadow})),a=fo(c),r=a.shadowStyle,l=Object(j["computed"])((function(){return e.elementInfo.flipH})),i=Object(j["computed"])((function(){return e.elementInfo.flipV})),u=po(l,i),d=u.flipStyle,s=Object(j["computed"])((function(){return e.elementInfo.clip})),f=mo(s),p=f.clipShape,b=f.imgPosition,m=Object(j["computed"])((function(){return e.elementInfo.filters})),v=vo(m),O=v.filter,h=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},g=function(n){if(t.commit(y.SET_CLIPING_IMAGE_ELEMENT_ID,""),n){var o=n.range,c=n.position,a=e.elementInfo.clip||{shape:"rect",range:[[0,0],[100,100]]},r={clip:Object(x["a"])(Object(x["a"])({},a),{},{range:o}),left:e.elementInfo.left+c.left,top:e.elementInfo.top+c.top,width:e.elementInfo.width+c.width,height:e.elementInfo.height+c.height};t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:r})}};return{isCliping:o,handleClip:g,clipingImageElementId:n,shadowStyle:r,handleSelectElement:h,clipShape:p,imgPosition:b,filter:O,flipStyle:d}}});n("0646");Ro.render=so,Ro.__scopeId="data-v-1622838f";var Fo,Ho=Ro,zo=Object(j["withScopeId"])("data-v-0445b86a"),Uo=zo((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ElementOutline"),l=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-text",{lock:e.elementInfo.lock}],ref:"elementRef",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:"element-content",style:{backgroundColor:e.elementInfo.fill,opacity:e.elementInfo.opacity,textShadow:e.shadowStyle,lineHeight:e.elementInfo.lineHeight,letterSpacing:(e.elementInfo.wordSpace||0)+"px",color:e.elementInfo.defaultColor,fontFamily:e.elementInfo.defaultFontName},onMousedown:t[2]||(t[2]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(r,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])("div",{class:"text",ref:"editorViewRef",onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t,!1)})},null,544)],36),[[l,e.contextmenus]])],4)],6)})),Go=n("0010"),qo=n("5313"),Xo=n("576a"),Wo=n("304a"),Yo=n("7f06"),Zo=n("8726"),Jo=n("23f1"),Ko=n("1a16"),Qo=n("665f"),$o=n("f95e"),ec=function(e){var t={},n=function(e,n){return t[e]=n};return n("Alt-ArrowUp",Go["c"]),n("Alt-ArrowDown",Go["b"]),n("Ctrl-z",Zo["c"]),n("Ctrl-y",Zo["b"]),n("Backspace",$o["f"]),n("Escape",Go["e"]),n("Ctrl-b",Object(Go["f"])(e.marks.strong)),n("Ctrl-i",Object(Go["f"])(e.marks.em)),n("Ctrl-u",Object(Go["f"])(e.marks.underline)),n("Ctrl-d",Object(Go["f"])(e.marks.strikethrough)),n("Enter",Object(Qo["f"])(e.nodes.list_item)),n("Mod-[",Object(Qo["b"])(e.nodes.list_item)),n("Mod-]",Object(Qo["e"])(e.nodes.list_item)),t},tc=function(e){return Object($o["g"])(/^\s*>\s$/,e)},nc=function(e){return Object($o["g"])(/^(\d+)\.\s$/,e,(function(e){return{order:+e[1]}}),(function(e,t){return t.childCount+t.attrs.order===+e[1]}))},oc=function(e){return Object($o["g"])(/^\s*([-+*])\s$/,e)},cc=function(e){return Object($o["e"])(/^```$/,e)},ac=function(e){var t=[].concat(Object(te["a"])($o["d"]),[$o["a"],$o["b"]]);return t.push(tc(e.nodes.blockquote)),t.push(nc(e.nodes.ordered_list)),t.push(oc(e.nodes.bullet_list)),t.push(cc(e.nodes.code_block)),Object($o["c"])({rules:t})},rc=function(e){return[ac(e),Object(Yo["b"])(ec(e)),Object(Yo["b"])(Go["a"]),Object(Jo["a"])(),Object(Ko["a"])(),Object(Zo["a"])()]},lc=n("2210"),ic=Object(x["a"])(Object(x["a"])({},Qo["d"]),{},{content:"list_item+",group:"block"}),uc=Object(x["a"])(Object(x["a"])({},Qo["a"]),{},{content:"list_item+",group:"block"}),dc=Object(x["a"])(Object(x["a"])({},Qo["c"]),{},{content:"paragraph block*",group:"block"}),sc={attrs:{align:{default:""}},content:"inline*",group:"block",parseDOM:[{tag:"p",getAttrs:function(e){var t=e.style.textAlign,n=e.getAttribute("align")||t||"";return n=/(left|right|center|justify)/.test(n)?n:"",{align:n}}}],toDOM:function(e){var t=e.attrs.align,n="";return t&&"left"!==t&&(n+="text-align: ".concat(t,";")),["p",{style:n},0]}},fc=Object(x["a"])(Object(x["a"])({},lc["b"]),{},{ordered_list:ic,bullet_list:uc,list_item:dc,paragraph:sc}),pc={excludes:"subscript",parseDOM:[{tag:"sub"},{style:"vertical-align",getAttrs:function(e){return"sub"===e&&null}}],toDOM:function(){return["sub",0]}},bc={excludes:"superscript",parseDOM:[{tag:"sup"},{style:"vertical-align",getAttrs:function(e){return"super"===e&&null}}],toDOM:function(){return["sup",0]}},mc={parseDOM:[{tag:"strike"},{style:"text-decoration",getAttrs:function(e){return"line-through"===e&&null}},{style:"text-decoration-line",getAttrs:function(e){return"line-through"===e&&null}}],toDOM:function(){return["span",{style:"text-decoration-line: line-through"},0]}},vc={parseDOM:[{tag:"u"},{style:"text-decoration",getAttrs:function(e){return"underline"===e&&null}},{style:"text-decoration-line",getAttrs:function(e){return"underline"===e&&null}}],toDOM:function(){return["span",{style:"text-decoration: underline"},0]}},Oc={attrs:{color:{}},parseDOM:[{style:"color",getAttrs:function(e){return e?{color:e}:{}}}],toDOM:function(e){var t=e.attrs.color,n="";return t&&(n+="color: ".concat(t,";")),["span",{style:n},0]}},hc={attrs:{backcolor:{}},inline:!0,group:"inline",parseDOM:[{tag:"span[style*=background-color]",getAttrs:function(e){return e?{backcolor:e}:{}}}],toDOM:function(e){var t=e.attrs.backcolor,n="";return t&&(n+="background-color: ".concat(t,";")),["span",{style:n},0]}},jc={attrs:{fontsize:{}},inline:!0,group:"inline",parseDOM:[{style:"font-size",getAttrs:function(e){return e?{fontsize:e}:{}}}],toDOM:function(e){var t=e.attrs.fontsize,n="";return t&&(n+="font-size: ".concat(t)),["span",{style:n},0]}},gc={attrs:{fontname:{}},inline:!0,group:"inline",parseDOM:[{style:"font-family",getAttrs:function(e){return{fontname:e&&"string"===typeof e?e.replace(/[\"\']/g,""):""}}}],toDOM:function(e){var t=e.attrs.fontname,n="";return t&&(n+="font-family: ".concat(t)),["span",{style:n},0]}},yc=Object(x["a"])(Object(x["a"])({},lc["a"]),{},{subscript:pc,superscript:bc,strikethrough:mc,underline:vc,forecolor:Oc,backcolor:hc,fontsize:jc,fontname:gc}),kc=fc,Ic=yc,Ec=new Wo["i"]({nodes:kc,marks:Ic}),Cc=function(e){var t="<div>".concat(e,"</div>"),n=new window.DOMParser,o=n.parseFromString(t,"text/html").body.firstElementChild;return Wo["a"].fromSchema(Ec).parse(o)},xc=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return new Xo["c"](e,Object(x["a"])({state:qo["b"].create({doc:Cc(t),plugins:rc(Ec)})},n))},Sc=n("1344");(function(e){e["RICH_TEXT_COMMAND"]="RICH_TEXT_COMMAND"})(Fo||(Fo={}));var Nc=Object(Sc["a"])(),Tc=Nc,wc=(n("6062"),function(e,t,n){var o=e,c=o.selection,a=o.doc;if(!c||!a)return e;var r=c.from,l=c.to,i=t.nodes,u=i.blockquote,d=i.list_item,s=i.paragraph,f=[];n=n||"";var p=new Set([u,d,s]);return a.nodesBetween(r,l,(function(e,t){var o=e.type,c=e.attrs.align||"";return c!==n&&p.has(o)&&f.push({node:e,pos:t,nodeType:o}),!0})),f.length?(f.forEach((function(t){var o=t.node,c=t.pos,a=t.nodeType,r=o.attrs;r=n?Object(x["a"])(Object(x["a"])({},r),{},{align:n}):Object(x["a"])(Object(x["a"])({},r),{},{align:null}),e=e.setNodeMarkup(c,a,r,o.marks)})),e):e}),Lc=function(e,t){var n=e.state,o=n.schema,c=n.selection,a=wc(n.tr.setSelection(c),o,t);e.dispatch(a)},Vc=function(e,t){return e.type===t.nodes.bullet_list||e.type===t.nodes.ordered_list},_c=function(e,t){return function(n,o){var c=n.schema,a=n.selection,r=a.$from,l=a.$to,i=r.blockRange(l);if(!i)return!1;var u=w((function(e){return Vc(e,c)}))(a);if(i.depth>=1&&u&&i.depth-u.depth<=1){if(u.node.type===e)return Object(Qo["b"])(t)(n,o);if(Vc(u.node,c)&&e.validContent(u.node.content)){var d=n.tr;return d.setNodeMarkup(u.pos,e),o&&o(d),!1}}return Object(Qo["g"])(e)(n,o)}},Bc=Object(j["withScopeId"])("data-v-2ddaa919"),Dc=Bc((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return e.outline?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,class:"element-outline",overflow:"visible",width:e.width,height:e.height},{default:Bc((function(){return[Object(j["createVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",d:"M0,0 L".concat(e.width,",0 L").concat(e.width,",").concat(e.height," L0,").concat(e.height," Z"),stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,["d","stroke","stroke-width","stroke-dasharray"])]})),_:1},8,["width","height"])):Object(j["createCommentVNode"])("",!0)})),Mc=Object(j["defineComponent"])({name:"element-outline",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},outline:{type:Object}},setup:function(e){var t=yo(Object(j["toRef"])(e,"outline")),n=t.outlineWidth,o=t.outlineStyle,c=t.outlineColor;return{outlineWidth:n,outlineStyle:o,outlineColor:c}}});n("d9a3");Mc.render=Dc,Mc.__scopeId="data-v-2ddaa919";var Ac=Mc,Pc=Object(j["defineComponent"])({name:"editable-element-text",components:{ElementOutline:Ac},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t,n=ue(),o=Ye(),c=o.addHistorySnapshot,a=Object(j["ref"])(),r=Object(j["ref"])(),l=Object(j["computed"])((function(){return e.elementInfo.shadow})),i=fo(l),u=i.shadowStyle,d=Object(j["computed"])((function(){return n.state.handleElementId})),s=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo,n))},f=Object(j["ref"])(-1),p=Object(j["computed"])((function(){return n.state.isScaling}));Object(j["watch"])(p,(function(){d.value===e.elementInfo.id&&(p.value||-1===f.value||(n.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{height:f.value}}),f.value=-1))}));var b=function(t){var o=t[0].contentRect;if(a.value){var c=o.height;e.elementInfo.height!==c&&(p.value?f.value=c:n.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{height:c}}))}},m=new ResizeObserver(b);Object(j["onMounted"])((function(){a.value&&m.observe(a.value)})),Object(j["onUnmounted"])((function(){a.value&&m.unobserve(a.value)}));var v=Object(ne["debounce"])((function(){n.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{content:t.dom.innerHTML}}),c()}),300,{trailing:!0}),O=function(){"请输入内容"===e.elementInfo.content&&setTimeout((function(){Object(Go["d"])(t.state,t.dispatch)}),0),n.commit(y.SET_DISABLE_HOTKEYS_STATE,!0)},h=function(){n.commit(y.SET_DISABLE_HOTKEYS_STATE,!1)},g=Object(ne["debounce"])((function(){var o=P(t,{color:e.elementInfo.defaultColor,fontname:e.elementInfo.defaultFontName});n.commit(y.SET_RICHTEXT_ATTRS,o)}),30,{trailing:!0}),k=function(){v(),g()},I=Object(j["computed"])((function(){return e.elementInfo.content}));Object(j["watch"])(I,(function(){t&&(t.hasFocus()||(t.dom.innerHTML=I.value))}));var E=Object(j["computed"])((function(){return!e.elementInfo.lock}));Object(j["watch"])(E,(function(){t.setProps({editable:function(){return E.value}})})),Object(j["onMounted"])((function(){t=xc(r.value,I.value,{handleDOMEvents:{focus:O,blur:h,keydown:k,click:g},editable:function(){return E.value}})})),Object(j["onUnmounted"])((function(){t&&t.destroy()}));var C=function(n){if(d.value===e.elementInfo.id){var o,c="command"in n?[n]:n,a=Object(S["a"])(c);try{for(a.s();!(o=a.n()).done;){var r=o.value;if("fontname"===r.command&&r.value){var l=t.state.schema.marks.fontname.create({fontname:r.value}),i=t.state.selection.empty;i&&Object(Go["d"])(t.state,t.dispatch);var u=t.state.selection,s=u.$from,f=u.$to;t.dispatch(t.state.tr.addMark(s.pos,f.pos,l))}else if("fontsize"===r.command&&r.value){var p=t.state.schema.marks.fontsize.create({fontsize:r.value}),b=t.state.selection.empty;b&&Object(Go["d"])(t.state,t.dispatch);var m=t.state.selection,O=m.$from,h=m.$to;t.dispatch(t.state.tr.addMark(O.pos,h.pos,p))}else if("color"===r.command&&r.value){var j=t.state.schema.marks.forecolor.create({color:r.value}),y=t.state.selection.empty;y&&Object(Go["d"])(t.state,t.dispatch);var k=t.state.selection,I=k.$from,E=k.$to;t.dispatch(t.state.tr.addMark(I.pos,E.pos,j))}else if("backcolor"===r.command&&r.value){var C=t.state.schema.marks.backcolor.create({backcolor:r.value}),x=t.state.selection.empty;x&&Object(Go["d"])(t.state,t.dispatch);var N=t.state.selection,T=N.$from,w=N.$to;t.dispatch(t.state.tr.addMark(T.pos,w.pos,C))}else if("bold"===r.command){var L=t.state.selection.empty;L&&Object(Go["d"])(t.state,t.dispatch),Object(Go["f"])(t.state.schema.marks.strong)(t.state,t.dispatch)}else if("em"===r.command){var V=t.state.selection.empty;V&&Object(Go["d"])(t.state,t.dispatch),Object(Go["f"])(t.state.schema.marks.em)(t.state,t.dispatch)}else if("underline"===r.command){var _=t.state.selection.empty;_&&Object(Go["d"])(t.state,t.dispatch),Object(Go["f"])(t.state.schema.marks.underline)(t.state,t.dispatch)}else if("strikethrough"===r.command){var B=t.state.selection.empty;B&&Object(Go["d"])(t.state,t.dispatch),Object(Go["f"])(t.state.schema.marks.strikethrough)(t.state,t.dispatch)}else if("subscript"===r.command)Object(Go["f"])(t.state.schema.marks.subscript)(t.state,t.dispatch);else if("superscript"===r.command)Object(Go["f"])(t.state.schema.marks.superscript)(t.state,t.dispatch);else if("blockquote"===r.command)Object(Go["g"])(t.state.schema.nodes.blockquote)(t.state,t.dispatch);else if("code"===r.command)Object(Go["f"])(t.state.schema.marks.code)(t.state,t.dispatch);else if("align"===r.command&&r.value)Lc(t,r.value);else if("bulletList"===r.command){var D=t.state.schema.nodes,M=D.bullet_list,A=D.list_item;_c(M,A)(t.state,t.dispatch)}else if("orderedList"===r.command){var P=t.state.schema.nodes,R=P.ordered_list,F=P.list_item;_c(R,F)(t.state,t.dispatch)}else if("clear"===r.command){var H=t.state.selection.empty;H&&Object(Go["d"])(t.state,t.dispatch);var z=t.state.selection,U=z.$from,G=z.$to;t.dispatch(t.state.tr.removeMark(U.pos,G.pos))}}}catch(q){a.e(q)}finally{a.f()}t.focus(),v(),g()}};return Tc.on(Fo.RICH_TEXT_COMMAND,C),Object(j["onUnmounted"])((function(){Tc.off(Fo.RICH_TEXT_COMMAND,C)})),{elementRef:a,editorViewRef:r,handleSelectElement:s,shadowStyle:u}}});n("7fd1");Pc.render=Uo,Pc.__scopeId="data-v-0445b86a";var Rc=Pc,Fc=Object(j["withScopeId"])("data-v-6ed7d252");Object(j["pushScopeId"])("data-v-6ed7d252");var Hc={key:0};Object(j["popScopeId"])();var zc=Fc((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("GradientDefs"),l=Object(j["resolveComponent"])("SvgWrapper"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-shape",{lock:e.elementInfo.lock}],style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:"element-content",style:{opacity:e.elementInfo.opacity,filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle},onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(l,{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},{default:Fc((function(){return[e.elementInfo.gradient?(Object(j["openBlock"])(),Object(j["createBlock"])("defs",Hc,[Object(j["createVNode"])(r,{id:"editabel-gradient-".concat(e.elementInfo.id),type:e.elementInfo.gradient.type,color1:e.elementInfo.gradient.color[0],color2:e.elementInfo.gradient.color[1],rotate:e.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox,", ").concat(e.elementInfo.height/e.elementInfo.viewBox,") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",d:e.elementInfo.path,fill:e.elementInfo.gradient?"url(#editabel-gradient-".concat(e.elementInfo.id,")"):e.elementInfo.fill,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 6":"0 0"},null,8,["d","fill","stroke","stroke-width","stroke-dasharray"])],8,["transform"])]})),_:1},8,["width","height"])],36),[[i,e.contextmenus]])],4)],6)}));function Uc(e,t,n,o,c,a){return"linear"===e.type?(Object(j["openBlock"])(),Object(j["createBlock"])("linearGradient",{key:0,id:e.id,x1:"0%",y1:"0%",x2:"100%",y2:"0%",gradientTransform:"rotate(".concat(e.rotate,",0.5,0.5)")},[Object(j["createVNode"])("stop",{offset:"0%","stop-color":e.color1},null,8,["stop-color"]),Object(j["createVNode"])("stop",{offset:"100%","stop-color":e.color2},null,8,["stop-color"])],8,["id","gradientTransform"])):(Object(j["openBlock"])(),Object(j["createBlock"])("radialGradient",{key:1,id:e.id},[Object(j["createVNode"])("stop",{offset:"0%","stop-color":e.color1},null,8,["stop-color"]),Object(j["createVNode"])("stop",{offset:"100%","stop-color":e.color2},null,8,["stop-color"])],8,["id"]))}var Gc=Object(j["defineComponent"])({name:"gradient-defs",props:{id:{type:String,required:!0},type:{type:String},color1:{type:String,required:!0},color2:{type:String,required:!0},rotate:{type:Number,default:0}}});Gc.render=Uc;var qc=Gc,Xc=Object(j["defineComponent"])({name:"editable-element-shape",components:{GradientDefs:qc},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},n=Object(j["computed"])((function(){return e.elementInfo.outline})),o=yo(n),c=o.outlineWidth,a=o.outlineStyle,r=o.outlineColor,l=Object(j["computed"])((function(){return e.elementInfo.shadow})),i=fo(l),u=i.shadowStyle,d=Object(j["computed"])((function(){return e.elementInfo.flipH})),s=Object(j["computed"])((function(){return e.elementInfo.flipV})),f=po(d,s),p=f.flipStyle;return{handleSelectElement:t,shadowStyle:u,outlineWidth:c,outlineStyle:a,outlineColor:r,flipStyle:p}}});n("cff1");Xc.render=zc,Xc.__scopeId="data-v-6ed7d252";var Wc=Xc,Yc=Object(j["withScopeId"])("data-v-1d4bfa98"),Zc=Yc((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("LinePointMarker"),l=Object(j["resolveComponent"])("SvgWrapper"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-shape",{lock:e.elementInfo.lock}],style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"}},[Object(j["createVNode"])("div",{class:"element-content",style:{filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):""}},[Object(j["createVNode"])(l,{overflow:"visible",width:e.svgWidth,height:e.svgHeight},{default:Yc((function(){return[Object(j["createVNode"])("defs",null,[e.elementInfo.points[0]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,id:e.elementInfo.id,position:"start",type:e.elementInfo.points[0],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0),e.elementInfo.points[1]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,id:e.elementInfo.id,position:"end",type:e.elementInfo.points[1],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0)]),Object(j["createVNode"])("path",{d:e.path,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.width,"stroke-dasharray":e.lineDashArray,fill:"none","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":"","marker-start":e.elementInfo.points[0]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[0],"-start)"):"","marker-end":e.elementInfo.points[1]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[1],"-end)"):""},null,8,["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"]),Object(j["withDirectives"])(Object(j["createVNode"])("path",{class:"line-path",d:e.path,stroke:"transparent","stroke-width":"20",fill:"none",onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t)})},null,40,["d"]),[[i,e.contextmenus]])]})),_:1},8,["width","height"])],4)],6)}));function Jc(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("marker",{id:"".concat(e.id,"-").concat(e.type,"-").concat(e.position),markerUnits:"userSpaceOnUse",orient:"auto",markerWidth:3*e.size,markerHeight:3*e.size,refX:1.5*e.size,refY:1.5*e.size},[Object(j["createVNode"])("path",{d:e.path,fill:e.color,transform:"scale(".concat(.3*e.size,", ").concat(.3*e.size,") rotate(").concat(e.rotate,", 5, 5)")},null,8,["d","fill","transform"])],8,["id","markerWidth","markerHeight","refX","refY"])}var Kc={dot:"m0 5a5 5 0 1 0 10 0a5 5 0 1 0 -10 0z",arrow:"M0,0 L10,5 0,10 Z"},Qc={"arrow-start":180,"arrow-end":0},$c=Object(j["defineComponent"])({name:"line-point-marker",props:{id:{type:String,required:!0},position:{type:String,required:!0},type:{type:String,required:!0},color:{type:String},baseSize:{type:Number,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return Kc[e.type]})),n=Object(j["computed"])((function(){return Qc["".concat(e.type,"-").concat(e.position)]||0})),o=Object(j["computed"])((function(){return e.baseSize<2?2:e.baseSize}));return{path:t,rotate:n,size:o}}});$c.render=Jc;var ea=$c,ta=Object(j["defineComponent"])({name:"editable-element-shape",components:{LinePointMarker:ea},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},n=Object(j["computed"])((function(){return e.elementInfo.shadow})),o=fo(n),c=o.shadowStyle,a=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return t<24?24:t})),r=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return t<24?24:t})),l=Object(j["computed"])((function(){return"dashed"===e.elementInfo.style?"10 6":"0 0"})),i=Object(j["computed"])((function(){return qe(e.elementInfo)}));return{handleSelectElement:t,shadowStyle:c,svgWidth:a,svgHeight:r,lineDashArray:l,path:i}}});n("0d71");ta.render=Zc,ta.__scopeId="data-v-1d4bfa98";var na=ta,oa=Object(j["withScopeId"])("data-v-d2dd6e5c"),ca=oa((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ElementOutline"),l=Object(j["resolveComponent"])("Chart"),i=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-chart",{lock:e.elementInfo.lock}],style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:"element-content",style:{backgroundColor:e.elementInfo.fill},onMousedown:t[1]||(t[1]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])(r,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])(l,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor},null,8,["width","height","type","data","options","themeColor","gridColor"])],36),[[i,e.contextmenus]])],6)})),aa=Object(j["withScopeId"])("data-v-af0af162");Object(j["pushScopeId"])("data-v-af0af162");var ra={class:"chart"};Object(j["popScopeId"])();var la=aa((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",ra,[Object(j["createVNode"])("div",{class:"chart-content",ref:"chartRef",style:{width:e.width+"px",height:e.height+"px",transform:"scale(".concat(1/e.slideScale,")")}},null,4)])})),ia=n("ba48"),ua=n.n(ia),da=(n("aa97"),Object(j["defineComponent"])({name:"chart",props:{width:{type:Number,required:!0},height:{type:Number,required:!0},type:{type:String,required:!0},data:{type:Object,required:!0},options:{type:Object},themeColor:{type:String,required:!0},gridColor:{type:String}},setup:function(e){var t,n=Object(j["ref"])(),o=Object(j["inject"])("slideScale")||Object(j["ref"])(1),c=function(){var t=e.options||{},n=Object(x["a"])(Object(x["a"])({},t),{},{width:e.width*o.value,height:e.height*o.value}),c="pie"===e.type?Object(x["a"])(Object(x["a"])({},e.data),{},{series:e.data.series[0]}):e.data;return{data:c,options:n}},a=function(){if(n.value){var o=Object(ne["upperFirst"])(e.type),a=c(),r=a.data,l=a.options;t=new ua.a[o](n.value,r,l)}},r=function(){if(t){var e=c(),n=e.data,o=e.options;t.update(n,o)}else a()};Object(j["watch"])([function(){return e.width},function(){return e.height},function(){return e.data},o],r),Object(j["onMounted"])(a);var l=function(){if(n.value)for(var t=Ae()(e.themeColor).analogous(10),o=0;o<10;o++){var c=t[o].toRgbString();n.value.style.setProperty("--theme-color-".concat(o+1),c)}};Object(j["watch"])((function(){return e.themeColor}),l),Object(j["onMounted"])(l);var i=function(){n.value&&e.gridColor&&n.value.style.setProperty("--grid-color",e.gridColor)};return Object(j["watch"])((function(){return e.gridColor}),i),Object(j["onMounted"])(i),{slideScale:o,chartRef:n}}}));n("f3cc"),n("3ebd");da.render=la,da.__scopeId="data-v-af0af162";var sa=da,fa=Object(j["defineComponent"])({name:"editable-element-chart",components:{ElementOutline:Ac,Chart:sa},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))};return{handleSelectElement:t}}});n("d32e");fa.render=ca,fa.__scopeId="data-v-d2dd6e5c";var pa=fa,ba=Object(j["withScopeId"])("data-v-10d814ca");Object(j["pushScopeId"])("data-v-10d814ca");var ma={class:"element-content"};Object(j["popScopeId"])();var va=ba((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("EditableTable"),l=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["editable-element-table",{lock:e.elementInfo.lock}],ref:"elementRef",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"}},[Object(j["withDirectives"])(Object(j["createVNode"])("div",ma,[Object(j["createVNode"])(r,{onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(){}),["stop"])),data:e.elementInfo.data,width:e.elementInfo.width,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme,editable:e.editable,onChange:t[2]||(t[2]=function(t){return e.updateTableCells(t)}),onChangeColWidths:t[3]||(t[3]=function(t){return e.updateColWidths(t)}),onChangeSelectedCells:t[4]||(t[4]=function(t){return e.updateSelectedCells(t)})},null,8,["data","width","colWidths","outline","theme","editable"]),!e.editable||e.elementInfo.lock?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:0,class:["table-mask",{lock:e.elementInfo.lock}],onDblclick:t[5]||(t[5]=function(t){return e.startEdit()}),onMousedown:t[6]||(t[6]=function(t){return e.handleSelectElement(t)})},[Object(j["createVNode"])("div",{class:"mask-tip",style:{transform:"scale(".concat(1/e.canvasScale,")")}},"双击编辑",4)],34)):Object(j["createCommentVNode"])("",!0)],512),[[l,e.contextmenus]])],6)})),Oa=Object(j["withScopeId"])("data-v-450db49f");Object(j["pushScopeId"])("data-v-450db49f");var ha={key:0,class:"handler"};Object(j["popScopeId"])();var ja=Oa((function(e,t,n,o,c,a){var r,l,i,u,d,s=Object(j["resolveComponent"])("CustomTextarea"),f=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"editable-table",style:{width:e.totalWidth+"px"}},[e.editable?(Object(j["openBlock"])(),Object(j["createBlock"])("div",ha,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.dragLinePosition,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"drag-line",key:n,style:{left:t+"px"},onMousedown:function(t){return e.handleMousedownColHandler(t,n)}},null,44,["onMousedown"])})),128))])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("table",{class:{theme:e.theme,"row-header":null===(r=e.theme)||void 0===r?void 0:r.rowHeader,"row-footer":null===(l=e.theme)||void 0===l?void 0:l.rowFooter,"col-header":null===(i=e.theme)||void 0===i?void 0:i.colHeader,"col-footer":null===(u=e.theme)||void 0===u?void 0:u.colFooter},style:"--themeColor: ".concat(null===(d=e.theme)||void 0===d?void 0:d.color,"; --subThemeColor1: ").concat(e.subThemeColor[0],"; --subThemeColor2: ").concat(e.subThemeColor[1])},[Object(j["createVNode"])("colgroup",null,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.colSizeList,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])("col",{span:"1",key:t,width:e},null,8,["width"])})),128))]),Object(j["createVNode"])("tbody",null,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.tableCells,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("tr",{key:n},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t,(function(t,o){return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("td",{class:["cell",{selected:e.selectedCells.includes("".concat(n,"_").concat(o))&&e.selectedCells.length>1,active:e.activedCell==="".concat(n,"_").concat(o)}],style:Object(x["a"])({borderStyle:e.outline.style,borderColor:e.outline.color,borderWidth:e.outline.width+"px"},e.getTextStyle(t.style)),key:t.id,rowspan:t.rowspan,colspan:t.colspan,"data-cell-index":"".concat(n,"_").concat(o),onMousedown:function(t){return e.handleCellMousedown(t,n,o)},onMouseenter:function(t){return e.handleCellMouseenter(n,o)}},[e.activedCell==="".concat(n,"_").concat(o)?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:0,class:["cell-text",{active:e.activedCell==="".concat(n,"_").concat(o)}],contenteditable:"plaintext-only",value:t.text,onUpdateValue:function(t){return e.handleInput(t,n,o)},onInsertExcelData:function(t){return e.insertExcelData(t,n,o)}},null,8,["class","value","onUpdateValue","onInsertExcelData"])):(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:1,class:"cell-text",innerHTML:e.formatText(t.text)},null,8,["innerHTML"]))],46,["rowspan","colspan","data-cell-index","onMousedown","onMouseenter"])),[[j["vShow"],!e.hideCells.includes("".concat(n,"_").concat(o))],[f,function(t){return e.contextmenus(t)}]])})),128))])})),128))])],6)],4)})),ga=function(e){if(!e)return{};var t=e.bold,n=e.em,o=e.underline,c=e.strikethrough,a=e.color,r=e.backcolor,l=e.fontsize,i=e.fontname,u=e.align,d="".concat(o?"underline":""," ").concat(c?"line-through":"");return" "===d&&(d="none"),{fontWeight:t?"bold":"normal",fontStyle:n?"italic":"normal",textDecoration:d,color:a||"#000",backgroundColor:r||"",fontSize:l||"14px",fontFamily:i||"微软雅黑",textAlign:u||"left"}},ya=function(e){return e.replace(/\n/g,"</br>").replace(/ /g,"&nbsp;")},ka=function(e){var t=Object(j["computed"])((function(){for(var t=[],n=0;n<e.value.length;n++)for(var o=e.value[n],c=0;c<o.length;c++){var a=o[c];if(a.colspan>1||a.rowspan>1)for(var r=n;r<n+a.rowspan;r++)for(var l=r===n?c+1:c;l<c+a.colspan;l++)t.push("".concat(r,"_").concat(l))}return t}));return{hideCells:t}},Ia=function(e){var t=Object(j["ref"])(["",""]);return Object(j["watch"])((function(){return e.value}),(function(){e.value&&(t.value=Ge(e.value.color))}),{immediate:!0}),{subThemeColor:t}},Ea=Object(j["withScopeId"])("data-v-0c8f5d18"),Ca=Ea((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"custom-textarea",ref:"textareaRef",contenteditable:e.contenteditable,onFocus:t[1]||(t[1]=function(){return e.handleFocus&&e.handleFocus.apply(e,arguments)}),onBlur:t[2]||(t[2]=function(){return e.handleBlur&&e.handleBlur.apply(e,arguments)}),onInput:t[3]||(t[3]=function(t){return e.handleInput(t)}),innerHTML:e.text},null,40,["contenteditable","innerHTML"])})),xa=Object(j["defineComponent"])({name:"custom-textarea",props:{value:{type:String,default:""},contenteditable:{type:[Boolean,String],default:!1}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),c=Object(j["ref"])(""),a=Object(j["ref"])(!1);Object(j["watch"])((function(){return e.value}),(function(){a.value||(c.value=e.value,o.value&&(o.value.innerHTML=e.value))}),{immediate:!0});var r=function(){if(o.value){var e=o.value.innerHTML;n("updateValue",e)}},l=function(){a.value=!0,o.value&&(o.value.onpaste=function(e){if(e.preventDefault(),e.clipboardData){var t=e.clipboardData.items[0];t&&"string"===t.kind&&"text/plain"===t.type&&t.getAsString((function(e){var t=Be(e);if("object"!==Object(Xe["a"])(t)){var c=De(e);if(c)return n("insertExcelData",c),void(o.value&&(o.value.innerHTML=c[0][0]));n("updateValue",e),document.execCommand("insertText",!1,e)}}))}})},i=function(){a.value=!1,o.value&&(o.value.onpaste=null)};return Object(j["onUnmounted"])((function(){o.value&&(o.value.onpaste=null)})),{textareaRef:o,handleFocus:l,handleInput:r,handleBlur:i,text:c}}});n("f33a");xa.render=Ca,xa.__scopeId="data-v-0c8f5d18";var Sa=xa,Na=Object(j["defineComponent"])({name:"editable-table",components:{CustomTextarea:Sa},props:{data:{type:Array,required:!0},width:{type:Number,required:!0},colWidths:{type:Array,required:!0},outline:{type:Object,required:!0},theme:{type:Object},editable:{type:Boolean,default:!0}},setup:function(e,t){var n=t.emit,o=ue(),c=Object(j["computed"])((function(){return o.state.canvasScale})),a=Object(j["ref"])(!1),r=Object(j["ref"])([]),l=Object(j["ref"])([]),i=Object(j["computed"])({get:function(){return e.data},set:function(e){n("change",e)}}),u=Object(j["computed"])((function(){return e.theme})),d=Ia(u),s=d.subThemeColor,f=Object(j["ref"])([]),p=Object(j["computed"])((function(){return f.value.reduce((function(e,t){return e+t}))}));Object(j["watch"])([function(){return e.colWidths},function(){return e.width}],(function(){f.value=e.colWidths.map((function(t){return t*e.width}))}),{immediate:!0});var b=function(){r.value=[],l.value=[]};Object(j["watch"])((function(){return e.editable}),(function(){e.editable||b()}));var m=Object(j["computed"])((function(){for(var e=[],t=1;t<f.value.length+1;t++){var n=f.value.slice(0,t).reduce((function(e,t){return e+t}));e.push(n)}return e})),v=Object(j["computed"])((function(){return e.data})),O=ka(v),h=O.hideCells,g=Object(j["computed"])((function(){if(!r.value.length)return[];var e=Object(qt["a"])(r.value,2),t=e[0],n=e[1];if(!l.value.length)return["".concat(t,"_").concat(n)];var o=Object(qt["a"])(l.value,2),c=o[0],a=o[1];if(t===c&&n===a)return["".concat(t,"_").concat(n)];for(var u=[],d=Math.min(t,c),s=Math.min(n,a),f=Math.max(t,c),p=Math.max(n,a),b=0;b<i.value.length;b++)for(var m=i.value[b],v=0;v<m.length;v++)b>=d&&b<=f&&v>=s&&v<=p&&u.push("".concat(b,"_").concat(v));return u}));Object(j["watch"])(g,(function(e,t){Object(ne["isEqual"])(e,t)||n("changeSelectedCells",g.value)}));var y=Object(j["computed"])((function(){return g.value.length>1?null:g.value[0]})),k=Object(j["computed"])((function(){if(!r.value.length)return null;var e=Object(qt["a"])(r.value,2),t=e[0],n=e[1];if(!l.value.length)return{row:[t,t],col:[n,n]};var o=Object(qt["a"])(l.value,2),c=o[0],a=o[1];if(t===c&&n===a)return{row:[t,t],col:[n,n]};var i=Math.min(t,c),u=Math.min(n,a),d=Math.max(t,c),s=Math.max(n,a);return{row:[i,d],col:[u,s]}})),I=function(){return a.value=!1},E=function(e,t,n){0===e.button&&(l.value=[],a.value=!0,r.value=[t,n])},C=function(e,t){a.value&&(l.value=[e,t])};Object(j["onMounted"])((function(){document.addEventListener("mouseup",I)})),Object(j["onUnmounted"])((function(){document.removeEventListener("mouseup",I)}));var x=function(e,t){return h.value.includes("".concat(e,"_").concat(t))},S=function(e){var t=i.value.length-1;r.value=[0,e],l.value=[t,e]},N=function(e){var t=i.value[e].length-1;r.value=[e,0],l.value=[e,t]},T=function(){var e=i.value.length-1,t=i.value[e].length-1;r.value=[0,0],l.value=[e,t]},w=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),n=i.value[e],o=[],c=0;c<n.length;c++)x(e,c)&&o.push(c);for(var a=0,r=o;a<r.length;a++)for(var l=r[a],u=e;u>=0;u--)if(!x(u,l)){t[u][l].rowspan=t[u][l].rowspan-1;break}t.splice(e,1),i.value=t},L=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),o=[],c=0;c<i.value.length;c++)x(c,e)&&o.push(c);for(var a=0,r=o;a<r.length;a++)for(var l=r[a],u=e;u>=0;u--)if(!x(l,u)){t[l][u].colspan=t[l][u].colspan-1;break}i.value=t.map((function(t){return t.splice(e,1),t})),f.value.splice(e,1),n("changeColWidths",f.value)},V=function(e){for(var t=JSON.parse(JSON.stringify(i.value)),n=[],o=0;o<t[0].length;o++)n.push({colspan:1,rowspan:1,text:"",id:Ie()});t.splice(e,0,n),i.value=t},_=function(e){i.value=i.value.map((function(t){var n={colspan:1,rowspan:1,text:"",id:Ie()};return t.splice(e,0,n),t})),f.value.splice(e,0,100),n("changeColWidths",f.value)},B=function(){var e=Object(qt["a"])(r.value,2),t=e[0],n=e[1],o=Object(qt["a"])(l.value,2),c=o[0],a=o[1],u=Math.min(t,c),d=Math.min(n,a),s=Math.max(t,c),f=Math.max(n,a),p=JSON.parse(JSON.stringify(i.value));p[u][d].rowspan=s-u+1,p[u][d].colspan=f-d+1,i.value=p,b()},D=function(e,t){var n=JSON.parse(JSON.stringify(i.value));n[e][t].rowspan=1,n[e][t].colspan=1,i.value=n,b()},M=function(e,t){b();var o=!0,a=f.value[t],r=e.pageX,l=50;document.onmousemove=function(e){if(o){var n=(e.pageX-r)/c.value,i=a+n<l?l:Math.round(a+n);f.value[t]=i}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null,n("changeColWidths",f.value)}},A=function(){for(var e=JSON.parse(JSON.stringify(i.value)),t=0;t<e.length;t++)for(var n=0;n<e[t].length;n++)g.value.includes("".concat(t,"_").concat(n))&&(e[t][n].text="");i.value=e},P=function(){var e=function e(t,n){return i.value[t]?i.value[t][n]?x(t,n)?e(t,n+1):[t,n]:e(t+1,0):null};l.value=[];var t=r.value[0],n=r.value[1]+1,o=e(t,n);o?r.value=o:(V(t+1),r.value=[t+1,0]),Object(j["nextTick"])((function(){var e=document.querySelector(".cell-text.active");e&&e.focus()}))},R=function(t){if(e.editable&&g.value.length){var n=t.key.toUpperCase();if(g.value.length<2){if(n===je.TAB&&(t.preventDefault(),P()),t.ctrlKey&&n===je.UP){t.preventDefault();var o=+g.value[0].split("_")[0];V(o)}if(t.ctrlKey&&n===je.DOWN){t.preventDefault();var c=+g.value[0].split("_")[0];V(c+1)}if(t.ctrlKey&&n===je.LEFT){t.preventDefault();var a=+g.value[0].split("_")[1];_(a)}if(t.ctrlKey&&n===je.RIGHT){t.preventDefault();var r=+g.value[0].split("_")[1];_(r+1)}}else n===je.DELETE&&A()}};Object(j["onMounted"])((function(){document.addEventListener("keydown",R)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",R)}));var F=Object(ne["debounce"])((function(e,t,o){i.value[t][o].text=e,n("change",i.value)}),300,{trailing:!0}),H=function(e,t,o){var c=e.length,a=e[0].length;t+c>i.value.length&&(c=i.value.length-t),o+a>i.value[0].length&&(a=i.value[0].length-o);for(var r=0;r<c;r++)for(var l=0;l<a;l++)i.value[t+r][o+l]&&(i.value[t+r][o+l].text=e[r][l]);n("change",i.value)},z=function(){for(var e=[],t=0;t<i.value.length;t++){for(var n=i.value[t],o=[],c=0;c<n.length;c++)x(t,c)||o.push(n[c]);o.length&&e.push(o)}return e},U=function(){var e=z(),t=e.length>1,n=e[0].length>1;return{canDeleteRow:t,canDeleteCol:n}},G=function(e,t){var n=g.value.length>1,o=i.value[e][t],c=n,a=!n&&(o.rowspan>1||o.colspan>1);return{canMerge:c,canSplit:a}},q=function(e){var t=e.dataset.cellIndex,n=+t.split("_")[0],o=+t.split("_")[1];g.value.includes("".concat(n,"_").concat(o))||(r.value=[n,o],l.value=[]);var c=G(n,o),a=c.canMerge,i=c.canSplit,u=U(),d=u.canDeleteRow,s=u.canDeleteCol;return[{text:"插入列",children:[{text:"到左侧",handler:function(){return _(o)}},{text:"到右侧",handler:function(){return _(o+1)}}]},{text:"插入行",children:[{text:"到上方",handler:function(){return V(n)}},{text:"到下方",handler:function(){return V(n+1)}}]},{text:"删除列",disable:!s,handler:function(){return L(o)}},{text:"删除行",disable:!d,handler:function(){return w(n)}},{divider:!0},{text:"合并单元格",disable:!a,handler:B},{text:"取消合并单元格",disable:!i,handler:function(){return D(n,o)}},{divider:!0},{text:"选中当前列",handler:function(){return S(o)}},{text:"选中当前行",handler:function(){return N(n)}},{text:"选中全部单元格",handler:T}]};return{getTextStyle:ga,dragLinePosition:m,tableCells:i,colSizeList:f,totalWidth:p,hideCells:h,selectedCells:g,activedCell:y,selectedRange:k,handleCellMousedown:E,handleCellMouseenter:C,selectCol:S,selectRow:N,handleMousedownColHandler:M,contextmenus:q,handleInput:F,insertExcelData:H,subThemeColor:s,formatText:ya}}});n("7197");Na.render=ja,Na.__scopeId="data-v-450db49f";var Ta=Na,wa=Object(j["defineComponent"])({name:"editable-element-table",components:{EditableTable:Ta},props:{elementInfo:{type:Object,required:!0},selectElement:{type:Function,required:!0},contextmenus:{type:Function}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return t.state.handleElementId})),c=Object(j["ref"])(),a=Ye(),r=a.addHistorySnapshot,l=function(t){e.elementInfo.lock||(t.stopPropagation(),e.selectElement(t,e.elementInfo))},i=Object(j["ref"])(!1);Object(j["watch"])(o,(function(){o.value!==e.elementInfo.id&&(i.value=!1)})),Object(j["watch"])(i,(function(){t.commit(y.SET_DISABLE_HOTKEYS_STATE,i.value)}));var u=function(){e.elementInfo.lock||(i.value=!0)},d=Object(j["ref"])(-1),s=Object(j["computed"])((function(){return t.state.isScaling}));Object(j["watch"])(s,(function(){o.value===e.elementInfo.id&&(s.value&&(i.value=!1),s.value||-1===d.value||(t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{height:d.value}}),d.value=-1))}));var f=function(n){var o=n[0].contentRect;if(c.value){var a=o.height;e.elementInfo.height!==a&&(s.value?d.value=a:t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{height:a}}))}},p=new ResizeObserver(f);Object(j["onMounted"])((function(){c.value&&p.observe(c.value)})),Object(j["onUnmounted"])((function(){c.value&&p.unobserve(c.value)}));var b=function(n){t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{data:n}}),r()},m=function(n){var o=n.reduce((function(e,t){return e+t})),c=n.map((function(e){return e/o}));t.commit(y.UPDATE_ELEMENT,{id:e.elementInfo.id,props:{width:o,colWidths:c}}),r()},v=function(e){Object(j["nextTick"])((function(){return t.commit(y.SET_SELECTED_TABLE_CELLS,e)}))};return{elementRef:c,canvasScale:n,handleSelectElement:l,updateTableCells:b,updateColWidths:m,editable:i,startEdit:u,updateSelectedCells:v}}});n("389d");wa.render=va,wa.__scopeId="data-v-10d814ca";var La=wa,Va=Object(j["defineComponent"])({name:"editable-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0},isMultiSelect:{type:Boolean,required:!0},selectElement:{type:Function,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t,n=(t={},Object(U["a"])(t,ao.IMAGE,Ho),Object(U["a"])(t,ao.TEXT,Rc),Object(U["a"])(t,ao.SHAPE,Wc),Object(U["a"])(t,ao.LINE,na),Object(U["a"])(t,ao.CHART,pa),Object(U["a"])(t,ao.TABLE,La),t);return n[e.elementInfo.type]||null})),n=lt(),o=n.orderElement,c=io(),a=c.alignElementToCanvas,r=ot(),l=r.combineElements,i=r.uncombineElements,u=nt(),d=u.deleteElement,s=tt(),f=s.lockElement,p=s.unlockElement,b=ct(),m=b.copyElement,v=b.pasteElement,O=b.cutElement,h=at(),g=h.selectAllElement,y=function(){return e.elementInfo.lock?[{text:"解锁",handler:function(){return p(e.elementInfo)}}]:[{text:"剪切",subText:"Ctrl + X",handler:O},{text:"复制",subText:"Ctrl + C",handler:m},{text:"粘贴",subText:"Ctrl + V",handler:v},{divider:!0},{text:"水平居中",handler:function(){return a(me.HORIZONTAL)},children:[{text:"水平垂直居中",handler:function(){return a(me.CENTER)}},{text:"水平居中",handler:function(){return a(me.HORIZONTAL)}},{text:"左对齐",handler:function(){return a(me.LEFT)}},{text:"右对齐",handler:function(){return a(me.RIGHT)}}]},{text:"垂直居中",handler:function(){return a(me.VERTICAL)},children:[{text:"水平垂直居中",handler:function(){return a(me.CENTER)}},{text:"垂直居中",handler:function(){return a(me.VERTICAL)}},{text:"顶部对齐",handler:function(){return a(me.TOP)}},{text:"底部对齐",handler:function(){return a(me.BOTTOM)}}]},{divider:!0},{text:"置于顶层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:function(){return o(e.elementInfo,be.TOP)},children:[{text:"置于顶层",handler:function(){return o(e.elementInfo,be.TOP)}},{text:"上移一层",handler:function(){return o(e.elementInfo,be.UP)}}]},{text:"置于底层",disable:e.isMultiSelect&&!e.elementInfo.groupId,handler:function(){return o(e.elementInfo,be.BOTTOM)},children:[{text:"置于底层",handler:function(){return o(e.elementInfo,be.BOTTOM)}},{text:"下移一层",handler:function(){return o(e.elementInfo,be.DOWN)}}]},{divider:!0},{text:"设置链接",handler:e.openLinkDialog},{text:e.elementInfo.groupId?"取消组合":"组合",subText:"Ctrl + G",handler:e.elementInfo.groupId?i:l,hide:!e.isMultiSelect},{text:"全选",subText:"Ctrl + A",handler:g},{text:"锁定",subText:"Ctrl + L",handler:f},{text:"删除",subText:"Delete",handler:d}]};return{currentElementComponent:t,contextmenus:y}}});Va.render=co;var _a=Va,Ba=Object(j["withScopeId"])("data-v-1619c258"),Da=Ba((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"mouse-selection quadrant-".concat(n.quadrant),style:{top:n.top+"px",left:n.left+"px",width:n.width+"px",height:n.height+"px"}},null,6)})),Ma={name:"mouse-selection",props:{top:{type:Number,required:!0},left:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0},quadrant:{type:Number,required:!0,validator:function(e){return[1,2,3,4].includes(e)}}}};n("2007");Ma.render=Da,Ma.__scopeId="data-v-1619c258";var Aa=Ma,Pa=Object(j["withScopeId"])("data-v-a9ca1b50"),Ra=Pa((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("GridLines");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"viewport-background",style:e.backgroundStyle},[e.showGridLines?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0})):Object(j["createCommentVNode"])("",!0)],4)})),Fa=Object(j["withScopeId"])("data-v-1d945f13"),Ha=Fa((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"grid-lines"},{default:Fa((function(){return[Object(j["createVNode"])("path",{style:{transform:"scale(".concat(e.canvasScale,")")},d:e.path,fill:"none",stroke:e.gridColor,"stroke-width":"0.3","stroke-dasharray":"5"},null,12,["d","stroke"])]})),_:1})})),za=Object(j["defineComponent"])({name:"grid-lines",setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.canvasScale})),n=Object(j["computed"])((function(){return e.state.viewportRatio})),o=Object(j["computed"])((function(){var t;return null===(t=e.getters.currentSlide)||void 0===t?void 0:t.background})),c=Object(j["computed"])((function(){var e,t=(null===(e=o.value)||void 0===e?void 0:e.color)||"#fff",n=["#000","#fff"];return Ae.a.mostReadable(t,n,{includeFallbackColors:!0}).setAlpha(.5).toRgbString()})),a=50,r=function(){for(var e=Ke,t=Ke*n.value,o="",c=0;c<=Math.floor(t/a);c++)o+="M0 ".concat(c*a," L").concat(e," ").concat(c*a," ");for(var r=0;r<=Math.floor(e/a);r++)o+="M".concat(r*a," 0 L").concat(r*a," ").concat(t," ");return o};return{canvasScale:t,gridColor:c,width:Ke,height:Ke*n.value,path:r()}}});n("f46c");za.render=Ha,za.__scopeId="data-v-1d945f13";var Ua=za,Ga=function(e){var t=Object(j["computed"])((function(){if(!e.value)return{backgroundColor:"#fff"};var t=e.value,n=t.type,o=t.color,c=t.image,a=t.imageSize,r=t.gradientColor,l=t.gradientRotate,i=t.gradientType;if("solid"===n)return{backgroundColor:o};if("image"===n)return c?"repeat"===a?{backgroundImage:"url(".concat(c),backgroundRepeat:"repeat",backgroundSize:"initial"}:{backgroundImage:"url(".concat(c),backgroundRepeat:"no-repeat",backgroundSize:a||"cover"}:{backgroundColor:"#fff"};if("gradient"===n){var u=l||0,d=r?r[0]:"#fff",s=r?r[1]:"#fff";return"radial"===i?{backgroundImage:"radial-gradient(".concat(d,", ").concat(s)}:{backgroundImage:"linear-gradient(".concat(u,"deg, ").concat(d,", ").concat(s)}}return{backgroundColor:"#fff"}}));return{backgroundStyle:t}},qa=Object(j["defineComponent"])({name:"viewport-background",components:{GridLines:Ua},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.showGridLines})),n=Object(j["computed"])((function(){var t;return null===(t=e.getters.currentSlide)||void 0===t?void 0:t.background})),o=Ga(n),c=o.backgroundStyle;return{showGridLines:t,backgroundStyle:c}}});n("f802");qa.render=Ra,qa.__scopeId="data-v-a9ca1b50";var Xa=qa,Wa=Object(j["withScopeId"])("data-v-2d3eddf5"),Ya=Wa((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"alignment-line",style:{left:e.left,top:e.top}},[Object(j["createVNode"])("div",{class:["line",e.type],style:e.sizeStyle},null,6)],4)})),Za=Object(j["defineComponent"])({name:"alignment-line",props:{type:{type:String,required:!0},axis:{type:Object,required:!0},length:{type:Number,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.axis.x*n.value+"px"})),c=Object(j["computed"])((function(){return e.axis.y*n.value+"px"})),a=Object(j["computed"])((function(){return"vertical"===e.type?{height:e.length*n.value+"px"}:{width:e.length*n.value+"px"}}));return{left:o,top:c,sizeStyle:a}}});n("92ad");Za.render=Ya,Za.__scopeId="data-v-2d3eddf5";var Ja=Za,Ka=Object(j["withScopeId"])("data-v-3c5b7aac"),Qa=Ka((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"element-create-selection",ref:"selectionRef",onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.createSelection(t)}),["stop"]))},[e.start&&e.end?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:0,class:["selection",e.creatingElement.type],style:e.position},["line"===e.creatingElement.type&&e.lineData?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,overflow:"visible",width:e.lineData.svgWidth,height:e.lineData.svgHeight},{default:Ka((function(){return[Object(j["createVNode"])("path",{d:e.lineData.path,stroke:"#d14424",fill:"none","stroke-width":"1","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":""},null,8,["d"])]})),_:1},8,["width","height"])):Object(j["createCommentVNode"])("",!0)],6)):Object(j["createCommentVNode"])("",!0)],544)})),$a=Object(j["defineComponent"])({name:"element-create-selection",setup:function(e,t){var n=t.emit,o=ue(),c=Object(j["computed"])((function(){return o.getters.ctrlOrShiftKeyActive})),a=Object(j["computed"])((function(){return o.state.creatingElement})),r=Object(j["ref"])(),l=Object(j["ref"])(),i=Object(j["ref"])(),u=Object(j["reactive"])({x:0,y:0});Object(j["onMounted"])((function(){if(i.value){var e=i.value.getBoundingClientRect(),t=e.x,n=e.y;u.x=t,u.y=n}}));var d=function(e){var t=!0,o=e.pageX,i=e.pageY;r.value=[o,i],document.onmousemove=function(e){if(a.value&&t){var n=e.pageX,r=e.pageY;if(c.value){var u=n-o,d=r-i,s=Math.abs(u),f=Math.abs(d);if("shape"===a.value.type){var p=d>0&&u<0||d<0&&u>0;s>f?r=p?i-u:i+u:n=p?o-d:o+d}else"line"===a.value.type&&(s>f?r=i:n=o)}l.value=[n,r]}},document.onmouseup=function(e){var c,u;document.onmousemove=null,document.onmouseup=null,t=!1;var d=e.pageX,s=e.pageY,f=30;if("line"===(null===(c=a.value)||void 0===c?void 0:c.type)&&(Math.abs(d-o)>=f||Math.abs(s-i)>=f))n("created",{start:r.value,end:l.value});else if("line"!==(null===(u=a.value)||void 0===u?void 0:u.type)&&Math.abs(d-o)>=f&&Math.abs(s-i)>=f)n("created",{start:r.value,end:l.value});else{var p=200,b=Math.min(d,o),m=Math.min(s,i),v=Math.max(d,o),O=Math.max(s,i),h=v-b>=f?v-b:p,j=O-m>=f?O-m:p;n("created",{start:[b,m],end:[b+h,m+j]})}}},s=Object(j["computed"])((function(){if(!r.value||!l.value)return null;if(!a.value||"line"!==a.value.type)return null;var e=Object(qt["a"])(r.value,2),t=e[0],n=e[1],o=Object(qt["a"])(l.value,2),c=o[0],i=o[1],u=Math.min(t,c),d=Math.max(t,c),s=Math.min(n,i),f=Math.max(n,i),p=d-u>=24?d-u:24,b=f-s>=24?f-s:24,m=t===u?0:d-u,v=n===s?0:f-s,O=c===u?0:d-u,h=i===s?0:f-s,j="M".concat(m,", ").concat(v," L").concat(O,", ").concat(h);return{svgWidth:p,svgHeight:b,startX:m,startY:v,endX:O,endY:h,path:j}})),f=Object(j["computed"])((function(){if(!r.value||!l.value)return{};var e=Object(qt["a"])(r.value,2),t=e[0],n=e[1],o=Object(qt["a"])(l.value,2),c=o[0],a=o[1],i=Math.min(t,c),d=Math.max(t,c),s=Math.min(n,a),f=Math.max(n,a),p=d-i,b=f-s;return{left:i-u.x+"px",top:s-u.y+"px",width:p+"px",height:b+"px"}}));return{selectionRef:i,start:r,end:l,creatingElement:a,createSelection:d,lineData:s,position:f}}});n("1949");$a.render=Qa,$a.__scopeId="data-v-3c5b7aac";var er=$a,tr=Object(j["withScopeId"])("data-v-4def6455"),nr=tr((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"multi-select-operate",style:{left:e.minX*e.canvasScale+"px",top:e.minY*e.canvasScale+"px"}},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.disableResize?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleMultiElement(n,{minX:e.minX,maxX:e.maxX,minY:e.minY,maxY:e.maxY},t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128))],4)})),or=function(e,t){var n=Object(j["computed"])((function(){return[{direction:Oe.LEFT_TOP,style:{}},{direction:Oe.TOP,style:{left:e.value/2+"px"}},{direction:Oe.RIGHT_TOP,style:{left:e.value+"px"}},{direction:Oe.LEFT,style:{top:t.value/2+"px"}},{direction:Oe.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}},{direction:Oe.LEFT_BOTTOM,style:{top:t.value+"px"}},{direction:Oe.BOTTOM,style:{left:e.value/2+"px",top:t.value+"px"}},{direction:Oe.RIGHT_BOTTOM,style:{left:e.value+"px",top:t.value+"px"}}]})),o=Object(j["computed"])((function(){return[{direction:Oe.LEFT,style:{top:t.value/2+"px"}},{direction:Oe.RIGHT,style:{left:e.value+"px",top:t.value/2+"px"}}]})),c=Object(j["computed"])((function(){return[{type:ve.T,style:{width:e.value+"px"}},{type:ve.B,style:{top:t.value+"px",width:e.value+"px"}},{type:ve.L,style:{height:t.value+"px"}},{type:ve.R,style:{left:e.value+"px",height:t.value+"px"}}]}));return{resizeHandlers:n,textElementResizeHandlers:o,borderLines:c}},cr=Object(j["withScopeId"])("data-v-680e5917"),ar=cr((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["resize-handler",e.rotateClassName,e.type]},null,2)})),rr=Object(j["defineComponent"])({name:"resize-handler",props:{type:{type:String,default:""},rotate:{type:Number,default:0}},setup:function(e){var t=Object(j["computed"])((function(){var t="rotate-",n=e.rotate;return n>-22.5&&n<=22.5?t+0:n>22.5&&n<=67.5?t+45:n>67.5&&n<=112.5?t+90:n>112.5&&n<=157.5?t+135:n>157.5||n<=-157.5?t+0:n>-157.5&&n<=-112.5?t+45:n>-112.5&&n<=-67.5?t+90:n>-67.5&&n<=-22.5?t+135:t+0}));return{rotateClassName:t}}});n("0606");rr.render=ar,rr.__scopeId="data-v-680e5917";var lr=rr,ir=Object(j["withScopeId"])("data-v-630e246b"),ur=ir((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["border-line",n.type,{wide:n.isWide}]},null,2)})),dr={name:"border-line",props:{type:{type:String,required:!0},isWide:{type:Boolean,default:!1}}};n("fb1d");dr.render=ur,dr.__scopeId="data-v-630e246b";var sr=dr,fr=Object(j["defineComponent"])({name:"multi-select-operate",components:{ResizeHandler:lr,BorderLine:sr},props:{elementList:{type:Array,required:!0},scaleMultiElement:{type:Function,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.activeElementIdList})),o=Object(j["computed"])((function(){return t.state.canvasScale})),c=Object(j["computed"])((function(){return e.elementList.filter((function(e){return n.value.includes(e.id)}))})),a=Object(j["reactive"])({minX:0,maxX:0,minY:0,maxY:0}),r=Object(j["computed"])((function(){return(a.maxX-a.minX)*o.value})),l=Object(j["computed"])((function(){return(a.maxY-a.minY)*o.value})),i=or(r,l),u=i.resizeHandlers,d=i.borderLines,s=function(){var e=He(c.value),t=e.minX,n=e.maxX,o=e.minY,r=e.maxY;a.minX=t,a.maxX=n,a.minY=o,a.maxY=r};Object(j["watchEffect"])(s);var f=Object(j["computed"])((function(){return c.value.some((function(e){return!!("image"!==e.type&&"shape"!==e.type||e.rotate)}))}));return Object(x["a"])(Object(x["a"])({},Object(j["toRefs"])(a)),{},{canvasScale:o,borderLines:d,disableResize:f,resizeHandlers:u})}});n("de7c");fr.render=nr,fr.__scopeId="data-v-4def6455";var pr=fr,br=Object(j["withScopeId"])("data-v-46d959c4");Object(j["pushScopeId"])("data-v-46d959c4");var mr={key:1,class:"animation-index"};Object(j["popScopeId"])();var vr=br((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("LinkHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["operate",{"multi-select":e.isMultiSelect&&!e.isActive}],style:{top:e.elementInfo.top*e.canvasScale+"px",left:e.elementInfo.left*e.canvasScale+"px",transform:"rotate(".concat(e.elementInfo.rotate,"deg)"),transformOrigin:"".concat(e.elementInfo.width*e.canvasScale/2,"px ").concat(e.elementInfo.height*e.canvasScale/2,"px")}},[e.isSelected?(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentOperateComponent),{key:0,elementInfo:e.elementInfo,isActiveGroupElement:e.isActiveGroupElement,isMultiSelect:e.isMultiSelect,rotateElement:e.rotateElement,scaleElement:e.scaleElement,dragLineElement:e.dragLineElement},null,8,["elementInfo","isActiveGroupElement","isMultiSelect","rotateElement","scaleElement","dragLineElement"])):Object(j["createCommentVNode"])("",!0),"elAnimation"===e.toolbarState&&-1!==e.elementIndexInAnimation?(Object(j["openBlock"])(),Object(j["createBlock"])("div",mr,Object(j["toDisplayString"])(e.elementIndexInAnimation+1),1)):Object(j["createCommentVNode"])("",!0),e.isActive&&e.elementInfo.link?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:2,elementInfo:e.elementInfo,openLinkDialog:e.openLinkDialog,onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(){}),["stop"]))},null,8,["elementInfo","openLinkDialog"])):Object(j["createCommentVNode"])("",!0)],6)})),Or=Object(j["withScopeId"])("data-v-7dc35c8e"),hr=Or((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["image-element-operate",{cliping:e.isCliping}]},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:{left:e.scaleWidth/2+"px"},onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64))],2)})),jr=Object(j["withScopeId"])("data-v-9a549510");Object(j["pushScopeId"])("data-v-9a549510");var gr={class:"rotate-handler"};Object(j["popScopeId"])();var yr=jr((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",gr)})),kr={name:"rotate-handler"};n("8754");kr.render=yr,kr.__scopeId="data-v-9a549510";var Ir=kr,Er=Object(j["defineComponent"])({name:"image-element-operate",inheritAttrs:!1,components:{RotateHandler:Ir,ResizeHandler:lr,BorderLine:sr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return t.state.clipingImageElementId})),c=Object(j["computed"])((function(){return o.value===e.elementInfo.id})),a=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),r=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),l=or(a,r),i=l.resizeHandlers,u=l.borderLines;return{isCliping:c,scaleWidth:a,resizeHandlers:i,borderLines:u}}});n("dc02");Er.render=hr,Er.__scopeId="data-v-7dc35c8e";var Cr=Er,xr={class:"text-element-operate"};function Sr(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",xr,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.textElementResizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:{left:e.scaleWidth/2+"px"},onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64))])}var Nr=Object(j["defineComponent"])({name:"text-element-operate",inheritAttrs:!1,components:{RotateHandler:Ir,ResizeHandler:lr,BorderLine:sr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),c=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),a=or(o,c),r=a.textElementResizeHandlers,l=a.borderLines;return{scaleWidth:o,textElementResizeHandlers:r,borderLines:l}}});Nr.render=Sr;var Tr=Nr,wr={class:"shape-element-operate"};function Lr(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler"),i=Object(j["resolveComponent"])("RotateHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",wr,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,rotate:e.elementInfo.rotate,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","rotate","style","onMousedown"])})),128)),Object(j["createVNode"])(i,{class:"operate-rotate-handler",style:{left:e.scaleWidth/2+"px"},onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.rotateElement(e.elementInfo)}),["stop"]))},null,8,["style"])],64))])}var Vr=Object(j["defineComponent"])({name:"shape-element-operate",inheritAttrs:!1,components:{RotateHandler:Ir,ResizeHandler:lr,BorderLine:sr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),c=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),a=or(o,c),r=a.resizeHandlers,l=a.borderLines;return{scaleWidth:o,resizeHandlers:r,borderLines:l}}});Vr.render=Lr;var _r=Vr,Br={class:"text-element-operate"};function Dr(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Br,[e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.dragLineElement(n,e.elementInfo,t.handler)}),["stop"])},null,8,["type","style","onMousedown"])})),128))])}var Mr=Object(j["defineComponent"])({name:"text-element-operate",inheritAttrs:!1,components:{ResizeHandler:lr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},dragLineElement:{type:Function,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){var t=[{handler:he.START,style:{left:e.elementInfo.start[0]*n.value+"px",top:e.elementInfo.start[1]*n.value+"px"}},{handler:he.END,style:{left:e.elementInfo.end[0]*n.value+"px",top:e.elementInfo.end[1]*n.value+"px"}}];if(e.elementInfo.curve||e.elementInfo.broken){var o=e.elementInfo.curve||e.elementInfo.broken;t.push({handler:he.MID,style:{left:o[0]*n.value+"px",top:o[1]*n.value+"px"}})}return t}));return{resizeHandlers:o}}});Mr.render=Dr;var Ar=Mr,Pr={class:"chart-element-operate"};function Rr(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Pr,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.resizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128))])}var Fr=Object(j["defineComponent"])({name:"chart-element-operate",inheritAttrs:!1,components:{ResizeHandler:lr,BorderLine:sr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.elementInfo.width*n.value})),c=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),a=or(o,c),r=a.resizeHandlers,l=a.borderLines;return{scaleWidth:o,resizeHandlers:r,borderLines:l}}});Fr.render=Rr;var Hr=Fr,zr={class:"table-element-operate"};function Ur(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("BorderLine"),l=Object(j["resolveComponent"])("ResizeHandler");return Object(j["openBlock"])(),Object(j["createBlock"])("div",zr,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.borderLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{class:"operate-border-line",key:e.type,type:e.type,style:e.style},null,8,["type","style"])})),128)),e.elementInfo.lock||!e.isActiveGroupElement&&e.isMultiSelect?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],{key:0},Object(j["renderList"])(e.textElementResizeHandlers,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"operate-resize-handler",key:t.direction,type:t.direction,style:t.style,onMousedown:Object(j["withModifiers"])((function(n){return e.scaleElement(n,e.elementInfo,t.direction)}),["stop"])},null,8,["type","style","onMousedown"])})),128))])}var Gr=Object(j["defineComponent"])({name:"table-element-operate",inheritAttrs:!1,components:{ResizeHandler:lr,BorderLine:sr},props:{elementInfo:{type:Object,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},scaleElement:{type:Function,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return e.elementInfo.outline.width||1})),c=Object(j["computed"])((function(){return(e.elementInfo.width+o.value)*n.value})),a=Object(j["computed"])((function(){return e.elementInfo.height*n.value})),r=or(c,a),l=r.textElementResizeHandlers,i=r.borderLines;return{scaleWidth:c,textElementResizeHandlers:l,borderLines:i}}});Gr.render=Ur;var qr=Gr,Xr=Object(j["withScopeId"])("data-v-331b98de");Object(j["pushScopeId"])("data-v-331b98de");var Wr={class:"link-handler"},Yr={class:"btns"};Object(j["popScopeId"])();var Zr=Xr((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Divider");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Wr,[Object(j["createVNode"])("a",{class:"link",href:e.elementInfo.link,target:"_blank"},Object(j["toDisplayString"])(e.elementInfo.link),9,["href"]),Object(j["createVNode"])("div",Yr,[Object(j["createVNode"])("div",{class:"btn",onClick:t[1]||(t[1]=function(t){return e.openLinkDialog()})},"更换"),Object(j["createVNode"])(r,{type:"vertical"}),Object(j["createVNode"])("div",{class:"btn",onClick:t[2]||(t[2]=function(t){return e.removeLink(e.elementInfo)})},"移除")])])})),Jr=function(){var e=ue(),t=Ye(),n=t.addHistorySnapshot,o=function(t,o){var c=/^(https?):\/\/[\w\-]+(\.[\w\-]+)+([\w\-.,@?^=%&:\/~+#]*[\w\-@?^=%&\/~+#])?$/;if(!o||!c.test(o))return ke["a"].error("不是正确的网页链接地址"),!1;var a={link:o};return e.commit(y.UPDATE_ELEMENT,{id:t.id,props:a}),n(),!0},c=function(t){e.commit(y.REMOVE_ELEMENT_PROPS,{id:t.id,propName:"link"}),n()};return{setLink:o,removeLink:c}},Kr=Object(j["defineComponent"])({name:"link-handler",props:{elementInfo:{type:Object,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(){var e=Jr(),t=e.removeLink;return{removeLink:t}}});n("9c47");Kr.render=Zr,Kr.__scopeId="data-v-331b98de";var Qr=Kr,$r=Object(j["defineComponent"])({name:"operate",components:{LinkHandler:Qr},props:{elementInfo:{type:Object,required:!0},isSelected:{type:Boolean,required:!0},isActive:{type:Boolean,required:!0},isActiveGroupElement:{type:Boolean,required:!0},isMultiSelect:{type:Boolean,required:!0},rotateElement:{type:Function,required:!0},scaleElement:{type:Function,required:!0},dragLineElement:{type:Function,required:!0},openLinkDialog:{type:Function,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.canvasScale})),o=Object(j["computed"])((function(){return t.state.toolbarState})),c=Object(j["computed"])((function(){return t.getters.currentSlide})),a=Object(j["computed"])((function(){var t,n=(t={},Object(U["a"])(t,ao.IMAGE,Cr),Object(U["a"])(t,ao.TEXT,Tr),Object(U["a"])(t,ao.SHAPE,_r),Object(U["a"])(t,ao.LINE,Ar),Object(U["a"])(t,ao.CHART,Hr),Object(U["a"])(t,ao.TABLE,qr),t);return n[e.elementInfo.type]||null})),r=Object(j["computed"])((function(){var t=c.value.animations||[];return t.findIndex((function(t){return t.elId===e.elementInfo.id}))}));return{currentOperateComponent:a,canvasScale:n,toolbarState:o,elementIndexInAnimation:r}}});n("86da");$r.render=vr,$r.__scopeId="data-v-46d959c4";var el=$r,tl=Object(j["withScopeId"])("data-v-7ea25d33");Object(j["pushScopeId"])("data-v-7ea25d33");var nl={class:"link-dialog"},ol={class:"btns"},cl=Object(j["createTextVNode"])("取消"),al=Object(j["createTextVNode"])("确认");Object(j["popScopeId"])();var rl=tl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Input"),l=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])("div",nl,[Object(j["createVNode"])(r,{value:e.link,"onUpdate:value":t[1]||(t[1]=function(t){return e.link=t}),placeholder:"请输入网页链接地址"},null,8,["value"]),Object(j["createVNode"])("div",ol,[Object(j["createVNode"])(l,{onClick:t[2]||(t[2]=function(t){return e.close()}),style:{"margin-right":"10px"}},{default:tl((function(){return[cl]})),_:1}),Object(j["createVNode"])(l,{type:"primary",onClick:t[3]||(t[3]=function(t){return e.save()})},{default:tl((function(){return[al]})),_:1})])])})),ll=Object(j["defineComponent"])({name:"link-dialog",setup:function(e,t){var n=t.emit,o=ue(),c=Object(j["computed"])((function(){return o.getters.handleElement})),a=Object(j["ref"])(""),r=Jr(),l=r.setLink;Object(j["onMounted"])((function(){var e;null!==(e=c.value)&&void 0!==e&&e.link&&(a.value=c.value.link)}));var i=function(){return n("close")},u=function(){if(c.value){var e=l(c.value,a.value);e?i():a.value=""}};return{link:a,close:i,save:u}}});n("1894");ll.render=rl,ll.__scopeId="data-v-7ea25d33";var il=ll,ul=Object(j["defineComponent"])({name:"editor-canvas",components:{EditableElement:_a,MouseSelection:Aa,ViewportBackground:Xa,AlignmentLine:Ja,ElementCreateSelection:er,MultiSelectOperate:pr,Operate:el,LinkDialog:il},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.state.handleElementId})),o=Object(j["computed"])((function(){return e.state.activeGroupElementId})),c=Object(j["computed"])((function(){return e.state.editorAreaFocus})),a=Object(j["computed"])((function(){return e.state.ctrlKeyState})),r=Object(j["computed"])((function(){return e.getters.ctrlOrShiftKeyActive})),l=Object(j["ref"])(),i=Object(j["ref"])([]),u=Object(j["ref"])(!1),d=function(){return u.value=!0};Object(j["watch"])(n,(function(){e.commit(y.SET_ACTIVE_GROUP_ELEMENT_ID,"")}));var s=Object(j["computed"])((function(){return e.getters.currentSlide})),f=Object(j["ref"])([]),p=function(){f.value=s.value?JSON.parse(JSON.stringify(s.value.elements)):[]};Object(j["watchEffect"])(p);var b=Object(j["ref"])(),m=Object(j["computed"])((function(){return e.state.canvasScale})),v=Gn(b),O=v.viewportStyles;Xn(b);var h=qn(f,l),g=h.mouseSelectionState,k=h.updateMouseSelection,I=to(f,i),E=I.dragElement,C=no(f),x=C.dragLineElement,S=eo(f,E),N=S.selectElement,T=$n(f,i),w=T.scaleElement,L=T.scaleMultiElement,V=Yn(f,l),_=V.rotateElement,B=at(),D=B.selectAllElement,M=nt(),A=M.deleteAllElements,P=ct(),R=P.pasteElement,F=st(),H=F.enterScreening,z=et(),U=z.updateSlideIndex,G=function(t){e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),r.value||k(t),c.value||e.commit(y.SET_EDITORAREA_FOCUS,!0),Un()},q=function(){c.value&&e.commit(y.SET_EDITORAREA_FOCUS,!1)},X=ft(),W=X.scaleCanvas,Y=Object(ne["throttle"])(W,100,{leading:!0,trailing:!1}),Z=Object(ne["throttle"])(U,300,{leading:!0,trailing:!1}),J=function(e){e.preventDefault(),a.value?e.deltaY>0?Y("-"):e.deltaY<0&&Y("+"):e.deltaY>0?Z(je.DOWN):e.deltaY<0&&Z(je.UP)},K=Object(j["computed"])((function(){return e.state.showGridLines})),Q=function(){e.commit(y.SET_GRID_LINES_STATE,!K.value)},$=Object(j["computed"])((function(){return e.state.creatingElement})),ee=oo(l),te=ee.insertElementFromCreateSelection,oe=function(){return[{text:"粘贴",subText:"Ctrl + V",handler:R},{text:"全选",subText:"Ctrl + A",handler:D},{text:"网格线",subText:K.value?"√":"",handler:Q},{text:"重置当前页",handler:A},{divider:!0},{text:"从当前页演示",subText:"Ctrl+F",handler:H}]};return Object(j["provide"])("slideScale",m),{elementList:f,activeElementIdList:t,handleElementId:n,activeGroupElementId:o,canvasRef:b,viewportRef:l,viewportStyles:O,canvasScale:m,mouseSelectionState:g,currentSlide:s,creatingElement:$,alignmentLines:i,linkDialogVisible:u,openLinkDialog:d,handleClickBlankArea:G,removeEditorAreaFocus:q,insertElementFromCreateSelection:te,selectElement:N,rotateElement:_,scaleElement:w,dragLineElement:x,scaleMultiElement:L,handleMousewheelCanvas:J,contextmenus:oe}}});n("6609");ul.render=zn,ul.__scopeId="data-v-4edd93c1";var dl=ul,sl=Object(j["withScopeId"])("data-v-59ae6536");Object(j["pushScopeId"])("data-v-59ae6536");var fl={class:"canvas-tool"},pl={class:"left-handler"},bl={class:"add-element-handler"},ml={class:"right-handler"},vl={class:"text"};Object(j["popScopeId"])();var Ol=sl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconBack"),l=Object(j["resolveComponent"])("Tooltip"),i=Object(j["resolveComponent"])("IconNext"),u=Object(j["resolveComponent"])("IconFontSize"),d=Object(j["resolveComponent"])("IconPicture"),s=Object(j["resolveComponent"])("FileInput"),f=Object(j["resolveComponent"])("ShapePool"),p=Object(j["resolveComponent"])("IconGraphicDesign"),b=Object(j["resolveComponent"])("Popover"),m=Object(j["resolveComponent"])("LinePool"),v=Object(j["resolveComponent"])("IconConnection"),O=Object(j["resolveComponent"])("ChartPool"),h=Object(j["resolveComponent"])("IconChartProportion"),g=Object(j["resolveComponent"])("TableGenerator"),y=Object(j["resolveComponent"])("IconInsertTable"),k=Object(j["resolveComponent"])("IconMinus"),I=Object(j["resolveComponent"])("IconPlus"),E=Object(j["resolveComponent"])("IconFullScreen");return Object(j["openBlock"])(),Object(j["createBlock"])("div",fl,[Object(j["createVNode"])("div",pl,[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"撤销"},{default:sl((function(){return[Object(j["createVNode"])(r,{class:["handler-item",{disable:!e.canUndo}],onClick:t[1]||(t[1]=function(t){return e.undo()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"重做"},{default:sl((function(){return[Object(j["createVNode"])(i,{class:["handler-item",{disable:!e.canRedo}],onClick:t[2]||(t[2]=function(t){return e.redo()})},null,8,["class"])]})),_:1},8,["mouseEnterDelay"])]),Object(j["createVNode"])("div",bl,[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入文字"},{default:sl((function(){return[Object(j["createVNode"])(u,{class:"handler-item",onClick:t[3]||(t[3]=function(t){return e.drawText()})})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(s,{onChange:t[4]||(t[4]=function(t){return e.insertImageElement(t)})},{default:sl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图片"},{default:sl((function(){return[Object(j["createVNode"])(d,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(b,{trigger:"click",visible:e.shapePoolVisible,"onUpdate:visible":t[6]||(t[6]=function(t){return e.shapePoolVisible=t})},{content:sl((function(){return[Object(j["createVNode"])(f,{onSelect:t[5]||(t[5]=function(t){return e.drawShape(t)})})]})),default:sl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入形状"},{default:sl((function(){return[Object(j["createVNode"])(p,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(b,{trigger:"click",visible:e.linePoolVisible,"onUpdate:visible":t[8]||(t[8]=function(t){return e.linePoolVisible=t})},{content:sl((function(){return[Object(j["createVNode"])(m,{onSelect:t[7]||(t[7]=function(t){return e.drawLine(t)})})]})),default:sl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入线条"},{default:sl((function(){return[Object(j["createVNode"])(v,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(b,{trigger:"click",visible:e.chartPoolVisible,"onUpdate:visible":t[10]||(t[10]=function(t){return e.chartPoolVisible=t})},{content:sl((function(){return[Object(j["createVNode"])(O,{onSelect:t[9]||(t[9]=function(t){e.createChartElement(t),e.chartPoolVisible=!1})})]})),default:sl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入图表"},{default:sl((function(){return[Object(j["createVNode"])(h,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"]),Object(j["createVNode"])(b,{trigger:"click",visible:e.tableGeneratorVisible,"onUpdate:visible":t[13]||(t[13]=function(t){return e.tableGeneratorVisible=t})},{content:sl((function(){return[Object(j["createVNode"])(g,{onClose:t[11]||(t[11]=function(t){return e.tableGeneratorVisible=!1}),onInsert:t[12]||(t[12]=function(t){var n=t.row,o=t.col;e.createTableElement(n,o),e.tableGeneratorVisible=!1})})]})),default:sl((function(){return[Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"插入表格"},{default:sl((function(){return[Object(j["createVNode"])(y,{class:"handler-item"})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["visible"])]),Object(j["createVNode"])("div",ml,[Object(j["createVNode"])(k,{class:"handler-item viewport-size",onClick:t[14]||(t[14]=function(t){return e.scaleCanvas("-")})}),Object(j["createVNode"])("span",vl,Object(j["toDisplayString"])(e.canvasScalePercentage),1),Object(j["createVNode"])(I,{class:"handler-item viewport-size",onClick:t[15]||(t[15]=function(t){return e.scaleCanvas("+")})}),Object(j["createVNode"])(l,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"适配屏幕"},{default:sl((function(){return[Object(j["createVNode"])(E,{class:"handler-item viewport-size-adaptation",onClick:t[16]||(t[16]=function(t){return e.setCanvasPercentage(90)})})]})),_:1},8,["mouseEnterDelay"])])])})),hl=Object(j["withScopeId"])("data-v-588e8eb6");Object(j["pushScopeId"])("data-v-588e8eb6");var jl={class:"shape-pool"},gl={class:"category-name"},yl={class:"shape-list"};Object(j["popScopeId"])();var kl=hl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])("div",jl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.shapeList,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"category",key:t.type},[Object(j["createVNode"])("div",gl,Object(j["toDisplayString"])(t.type),1),Object(j["createVNode"])("div",yl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t.children,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"shape-item",key:n},[Object(j["createVNode"])("div",{class:"shape-content",onClick:function(n){return e.selectShape(t)}},[Object(j["createVNode"])(r,{overflow:"visible",width:"18",height:"18"},{default:hl((function(){return[Object(j["createVNode"])("g",{transform:"scale(".concat(18/t.viewBox,", ").concat(18/t.viewBox,") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createVNode"])("path",{class:"shape-path","vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",fill:"transparent",stroke:"#999","stroke-width":"2",d:t.path},null,8,["d"])],8,["transform"])]})),_:2},1024)],8,["onClick"])])})),128))])])})),128))])})),Il=[{type:"矩形",children:[{viewBox:200,path:"M 0 0 L 200 0 L 200 200 L 0 200 Z"},{viewBox:200,path:"M 20 0 L 180 0 Q 200 0 200 20 L 200 180 Q 200 200 180 200 L 20 200 Q 0 200 0 180 L 0 20 Q 0 0 20 0 Z"},{viewBox:200,path:"M 0 150 L 0 0 L 150 0 L 200 50 L 200 200 L 50 200 L 0 150 Z"},{viewBox:200,path:"M 0 200 L 0 0 L 150 0 L 200 50 L 200 200 L 0 200"},{viewBox:200,path:"M 0 50 L 50 0 L 150 0 L 200 50 L 200 200 L 0 200 L 0 50 Z"},{viewBox:200,path:"M 0 0 L 140 0 Q 200 0 200 60 L 200 200 L 60 200 Q 0 200 0 140 L 0 0 Z"},{viewBox:200,path:"M 0 0 L 140 0 Q 200 0 200 60 L 200 200 L 0 200 L 0 0 Z"},{viewBox:200,path:"M 0 50 Q 0 0 50 0 L 150 0 Q 200 0 200 50 L 200 200 L 0 200 L 0 50 Z"}]},{type:"常用形状",children:[{viewBox:200,path:"M 100 0 A 50 50 0 1 1 100 200 A 50 50 0 1 1 100 0 Z"},{viewBox:200,path:"M 0 200 A 50 100 0 1 1 200 200 L 0 200 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 100 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 A 100 100 102 1 0 200 100 L 200 0 L 100 0 Z"},{viewBox:200,path:"M 0 0 L 200 0 Q 200 200 0 200 L 0 0 Z"},{viewBox:200,path:"M 100 0 L 0 200 L 200 200 L 100 0 Z"},{viewBox:200,path:"M 0 0 L 0 200 L 200 200 Z"},{viewBox:200,path:"M 50 0 L 200 0 L 150 200 L 0 200 L 50 0 Z"},{viewBox:200,path:"M 0 0 L 150 0 L 200 200 L 50 200 L 0 0 Z"},{viewBox:200,path:"M 50 0 L 150 0 L 200 200 L 0 200 L 50 0 Z"},{viewBox:200,path:"M 100 0 L 0 100 L 100 200 L 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 0 L 0 90 L 50 200 L 150 200 L 200 90 L 100 0 Z"},{viewBox:200,path:"M 100 0 L 0 60 L 0 140 L 100 200 L 200 140 L 200 60 L 100 0 Z"},{viewBox:200,path:"M 60 0 L 140 0 L 200 60 L 200 140 L 140 200 L 60 200 L 0 140 L 0 60 L 60 0 Z"},{viewBox:200,path:"M 75 0 L 125 0 L 175 25 L 200 75 L 200 125 L 175 175 L 125 200 L 75 200 L 25 175 L 0 125 L 0 75 L 25 25 L 75 0 Z"},{viewBox:200,path:"M 100 0 L 0 50 L 0 200 L 200 200 L 200 50 L 100 0 Z"},{viewBox:200,path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 L 0 0 L 150 0 Z"},{viewBox:200,path:"M 150 0 A 50 100 0 1 1 150 200 L 0 200 A 50 100 0 0 0 0 0 L 150 0 Z"},{viewBox:200,path:"M 200 100 L 150 0 L 0 0 L 50 100 L 0 200 L 150 200 L 200 100 Z"},{viewBox:200,path:"M 200 0 L 200 200 L 0 200 L 0 100 L 200 0 Z"},{viewBox:200,path:"M 0 0 L 200 100 L 200 200 L 0 200 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 100 0 L 0 100 L 0 200 L 200 0 Z"},{viewBox:200,path:"M 50 0 L 150 0 L 150 50 L 200 50 L 200 150 L 150 150 L 150 200 L 50 200 L 50 150 L 0 150 L 0 50 L 50 50 L 50 0 Z"},{viewBox:200,path:"M 0 0 L 0 200 L 200 200 L 200 140 L 60 140 L 60 0 L 0 0 Z"},{viewBox:200,path:"M0 0 L200 0 L200 200 L0 200 L0 0 Z M50 50 L50 150 L150 150 L150 50 Z"},{viewBox:200,path:"M0 100 A100 100 0 1 1 0 101 Z M150 100 A50 50 0 1 0 150 101 Z"},{viewBox:200,path:"M 70 0 L 70 70 L 0 70 L 0 130 L 70 130 L 70 200 L 130 200 L 130 130 L 200 130 L 200 70 L 130 70 L 130 0 L 70 0 Z"},{viewBox:200,path:"M 40 0 L 0 40 L 60 100 L 0 160 L 40 200 L 100 140 L 160 200 L 200 160 L 140 100 L 200 40 L 160 0 L 100 60 L 40 0 Z"},{viewBox:200,path:"M 0 0 L 200 0 L 200 160 L 100 160 L 60 200 L 60 160 L 0 160 L 0 0 Z"},{viewBox:200,path:"M 0 40 Q 0 0 40 0 L 160 0 Q 200 0 200 40 L 200 120 Q 200 160 160 160 L 100 160 L 60 200 L 60 160 L 40 160 Q 0 160 0 120 L 0 40 Z"},{viewBox:200,path:"M 180 160 A 100 100 0 1 0 100 200 L 200 200 L 200 160 L 180 160 Z"},{viewBox:200,path:"M 200 0 L 0 0 L 200 200 L 0 200 L 200 0 Z"},{viewBox:200,path:"M 0 20 C 60 60 140 -40 200 20 L 200 180 C 140 140 60 240 0 180 L 0 20 Z"},{viewBox:200,path:"M 0 20 C 40 -40 60 60 100 20 C 140 -40 160 60 200 20 L 200 180 C 140 240 160 140 100 180 C 40 240 60 140 0 180 L 0 20 Z"}]},{type:"箭头",children:[{viewBox:200,path:"M 100 0 L 0 100 L 50 100 L 50 200 L 150 200 L 150 100 L 200 100 L 100 0 Z"},{viewBox:200,path:"M 100 200 L 200 100 L 150 100 L 150 0 L 50 0 L 50 100 L 0 100 L 100 200 Z"},{viewBox:200,path:"M 0 100 L 100 0 L 100 50 L 200 50 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 100 0 L 100 50 L 0 50 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:200,path:"M 100 0 L 0 60 L 60 60 L 60 140 L 0 140 L 100 200 L 200 140 L 140 140 L 140 60 L 200 60 L 100 0 Z"},{viewBox:200,path:"M 0 100 L 60 0 L 60 60 L 140 60 L 140 0 L 200 100 L 140 200 L 140 140 L 60 140 L 60 200 L 0 100 Z"},{viewBox:200,path:"M 100 0 L 60 40 L 80 40 L 80 80 L 40 80 L 40 60 L 0 100 L 40 140 L 40 120 L 80 120 L 80 160 L 60 160 L 100 200 L 140 160 L 120 160 L 120 120 L 160 120 L 160 140 L 200 100 L 160 60 L 160 80 L 120 80 L 120 40 L 140 40 L 100 0 Z"},{viewBox:200,path:"M 0 100 L 100 0 L 100 50 L 200 50 L 150 100 L 200 150 L 100 150 L 100 200 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 100 0 L 100 50 L 0 50 L 50 100 L 0 150 L 100 150 L 100 200 L 200 100 Z"},{viewBox:200,path:"M 0 100 L 80 20 L 80 80 L 120 80 L 120 0 L 200 0 L 200 200 L 120 200 L 120 120 L 80 120 L 80 180 L 0 100 Z"},{viewBox:200,path:"M 200 100 L 120 20 L 120 80 L 80 80 L 80 0 L 0 0 L 0 200 L 80 200 L 80 120 L 120 120 L 120 180 L 200 100 Z"},{viewBox:200,path:"M 0 0 L 120 0 L 200 100 L 120 200 L 0 200 L 80 100 L 0 0 Z"},{viewBox:200,path:"M 80 0 L 200 0 L 120 100 L 200 200 L 80 200 L 0 100 L 80 0 Z"},{viewBox:200,path:"M 0 0 L 140 0 L 200 100 L 140 200 L 0 200 L 0 100 L 0 0 Z"},{viewBox:200,path:"M 60 0 L 200 0 L 200 100 L 200 200 L 60 200 L 0 100 L 60 0 Z"},{viewBox:200,path:"M 0 0 L 200 100 L 0 200 L 60 100 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 0 100 L 200 200 L 140 100 L 200 0 Z"},{viewBox:200,path:"M 0 0 L 80 0 L 200 100 L 80 200 L 0 200 L 120 100 L 0 0 Z"},{viewBox:200,path:"M 200 0 L 120 0 L 0 100 L 120 200 L 200 200 L 80 100 L 200 0 Z"},{viewBox:200,path:"M 0 200 L 180 200 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 160 L 0 160 L 0 200 Z"},{viewBox:200,path:"M 0 200 L 0 20 L 160 20 L 160 0 L 200 40 L 160 80 L 160 60 L 40 60 L 40 200 L 0 200 Z"},{viewBox:200,path:"M 40 180 L 180 180 L 180 40 L 200 40 L 160 0 L 120 40 L 140 40 L 140 140 L 40 140 L 40 120 L 0 160 L 40 200 L 40 180 Z"},{viewBox:1024,path:"M398.208 302.912V64L0 482.112l398.208 418.176V655.36c284.48 0 483.584 95.552 625.792 304.64-56.896-298.688-227.584-597.312-625.792-657.088z",special:!0},{viewBox:1024,path:"M625.792 302.912V64L1024 482.112l-398.208 418.176V655.36C341.312 655.36 142.208 750.912 0 960c56.896-298.688 227.584-597.312 625.792-657.088z",special:!0}]},{type:"其他形状",children:[{viewBox:1024,path:"M995.336 243.4016c-15.7584-36.5736-38.3376-69.26639999-66.91440001-97.37280001-28.5768-27.98879999-61.73999999-49.8624-98.78399999-65.26799998-38.22-15.876-78.6744-23.8728-120.4224-23.87280001-57.97680001 0-114.5424 15.876-163.69919999 45.864-11.76 7.17360001-22.932 15.05279999-33.51600001 23.63760001-10.584-8.5848-21.75600001-16.46400001-33.51600001-23.63760001-49.1568-29.98799999-105.7224-45.86399999-163.69919999-45.864-41.74799999 0-82.2024 7.9968-120.4224 23.87280001-36.9264 15.28799999-70.2072 37.27919999-98.78399999 65.26799998-28.6944 28.10640001-51.156 60.79919999-66.91440001 97.37280001-16.34639999 37.9848-24.696 78.3216-24.696 119.83439999 0 39.1608 7.9968 79.96800001 23.8728 121.48080001 13.28880001 34.692 32.34000001 70.67760001 56.6832 107.016 38.57279999 57.5064 91.61040001 117.4824 157.4664 178.28160001 109.1328 100.78319999 217.2072 170.4024 221.79359999 173.22479998l27.87120001 17.8752c12.348 7.8792 28.224 7.8792 40.572 0l27.87119999-17.8752c4.58639999-2.94 112.54319999-72.44159999 221.79360001-173.22479998 65.85599999-60.79919999 118.89359999-120.7752 157.4664-178.28160001 24.3432-36.33839999 43.512-72.324 56.68319999-107.016 15.876-41.5128 23.8728-82.32 23.87280001-121.48080001 0.1176-41.5128-8.232-81.8496-24.5784-119.83439999z",special:!0},{viewBox:1024,path:"M985.20746667 343.50079998l-303.32586667-44.08319999L546.28693333 24.5248c-3.70346666-7.5264-9.79626667-13.6192-17.32266665-17.32266668-18.87573334-9.3184-41.81333333-1.55306667-51.25120001 17.32266668L342.1184 299.41759999l-303.32586667 44.08319999c-8.36266667 1.19466667-16.00853333 5.13706667-21.8624 11.11040001-14.69440001 15.17226667-14.45546667 39.30453334 0.71679999 54.1184l219.46026668 213.9648-51.84853333 302.1312c-1.43359999 8.24320001-0.11946667 16.8448 3.82293333 24.25173333 9.79626667 18.6368 32.9728 25.92426667 51.6096 16.00853334L512 822.44266665l271.3088 142.64320001c7.40693333 3.9424 16.00853333 5.25653333 24.25173333 3.82293333 20.78719999-3.584 34.7648-23.296 31.1808-44.0832l-51.84853333-302.1312 219.46026668-213.9648c5.97333334-5.85386666 9.91573333-13.49973334 11.11039999-21.8624 3.2256-20.90666667-11.34933333-40.26026667-32.256-43.36640001z",special:!0},{viewBox:1024,path:"M852.65066667 405.84533333C800.54044445 268.40177778 667.76177778 170.66666667 512.22755555 170.66666667S223.91466667 268.288 171.80444445 405.73155555C74.29688889 431.33155555 2.27555555 520.07822222 2.27555555 625.77777778c0 125.72444445 101.83111111 227.55555555 227.44177778 227.55555555h564.56533334C919.89333333 853.33333333 1021.72444445 751.50222222 1021.72444445 625.77777778c0-105.472-71.79377778-194.21866667-169.07377778-219.93244445z",special:!0},{viewBox:1024,path:"M926.25224691 323.7371485H654.6457886L898.88200917 15.14388241c5.05486373-6.53433603 0.49315743-16.02761669-7.76722963-16.02761668H418.30008701c-3.45210206 0-6.78091476 1.84934039-8.50696579 4.93157436L90.35039154 555.76772251c-3.82197013 6.53433603 0.86302552 14.7947231 8.50696578 14.79472311h215.01664245l-110.22068713 440.88274851c-2.34249783 9.61657002 9.24670194 16.39748478 16.39748477 9.49328065L933.03316167 340.62779071c6.41104668-6.0411786 2.09591911-16.8906422-6.78091476-16.89064221z",special:!0},{viewBox:1024,path:"M878.47822222 463.30311111c-22.18666667-49.83466667-53.93066667-93.98044445-94.32177777-131.072l-33.10933334-30.37866666c-4.89244445-4.32355555-12.62933333-2.38933333-14.79111111 3.75466666l-14.79111111 42.43911111c-9.216 26.624-26.16888889 53.81688889-50.176 80.55466667-1.59288889 1.70666667-3.41333333 2.16177778-4.66488889 2.27555556-1.25155555 0.11377778-3.18577778-0.11377778-4.89244445-1.70666667-1.59288889-1.36533333-2.38933333-3.41333333-2.27555555-5.46133333 4.20977778-68.49422222-16.27022222-145.74933333-61.09866667-229.83111112C561.26577778 124.01777778 509.72444445 69.51822222 445.32622222 31.51644445l-46.99022222-27.648c-6.144-3.64088889-13.99466667 1.13777778-13.65333333 8.30577777l2.50311111 54.61333333c1.70666667 37.31911111-2.61688889 70.31466667-12.85688889 97.73511112-12.51555555 33.56444445-30.49244445 64.73955555-53.47555556 92.72888888-16.15644445 19.56977778-34.24711111 37.20533333-54.04444444 52.45155556-47.90044445 36.75022222-87.38133333 84.65066667-114.11911111 138.24C125.72444445 502.10133333 111.50222222 562.74488889 111.50222222 623.50222222c0 53.70311111 10.58133333 105.69955555 31.51644445 154.73777778 20.25244445 47.21777778 49.152 89.77066667 85.90222222 126.17955555 36.864 36.40888889 79.64444445 65.08088889 127.31733333 84.992C405.61777778 1010.11911111 457.95555555 1020.58666667 512 1020.58666667s106.38222222-10.46755555 155.76177778-31.06133334c47.67288889-19.91111111 90.56711111-48.46933333 127.31733333-84.992 36.864-36.40888889 65.76355555-78.96177778 85.90222222-126.17955555 20.93511111-49.03822222 31.51644445-101.03466667 31.51644445-154.73777778 0-55.52355555-11.37777778-109.45422222-34.01955556-160.31288889z",special:!0},{viewBox:1024,path:"M968.20337778 20.11591112H705.44042667c-22.17301333 0-41.92483556 15.16430222-47.14951111 37.33731555C642.36202666 124.73685332 582.08711111 173.03324444 512 173.03324444s-130.36202666-48.29639112-146.29091556-115.58001777c-5.22467555-22.17301333-24.84906667-37.33731556-47.14951111-37.33731555H55.79662222c-30.96576 0-56.06968889 25.10392889-56.06968888 56.06968888v321.12639999c0 30.96576 25.10392889 56.06968889 56.06968888 56.06968889h95.57333334v494.43271112c0 30.96576 25.10392889 56.06968889 56.06968889 56.06968888h609.1207111c30.96576 0 56.06968889-25.10392889 56.06968889-56.06968888V453.38168888h95.57333334c30.96576 0 56.06968889-25.10392889 56.06968888-56.06968889V76.1856c0-30.96576-25.10392889-56.06968889-56.06968888-56.06968888z",special:!0},{viewBox:1024,path:"M980.94648889 239.80714666H523.46880001L373.99210666 96.82944c-1.91146667-1.78403556-4.46008889-2.80348444-7.00871111-2.80348445H43.05351111c-22.55530667 0-40.77795555 18.22264888-40.77795555 40.77795557v754.39217776c0 22.55530667 18.22264888 40.77795555 40.77795555 40.77795557h937.89297778c22.55530667 0 40.77795555-18.22264888 40.77795555-40.77795557V280.58510222c0-22.55530667-18.22264888-40.77795555-40.77795555-40.77795556z",special:!0},{viewBox:1024,path:"M972.60904597 164.57058577L841.30587843 33.39070759c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480282-29.3428675-26.75379095 0-51.90482023 10.47959553-70.76809219 29.3428675L558.60337778 174.68031322c-18.86327195 18.86327195-29.34286748 44.1375906-29.34286749 70.64480283 0 26.75379095 10.47959553 51.90482023 29.34286749 70.76809218l103.31648301 103.31648302c-24.28800376 53.50758189-57.69942011 101.59043198-99.24793416 143.13894603-41.42522469 41.67180341-89.63136414 75.08321976-143.13894603 99.61780223L316.21649759 558.84995649c-18.86327195-18.86327195-44.1375906-29.34286748-70.64480283-29.34286747-26.75379095 0-51.90482023 10.47959553-70.76809217 29.34286747L33.39070759 700.01627278c-18.86327195 18.86327195-29.34286748 44.1375906-29.3428675 70.76809217 0 26.75379095 10.47959553 51.90482023 29.3428675 70.76809219l131.05658883 131.05658883c30.08260365 30.205893 71.63111769 47.34311394 114.28923598 47.34311394 9.00012323 0 17.63037836-0.73973616 26.13734414-2.21920846 166.19405621-27.37023774 331.03192945-115.76870829 464.06114804-248.67463751C901.84095379 636.27567408 990.11613498 471.56109018 1017.85624079 304.87387654c8.38367642-50.91850535-8.50696579-103.31648302-45.24719482-140.30329077z",special:!0},{viewBox:1024,path:"M910.60451556 640.96028445c-20.38897778-65.49959112-43.83630221-120.54983112-79.89930667-210.64362666C836.31217778 193.67708444 737.93535999 2.27555556 511.36284444 2.27555556 282.24170667 2.27555556 186.03121778 197.50001778 192.14791111 430.31665779c-36.19043555 90.22122667-59.51032888 144.88917333-79.89930667 210.64362666-43.32657778 139.53706668-29.30915556 197.26336001-18.60494222 198.53767111 22.9376 2.80348444 89.32920888-105.00323556 89.32920889-105.00323556 0 62.44124445 32.11264001 143.86972444 101.69002667 202.61546667-33.64181333 10.32192-109.20846222 38.10190221-91.24067556 68.55793777 14.52714667 24.59420444 250.01984 15.67402668 317.94062222 8.02816 67.92078222 7.64586667 303.41347556 16.56604444 317.94062223-8.02816 17.96778667-30.32860444-57.72629333-58.23601779-91.24067555-68.55793777 69.57738667-58.87317334 101.69002667-140.30165333 101.69002667-202.61546667 0 0 66.39160889 107.80672 89.32920888 105.00323556 10.83164445-1.40174222 24.84906667-59.12803556-18.47751111-198.53767111z",special:!0},{viewBox:1024,path:"M1016.86992592 199.24764445c-37.13706667 16.01991111-77.55093333 27.54939259-119.17842962 32.03982222 42.96248889-25.60758518 75.60912592-66.02145185 91.02222222-114.08118519-39.68568889 23.66577778-84.58998518 41.02068148-131.31472593 50.00154074C819.53374815 126.79395555 765.76995555 101.79318518 706.18074075 101.79318518c-114.688 0-206.92385185 92.96402963-206.92385186 207.04521482 0 16.01991111 1.94180741 32.03982222 5.09724444 47.45291852-171.72859259-8.98085925-324.88865185-91.02222222-426.71217778-216.63288889-17.96171852 30.82619259-28.15620741 66.02145185-28.1562074 104.49351112 0 71.84687408 36.53025185 135.19834075 92.23585185 172.45677036-33.98162963-1.33499259-66.02145185-10.92266667-93.57084445-26.33576296v2.54862222c0 100.6098963 71.1186963 183.98625185 165.90317037 203.1616-17.3549037 4.49042963-35.92343703 7.03905185-54.49197037 7.03905185-13.47128889 0-26.2144-1.33499259-39.07887407-3.15543704C146.69748148 681.90814815 223.03478518 741.49736297 313.93564445 743.43917037c-71.1186963 55.7056-160.19911111 88.4736-256.9253926 88.4736-17.3549037 0-33.37481482-0.60681482-50.00154074-2.54862222C98.75911111 888.22518518 207.62168889 922.20681482 324.85831111 922.20681482 705.45256297 922.20681482 913.71140741 606.90583703 913.71140741 333.23235555c0-8.98085925 0-17.96171852-0.60681482-26.94257777 40.2925037-29.4912 75.60912592-66.02145185 103.76533333-107.04213333z",special:!0},{viewBox:1024,path:"M917.96720197 1.08889505H106.03279803C53.56084718 1.08889505 9.37393998 45.27580225 9.37393998 97.74775309v5.52336372c0 19.33177108 8.28504494 41.42522469 22.0934536 55.23363205l331.40179753 392.15879462v325.87843379c0 16.57008987 8.28504494 30.37849854 22.09345359 35.90186098l209.88780469 104.94390299 2.76168121 2.76168121c27.61681602 11.04672615 55.23363335-8.28504494 55.23363335-38.66354218V550.66354348l331.40179753-392.15879462c35.90186097-41.42522469 30.37849854-102.18222047-11.04672616-135.32240022-11.04672615-13.80840865-33.14017975-22.0934536-55.23363335-22.09345359z",special:!0},{viewBox:1024,path:"M491.70164031 97.48884502a25.89076502 25.89076502 0 0 1 40.59671938 0L745.66415762 367.01171317a25.89076502 25.89076502 0 0 0 30.49932208 7.72839349l208.00640948-89.14190458a25.89076502 25.89076502 0 0 1 35.56096592 29.06238339l-115.18801541 554.96855704A103.56306132 103.56306132 0 0 1 803.14165689 952.14301275H220.85834311a103.56306132 103.56306132 0 0 1-101.4011828-82.51387024l-115.18801541-554.96855704a25.89076502 25.89076502 0 0 1 35.54802012-29.06238339l208.01935528 89.14190458a25.89076502 25.89076502 0 0 0 30.49932208-7.72839349l213.36579793-269.52286815z",special:!0},{viewBox:1024,path:"M643.02466884 387.7801525c19.85376751-88.69205333 33.718272-152.84087467 41.61900049-192.57389433C704.52292267 95.17283515 652.90057916 2.27555515 550.58614084 2.27555515c-92.26012484 0-138.59407685 45.84971417-165.91530666 137.49816969l-0.70087152 2.67605334c-16.40038399 74.13942085-41.47882668 131.61085116-74.6746315 172.73287031a189.06953915 189.06953915 0 0 1-143.04142182 70.44391902l-26.17434983 0.5606965C77.66380049 387.52529067 27.76177817 438.90551468 27.76177817 501.84374084V881.55022182c0 77.4144 62.25009818 140.17422182 139.05282766 140.17422303h492.82707951c101.23127467 0 191.59267516-63.995904 225.93535999-159.98976l102.37815468-286.22301868c26.04691951-72.82688-11.39234134-153.15945284-83.63303784-179.42300483a138.04612267 138.04612267 0 0 0-47.17499733-8.30850884H643.02466884z",special:!0},{viewBox:1024,path:"M512 512c140.82958222 0 254.86222222-114.03264 254.86222222-254.86222222S652.82958222 2.27555555 512 2.27555555a254.78940445 254.78940445 0 0 0-254.86222222 254.86222223C257.13777778 397.96736 371.17041778 512 512 512z m0 72.81777778c-170.10232889 0-509.72444445 97.57582222-509.72444445 291.27111111v145.63555556h1019.4488889v-145.63555556c0-193.69528889-339.62211555-291.27111111-509.72444445-291.27111111z",special:!0},{viewBox:1024,path:"M1019.81297778 564.50161779l-138.89991111-472.51456c-8.66531556-25.99594668-29.43658667-43.45400889-57.21656889-43.45400891s-50.33528889 15.67402668-59.00060446 41.66997334l-92.00526221 274.48661334H351.69166222L259.6864 90.33045333c-8.66531556-25.99594668-31.22062222-41.66997333-59.00060444-41.66997332s-50.33528889 17.33063112-57.2165689 43.45400887L4.69674667 564.50161779c-5.22467555 17.33063112 1.78403556 36.44529778 15.67402667 46.89464887l491.11950221 368.27591113 492.77610666-368.27591113c13.76256-10.32192 20.77127111-29.43658667 15.54659557-46.89464887z",special:!0},{viewBox:1024,path:"M927.78951111 340.39277037c-12.01493333-47.81700741 12.01493333-124.03294815 89.08041481-150.97552592l-82.40545184-4.36906667s-31.19028148-109.22666667-174.27721483-118.9357037c-143.08693333-9.8304-236.65777778-3.64088889-236.65777777-3.6408889s106.07122963 67.47780741 63.5941926 187.74850371c-31.06891852 63.71555555-79.85682963 116.02299259-132.04290371 175.61220741-1.57771852 1.57771852-3.03407408 3.15543703-4.2477037 4.49042962C278.25493333 624.86755555 7.13007408 934.34311111 7.13007408 934.34311111c298.43152592 78.15774815 498.43768889-7.64586667 616.76657777-110.56165926 24.87940741-0.24272592 43.5693037-0.36408889 56.19105185-0.36408888 164.8109037 0 304.13558518-142.72284445 298.43152593-301.4656-3.88361482-109.1053037-38.71478518-133.74198518-50.72971852-181.5589926z",special:!0}]}],El=Object(j["defineComponent"])({name:"shape-pool",setup:function(e,t){var n=t.emit,o=Il,c=function(e){n("select",e)};return{shapeList:o,selectShape:c}}});n("7815");El.render=kl,El.__scopeId="data-v-588e8eb6";var Cl=El,xl=Object(j["withScopeId"])("data-v-723423cc");Object(j["pushScopeId"])("data-v-723423cc");var Sl={class:"line-pool"},Nl={class:"category-name"},Tl={class:"line-list"};Object(j["popScopeId"])();var wl=xl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("LinePointMarker"),l=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Sl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.lineList,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"category",key:t.type},[Object(j["createVNode"])("div",Nl,Object(j["toDisplayString"])(t.type),1),Object(j["createVNode"])("div",Tl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t.children,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"line-item",key:n},[Object(j["createVNode"])("div",{class:"line-content",onClick:function(n){return e.selectLine(t)}},[Object(j["createVNode"])(l,{overflow:"visible",width:"20",height:"20"},{default:xl((function(){return[Object(j["createVNode"])("defs",null,[t.points[0]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,class:"line-marker",id:"preset-line-".concat(n),position:"start",type:t.points[0],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(j["createCommentVNode"])("",!0),t.points[1]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,class:"line-marker",id:"preset-line-".concat(n),position:"end",type:t.points[1],color:"currentColor",baseSize:2},null,8,["id","type"])):Object(j["createCommentVNode"])("",!0)]),Object(j["createVNode"])("path",{class:"line-path",d:t.path,stroke:"currentColor",fill:"none","stroke-width":"2","stroke-dasharray":"solid"===t.style?"0, 0":"4, 1","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":"","marker-start":t.points[0]?"url(#".concat("preset-line-".concat(n),"-",t.points[0],"-start)"):"","marker-end":t.points[1]?"url(#".concat("preset-line-".concat(n),"-",t.points[1],"-end)"):""},null,8,["d","stroke-dasharray","marker-start","marker-end"])]})),_:2},1024)],8,["onClick"])])})),128))])])})),128))])})),Ll=[{type:"直线",children:[{path:"M 0 0 L 20 20",style:"solid",points:["",""]},{path:"M 0 0 L 20 20",style:"dashed",points:["",""]},{path:"M 0 0 L 20 20",style:"solid",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"dashed",points:["","arrow"]},{path:"M 0 0 L 20 20",style:"solid",points:["","dot"]}]},{type:"折线、曲线",children:[{path:"M 0 0 L 0 20 L 20 20",style:"solid",points:["","arrow"],isBroken:!0},{path:"M 0 0 Q 0 20 20 20",style:"solid",points:["","arrow"],isCurve:!0}]}],Vl=Object(j["defineComponent"])({name:"line-pool",components:{LinePointMarker:ea},setup:function(e,t){var n=t.emit,o=Ll,c=function(e){n("select",e)};return{lineList:o,selectLine:c}}});n("d4a2");Vl.render=wl,Vl.__scopeId="data-v-723423cc";var _l=Vl,Bl=Object(j["withScopeId"])("data-v-7fb667aa");Object(j["pushScopeId"])("data-v-7fb667aa");var Dl={class:"chart-pool"};Object(j["popScopeId"])();var Ml=Bl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconChartLine"),l=Object(j["resolveComponent"])("IconChartHistogram"),i=Object(j["resolveComponent"])("IconChartPie");return Object(j["openBlock"])(),Object(j["createBlock"])("ul",Dl,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.chartList,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("li",{class:"chart-item",key:n},[Object(j["createVNode"])("div",{class:"chart-content",onClick:function(n){return e.selectChart(t)}},["line"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,size:"24"})):"bar"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,size:"24"})):"pie"===t?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:2,size:"24"})):Object(j["createCommentVNode"])("",!0)],8,["onClick"])])})),128))])})),Al=Object(j["defineComponent"])({name:"chart-pool",setup:function(e,t){var n=t.emit,o=["bar","line","pie"],c=function(e){n("select",e)};return{chartList:o,selectChart:c}}});n("b146");Al.render=Ml,Al.__scopeId="data-v-7fb667aa";var Pl=Al,Rl=Object(j["withScopeId"])("data-v-a6935cc2");Object(j["pushScopeId"])("data-v-a6935cc2");var Fl={class:"table-generator"},Hl={class:"title"},zl={class:"lef"},Ul={key:1,class:"custom"},Gl={class:"row"},ql=Object(j["createVNode"])("div",{class:"label",style:{flex:"1"}},"行数:",-1),Xl={class:"row"},Wl=Object(j["createVNode"])("div",{class:"label",style:{flex:"1"}},"列数:",-1),Yl={class:"btns"},Zl=Object(j["createTextVNode"])("取消"),Jl=Object(j["createTextVNode"])("确认");Object(j["popScopeId"])();var Kl=Rl((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("InputNumber"),l=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Fl,[Object(j["createVNode"])("div",Hl,[Object(j["createVNode"])("div",zl,"表格 "+Object(j["toDisplayString"])(e.endCell.length?"".concat(e.endCell[0]," x ").concat(e.endCell[1]):""),1),Object(j["createVNode"])("div",{class:"right",onClick:t[1]||(t[1]=function(t){return e.isCustom=!e.isCustom})},Object(j["toDisplayString"])(e.isCustom?"返回":"自定义"),1)]),e.isCustom?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Ul,[Object(j["createVNode"])("div",Gl,[ql,Object(j["createVNode"])(r,{min:1,max:20,value:e.customRow,"onUpdate:value":t[4]||(t[4]=function(t){return e.customRow=t}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",Xl,[Wl,Object(j["createVNode"])(r,{min:1,max:20,value:e.customCol,"onUpdate:value":t[5]||(t[5]=function(t){return e.customCol=t}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",Yl,[Object(j["createVNode"])(l,{class:"btn",onClick:t[6]||(t[6]=function(t){return e.close()})},{default:Rl((function(){return[Zl]})),_:1}),Object(j["createVNode"])(l,{class:"btn",type:"primary",onClick:t[7]||(t[7]=function(t){return e.insertCustomTable()})},{default:Rl((function(){return[Jl]})),_:1})])])):(Object(j["openBlock"])(),Object(j["createBlock"])("table",{key:0,onMouseleave:t[2]||(t[2]=function(t){return e.endCell=[]}),onClick:t[3]||(t[3]=function(t){return e.handleClickTable()})},[Object(j["createVNode"])("tbody",null,[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(10,(function(t){return Object(j["createVNode"])("tr",{key:t},[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(10,(function(n){return Object(j["createVNode"])("td",{onMouseenter:function(o){return e.endCell=[t,n]},key:n},[Object(j["createVNode"])("div",{class:["cell",{active:e.endCell.length&&t<=e.endCell[0]&&n<=e.endCell[1]}]},null,2)],40,["onMouseenter"])})),64))])})),64))])],32))])})),Ql=Object(j["defineComponent"])({name:"table-generator",setup:function(e,t){var n=t.emit,o=Object(j["ref"])([]),c=Object(j["ref"])(3),a=Object(j["ref"])(3),r=Object(j["ref"])(!1),l=function(){if(o.value.length){var e=Object(qt["a"])(o.value,2),t=e[0],c=e[1];n("insert",{row:t,col:c})}},i=function(){return c.value<1||c.value>20||a.value<1||a.value>20?ke["a"].warning("行数/列数必须在0~20之间"):(n("insert",{row:c.value,col:a.value}),void(r.value=!1))},u=function(){n("close"),r.value=!1};return{endCell:o,customRow:c,customCol:a,handleClickTable:l,insertCustomTable:i,isCustom:r,close:u}}});n("d45e");Ql.render=Kl,Ql.__scopeId="data-v-a6935cc2";var $l=Ql,ei=Object(j["defineComponent"])({name:"canvas-tool",components:{ShapePool:Cl,LinePool:_l,ChartPool:Pl,TableGenerator:$l},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.canvasScale})),n=Object(j["computed"])((function(){return e.getters.canUndo})),o=Object(j["computed"])((function(){return e.getters.canRedo})),c=Object(j["computed"])((function(){return parseInt(100*t.value+"")+"%"})),a=ft(),r=a.scaleCanvas,l=a.setCanvasPercentage,i=Ye(),u=i.redo,d=i.undo,s=Qe(),f=s.createImageElement,p=s.createChartElement,b=s.createTableElement,m=function(e){var t=e[0];t&&Je(t).then((function(e){return f(e)}))},v=Object(j["ref"])(!1),O=Object(j["ref"])(!1),h=Object(j["ref"])(!1),g=Object(j["ref"])(!1),k=function(){e.commit(y.SET_CREATING_ELEMENT,{type:"text",data:null})},I=function(t){e.commit(y.SET_CREATING_ELEMENT,{type:"shape",data:t}),v.value=!1},E=function(t){e.commit(y.SET_CREATING_ELEMENT,{type:"line",data:t}),O.value=!1};return{scaleCanvas:r,setCanvasPercentage:l,canvasScalePercentage:c,canUndo:n,canRedo:o,redo:u,undo:d,insertImageElement:m,shapePoolVisible:v,linePoolVisible:O,chartPoolVisible:h,tableGeneratorVisible:g,drawText:k,drawShape:I,drawLine:E,createChartElement:p,createTableElement:b}}});n("f91d");ei.render=Ol,ei.__scopeId="data-v-59ae6536";var ti=ei,ni=Object(j["withScopeId"])("data-v-38044c5a");Object(j["pushScopeId"])("data-v-38044c5a");var oi={class:"add-slide"},ci=Object(j["createTextVNode"])("添加幻灯片"),ai={class:"select-btn"},ri={class:"label"};Object(j["popScopeId"])();var li=ni((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconPlus"),l=Object(j["resolveComponent"])("LayoutPool"),i=Object(j["resolveComponent"])("IconDown"),u=Object(j["resolveComponent"])("Popover"),d=Object(j["resolveComponent"])("ThumbnailSlide"),s=Object(j["resolveComponent"])("Draggable"),f=Object(j["resolveDirective"])("contextmenu"),p=Object(j["resolveDirective"])("click-outside");return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"thumbnails",onMousedown:t[4]||(t[4]=function(){return e.setThumbnailsFocus(!0)})},[Object(j["createVNode"])("div",oi,[Object(j["createVNode"])("div",{class:"btn",onClick:t[1]||(t[1]=function(t){return e.createSlide()})},[Object(j["createVNode"])(r,{class:"icon"}),ci]),Object(j["createVNode"])(u,{trigger:"click",placement:"bottomLeft",visible:e.presetLayoutPopoverVisible,"onUpdate:visible":t[3]||(t[3]=function(t){return e.presetLayoutPopoverVisible=t})},{content:ni((function(){return[Object(j["createVNode"])(l,{onSelect:t[2]||(t[2]=function(t){e.createSlideByTemplate(t),e.presetLayoutPopoverVisible=!1})})]})),default:ni((function(){return[Object(j["createVNode"])("div",ai,[Object(j["createVNode"])(i)])]})),_:1},8,["visible"])]),Object(j["createVNode"])(s,{class:"thumbnail-list",modelValue:e.slides,animation:300,scroll:!0,scrollSensitivity:50,setData:null,onEnd:e.handleDragEnd,itemKey:"id"},{item:ni((function(t){var n=t.element,o=t.index;return[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:["thumbnail-item",{active:e.slideIndex===o,selected:e.selectedSlidesIndex.includes(o)}],onMousedown:function(t){return e.handleClickSlideThumbnail(t,o)}},[Object(j["createVNode"])("div",ri,Object(j["toDisplayString"])(e.fillDigit(o+1,2)),1),Object(j["createVNode"])(d,{class:"thumbnail",slide:n,size:120},null,8,["slide"])],42,["onMousedown"]),[[f,e.contextmenusThumbnailItem]])]})),_:1},8,["modelValue","onEnd"])],544)),[[p,function(){return e.setThumbnailsFocus(!1)}],[f,e.contextmenusThumbnails]])})),ii=n("b76a"),ui=n.n(ii),di=Object(j["withScopeId"])("data-v-4e59015e"),si=di((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ThumbnailElement");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"thumbnail-slide",style:{width:e.size+"px",height:e.size*e.viewportRatio+"px"}},[Object(j["createVNode"])("div",{class:"elements",style:{width:e.VIEWPORT_SIZE+"px",height:e.VIEWPORT_SIZE*e.viewportRatio+"px",transform:"scale(".concat(e.scale,")")}},[Object(j["createVNode"])("div",{class:"background",style:e.backgroundStyle},null,4),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slide.elements,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.id,elementInfo:e,elementIndex:t+1},null,8,["elementInfo","elementIndex"])})),128))],4)],4)}));function fi(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["base-element","base-element-".concat(e.elementInfo.id)],style:{zIndex:e.elementIndex}},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo,target:"thumbnail"},null,8,["elementInfo"]))],6)}var pi=Object(j["withScopeId"])("data-v-b0d4d1b2"),bi=pi((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ImageOutline");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"base-element-image",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px",transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["createVNode"])("div",{class:"element-content",style:{filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle}},[Object(j["createVNode"])(r,{elementInfo:e.elementInfo},null,8,["elementInfo"]),Object(j["createVNode"])("div",{class:"image-content",style:{clipPath:e.clipShape.style}},[Object(j["createVNode"])("img",{src:e.elementInfo.src,draggable:!1,style:{top:e.imgPosition.top,left:e.imgPosition.left,width:e.imgPosition.width,height:e.imgPosition.height,filter:e.filter},alt:""},null,12,["src"])],4)],4)],4)],4)})),mi=Object(j["defineComponent"])({name:"base-element-image",components:{ImageOutline:_o},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.shadow})),n=fo(t),o=n.shadowStyle,c=Object(j["computed"])((function(){return e.elementInfo.flipH})),a=Object(j["computed"])((function(){return e.elementInfo.flipV})),r=po(c,a),l=r.flipStyle,i=Object(j["computed"])((function(){return e.elementInfo.clip})),u=mo(i),d=u.clipShape,s=u.imgPosition,f=Object(j["computed"])((function(){return e.elementInfo.filters})),p=vo(f),b=p.filter;return{imgPosition:s,filter:b,flipStyle:l,shadowStyle:o,clipShape:d}}});n("a576");mi.render=bi,mi.__scopeId="data-v-b0d4d1b2";var vi=mi,Oi=Object(j["withScopeId"])("data-v-2ec235c4"),hi=Oi((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ElementOutline");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"base-element-text",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["createVNode"])("div",{class:"element-content",style:{backgroundColor:e.elementInfo.fill,opacity:e.elementInfo.opacity,textShadow:e.shadowStyle,lineHeight:e.elementInfo.lineHeight,letterSpacing:(e.elementInfo.wordSpace||0)+"px",color:e.elementInfo.defaultColor,fontFamily:e.elementInfo.defaultFontName}},[Object(j["createVNode"])(r,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])("div",{class:"text ProseMirror-static",innerHTML:e.elementInfo.content},null,8,["innerHTML"])],4)],4)],4)})),ji=Object(j["defineComponent"])({name:"base-element-text",components:{ElementOutline:Ac},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.shadow})),n=fo(t),o=n.shadowStyle;return{shadowStyle:o}}});n("5264");ji.render=hi,ji.__scopeId="data-v-2ec235c4";var gi=ji,yi=Object(j["withScopeId"])("data-v-6fef68fd");Object(j["pushScopeId"])("data-v-6fef68fd");var ki={key:0};Object(j["popScopeId"])();var Ii=yi((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("GradientDefs"),l=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"base-element-shape",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["createVNode"])("div",{class:"rotate-wrapper",style:{transform:"rotate(".concat(e.elementInfo.rotate,"deg)")}},[Object(j["createVNode"])("div",{class:"element-content",style:{opacity:e.elementInfo.opacity,filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):"",transform:e.flipStyle}},[Object(j["createVNode"])(l,{overflow:"visible",width:e.elementInfo.width,height:e.elementInfo.height},{default:yi((function(){return[e.elementInfo.gradient?(Object(j["openBlock"])(),Object(j["createBlock"])("defs",ki,[Object(j["createVNode"])(r,{id:"base-gradient-".concat(e.elementInfo.id),type:e.elementInfo.gradient.type,color1:e.elementInfo.gradient.color[0],color2:e.elementInfo.gradient.color[1],rotate:e.elementInfo.gradient.rotate},null,8,["id","type","color1","color2","rotate"])])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("g",{transform:"scale(".concat(e.elementInfo.width/e.elementInfo.viewBox,", ").concat(e.elementInfo.height/e.elementInfo.viewBox,") translate(0,0) matrix(1,0,0,1,0,0)")},[Object(j["createVNode"])("path",{"vector-effect":"non-scaling-stroke","stroke-linecap":"butt","stroke-miterlimit":"8","stroke-linejoin":"",d:e.elementInfo.path,fill:e.elementInfo.gradient?"url(#base-gradient-".concat(e.elementInfo.id,")"):e.elementInfo.fill,stroke:e.outlineColor,"stroke-width":e.outlineWidth,"stroke-dasharray":"dashed"===e.outlineStyle?"10 5":"0 0"},null,8,["d","fill","stroke","stroke-width","stroke-dasharray"])],8,["transform"])]})),_:1},8,["width","height"])],4)],4)],4)})),Ei=Object(j["defineComponent"])({name:"base-element-shape",components:{GradientDefs:qc},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.outline})),n=yo(t),o=n.outlineWidth,c=n.outlineStyle,a=n.outlineColor,r=Object(j["computed"])((function(){return e.elementInfo.shadow})),l=fo(r),i=l.shadowStyle,u=Object(j["computed"])((function(){return e.elementInfo.flipH})),d=Object(j["computed"])((function(){return e.elementInfo.flipV})),s=po(u,d),f=s.flipStyle;return{shadowStyle:i,outlineWidth:o,outlineStyle:c,outlineColor:a,flipStyle:f}}});n("9569");Ei.render=Ii,Ei.__scopeId="data-v-6fef68fd";var Ci=Ei,xi=Object(j["withScopeId"])("data-v-448a7ca0"),Si=xi((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("LinePointMarker"),l=Object(j["resolveComponent"])("SvgWrapper");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"editable-element-shape",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px"}},[Object(j["createVNode"])("div",{class:"element-content",style:{filter:e.shadowStyle?"drop-shadow(".concat(e.shadowStyle,")"):""}},[Object(j["createVNode"])(l,{overflow:"visible",width:e.svgWidth,height:e.svgHeight},{default:xi((function(){return[Object(j["createVNode"])("defs",null,[e.elementInfo.points[0]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:0,id:e.elementInfo.id,position:"start",type:e.elementInfo.points[0],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0),e.elementInfo.points[1]?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,id:e.elementInfo.id,position:"end",type:e.elementInfo.points[1],color:e.elementInfo.color,baseSize:e.elementInfo.width},null,8,["id","type","color","baseSize"])):Object(j["createCommentVNode"])("",!0)]),Object(j["createVNode"])("path",{d:e.path,stroke:e.elementInfo.color,"stroke-width":e.elementInfo.width,"stroke-dasharray":e.lineDashArray,fill:"none","stroke-linecap":"","stroke-linejoin":"","stroke-miterlimit":"","marker-start":e.elementInfo.points[0]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[0],"-start)"):"","marker-end":e.elementInfo.points[1]?"url(#".concat(e.elementInfo.id,"-").concat(e.elementInfo.points[1],"-end)"):""},null,8,["d","stroke","stroke-width","stroke-dasharray","marker-start","marker-end"])]})),_:1},8,["width","height"])],4)],4)})),Ni=Object(j["defineComponent"])({name:"editable-element-shape",components:{LinePointMarker:ea},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return e.elementInfo.shadow})),n=fo(t),o=n.shadowStyle,c=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[0]-e.elementInfo.end[0]);return t<24?24:t})),a=Object(j["computed"])((function(){var t=Math.abs(e.elementInfo.start[1]-e.elementInfo.end[1]);return t<24?24:t})),r=Object(j["computed"])((function(){return"dashed"===e.elementInfo.style?"10, 5":"0, 0"})),l=Object(j["computed"])((function(){return qe(e.elementInfo)}));return{shadowStyle:o,svgWidth:c,svgHeight:a,lineDashArray:r,path:l}}});n("9743");Ni.render=Si,Ni.__scopeId="data-v-448a7ca0";var Ti=Ni,wi=Object(j["withScopeId"])("data-v-2d25f60a"),Li=wi((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ElementOutline"),l=Object(j["resolveComponent"])("IconChartHistogram"),i=Object(j["resolveComponent"])("IconChartHistogramOne"),u=Object(j["resolveComponent"])("IconChartLine"),d=Object(j["resolveComponent"])("IconChartLineArea"),s=Object(j["resolveComponent"])("IconChartScatter"),f=Object(j["resolveComponent"])("IconChartPie"),p=Object(j["resolveComponent"])("IconChartRing");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"base-element-chart",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["createVNode"])("div",{class:"element-content",style:{backgroundColor:e.elementInfo.fill}},[Object(j["createVNode"])(r,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),"bar"===e.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:0,fill:e.elementInfo.themeColor,strokeWidth:"2",size:e.size},null,8,["fill","size"])):"horizontalBar"===e.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:1,fill:e.elementInfo.themeColor,strokeWidth:"2",size:e.size},null,8,["fill","size"])):"line"===e.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(u,{key:2,fill:e.elementInfo.themeColor,strokeWidth:"2",size:e.size},null,8,["fill","size"])):"area"===e.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:3,fill:e.elementInfo.themeColor,strokeWidth:"2",size:e.size},null,8,["fill","size"])):"scatter"===e.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:4,fill:e.elementInfo.themeColor,strokeWidth:"2",size:e.size},null,8,["fill","size"])):"pie"===e.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(f,{key:5,fill:e.elementInfo.themeColor,strokeWidth:"2",size:e.size},null,8,["fill","size"])):"ring"===e.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(p,{key:6,fill:e.elementInfo.themeColor,strokeWidth:"2",size:e.size},null,8,["fill","size"])):Object(j["createCommentVNode"])("",!0)],4)],4)})),Vi=Object(j["defineComponent"])({name:"base-element-chart",components:{ElementOutline:Ac},props:{elementInfo:{type:Object,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){return Math.min(e.elementInfo.width,e.elementInfo.height)})),n=Object(j["computed"])((function(){var t=e.elementInfo.chartType,n=e.elementInfo.options;return"bar"===t?null!==n&&void 0!==n&&n.horizontalBars?"horizontalBar":"bar":"line"===t?null!==n&&void 0!==n&&n.showArea?"area":n&&!1===n.showLine?"scatter":"line":"pie"===t?null!==n&&void 0!==n&&n.donut?"ring":"pie":""}));return{size:t,chartType:n}}});n("b730");Vi.render=Li,Vi.__scopeId="data-v-2d25f60a";var _i=Vi,Bi=Object(j["withScopeId"])("data-v-dea016ac");Object(j["pushScopeId"])("data-v-dea016ac");var Di={class:"element-content"};Object(j["popScopeId"])();var Mi=Bi((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("StaticTable");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"base-element-table",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px"}},[Object(j["createVNode"])("div",Di,[Object(j["createVNode"])(r,{data:e.elementInfo.data,width:e.elementInfo.width,colWidths:e.elementInfo.colWidths,outline:e.elementInfo.outline,theme:e.elementInfo.theme},null,8,["data","width","colWidths","outline","theme"])])],4)})),Ai=Object(j["withScopeId"])("data-v-ccbfe89e"),Pi=Ai((function(e,t,n,o,c,a){var r,l,i,u,d;return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"static-table",style:{width:e.totalWidth+"px"}},[Object(j["createVNode"])("table",{class:{theme:e.theme,"row-header":null===(r=e.theme)||void 0===r?void 0:r.rowHeader,"row-footer":null===(l=e.theme)||void 0===l?void 0:l.rowFooter,"col-header":null===(i=e.theme)||void 0===i?void 0:i.colHeader,"col-footer":null===(u=e.theme)||void 0===u?void 0:u.colFooter},style:"--themeColor: ".concat(null===(d=e.theme)||void 0===d?void 0:d.color,"; --subThemeColor1: ").concat(e.subThemeColor[0],"; --subThemeColor2: ").concat(e.subThemeColor[1])},[Object(j["createVNode"])("colgroup",null,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.colSizeList,(function(e,t){return Object(j["openBlock"])(),Object(j["createBlock"])("col",{span:"1",key:t,width:e},null,8,["width"])})),128))]),Object(j["createVNode"])("tbody",null,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.data,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("tr",{key:n},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t,(function(t,o){return Object(j["withDirectives"])((Object(j["openBlock"])(),Object(j["createBlock"])("td",{class:"cell",style:Object(x["a"])({borderStyle:e.outline.style,borderColor:e.outline.color,borderWidth:e.outline.width+"px"},e.getTextStyle(t.style)),key:t.id,rowspan:t.rowspan,colspan:t.colspan},[Object(j["createVNode"])("div",{class:"cell-text",innerHTML:e.formatText(t.text)},null,8,["innerHTML"])],12,["rowspan","colspan"])),[[j["vShow"],!e.hideCells.includes("".concat(n,"_").concat(o))]])})),128))])})),128))])],6)],4)})),Ri=Object(j["defineComponent"])({name:"static-table",props:{data:{type:Array,required:!0},width:{type:Number,required:!0},colWidths:{type:Array,required:!0},outline:{type:Object,required:!0},theme:{type:Object},editable:{type:Boolean,default:!0}},setup:function(e){var t=Object(j["ref"])([]),n=Object(j["computed"])((function(){return t.value.reduce((function(e,t){return e+t}))}));Object(j["watch"])([function(){return e.colWidths},function(){return e.width}],(function(){t.value=e.colWidths.map((function(t){return t*e.width}))}),{immediate:!0});var o=Object(j["computed"])((function(){return e.data})),c=ka(o),a=c.hideCells,r=Object(j["computed"])((function(){return e.theme})),l=Ia(r),i=l.subThemeColor;return{colSizeList:t,totalWidth:n,hideCells:a,getTextStyle:ga,formatText:ya,subThemeColor:i}}});n("1360");Ri.render=Pi,Ri.__scopeId="data-v-ccbfe89e";var Fi=Ri,Hi=Object(j["defineComponent"])({name:"base-element-table",components:{StaticTable:Fi},props:{elementInfo:{type:Object,required:!0}}});n("ba04");Hi.render=Mi,Hi.__scopeId="data-v-dea016ac";var zi=Hi,Ui=Object(j["defineComponent"])({name:"base-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t,n=(t={},Object(U["a"])(t,ao.IMAGE,vi),Object(U["a"])(t,ao.TEXT,gi),Object(U["a"])(t,ao.SHAPE,Ci),Object(U["a"])(t,ao.LINE,Ti),Object(U["a"])(t,ao.CHART,_i),Object(U["a"])(t,ao.TABLE,zi),t);return n[e.elementInfo.type]||null}));return{currentElementComponent:t}}});Ui.render=fi;var Gi=Ui,qi=Object(j["defineComponent"])({name:"thumbnail-slide",components:{ThumbnailElement:Gi},props:{slide:{type:Object,required:!0},size:{type:Number,required:!0}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.viewportRatio})),o=Object(j["computed"])((function(){return e.slide.background})),c=Ga(o),a=c.backgroundStyle,r=Object(j["computed"])((function(){return e.size/Ke}));return{scale:r,backgroundStyle:a,VIEWPORT_SIZE:Ke,viewportRatio:n}}});n("2b61");qi.render=si,qi.__scopeId="data-v-4e59015e";var Xi=qi,Wi=Object(j["withScopeId"])("data-v-3b565871");Object(j["pushScopeId"])("data-v-3b565871");var Yi={class:"layout-pool"};Object(j["popScopeId"])();var Zi=Wi((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ThumbnailSlide");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Yi,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.layouts,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"layout-item",key:t.id,onClick:function(n){return e.selectSlideTemplate(t)}},[Object(j["createVNode"])(r,{class:"thumbnail",slide:t,size:180},null,8,["slide"])],8,["onClick"])})),128))])})),Ji=Object(j["defineComponent"])({name:"layout-pool",components:{ThumbnailSlide:Xi},setup:function(e,t){var n=t.emit,o=ue(),c=Object(j["computed"])((function(){return o.getters.layouts})),a=function(e){n("select",e)};return{layouts:c,selectSlideTemplate:a}}});n("4142");Ji.render=Zi,Ji.__scopeId="data-v-3b565871";var Ki=Ji,Qi=Object(j["defineComponent"])({name:"thumbnails",components:{Draggable:ui.a,ThumbnailSlide:Xi,LayoutPool:Ki},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["computed"])((function(){return e.state.slideIndex})),o=Object(j["computed"])((function(){return e.state.ctrlKeyState})),c=Object(j["computed"])((function(){return e.state.shiftKeyState})),a=Object(j["computed"])((function(){return[].concat(Object(te["a"])(e.state.selectedSlidesIndex),[n.value])})),r=Object(j["ref"])(!1),l=et(),i=l.copySlide,u=l.pasteSlide,d=l.createSlide,s=l.createSlideByTemplate,f=l.copyAndPasteSlide,p=l.deleteSlide,b=l.cutSlide,m=l.selectAllSlide,v=function(t){e.commit(y.SET_ACTIVE_ELEMENT_ID_LIST,[]),n.value!==t&&e.commit(y.UPDATE_SLIDE_INDEX,t)},O=function(t,r){var l=a.value.length>1;if(!l||!a.value.includes(r)||0===t.button)if(o.value)if(n.value===r){if(!l)return;var i=a.value.filter((function(e){return e!==r}));e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,i),v(a.value[0])}else if(a.value.includes(r)){var u=a.value.filter((function(e){return e!==r}));e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,u)}else{var d=[].concat(Object(te["a"])(a.value),[r]);e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,d),v(r)}else if(c.value){if(n.value===r&&!l)return;var s=Math.min.apply(Math,Object(te["a"])(a.value)),f=r;r<s&&(f=Math.max.apply(Math,Object(te["a"])(a.value)),s=r);for(var p=[],b=s;b<=f;b++)p.push(b);e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,p),v(r)}else e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,[]),v(r)},h=Object(j["computed"])((function(){return e.state.thumbnailsFocus})),g=function(t){h.value!==t&&(e.commit(y.SET_THUMBNAILS_FOCUS,t),t||e.commit(y.UPDATE_SELECTED_SLIDES_INDEX,[]))},k=function(n){var o=n.newIndex,c=n.oldIndex;if(c!==o){var a=JSON.parse(JSON.stringify(t.value)),r=a[c];a.splice(c,1),a.splice(o,0,r),e.commit(y.SET_SLIDES,a),e.commit(y.UPDATE_SLIDE_INDEX,o)}},I=st(),E=I.enterScreening,C=function(){return[{text:"粘贴",subText:"Ctrl + V",handler:u},{text:"全选",subText:"Ctrl + A",handler:m},{text:"新建页面",subText:"Enter",handler:d},{text:"开始演示",subText:"Ctrl + F",handler:E}]},x=function(){return[{text:"剪切",subText:"Ctrl + X",handler:b},{text:"复制",subText:"Ctrl + C",handler:i},{text:"粘贴",subText:"Ctrl + V",handler:u},{text:"全选",subText:"Ctrl + A",handler:m},{divider:!0},{text:"新建页面",subText:"Enter",handler:d},{text:"复制页面",subText:"Ctrl + D",handler:f},{text:"删除页面",subText:"Delete",handler:function(){return p()}},{divider:!0},{text:"从当前页演示",subText:"Ctrl + F",handler:E}]};return{slides:t,slideIndex:n,selectedSlidesIndex:a,presetLayoutPopoverVisible:r,createSlide:d,createSlideByTemplate:s,setThumbnailsFocus:g,handleClickSlideThumbnail:O,contextmenusThumbnails:C,contextmenusThumbnailItem:x,fillDigit:Ee,handleDragEnd:k}}});n("7a07");Qi.render=li,Qi.__scopeId="data-v-38044c5a";var $i=Qi,eu=Object(j["withScopeId"])("data-v-c6f9b2f4");Object(j["pushScopeId"])("data-v-c6f9b2f4");var tu={class:"toolbar"},nu={class:"tabs"},ou={class:"content"};Object(j["popScopeId"])();var cu=eu((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",tu,[Object(j["createVNode"])("div",nu,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.currentTabs,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["tab",{active:t.value===e.toolbarState}],key:t.value,onClick:function(n){return e.setToolbarState(t.value)}},Object(j["toDisplayString"])(t.label),11,["onClick"])})),128))]),Object(j["createVNode"])("div",ou,[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentPanelComponent)))])])})),au={EL_ANIMATION:"elAnimation",EL_STYLE:"elStyle",EL_POSITION:"elPosition",SLIDE_STYLE:"slideStyle",SLIDE_ANIMATION:"slideAnimation",MULTI_POSITION:"multiPosition"},ru={class:"element-style-panel"},lu={key:0};function iu(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",ru,[e.currentPanelComponent?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])("div",lu," 请先选中要编辑的元素 ")),e.handleElement?(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentPanelComponent),{key:1})):Object(j["createCommentVNode"])("",!0)])}var uu=Object(j["withScopeId"])("data-v-ee8b653e");Object(j["pushScopeId"])("data-v-ee8b653e");var du={class:"text-style-panel"},su={class:"preset-style"},fu={class:"row"},pu=Object(j["createVNode"])("div",{style:{flex:"2"}},"行间距:",-1),bu={class:"row"},mu=Object(j["createVNode"])("div",{style:{flex:"2"}},"字间距:",-1);Object(j["popScopeId"])();var vu=uu((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Divider"),l=Object(j["resolveComponent"])("IconFontSize"),i=Object(j["resolveComponent"])("SelectOption"),u=Object(j["resolveComponent"])("SelectOptGroup"),d=Object(j["resolveComponent"])("Select"),s=Object(j["resolveComponent"])("IconAddText"),f=Object(j["resolveComponent"])("InputGroup"),p=Object(j["resolveComponent"])("ColorPicker"),b=Object(j["resolveComponent"])("IconText"),m=Object(j["resolveComponent"])("Button"),v=Object(j["resolveComponent"])("Tooltip"),O=Object(j["resolveComponent"])("Popover"),h=Object(j["resolveComponent"])("IconBackgroundColor"),g=Object(j["resolveComponent"])("IconFill"),y=Object(j["resolveComponent"])("ButtonGroup"),k=Object(j["resolveComponent"])("IconTextBold"),I=Object(j["resolveComponent"])("CheckboxButton"),E=Object(j["resolveComponent"])("IconTextItalic"),C=Object(j["resolveComponent"])("IconTextUnderline"),x=Object(j["resolveComponent"])("IconStrikethrough"),S=Object(j["resolveComponent"])("CheckboxButtonGroup"),N=Object(j["resolveComponent"])("IconUpOne"),T=Object(j["resolveComponent"])("IconDownOne"),w=Object(j["resolveComponent"])("IconCode"),L=Object(j["resolveComponent"])("IconQuote"),V=Object(j["resolveComponent"])("IconFormat"),_=Object(j["resolveComponent"])("IconAlignTextLeft"),B=Object(j["resolveComponent"])("RadioButton"),D=Object(j["resolveComponent"])("IconAlignTextCenter"),M=Object(j["resolveComponent"])("IconAlignTextRight"),A=Object(j["resolveComponent"])("RadioGroup"),P=Object(j["resolveComponent"])("IconList"),R=Object(j["resolveComponent"])("IconOrderedList"),F=Object(j["resolveComponent"])("IconRowHeight"),H=Object(j["resolveComponent"])("IconFullwidth"),z=Object(j["resolveComponent"])("ElementOutline"),U=Object(j["resolveComponent"])("ElementShadow"),G=Object(j["resolveComponent"])("ElementOpacity");return Object(j["openBlock"])(),Object(j["createBlock"])("div",du,[Object(j["createVNode"])("div",su,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.presetStyles,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"preset-style-item",key:t.label,style:t.style,onClick:function(n){return e.emitBatchRichTextCommand(t.cmd)}},Object(j["toDisplayString"])(t.label),13,["onClick"])})),128))]),Object(j["createVNode"])(r),Object(j["createVNode"])(f,{compact:"",class:"row"},{default:uu((function(){return[Object(j["createVNode"])(d,{style:{flex:"3"},value:e.richTextAttrs.fontname,onChange:t[1]||(t[1]=function(t){return e.emitRichTextCommand("fontname",t)})},{suffixIcon:uu((function(){return[Object(j["createVNode"])(l)]})),default:uu((function(){return[Object(j["createVNode"])(u,{label:"系统字体"},{default:uu((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e.value,value:e.value},{default:uu((function(){return[Object(j["createVNode"])("span",{style:{fontFamily:e.value}},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(u,{label:"在线字体"},{default:uu((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e.value,value:e.value},{default:uu((function(){return[Object(j["createVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(j["createVNode"])(d,{style:{flex:"2"},value:e.richTextAttrs.fontsize,onChange:t[2]||(t[2]=function(t){return e.emitRichTextCommand("fontsize",t)})},{suffixIcon:uu((function(){return[Object(j["createVNode"])(s)]})),default:uu((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.fontSizeOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e,value:e},{default:uu((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(j["createVNode"])(y,{class:"row"},{default:uu((function(){return[Object(j["createVNode"])(O,{trigger:"click"},{content:uu((function(){return[Object(j["createVNode"])(p,{modelValue:e.richTextAttrs.color,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.emitRichTextCommand("color",t)})},null,8,["modelValue"])]})),default:uu((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:uu((function(){return[Object(j["createVNode"])(m,{class:"text-color-btn",style:{flex:"1"}},{default:uu((function(){return[Object(j["createVNode"])(b),Object(j["createVNode"])("div",{class:"text-color-block",style:{backgroundColor:e.richTextAttrs.color}},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(O,{trigger:"click"},{content:uu((function(){return[Object(j["createVNode"])(p,{modelValue:e.richTextAttrs.backcolor,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.emitRichTextCommand("backcolor",t)})},null,8,["modelValue"])]})),default:uu((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字高亮"},{default:uu((function(){return[Object(j["createVNode"])(m,{class:"text-color-btn",style:{flex:"1"}},{default:uu((function(){return[Object(j["createVNode"])(h),Object(j["createVNode"])("div",{class:"text-color-block",style:{backgroundColor:e.richTextAttrs.backcolor}},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(O,{trigger:"click"},{content:uu((function(){return[Object(j["createVNode"])(p,{modelValue:e.fill,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:uu((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文本框填充"},{default:uu((function(){return[Object(j["createVNode"])(m,{class:"text-color-btn",style:{flex:"1"}},{default:uu((function(){return[Object(j["createVNode"])(g),Object(j["createVNode"])("div",{class:"text-color-block",style:{backgroundColor:e.fill}},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(j["createVNode"])(S,{class:"row"},{default:uu((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.bold,onClick:t[6]||(t[6]=function(t){return e.emitRichTextCommand("bold")})},{default:uu((function(){return[Object(j["createVNode"])(k)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.em,onClick:t[7]||(t[7]=function(t){return e.emitRichTextCommand("em")})},{default:uu((function(){return[Object(j["createVNode"])(E)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.underline,onClick:t[8]||(t[8]=function(t){return e.emitRichTextCommand("underline")})},{default:uu((function(){return[Object(j["createVNode"])(C)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除线"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.strikethrough,onClick:t[9]||(t[9]=function(t){return e.emitRichTextCommand("strikethrough")})},{default:uu((function(){return[Object(j["createVNode"])(x)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(S,{class:"row"},{default:uu((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上标"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.superscript,onClick:t[10]||(t[10]=function(t){return e.emitRichTextCommand("superscript")})},{default:uu((function(){return[Object(j["createVNode"])(N)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下标"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.subscript,onClick:t[11]||(t[11]=function(t){return e.emitRichTextCommand("subscript")})},{default:uu((function(){return[Object(j["createVNode"])(T)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"行内代码"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.code,onClick:t[12]||(t[12]=function(t){return e.emitRichTextCommand("code")})},{default:uu((function(){return[Object(j["createVNode"])(w)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"引用"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.blockquote,onClick:t[13]||(t[13]=function(t){return e.emitRichTextCommand("blockquote")})},{default:uu((function(){return[Object(j["createVNode"])(L)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"清除格式"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},onClick:t[14]||(t[14]=function(t){return e.emitRichTextCommand("clear")})},{default:uu((function(){return[Object(j["createVNode"])(V)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(r),Object(j["createVNode"])(A,{class:"row","button-style":"solid",value:e.richTextAttrs.align,onChange:t[15]||(t[15]=function(t){return e.emitRichTextCommand("align",t.target.value)})},{default:uu((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:uu((function(){return[Object(j["createVNode"])(B,{value:"left",style:{flex:"1"}},{default:uu((function(){return[Object(j["createVNode"])(_)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:uu((function(){return[Object(j["createVNode"])(B,{value:"center",style:{flex:"1"}},{default:uu((function(){return[Object(j["createVNode"])(D)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:uu((function(){return[Object(j["createVNode"])(B,{value:"right",style:{flex:"1"}},{default:uu((function(){return[Object(j["createVNode"])(M)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(j["createVNode"])(S,{class:"row"},{default:uu((function(){return[Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"项目符号"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.bulletList,onClick:t[16]||(t[16]=function(t){return e.emitRichTextCommand("bulletList")})},{default:uu((function(){return[Object(j["createVNode"])(P)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(v,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"编号"},{default:uu((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},checked:e.richTextAttrs.orderedList,onClick:t[17]||(t[17]=function(t){return e.emitRichTextCommand("orderedList")})},{default:uu((function(){return[Object(j["createVNode"])(R)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(r),Object(j["createVNode"])("div",fu,[pu,Object(j["createVNode"])(d,{style:{flex:"3"},value:e.lineHeight,onChange:t[18]||(t[18]=function(t){return e.updateLineHeight(t)})},{suffixIcon:uu((function(){return[Object(j["createVNode"])(F)]})),default:uu((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.lineHeightOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e,value:e},{default:uu((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e)+"倍",1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]),Object(j["createVNode"])("div",bu,[mu,Object(j["createVNode"])(d,{style:{flex:"3"},value:e.wordSpace,onChange:t[19]||(t[19]=function(t){return e.updateWordSpace(t)})},{suffixIcon:uu((function(){return[Object(j["createVNode"])(H)]})),default:uu((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.wordSpaceOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:e,value:e},{default:uu((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e)+"px",1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]),Object(j["createVNode"])(r),Object(j["createVNode"])(z),Object(j["createVNode"])(r),Object(j["createVNode"])(U),Object(j["createVNode"])(r),Object(j["createVNode"])(G)])})),Ou=Object(j["withScopeId"])("data-v-b884607e");Object(j["pushScopeId"])("data-v-b884607e");var hu={class:"element-opacity"},ju={class:"row"},gu=Object(j["createVNode"])("div",{style:{flex:"2"}},"不透明度:",-1);Object(j["popScopeId"])();var yu=Ou((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Slider");return Object(j["openBlock"])(),Object(j["createBlock"])("div",hu,[Object(j["createVNode"])("div",ju,[gu,Object(j["createVNode"])(r,{min:0,max:1,step:.1,value:e.opacity,style:{flex:"3"},onChange:t[1]||(t[1]=function(t){return e.updateOpacity(t)})},null,8,["step","value"])])])})),ku=Object(j["defineComponent"])({name:"element-opacity",setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])();Object(j["watch"])(t,(function(){t.value&&(n.value="opacity"in t.value&&void 0!==t.value.opacity?t.value.opacity:1)}),{deep:!0,immediate:!0});var o=Ye(),c=o.addHistorySnapshot,a=function(n){var o={opacity:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),c()};return{opacity:n,updateOpacity:a}}});n("64c0");ku.render=yu,ku.__scopeId="data-v-b884607e";var Iu=ku,Eu=(n("c7cd"),Object(j["withScopeId"])("data-v-2d8ce9c0"));Object(j["pushScopeId"])("data-v-2d8ce9c0");var Cu={class:"element-outline"},xu={key:0,class:"row"},Su=Object(j["createVNode"])("div",{style:{flex:"2"}},"启用边框:",-1),Nu={class:"switch-wrapper",style:{flex:"3"}},Tu={class:"row"},wu=Object(j["createVNode"])("div",{style:{flex:"2"}},"边框样式:",-1),Lu=Object(j["createTextVNode"])("实线边框"),Vu=Object(j["createTextVNode"])("虚线边框"),_u={class:"row"},Bu=Object(j["createVNode"])("div",{style:{flex:"2"}},"边框颜色:",-1),Du={class:"row"},Mu=Object(j["createVNode"])("div",{style:{flex:"2"}},"边框粗细:",-1);Object(j["popScopeId"])();var Au=Eu((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Switch"),l=Object(j["resolveComponent"])("SelectOption"),i=Object(j["resolveComponent"])("Select"),u=Object(j["resolveComponent"])("ColorPicker"),d=Object(j["resolveComponent"])("ColorButton"),s=Object(j["resolveComponent"])("Popover"),f=Object(j["resolveComponent"])("InputNumber");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Cu,[e.fixed?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])("div",xu,[Su,Object(j["createVNode"])("div",Nu,[Object(j["createVNode"])(r,{checked:e.hasOutline,onChange:t[1]||(t[1]=function(t){return e.toggleOutline(t)})},null,8,["checked"])])])),e.hasOutline?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:1},[Object(j["createVNode"])("div",Tu,[wu,Object(j["createVNode"])(i,{style:{flex:"3"},value:e.outline.style,onChange:t[2]||(t[2]=function(t){return e.updateOutline({style:t})})},{default:Eu((function(){return[Object(j["createVNode"])(l,{value:"solid"},{default:Eu((function(){return[Lu]})),_:1}),Object(j["createVNode"])(l,{value:"dashed"},{default:Eu((function(){return[Vu]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])("div",_u,[Bu,Object(j["createVNode"])(s,{trigger:"click"},{content:Eu((function(){return[Object(j["createVNode"])(u,{modelValue:e.outline.color,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.updateOutline({color:t})})},null,8,["modelValue"])]})),default:Eu((function(){return[Object(j["createVNode"])(d,{color:e.outline.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",Du,[Mu,Object(j["createVNode"])(f,{value:e.outline.width,onChange:t[4]||(t[4]=function(t){return e.updateOutline({width:t})}),style:{flex:"3"}},null,8,["value"])])],64)):Object(j["createCommentVNode"])("",!0)])})),Pu=Object(j["withScopeId"])("data-v-39016b60"),Ru=Pu((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconPlatte"),l=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])(l,{class:"color-btn"},{default:Pu((function(){return[Object(j["createVNode"])("div",{class:"color-block",style:{backgroundColor:n.color}},null,4),Object(j["createVNode"])(r,{class:"color-btn-icon"})]})),_:1})})),Fu={name:"color-button",props:{color:{type:String,required:!0}}};n("1401");Fu.render=Ru,Fu.__scopeId="data-v-39016b60";var Hu=Fu,zu=Object(j["defineComponent"])({name:"element-outline",components:{ColorButton:Hu},props:{fixed:{type:Boolean,default:!1}},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(),o=Object(j["ref"])(!1);Object(j["watch"])(t,(function(){t.value&&(n.value="outline"in t.value?t.value.outline:void 0,o.value=!!n.value)}),{deep:!0,immediate:!0});var c=Ye(),a=c.addHistorySnapshot,r=function(o){var c={outline:Object(x["a"])(Object(x["a"])({},n.value),o)};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c}),a()},l=function(n){if(n){var o={outline:{width:2,color:"#000",style:"solid"}};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o})}else e.commit(y.REMOVE_ELEMENT_PROPS,{id:t.value.id,propName:"outline"});a()};return{outline:n,hasOutline:o,toggleOutline:l,updateOutline:r}}});n("7d4a");zu.render=Au,zu.__scopeId="data-v-2d8ce9c0";var Uu=zu,Gu=Object(j["withScopeId"])("data-v-5cca6474");Object(j["pushScopeId"])("data-v-5cca6474");var qu={class:"element-shadow"},Xu={class:"row"},Wu=Object(j["createVNode"])("div",{style:{flex:"2"}},"启用阴影:",-1),Yu={class:"switch-wrapper",style:{flex:"3"}},Zu={class:"row"},Ju=Object(j["createVNode"])("div",{style:{flex:"2"}},"水平阴影:",-1),Ku={class:"row"},Qu=Object(j["createVNode"])("div",{style:{flex:"2"}},"垂直阴影:",-1),$u={class:"row"},ed=Object(j["createVNode"])("div",{style:{flex:"2"}},"模糊距离:",-1),td={class:"row"},nd=Object(j["createVNode"])("div",{style:{flex:"2"}},"阴影颜色:",-1);Object(j["popScopeId"])();var od=Gu((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Switch"),l=Object(j["resolveComponent"])("Slider"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover");return Object(j["openBlock"])(),Object(j["createBlock"])("div",qu,[Object(j["createVNode"])("div",Xu,[Wu,Object(j["createVNode"])("div",Yu,[Object(j["createVNode"])(r,{checked:e.hasShadow,onChange:t[1]||(t[1]=function(t){return e.toggleShadow(t)})},null,8,["checked"])])]),e.hasShadow?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",Zu,[Ju,Object(j["createVNode"])(l,{min:0,max:10,step:1,value:e.shadow.h,onChange:t[2]||(t[2]=function(t){return e.updateShadow({h:t})}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",Ku,[Qu,Object(j["createVNode"])(l,{min:0,max:10,step:1,value:e.shadow.v,onChange:t[3]||(t[3]=function(t){return e.updateShadow({v:t})}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",$u,[ed,Object(j["createVNode"])(l,{min:1,max:20,step:1,value:e.shadow.blur,onChange:t[4]||(t[4]=function(t){return e.updateShadow({blur:t})}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",td,[nd,Object(j["createVNode"])(d,{trigger:"click"},{content:Gu((function(){return[Object(j["createVNode"])(i,{modelValue:e.shadow.color,"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.updateShadow({color:t})})},null,8,["modelValue"])]})),default:Gu((function(){return[Object(j["createVNode"])(u,{color:e.shadow.color,style:{flex:"3"}},null,8,["color"])]})),_:1})])],64)):Object(j["createCommentVNode"])("",!0)])})),cd=Object(j["defineComponent"])({name:"element-shadow",components:{ColorButton:Hu},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(),o=Object(j["ref"])(!1);Object(j["watch"])(t,(function(){t.value&&(n.value="shadow"in t.value?t.value.shadow:void 0,o.value=!!n.value)}),{deep:!0,immediate:!0});var c=Ye(),a=c.addHistorySnapshot,r=function(o){var c={shadow:Object(x["a"])(Object(x["a"])({},n.value),o)};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c}),a()},l=function(n){if(n){var o={shadow:{h:1,v:1,blur:2,color:"#000"}};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o})}else e.commit(y.REMOVE_ELEMENT_PROPS,{id:t.value.id,propName:"shadow"});a()};return{shadow:n,hasShadow:o,toggleShadow:l,updateShadow:r}}});n("c2a4");cd.render=od,cd.__scopeId="data-v-5cca6474";var ad=cd,rd=[{label:"大标题",style:{fontSize:"26px",fontWeight:700},cmd:[{command:"clear"},{command:"fontsize",value:"48px"},{command:"align",value:"center"},{command:"bold"}]},{label:"小标题",style:{fontSize:"22px",fontWeight:700},cmd:[{command:"clear"},{command:"fontsize",value:"36px"},{command:"align",value:"center"},{command:"bold"}]},{label:"正文",style:{fontSize:"20px"},cmd:[{command:"clear"},{command:"fontsize",value:"20px"}]},{label:"正文[小]",style:{fontSize:"18px"},cmd:[{command:"clear"},{command:"fontsize",value:"18px"}]},{label:"注释 1",style:{fontSize:"16px",fontStyle:"italic"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"em"}]},{label:"注释 2",style:{fontSize:"16px",textDecoration:"underline"},cmd:[{command:"clear"},{command:"fontsize",value:"16px"},{command:"underline"}]}],ld=ce,id=Object(j["defineComponent"])({name:"text-style-panel",components:{ElementOpacity:Iu,ElementOutline:Uu,ElementShadow:ad},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["computed"])((function(){return e.state.richTextAttrs})),o=Object(j["ref"])(),c=Object(j["ref"])(),a=Object(j["ref"])();Object(j["watch"])(t,(function(){t.value&&"text"===t.value.type&&(o.value=t.value.fill||"#000",c.value=t.value.lineHeight||1.5,a.value=t.value.wordSpace||0)}),{deep:!0,immediate:!0});var r=Object(j["computed"])((function(){return e.state.availableFonts})),l=["12px","14px","16px","18px","20px","22px","24px","28px","32px","36px","40px","44px","48px","54px","60px","66px","72px","76px","80px","88px","96px","104px","112px","120px"],i=[.9,1,1.15,1.2,1.4,1.5,1.8,2,2.5,3],u=[0,1,2,3,4,5,6,8,10],d=function(e,t){Tc.emit(Fo.RICH_TEXT_COMMAND,{command:e,value:t})},s=function(e){Tc.emit(Fo.RICH_TEXT_COMMAND,e)},f=Ye(),p=f.addHistorySnapshot,b=function(n){var o={lineHeight:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),p()},m=function(n){var o={wordSpace:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),p()},v=function(n){var o={fill:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),p()};return{fill:o,lineHeight:c,wordSpace:a,richTextAttrs:n,availableFonts:r,webFonts:ld,fontSizeOptions:l,lineHeightOptions:i,wordSpaceOptions:u,updateLineHeight:b,updateWordSpace:m,updateFill:v,emitRichTextCommand:d,emitBatchRichTextCommand:s,presetStyles:rd}}});n("0e60");id.render=vu,id.__scopeId="data-v-ee8b653e";var ud=id,dd=Object(j["withScopeId"])("data-v-6bffd840");Object(j["pushScopeId"])("data-v-6bffd840");var sd={class:"image-style-panel"},fd=Object(j["createTextVNode"])(" 裁剪图片"),pd={class:"clip"},bd=Object(j["createVNode"])("div",{class:"title"},"按形状:",-1),md={class:"shape-clip"},vd={key:0,class:"title"},Od={class:"filter"},hd={class:"name"},jd={class:"value"},gd=Object(j["createTextVNode"])(" 设置滤镜"),yd=Object(j["createTextVNode"])(" 替换图片"),kd=Object(j["createTextVNode"])(" 重置样式"),Id=Object(j["createTextVNode"])(" 设为背景");Object(j["popScopeId"])();var Ed=dd((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconTailoring"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("ButtonGroup"),u=Object(j["resolveComponent"])("IconDown"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("Slider"),f=Object(j["resolveComponent"])("IconColorFilter"),p=Object(j["resolveComponent"])("ElementFlip"),b=Object(j["resolveComponent"])("Divider"),m=Object(j["resolveComponent"])("ElementOutline"),v=Object(j["resolveComponent"])("ElementShadow"),O=Object(j["resolveComponent"])("IconTransform"),h=Object(j["resolveComponent"])("FileInput"),g=Object(j["resolveComponent"])("IconUndo"),y=Object(j["resolveComponent"])("IconTheme");return Object(j["openBlock"])(),Object(j["createBlock"])("div",sd,[Object(j["createVNode"])("div",{class:"origin-image",style:{backgroundImage:"url(".concat(e.handleElement.src,")")}},null,4),Object(j["createVNode"])(i,{class:"row"},{default:dd((function(){return[Object(j["createVNode"])(l,{style:{flex:"5"},onClick:t[1]||(t[1]=function(t){return e.clipImage()})},{default:dd((function(){return[Object(j["createVNode"])(r,{class:"btn-icon"}),fd]})),_:1}),Object(j["createVNode"])(d,{trigger:"click",visible:e.clipPanelVisible,"onUpdate:visible":t[2]||(t[2]=function(t){return e.clipPanelVisible=t})},{content:dd((function(){return[Object(j["createVNode"])("div",pd,[bd,Object(j["createVNode"])("div",md,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.shapeClipPathOptions,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"shape-clip-item",key:n,onClick:function(t){return e.presetImageClip(n)}},[Object(j["createVNode"])("div",{class:"shape",style:{clipPath:t.style}},null,4)],8,["onClick"])})),128))]),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.ratioClipOptions,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:t.label},[t.label?(Object(j["openBlock"])(),Object(j["createBlock"])("div",vd,"按"+Object(j["toDisplayString"])(t.label)+"",1)):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(i,{class:"row"},{default:dd((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t.children,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{style:{flex:"1"},key:t.key,onClick:function(n){return e.presetImageClip("rect",t.ratio)}},{default:dd((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(t.key),1)]})),_:2},1032,["onClick"])})),128))]})),_:2},1024)],64)})),128))])]})),default:dd((function(){return[Object(j["createVNode"])(l,{class:"no-padding",style:{flex:"1"}},{default:dd((function(){return[Object(j["createVNode"])(u)]})),_:1})]})),_:1},8,["visible"])]})),_:1}),Object(j["createVNode"])(d,{trigger:"click"},{content:dd((function(){return[Object(j["createVNode"])("div",Od,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.filterOptions,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"filter-item",key:t.key},[Object(j["createVNode"])("div",hd,Object(j["toDisplayString"])(t.label),1),Object(j["createVNode"])(s,{class:"filter-slider",max:t.max,min:t.min,step:t.step,value:t.value,onChange:function(n){return e.updateFilter(t,n)}},null,8,["max","min","step","value","onChange"]),Object(j["createVNode"])("div",jd,Object(j["toDisplayString"])(t.value),1)])})),128))])]})),default:dd((function(){return[Object(j["createVNode"])(l,{class:"full-width-btn"},{default:dd((function(){return[Object(j["createVNode"])(f,{class:"btn-icon"}),gd]})),_:1})]})),_:1}),Object(j["createVNode"])(p),Object(j["createVNode"])(b),Object(j["createVNode"])(m),Object(j["createVNode"])(b),Object(j["createVNode"])(v),Object(j["createVNode"])(b),Object(j["createVNode"])(h,{onChange:t[3]||(t[3]=function(t){return e.replaceImage(t)})},{default:dd((function(){return[Object(j["createVNode"])(l,{class:"full-width-btn"},{default:dd((function(){return[Object(j["createVNode"])(O,{class:"btn-icon"}),yd]})),_:1})]})),_:1}),Object(j["createVNode"])(l,{class:"full-width-btn",onClick:t[4]||(t[4]=function(t){return e.resetImage()})},{default:dd((function(){return[Object(j["createVNode"])(g,{class:"btn-icon"}),kd]})),_:1}),Object(j["createVNode"])(l,{class:"full-width-btn",onClick:t[5]||(t[5]=function(t){return e.setBackgroundImage()})},{default:dd((function(){return[Object(j["createVNode"])(y,{class:"btn-icon"}),Id]})),_:1})])})),Cd=Object(j["withScopeId"])("data-v-6b6342c9");Object(j["pushScopeId"])("data-v-6b6342c9");var xd={class:"element-flip"},Sd=Object(j["createTextVNode"])(" 垂直翻转"),Nd=Object(j["createTextVNode"])(" 水平翻转");Object(j["popScopeId"])();var Td=Cd((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconFlipVertically"),l=Object(j["resolveComponent"])("CheckboxButton"),i=Object(j["resolveComponent"])("IconFlipHorizontally"),u=Object(j["resolveComponent"])("CheckboxButtonGroup");return Object(j["openBlock"])(),Object(j["createBlock"])("div",xd,[Object(j["createVNode"])(u,{class:"row"},{default:Cd((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},checked:e.flipV,onClick:t[1]||(t[1]=function(t){return e.updateFlip({flipV:!e.flipV})})},{default:Cd((function(){return[Object(j["createVNode"])(r),Sd]})),_:1},8,["checked"]),Object(j["createVNode"])(l,{style:{flex:"1"},checked:e.flipH,onClick:t[2]||(t[2]=function(t){return e.updateFlip({flipH:!e.flipH})})},{default:Cd((function(){return[Object(j["createVNode"])(i),Nd]})),_:1},8,["checked"])]})),_:1})])})),wd=Object(j["defineComponent"])({name:"element-flip",setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(!1),o=Object(j["ref"])(!1);Object(j["watch"])(t,(function(){t.value&&["image","shape"].includes(t.value.type)&&(n.value=!!t.value.flipH,o.value=!!t.value.flipV)}),{deep:!0,immediate:!0});var c=Ye(),a=c.addHistorySnapshot,r=function(n){e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:n}),a()};return{flipH:n,flipV:o,updateFlip:r}}});n("cd46");wd.render=Td,wd.__scopeId="data-v-6b6342c9";var Ld=wd,Vd=[{label:"模糊",key:"blur",default:0,value:0,unit:"px",max:10,step:1},{label:"亮度",key:"brightness",default:100,value:100,unit:"%",max:200,step:5},{label:"对比度",key:"contrast",default:100,value:100,unit:"%",max:200,step:5},{label:"灰度",key:"grayscale",default:0,value:0,unit:"%",max:100,step:5},{label:"饱和度",key:"saturate",default:100,value:100,unit:"%",max:200,step:5},{label:"色相",key:"hue-rotate",default:0,value:0,unit:"deg",max:360,step:10},{label:"不透明度",key:"opacity",default:100,value:100,unit:"%",max:100,step:5}],_d=bo,Bd=[{label:"纵横比(方形)",children:[{key:"1:1",ratio:1}]},{label:"纵横比(纵向)",children:[{key:"2:3",ratio:1.5},{key:"3:4",ratio:4/3},{key:"3:5",ratio:5/3},{key:"4:5",ratio:5/4}]},{label:"纵横比(横向)",children:[{key:"3:2",ratio:2/3},{key:"4:3",ratio:3/4},{key:"5:3",ratio:.6},{key:"5:4",ratio:.8}]},{children:[{key:"16:9",ratio:9/16},{key:"16:10",ratio:.625}]}],Dd=Object(j["defineComponent"])({name:"image-style-panel",components:{ElementOutline:Uu,ElementShadow:ad,ElementFlip:Ld},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["computed"])((function(){return e.getters.currentSlide})),o=Object(j["ref"])(!1),c=Object(j["ref"])(JSON.parse(JSON.stringify(Vd)));Object(j["watch"])(t,(function(){if(t.value&&"image"===t.value.type){var e=t.value.filters;c.value=e?Vd.map((function(t){return void 0!==e[t.key]?Object(x["a"])(Object(x["a"])({},t),{},{value:parseInt(e[t.key])}):t})):JSON.parse(JSON.stringify(Vd))}}),{deep:!0,immediate:!0});var a=Ye(),r=a.addHistorySnapshot,l=function(n,o){var c=t.value.filters||{},a=Object(x["a"])(Object(x["a"])({},c),{},Object(U["a"])({},n.key,"".concat(o).concat(n.unit))),l={filters:a};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:l}),r()},i=function(){e.commit(y.SET_CLIPING_IMAGE_ELEMENT_ID,t.value.id),o.value=!1},u=function(){var e=t.value.width,n=t.value.height,o=t.value.left,c=t.value.top,a=t.value.clip?t.value.clip.range:[[0,0],[100,100]],r=e/((a[1][0]-a[0][0])/100),l=n/((a[1][1]-a[0][1])/100),i=o-r*(a[0][0]/100),u=c-l*(a[0][1]/100);return{originClipRange:a,originWidth:r,originHeight:l,originLeft:i,originTop:u}},d=function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=u(),a=c.originClipRange,l=c.originWidth,d=c.originHeight,s=c.originLeft,f=c.originTop;if(o){var p,b=d/l,m=0,v=100;if(b>o){var O=(1-o/b)/2*100;p=[[m,O],[v,v-O]]}else{var h=(1-b/o)/2*100;p=[[h,m],[v-h,v]]}e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:{clip:Object(x["a"])(Object(x["a"])({},t.value.clip),{},{shape:n,range:p}),left:s+l*(p[0][0]/100),top:f+d*(p[0][1]/100),width:l*(p[1][0]-p[0][0])/100,height:d*(p[1][1]-p[0][1])/100}})}else e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:{clip:Object(x["a"])(Object(x["a"])({},t.value.clip),{},{shape:n,range:a})}});i(),r()},s=function(n){var o=n[0];o&&(Je(o).then((function(n){var o={src:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o})})),r())},f=function(){if(t.value.clip){var n=u(),o=n.originWidth,c=n.originHeight,a=n.originLeft,l=n.originTop;e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:{left:a,top:l,width:o,height:c}})}e.commit(y.REMOVE_ELEMENT_PROPS,{id:t.value.id,propName:["clip","outline","flip","shadow","filters"]}),r()},p=function(){var o=Object(x["a"])(Object(x["a"])({},n.value.background),{},{type:"image",image:t.value.src,imageSize:"cover"});e.commit(y.UPDATE_SLIDE,{background:o}),r()};return{clipPanelVisible:o,shapeClipPathOptions:_d,ratioClipOptions:Bd,filterOptions:c,handleElement:t,updateFilter:l,clipImage:i,presetImageClip:d,replaceImage:s,resetImage:f,setBackgroundImage:p}}});n("7751");Dd.render=Ed,Dd.__scopeId="data-v-6bffd840";var Md=Dd,Ad=Object(j["withScopeId"])("data-v-998a7a02");Object(j["pushScopeId"])("data-v-998a7a02");var Pd={class:"shape-style-panel"},Rd={class:"row"},Fd=Object(j["createTextVNode"])("纯色填充"),Hd=Object(j["createTextVNode"])("渐变填充"),zd=Object(j["createVNode"])("div",{style:{flex:"1"}},null,-1),Ud=Object(j["createTextVNode"])("线性渐变"),Gd=Object(j["createTextVNode"])("径向渐变"),qd={class:"row"},Xd=Object(j["createVNode"])("div",{style:{flex:"2"}},"起点颜色:",-1),Wd={class:"row"},Yd=Object(j["createVNode"])("div",{style:{flex:"2"}},"终点颜色:",-1),Zd={key:0,class:"row"},Jd=Object(j["createVNode"])("div",{style:{flex:"2"}},"渐变角度:",-1);Object(j["popScopeId"])();var Kd=Ad((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SelectOption"),l=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("Slider"),f=Object(j["resolveComponent"])("ElementFlip"),p=Object(j["resolveComponent"])("Divider"),b=Object(j["resolveComponent"])("ElementOutline"),m=Object(j["resolveComponent"])("ElementShadow"),v=Object(j["resolveComponent"])("ElementOpacity");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Pd,[Object(j["createVNode"])("div",Rd,[Object(j["createVNode"])(l,{style:{flex:"10"},value:e.fillType,onChange:t[1]||(t[1]=function(t){return e.updateFillType(t)})},{default:Ad((function(){return[Object(j["createVNode"])(r,{value:"fill"},{default:Ad((function(){return[Fd]})),_:1}),Object(j["createVNode"])(r,{value:"gradient"},{default:Ad((function(){return[Hd]})),_:1})]})),_:1},8,["value"]),zd,"fill"===e.fillType?(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:0,trigger:"click"},{content:Ad((function(){return[Object(j["createVNode"])(i,{modelValue:e.fill,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Ad((function(){return[Object(j["createVNode"])(u,{color:e.fill,style:{flex:"10"}},null,8,["color"])]})),_:1})):(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,style:{flex:"10"},value:e.gradient.type,onChange:t[3]||(t[3]=function(t){return e.updateGradient({type:t})})},{default:Ad((function(){return[Object(j["createVNode"])(r,{value:"linear"},{default:Ad((function(){return[Ud]})),_:1}),Object(j["createVNode"])(r,{value:"radial"},{default:Ad((function(){return[Gd]})),_:1})]})),_:1},8,["value"]))]),"gradient"===e.fillType?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",qd,[Xd,Object(j["createVNode"])(d,{trigger:"click"},{content:Ad((function(){return[Object(j["createVNode"])(i,{modelValue:e.gradient.color[0],"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateGradient({color:[t,e.gradient.color[1]]})})},null,8,["modelValue"])]})),default:Ad((function(){return[Object(j["createVNode"])(u,{color:e.gradient.color[0],style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",Wd,[Yd,Object(j["createVNode"])(d,{trigger:"click"},{content:Ad((function(){return[Object(j["createVNode"])(i,{modelValue:e.gradient.color[1],"onUpdate:modelValue":t[5]||(t[5]=function(t){return e.updateGradient({color:[e.gradient.color[0],t]})})},null,8,["modelValue"])]})),default:Ad((function(){return[Object(j["createVNode"])(u,{color:e.gradient.color[1],style:{flex:"3"}},null,8,["color"])]})),_:1})]),"linear"===e.gradient.type?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Zd,[Jd,Object(j["createVNode"])(s,{min:0,max:360,step:15,value:e.gradient.rotate,style:{flex:"3"},onChange:t[6]||(t[6]=function(t){return e.updateGradient({rotate:t})})},null,8,["value"])])):Object(j["createCommentVNode"])("",!0)],64)):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(f),Object(j["createVNode"])(p),Object(j["createVNode"])(b),Object(j["createVNode"])(p),Object(j["createVNode"])(m),Object(j["createVNode"])(p),Object(j["createVNode"])(v)])})),Qd=Object(j["defineComponent"])({name:"shape-style-panel",components:{ElementOpacity:Iu,ElementOutline:Uu,ElementShadow:ad,ElementFlip:Ld,ColorButton:Hu},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(),o=Object(j["ref"])(),c=Object(j["ref"])("fill");Object(j["watch"])(t,(function(){t.value&&"shape"===t.value.type&&(n.value=t.value.fill||"#000",o.value=t.value.gradient||{type:"linear",rotate:0,color:[n.value,"#fff"]},c.value=t.value.gradient?"gradient":"fill")}),{deep:!0,immediate:!0});var a=Ye(),r=a.addHistorySnapshot,l=function(n){if("fill"===n)e.commit(y.REMOVE_ELEMENT_PROPS,{id:t.value.id,propName:"gradient"});else{var c={gradient:o.value};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c})}r()},i=function(n){var c={gradient:Object(x["a"])(Object(x["a"])({},o.value),n)};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c}),r()},u=function(n){var o={fill:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),r()};return{fill:n,gradient:o,fillType:c,updateFillType:l,updateFill:u,updateGradient:i}}});n("6f16");Qd.render=Kd,Qd.__scopeId="data-v-998a7a02";var $d=Qd,es=Object(j["withScopeId"])("data-v-65b24fb3");Object(j["pushScopeId"])("data-v-65b24fb3");var ts={class:"line-style-panel"},ns={class:"row"},os=Object(j["createVNode"])("div",{style:{flex:"2"}},"线条样式:",-1),cs=Object(j["createTextVNode"])("实线"),as=Object(j["createTextVNode"])("虚线"),rs={class:"row"},ls=Object(j["createVNode"])("div",{style:{flex:"2"}},"线条颜色:",-1),is={class:"row"},us=Object(j["createVNode"])("div",{style:{flex:"2"}},"线条宽度:",-1),ds={class:"row"},ss=Object(j["createVNode"])("div",{style:{flex:"2"}},"起点样式:",-1),fs=Object(j["createTextVNode"])("无"),ps=Object(j["createTextVNode"])("箭头"),bs=Object(j["createTextVNode"])("圆点"),ms={class:"row"},vs=Object(j["createVNode"])("div",{style:{flex:"2"}},"终点样式:",-1),Os=Object(j["createTextVNode"])("无"),hs=Object(j["createTextVNode"])("箭头"),js=Object(j["createTextVNode"])("圆点");Object(j["popScopeId"])();var gs=es((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SelectOption"),l=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("InputNumber"),f=Object(j["resolveComponent"])("Divider"),p=Object(j["resolveComponent"])("ElementShadow");return Object(j["openBlock"])(),Object(j["createBlock"])("div",ts,[Object(j["createVNode"])("div",ns,[os,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.handleElement.style,onChange:t[1]||(t[1]=function(t){return e.updateLine({style:t})})},{default:es((function(){return[Object(j["createVNode"])(r,{value:"solid"},{default:es((function(){return[cs]})),_:1}),Object(j["createVNode"])(r,{value:"dashed"},{default:es((function(){return[as]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])("div",rs,[ls,Object(j["createVNode"])(d,{trigger:"click"},{content:es((function(){return[Object(j["createVNode"])(i,{modelValue:e.handleElement.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateLine({color:t})})},null,8,["modelValue"])]})),default:es((function(){return[Object(j["createVNode"])(u,{color:e.handleElement.color,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",is,[us,Object(j["createVNode"])(s,{value:e.handleElement.width,onChange:t[3]||(t[3]=function(t){return e.updateLine({width:t})}),style:{flex:"3"}},null,8,["value"])]),Object(j["createVNode"])("div",ds,[ss,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.handleElement.points[0],onChange:t[4]||(t[4]=function(t){return e.updateLine({points:[t,e.handleElement.points[1]]})})},{default:es((function(){return[Object(j["createVNode"])(r,{value:""},{default:es((function(){return[fs]})),_:1}),Object(j["createVNode"])(r,{value:"arrow"},{default:es((function(){return[ps]})),_:1}),Object(j["createVNode"])(r,{value:"dot"},{default:es((function(){return[bs]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])("div",ms,[vs,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.handleElement.points[1],onChange:t[5]||(t[5]=function(t){return e.updateLine({points:[e.handleElement.points[0],t]})})},{default:es((function(){return[Object(j["createVNode"])(r,{value:""},{default:es((function(){return[Os]})),_:1}),Object(j["createVNode"])(r,{value:"arrow"},{default:es((function(){return[hs]})),_:1}),Object(j["createVNode"])(r,{value:"dot"},{default:es((function(){return[js]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])(f),Object(j["createVNode"])(p)])})),ys=Object(j["defineComponent"])({name:"line-style-panel",components:{ElementShadow:ad,ColorButton:Hu},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Ye(),o=n.addHistorySnapshot,c=function(n){e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:n}),o()};return{handleElement:t,updateLine:c}}});n("8df8");ys.render=gs,ys.__scopeId="data-v-65b24fb3";var ks=ys,Is=Object(j["withScopeId"])("data-v-62789f0d");Object(j["pushScopeId"])("data-v-62789f0d");var Es={class:"chart-style-panel"},Cs=Object(j["createTextVNode"])(" 编辑图表数据 "),xs={class:"row"},Ss=Object(j["createTextVNode"])("面积图样式"),Ns=Object(j["createTextVNode"])("散点图样式"),Ts={class:"row"},ws=Object(j["createTextVNode"])("使用平滑曲线"),Ls={key:1,class:"row"},Vs=Object(j["createTextVNode"])("条形图样式"),_s={key:2,class:"row"},Bs=Object(j["createTextVNode"])("环形图样式"),Ds={class:"row"},Ms=Object(j["createVNode"])("div",{style:{flex:"2"}},"背景填充:",-1),As={class:"row"},Ps=Object(j["createVNode"])("div",{style:{flex:"2"}},"主题配色:",-1),Rs={class:"row"},Fs=Object(j["createVNode"])("div",{style:{flex:"2"}},"网格颜色:",-1);Object(j["popScopeId"])();var Hs=Is((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconEdit"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Divider"),u=Object(j["resolveComponent"])("Checkbox"),d=Object(j["resolveComponent"])("ColorPicker"),s=Object(j["resolveComponent"])("ColorButton"),f=Object(j["resolveComponent"])("Popover"),p=Object(j["resolveComponent"])("ElementOutline"),b=Object(j["resolveComponent"])("ChartDataEditor"),m=Object(j["resolveComponent"])("Modal");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Es,[Object(j["createVNode"])(l,{class:"full-width-btn",onClick:t[1]||(t[1]=function(t){return e.chartDataEditorVisible=!0})},{default:Is((function(){return[Object(j["createVNode"])(r,{class:"btn-icon"}),Cs]})),_:1}),Object(j["createVNode"])(i),"line"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",xs,[Object(j["createVNode"])(u,{onChange:t[2]||(t[2]=function(t){return e.updateOptions({showArea:t.target.checked})}),checked:e.showArea,style:{flex:"1"}},{default:Is((function(){return[Ss]})),_:1},8,["checked"]),Object(j["createVNode"])(u,{onChange:t[3]||(t[3]=function(t){return e.updateOptions({showLine:!t.target.checked})}),checked:!e.showLine,style:{flex:"1"}},{default:Is((function(){return[Ns]})),_:1},8,["checked"])]),Object(j["createVNode"])("div",Ts,[Object(j["createVNode"])(u,{onChange:t[4]||(t[4]=function(t){return e.updateOptions({lineSmooth:t.target.checked})}),checked:e.lineSmooth},{default:Is((function(){return[ws]})),_:1},8,["checked"])])],64)):Object(j["createCommentVNode"])("",!0),"bar"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Ls,[Object(j["createVNode"])(u,{onChange:t[5]||(t[5]=function(t){return e.updateOptions({horizontalBars:t.target.checked})}),checked:e.horizontalBars},{default:Is((function(){return[Vs]})),_:1},8,["checked"])])):Object(j["createCommentVNode"])("",!0),"pie"===e.handleElement.chartType?(Object(j["openBlock"])(),Object(j["createBlock"])("div",_s,[Object(j["createVNode"])(u,{onChange:t[6]||(t[6]=function(t){return e.updateOptions({donut:t.target.checked})}),checked:e.donut},{default:Is((function(){return[Bs]})),_:1},8,["checked"])])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(i),Object(j["createVNode"])("div",Ds,[Ms,Object(j["createVNode"])(f,{trigger:"click"},{content:Is((function(){return[Object(j["createVNode"])(d,{modelValue:e.fill,"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.updateFill(t)})},null,8,["modelValue"])]})),default:Is((function(){return[Object(j["createVNode"])(s,{color:e.fill,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",As,[Ps,Object(j["createVNode"])(f,{trigger:"click"},{content:Is((function(){return[Object(j["createVNode"])(d,{modelValue:e.themeColor,"onUpdate:modelValue":t[8]||(t[8]=function(t){return e.updateTheme(t)})},null,8,["modelValue"])]})),default:Is((function(){return[Object(j["createVNode"])(s,{color:e.themeColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",Rs,[Fs,Object(j["createVNode"])(f,{trigger:"click"},{content:Is((function(){return[Object(j["createVNode"])(d,{modelValue:e.gridColor,"onUpdate:modelValue":t[9]||(t[9]=function(t){return e.updateGridColor(t)})},null,8,["modelValue"])]})),default:Is((function(){return[Object(j["createVNode"])(s,{color:e.gridColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])(i),Object(j["createVNode"])(p),Object(j["createVNode"])(m,{visible:e.chartDataEditorVisible,"onUpdate:visible":t[12]||(t[12]=function(t){return e.chartDataEditorVisible=t}),footer:null,centered:"",closable:!1,width:648,destroyOnClose:""},{default:Is((function(){return[Object(j["createVNode"])(b,{data:e.handleElement.data,onClose:t[10]||(t[10]=function(t){return e.chartDataEditorVisible=!1}),onSave:t[11]||(t[11]=function(t){return e.updateData(t)})},null,8,["data"])]})),_:1},8,["visible"])])})),zs=Object(j["withScopeId"])("data-v-cb21a292");Object(j["pushScopeId"])("data-v-cb21a292");var Us={class:"chart-data-editor"},Gs={class:"editor-content"},qs={class:"range-box"},Xs={class:"btns"},Ws=Object(j["createTextVNode"])("取消"),Ys=Object(j["createTextVNode"])("确认");Object(j["popScopeId"])();var Zs=zs((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Us,[Object(j["createVNode"])("div",Gs,[Object(j["createVNode"])("div",qs,[Object(j["createVNode"])("div",{class:"temp-range",style:{width:e.tempRangeSize.width+"px",height:e.tempRangeSize.height+"px"}},null,4),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.rangeLines,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["range-line",e.type],key:e.type,style:e.style},null,6)})),128)),Object(j["createVNode"])("div",{class:"resizable",style:e.resizablePointStyle,onMousedown:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.changeSelectRange(t)}),["stop"]))},null,36)]),Object(j["createVNode"])("table",null,[Object(j["createVNode"])("tbody",null,[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(30,(function(t){return Object(j["createVNode"])("tr",{key:t},[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(7,(function(n){return Object(j["createVNode"])("td",{key:n,class:{head:1===n&&t<=e.selectedRange[1]}},[Object(j["createVNode"])("input",{class:["item",{selected:t<=e.selectedRange[1]&&n<=e.selectedRange[0]}],id:"cell-".concat(t-1,"-").concat(n-1),autocomplete:"off",onFocus:function(o){return e.focusCell=[t-1,n-1]}},null,42,["id","onFocus"])],2)})),64))])})),64))])])]),Object(j["createVNode"])("div",Xs,[Object(j["createVNode"])(r,{class:"btn",onClick:t[2]||(t[2]=function(t){return e.closeEditor()})},{default:zs((function(){return[Ws]})),_:1}),Object(j["createVNode"])(r,{type:"primary",class:"btn",onClick:t[3]||(t[3]=function(t){return e.getTableData()})},{default:zs((function(){return[Ys]})),_:1})])])})),Js=100,Ks=32,Qs=Object(j["defineComponent"])({name:"chart-data-editor",props:{data:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])([0,0]),c=Object(j["ref"])({width:0,height:0}),a=Object(j["ref"])(null),r=Object(j["computed"])((function(){var e=o.value[0]*Js,t=o.value[1]*Ks;return[{type:"t",style:{width:e+"px"}},{type:"b",style:{top:t+"px",width:e+"px"}},{type:"l",style:{height:t+"px"}},{type:"r",style:{left:e+"px",height:t+"px"}}]})),l=Object(j["computed"])((function(){var e=o.value[0]*Js,t=o.value[1]*Ks;return{left:e+"px",top:t+"px"}})),i=function(){for(var t=[],n=e.data,c=n.labels,a=n.series,r=c.length,l=a.length,i=0;i<r;i++){for(var u=[c[i]],d=0;d<l;d++)u.push(a[d][i]+"");t.push(u)}for(var s=0;s<r;s++)for(var f=0;f<l+1;f++){var p=document.querySelector("#cell-".concat(s,"-").concat(f));p&&(p.value=t[s][f]+"")}o.value=[l+1,r]};Object(j["onMounted"])(i);var u=function(){if(a.value){var e=Object(qt["a"])(a.value,2),t=e[0],n=e[1],o=document.querySelector("#cell-".concat(t+1,"-").concat(n));o&&o.focus()}},d=function(e){var t=e.key.toUpperCase();t===je.ENTER&&u()};Object(j["onMounted"])((function(){document.addEventListener("keydown",d)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",d)}));var s=function(){for(var e=Object(qt["a"])(o.value,2),t=e[0],c=e[1],a=[],r=[],l=0;l<c;l++){var i="类别".concat(l+1),u=document.querySelector("#cell-".concat(l,"-0"));u&&u.value&&(i=u.value),a.push(i)}for(var d=1;d<t;d++){for(var s=[],f=0;f<c;f++){var p=document.querySelector("#cell-".concat(f,"-").concat(d)),b=0;p&&p.value&&+p.value&&(b=+p.value),s.push(b)}r.push(s)}var m={labels:a,series:r};n("save",m)},f=function(){return n("close")},p=function(e){var t=!0,n=e.pageX,a=e.pageY,r=o.value[0]*Js,l=o.value[1]*Ks;document.onmousemove=function(e){if(t){var o=e.pageX,i=e.pageY,u=o-n,d=i-a,s=r+u,f=l+d;c.value={width:s,height:f}}},document.onmouseup=function(e){t=!1,document.onmousemove=null,document.onmouseup=null;var r=e.pageX,l=e.pageY;if(n!==r||a!==l){var i=c.value.width,u=c.value.height;i%Js>.5*Js&&(i+=Js-i%Js),u%Ks>.5*Ks&&(u+=Ks-u%Ks);var d=Math.round(u/Ks),s=Math.round(i/Js);d<3&&(d=3),s<2&&(s=2),o.value=[s,d],c.value={width:0,height:0}}}};return{tempRangeSize:c,rangeLines:r,resizablePointStyle:l,selectedRange:o,focusCell:a,changeSelectRange:p,getTableData:s,closeEditor:f}}});n("a283");Qs.render=Zs,Qs.__scopeId="data-v-cb21a292";var $s=Qs,ef=Object(j["defineComponent"])({name:"chart-style-panel",components:{ElementOutline:Uu,ChartDataEditor:$s,ColorButton:Hu},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(!1),o=Ye(),c=o.addHistorySnapshot,a=Object(j["ref"])(),r=Object(j["ref"])(""),l=Object(j["ref"])(""),i=Object(j["ref"])(!0),u=Object(j["ref"])(!0),d=Object(j["ref"])(!1),s=Object(j["ref"])(!1),f=Object(j["ref"])(!1);Object(j["watch"])(t,(function(){if(t.value&&"chart"===t.value.type){if(a.value=t.value.fill||"#000",t.value.options){var e=t.value.options,n=e.lineSmooth,o=e.showLine,c=e.showArea,p=e.horizontalBars,b=e.donut;void 0!==n&&(i.value=n),void 0!==o&&(u.value=o),void 0!==c&&(d.value=c),void 0!==p&&(s.value=p),void 0!==b&&(f.value=b)}r.value=t.value.themeColor,l.value=t.value.gridColor||"rgba(0, 0, 0, 0.4)"}}),{deep:!0,immediate:!0});var p=function(o){n.value=!1;var a={data:o};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:a}),c()},b=function(n){var o={fill:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),c()},m=function(n){var o=t.value.options||{},a=Object(x["a"])(Object(x["a"])({},o),n),r={options:a};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:r}),c()},v=function(n){var o={themeColor:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),c()},O=function(n){var o={gridColor:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),c()};return{chartDataEditorVisible:n,handleElement:t,updateData:p,fill:a,updateFill:b,lineSmooth:i,showLine:u,showArea:d,horizontalBars:s,donut:f,updateOptions:m,themeColor:r,gridColor:l,updateTheme:v,updateGridColor:O}}});n("89f5");ef.render=Hs,ef.__scopeId="data-v-62789f0d";var tf=ef,nf=Object(j["withScopeId"])("data-v-3179aa9a");Object(j["pushScopeId"])("data-v-3179aa9a");var of={class:"table-style-panel"},cf={class:"row"},af=Object(j["createVNode"])("div",{style:{flex:"2"}},"行数:",-1),rf={class:"row"},lf=Object(j["createVNode"])("div",{style:{flex:"2"}},"列数:",-1),uf={class:"row theme-switch"},df=Object(j["createVNode"])("div",{style:{flex:"2"}},"启用主题表格:",-1),sf={class:"switch-wrapper",style:{flex:"3"}},ff={class:"row"},pf=Object(j["createTextVNode"])("标题行"),bf=Object(j["createTextVNode"])("汇总行"),mf={class:"row"},vf=Object(j["createTextVNode"])("第一列"),Of=Object(j["createTextVNode"])("最后一列"),hf={class:"row"},jf=Object(j["createVNode"])("div",{style:{flex:"2"}},"主题颜色:",-1);Object(j["popScopeId"])();var gf=nf((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconFontSize"),l=Object(j["resolveComponent"])("SelectOption"),i=Object(j["resolveComponent"])("SelectOptGroup"),u=Object(j["resolveComponent"])("Select"),d=Object(j["resolveComponent"])("IconAddText"),s=Object(j["resolveComponent"])("InputGroup"),f=Object(j["resolveComponent"])("ColorPicker"),p=Object(j["resolveComponent"])("IconText"),b=Object(j["resolveComponent"])("Button"),m=Object(j["resolveComponent"])("Tooltip"),v=Object(j["resolveComponent"])("Popover"),O=Object(j["resolveComponent"])("IconFill"),h=Object(j["resolveComponent"])("ButtonGroup"),g=Object(j["resolveComponent"])("IconTextBold"),y=Object(j["resolveComponent"])("CheckboxButton"),k=Object(j["resolveComponent"])("IconTextItalic"),I=Object(j["resolveComponent"])("IconTextUnderline"),E=Object(j["resolveComponent"])("IconStrikethrough"),C=Object(j["resolveComponent"])("CheckboxButtonGroup"),x=Object(j["resolveComponent"])("IconAlignTextLeft"),S=Object(j["resolveComponent"])("RadioButton"),N=Object(j["resolveComponent"])("IconAlignTextCenter"),T=Object(j["resolveComponent"])("IconAlignTextRight"),w=Object(j["resolveComponent"])("RadioGroup"),L=Object(j["resolveComponent"])("Divider"),V=Object(j["resolveComponent"])("ElementOutline"),_=Object(j["resolveComponent"])("InputNumber"),B=Object(j["resolveComponent"])("Switch"),D=Object(j["resolveComponent"])("Checkbox"),M=Object(j["resolveComponent"])("ColorButton");return Object(j["openBlock"])(),Object(j["createBlock"])("div",of,[Object(j["createVNode"])(s,{compact:"",class:"row"},{default:nf((function(){return[Object(j["createVNode"])(u,{style:{flex:"3"},value:e.textAttrs.fontname,onChange:t[1]||(t[1]=function(t){return e.updateTextAttrs({fontname:t})})},{suffixIcon:nf((function(){return[Object(j["createVNode"])(r)]})),default:nf((function(){return[Object(j["createVNode"])(i,{label:"系统字体"},{default:nf((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:e.value,value:e.value},{default:nf((function(){return[Object(j["createVNode"])("span",{style:{fontFamily:e.value}},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(i,{label:"在线字体"},{default:nf((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:e.value,value:e.value},{default:nf((function(){return[Object(j["createVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"]),Object(j["createVNode"])(u,{style:{flex:"2"},value:e.textAttrs.fontsize,onChange:t[2]||(t[2]=function(t){return e.updateTextAttrs({fontsize:t})})},{suffixIcon:nf((function(){return[Object(j["createVNode"])(d)]})),default:nf((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.fontSizeOptions,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:e,value:e},{default:nf((function(){return[Object(j["createTextVNode"])(Object(j["toDisplayString"])(e),1)]})),_:2},1032,["value"])})),128))]})),_:1},8,["value"])]})),_:1}),Object(j["createVNode"])(h,{class:"row"},{default:nf((function(){return[Object(j["createVNode"])(v,{trigger:"click"},{content:nf((function(){return[Object(j["createVNode"])(f,{modelValue:e.textAttrs.color,"onUpdate:modelValue":t[3]||(t[3]=function(t){return e.updateTextAttrs({color:t})})},null,8,["modelValue"])]})),default:nf((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"文字颜色"},{default:nf((function(){return[Object(j["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:nf((function(){return[Object(j["createVNode"])(p),Object(j["createVNode"])("div",{class:"text-color-block",style:{backgroundColor:e.textAttrs.color}},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(v,{trigger:"click"},{content:nf((function(){return[Object(j["createVNode"])(f,{modelValue:e.textAttrs.backcolor,"onUpdate:modelValue":t[4]||(t[4]=function(t){return e.updateTextAttrs({backcolor:t})})},null,8,["modelValue"])]})),default:nf((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"单元格填充"},{default:nf((function(){return[Object(j["createVNode"])(b,{class:"text-color-btn",style:{flex:"1"}},{default:nf((function(){return[Object(j["createVNode"])(O),Object(j["createVNode"])("div",{class:"text-color-block",style:{backgroundColor:e.textAttrs.backcolor}},null,4)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1})]})),_:1}),Object(j["createVNode"])(C,{class:"row"},{default:nf((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"加粗"},{default:nf((function(){return[Object(j["createVNode"])(y,{style:{flex:"1"},checked:e.textAttrs.bold,onClick:t[5]||(t[5]=function(t){return e.updateTextAttrs({bold:!e.textAttrs.bold})})},{default:nf((function(){return[Object(j["createVNode"])(g)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"斜体"},{default:nf((function(){return[Object(j["createVNode"])(y,{style:{flex:"1"},checked:e.textAttrs.em,onClick:t[6]||(t[6]=function(t){return e.updateTextAttrs({em:!e.textAttrs.em})})},{default:nf((function(){return[Object(j["createVNode"])(k)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下划线"},{default:nf((function(){return[Object(j["createVNode"])(y,{style:{flex:"1"},checked:e.textAttrs.underline,onClick:t[7]||(t[7]=function(t){return e.updateTextAttrs({underline:!e.textAttrs.underline})})},{default:nf((function(){return[Object(j["createVNode"])(I)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除线"},{default:nf((function(){return[Object(j["createVNode"])(y,{style:{flex:"1"},checked:e.textAttrs.strikethrough,onClick:t[8]||(t[8]=function(t){return e.updateTextAttrs({strikethrough:!e.textAttrs.strikethrough})})},{default:nf((function(){return[Object(j["createVNode"])(E)]})),_:1},8,["checked"])]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(w,{class:"row","button-style":"solid",value:e.textAttrs.align,onChange:t[9]||(t[9]=function(t){return e.updateTextAttrs({align:t.target.value})})},{default:nf((function(){return[Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:nf((function(){return[Object(j["createVNode"])(S,{value:"left",style:{flex:"1"}},{default:nf((function(){return[Object(j["createVNode"])(x)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"居中"},{default:nf((function(){return[Object(j["createVNode"])(S,{value:"center",style:{flex:"1"}},{default:nf((function(){return[Object(j["createVNode"])(N)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(m,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:nf((function(){return[Object(j["createVNode"])(S,{value:"right",style:{flex:"1"}},{default:nf((function(){return[Object(j["createVNode"])(T)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1},8,["value"]),Object(j["createVNode"])(L),Object(j["createVNode"])(V,{fixed:!0}),Object(j["createVNode"])(L),Object(j["createVNode"])("div",cf,[af,Object(j["createVNode"])(_,{min:e.minRowCount,max:20,value:e.rowCount,"onUpdate:value":t[10]||(t[10]=function(t){return e.rowCount=t}),onPressEnter:t[11]||(t[11]=function(t){return e.setTableRow(t)}),onBlur:t[12]||(t[12]=function(t){return e.setTableRow(t)}),style:{flex:"3"}},null,8,["min","value"])]),Object(j["createVNode"])("div",rf,[lf,Object(j["createVNode"])(_,{min:e.minColCount,max:20,value:e.colCount,"onUpdate:value":t[13]||(t[13]=function(t){return e.colCount=t}),onPressEnter:t[14]||(t[14]=function(t){return e.setTableCol(t)}),onBlur:t[15]||(t[15]=function(t){return e.setTableCol(t)}),style:{flex:"3"}},null,8,["min","value"])]),Object(j["createVNode"])(L),Object(j["createVNode"])("div",uf,[df,Object(j["createVNode"])("div",sf,[Object(j["createVNode"])(B,{checked:e.hasTheme,onChange:t[16]||(t[16]=function(t){return e.toggleTheme(t)})},null,8,["checked"])])]),e.hasTheme?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",ff,[Object(j["createVNode"])(D,{onChange:t[17]||(t[17]=function(t){return e.updateTheme({rowHeader:t.target.checked})}),checked:e.theme.rowHeader,style:{flex:"1"}},{default:nf((function(){return[pf]})),_:1},8,["checked"]),Object(j["createVNode"])(D,{onChange:t[18]||(t[18]=function(t){return e.updateTheme({rowFooter:t.target.checked})}),checked:e.theme.rowFooter,style:{flex:"1"}},{default:nf((function(){return[bf]})),_:1},8,["checked"])]),Object(j["createVNode"])("div",mf,[Object(j["createVNode"])(D,{onChange:t[19]||(t[19]=function(t){return e.updateTheme({colHeader:t.target.checked})}),checked:e.theme.colHeader,style:{flex:"1"}},{default:nf((function(){return[vf]})),_:1},8,["checked"]),Object(j["createVNode"])(D,{onChange:t[20]||(t[20]=function(t){return e.updateTheme({colFooter:t.target.checked})}),checked:e.theme.colFooter,style:{flex:"1"}},{default:nf((function(){return[Of]})),_:1},8,["checked"])]),Object(j["createVNode"])("div",hf,[jf,Object(j["createVNode"])(v,{trigger:"click"},{content:nf((function(){return[Object(j["createVNode"])(f,{modelValue:e.theme.color,"onUpdate:modelValue":t[21]||(t[21]=function(t){return e.updateTheme({color:t})})},null,8,["modelValue"])]})),default:nf((function(){return[Object(j["createVNode"])(M,{color:e.theme.color,style:{flex:"3"}},null,8,["color"])]})),_:1})])],64)):Object(j["createCommentVNode"])("",!0)])})),yf=ce,kf=Object(j["defineComponent"])({name:"table-style-panel",components:{ElementOutline:Uu,ColorButton:Hu},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["computed"])((function(){return e.state.selectedTableCells})),o=Object(j["computed"])((function(){return e.state.availableFonts})),c=["12px","14px","16px","18px","20px","22px","24px","28px","32px"],a=Object(j["ref"])({bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"#000",fontsize:"12px",fontname:"微软雅黑",align:"left"}),r=Object(j["ref"])(),l=Object(j["ref"])(!1),i=Object(j["ref"])(0),u=Object(j["ref"])(0),d=Object(j["ref"])(0),s=Object(j["ref"])(0);Object(j["watch"])(t,(function(){t.value&&"table"===t.value.type&&(r.value=t.value.theme,l.value=!!r.value,i.value=t.value.data.length,u.value=t.value.data[0].length,d.value=t.value.data.length,s.value=t.value.data[0].length)}),{deep:!0,immediate:!0});var f=Ye(),p=f.addHistorySnapshot,b=function(){if(t.value&&"table"===t.value.type){var e=0,o=0;if(n.value.length){var c=n.value[0];e=+c.split("_")[0],o=+c.split("_")[1]}var r=t.value.data[e][o].style;a.value=r?{bold:!!r.bold,em:!!r.em,underline:!!r.underline,strikethrough:!!r.strikethrough,color:r.color||"#000",backcolor:r.backcolor||"#000",fontsize:r.fontsize||"12px",fontname:r.fontname||"微软雅黑",align:r.align||"left"}:{bold:!1,em:!1,underline:!1,strikethrough:!1,color:"#000",backcolor:"#000",fontsize:"12px",fontname:"微软雅黑",align:"left"}}};Object(j["onMounted"])((function(){n.value.length&&b()})),Object(j["watch"])(n,b);var m=function(o){for(var c=JSON.parse(JSON.stringify(t.value.data)),a=0;a<c.length;a++)for(var r=0;r<c[a].length;r++)if(!n.value.length||n.value.includes("".concat(a,"_").concat(r))){var l=c[a][r].style||{};c[a][r].style=Object(x["a"])(Object(x["a"])({},l),o)}var i={data:c};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:i}),p(),b()},v=function(n){var o=r.value||{},c={theme:Object(x["a"])(Object(x["a"])({},o),n)};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c}),p()},O=function(n){if(n){var o={theme:{color:"#d14424",rowHeader:!0,rowFooter:!1,colHeader:!1,colFooter:!1}};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o})}else e.commit(y.REMOVE_ELEMENT_PROPS,{id:t.value.id,propName:"theme"});p()},h=function(n){var o=+n.target.value,c=t.value.data.length;if(o!==c){if(o<c)return ke["a"].warning("设置行数不能少于当前值");var a=new Array(u.value).fill({id:Ie(),colspan:1,rowspan:1,text:""}),r=new Array(o-c).fill(a),l=JSON.parse(JSON.stringify(t.value.data));l.push.apply(l,Object(te["a"])(r));var i={data:l};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:i}),p()}},g=function(n){var o=+n.target.value,c=t.value.data[0].length;if(o!==c){if(o<c)return ke["a"].warning("设置列数不能少于当前值");var a=t.value.data.map((function(e){var t=new Array(o-c).fill({id:Ie(),colspan:1,rowspan:1,text:""});return e.push.apply(e,Object(te["a"])(t)),e})),r=t.value.colWidths.map((function(e){return e*t.value.width})),l=new Array(o-c).fill(100);r.push.apply(r,Object(te["a"])(l));var i=t.value.width+100*(o-c),u=r.map((function(e){return e/i})),d={width:i,data:a,colWidths:u};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:d}),p()}};return{handleElement:t,availableFonts:o,fontSizeOptions:c,textAttrs:a,updateTextAttrs:m,theme:r,rowCount:i,colCount:u,minRowCount:d,minColCount:s,hasTheme:l,toggleTheme:O,updateTheme:v,setTableRow:h,setTableCol:g,webFonts:yf}}});n("7814");kf.render=gf,kf.__scopeId="data-v-3179aa9a";var If=kf,Ef=Object(j["defineComponent"])({name:"element-style-panel",setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["computed"])((function(){var e;if(!t.value)return null;var n=(e={},Object(U["a"])(e,ao.TEXT,ud),Object(U["a"])(e,ao.IMAGE,Md),Object(U["a"])(e,ao.SHAPE,$d),Object(U["a"])(e,ao.LINE,ks),Object(U["a"])(e,ao.CHART,tf),Object(U["a"])(e,ao.TABLE,If),e);return n[t.value.type]||null}));return{handleElement:t,currentPanelComponent:n}}});Ef.render=iu;var Cf=Ef,xf=Object(j["withScopeId"])("data-v-655fed44");Object(j["pushScopeId"])("data-v-655fed44");var Sf={class:"element-positopn-panel"},Nf=Object(j["createVNode"])("div",{class:"title"},"层级:",-1),Tf=Object(j["createTextVNode"])(" 置于顶层"),wf=Object(j["createTextVNode"])(" 置于底层"),Lf=Object(j["createTextVNode"])(" 上移一层"),Vf=Object(j["createTextVNode"])(" 下移一层"),_f=Object(j["createVNode"])("div",{class:"title"},"对齐:",-1),Bf={class:"row"},Df=Object(j["createVNode"])("div",{style:{flex:"3"}},"位置:",-1),Mf=Object(j["createVNode"])("div",{style:{flex:"1"}},null,-1),Af=Object(j["createStaticVNode"])('<div class="row" data-v-655fed44><div style="flex:3;" data-v-655fed44></div><div style="flex:4;" class="label" data-v-655fed44>X</div><div style="flex:1;" data-v-655fed44></div><div style="flex:4;" class="label" data-v-655fed44>Y</div></div>',1),Pf={class:"row"},Rf=Object(j["createVNode"])("div",{style:{flex:"3"}},"大小:",-1),Ff={key:1,style:{flex:"1"}},Hf=Object(j["createStaticVNode"])('<div class="row" data-v-655fed44><div style="flex:3;" data-v-655fed44></div><div style="flex:4;" class="label" data-v-655fed44>宽</div><div style="flex:1;" data-v-655fed44></div><div style="flex:4;" class="label" data-v-655fed44>高</div></div>',1),zf={class:"row"},Uf=Object(j["createVNode"])("div",{style:{flex:"3"}},"旋转:",-1),Gf=Object(j["createVNode"])("div",{style:{flex:"1"}},null,-1);Object(j["popScopeId"])();var qf=xf((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconSendToBack"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("IconBringToFrontOne"),u=Object(j["resolveComponent"])("ButtonGroup"),d=Object(j["resolveComponent"])("IconBringToFront"),s=Object(j["resolveComponent"])("IconSentToBack"),f=Object(j["resolveComponent"])("Divider"),p=Object(j["resolveComponent"])("IconAlignLeft"),b=Object(j["resolveComponent"])("Tooltip"),m=Object(j["resolveComponent"])("IconAlignVertically"),v=Object(j["resolveComponent"])("IconAlignRight"),O=Object(j["resolveComponent"])("IconAlignTop"),h=Object(j["resolveComponent"])("IconAlignHorizontally"),g=Object(j["resolveComponent"])("IconAlignBottom"),y=Object(j["resolveComponent"])("InputNumber"),k=Object(j["resolveComponent"])("IconLock"),I=Object(j["resolveComponent"])("IconUnlock"),E=Object(j["resolveComponent"])("IconRotate");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Sf,[Nf,Object(j["createVNode"])(u,{class:"row"},{default:xf((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.orderElement(e.handleElement,"top")})},{default:xf((function(){return[Object(j["createVNode"])(r,{class:"btn-icon"}),Tf]})),_:1}),Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[2]||(t[2]=function(t){return e.orderElement(e.handleElement,"bottom")})},{default:xf((function(){return[Object(j["createVNode"])(i,{class:"btn-icon"}),wf]})),_:1})]})),_:1}),Object(j["createVNode"])(u,{class:"row"},{default:xf((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[3]||(t[3]=function(t){return e.orderElement(e.handleElement,"up")})},{default:xf((function(){return[Object(j["createVNode"])(d,{class:"btn-icon"}),Lf]})),_:1}),Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[4]||(t[4]=function(t){return e.orderElement(e.handleElement,"down")})},{default:xf((function(){return[Object(j["createVNode"])(s,{class:"btn-icon"}),Vf]})),_:1})]})),_:1}),Object(j["createVNode"])(f),_f,Object(j["createVNode"])(u,{class:"row"},{default:xf((function(){return[Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:xf((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[5]||(t[5]=function(t){return e.alignElementToCanvas("left")})},{default:xf((function(){return[Object(j["createVNode"])(p)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"水平居中"},{default:xf((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[6]||(t[6]=function(t){return e.alignElementToCanvas("horizontal")})},{default:xf((function(){return[Object(j["createVNode"])(m)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:xf((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[7]||(t[7]=function(t){return e.alignElementToCanvas("right")})},{default:xf((function(){return[Object(j["createVNode"])(v)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(u,{class:"row"},{default:xf((function(){return[Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上对齐"},{default:xf((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[8]||(t[8]=function(t){return e.alignElementToCanvas("top")})},{default:xf((function(){return[Object(j["createVNode"])(O)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"垂直居中"},{default:xf((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[9]||(t[9]=function(t){return e.alignElementToCanvas("vertical")})},{default:xf((function(){return[Object(j["createVNode"])(h)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下对齐"},{default:xf((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[10]||(t[10]=function(t){return e.alignElementToCanvas("bottom")})},{default:xf((function(){return[Object(j["createVNode"])(g)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(f),Object(j["createVNode"])("div",Bf,[Df,Object(j["createVNode"])(y,{step:5,value:e.left,onChange:t[11]||(t[11]=function(t){return e.updateLeft(t)}),style:{flex:"4"}},null,8,["value"]),Mf,Object(j["createVNode"])(y,{step:5,value:e.top,onChange:t[12]||(t[12]=function(t){return e.updateTop(t)}),style:{flex:"4"}},null,8,["value"])]),Af,"line"!==e.handleElement.type?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[Object(j["createVNode"])("div",Pf,[Rf,Object(j["createVNode"])(y,{min:e.minSize,max:1500,step:5,value:e.width,onChange:t[13]||(t[13]=function(t){return e.updateWidth(t)}),style:{flex:"4"}},null,8,["min","value"]),["image","shape"].includes(e.handleElement.type)?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:0},[e.fixedRatio?(Object(j["openBlock"])(),Object(j["createBlock"])(b,{key:0,mouseLeaveDelay:0,mouseEnterDelay:.5,title:"解除宽高比锁定"},{default:xf((function(){return[Object(j["createVNode"])(k,{style:{flex:"1"},class:"icon-btn",onClick:t[14]||(t[14]=function(t){return e.updateFixedRatio(!1)})})]})),_:1},8,["mouseEnterDelay"])):(Object(j["openBlock"])(),Object(j["createBlock"])(b,{key:1,mouseLeaveDelay:0,mouseEnterDelay:.5,title:"宽高比锁定"},{default:xf((function(){return[Object(j["createVNode"])(I,{style:{flex:"1"},class:"icon-btn",onClick:t[15]||(t[15]=function(t){return e.updateFixedRatio(!0)})})]})),_:1},8,["mouseEnterDelay"]))],64)):(Object(j["openBlock"])(),Object(j["createBlock"])("div",Ff)),Object(j["createVNode"])(y,{min:e.minSize,max:800,step:5,disabled:"text"===e.handleElement.type,value:e.height,onChange:t[16]||(t[16]=function(t){return e.updateHeight(t)}),style:{flex:"4"}},null,8,["min","disabled","value"])]),Hf],64)):Object(j["createCommentVNode"])("",!0),["text","image","shape"].includes(e.handleElement.type)?(Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:1},[Object(j["createVNode"])(f),Object(j["createVNode"])("div",zf,[Uf,Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"逆时针旋转"},{default:xf((function(){return[Object(j["createVNode"])(E,{class:"icon-btn",onClick:t[17]||(t[17]=function(t){return e.updateRotate45("-")}),style:{flex:"2"}})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(b,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"顺时针旋转"},{default:xf((function(){return[Object(j["createVNode"])(E,{class:"icon-btn",onClick:t[18]||(t[18]=function(t){return e.updateRotate45("+")}),style:{flex:2,transform:"rotateY(180deg)"}},null,8,["style"])]})),_:1},8,["mouseEnterDelay"]),Gf,Object(j["createVNode"])(y,{min:-180,max:180,step:5,value:e.rotate,onChange:t[19]||(t[19]=function(t){return e.updateRotate(t)}),style:{flex:"4"}},null,8,["value"])])],64)):Object(j["createCommentVNode"])("",!0)])})),Xf=Object(j["defineComponent"])({name:"element-positopn-panel",setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["ref"])(0),o=Object(j["ref"])(0),c=Object(j["ref"])(0),a=Object(j["ref"])(0),r=Object(j["ref"])(0),l=Object(j["ref"])(!1),i=Object(j["computed"])((function(){return t.value&&Jn[t.value.type]||20}));Object(j["watch"])(t,(function(){t.value&&(n.value=Object(ne["round"])(t.value.left,1),o.value=Object(ne["round"])(t.value.top,1),l.value="fixedRatio"in t.value&&!!t.value.fixedRatio,"line"!==t.value.type&&(c.value=Object(ne["round"])(t.value.width,1),a.value=Object(ne["round"])(t.value.height,1),r.value="rotate"in t.value&&void 0!==t.value.rotate?Object(ne["round"])(t.value.rotate,1):0))}),{deep:!0,immediate:!0});var u=lt(),d=u.orderElement,s=io(),f=s.alignElementToCanvas,p=Ye(),b=p.addHistorySnapshot,m=function(n){var o={left:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},v=function(n){var o={top:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},O=function(n){var o={width:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},h=function(n){var o={height:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},g=function(n){var o={rotate:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},k=function(n){var o={fixedRatio:n};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:o}),b()},I=function(n){var o=45*Math.floor(r.value/45);"+"===n?o+=45:"-"===n&&(o-=45),o<-180&&(o=-180),o>180&&(o=180);var c={rotate:o};e.commit(y.UPDATE_ELEMENT,{id:t.value.id,props:c}),b()};return{handleElement:t,orderElement:d,alignElementToCanvas:f,left:n,top:o,width:c,height:a,rotate:r,fixedRatio:l,minSize:i,updateLeft:m,updateTop:v,updateWidth:O,updateHeight:h,updateRotate:g,updateFixedRatio:k,updateRotate45:I}}});n("9c08");Xf.render=qf,Xf.__scopeId="data-v-655fed44";var Wf=Xf,Yf=Object(j["withScopeId"])("data-v-34dfe3c2");Object(j["pushScopeId"])("data-v-34dfe3c2");var Zf={class:"element-animation-panel"},Jf={key:0,class:"element-animation"},Kf={class:"animation-pool"},Qf={class:"type-title"},$f={class:"pool-item-wrapper"},ep=Object(j["createTextVNode"])(" 图表元素暂不支持动画 "),tp={key:2,class:"duration"},np=Object(j["createVNode"])("div",{style:{flex:"4"}},"持续时间(毫秒):",-1),op={key:1,class:"tip"},cp=Object(j["createTextVNode"])(" 选中画布中的元素添加动画"),ap={class:"index"},rp={class:"text"},lp={class:"handler"};Object(j["popScopeId"])();var ip,up=Yf((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconEffects"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Popover"),u=Object(j["resolveComponent"])("InputNumber"),d=Object(j["resolveComponent"])("IconClick"),s=Object(j["resolveComponent"])("Divider"),f=Object(j["resolveComponent"])("IconPlayOne"),p=Object(j["resolveComponent"])("Tooltip"),b=Object(j["resolveComponent"])("IconCloseSmall"),m=Object(j["resolveComponent"])("Draggable");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Zf,[e.handleElement?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Jf,["chart"!==e.handleElement.type?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:0,trigger:"click",visible:e.animationPoolVisible,"onUpdate:visible":t[2]||(t[2]=function(t){return e.animationPoolVisible=t})},{content:Yf((function(){return[Object(j["createVNode"])("div",Kf,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.animations,(function(n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"pool-type",key:n.name},[Object(j["createVNode"])("div",Qf,Object(j["toDisplayString"])(n.name)+"",1),Object(j["createVNode"])("div",$f,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(n.children,(function(n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"pool-item",key:n.name,onMouseenter:function(t){return e.hoverPreviewAnimation=n.value},onMouseleave:t[1]||(t[1]=function(t){return e.hoverPreviewAnimation=""}),onClick:function(t){return e.addAnimation(n.value)}},[Object(j["createVNode"])("div",{class:["animation-box",["animate__animated","animate__faster",e.hoverPreviewAnimation===n.value&&"animate__".concat(n.value)]]},Object(j["toDisplayString"])(n.name),3)],40,["onMouseenter","onClick"])})),128))])])})),128))])]})),default:Yf((function(){return[Object(j["createVNode"])(l,{class:"element-animation-btn"},{default:Yf((function(){return[Object(j["createVNode"])(r,{style:{"margin-right":"5px"}}),Object(j["createTextVNode"])(" "+Object(j["toDisplayString"])(e.handleElementAnimationName||"点击选择动画"),1)]})),_:1})]})),_:1},8,["visible"])):(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,class:"element-animation-btn",disabled:""},{default:Yf((function(){return[Object(j["createVNode"])(r,{style:{"margin-right":"5px"}}),ep]})),_:1})),e.handleElementAnimation?(Object(j["openBlock"])(),Object(j["createBlock"])("div",tp,[np,Object(j["createVNode"])(u,{min:100,max:5e3,step:100,value:e.handleElementAnimation.duration,onChange:t[3]||(t[3]=function(t){return e.updateElementAnimationDuration(t)}),style:{flex:"3"}},null,8,["value"])])):Object(j["createCommentVNode"])("",!0)])):(Object(j["openBlock"])(),Object(j["createBlock"])("div",op,[Object(j["createVNode"])(d),cp])),Object(j["createVNode"])(s),Object(j["createVNode"])(m,{class:"animation-sequence",modelValue:e.animationSequence,animation:300,scroll:!0,scrollSensitivity:50,onEnd:e.handleDragEnd,itemKey:"id"},{item:Yf((function(t){var n,o=t.element,c=t.index;return[Object(j["createVNode"])("div",{class:["sequence-item",{active:(null===(n=e.handleElement)||void 0===n?void 0:n.id)===o.elId}]},[Object(j["createVNode"])("div",ap,Object(j["toDisplayString"])(c+1),1),Object(j["createVNode"])("div",rp,"【"+Object(j["toDisplayString"])(o.elType)+"】"+Object(j["toDisplayString"])(o.animationType),1),Object(j["createVNode"])("div",lp,[Object(j["createVNode"])(p,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"预览"},{default:Yf((function(){return[Object(j["createVNode"])(f,{class:"handler-btn",onClick:function(t){return e.runAnimation(o.elId,o.type,o.duration)}},null,8,["onClick"])]})),_:2},1032,["mouseEnterDelay"]),Object(j["createVNode"])(p,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"删除"},{default:Yf((function(){return[Object(j["createVNode"])(b,{class:"handler-btn",onClick:function(t){return e.deleteAnimation(o.elId)}},null,8,["onClick"])]})),_:2},1032,["mouseEnterDelay"])])],2)]})),_:1},8,["modelValue","onEnd"])])})),dp=[{type:"bounce",name:"弹跳",children:[{name:"弹入",value:"bounceIn"},{name:"向右弹入",value:"bounceInLeft"},{name:"向左弹入",value:"bounceInRight"},{name:"向上弹入",value:"bounceInUp"},{name:"向下弹入",value:"bounceInDown"}]},{type:"fade",name:"浮现",children:[{name:"浮入",value:"fadeIn"},{name:"向下浮入",value:"fadeInDown"},{name:"向下长距浮入",value:"fadeInDownBig"},{name:"向右浮入",value:"fadeInLeft"},{name:"向右长距浮入",value:"fadeInLeftBig"},{name:"向左浮入",value:"fadeInRight"},{name:"向左长距浮入",value:"fadeInRightBig"},{name:"向上浮入",value:"fadeInUp"},{name:"向上长距浮入",value:"fadeInUpBig"},{name:"从左上浮入",value:"fadeInTopLeft"},{name:"从右上浮入",value:"fadeInTopRight"},{name:"从左下浮入",value:"fadeInBottomLeft"},{name:"从右下浮入",value:"fadeInBottomRight"}]},{type:"rotate",name:"旋转",children:[{name:"旋转进入",value:"rotateIn"},{name:"绕左下旋转进入",value:"rotateInDownLeft"},{name:"绕右下旋转进入",value:"rotateInDownRight"},{name:"绕左上旋转进入",value:"rotateInUpLeft"},{name:"绕右上旋转进入",value:"rotateInUpRight"}]},{type:"zoom",name:"缩放",children:[{name:"放大进入",value:"zoomIn"},{name:"向下放大进入",value:"zoomInDown"},{name:"从左放大进入",value:"zoomInLeft"},{name:"从右放大进入",value:"zoomInRight"},{name:"向上放大进入",value:"zoomInUp"}]},{type:"slide",name:"滑入",children:[{name:"向下滑入",value:"slideInDown"},{name:"从右滑入",value:"slideInLeft"},{name:"从左滑入",value:"slideInRight"},{name:"向上滑入",value:"slideInUp"}]},{type:"flip",name:"翻转",children:[{name:"X轴翻转进入",value:"flipInX"},{name:"Y轴翻转进入",value:"flipInY"}]},{type:"back",name:"放大滑入",children:[{name:"向下放大滑入",value:"backInDown"},{name:"从左放大滑入",value:"backInLeft"},{name:"从右放大滑入",value:"backInRight"},{name:"向上放大滑入",value:"backInUp"}]},{type:"lightSpeed",name:"飞入",children:[{name:"从右飞入",value:"lightSpeedInRight"},{name:"从左飞入",value:"lightSpeedInLeft"}]}],sp=1e3,fp={},pp=Object(S["a"])(dp);try{for(pp.s();!(ip=pp.n()).done;){var bp,mp=ip.value,vp=Object(S["a"])(mp.children);try{for(vp.s();!(bp=vp.n()).done;){var Op=bp.value;fp[Op.value]=Op.name}}catch(qh){vp.e(qh)}finally{vp.f()}}}catch(qh){pp.e(qh)}finally{pp.f()}var hp=Object(j["defineComponent"])({name:"element-animation-panel",components:{Draggable:ui.a},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.getters.handleElement})),n=Object(j["computed"])((function(){return e.getters.currentSlideAnimations})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Object(j["ref"])(""),a=Object(j["ref"])(!1),r=Ye(),l=r.addHistorySnapshot,i=dp,u=Object(j["computed"])((function(){if(!n.value)return[];var e,t=[],c=Object(S["a"])(n.value);try{var a=function(){var n=e.value,c=o.value.elements.find((function(e){return e.id===n.elId}));if(!c)return"continue";var a=Zn[c.type],r=fp[n.type];t.push(Object(x["a"])(Object(x["a"])({},n),{},{elType:a,animationType:r}))};for(c.s();!(e=c.n()).done;)a()}catch(qh){c.e(qh)}finally{c.f()}return t})),d=Object(j["computed"])((function(){if(!t.value)return null;var e=n.value||[],o=e.find((function(e){return e.elId===t.value.id}));return o||null})),s=Object(j["computed"])((function(){return d.value?fp[d.value.type]:null})),f=function(t){var o=n.value.filter((function(e){return e.elId!==t}));e.commit(y.UPDATE_SLIDE,{animations:o}),l()},p=function(t){var o=t.newIndex,c=t.oldIndex;if(c!==o){var a=JSON.parse(JSON.stringify(n.value)),r=a[c];a.splice(c,1),a.splice(o,0,r),e.commit(y.UPDATE_SLIDE,{animations:a}),l()}},b=function(e,t,n){var o="animate__",c=document.querySelector("#editable-element-".concat(e," [class^=editable-element-]"));if(c){var a="".concat(o).concat(t);document.documentElement.style.setProperty("--animate-duration","".concat(n,"ms")),c.classList.add("".concat(o,"animated"),a);var r=function(){document.documentElement.style.removeProperty("--animate-duration"),c.classList.remove("".concat(o,"animated"),a)};c.addEventListener("animationend",r,{once:!0})}},m=function(o){if(n.value){var c=n.value.map((function(e){return e.elId===t.value.id?Object(x["a"])(Object(x["a"])({},e),{},{type:o}):e}));e.commit(y.UPDATE_SLIDE,{animations:c}),a.value=!1,l();var r=n.value.find((function(e){return e.elId===t.value.id})),i=(null===r||void 0===r?void 0:r.duration)||sp;b(t.value.id,o,i)}},v=function(o){if(n.value&&!(o<100||o>5e3)){var c=n.value.map((function(e){return e.elId===t.value.id?Object(x["a"])(Object(x["a"])({},e),{},{duration:o}):e}));e.commit(y.UPDATE_SLIDE,{animations:c}),l()}},O=function(o){if(s.value)m(o);else{var c=n.value?JSON.parse(JSON.stringify(n.value)):[];c.push({elId:t.value.id,type:o,duration:sp}),e.commit(y.UPDATE_SLIDE,{animations:c}),a.value=!1,l(),b(t.value.id,o,sp)}};return{handleElement:t,animationPoolVisible:a,animations:i,animationSequence:u,hoverPreviewAnimation:c,handleElementAnimation:d,handleElementAnimationName:s,addAnimation:O,deleteAnimation:f,handleDragEnd:p,runAnimation:b,updateElementAnimationDuration:v}}});n("2ecf");hp.render=up,hp.__scopeId="data-v-34dfe3c2";var jp=hp,gp=Object(j["withScopeId"])("data-v-0e01ba6c");Object(j["pushScopeId"])("data-v-0e01ba6c");var yp={class:"slide-style-panel"},kp=Object(j["createVNode"])("div",{class:"title"},"背景填充",-1),Ip={class:"row"},Ep=Object(j["createTextVNode"])("纯色填充"),Cp=Object(j["createTextVNode"])("图片填充"),xp=Object(j["createTextVNode"])("渐变填充"),Sp=Object(j["createVNode"])("div",{style:{flex:"1"}},null,-1),Np=Object(j["createTextVNode"])("原始大小"),Tp=Object(j["createTextVNode"])("缩放"),wp=Object(j["createTextVNode"])("拼贴"),Lp=Object(j["createTextVNode"])("缩放铺满"),Vp=Object(j["createTextVNode"])("线性渐变"),_p=Object(j["createTextVNode"])("径向渐变"),Bp={key:0,class:"background-image-wrapper"},Dp={class:"background-image"},Mp={key:1,class:"background-gradient-wrapper"},Ap={class:"row"},Pp=Object(j["createVNode"])("div",{style:{flex:"2"}},"起点颜色:",-1),Rp={class:"row"},Fp=Object(j["createVNode"])("div",{style:{flex:"2"}},"终点颜色:",-1),Hp={key:0,class:"row"},zp=Object(j["createVNode"])("div",{style:{flex:"2"}},"渐变角度:",-1),Up={class:"row"},Gp=Object(j["createTextVNode"])("应用背景到全部"),qp={class:"row"},Xp=Object(j["createVNode"])("div",{style:{flex:"2"}},"画布尺寸:",-1),Wp=Object(j["createTextVNode"])("宽屏 16 : 9"),Yp=Object(j["createTextVNode"])("宽屏 16 10"),Zp=Object(j["createTextVNode"])("标准 4 3"),Jp=Object(j["createVNode"])("div",{class:"title"},"全局主题",-1),Kp={class:"row"},Qp=Object(j["createVNode"])("div",{style:{flex:"2"}},"字体:",-1),$p={class:"row"},eb=Object(j["createVNode"])("div",{style:{flex:"2"}},"字体颜色:",-1),tb={class:"row"},nb=Object(j["createVNode"])("div",{style:{flex:"2"}},"背景颜色:",-1),ob={class:"row"},cb=Object(j["createVNode"])("div",{style:{flex:"2"}},"主题色:",-1),ab=Object(j["createVNode"])("div",{class:"title",style:{"margin-top":"20px"}},"预置主题:",-1),rb={class:"theme-list"},lb={class:"theme-item-content"},ib={class:"row"},ub=Object(j["createTextVNode"])("应用主题到全部");Object(j["popScopeId"])();var db=gp((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("SelectOption"),l=Object(j["resolveComponent"])("Select"),i=Object(j["resolveComponent"])("ColorPicker"),u=Object(j["resolveComponent"])("ColorButton"),d=Object(j["resolveComponent"])("Popover"),s=Object(j["resolveComponent"])("IconPlus"),f=Object(j["resolveComponent"])("FileInput"),p=Object(j["resolveComponent"])("Slider"),b=Object(j["resolveComponent"])("Button"),m=Object(j["resolveComponent"])("Divider"),v=Object(j["resolveComponent"])("SelectOptGroup");return Object(j["openBlock"])(),Object(j["createBlock"])("div",yp,[kp,Object(j["createVNode"])("div",Ip,[Object(j["createVNode"])(l,{style:{flex:"10"},value:e.background.type,onChange:t[1]||(t[1]=function(t){return e.updateBackgroundType(t)})},{default:gp((function(){return[Object(j["createVNode"])(r,{value:"solid"},{default:gp((function(){return[Ep]})),_:1}),Object(j["createVNode"])(r,{value:"image"},{default:gp((function(){return[Cp]})),_:1}),Object(j["createVNode"])(r,{value:"gradient"},{default:gp((function(){return[xp]})),_:1})]})),_:1},8,["value"]),Sp,"solid"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])(d,{key:0,trigger:"click"},{content:gp((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.color,"onUpdate:modelValue":t[2]||(t[2]=function(t){return e.updateBackground({color:t})})},null,8,["modelValue"])]})),default:gp((function(){return[Object(j["createVNode"])(u,{color:e.background.color||"#fff",style:{flex:"10"}},null,8,["color"])]})),_:1})):"image"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:1,style:{flex:"10"},value:e.background.size||"cover",onChange:t[3]||(t[3]=function(t){return e.updateBackground({imageSize:t})})},{default:gp((function(){return[Object(j["createVNode"])(r,{value:"initial"},{default:gp((function(){return[Np]})),_:1}),Object(j["createVNode"])(r,{value:"contain"},{default:gp((function(){return[Tp]})),_:1}),Object(j["createVNode"])(r,{value:"repeat"},{default:gp((function(){return[wp]})),_:1}),Object(j["createVNode"])(r,{value:"cover"},{default:gp((function(){return[Lp]})),_:1})]})),_:1},8,["value"])):(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:2,style:{flex:"10"},value:e.background.gradientType,onChange:t[4]||(t[4]=function(t){return e.updateBackground({gradientType:t})})},{default:gp((function(){return[Object(j["createVNode"])(r,{value:"linear"},{default:gp((function(){return[Vp]})),_:1}),Object(j["createVNode"])(r,{value:"radial"},{default:gp((function(){return[_p]})),_:1})]})),_:1},8,["value"]))]),"image"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Bp,[Object(j["createVNode"])(f,{onChange:t[5]||(t[5]=function(t){return e.uploadBackgroundImage(t)})},{default:gp((function(){return[Object(j["createVNode"])("div",Dp,[Object(j["createVNode"])("div",{class:"content",style:{backgroundImage:"url(".concat(e.background.image,")")}},[Object(j["createVNode"])(s)],4)])]})),_:1})])):Object(j["createCommentVNode"])("",!0),"gradient"===e.background.type?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Mp,[Object(j["createVNode"])("div",Ap,[Pp,Object(j["createVNode"])(d,{trigger:"click"},{content:gp((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.gradientColor[0],"onUpdate:modelValue":t[6]||(t[6]=function(t){return e.updateBackground({gradientColor:[t,e.background.gradientColor[1]]})})},null,8,["modelValue"])]})),default:gp((function(){return[Object(j["createVNode"])(u,{color:e.background.gradientColor[0],style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",Rp,[Fp,Object(j["createVNode"])(d,{trigger:"click"},{content:gp((function(){return[Object(j["createVNode"])(i,{modelValue:e.background.gradientColor[1],"onUpdate:modelValue":t[7]||(t[7]=function(t){return e.updateBackground({gradientColor:[e.background.gradientColor[0],t]})})},null,8,["modelValue"])]})),default:gp((function(){return[Object(j["createVNode"])(u,{color:e.background.gradientColor[1],style:{flex:"3"}},null,8,["color"])]})),_:1})]),"linear"===e.background.gradientType?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Hp,[zp,Object(j["createVNode"])(p,{min:0,max:360,step:15,value:e.background.gradientRotate,style:{flex:"3"},onChange:t[8]||(t[8]=function(t){return e.updateBackground({gradientRotate:t})})},null,8,["value"])])):Object(j["createCommentVNode"])("",!0)])):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("div",Up,[Object(j["createVNode"])(b,{style:{flex:"1"},onClick:t[9]||(t[9]=function(t){return e.applyBackgroundAllSlide()})},{default:gp((function(){return[Gp]})),_:1})]),Object(j["createVNode"])(m),Object(j["createVNode"])("div",qp,[Xp,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.viewportRatio,onChange:t[10]||(t[10]=function(t){return e.updateViewportRatio(t)})},{default:gp((function(){return[Object(j["createVNode"])(r,{value:.5625},{default:gp((function(){return[Wp]})),_:1},8,["value"]),Object(j["createVNode"])(r,{value:.625},{default:gp((function(){return[Yp]})),_:1},8,["value"]),Object(j["createVNode"])(r,{value:.75},{default:gp((function(){return[Zp]})),_:1},8,["value"])]})),_:1},8,["value"])]),Object(j["createVNode"])(m),Jp,Object(j["createVNode"])("div",Kp,[Qp,Object(j["createVNode"])(l,{style:{flex:"3"},value:e.theme.fontName,onChange:t[11]||(t[11]=function(t){return e.updateTheme({fontName:t})})},{default:gp((function(){return[Object(j["createVNode"])(v,{label:"系统字体"},{default:gp((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.availableFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.value,value:e.value},{default:gp((function(){return[Object(j["createVNode"])("span",{style:{fontFamily:e.value}},Object(j["toDisplayString"])(e.label),5)]})),_:2},1032,["value"])})),128))]})),_:1}),Object(j["createVNode"])(v,{label:"在线字体"},{default:gp((function(){return[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.webFonts,(function(e){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:e.value,value:e.value},{default:gp((function(){return[Object(j["createVNode"])("span",null,Object(j["toDisplayString"])(e.label),1)]})),_:2},1032,["value"])})),128))]})),_:1})]})),_:1},8,["value"])]),Object(j["createVNode"])("div",$p,[eb,Object(j["createVNode"])(d,{trigger:"click"},{content:gp((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.fontColor,"onUpdate:modelValue":t[12]||(t[12]=function(t){return e.updateTheme({fontColor:t})})},null,8,["modelValue"])]})),default:gp((function(){return[Object(j["createVNode"])(u,{color:e.theme.fontColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",tb,[nb,Object(j["createVNode"])(d,{trigger:"click"},{content:gp((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.backgroundColor,"onUpdate:modelValue":t[13]||(t[13]=function(t){return e.updateTheme({backgroundColor:t})})},null,8,["modelValue"])]})),default:gp((function(){return[Object(j["createVNode"])(u,{color:e.theme.backgroundColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),Object(j["createVNode"])("div",ob,[cb,Object(j["createVNode"])(d,{trigger:"click"},{content:gp((function(){return[Object(j["createVNode"])(i,{modelValue:e.theme.themeColor,"onUpdate:modelValue":t[14]||(t[14]=function(t){return e.updateTheme({themeColor:t})})},null,8,["modelValue"])]})),default:gp((function(){return[Object(j["createVNode"])(u,{color:e.theme.themeColor,style:{flex:"3"}},null,8,["color"])]})),_:1})]),ab,Object(j["createVNode"])("div",rb,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.themes,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"theme-item",key:n,style:{backgroundColor:t.background},onClick:function(n){return e.updateTheme({fontColor:t.text,backgroundColor:t.background,themeColor:t.color})}},[Object(j["createVNode"])("div",lb,[Object(j["createVNode"])("div",{class:"text",style:{color:t.text}},"Aa",4),Object(j["createVNode"])("div",{class:"color-block",style:{backgroundColor:t.color}},null,4)])],12,["onClick"])})),128))]),Object(j["createVNode"])("div",ib,[Object(j["createVNode"])(b,{style:{flex:"1"},onClick:t[15]||(t[15]=function(t){return e.applyThemeAllSlide()})},{default:gp((function(){return[ub]})),_:1})])])})),sb=[{color:"#d14424",background:"#ffffff",text:"#333"},{color:"#42464b",background:"#ffffff",text:"#333"},{color:"#5d82ba",background:"#ffffff",text:"#333"},{color:"#005a6f",background:"#ffffff",text:"#333"},{color:"#d0614c",background:"#dfb044",text:"#333"},{color:"#86a1ad",background:"#dfdbd4",text:"#333"},{color:"#697586",background:"#d5c4a4",text:"#333"},{color:"#333333",background:"#7acfa6",text:"#333"},{color:"#42464b",background:"#415065",text:"#fff"},{color:"#0c5999",background:"#35a2cd",text:"#fff"},{color:"#c49a41",background:"#8c4357",text:"#fff"},{color:"#dfaa00",background:"#2e4e7d",text:"#fff"},{color:"#d1ad88",background:"#f99070",text:"#fff"},{color:"#464d52",background:"#657984",text:"#fff"},{color:"#ffcfb6",background:"#1e4c6f",text:"#fff"},{color:"#c3a043",background:"#43292a",text:"#fff"},{color:"#464d52",background:"#60546f",text:"#fff"},{color:"#df9636",background:"#5b89a0",text:"#fff"},{color:"#b898a4",background:"#93716b",text:"#fff"},{color:"#c47a11",background:"#187db1",text:"#fff"},{color:"#333333",background:"#759564",text:"#fff"},{color:"#355b5e",background:"#424b50",text:"#fff"},{color:"#d29090",background:"#942a32",text:"#fff"},{color:"#00cfdf",background:"#3b434d",text:"#fff"},{color:"#424246",background:"#c70042",text:"#fff"},{color:"#2e4155",background:"#b35d44",text:"#fff"},{color:"#11bfce",background:"#8f98aa",text:"#fff"},{color:"#333333",background:"#549688",text:"#fff"}],fb=sb,pb=ce,bb=Object(j["defineComponent"])({name:"slide-style-panel",components:{ColorButton:Hu},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["computed"])((function(){return e.state.theme})),o=Object(j["computed"])((function(){return e.state.availableFonts})),c=Object(j["computed"])((function(){return e.state.viewportRatio})),a=Object(j["computed"])((function(){return e.getters.currentSlide})),r=Object(j["computed"])((function(){return a.value.background?a.value.background:{type:"solid",value:"#fff"}})),l=Ye(),i=l.addHistorySnapshot,u=function(t){if("solid"===t){var n=Object(x["a"])(Object(x["a"])({},r.value),{},{type:"solid",color:r.value.color||"#fff"});e.commit(y.UPDATE_SLIDE,{background:n})}else if("image"===t){var o=Object(x["a"])(Object(x["a"])({},r.value),{},{type:"image",image:r.value.image||"",imageSize:r.value.imageSize||"cover"});e.commit(y.UPDATE_SLIDE,{background:o})}else{var c=Object(x["a"])(Object(x["a"])({},r.value),{},{type:"gradient",gradientType:r.value.gradientType||"linear",gradientColor:r.value.gradientColor||["#fff","#fff"],gradientRotate:r.value.gradientRotate||0});e.commit(y.UPDATE_SLIDE,{background:c})}i()},d=function(t){e.commit(y.UPDATE_SLIDE,{background:Object(x["a"])(Object(x["a"])({},r.value),t)}),i()},s=function(e){var t=e[0];t&&Je(t).then((function(e){return d({image:e})}))},f=function(){var n=t.value.map((function(e){return Object(x["a"])(Object(x["a"])({},e),{},{background:a.value.background})}));e.commit(y.SET_SLIDES,n),i()},p=function(t){e.commit(y.SET_THEME,t)},b=function(){var o,c=JSON.parse(JSON.stringify(t.value)),a=n.value,r=a.themeColor,l=a.backgroundColor,u=a.fontColor,d=a.fontName,s=Object(S["a"])(c);try{for(s.s();!(o=s.n()).done;){var f=o.value;f.background&&"image"===f.background.type||(f.background=Object(x["a"])(Object(x["a"])({},f.background),{},{type:"solid",color:l}));var p,b=f.elements,m=Object(S["a"])(b);try{for(m.s();!(p=m.n()).done;){var v=p.value;if("shape"===v.type)v.fill=r;else if("line"===v.type)v.color=r;else if("text"===v.type)v.defaultColor=u,v.defaultFontName=d,v.fill&&(v.fill=r);else if("table"===v.type){v.theme&&(v.theme.color=r);var O,h=Object(S["a"])(v.data);try{for(h.s();!(O=h.n()).done;){var j,g=O.value,k=Object(S["a"])(g);try{for(k.s();!(j=k.n()).done;){var I=j.value;I.style&&(I.style.color=u,I.style.fontname=d)}}catch(qh){k.e(qh)}finally{k.f()}}}catch(qh){h.e(qh)}finally{h.f()}}else"chart"===v.type&&(v.themeColor=r,v.gridColor=u)}}catch(qh){m.e(qh)}finally{m.f()}}}catch(qh){s.e(qh)}finally{s.f()}e.commit(y.SET_SLIDES,c),i()},m=function(t){e.commit(y.SET_VIEWPORT_RATIO,t)};return{availableFonts:o,background:r,updateBackgroundType:u,updateBackground:d,uploadBackgroundImage:s,applyBackgroundAllSlide:f,themes:fb,theme:n,webFonts:pb,updateTheme:p,applyThemeAllSlide:b,viewportRatio:c,updateViewportRatio:m}}});n("9f42");bb.render=db,bb.__scopeId="data-v-0e01ba6c";var mb=bb,vb=Object(j["withScopeId"])("data-v-647e2618");Object(j["pushScopeId"])("data-v-647e2618");var Ob={class:"slide-animation-panel"},hb={class:"animation-pool"},jb={class:"animation-text"},gb=Object(j["createTextVNode"])("应用到全部");Object(j["popScopeId"])();var yb=vb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Button");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Ob,[Object(j["createVNode"])("div",hb,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.animations,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["animation-item",{active:e.currentTurningMode===t.value}],key:t.label,onClick:function(n){return e.updateTurningMode(t.value)}},[Object(j["createVNode"])("div",{class:["animation-block",t.value]},null,2),Object(j["createVNode"])("div",jb,Object(j["toDisplayString"])(t.label),1)],10,["onClick"])})),128))]),Object(j["createVNode"])(r,{style:{width:"100%"},onClick:t[1]||(t[1]=function(t){return e.applyAllSlide()})},{default:vb((function(){return[gb]})),_:1})])})),kb=Object(j["defineComponent"])({name:"slide-animation-panel",setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["computed"])((function(){return e.getters.currentSlide})),o=Object(j["computed"])((function(){return n.value.turningMode||"slideY"})),c=[{label:"无",value:"no"},{label:"淡入淡出",value:"fade"},{label:"左右推移",value:"slideX"},{label:"上下推移",value:"slideY"}],a=Ye(),r=a.addHistorySnapshot,l=function(t){t!==o.value&&(e.commit(y.UPDATE_SLIDE,{turningMode:t}),r())},i=function(){var o=t.value.map((function(e){return Object(x["a"])(Object(x["a"])({},e),{},{turningMode:n.value.turningMode})}));e.commit(y.SET_SLIDES,o),r()};return{currentTurningMode:o,animations:c,updateTurningMode:l,applyAllSlide:i}}});n("ccf6");kb.render=yb,kb.__scopeId="data-v-647e2618";var Ib=kb,Eb=Object(j["withScopeId"])("data-v-88d13362");Object(j["pushScopeId"])("data-v-88d13362");var Cb={class:"multi-position-panel"},xb=Object(j["createTextVNode"])("水平均匀分布"),Sb=Object(j["createTextVNode"])("垂直均匀分布"),Nb=Object(j["createTextVNode"])("组合"),Tb=Object(j["createTextVNode"])("取消组合");Object(j["popScopeId"])();var wb=Eb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconAlignLeft"),l=Object(j["resolveComponent"])("Button"),i=Object(j["resolveComponent"])("Tooltip"),u=Object(j["resolveComponent"])("IconAlignHorizontally"),d=Object(j["resolveComponent"])("IconAlignRight"),s=Object(j["resolveComponent"])("ButtonGroup"),f=Object(j["resolveComponent"])("IconAlignTop"),p=Object(j["resolveComponent"])("IconAlignVertically"),b=Object(j["resolveComponent"])("IconAlignBottom"),m=Object(j["resolveComponent"])("Divider"),v=Object(j["resolveComponent"])("IconGroup"),O=Object(j["resolveComponent"])("IconUngroup");return Object(j["openBlock"])(),Object(j["createBlock"])("div",Cb,[Object(j["createVNode"])(s,{class:"row"},{default:Eb((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"左对齐"},{default:Eb((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[1]||(t[1]=function(t){return e.alignElement("left")})},{default:Eb((function(){return[Object(j["createVNode"])(r)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"水平居中"},{default:Eb((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[2]||(t[2]=function(t){return e.alignElement("horizontal")})},{default:Eb((function(){return[Object(j["createVNode"])(u)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"右对齐"},{default:Eb((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[3]||(t[3]=function(t){return e.alignElement("right")})},{default:Eb((function(){return[Object(j["createVNode"])(d)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),Object(j["createVNode"])(s,{class:"row"},{default:Eb((function(){return[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"上对齐"},{default:Eb((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[4]||(t[4]=function(t){return e.alignElement("top")})},{default:Eb((function(){return[Object(j["createVNode"])(f)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"垂直居中"},{default:Eb((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[5]||(t[5]=function(t){return e.alignElement("vertical")})},{default:Eb((function(){return[Object(j["createVNode"])(p)]})),_:1})]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.5,title:"下对齐"},{default:Eb((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[6]||(t[6]=function(t){return e.alignElement("bottom")})},{default:Eb((function(){return[Object(j["createVNode"])(b)]})),_:1})]})),_:1},8,["mouseEnterDelay"])]})),_:1}),e.displayItemCount>2?(Object(j["openBlock"])(),Object(j["createBlock"])(s,{key:0,class:"row"},{default:Eb((function(){return[Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[7]||(t[7]=function(t){return e.uniformHorizontalDisplay()})},{default:Eb((function(){return[xb]})),_:1}),Object(j["createVNode"])(l,{style:{flex:"1"},onClick:t[8]||(t[8]=function(t){return e.uniformVerticalDisplay()})},{default:Eb((function(){return[Sb]})),_:1})]})),_:1})):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])(m),Object(j["createVNode"])(s,{class:"row"},{default:Eb((function(){return[Object(j["createVNode"])(l,{disabled:!e.canCombine,onClick:t[9]||(t[9]=function(t){return e.combineElements()}),style:{flex:"1"}},{default:Eb((function(){return[Object(j["createVNode"])(v,{style:{"margin-right":"3px"}}),Nb]})),_:1},8,["disabled"]),Object(j["createVNode"])(l,{disabled:e.canCombine,onClick:t[10]||(t[10]=function(t){return e.uncombineElements()}),style:{flex:"1"}},{default:Eb((function(){return[Object(j["createVNode"])(O,{style:{"margin-right":"3px"}}),Tb]})),_:1},8,["disabled"])]})),_:1})])})),Lb=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.activeElementList})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Ye(),a=c.addHistorySnapshot,r=function(c){var r,l=He(n.value),i=l.minX,u=l.maxX,d=l.minY,s=l.maxY,f=JSON.parse(JSON.stringify(o.value.elements)),p={},b=Object(S["a"])(n.value);try{var m=function(){var e=r.value;if(e.groupId&&!p[e.groupId]){var t=n.value.filter((function(t){return t.groupId===e.groupId}));p[e.groupId]=He(t)}};for(b.s();!(r=b.n()).done;)m()}catch(qh){b.e(qh)}finally{b.f()}if(c===me.LEFT)f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=n.minX-i;e.left=e.left-o}else if("rotate"in e&&e.rotate){var c=Re({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=c.offsetX;e.left=i-a}else e.left=i}));else if(c===me.RIGHT)f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=n.maxX-u;e.left=e.left-o}else{var c="line"===e.type?Math.max(e.start[0],e.end[0]):e.width;if("rotate"in e&&e.rotate){var a=Re({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),r=a.offsetX;e.left=u-c+r}else e.left=u-c}}));else if(c===me.TOP)f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=n.minY-d;e.top=e.top-o}else if("rotate"in e&&e.rotate){var c=Re({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),a=c.offsetY;e.top=d-a}else e.top=d}));else if(c===me.BOTTOM)f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=n.maxY-s;e.top=e.top-o}else{var c="line"===e.type?Math.max(e.start[1],e.end[1]):e.height;if("rotate"in e&&e.rotate){var a=Re({left:e.left,top:e.top,width:e.width,height:e.height,rotate:e.rotate}),r=a.offsetY;e.top=s-c+r}else e.top=s-c}}));else if(c===me.HORIZONTAL){var v=(i+u)/2;f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=(n.maxX+n.minX)/2,c=o-v;e.left=e.left-c}else{var a="line"===e.type?Math.max(e.start[0],e.end[0]):e.width;e.left=v-a/2}}))}else if(c===me.VERTICAL){var O=(d+s)/2;f.forEach((function(e){if(t.value.includes(e.id))if(e.groupId){var n=p[e.groupId],o=(n.maxY+n.minY)/2,c=o-O;e.top=e.top-c}else{var a="line"===e.type?Math.max(e.start[1],e.end[1]):e.height;e.top=O-a/2}}))}e.commit(y.UPDATE_SLIDE,{elements:f}),a()};return{alignActiveElement:r}},Vb=function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.activeElementIdList})),n=Object(j["computed"])((function(){return e.getters.activeElementList})),o=Object(j["computed"])((function(){return e.getters.currentSlide})),c=Ye(),a=c.addHistorySnapshot,r=Object(j["computed"])((function(){var e,t=0,o=[],c=Object(S["a"])(n.value);try{for(c.s();!(e=c.n()).done;){var a=e.value;a.groupId?o.includes(a.groupId)||(o.push(a.groupId),t+=1):t+=1}}catch(qh){c.e(qh)}finally{c.f()}return t})),l=function(){var c,r=He(n.value),l=r.minX,i=r.maxX,u=JSON.parse(JSON.stringify(n.value)),d=JSON.parse(JSON.stringify(o.value.elements)),s=[],f=[],p=Object(S["a"])(u);try{var b=function(){var e=c.value;if(e.groupId){var t=f.find((function(t){return t.groupId===e.groupId}));t?f=f.map((function(t){return t.groupId===e.groupId?Object(x["a"])(Object(x["a"])({},t),{},{els:[].concat(Object(te["a"])(t.els),[e])}):t})):f.push({groupId:e.groupId,els:[e]})}else{var n=Fe(e),o=n.minX,a=n.maxX;s.push({min:o,max:a,el:e})}};for(p.s();!(c=p.n()).done;)b()}catch(qh){p.e(qh)}finally{p.f()}var m,v=[],O=Object(S["a"])(f);try{for(O.s();!(m=O.n()).done;){var h=m.value,j=He(h.els),g=j.minX,k=j.maxX;v.push({min:g,max:k,els:h.els})}}catch(qh){O.e(qh)}finally{O.f()}var I=[].concat(s,v);I.sort((function(e,t){return e.min-t.min}));var E,C=0,N=Object(S["a"])(I);try{for(N.s();!(E=N.n()).done;){var T=E.value,w=T.max-T.min;C+=w}}catch(qh){N.e(qh)}finally{N.f()}var L=(i-l-C)/(I.length-1),V=[],_=I[0],B={min:_.min,max:_.max};if("el"in _)V.push({pos:_.min,el:_.el});else{var D,M=Object(S["a"])(_.els);try{for(M.s();!(D=M.n()).done;){var A=D.value,P=Fe(A),R=P.minX;V.push({pos:R,el:A})}}catch(qh){M.e(qh)}finally{M.f()}}for(var F=1;F<I.length;F++){var H=I[F],z=B.max-B.min,U=B.min+z+L,G=H.max-H.min;if(B={min:U,max:U+G},"el"in H)V.push({pos:U,el:H.el});else{var q,X=Object(S["a"])(H.els);try{for(X.s();!(q=X.n()).done;){var W=q.value,Y=Fe(W),Z=Y.minX,J=Z-H.min;V.push({pos:U+J,el:W})}}catch(qh){X.e(qh)}finally{X.f()}}}var K,Q=Object(S["a"])(d);try{for(Q.s();!(K=Q.n()).done;){var $=K.value;if(t.value.includes($.id)){var ee,ne=Object(S["a"])(V);try{for(ne.s();!(ee=ne.n()).done;){var oe=ee.value;if(oe.el.id===$.id)if("rotate"in $&&$.rotate){var ce=Re({left:$.left,top:$.top,width:$.width,height:$.height,rotate:$.rotate}),ae=ce.offsetX;$.left=oe.pos-ae}else $.left=oe.pos}}catch(qh){ne.e(qh)}finally{ne.f()}}}}catch(qh){Q.e(qh)}finally{Q.f()}e.commit(y.UPDATE_SLIDE,{elements:d}),a()},i=function(){var c,r=He(n.value),l=r.minY,i=r.maxY,u=JSON.parse(JSON.stringify(n.value)),d=JSON.parse(JSON.stringify(o.value.elements)),s=[],f=[],p=Object(S["a"])(u);try{var b=function(){var e=c.value;if(e.groupId){var t=f.find((function(t){return t.groupId===e.groupId}));t?f=f.map((function(t){return t.groupId===e.groupId?Object(x["a"])(Object(x["a"])({},t),{},{els:[].concat(Object(te["a"])(t.els),[e])}):t})):f.push({groupId:e.groupId,els:[e]})}else{var n=Fe(e),o=n.minY,a=n.maxY;s.push({min:o,max:a,el:e})}};for(p.s();!(c=p.n()).done;)b()}catch(qh){p.e(qh)}finally{p.f()}var m,v=[],O=Object(S["a"])(f);try{for(O.s();!(m=O.n()).done;){var h=m.value,j=He(h.els),g=j.minY,k=j.maxY;v.push({min:g,max:k,els:h.els})}}catch(qh){O.e(qh)}finally{O.f()}var I=[].concat(s,v);I.sort((function(e,t){return e.min-t.min}));var E,C=0,N=Object(S["a"])(I);try{for(N.s();!(E=N.n()).done;){var T=E.value,w=T.max-T.min;C+=w}}catch(qh){N.e(qh)}finally{N.f()}var L=(i-l-C)/(I.length-1),V=[],_=I[0],B={min:_.min,max:_.max};if("el"in _)V.push({pos:_.min,el:_.el});else{var D,M=Object(S["a"])(_.els);try{for(M.s();!(D=M.n()).done;){var A=D.value,P=Fe(A),R=P.minY;V.push({pos:R,el:A})}}catch(qh){M.e(qh)}finally{M.f()}}for(var F=1;F<I.length;F++){var H=I[F],z=B.max-B.min,U=B.min+z+L,G=H.max-H.min;if(B={min:U,max:U+G},"el"in H)V.push({pos:U,el:H.el});else{var q,X=Object(S["a"])(H.els);try{for(X.s();!(q=X.n()).done;){var W=q.value,Y=Fe(W),Z=Y.minY,J=Z-H.min;V.push({pos:U+J,el:W})}}catch(qh){X.e(qh)}finally{X.f()}}}var K,Q=Object(S["a"])(d);try{for(Q.s();!(K=Q.n()).done;){var $=K.value;if(t.value.includes($.id)){var ee,ne=Object(S["a"])(V);try{for(ne.s();!(ee=ne.n()).done;){var oe=ee.value;if(oe.el.id===$.id)if("rotate"in $&&$.rotate){var ce=Re({left:$.left,top:$.top,width:$.width,height:$.height,rotate:$.rotate}),ae=ce.offsetY;$.top=oe.pos-ae}else $.top=oe.pos}}catch(qh){ne.e(qh)}finally{ne.f()}}}}catch(qh){Q.e(qh)}finally{Q.f()}e.commit(y.UPDATE_SLIDE,{elements:d}),a()};return{displayItemCount:r,uniformHorizontalDisplay:l,uniformVerticalDisplay:i}},_b=Object(j["defineComponent"])({name:"multi-position-panel",setup:function(){var e=ot(),t=e.canCombine,n=e.combineElements,o=e.uncombineElements,c=Lb(),a=c.alignActiveElement,r=io(),l=r.alignElementToCanvas,i=Vb(),u=i.displayItemCount,d=i.uniformHorizontalDisplay,s=i.uniformVerticalDisplay,f=function(e){t.value?a(e):l(e)};return{canCombine:t,displayItemCount:u,combineElements:n,uncombineElements:o,uniformHorizontalDisplay:d,uniformVerticalDisplay:s,alignElement:f}}});n("306b");_b.render=wb,_b.__scopeId="data-v-88d13362";var Bb=_b,Db=Object(j["defineComponent"])({name:"toolbar",setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.toolbarState})),n=[{label:"样式",value:au.EL_STYLE},{label:"位置",value:au.EL_POSITION},{label:"动画",value:au.EL_ANIMATION}],o=[{label:"页面样式",value:au.SLIDE_STYLE},{label:"切换",value:au.SLIDE_ANIMATION},{label:"动画",value:au.EL_ANIMATION}],c=[{label:"位置",value:au.MULTI_POSITION},{label:"样式",value:au.EL_STYLE}],a=function(t){e.commit(y.SET_TOOLBAR_STATE,t)},r=Object(j["computed"])((function(){return e.state.activeElementIdList})),l=Object(j["computed"])((function(){return r.value.length?r.value.length>1?c:n:o}));Object(j["watch"])(l,(function(){var n=l.value.map((function(e){return e.value}));n.includes(t.value)||e.commit(y.SET_TOOLBAR_STATE,n[0])}));var i=Object(j["computed"])((function(){var e,n=(e={},Object(U["a"])(e,au.EL_STYLE,Cf),Object(U["a"])(e,au.EL_POSITION,Wf),Object(U["a"])(e,au.EL_ANIMATION,jp),Object(U["a"])(e,au.SLIDE_STYLE,mb),Object(U["a"])(e,au.SLIDE_ANIMATION,Ib),Object(U["a"])(e,au.MULTI_POSITION,Bb),e);return n[t.value]||null}));return{toolbarState:t,currentTabs:l,setToolbarState:a,currentPanelComponent:i}}});n("7368");Db.render=cu,Db.__scopeId="data-v-c6f9b2f4";var Mb=Db,Ab=Object(j["withScopeId"])("data-v-2a44385a");Object(j["pushScopeId"])("data-v-2a44385a");var Pb={class:"remark"};Object(j["popScopeId"])();var Rb=Ab((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",Pb,[Object(j["createVNode"])("div",{class:"resize-handler",onMousedown:t[1]||(t[1]=function(t){return e.resize(t)})},null,32),Object(j["createVNode"])("textarea",{value:e.remark,placeholder:"点击输入演讲者备注",onInput:t[2]||(t[2]=function(t){return e.handleInput(t)})},null,40,["value"])])})),Fb=Object(j["defineComponent"])({name:"remark",props:{height:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=ue(),c=Object(j["computed"])((function(){return o.getters.currentSlide})),a=Object(j["computed"])((function(){var e;return(null===(e=c.value)||void 0===e?void 0:e.remark)||""})),r=function(e){var t=e.target.value;o.commit(y.UPDATE_SLIDE,{remark:t})},l=function(t){var o=!0,c=t.pageY,a=e.height;document.onmousemove=function(e){if(o){var t=e.pageY,r=t-c,l=-r+a;l<40&&(l=40),l>120&&(l=120),n("update:height",l)}},document.onmouseup=function(){o=!1,document.onmousemove=null,document.onmouseup=null}};return{remark:a,handleInput:r,resize:l}}});n("8055");Fb.render=Rb,Fb.__scopeId="data-v-2a44385a";var Hb=Fb,zb=Object(j["defineComponent"])({name:"editor",components:{EditorHeader:Rn,Canvas:dl,CanvasTool:ti,Thumbnails:$i,Toolbar:Mb,Remark:Hb},setup:function(){var e=Object(j["ref"])(40);return pt(),bt(),{remarkHeight:e}}});n("1fecb");zb.render=ge,zb.__scopeId="data-v-55178b6a";var Ub=zb,Gb=Object(j["withScopeId"])("data-v-d2c01562");Object(j["pushScopeId"])("data-v-d2c01562");var qb={class:"pptist-screen"},Xb={class:"tools"};Object(j["popScopeId"])();var Wb=Gb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ScreenSlide"),l=Object(j["resolveComponent"])("SlideThumbnails"),i=Object(j["resolveComponent"])("WritingBoardTool"),u=Object(j["resolveComponent"])("IconLeftTwo"),d=Object(j["resolveComponent"])("IconRightTwo"),s=Object(j["resolveComponent"])("IconWrite"),f=Object(j["resolveDirective"])("contextmenu");return Object(j["openBlock"])(),Object(j["createBlock"])("div",qb,[Object(j["withDirectives"])(Object(j["createVNode"])("div",{class:"slide-list",onMousewheel:t[1]||(t[1]=function(t){return e.mousewheelListener(t)})},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slides,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["slide-item","turning-mode-".concat(t.turningMode||"slideY"),{current:n===e.slideIndex,before:n<e.slideIndex,after:n>e.slideIndex,hide:(n===e.slideIndex-1||n===e.slideIndex+1)&&t.turningMode!==e.currentSlide.turningMode}],key:t.id},[Object(j["createVNode"])("div",{class:"slide-content",style:{width:e.slideWidth+"px",height:e.slideHeight+"px"}},[Object(j["createVNode"])(r,{slide:t,scale:e.scale,animationIndex:e.animationIndex},null,8,["slide","scale","animationIndex"])],4)],2)})),128))],544),[[f,e.contextmenus]]),e.slideThumbnailModelVisible?(Object(j["openBlock"])(),Object(j["createBlock"])(l,{key:0,turnSlideToIndex:e.turnSlideToIndex,onClose:t[2]||(t[2]=function(t){return e.slideThumbnailModelVisible=!1})},null,8,["turnSlideToIndex"])):Object(j["createCommentVNode"])("",!0),e.writingBoardToolVisible?(Object(j["openBlock"])(),Object(j["createBlock"])(i,{key:1,onClose:t[3]||(t[3]=function(t){return e.writingBoardToolVisible=!1})})):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("div",Xb,[Object(j["createVNode"])(u,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[4]||(t[4]=function(t){return e.execPrev()})}),Object(j["createVNode"])(d,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[5]||(t[5]=function(t){return e.execNext()})}),Object(j["createVNode"])(s,{class:"tool-btn",theme:"two-tone",fill:["#111","#fff"],onClick:t[6]||(t[6]=function(t){return e.writingBoardToolVisible=!0})})]),e.showPageNumber?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:2,class:"page-number",onClick:t[7]||(t[7]=function(t){return e.slideThumbnailModelVisible=!0})},Object(j["toDisplayString"])(e.slideIndex+1)+" / "+Object(j["toDisplayString"])(e.slides.length),1)):Object(j["createCommentVNode"])("",!0)])})),Yb=Object(j["withScopeId"])("data-v-a094625a"),Zb=Yb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ScreenElement");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"screen-slide",style:{width:e.VIEWPORT_SIZE+"px",height:e.VIEWPORT_SIZE*e.viewportRatio+"px",transform:"scale(".concat(e.scale,")")}},[Object(j["createVNode"])("div",{class:"background",style:Object(x["a"])({},e.backgroundStyle)},null,4),(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slide.elements,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:t.id,elementInfo:t,elementIndex:n+1,animationIndex:e.animationIndex},null,8,["elementInfo","elementIndex","animationIndex"])})),128))],4)})),Jb=Object(j["withScopeId"])("data-v-180499e3"),Kb=Jb((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["screen-element",{link:e.elementInfo.link}],id:"screen-element-".concat(e.elementInfo.id),style:{zIndex:e.elementIndex,color:e.theme.fontColor,fontFamily:e.theme.fontName,visibility:e.needWaitAnimation?"hidden":"visible"},onClick:t[1]||(t[1]=function(t){return e.openLink()})},[(Object(j["openBlock"])(),Object(j["createBlock"])(Object(j["resolveDynamicComponent"])(e.currentElementComponent),{elementInfo:e.elementInfo},null,8,["elementInfo"]))],14,["id"])})),Qb=Object(j["withScopeId"])("data-v-1423f8c2"),$b=Qb((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("ElementOutline"),l=Object(j["resolveComponent"])("Chart");return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"screen-element-chart",style:{top:e.elementInfo.top+"px",left:e.elementInfo.left+"px",width:e.elementInfo.width+"px",height:e.elementInfo.height+"px"}},[Object(j["createVNode"])("div",{class:"element-content",style:{backgroundColor:e.elementInfo.fill}},[Object(j["createVNode"])(r,{width:e.elementInfo.width,height:e.elementInfo.height,outline:e.elementInfo.outline},null,8,["width","height","outline"]),Object(j["createVNode"])(l,{width:e.elementInfo.width,height:e.elementInfo.height,type:e.elementInfo.chartType,data:e.elementInfo.data,options:e.elementInfo.options,themeColor:e.elementInfo.themeColor,gridColor:e.elementInfo.gridColor},null,8,["width","height","type","data","options","themeColor","gridColor"])],4)],4)})),em=Object(j["defineComponent"])({name:"screen-element-chart",components:{ElementOutline:Ac,Chart:sa},props:{elementInfo:{type:Object,required:!0}}});n("1539");em.render=$b,em.__scopeId="data-v-1423f8c2";var tm=em,nm=Object(j["defineComponent"])({name:"screen-element",props:{elementInfo:{type:Object,required:!0},elementIndex:{type:Number,required:!0},animationIndex:{type:Number,default:-1}},setup:function(e){var t=Object(j["computed"])((function(){var t,n=(t={},Object(U["a"])(t,ao.IMAGE,vi),Object(U["a"])(t,ao.TEXT,gi),Object(U["a"])(t,ao.SHAPE,Ci),Object(U["a"])(t,ao.LINE,Ti),Object(U["a"])(t,ao.CHART,tm),Object(U["a"])(t,ao.TABLE,zi),t);return n[e.elementInfo.type]||null})),n=ue(),o=Object(j["computed"])((function(){return n.state.theme})),c=Object(j["computed"])((function(){return n.getters.currentSlide})),a=Object(j["computed"])((function(){var t=c.value.animations||[],n=t.findIndex((function(t){return t.elId===e.elementInfo.id}));return-1!==n&&n>=e.animationIndex})),r=function(){e.elementInfo.link&&window.open(e.elementInfo.link)};return{currentElementComponent:t,needWaitAnimation:a,theme:o,openLink:r}}});n("12e8");nm.render=Kb,nm.__scopeId="data-v-180499e3";var om=nm,cm=Object(j["defineComponent"])({name:"screen-slide",components:{ScreenElement:om},props:{slide:{type:Object,required:!0},scale:{type:Number,required:!0},animationIndex:{type:Number,default:-1}},setup:function(e){var t=ue(),n=Object(j["computed"])((function(){return t.state.viewportRatio})),o=Object(j["computed"])((function(){return e.slide.background})),c=Ga(o),a=c.backgroundStyle;return{backgroundStyle:a,VIEWPORT_SIZE:Ke,viewportRatio:n}}});n("7599");cm.render=Zb,cm.__scopeId="data-v-a094625a";var am=cm,rm=Object(j["withScopeId"])("data-v-3436e7cc");Object(j["pushScopeId"])("data-v-3436e7cc");var lm={class:"slide-thumbnails"},im={class:"return-button"},um={class:"slide-thumbnails-content"};Object(j["popScopeId"])();var dm=rm((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconArrowCircleLeft"),l=Object(j["resolveComponent"])("ThumbnailSlide");return Object(j["openBlock"])(),Object(j["createBlock"])("div",lm,[Object(j["createVNode"])("div",im,[Object(j["createVNode"])(r,{class:"icon",onClick:t[1]||(t[1]=function(t){return e.close()})})]),Object(j["createVNode"])("div",um,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.slides,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["thumbnail",{active:n===e.slideIndex}],key:t.id,onClick:function(t){return e.turnSlideToIndex(n)}},[Object(j["createVNode"])(l,{slide:t,size:150},null,8,["slide"])],10,["onClick"])})),128))])])})),sm=Object(j["defineComponent"])({name:"slide-thumbnails",components:{ThumbnailSlide:Xi},props:{turnSlideToIndex:{type:Function}},setup:function(e,t){var n=t.emit,o=ue(),c=Object(j["computed"])((function(){return o.state.slides})),a=Object(j["computed"])((function(){return o.state.slideIndex})),r=function(){return n("close")};return{slides:c,slideIndex:a,close:r}}});n("5297");sm.render=dm,sm.__scopeId="data-v-3436e7cc";var fm=sm,pm=Object(j["withScopeId"])("data-v-1215834a");Object(j["pushScopeId"])("data-v-1215834a");var bm={class:"writing-board-tool"},mm={class:"tools"},vm={class:"colors"};Object(j["popScopeId"])();var Om=pm((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("WritingBoard"),l=Object(j["resolveComponent"])("IconWrite"),i=Object(j["resolveComponent"])("Tooltip"),u=Object(j["resolveComponent"])("IconErase"),d=Object(j["resolveComponent"])("IconClear"),s=Object(j["resolveComponent"])("IconFill"),f=Object(j["resolveComponent"])("IconClose");return Object(j["openBlock"])(),Object(j["createBlock"])("div",bm,[(Object(j["openBlock"])(),Object(j["createBlock"])(j["Teleport"],{to:"body"},[Object(j["createVNode"])(r,{ref:"writingBoardRef",color:e.writingBoardColor,blackboard:e.blackboard,model:e.writingBoardModel},null,8,["color","blackboard","model"])])),Object(j["createVNode"])("div",mm,[Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"画笔"},{default:pm((function(){return[Object(j["createVNode"])("div",{class:["btn",{active:"pen"===e.writingBoardModel}],onClick:t[1]||(t[1]=function(t){return e.changePen()})},[Object(j["createVNode"])(l,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"橡皮擦"},{default:pm((function(){return[Object(j["createVNode"])("div",{class:["btn",{active:"eraser"===e.writingBoardModel}],onClick:t[2]||(t[2]=function(t){return e.changeEraser()})},[Object(j["createVNode"])(u,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"清除墨迹"},{default:pm((function(){return[Object(j["createVNode"])("div",{class:"btn",onClick:t[3]||(t[3]=function(t){return e.clearCanvas()})},[Object(j["createVNode"])(d,{class:"icon"})])]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"黑板"},{default:pm((function(){return[Object(j["createVNode"])("div",{class:["btn",{active:e.blackboard}],onClick:t[4]||(t[4]=function(t){return e.blackboard=!e.blackboard})},[Object(j["createVNode"])(s,{class:"icon"})],2)]})),_:1},8,["mouseEnterDelay"]),Object(j["createVNode"])("div",vm,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.writingBoardColors,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:["color",{active:t===e.writingBoardColor}],key:t,style:{backgroundColor:t},onClick:function(n){return e.changeColor(t)}},null,14,["onClick"])})),128))]),Object(j["createVNode"])(i,{mouseLeaveDelay:0,mouseEnterDelay:.3,title:"关闭画笔"},{default:pm((function(){return[Object(j["createVNode"])("div",{class:"btn",onClick:t[5]||(t[5]=function(t){return e.closeWritingBoard()})},[Object(j["createVNode"])(f,{class:"icon"})])]})),_:1},8,["mouseEnterDelay"])])])})),hm=Object(j["withScopeId"])("data-v-7ff9fa00");Object(j["pushScopeId"])("data-v-7ff9fa00");var jm={class:"writing-board",ref:"writingBoardRef"},gm={key:0,class:"blackboard"};Object(j["popScopeId"])();var ym=hm((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("IconWrite");return Object(j["openBlock"])(),Object(j["createBlock"])("div",jm,[e.blackboard?(Object(j["openBlock"])(),Object(j["createBlock"])("div",gm)):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("canvas",{class:"canvas",ref:"canvasRef",onMousedown:t[1]||(t[1]=function(t){return e.handleMousedown(t)}),onMousemove:t[2]||(t[2]=function(t){return e.handleMousemove(t)}),onMouseup:t[3]||(t[3]=function(t){return e.handleMouseup()}),onTouchstart:t[4]||(t[4]=function(t){return e.handleMousedown(t)}),onTouchmove:t[5]||(t[5]=function(t){return e.handleMousemove(t)}),onTouchend:t[6]||(t[6]=function(t){e.handleMouseup(),e.mouseInCanvas=!1}),onMouseleave:t[7]||(t[7]=function(t){e.handleMouseup(),e.mouseInCanvas=!1}),onMouseenter:t[8]||(t[8]=function(t){return e.mouseInCanvas=!0})},null,544),e.mouseInCanvas&&"pen"===e.model?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:1,class:"pen",style:{left:e.mouse.x-e.penSize/2+"px",top:e.mouse.y-36+e.penSize/2+"px",color:e.color}},[Object(j["createVNode"])(r,{class:"icon",size:"36"})],4)):Object(j["createCommentVNode"])("",!0),e.mouseInCanvas&&"eraser"===e.model?(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:2,class:"eraser",style:{left:e.mouse.x-e.rubberSize/2+"px",top:e.mouse.y-e.rubberSize/2+"px",width:e.rubberSize+"px",height:e.rubberSize+"px"}},null,4)):Object(j["createCommentVNode"])("",!0)],512)})),km=6,Im=80,Em=Object(j["defineComponent"])({name:"writing-board",props:{color:{type:String,default:"#ffcc00"},model:{type:String,default:"pen"},blackboard:{type:Boolean,default:!1}},setup:function(e){var t=null,n=Object(j["ref"])(),o=Object(j["ref"])(),c={x:0,y:0},a=!1,r=0,l=-1,i=Object(j["reactive"])({x:0,y:0}),u=function(e,t){i.x=e,i.y=t},d=Object(j["ref"])(!1),s=function(){o.value&&n.value&&(t=o.value.getContext("2d"),t&&(o.value.width=n.value.clientWidth,o.value.height=n.value.clientHeight,o.value.style.width=n.value.clientWidth+"px",o.value.style.height=n.value.clientHeight+"px",t.lineCap="round",t.lineJoin="round"))};Object(j["onMounted"])(s);var f=function(n,o,a){if(t){var r=c.x,l=c.y;t.lineWidth=a,t.strokeStyle=e.color,t.beginPath(),t.moveTo(r,l),t.lineTo(n,o),t.stroke(),t.closePath()}},p=function(e,n){var a,r,l,i;if(t&&o.value){var u=c.x,d=c.y,s=Im/2,f=s*Math.sin(Math.atan((n-d)/(e-u))),p=s*Math.cos(Math.atan((n-d)/(e-u))),b=[u+f,d-p],m=[u-f,d+p],v=[e+f,n-p],O=[e-f,n+p];t.save(),t.beginPath(),t.arc(e,n,s,0,2*Math.PI),t.clip(),t.clearRect(0,0,o.value.width,o.value.height),t.restore(),t.save(),t.beginPath(),(a=t).moveTo.apply(a,b),(r=t).lineTo.apply(r,v),(l=t).lineTo.apply(l,O),(i=t).lineTo.apply(i,m),t.closePath(),t.clip(),t.clearRect(0,0,o.value.width,o.value.height),t.restore()}},b=function(e,t){var n=c.x,o=c.y;return Math.sqrt((e-n)*(e-n)+(t-o)*(t-o))},m=function(e,t){var n,o=10,c=.1,a=km,r=3,i=e/t;return n=i<=c?a:i>=o?r:a-i/o*a,-1===l?n:1*n/3+2*l/3},v=function(t,n){var o=(new Date).getTime();if("pen"===e.model){var a=b(t,n),i=o-r,u=m(a,i);f(t,n,u),l=u}else p(t,n);c={x:t,y:n},r=(new Date).getTime()},O=function(e){var t=e instanceof MouseEvent?e.offsetX:e.changedTouches[0].pageX,n=e instanceof MouseEvent?e.offsetY:e.changedTouches[0].pageY;a=!0,c={x:t,y:n},r=(new Date).getTime(),e instanceof TouchEvent&&(u(t,n),d.value=!0)},h=function(e){var t=e instanceof MouseEvent?e.offsetX:e.changedTouches[0].pageX,n=e instanceof MouseEvent?e.offsetY:e.changedTouches[0].pageY;u(t,n),a&&v(t,n)},g=function(){a&&(a=!1)},y=function(){t&&o.value&&t.clearRect(0,0,o.value.width,o.value.height)};return{mouse:i,mouseInCanvas:d,penSize:km,rubberSize:Im,writingBoardRef:n,canvasRef:o,handleMousedown:O,handleMousemove:h,handleMouseup:g,clearCanvas:y}}});n("097f");Em.render=ym,Em.__scopeId="data-v-7ff9fa00";var Cm=Em,xm=["#000000","#ffffff","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],Sm=Object(j["defineComponent"])({name:"writing-board-tool",components:{WritingBoard:Cm},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),c=Object(j["ref"])("#e2534d"),a=Object(j["ref"])("pen"),r=Object(j["ref"])(!1),l=function(){a.value="pen"},i=function(){a.value="eraser"},u=function(){o.value.clearCanvas()},d=function(e){"pen"!==a.value&&(a.value="pen"),c.value=e},s=function(){n("close")};return{writingBoardRef:o,writingBoardColors:xm,writingBoardColor:c,writingBoardModel:a,blackboard:r,changePen:l,changeEraser:i,clearCanvas:u,changeColor:d,closeWritingBoard:s}}});n("20c6");Sm.render=Om,Sm.__scopeId="data-v-1215834a";var Nm=Sm,Tm=Object(j["defineComponent"])({name:"screen",components:{ScreenSlide:am,SlideThumbnails:fm,WritingBoardTool:Nm},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.slides})),n=Object(j["computed"])((function(){return e.state.slideIndex})),o=Object(j["computed"])((function(){return e.state.viewportRatio})),c=Object(j["computed"])((function(){return e.getters.currentSlide})),a=Object(j["ref"])(0),r=Object(j["ref"])(0),l=Object(j["computed"])((function(){return a.value/Ke})),i=Object(j["ref"])(!1),u=Object(j["ref"])(!1),d=Object(j["ref"])(!1),s=function(){var e,t,n=document.body.clientWidth,c=document.body.clientHeight;c/n===o.value?(e=n,t=c):c/n>o.value?(e=n,t=n*o.value):(e=c/o.value,t=c),a.value=e,r.value=t},f=st(),p=f.exitScreening,b=function(){s(),dt()||p()};Object(j["onMounted"])((function(){window.addEventListener("resize",b)})),Object(j["onUnmounted"])((function(){window.removeEventListener("resize",b)}));var m=Object(j["computed"])((function(){return c.value.animations||[]})),v=Object(j["ref"])(0),O=function(){var e="animate__",t=m.value[v.value];v.value+=1;var n=document.querySelector("#screen-element-".concat(t.elId," [class^=base-element-]"));if(n){var o="".concat(e).concat(t.type);document.documentElement.style.setProperty("--animate-duration","".concat(t.duration,"ms")),n.classList.add("".concat(e,"animated"),o);var c=function(){document.documentElement.style.removeProperty("--animate-duration"),n.classList.remove("".concat(e,"animated"),o)};n.addEventListener("animationend",c,{once:!0})}},h=Object(j["ref"])(0),g=function(){h.value&&(clearInterval(h.value),h.value=0)};Object(j["onUnmounted"])(g);var k=Object(ne["throttle"])((function(e){ke["a"].success(e)}),1e3,{leading:!0,trailing:!1}),I=function(){if(m.value.length&&v.value>0)v.value-=1;else if(n.value>0){e.commit(y.UPDATE_SLIDE_INDEX,n.value-1);var t=m.value?m.value.length:0;v.value=t}else k("已经是第一页了")},E=function(){m.value.length&&v.value<m.value.length?O():n.value<t.value.length-1?(e.commit(y.UPDATE_SLIDE_INDEX,n.value+1),v.value=0):(k("已经是最后一页了"),g())},C=function(){g(),ke["a"].success("开始自动放映"),h.value=setInterval(E,2500)},x=Object(ne["throttle"])((function(e){e.deltaY<0?I():e.deltaY>0&&E()}),500,{leading:!0,trailing:!1}),S=function(e){var t=e.key.toUpperCase();t===je.UP||t===je.LEFT?I():t!==je.DOWN&&t!==je.RIGHT&&t!==je.SPACE&&t!==je.ENTER||E()};Object(j["onMounted"])((function(){document.addEventListener("keydown",S)})),Object(j["onUnmounted"])((function(){document.removeEventListener("keydown",S)}));var N=function(){e.commit(y.UPDATE_SLIDE_INDEX,n.value-1),v.value=0},T=function(){e.commit(y.UPDATE_SLIDE_INDEX,n.value+1),v.value=0},w=function(t){u.value=!1,e.commit(y.UPDATE_SLIDE_INDEX,t),v.value=0},L=function(){return[{text:"上一页",subText:"↑ ←",disable:n.value<=0,handler:function(){return N()}},{text:"下一页",subText:"↓ →",disable:n.value>=t.value.length-1,handler:function(){return T()}},{text:"第一页",disable:0===n.value,handler:function(){return w(0)}},{text:"最后一页",disable:n.value===t.value.length-1,handler:function(){return w(t.value.length-1)}},{divider:!0},{text:"显示页码",subText:i.value?"√":"",handler:function(){return i.value=!i.value}},{text:"查看所有幻灯片",handler:function(){return u.value=!0}},{text:"画笔",handler:function(){return d.value=!0}},{divider:!0},{text:h.value?"取消自动放映":"自动放映",handler:h.value?g:C},{text:"结束放映",subText:"ESC",handler:p}]};return Object(j["provide"])("slideScale",l),{slides:t,slideIndex:n,currentSlide:c,slideWidth:a,slideHeight:r,scale:l,mousewheelListener:x,animationIndex:v,contextmenus:L,execPrev:I,execNext:E,slideThumbnailModelVisible:u,turnSlideToIndex:w,writingBoardToolVisible:d,showPageNumber:i}}});n("0f72");Tm.render=Wb,Tm.__scopeId="data-v-d2c01562";var wm=Tm,Lm=Object(j["defineComponent"])({name:"app",components:{Editor:Ub,Screen:wm},setup:function(){var e=ue(),t=Object(j["computed"])((function(){return e.state.screening}));return window.onbeforeunload=function(){return!1},Object(j["onMounted"])((function(){e.commit(y.SET_AVAILABLE_FONTS),e.dispatch(k.INIT_SNAPSHOT_DATABASE)})),{screening:t}}});n("0679");Lm.render=g;var Vm=Lm;n("793f"),n("41ed"),n("5952"),n("c860"),n("ae3f"),n("8c56"),n("77ed");function _m(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("MenuContent");return Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],null,[Object(j["createVNode"])("div",{class:"mask",onContextmenu:t[1]||(t[1]=Object(j["withModifiers"])((function(t){return e.removeContextmenu()}),["prevent"])),onMousedown:t[2]||(t[2]=function(t){return e.removeContextmenu()})},null,32),Object(j["createVNode"])("div",{class:"contextmenu",style:{left:e.style.left+"px",top:e.style.top+"px"},onContextmenu:t[3]||(t[3]=Object(j["withModifiers"])((function(){}),["prevent"]))},[Object(j["createVNode"])(r,{menus:e.menus,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])],36)],64)}var Bm=Object(j["withScopeId"])("data-v-eb1555e8");Object(j["pushScopeId"])("data-v-eb1555e8");var Dm={class:"menu-content"},Mm={class:"text"},Am={key:0,class:"sub-text"};Object(j["popScopeId"])();var Pm=Bm((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("menu-content",!0);return Object(j["openBlock"])(),Object(j["createBlock"])("ul",Dm,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.menus,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])(j["Fragment"],{key:t.text||n},[t.hide?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])("li",{key:0,class:["menu-item",{divider:t.divider,disable:t.disable}],onClick:Object(j["withModifiers"])((function(n){return e.handleClickMenuItem(t)}),["stop"])},[t.divider?Object(j["createCommentVNode"])("",!0):(Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:0,class:["menu-item-content",{"has-children":t.children,"has-handler":t.handler}]},[Object(j["createVNode"])("span",Mm,Object(j["toDisplayString"])(t.text),1),t.subText&&!t.children?(Object(j["openBlock"])(),Object(j["createBlock"])("span",Am,Object(j["toDisplayString"])(t.subText),1)):Object(j["createCommentVNode"])("",!0),t.children&&t.children.length?(Object(j["openBlock"])(),Object(j["createBlock"])(r,{key:1,class:"sub-menu",menus:t.children,handleClickMenuItem:e.handleClickMenuItem},null,8,["menus","handleClickMenuItem"])):Object(j["createCommentVNode"])("",!0)],2))],10,["onClick"]))],64)})),128))])})),Rm=Object(j["defineComponent"])({name:"menu-content",props:{menus:{type:Array,required:!0},handleClickMenuItem:{type:Function,required:!0}}});n("0c74");Rm.render=Pm,Rm.__scopeId="data-v-eb1555e8";var Fm=Rm,Hm=Object(j["defineComponent"])({name:"contextmenu",components:{MenuContent:Fm},props:{axis:{type:Object,required:!0},el:{type:Object,required:!0},menus:{type:Array,required:!0},removeContextmenu:{type:Function,required:!0}},setup:function(e){var t=Object(j["computed"])((function(){var t=170,n=30,o=11,c=5,a=e.axis,r=a.x,l=a.y,i=e.menus.filter((function(e){return!(e.divider||e.hide)})).length,u=e.menus.filter((function(e){return e.divider})).length,d=t,s=i*n+u*o+2*c,f=document.body.clientWidth,p=document.body.clientHeight;return{left:f<=r+d?r-d:r,top:p<=l+s?l-s:l}})),n=function(t){t.disable||t.children&&!t.handler||(t.handler&&t.handler(e.el),e.removeContextmenu())};return{style:t,handleClickMenuItem:n}}});n("b8378");Hm.render=_m;var zm=Hm,Um="CTX_CONTEXTMENU_HANDLER",Gm=function(e,t,n){t.stopPropagation(),t.preventDefault();var o=n.value(e);if(o){var c=null,a=function t(){c&&(document.body.removeChild(c),c=null),e.classList.remove("contextmenu-active"),document.body.removeEventListener("scroll",t),window.removeEventListener("resize",t)},r={axis:{x:t.x,y:t.y},el:e,menus:o,removeContextmenu:a};c=document.createElement("div");var l=Object(j["createVNode"])(zm,r,null);Object(j["render"])(l,c),document.body.appendChild(c),e.classList.add("contextmenu-active"),document.body.addEventListener("scroll",a),window.addEventListener("resize",a)}},qm={mounted:function(e,t){e[Um]=function(n){return Gm(e,n,t)},e.addEventListener("contextmenu",e[Um])},unmounted:function(e){e&&e[Um]&&(e.removeEventListener("contextmenu",e[Um]),delete e[Um])}},Xm=qm,Wm="CTX_CLICK_OUTSIDE_HANDLER",Ym=function(e,t,n){var o=n.value,c=t.composedPath(),a=c?c.indexOf(e)<0:!e.contains(t.target);a&&o(t)},Zm={mounted:function(e,t){e[Wm]=function(n){return Ym(e,n,t)},setTimeout((function(){document.addEventListener("click",e[Wm])}),0)},unmounted:function(e){e[Wm]&&(document.removeEventListener("click",e[Wm]),delete e[Wm])}},Jm=Zm,Km=n("9312"),Qm=n("84e7b"),$m=n("1e27"),ev=n("8845"),tv=n("a3ef"),nv=n("8331"),ov=n("4040"),cv=n("f745"),av=n("2e2d"),rv=n("6010"),lv=n("1fcb"),iv=n("500e"),uv=n("0996"),dv=n("1646"),sv=n("fbe7"),fv=n("b8af"),pv=n("bf2c"),bv=n("fd52"),mv=n("f259"),vv=n("1b1c"),Ov=n("bde2"),hv=n("23fa"),jv=n("5a28"),gv=n("c53e"),yv=n("8377"),kv=n("246f"),Iv=n("33a2"),Ev=n("fdbcb"),Cv=n("ccc7"),xv=n("e3b9"),Sv=n("3a3e"),Nv=n("eac5"),Tv=n("694b"),wv=n("e9ec"),Lv=n("ea01"),Vv=n("74f3"),_v=n("4bad"),Bv=n("e7f4"),Dv=n("eb50"),Mv=n("0be2"),Av=n("a90c"),Pv=n("c90a"),Rv=n("d41d"),Fv=n("2c06"),Hv=n("a5dc"),zv=n("8678"),Uv=n("d7fb"),Gv=n("ce42"),qv=n("7abc"),Xv=n("5b20"),Wv=n("69de"),Yv=n("d0c6"),Zv=n("dcc2"),Jv=n("f1d2"),Kv=n("d16b"),Qv=n("a5f1"),$v=n("df0d"),eO=n("70f2"),tO=n("b7c8"),nO=n("f99d"),oO=n("40bb"),cO=n("ae33"),aO=n("8c1a"),rO=n("b7b3"),lO=n("96be"),iO=n("5a69"),uO=n("f9e5"),dO=n("bbce"),sO=n("77ad"),fO=n("46cd"),pO=n("3ee3"),bO=n("dde4"),mO=n("cead"),vO=n("fa00"),OO=n("e970"),hO=n("f3c2"),jO=n("7312"),gO=n("5294b"),yO=n("9fbc"),kO={install:function(e){e.component("IconFontSize",yO["a"]),e.component("IconPicture",gO["a"]),e.component("IconGraphicDesign",jO["a"]),e.component("IconConnection",hO["a"]),e.component("IconChartProportion",OO["a"]),e.component("IconInsertTable",vO["a"]),e.component("IconLock",mO["a"]),e.component("IconUnlock",bO["a"]),e.component("IconFullScreen",pO["a"]),e.component("IconBack",fO["a"]),e.component("IconNext",sO["a"]),e.component("IconAlignTop",dO["a"]),e.component("IconAlignLeft",uO["a"]),e.component("IconAlignRight",iO["a"]),e.component("IconAlignBottom",lO["a"]),e.component("IconAlignVertically",rO["a"]),e.component("IconAlignHorizontally",aO["a"]),e.component("IconBringToFront",cO["a"]),e.component("IconSentToBack",oO["a"]),e.component("IconBringToFrontOne",nO["a"]),e.component("IconSendToBack",tO["a"]),e.component("IconGroup",eO["a"]),e.component("IconUngroup",$v["a"]),e.component("IconFill",Qv["a"]),e.component("IconBackgroundColor",Kv["a"]),e.component("IconPlatte",Jv["a"]),e.component("IconTailoring",Zv["a"]),e.component("IconColorFilter",Yv["a"]),e.component("IconFlipVertically",Wv["a"]),e.component("IconFlipHorizontally",Xv["a"]),e.component("IconText",qv["a"]),e.component("IconAddText",Gv["a"]),e.component("IconAlignTextLeft",Uv["a"]),e.component("IconAlignTextRight",zv["a"]),e.component("IconAlignTextCenter",Hv["a"]),e.component("IconRowHeight",Fv["a"]),e.component("IconFullwidth",Rv["a"]),e.component("IconCode",Pv["a"]),e.component("IconTextBold",Av["a"]),e.component("IconTextItalic",Mv["a"]),e.component("IconTextUnderline",Dv["a"]),e.component("IconStrikethrough",Bv["a"]),e.component("IconQuote",_v["a"]),e.component("IconList",Vv["a"]),e.component("IconOrderedList",Lv["a"]),e.component("IconUpOne",wv["a"]),e.component("IconDownOne",Tv["a"]),e.component("IconFormat",Nv["a"]),e.component("IconDown",Sv["a"]),e.component("IconLeftTwo",xv["a"]),e.component("IconRightTwo",Cv["a"]),e.component("IconPlus",Ev["a"]),e.component("IconMinus",Iv["a"]),e.component("IconClose",kv["a"]),e.component("IconCloseSmall",yv["a"]),e.component("IconChartHistogram",gv["a"]),e.component("IconChartHistogramOne",jv["a"]),e.component("IconChartLine",hv["a"]),e.component("IconChartLineArea",Ov["a"]),e.component("IconChartScatter",vv["a"]),e.component("IconChartPie",mv["a"]),e.component("IconChartRing",bv["a"]),e.component("IconPlayOne",pv["a"]),e.component("IconPpt",fv["a"]),e.component("IconHelpcenter",sv["a"]),e.component("IconGithub",dv["a"]),e.component("IconWrite",uv["a"]),e.component("IconErase",iv["a"]),e.component("IconEffects",lv["a"]),e.component("IconRotate",rv["a"]),e.component("IconEdit",av["a"]),e.component("IconUndo",cv["a"]),e.component("IconTransform",ov["a"]),e.component("IconClick",nv["a"]),e.component("IconTheme",tv["a"]),e.component("IconArrowCircleLeft",ev["a"]),e.component("IconLogout",$m["a"]),e.component("IconClear",Qm["a"]),e.component("IconFolderClose",Km["a"])}},IO=Object(j["withScopeId"])("data-v-bf80565c"),EO=IO((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"file-input",onClick:t[2]||(t[2]=function(t){return e.handleClick()})},[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0),Object(j["createVNode"])("input",{class:"input",type:"file",name:"upload",ref:"inputRef",accept:e.accept,onChange:t[1]||(t[1]=function(t){return e.handleChange(t)})},null,40,["accept"])])})),CO=Object(j["defineComponent"])({name:"file-input",props:{accept:{type:String,default:"image/*"}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(),c=function(){o.value&&(o.value.value="",o.value.click())},a=function(e){var t=e.target.files;t&&n("change",t)};return{handleClick:c,handleChange:a,inputRef:o}}});n("e3f5");CO.render=EO,CO.__scopeId="data-v-bf80565c";var xO=CO,SO={xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",version:"1.1"};function NO(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("svg",SO,[Object(j["renderSlot"])(e.$slots,"default")])}var TO={name:"svg-wrapper"};TO.render=NO;var wO=TO,LO=Object(j["withScopeId"])("data-v-7cae2b90"),VO=LO((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("button",{class:["checkbox-button",{checked:n.checked}]},[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0)],2)})),_O={name:"checkbox-button",props:{checked:{type:Boolean,default:!1}}};n("782e");_O.render=VO,_O.__scopeId="data-v-7cae2b90";var BO=_O,DO=Object(j["withScopeId"])("data-v-7dafd0a9");Object(j["pushScopeId"])("data-v-7dafd0a9");var MO={class:"checkbox-button-group"};Object(j["popScopeId"])();var AO=DO((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",MO,[Object(j["renderSlot"])(e.$slots,"default",{},void 0,!0)])})),PO={name:"checkbox-button-group"};n("69d5");PO.render=AO,PO.__scopeId="data-v-7dafd0a9";var RO=PO,FO=Object(j["withScopeId"])("data-v-45983209");Object(j["pushScopeId"])("data-v-45983209");var HO={class:"color-picker"},zO={class:"picker-saturation-wrap"},UO={class:"picker-controls"},GO={class:"picker-color-wrap"},qO={class:"picker-sliders"},XO={class:"picker-hue-wrap"},WO={class:"picker-alpha-wrap"},YO={class:"picker-field"},ZO={class:"picker-presets"},JO={class:"picker-gradient-presets"},KO={class:"picker-presets"},QO={key:0,class:"recent-colors-title"},$O={class:"recent-colors"};Object(j["popScopeId"])();var eh=FO((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Saturation"),l=Object(j["resolveComponent"])("Checkboard"),i=Object(j["resolveComponent"])("Hue"),u=Object(j["resolveComponent"])("Alpha"),d=Object(j["resolveComponent"])("EditableInput");return Object(j["openBlock"])(),Object(j["createBlock"])("div",HO,[Object(j["createVNode"])("div",zO,[Object(j["createVNode"])(r,{value:e.color,hue:e.hue,onColorChange:t[1]||(t[1]=function(t){return e.changeColor(t)})},null,8,["value","hue"])]),Object(j["createVNode"])("div",UO,[Object(j["createVNode"])("div",GO,[Object(j["createVNode"])("div",{class:"picker-current-color",style:{background:e.currentColor}},null,4),Object(j["createVNode"])(l)]),Object(j["createVNode"])("div",qO,[Object(j["createVNode"])("div",XO,[Object(j["createVNode"])(i,{value:e.color,hue:e.hue,onColorChange:t[2]||(t[2]=function(t){return e.changeColor(t)})},null,8,["value","hue"])]),Object(j["createVNode"])("div",WO,[Object(j["createVNode"])(u,{value:e.color,onColorChange:t[3]||(t[3]=function(t){return e.changeColor(t)})},null,8,["value"])])])]),Object(j["createVNode"])("div",YO,[Object(j["createVNode"])(d,{value:e.color,onColorChange:t[4]||(t[4]=function(t){return e.changeColor(t)})},null,8,["value"])]),Object(j["createVNode"])("div",ZO,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.themeColors,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"picker-presets-color",key:t,style:{background:t},onClick:function(n){return e.selectPresetColor(t)}},null,12,["onClick"])})),128))]),Object(j["createVNode"])("div",JO,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.presetColors,(function(t,n){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"picker-gradient-col",key:n},[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(t,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"picker-gradient-color",key:t,style:{background:t},onClick:function(n){return e.selectPresetColor(t)}},null,12,["onClick"])})),128))])})),128))]),Object(j["createVNode"])("div",KO,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.standardColors,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:t,class:"picker-presets-color",style:{background:t},onClick:function(n){return e.selectPresetColor(t)}},null,12,["onClick"])})),128))]),e.recentColors.length?(Object(j["openBlock"])(),Object(j["createBlock"])("div",QO,"最近使用:")):Object(j["createCommentVNode"])("",!0),Object(j["createVNode"])("div",$O,[(Object(j["openBlock"])(!0),Object(j["createBlock"])(j["Fragment"],null,Object(j["renderList"])(e.recentColors,(function(t){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{key:t,class:"picker-presets-color",style:{background:t},onClick:function(n){return e.selectPresetColor(t)}},null,12,["onClick"])})),128))])])})),th=Object(j["withScopeId"])("data-v-82bf6bda");Object(j["pushScopeId"])("data-v-82bf6bda");var nh={class:"alpha"},oh={class:"alpha-checkboard-wrap"},ch=Object(j["createVNode"])("div",{class:"alpha-picker"},null,-1);Object(j["popScopeId"])();var ah=th((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Checkboard");return Object(j["openBlock"])(),Object(j["createBlock"])("div",nh,[Object(j["createVNode"])("div",oh,[Object(j["createVNode"])(r)]),Object(j["createVNode"])("div",{class:"alpha-gradient",style:{background:e.gradientColor}},null,4),Object(j["createVNode"])("div",{class:"alpha-container",ref:"alphaRef",onMousedown:t[1]||(t[1]=function(t){return e.handleMouseDown(t)})},[Object(j["createVNode"])("div",{class:"alpha-pointer",style:{left:100*e.color.a+"%"}},[ch],4)],544)])})),rh=Object(j["withScopeId"])("data-v-4ceed7b2"),lh=rh((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"checkerboard",style:e.bgStyle},null,4)})),ih={},uh=function(e,t,n){var o=document.createElement("canvas");o.width=o.height=2*n;var c=o.getContext("2d");return c?(c.fillStyle=e,c.fillRect(0,0,o.width,o.height),c.fillStyle=t,c.fillRect(0,0,n,n),c.translate(n,n),c.fillRect(0,0,n,n),o.toDataURL()):null},dh=function(e,t,n){var o=e+","+t+","+n;if(ih[o])return ih[o];var c=uh(e,t,n);return ih[o]=c,c},sh=Object(j["defineComponent"])({name:"checkboard",props:{size:{type:Number,default:8},white:{type:String,default:"#fff"},grey:{type:String,default:"#e6e6e6"}},setup:function(e){var t=Object(j["computed"])((function(){var t=dh(e.white,e.grey,e.size);return{backgroundImage:"url(".concat(t,")")}}));return{bgStyle:t}}});n("041f");sh.render=lh,sh.__scopeId="data-v-4ceed7b2";var fh=sh,ph=Object(j["defineComponent"])({name:"alpha",components:{Checkboard:fh},props:{value:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){return e.value})),c=Object(j["computed"])((function(){var e=[o.value.r,o.value.g,o.value.b].join(",");return"linear-gradient(to right, rgba(".concat(e,", 0) 0%, rgba(").concat(e,", 1) 100%)")})),a=Object(j["ref"])(),r=function(e){if(e.preventDefault(),a.value){var t,c=a.value.clientWidth,r=a.value.getBoundingClientRect().left+window.pageXOffset,l=e.pageX-r;t=l<0?0:l>c?1:Math.round(100*l/c)/100,o.value.a!==t&&n("colorChange",{r:o.value.r,g:o.value.g,b:o.value.b,a:t})}},l=function e(){window.removeEventListener("mousemove",r),window.removeEventListener("mouseup",e)},i=function(e){r(e),window.addEventListener("mousemove",r),window.addEventListener("mouseup",l)};return Object(j["onUnmounted"])(l),{alphaRef:a,gradientColor:c,handleMouseDown:i,color:o}}});n("1036");ph.render=ah,ph.__scopeId="data-v-82bf6bda";var bh=ph,mh=Object(j["withScopeId"])("data-v-6155ac2e");Object(j["pushScopeId"])("data-v-6155ac2e");var vh={class:"hue"},Oh=Object(j["createVNode"])("div",{class:"hue-picker"},null,-1);Object(j["popScopeId"])();var hh=mh((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",vh,[Object(j["createVNode"])("div",{class:"hue-container",ref:"hueRef",onMousedown:t[1]||(t[1]=function(t){return e.handleMouseDown(t)})},[Object(j["createVNode"])("div",{class:"hue-pointer",style:{left:e.pointerLeft}},[Oh],4)],544)])})),jh=Object(j["defineComponent"])({name:"hue",props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(0),c=Object(j["ref"])(""),a=Object(j["computed"])((function(){var t=Ae()(e.value).toHsl();return-1!==e.hue&&(t.h=e.hue),t})),r=Object(j["computed"])((function(){return 0===a.value.h&&"right"===c.value?"100%":100*a.value.h/360+"%"}));Object(j["watch"])((function(){return e.value}),(function(){var t=Ae()(e.value).toHsl(),n=0===t.s?e.hue:t.h;0!==n&&n-o.value>0&&(c.value="right"),0!==n&&n-o.value<0&&(c.value="left"),o.value=n}));var l=Object(j["ref"])(),i=function(t){if(t.preventDefault(),l.value){var o,c,r=l.value.clientWidth,i=l.value.getBoundingClientRect().left+window.pageXOffset,u=t.pageX-i;u<0?o=0:u>r?o=360:(c=100*u/r,o=360*c/100),-1!==e.hue&&a.value.h===o||n("colorChange",{h:o,l:a.value.l,s:a.value.s,a:a.value.a})}},u=function e(){window.removeEventListener("mousemove",i),window.removeEventListener("mouseup",e)},d=function(e){i(e),window.addEventListener("mousemove",i),window.addEventListener("mouseup",u)};return Object(j["onUnmounted"])(u),{hueRef:l,handleMouseDown:d,pointerLeft:r}}});n("29ea");jh.render=hh,jh.__scopeId="data-v-6155ac2e";var gh=jh,yh=Object(j["withScopeId"])("data-v-964b3a74");Object(j["pushScopeId"])("data-v-964b3a74");var kh=Object(j["createVNode"])("div",{class:"saturation-white"},null,-1),Ih=Object(j["createVNode"])("div",{class:"saturation-black"},null,-1),Eh=Object(j["createVNode"])("div",{class:"saturation-circle"},null,-1);Object(j["popScopeId"])();var Ch=yh((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",{class:"saturation",ref:"saturationRef",style:{background:e.bgColor},onMousedown:t[1]||(t[1]=function(t){return e.handleMouseDown(t)})},[kh,Ih,Object(j["createVNode"])("div",{class:"saturation-pointer",style:{top:e.pointerTop,left:e.pointerLeft}},[Eh],4)],36)})),xh=Object(j["defineComponent"])({name:"saturation",props:{value:{type:Object,required:!0},hue:{type:Number,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){var t=Ae()(e.value).toHsv();return-1!==e.hue&&(t.h=e.hue),t})),c=Object(j["computed"])((function(){return"hsl(".concat(o.value.h,", 100%, 50%)")})),a=Object(j["computed"])((function(){return-100*o.value.v+1+100+"%"})),r=Object(j["computed"])((function(){return 100*o.value.s+"%"})),l=Object(ne["throttle"])((function(e){n("colorChange",e)}),20,{leading:!0,trailing:!1}),i=Object(j["ref"])(),u=function(e){if(e.preventDefault(),i.value){var t=i.value.clientWidth,n=i.value.clientHeight,c=i.value.getBoundingClientRect().left+window.pageXOffset,a=i.value.getBoundingClientRect().top+window.pageYOffset,r=Object(ne["clamp"])(e.pageX-c,0,t),u=Object(ne["clamp"])(e.pageY-a,0,n),d=r/t,s=Object(ne["clamp"])(-u/n+1,0,1);l({h:o.value.h,s:d,v:s,a:o.value.a})}},d=function e(){window.removeEventListener("mousemove",u),window.removeEventListener("mouseup",e)},s=function(e){u(e),window.addEventListener("mousemove",u),window.addEventListener("mouseup",d)};return Object(j["onUnmounted"])(d),{saturationRef:i,bgColor:c,handleMouseDown:s,pointerTop:a,pointerLeft:r}}});n("0725");xh.render=Ch,xh.__scopeId="data-v-964b3a74";var Sh=xh,Nh=Object(j["withScopeId"])("data-v-0841a8a7");Object(j["pushScopeId"])("data-v-0841a8a7");var Th={class:"editable-input"};Object(j["popScopeId"])();var wh=Nh((function(e,t,n,o,c,a){return Object(j["openBlock"])(),Object(j["createBlock"])("div",Th,[Object(j["createVNode"])("input",{class:"input-content",value:e.val,onInput:t[1]||(t[1]=function(t){return e.handleInput(t)})},null,40,["value"])])})),Lh=Object(j["defineComponent"])({name:"editable-input",props:{value:{type:Object,required:!0}},setup:function(e,t){var n=t.emit,o=Object(j["computed"])((function(){var t="";return t=e.value.a<1?Ae()(e.value).toHex8String().toUpperCase():Ae()(e.value).toHexString().toUpperCase(),t.replace("#","")})),c=function(e){var t=e.target.value;t.length>=6&&n("colorChange",Ae()(t).toRgb())};return{val:o,handleInput:c}}});n("61fc");Lh.render=wh,Lh.__scopeId="data-v-0841a8a7";var Vh=Lh,_h="RECENT_COLORS",Bh=[["#7f7f7f","#f2f2f2"],["#0d0d0d","#808080"],["#1c1a10","#ddd8c3"],["#0e243d","#c6d9f0"],["#233f5e","#dae5f0"],["#632623","#f2dbdb"],["#4d602c","#eaf1de"],["#3f3150","#e6e0ec"],["#1e5867","#d9eef3"],["#99490f","#fee9da"]],Dh=function(e,t,n){for(var o=Ae()(e).toRgb(),c=Ae()(t).toRgb(),a=(c.r-o.r)/n,r=(c.g-o.g)/n,l=(c.b-o.b)/n,i=[],u=0;u<n;u++){var d=Ae()({r:o.r+a*u,g:o.g+r*u,b:o.b+l*u}).toRgbString();i.push(d)}return i},Mh=function(){var e,t=[],n=Object(S["a"])(Bh);try{for(n.s();!(e=n.n()).done;){var o=e.value;t.push(Dh(o[1],o[0],5))}}catch(qh){n.e(qh)}finally{n.f()}return t},Ah=Object(j["defineComponent"])({name:"color-picker",components:{Alpha:bh,Checkboard:fh,Hue:gh,Saturation:Sh,EditableInput:Vh},props:{modelValue:{type:String,default:"#e86b99"}},setup:function(e,t){var n=t.emit,o=Object(j["ref"])(-1),c=Object(j["ref"])([]),a=Object(j["computed"])({get:function(){return Ae()(e.modelValue).toRgb()},set:function(e){var t="rgba(".concat([e.r,e.g,e.b,e.a].join(","),")");n("update:modelValue",t)}}),r=["#000000","#ffffff","#eeece1","#1e497b","#4e81bb","#e2534d","#9aba60","#8165a0","#47acc5","#f9974c"],l=["#c21401","#ff1e02","#ffc12a","#ffff3a","#90cf5b","#00af57","#00afee","#0071be","#00215f","#72349d"],i=Mh(),u=Object(j["computed"])((function(){return"rgba(".concat([a.value.r,a.value.g,a.value.b,a.value.a].join(","),")")})),d=function(e){o.value=Ae()(e).toHsl().h,n("update:modelValue",e)},s=Object(ne["debounce"])((function(){var e=Ae()(a.value).toRgbString();if(!c.value.includes(e)){c.value=[e].concat(Object(te["a"])(c.value));var t=10;c.value.length>t&&(c.value=c.value.slice(0,t))}}),300,{trailing:!0});Object(j["onMounted"])((function(){var e=localStorage.getItem(_h);e&&(c.value=JSON.parse(e))})),Object(j["watch"])(c,(function(){var e=JSON.stringify(c.value);localStorage.setItem(_h,e)}));var f=function(e){"h"in e?(o.value=e.h,a.value=Ae()(e).toRgb()):(o.value=Ae()(e).toHsl().h,a.value=e),s()};return{themeColors:r,standardColors:l,presetColors:i,color:a,hue:o,currentColor:u,changeColor:f,selectPresetColor:d,recentColors:c}}});n("ae02");Ah.render=eh,Ah.__scopeId="data-v-45983209";var Ph=Ah,Rh=Object(j["withScopeId"])("data-v-6275c730");Object(j["pushScopeId"])("data-v-6275c730");var Fh={key:0,class:"fullscreen-spin"};Object(j["popScopeId"])();var Hh=Rh((function(e,t,n,o,c,a){var r=Object(j["resolveComponent"])("Spin");return n.loading?(Object(j["openBlock"])(),Object(j["createBlock"])("div",Fh,[Object(j["createVNode"])(r,{tip:n.tip,size:"large"},null,8,["tip"])])):Object(j["createCommentVNode"])("",!0)})),zh={name:"fullscreen-spin",props:{loading:{type:Boolean,default:!1},tip:{type:String,default:""}}};n("3f8e");zh.render=Hh,zh.__scopeId="data-v-6275c730";var Uh=zh,Gh=Object(j["createApp"])(Vm);Gh.directive("contextmenu",Xm),Gh.directive("click-outside",Jm),Gh.use(kO),Gh.component("FileInput",xO),Gh.component("SvgWrapper",wO),Gh.component("CheckboxButton",BO),Gh.component("CheckboxButtonGroup",RO),Gh.component("ColorPicker",Ph),Gh.component("FullscreenSpin",Uh),Gh.component("InputNumber",h["a"]),Gh.component("Divider",O["a"]),Gh.component("Button",v["a"]),Gh.component("ButtonGroup",v["a"].Group),Gh.component("Tooltip",m["a"]),Gh.component("Popover",b["a"]),Gh.component("Slider",p["a"]),Gh.component("Select",f["a"]),Gh.component("SelectOption",f["a"].Option),Gh.component("SelectOptGroup",f["a"].OptGroup),Gh.component("Switch",s["a"]),Gh.component("Radio",d["a"]),Gh.component("RadioGroup",d["a"].Group),Gh.component("RadioButton",d["a"].Button),Gh.component("Input",u["a"]),Gh.component("InputGroup",u["a"].Group),Gh.component("Modal",i["a"]),Gh.component("Dropdown",l["a"]),Gh.component("Menu",r["a"]),Gh.component("MenuItem",r["a"].Item),Gh.component("Checkbox",a["a"]),Gh.component("Drawer",c["a"]),Gh.component("Spin",o["a"]),Gh.use(ie,le),Gh.mount("#app")},cdff:function(e,t,n){},ce1a:function(e,t,n){},ce7d:function(e,t,n){},cfcd:function(e,t,n){},cff1:function(e,t,n){"use strict";n("4501")},d32e:function(e,t,n){"use strict";n("26b5")},d38a:function(e,t,n){},d45e:function(e,t,n){"use strict";n("74e9")},d4a2:function(e,t,n){"use strict";n("a51a")},d572:function(e,t,n){},d9a3:function(e,t,n){"use strict";n("0eae")},dbe5:function(e,t,n){},dc02:function(e,t,n){"use strict";n("a25b")},dc17:function(e,t,n){},dc5e:function(e,t,n){},dc83:function(e,t,n){"use strict";n("f6ff")},dd50:function(e,t,n){},de7c:function(e,t,n){"use strict";n("fad2")},e02b:function(e,t,n){},e059:function(e,t,n){},e3dc:function(e,t,n){},e3f5:function(e,t,n){"use strict";n("13b2")},ec3f:function(e,t,n){},ef0f:function(e,t,n){"use strict";n("930c")},f2d4:function(e,t,n){},f33a:function(e,t,n){"use strict";n("b1c5")},f3cc:function(e,t,n){"use strict";n("4967")},f46c:function(e,t,n){"use strict";n("58d7")},f6ff:function(e,t,n){},f740:function(e,t,n){},f802:function(e,t,n){"use strict";n("84e7")},f8f9:function(e,t,n){},f91d:function(e,t,n){"use strict";n("4c37")},fad2:function(e,t,n){},fb1d:function(e,t,n){"use strict";n("d572")},fff2:function(e,t,n){}});
//# sourceMappingURL=app.d797de58.js.map