import{dp as yd,r as Ji,d as kn,cl as fs,al as qh,e as ps,aU as Ad,aG as Zi,J as eo,K as hs,bM as bd,aP as Zo,am as Mr,a as wd,N as Xh,f as We,ai as Kh,aj as it,Z as Jh,o as Ze,q as Pn,w as Ge,c as Pt,F as xd,n as Cd,g as ot,t as Qt,Y as el,aC as Ed,m as Kn,O as dn,v as tl,a3 as nl,at as Zh,aO as em,aR as tm,p as nm,j as rm,__tla as im}from"./index-2eab2d23.js";let Hn,om=Promise.all([(()=>{try{return im}catch{}})()]).then(async()=>{function ms({t:r}){return[{type:"radio",field:"labelPosition",value:"left",title:r("form.labelPosition"),options:[{value:"right",label:"right"},{value:"left",label:"left"},{value:"top",label:"top"}]},{type:"radio",field:"size",value:"small",title:r("form.size"),options:[{value:"large",label:"large"},{value:"default",label:"default"},{value:"small",label:"small"}]},{type:"input",field:"labelWidth",value:"125px",title:r("form.labelWidth")},{type:"switch",field:"hideRequiredAsterisk",value:!1,title:r("form.hideRequiredAsterisk")},{type:"switch",field:"showMessage",value:!0,title:r("form.showMessage")},{type:"switch",field:"inlineMessage",value:!1,title:r("form.inlineMessage")},{type:"switch",field:"formCreateSubmitBtn",value:!0,title:r("form.submitBtn")},{type:"switch",field:"formCreateResetBtn",value:!1,title:r("form.resetBtn")}]}(function(){try{if(typeof document<"u"){var r=document.createElement("style");r.appendChild(document.createTextNode('._fc-designer{cursor:default;height:100%;min-height:500px;overflow:hidden;position:relative}._fc-designer>.el-main{bottom:0;left:0;padding:0;position:absolute;right:0;top:0}._fc-m .form-create ._fc-l-item{background:#2e73ff;height:10px;overflow:hidden;transition:all .3s ease;width:100%}._fc-l,._fc-m,._fc-r{border-top:1px solid #ececec;box-sizing:border-box}._fc-l-group{padding:0 12px}._fc-l-title{font-size:14px;font-weight:600;margin:18px 0 5px}._fc-l-item{background:#fff;color:#000;cursor:pointer;display:inline-block;height:70px;line-height:1;min-width:70px;text-align:center;transition:all .2s ease;width:33.33%}._fc-l-item i{display:inline-block;font-size:21px}._fc-l-item ._fc-l-name{font-size:12px}._fc-l-item ._fc-l-icon{padding:10px 5px 12px}._fc-l-item:hover{background:#2e73ff;color:#fff}._fc-m-tools{align-items:center;border:1px solid #ececec;border-top:0;display:flex;height:40px;justify-content:flex-end}._fc-m-tools button.el-button{align-items:center;display:flex;padding:5px 14px}._fc-m-tools .fc-icon{font-size:14px;margin-right:2px}._fc-r .el-tabs__nav-wrap:after{background-color:#ececec;height:1px}._fc-r ._fc-r-tabs{border-bottom:1px solid #ececec;display:flex;padding:0}._fc-r ._fc-r-tab{box-sizing:border-box;color:#303133;display:inline-block;flex:1;font-size:14px;font-weight:600;height:40px;line-height:40px;list-style:none;position:relative;text-align:center}._fc-r ._fc-r-tab.active{border-bottom:2px solid #409eff;color:#409eff}.drag-box{min-height:60px;width:100%}._fc-m-drag{box-sizing:border-box;overflow:auto;padding:2px}._fc-m-drag,.draggable-drag{background:#fff;height:100%;position:relative}._fc-m-drag>form,._fc-m-drag>form>.el-row{height:100%}.drag-tool{word-wrap:break-word;box-sizing:border-box;display:flex;min-height:20px;outline:1px dashed #2e73ff;overflow:hidden;padding:2px;position:relative;word-break:break-all}.drag-tool .drag-tool{margin:5px}.drag-tool+.drag-tool{margin-top:5px}.drag-tool.active{outline:2px solid #2e73ff}.drag-tool.active>div>.drag-btn{display:flex}.drag-tool .drag-btn{display:none}.drag-r{bottom:2px;right:2px}.drag-l,.drag-r{position:absolute;z-index:2}.drag-l{left:0;top:0}.drag-btn{background-color:#2e73ff;color:#fff;cursor:pointer;float:left;height:18px;justify-content:center;line-height:20px;padding-bottom:1px;text-align:center;width:18px}.drag-btn+.drag-btn{margin-left:2px}.drag-btn-danger{background-color:#ff2e2e}.drag-btn i{font-size:13px}.drag-mask{bottom:0;left:0;position:absolute;right:0;top:0;z-index:1}.CodeMirror{color:#000;direction:ltr;font-family:monospace;height:300px}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-gutter-filler,.CodeMirror-scrollbar-filler{background-color:#fff}.CodeMirror-gutters{background-color:#f7f7f7;border-right:1px solid #ddd;white-space:nowrap}.CodeMirror-linenumber{color:#999;min-width:20px;padding:0 3px 0 5px;text-align:right;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid #000;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{background:#7e7;border:0!important;width:auto}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:-50px}.CodeMirror-ruler{border-left:1px solid #ccc;bottom:0;position:absolute;top:0}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-type,.cm-s-default .cm-variable-3{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-invalidchar,.cm-s-default .cm-error{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{background:#fff;overflow:hidden;position:relative}.CodeMirror-scroll{height:100%;margin-bottom:-50px;margin-right:-50px;outline:none;overflow:scroll!important;padding-bottom:50px;position:relative;z-index:0}.CodeMirror-sizer{border-right:50px solid transparent;position:relative}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{display:none;outline:none;position:absolute;z-index:5}.CodeMirror-vscrollbar{overflow-x:hidden;overflow-y:scroll;right:0;top:0}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-x:scroll;overflow-y:hidden}.CodeMirror-scrollbar-filler{bottom:0;right:0}.CodeMirror-gutter-filler{bottom:0;left:0}.CodeMirror-gutters{left:0;min-height:100%;position:absolute;top:0;z-index:3}.CodeMirror-gutter{display:inline-block;height:100%;margin-bottom:-50px;vertical-align:top;white-space:normal}.CodeMirror-gutter-wrapper{background:none!important;border:none!important;position:absolute;z-index:4}.CodeMirror-gutter-background{bottom:0;position:absolute;top:0;z-index:4}.CodeMirror-gutter-elt{cursor:default;position:absolute;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{word-wrap:normal;-webkit-tap-highlight-color:transparent;background:transparent;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-variant-ligatures:contextual;line-height:inherit;margin:0;overflow:visible;position:relative;white-space:pre;z-index:2}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{bottom:0;left:0;position:absolute;right:0;top:0;z-index:0}.CodeMirror-linewidget{padding:.1px;position:relative;z-index:2}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{box-sizing:content-box}.CodeMirror-measure{height:0;overflow:hidden;position:absolute;visibility:hidden;width:100%}.CodeMirror-cursor{pointer-events:none;position:absolute}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{position:relative;visibility:hidden;z-index:3}.CodeMirror-focused div.CodeMirror-cursors,div.CodeMirror-dragcursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}._fc_struct{width:100%}._fc_struct .CodeMirror{height:450px}._fc_struct .CodeMirror-line{font-size:13px!important;line-height:16px!important}.CodeMirror-lint-tooltip{z-index:1!important}._fc_struct .el-dialog__body{padding:0 20px}._fc_err{color:red;float:left;text-align:left;width:65%}._fc_fetch .el-form-item__label{display:inline-block;float:left;padding-right:5px;text-align:right}._fc_fetch{background-color:#bfdaf7;padding:10px}._fc-validate .form-create .el-form-item{margin-bottom:22px!important}._fc-validate .append-msg{cursor:pointer}._fc-validate .el-input-group__append{padding:0 10px}._fc-required{align-items:center;display:flex}._fc-required .el-input{margin-left:15px}._fc-required .el-switch{height:28px}._fc_table_opt[data-v-c0b6353c]{width:100%}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,d09GRgABAAAAABa8AAsAAAAAJQQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA9hU5KY21hcAAAAYgAAAE2AAADaEcfEkJnbHlmAAACwAAAEPIAABsQkdIMXGhlYWQAABO0AAAALwAAADYmk54paGhlYQAAE+QAAAAgAAAAJAfgBARobXR4AAAUBAAAABIAAACIiGIAAGxvY2EAABQYAAAARgAAAEZ5NHJIbWF4cAAAFGAAAAAdAAAAIAE2ALZuYW1lAAAUgAAAAUAAAAJnEKM8sHBvc3QAABXAAAAA+QAAAWbrmcBBeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFhZpzAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnhe8Lmdu+N/AwMB8hwFIMjCiKGICAH8ZDVB4nOXTR04DQRSE4X/IOefMniUnQBwIBMILWyZnkVkhjmNYcY+SzCGgxsUKjkBL30j9pA7qVwN0Au22Zh1QfFBQjndXi1a9nb5WvYMXz8cYcaVN29pVRTVd67n59ln5+gJtaUd7qqqum2YjtV+j8PoJpphhjnU22HRtgUWWWGaFVbp8n2566PWZ/QwwyBDDPnHUp48x7rWTXj3t9bPeYZ623LLo+nPS/xsD5ad4/Zmtlv0IvzDaDr812gm/OtoNvz/aC3cCVaK1TzXcHVSLMjeqhzuG9sO9QwfhLqLDKDOko3Bn0XGUt9ZJuNvoNNx3dBZOADoPZwFdhFOBLqPMrq7CSUHX4cygm3B60G04R+gunCh0H84WeginDD2G84aewslDz+EM0myE00jzLcp/6rMSFN+kJ4M/AAB4nHU5DZAU1Zn93pv+mZ7p7umZ/pnZ2fnfmWHZndlhemZaliwEEBZYFEEBo8huDkPiXuTk/Fkq3Gk0xxlSKKAclkbu8KTU8y6pilVRVAhRq6g7c1bInScpEkmRi4nlRanEu3Bc7Oa+1z2zsws60/O9733ve/1ef+/77WFYBj7kTvzfzDpmM/MV5s+ZexkGFfJcChVkpBmmpUNHMxYgvdPXjHqrqTZaC1Dd0FWNK+TypXa/VRpAeRkDNY2tXH0hBnoV81a91aAjHJ3vM3GXYZ1xfOFAZuCCKMvihQshWQ5d8HElpigijAxk3CiFJ+VIRD6ZqBRisUIlgT5qYwcOiJSPTjwgw+eAIsvKDKwzij8eTG9BsiajnYqm7PSweXQhnBXlzhroo8xAIkHv70Znr/QdWZfh+psEfA54wCeAKDHDXLoUQGSAUZgEw8SajRYIIoMMgEYKsapGMZDfQMZAc4zI7YRFzxmZT6BL/tTI4IE3jSwQs8aqAbdpZIDpR/SecEb/C/eMMXPgnsQX9vRNc3mOrSI4Bo4nnCf4lh1rldauzRiuoWwjAXSvkXGqOYvs583wJx9GUywQFTNMYhQNsOhX7jt4QWfhOXExZKjuZDiuQYsOhuOwPILnOk8eIiJThE59IWp4K3oqARphptGCNpWeI19FIwifHbquVrtuyL0a2kp53edjG6xXqmuqcL1iXR9TY+jU3BXrV8wFsNz45+V3GIOt/hUbVsyt98tz4y/QR/ae+2X8LZBllqnCut6CaURViy7FLkT1NNZknK/iRgsVgFgqW/U0guPEL7g/XrFjdHTHCjTPa53/SY+tHftcNvs5v0Hn9tdardr++RP2VRN49/Id+3Ys98BdacqzbtVIJjOyat2Ye7x4+9duL80f3z5uM4zo7WkH/iNjMoPMCLOYWcmsZW5gJpl7mAeoZHxx5GabhmWCEfGqN9CyVdhlrorKRXp4PtMIonqiw5fVC3qhWWjmzEK5wBdss8zbcFND13iOh9bHBlCTWo3dajbKYDm6VadoieLoHxWTGArq75s3r885WqjXCz/5CSVF8Bqvcd9KD2B0RDUTintGjSciqOSegd/o4vRipI7l1XVqfmwonXk/ogsSL4UklieiFsluyNREmfC8JNdsSZY5VlJt/Ecjcr8Sx/U+dxddCa8u1AeNiPM9byV0LwyRwd4XEpH1UTMRWaeaczb8Ifnss8nXa7XXp9avn+J4MD1ZChAS4EU9pYivr2NxQJV4fg/PxgSJ8CDugCfzbfgjZoAZY77E/LXnoUq+xwHJlajqgyTBSdV1DWTTkacvX+g2G9QoKCsMgtQa5SrVV1/8RbDRNpqnLHlOVzkeOiUzP4RKDbtFTU3XFAy0IVRFnJZBacTLiMSPhZVI6Fg4poWcUxQme9VQkgoe1/rm1d1RSelF63hN49/nUEAOBzD7fmaoknP3zButR0K6qSdZNsBLaloUd5lmYlmiEsAYFhcCtpBQ+F0cx2IZfSlihrXQObrAOSkaDyvz+s7SRc7la+534TZx8Q4RBB2EBQL1wva+eacu5mu1/Imwkjwh6rrofswipBwX95rLzZ4eKyDyQZ5g1hKIkgNBq7wQpCJmp+WsMBmQtQ3SpjYH8uh4rUZpplZTLSft8EBdOD8DJxTQg6EE1Y8ZRHXOllqtEs4DNBXnrGKaCs4r5uSjoqqKACKhaewpirj/ReF2VVPxh61Sd7bzQGeqqbjvw7BqKN9UdVU1FZSmra66J+lUNNzxI5Pec8WYimels6yTzam5or0QDlVBREGcXrAKcPLgXTLYJpaZzZrOQTOTMfGkcxBPugdPC6ZCBPJbglEhxPNbBRIxBLL+NP4wQzmBH0+amZZz8K2LMKQFA+55ghDmH+CNiEC2XvR0+pJLHiCY0Zh+kPTVIP58GQwY1A0Ujto5NXiuXLc9fYWRPO1rdMTOV1GD+j6ky7js+0LfM2Jm8qaN9WazvvGmtzvI5M3XjlWq1crYtS92kJtHp5Ytm3p4ahlafveoPW7b49vG7dZm3J1n3XjTv1HEmjXPQ9Ysn3poavnyqdEVU1db3kx7/M8220w7Tj0IzzTIXM8wRTAWnsuDqS1CAEC+i/BCZNUhVmRwGpkGp1DAw3OVjQyCBx0Czla5NIRLeThb+qwZOBFo6k3bMPFrUePxxyPVVEwluR2RMCcU48+tDvUnUnIoglc+F+9jhXB0R4qLauCvohgMKxBmi8qDQY4NnrqZ7WFvPsXzCLGPh/p4ohwnt8TFa64RZamaOLI9UjESGZJ6XO9RWC30eIrkDH1I2/50fEAlgWGMUICL/Kv89WBYZPt+EAq9VhRkwrEPR18MCYSM4xp9dM57/i/jDzz7KTAWs4BZBPH6smBgzjaoAqtaqgle32pSz0+h1UQAVPjx0D2HhzODgxnnZLpSSXtJynBIkkLOe9Ybu15trYEfykw+9dTk5K5d+INK2jlJufFwumLJonOSsuJhUd7hbkJHBnf/fn36m79fn3GP2ugF+1m7fWaT+CWmh4GHQHbbVEHmrQbYAFg0GAQcQYulPjbXpP6R+lrfoZbQoWukuHwNr8v8FCexYXyPIPAxdCIsOfvkuCyH8eGwzGFmwv1OGHro+gle1vl9JID38TrPohNy+Jln6MgPPdBDt8O3/dBvGB3k2M80mGXMevD7YLegOyA7maYeVQTSA33Ksb48wcugtkRzKg2AnBcFMu1o0HH3ECxnEwr8ZX3C92fkSE816ZxPVpJwYdk5H00mo6+iL9DG/dl9HDfCBoPsHyg491kA/zotlXTHSVZ74GaYwJ2sZNT5v2gSTziHk1HMRZPOIfTvLFvDAXYTFyDrgmySzkxzwh6B89AkJ+wV2F5W8EDHR9+AT3u+LAdZ0YLP8GdooWddSEblUotFLciKeJAJeBgyq5M1UinDOU4hXuoc934FOc4HA4rzrtcijFYFFS3ovhhUQvwltDIY0UT3pWBEFPA73blGynKOp2AuGxR12XlXYUXeTMJUFI0E3ZeDSOCjqIGWB5EaEd1XoB+M0LO+dJH8PdEg3mxkJpjboALZyfyV5w0LpfL0F7yH3TK9/CeDdMNzjSUIwaAQgFmG3QQm8JSmBe6xRb+gvP5U4OI5Os2bTah+UyW2r0DMKxD0bkEj1aFiX48RIYuCfDH/jXU3fmHL+iWVuIrjSwZW9Rd7NZFlRSTk/zZwZwpxvBjJjhBVi/UayWgthiR97sjYhmuuHd2eybP8fCVmZLJzHknOTabKva1UKQXXPvgB4bDfXOcTOcL16FkzGeM2b920Ye1UMiVHljXXzp3HBh5c0s8SntXDPaI5V1lpxZaKimY0okCFIMMF1drtaE5p9dACKdwTv3Xp6rU33xQ1td6YiUa03t5yKnlvjK6QGoGm3NvrE1OP+g0znXdva8fLuZ+uX6QAFNr3MjEvFTC4gkVqib6+hHOYQrzFeQJvPbQzmojulKJRCVlSFKsRgj+c5phI9A07T6Dvuqc8hhqwRsNSdGZ8VJkSeKYR2AVUllBXQlUJiS6kz90g2Q2cJt1TmeZzvG/Nvm1jZunOTU1rfOcu2tSqO5dOzopyNO49kchopCdj1GAnPdEo/nGHnTbVmmXN4vai5DHFNCKQgnwlGv6Y7v/jcJSZzlcn8Q9AklEmTSUYU3NqcXYcMOkudV+IsRn4STzlbMPPC5IkOBsE6aykSHD9NhyRpEgYP+ycwaWhsOAcoQx4k5YOg8Sco+FYLIxXdPFuPncDfh6sTGWSULkNedFIgx00YlZdg2QYct/cNFaYxnifC7A38W3ZrPNYNnsbvVSs+O3v2k17VMXPNxqXmEZPWO78HCsRltu69OV2Ttm6PBqWroyGJpg62KpGHbiXfoMfK2kzgiAezHWjoNv/8lFW44ggvMVH2TfBTcZEjD+knF4YtHOV1sww+P2TJ3kM7Kb4Mx6zkMeJIhYwbsfu3fg1wCQmBVFnPkQdBvEmjcgxu0wDNM11/VBDN9sqEU9aaoPWHcVZY41ZY+j82NjEhLZ69fj4iYO9c0rJg8kSLkRDB0XxYAhdfCxZLPU8liyVI+JjIlx4UWu4WHIPDwNEZ4u9jtNbLEEA6S06R2G7vCguLvdcSWzXpjTPjTB5yD6WQWV6C3jUu5n7mX8Ayesdc6ChjhY+0xbSqaYgOzO6BRQcFOt16FinSKJa7J9eo2XPwIvTU4H+GTgPuc3MPUwvr89gshrWG7IOx7VXkuHMSrRCnKLHt5c426boye+FHiS+h3kPC00Bg3MMfY8OuWsoZQaOKns7U0Kfgp2qSXSp16GvybU4HdtCx+L4+BRd/hFvqX7OnzEF+3I20RniPto/MmNvB2khq8njdFSXdvrNxCzi6TeSlHdoGsTf8MdJJ3ecxP/p2WoCzm8A8p6utU7bY4dSpLKiUiNXIN/Hj+bzzu35fLuNRtoIHu7p67P6+n7dUyg0CoUP/B4+3mo5v7STkoKkVusYJVl97vnZbTe//Sf8rmfLm5ivMn/JPEQrxJlVOGfY3dLbM3I252eO1nQF3i7WPbPXO6lk5wa5ZpfWKs3K3OBmV2RzbFdfvReS6BfoOUXXFfdGRSdGUmDRFE2e3N2sgL7t/lTR3fdNxTCUP6FMZlhACwwZzfFm/FQ23PdQXFdonxju2wJ7gc4F4H6dJmMLaG8B3t+l46ohb6GTt8jGnZR2FQUH4M4HYEA1DBUG3Kv5sEmZ/DXf8fAtYc19fXoGctoILPHxNBXELUzH4gxYtM0sZa4Dyd/G3EPfgbST8U5SXpjpSquI9d7UjqBcu7X0XBNB5GZnGJvvCTzJLkTdTqPVZWpexkVqWyA+um9He9QNZqFg4i1mAeed30DoRhUAW509eJvzCN7uqlZIVSQrFJGfpQAwlcjPdVDVfduC4isEfeUZi5oTHVfwS3EaxeI+LJjOKW+RWiJnazTGaj7cutX5F3Roq5JQ2pcUbmOHVF1SwkGl3TCza+0SSHERzSWmi+lugR2TEX2RuBDX01iXEZqZQcQKXXF1iuyZ+cCuIZosNGiy8LVbGsRyf+WnEYcfpdt9VFJj5FOqa2fvUMNPM2izePFO9KwqvkdnvCeq7lmaDSWiNI5f+oTcRVioh4pME/a/Bp6AvuvLK16h2DlzqBvbx9R5PR+7rF+2/WPOoMtH8NE1irk7Ll/36g2FOPpRPL/BTQhsmqohgH1BNsUJAgdg3yCnha4OadzgcJeI996qqrdWnP+I5/NxPFBxPqIDaIpCd3cX/7YdhI89c9h/Z+6Q+wnNWILwZCq4ALUMGRO533kanbedp/F+56vbcGkbYLf4/J+QJ0kA5AEZTdGoL0L0rwTVdy46pKScyRY6ptFxOB03gy6SIP4LqN7XsoElAXYtFF5YB8S5w+tDZPmdrLM/J+RJNojuCrBswN0jBu7myPPPE44jZ2Rdl8+Q9r5/QZ4iWdCreZ+lU17FOSvKtiMpGBhmtn9xsz1/vr35i7/sICs1aUesV5uSYzG5jZDsLA4PcSfk2I42Twfp5u73Qx4TB12pejUzfTuvcZ1EuQra7KXK/hsj/+0RT/Wabg8zq1cutRsjCxtXLVl1YNWSqxoLRxr20pVj/aP9/aPXU9CfrVQ+X6ngH2ZTVu2OzXfUGqlcLtXwUCuV/buBVRtXDgys3LhqYO3QkiG4mPb/B0fIz8kmr14tl6i7ohEBMjxQYs77fwnOSvFerhqet4IDBLR9tk36vxOgDXL6ECdfupHn2fsCocB9LC9sdGXuSZZ9kpcu3ShQcniafCiAvtXFA4c+lSUAN3Q3+uT/BzxDuncAAHicY2BkYGAA4qmuv3vi+W2+MnCzMIDAw51rxRD0/yUsjMwxQC4HAxNIFABBdgrdAHicY2BkYGBu+N/AEMOSxMDw/z8LIwNQBAUoAQB7ogTseJxjYWBgYKE1TiKsBgAzHgDrAAAAAAAAAKgA0gEUAU4BmAJSAwYDcgO8BCYEpgUABUoF2AZABwoHTAeqB+4IMAiECOYJxAoWCtALcgvSDEIMWgyeDOgNNA2IAAB4nGNgZGBgUGJYxcDFAAJMQMwFZv8H8xkAHWAB7QAAAHichZE9bsJAEIWfwZAElChKpDRpVikoEsn8lEipUKCnoAez5ke211ovSNQ5TY6QE+QI6Whzikh52EMDRbza2W/evpkdyQDusIeH8rvnLtnDJbOSK7jAo3CV+pOwT34WrqGJnnCd+qtwAy94E26yY8YOnn/FrIV3YQ+3+BCu4AafwlXqX8I++Vu4hgf8CNep/wo3MPGuhZtoeeHA6qnTczXbqVVo0sik7niO9WITT+2pPNE2X5lUdYPOURrpVNtjm3y76DkXqciaRA15q+PYqMyatQ5dsHQu67fbkehBaBIMYKExhWOcQ2GGHeMKIQxSREV0Z/mY7gU2iFlp/3VP6LbIqR9yhS4CdM5cI7rSwnk6TY4tX+tRdXQrbsuahDSUWs1JYrLiDzzcramE1AMsi6oMfbS5ohN/UMyQ/AHYk29XeJxtT8lSwzAMzStNnJay72uhnPVRjq1OPTiRx3Fa+HvsgSO6SE96y6iaVb+1rP6vDWY4whw1Gii0WGCJY6xwglOc4RwXuMQVrnGDW9zhHg94xBOe8YJXrPGGd2zwUbU0Tt1WYq9oK95yXP11ksDDkrS1ZHbOW0XjwSWzm1PSnaJuSkmGhtwQprTIFDafnXw1FLV1UueWWNEw9R1HRVPwom2m6dHobN7QGLThhox4iXVB2Ut7jmlOUQ4tWbd3tkhH9mxyQop6GLdlw9YlKRdfGHW+MNdkc2CeXZ9jbdYUZCR8K3J9kOKbX2kpRN47PtTUy56r6ge3iFdEAAAA) format("woff")}.fc-icon{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:fc-icon!important;font-size:16px;font-style:normal}.icon-group:before{content:"\\eb77"}.icon-add-child:before{content:"\\e789"}.icon-switch:before{content:"\\e77c"}.icon-tab:before{content:"\\e77b"}.icon-button:before{content:"\\e77e"}.icon-input:before{content:"\\e77f"}.icon-checkbox:before{content:"\\e780"}.icon-radio:before{content:"\\e781"}.icon-rate:before{content:"\\e782"}.icon-number:before{content:"\\e783"}.icon-upload:before{content:"\\e784"}.icon-cascader:before{content:"\\e785"}.icon-space:before{content:"\\e786"}.icon-color:before{content:"\\e787"}.icon-span:before{content:"\\e788"}.icon-alert:before{content:"\\e78a"}.icon-row:before{content:"\\e78b"}.icon-divider:before{content:"\\e78d"}.icon-select:before{content:"\\e78e"}.icon-transfer:before{content:"\\e78f"}.icon-editor:before{content:"\\e790"}.icon-slider:before{content:"\\e791"}.icon-tree:before{content:"\\e792"}.icon-date:before{content:"\\e793"}.icon-time:before{content:"\\e794"}.icon-delete:before{content:"\\e770"}.icon-copy:before{content:"\\e771"}.icon-import:before{content:"\\e773"}.icon-add:before{content:"\\e774"}.icon-preview:before{content:"\\e776"}.icon-move:before{content:"\\e777"}')),document.head.appendChild(r)}}catch{}})();const Jn=(r,o)=>{const t=r.__vccOpts||r;for(const[a,u]of o)t[a]=u;return t},Sd=kn({name:"IconRefresh"}),_d={viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg","data-v-029747aa":""},kd=[ot("path",{fill:"currentColor",d:"M771.776 794.88A384 384 0 0 1 128 512h64a320 320 0 0 0 555.712 216.448H654.72a32 32 0 1 1 0-64h149.056a32 32 0 0 1 32 32v148.928a32 32 0 1 1-64 0v-50.56zM276.288 295.616h92.992a32 32 0 0 1 0 64H220.16a32 32 0 0 1-32-32V178.56a32 32 0 0 1 64 0v50.56A384 384 0 0 1 896.128 512h-64a320 320 0 0 0-555.776-216.384z"},null,-1)],Dd=Jn(Sd,[["render",function(r,o,t,a,u,d){return Ze(),Pt("svg",_d,kd)}]]);function si({t:r}){return[{type:"input",field:"field",value:"",title:r("form.field")},{type:"input",field:"title",value:"",title:r("form.title")},{type:"input",field:"info",value:"",title:r("form.info")},{type:"Struct",field:"_control",value:[],title:r("form.control"),props:{defaultValue:[],validate:o=>!!Array.isArray(o)&&(!o.length||!o.some(({rule:t})=>!Array.isArray(t)))}},{type:"col",props:{span:24},children:[{type:"el-button",props:{type:"primary",size:"small"},inject:!0,on:{click({$f:o}){const t=o.activeRule;t&&(t.__fc__.updateKey(),t.value=void 0,t.__fc__.$api.sync(t))}},native:!0,children:[{type:"i",class:"fc-icon icon-delete"},r("form.clear")]},{type:"el-button",props:{type:"success",size:"small",icon:bd(Dd)},inject:!0,on:{click({$f:o}){const t=o.activeRule;t&&(t.__fc__.updateKey(!0),t.__fc__.$api.sync(t))}},native:!0,children:[r("form.refresh")]}]}]}function vs(){return[{type:"validate",field:"validate",value:[]}]}function ui(r,o,t){r[o]=t}const ht={type:(r,o)=>Object.prototype.toString.call(r)==="[object "+o+"]",Undef:r=>r==null,Element:r=>typeof r=="object"&&r!==null&&r.nodeType===1&&!ht.Object(r),trueArray:r=>Array.isArray(r)&&r.length>0,Function(r){const o=this.getType(r);return o==="Function"||o==="AsyncFunction"},getType(r){const o=Object.prototype.toString.call(r);return/^\[object (.*)\]$/.exec(o)[1]},empty:r=>!!(r==null||Array.isArray(r)&&Array.isArray(r)&&!r.length)||typeof r=="string"&&!r};function gs(r,o){return{}.hasOwnProperty.call(r,o)}function ys(r,o={},t){let a=!1;for(let u in o)if(Object.prototype.hasOwnProperty.call(o,u)){let d=o[u];if((a=Array.isArray(d))||ht.Object(d)){let c=r[u]===void 0;if(a)a=!1,c&&ui(r,u,[]);else if(d._clone&&t!==void 0){if(!t){ui(r,u,d._clone());continue}d=d.getRule(),c&&ui(r,u,{})}else c&&ui(r,u,{});r[u]=ys(r[u],d,t)}else ui(r,u,d),ht.Undef(d)||(ht.Undef(d.__json)||(r[u].__json=d.__json),ht.Undef(d.__origin)||(r[u].__origin=d.__origin))}return t!==void 0&&Array.isArray(r)?r.filter(u=>!u||!u.__ctrl):r}function Zn(r){return ys({},{value:r}).value}function rl(r){return r.replace(r[0],r[0].toLowerCase())}["Date","Object","String","Boolean","Array","Number"].forEach(r=>{ht[r]=function(o){return ht.type(o,r)}});let Md=0;function mt(){return"F"+Math.random().toString(36).substr(3,3)+(+`${Date.now()}${++Md}`).toString(36)}const As="[[FORM-CREATE-PREFIX-",bs="-FORM-CREATE-SUFFIX]]",ws="$FN:",xs="$FNX:",to="function";function Cs(r){return new Function("return "+r)()}function Td(r,o){if(r&&ht.String(r)&&r.length>4){let t=r.trim(),a=!1;try{if(t.indexOf(bs)>0&&t.indexOf(As)===0)t=t.replace(bs,"").replace(As,""),a=!0;else if(t.indexOf(ws)===0)t=t.replace(ws,""),a=!0;else{if(t.indexOf(xs)===0)return t=Cs("function($inject){"+t.replace(xs,"")+"}"),t.__json=r,t.__inject=!0,t;!o&&t.indexOf(to)===0&&t!==to&&(a=!0)}if(!a)return r;const u=Cs(t.indexOf(to)===-1&&t.indexOf("(")!==0?to+" "+t:t);return u.__json=r,u}catch{return}}return r}const Nd={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",info:"\u63D0\u793A\u4FE1\u606F",control:"\u8054\u52A8\u6570\u636E",clear:"\u6E05\u7A7A\u503C",refresh:"\u5237\u65B0",labelPosition:"\u6807\u7B7E\u4F4D\u7F6E",size:"\u8868\u5355\u5C3A\u5BF8",labelWidth:"\u6807\u7B7E\u5BBD\u5EA6",hideRequiredAsterisk:"\u9690\u85CF\u5FC5\u586B\u5B57\u6BB5\u7684\u6807\u7B7E\u65C1\u8FB9\u7684\u7EA2\u8272\u661F\u53F7",showMessage:"\u663E\u793A\u6821\u9A8C\u9519\u8BEF\u4FE1\u606F",inlineMessage:"\u4EE5\u884C\u5185\u5F62\u5F0F\u5C55\u793A\u6821\u9A8C\u4FE1\u606F",submitBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u63D0\u4EA4\u6309\u94AE",resetBtn:"\u662F\u5426\u663E\u793A\u8868\u5355\u91CD\u7F6E\u6309\u94AE",submit:"\u63D0\u4EA4",reset:"\u91CD\u7F6E"},validate:{type:"\u5B57\u6BB5\u7C7B\u578B",typePlaceholder:"\u8BF7\u9009\u62E9",trigger:"\u89E6\u53D1\u65B9\u5F0F",mode:"\u9A8C\u8BC1\u65B9\u5F0F",modes:{required:"\u5FC5\u586B",pattern:"\u6B63\u5219\u8868\u8FBE\u5F0F",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",len:"\u957F\u5EA6"},message:"\u9519\u8BEF\u4FE1\u606F",auto:"\u81EA\u52A8\u83B7\u53D6",autoRequired:"\u8BF7\u8F93\u5165{title}",autoMode:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684{title}",requiredPlaceholder:"\u8BF7\u8F93\u5165\u63D0\u793A\u8BED"},tableOptions:{handle:"\u64CD\u4F5C",add:"\u6DFB\u52A0"},struct:{title:"\u7F16\u8F91\u6570\u636E",submit:"\u786E \u5B9A",cancel:"\u53D6 \u6D88",error:"\u8F93\u5165\u5185\u5BB9\u683C\u5F0F\u6709\u8BEF"},fetch:{action:"\u63A5\u53E3",actionRequired:"\u8BF7\u6570\u636E\u63A5\u53E3",method:"\u8BF7\u6C42\u65B9\u5F0F",dataType:"\u63D0\u4EA4\u65B9\u5F0F",data:"\u9644\u5E26\u6570\u636E",headers:"header\u4FE1\u606F",parse:"\u89E3\u6790\u51FD\u6570",parseInfo:"\u89E3\u6790\u63A5\u53E3\u6570\u636E\uFF0C\u8FD4\u56DE\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u7ED3\u6784",parseValidate:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u89E3\u6790\u51FD\u6570"},designer:{preview:"\u9884 \u89C8",clear:"\u6E05 \u7A7A",clearConfirm:"\u6E05\u7A7A",clearCancel:"\u53D6\u6D88",clearConfirmTitle:"\u6E05\u7A7A\u540E\u5C06\u4E0D\u80FD\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u6E05\u7A7A\u5417\uFF1F",config:{component:"\u7EC4\u4EF6\u914D\u7F6E",form:"\u8868\u5355\u914D\u7F6E",rule:"\u57FA\u7840\u914D\u7F6E",props:"\u5C5E\u6027\u914D\u7F6E",validate:"\u9A8C\u8BC1\u914D\u7F6E"}},menu:{main:"\u8868\u5355\u7EC4\u4EF6",aide:"\u8F85\u52A9\u7EC4\u4EF6",layout:"\u5E03\u5C40\u7EC4\u4EF6"},props:{required:"\u662F\u5426\u5FC5\u586B",options:"\u9009\u9879\u6570\u636E",option:"\u9009\u9879",optionsType:{json:"JSON\u6570\u636E",fetch:"\u63A5\u53E3\u6570\u636E",struct:"\u9759\u6001\u6570\u636E"}},components:{group:{name:"\u5B50\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65 disabled \u72B6\u6001",expand:"\u8BBE\u7F6E\u9ED8\u8BA4\u5C55\u5F00\u51E0\u9879",button:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",sortBtn:"\u662F\u5426\u663E\u793A\u6392\u5E8F\u6309\u94AE",min:"\u8BBE\u7F6E\u6700\u5C0F\u6DFB\u52A0\u51E0\u9879",max:"\u8BBE\u7F6E\u6700\u591A\u6DFB\u52A0\u51E0\u9879",mode:"\u7EC4\u4EF6\u7C7B\u578B",modeOpts:{subform:"\u5BF9\u8C61",group:"\u6570\u7EC4"}}},radio:{name:"\u5355\u9009\u6846",props:{disabled:"\u662F\u5426\u7981\u7528",type:"\u6309\u94AE\u5F62\u5F0F",textColor:"\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272",fill:"\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}},checkbox:{name:"\u591A\u9009\u6846",props:{type:"\u6309\u94AE\u7C7B\u578B",disabled:"\u662F\u5426\u7981\u7528",min:"\u53EF\u88AB\u52FE\u9009\u7684 checkbox \u7684\u6700\u5C0F\u6570\u91CF",max:"\u53EF\u88AB\u52FE\u9009\u7684 checkbox \u7684\u6700\u5927\u6570\u91CF",textColor:"\u6309\u94AE\u5F62\u5F0F\u7684 Checkbox \u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272",fill:"\u6309\u94AE\u5F62\u5F0F\u7684 Checkbox \u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}},input:{name:"\u8F93\u5165\u6846",props:{type:"\u7C7B\u578B",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",showWordLimit:"\u662F\u5426\u663E\u793A\u8F93\u5165\u5B57\u6570\u7EDF\u8BA1",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u53EF\u6E05\u7A7A",showPassword:"\u662F\u5426\u663E\u793A\u5207\u6362\u5BC6\u7801\u56FE\u6807",disabled:"\u7981\u7528",prefixIcon:"\u8F93\u5165\u6846\u5934\u90E8\u56FE\u6807",suffixIcon:"\u8F93\u5165\u6846\u5C3E\u90E8\u56FE\u6807",rowInfo:'\u53EA\u5BF9 type="textarea" \u6709\u6548',rows:"\u8F93\u5165\u6846\u884C\u6570",autocomplete:"\u81EA\u52A8\u8865\u5168",readonly:"\u662F\u5426\u53EA\u8BFB",resize:"\u63A7\u5236\u662F\u5426\u80FD\u88AB\u7528\u6237\u7F29\u653E",autofocus:"\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"}},inputNumber:{name:"\u8BA1\u6570\u5668",props:{min:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5C0F\u503C",max:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5927\u503C",step:"\u8BA1\u6570\u5668\u6B65\u957F",stepStrictly:"\u662F\u5426\u53EA\u80FD\u8F93\u5165 step \u7684\u500D\u6570",disabled:"\u662F\u5426\u7981\u7528\u8BA1\u6570\u5668",controls:"\u662F\u5426\u4F7F\u7528\u63A7\u5236\u6309\u94AE",controlsPosition:"\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",placeholder:"\u8F93\u5165\u6846\u9ED8\u8BA4 placeholder"}},select:{name:"\u9009\u62E9\u5668",props:{multiple:"\u662F\u5426\u591A\u9009",disabled:"\u662F\u5426\u7981\u7528",clearable:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879",collapseTags:"\u591A\u9009\u65F6\u662F\u5426\u5C06\u9009\u4E2D\u503C\u6309\u6587\u5B57\u7684\u5F62\u5F0F\u5C55\u793A",multipleLimit:"\u591A\u9009\u65F6\u7528\u6237\u6700\u591A\u53EF\u4EE5\u9009\u62E9\u7684\u9879\u76EE\u6570\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",autocomplete:"autocomplete \u5C5E\u6027",placeholder:"\u5360\u4F4D\u7B26",filterable:"\u662F\u5426\u53EF\u641C\u7D22",allowCreate:"\u662F\u5426\u5141\u8BB8\u7528\u6237\u521B\u5EFA\u65B0\u6761\u76EE",noMatchText:"\u641C\u7D22\u6761\u4EF6\u65E0\u5339\u914D\u65F6\u663E\u793A\u7684\u6587\u5B57",noDataText:"\u9009\u9879\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u6587\u5B57",reserveKeyword:"\u591A\u9009\u4E14\u53EF\u641C\u7D22\u65F6\uFF0C\u662F\u5426\u5728\u9009\u4E2D\u4E00\u4E2A\u9009\u9879\u540E\u4FDD\u7559\u5F53\u524D\u7684\u641C\u7D22\u5173\u952E\u8BCD",defaultFirstOption:"\u5728\u8F93\u5165\u6846\u6309\u4E0B\u56DE\u8F66\uFF0C\u9009\u62E9\u7B2C\u4E00\u4E2A\u5339\u914D\u9879",popperAppendToBody:"\u662F\u5426\u5C06\u5F39\u51FA\u6846\u63D2\u5165\u81F3 body \u5143\u7D20",automaticDropdown:"\u5BF9\u4E8E\u4E0D\u53EF\u641C\u7D22\u7684 Select\uFF0C\u662F\u5426\u5728\u8F93\u5165\u6846\u83B7\u5F97\u7126\u70B9\u540E\u81EA\u52A8\u5F39\u51FA\u9009\u9879\u83DC\u5355"}},switch:{name:"\u5F00\u5173",props:{disabled:"\u662F\u5426\u7981\u7528",width:"\u5BBD\u5EA6\uFF08px\uFF09",activeText:"switch \u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",inactiveText:"switch \u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",activeValue:"switch \u6253\u5F00\u65F6\u7684\u503C",inactiveValue:"switch \u5173\u95ED\u65F6\u7684\u503C",activeColor:"switch \u6253\u5F00\u65F6\u7684\u80CC\u666F\u8272",inactiveColor:"switch \u5173\u95ED\u65F6\u7684\u80CC\u666F\u8272"}},slider:{name:"\u6ED1\u5757",props:{min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",disabled:"\u662F\u5426\u7981\u7528",step:"\u6B65\u957F",showInput:"\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\uFF0C\u4EC5\u5728\u975E\u8303\u56F4\u9009\u62E9\u65F6\u6709\u6548",showInputControls:"\u5728\u663E\u793A\u8F93\u5165\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\u7684\u63A7\u5236\u6309\u94AE",showStops:"\u662F\u5426\u663E\u793A\u95F4\u65AD\u70B9",range:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9",vertical:"\u662F\u5426\u7AD6\u5411\u6A21\u5F0F",height:"Slider \u9AD8\u5EA6\uFF0C\u7AD6\u5411\u6A21\u5F0F\u65F6\u5FC5\u586B"}},timePicker:{name:"\u65F6\u95F4\u9009\u62E9\u5668",props:{pickerOptions:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",readonly:"\u5B8C\u5168\u53EA\u8BFB",disabled:"\u7981\u7528",editable:"\u6587\u672C\u6846\u53EF\u8F93\u5165",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",placeholder:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",isRange:"\u662F\u5426\u4E3A\u65F6\u95F4\u8303\u56F4\u9009\u62E9",arrowControl:"\u662F\u5426\u4F7F\u7528\u7BAD\u5934\u8FDB\u884C\u65F6\u95F4\u9009\u62E9",align:"\u5BF9\u9F50\u65B9\u5F0F",prefixIcon:"\u81EA\u5B9A\u4E49\u5934\u90E8\u56FE\u6807\u7684\u7C7B\u540D",clearIcon:"\u81EA\u5B9A\u4E49\u6E05\u7A7A\u56FE\u6807\u7684\u7C7B\u540D"}},datePicker:{name:"\u65E5\u671F\u9009\u62E9\u5668",props:{pickerOptions:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",readonly:"\u5B8C\u5168\u53EA\u8BFB",disabled:"\u7981\u7528",type:"\u663E\u793A\u7C7B\u578B",editable:"\u6587\u672C\u6846\u53EF\u8F93\u5165",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",placeholder:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9",startPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",endPlaceholder:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9",format:"\u663E\u793A\u5728\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F",align:"\u5BF9\u9F50\u65B9\u5F0F",rangeSeparator:"\u9009\u62E9\u8303\u56F4\u65F6\u7684\u5206\u9694\u7B26",unlinkPanels:"\u5728\u8303\u56F4\u9009\u62E9\u5668\u91CC\u53D6\u6D88\u4E24\u4E2A\u65E5\u671F\u9762\u677F\u4E4B\u95F4\u7684\u8054\u52A8",prefixIcon:"\u81EA\u5B9A\u4E49\u5934\u90E8\u56FE\u6807\u7684\u7C7B\u540D",clearIcon:"\u81EA\u5B9A\u4E49\u6E05\u7A7A\u56FE\u6807\u7684\u7C7B\u540D"}},rate:{name:"\u8BC4\u5206",props:{max:"\u6700\u5927\u5206\u503C",disabled:"\u662F\u5426\u4E3A\u53EA\u8BFB",allowHalf:"\u662F\u5426\u5141\u8BB8\u534A\u9009",voidColor:"\u672A\u9009\u4E2D icon \u7684\u989C\u8272",disabledVoidColor:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D icon \u7684\u989C\u8272",voidIconClass:"\u672A\u9009\u4E2D icon \u7684\u7C7B\u540D",disabledVoidIconClass:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D icon \u7684\u7C7B\u540D",showScore:"\u662F\u5426\u663E\u793A\u5F53\u524D\u5206\u6570\uFF0Cshow-score \u548C show-text \u4E0D\u80FD\u540C\u65F6\u4E3A\u771F",textColor:"\u8F85\u52A9\u6587\u5B57\u7684\u989C\u8272",scoreTemplate:"\u5206\u6570\u663E\u793A\u6A21\u677F"}},colorPicker:{name:"\u989C\u8272\u9009\u62E9\u5668",props:{disabled:"\u662F\u5426\u7981\u7528",showAlpha:"\u662F\u5426\u652F\u6301\u900F\u660E\u5EA6\u9009\u62E9",colorFormat:"\u989C\u8272\u7684\u683C\u5F0F"}},row:{name:"\u6805\u683C\u5E03\u5C40",props:{gutter:"\u6805\u683C\u95F4\u9694",type:"flex\u5E03\u5C40\u6A21\u5F0F",justify:"flex \u5E03\u5C40\u4E0B\u7684\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",align:"flex \u5E03\u5C40\u4E0B\u7684\u5782\u76F4\u6392\u5217\u65B9\u5F0F"}},col:{name:"\u683C\u5B50",props:{span:"\u6805\u683C\u5360\u636E\u7684\u5217\u6570",offset:"\u6805\u683C\u5DE6\u4FA7\u7684\u95F4\u9694\u683C\u6570",push:"\u6805\u683C\u5411\u53F3\u79FB\u52A8\u683C\u6570",pull:"\u6805\u683C\u5411\u5DE6\u79FB\u52A8\u683C\u6570"}},tab:{name:"\u6807\u7B7E\u9875",props:{type:"\u98CE\u683C\u7C7B\u578B",closable:"\u6807\u7B7E\u662F\u5426\u53EF\u5173\u95ED",tabPosition:"\u9009\u9879\u5361\u6240\u5728\u4F4D\u7F6E",stretch:"\u6807\u7B7E\u7684\u5BBD\u5EA6\u662F\u5426\u81EA\u6491\u5F00"}},"tab-pane":{name:"\u6807\u7B7E\u9875",props:{label:"\u9009\u9879\u5361\u6807\u9898",disabled:"\u662F\u5426\u7981\u7528",name:"\u4E0E\u9009\u9879\u5361\u7ED1\u5B9A\u503C value \u5BF9\u5E94\u7684\u6807\u8BC6\u7B26\uFF0C\u8868\u793A\u9009\u9879\u5361\u522B\u540D",lazy:"\u6807\u7B7E\u662F\u5426\u5EF6\u8FDF\u6E32\u67D3"}},"el-divider":{name:"\u5206\u5272\u7EBF",props:{direction:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u65B9\u5411",formCreateChild:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848",contentPosition:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E"}},cascader:{name:"\u7EA7\u8054\u9009\u62E9\u5668",props:{props:"\u914D\u7F6E\u9009\u9879",size:"\u5C3A\u5BF8",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",disabled:"\u662F\u5426\u7981\u7528",clearable:"\u662F\u5426\u652F\u6301\u6E05\u7A7A\u9009\u9879",showAllLevels:"\u8F93\u5165\u6846\u4E2D\u662F\u5426\u663E\u793A\u9009\u4E2D\u503C\u7684\u5B8C\u6574\u8DEF\u5F84",collapseTags:"\u591A\u9009\u6A21\u5F0F\u4E0B\u662F\u5426\u6298\u53E0Tag",separator:"\u9009\u9879\u5206\u9694\u7B26"}},upload:{name:"\u4E0A\u4F20",props:{uploadType:"\u4E0A\u4F20\u7C7B\u578B",action:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)",headers:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",multiple:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6",data:"\u4E0A\u4F20\u65F6\u9644\u5E26\u7684\u989D\u5916\u53C2\u6570",name:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5B57\u6BB5\u540D",withCredentials:"\u652F\u6301\u53D1\u9001 cookie \u51ED\u8BC1\u4FE1\u606F",accept:"\u63A5\u53D7\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B\uFF08thumbnail-mode \u6A21\u5F0F\u4E0B\u6B64\u53C2\u6570\u65E0\u6548\uFF09",autoUpload:"\u662F\u5426\u5728\u9009\u53D6\u6587\u4EF6\u540E\u7ACB\u5373\u8FDB\u884C\u4E0A\u4F20",disabled:"\u662F\u5426\u7981\u7528",limit:"\u6700\u5927\u5141\u8BB8\u4E0A\u4F20\u4E2A\u6570"}},"el-transfer":{name:"\u7A7F\u68AD\u6846",props:{data:"Transfer \u7684\u6570\u636E\u6E90",filterable:"\u662F\u5426\u53EF\u641C\u7D22",filterPlaceholder:"\u641C\u7D22\u6846\u5360\u4F4D\u7B26",targetOrder:"\u53F3\u4FA7\u5217\u8868\u5143\u7D20\u7684\u6392\u5E8F\u7B56\u7565",titles:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898",buttonTexts:"\u81EA\u5B9A\u4E49\u6309\u94AE\u6587\u6848",format:"\u5217\u8868\u9876\u90E8\u52FE\u9009\u72B6\u6001\u6587\u6848",props:"\u6570\u636E\u6E90\u7684\u5B57\u6BB5\u522B\u540D",leftDefaultChecked:"\u521D\u59CB\u72B6\u6001\u4E0B\u5DE6\u4FA7\u5217\u8868\u7684\u5DF2\u52FE\u9009\u9879\u7684 key \u6570\u7EC4",rightDefaultChecked:"\u521D\u59CB\u72B6\u6001\u4E0B\u53F3\u4FA7\u5217\u8868\u7684\u5DF2\u52FE\u9009\u9879\u7684 key \u6570\u7EC4"}},tree:{name:"\u6811\u5F62\u63A7\u4EF6",props:{emptyText:"\u5185\u5BB9\u4E3A\u7A7A\u7684\u65F6\u5019\u5C55\u793A\u7684\u6587\u672C",props:"\u914D\u7F6E\u9009\u9879\uFF0C\u5177\u4F53\u770B\u4E0B\u8868",renderAfterExpand:"\u662F\u5426\u5728\u7B2C\u4E00\u6B21\u5C55\u5F00\u67D0\u4E2A\u6811\u8282\u70B9\u540E\u624D\u6E32\u67D3\u5176\u5B50\u8282\u70B9",defaultExpandAll:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9",expandOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\uFF0C \u9ED8\u8BA4\u503C\u4E3A true\uFF0C\u5982\u679C\u4E3A false\uFF0C\u5219\u53EA\u6709\u70B9\u7BAD\u5934\u56FE\u6807\u7684\u65F6\u5019\u624D\u4F1A\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\u3002",checkOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u9009\u4E2D\u8282\u70B9\uFF0C\u9ED8\u8BA4\u503C\u4E3A false\uFF0C\u5373\u53EA\u6709\u5728\u70B9\u51FB\u590D\u9009\u6846\u65F6\u624D\u4F1A\u9009\u4E2D\u8282\u70B9\u3002",autoExpandParent:"\u5C55\u5F00\u5B50\u8282\u70B9\u7684\u65F6\u5019\u662F\u5426\u81EA\u52A8\u5C55\u5F00\u7236\u8282\u70B9",checkStrictly:"\u5728\u663E\u793A\u590D\u9009\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u4E25\u683C\u7684\u9075\u5FAA\u7236\u5B50\u4E0D\u4E92\u76F8\u5173\u8054\u7684\u505A\u6CD5\uFF0C\u9ED8\u8BA4\u4E3A false",accordion:"\u662F\u5426\u6BCF\u6B21\u53EA\u6253\u5F00\u4E00\u4E2A\u540C\u7EA7\u6811\u8282\u70B9\u5C55\u5F00",indent:"\u76F8\u90BB\u7EA7\u8282\u70B9\u95F4\u7684\u6C34\u5E73\u7F29\u8FDB\uFF0C\u5355\u4F4D\u4E3A\u50CF\u7D20",iconClass:"\u81EA\u5B9A\u4E49\u6811\u8282\u70B9\u7684\u56FE\u6807",nodeKey:"\u6BCF\u4E2A\u6811\u8282\u70B9\u7528\u6765\u4F5C\u4E3A\u552F\u4E00\u6807\u8BC6\u7684\u5C5E\u6027\uFF0C\u6574\u68F5\u6811\u5E94\u8BE5\u662F\u552F\u4E00\u7684"}},"el-alert":{name:"\u63D0\u793A",description:"description",props:{title:"\u6807\u9898",type:"\u4E3B\u9898",description:"\u8F85\u52A9\u6027\u6587\u5B57",closable:"\u662F\u5426\u53EF\u5173\u95ED",center:"\u6587\u5B57\u662F\u5426\u5C45\u4E2D",closeText:"\u5173\u95ED\u6309\u94AE\u81EA\u5B9A\u4E49\u6587\u672C",showIcon:"\u662F\u5426\u663E\u793A\u56FE\u6807",effect:"\u9009\u62E9\u63D0\u4F9B\u7684\u4E3B\u9898"}},span:{name:"\u6587\u5B57",props:{formCreateTitle:"\u6807\u9898",formCreateChild:"\u5185\u5BB9"}},div:{name:"\u95F4\u8DDD",props:{height:"\u9AD8\u5EA6"}},"el-button":{name:"\u6309\u94AE",props:{formCreateChild:"\u5185\u5BB9",size:"\u5C3A\u5BF8",type:"\u7C7B\u578B",plain:"\u662F\u5426\u6734\u7D20\u6309\u94AE",round:"\u662F\u5426\u5706\u89D2\u6309\u94AE",circle:"\u662F\u5426\u5706\u5F62\u6309\u94AE",loading:"\u662F\u5426\u52A0\u8F7D\u4E2D\u72B6\u6001",disabled:"\u662F\u5426\u7981\u7528\u72B6\u6001",icon:"\u56FE\u6807\u7C7B\u540D"}},"fc-editor":{name:"\u5BCC\u6587\u672C\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}}}};function Tr(r,o,t){const a=[{label:r("props.optionsType.json"),value:0},{label:r("props.optionsType.fetch"),value:1}],u=[{value:0,rule:[{type:"Struct",field:"formCreate"+ci(o).replace(".",">"),props:{defaultValue:[]}}]},{value:1,rule:[{type:"Fetch",field:"formCreateEffect>fetch",props:{to:o}}]}];return t!==!1&&(a.splice(0,0,{label:r("props.optionsType.struct"),value:2}),u.push({value:2,rule:[{type:"TableOptions",field:"formCreate"+ci(o).replace(".",">"),props:{defaultValue:[]}}]})),{type:"radio",title:r("props.options"),field:"_optionType",value:t!==!1?2:0,options:a,props:{type:"button"},control:u}}function ci(r){return r.replace(r[0],r[0].toLocaleUpperCase())}const di=function(r){const o=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(r));return o&&Es[o[1].toLowerCase()]?Es[o[1].toLowerCase()](r):r},Es={object:function(r){var o=[];for(var t in r)!gs(r,t)||o.push(di(t)+": "+(r[t]!=null?di(r[t]):"null"));return`{ `+o.join(`, `)+` }`},function:function(r){var o=/^ *([\w]+) *\(/.exec(r=""+r);return o&&o[1]!=="function"?"function "+r:r},array:function(r){for(var o=0,t=[];o=" "?a==="\\"?o[t]="\\\\":a==='"'&&(o[t]='\\"'):o[t]=a===` `?"\\n":a==="\r"?"\\r":a===" "?"\\t":a==="\b"?"\\b":a==="\f"?"\\f":"\\u00"+((a=a.charCodeAt())>15?1:0)+a%16}return'"'+o.join("")+'"'}},Ss=function(r){if(r&&typeof r=="object"){for(let o in r)if(Object.prototype.hasOwnProperty.call(r,o)){let t=r[o];(Array.isArray(t)||ht.Object(t))&&Ss(t),ht.String(t)&&(r[o]=Td(t))}}return r},Rd=r=>(o,t)=>Ld(o,t,wd(r)),Ld=(r,o,t)=>function(a,u,d){let c=0,p=(u=(u||"").split(".")).length;for(;a!=null&&c{var d;return`${(d=o==null?void 0:o[u])!=null?d:`{${u}}`}`}),Bd=r=>{const o=eo(()=>wd(r).name),t=eo(()=>ci(function(u){return rl(u.replace(/(-[a-z])/g,function(d){return d.replace("-","").toLocaleUpperCase()}))}(o.value||""))),a=Xh(r)?r:Ji(r);return{lang:o,name:t,locale:a,t:Rd(r)}},il=r=>Bd(eo(()=>r.value||Nd)),Xe=(r,o,t)=>t.map(a=>(a.field==="formCreate$required"?a.title=r("props.required")||a.title:a.field&&a.field!=="_optionType"&&(a.title=r("components."+o+"."+a.field)||a.title),a)),ol="radio",ll={icon:"icon-radio",label:"\u5355\u9009\u6846",name:ol,rule({t:r}){const o=r("props.option");return{type:ol,field:mt(),title:r("components.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:[1,2].map(t=>({label:o+t,value:t}))}},props:(r,{t:o})=>Xe(o,ol+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},Tr(o,"options"),{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"type",title:"\u6309\u94AE\u5F62\u5F0F",props:{activeValue:"button",inactiveValue:"default"}},{type:"input",field:"textColor",title:"\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272"},{type:"input",field:"fill",title:"\u6309\u94AE\u5F62\u5F0F\u7684 Radio \u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}])},al="checkbox",sl={icon:"icon-checkbox",label:"\u591A\u9009\u6846",name:al,rule({t:r}){const o=r("props.option");return{type:al,field:mt(),title:r("components.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:[1,2].map(t=>({label:o+t,value:t}))}},props:(r,{t:o})=>Xe(o,al+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},Tr(o,"options"),{type:"switch",field:"type",title:"\u6309\u94AE\u7C7B\u578B",props:{activeValue:"button",inactiveValue:"default"}},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"inputNumber",field:"min",title:"\u53EF\u88AB\u52FE\u9009\u7684 checkbox \u7684\u6700\u5C0F\u6570\u91CF",props:{min:0}},{type:"inputNumber",field:"max",title:"\u53EF\u88AB\u52FE\u9009\u7684 checkbox \u7684\u6700\u5927\u6570\u91CF",props:{min:0}},{type:"input",field:"textColor",title:"\u6309\u94AE\u5F62\u5F0F\u7684 Checkbox \u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272"},{type:"input",field:"fill",title:"\u6309\u94AE\u5F62\u5F0F\u7684 Checkbox \u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}])},ul="input",cl={icon:"icon-input",label:"\u8F93\u5165\u6846",name:ul,rule:({t:r})=>({type:ul,field:mt(),title:r("components.input.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,ul+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"select",field:"type",title:"\u7C7B\u578B",options:[{label:"text",value:"text"},{label:"textarea",value:"textarea"},{label:"number",value:"number"},{label:"password",value:"password"}]},{type:"inputNumber",field:"maxlength",title:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",props:{min:0}},{type:"inputNumber",field:"minlength",title:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",props:{min:0}},{type:"switch",field:"showWordLimit",title:"\u662F\u5426\u663E\u793A\u8F93\u5165\u5B57\u6570\u7EDF\u8BA1"},{type:"input",field:"placeholder",title:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C"},{type:"switch",field:"clearable",title:"\u662F\u5426\u53EF\u6E05\u7A7A"},{type:"switch",field:"showPassword",title:"\u662F\u5426\u663E\u793A\u5207\u6362\u5BC6\u7801\u56FE\u6807"},{type:"switch",field:"disabled",title:"\u7981\u7528"},{type:"input",field:"prefixIcon",title:"\u8F93\u5165\u6846\u5934\u90E8\u56FE\u6807"},{type:"input",field:"suffixIcon",title:"\u8F93\u5165\u6846\u5C3E\u90E8\u56FE\u6807"},{type:"inputNumber",field:"rows",info:o("components.input.props.rowsInfo"),title:"\u8F93\u5165\u6846\u884C\u6570",props:{min:0}},{type:"select",field:"autocomplete",title:"\u81EA\u52A8\u8865\u5168",options:[{label:"on",value:"on"},{label:"off",value:"off"}]},{type:"switch",field:"readonly",title:"\u662F\u5426\u53EA\u8BFB"},{type:"select",field:"resize",title:"\u63A7\u5236\u662F\u5426\u80FD\u88AB\u7528\u6237\u7F29\u653E",options:[{label:"none",value:"none"},{label:"both",value:"both"},{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}]},{type:"switch",field:"autofocus",title:"\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"}])},dl="inputNumber",fl={icon:"icon-number",label:"\u8BA1\u6570\u5668",name:dl,rule:({t:r})=>({type:dl,field:mt(),title:r("components.inputNumber.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,dl+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"inputNumber",field:"min",title:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5C0F\u503C"},{type:"inputNumber",field:"max",title:"\u8BBE\u7F6E\u8BA1\u6570\u5668\u5141\u8BB8\u7684\u6700\u5927\u503C"},{type:"inputNumber",field:"step",title:"\u8BA1\u6570\u5668\u6B65\u957F",props:{min:0}},{type:"switch",field:"stepStrictly",title:"\u662F\u5426\u53EA\u80FD\u8F93\u5165 step \u7684\u500D\u6570"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528\u8BA1\u6570\u5668"},{type:"switch",field:"controls",title:"\u662F\u5426\u4F7F\u7528\u63A7\u5236\u6309\u94AE",value:!0},{type:"select",field:"controlsPosition",title:"\u63A7\u5236\u6309\u94AE\u4F4D\u7F6E",options:[{label:"default",value:""},{label:"right",value:"right"}]},{type:"input",field:"placeholder",title:"\u8F93\u5165\u6846\u9ED8\u8BA4 placeholder"}])},pl="select",hl={icon:"icon-select",label:"\u9009\u62E9\u5668",name:pl,rule({t:r}){const o=r("props.option");return{type:pl,field:mt(),title:r("components.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:[1,2].map(t=>({label:o+t,value:t}))}},watch:{multiple({rule:r}){r.key=mt()}},props:(r,{t:o})=>Xe(o,pl+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},Tr(o,"options"),{type:"switch",field:"multiple",title:"\u662F\u5426\u591A\u9009"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"clearable",title:"\u662F\u5426\u53EF\u4EE5\u6E05\u7A7A\u9009\u9879"},{type:"switch",field:"collapseTags",title:"\u591A\u9009\u65F6\u662F\u5426\u5C06\u9009\u4E2D\u503C\u6309\u6587\u5B57\u7684\u5F62\u5F0F\u5C55\u793A"},{type:"inputNumber",field:"multipleLimit",title:"\u591A\u9009\u65F6\u7528\u6237\u6700\u591A\u53EF\u4EE5\u9009\u62E9\u7684\u9879\u76EE\u6570\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",props:{min:0}},{type:"input",field:"autocomplete",title:"autocomplete \u5C5E\u6027"},{type:"input",field:"placeholder",title:"\u5360\u4F4D\u7B26"},{type:"switch",field:"filterable",title:"\u662F\u5426\u53EF\u641C\u7D22"},{type:"switch",field:"allowCreate",title:"\u662F\u5426\u5141\u8BB8\u7528\u6237\u521B\u5EFA\u65B0\u6761\u76EE"},{type:"input",field:"noMatchText",title:"\u641C\u7D22\u6761\u4EF6\u65E0\u5339\u914D\u65F6\u663E\u793A\u7684\u6587\u5B57"},{type:"switch",field:"remote",title:"\u5176\u4E2D\u7684\u9009\u9879\u662F\u5426\u4ECE\u670D\u52A1\u5668\u8FDC\u7A0B\u52A0\u8F7D"},{type:"Struct",field:"remoteMethod",title:"\u81EA\u5B9A\u4E49\u8FDC\u7A0B\u641C\u7D22\u65B9\u6CD5"},{type:"input",field:"noDataText",title:"\u9009\u9879\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u6587\u5B57"},{type:"switch",field:"reserveKeyword",title:"\u591A\u9009\u4E14\u53EF\u641C\u7D22\u65F6\uFF0C\u662F\u5426\u5728\u9009\u4E2D\u4E00\u4E2A\u9009\u9879\u540E\u4FDD\u7559\u5F53\u524D\u7684\u641C\u7D22\u5173\u952E\u8BCD"},{type:"switch",field:"defaultFirstOption",title:"\u5728\u8F93\u5165\u6846\u6309\u4E0B\u56DE\u8F66\uFF0C\u9009\u62E9\u7B2C\u4E00\u4E2A\u5339\u914D\u9879"},{type:"switch",field:"popperAppendToBody",title:"\u662F\u5426\u5C06\u5F39\u51FA\u6846\u63D2\u5165\u81F3 body \u5143\u7D20",value:!0},{type:"switch",field:"automaticDropdown",title:"\u5BF9\u4E8E\u4E0D\u53EF\u641C\u7D22\u7684 Select\uFF0C\u662F\u5426\u5728\u8F93\u5165\u6846\u83B7\u5F97\u7126\u70B9\u540E\u81EA\u52A8\u5F39\u51FA\u9009\u9879\u83DC\u5355"}])},ml="switch",vl={icon:"icon-switch",label:"\u5F00\u5173",name:ml,rule:({t:r})=>({type:ml,field:mt(),title:r("components.switch.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,ml+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"inputNumber",field:"width",title:"\u5BBD\u5EA6\uFF08px\uFF09",props:{min:0}},{type:"input",field:"activeText",title:"switch \u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0"},{type:"input",field:"inactiveText",title:"switch \u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0"},{type:"input",field:"activeValue",title:"switch \u6253\u5F00\u65F6\u7684\u503C"},{type:"input",field:"inactiveValue",title:"switch \u5173\u95ED\u65F6\u7684\u503C"},{type:"input",field:"activeColor",title:"switch \u6253\u5F00\u65F6\u7684\u80CC\u666F\u8272"},{type:"input",field:"inactiveColor",title:"switch \u5173\u95ED\u65F6\u7684\u80CC\u666F\u8272"}])},gl="slider",yl={icon:"icon-slider",label:"\u6ED1\u5757",name:gl,rule:({t:r})=>({type:gl,field:mt(),title:r("components.slider.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,gl+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"inputNumber",field:"min",title:"\u6700\u5C0F\u503C",props:{min:0}},{type:"inputNumber",field:"max",title:"\u6700\u5927\u503C",props:{min:0}},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"inputNumber",field:"step",title:"\u6B65\u957F",props:{min:0}},{type:"switch",field:"showInput",title:"\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\uFF0C\u4EC5\u5728\u975E\u8303\u56F4\u9009\u62E9\u65F6\u6709\u6548"},{type:"switch",field:"showInputControls",title:"\u5728\u663E\u793A\u8F93\u5165\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u663E\u793A\u8F93\u5165\u6846\u7684\u63A7\u5236\u6309\u94AE",value:!0},{type:"switch",field:"showStops",title:"\u662F\u5426\u663E\u793A\u95F4\u65AD\u70B9"},{type:"switch",field:"range",title:"\u662F\u5426\u4E3A\u8303\u56F4\u9009\u62E9"},{type:"switch",field:"vertical",title:"\u662F\u5426\u7AD6\u5411\u6A21\u5F0F"},{type:"input",field:"height",title:"Slider \u9AD8\u5EA6\uFF0C\u7AD6\u5411\u6A21\u5F0F\u65F6\u5FC5\u586B"}])},Al="timePicker",bl={icon:"icon-time",label:"\u65F6\u95F4\u9009\u62E9\u5668",name:Al,rule:({t:r})=>({type:Al,field:mt(),title:r("components.timePicker.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,Al+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"Struct",field:"pickerOptions",title:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",props:{defaultValue:{}}},{type:"switch",field:"readonly",title:"\u5B8C\u5168\u53EA\u8BFB"},{type:"switch",field:"disabled",title:"\u7981\u7528"},{type:"switch",field:"editable",title:"\u6587\u672C\u6846\u53EF\u8F93\u5165",value:!0},{type:"switch",field:"clearable",title:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",value:!0},{type:"input",field:"placeholder",title:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"startPlaceholder",title:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"endPlaceholder",title:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"switch",field:"isRange",title:"\u662F\u5426\u4E3A\u65F6\u95F4\u8303\u56F4\u9009\u62E9"},{type:"switch",field:"arrowControl",title:"\u662F\u5426\u4F7F\u7528\u7BAD\u5934\u8FDB\u884C\u65F6\u95F4\u9009\u62E9"},{type:"select",field:"align",title:"\u5BF9\u9F50\u65B9\u5F0F",options:[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}]},{type:"input",field:"prefixIcon",title:"\u81EA\u5B9A\u4E49\u5934\u90E8\u56FE\u6807\u7684\u7C7B\u540D"},{type:"input",field:"clearIcon",title:"\u81EA\u5B9A\u4E49\u6E05\u7A7A\u56FE\u6807\u7684\u7C7B\u540D"}])},wl="datePicker",xl={icon:"icon-date",label:"\u65E5\u671F\u9009\u62E9\u5668",name:wl,rule:({t:r})=>({type:wl,field:mt(),title:r("components.datePicker.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,wl+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"Struct",field:"pickerOptions",title:"\u5F53\u524D\u65F6\u95F4\u65E5\u671F\u9009\u62E9\u5668\u7279\u6709\u7684\u9009\u9879",props:{defaultValue:{}}},{type:"switch",field:"readonly",title:"\u5B8C\u5168\u53EA\u8BFB"},{type:"switch",field:"disabled",title:"\u7981\u7528"},{type:"select",field:"type",title:"\u663E\u793A\u7C7B\u578B",options:[{label:"year",value:"year"},{label:"month",value:"month"},{label:"date",value:"date"},{label:"dates",value:"dates"},{label:"week",value:"week"},{label:"datetime",value:"datetime"},{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}]},{type:"switch",field:"editable",title:"\u6587\u672C\u6846\u53EF\u8F93\u5165",value:!0},{type:"switch",field:"clearable",title:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",value:!0},{type:"input",field:"placeholder",title:"\u975E\u8303\u56F4\u9009\u62E9\u65F6\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"startPlaceholder",title:"\u8303\u56F4\u9009\u62E9\u65F6\u5F00\u59CB\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"endPlaceholder",title:"\u8303\u56F4\u9009\u62E9\u65F6\u7ED3\u675F\u65E5\u671F\u7684\u5360\u4F4D\u5185\u5BB9"},{type:"input",field:"format",title:"\u663E\u793A\u5728\u8F93\u5165\u6846\u4E2D\u7684\u683C\u5F0F"},{type:"select",field:"align",title:"\u5BF9\u9F50\u65B9\u5F0F",options:[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"},{label:"left",value:"left"}]},{type:"input",field:"rangeSeparator",title:"\u9009\u62E9\u8303\u56F4\u65F6\u7684\u5206\u9694\u7B26"},{type:"switch",field:"unlinkPanels",title:"\u5728\u8303\u56F4\u9009\u62E9\u5668\u91CC\u53D6\u6D88\u4E24\u4E2A\u65E5\u671F\u9762\u677F\u4E4B\u95F4\u7684\u8054\u52A8"},{type:"input",field:"prefixIcon",title:"\u81EA\u5B9A\u4E49\u5934\u90E8\u56FE\u6807\u7684\u7C7B\u540D"},{type:"input",field:"clearIcon",title:"\u81EA\u5B9A\u4E49\u6E05\u7A7A\u56FE\u6807\u7684\u7C7B\u540D"}])},Cl="rate",El={icon:"icon-rate",label:"\u8BC4\u5206",name:Cl,rule:({t:r})=>({type:Cl,field:mt(),title:r("components.rate.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,Cl+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"inputNumber",field:"max",title:"\u6700\u5927\u5206\u503C",props:{min:0}},{type:"switch",field:"disabled",title:"\u662F\u5426\u4E3A\u53EA\u8BFB"},{type:"switch",field:"allowHalf",title:"\u662F\u5426\u5141\u8BB8\u534A\u9009"},{type:"input",field:"voidColor",title:"\u672A\u9009\u4E2D icon \u7684\u989C\u8272"},{type:"input",field:"disabledVoidColor",title:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D icon \u7684\u989C\u8272"},{type:"input",field:"voidIconClass",title:"\u672A\u9009\u4E2D icon \u7684\u7C7B\u540D"},{type:"input",field:"disabledVoidIconClass",title:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D icon \u7684\u7C7B\u540D"},{type:"switch",field:"showScore",title:"\u662F\u5426\u663E\u793A\u5F53\u524D\u5206\u6570\uFF0Cshow-score \u548C show-text \u4E0D\u80FD\u540C\u65F6\u4E3A\u771F"},{type:"input",field:"textColor",title:"\u8F85\u52A9\u6587\u5B57\u7684\u989C\u8272"},{type:"input",field:"scoreTemplate",title:"\u5206\u6570\u663E\u793A\u6A21\u677F"}])},Sl="colorPicker",_l={icon:"icon-color",label:"\u989C\u8272\u9009\u62E9\u5668",name:Sl,rule:({t:r})=>({type:Sl,field:mt(),title:r("components.colorPicker.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,Sl+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"showAlpha",title:"\u662F\u5426\u652F\u6301\u900F\u660E\u5EA6\u9009\u62E9"},{type:"select",field:"colorFormat",title:"\u989C\u8272\u7684\u683C\u5F0F",options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]}])},kl={icon:"icon-row",label:"\u6805\u683C\u5E03\u5C40",name:"row",mask:!1,rule:()=>({type:"FcRow",props:{},children:[]}),children:"col",childrenLen:2,props:(r,{t:o})=>Xe(o,"row.props",[{type:"inputNumber",field:"gutter",title:"\u6805\u683C\u95F4\u9694",props:{min:0}},{type:"switch",field:"type",title:"flex\u5E03\u5C40\u6A21\u5F0F",props:{activeValue:"flex",inactiveValue:"default"}},{type:"select",field:"justify",title:"flex \u5E03\u5C40\u4E0B\u7684\u6C34\u5E73\u6392\u5217\u65B9\u5F0F",options:[{label:"start",value:"start"},{label:"end",value:"end"},{label:"center",value:"center"},{label:"space-around",value:"space-around"},{label:"space-between",value:"space-between"}]},{type:"select",field:"align",title:"flex \u5E03\u5C40\u4E0B\u7684\u5782\u76F4\u6392\u5217\u65B9\u5F0F",options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}]}])},Dl="col",_s={name:Dl,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule:()=>({type:Dl,props:{span:12},children:[]}),props:(r,{t:o})=>Xe(o,Dl+".props",[{type:"slider",field:"span",title:"\u6805\u683C\u5360\u636E\u7684\u5217\u6570",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",title:"\u6805\u683C\u5DE6\u4FA7\u7684\u95F4\u9694\u683C\u6570",props:{min:0,max:24}},{type:"slider",field:"push",title:"\u6805\u683C\u5411\u53F3\u79FB\u52A8\u683C\u6570",props:{min:0,max:24}},{type:"slider",field:"pull",title:"\u6805\u683C\u5411\u5DE6\u79FB\u52A8\u683C\u6570",props:{min:0,max:24}}])},ks="tab-pane",Ds={label:"\u6807\u7B7E\u9875",name:ks,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule:({t:r})=>({type:"el-tab-pane",props:{label:r("components.el-transfer.name")},children:[]}),props:(r,{t:o})=>Xe(o,ks+".props",[{type:"input",field:"label",title:"\u9009\u9879\u5361\u6807\u9898"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"input",field:"name",title:"\u4E0E\u9009\u9879\u5361\u7ED1\u5B9A\u503C value \u5BF9\u5E94\u7684\u6807\u8BC6\u7B26\uFF0C\u8868\u793A\u9009\u9879\u5361\u522B\u540D"},{type:"switch",field:"lazy",title:"\u6807\u7B7E\u662F\u5426\u5EF6\u8FDF\u6E32\u67D3"}])},Ml="el-divider",Tl={icon:"icon-divider",label:"\u5206\u5272\u7EBF",name:Ml,rule:()=>({type:Ml,props:{},wrap:{show:!1},native:!1,children:[""]}),props:(r,{t:o})=>Xe(o,Ml+".props",[{type:"select",field:"direction",title:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u65B9\u5411",options:[{label:"horizontal",value:"horizontal"},{label:"vertical",value:"vertical"}]},{type:"input",field:"formCreateChild",title:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848"},{type:"select",field:"contentPosition",title:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E",options:[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}]}])},no="cascader",Nl={icon:"icon-cascader",label:"\u7EA7\u8054\u9009\u62E9\u5668",name:no,rule({t:r}){const o=r("props.option");return{type:no,field:mt(),title:r("components.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:[1,2].map(t=>({label:o+t,value:t,children:[]}))}}},props:(r,{t:o})=>Xe(o,no+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},Tr(o,"props.options",!1),{type:"Object",field:"props",title:"\u914D\u7F6E\u9009\u9879",props:{rule:Xe(o,no+".propsOpt",[{type:"select",field:"expandTrigger",title:"\u6B21\u7EA7\u83DC\u5355\u7684\u5C55\u5F00\u65B9\u5F0F",options:[{label:"click",value:"click"},{label:"hover",value:"hover"}]},{type:"switch",field:"multiple",title:"\u662F\u5426\u591A\u9009"},{type:"switch",field:"checkStrictly",title:"\u662F\u5426\u4E25\u683C\u7684\u9075\u5B88\u7236\u5B50\u8282\u70B9\u4E0D\u4E92\u76F8\u5173\u8054"},{type:"switch",field:"emitPath",title:"\u5728\u9009\u4E2D\u8282\u70B9\u6539\u53D8\u65F6\uFF0C\u662F\u5426\u8FD4\u56DE\u7531\u8BE5\u8282\u70B9\u6240\u5728\u7684\u5404\u7EA7\u83DC\u5355\u7684\u503C\u6240\u7EC4\u6210\u7684\u6570\u7EC4\uFF0C\u82E5\u8BBE\u7F6E false\uFF0C\u5219\u53EA\u8FD4\u56DE\u8BE5\u8282\u70B9\u7684\u503C",value:!0},{type:"input",field:"value",title:"\u6307\u5B9A\u9009\u9879\u7684\u503C\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",value:"value"},{type:"input",field:"label",title:"\u6307\u5B9A\u9009\u9879\u6807\u7B7E\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",value:"label"},{type:"input",field:"children",title:"\u6307\u5B9A\u9009\u9879\u7684\u5B50\u9009\u9879\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",value:"children"},{type:"input",field:"disabled",title:"\u6307\u5B9A\u9009\u9879\u7684\u7981\u7528\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",value:"disabled"},{type:"input",field:"leaf",title:"\u6307\u5B9A\u9009\u9879\u7684\u53F6\u5B50\u8282\u70B9\u7684\u6807\u5FD7\u4F4D\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C"}])}},{type:"select",field:"size",title:"\u5C3A\u5BF8",options:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}]},{type:"input",field:"placeholder",title:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"clearable",title:"\u662F\u5426\u652F\u6301\u6E05\u7A7A\u9009\u9879"},{type:"switch",field:"showAllLevels",title:"\u8F93\u5165\u6846\u4E2D\u662F\u5426\u663E\u793A\u9009\u4E2D\u503C\u7684\u5B8C\u6574\u8DEF\u5F84",value:!0},{type:"switch",field:"collapseTags",title:"\u591A\u9009\u6A21\u5F0F\u4E0B\u662F\u5426\u6298\u53E0Tag"},{type:"input",field:"separator",title:"\u9009\u9879\u5206\u9694\u7B26"}])},Rl="upload",Ll={icon:"icon-upload",label:"\u4E0A\u4F20",name:Rl,rule:({t:r})=>({type:Rl,field:mt(),title:r("components.upload.name"),info:"",$required:!1,props:{action:"",onSuccess(o,t){t.url=o.data.url}}}),props:(r,{t:o})=>Xe(o,Rl+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"select",field:"list-type",title:"\u4E0A\u4F20\u7C7B\u578B",value:"text",options:[{label:"\u6587\u5B57",value:"text"},{label:"\u56FE\u7247",value:"picture"},{label:"\u5361\u7247",value:"picture-card"}]},{type:"input",field:"action",title:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)"},{type:"Struct",field:"headers",title:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",props:{defaultValue:{}}},{type:"switch",field:"multiple",title:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6"},{type:"Struct",field:"data",title:"\u4E0A\u4F20\u65F6\u9644\u5E26\u7684\u989D\u5916\u53C2\u6570",props:{defaultValue:{}}},{type:"input",field:"name",title:"\u4E0A\u4F20\u7684\u6587\u4EF6\u5B57\u6BB5\u540D"},{type:"switch",field:"withCredentials",title:"\u652F\u6301\u53D1\u9001 cookie \u51ED\u8BC1\u4FE1\u606F"},{type:"input",field:"accept",title:"\u63A5\u53D7\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B\uFF08thumbnail-mode \u6A21\u5F0F\u4E0B\u6B64\u53C2\u6570\u65E0\u6548\uFF09"},{type:"switch",field:"autoUpload",title:"\u662F\u5426\u5728\u9009\u53D6\u6587\u4EF6\u540E\u7ACB\u5373\u8FDB\u884C\u4E0A\u4F20",value:!0},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"inputNumber",field:"limit",title:"\u6700\u5927\u5141\u8BB8\u4E0A\u4F20\u4E2A\u6570",props:{min:0}}])},Bl="el-transfer",Id=()=>{const r=[];for(let o=1;o<=15;o++)r.push({key:o,label:`\u5907\u9009\u9879 ${o}`,disabled:o%4==0});return r},Il={icon:"icon-transfer",label:"\u7A7F\u68AD\u6846",name:Bl,rule:({t:r})=>({type:Bl,field:mt(),title:r("components.el-transfer.name"),info:"",$required:!1,props:{data:Id()}}),props:(r,{t:o})=>Xe(o,Bl+".props",[{type:"Struct",field:"data",title:"Transfer \u7684\u6570\u636E\u6E90",props:{defaultValue:[]}},{type:"switch",field:"filterable",title:"\u662F\u5426\u53EF\u641C\u7D22"},{type:"input",field:"filterPlaceholder",title:"\u641C\u7D22\u6846\u5360\u4F4D\u7B26"},{type:"select",field:"targetOrder",title:"\u53F3\u4FA7\u5217\u8868\u5143\u7D20\u7684\u6392\u5E8F\u7B56\u7565",info:"\u82E5\u4E3A original\uFF0C\u5219\u4FDD\u6301\u4E0E\u6570\u636E\u6E90\u76F8\u540C\u7684\u987A\u5E8F\uFF1B\u82E5\u4E3A push\uFF0C\u5219\u65B0\u52A0\u5165\u7684\u5143\u7D20\u6392\u5728\u6700\u540E\uFF1B\u82E5\u4E3A unshift\uFF0C\u5219\u65B0\u52A0\u5165\u7684\u5143\u7D20\u6392\u5728\u6700\u524D",options:[{label:"original",value:"original"},{label:"push",value:"push"},{label:"unshift",value:"unshift"}]},{type:"Struct",field:"titles",title:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898",props:{defaultValue:[]}},{type:"Struct",field:"buttonTexts",title:"\u81EA\u5B9A\u4E49\u6309\u94AE\u6587\u6848",props:{defaultValue:[]}},{type:"Struct",field:"format",title:"\u5217\u8868\u9876\u90E8\u52FE\u9009\u72B6\u6001\u6587\u6848",props:{defaultValue:{}}},{type:"Struct",field:"props",title:"\u6570\u636E\u6E90\u7684\u5B57\u6BB5\u522B\u540D",props:{defaultValue:{}}},{type:"Struct",field:"leftDefaultChecked",title:"\u521D\u59CB\u72B6\u6001\u4E0B\u5DE6\u4FA7\u5217\u8868\u7684\u5DF2\u52FE\u9009\u9879\u7684 key \u6570\u7EC4",props:{defaultValue:[]}},{type:"Struct",field:"rightDefaultChecked",title:"\u521D\u59CB\u72B6\u6001\u4E0B\u53F3\u4FA7\u5217\u8868\u7684\u5DF2\u52FE\u9009\u9879\u7684 key \u6570\u7EC4",props:{defaultValue:[]}}])},Ol="tree",Fl={icon:"icon-tree",label:"\u6811\u5F62\u63A7\u4EF6",name:Ol,rule({t:r}){const o=r("props.option");return{type:Ol,field:mt(),title:r("components.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{props:{label:"label"},showCheckbox:!0,nodeKey:"id",data:[1,2].map(t=>({label:o+t,id:t,children:[]}))}}},props:(r,{t:o})=>Xe(o,Ol+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},Tr(o,"props.data",!1),{type:"input",field:"emptyText",title:"\u5185\u5BB9\u4E3A\u7A7A\u7684\u65F6\u5019\u5C55\u793A\u7684\u6587\u672C"},{type:"Struct",field:"props",title:"\u914D\u7F6E\u9009\u9879\uFF0C\u5177\u4F53\u770B\u4E0B\u8868",props:{defaultValue:{}}},{type:"switch",field:"renderAfterExpand",title:"\u662F\u5426\u5728\u7B2C\u4E00\u6B21\u5C55\u5F00\u67D0\u4E2A\u6811\u8282\u70B9\u540E\u624D\u6E32\u67D3\u5176\u5B50\u8282\u70B9",value:!0},{type:"switch",field:"defaultExpandAll",title:"\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u8282\u70B9"},{type:"switch",field:"expandOnClickNode",title:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\uFF0C \u9ED8\u8BA4\u503C\u4E3A true\uFF0C\u5982\u679C\u4E3A false\uFF0C\u5219\u53EA\u6709\u70B9\u7BAD\u5934\u56FE\u6807\u7684\u65F6\u5019\u624D\u4F1A\u5C55\u5F00\u6216\u8005\u6536\u7F29\u8282\u70B9\u3002",value:!0},{type:"switch",field:"checkOnClickNode",title:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u9009\u4E2D\u8282\u70B9\uFF0C\u9ED8\u8BA4\u503C\u4E3A false\uFF0C\u5373\u53EA\u6709\u5728\u70B9\u51FB\u590D\u9009\u6846\u65F6\u624D\u4F1A\u9009\u4E2D\u8282\u70B9\u3002"},{type:"switch",field:"autoExpandParent",title:"\u5C55\u5F00\u5B50\u8282\u70B9\u7684\u65F6\u5019\u662F\u5426\u81EA\u52A8\u5C55\u5F00\u7236\u8282\u70B9",value:!0},{type:"switch",field:"checkStrictly",title:"\u5728\u663E\u793A\u590D\u9009\u6846\u7684\u60C5\u51B5\u4E0B\uFF0C\u662F\u5426\u4E25\u683C\u7684\u9075\u5FAA\u7236\u5B50\u4E0D\u4E92\u76F8\u5173\u8054\u7684\u505A\u6CD5\uFF0C\u9ED8\u8BA4\u4E3A false"},{type:"switch",field:"accordion",title:"\u662F\u5426\u6BCF\u6B21\u53EA\u6253\u5F00\u4E00\u4E2A\u540C\u7EA7\u6811\u8282\u70B9\u5C55\u5F00"},{type:"inputNumber",field:"indent",title:"\u76F8\u90BB\u7EA7\u8282\u70B9\u95F4\u7684\u6C34\u5E73\u7F29\u8FDB\uFF0C\u5355\u4F4D\u4E3A\u50CF\u7D20"},{type:"input",field:"iconClass",title:"\u81EA\u5B9A\u4E49\u6811\u8282\u70B9\u7684\u56FE\u6807"},{type:"input",field:"nodeKey",title:"\u6BCF\u4E2A\u6811\u8282\u70B9\u7528\u6765\u4F5C\u4E3A\u552F\u4E00\u6807\u8BC6\u7684\u5C5E\u6027\uFF0C\u6574\u68F5\u6811\u5E94\u8BE5\u662F\u552F\u4E00\u7684"}])},Pl="el-alert",Hl={icon:"icon-alert",label:"\u63D0\u793A",name:Pl,rule:({t:r})=>({type:Pl,props:{title:r("components.el-alert.name"),description:r("components.el-alert.description"),type:"success",effect:"dark"},children:[]}),props:(r,{t:o})=>Xe(o,Pl+".props",[{type:"input",field:"title",title:"\u6807\u9898"},{type:"select",field:"type",title:"\u4E3B\u9898",options:[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}]},{type:"input",field:"description",title:"\u8F85\u52A9\u6027\u6587\u5B57"},{type:"switch",field:"closable",title:"\u662F\u5426\u53EF\u5173\u95ED",value:!0},{type:"switch",field:"center",title:"\u6587\u5B57\u662F\u5426\u5C45\u4E2D",value:!0},{type:"input",field:"closeText",title:"\u5173\u95ED\u6309\u94AE\u81EA\u5B9A\u4E49\u6587\u672C"},{type:"switch",field:"showIcon",title:"\u662F\u5426\u663E\u793A\u56FE\u6807"},{type:"select",field:"effect",title:"\u9009\u62E9\u63D0\u4F9B\u7684\u4E3B\u9898",options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]}])},jl="span",zl={icon:"icon-span",label:"\u6587\u5B57",name:jl,rule:({t:r})=>({type:jl,title:r("components.span.name"),native:!1,children:[r("components.span.name")]}),props:(r,{t:o})=>Xe(o,jl+".props",[{type:"input",field:"formCreateTitle",title:"title"},{type:"input",field:"formCreateChild",title:"\u5185\u5BB9",props:{type:"textarea"}}])},Ul="div",Vl={icon:"icon-space",label:"\u95F4\u8DDD",name:Ul,rule:()=>({type:Ul,wrap:{show:!1},native:!1,style:{width:"100%",height:"20px"},children:[]}),props:(r,{t:o})=>[{type:"object",field:"formCreateStyle",native:!0,props:{rule:Xe(o,Ul+".props",[{type:"input",field:"height",title:"height"}])}}]},Yl={icon:"icon-tab",label:"\u6807\u7B7E\u9875",name:"tab",children:"tab-pane",mask:!1,rule:()=>({type:"el-tabs",style:"width:100%;",children:[]}),props:(r,{t:o})=>Xe(o,"tab.props",[{type:"select",field:"type",title:"\u98CE\u683C\u7C7B\u578B",options:[{label:"card",value:"card"},{label:"border-card",value:"border-card"}]},{type:"switch",field:"closable",title:"\u6807\u7B7E\u662F\u5426\u53EF\u5173\u95ED"},{type:"select",field:"tabPosition",title:"\u9009\u9879\u5361\u6240\u5728\u4F4D\u7F6E",options:[{label:"top",value:"top"},{label:"right",value:"right"},{label:"left",value:"left"}]},{type:"switch",field:"stretch",title:"\u6807\u7B7E\u7684\u5BBD\u5EA6\u662F\u5426\u81EA\u6491\u5F00"}])},Wl="el-button",Ql={icon:"icon-button",label:"\u6309\u94AE",name:Wl,mask:!1,rule:({t:r})=>({type:Wl,props:{},children:[r("components.el-button.name")]}),props:(r,{t:o})=>Xe(o,Wl+".props",[{type:"input",field:"formCreateChild",title:"\u5185\u5BB9"},{type:"select",field:"size",title:"\u5C3A\u5BF8",options:[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}]},{type:"select",field:"type",title:"\u7C7B\u578B",options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{type:"switch",field:"plain",title:"\u662F\u5426\u6734\u7D20\u6309\u94AE"},{type:"switch",field:"round",title:"\u662F\u5426\u5706\u89D2\u6309\u94AE"},{type:"switch",field:"circle",title:"\u662F\u5426\u5706\u5F62\u6309\u94AE"},{type:"switch",field:"loading",title:"\u662F\u5426\u52A0\u8F7D\u4E2D\u72B6\u6001"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528\u72B6\u6001"},{type:"input",field:"icon",title:"\u56FE\u6807\u7C7B\u540D"}])},Gl="fc-editor",$l={icon:"icon-editor",label:"\u5BCC\u6587\u672C\u6846",name:Gl,rule:({t:r})=>({type:Gl,field:mt(),title:r("components.fc-editor.name"),info:"",$required:!1,props:{}}),props:(r,{t:o})=>Xe(o,Gl+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"}])},Ms="group",ql={icon:"icon-group",label:"\u5B50\u8868\u5355",name:Ms,inside:!1,drag:!0,dragBtn:!0,mask:!1,loadRule(r){r.children=r.props.rule||[],r.props||(r.props={}),r.props.mode=["fcSubForm","object","subForm"].indexOf(r.type)>-1?"subForm":"group",r.type="FcRow",delete r.props.rule},parseRule(r){r.props.rule=r.children,r.type=r.props.mode==="subForm"?"subForm":"group",delete r.children,delete r.props.mode},rule:({t:r})=>({type:"FcRow",field:mt(),title:r("components.group.name"),info:"",$required:!1,props:{},children:[]}),props:(r,{t:o})=>Xe(o,Ms+".props",[{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"},{type:"switch",field:"disabled",title:"\u662F\u5426\u7981\u7528"},{type:"switch",field:"syncDisabled",title:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65 disabled \u72B6\u6001",value:!0},{type:"select",field:"mode",title:"\u7EC4\u4EF6\u7C7B\u578B",options:[{label:o("components.group.props.modeOpts.group"),value:"group"},{label:o("components.group.props.modeOpts.subform"),value:"subForm"}],value:"group"},{type:"switch",field:"button",title:"\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",value:!0},{type:"switch",field:"sortBtn",title:"\u662F\u5426\u663E\u793A\u6392\u5E8F\u6309\u94AE",value:!0},{type:"inputNumber",field:"expand",title:"\u8BBE\u7F6E\u9ED8\u8BA4\u5C55\u5F00\u51E0\u9879"},{type:"inputNumber",field:"min",title:"\u8BBE\u7F6E\u6700\u5C0F\u6DFB\u52A0\u51E0\u9879"},{type:"inputNumber",field:"max",title:"\u8BBE\u7F6E\u6700\u591A\u6DFB\u52A0\u51E0\u9879"}])},er={[ll.name]:ll,[sl.name]:sl,[cl.name]:cl,[fl.name]:fl,[hl.name]:hl,[vl.name]:vl,[yl.name]:yl,[bl.name]:bl,[xl.name]:xl,[El.name]:El,[_l.name]:_l,[kl.name]:kl,[_s.name]:_s,[Yl.name]:Yl,[Ds.name]:Ds,[Tl.name]:Tl,[Nl.name]:Nl,[Ll.name]:Ll,[Il.name]:Il,[Fl.name]:Fl,[Hl.name]:Hl,[zl.name]:zl,[Vl.name]:Vl,[Ql.name]:Ql,[$l.name]:$l,[ql.name]:ql};function Ts(r,o){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),t.push.apply(t,a)}return t}function Dn(r){for(var o=1;o=0)&&(b[m]=c[m]);return b}(r,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(r);for(a=0;a=0)&&(!Object.prototype.propertyIsEnumerable.call(r,t)||(u[t]=r[t]))}return u}function zn(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var Un=zn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),fi=zn(/Edge/i),Rs=zn(/firefox/i),pi=zn(/safari/i)&&!zn(/chrome/i)&&!zn(/android/i),Ls=zn(/iP(ad|od|hone)/i),Pd=zn(/chrome/i)&&zn(/android/i),Bs={capture:!1,passive:!1};function je(r,o,t){r.addEventListener(o,t,!Un&&Bs)}function Fe(r,o,t){r.removeEventListener(o,t,!Un&&Bs)}function ro(r,o){if(o){if(o[0]===">"&&(o=o.substring(1)),r)try{if(r.matches)return r.matches(o);if(r.msMatchesSelector)return r.msMatchesSelector(o);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(o)}catch{return!1}return!1}}function Hd(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function Mn(r,o,t,a){if(r){t=t||document;do{if(o!=null&&(o[0]===">"?r.parentNode===t&&ro(r,o):ro(r,o))||a&&r===t)return r;if(r===t)break}while(r=Hd(r))}return null}var hi,Is=/\s+/g;function en(r,o,t){if(r&&o)if(r.classList)r.classList[t?"add":"remove"](o);else{var a=(" "+r.className+" ").replace(Is," ").replace(" "+o+" "," ");r.className=(a+(t?" "+o:"")).replace(Is," ")}}function Te(r,o,t){var a=r&&r.style;if(a){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(t=r.currentStyle),o===void 0?t:t[o];!(o in a)&&o.indexOf("webkit")===-1&&(o="-webkit-"+o),a[o]=t+(typeof t=="string"?"":"px")}}function Nr(r,o){var t="";if(typeof r=="string")t=r;else do{var a=Te(r,"transform");a&&a!=="none"&&(t=a+" "+t)}while(!o&&(r=r.parentNode));var u=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return u&&new u(t)}function Os(r,o,t){if(r){var a=r.getElementsByTagName(o),u=0,d=a.length;if(t)for(;u=d:u<=d))return a;if(a===Tn())break;a=tr(a,!1)}return!1}function Rr(r,o,t,a){for(var u=0,d=0,c=r.children;d2&&arguments[2]!==void 0?arguments[2]:{},a=t.evt,u=Fd(t,zd);mi.pluginEvent.bind(Ne)(r,o,Dn({dragEl:me,parentEl:lt,ghostEl:Be,rootEl:tt,nextEl:vr,lastDownEl:io,cloneEl:ct,cloneHidden:nr,dragStarted:gi,putSortable:kt,activeSortable:Ne.active,originalEvent:a,oldIndex:Br,oldDraggableIndex:vi,newIndex:nn,newDraggableIndex:rr,hideGhostForTarget:$s,unhideGhostForTarget:qs,cloneNowHidden:function(){nr=!0},cloneNowShown:function(){nr=!1},dispatchSortableEvent:function(d){Ht({sortable:o,name:d,originalEvent:a})}},u))};function Ht(r){(function(o){var t=o.sortable,a=o.rootEl,u=o.name,d=o.targetEl,c=o.cloneEl,p=o.toEl,m=o.fromEl,h=o.oldIndex,b=o.newIndex,y=o.oldDraggableIndex,v=o.newDraggableIndex,w=o.originalEvent,x=o.putSortable,_=o.extraEventProperties;if(t=t||a&&a[tn]){var g,C=t.options,k="on"+u.charAt(0).toUpperCase()+u.substr(1);!window.CustomEvent||Un||fi?(g=document.createEvent("Event")).initEvent(u,!0,!0):g=new CustomEvent(u,{bubbles:!0,cancelable:!0}),g.to=p||a,g.from=m||a,g.item=d||a,g.clone=c,g.oldIndex=h,g.newIndex=b,g.oldDraggableIndex=y,g.newDraggableIndex=v,g.originalEvent=w,g.pullMode=x?x.lastPutMode:void 0;var A=Dn(Dn({},_),mi.getEventProperties(u,t));for(var S in A)g[S]=A[S];a&&a.dispatchEvent(g),C[k]&&C[k].call(t,g)}})(Dn({putSortable:kt,cloneEl:ct,targetEl:me,rootEl:tt,oldIndex:Br,oldDraggableIndex:vi,newIndex:nn,newDraggableIndex:rr},r))}var me,lt,Be,tt,vr,io,ct,nr,Br,nn,vi,rr,oo,kt,gr,vn,Zl,ea,Us,Vs,gi,Ir,yi,lo,Bt,Or=!1,ao=!1,so=[],Ai=!1,uo=!1,ta=[],na=!1,co=[],fo=typeof document<"u",po=Ls,Ys=fi||Un?"cssFloat":"float",Ud=fo&&!Pd&&!Ls&&"draggable"in document.createElement("div"),Ws=function(){if(fo){if(Un)return!1;var r=document.createElement("x");return r.style.cssText="pointer-events:auto",r.style.pointerEvents==="auto"}}(),Qs=function(r,o){var t=Te(r),a=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),u=Rr(r,0,o),d=Rr(r,1,o),c=u&&Te(u),p=d&&Te(d),m=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+At(u).width,h=p&&parseInt(p.marginLeft)+parseInt(p.marginRight)+At(d).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(u&&c.float&&c.float!=="none"){var b=c.float==="left"?"left":"right";return!d||p.clear!=="both"&&p.clear!==b?"horizontal":"vertical"}return u&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||m>=a&&t[Ys]==="none"||d&&t[Ys]==="none"&&m+h>a)?"vertical":"horizontal"},Gs=function(r){function o(u,d){return function(c,p,m,h){var b=c.options.group.name&&p.options.group.name&&c.options.group.name===p.options.group.name;if(u==null&&(d||b))return!0;if(u==null||u===!1)return!1;if(d&&u==="clone")return u;if(typeof u=="function")return o(u(c,p,m,h),d)(c,p,m,h);var y=(d?c:p).options.group.name;return u===!0||typeof u=="string"&&u===y||u.join&&u.indexOf(y)>-1}}var t={},a=r.group;(!a||Ns(a)!="object")&&(a={name:a}),t.name=a.name,t.checkPull=o(a.pull,!0),t.checkPut=o(a.put),t.revertClone=a.revertClone,r.group=t},$s=function(){!Ws&&Be&&Te(Be,"display","none")},qs=function(){!Ws&&Be&&Te(Be,"display","")};fo&&document.addEventListener("click",function(r){if(ao)return r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.stopImmediatePropagation&&r.stopImmediatePropagation(),ao=!1,!1},!0);var yr=function(r){if(me){var o=function(u,d){var c;return so.some(function(p){var m=p[tn].options.emptyInsertThreshold;if(m&&!Xl(p)){var h=At(p),b=u>=h.left-m&&u<=h.right+m,y=d>=h.top-m&&d<=h.bottom+m;if(b&&y)return c=p}}),c}((r=r.touches?r.touches[0]:r).clientX,r.clientY);if(o){var t={};for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a]);t.target=t.rootEl=o,t.preventDefault=void 0,t.stopPropagation=void 0,o[tn]._onDragOver(t)}}},Vd=function(r){me&&me.parentNode[tn]._isOutsideThisEl(r.target)};function Ne(r,o){if(!r||!r.nodeType||r.nodeType!==1)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(r));this.el=r,this.options=o=jn({},o),r[tn]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(r.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qs(r,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(d,c){d.setData("Text",c.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Ne.supportPointer!==!1&&"PointerEvent"in window&&!pi,emptyInsertThreshold:5};for(var a in mi.initializePlugins(this,r,t),t)!(a in o)&&(o[a]=t[a]);for(var u in Gs(o),this)u.charAt(0)==="_"&&typeof this[u]=="function"&&(this[u]=this[u].bind(this));this.nativeDraggable=!o.forceFallback&&Ud,this.nativeDraggable&&(this.options.touchStartThreshold=1),o.supportPointer?je(r,"pointerdown",this._onTapStart):(je(r,"mousedown",this._onTapStart),je(r,"touchstart",this._onTapStart)),this.nativeDraggable&&(je(r,"dragover",this),je(r,"dragenter",this)),so.push(this.el),o.store&&o.store.get&&this.sort(o.store.get(this)||[]),jn(this,jd())}function ho(r,o,t,a,u,d,c,p){var m,h,b=r[tn],y=b.options.onMove;return!window.CustomEvent||Un||fi?(m=document.createEvent("Event")).initEvent("move",!0,!0):m=new CustomEvent("move",{bubbles:!0,cancelable:!0}),m.to=o,m.from=r,m.dragged=t,m.draggedRect=a,m.related=u||o,m.relatedRect=d||At(o),m.willInsertAfter=p,m.originalEvent=c,r.dispatchEvent(m),y&&(h=y.call(b,m,c)),h}function ra(r){r.draggable=!1}function Yd(){na=!1}function Wd(r){for(var o=r.tagName+r.className+r.src+r.href+r.textContent,t=o.length,a=0;t--;)a+=o.charCodeAt(t);return a.toString(36)}function mo(r){return setTimeout(r,0)}function ia(r){return clearTimeout(r)}Ne.prototype={constructor:Ne,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(Ir=null)},_getDirection:function(r,o){return typeof this.options.direction=="function"?this.options.direction.call(this,r,o,me):this.options.direction},_onTapStart:function(r){if(r.cancelable){var o=this,t=this.el,a=this.options,u=a.preventOnFilter,d=r.type,c=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,p=(c||r).target,m=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||p,h=a.filter;if(function(b){co.length=0;for(var y=b.getElementsByTagName("input"),v=y.length;v--;){var w=y[v];w.checked&&co.push(w)}}(t),!me&&!(/mousedown|pointerdown/.test(d)&&r.button!==0||a.disabled)&&!m.isContentEditable&&(this.nativeDraggable||!pi||!p||p.tagName.toUpperCase()!=="SELECT")&&!((p=Mn(p,a.draggable,t,!1))&&p.animated||io===p)){if(Br=fn(p),vi=fn(p,a.draggable),typeof h=="function"){if(h.call(this,r,p,this))return Ht({sortable:o,rootEl:m,name:"filter",targetEl:p,toEl:t,fromEl:t}),Gt("filter",o,{evt:r}),void(u&&r.cancelable&&r.preventDefault())}else if(h&&(h=h.split(",").some(function(b){if(b=Mn(m,b.trim(),t,!1))return Ht({sortable:o,rootEl:b,name:"filter",targetEl:p,fromEl:t,toEl:t}),Gt("filter",o,{evt:r}),!0})))return void(u&&r.cancelable&&r.preventDefault());a.handle&&!Mn(m,a.handle,t,!1)||this._prepareDragStart(r,c,p)}}},_prepareDragStart:function(r,o,t){var a,u=this,d=u.el,c=u.options,p=d.ownerDocument;if(t&&!me&&t.parentNode===d){var m=At(t);if(tt=d,lt=(me=t).parentNode,vr=me.nextSibling,io=t,oo=c.group,Ne.dragged=me,gr={target:me,clientX:(o||r).clientX,clientY:(o||r).clientY},Us=gr.clientX-m.left,Vs=gr.clientY-m.top,this._lastX=(o||r).clientX,this._lastY=(o||r).clientY,me.style["will-change"]="all",a=function(){Gt("delayEnded",u,{evt:r}),Ne.eventCanceled?u._onDrop():(u._disableDelayedDragEvents(),!Rs&&u.nativeDraggable&&(me.draggable=!0),u._triggerDragStart(r,o),Ht({sortable:u,name:"choose",originalEvent:r}),en(me,c.chosenClass,!0))},c.ignore.split(",").forEach(function(h){Os(me,h.trim(),ra)}),je(p,"dragover",yr),je(p,"mousemove",yr),je(p,"touchmove",yr),je(p,"mouseup",u._onDrop),je(p,"touchend",u._onDrop),je(p,"touchcancel",u._onDrop),Rs&&this.nativeDraggable&&(this.options.touchStartThreshold=4,me.draggable=!0),Gt("delayStart",this,{evt:r}),!c.delay||c.delayOnTouchOnly&&!o||this.nativeDraggable&&(fi||Un))a();else{if(Ne.eventCanceled)return void this._onDrop();je(p,"mouseup",u._disableDelayedDrag),je(p,"touchend",u._disableDelayedDrag),je(p,"touchcancel",u._disableDelayedDrag),je(p,"mousemove",u._delayedDragTouchMoveHandler),je(p,"touchmove",u._delayedDragTouchMoveHandler),c.supportPointer&&je(p,"pointermove",u._delayedDragTouchMoveHandler),u._dragStartTimer=setTimeout(a,c.delay)}}},_delayedDragTouchMoveHandler:function(r){var o=r.touches?r.touches[0]:r;Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){me&&ra(me),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;Fe(r,"mouseup",this._disableDelayedDrag),Fe(r,"touchend",this._disableDelayedDrag),Fe(r,"touchcancel",this._disableDelayedDrag),Fe(r,"mousemove",this._delayedDragTouchMoveHandler),Fe(r,"touchmove",this._delayedDragTouchMoveHandler),Fe(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,o){o=o||r.pointerType=="touch"&&r,!this.nativeDraggable||o?this.options.supportPointer?je(document,"pointermove",this._onTouchMove):je(document,o?"touchmove":"mousemove",this._onTouchMove):(je(me,"dragend",this),je(tt,"dragstart",this._onDragStart));try{document.selection?mo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,o){if(Or=!1,tt&&me){Gt("dragStarted",this,{evt:o}),this.nativeDraggable&&je(document,"dragover",Vd);var t=this.options;!r&&en(me,t.dragClass,!1),en(me,t.ghostClass,!0),Ne.active=this,r&&this._appendGhost(),Ht({sortable:this,name:"start",originalEvent:o})}else this._nulling()},_emulateDragOver:function(){if(vn){this._lastX=vn.clientX,this._lastY=vn.clientY,$s();for(var r=document.elementFromPoint(vn.clientX,vn.clientY),o=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(vn.clientX,vn.clientY))!==o;)o=r;if(me.parentNode[tn]._isOutsideThisEl(r),o)do{if(o[tn]&&o[tn]._onDragOver({clientX:vn.clientX,clientY:vn.clientY,target:r,rootEl:o})&&!this.options.dragoverBubble)break;r=o}while(o=o.parentNode);qs()}},_onTouchMove:function(r){if(gr){var o=this.options,t=o.fallbackTolerance,a=o.fallbackOffset,u=r.touches?r.touches[0]:r,d=Be&&Nr(Be,!0),c=Be&&d&&d.a,p=Be&&d&&d.d,m=po&&Bt&&Ps(Bt),h=(u.clientX-gr.clientX+a.x)/(c||1)+(m?m[0]-ta[0]:0)/(c||1),b=(u.clientY-gr.clientY+a.y)/(p||1)+(m?m[1]-ta[1]:0)/(p||1);if(!Ne.active&&!Or){if(t&&Math.max(Math.abs(u.clientX-this._lastX),Math.abs(u.clientY-this._lastY))re.right+pe||W.clientX<=re.right&&W.clientY>re.bottom&&W.clientX>=re.left:W.clientX>re.right&&W.clientY>re.top||W.clientX<=re.right&&W.clientY>re.bottom+pe}(r,u,this)&&!_.animated){if(_===me)return Q(!1);if(_&&d===r.target&&(c=_),c&&(t=At(c)),ho(tt,d,me,o,c,t,r,!!c)!==!1)return z(),d.appendChild(me),lt=d,q(),Q(!0)}else if(_&&function(W,K,X){var re=At(Rr(X.el,0,X.options,!0)),pe=10;return K?W.clientXEe+se*ue/2:Z<_e-se*ue/2)&&(Ai=!0),Ai)Ie=!0;else if(yi===1?Z_e-lo)return-yi}else if(Z>Ee+se*(1-pe)/2&&Z<_e-se*(1-pe)/2)return function(Oe){return fn(me)_e-se*ue/2)?Z>Ee+se/2?1:-1:0}(r,c,t,u,M?1:p.swapThreshold,p.invertedSwapThreshold==null?p.swapThreshold:p.invertedSwapThreshold,uo,Ir===c),C!==0){var T=fn(me);do T-=C,A=lt.children[T];while(A&&(Te(A,"display")==="none"||A===Be))}if(C===0||A===c)return Q(!1);Ir=c,yi=C;var L=c.nextElementSibling,H=!1,P=ho(tt,d,me,o,c,t,r,H=C===1);if(P!==!1)return(P===1||P===-1)&&(H=P===1),na=!0,setTimeout(Yd,30),z(),H&&!L?d.appendChild(me):c.parentNode.insertBefore(me,H?L:c),N&&js(N,0,R-N.scrollTop),lt=me.parentNode,k!==void 0&&!uo&&(lo=Math.abs(k-At(c)[I])),q(),Q(!0)}if(d.contains(me))return Q(!1)}return!1}function j(W,K){Gt(W,w,Dn({evt:r,isOwner:b,axis:u?"vertical":"horizontal",revert:a,dragRect:o,targetRect:t,canSort:y,fromSortable:v,target:c,completed:Q,onMove:function(X,re){return ho(tt,d,me,o,X,At(X),r,re)},changed:q},K))}function z(){j("dragOverAnimationCapture"),w.captureAnimationState(),w!==v&&v.captureAnimationState()}function Q(W){return j("dragOverCompleted",{insertion:W}),W&&(b?h._hideClone():h._showClone(w),w!==v&&(en(me,kt?kt.options.ghostClass:h.options.ghostClass,!1),en(me,p.ghostClass,!0)),kt!==w&&w!==Ne.active?kt=w:w===Ne.active&&kt&&(kt=null),v===w&&(w._ignoreWhileAnimating=c),w.animateAll(function(){j("dragOverAnimationComplete"),w._ignoreWhileAnimating=null}),w!==v&&(v.animateAll(),v._ignoreWhileAnimating=null)),(c===me&&!me.animated||c===d&&!c.animated)&&(Ir=null),!p.dragoverBubble&&!r.rootEl&&c!==document&&(me.parentNode[tn]._isOutsideThisEl(r.target),!W&&yr(r)),!p.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),x=!0}function q(){nn=fn(me),rr=fn(me,p.draggable),Ht({sortable:w,name:"change",toEl:d,newIndex:nn,newDraggableIndex:rr,originalEvent:r})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){Fe(document,"mousemove",this._onTouchMove),Fe(document,"touchmove",this._onTouchMove),Fe(document,"pointermove",this._onTouchMove),Fe(document,"dragover",yr),Fe(document,"mousemove",yr),Fe(document,"touchmove",yr)},_offUpEvents:function(){var r=this.el.ownerDocument;Fe(r,"mouseup",this._onDrop),Fe(r,"touchend",this._onDrop),Fe(r,"pointerup",this._onDrop),Fe(r,"touchcancel",this._onDrop),Fe(document,"selectstart",this)},_onDrop:function(r){var o=this.el,t=this.options;nn=fn(me),rr=fn(me,t.draggable),Gt("drop",this,{evt:r}),lt=me&&me.parentNode,nn=fn(me),rr=fn(me,t.draggable),Ne.eventCanceled||(Or=!1,uo=!1,Ai=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ia(this.cloneId),ia(this._dragStartId),this.nativeDraggable&&(Fe(document,"drop",this),Fe(o,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),pi&&Te(document.body,"user-select",""),Te(me,"transform",""),r&&(gi&&(r.cancelable&&r.preventDefault(),!t.dropBubble&&r.stopPropagation()),Be&&Be.parentNode&&Be.parentNode.removeChild(Be),(tt===lt||kt&&kt.lastPutMode!=="clone")&&ct&&ct.parentNode&&ct.parentNode.removeChild(ct),me&&(this.nativeDraggable&&Fe(me,"dragend",this),ra(me),me.style["will-change"]="",gi&&!Or&&en(me,kt?kt.options.ghostClass:this.options.ghostClass,!1),en(me,this.options.chosenClass,!1),Ht({sortable:this,name:"unchoose",toEl:lt,newIndex:null,newDraggableIndex:null,originalEvent:r}),tt!==lt?(nn>=0&&(Ht({rootEl:lt,name:"add",toEl:lt,fromEl:tt,originalEvent:r}),Ht({sortable:this,name:"remove",toEl:lt,originalEvent:r}),Ht({rootEl:lt,name:"sort",toEl:lt,fromEl:tt,originalEvent:r}),Ht({sortable:this,name:"sort",toEl:lt,originalEvent:r})),kt&&kt.save()):nn!==Br&&nn>=0&&(Ht({sortable:this,name:"update",toEl:lt,originalEvent:r}),Ht({sortable:this,name:"sort",toEl:lt,originalEvent:r})),Ne.active&&((nn==null||nn===-1)&&(nn=Br,rr=vi),Ht({sortable:this,name:"end",toEl:lt,originalEvent:r}),this.save())))),this._nulling()},_nulling:function(){Gt("nulling",this),tt=me=lt=Be=vr=ct=io=nr=gr=vn=gi=nn=rr=Br=vi=Ir=yi=kt=oo=Ne.dragged=Ne.ghost=Ne.clone=Ne.active=null,co.forEach(function(r){r.checked=!0}),co.length=Zl=ea=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":me&&(this._onDragOver(r),(o=r).dataTransfer&&(o.dataTransfer.dropEffect="move"),o.cancelable&&o.preventDefault());break;case"selectstart":r.preventDefault()}var o},toArray:function(){for(var r,o=[],t=this.el.children,a=0,u=t.length,d=this.options;ar.replace(Gd,(o,t)=>t.toUpperCase())),Zs=["Start","Add","Remove","Update","End"],eu=["Choose","Unchoose","Sort","Filter","Clone"],tu=["Move"],qd=[tu,Zs,eu].flatMap(r=>r).map(r=>`on${r}`),pa={manage:tu,manageAndEmit:Zs,emit:eu},Xd=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function nu(r){return["id","class","role","style"].includes(r)||r.startsWith("data-")||r.startsWith("aria-")||r.startsWith("on")}function ru(r){return r.reduce((o,[t,a])=>(o[t]=a,o),{})}function iu(r){return Object.entries(r).filter(([o,t])=>!nu(o)).map(([o,t])=>[$d(o),t]).filter(([o,t])=>!function(a){return qd.indexOf(a)!==-1}(o))}const ou=({el:r})=>r,lu=r=>r.__draggable_context;class Kd{constructor({nodes:{header:o,default:t,footer:a},root:u,realList:d}){this.defaultNodes=t,this.children=[...o,...t,...a],this.externalComponent=u.externalComponent,this.rootTransition=u.transition,this.tag=u.tag,this.realList=d}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(o,t){const{tag:a,children:u,_isRootComponent:d}=this;return o(a,t,d?{default:()=>u}:u)}updated(){const{defaultNodes:o,realList:t}=this;o.forEach((a,u)=>{((d,c)=>{d.__draggable_context=c})(ou(a),{element:t[u],index:u})})}getUnderlyingVm(o){return lu(o)}getVmIndexFromDomIndex(o,t){const{defaultNodes:a}=this,{length:u}=a,d=t.children,c=d.item(o);if(c===null)return u;const p=lu(c);if(p)return p.index;if(u===0)return 0;const m=ou(a[0]);return o<[...d].findIndex(h=>h===m)?0:u}}function Jd(r){const o=function(a){return["transition-group","TransitionGroup"].includes(a)}(r),t=!function(a){return Xd.includes(a)}(r)&&!o;return{transition:o,externalComponent:t,tag:t?it(r):o?Jh:r}}function Zd({$slots:r,tag:o,realList:t,getKey:a}){const u=function({$slots:c,realList:p,getKey:m}){const h=p||[],[b,y]=["header","footer"].map(x=>function(_,g){const C=_[g];return C?C():[]}(c,x)),{item:v}=c;if(!v)throw new Error("draggable element must have an item slot");const w=h.flatMap((x,_)=>v({element:x,index:_}).map(g=>(g.key=m(x),g.props={...g.props||{},"data-draggable":!0},g)));if(w.length!==h.length)throw new Error("Item slot must have only one child");return{header:b,footer:y,default:w}}({$slots:r,realList:t,getKey:a}),d=Jd(o);return new Kd({nodes:u,root:d,realList:t})}function au(r,o){Mr(()=>this.$emit(r.toLowerCase(),o))}function su(r){return(o,t)=>{if(this.realList!==null)return this[`onDrag${r}`](o,t)}}function ef(r){const o=su.call(this,r);return(t,a)=>{o.call(this,t,a),au.call(this,r,t)}}let ha=null;const ma=kn({name:"draggable",inheritAttrs:!1,props:{list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:r=>r},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},emits:["update:modelValue","change",...[...pa.manageAndEmit,...pa.emit].map(r=>r.toLowerCase())],data:()=>({error:!1}),render(){try{this.error=!1;const{$slots:r,$attrs:o,tag:t,componentData:a,realList:u,getKey:d}=this,c=Zd({$slots:r,tag:t,realList:u,getKey:d});this.componentStructure=c;const p=function({$attrs:m,componentData:h={}}){return{...ru(Object.entries(m).filter(([b,y])=>nu(b))),...h}}({$attrs:o,componentData:a});return c.render(Zo,p)}catch(r){return this.error=!0,Zo("pre",{style:{color:"red"}},r.stack)}},created(){this.list!==null&&this.modelValue!==null&&Qd.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:r,$el:o,componentStructure:t}=this;t.updated();const a=function({$attrs:d,callBackBuilder:c}){const p=ru(iu(d));Object.entries(c).forEach(([h,b])=>{pa[h].forEach(y=>{p[`on${y}`]=b(y)})});const m=`[data-draggable]${p.draggable||""}`;return{...p,draggable:m}}({$attrs:r,callBackBuilder:{manageAndEmit:d=>ef.call(this,d),emit:d=>au.bind(this,d),manage:d=>su.call(this,d)}}),u=o.nodeType===1?o:o.parentElement;this._sortable=new Ne(u,a),this.targetDomElement=u,u.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:r}=this;return r||this.modelValue},getKey(){const{itemKey:r}=this;return typeof r=="function"?r:o=>o[r]}},watch:{$attrs:{handler(r){const{_sortable:o}=this;!o||iu(r).forEach(([t,a])=>{o.option(t,a)})},deep:!0}},methods:{getUnderlyingVm(r){return this.componentStructure.getUnderlyingVm(r)||null},getUnderlyingPotencialDraggableComponent:r=>r.__draggable_component__,emitChanges(r){Mr(()=>this.$emit("change",r))},alterList(r){if(this.list)return void r(this.list);const o=[...this.modelValue];r(o),this.$emit("update:modelValue",o)},spliceList(){this.alterList(r=>r.splice(...arguments))},updatePosition(r,o){this.alterList(t=>t.splice(o,0,t.splice(r,1)[0]))},getRelatedContextFromMoveEvent({to:r,related:o}){const t=this.getUnderlyingPotencialDraggableComponent(r);if(!t)return{component:t};const a=t.realList,u={list:a,component:t};return r!==o&&a?{...t.getUnderlyingVm(o)||{},...u}:u},getVmIndexFromDomIndex(r){return this.componentStructure.getVmIndexFromDomIndex(r,this.targetDomElement)},onDragStart(r){this.context=this.getUnderlyingVm(r.item),r.item._underlying_vm_=this.clone(this.context.element),ha=r.item},onDragAdd(r){const o=r.item._underlying_vm_;if(o===void 0)return;fa(r.item);const t=this.getVmIndexFromDomIndex(r.newIndex);this.spliceList(t,0,o);const a={element:o,newIndex:t};this.emitChanges({added:a})},onDragRemove(r){if(Js(this.$el,r.item,r.oldIndex),r.pullMode==="clone")return void fa(r.clone);const{index:o,element:t}=this.context;this.spliceList(o,1);const a={element:t,oldIndex:o};this.emitChanges({removed:a})},onDragUpdate(r){fa(r.item),Js(r.from,r.item,r.oldIndex);const o=this.context.index,t=this.getVmIndexFromDomIndex(r.newIndex);this.updatePosition(o,t);const a={element:this.context.element,oldIndex:o,newIndex:t};this.emitChanges({moved:a})},computeFutureIndex(r,o){if(!r.element)return 0;const t=[...o.to.children].filter(d=>d.style.display!=="none"),a=t.indexOf(o.related),u=r.component.getVmIndexFromDomIndex(a);return t.indexOf(ha)===-1&&o.willInsertAfter?u+1:u},onDragMove(r,o){const{move:t,realList:a}=this;if(!t||!a)return!0;const u=this.getRelatedContextFromMoveEvent(r),d=this.computeFutureIndex(u,r),c={...this.context,futureIndex:d};return t({...r,relatedContext:u,draggedContext:c},o)},onDragEnd(){ha=null}}});function tf({t:r}){return[{name:"main",title:r("menu.main"),list:[cl,fl,ll,sl,hl,vl,bl,xl,yl,El,_l,Nl,Ll,Il,Fl,$l,ql]},{name:"aide",title:r("menu.aide"),list:[Hl,Ql,zl,Tl]},{name:"layout",title:r("menu.layout"),list:[kl,Yl,Vl]}]}const va=yd,bt=yd.factory();let uu=null,cu=Ji(null);function ga(...r){return uu(...r)}const du=r=>{cu.value=r;const o=il(cu);return uu=o.t,o};du();const nf=kn({name:"FcDesigner",components:{draggable:ma,DragForm:bt.$form(),ViewForm:va.$form()},props:["menu","height","config","mask","locale"],setup(r){const{menu:o,height:t,mask:a,locale:u}=fs(r),d=qh(),c=ps({active:null});Ad("fcx",c),Ad("designer",d);const p=Zi(r,"config",{}),m=Zi(p.value,"baseRule",null),h=Zi(p.value,"componentRule",{}),b=Zi(p.value,"validateRule",null),y=Zi(p.value,"formRule",null),v=eo(()=>{const A=t.value;return A?ht.Number(A)?`${A}px`:A:"100%"});let w=ga;u.value&&(w=il(u).t);const x=(...A)=>w(...A),_=(A,S,...M)=>{if(S){if(ht.Function(S))return S(...M);if(S.rule){let I=S.rule(...M);return S.append&&(I=[...I,...A(...M)]),I}}return A(...M)},g=ps({cacheProps:{},moveRule:null,addRule:null,added:null,activeTab:"form",activeRule:null,children:Ji([]),menuList:o.value||tf({t:x}),showBaseRule:!1,visible:{preview:!1},t:x,preview:{state:!1,rule:[],option:{}},dragForm:Ji({rule:[],api:{}}),form:{rule:_(ms,y.value,{t:x}),api:{},option:{form:{labelPosition:"top",size:"small"},submitBtn:!1},value:{form:{inline:!1,hideRequiredAsterisk:!1,labelPosition:"right",size:"small",labelWidth:"125px",formCreateSubmitBtn:!0,formCreateResetBtn:!1},submitBtn:!1}},baseForm:{rule:_(si,m.value,{t:x}),api:{},value:{},options:{form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:A=>{A.activeRule=g.activeRule,A.setValue(A.options.formData||{})}}},validateForm:{rule:_(vs,b.value,{t:x}),api:{},value:[],options:{form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:A=>{A.activeRule=g.activeRule,A.setValue(A.options.formData||{})}}},propsForm:{rule:[],api:{},value:{},options:{form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:A=>{A.activeRule=g.activeRule,A.setValue(A.options.formData||{})}}}});hs(()=>g.preview.state,function(A){A||Mr(()=>{g.preview.rule=g.preview.option=null})});let C=null;hs(()=>u.value,A=>{w=A?il(u).t:ga;const S=g.form.api.formData&&g.form.api.formData(),M=g.baseForm.api.formData&&g.baseForm.api.formData(),I=g.validateForm.api.formData&&g.validateForm.api.formData();g.validateForm.rule=_(vs,b.value,{t:x}),g.baseForm.rule=_(si,m.value,{t:x}),g.form.rule=_(ms,y.value,{t:x}),g.cacheProps={};const N=g.activeRule;let R=null;N&&(R=g.propsForm.api.formData&&g.propsForm.api.formData(),g.propsForm.rule=g.cacheProps[N._id]=_(N.config.config.props,h.value&&h.value[N.config.config.name],N,{t:x,api:g.dragForm.api})),Mr(()=>{S&&g.form.api.setValue(S),M&&g.baseForm.api.setValue(M),I&&g.validateForm.api.setValue(I),R&&g.propsForm.api.setValue(R)})});const k={unWatchActiveRule(){C&&C(),C=null},watchActiveRule(){k.unWatchActiveRule(),C=hs(()=>g.activeRule,function(A){A&&k.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren:A=>ps({children:A}).children,addMenu(A){if(!A.name||!A.list)return;let S=!0;g.menuList.forEach((M,I)=>{M.name===A.name&&(g.menuList[I]=A,S=!1)}),S&&g.menuList.push(A)},removeMenu(A){[...g.menuList].forEach((S,M)=>{S.name===A&&g.menuList.splice(M,1)})},setMenuItem(A,S){g.menuList.forEach(M=>{M.name===A&&(M.list=S)})},appendMenuItem(A,S){g.menuList.forEach(M=>{M.name===A&&M.list.push(...Array.isArray(S)?S:[S])})},removeMenuItem(A){g.menuList.forEach(S=>{let M;ht.String(A)?[...S.list].forEach((I,N)=>{I.name===A&&S.list.splice(N,1)}):(M=S.list.indexOf(A))>-1&&S.list.splice(M,1)})},addComponent(A){Array.isArray(A)?A.forEach(S=>{er[S.name]=S}):er[A.name]=A},getParent(A){let S=A.__fc__.parent.rule;const M=S.config;return M&&M.config.inside&&(A=S,S=S.__fc__.parent.rule),{root:S,parent:A}},makeDrag:(A,S,M,I)=>({type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:A===!0?"default":A,ghostClass:"ghost",animation:150,handle:"._fc-drag-btn",emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:S},children:M,on:I}),clearDragRule(){k.setRule([])},makeDragRule:A=>k.makeChildren([k.makeDrag(!0,"draggable",A,{add:(S,M)=>k.dragAdd(A,M),end:(S,M)=>k.dragEnd(A,M),start:(S,M)=>k.dragStart(A,M),unchoose:(S,M)=>k.dragUnchoose(A,M)})]),previewFc(){g.preview.state=!0,g.preview.rule=k.getRule(),g.preview.option=k.getOption()},getRule:()=>k.parseRule(Zn(g.dragForm.api.rule[0].children)),getJson:()=>bt.toJson(k.getRule()),getOption(){const A=Zn(g.form.value);return A.submitBtn=A._submitBtn,A.resetBtn=A._resetBtn,typeof A.submitBtn=="object"?A.submitBtn.show=A.form.formCreateSubmitBtn:A.submitBtn={show:A.form.formCreateSubmitBtn,innerText:x("form.submit")},typeof A.resetBtn=="object"?A.resetBtn.show=A.form.formCreateResetBtn:A.resetBtn={show:A.form.formCreateResetBtn,innerText:x("form.reset")},delete A.form.formCreateSubmitBtn,delete A.form.formCreateResetBtn,delete A._submitBtn,delete A._resetBtn,A},getOptions(){k.getOption()},setRule(A){A||(A=[]),g.children=Ji(k.loadRule(ht.String(A)?bt.parseJson(A):Zn(A))),k.clearActiveRule(),g.dragForm.rule=k.makeDragRule(k.makeChildren(g.children))},setBaseRuleConfig(A,S){m.value={rule:A,append:S},g.baseForm.rule=_(si,m.value,{t:x})},setComponentRuleConfig(A,S,M){h.value[A]={rule:S,append:M},g.cacheProps={};const I=g.activeRule;if(I){const N=g.propsForm.api.formData&&g.propsForm.api.formData();g.propsForm.rule=g.cacheProps[I._id]=_(I.config.config.props,h.value&&h.value[I.config.config.name],I,{t:x,api:g.dragForm.api}),Mr(()=>{N&&g.propsForm.api.setValue(N)})}},setValidateRuleConfig(A,S){b.value={rule:A,append:S},g.validateForm.rule=_(si,b.value,{t:x})},setFormRuleConfig(A,S){y.value={rule:A,append:S},g.form.rule=_(si,y.value,{t:x})},clearActiveRule(){g.activeRule=null,g.activeTab="form"},setOption(A){let S={...A};S.form.formCreateSubmitBtn=typeof S.submitBtn=="object"?S.submitBtn.show===void 0||!!S.submitBtn.show:!!S.submitBtn,S.form.formCreateResetBtn=typeof S.resetBtn=="object"?!!S.resetBtn.show:!!S.resetBtn,S._resetBtn=S.resetBtn,S.resetBtn=!1,S._submitBtn=S.submitBtn,S.submitBtn=!1,g.form.value=S},setOptions(A){k.setOption(A)},loadRule(A){const S=[];return A.forEach(M=>{if(ht.String(M))return S.push(M);const I=er[M._fc_drag_tag]||er[M.type];I&&I.loadRule&&I.loadRule(M);const N=M.children;if(M.children=[],M.control&&(M._control=M.control,delete M.control),I){if(M=k.makeRule(I,M),N){let R=M.children[0].children;I.drag&&(R=R[0].children),R.push(...k.loadRule(N))}}else N&&(M.children=k.loadRule(N));S.push(M)}),S},parseRule:A=>[...A].reduce((S,M)=>ht.String(M)?(S.push(M),S):M.type==="DragBox"||M.type==="DragTool"&&(M=M.children[0]).type==="DragBox"?(S.push(...k.parseRule(M.children)),S):(M&&((M={...M}).children.length&&(M.children=k.parseRule(M.children)),delete M._id,delete M.key,delete M.component,M.config&&(M.config.config&&M.config.config.parseRule&&M.config.config.parseRule(M),delete M.config.config),M.effect&&(delete M.effect._fc,delete M.effect._fc_tool),M._control&&(M.control=M._control,delete M._control),Object.keys(M).filter(I=>Array.isArray(M[I])&&M[I].length===0||ht.Object(M[I])&&Object.keys(M[I]).length===0).forEach(I=>{delete M[I]}),S.push(M)),S),[]),baseChange(A,S,M,I){var N,R,T;g.activeRule&&I[g.activeRule._id]===g.activeRule&&(k.unWatchActiveRule(),g.activeRule[A]=S,k.watchActiveRule(),(T=(R=(N=g.activeRule.config.config)==null?void 0:N.watch)==null?void 0:R["$"+A])==null||T.call(R,{field:A,value:S,api:I,rule:g.activeRule}))},propRemoveField(A,S,M){var I,N,R;if(g.activeRule&&M[g.activeRule._id]===g.activeRule){k.unWatchActiveRule();const T=A;if(g.dragForm.api.sync(g.activeRule),A.indexOf("formCreate")===0){if(!(A=A.replace("formCreate","")))return;(A=rl(A)).indexOf("effect")===0&&A.indexOf(">")>-1?delete g.activeRule.effect[A.split(">")[1]]:A.indexOf("props")===0&&A.indexOf(">")>-1?delete g.activeRule.props[A.split(">")[1]]:A.indexOf("attrs")===0&&A.indexOf(">")>-1?delete g.activeRule.attrs[A.split(">")[1]]:A==="child"?delete g.activeRule.children[0]:A&&(g.activeRule[A]=void 0)}else delete g.activeRule.props[A];k.watchActiveRule(),(R=(N=(I=g.activeRule.config.config)==null?void 0:I.watch)==null?void 0:N[T])==null||R.call(N,{field:T,value:void 0,api:M,rule:g.activeRule})}},propChange(A,S,M,I){var N,R,T;if(g.activeRule&&I[g.activeRule._id]===g.activeRule){k.unWatchActiveRule();const L=A;if(A.indexOf("formCreate")===0){if(!(A=A.replace("formCreate","")))return;(A=rl(A)).indexOf("effect")===0&&A.indexOf(">")>-1?g.activeRule.effect[A.split(">")[1]]=S:A.indexOf("props")===0&&A.indexOf(">")>-1?g.activeRule.props[A.split(">")[1]]=S:A.indexOf("attrs")===0&&A.indexOf(">")>-1?g.activeRule.attrs[A.split(">")[1]]=S:A==="child"?g.activeRule.children[0]=S:g.activeRule[A]=S}else g.activeRule.props[A]=S;k.watchActiveRule(),(T=(R=(N=g.activeRule.config.config)==null?void 0:N.watch)==null?void 0:R[L])==null||T.call(R,{field:L,value:S,api:I,rule:g.activeRule})}},validateChange(A){!g.activeRule||g.validateForm.api[g.activeRule._id]!==g.activeRule||(g.activeRule.validate=A.validate||[],g.dragForm.api.refreshValidate(),g.dragForm.api.nextTick(()=>{g.dragForm.api.clearValidateState(g.activeRule.__fc__.id)}))},toolActive(A){k.unWatchActiveRule(),g.activeRule&&(delete g.propsForm.api[g.activeRule._id],delete g.baseForm.api[g.activeRule._id],delete g.validateForm.api[g.activeRule._id],delete g.dragForm.api.activeRule),g.activeRule=A,g.dragForm.api.activeRule=A,Mr(()=>{g.activeTab="props",Mr(()=>{g.propsForm.api[g.activeRule._id]=g.activeRule,g.baseForm.api[g.activeRule._id]=g.activeRule,g.validateForm.api[g.activeRule._id]=g.activeRule})}),g.cacheProps[A._id]||(g.cacheProps[A._id]=_(A.config.config.props,h.value&&h.value[A.config.config.name],A,{t:x,api:g.dragForm.api})),g.propsForm.rule=g.cacheProps[A._id],k.updateRuleFormData(),k.watchActiveRule()},updateRuleFormData(){const A=g.activeRule,S={...A.props,formCreateChild:Zn(A.children[0])};Object.keys(A).forEach(M=>{["effect","config","payload","id","type"].indexOf(M)<0&&(S["formCreate"+ci(M)]=Zn(A[M]))}),["props","effect","attrs"].forEach(M=>{A[M]&&Object.keys(A[M]).forEach(I=>{S["formCreate"+ci(M)+">"+I]=Zn(A[M][I])})}),g.propsForm.value=S,g.showBaseRule=gs(A,"field")&&A.input!==!1&&(!p.value||p.value.showBaseForm!==!1),g.showBaseRule&&(g.baseForm.value={field:A.field,title:A.title||"",info:A.info,_control:A._control},g.validateForm.value={validate:A.validate?[...A.validate]:[]},g.dragForm.api.refreshValidate(),g.dragForm.api.nextTick(()=>{g.dragForm.api.clearValidateState(A.__fc__.id)}))},dragStart(A){g.moveRule=A,g.added=!1},dragUnchoose(A,S){g.addRule={children:A,oldIndex:S.oldIndex}},dragAdd(A,S){const M=S.newIndex,I=S.item._underlying_vm_;if(!I||I.__fc__){if(g.addRule){const N=g.addRule.children.splice(g.addRule.oldIndex,1);A.splice(M,0,N[0])}}else{const N=k.makeRule(er[I.name]);A.splice(M,0,N)}g.added=!0},dragEnd(A,{newIndex:S,oldIndex:M}){if(!g.added&&(g.moveRule!==A||S!==M)){const I=g.moveRule.splice(M,1);A.splice(S,0,I[0])}g.moveRule=null,g.addRule=null,g.added=!1},makeRule(A,S){const M=S||A.rule({t:x});let I;if(M.config={config:A},A.component&&(M.component=bd(A.component)),M.effect||(M.effect={}),M.effect._fc=!0,M._fc_drag_tag=A.name,A.drag&&M.children.push(I=k.makeDrag(A.drag,M.type,k.makeChildren([]),{end:(R,T)=>k.dragEnd(R.self.children,T),add:(R,T)=>k.dragAdd(R.self.children,T),start:(R,T)=>k.dragStart(R.self.children,T),unchoose:(R,T)=>k.dragUnchoose(R.self.children,T)})),A.children&&!S)for(let R=0;R<(A.childrenLen||1);R++){const T=k.makeRule(er[A.children]);(I||M).children.push(T)}const N=a.value!==void 0?a.value!==!1:A.mask!==!1;return A.inside?(M.children=k.makeChildren([{type:"DragTool",props:{dragBtn:A.dragBtn!==!1,children:A.children,mask:N},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:R})=>{const T=k.getParent(R).parent;T.__fc__.rm(),d.emit("delete",T),k.clearActiveRule()},create:({self:R})=>{const T=k.getParent(R);d.emit("create",T.parent),T.root.children.splice(T.root.children.indexOf(T.parent)+1,0,k.makeRule(T.parent.config.config))},addChild:({self:R})=>{const T=k.getParent(R),L=T.parent.config.config,H=er[L.children];!H||(L.drag?T.parent.children[0]:T.parent).children[0].children.push(k.makeRule(H))},copy:({self:R})=>{const T=k.getParent(R);d.emit("copy",T.parent),T.root.children.splice(T.root.children.indexOf(T.parent)+1,0,bt.copyRule(T.parent))},active:({self:R})=>{const T=k.getParent(R);d.emit("active",T.parent),k.toolActive(T.parent)}},children:M.children}]),M):{type:"DragTool",props:{dragBtn:A.dragBtn!==!1,children:A.children,mask:N},effect:{_fc_tool:!0},inject:!0,on:{delete:({self:R})=>{d.emit("delete",R.children[0]),R.__fc__.rm(),k.clearActiveRule()},create:({self:R})=>{d.emit("create",R.children[0]);const T=k.getParent(R);T.root.children.splice(T.root.children.indexOf(T.parent)+1,0,k.makeRule(R.children[0].config.config))},addChild:({self:R})=>{const T=R.children[0].config.config,L=er[T.children];!L||(T.drag?R.children[0]:R).children[0].children.push(k.makeRule(L))},copy:({self:R})=>{d.emit("copy",R.children[0]);const T=k.getParent(R);T.root.children.splice(T.root.children.indexOf(T.parent)+1,0,bt.copyRule(T.parent))},active:({self:R})=>{d.emit("active",R.children[0]),k.toolActive(R.children[0])}},children:k.makeChildren([M])}}};return g.dragForm.rule=k.makeDragRule(k.makeChildren(g.children)),{...fs(g),...k,dragHeight:v,t:x}},created(){document.body.ondrop=r=>{r.preventDefault(),r.stopPropagation()}}}),rf={class:"_fc-l-title"},of={class:"_fc-l-item"},lf={class:"_fc-l-icon"},af={class:"_fc-l-name"},sf=ot("i",{class:"fc-icon icon-preview"},null,-1),uf=ot("i",{class:"fc-icon icon-delete"},null,-1),cf={class:"_fc-m-drag"};Hn=Jn(nf,[["render",function(r,o,t,a,u,d){const c=it("draggable"),p=it("el-aside"),m=it("el-button"),h=it("el-popconfirm"),b=it("el-header"),y=it("DragForm"),v=it("ElMain"),w=it("ElContainer"),x=it("ElDivider"),_=it("ElAside"),g=it("ViewForm"),C=it("ElDialog");return Ze(),Pn(w,{class:"_fc-designer",style:Zh("height:"+r.dragHeight)},{default:Ge(()=>[We(v,null,{default:Ge(()=>[We(w,{style:{height:"100%"}},{default:Ge(()=>[We(p,{class:"_fc-l",width:"266px"},{default:Ge(()=>[(Ze(!0),Pt(xd,null,Cd(r.menuList,(k,A)=>(Ze(),Pt("div",{key:A,class:"_fc-l-group"},[ot("h4",rf,Qt(k.title),1),We(c,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",list:k.list},{item:Ge(({element:S})=>[ot("div",of,[ot("div",lf,[ot("i",{class:el(["fc-icon",S.icon||"icon-input"])},null,2)]),ot("span",af,Qt(r.t("components."+S.name+".name")||S.label),1)])]),_:2},1032,["list"])]))),128))]),_:1}),We(w,{class:"_fc-m"},{default:Ge(()=>[We(b,{class:"_fc-m-tools",height:"45"},{default:Ge(()=>[Ed(r.$slots,"handle"),We(m,{type:"primary",plain:"",round:"",size:"small",onClick:r.previewFc},{default:Ge(()=>[sf,Kn(" "+Qt(r.t("designer.preview")),1)]),_:1},8,["onClick"]),We(h,{title:r.t("designer.clearConfirmTitle"),width:"200px","confirm-button-text":r.t("designer.clearConfirm"),"cancel-button-text":r.t("designer.clearCancel"),onConfirm:r.clearDragRule},{reference:Ge(()=>[We(m,{type:"danger",plain:"",round:"",size:"small"},{default:Ge(()=>[uf,Kn(Qt(r.t("designer.clear")),1)]),_:1})]),_:1},8,["title","confirm-button-text","cancel-button-text","onConfirm"])]),_:3}),We(v,{style:{background:"#F5F5F5",padding:"20px"}},{default:Ge(()=>[ot("div",cf,[We(y,{rule:r.dragForm.rule,option:r.form.value,api:r.dragForm.api,"onUpdate:api":o[0]||(o[0]=k=>r.dragForm.api=k)},null,8,["rule","option","api"])])]),_:1})]),_:3}),r.config&&r.config.showConfig===!1?dn("",!0):(Ze(),Pn(_,{key:0,class:"_fc-r",width:"320px"},{default:Ge(()=>[We(w,{style:{height:"100%"}},{default:Ge(()=>[We(b,{height:"40px",class:"_fc-r-tabs"},{default:Ge(()=>[r.activeRule||r.config&&r.config.showFormConfig===!1?(Ze(),Pt("div",{key:0,class:el(["_fc-r-tab",{active:r.activeTab==="props"}]),onClick:o[1]||(o[1]=k=>r.activeTab="props")},Qt(r.t("designer.config.component")),3)):dn("",!0),r.config&&r.config.showFormConfig===!1?dn("",!0):(Ze(),Pt("div",{key:1,class:el(["_fc-r-tab",{active:r.activeTab==="form"&&!!r.activeRule}]),onClick:o[2]||(o[2]=k=>r.activeTab="form")},Qt(r.t("designer.config.form")),3))]),_:1}),r.config&&r.config.showFormConfig===!1?dn("",!0):tl((Ze(),Pn(v,{key:0},{default:Ge(()=>[We(y,{rule:r.form.rule,option:r.form.option,modelValue:r.form.value.form,"onUpdate:modelValue":o[3]||(o[3]=k=>r.form.value.form=k),api:r.form.api,"onUpdate:api":o[4]||(o[4]=k=>r.form.api=k)},null,8,["rule","option","modelValue","api"])]),_:1},512)),[[nl,r.activeTab==="form"]]),tl((Ze(),Pn(v,{style:{padding:"0 20px"},key:r.activeRule?r.activeRule._id:""},{default:Ge(()=>[ot("div",null,[r.showBaseRule?(Ze(),Pn(x,{key:0},{default:Ge(()=>[Kn(Qt(r.t("designer.config.rule")),1)]),_:1})):dn("",!0),tl(We(y,{api:r.baseForm.api,"onUpdate:api":o[5]||(o[5]=k=>r.baseForm.api=k),rule:r.baseForm.rule,option:r.baseForm.options,modelValue:r.baseForm.value,onChange:r.baseChange},null,8,["api","rule","option","modelValue","onChange"]),[[nl,r.showBaseRule]]),We(x,null,{default:Ge(()=>[Kn(Qt(r.t("designer.config.props")),1)]),_:1}),We(y,{api:r.propsForm.api,"onUpdate:api":o[6]||(o[6]=k=>r.propsForm.api=k),rule:r.propsForm.rule,option:r.propsForm.options,modelValue:r.propsForm.value,onChange:r.propChange,onRemoveField:r.propRemoveField},null,8,["api","rule","option","modelValue","onChange","onRemoveField"]),r.showBaseRule?(Ze(),Pn(x,{key:1},{default:Ge(()=>[Kn(Qt(r.t("designer.config.validate")),1)]),_:1})):dn("",!0),tl(We(y,{api:r.validateForm.api,"onUpdate:api":o[7]||(o[7]=k=>r.validateForm.api=k),rule:r.validateForm.rule,option:r.validateForm.options,modelValue:r.validateForm.value,"onUpdate:modelValue":r.validateChange},null,8,["api","rule","option","modelValue","onUpdate:modelValue"]),[[nl,r.showBaseRule]])])]),_:1})),[[nl,r.activeTab==="props"]])]),_:1})]),_:1})),We(C,{modelValue:r.preview.state,"onUpdate:modelValue":o[8]||(o[8]=k=>r.preview.state=k),width:"800px","append-to-body":""},{default:Ge(()=>[r.preview.state?(Ze(),Pn(g,{key:0,rule:r.preview.rule,option:r.preview.option},null,8,["rule","option"])):dn("",!0)]),_:1},8,["modelValue"])]),_:3})]),_:3})]),_:3},8,["style"])}]]);let df=1;const ff=kn({name:"DragTool",props:["dragBtn","children","unique","mask"],setup(r){const{unique:o}=fs(r);return{id:eo(()=>o.value||df++),state:em("fcx")}},methods:{active(){this.state.active!==this.id&&(this.state.active=this.id,this.$emit("active"))}},beforeDestroy(){this.state={}}}),pf={key:0,class:"drag-mask"},hf={class:"drag-l"},mf={key:0,class:"drag-btn _fc-drag-btn",style:{cursor:"move"}},vf=[ot("i",{class:"fc-icon icon-move"},null,-1)],gf={class:"drag-r"},yf=[ot("i",{class:"fc-icon icon-add"},null,-1)],Af=[ot("i",{class:"fc-icon icon-copy"},null,-1)],bf=[ot("i",{class:"fc-icon icon-add-child"},null,-1)],wf=[ot("i",{class:"fc-icon icon-delete"},null,-1)],xf=Jn(ff,[["render",function(r,o,t,a,u,d){return Ze(),Pt("div",{class:el(["drag-tool",{active:r.state.active===r.id}]),onClick:o[4]||(o[4]=tm((...c)=>r.active&&r.active(...c),["stop"]))},[r.mask?(Ze(),Pt("div",pf)):dn("",!0),ot("div",hf,[r.state.active===r.id&&r.dragBtn!==!1?(Ze(),Pt("div",mf,vf)):dn("",!0)]),ot("div",gf,[ot("div",{class:"drag-btn",onClick:o[0]||(o[0]=c=>r.$emit("create"))},yf),ot("div",{class:"drag-btn",onClick:o[1]||(o[1]=c=>r.$emit("copy"))},Af),r.children?(Ze(),Pt("div",{key:0,class:"drag-btn",onClick:o[2]||(o[2]=c=>r.$emit("addChild"))},bf)):dn("",!0),ot("div",{class:"drag-btn drag-btn-danger",onClick:o[3]||(o[3]=c=>r.$emit("delete"))},wf)]),Ed(r.$slots,"default")],2)}]]);typeof globalThis<"u"||typeof window<"u"||(typeof global<"u"?global:typeof self<"u");var fu,pu={exports:{}};function hu(){return fu||(fu=1,pu.exports=function(){var r=navigator.userAgent,o=navigator.platform,t=/gecko\/\d/i.test(r),a=/MSIE \d/.test(r),u=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),c=a||u||d,p=c&&(a?document.documentMode||6:+(d||u)[1]),m=!d&&/WebKit\//.test(r),h=m&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),y=b&&+b[1],v=/Opera\//.test(r),w=/Apple Computer/.test(navigator.vendor),x=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),_=/PhantomJS/.test(r),g=w&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),C=/Android/.test(r),k=g||C||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),A=g||/Mac/.test(o),S=/\bCrOS\b/.test(r),M=/win/i.test(o),I=v&&r.match(/Version\/(\d*\.\d*)/);I&&(I=Number(I[1])),I&&I>=15&&(v=!1,m=!0);var N=A&&(h||v&&(I==null||I<12.11)),R=t||c&&p>=9;function T(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L,H=function(e,n){var l=e.className,i=T(n).exec(l);if(i){var s=l.slice(i.index+i[0].length);e.className=l.slice(0,i.index)+(s?i[1]+s:"")}};function P(e){for(var n=e.childNodes.length;n>0;--n)e.removeChild(e.firstChild);return e}function j(e,n){return P(e).appendChild(n)}function z(e,n,l,i){var s=document.createElement(e);if(l&&(s.className=l),i&&(s.style.cssText=i),typeof n=="string")s.appendChild(document.createTextNode(n));else if(n)for(var f=0;f=n)return E+(n-f);E+=D-f,E+=l-E%l,f=D+1}}g?re=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:c&&(re=function(e){try{e.select()}catch{}});var se=function(){this.id=null,this.f=null,this.time=0,this.handler=te(this.onTimeout,this)};function Ee(e,n){for(var l=0;l=n)return i+Math.min(E,n-s);if(s+=f-i,i=f+1,(s+=l-s%l)>=n)return i}}var Mt=[""];function rn(e){for(;Mt.length<=e;)Mt.push(Le(Mt)+" ");return Mt[e]}function Le(e){return e[e.length-1]}function Tt(e,n){for(var l=[],i=0;i"\x80"&&(e.toUpperCase()!=e.toLowerCase()||Nn.test(e))}function ln(e,n){return n?!!(n.source.indexOf("\\w")>-1&&on(e))||n.test(e):on(e)}function an(e){for(var n in e)if(e.hasOwnProperty(n)&&e[n])return!1;return!0}var Rn=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function _t(e){return e.charCodeAt(0)>=768&&Rn.test(e)}function ze(e,n,l){for(;(l<0?n>0:nl?-1:1;;){if(n==l)return n;var s=(n+l)/2,f=i<0?Math.ceil(s):Math.floor(s);if(f==n)return e(f)?n:l;e(f)?l=f:n=f+i}}function sn(e,n,l,i){if(!e)return i(n,l,"ltr",0);for(var s=!1,f=0;fn||n==l&&E.to==n)&&(i(Math.max(E.from,n),Math.min(E.to,l),E.level==1?"rtl":"ltr",f),s=!0)}s||i(n,l,"ltr")}var Ae=null;function ve(e,n,l){var i;Ae=null;for(var s=0;sn)return s;f.to==n&&(f.from!=f.to&&l=="before"?i=s:Ae=s),f.from==n&&(f.from!=f.to&&l!="before"?i=s:Ae=s)}return i??Ae}var ke=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function l(O){return O<=247?e.charAt(O):1424<=O&&O<=1524?"R":1536<=O&&O<=1785?n.charAt(O-1536):1774<=O&&O<=2220?"r":8192<=O&&O<=8203?"w":O==8204?"b":"L"}var i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,s=/[stwN]/,f=/[LRr]/,E=/[Lb1n]/,D=/[1n]/;function B(O,U,V){this.level=O,this.from=U,this.to=V}return function(O,U){var V=U=="ltr"?"L":"R";if(O.length==0||U=="ltr"&&!i.test(O))return!1;for(var G=O.length,$=[],ee=0;ee-1&&(i[n]=s.slice(0,f).concat(s.slice(f+1)))}}}function Pe(e,n){var l=De(e,n);if(l.length)for(var i=Array.prototype.slice.call(arguments,2),s=0;s0}function Xt(e){e.prototype.on=function(n,l){ae(this,n,l)},e.prototype.off=function(n,l){Me(this,n,l)}}function Ke(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function yn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Vn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==0}function Nt(e){Ke(e),yn(e)}function Fr(e){return e.target||e.srcElement}function yo(e){var n=e.which;return n==null&&(1&e.button?n=1:2&e.button?n=3:4&e.button&&(n=2)),A&&e.ctrlKey&&n==1&&(n=3),n}var pn,xi,Ao=function(){if(c&&p<9)return!1;var e=z("div");return"draggable"in e||"dragDrop"in e}();function bo(e){if(pn==null){var n=z("span","\u200B");j(e,z("span",[n,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(pn=n.offsetWidth<=1&&n.offsetHeight>2&&!(c&&p<8))}var l=pn?z("span","\u200B"):z("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return l.setAttribute("cm-text",""),l}function ya(e){if(xi!=null)return xi;var n=j(e,document.createTextNode("A\u062EA")),l=L(n,0,1).getBoundingClientRect(),i=L(n,1,2).getBoundingClientRect();return P(e),!(!l||l.left==l.right)&&(xi=i.right-l.right<3)}var Ln,hn=` b`.split(/\n/).length!=3?function(e){for(var n=0,l=[],i=e.length;n<=i;){var s=e.indexOf(` `,n);s==-1&&(s=e.length);var f=e.slice(n,e.charAt(s-1)=="\r"?s-1:s),E=f.indexOf("\r");E!=-1?(l.push(f.slice(0,E)),n+=E+1):(l.push(f),n=s+1)}return l}:function(e){return e.split(/\r\n?|\n/)},or=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var n;try{n=e.ownerDocument.selection.createRange()}catch{}return!(!n||n.parentElement()!=e)&&n.compareEndPoints("StartToEnd",n)!=0},wo="oncopy"in(Ln=z("div"))||(Ln.setAttribute("oncopy","return;"),typeof Ln.oncopy=="function"),An=null;function Aa(e){if(An!=null)return An;var n=j(e,z("span","x")),l=n.getBoundingClientRect(),i=L(n,0,1).getBoundingClientRect();return An=Math.abs(l.left-i.left)>1}var Pr={},bn={};function wn(e,n){arguments.length>2&&(n.dependencies=Array.prototype.slice.call(arguments,2)),Pr[e]=n}function Hr(e,n){bn[e]=n}function jr(e){if(typeof e=="string"&&bn.hasOwnProperty(e))e=bn[e];else if(e&&typeof e.name=="string"&&bn.hasOwnProperty(e.name)){var n=bn[e.name];typeof n=="string"&&(n={name:n}),(e=ir(n,e)).name=n.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return jr("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return jr("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function zr(e,n){n=jr(n);var l=Pr[n.name];if(!l)return zr(e,"text/plain");var i=l(e,n);if(lr.hasOwnProperty(n.name)){var s=lr[n.name];for(var f in s)!s.hasOwnProperty(f)||(i.hasOwnProperty(f)&&(i["_"+f]=i[f]),i[f]=s[f])}if(i.name=n.name,n.helperType&&(i.helperType=n.helperType),n.modeProps)for(var E in n.modeProps)i[E]=n.modeProps[E];return i}var lr={};function Ur(e,n){oe(n,lr.hasOwnProperty(e)?lr[e]:lr[e]={})}function Bn(e,n){if(n===!0)return n;if(e.copyState)return e.copyState(n);var l={};for(var i in n){var s=n[i];s instanceof Array&&(s=s.concat([])),l[i]=s}return l}function Ci(e,n){for(var l;e.innerMode&&(l=e.innerMode(n))&&l.mode!=e;)n=l.state,e=l.mode;return l||{mode:e,state:n}}function Vr(e,n,l){return!e.startState||e.startState(n,l)}var nt=function(e,n,l){this.pos=this.start=0,this.string=e,this.tabSize=n||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=l};function Ce(e,n){if((n-=e.first)<0||n>=e.size)throw new Error("There is no line "+(n+e.first)+" in the document.");for(var l=e;!l.lines;)for(var i=0;;++i){var s=l.children[i],f=s.chunkSize();if(n=e.first&&nl?J(l,Ce(e,l).text.length):Xf(n,Ce(e,n.line).text.length)}function Xf(e,n){var l=e.ch;return l==null||l>n?J(e.line,n):l<0?J(e.line,0):e}function Au(e,n){for(var l=[],i=0;i=this.string.length},nt.prototype.sol=function(){return this.pos==this.lineStart},nt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},nt.prototype.next=function(){if(this.posn},nt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},nt.prototype.skipToEnd=function(){this.pos=this.string.length},nt.prototype.skipTo=function(e){var n=this.string.indexOf(e,this.pos);if(n>-1)return this.pos=n,!0},nt.prototype.backUp=function(e){this.pos-=e},nt.prototype.column=function(){return this.lastColumnPos0?null:(i&&n!==!1&&(this.pos+=i[0].length),i)}var s=function(f){return l?f.toLowerCase():f};if(s(this.string.substr(this.pos,e.length))==s(e))return n!==!1&&(this.pos+=e.length),!0},nt.prototype.current=function(){return this.string.slice(this.start,this.pos)},nt.prototype.hideFirstChars=function(e,n){this.lineStart+=e;try{return n()}finally{this.lineStart-=e}},nt.prototype.lookAhead=function(e){var n=this.lineOracle;return n&&n.lookAhead(e)},nt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var Co=function(e,n){this.state=e,this.lookAhead=n},In=function(e,n,l,i){this.state=n,this.doc=e,this.line=l,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function bu(e,n,l,i){var s=[e.state.modeGen],f={};_u(e,n.text,e.doc.mode,l,function(O,U){return s.push(O,U)},f,i);for(var E=l.state,D=function(O){l.baseTokens=s;var U=e.state.overlays[O],V=1,G=0;l.state=!0,_u(e,n.text,U.mode,l,function($,ee){for(var ie=V;G<$;){var de=s[V];de>$&&s.splice(V,1,$,s[V+1],de),V+=2,G=Math.min($,de)}if(ee)if(U.opaque)s.splice(ie,V-ie,$,"overlay "+ee),V=ie+2;else for(;iee.options.maxHighlightLength&&Bn(e.doc.mode,i.state),f=bu(e,n,i);s&&(i.state=s),n.stateAfter=i.save(!s),n.styles=f.styles,f.classes?n.styleClasses=f.classes:n.styleClasses&&(n.styleClasses=null),l===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return n.styles}function Si(e,n,l){var i=e.doc,s=e.display;if(!i.mode.startState)return new In(i,!0,n);var f=Kf(e,n,l),E=f>i.first&&Ce(i,f-1).stateAfter,D=E?In.fromSaved(i,E,f):new In(i,Vr(i.mode),f);return i.iter(f,n,function(B){ba(e,B.text,D);var O=D.line;B.stateAfter=O==n-1||O%5==0||O>=s.viewFrom&&On.start)return f}throw new Error("Mode "+e.name+" failed to advance stream.")}In.prototype.lookAhead=function(e){var n=this.doc.getLine(this.line+e);return n!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),n},In.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var n=this.baseTokens[this.baseTokenPos+1];return{type:n&&n.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},In.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},In.fromSaved=function(e,n,l){return n instanceof Co?new In(e,Bn(e.mode,n.state),l,n.lookAhead):new In(e,Bn(e.mode,n),l)},In.prototype.save=function(e){var n=e!==!1?Bn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Co(n,this.maxLookAhead):n};var Cu=function(e,n,l){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=n||null,this.state=l};function Eu(e,n,l,i){var s,f,E=e.doc,D=E.mode,B=Ce(E,(n=Re(E,n)).line),O=Si(e,n.line,l),U=new nt(B.text,e.options.tabSize,O);for(i&&(f=[]);(i||U.pose.options.maxHighlightLength?(D=!1,E&&ba(e,n,i,V.pos),V.pos=n.length,B=null):B=Su(wa(l,V,i.state,G),f),G){var $=G[0].name;$&&(B="m-"+(B?$+" "+B:$))}if(!D||U!=B){for(;OE;--D){if(D<=f.first)return f.first;var B=Ce(f,D-1),O=B.stateAfter;if(O&&(!l||D+(O instanceof Co?O.lookAhead:0)<=f.modeFrontier))return D;var U=Z(B.text,null,e.options.tabSize);(s==null||i>U)&&(s=D-1,i=U)}return s}function Jf(e,n){if(e.modeFrontier=Math.min(e.modeFrontier,n),!(e.highlightFrontierl;i--){var s=Ce(e,i).stateAfter;if(s&&(!(s instanceof Co)||i+s.lookAhead=n:f.to>n);(i||(i=[])).push(new Eo(E,f.from,D?null:f.to))}}return i}function ip(e,n,l){var i;if(e)for(var s=0;s=n:f.to>n)||f.from==n&&E.type=="bookmark"&&(!l||f.marker.insertLeft)){var D=f.from==null||(E.inclusiveLeft?f.from<=n:f.from0&&D)for(var fe=0;fe0)){var U=[B,1],V=he(O.from,D.from),G=he(O.to,D.to);(V<0||!E.inclusiveLeft&&!V)&&U.push({from:O.from,to:D.from}),(G>0||!E.inclusiveRight&&!G)&&U.push({from:D.to,to:O.to}),s.splice.apply(s,U),B+=U.length-3}}return s}function Mu(e){var n=e.markedSpans;if(n){for(var l=0;ln)&&(!l||Ca(l,f.marker)<0)&&(l=f.marker)}return l}function Lu(e,n,l,i,s){var f=Ce(e,n),E=Wn&&f.markedSpans;if(E)for(var D=0;D=0&&V<=0||U<=0&&V>=0)&&(U<=0&&(B.marker.inclusiveRight&&s.inclusiveLeft?he(O.to,l)>=0:he(O.to,l)>0)||U>=0&&(B.marker.inclusiveRight&&s.inclusiveLeft?he(O.from,i)<=0:he(O.from,i)<0)))return!0}}}function xn(e){for(var n;n=Ru(e);)e=n.find(-1,!0).line;return e}function ap(e){for(var n;n=ko(e);)e=n.find(1,!0).line;return e}function sp(e){for(var n,l;n=ko(e);)e=n.find(1,!0).line,(l||(l=[])).push(e);return l}function Ea(e,n){var l=Ce(e,n),i=xn(l);return l==i?n:F(i)}function Bu(e,n){if(n>e.lastLine())return n;var l,i=Ce(e,n);if(!ar(e,i))return n;for(;l=ko(i);)i=l.find(1,!0).line;return F(i)+1}function ar(e,n){var l=Wn&&n.markedSpans;if(l){for(var i=void 0,s=0;sn.maxLineLength&&(n.maxLineLength=s,n.maxLine=i)})}var Yr=function(e,n,l){this.text=e,Tu(this,n),this.height=l?l(this):1};function up(e,n,l,i){e.text=n,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Mu(e),Tu(e,l);var s=i?i(e):1;s!=e.height&&un(e,s)}function cp(e){e.parent=null,Mu(e)}Yr.prototype.lineNo=function(){return F(this)},Xt(Yr);var dp={},fp={};function Iu(e,n){if(!e||/^\s*$/.test(e))return null;var l=n.addModeClass?fp:dp;return l[e]||(l[e]=e.replace(/\S+/g,"cm-$&"))}function Ou(e,n){var l=Q("span",null,null,m?"padding-right: .1px":null),i={pre:Q("pre",[l],"CodeMirror-line"),content:l,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};n.measure={};for(var s=0;s<=(n.rest?n.rest.length:0);s++){var f=s?n.rest[s-1]:n.line,E=void 0;i.pos=0,i.addToken=hp,ya(e.display.measure)&&(E=le(f,e.doc.direction))&&(i.addToken=vp(i.addToken,E)),i.map=[],gp(f,i,wu(e,f,n!=e.display.externalMeasured&&F(f))),f.styleClasses&&(f.styleClasses.bgClass&&(i.bgClass=X(f.styleClasses.bgClass,i.bgClass||"")),f.styleClasses.textClass&&(i.textClass=X(f.styleClasses.textClass,i.textClass||""))),i.map.length==0&&i.map.push(0,0,i.content.appendChild(bo(e.display.measure))),s==0?(n.measure.map=i.map,n.measure.cache={}):((n.measure.maps||(n.measure.maps=[])).push(i.map),(n.measure.caches||(n.measure.caches=[])).push({}))}if(m){var D=i.content.lastChild;(/\bcm-tab\b/.test(D.className)||D.querySelector&&D.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return Pe(e,"renderLine",e,n.line,i.pre),i.pre.className&&(i.textClass=X(i.pre.className,i.textClass||"")),i}function pp(e){var n=z("span","\u2022","cm-invalidchar");return n.title="\\u"+e.charCodeAt(0).toString(16),n.setAttribute("aria-label",n.title),n}function hp(e,n,l,i,s,f,E){if(n){var D,B=e.splitSpaces?mp(n,e.trailingSpace):n,O=e.cm.state.specialChars,U=!1;if(O.test(n)){D=document.createDocumentFragment();for(var V=0;;){O.lastIndex=V;var G=O.exec(n),$=G?G.index-V:n.length-V;if($){var ee=document.createTextNode(B.slice(V,V+$));c&&p<9?D.appendChild(z("span",[ee])):D.appendChild(ee),e.map.push(e.pos,e.pos+$,ee),e.col+=$,e.pos+=$}if(!G)break;V+=$+1;var ie=void 0;if(G[0]==" "){var de=e.cm.options.tabSize,ge=de-e.col%de;(ie=D.appendChild(z("span",rn(ge),"cm-tab"))).setAttribute("role","presentation"),ie.setAttribute("cm-text"," "),e.col+=ge}else G[0]=="\r"||G[0]==` `?((ie=D.appendChild(z("span",G[0]=="\r"?"\u240D":"\u2424","cm-invalidchar"))).setAttribute("cm-text",G[0]),e.col+=1):((ie=e.cm.options.specialCharPlaceholder(G[0])).setAttribute("cm-text",G[0]),c&&p<9?D.appendChild(z("span",[ie])):D.appendChild(ie),e.col+=1);e.map.push(e.pos,e.pos+1,ie),e.pos++}}else e.col+=n.length,D=document.createTextNode(B),e.map.push(e.pos,e.pos+n.length,D),c&&p<9&&(U=!0),e.pos+=n.length;if(e.trailingSpace=B.charCodeAt(n.length-1)==32,l||i||s||U||f||E){var be=l||"";i&&(be+=i),s&&(be+=s);var fe=z("span",[D],be,f);if(E)for(var xe in E)E.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&fe.setAttribute(xe,E[xe]);return e.content.appendChild(fe)}e.content.appendChild(D)}}function mp(e,n){if(e.length>1&&!/ /.test(e))return e;for(var l=n,i="",s=0;sO&&V.from<=O);G++);if(V.to>=U)return e(l,i,s,f,E,D,B);e(l,i.slice(0,V.to-O),s,f,null,D,B),f=null,i=i.slice(V.to-O),O=V.to}}}function Fu(e,n,l,i){var s=!i&&l.widgetNode;s&&e.map.push(e.pos,e.pos+n,s),!i&&e.cm.display.input.needsContentAttribute&&(s||(s=e.content.appendChild(document.createElement("span"))),s.setAttribute("cm-marker",l.id)),s&&(e.cm.display.input.setUneditable(s),e.content.appendChild(s)),e.pos+=n,e.trailingSpace=!1}function gp(e,n,l){var i=e.markedSpans,s=e.text,f=0;if(i)for(var E,D,B,O,U,V,G,$=s.length,ee=0,ie=1,de="",ge=0;;){if(ge==ee){B=O=U=D="",G=null,V=null,ge=1/0;for(var be=[],fe=void 0,xe=0;xeee||Se.collapsed&&we.to==ee&&we.from==ee)){if(we.to!=null&&we.to!=ee&&ge>we.to&&(ge=we.to,O=""),Se.className&&(B+=" "+Se.className),Se.css&&(D=(D?D+";":"")+Se.css),Se.startStyle&&we.from==ee&&(U+=" "+Se.startStyle),Se.endStyle&&we.to==ge&&(fe||(fe=[])).push(Se.endStyle,we.to),Se.title&&((G||(G={})).title=Se.title),Se.attributes)for(var qe in Se.attributes)(G||(G={}))[qe]=Se.attributes[qe];Se.collapsed&&(!V||Ca(V.marker,Se)<0)&&(V=we)}else we.from>ee&&ge>we.from&&(ge=we.from)}if(fe)for(var Qe=0;Qe=$)break;for(var Je=Math.min($,ge);;){if(de){var mn=ee+de.length;if(!V){var Zt=mn>Je?de.slice(0,Je-ee):de;n.addToken(n,Zt,E?E+B:B,U,ee+Zt.length==ge?O:"",D,G)}if(mn>=Je){de=de.slice(Je-ee),ee=Je;break}ee=mn,U=""}de=s.slice(f,f=l[ie++]),E=Iu(l[ie++],n.cm.options)}}else for(var rt=1;rt2&&f.push((B.bottom+O.top)/2-l.top)}}f.push(l.bottom-l.top)}}function Wu(e,n,l){if(e.line==n)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var i=0;il)return{map:e.measure.maps[s],cache:e.measure.caches[s],before:!0}}}function Dp(e,n){var l=F(n=xn(n)),i=e.display.externalMeasured=new Pu(e.doc,n,l);i.lineN=l;var s=i.built=Ou(e,i);return i.text=s.pre,j(e.display.lineMeasure,s.pre),i}function Qu(e,n,l,i){return Fn(e,Qr(e,n),l,i)}function Ta(e,n){if(n>=e.display.viewFrom&&n=l.lineN&&nn)&&(s=(f=B-D)-1,n>=B&&(E="right")),s!=null){if(i=e[O+2],D==B&&l==(i.insertLeft?"left":"right")&&(E=l),l=="left"&&s==0)for(;O&&e[O-2]==e[O-3]&&e[O-1].insertLeft;)i=e[2+(O-=3)],E="left";if(l=="right"&&s==B-D)for(;O=0&&(l=e[s]).left==l.right;s--);return l}function Tp(e,n,l,i){var s,f=$u(n.map,l,i),E=f.node,D=f.start,B=f.end,O=f.collapse;if(E.nodeType==3){for(var U=0;U<4;U++){for(;D&&_t(n.line.text.charAt(f.coverStart+D));)--D;for(;f.coverStart+B0&&(O=i="right"),s=e.options.lineWrapping&&(V=E.getClientRects()).length>1?V[i=="right"?V.length-1:0]:E.getBoundingClientRect()}if(c&&p<9&&!D&&(!s||!s.left&&!s.right)){var G=E.parentNode.getClientRects()[0];s=G?{left:G.left,right:G.left+$r(e.display),top:G.top,bottom:G.bottom}:Gu}for(var $=s.top-n.rect.top,ee=s.bottom-n.rect.top,ie=($+ee)/2,de=n.view.measure.heights,ge=0;ge=i.text.length?(B=i.text.length,O="before"):B<=0&&(B=0,O="after"),!D)return E(O=="before"?B-1:B,O=="before");function U(ee,ie,de){return E(de?ee-1:ee,D[ie].level==1!=de)}var V=ve(D,B,O),G=Ae,$=U(B,V,O=="before");return G!=null&&($.other=U(B,G,O!="before")),$}function ec(e,n){var l=0;n=Re(e.doc,n),e.options.lineWrapping||(l=$r(e.display)*n.ch);var i=Ce(e.doc,n.line),s=Qn(i)+To(e.display);return{left:l,right:l,top:s,bottom:s+i.height}}function Ra(e,n,l,i,s){var f=J(e,n,l);return f.xRel=s,i&&(f.outside=i),f}function La(e,n,l){var i=e.doc;if((l+=e.display.viewOffset)<0)return Ra(i.first,0,null,-1,-1);var s=Y(i,l),f=i.first+i.size-1;if(s>f)return Ra(i.first+i.size-1,Ce(i,f).text.length,null,1,1);n<0&&(n=0);for(var E=Ce(i,s);;){var D=Rp(e,E,s,n,l),B=lp(E,D.ch+(D.xRel>0||D.outside>0?1:0));if(!B)return D;var O=B.find(1);if(O.line==s)return O;E=Ce(i,s=O.line)}}function tc(e,n,l,i){i-=Na(n);var s=n.text.length,f=gt(function(E){return Fn(e,l,E-1).bottom<=i},s,0);return{begin:f,end:s=gt(function(E){return Fn(e,l,E).top>i},f,s)}}function nc(e,n,l,i){return l||(l=Qr(e,n)),tc(e,n,l,No(e,n,Fn(e,l,i),"line").top)}function Ba(e,n,l,i){return!(e.bottom<=l)&&(e.top>l||(i?e.left:e.right)>n)}function Rp(e,n,l,i,s){s-=Qn(n);var f=Qr(e,n),E=Na(n),D=0,B=n.text.length,O=!0,U=le(n,e.doc.direction);if(U){var V=(e.options.lineWrapping?Bp:Lp)(e,n,l,f,U,i,s);D=(O=V.level!=1)?V.from:V.to-1,B=O?V.to:V.from-1}var G,$,ee=null,ie=null,de=gt(function(we){var Se=Fn(e,f,we);return Se.top+=E,Se.bottom+=E,!!Ba(Se,i,s,!1)&&(Se.top<=s&&Se.left<=i&&(ee=we,ie=Se),!0)},D,B),ge=!1;if(ie){var be=i-ie.left=xe.bottom?1:0}return Ra(l,de=ze(n.text,de,1),$,ge,i-G)}function Lp(e,n,l,i,s,f,E){var D=gt(function(V){var G=s[V],$=G.level!=1;return Ba(Cn(e,J(l,$?G.to:G.from,$?"before":"after"),"line",n,i),f,E,!0)},0,s.length-1),B=s[D];if(D>0){var O=B.level!=1,U=Cn(e,J(l,O?B.from:B.to,O?"after":"before"),"line",n,i);Ba(U,f,E,!0)&&U.top>E&&(B=s[D-1])}return B}function Bp(e,n,l,i,s,f,E){var D=tc(e,n,i,E),B=D.begin,O=D.end;/\s/.test(n.text.charAt(O-1))&&O--;for(var U=null,V=null,G=0;G=O||$.to<=B)){var ee=Fn(e,i,$.level!=1?Math.min(O,$.to)-1:Math.max(B,$.from)).right,ie=eeie)&&(U=$,V=ie)}}return U||(U=s[s.length-1]),U.fromO&&(U={from:U.from,to:O,level:U.level}),U}function Gr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(br==null){br=z("pre",null,"CodeMirror-line-like");for(var n=0;n<49;++n)br.appendChild(document.createTextNode("x")),br.appendChild(z("br"));br.appendChild(document.createTextNode("x"))}j(e.measure,br);var l=br.offsetHeight/50;return l>3&&(e.cachedTextHeight=l),P(e.measure),l||1}function $r(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var n=z("span","xxxxxxxxxx"),l=z("pre",[n],"CodeMirror-line-like");j(e.measure,l);var i=n.getBoundingClientRect(),s=(i.right-i.left)/10;return s>2&&(e.cachedCharWidth=s),s||10}function Ia(e){for(var n=e.display,l={},i={},s=n.gutters.clientLeft,f=n.gutters.firstChild,E=0;f;f=f.nextSibling,++E){var D=e.display.gutterSpecs[E].className;l[D]=f.offsetLeft+f.clientLeft+s,i[D]=f.clientWidth}return{fixedPos:Oa(n),gutterTotalWidth:n.gutters.offsetWidth,gutterLeft:l,gutterWidth:i,wrapperWidth:n.wrapper.clientWidth}}function Oa(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function rc(e){var n=Gr(e.display),l=e.options.lineWrapping,i=l&&Math.max(5,e.display.scroller.clientWidth/$r(e.display)-3);return function(s){if(ar(e.doc,s))return 0;var f=0;if(s.widgets)for(var E=0;E0&&(B=Ce(e.doc,O.line).text).length==O.ch){var U=Z(B,B.length,e.options.tabSize)-B.length;O=J(O.line,Math.max(0,Math.round((f-Yu(e.display).left)/$r(e.display))-U))}return O}function xr(e,n){if(n>=e.display.viewTo||(n-=e.display.viewFrom)<0)return null;for(var l=e.display.view,i=0;in)&&(s.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=s.viewTo)Wn&&Ea(e.doc,n)s.viewFrom?ur(e):(s.viewFrom+=i,s.viewTo+=i);else if(n<=s.viewFrom&&l>=s.viewTo)ur(e);else if(n<=s.viewFrom){var f=Lo(e,l,l+i,1);f?(s.view=s.view.slice(f.index),s.viewFrom=f.lineN,s.viewTo+=i):ur(e)}else if(l>=s.viewTo){var E=Lo(e,n,n,-1);E?(s.view=s.view.slice(0,E.index),s.viewTo=E.lineN):ur(e)}else{var D=Lo(e,n,n,-1),B=Lo(e,l,l+i,1);D&&B?(s.view=s.view.slice(0,D.index).concat(Mo(e,D.lineN,B.lineN)).concat(s.view.slice(B.index)),s.viewTo+=i):ur(e)}var O=s.externalMeasured;O&&(l=s.lineN&&n=i.viewTo)){var f=i.view[xr(e,n)];if(f.node!=null){var E=f.changes||(f.changes=[]);Ee(E,l)==-1&&E.push(l)}}}function ur(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Lo(e,n,l,i){var s,f=xr(e,n),E=e.display.view;if(!Wn||l==e.doc.first+e.doc.size)return{index:f,lineN:l};for(var D=e.display.viewFrom,B=0;B0){if(f==E.length-1)return null;s=D+E[f].size-n,f++}else s=D-n;n+=s,l+=s}for(;Ea(e.doc,l)!=l;){if(f==(i<0?0:E.length-1))return null;l+=i*E[f-(i<0?1:0)].size,f+=i}return{index:f,lineN:l}}function Ip(e,n,l){var i=e.display;i.view.length==0||n>=i.viewTo||l<=i.viewFrom?(i.view=Mo(e,n,l),i.viewFrom=n):(i.viewFrom>n?i.view=Mo(e,n,i.viewFrom).concat(i.view):i.viewFroml&&(i.view=i.view.slice(0,xr(e,l)))),i.viewTo=l}function ic(e){for(var n=e.display.view,l=0,i=0;i=e.display.viewTo||B.to().line0?E:e.defaultCharWidth())+"px"}if(i.other){var D=l.appendChild(z("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));D.style.display="",D.style.left=i.other.left+"px",D.style.top=i.other.top+"px",D.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Bo(e,n){return e.top-n.top||e.left-n.left}function Op(e,n,l){var i=e.display,s=e.doc,f=document.createDocumentFragment(),E=Yu(e.display),D=E.left,B=Math.max(i.sizerWidth,Ar(e)-i.sizer.offsetLeft)-E.right,O=s.direction=="ltr";function U(fe,xe,we,Se){xe<0&&(xe=0),xe=Math.round(xe),Se=Math.round(Se),f.appendChild(z("div",null,"CodeMirror-selected","position: absolute; left: "+fe+`px; top: `+xe+"px; width: "+(we??B-fe)+`px; height: `+(Se-xe)+"px"))}function V(fe,xe,we){var Se,qe,Qe=Ce(s,fe),Jt=Qe.text.length;function Je(rt,Yt){return Ro(e,J(fe,rt),"div",Qe,Yt)}function mn(rt,Yt,Ot){var dt=nc(e,Qe,null,rt),ut=Yt=="ltr"==(Ot=="after")?"left":"right";return Je(Ot=="after"?dt.begin:dt.end-(/\s/.test(Qe.text.charAt(dt.end-1))?2:1),ut)[ut]}var Zt=le(Qe,s.direction);return sn(Zt,xe||0,we??Jt,function(rt,Yt,Ot,dt){var ut=Ot=="ltr",ft=Je(rt,ut?"left":"right"),Wt=Je(Yt-1,ut?"right":"left"),mr=xe==null&&rt==0,_n=we==null&&Yt==Jt,Lt=dt==0,pt=!Zt||dt==Zt.length-1;if(Wt.top-ft.top<=3){var cs=(O?_n:mr)&&pt,Xn=(O?mr:_n)&&Lt?D:(ut?ft:Wt).left,kr=cs?B:(ut?Wt:ft).right;U(Xn,ft.top,kr-Xn,ft.bottom)}else{var Dr,Ft,ai,ds;ut?(Dr=O&&mr&&Lt?D:ft.left,Ft=O?B:mn(rt,Ot,"before"),ai=O?D:mn(Yt,Ot,"after"),ds=O&&_n&&pt?B:Wt.right):(Dr=O?mn(rt,Ot,"before"):D,Ft=!O&&mr&&Lt?B:ft.right,ai=!O&&_n&&pt?D:Wt.left,ds=O?mn(Yt,Ot,"after"):B),U(Dr,ft.top,Ft-Dr,ft.bottom),ft.bottom0?n.blinker=setInterval(function(){e.hasFocus()||qr(e),n.cursorDiv.style.visibility=(l=!l)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(n.cursorDiv.style.visibility="hidden")}}function lc(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||za(e))}function ja(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&qr(e))},100)}function za(e,n){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Pe(e,"focus",e,n),e.state.focused=!0,K(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),m&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Ha(e))}function qr(e,n){e.state.delayingBlurEvent||(e.state.focused&&(Pe(e,"blur",e,n),e.state.focused=!1,H(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Io(e){for(var n=e.display,l=n.lineDiv.offsetTop,i=Math.max(0,n.scroller.getBoundingClientRect().top),s=n.lineDiv.getBoundingClientRect().top,f=0,E=0;E.005||$<-.005)&&(se.display.sizerWidth){var ie=Math.ceil(U/$r(e.display));ie>e.display.maxLineLength&&(e.display.maxLineLength=ie,e.display.maxLine=D.line,e.display.maxLineChanged=!0)}}}Math.abs(f)>2&&(n.scroller.scrollTop+=f)}function ac(e){if(e.widgets)for(var n=0;n=E&&(f=Y(n,Qn(Ce(n,B))-e.wrapper.clientHeight),E=B)}return{from:f,to:Math.max(E,f+1)}}function Fp(e,n){if(!Ue(e,"scrollCursorIntoView")){var l=e.display,i=l.sizer.getBoundingClientRect(),s=null,f=l.wrapper.ownerDocument;if(n.top+i.top<0?s=!0:n.bottom+i.top>(f.defaultView.innerHeight||f.documentElement.clientHeight)&&(s=!1),s!=null&&!_){var E=z("div","\u200B",null,`position: absolute; top: `+(n.top-l.viewOffset-To(e.display))+`px; height: `+(n.bottom-n.top+On(e)+l.barHeight)+`px; left: `+n.left+"px; width: "+Math.max(2,n.right-n.left)+"px;");e.display.lineSpace.appendChild(E),E.scrollIntoView(s),e.display.lineSpace.removeChild(E)}}}function Pp(e,n,l,i){var s;i==null&&(i=0),!e.options.lineWrapping&&n==l&&(l=n.sticky=="before"?J(n.line,n.ch+1,"before"):n,n=n.ch?J(n.line,n.sticky=="before"?n.ch-1:n.ch,"after"):n);for(var f=0;f<5;f++){var E=!1,D=Cn(e,n),B=l&&l!=n?Cn(e,l):D,O=Ua(e,s={left:Math.min(D.left,B.left),top:Math.min(D.top,B.top)-i,right:Math.max(D.left,B.left),bottom:Math.max(D.bottom,B.bottom)+i}),U=e.doc.scrollTop,V=e.doc.scrollLeft;if(O.scrollTop!=null&&(Li(e,O.scrollTop),Math.abs(e.doc.scrollTop-U)>1&&(E=!0)),O.scrollLeft!=null&&(Cr(e,O.scrollLeft),Math.abs(e.doc.scrollLeft-V)>1&&(E=!0)),!E)break}return s}function Hp(e,n){var l=Ua(e,n);l.scrollTop!=null&&Li(e,l.scrollTop),l.scrollLeft!=null&&Cr(e,l.scrollLeft)}function Ua(e,n){var l=e.display,i=Gr(e.display);n.top<0&&(n.top=0);var s=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:l.scroller.scrollTop,f=Ma(e),E={};n.bottom-n.top>f&&(n.bottom=n.top+f);var D=e.doc.height+Da(l),B=n.topD-i;if(n.tops+f){var U=Math.min(n.top,(O?D:n.bottom)-f);U!=s&&(E.scrollTop=U)}var V=e.options.fixedGutter?0:l.gutters.offsetWidth,G=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:l.scroller.scrollLeft-V,$=Ar(e)-l.gutters.offsetWidth,ee=n.right-n.left>$;return ee&&(n.right=n.left+$),n.left<10?E.scrollLeft=0:n.left$+G-3&&(E.scrollLeft=n.right+(ee?0:10)-$),E}function Va(e,n){n!=null&&(Fo(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+n)}function Xr(e){Fo(e);var n=e.getCursor();e.curOp.scrollToPos={from:n,to:n,margin:e.options.cursorScrollMargin}}function Ri(e,n,l){(n!=null||l!=null)&&Fo(e),n!=null&&(e.curOp.scrollLeft=n),l!=null&&(e.curOp.scrollTop=l)}function jp(e,n){Fo(e),e.curOp.scrollToPos=n}function Fo(e){var n=e.curOp.scrollToPos;n&&(e.curOp.scrollToPos=null,sc(e,ec(e,n.from),ec(e,n.to),n.margin))}function sc(e,n,l,i){var s=Ua(e,{left:Math.min(n.left,l.left),top:Math.min(n.top,l.top)-i,right:Math.max(n.right,l.right),bottom:Math.max(n.bottom,l.bottom)+i});Ri(e,s.scrollLeft,s.scrollTop)}function Li(e,n){Math.abs(e.doc.scrollTop-n)<2||(t||Wa(e,{top:n}),uc(e,n,!0),t&&Wa(e),Oi(e,100))}function uc(e,n,l){n=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,n)),(e.display.scroller.scrollTop!=n||l)&&(e.doc.scrollTop=n,e.display.scrollbars.setScrollTop(n),e.display.scroller.scrollTop!=n&&(e.display.scroller.scrollTop=n))}function Cr(e,n,l,i){n=Math.max(0,Math.min(n,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(!(l?n==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-n)<2)||i)&&(e.doc.scrollLeft=n,hc(e),e.display.scroller.scrollLeft!=n&&(e.display.scroller.scrollLeft=n),e.display.scrollbars.setScrollLeft(n))}function Bi(e){var n=e.display,l=n.gutters.offsetWidth,i=Math.round(e.doc.height+Da(e.display));return{clientHeight:n.scroller.clientHeight,viewHeight:n.wrapper.clientHeight,scrollWidth:n.scroller.scrollWidth,clientWidth:n.scroller.clientWidth,viewWidth:n.wrapper.clientWidth,barLeft:e.options.fixedGutter?l:0,docHeight:i,scrollHeight:i+On(e)+n.barHeight,nativeBarWidth:n.nativeBarWidth,gutterWidth:l}}var Er=function(e,n,l){this.cm=l;var i=this.vert=z("div",[z("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),s=this.horiz=z("div",[z("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=s.tabIndex=-1,e(i),e(s),ae(i,"scroll",function(){i.clientHeight&&n(i.scrollTop,"vertical")}),ae(s,"scroll",function(){s.clientWidth&&n(s.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,c&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Er.prototype.update=function(e){var n=e.scrollWidth>e.clientWidth+1,l=e.scrollHeight>e.clientHeight+1,i=e.nativeBarWidth;if(l){this.vert.style.display="block",this.vert.style.bottom=n?i+"px":"0";var s=e.viewHeight-(n?i:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+s)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(n){this.horiz.style.display="block",this.horiz.style.right=l?i+"px":"0",this.horiz.style.left=e.barLeft+"px";var f=e.viewWidth-e.barLeft-(l?i:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+f)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(i==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:l?i:0,bottom:n?i:0}},Er.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Er.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Er.prototype.zeroWidthHack=function(){var e=A&&!x?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new se,this.disableVert=new se},Er.prototype.enableZeroWidthBar=function(e,n,l){function i(){var s=e.getBoundingClientRect();(l=="vert"?document.elementFromPoint(s.right-1,(s.top+s.bottom)/2):document.elementFromPoint((s.right+s.left)/2,s.bottom-1))!=e?e.style.visibility="hidden":n.set(1e3,i)}e.style.visibility="",n.set(1e3,i)},Er.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var Ii=function(){};function Kr(e,n){n||(n=Bi(e));var l=e.display.barWidth,i=e.display.barHeight;cc(e,n);for(var s=0;s<4&&l!=e.display.barWidth||i!=e.display.barHeight;s++)l!=e.display.barWidth&&e.options.lineWrapping&&Io(e),cc(e,Bi(e)),l=e.display.barWidth,i=e.display.barHeight}function cc(e,n){var l=e.display,i=l.scrollbars.update(n);l.sizer.style.paddingRight=(l.barWidth=i.right)+"px",l.sizer.style.paddingBottom=(l.barHeight=i.bottom)+"px",l.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(l.scrollbarFiller.style.display="block",l.scrollbarFiller.style.height=i.bottom+"px",l.scrollbarFiller.style.width=i.right+"px"):l.scrollbarFiller.style.display="",i.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(l.gutterFiller.style.display="block",l.gutterFiller.style.height=i.bottom+"px",l.gutterFiller.style.width=n.gutterWidth+"px"):l.gutterFiller.style.display=""}Ii.prototype.update=function(){return{bottom:0,right:0}},Ii.prototype.setScrollLeft=function(){},Ii.prototype.setScrollTop=function(){},Ii.prototype.clear=function(){};var dc={native:Er,null:Ii};function fc(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&H(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new dc[e.options.scrollbarStyle](function(n){e.display.wrapper.insertBefore(n,e.display.scrollbarFiller),ae(n,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),n.setAttribute("cm-not-content","true")},function(n,l){l=="horizontal"?Cr(e,n):Li(e,n)},e),e.display.scrollbars.addClass&&K(e.display.wrapper,e.display.scrollbars.addClass)}var zp=0;function Sr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++zp,markArrays:null},yp(e.curOp)}function _r(e){var n=e.curOp;n&&bp(n,function(l){for(var i=0;i=l.viewTo)||l.maxLineChanged&&n.options.lineWrapping,e.update=e.mustUpdate&&new Po(n,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Yp(e){e.updatedDisplay=e.mustUpdate&&Ya(e.cm,e.update)}function Wp(e){var n=e.cm,l=n.display;e.updatedDisplay&&Io(n),e.barMeasure=Bi(n),l.maxLineChanged&&!n.options.lineWrapping&&(e.adjustWidthTo=Qu(n,l.maxLine,l.maxLine.text.length).left+3,n.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(l.scroller.clientWidth,l.sizer.offsetLeft+e.adjustWidthTo+On(n)+n.display.barWidth),e.maxScrollLeft=Math.max(0,l.sizer.offsetLeft+e.adjustWidthTo-Ar(n))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=l.input.prepareSelection())}function Qp(e){var n=e.cm;e.adjustWidthTo!=null&&(n.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var l=+new Date+e.options.workTime,i=Si(e,n.highlightFrontier),s=[];n.iter(i.line,Math.min(n.first+n.size,e.display.viewTo+500),function(f){if(i.line>=e.display.viewFrom){var E=f.styles,D=f.text.length>e.options.maxHighlightLength?Bn(n.mode,i.state):null,B=bu(e,f,i,!0);D&&(i.state=D),f.styles=B.styles;var O=f.styleClasses,U=B.classes;U?f.styleClasses=U:O&&(f.styleClasses=null);for(var V=!E||E.length!=f.styles.length||O!=U&&(!O||!U||O.bgClass!=U.bgClass||O.textClass!=U.textClass),G=0;!V&&Gl)return Oi(e,e.options.workDelay),!0}),n.highlightFrontier=i.line,n.modeFrontier=Math.max(n.modeFrontier,i.line),s.length&&Kt(e,function(){for(var f=0;f=l.viewFrom&&n.visible.to<=l.viewTo&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo)&&l.renderedView==l.view&&ic(e)==0)return!1;mc(e)&&(ur(e),n.dims=Ia(e));var s=i.first+i.size,f=Math.max(n.visible.from-e.options.viewportMargin,i.first),E=Math.min(s,n.visible.to+e.options.viewportMargin);l.viewFromE&&l.viewTo-E<20&&(E=Math.min(s,l.viewTo)),Wn&&(f=Ea(e.doc,f),E=Bu(e.doc,E));var D=f!=l.viewFrom||E!=l.viewTo||l.lastWrapHeight!=n.wrapperHeight||l.lastWrapWidth!=n.wrapperWidth;Ip(e,f,E),l.viewOffset=Qn(Ce(e.doc,l.viewFrom)),e.display.mover.style.top=l.viewOffset+"px";var B=ic(e);if(!D&&B==0&&!n.force&&l.renderedView==l.view&&(l.updateLineNumbers==null||l.updateLineNumbers>=l.viewTo))return!1;var O=Xp(e);return B>4&&(l.lineDiv.style.display="none"),Jp(e,l.updateLineNumbers,n.dims),B>4&&(l.lineDiv.style.display=""),l.renderedView=l.view,Kp(O),P(l.cursorDiv),P(l.selectionDiv),l.gutters.style.height=l.sizer.style.minHeight=0,D&&(l.lastWrapHeight=n.wrapperHeight,l.lastWrapWidth=n.wrapperWidth,Oi(e,400)),l.updateLineNumbers=null,!0}function pc(e,n){for(var l=n.viewport,i=!0;;i=!1){if(i&&e.options.lineWrapping&&n.oldDisplayWidth!=Ar(e))i&&(n.visible=Oo(e.display,e.doc,l));else if(l&&l.top!=null&&(l={top:Math.min(e.doc.height+Da(e.display)-Ma(e),l.top)}),n.visible=Oo(e.display,e.doc,l),n.visible.from>=e.display.viewFrom&&n.visible.to<=e.display.viewTo)break;if(!Ya(e,n))break;Io(e);var s=Bi(e);Ni(e),Kr(e,s),Ga(e,s),n.force=!1}n.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(n.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Wa(e,n){var l=new Po(e,n);if(Ya(e,l)){Io(e),pc(e,l);var i=Bi(e);Ni(e),Kr(e,i),Ga(e,i),l.finish()}}function Jp(e,n,l){var i=e.display,s=e.options.lineNumbers,f=i.lineDiv,E=f.firstChild;function D(ee){var ie=ee.nextSibling;return m&&A&&e.display.currentWheelTarget==ee?ee.style.display="none":ee.parentNode.removeChild(ee),ie}for(var B=i.view,O=i.viewFrom,U=0;U-1&&(G=!1),Hu(e,V,O,l)),G&&(P(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(ye(e.options,O)))),E=V.node.nextSibling}else{var $=Sp(e,V,O,l);f.insertBefore($,E)}O+=V.size}for(;E;)E=D(E)}function Qa(e){var n=e.gutters.offsetWidth;e.sizer.style.marginLeft=n+"px",xt(e,"gutterChanged",e)}function Ga(e,n){e.display.sizer.style.minHeight=n.docHeight+"px",e.display.heightForcer.style.top=n.docHeight+"px",e.display.gutters.style.height=n.docHeight+e.display.barHeight+On(e)+"px"}function hc(e){var n=e.display,l=n.view;if(n.alignWidgets||n.gutters.firstChild&&e.options.fixedGutter){for(var i=Oa(n)-n.scroller.scrollLeft+e.doc.scrollLeft,s=n.gutters.offsetWidth,f=i+"px",E=0;E=105&&(s.wrapper.style.clipPath="inset(0px)"),s.wrapper.setAttribute("translate","no"),c&&p<8&&(s.gutters.style.zIndex=-1,s.scroller.style.paddingRight=0),!m&&!(t&&k)&&(s.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(s.wrapper):e(s.wrapper)),s.viewFrom=s.viewTo=n.first,s.reportedViewFrom=s.reportedViewTo=n.first,s.view=[],s.renderedView=null,s.externalMeasured=null,s.viewOffset=0,s.lastWrapHeight=s.lastWrapWidth=0,s.updateLineNumbers=null,s.nativeBarWidth=s.barHeight=s.barWidth=0,s.scrollbarsClipped=!1,s.lineNumWidth=s.lineNumInnerWidth=s.lineNumChars=null,s.alignWidgets=!1,s.cachedCharWidth=s.cachedTextHeight=s.cachedPaddingH=null,s.maxLine=null,s.maxLineLength=0,s.maxLineChanged=!1,s.wheelDX=s.wheelDY=s.wheelStartX=s.wheelStartY=null,s.shift=!1,s.selForContextMenu=null,s.activeTouch=null,s.gutterSpecs=$a(i.gutters,i.lineNumbers),vc(s),l.init(s)}Po.prototype.signal=function(e,n){$e(e,n)&&this.events.push(arguments)},Po.prototype.finish=function(){for(var e=0;eD.clientWidth,O=D.scrollHeight>D.clientHeight;if(i&&B||s&&O){if(s&&A&&m){e:for(var U=n.target,V=E.view;U!=D;U=U.parentNode)for(var G=0;G=0&&he(e,i.to())<=0)return l}return-1};var He=function(e,n){this.anchor=e,this.head=n};function En(e,n,l){var i=e&&e.options.selectionsMayTouch,s=n[l];n.sort(function(G,$){return he(G.from(),$.from())}),l=Ee(n,s);for(var f=1;f0:B>=0){var O=xo(D.from(),E.from()),U=zt(D.to(),E.to()),V=D.empty()?E.from()==E.head:D.from()==D.head;f<=l&&--l,n.splice(--f,2,new He(V?U:O,V?O:U))}}return new cn(n,l)}function cr(e,n){return new cn([new He(e,n||e)],0)}function dr(e){return e.text?J(e.from.line+e.text.length-1,Le(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ac(e,n){if(he(e,n.from)<0)return e;if(he(e,n.to)<=0)return dr(n);var l=e.line+n.text.length-(n.to.line-n.from.line)-1,i=e.ch;return e.line==n.to.line&&(i+=dr(n).ch-n.to.ch),J(l,i)}function qa(e,n){for(var l=[],i=0;i1&&e.remove(D.line+1,ee-1),e.insert(D.line+1,ge)}xt(e,"change",e,n)}function fr(e,n,l){function i(s,f,E){if(s.linked)for(var D=0;D1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Le(e.done)):void 0}function Sc(e,n,l,i){var s=e.history;s.undone.length=0;var f,E,D=+new Date;if((s.lastOp==i||s.lastOrigin==n.origin&&n.origin&&(n.origin.charAt(0)=="+"&&s.lastModTime>D-(e.cm?e.cm.options.historyEventDelay:500)||n.origin.charAt(0)=="*"))&&(f=rh(s,s.lastOp==i)))E=Le(f.changes),he(n.from,n.to)==0&&he(n.from,E.to)==0?E.to=dr(n):f.changes.push(Ja(e,n));else{var B=Le(s.done);for((!B||!B.ranges)&&zo(e.sel,s.done),f={changes:[Ja(e,n)],generation:s.generation},s.done.push(f);s.done.length>s.undoDepth;)s.done.shift(),s.done[0].ranges||s.done.shift()}s.done.push(l),s.generation=++s.maxGeneration,s.lastModTime=s.lastSelTime=D,s.lastOp=s.lastSelOp=i,s.lastOrigin=s.lastSelOrigin=n.origin,E||Pe(e,"historyAdded")}function ih(e,n,l,i){var s=n.charAt(0);return s=="*"||s=="+"&&l.ranges.length==i.ranges.length&&l.somethingSelected()==i.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function oh(e,n,l,i){var s=e.history,f=i&&i.origin;l==s.lastSelOp||f&&s.lastSelOrigin==f&&(s.lastModTime==s.lastSelTime&&s.lastOrigin==f||ih(e,f,Le(s.done),n))?s.done[s.done.length-1]=n:zo(n,s.done),s.lastSelTime=+new Date,s.lastSelOrigin=f,s.lastSelOp=l,i&&i.clearRedo!==!1&&Ec(s.undone)}function zo(e,n){var l=Le(n);l&&l.ranges&&l.equals(e)||n.push(e)}function _c(e,n,l,i){var s=n["spans_"+e.id],f=0;e.iter(Math.max(e.first,l),Math.min(e.first+e.size,i),function(E){E.markedSpans&&((s||(s=n["spans_"+e.id]={}))[f]=E.markedSpans),++f})}function lh(e){if(!e)return null;for(var n,l=0;l-1&&(Le(D)[V]=O[V],delete O[V])}}}return i}function Za(e,n,l,i){if(i){var s=e.anchor;if(l){var f=he(n,s)<0;f!=he(l,s)<0?(s=n,n=l):f!=he(n,l)<0&&(n=l)}return new He(s,n)}return new He(l||n,n)}function Uo(e,n,l,i,s){s==null&&(s=e.cm&&(e.cm.display.shift||e.extend)),Rt(e,new cn([Za(e.sel.primary(),n,l,s)],0),i)}function Dc(e,n,l){for(var i=[],s=e.cm&&(e.cm.display.shift||e.extend),f=0;f=n.ch:D.to>n.ch))){if(s&&(Pe(B,"beforeCursorEnter"),B.explicitlyCleared)){if(f.markedSpans){--E;continue}break}if(!B.atomic)continue;if(l){var V=B.find(i<0?1:-1),G=void 0;if((i<0?U:O)&&(V=Bc(e,V,-i,V&&V.line==n.line?f:null)),V&&V.line==n.line&&(G=he(V,l))&&(i<0?G<0:G>0))return Zr(e,V,n,i,s)}var $=B.find(i<0?-1:1);return(i<0?O:U)&&($=Bc(e,$,i,$.line==n.line?f:null)),$?Zr(e,$,n,i,s):null}}return n}function Yo(e,n,l,i,s){var f=i||1;return Zr(e,n,l,f,s)||!s&&Zr(e,n,l,f,!0)||Zr(e,n,l,-f,s)||!s&&Zr(e,n,l,-f,!0)||(e.cantEdit=!0,J(e.first,0))}function Bc(e,n,l,i){return l<0&&n.ch==0?n.line>e.first?Re(e,J(n.line-1)):null:l>0&&n.ch==(i||Ce(e,n.line)).text.length?n.line=0;--s)Fc(e,{from:i[s].from,to:i[s].to,text:s?[""]:n.text,origin:n.origin});else Fc(e,n)}}function Fc(e,n){if(n.text.length!=1||n.text[0]!=""||he(n.from,n.to)!=0){var l=qa(e,n);Sc(e,n,l,e.cm?e.cm.curOp.id:NaN),Hi(e,n,l,xa(e,n));var i=[];fr(e,function(s,f){!f&&Ee(i,s.history)==-1&&(zc(s.history,n),i.push(s.history)),Hi(s,n,null,xa(s,n))})}}function Wo(e,n,l){var i=e.cm&&e.cm.state.suppressEdits;if(!i||l){for(var s,f=e.history,E=e.sel,D=n=="undo"?f.done:f.undone,B=n=="undo"?f.undone:f.done,O=0;O=0;--$){var ee=G($);if(ee)return ee.v}}}}function Pc(e,n){if(n!=0&&(e.first+=n,e.sel=new cn(Tt(e.sel.ranges,function(s){return new He(J(s.anchor.line+n,s.anchor.ch),J(s.head.line+n,s.head.ch))}),e.sel.primIndex),e.cm)){Ut(e.cm,e.first,e.first-n,n);for(var l=e.cm.display,i=l.viewFrom;ie.lastLine())){if(n.from.linef&&(n={from:n.from,to:J(f,Ce(e,f).text.length),text:[n.text[0]],origin:n.origin}),n.removed=Yn(e,n.from,n.to),l||(l=qa(e,n)),e.cm?uh(e.cm,n,i):Ka(e,n,i),Vo(e,l,Oe),e.cantEdit&&Yo(e,J(e.firstLine(),0))&&(e.cantEdit=!1)}}function uh(e,n,l){var i=e.doc,s=e.display,f=n.from,E=n.to,D=!1,B=f.line;e.options.lineWrapping||(B=F(xn(Ce(i,f.line))),i.iter(B,E.line+1,function($){if($==s.maxLine)return D=!0,!0})),i.sel.contains(n.from,n.to)>-1&&yt(e),Ka(i,n,l,rc(e)),e.options.lineWrapping||(i.iter(B,f.line+n.text.length,function($){var ee=Do($);ee>s.maxLineLength&&(s.maxLine=$,s.maxLineLength=ee,s.maxLineChanged=!0,D=!1)}),D&&(e.curOp.updateMaxLine=!0)),Jf(i,f.line),Oi(e,400);var O=n.text.length-(E.line-f.line)-1;n.full?Ut(e):f.line!=E.line||n.text.length!=1||wc(e.doc,n)?Ut(e,f.line,E.line+1,O):sr(e,f.line,"text");var U=$e(e,"changes"),V=$e(e,"change");if(V||U){var G={from:f,to:E,text:n.text,removed:n.removed,origin:n.origin};V&&xt(e,"change",e,G),U&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(G)}e.display.selForContextMenu=null}function ti(e,n,l,i,s){var f;i||(i=l),he(i,l)<0&&(l=(f=[i,l])[0],i=f[1]),typeof n=="string"&&(n=e.splitLines(n)),ei(e,{from:l,to:i,text:n,origin:s})}function Hc(e,n,l,i){l1||!(this.children[0]instanceof zi))){var D=[];this.collapse(D),this.children=[new zi(D)],this.children[0].parent=this}},collapse:function(e){for(var n=0;n50){for(var E=s.lines.length%25+25,D=E;D10);e.parent.maybeSpill()}},iterN:function(e,n,l){for(var i=0;i0||E==0&&f.clearWhenEmpty!==!1)return f;if(f.replacedWith&&(f.collapsed=!0,f.widgetNode=Q("span",[f.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||f.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(f.widgetNode.insertLeft=!0)),f.collapsed){if(Lu(e,n.line,n,l,f)||n.line!=l.line&&Lu(e,l.line,n,l,f))throw new Error("Inserting collapsed marker partially overlapping an existing one");ep()}f.addToHistory&&Sc(e,{from:n,to:l,origin:"markText"},e.sel,NaN);var D,B=n.line,O=e.cm;if(e.iter(B,l.line+1,function(V){O&&f.collapsed&&!O.options.lineWrapping&&xn(V)==O.display.maxLine&&(D=!0),f.collapsed&&B!=n.line&&un(V,0),np(V,new Eo(f,B==n.line?n.ch:null,B==l.line?l.ch:null),e.cm&&e.cm.curOp),++B}),f.collapsed&&e.iter(n.line,l.line+1,function(V){ar(e,V)&&un(V,0)}),f.clearOnEnter&&ae(f,"beforeCursorEnter",function(){return f.clear()}),f.readOnly&&(Zf(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),f.collapsed&&(f.id=++Vc,f.atomic=!0),O){if(D&&(O.curOp.updateMaxLine=!0),f.collapsed)Ut(O,n.line,l.line+1);else if(f.className||f.startStyle||f.endStyle||f.css||f.attributes||f.title)for(var U=n.line;U<=l.line;U++)sr(O,U,"text");f.atomic&&Rc(O.doc),xt(O,"markerAdded",O,f)}return f}pr.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,n=e&&!e.curOp;if(n&&Sr(e),$e(this,"clear")){var l=this.find();l&&xt(this,"clear",l.from,l.to)}for(var i=null,s=null,f=0;fe.display.maxLineLength&&(e.display.maxLine=O,e.display.maxLineLength=U,e.display.maxLineChanged=!0)}i!=null&&e&&this.collapsed&&Ut(e,i,s+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Rc(e.doc)),e&&xt(e,"markerCleared",e,this,i,s),n&&_r(e),this.parent&&this.parent.clear()}},pr.prototype.find=function(e,n){e==null&&this.type=="bookmark"&&(e=1);for(var l,i,s=0;s=0;B--)ei(this,i[B]);D?Tc(this,D):this.cm&&Xr(this.cm)}),undo:Et(function(){Wo(this,"undo")}),redo:Et(function(){Wo(this,"redo")}),undoSelection:Et(function(){Wo(this,"undo",!0)}),redoSelection:Et(function(){Wo(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,n=0,l=0,i=0;i=e.ch)&&n.push(s.marker.parent||s.marker)}return n},findMarks:function(e,n,l){e=Re(this,e),n=Re(this,n);var i=[],s=e.line;return this.iter(e.line,n.line+1,function(f){var E=f.markedSpans;if(E)for(var D=0;D=B.to||B.from==null&&s!=e.line||B.from!=null&&s==n.line&&B.from>=n.ch)&&(!l||l(B.marker))&&i.push(B.marker.parent||B.marker)}++s}),i},getAllMarks:function(){var e=[];return this.iter(function(n){var l=n.markedSpans;if(l)for(var i=0;ie)return n=e,!0;e-=f,++l}),Re(this,J(l,n))},indexFromPos:function(e){var n=(e=Re(this,e)).ch;if(e.linen&&(n=e.from),e.to!=null&&e.to-1)return n.state.draggingText(e),void setTimeout(function(){return n.display.input.focus()},20);try{var U=e.dataTransfer.getData("Text");if(U){var V;if(n.state.draggingText&&!n.state.draggingText.copy&&(V=n.listSelections()),Vo(n.doc,cr(l,l)),V)for(var G=0;G=0;D--)ti(e.doc,"",i[D].from,i[D].to,"+delete");Xr(e)})}function ts(e,n,l){var i=ze(e.text,n+l,l);return i<0||i>e.text.length?null:i}function ns(e,n,l){var i=ts(e,n.ch,l);return i==null?null:new J(n.line,i,l<0?"after":"before")}function rs(e,n,l,i,s){if(e){n.doc.direction=="rtl"&&(s=-s);var f=le(l,n.doc.direction);if(f){var E,D=s<0?Le(f):f[0],B=s<0==(D.level==1)?"after":"before";if(D.level>0||n.doc.direction=="rtl"){var O=Qr(n,l);E=s<0?l.text.length-1:0;var U=Fn(n,O,E).top;E=gt(function(V){return Fn(n,O,V).top==U},s<0==(D.level==1)?D.from:D.to-1,E),B=="before"&&(E=ts(l,E,1))}else E=s<0?D.to:D.from;return new J(i,E,B)}}return new J(i,s<0?l.text.length:0,s<0?"before":"after")}function Ch(e,n,l,i){var s=le(n,e.doc.direction);if(!s)return ns(n,l,i);l.ch>=n.text.length?(l.ch=n.text.length,l.sticky="before"):l.ch<=0&&(l.ch=0,l.sticky="after");var f=ve(s,l.ch,l.sticky),E=s[f];if(e.doc.direction=="ltr"&&E.level%2==0&&(i>0?E.to>l.ch:E.from=E.from&&G>=U.begin)){var $=V?"before":"after";return new J(l.line,G,$)}}var ee=function(ge,be,fe){for(var xe=function(Qe,Jt){return Jt?new J(l.line,B(Qe,1),"before"):new J(l.line,Qe,"after")};ge>=0&&ge0==(we.level!=1),qe=Se?fe.begin:B(fe.end,-1);if(we.from<=qe&&qe0?U.end:B(U.begin,-1);return de==null||i>0&&de==n.text.length||!(ie=ee(i>0?0:s.length-1,i,O(de)))?null:ie}qn.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},qn.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},qn.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},qn.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},qn.default=A?qn.macDefault:qn.pcDefault;var Gi={selectAll:Ic,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Oe)},killLine:function(e){return ii(e,function(n){if(n.empty()){var l=Ce(e.doc,n.head.line).text.length;return n.head.ch==l&&n.head.line0)s=new J(s.line,s.ch+1),e.replaceRange(f.charAt(s.ch-1)+f.charAt(s.ch-2),J(s.line,s.ch-2),s,"+transpose");else if(s.line>e.doc.first){var E=Ce(e.doc,s.line-1).text;E&&(s=new J(s.line,1),e.replaceRange(f.charAt(0)+e.doc.lineSeparator()+E.charAt(E.length-1),J(s.line-1,E.length-1),s,"+transpose"))}}l.push(new He(s,s))}e.setSelections(l)})},newlineAndIndent:function(e){return Kt(e,function(){for(var n=e.listSelections(),l=n.length-1;l>=0;l--)e.replaceRange(e.doc.lineSeparator(),n[l].anchor,n[l].head,"+input");n=e.listSelections();for(var i=0;i-1&&(he((s=E.ranges[s]).from(),n)<0||n.xRel>0)&&(he(s.to(),n)>0||n.xRel<0)?Bh(e,i,n,f):Ih(e,i,n,f)}function Bh(e,n,l,i){var s=e.display,f=!1,E=Ct(e,function(O){m&&(s.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:ja(e)),Me(s.wrapper.ownerDocument,"mouseup",E),Me(s.wrapper.ownerDocument,"mousemove",D),Me(s.scroller,"dragstart",B),Me(s.scroller,"drop",E),f||(Ke(O),i.addNew||Uo(e.doc,l,null,null,i.extend),m&&!w||c&&p==9?setTimeout(function(){s.wrapper.ownerDocument.body.focus({preventScroll:!0}),s.input.focus()},20):s.input.focus())}),D=function(O){f=f||Math.abs(n.clientX-O.clientX)+Math.abs(n.clientY-O.clientY)>=10},B=function(){return f=!0};m&&(s.scroller.draggable=!0),e.state.draggingText=E,E.copy=!i.moveOnDrag,ae(s.wrapper.ownerDocument,"mouseup",E),ae(s.wrapper.ownerDocument,"mousemove",D),ae(s.scroller,"dragstart",B),ae(s.scroller,"drop",E),e.state.delayingBlurEvent=!0,setTimeout(function(){return s.input.focus()},20),s.scroller.dragDrop&&s.scroller.dragDrop()}function ld(e,n,l){if(l=="char")return new He(n,n);if(l=="word")return e.findWordAt(n);if(l=="line")return new He(J(n.line,0),Re(e.doc,J(n.line+1,0)));var i=l(e,n);return new He(i.from,i.to)}function Ih(e,n,l,i){c&&ja(e);var s=e.display,f=e.doc;Ke(n);var E,D,B=f.sel,O=B.ranges;if(i.addNew&&!i.extend?(D=f.sel.contains(l),E=D>-1?O[D]:new He(l,l)):(E=f.sel.primary(),D=f.sel.primIndex),i.unit=="rectangle")i.addNew||(E=new He(l,l)),l=wr(e,n,!0,!0),D=-1;else{var U=ld(e,l,i.unit);E=i.extend?Za(E,U.anchor,U.head,i.extend):U}i.addNew?D==-1?(D=O.length,Rt(f,En(e,O.concat([E]),D),{scroll:!1,origin:"*mouse"})):O.length>1&&O[D].empty()&&i.unit=="char"&&!i.extend?(Rt(f,En(e,O.slice(0,D).concat(O.slice(D+1)),0),{scroll:!1,origin:"*mouse"}),B=f.sel):es(f,D,E,$t):(D=0,Rt(f,new cn([E],0),$t),B=f.sel);var V=l;function G(fe){if(he(V,fe)!=0)if(V=fe,i.unit=="rectangle"){for(var xe=[],we=e.options.tabSize,Se=Z(Ce(f,l.line).text,l.ch,we),qe=Z(Ce(f,fe.line).text,fe.ch,we),Qe=Math.min(Se,qe),Jt=Math.max(Se,qe),Je=Math.min(l.line,fe.line),mn=Math.min(e.lastLine(),Math.max(l.line,fe.line));Je<=mn;Je++){var Zt=Ce(f,Je).text,rt=at(Zt,Qe,we);Qe==Jt?xe.push(new He(J(Je,rt),J(Je,rt))):Zt.length>rt&&xe.push(new He(J(Je,rt),J(Je,at(Zt,Jt,we))))}xe.length||xe.push(new He(l,l)),Rt(f,En(e,B.ranges.slice(0,D).concat(xe),D),{origin:"*mouse",scroll:!1}),e.scrollIntoView(fe)}else{var Yt,Ot=E,dt=ld(e,fe,i.unit),ut=Ot.anchor;he(dt.anchor,ut)>0?(Yt=dt.head,ut=xo(Ot.from(),dt.anchor)):(Yt=dt.anchor,ut=zt(Ot.to(),dt.head));var ft=B.ranges.slice(0);ft[D]=Oh(e,new He(Re(f,ut),Yt)),Rt(f,En(e,ft,D),$t)}}var $=s.wrapper.getBoundingClientRect(),ee=0;function ie(fe){var xe=++ee,we=wr(e,fe,!0,i.unit=="rectangle");if(we)if(he(we,V)!=0){e.curOp.focus=W(pe(e)),G(we);var Se=Oo(s,f);(we.line>=Se.to||we.line$.bottom?20:0;qe&&setTimeout(Ct(e,function(){ee==xe&&(s.scroller.scrollTop+=qe,ie(fe))}),50)}}function de(fe){e.state.selectingText=!1,ee=1/0,fe&&(Ke(fe),s.input.focus()),Me(s.wrapper.ownerDocument,"mousemove",ge),Me(s.wrapper.ownerDocument,"mouseup",be),f.history.lastSelOrigin=null}var ge=Ct(e,function(fe){fe.buttons!==0&&yo(fe)?ie(fe):de(fe)}),be=Ct(e,de);e.state.selectingText=be,ae(s.wrapper.ownerDocument,"mousemove",ge),ae(s.wrapper.ownerDocument,"mouseup",be)}function Oh(e,n){var l=n.anchor,i=n.head,s=Ce(e.doc,l.line);if(he(l,i)==0&&l.sticky==i.sticky)return n;var f=le(s);if(!f)return n;var E=ve(f,l.ch,l.sticky),D=f[E];if(D.from!=l.ch&&D.to!=l.ch)return n;var B,O=E+(D.from==l.ch==(D.level!=1)?0:1);if(O==0||O==f.length)return n;if(i.line!=l.line)B=(i.line-l.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var U=ve(f,i.ch,i.sticky),V=U-E||(i.ch-l.ch)*(D.level==1?-1:1);B=U==O-1||U==O?V<0:V>0}var G=f[O+(B?-1:0)],$=B==(G.level==1),ee=$?G.from:G.to,ie=$?"after":"before";return l.ch==ee&&l.sticky==ie?n:new He(new J(l.line,ee,ie),i)}function ad(e,n,l,i){var s,f;if(n.touches)s=n.touches[0].clientX,f=n.touches[0].clientY;else try{s=n.clientX,f=n.clientY}catch{return!1}if(s>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;i&&Ke(n);var E=e.display,D=E.lineDiv.getBoundingClientRect();if(f>D.bottom||!$e(e,l))return Vn(n);f-=D.top-E.viewOffset;for(var B=0;B=s)return Pe(e,l,e,Y(e.doc,f),e.display.gutterSpecs[B].className,n),Vn(n)}}function ls(e,n){return ad(e,n,"gutterClick",!0)}function sd(e,n){Gn(e.display,n)||Fh(e,n)||Ue(e,n,"contextmenu")||R||e.display.input.onContextMenu(n)}function Fh(e,n){return!!$e(e,"gutterContextMenu")&&ad(e,n,"gutterContextMenu",!1)}function ud(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ti(e)}os.prototype.compare=function(e,n,l){return this.time+Mh>e&&he(n,this.pos)==0&&l==this.button};var oi={toString:function(){return"CodeMirror.Init"}},cd={},qo={};function Ph(e){var n=e.optionHandlers;function l(i,s,f,E){e.defaults[i]=s,f&&(n[i]=E?function(D,B,O){O!=oi&&f(D,B,O)}:f)}e.defineOption=l,e.Init=oi,l("value","",function(i,s){return i.setValue(s)},!0),l("mode",null,function(i,s){i.doc.modeOption=s,Xa(i)},!0),l("indentUnit",2,Xa,!0),l("indentWithTabs",!1),l("smartIndent",!0),l("tabSize",4,function(i){Pi(i),Ti(i),Ut(i)},!0),l("lineSeparator",null,function(i,s){if(i.doc.lineSep=s,s){var f=[],E=i.doc.first;i.doc.iter(function(B){for(var O=0;;){var U=B.text.indexOf(s,O);if(U==-1)break;O=U+s.length,f.push(J(E,U))}E++});for(var D=f.length-1;D>=0;D--)ti(i.doc,s,f[D],J(f[D].line,f[D].ch+s.length))}}),l("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(i,s,f){i.state.specialChars=new RegExp(s.source+(s.test(" ")?"":"| "),"g"),f!=oi&&i.refresh()}),l("specialCharPlaceholder",pp,function(i){return i.refresh()},!0),l("electricChars",!0),l("inputStyle",k?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),l("spellcheck",!1,function(i,s){return i.getInputField().spellcheck=s},!0),l("autocorrect",!1,function(i,s){return i.getInputField().autocorrect=s},!0),l("autocapitalize",!1,function(i,s){return i.getInputField().autocapitalize=s},!0),l("rtlMoveVisually",!M),l("wholeLineUpdateBefore",!0),l("theme","default",function(i){ud(i),Fi(i)},!0),l("keyMap","default",function(i,s,f){var E=Go(s),D=f!=oi&&Go(f);D&&D.detach&&D.detach(i,E),E.attach&&E.attach(i,D||null)}),l("extraKeys",null),l("configureMouse",null),l("lineWrapping",!1,jh,!0),l("gutters",[],function(i,s){i.display.gutterSpecs=$a(s,i.options.lineNumbers),Fi(i)},!0),l("fixedGutter",!0,function(i,s){i.display.gutters.style.left=s?Oa(i.display)+"px":"0",i.refresh()},!0),l("coverGutterNextToScrollbar",!1,function(i){return Kr(i)},!0),l("scrollbarStyle","native",function(i){fc(i),Kr(i),i.display.scrollbars.setScrollTop(i.doc.scrollTop),i.display.scrollbars.setScrollLeft(i.doc.scrollLeft)},!0),l("lineNumbers",!1,function(i,s){i.display.gutterSpecs=$a(i.options.gutters,s),Fi(i)},!0),l("firstLineNumber",1,Fi,!0),l("lineNumberFormatter",function(i){return i},Fi,!0),l("showCursorWhenSelecting",!1,Ni,!0),l("resetSelectionOnContextMenu",!0),l("lineWiseCopyCut",!0),l("pasteLinesPerSelection",!0),l("selectionsMayTouch",!1),l("readOnly",!1,function(i,s){s=="nocursor"&&(qr(i),i.display.input.blur()),i.display.input.readOnlyChanged(s)}),l("screenReaderLabel",null,function(i,s){s=s===""?null:s,i.display.input.screenReaderLabelChanged(s)}),l("disableInput",!1,function(i,s){s||i.display.input.reset()},!0),l("dragDrop",!0,Hh),l("allowDropFileTypes",null),l("cursorBlinkRate",530),l("cursorScrollMargin",0),l("cursorHeight",1,Ni,!0),l("singleCursorHeightPerLine",!0,Ni,!0),l("workTime",100),l("workDelay",100),l("flattenSpans",!0,Pi,!0),l("addModeClass",!1,Pi,!0),l("pollInterval",100),l("undoDepth",200,function(i,s){return i.doc.history.undoDepth=s}),l("historyEventDelay",1250),l("viewportMargin",10,function(i){return i.refresh()},!0),l("maxHighlightLength",1e4,Pi,!0),l("moveInputWithCursor",!0,function(i,s){s||i.display.input.resetPosition()}),l("tabindex",null,function(i,s){return i.display.input.getField().tabIndex=s||""}),l("autofocus",null),l("direction","ltr",function(i,s){return i.doc.setDirection(s)},!0),l("phrases",null)}function Hh(e,n,l){if(!n!=!(l&&l!=oi)){var i=e.display.dragFunctions,s=n?ae:Me;s(e.display.scroller,"dragstart",i.start),s(e.display.scroller,"dragenter",i.enter),s(e.display.scroller,"dragover",i.over),s(e.display.scroller,"dragleave",i.leave),s(e.display.scroller,"drop",i.drop)}}function jh(e){e.options.lineWrapping?(K(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(H(e.display.wrapper,"CodeMirror-wrap"),_a(e)),Fa(e),Ut(e),Ti(e),setTimeout(function(){return Kr(e)},100)}function et(e,n){var l=this;if(!(this instanceof et))return new et(e,n);this.options=n=n?oe(n):{},oe(cd,n,!1);var i=n.value;typeof i=="string"?i=new Vt(i,n.mode,null,n.lineSeparator,n.direction):n.mode&&(i.modeOption=n.mode),this.doc=i;var s=new et.inputStyles[n.inputStyle](this),f=this.display=new Zp(e,i,s,n);for(var E in f.wrapper.CodeMirror=this,ud(this),n.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),fc(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new se,keySeq:null,specialChars:null},n.autofocus&&!k&&f.input.focus(),c&&p<11&&setTimeout(function(){return l.display.input.reset(!0)},20),zh(this),yh(),Sr(this),this.curOp.forceUpdate=!0,xc(this,i),n.autofocus&&!k||this.hasFocus()?setTimeout(function(){l.hasFocus()&&!l.state.focused&&za(l)},20):qr(this),qo)qo.hasOwnProperty(E)&&qo[E](this,n[E],oi);mc(this),n.finishInit&&n.finishInit(this);for(var D=0;D400}ae(n.scroller,"touchstart",function(B){if(!Ue(e,B)&&!f(B)&&!ls(e,B)){n.input.ensurePolled(),clearTimeout(l);var O=+new Date;n.activeTouch={start:O,moved:!1,prev:O-i.end<=300?i:null},B.touches.length==1&&(n.activeTouch.left=B.touches[0].pageX,n.activeTouch.top=B.touches[0].pageY)}}),ae(n.scroller,"touchmove",function(){n.activeTouch&&(n.activeTouch.moved=!0)}),ae(n.scroller,"touchend",function(B){var O=n.activeTouch;if(O&&!Gn(n,B)&&O.left!=null&&!O.moved&&new Date-O.start<300){var U,V=e.coordsChar(n.activeTouch,"page");U=!O.prev||E(O,O.prev)?new He(V,V):!O.prev.prev||E(O,O.prev.prev)?e.findWordAt(V):new He(J(V.line,0),Re(e.doc,J(V.line+1,0))),e.setSelection(U.anchor,U.head),e.focus(),Ke(B)}s()}),ae(n.scroller,"touchcancel",s),ae(n.scroller,"scroll",function(){n.scroller.clientHeight&&(Li(e,n.scroller.scrollTop),Cr(e,n.scroller.scrollLeft,!0),Pe(e,"scroll",e))}),ae(n.scroller,"mousewheel",function(B){return yc(e,B)}),ae(n.scroller,"DOMMouseScroll",function(B){return yc(e,B)}),ae(n.wrapper,"scroll",function(){return n.wrapper.scrollTop=n.wrapper.scrollLeft=0}),n.dragFunctions={enter:function(B){Ue(e,B)||Nt(B)},over:function(B){Ue(e,B)||(gh(e,B),Nt(B))},start:function(B){return vh(e,B)},drop:Ct(e,mh),leave:function(B){Ue(e,B)||Qc(e)}};var D=n.input.getField();ae(D,"keyup",function(B){return rd.call(e,B)}),ae(D,"keydown",Ct(e,nd)),ae(D,"keypress",Ct(e,id)),ae(D,"focus",function(B){return za(e,B)}),ae(D,"blur",function(B){return qr(e,B)})}et.defaults=cd,et.optionHandlers=qo;var as=[];function Ki(e,n,l,i){var s,f=e.doc;l==null&&(l="add"),l=="smart"&&(f.mode.indent?s=Si(e,n).state:l="prev");var E=e.options.tabSize,D=Ce(f,n),B=Z(D.text,null,E);D.stateAfter&&(D.stateAfter=null);var O,U=D.text.match(/^\s*/)[0];if(i||/\S/.test(D.text)){if(l=="smart"&&((O=f.mode.indent(s,D.text.slice(U.length),D.text))==Ie||O>150)){if(!i)return;l="prev"}}else O=0,l="not";l=="prev"?O=n>f.first?Z(Ce(f,n-1).text,null,E):0:l=="add"?O=B+e.options.indentUnit:l=="subtract"?O=B-e.options.indentUnit:typeof l=="number"&&(O=B+l),O=Math.max(0,O);var V="",G=0;if(e.options.indentWithTabs)for(var $=Math.floor(O/E);$;--$)G+=E,V+=" ";if(GE,B=hn(n),O=null;if(D&&i.ranges.length>1)if(Sn&&Sn.text.join(` `)==n){if(i.ranges.length%Sn.text.length==0){O=[];for(var U=0;U=0;G--){var $=i.ranges[G],ee=$.from(),ie=$.to();$.empty()&&(l&&l>0?ee=J(ee.line,ee.ch-l):e.state.overwrite&&!D?ie=J(ie.line,Math.min(Ce(f,ie.line).text.length,ie.ch+Le(B).length)):D&&Sn&&Sn.lineWise&&Sn.text.join(` `)==B.join(` `)&&(ee=ie=J(ee.line,0)));var de={from:ee,to:ie,text:O?O[G%O.length]:B,origin:s||(D?"paste":e.state.cutIncoming>E?"cut":"+input")};ei(e.doc,de),xt(e,"inputRead",e,de)}n&&!D&&fd(e,n),Xr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=V),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function dd(e,n){var l=e.clipboardData&&e.clipboardData.getData("Text");if(l)return e.preventDefault(),!n.isReadOnly()&&!n.options.disableInput&&n.hasFocus()&&Kt(n,function(){return ss(n,l,0,null,"paste")}),!0}function fd(e,n){if(e.options.electricChars&&e.options.smartIndent)for(var l=e.doc.sel,i=l.ranges.length-1;i>=0;i--){var s=l.ranges[i];if(!(s.head.ch>100||i&&l.ranges[i-1].head.line==s.head.line)){var f=e.getModeAt(s.head),E=!1;if(f.electricChars){for(var D=0;D-1){E=Ki(e,s.head.line,"smart");break}}else f.electricInput&&f.electricInput.test(Ce(e.doc,s.head.line).text.slice(0,s.head.ch))&&(E=Ki(e,s.head.line,"smart"));E&&xt(e,"electricInput",e,s.head.line)}}}function pd(e){for(var n=[],l=[],i=0;if&&(Ki(this,D.head.line,i,!0),f=D.head.line,E==this.doc.sel.primIndex&&Xr(this));else{var B=D.from(),O=D.to(),U=Math.max(f,B.line);f=Math.min(this.lastLine(),O.line-(O.ch?0:1))+1;for(var V=U;V0&&es(this.doc,E,new He(B,G[E].to()),Oe)}}}),getTokenAt:function(i,s){return Eu(this,i,s)},getLineTokens:function(i,s){return Eu(this,J(i),s,!0)},getTokenTypeAt:function(i){i=Re(this.doc,i);var s,f=wu(this,Ce(this.doc,i.line)),E=0,D=(f.length-1)/2,B=i.ch;if(B==0)s=f[2];else for(;;){var O=E+D>>1;if((O?f[2*O-1]:0)>=B)D=O;else{if(!(f[2*O+1]B&&(i=B,D=!0),E=Ce(this.doc,i)}else E=i;return No(this,E,{top:0,left:0},s||"page",f||D).top+(D?this.doc.height-Qn(E):0)},defaultTextHeight:function(){return Gr(this.display)},defaultCharWidth:function(){return $r(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(i,s,f,E,D){var B=this.display,O=(i=Cn(this,Re(this.doc,i))).bottom,U=i.left;if(s.style.position="absolute",s.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(s),B.sizer.appendChild(s),E=="over")O=i.top;else if(E=="above"||E=="near"){var V=Math.max(B.wrapper.clientHeight,this.doc.height),G=Math.max(B.sizer.clientWidth,B.lineSpace.clientWidth);(E=="above"||i.bottom+s.offsetHeight>V)&&i.top>s.offsetHeight?O=i.top-s.offsetHeight:i.bottom+s.offsetHeight<=V&&(O=i.bottom),U+s.offsetWidth>G&&(U=G-s.offsetWidth)}s.style.top=O+"px",s.style.left=s.style.right="",D=="right"?(U=B.sizer.clientWidth-s.offsetWidth,s.style.right="0px"):(D=="left"?U=0:D=="middle"&&(U=(B.sizer.clientWidth-s.offsetWidth)/2),s.style.left=U+"px"),f&&Hp(this,{left:U,top:O,right:U+s.offsetWidth,bottom:O+s.offsetHeight})},triggerOnKeyDown:It(nd),triggerOnKeyPress:It(id),triggerOnKeyUp:rd,triggerOnMouseDown:It(od),execCommand:function(i){if(Gi.hasOwnProperty(i))return Gi[i].call(null,this)},triggerElectric:It(function(i){fd(this,i)}),findPosH:function(i,s,f,E){var D=1;s<0&&(D=-1,s=-s);for(var B=Re(this.doc,i),O=0;O0&&O(s.charAt(f-1));)--f;for(;E.5||this.options.lineWrapping)&&Fa(this),Pe(this,"refresh",this)}),swapDoc:It(function(i){var s=this.doc;return s.cm=null,this.state.selectingText&&this.state.selectingText(),xc(this,i),Ti(this),this.display.input.reset(),Ri(this,i.scrollLeft,i.scrollTop),this.curOp.forceScroll=!0,xt(this,"swapDoc",this,s),s}),phrase:function(i){var s=this.options.phrases;return s&&Object.prototype.hasOwnProperty.call(s,i)?s[i]:i},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Xt(e),e.registerHelper=function(i,s,f){l.hasOwnProperty(i)||(l[i]=e[i]={_global:[]}),l[i][s]=f},e.registerGlobalHelper=function(i,s,f,E){e.registerHelper(i,s,E),l[i]._global.push({pred:f,val:E})}}function us(e,n,l,i,s){var f=n,E=l,D=Ce(e,n.line),B=s&&e.direction=="rtl"?-l:l;function O(){var be=n.line+B;return!(be=e.first+e.size)&&(n=new J(be,n.ch,n.sticky),D=Ce(e,be))}function U(be){var fe;if(i=="codepoint"){var xe=D.text.charCodeAt(n.ch+(l>0?0:-1));if(isNaN(xe))fe=null;else{var we=l>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;fe=new J(n.line,Math.max(0,Math.min(D.text.length,n.ch+l*(we?2:1))),-l)}}else fe=s?Ch(e.cm,D,n,l):ns(D,n,l);if(fe==null){if(be||!O())return!1;n=rs(s,e.cm,D,n.line,B)}else n=fe;return!0}if(i=="char"||i=="codepoint")U();else if(i=="column")U(!0);else if(i=="word"||i=="group")for(var V=null,G=i=="group",$=e.cm&&e.cm.getHelper(n,"wordChars"),ee=!0;!(l<0)||U(!ee);ee=!1){var ie=D.text.charAt(n.ch)||` `,de=ln(ie,$)?"w":G&&ie==` `?"n":!G||/\s/.test(ie)?null:"p";if(G&&!ee&&!de&&(de="s"),V&&V!=de){l<0&&(l=1,U(),n.sticky="after");break}if(de&&(V=de),l>0&&!U(!ee))break}var ge=Yo(e,n,f,E,!0);return Ve(f,ge)&&(ge.hitSide=!0),ge}function vd(e,n,l,i){var s,f,E=e.doc,D=n.left;if(i=="page"){var B=Math.min(e.display.wrapper.clientHeight,ue(e).innerHeight||E(e).documentElement.clientHeight),O=Math.max(B-.5*Gr(e.display),3);s=(l>0?n.bottom:n.top)+l*O}else i=="line"&&(s=l>0?n.bottom+3:n.top-3);for(;(f=La(e,D,s)).outside;){if(l<0?s<=0:s>=E.height){f.hitSide=!0;break}s+=5*l}return f}var Ye=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new se,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function gd(e,n){var l=Ta(e,n.line);if(!l||l.hidden)return null;var i=Ce(e.doc,n.line),s=Wu(l,i,n.line),f=le(i,e.doc.direction),E="left";f&&(E=ve(f,n.ch)%2?"right":"left");var D=$u(s.map,n.ch,E);return D.offset=D.collapse=="right"?D.end:D.start,D}function Vh(e){for(var n=e;n;n=n.parentNode)if(/CodeMirror-gutter-wrapper/.test(n.className))return!0;return!1}function li(e,n){return n&&(e.bad=!0),e}function Yh(e,n,l,i,s){var f="",E=!1,D=e.doc.lineSeparator(),B=!1;function O($){return function(ee){return ee.id==$}}function U(){E&&(f+=D,B&&(f+=D),E=B=!1)}function V($){$&&(U(),f+=$)}function G($){if($.nodeType==1){var ee=$.getAttribute("cm-text");if(ee)return void V(ee);var ie,de=$.getAttribute("cm-marker");if(de){var ge=e.findMarks(J(i,0),J(s+1,0),O(+de));return void(ge.length&&(ie=ge[0].find(0))&&V(Yn(e.doc,ie.from,ie.to).join(D)))}if($.getAttribute("contenteditable")=="false")return;var be=/^(pre|div|p|li|table|br)$/i.test($.nodeName);if(!/^br$/i.test($.nodeName)&&$.textContent.length==0)return;be&&U();for(var fe=0;fe<$.childNodes.length;fe++)G($.childNodes[fe]);/^(pre|p)$/i.test($.nodeName)&&(B=!0),be&&(E=!0)}else $.nodeType==3&&V($.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;G(n),n!=l;)n=n.nextSibling,B=!1;return f}function Ko(e,n,l){var i;if(n==e.display.lineDiv){if(!(i=e.display.lineDiv.childNodes[l]))return li(e.clipPos(J(e.display.viewTo-1)),!0);n=null,l=0}else for(i=n;;i=i.parentNode){if(!i||i==e.display.lineDiv)return null;if(i.parentNode&&i.parentNode==e.display.lineDiv)break}for(var s=0;s=n.display.viewTo||s.line=n.display.viewFrom&&gd(n,i)||{node:D[0].measure.map[2],offset:0},O=s.linei.firstLine()&&(E=J(E.line-1,Ce(i.doc,E.line-1).length)),D.ch==Ce(i.doc,D.line).text.length&&D.lines.viewTo-1)return!1;E.line==s.viewFrom||(e=xr(i,E.line))==0?(n=F(s.view[0].line),l=s.view[0].node):(n=F(s.view[e].line),l=s.view[e-1].node.nextSibling);var B,O,U=xr(i,D.line);if(U==s.view.length-1?(B=s.viewTo-1,O=s.lineDiv.lastChild):(B=F(s.view[U+1].line)-1,O=s.view[U+1].node.previousSibling),!l)return!1;for(var V=i.doc.splitLines(Yh(i,l,O,n,B)),G=Yn(i.doc,J(n,0),J(B,Ce(i.doc,B).text.length));V.length>1&&G.length>1;)if(Le(V)==Le(G))V.pop(),G.pop(),B--;else{if(V[0]!=G[0])break;V.shift(),G.shift(),n++}for(var $=0,ee=0,ie=V[0],de=G[0],ge=Math.min(ie.length,de.length);$E.ch&&be.charCodeAt(be.length-ee-1)==fe.charCodeAt(fe.length-ee-1);)$--,ee++;V[V.length-1]=be.slice(0,be.length-ee).replace(/^\u200b+/,""),V[0]=V[0].slice($).replace(/\u200b+$/,"");var we=J(n,$),Se=J(B,G.length?Le(G).length-ee:0);return V.length>1||V[0]||he(we,Se)?(ti(i.doc,V,we,Se,"+input"),!0):void 0},Ye.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ye.prototype.reset=function(){this.forceCompositionEnd()},Ye.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ye.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ye.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Kt(this.cm,function(){return Ut(e.cm)})},Ye.prototype.setUneditable=function(e){e.contentEditable="false"},Ye.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Ct(this.cm,ss)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},Ye.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},Ye.prototype.onContextMenu=function(){},Ye.prototype.resetPosition=function(){},Ye.prototype.needsContentAttribute=!0;var st=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new se,this.hasSelection=!1,this.composing=null,this.resetting=!1};function Qh(e,n){if((n=n?oe(n):{}).value=e.value,!n.tabindex&&e.tabIndex&&(n.tabindex=e.tabIndex),!n.placeholder&&e.placeholder&&(n.placeholder=e.placeholder),n.autofocus==null){var l=W(e.ownerDocument);n.autofocus=l==e||e.getAttribute("autofocus")!=null&&l==document.body}function i(){e.value=D.getValue()}var s;if(e.form&&(ae(e.form,"submit",i),!n.leaveSubmitMethodAlone)){var f=e.form;s=f.submit;try{var E=f.submit=function(){i(),f.submit=s,f.submit(),f.submit=E}}catch{}}n.finishInit=function(B){B.save=i,B.getTextArea=function(){return e},B.toTextArea=function(){B.toTextArea=isNaN,i(),e.parentNode.removeChild(B.getWrapperElement()),e.style.display="",e.form&&(Me(e.form,"submit",i),!n.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=s))}},e.style.display="none";var D=et(function(B){return e.parentNode.insertBefore(B,e.nextSibling)},n);return D}function Gh(e){e.off=Me,e.on=ae,e.wheelEventPixels=eh,e.Doc=Vt,e.splitLines=hn,e.countColumn=Z,e.findColumn=at,e.isWordChar=on,e.Pass=Ie,e.signal=Pe,e.Line=Yr,e.changeEnd=dr,e.scrollbarModel=dc,e.Pos=J,e.cmpPos=he,e.modes=Pr,e.mimeModes=bn,e.resolveMode=jr,e.getMode=zr,e.modeExtensions=lr,e.extendMode=Ur,e.copyState=Bn,e.startState=Vr,e.innerMode=Ci,e.commands=Gi,e.keyMap=qn,e.keyName=Kc,e.isModifierKey=qc,e.lookupKey=ri,e.normalizeKeyMap=xh,e.StringStream=nt,e.SharedTextMarker=Yi,e.TextMarker=pr,e.LineWidget=Vi,e.e_preventDefault=Ke,e.e_stopPropagation=yn,e.e_stop=Nt,e.addClass=K,e.contains=q,e.rmClass=H,e.keyNames=hr}st.prototype.init=function(e){var n=this,l=this,i=this.cm;this.createField(e);var s=this.textarea;function f(E){if(!Ue(i,E)){if(i.somethingSelected())Xo({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var D=pd(i);Xo({lineWise:!0,text:D.text}),E.type=="cut"?i.setSelections(D.ranges,null,Oe):(l.prevInput="",s.value=D.text.join(` `),re(s))}E.type=="cut"&&(i.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),g&&(s.style.width="0px"),ae(s,"input",function(){c&&p>=9&&n.hasSelection&&(n.hasSelection=null),l.poll()}),ae(s,"paste",function(E){Ue(i,E)||dd(E,i)||(i.state.pasteIncoming=+new Date,l.fastPoll())}),ae(s,"cut",f),ae(s,"copy",f),ae(e.scroller,"paste",function(E){if(!Gn(e,E)&&!Ue(i,E)){if(!s.dispatchEvent)return i.state.pasteIncoming=+new Date,void l.focus();var D=new Event("paste");D.clipboardData=E.clipboardData,s.dispatchEvent(D)}}),ae(e.lineSpace,"selectstart",function(E){Gn(e,E)||Ke(E)}),ae(s,"compositionstart",function(){var E=i.getCursor("from");l.composing&&l.composing.range.clear(),l.composing={start:E,range:i.markText(E,i.getCursor("to"),{className:"CodeMirror-composing"})}}),ae(s,"compositionend",function(){l.composing&&(l.poll(),l.composing.range.clear(),l.composing=null)})},st.prototype.createField=function(e){this.wrapper=md(),this.textarea=this.wrapper.firstChild},st.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},st.prototype.prepareSelection=function(){var e=this.cm,n=e.display,l=e.doc,i=oc(e);if(e.options.moveInputWithCursor){var s=Cn(e,l.sel.primary().head,"div"),f=n.wrapper.getBoundingClientRect(),E=n.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(n.wrapper.clientHeight-10,s.top+E.top-f.top)),i.teLeft=Math.max(0,Math.min(n.wrapper.clientWidth-10,s.left+E.left-f.left))}return i},st.prototype.showSelection=function(e){var n=this.cm.display;j(n.cursorDiv,e.cursors),j(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},st.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var n=this.cm;if(this.resetting=!0,n.somethingSelected()){this.prevInput="";var l=n.getSelection();this.textarea.value=l,n.state.focused&&re(this.textarea),c&&p>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",c&&p>=9&&(this.hasSelection=null));this.resetting=!1}},st.prototype.getField=function(){return this.textarea},st.prototype.supportsTouch=function(){return!1},st.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!k||W(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},st.prototype.blur=function(){this.textarea.blur()},st.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},st.prototype.receivedFocus=function(){this.slowPoll()},st.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},st.prototype.fastPoll=function(){var e=!1,n=this;function l(){n.poll()||e?(n.pollingFast=!1,n.slowPoll()):(e=!0,n.polling.set(60,l))}n.pollingFast=!0,n.polling.set(20,l)},st.prototype.poll=function(){var e=this,n=this.cm,l=this.textarea,i=this.prevInput;if(this.contextMenuPending||this.resetting||!n.state.focused||or(l)&&!i&&!this.composing||n.isReadOnly()||n.options.disableInput||n.state.keySeq)return!1;var s=l.value;if(s==i&&!n.somethingSelected())return!1;if(c&&p>=9&&this.hasSelection===s||A&&/[\uf700-\uf7ff]/.test(s))return n.display.input.reset(),!1;if(n.doc.sel==n.display.selForContextMenu){var f=s.charCodeAt(0);if(f==8203&&!i&&(i="\u200B"),f==8666)return this.reset(),this.cm.execCommand("undo")}for(var E=0,D=Math.min(i.length,s.length);E1e3||s.indexOf(` `)>-1?l.value=e.prevInput="":e.prevInput=s,e.composing&&(e.composing.range.clear(),e.composing.range=n.markText(e.composing.start,n.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},st.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},st.prototype.onKeyPress=function(){c&&p>=9&&(this.hasSelection=null),this.fastPoll()},st.prototype.onContextMenu=function(e){var n=this,l=n.cm,i=l.display,s=n.textarea;n.contextMenuPending&&n.contextMenuPending();var f=wr(l,e),E=i.scroller.scrollTop;if(f&&!v){l.options.resetSelectionOnContextMenu&&l.doc.sel.contains(f)==-1&&Ct(l,Rt)(l.doc,cr(f),Oe);var D,B=s.style.cssText,O=n.wrapper.style.cssText,U=n.wrapper.offsetParent.getBoundingClientRect();if(n.wrapper.style.cssText="position: static",s.style.cssText=`position: absolute; width: 30px; height: 30px; top: `+(e.clientY-U.top-5)+"px; left: "+(e.clientX-U.left-5)+`px; z-index: 1000; background: `+(c?"rgba(255, 255, 255, .05)":"transparent")+`; outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`,m&&(D=s.ownerDocument.defaultView.scrollY),i.input.focus(),m&&s.ownerDocument.defaultView.scrollTo(null,D),i.input.reset(),l.somethingSelected()||(s.value=n.prevInput=" "),n.contextMenuPending=$,i.selForContextMenu=l.doc.sel,clearTimeout(i.detectingSelectAll),c&&p>=9&&G(),R){Nt(e);var V=function(){Me(window,"mouseup",V),setTimeout($,20)};ae(window,"mouseup",V)}else setTimeout($,50)}function G(){if(s.selectionStart!=null){var ee=l.somethingSelected(),ie="\u200B"+(ee?s.value:"");s.value="\u21DA",s.value=ie,n.prevInput=ee?"":"\u200B",s.selectionStart=1,s.selectionEnd=ie.length,i.selForContextMenu=l.doc.sel}}function $(){if(n.contextMenuPending==$&&(n.contextMenuPending=!1,n.wrapper.style.cssText=O,s.style.cssText=B,c&&p<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=E),s.selectionStart!=null)){(!c||c&&p<9)&&G();var ee=0,ie=function(){i.selForContextMenu==l.doc.sel&&s.selectionStart==0&&s.selectionEnd>0&&n.prevInput=="\u200B"?Ct(l,Ic)(l):ee++<10?i.detectingSelectAll=setTimeout(ie,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(ie,200)}}},st.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},st.prototype.setUneditable=function(){},st.prototype.needsContentAttribute=!1,Ph(et),Uh(et);var $h="iter insert remove copy getEditor constructor".split(" ");for(var Jo in Vt.prototype)Vt.prototype.hasOwnProperty(Jo)&&Ee($h,Jo)<0&&(et.prototype[Jo]=function(e){return function(){return e.apply(this.doc,arguments)}}(Vt.prototype[Jo]));return Xt(Vt),et.inputStyles={textarea:st,contenteditable:Ye},et.defineMode=function(e){!et.defaults.mode&&e!="null"&&(et.defaults.mode=e),wn.apply(this,arguments)},et.defineMIME=Hr,et.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),et.defineMIME("text/plain","null"),et.defineExtension=function(e,n){et.prototype[e]=n},et.defineDocExtension=function(e,n){Vt.prototype[e]=n},et.fromTextArea=Qh,Gh(et),et.version="5.65.9",et}()),pu.exports}var jt,Cf=hu();(jt=hu()).defineMode("javascript",function(r,o){var t,a,u=r.indentUnit,d=o.statementIndent,c=o.jsonld,p=o.json||c,m=o.trackScope!==!1,h=o.typescript,b=o.wordCharacters||/[\w$\xa1-\uffff]/,y=function(){function F(wt){return{type:wt,style:"keyword"}}var Y=F("keyword a"),ne=F("keyword b"),ye=F("keyword c"),J=F("keyword d"),he=F("operator"),Ve={type:"atom",style:"atom"};return{if:F("if"),while:Y,with:Y,else:ne,do:ne,try:ne,finally:ne,return:J,break:J,continue:J,new:F("new"),delete:ye,void:ye,throw:ye,debugger:F("debugger"),var:F("var"),const:F("var"),let:F("var"),function:F("function"),catch:F("catch"),for:F("for"),switch:F("switch"),case:F("case"),default:F("default"),in:he,typeof:he,instanceof:he,true:Ve,false:Ve,null:Ve,undefined:Ve,NaN:Ve,Infinity:Ve,this:F("this"),class:F("class"),super:F("atom"),yield:ye,export:F("export"),import:F("import"),extends:ye,await:ye}}(),v=/[+\-*&%=<>!?|~^@]/,w=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function x(F){for(var Y,ne=!1,ye=!1;(Y=F.next())!=null;){if(!ne){if(Y=="/"&&!ye)return;Y=="["?ye=!0:ye&&Y=="]"&&(ye=!1)}ne=!ne&&Y=="\\"}}function _(F,Y,ne){return t=F,a=ne,Y}function g(F,Y){var ne=F.next();if(ne=='"'||ne=="'")return Y.tokenize=C(ne),Y.tokenize(F,Y);if(ne=="."&&F.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return _("number","number");if(ne=="."&&F.match(".."))return _("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ne))return _(ne);if(ne=="="&&F.eat(">"))return _("=>","operator");if(ne=="0"&&F.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return _("number","number");if(/\d/.test(ne))return F.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),_("number","number");if(ne=="/")return F.eat("*")?(Y.tokenize=k,k(F,Y)):F.eat("/")?(F.skipToEnd(),_("comment","comment")):un(F,Y,1)?(x(F),F.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),_("regexp","string-2")):(F.eat("="),_("operator","operator",F.current()));if(ne=="`")return Y.tokenize=A,A(F,Y);if(ne=="#"&&F.peek()=="!")return F.skipToEnd(),_("meta","meta");if(ne=="#"&&F.eatWhile(b))return _("variable","property");if(ne=="<"&&F.match("!--")||ne=="-"&&F.match("->")&&!/\S/.test(F.string.slice(0,F.start)))return F.skipToEnd(),_("comment","comment");if(v.test(ne))return(ne!=">"||!Y.lexical||Y.lexical.type!=">")&&(F.eat("=")?(ne=="!"||ne=="=")&&F.eat("="):/[<>*+\-|&?]/.test(ne)&&(F.eat(ne),ne==">"&&F.eat(ne))),ne=="?"&&F.eat(".")?_("."):_("operator","operator",F.current());if(b.test(ne)){F.eatWhile(b);var ye=F.current();if(Y.lastType!="."){if(y.propertyIsEnumerable(ye)){var J=y[ye];return _(J.type,J.style,ye)}if(ye=="async"&&F.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return _("async","keyword",ye)}return _("variable","variable",ye)}}function C(F){return function(Y,ne){var ye,J=!1;if(c&&Y.peek()=="@"&&Y.match(w))return ne.tokenize=g,_("jsonld-keyword","meta");for(;(ye=Y.next())!=null&&(ye!=F||J);)J=!J&&ye=="\\";return J||(ne.tokenize=g),_("string","string")}}function k(F,Y){for(var ne,ye=!1;ne=F.next();){if(ne=="/"&&ye){Y.tokenize=g;break}ye=ne=="*"}return _("comment","comment")}function A(F,Y){for(var ne,ye=!1;(ne=F.next())!=null;){if(!ye&&(ne=="`"||ne=="$"&&F.eat("{"))){Y.tokenize=g;break}ye=!ye&&ne=="\\"}return _("quasi","string-2",F.current())}var S="([{}])";function M(F,Y){Y.fatArrowAt&&(Y.fatArrowAt=null);var ne=F.string.indexOf("=>",F.start);if(!(ne<0)){if(h){var ye=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(F.string.slice(F.start,ne));ye&&(ne=ye.index)}for(var J=0,he=!1,Ve=ne-1;Ve>=0;--Ve){var wt=F.string.charAt(Ve),zt=S.indexOf(wt);if(zt>=0&&zt<3){if(!J){++Ve;break}if(--J==0){wt=="("&&(he=!0);break}}else if(zt>=3&&zt<6)++J;else if(b.test(wt))he=!0;else if(/["'\/`]/.test(wt))for(;;--Ve){if(Ve==0)return;if(F.string.charAt(Ve-1)==wt&&F.string.charAt(Ve-2)!="\\"){Ve--;break}}else if(he&&!J){++Ve;break}}he&&!J&&(Y.fatArrowAt=Ve)}}var I={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function N(F,Y,ne,ye,J,he){this.indented=F,this.column=Y,this.type=ne,this.prev=J,this.info=he,ye!=null&&(this.align=ye)}function R(F,Y){if(!m)return!1;for(var ne=F.localVars;ne;ne=ne.next)if(ne.name==Y)return!0;for(var ye=F.context;ye;ye=ye.prev)for(ne=ye.vars;ne;ne=ne.next)if(ne.name==Y)return!0}function T(F,Y,ne,ye,J){var he=F.cc;for(L.state=F,L.stream=J,L.marked=null,L.cc=he,L.style=Y,F.lexical.hasOwnProperty("align")||(F.lexical.align=!0);;)if((he.length?he.pop():p?_e:se)(ne,ye)){for(;he.length&&he[he.length-1].lex;)he.pop()();return L.marked?L.marked:ne=="variable"&&R(F,ye)?"variable-2":Y}}var L={state:null,column:null,marked:null,cc:null};function H(){for(var F=arguments.length-1;F>=0;F--)L.cc.push(arguments[F])}function P(){return H.apply(null,arguments),!0}function j(F,Y){for(var ne=Y;ne;ne=ne.next)if(ne.name==F)return!0;return!1}function z(F){var Y=L.state;if(L.marked="def",m){if(Y.context){if(Y.lexical.info=="var"&&Y.context&&Y.context.block){var ne=Q(F,Y.context);if(ne!=null)return void(Y.context=ne)}else if(!j(F,Y.localVars))return void(Y.localVars=new K(F,Y.localVars))}o.globalVars&&!j(F,Y.globalVars)&&(Y.globalVars=new K(F,Y.globalVars))}}function Q(F,Y){if(Y){if(Y.block){var ne=Q(F,Y.prev);return ne?ne==Y.prev?Y:new W(ne,Y.vars,!0):null}return j(F,Y.vars)?Y:new W(Y.prev,new K(F,Y.vars),!1)}return null}function q(F){return F=="public"||F=="private"||F=="protected"||F=="abstract"||F=="readonly"}function W(F,Y,ne){this.prev=F,this.vars=Y,this.block=ne}function K(F,Y){this.name=F,this.next=Y}var X=new K("this",new K("arguments",null));function re(){L.state.context=new W(L.state.context,L.state.localVars,!1),L.state.localVars=X}function pe(){L.state.context=new W(L.state.context,L.state.localVars,!0),L.state.localVars=null}function ue(){L.state.localVars=L.state.context.vars,L.state.context=L.state.context.prev}function te(F,Y){var ne=function(){var ye=L.state,J=ye.indented;if(ye.lexical.type=="stat")J=ye.lexical.indented;else for(var he=ye.lexical;he&&he.type==")"&&he.align;he=he.prev)J=he.indented;ye.lexical=new N(J,L.stream.column(),F,null,ye.lexical,Y)};return ne.lex=!0,ne}function oe(){var F=L.state;F.lexical.prev&&(F.lexical.type==")"&&(F.indented=F.lexical.indented),F.lexical=F.lexical.prev)}function Z(F){function Y(ne){return ne==F?P():F==";"||ne=="}"||ne==")"||ne=="]"?H():P(Y)}return Y}function se(F,Y){return F=="var"?P(te("vardef",Y),Vn,Z(";"),oe):F=="keyword a"?P(te("form"),Oe,se,oe):F=="keyword b"?P(te("form"),se,oe):F=="keyword d"?L.stream.match(/^\s*$/,!1)?P():P(te("stat"),St,Z(";"),oe):F=="debugger"?P(Z(";")):F=="{"?P(te("}"),pe,sn,oe,ue):F==";"?P():F=="if"?(L.state.lexical.info=="else"&&L.state.cc[L.state.cc.length-1]==oe&&L.state.cc.pop()(),P(te("form"),Oe,se,oe,Ao)):F=="function"?P(hn):F=="for"?P(te("form"),pe,bo,se,ue,oe):F=="class"||h&&Y=="interface"?(L.marked="keyword",P(te("form",F=="class"?F:Y),Pr,oe)):F=="variable"?h&&Y=="declare"?(L.marked="keyword",P(se)):h&&(Y=="module"||Y=="enum"||Y=="type")&&L.stream.match(/^\s*\w/,!1)?(L.marked="keyword",Y=="enum"?P(Ce):Y=="type"?P(wo,Z("operator"),ce,Z(";")):P(te("form"),Nt,Z("{"),te("}"),sn,oe,oe)):h&&Y=="namespace"?(L.marked="keyword",P(te("form"),_e,se,oe)):h&&Y=="abstract"?(L.marked="keyword",P(se)):P(te("stat"),on):F=="switch"?P(te("form"),Oe,Z("{"),te("}","switch"),pe,sn,oe,oe,ue):F=="case"?P(_e,Z(":")):F=="default"?P(Z(":")):F=="catch"?P(te("form"),re,Ee,se,oe,ue):F=="export"?P(te("stat"),jr,oe):F=="import"?P(te("stat"),lr,oe):F=="async"?P(se):Y=="@"?P(_e,se):H(te("stat"),_e,Z(";"),oe)}function Ee(F){if(F=="(")return P(An,Z(")"))}function _e(F,Y){return $t(F,Y,!1)}function Ie(F,Y){return $t(F,Y,!0)}function Oe(F){return F!="("?H():P(te(")"),St,Z(")"),oe)}function $t(F,Y,ne){if(L.state.fatArrowAt==L.stream.start){var ye=ne?gn:Tt;if(F=="(")return P(re,te(")"),ze(An,")"),oe,Z("=>"),ye,ue);if(F=="variable")return H(re,Nt,Z("=>"),ye,ue)}var J=ne?Mt:at;return I.hasOwnProperty(F)?P(J):F=="function"?P(hn,J):F=="class"||h&&Y=="interface"?(L.marked="keyword",P(te("form"),Aa,oe)):F=="keyword c"||F=="async"?P(ne?Ie:_e):F=="("?P(te(")"),St,Z(")"),oe,J):F=="operator"||F=="spread"?P(ne?Ie:_e):F=="["?P(te("]"),nt,oe,J):F=="{"?gt(an,"}",null,J):F=="quasi"?H(rn,J):F=="new"?P(qt(ne)):P()}function St(F){return F.match(/[;\}\)\],]/)?H():H(_e)}function at(F,Y){return F==","?P(St):Mt(F,Y,!1)}function Mt(F,Y,ne){var ye=ne==0?at:Mt,J=ne==0?_e:Ie;if(F=="=>")return P(re,ne?gn:Tt,ue);if(F=="operator")return/\+\+|--/.test(Y)||h&&Y=="!"?P(ye):h&&Y=="<"&&L.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?P(te(">"),ze(ce,">"),oe,ye):Y=="?"?P(_e,Z(":"),J):P(J);if(F=="quasi")return H(rn,ye);if(F!=";"){if(F=="(")return gt(Ie,")","call",ye);if(F==".")return P(ln,ye);if(F=="[")return P(te("]"),St,Z("]"),oe,ye);if(h&&Y=="as")return L.marked="keyword",P(ce,ye);if(F=="regexp")return L.state.lastType=L.marked="operator",L.stream.backUp(L.stream.pos-L.stream.start-1),P(J)}}function rn(F,Y){return F!="quasi"?H():Y.slice(Y.length-2)!="${"?P(rn):P(St,Le)}function Le(F){if(F=="}")return L.marked="string-2",L.state.tokenize=A,P(rn)}function Tt(F){return M(L.stream,L.state),H(F=="{"?se:_e)}function gn(F){return M(L.stream,L.state),H(F=="{"?se:Ie)}function qt(F){return function(Y){return Y=="."?P(F?Nn:ir):Y=="variable"&&h?P(Xt,F?Mt:at):H(F?Ie:_e)}}function ir(F,Y){if(Y=="target")return L.marked="keyword",P(at)}function Nn(F,Y){if(Y=="target")return L.marked="keyword",P(Mt)}function on(F){return F==":"?P(oe,se):H(at,Z(";"),oe)}function ln(F){if(F=="variable")return L.marked="property",P()}function an(F,Y){return F=="async"?(L.marked="property",P(an)):F=="variable"||L.style=="keyword"?(L.marked="property",Y=="get"||Y=="set"?P(Rn):(h&&L.state.fatArrowAt==L.stream.start&&(ne=L.stream.match(/^\s*:\s*/,!1))&&(L.state.fatArrowAt=L.stream.pos+ne[0].length),P(_t))):F=="number"||F=="string"?(L.marked=c?"property":L.style+" property",P(_t)):F=="jsonld-keyword"?P(_t):h&&q(Y)?(L.marked="keyword",P(an)):F=="["?P(_e,Ae,Z("]"),_t):F=="spread"?P(Ie,_t):Y=="*"?(L.marked="keyword",P(an)):F==":"?H(_t):void 0;var ne}function Rn(F){return F!="variable"?H(_t):(L.marked="property",P(hn))}function _t(F){return F==":"?P(Ie):F=="("?H(hn):void 0}function ze(F,Y,ne){function ye(J,he){if(ne?ne.indexOf(J)>-1:J==","){var Ve=L.state.lexical;return Ve.info=="call"&&(Ve.pos=(Ve.pos||0)+1),P(function(wt,zt){return wt==Y||zt==Y?H():H(F)},ye)}return J==Y||he==Y?P():ne&&ne.indexOf(";")>-1?H(F):P(Z(Y))}return function(J,he){return J==Y||he==Y?P():H(F,ye)}}function gt(F,Y,ne){for(var ye=3;ye"),ce):F=="quasi"?H(Pe,$e):void 0}function ae(F){if(F=="=>")return P(ce)}function De(F){return F.match(/[\}\)\]]/)?P():F==","||F==";"?P(De):H(Me,De)}function Me(F,Y){return F=="variable"||L.style=="keyword"?(L.marked="property",P(Me)):Y=="?"||F=="number"||F=="string"?P(Me):F==":"?P(ce):F=="["?P(Z("variable"),ve,Z("]"),Me):F=="("?H(or,Me):F.match(/[;\}\)\],]/)?void 0:P()}function Pe(F,Y){return F!="quasi"?H():Y.slice(Y.length-2)!="${"?P(Pe):P(ce,Ue)}function Ue(F){if(F=="}")return L.marked="string-2",L.state.tokenize=A,P(Pe)}function yt(F,Y){return F=="variable"&&L.stream.match(/^\s*[?:]/,!1)||Y=="?"?P(yt):F==":"?P(ce):F=="spread"?P(yt):H(ce)}function $e(F,Y){return Y=="<"?P(te(">"),ze(ce,">"),oe,$e):Y=="|"||F=="."||Y=="&"?P(ce):F=="["?P(ce,Z("]"),$e):Y=="extends"||Y=="implements"?(L.marked="keyword",P(ce)):Y=="?"?P(ce,Z(":"),ce):void 0}function Xt(F,Y){if(Y=="<")return P(te(">"),ze(ce,">"),oe,$e)}function Ke(){return H(ce,yn)}function yn(F,Y){if(Y=="=")return P(ce)}function Vn(F,Y){return Y=="enum"?(L.marked="keyword",P(Ce)):H(Nt,Ae,pn,xi)}function Nt(F,Y){return h&&q(Y)?(L.marked="keyword",P(Nt)):F=="variable"?(z(Y),P()):F=="spread"?P(Nt):F=="["?gt(yo,"]"):F=="{"?gt(Fr,"}"):void 0}function Fr(F,Y){return F!="variable"||L.stream.match(/^\s*:/,!1)?(F=="variable"&&(L.marked="property"),F=="spread"?P(Nt):F=="}"?H():F=="["?P(_e,Z("]"),Z(":"),Fr):P(Z(":"),Nt,pn)):(z(Y),P(pn))}function yo(){return H(Nt,pn)}function pn(F,Y){if(Y=="=")return P(Ie)}function xi(F){if(F==",")return P(Vn)}function Ao(F,Y){if(F=="keyword b"&&Y=="else")return P(te("form","else"),se,oe)}function bo(F,Y){return Y=="await"?P(bo):F=="("?P(te(")"),ya,oe):void 0}function ya(F){return F=="var"?P(Vn,Ln):F=="variable"?P(Ln):H(Ln)}function Ln(F,Y){return F==")"?P():F==";"?P(Ln):Y=="in"||Y=="of"?(L.marked="keyword",P(_e,Ln)):H(_e,Ln)}function hn(F,Y){return Y=="*"?(L.marked="keyword",P(hn)):F=="variable"?(z(Y),P(hn)):F=="("?P(re,te(")"),ze(An,")"),oe,ke,se,ue):h&&Y=="<"?P(te(">"),ze(Ke,">"),oe,hn):void 0}function or(F,Y){return Y=="*"?(L.marked="keyword",P(or)):F=="variable"?(z(Y),P(or)):F=="("?P(re,te(")"),ze(An,")"),oe,ke,ue):h&&Y=="<"?P(te(">"),ze(Ke,">"),oe,or):void 0}function wo(F,Y){return F=="keyword"||F=="variable"?(L.marked="type",P(wo)):Y=="<"?P(te(">"),ze(Ke,">"),oe):void 0}function An(F,Y){return Y=="@"&&P(_e,An),F=="spread"?P(An):h&&q(Y)?(L.marked="keyword",P(An)):h&&F=="this"?P(Ae,pn):H(Nt,Ae,pn)}function Aa(F,Y){return F=="variable"?Pr(F,Y):bn(F,Y)}function Pr(F,Y){if(F=="variable")return z(Y),P(bn)}function bn(F,Y){return Y=="<"?P(te(">"),ze(Ke,">"),oe,bn):Y=="extends"||Y=="implements"||h&&F==","?(Y=="implements"&&(L.marked="keyword"),P(h?ce:_e,bn)):F=="{"?P(te("}"),wn,oe):void 0}function wn(F,Y){return F=="async"||F=="variable"&&(Y=="static"||Y=="get"||Y=="set"||h&&q(Y))&&L.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(L.marked="keyword",P(wn)):F=="variable"||L.style=="keyword"?(L.marked="property",P(Hr,wn)):F=="number"||F=="string"?P(Hr,wn):F=="["?P(_e,Ae,Z("]"),Hr,wn):Y=="*"?(L.marked="keyword",P(wn)):h&&F=="("?H(or,wn):F==";"||F==","?P(wn):F=="}"?P():Y=="@"?P(_e,wn):void 0}function Hr(F,Y){if(Y=="!"||Y=="?")return P(Hr);if(F==":")return P(ce,pn);if(Y=="=")return P(Ie);var ne=L.state.lexical.prev;return H(ne&&ne.info=="interface"?or:hn)}function jr(F,Y){return Y=="*"?(L.marked="keyword",P(Vr,Z(";"))):Y=="default"?(L.marked="keyword",P(_e,Z(";"))):F=="{"?P(ze(zr,"}"),Vr,Z(";")):H(se)}function zr(F,Y){return Y=="as"?(L.marked="keyword",P(Z("variable"))):F=="variable"?H(Ie,zr):void 0}function lr(F){return F=="string"?P():F=="("?H(_e):F=="."?H(at):H(Ur,Bn,Vr)}function Ur(F,Y){return F=="{"?gt(Ur,"}"):(F=="variable"&&z(Y),Y=="*"&&(L.marked="keyword"),P(Ci))}function Bn(F){if(F==",")return P(Ur,Bn)}function Ci(F,Y){if(Y=="as")return L.marked="keyword",P(Ur)}function Vr(F,Y){if(Y=="from")return L.marked="keyword",P(_e)}function nt(F){return F=="]"?P():H(ze(Ie,"]"))}function Ce(){return H(te("form"),Nt,Z("{"),te("}"),ze(Yn,"}"),oe,oe)}function Yn(){return H(Nt,pn)}function Ei(F,Y){return F.lastType=="operator"||F.lastType==","||v.test(Y.charAt(0))||/[,.]/.test(Y.charAt(0))}function un(F,Y,ne){return Y.tokenize==g&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(Y.lastType)||Y.lastType=="quasi"&&/\{\s*$/.test(F.string.slice(0,F.pos-(ne||0)))}return re.lex=pe.lex=!0,ue.lex=!0,oe.lex=!0,{startState:function(F){var Y={tokenize:g,lastType:"sof",cc:[],lexical:new N((F||0)-u,0,"block",!1),localVars:o.localVars,context:o.localVars&&new W(null,null,!1),indented:F||0};return o.globalVars&&typeof o.globalVars=="object"&&(Y.globalVars=o.globalVars),Y},token:function(F,Y){if(F.sol()&&(Y.lexical.hasOwnProperty("align")||(Y.lexical.align=!1),Y.indented=F.indentation(),M(F,Y)),Y.tokenize!=k&&F.eatSpace())return null;var ne=Y.tokenize(F,Y);return t=="comment"?ne:(Y.lastType=t!="operator"||a!="++"&&a!="--"?t:"incdec",T(Y,ne,t,a,F))},indent:function(F,Y){if(F.tokenize==k||F.tokenize==A)return jt.Pass;if(F.tokenize!=g)return 0;var ne,ye=Y&&Y.charAt(0),J=F.lexical;if(!/^\s*else\b/.test(Y))for(var he=F.cc.length-1;he>=0;--he){var Ve=F.cc[he];if(Ve==oe)J=J.prev;else if(Ve!=Ao&&Ve!=ue)break}for(;(J.type=="stat"||J.type=="form")&&(ye=="}"||(ne=F.cc[F.cc.length-1])&&(ne==at||ne==Mt)&&!/^[,\.=+\-*:?[\(]/.test(Y));)J=J.prev;d&&J.type==")"&&J.prev.type=="stat"&&(J=J.prev);var wt=J.type,zt=ye==wt;return wt=="vardef"?J.indented+(F.lastType=="operator"||F.lastType==","?J.info.length+1:0):wt=="form"&&ye=="{"?J.indented:wt=="form"?J.indented+u:wt=="stat"?J.indented+(Ei(F,Y)?d||u:0):J.info!="switch"||zt||o.doubleIndentSwitch==0?J.align?J.column+(zt?0:1):J.indented+(zt?0:u):J.indented+(/^(?:case|default)\b/.test(Y)?u:2*u)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:p?null:"/*",blockCommentEnd:p?null:"*/",blockCommentContinue:p?null:" * ",lineComment:p?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:p?"json":"javascript",jsonldMode:c,jsonMode:p,expressionAllowed:un,skipExpression:function(F){T(F,"atom","atom","true",new jt.StringStream("",2,null))}}}),jt.registerHelper("wordChars","javascript",/[\w$]/),jt.defineMIME("text/javascript","javascript"),jt.defineMIME("text/ecmascript","javascript"),jt.defineMIME("application/javascript","javascript"),jt.defineMIME("application/x-javascript","javascript"),jt.defineMIME("application/ecmascript","javascript"),jt.defineMIME("application/json",{name:"javascript",json:!0}),jt.defineMIME("application/x-json",{name:"javascript",json:!0}),jt.defineMIME("application/manifest+json",{name:"javascript",json:!0}),jt.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),jt.defineMIME("text/typescript",{name:"javascript",typescript:!0}),jt.defineMIME("application/typescript",{name:"javascript",typescript:!0});const Ef=kn({name:"Struct",props:{modelValue:[Object,Array,Function],title:String,defaultValue:{require:!1},validate:Function},inject:["designer"],data(){return{editor:null,visible:!1,err:!1,oldVal:null,t:this.designer.setupState.t}},watch:{modelValue(){this.load()},visible(r){r?this.load():this.err=!1}},methods:{load(){const r=di(Ss(this.modelValue?Zn(this.modelValue):this.defaultValue));this.oldVal=r,this.$nextTick(()=>{this.editor=Cf(this.$refs.editor,{lineNumbers:!0,mode:"javascript",gutters:["CodeMirror-lint-markers"],lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:r||""})})},onOk(){const r=this.editor.getValue();let o;try{o=new Function("return "+r)()}catch(t){return void(this.err=` (${t})`)}this.validate&&this.validate(o)===!1?this.err=!0:(this.visible=!1,di(o)!==this.oldVal&&this.$emit("update:modelValue",o))}}}),Sf={class:"_fc_struct"},_f={key:0,ref:"editor"},kf={class:"dialog-footer"},Df={key:0,class:"_fc_err"},Mf=Jn(Ef,[["render",function(r,o,t,a,u,d){const c=it("ElButton"),p=it("ElDialog");return Ze(),Pt("div",Sf,[We(c,{onClick:o[0]||(o[0]=m=>r.visible=!0),style:{width:"100%"}},{default:Ge(()=>[Kn(Qt(r.title||r.t("struct.title")),1)]),_:1}),We(p,{title:r.title||r.t("struct.title"),modelValue:r.visible,"onUpdate:modelValue":o[2]||(o[2]=m=>r.visible=m),"close-on-click-modal":!1,"append-to-body":""},{footer:Ge(()=>[ot("span",kf,[r.err?(Ze(),Pt("span",Df,Qt(r.t("struct.error"))+Qt(r.err!==!0?r.err:""),1)):dn("",!0),We(c,{onClick:o[1]||(o[1]=m=>r.visible=!1),size:"small"},{default:Ge(()=>[Kn(Qt(r.t("struct.cancel")),1)]),_:1}),We(c,{type:"primary",onClick:r.onOk,size:"small"},{default:Ge(()=>[Kn(Qt(r.t("struct.submit")),1)]),_:1},8,["onClick"])])]),default:Ge(()=>[r.visible?(Ze(),Pt("div",_f,null,512)):dn("",!0)]),_:1},8,["title","modelValue"])])}]]),Tf=kn({name:"Fetch",props:{modelValue:[Object,String],to:String},components:{DragForm:bt.$form()},inject:["designer"],computed:{formValue(){const r=this.modelValue;return r?ht.String(r)?{action:r}:r:{}}},data(){const r=this.designer.setupState.t;return{api:{},fetch:{},t:r,option:{form:{labelPosition:"right",size:"small",labelWidth:"90px"},submitBtn:!1},rule:[{type:"input",field:"action",title:r("fetch.action")+": ",validate:[{required:!0,message:r("fetch.actionRequired")}]},{type:"select",field:"method",title:r("fetch.method")+": ",value:"GET",options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],control:[{value:"POST",rule:[{type:"select",field:"dataType",title:r("fetch.dataType")+": ",value:"FormData",options:[{label:"FormData",value:"FormData"},{label:"JSON",value:"JSON"}]}]}]},{type:"Struct",field:"data",title:r("fetch.data")+": ",value:{},props:{defaultValue:{}}},{type:"Struct",field:"headers",title:r("fetch.headers")+": ",value:{},props:{defaultValue:{}}},{type:"Struct",field:"parse",title:r("fetch.parse")+": ",info:r("fetch.parseInfo"),value:null,props:{defaultValue:function(o){return o}}}]}},methods:{parseFn:r=>new Function("return "+r)(),_input(){this.api.submit(r=>{r.to=this.to||"options",this.$emit("update:modelValue",r)})},input:function(r,o){var t=null;return function(...a){t!==null&&clearTimeout(t),t=setTimeout(()=>r.call(this,...a),o)}}(function(){this._input()},1e3)},mounted(){this._input()}}),Nf={class:"_fc_fetch"},Rf=Jn(Tf,[["render",function(r,o,t,a,u,d){const c=it("DragForm");return Ze(),Pt("div",Nf,[We(c,{api:r.api,"onUpdate:api":o[0]||(o[0]=p=>r.api=p),modelValue:r.formValue,rule:r.rule,option:r.option,onChange:r.input},null,8,["api","modelValue","rule","option","onChange"])])}]]),Lf=kn({name:"Validate",inject:["designer"],props:{modelValue:Array},components:{DragForm:bt.$form()},watch:{modelValue(r){this.formValue=this.parseValue(r)}},data(){const r=this.designer.setupState.t;return{formValue:{},t:r,option:{form:{labelPosition:"top",size:"small",labelWidth:"90px"},submitBtn:!1,appendValue:!0,formData:this.parseValue(this.modelValue)},rule:[{type:"select",field:"type",value:"",title:r("validate.type"),options:[{value:"",label:r("validate.typePlaceholder")},{value:"string",label:"String"},{value:"array",label:"Array"},{value:"number",label:"Number"},{value:"integer",label:"Integer"},{value:"float",label:"Float"},{value:"object",label:"Object"},{value:"date",label:"Date"},{value:"url",label:"url"},{value:"hex",label:"hex"},{value:"email",label:"email"}],control:[{handle:o=>!!o,rule:[{type:"group",field:"validate",props:{expand:1,sortBtn:!1,rule:[{type:"select",title:r("validate.trigger"),field:"trigger",value:"change",options:[{label:"change",value:"change"},{label:"submit",value:"submit"},{label:"blur",value:"blur"}]},{type:"hidden",field:"validator",value:void 0},{type:"select",title:r("validate.mode"),field:"mode",options:[{value:"required",label:r("validate.modes.required")},{value:"pattern",label:r("validate.modes.pattern")},{value:"min",label:r("validate.modes.min")},{value:"max",label:r("validate.modes.max")},{value:"len",label:r("validate.modes.len")}],value:"required",control:[{value:"required",rule:[{type:"hidden",field:"required",value:!0}]},{value:"pattern",rule:[{type:"input",field:"pattern",title:r("validate.modes.pattern")}]},{value:"min",rule:[{type:"inputNumber",field:"min",title:r("validate.modes.min")}]},{value:"max",rule:[{type:"inputNumber",field:"max",title:r("validate.modes.max")}]},{value:"len",rule:[{type:"inputNumber",field:"len",title:r("validate.modes.len")}]}]},{type:"input",title:r("validate.message"),field:"message",value:"",children:[{type:"span",slot:"append",inject:!0,class:"append-msg",on:{click:o=>{const t=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&o.api.setValue("message",r(o.api.form.mode!=="required"?"validate.autoMode":"validate.autoRequired",{title:t}))}},children:[r("validate.auto")]}]}]},value:[]}]}]}]}},methods:{onInput:function(r){let o=[];const{validate:t,type:a}=Zn(r);a&&(!t||!t.length)||(a&&(t.forEach(u=>{u.type=a}),o=[...t]),this.$emit("update:modelValue",o))},parseValue(r){let o={validate:r?[...r]:[],type:r.length?r[0].type||"string":void 0};return o.validate.forEach(t=>{t.mode||Object.keys(t).forEach(a=>{["message","type","trigger","mode"].indexOf(a)<0&&(t.mode=a)})}),o}}}),Bf=Jn(Lf,[["render",function(r,o,t,a,u,d){const c=it("DragForm");return Ze(),Pn(c,{class:"_fc-validate",rule:r.rule,option:r.option,modelValue:r.formValue,"onUpdate:modelValue":r.onInput},null,8,["rule","option","modelValue","onUpdate:modelValue"])}]]),If=kn({name:"DragBox",props:["rule","tag","formCreateInject"],render(r){const o={...r.$props.rule.props,...r.$attrs};let t=o.tag+"-drag drag-box";Object.keys(r.$slots).length||(t+=" "+o.tag+"-holder"),o.class=t,o.modelValue=[...this.$props.formCreateInject.children];const a={};return r.$slots.default&&r.$slots.default().forEach(u=>{u.key&&(a[u.key]=u)}),Zo(ma,o,{item:({element:u})=>{var d;return(d=u==null?void 0:u.__fc__)!=null&&d.key?Zo("div",{},a[u.__fc__.key+"fc"]):void 0}})}}),Of=kn({name:"Required",props:{modelValue:{}},inject:["designer"],watch:{required(){this.update()},requiredMsg(){this.update()},modelValue(r){const o=ht.String(r);this.required=r!==void 0&&(!!o||!!r),this.requiredMsg=o?r:""}},data(){const r=ht.String(this.modelValue);return{t:this.designer.setupState.t,required:this.modelValue!==void 0&&(!!r||!!this.modelValue),requiredMsg:r?this.modelValue:""}},methods:{update(){let r;r=this.required!==!1&&(this.requiredMsg||!0),this.$emit("update:modelValue",r)}}}),Ff={class:"_fc-required"},Pf=Jn(Of,[["render",function(r,o,t,a,u,d){const c=it("ElSwitch"),p=it("ElInput");return Ze(),Pt("div",Ff,[We(c,{modelValue:r.required,"onUpdate:modelValue":o[0]||(o[0]=m=>r.required=m)},null,8,["modelValue"]),r.required?(Ze(),Pn(p,{key:0,modelValue:r.requiredMsg,"onUpdate:modelValue":o[1]||(o[1]=m=>r.requiredMsg=m),placeholder:r.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):dn("",!0)])}]]),Hf=kn({name:"TableOptions",inheritAttrs:!1,props:{modelValue:[Object,Array,String]},inject:["designer"],data(){return{column:[{label:"label",key:"label"},{label:"value",key:"value"}],t:this.designer.setupState.t}},created(){Array.isArray(this.modelValue)||this.$emit("input",[])},methods:{onInput(r){r.label!==void 0&&r.value!==void 0&&this.input()},input(){this.$emit("update:modelValue",this.modelValue)},add(){this.modelValue.push(this.column.reduce((r,o)=>(r[o.key]="",r),{}))},del(r){this.modelValue.splice(r,1),this.input(this.modelValue)}}}),jf={class:"_fc_table_opt"},zf=["onClick"],Uf=(r=>(nm("data-v-c0b6353c"),r=r(),rm(),r))(()=>ot("i",{class:"fc-icon icon-add"},null,-1)),Vf=Jn(Hf,[["render",function(r,o,t,a,u,d){const c=it("el-input"),p=it("el-table-column"),m=it("el-table"),h=it("el-button");return Ze(),Pt("div",jf,[We(m,{data:r.modelValue,border:"",size:"small",style:{width:"100%"}},{default:Ge(()=>[(Ze(!0),Pt(xd,null,Cd(r.column,(b,y)=>(Ze(),Pn(p,{key:b.label+y,label:b.label},{default:Ge(v=>[We(c,{size:"small",modelValue:v.row[b.key]||"","onUpdate:modelValue":w=>(v.row[b.key]=w,r.onInput(v.row))},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1032,["label"]))),128)),We(p,{"min-width":"50",align:"center",fixed:"right",label:r.t("tableOptions.handle")},{default:Ge(b=>[ot("i",{class:"fc-icon icon-delete",onClick:y=>r.del(b.$index)},null,8,zf)]),_:1},8,["label"])]),_:1},8,["data"]),We(h,{link:"",type:"primary",onClick:r.add},{default:Ge(()=>[Uf,Kn(" "+Qt(r.t("tableOptions.add")),1)]),_:1},8,["onClick"])])}],["__scopeId","data-v-c0b6353c"]]);function mu(r,o){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);o&&(a=a.filter(function(u){return Object.getOwnPropertyDescriptor(r,u).enumerable})),t.push.apply(t,a)}return t}function Dt(r){return(Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o})(r)}function Yf(r,o,t){return o in r?Object.defineProperty(r,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[o]=t,r}function Wf(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var vu={exports:{}};vu.exports=function(r){var o={};function t(a){if(o[a])return o[a].exports;var u=o[a]={i:a,l:!1,exports:{}};return r[a].call(u.exports,u,u.exports,t),u.l=!0,u.exports}return t.m=r,t.c=o,t.d=function(a,u,d){t.o(a,u)||Object.defineProperty(a,u,{enumerable:!0,get:d})},t.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},t.t=function(a,u){if(1&u&&(a=t(a)),8&u||4&u&&Dt(a)==="object"&&a&&a.__esModule)return a;var d=Object.create(null);if(t.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),2&u&&typeof a!="string")for(var c in a)t.d(d,c,(function(p){return a[p]}).bind(null,c));return d},t.n=function(a){var u=a&&a.__esModule?function(){return a.default}:function(){return a};return t.d(u,"a",u),u},t.o=function(a,u){return Object.prototype.hasOwnProperty.call(a,u)},t.p="",t(t.s=141)}([function(r,o){function t(a){return a&&a.__esModule?a:{default:a}}r.exports=t},function(r,o,t){r.exports=t(142)},function(r,o,t){t.r(o),t.d(o,"__extends",function(){return u}),t.d(o,"__assign",function(){return d}),t.d(o,"__rest",function(){return c}),t.d(o,"__decorate",function(){return p}),t.d(o,"__param",function(){return m}),t.d(o,"__metadata",function(){return h}),t.d(o,"__awaiter",function(){return b}),t.d(o,"__generator",function(){return y}),t.d(o,"__createBinding",function(){return v}),t.d(o,"__exportStar",function(){return w}),t.d(o,"__values",function(){return x}),t.d(o,"__read",function(){return _}),t.d(o,"__spread",function(){return g}),t.d(o,"__spreadArrays",function(){return C}),t.d(o,"__spreadArray",function(){return k}),t.d(o,"__await",function(){return A}),t.d(o,"__asyncGenerator",function(){return S}),t.d(o,"__asyncDelegator",function(){return M}),t.d(o,"__asyncValues",function(){return I}),t.d(o,"__makeTemplateObject",function(){return N}),t.d(o,"__importStar",function(){return T}),t.d(o,"__importDefault",function(){return L}),t.d(o,"__classPrivateFieldGet",function(){return H}),t.d(o,"__classPrivateFieldSet",function(){return P});var a=function(j,z){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,q){Q.__proto__=q}||function(Q,q){for(var W in q)Object.prototype.hasOwnProperty.call(q,W)&&(Q[W]=q[W])})(j,z)};function u(j,z){if(typeof z!="function"&&z!==null)throw new TypeError("Class extends value "+String(z)+" is not a constructor or null");function Q(){this.constructor=j}a(j,z),j.prototype=z===null?Object.create(z):(Q.prototype=z.prototype,new Q)}var d=function(){return d=Object.assign||function(j){for(var z,Q=1,q=arguments.length;Q"u"?"undefined":Dt(Reflect))==="object"&&typeof Reflect.decorate=="function")X=Reflect.decorate(j,z,Q,q);else for(var re=j.length-1;re>=0;re--)(W=j[re])&&(X=(K<3?W(X):K>3?W(z,Q,X):W(z,Q))||X);return K>3&&X&&Object.defineProperty(z,Q,X),X}function m(j,z){return function(Q,q){z(Q,q,j)}}function h(j,z){if((typeof Reflect>"u"?"undefined":Dt(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(j,z)}function b(j,z,Q,q){function W(K){return K instanceof Q?K:new Q(function(X){X(K)})}return new(Q||(Q=Promise))(function(K,X){function re(te){try{ue(q.next(te))}catch(oe){X(oe)}}function pe(te){try{ue(q.throw(te))}catch(oe){X(oe)}}function ue(te){te.done?K(te.value):W(te.value).then(re,pe)}ue((q=q.apply(j,z||[])).next())})}function y(j,z){var Q,q,W,K,X={label:0,sent:function(){if(1&W[0])throw W[1];return W[1]},trys:[],ops:[]};return K={next:re(0),throw:re(1),return:re(2)},typeof Symbol=="function"&&(K[Symbol.iterator]=function(){return this}),K;function re(ue){return function(te){return pe([ue,te])}}function pe(ue){if(Q)throw new TypeError("Generator is already executing.");for(;X;)try{if(Q=1,q&&(W=2&ue[0]?q.return:ue[0]?q.throw||((W=q.return)&&W.call(q),0):q.next)&&!(W=W.call(q,ue[1])).done)return W;switch(q=0,W&&(ue=[2&ue[0],W.value]),ue[0]){case 0:case 1:W=ue;break;case 4:return X.label++,{value:ue[1],done:!1};case 5:X.label++,q=ue[1],ue=[0];continue;case 7:ue=X.ops.pop(),X.trys.pop();continue;default:if(!(W=(W=X.trys).length>0&&W[W.length-1])&&(ue[0]===6||ue[0]===2)){X=0;continue}if(ue[0]===3&&(!W||ue[1]>W[0]&&ue[1]=j.length&&(j=void 0),{value:j&&j[q++],done:!j}}};throw new TypeError(z?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(j,z){var Q=typeof Symbol=="function"&&j[Symbol.iterator];if(!Q)return j;var q,W,K=Q.call(j),X=[];try{for(;(z===void 0||z-- >0)&&!(q=K.next()).done;)X.push(q.value)}catch(re){W={error:re}}finally{try{q&&!q.done&&(Q=K.return)&&Q.call(K)}finally{if(W)throw W.error}}return X}function g(){for(var j=[],z=0;z1||re(Z,se)})})}function re(Z,se){try{pe(W[Z](se))}catch(Ee){oe(K[0][3],Ee)}}function pe(Z){Z.value instanceof A?Promise.resolve(Z.value.v).then(ue,te):oe(K[0][2],Z)}function ue(Z){re("next",Z)}function te(Z){re("throw",Z)}function oe(Z,se){Z(se),K.shift(),K.length&&re(K[0][0],K[0][1])}}function M(j){var z,Q;return z={},q("next"),q("throw",function(W){throw W}),q("return"),z[Symbol.iterator]=function(){return this},z;function q(W,K){z[W]=j[W]?function(X){return(Q=!Q)?{value:A(j[W](X)),done:W==="return"}:K?K(X):X}:K}}function I(j){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var z,Q=j[Symbol.asyncIterator];return Q?Q.call(j):(j=typeof x=="function"?x(j):j[Symbol.iterator](),z={},q("next"),q("throw"),q("return"),z[Symbol.asyncIterator]=function(){return this},z);function q(K){z[K]=j[K]&&function(X){return new Promise(function(re,pe){W(re,pe,(X=j[K](X)).done,X.value)})}}function W(K,X,re,pe){Promise.resolve(pe).then(function(ue){K({value:ue,done:re})},X)}}function N(j,z){return Object.defineProperty?Object.defineProperty(j,"raw",{value:z}):j.raw=z,j}var R=Object.create?function(j,z){Object.defineProperty(j,"default",{enumerable:!0,value:z})}:function(j,z){j.default=z};function T(j){if(j&&j.__esModule)return j;var z={};if(j!=null)for(var Q in j)Q!=="default"&&Object.prototype.hasOwnProperty.call(j,Q)&&v(z,j,Q);return R(z,j),z}function L(j){return j&&j.__esModule?j:{default:j}}function H(j,z){if(!z.has(j))throw new TypeError("attempted to get private field on non-instance");return z.get(j)}function P(j,z,Q){if(!z.has(j))throw new TypeError("attempted to set private field on non-instance");return z.set(j,Q),Q}},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(89)),c=a(t(4)),p=a(t(26)),m=a(t(17)),h=a(t(120)),b=a(t(27)),y=a(t(91)),v=a(t(70)),w=a(t(44)),x=a(t(57));(0,u.default)(o,"__esModule",{value:!0}),o.DomElement=void 0;var _=t(2),g=t(6),C=[];function k(R){var T=document.createElement("div");T.innerHTML=R;var L=T.children;return g.toArray(L)}function A(R){return!!R&&(R instanceof HTMLCollection||R instanceof NodeList)}function S(R){var T=document.querySelectorAll(R);return g.toArray(T)}function M(R){var T=[],L=[];return T=(0,d.default)(R)?R:R.split(";"),(0,c.default)(T).call(T,function(H){var P,j=(0,p.default)(P=H.split(":")).call(P,function(z){return(0,m.default)(z).call(z)});j.length===2&&L.push(j[0]+":"+j[1])}),L}var I=function(){function R(T){if(this.elems=[],this.length=this.elems.length,this.dataSource=new h.default,T){if(T instanceof R)return T;var L=[],H=T instanceof Node?T.nodeType:-1;if(this.selector=T,H===1||H===9)L=[T];else if(A(T))L=g.toArray(T);else if(T instanceof Array)L=T;else if(typeof T=="string"){var P,j=(0,m.default)(P=T.replace(`/ /mg`,"")).call(P);L=(0,b.default)(j).call(j,"<")===0?k(j):S(j)}var z=L.length;if(!z)return this;for(var Q=0;Q=L&&(T%=L),N(this.elems[T])},R.prototype.first=function(){return this.get(0)},R.prototype.last=function(){var T=this.length;return this.get(T-1)},R.prototype.on=function(T,L,H){var P;return T?(typeof L=="function"&&(H=L,L=""),(0,c.default)(P=this).call(P,function(j){if(L){var z=function(Q){var q=Q.target;q.matches(L)&&H.call(q,Q)};j.addEventListener(T,z),C.push({elem:j,selector:L,fn:H,agentFn:z})}else j.addEventListener(T,H)})):this},R.prototype.off=function(T,L,H){var P;return T?(typeof L=="function"&&(H=L,L=""),(0,c.default)(P=this).call(P,function(j){if(L){for(var z=-1,Q=0;Q]+>/g,function(){return""})},R.prototype.html=function(T){var L=this.elems[0];return T?(L.innerHTML=T,this):L.innerHTML},R.prototype.val=function(){var T,L=this.elems[0];return(0,m.default)(T=L.value).call(T)},R.prototype.focus=function(){var T;return(0,c.default)(T=this).call(T,function(L){L.focus()})},R.prototype.prev=function(){return N(this.elems[0].previousElementSibling)},R.prototype.next=function(){return N(this.elems[0].nextElementSibling)},R.prototype.getNextSibling=function(){return N(this.elems[0].nextSibling)},R.prototype.parent=function(){return N(this.elems[0].parentElement)},R.prototype.parentUntil=function(T,L){var H=L||this.elems[0];if(H.nodeName==="BODY")return null;var P=H.parentElement;return P===null?null:P.matches(T)?N(P):this.parentUntil(T,P)},R.prototype.parentUntilEditor=function(T,L,H){var P=H||this.elems[0];if(N(P).equal(L.$textContainerElem)||N(P).equal(L.$toolbarElem))return null;var j=P.parentElement;return j===null?null:j.matches(T)?N(j):this.parentUntilEditor(T,L,j)},R.prototype.equal=function(T){return T instanceof R?this.elems[0]===T.elems[0]:T instanceof HTMLElement&&this.elems[0]===T},R.prototype.insertBefore=function(T){var L,H=N(T).elems[0];return H?(0,c.default)(L=this).call(L,function(P){var j=H.parentNode;j==null||j.insertBefore(P,H)}):this},R.prototype.insertAfter=function(T){var L,H=N(T).elems[0],P=H&&H.nextSibling;return H?(0,c.default)(L=this).call(L,function(j){var z=H.parentNode;P?z.insertBefore(j,P):z.appendChild(j)}):this},R.prototype.data=function(T,L){if(L==null)return this.dataSource.get(T);this.dataSource.set(T,L)},R.prototype.getNodeTop=function(T){if(this.length<1)return this;var L=this.parent();return T.$textElem.equal(this)||T.$textElem.equal(L)?this:(L.prior=this,L.getNodeTop(T))},R.prototype.getOffsetData=function(){var T=this.elems[0];return{top:T.offsetTop,left:T.offsetLeft,width:T.offsetWidth,height:T.offsetHeight,parent:T.offsetParent}},R.prototype.scrollTop=function(T){this.elems[0].scrollTo({top:T})},R}();function N(){for(var R=[],T=0;T/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"
")}function _(T){return T.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}function g(T,L){for(var H in T)if(Object.prototype.hasOwnProperty.call(T,H)&&L(H,T[H])===!1)break}function C(T,L){var H,P,j=T.length||0;for(H=0;H

',o.EMPTY_P_LAST_REGEX=/

<\/p>$/gim,o.EMPTY_P_REGEX=/

/gim},function(r,o,t){(function(a){var u=function(d){return d&&d.Math==Math&&d};r.exports=u((typeof globalThis>"u"?"undefined":Dt(globalThis))=="object"&&globalThis)||u((typeof window>"u"?"undefined":Dt(window))=="object"&&window)||u((typeof self>"u"?"undefined":Dt(self))=="object"&&self)||u(Dt(a)=="object"&&a)||Function("return this")()}).call(this,t(145))},function(r,o){r.exports={}},function(r,o,t){var a=t(8),u=t(74),d=t(16),c=t(64),p=t(76),m=t(105),h=u("wks"),b=a.Symbol,y=m?b:b&&b.withoutSetter||c;r.exports=function(v){return d(h,v)||(p&&d(b,v)?h[v]=b[v]:h[v]=y("Symbol."+v)),h[v]}},function(r,o){r.exports=function(t){try{return!!t()}catch{return!0}}},function(r,o,t){var a=t(9),u=t(16),d=t(93),c=t(18).f;r.exports=function(p){var m=a.Symbol||(a.Symbol={});u(m,p)||c(m,p,{value:d.f(p)})}},function(r,o){r.exports=function(t){return Dt(t)==="object"?t!==null:typeof t=="function"}},function(r,o,t){var a=t(11);r.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(r,o,t){var a=t(9);r.exports=function(u){return a[u+"Prototype"]}},function(r,o){var t={}.hasOwnProperty;r.exports=function(a,u){return t.call(a,u)}},function(r,o,t){r.exports=t(192)},function(r,o,t){var a=t(14),u=t(99),d=t(25),c=t(60),p=Object.defineProperty;o.f=a?p:function(m,h,b){if(d(m),h=c(h,!0),d(b),u)try{return p(m,h,b)}catch{}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(m[h]=b.value),m}},function(r,o,t){var a=t(14),u=t(18),d=t(48);r.exports=a?function(c,p,m){return u.f(c,p,d(1,m))}:function(c,p,m){return c[p]=m,c}},function(r,o,t){var a=function(){var g;return function(){return typeof g>"u"&&(g=!!(window&&document&&document.all&&!window.atob)),g}}(),u=function(){var g={};return function(C){if(typeof g[C]>"u"){var k=document.querySelector(C);if(window.HTMLIFrameElement&&k instanceof window.HTMLIFrameElement)try{k=k.contentDocument.head}catch{k=null}g[C]=k}return g[C]}}(),d=[];function c(g){for(var C=-1,k=0;k"u"){var A=t.nc;A&&(k.nonce=A)}if(Object.keys(k).forEach(function(M){C.setAttribute(M,k[M])}),typeof g.insert=="function")g.insert(C);else{var S=u(g.insert||"head");if(!S)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");S.appendChild(C)}return C}function h(g){if(g.parentNode===null)return!1;g.parentNode.removeChild(g)}var b=function(){var g=[];return function(C,k){return g[C]=k,g.filter(Boolean).join(` `)}}();function y(g,C,k,A){var S=k?"":A.media?"@media ".concat(A.media," {").concat(A.css,"}"):A.css;if(g.styleSheet)g.styleSheet.cssText=b(C,S);else{var M=document.createTextNode(S),I=g.childNodes;I[C]&&g.removeChild(I[C]),I.length?g.insertBefore(M,I[C]):g.appendChild(M)}}function v(g,C,k){var A=k.css,S=k.media,M=k.sourceMap;if(S?g.setAttribute("media",S):g.removeAttribute("media"),M&&typeof btoa<"u"&&(A+=` /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(M))))," */")),g.styleSheet)g.styleSheet.cssText=A;else{for(;g.firstChild;)g.removeChild(g.firstChild);g.appendChild(document.createTextNode(A))}}var w=null,x=0;function _(g,C){var k,A,S;if(C.singleton){var M=x++;k=w||(w=m(C)),A=y.bind(null,k,M,!1),S=y.bind(null,k,M,!0)}else k=m(C),A=v.bind(null,k,C),S=function(){h(k)};return A(g),function(I){if(I){if(I.css===g.css&&I.media===g.media&&I.sourceMap===g.sourceMap)return;A(g=I)}else S()}}r.exports=function(g,C){!(C=C||{}).singleton&&typeof C.singleton!="boolean"&&(C.singleton=a());var k=p(g=g||[],C);return function(A){if(A=A||[],Object.prototype.toString.call(A)==="[object Array]"){for(var S=0;S0){var R=N==null?void 0:N.getNodeName();R&&R==="I"&&I.addClass(A)}});var S=new b.default(C,g);return C.dropList=S,x.on("click",function(){var M;_.selection.getRange()!=null&&(x.css("z-index",_.zIndex.get("menu")),(0,d.default)(M=_.txt.eventHooks.dropListMenuHoverEvents).call(M,function(I){return I()}),S.show())}).on("mouseleave",function(){x.css("z-index","auto"),S.hideTimeoutId=(0,c.default)(function(){S.hide()})}),C}return p.__extends(w,v),w}(h.default);o.default=y},function(r,o,t){var a=t(13);r.exports=function(u){if(!a(u))throw TypeError(String(u)+" is not an object");return u}},function(r,o,t){r.exports=t(188)},function(r,o,t){r.exports=t(201)},function(r,o,t){var a=t(72),u=t(49);r.exports=function(d){return a(u(d))}},function(r,o,t){var a=t(49);r.exports=function(u){return Object(a(u))}},function(r,o,t){var a=t(39),u=t(72),d=t(29),c=t(34),p=t(88),m=[].push,h=function(b){var y=b==1,v=b==2,w=b==3,x=b==4,_=b==6,g=b==5||_;return function(C,k,A,S){for(var M,I,N=d(C),R=u(N),T=a(k,A,3),L=c(R.length),H=0,P=S||p,j=y?P(C,L):v?P(C,0):void 0;L>H;H++)if((g||H in R)&&(I=T(M=R[H],H,N),b)){if(y)j[H]=I;else if(I)switch(b){case 3:return!0;case 5:return M;case 6:return H;case 2:m.call(j,M)}else if(x)return!1}return _?-1:w||x?x:j}};r.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},function(r,o,t){r.exports=t(283)},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4)),c=a(t(31)),p=a(t(131));(0,u.default)(o,"__esModule",{value:!0});var m=t(2),h=m.__importDefault(t(3)),b=t(7),y=function(){function v(w,x){this.menu=w,this.conf=x,this.$container=h.default('

');var _=w.editor;_.txt.eventHooks.clickEvents.push(v.hideCurAllPanels),_.txt.eventHooks.toolbarClickEvents.push(v.hideCurAllPanels),_.txt.eventHooks.dropListMenuHoverEvents.push(v.hideCurAllPanels)}return v.prototype.create=function(){var w=this,x=this.menu;if(!v.createdMenus.has(x)){var _=this.conf,g=this.$container,C=_.width||300,k=x.editor.$toolbarElem.getBoundingClientRect(),A=x.$elem.getBoundingClientRect(),S=k.height+k.top-A.top,M=(k.width-C)/2+k.left-A.left,I=300;Math.abs(M)>I&&(M=A.left');g.append(N),N.on("click",function(){w.remove()});var R=h.default('
    '),T=h.default('
    ');g.append(R).append(T);var L=_.height;L&&T.css("height",L+"px").css("overflow-y","auto");var H=_.tabs||[],P=[],j=[];(0,d.default)(H).call(H,function(Q,q){if(Q){var W=Q.title||"",K=Q.tpl||"",X=h.default('
  • '+W+"
  • ");R.append(X);var re=h.default(K);T.append(re),P.push(X),j.push(re),q===0?(X.data("active",!0),X.addClass("w-e-active")):re.hide(),X.on("click",function(){X.data("active")||((0,d.default)(P).call(P,function(pe){pe.data("active",!1),pe.removeClass("w-e-active")}),(0,d.default)(j).call(j,function(pe){pe.hide()}),X.data("active",!0),X.addClass("w-e-active"),re.show())})}}),g.on("click",function(Q){Q.stopPropagation()}),x.$elem.append(g),(0,d.default)(H).call(H,function(Q,q){if(Q){var W=Q.events||[];(0,d.default)(W).call(W,function(K){var X,re=K.selector,pe=K.type,ue=K.fn||b.EMPTY_FN,te=j[q],oe=(X=K.bindEnter)!==null&&X!==void 0&&X,Z=function(se){return m.__awaiter(w,void 0,void 0,function(){return m.__generator(this,function(Ee){switch(Ee.label){case 0:return se.stopPropagation(),[4,ue(se)];case 1:return Ee.sent()&&this.remove(),[2]}})})};(0,c.default)(te).call(te,re).on(pe,Z),oe&&pe==="click"&&te.on("keyup",function(se){se.keyCode==13&&Z(se)})})}});var z=(0,c.default)(g).call(g,"input[type=text],textarea");z.length&&z.get(0).focus(),v.hideCurAllPanels(),x.setPanel(this),v.createdMenus.add(x)}},v.prototype.remove=function(){var w=this.menu,x=this.$container;x&&x.remove(),v.createdMenus.delete(w)},v.hideCurAllPanels=function(){var w;v.createdMenus.size!==0&&(0,d.default)(w=v.createdMenus).call(w,function(x){var _=x.panel;_&&_.remove()})},v.createdMenus=new p.default,v}();o.default=y},function(r,o){var t={}.toString;r.exports=function(a){return t.call(a).slice(8,-1)}},function(r,o,t){var a=t(62),u=Math.min;r.exports=function(d){return d>0?u(a(d),9007199254740991):0}},function(r,o,t){var a=t(9),u=t(8),d=function(c){return typeof c=="function"?c:void 0};r.exports=function(c,p){return arguments.length<2?d(a[c])||d(u[c]):a[c]&&a[c][p]||u[c]&&u[c][p]}},function(r,o,t){var a=t(81),u=t(18).f,d=t(19),c=t(16),p=t(170),m=t(10)("toStringTag");r.exports=function(h,b,y,v){if(h){var w=y?h:h.prototype;c(w,m)||u(w,m,{configurable:!0,value:b}),v&&!a&&d(w,"toString",p)}}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=function(d){function c(p,m){return d.call(this,p,m)||this}return a.__extends(c,d),c.prototype.setPanel=function(p){this.panel=p},c}(a.__importDefault(t(95)).default);o.default=u},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4)),c=a(t(57));(0,u.default)(o,"__esModule",{value:!0});var p=t(2).__importDefault(t(3)),m=function(){function h(b,y,v){this.editor=b,this.$targetElem=y,this.conf=v,this._show=!1,this._isInsertTextContainer=!1;var w=p.default("
    ");w.addClass("w-e-tooltip"),this.$container=w}return h.prototype.getPositionData=function(){var b=this.$container,y=0,v=0,w=20,x=document.documentElement.scrollTop,_=this.$targetElem.getBoundingClientRect(),g=this.editor.$textElem.getBoundingClientRect(),C=this.$targetElem.getOffsetData(),k=p.default(C.parent),A=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=k.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var S=k.getBoundingClientRect().height,M=C.top,I=C.left,N=C.height,R=M-A;R>w+5?(y=R-w-15,b.addClass("w-e-tooltip-up")):R+N+w0?R:0)+w+10,b.addClass("w-e-tooltip-down")),v=I<0?0:I}else _.top");k.addClass("w-e-tooltip-item-wrapper "),k.append(C),x.append(k),C.on("click",function(A){A.preventDefault(),_.onClick(v,w)&&b.remove()})})},h.prototype.create=function(){var b,y,v=this.editor,w=this.$container;this.appendMenus();var x=this.getPositionData(),_=x.top,g=x.left;w.css("top",_+"px"),w.css("left",g+"px"),w.css("z-index",v.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(w):p.default("body").append(w),this._show=!0,v.beforeDestroy((0,c.default)(b=this.remove).call(b,this)),v.txt.eventHooks.onBlurEvents.push((0,c.default)(y=this.remove).call(y,this))},h.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,u.default)(h.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),h}();o.default=m},function(r,o,t){var a=t(40);r.exports=function(u,d,c){if(a(u),d===void 0)return u;switch(c){case 0:return function(){return u.call(d)};case 1:return function(p){return u.call(d,p)};case 2:return function(p,m){return u.call(d,p,m)};case 3:return function(p,m,h){return u.call(d,p,m,h)}}return function(){return u.apply(d,arguments)}}},function(r,o){r.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},function(r,o,t){var a,u,d,c=t(165),p=t(8),m=t(13),h=t(19),b=t(16),y=t(63),v=t(51),w=p.WeakMap,x=function(M){return d(M)?u(M):a(M,{})},_=function(M){return function(I){var N;if(!m(I)||(N=u(I)).type!==M)throw TypeError("Incompatible receiver, "+M+" required");return N}};if(c){var g=new w,C=g.get,k=g.has,A=g.set;a=function(M,I){return A.call(g,M,I),I},u=function(M){return C.call(g,M)||{}},d=function(M){return k.call(g,M)}}else{var S=y("state");v[S]=!0,a=function(M,I){return h(M,S,I),I},u=function(M){return b(M,S)?M[S]:{}},d=function(M){return b(M,S)}}r.exports={set:a,get:u,has:d,enforce:x,getterFor:_}},function(r,o){r.exports=!0},function(r,o){r.exports={}},function(r,o,t){r.exports=t(213)},function(r,o,t){r.exports=t(261)},function(r,o,t){r.exports=t(265)},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0}),o.createElementFragment=o.createDocumentFragment=o.createElement=o.insertBefore=o.getEndPoint=o.getStartPoint=o.updateRange=o.filterSelectionNodes=void 0;var c=t(2),p=t(137),m=c.__importDefault(t(3));function h(C){var k=[];return(0,d.default)(C).call(C,function(A){var S=A.getNodeName();if(S!==p.ListType.OrderedList&&S!==p.ListType.UnorderedList)k.push(A);else if(A.prior)k.push(A.prior);else{var M=A.children();M==null||(0,d.default)(M).call(M,function(I){k.push(m.default(I))})}}),k}function b(C,k,A){var S=C.selection,M=document.createRange();k.length>1?(M.setStart(k.elems[0],0),M.setEnd(k.elems[k.length-1],k.elems[k.length-1].childNodes.length)):M.selectNodeContents(k.elems[0]),A&&M.collapse(!1),S.saveRange(M),S.restoreSelection()}function y(C){var k;return C.prior?C.prior:m.default((k=C.children())===null||k===void 0?void 0:k.elems[0])}function v(C){var k;return C.prior?C.prior:m.default((k=C.children())===null||k===void 0?void 0:k.last().elems[0])}function w(C,k,A){A===void 0&&(A=null),C.parent().elems[0].insertBefore(k,A)}function x(C){return document.createElement(C)}function _(){return document.createDocumentFragment()}function g(C,k,A){return A===void 0&&(A="li"),(0,d.default)(C).call(C,function(S){var M=x(A);M.innerHTML=S.html(),k.appendChild(M),S.remove()}),k}o.filterSelectionNodes=h,o.updateRange=b,o.getStartPoint=y,o.getEndPoint=v,o.insertBefore=w,o.createElement=x,o.createDocumentFragment=_,o.createElementFragment=g},function(r,o){r.exports=function(t,a){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:a}}},function(r,o){r.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},function(r,o,t){var a=t(164).charAt,u=t(41),d=t(75),c="String Iterator",p=u.set,m=u.getterFor(c);d(String,"String",function(h){p(this,{type:c,string:String(h),index:0})},function(){var h,b=m(this),y=b.string,v=b.index;return v>=y.length?{value:void 0,done:!0}:(h=a(y,v),b.index+=h.length,{value:h,done:!1})})},function(r,o){r.exports={}},function(r,o,t){var a=t(106),u=t(80);r.exports=Object.keys||function(d){return a(d,u)}},function(r,o,t){var a=t(19);r.exports=function(u,d,c,p){p&&p.enumerable?u[d]=c:a(u,d,c)}},function(r,o,t){t(173);var a=t(174),u=t(8),d=t(65),c=t(19),p=t(43),m=t(10)("toStringTag");for(var h in a){var b=u[h],y=b&&b.prototype;y&&d(y)!==m&&c(y,m,h),p[h]=p.Array}},function(r,o,t){var a=t(33);r.exports=Array.isArray||function(u){return a(u)=="Array"}},function(r,o,t){var a=t(11),u=t(10),d=t(86),c=u("species");r.exports=function(p){return d>=51||!a(function(){var m=[];return(m.constructor={})[c]=function(){return{foo:1}},m[p](Boolean).foo!==1})}},function(r,o,t){r.exports=t(222)},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.ListHandle=void 0;var a=t(2).__importDefault(t(373)),u=function(){function d(c){this.options=c,this.selectionRangeElem=new a.default}return d}();o.ListHandle=u},function(r,o,t){var a={}.propertyIsEnumerable,u=Object.getOwnPropertyDescriptor,d=u&&!a.call({1:2},1);o.f=d?function(c){var p=u(this,c);return!!p&&p.enumerable}:a},function(r,o,t){var a=t(13);r.exports=function(u,d){if(!a(u))return u;var c,p;if(d&&typeof(c=u.toString)=="function"&&!a(p=c.call(u))||typeof(c=u.valueOf)=="function"&&!a(p=c.call(u))||!d&&typeof(c=u.toString)=="function"&&!a(p=c.call(u)))return p;throw TypeError("Can't convert object to primitive value")}},function(r,o){},function(r,o){var t=Math.ceil,a=Math.floor;r.exports=function(u){return isNaN(u=+u)?0:(u>0?a:t)(u)}},function(r,o,t){var a=t(74),u=t(64),d=a("keys");r.exports=function(c){return d[c]||(d[c]=u(c))}},function(r,o){var t=0,a=Math.random();r.exports=function(u){return"Symbol("+String(u===void 0?"":u)+")_"+(++t+a).toString(36)}},function(r,o,t){var a=t(81),u=t(33),d=t(10)("toStringTag"),c=u(function(){return arguments}())=="Arguments",p=function(m,h){try{return m[h]}catch{}};r.exports=a?u:function(m){var h,b,y;return m===void 0?"Undefined":m===null?"Null":typeof(b=p(h=Object(m),d))=="string"?b:c?u(h):(y=u(h))=="Object"&&typeof h.callee=="function"?"Arguments":y}},function(r,o,t){var a=t(25),u=t(111),d=t(34),c=t(39),p=t(112),m=t(113),h=function(y,v){this.stopped=y,this.result=v},b=r.exports=function(y,v,w,x,_){var g,C,k,A,S,M,I,N=c(v,w,x?2:1);if(_)g=y;else{if(typeof(C=p(y))!="function")throw TypeError("Target is not iterable");if(u(C)){for(k=0,A=d(y.length);A>k;k++)if((S=x?N(a(I=y[k])[0],I[1]):N(y[k]))&&S instanceof h)return S;return new h(!1)}g=C.call(y)}for(M=g.next;!(I=M.call(g)).done;)if(Dt(S=m(g,N,I.value,x))=="object"&&S&&S instanceof h)return S;return new h(!1)};b.stop=function(y){return new h(!0,y)}},function(r,o,t){var a=t(11);r.exports=function(u,d){var c=[][u];return!!c&&a(function(){c.call(null,d||function(){throw 1},1)})}},function(r,o){r.exports=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(r,o,t){var a=t(60),u=t(18),d=t(48);r.exports=function(c,p,m){var h=a(p);h in c?u.f(c,h,d(0,m)):c[h]=m}},function(r,o,t){r.exports=t(209)},function(r,o,t){var a=t(14),u=t(59),d=t(48),c=t(28),p=t(60),m=t(16),h=t(99),b=Object.getOwnPropertyDescriptor;o.f=a?b:function(y,v){if(y=c(y),v=p(v,!0),h)try{return b(y,v)}catch{}if(m(y,v))return d(!u.f.call(y,v),y[v])}},function(r,o,t){var a=t(11),u=t(33),d="".split;r.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return u(c)=="String"?d.call(c,""):Object(c)}:Object},function(r,o,t){var a=t(8),u=t(13),d=a.document,c=u(d)&&u(d.createElement);r.exports=function(p){return c?d.createElement(p):{}}},function(r,o,t){var a=t(42),u=t(102);(r.exports=function(d,c){return u[d]||(u[d]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.4",mode:a?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(r,o,t){var a=t(5),u=t(167),d=t(104),c=t(171),p=t(36),m=t(19),h=t(53),b=t(10),y=t(42),v=t(43),w=t(103),x=w.IteratorPrototype,_=w.BUGGY_SAFARI_ITERATORS,g=b("iterator"),C="keys",k="values",A="entries",S=function(){return this};r.exports=function(M,I,N,R,T,L,H){u(N,I,R);var P,j,z,Q=function(ue){if(ue===T&&re)return re;if(!_&&ue in K)return K[ue];switch(ue){case C:case k:case A:return function(){return new N(this,ue)}}return function(){return new N(this)}},q=I+" Iterator",W=!1,K=M.prototype,X=K[g]||K["@@iterator"]||T&&K[T],re=!_&&X||Q(T),pe=I=="Array"&&K.entries||X;if(pe&&(P=d(pe.call(new M)),x!==Object.prototype&&P.next&&(!y&&d(P)!==x&&(c?c(P,x):typeof P[g]!="function"&&m(P,g,S)),p(P,q,!0,!0),y&&(v[q]=S))),T==k&&X&&X.name!==k&&(W=!0,re=function(){return X.call(this)}),(!y||H)&&K[g]!==re&&m(K,g,re),v[I]=re,T)if(j={values:Q(k),keys:L?re:Q(C),entries:Q(A)},H)for(z in j)(_||W||!(z in K))&&h(K,z,j[z]);else a({target:I,proto:!0,forced:_||W},j);return j}},function(r,o,t){var a=t(11);r.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},function(r,o,t){var a,u=t(25),d=t(169),c=t(80),p=t(51),m=t(107),h=t(73),b=t(63),y=">",v="<",w="prototype",x="script",_=b("IE_PROTO"),g=function(){},C=function(M){return v+x+y+M+v+"/"+x+y},k=function(M){M.write(C("")),M.close();var I=M.parentWindow.Object;return M=null,I},A=function(){var M,I=h("iframe"),N="java"+x+":";return I.style.display="none",m.appendChild(I),I.src=String(N),(M=I.contentWindow.document).open(),M.write(C("document.F=Object")),M.close(),M.F},S=function(){try{a=document.domain&&new ActiveXObject("htmlfile")}catch{}S=a?k(a):A();for(var M=c.length;M--;)delete S[w][c[M]];return S()};p[_]=!0,r.exports=Object.create||function(M,I){var N;return M!==null?(g[w]=u(M),N=new g,g[w]=null,N[_]=M):N=S(),I===void 0?N:d(N,I)}},function(r,o,t){var a=t(28),u=t(34),d=t(79),c=function(p){return function(m,h,b){var y,v=a(m),w=u(v.length),x=d(b,w);if(p&&h!=h){for(;w>x;)if((y=v[x++])!=y)return!0}else for(;w>x;x++)if((p||x in v)&&v[x]===h)return p||x||0;return!p&&-1}};r.exports={includes:c(!0),indexOf:c(!1)}},function(r,o,t){var a=t(62),u=Math.max,d=Math.min;r.exports=function(c,p){var m=a(c);return m<0?u(m+p,0):d(m,p)}},function(r,o){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,o,t){var a={};a[t(10)("toStringTag")]="z",r.exports=String(a)==="[object z]"},function(r,o){r.exports=function(){}},function(r,o){r.exports=function(t,a,u){if(!(t instanceof a))throw TypeError("Incorrect "+(u?u+" ":"")+"invocation");return t}},function(r,o,t){var a=t(35);r.exports=a("navigator","userAgent")||""},function(r,o,t){var a=t(40),u=function(d){var c,p;this.promise=new d(function(m,h){if(c!==void 0||p!==void 0)throw TypeError("Bad Promise constructor");c=m,p=h}),this.resolve=a(c),this.reject=a(p)};r.exports.f=function(d){return new u(d)}},function(r,o,t){var a,u,d=t(8),c=t(84),p=d.process,m=p&&p.versions,h=m&&m.v8;h?u=(a=h.split("."))[0]+a[1]:c&&(!(a=c.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=c.match(/Chrome\/(\d+)/))&&(u=a[1]),r.exports=u&&+u},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=t(6),h=c.__importDefault(t(267)),b=c.__importDefault(t(280)),y=c.__importDefault(t(281)),v=c.__importDefault(t(282)),w=c.__importDefault(t(301)),x=c.__importStar(t(416)),_=c.__importDefault(t(417)),g=c.__importDefault(t(418)),C=c.__importDefault(t(419)),k=c.__importStar(t(420)),A=c.__importDefault(t(423)),S=c.__importDefault(t(424)),M=c.__importDefault(t(425)),I=c.__importDefault(t(427)),N=c.__importDefault(t(437)),R=c.__importDefault(t(440)),T=c.__importStar(t(441)),L=c.__importDefault(t(23)),H=c.__importDefault(t(133)),P=c.__importDefault(t(24)),j=c.__importDefault(t(32)),z=c.__importDefault(t(37)),Q=c.__importDefault(t(38)),q=1,W=function(){function K(X,re){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+q++,this.toolbarSelector=X,this.textSelector=re,x.selectorValidator(this),this.config=m.deepClone(h.default),this.$toolbarElem=p.default("
    "),this.$textContainerElem=p.default("
    "),this.$textElem=p.default("
    "),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new b.default(this),this.cmd=new y.default(this),this.txt=new v.default(this),this.menus=new w.default(this),this.zIndex=new S.default,this.change=new M.default(this),this.history=new I.default(this),this.onSelectionChange=new R.default(this);var pe=N.default(this),ue=pe.disable,te=pe.enable;this.disable=ue,this.enable=te,this.isEnable=!0}return K.prototype.initSelection=function(X){_.default(this,X)},K.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),C.default(this),x.default(this),this.txt.init(),this.menus.init(),k.default(this),this.initSelection(!0),g.default(this),this.change.observe(),this.history.observe(),T.default(this)},K.prototype.beforeDestroy=function(X){return this.beforeDestroyHooks.push(X),this},K.prototype.destroy=function(){var X,re=this;(0,d.default)(X=this.beforeDestroyHooks).call(X,function(pe){return pe.call(re)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},K.prototype.fullScreen=function(){k.setFullScreen(this)},K.prototype.unFullScreen=function(){k.setUnFullScreen(this)},K.prototype.scrollToHead=function(X){A.default(this,X)},K.registerMenu=function(X,re){!re||typeof re!="function"||(K.globalCustomMenuConstructorList[X]=re)},K.prototype.registerPlugin=function(X,re){T.registerPlugin(X,re,this.pluginsFunctionList)},K.registerPlugin=function(X,re){T.registerPlugin(X,re,K.globalPluginsFunctionList)},K.$=p.default,K.BtnMenu=L.default,K.DropList=H.default,K.DropListMenu=P.default,K.Panel=j.default,K.PanelMenu=z.default,K.Tooltip=Q.default,K.globalCustomMenuConstructorList={},K.globalPluginsFunctionList={},K}();o.default=W},function(r,o,t){var a=t(13),u=t(55),d=t(10)("species");r.exports=function(c,p){var m;return u(c)&&(typeof(m=c.constructor)!="function"||m!==Array&&!u(m.prototype)?a(m)&&(m=m[d])===null&&(m=void 0):m=void 0),new(m===void 0?Array:m)(p===0?0:p)}},function(r,o,t){r.exports=t(185)},function(r,o,t){var a=t(49),u="["+t(68)+"]",d=RegExp("^"+u+u+"*"),c=RegExp(u+u+"*$"),p=function(m){return function(h){var b=String(a(h));return 1&m&&(b=b.replace(d,"")),2&m&&(b=b.replace(c,"")),b}};r.exports={start:p(1),end:p(2),trim:p(3)}},function(r,o,t){r.exports=t(205)},function(r,o,t){var a=t(227),u=t(230);function d(c){return r.exports=d=typeof u=="function"&&typeof a=="symbol"?function(p){return typeof p}:function(p){return p&&typeof u=="function"&&p.constructor===u&&p!==u.prototype?"symbol":typeof p},d(c)}r.exports=d},function(r,o,t){var a=t(10);o.f=a},function(r,o,t){r.exports=t(306)},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2).__importDefault(t(32)),p=function(){function m(h,b){var y=this;this.$elem=h,this.editor=b,this._active=!1,h.on("click",function(v){var w;c.default.hideCurAllPanels(),(0,d.default)(w=b.txt.eventHooks.menuClickEvents).call(w,function(x){return x()}),v.stopPropagation(),b.selection.getRange()!=null&&y.clickHandler(v)})}return m.prototype.clickHandler=function(h){},m.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},m.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,u.default)(m.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),m}();o.default=p},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(57)),c=a(t(4)),p=a(t(27));(0,u.default)(o,"__esModule",{value:!0});var m=t(2),h=t(6),b=m.__importDefault(t(135)),y=m.__importDefault(t(136)),v=function(){function w(x){this.editor=x}return w.prototype.insertImg=function(x,_,g){var C=this.editor,k=C.config,A="validate.",S=function(R,T){return T===void 0&&(T=A),C.i18next.t(T+R)},M=_?'alt="'+_+'" ':"",I=g?'data-href="'+encodeURIComponent(g)+'" ':"";C.cmd.do("insertHTML",''),k.linkImgCallback(x,_,g);var N=document.createElement("img");N.onload=function(){N=null},N.onerror=function(){k.customAlert(S("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"),"error","wangEditor: "+S("\u63D2\u5165\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+S("\u56FE\u7247\u94FE\u63A5")+' "'+x+'"\uFF0C'+S("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),N=null},N.onabort=function(){return N=null},N.src=x},w.prototype.uploadImg=function(x){var _=this;if(x.length){var g=this.editor,C=g.config,k="validate.",A=function(oe){return g.i18next.t(k+oe)},S=C.uploadImgServer,M=C.uploadImgShowBase64,I=C.uploadImgMaxSize,N=I/1024/1024,R=C.uploadImgMaxLength,T=C.uploadFileName,L=C.uploadImgParams,H=C.uploadImgParamsWithUrl,P=C.uploadImgHeaders,j=C.uploadImgHooks,z=C.uploadImgTimeout,Q=C.withCredentials,q=C.customUploadImg;if(q||S||M){var W,K=[],X=[];if(h.arrForEach(x,function(oe){if(oe){var Z=oe.name||oe.type.replace("/","."),se=oe.size;if(Z&&se){var Ee=g.config.uploadImgAccept.join("|");if(new RegExp(".("+Ee+")$","i").test(Z)===!1)return void X.push("\u3010"+Z+"\u3011"+A("\u4E0D\u662F\u56FE\u7247"));if(IR)return void C.customAlert(A("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+R+A("\u5F20\u56FE\u7247"),"warning");if(q&&typeof q=="function")return void q(K,(0,d.default)(W=this.insertImg).call(W,this));var re=new FormData;if((0,c.default)(K).call(K,function(oe,Z){var se=T||oe.name;K.length>1&&(se+=Z+1),re.append(se,oe)}),S){var pe=S.split("#");S=pe[0];var ue=pe[1]||"";(0,c.default)(h).call(h,L,function(oe,Z){H&&((0,p.default)(S).call(S,"?")>0?S+="&":S+="?",S=S+oe+"="+Z),re.append(oe,Z)}),ue&&(S+="#"+ue);var te=b.default(S,{timeout:z,formData:re,headers:P,withCredentials:!!Q,beforeSend:function(oe){if(j.before)return j.before(oe,g,K)},onTimeout:function(oe){C.customAlert(A("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),j.timeout&&j.timeout(oe,g)},onProgress:function(oe,Z){var se=new y.default(g);Z.lengthComputable&&(oe=Z.loaded/Z.total,se.show(oe))},onError:function(oe){C.customAlert(A("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",A("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+A("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+oe.status),j.error&&j.error(oe,g)},onFail:function(oe,Z){C.customAlert(A("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",A("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+A("\u8FD4\u56DE\u7ED3\u679C")+": "+Z),j.fail&&j.fail(oe,g,Z)},onSuccess:function(oe,Z){if(j.customInsert){var se;j.customInsert((0,d.default)(se=_.insertImg).call(se,_),Z,g)}else{if(Z.errno!="0")return C.customAlert(A("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",A("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+A("\u8FD4\u56DE\u7ED3\u679C")+" errno="+Z.errno),void(j.fail&&j.fail(oe,g,Z));var Ee=Z.data;(0,c.default)(Ee).call(Ee,function(_e){typeof _e=="string"?_.insertImg(_e):_.insertImg(_e.url,_e.alt,_e.href)}),j.success&&j.success(oe,g,Z)}}});return void(typeof te=="string"&&C.customAlert(te,"error"))}M&&h.arrForEach(x,function(oe){var Z=_,se=new FileReader;se.readAsDataURL(oe),se.onload=function(){if(this.result){var Ee=this.result.toString();Z.insertImg(Ee,Ee)}}})}}},w}();o.default=v},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(410)),c=a(t(4)),p=a(t(45));function m(w){return!!w.length&&w.attr("class")==="w-e-todo"}function h(w){var x=w.selection.getSelectionRangeTopNodes();if(x.length!==0)return(0,d.default)(x).call(x,function(_){return m(_)})}function b(w,x,_){var g;if(w.hasChildNodes()){var C=w.cloneNode(),k=!1;x.nodeValue===""&&(k=!0);var A=[];return(0,c.default)(g=w.childNodes).call(g,function(S){if(!y(S,x)&&k&&(C.appendChild(S.cloneNode(!0)),S.nodeName!=="BR"&&A.push(S)),y(S,x)){if(S.nodeType===1){var M=b(S,x,_);M&&M.textContent!==""&&(C==null||C.appendChild(M))}if(S.nodeType===3&&x.isEqualNode(S)){var I=v(S,_);C.textContent=I}k=!0}}),(0,c.default)(A).call(A,function(S){S.remove()}),C}}function y(w,x){return w.nodeType===3?w.nodeValue===x.nodeValue:w.contains(x)}function v(w,x,_){_===void 0&&(_=!0);var g=w.nodeValue,C=g==null?void 0:(0,p.default)(g).call(g,0,x);if(g=g==null?void 0:(0,p.default)(g).call(g,x),!_){var k=g;g=C,C=k}return w.nodeValue=C,g}(0,u.default)(o,"__esModule",{value:!0}),o.dealTextNode=o.isAllTodo=o.isTodo=o.getCursorNextNode=void 0,o.isTodo=m,o.isAllTodo=h,o.getCursorNextNode=b,o.dealTextNode=v},function(r,o,t){var a=t(0)(t(1));(0,a.default)(o,"__esModule",{value:!0});var u=t(430),d=function(){function c(p){this.maxSize=p,this.isRe=!1,this.data=new u.CeilStack(p),this.revokeData=new u.CeilStack(p)}return(0,a.default)(c.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),c.prototype.resetMaxSize=function(p){this.data.resetMax(p),this.revokeData.resetMax(p)},c.prototype.save=function(p){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(p),this},c.prototype.revoke=function(p){!this.isRe&&(this.isRe=!0);var m=this.data.outstack();return!!m&&(this.revokeData.instack(m),p(m),!0)},c.prototype.restore=function(p){!this.isRe&&(this.isRe=!0);var m=this.revokeData.outstack();return!!m&&(this.data.instack(m),p(m),!0)},c}();o.default=d},function(r,o,t){var a=t(14),u=t(11),d=t(73);r.exports=!a&&!u(function(){return Object.defineProperty(d("div"),"a",{get:function(){return 7}}).a!=7})},function(r,o,t){var a=t(11),u=/#|\.prototype\./,d=function(b,y){var v=p[c(b)];return v==h||v!=m&&(typeof y=="function"?a(y):!!y)},c=d.normalize=function(b){return String(b).replace(u,".").toLowerCase()},p=d.data={},m=d.NATIVE="N",h=d.POLYFILL="P";r.exports=d},function(r,o,t){var a=t(102),u=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(d){return u.call(d)}),r.exports=a.inspectSource},function(r,o,t){var a=t(8),u=t(166),d="__core-js_shared__",c=a[d]||u(d,{});r.exports=c},function(r,o,t){var a,u,d,c=t(104),p=t(19),m=t(16),h=t(10),b=t(42),y=h("iterator"),v=!1,w=function(){return this};[].keys&&("next"in(d=[].keys())?(u=c(c(d)))!==Object.prototype&&(a=u):v=!0),a==null&&(a={}),!b&&!m(a,y)&&p(a,y,w),r.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:v}},function(r,o,t){var a=t(16),u=t(29),d=t(63),c=t(168),p=d("IE_PROTO"),m=Object.prototype;r.exports=c?Object.getPrototypeOf:function(h){return h=u(h),a(h,p)?h[p]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?m:null}},function(r,o,t){var a=t(76);r.exports=a&&!Symbol.sham&&Dt(Symbol.iterator)=="symbol"},function(r,o,t){var a=t(16),u=t(28),d=t(78).indexOf,c=t(51);r.exports=function(p,m){var h,b=u(p),y=0,v=[];for(h in b)!a(c,h)&&a(b,h)&&v.push(h);for(;m.length>y;)a(b,h=m[y++])&&(~d(v,h)||v.push(h));return v}},function(r,o,t){var a=t(35);r.exports=a("document","documentElement")},function(r,o,t){var a=t(8);r.exports=a.Promise},function(r,o,t){var a=t(53);r.exports=function(u,d,c){for(var p in d)c&&c.unsafe&&u[p]?u[p]=d[p]:a(u,p,d[p],c);return u}},function(r,o,t){var a=t(35),u=t(18),d=t(10),c=t(14),p=d("species");r.exports=function(m){var h=a(m),b=u.f;c&&h&&!h[p]&&b(h,p,{configurable:!0,get:function(){return this}})}},function(r,o,t){var a=t(10),u=t(43),d=a("iterator"),c=Array.prototype;r.exports=function(p){return p!==void 0&&(u.Array===p||c[d]===p)}},function(r,o,t){var a=t(65),u=t(43),d=t(10)("iterator");r.exports=function(c){if(c!=null)return c[d]||c["@@iterator"]||u[a(c)]}},function(r,o,t){var a=t(25);r.exports=function(u,d,c,p){try{return p?d(a(c)[0],c[1]):d(c)}catch(h){var m=u.return;throw m!==void 0&&a(m.call(u)),h}}},function(r,o,t){var a=t(10)("iterator"),u=!1;try{var d=0,c={next:function(){return{done:!!d++}},return:function(){u=!0}};c[a]=function(){return this},Array.from(c,function(){throw 2})}catch{}r.exports=function(p,m){if(!m&&!u)return!1;var h=!1;try{var b={};b[a]=function(){return{next:function(){return{done:h=!0}}}},p(b)}catch{}return h}},function(r,o,t){var a=t(25),u=t(40),d=t(10)("species");r.exports=function(c,p){var m,h=a(c).constructor;return h===void 0||(m=a(h)[d])==null?p:u(m)}},function(r,o,t){var a,u,d,c=t(8),p=t(11),m=t(33),h=t(39),b=t(107),y=t(73),v=t(117),w=c.location,x=c.setImmediate,_=c.clearImmediate,g=c.process,C=c.MessageChannel,k=c.Dispatch,A=0,S={},M="onreadystatechange",I=function(L){if(S.hasOwnProperty(L)){var H=S[L];delete S[L],H()}},N=function(L){return function(){I(L)}},R=function(L){I(L.data)},T=function(L){c.postMessage(L+"",w.protocol+"//"+w.host)};(!x||!_)&&(x=function(L){for(var H=[],P=1;arguments.length>P;)H.push(arguments[P++]);return S[++A]=function(){(typeof L=="function"?L:Function(L)).apply(void 0,H)},a(A),A},_=function(L){delete S[L]},m(g)=="process"?a=function(L){g.nextTick(N(L))}:k&&k.now?a=function(L){k.now(N(L))}:C&&!v?(d=(u=new C).port2,u.port1.onmessage=R,a=h(d.postMessage,d,1)):!c.addEventListener||typeof postMessage!="function"||c.importScripts||p(T)||w.protocol==="file:"?a=M in y("script")?function(L){b.appendChild(y("script"))[M]=function(){b.removeChild(this),I(L)}}:function(L){setTimeout(N(L),0)}:(a=T,c.addEventListener("message",R,!1))),r.exports={set:x,clear:_}},function(r,o,t){var a=t(84);r.exports=/(iphone|ipod|ipad).*applewebkit/i.test(a)},function(r,o,t){var a=t(25),u=t(13),d=t(85);r.exports=function(c,p){if(a(c),u(p)&&p.constructor===c)return p;var m=d.f(c);return(0,m.resolve)(p),m.promise}},function(r,o){r.exports=function(t){try{return{error:!1,value:t()}}catch(a){return{error:!0,value:a}}}},function(r,o,t){r.exports=t(197)},function(r,o,t){var a=t(5),u=t(8),d=t(122),c=t(11),p=t(19),m=t(66),h=t(83),b=t(13),y=t(36),v=t(18).f,w=t(30).forEach,x=t(14),_=t(41),g=_.set,C=_.getterFor;r.exports=function(k,A,S){var M,I=k.indexOf("Map")!==-1,N=k.indexOf("Weak")!==-1,R=I?"set":"add",T=u[k],L=T&&T.prototype,H={};if(x&&typeof T=="function"&&(N||L.forEach&&!c(function(){new T().entries().next()}))){M=A(function(j,z){g(h(j,M,k),{type:k,collection:new T}),z!=null&&m(z,j[R],j,I)});var P=C(k);w(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(j){var z=j=="add"||j=="set";j in L&&(!N||j!="clear")&&p(M.prototype,j,function(Q,q){var W=P(this).collection;if(!z&&N&&!b(Q))return j=="get"&&void 0;var K=W[j](Q===0?0:Q,q);return z?this:K})}),N||v(M.prototype,"size",{configurable:!0,get:function(){return P(this).collection.size}})}else M=S.getConstructor(A,k,I,R),d.REQUIRED=!0;return y(M,k,!1,!0),H[k]=M,a({global:!0,forced:!0},H),N||S.setStrong(M,k,I),M}},function(r,o,t){var a=t(51),u=t(13),d=t(16),c=t(18).f,p=t(64),m=t(200),h=p("meta"),b=0,y=Object.isExtensible||function(){return!0},v=function(C){c(C,h,{value:{objectID:"O"+ ++b,weakData:{}}})},w=function(C,k){if(!u(C))return Dt(C)=="symbol"?C:(typeof C=="string"?"S":"P")+C;if(!d(C,h)){if(!y(C))return"F";if(!k)return"E";v(C)}return C[h].objectID},x=function(C,k){if(!d(C,h)){if(!y(C))return!0;if(!k)return!1;v(C)}return C[h].weakData},_=function(C){return m&&g.REQUIRED&&y(C)&&!d(C,h)&&v(C),C},g=r.exports={REQUIRED:!1,fastKey:w,getWeakData:x,onFreeze:_};a[h]=!0},function(r,o,t){var a=t(18).f,u=t(77),d=t(109),c=t(39),p=t(83),m=t(66),h=t(75),b=t(110),y=t(14),v=t(122).fastKey,w=t(41),x=w.set,_=w.getterFor;r.exports={getConstructor:function(g,C,k,A){var S=g(function(R,T){p(R,S,C),x(R,{type:C,index:u(null),first:void 0,last:void 0,size:0}),y||(R.size=0),T!=null&&m(T,R[A],R,k)}),M=_(C),I=function(R,T,L){var H,P,j=M(R),z=N(R,T);return z?z.value=L:(j.last=z={index:P=v(T,!0),key:T,value:L,previous:H=j.last,next:void 0,removed:!1},j.first||(j.first=z),H&&(H.next=z),y?j.size++:R.size++,P!=="F"&&(j.index[P]=z)),R},N=function(R,T){var L,H=M(R),P=v(T);if(P!=="F")return H.index[P];for(L=H.first;L;L=L.next)if(L.key==T)return L};return d(S.prototype,{clear:function(){for(var R=this,T=M(R),L=T.index,H=T.first;H;)H.removed=!0,H.previous&&(H.previous=H.previous.next=void 0),delete L[H.index],H=H.next;T.first=T.last=void 0,y?T.size=0:R.size=0},delete:function(R){var T=this,L=M(T),H=N(T,R);if(H){var P=H.next,j=H.previous;delete L.index[H.index],H.removed=!0,j&&(j.next=P),P&&(P.previous=j),L.first==H&&(L.first=P),L.last==H&&(L.last=j),y?L.size--:T.size--}return!!H},forEach:function(R){for(var T,L=M(this),H=c(R,arguments.length>1?arguments[1]:void 0,3);T=T?T.next:L.first;)for(H(T.value,T.key,this);T&&T.removed;)T=T.previous},has:function(R){return!!N(this,R)}}),d(S.prototype,k?{get:function(R){var T=N(this,R);return T&&T.value},set:function(R,T){return I(this,R===0?0:R,T)}}:{add:function(R){return I(this,R=R===0?0:R,R)}}),y&&a(S.prototype,"size",{get:function(){return M(this).size}}),S},setStrong:function(g,C,k){var A=C+" Iterator",S=_(C),M=_(A);h(g,C,function(I,N){x(this,{type:A,target:I,state:S(I),kind:N,last:void 0})},function(){for(var I=M(this),N=I.kind,R=I.last;R&&R.removed;)R=R.previous;return I.target&&(I.last=R=R?R.next:I.state.first)?N=="keys"?{value:R.key,done:!1}:N=="values"?{value:R.value,done:!1}:{value:[R.key,R.value],done:!1}:(I.target=void 0,{value:void 0,done:!0})},k?"entries":"values",!k,!0),b(C)}}},function(r,o,t){t(12)("iterator")},function(r,o,t){var a=t(106),u=t(80).concat("length","prototype");o.f=Object.getOwnPropertyNames||function(d){return a(d,u)}},function(r,o){o.f=Object.getOwnPropertySymbols},function(r,o,t){r.exports=t(268)},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default={zIndex:1e4}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default={focus:!0,height:300,placeholder:"\u8BF7\u8F93\u5165\u6B63\u6587",zIndexFullScreen:10002,showFullScreen:!0}},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0}),o.getPasteImgs=o.getPasteHtml=o.getPasteText=void 0;var c=t(2),p=t(6),m=c.__importDefault(t(292));function h(v){var w=v.clipboardData,x="";return x=w==null?window.clipboardData&&window.clipboardData.getData("text"):w.getData("text/plain"),p.replaceHtmlSymbol(x)}function b(v,w,x){w===void 0&&(w=!0),x===void 0&&(x=!1);var _=v.clipboardData,g="";if(_&&(g=_.getData("text/html")),!g){var C=h(v);if(!C)return"";g="

    "+C+"

    "}return g=(g=g.replace(/<(\d)/gm,function(k,A){return"<"+A})).replace(/<(\/?meta.*?)>/gim,""),g=m.default(g,w,x)}function y(v){var w,x=[];if(h(v))return x;var _=(w=v.clipboardData)===null||w===void 0?void 0:w.items;return _&&(0,d.default)(p).call(p,_,function(g,C){var k=C.type;/image/i.test(k)&&x.push(C.getAsFile())}),x}o.getPasteText=h,o.getPasteHtml=b,o.getPasteImgs=y},function(r,o,t){r.exports=t(294)},function(r,o,t){r.exports=t(310)},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4)),c=a(t(46));(0,u.default)(o,"__esModule",{value:!0});var p=t(2).__importDefault(t(3)),m=t(7),h=function(){function b(y,v){var w=this;this.hideTimeoutId=0,this.menu=y,this.conf=v;var x=p.default('
    '),_=p.default("

    "+v.title+"

    ");_.addClass("w-e-dp-title"),x.append(_);var g=v.list||[],C=v.type||"list",k=v.clickHandler||m.EMPTY_FN,A=p.default('
      ');(0,d.default)(g).call(g,function(S){var M=S.$elem,I=S.value,N=p.default('
    • ');M&&(N.append(M),A.append(N),N.on("click",function(R){k(I),R.stopPropagation(),w.hideTimeoutId=(0,c.default)(function(){w.hide()})}))}),x.append(A),x.on("mouseleave",function(){w.hideTimeoutId=(0,c.default)(function(){w.hide()})}),this.$container=x,this.rendered=!1,this._show=!1}return b.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var y=this.menu.$elem,v=this.$container;if(!this._show){if(this.rendered)v.show();else{var w=y.getBoundingClientRect().height||0,x=this.conf.width||100;v.css("margin-top",w+"px").css("width",x+"px"),y.append(v),this.rendered=!0}this._show=!0}},b.prototype.hide=function(){var y=this.$container;!this._show||(y.hide(),this._show=!1)},(0,u.default)(b.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),b}();o.default=h},function(r,o,t){function a(u){var d=u.selection.getSelectionContainerElem();return!(d==null||!d.length)&&d.getNodeName()==="A"}(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default=a},function(r,o,t){var a=t(0),u=a(t(92)),d=a(t(1)),c=a(t(4));(0,d.default)(o,"__esModule",{value:!0});var p=t(6);function m(h,b){var y=new XMLHttpRequest;if(y.open("POST",h),y.timeout=b.timeout||1e4,y.ontimeout=function(){b.onTimeout&&b.onTimeout(y)},y.upload&&(y.upload.onprogress=function(w){var x=w.loaded/w.total;b.onProgress&&b.onProgress(x,w)}),b.headers&&(0,c.default)(p).call(p,b.headers,function(w,x){y.setRequestHeader(w,x)}),y.withCredentials=!!b.withCredentials,b.beforeSend){var v=b.beforeSend(y);if(v&&(0,u.default)(v)==="object"&&v.prevent)return v.msg}return y.onreadystatechange=function(){if(y.readyState===4){var w=y.status;if(!(w<200||w>=300&&w<400)){if(w>=400)return void(b.onError&&b.onError(y));var x,_=y.responseText;if((0,u.default)(_)!=="object")try{x=JSON.parse(_)}catch{return void(b.onFail&&b.onFail(y,_))}else x=_;b.onSuccess(y,x)}}},y.send(b.formData||null),y}o.default=m},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(342)),c=a(t(46));(0,u.default)(o,"__esModule",{value:!0});var p=t(2).__importDefault(t(3)),m=function(){function h(b){this.editor=b,this.$textContainer=b.$textContainerElem,this.$bar=p.default('
      '),this.isShow=!1,this.time=0,this.timeoutId=0}return h.prototype.show=function(b){var y=this;if(!this.isShow){this.isShow=!0;var v=this.$bar;this.$textContainer.append(v),(0,d.default)()-this.time>100&&b<=1&&(v.css("width",100*b+"%"),this.time=(0,d.default)());var w=this.timeoutId;w&&clearTimeout(w),this.timeoutId=(0,c.default)(function(){y.hide()},500)}},h.prototype.hide=function(){this.$bar.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},h}();o.default=m},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.ListType=void 0;var a,u,d=t(2),c=d.__importDefault(t(3)),p=d.__importDefault(t(24)),m=t(47),h=d.__importStar(t(371));(u=a=o.ListType||(o.ListType={})).OrderedList="OL",u.UnorderedList="UL";var b=function(y){function v(w){var x=this,_=c.default(`
      `),g={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:c.default(`

      `+w.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`

      `),value:a.UnorderedList},{$elem:c.default(`

      `+w.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`

      `),value:a.OrderedList}],clickHandler:function(C){x.command(C)}};return x=y.call(this,_,w,g)||this}return d.__extends(v,y),v.prototype.command=function(w){this.editor.selection.getSelectionContainerElem()!==void 0&&(this.handleSelectionRangeNodes(w),this.tryChangeActive())},v.prototype.validator=function(w,x,_){return!(!w.length||!x.length||_.equal(w)||_.equal(x))},v.prototype.handleSelectionRangeNodes=function(w){var x=this.editor,_=x.selection,g=w.toLowerCase(),C=_.getSelectionContainerElem(),k=_.getSelectionStartElem().getNodeTop(x),A=_.getSelectionEndElem().getNodeTop(x);if(this.validator(k,A,x.$textElem)){var S=_.getRange(),M=S==null?void 0:S.collapsed;x.$textElem.equal(C)||(C=C.getNodeTop(x));var I,N={editor:x,listType:w,listTarget:g,$selectionElem:C,$startElem:k,$endElem:A};I=this.isOrderElem(C)?h.ClassType.Wrap:this.isOrderElem(k)&&this.isOrderElem(A)?h.ClassType.Join:this.isOrderElem(k)?h.ClassType.StartJoin:this.isOrderElem(A)?h.ClassType.EndJoin:h.ClassType.Other;var R=new h.default(h.createListHandle(I,N,S));m.updateRange(x,R.getSelectionRangeElem(),!!M)}},v.prototype.isOrderElem=function(w){var x=w.getNodeName();return x===a.OrderedList||x===a.UnorderedList},v.prototype.tryChangeActive=function(){},v}(p.default);o.default=b},function(r,o,t){r.exports=t(395)},function(r,o,t){function a(u){var d=u.selection.getSelectionContainerElem();return!(d==null||!d.length||d.getNodeName()!="CODE"&&d.getNodeName()!="PRE"&&d.parent().getNodeName()!="CODE"&&d.parent().getNodeName()!="PRE"&&!/hljs/.test(d.parent().attr("class")))}(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default=a},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(31));(0,u.default)(o,"__esModule",{value:!0}),o.todo=void 0;var c=t(2).__importDefault(t(3)),p=function(){function h(b){var y;this.template='

      ',this.checked=!1,this.$todo=c.default(this.template),this.$child=(y=b==null?void 0:b.childNodes())===null||y===void 0?void 0:y.clone(!0)}return h.prototype.init=function(){var b=this.$child,y=this.getInputContainer();b&&b.insertAfter(y)},h.prototype.getInput=function(){var b=this.$todo;return(0,d.default)(b).call(b,"input")},h.prototype.getInputContainer=function(){return this.getInput().parent()},h.prototype.getTodo=function(){return this.$todo},h}();function m(h){var b=new p(h);return b.init(),b}o.todo=p,o.default=m},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2);t(146),t(148),t(152),t(154),t(156),t(158),t(160);var u=a.__importDefault(t(87));a.__exportStar(t(442),o),o.default=u.default},function(r,o,t){var a=t(143);r.exports=a},function(r,o,t){t(144);var a=t(9).Object,u=r.exports=function(d,c,p){return a.defineProperty(d,c,p)};a.defineProperty.sham&&(u.sham=!0)},function(r,o,t){var a=t(5),u=t(14);a({target:"Object",stat:!0,forced:!u,sham:!u},{defineProperty:t(18).f})},function(r,o){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{(typeof window>"u"?"undefined":Dt(window))==="object"&&(t=window)}r.exports=t},function(r,o,t){var a=t(20),u=t(147);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-toolbar, .w-e-text-container, .w-e-menu-panel { padding: 0; margin: 0; box-sizing: border-box; background-color: #fff; /*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/ /*\u5206\u5272\u7EBF\u6837\u5F0F*/ } .w-e-toolbar h1, .w-e-text-container h1, .w-e-menu-panel h1 { font-size: 32px !important; } .w-e-toolbar h2, .w-e-text-container h2, .w-e-menu-panel h2 { font-size: 24px !important; } .w-e-toolbar h3, .w-e-text-container h3, .w-e-menu-panel h3 { font-size: 18.72px !important; } .w-e-toolbar h4, .w-e-text-container h4, .w-e-menu-panel h4 { font-size: 16px !important; } .w-e-toolbar h5, .w-e-text-container h5, .w-e-menu-panel h5 { font-size: 13.28px !important; } .w-e-toolbar p, .w-e-text-container p, .w-e-menu-panel p { font-size: 16px !important; } .w-e-toolbar .eleImg, .w-e-text-container .eleImg, .w-e-menu-panel .eleImg { cursor: pointer; display: inline-block; font-size: 18px; padding: 0 3px; } .w-e-toolbar *, .w-e-text-container *, .w-e-menu-panel * { padding: 0; margin: 0; box-sizing: border-box; } .w-e-toolbar hr, .w-e-text-container hr, .w-e-menu-panel hr { cursor: pointer; display: block; height: 0px; border: 0; border-top: 3px solid #ccc; margin: 20px 0; } .w-e-clear-fix:after { content: ""; display: table; clear: both; } .w-e-drop-list-item { position: relative; top: 1px; padding-right: 7px; color: #333 !important; } .w-e-drop-list-tl { padding-left: 10px; text-align: left; } `,""]),r.exports=o},function(r,o,t){var a=t(20),u=t(149);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){var a=t(21),u=t(150),d=t(151);o=a(!1);var c=u(d);o.push([r.i,`@font-face { font-family: 'w-e-icon'; src: url(`+c+`) format('truetype'); font-weight: normal; font-style: normal; } [class^="w-e-icon-"], [class*=" w-e-icon-"] { /* use !important to prevent issues with browser extensions that change fonts */ font-family: 'w-e-icon' !important; speak: none; font-style: normal; font-weight: normal; font-variant: normal; text-transform: none; line-height: 1; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .w-e-icon-close:before { content: "\\f00d"; } .w-e-icon-upload2:before { content: "\\e9c6"; } .w-e-icon-trash-o:before { content: "\\f014"; } .w-e-icon-header:before { content: "\\f1dc"; } .w-e-icon-pencil2:before { content: "\\e906"; } .w-e-icon-paint-brush:before { content: "\\f1fc"; } .w-e-icon-image:before { content: "\\e90d"; } .w-e-icon-play:before { content: "\\e912"; } .w-e-icon-location:before { content: "\\e947"; } .w-e-icon-undo:before { content: "\\e965"; } .w-e-icon-redo:before { content: "\\e966"; } .w-e-icon-quotes-left:before { content: "\\e977"; } .w-e-icon-list-numbered:before { content: "\\e9b9"; } .w-e-icon-list2:before { content: "\\e9bb"; } .w-e-icon-link:before { content: "\\e9cb"; } .w-e-icon-happy:before { content: "\\e9df"; } .w-e-icon-bold:before { content: "\\ea62"; } .w-e-icon-underline:before { content: "\\ea63"; } .w-e-icon-italic:before { content: "\\ea64"; } .w-e-icon-strikethrough:before { content: "\\ea65"; } .w-e-icon-table2:before { content: "\\ea71"; } .w-e-icon-paragraph-left:before { content: "\\ea77"; } .w-e-icon-paragraph-center:before { content: "\\ea78"; } .w-e-icon-paragraph-right:before { content: "\\ea79"; } .w-e-icon-paragraph-justify:before { content: "\\ea7a"; } .w-e-icon-terminal:before { content: "\\f120"; } .w-e-icon-page-break:before { content: "\\ea68"; } .w-e-icon-cancel-circle:before { content: "\\ea0d"; } .w-e-icon-font:before { content: "\\ea5c"; } .w-e-icon-text-heigh:before { content: "\\ea5f"; } .w-e-icon-paint-format:before { content: "\\e90c"; } .w-e-icon-indent-increase:before { content: "\\ea7b"; } .w-e-icon-indent-decrease:before { content: "\\ea7c"; } .w-e-icon-row-height:before { content: "\\e9be"; } .w-e-icon-fullscreen_exit:before { content: "\\e900"; } .w-e-icon-fullscreen:before { content: "\\e901"; } .w-e-icon-split-line:before { content: "\\ea0b"; } .w-e-icon-checkbox-checked:before { content: "\\ea52"; } `,""]),r.exports=o},function(r,o,t){r.exports=function(a,u){return u||(u={}),typeof(a=a&&a.__esModule?a.default:a)!="string"?a:(/^['"].*['"]$/.test(a)&&(a=a.slice(1,-1)),u.hash&&(a+=u.hash),/["'() \t\n]/.test(a)||u.needQuotes?'"'.concat(a.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):a)}},function(r,o,t){t.r(o),o.default="data:font/woff;base64,d09GRgABAAAAABskAAsAAAAAGtgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIPFWNtYXAAAAFoAAABHAAAARz2mfAgZ2FzcAAAAoQAAAAIAAAACAAAABBnbHlmAAACjAAAFXwAABV8IH7+mGhlYWQAABgIAAAANgAAADYb6gumaGhlYQAAGEAAAAAkAAAAJAkjBWlobXR4AAAYZAAAAKQAAACkmYcEbmxvY2EAABkIAAAAVAAAAFReAmKYbWF4cAAAGVwAAAAgAAAAIAA0ALZuYW1lAAAZfAAAAYYAAAGGmUoJ+3Bvc3QAABsEAAAAIAAAACAAAwAAAAMD7wGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA8fwDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAQAAAAA8ACAABAAcAAEAIOkB6QbpDekS6UfpZul36bnpu+m+6cbpy+nf6gvqDepS6lzqX+pl6nHqfPAN8BTxIPHc8fz//f//AAAAAAAg6QDpBukM6RLpR+ll6Xfpuem76b7pxunL6d/qC+oN6lLqXOpf6mLqcep38A3wFPEg8dzx/P/9//8AAf/jFwQXABb7FvcWwxamFpYWVRZUFlIWSxZHFjQWCRYIFcQVuxW5FbcVrBWnEBcQEQ8GDksOLAADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAAEAEEAAQO/A38ABQALABEAFwAAATMVIREzAxEhFSMVATUzESE1ETUhESM1Av/A/sJ+fgE+wP4Cfv7CAT5+Ar9+AT78ggE+fsACvsD+wn7+An7+wsAAAAAABABBAAEDvwN/AAUACwARABcAAAEhESM1IxM1MxEhNQERIRUjFREVMxUhEQKBAT5+wMB+/sL9wAE+wMD+wgN//sLA/X7A/sJ+AcIBPn7A/v7AfgE+AAAAAAIAAP/ABAADwAAEABMAAAE3AScBAy4BJxM3ASMBAyUBNQEHAYCAAcBA/kCfFzsyY4ABgMD+gMACgAGA/oBOAUBAAcBA/kD+nTI7FwERTgGA/oD9gMABgMD+gIAAAgAA/8AEAAOAACkALQAAAREjNTQmIyEiBh0BFBYzITI2PQEzESEVIyIGFREUFjsBMjY1ETQmKwE1ASE1IQQAwCYa/UAaJiYaAsAaJoD9wCANExMNgA0TEw0gAUD9QALAAYABgEAaJiYawBomJhpA/wCAEw3+wA0TEw0BQA0TQAGAQAAABAAAAAAEAAOAABAAIQAtADQAAAE4ATEROAExITgBMRE4ATEhNSEiBhURFBYzITI2NRE0JiMHFAYjIiY1NDYzMhYTITUTATM3A8D8gAOA/IAaJiYaA4AaJiYagDgoKDg4KCg4QP0A4AEAQOADQP0AAwBAJhr9ABomJhoDABom4Cg4OCgoODj9uIABgP7AwAAAAgAAAEAEAANAADgAPAAAASYnLgEnJiMiBw4BBwYHBgcOAQcGFRQXHgEXFhcWFx4BFxYzMjc+ATc2NzY3PgE3NjU0Jy4BJyYnARENAQPVNjg5djw9Pz89PHY5ODYLBwgLAwMDAwsIBws2ODl2PD0/Pz08djk4NgsHCAsDAwMDCwgHC/2rAUD+wAMgCAYGCAICAgIIBgYIKSoqWS0uLy8uLVkqKikIBgYIAgICAggGBggpKipZLS4vLy4tWSoqKf3gAYDAwAAAAAACAMD/wANAA8AAGwAnAAABIgcOAQcGFRQXHgEXFjEwNz4BNzY1NCcuAScmAyImNTQ2MzIWFRQGAgBCOzpXGRkyMngyMjIyeDIyGRlXOjtCUHBwUFBwcAPAGRlXOjtCeH19zEFBQUHMfX14Qjs6VxkZ/gBwUFBwcFBQcAAAAQAAAAAEAAOAACsAAAEiBw4BBwYHJxEhJz4BMzIXHgEXFhUUBw4BBwYHFzY3PgE3NjU0Jy4BJyYjAgA1MjJcKSkjlgGAkDWLUFBFRmkeHgkJIhgYHlUoICAtDAwoKIteXWoDgAoLJxscI5b+gJA0PB4eaUZFUCsoKUkgIRpgIysrYjY2OWpdXosoKAABAAAAAAQAA4AAKgAAExQXHgEXFhc3JicuAScmNTQ3PgE3NjMyFhcHIREHJicuAScmIyIHDgEHBgAMDC0gIChVHhgYIgkJHh5pRkVQUIs1kAGAliMpKVwyMjVqXV6LKCgBgDk2NmIrKyNgGiEgSSkoK1BFRmkeHjw0kAGAliMcGycLCigoi15dAAAAAAIAAABABAEDAAAmAE0AABMyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+ASEyFx4BFxYVFAcOAQcGIyInLgEnJjUnNDc+ATc2MxUiBgcOAQc+AeEuKSk9ERISET0pKS4uKSk9ERIBIyN6UlFdQHUtCRAHCBICSS4pKT0REhIRPSkpLi4pKT0REgEjI3pSUV1AdS0JEAcIEgIAEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBEhE9KSkuLikpPRESEhE9KSkuIF1RUnojI4AwLggTCgIBAAAGAED/wAQAA8AAAwAHAAsAEQAdACkAACUhFSERIRUhESEVIScRIzUjNRMVMxUjNTc1IzUzFRURIzUzNSM1MzUjNQGAAoD9gAKA/YACgP2AwEBAQIDAgIDAwICAgICAgAIAgAIAgMD/AMBA/fIyQJI8MkCS7v7AQEBAQEAABgAA/8AEAAPAAAMABwALABcAIwAvAAABIRUhESEVIREhFSEBNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYRNDYzMhYVFAYjIiYBgAKA/YACgP2AAoD9gP6ASzU1S0s1NUtLNTVLSzU1S0s1NUtLNTVLA4CA/wCA/wCAA0A1S0s1NUtL/rU1S0s1NUtL/rU1S0s1NUtLAAUAAABABWADAAADAAcACwAOABEAABMhFSEVIRUhFSEVIQEXNzUnBwADgPyAA4D8gAOA/IAD4MDAwMADAMBAwEDAAUDAwEDAwAAAAAADAAAAAAQAA6AAAwANABQAADchFSElFSE1EyEVITUhJQkBIxEjEQAEAPwABAD8AIABAAEAAQD9YAEgASDggEBAwEBAAQCAgMABIP7g/wABAAAAAAACAB7/zAPiA7QAMwBkAAABIiYnJicmNDc2PwE+ATMyFhcWFxYUBwYPAQYiJyY0PwE2NCcuASMiBg8BBhQXFhQHDgEjAyImJyYnJjQ3Nj8BNjIXFhQPAQYUFx4BMzI2PwE2NCcmNDc2MhcWFxYUBwYPAQ4BIwG4ChMIIxISEhIjwCNZMTFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PCBMKuDFZIyMSEhISI1gPLA8PD1gpKRQzHBwzFMApKQ8PDysQIxISEhIjwCNZMQFECAckLS1eLS0kwCIlJSIkLS1eLS0kVxAQDysPWCl0KRQVFRTAKXQpDysQBwj+iCUiJC0tXi0tJFcQEA8rD1gpdCkUFRUUwCl0KQ8rEA8PJC0tXi0tJMAiJQAAAAAFAAD/wAQAA8AAGwA3AFMAXwBrAAAFMjc+ATc2NTQnLgEnJiMiBw4BBwYVFBceARcWEzIXHgEXFhUUBw4BBwYjIicuAScmNTQ3PgE3NhMyNz4BNzY3BgcOAQcGIyInLgEnJicWFx4BFxYnNDYzMhYVFAYjIiYlNDYzMhYVFAYjIiYCAGpdXosoKCgoi15dampdXosoKCgoi15dalZMTHEgISEgcUxMVlZMTHEgISEgcUxMVisrKlEmJiMFHBtWODc/Pzc4VhscBSMmJlEqK9UlGxslJRsbJQGAJRsbJSUbGyVAKCiLXl1qal1eiygoKCiLXl1qal1eiygoA6AhIHFMTFZWTExxICEhIHFMTFZWTExxICH+CQYGFRAQFEM6OlYYGRkYVjo6QxQQEBUGBvcoODgoKDg4KCg4OCgoODgAAAEAAAFABAACQAAPAAATFRQWMyEyNj0BNCYjISIGABMNA8ANExMN/EANEwIgwA0TEw3ADRMTAAAAAwAA/8AEAAPAABsANwBDAAABIgcOAQcGFRQXHgEXFjMyNz4BNzY1NCcuAScmAyInLgEnJjU0Nz4BNzYzMhceARcWFRQHDgEHBhMHJwcXBxc3FzcnNwIAal1eiygoKCiLXl1qal1eiygoKCiLXl1qVkxMcSAhISBxTExWVkxMcSAhISBxTExKoKBgoKBgoKBgoKADwCgoi15dampdXosoKCgoi15dampdXosoKPxgISBxTExWVkxMcSAhISBxTExWVkxMcSAhAqCgoGCgoGCgoGCgoAACAAD/wAQAA8AADwAVAAABISIGFREUFjMhMjY1ETQmASc3FwEXA4D9ADVLSzUDADVLS/4L7VqTATNaA8BLNf0ANUtLNQMANUv85e5akgEyWgAAAAABAGX/wAObA8AAKQAAASImIyIHDgEHBhUUFjMuATU0NjcwBwYCBwYHFSETMzcjNx4BMzI2Nw4BAyBEaEZxU1RtGhtJSAYNZUoQEEs8PFkBPWzGLNc0LVUmLlAYHT0DsBAeHWE+P0FNOwsmN5lvA31+/sWPkCMZAgCA9gkPN2sJBwAAAAACAAAAAAQAA4AACQAXAAAlMwcnMxEjNxcjJREnIxEzFSE1MxEjBxEDgICgoICAoKCA/wBAwID+gIDAQMDAwAIAwMDA/wCA/UBAQALAgAEAAAMAwAAAA0ADgAAWAB8AKAAAAT4BNTQnLgEnJiMhESEyNz4BNzY1NCYBMzIWFRQGKwETIxEzMhYVFAYCxBwgFBRGLi81/sABgDUvLkYUFET+hGUqPDwpZp+fnyw+PgHbIlQvNS8uRhQU/IAUFEYuLzVGdAFGSzU1S/6AAQBLNTVLAAAAAAIAwAAAA0ADgAAfACMAAAEzERQHDgEHBiMiJy4BJyY1ETMRFBYXHgEzMjY3PgE1ASEVIQLAgBkZVzo7QkI7OlcZGYAbGBxJKChJHBgb/gACgP2AA4D+YDw0NU4WFxcWTjU0PAGg/mAeOBcYGxsYFzge/qCAAAAAAAEAgAAAA4ADgAALAAABFSMBMxUhNTMBIzUDgID+wID+QIABQIADgED9AEBAAwBAAAEAAAAABAADgAA9AAABFSMeARUUBgcOASMiJicuATUzFBYzMjY1NCYjITUhLgEnLgE1NDY3PgEzMhYXHgEVIzQmIyIGFRQWMzIWFwQA6xUWNTAscT4+cSwwNYByTk5yck7+AAEsAgQBMDU1MCxxPj5xLDA1gHJOTnJyTjtuKwHAQB1BIjViJCEkJCEkYjU0TEw0NExAAQMBJGI1NWIkISQkISRiNTRMTDQ0TCEfAAAACgAAAAAEAAOAAAMABwALAA8AEwAXABsAHwAjACcAABMRIREBNSEVHQEhNQEVITUjFSE1ESEVISUhFSERNSEVASEVISE1IRUABAD9gAEA/wABAP8AQP8AAQD/AAKAAQD/AAEA/IABAP8AAoABAAOA/IADgP3AwMBAwMACAMDAwMD/AMDAwAEAwMD+wMDAwAAABQAAAAAEAAOAAAMABwALAA8AEwAAEyEVIRUhFSERIRUhESEVIREhFSEABAD8AAKA/YACgP2ABAD8AAQA/AADgIBAgP8AgAFAgP8AgAAAAAAFAAAAAAQAA4AAAwAHAAsADwATAAATIRUhFyEVIREhFSEDIRUhESEVIQAEAPwAwAKA/YACgP2AwAQA/AAEAPwAA4CAQID/AIABQID/AIAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEFIRUhESEVIQEhFSERIRUhAAQA/AABgAKA/YACgP2A/oAEAPwABAD8AAOAgECA/wCAAUCA/wCAAAAAAAUAAAAABAADgAADAAcACwAPABMAABMhFSEVIRUhFSEVIRUhFSEVIRUhAAQA/AAEAPwABAD8AAQA/AAEAPwAA4CAQIBAgECAQIAAAAAGAAAAAAQAA4AAAwAHAAsADwATABYAABMhFSEFIRUhFSEVIRUhFSEFIRUhGQEFAAQA/AABgAKA/YACgP2AAoD9gP6ABAD8AAEAA4CAQIBAgECAQIABAAGAwAAAAAYAAAAABAADgAADAAcACwAPABMAFgAAEyEVIQUhFSEVIRUhFSEVIQUhFSEBESUABAD8AAGAAoD9gAKA/YACgP2A/oAEAPwAAQD/AAOAgECAQIBAgECAAoD+gMAAAQA/AD8C5gLmACwAACUUDwEGIyIvAQcGIyIvASY1ND8BJyY1ND8BNjMyHwE3NjMyHwEWFRQPARcWFQLmEE4QFxcQqKgQFxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQwxYQThAQqKgQEE4QFhcQqKgQFxcQThAQqKgQEE4QFxcQqKgQFwAAAAYAAAAAAyUDbgAUACgAPABNAFUAggAAAREUBwYrASInJjURNDc2OwEyFxYVMxEUBwYrASInJjURNDc2OwEyFxYXERQHBisBIicmNRE0NzY7ATIXFhMRIREUFxYXFjMhMjc2NzY1ASEnJicjBgcFFRQHBisBERQHBiMhIicmNREjIicmPQE0NzY7ATc2NzY7ATIXFh8BMzIXFhUBJQYFCCQIBQYGBQgkCAUGkgUFCCUIBQUFBQglCAUFkgUFCCUIBQUFBQglCAUFSf4ABAQFBAIB2wIEBAQE/oABABsEBrUGBAH3BgUINxobJv4lJhsbNwgFBQUFCLEoCBcWF7cXFhYJKLAIBQYCEv63CAUFBQUIAUkIBQYGBQj+twgFBQUFCAFJCAUGBgUI/rcIBQUFBQgBSQgFBgYF/lsCHf3jDQsKBQUFBQoLDQJmQwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAgAHAEkDtwKvABoALgAACQEGIyIvASY1ND8BJyY1ND8BNjMyFwEWFRQHARUUBwYjISInJj0BNDc2MyEyFxYBTv72BgcIBR0GBuHhBgYdBQgHBgEKBgYCaQUFCP3bCAUFBQUIAiUIBQUBhf72BgYcBggHBuDhBgcHBh0FBf71BQgHBv77JQgFBQUFCCUIBQUFBQAAAAEAIwAAA90DbgCzAAAlIicmIyIHBiMiJyY1NDc2NzY3Njc2PQE0JyYjISIHBh0BFBcWFxYzFhcWFRQHBiMiJyYjIgcGIyInJjU0NzY3Njc2NzY9ARE0NTQ1NCc0JyYnJicmJyYnJiMiJyY1NDc2MzIXFjMyNzYzMhcWFRQHBiMGBwYHBh0BFBcWMyEyNzY9ATQnJicmJyY1NDc2MzIXFjMyNzYzMhcWFRQHBgciBwYHBhURFBcWFxYXMhcWFRQHBiMDwRkzMhoZMjMZDQgHCQoNDBEQChIBBxX+fhYHARUJEhMODgwLBwcOGzU1GhgxMRgNBwcJCQsMEA8JEgECAQIDBAQFCBIRDQ0KCwcHDho1NRoYMDEYDgcHCQoMDRAQCBQBBw8BkA4HARQKFxcPDgcHDhkzMhkZMTEZDgcHCgoNDRARCBQUCRERDg0KCwcHDgACAgICDAsPEQkJAQEDAwUMROAMBQMDBQzUUQ0GAQIBCAgSDwwNAgICAgwMDhEICQECAwMFDUUhAdACDQ0ICA4OCgoLCwcHAwYBAQgIEg8MDQICAgINDA8RCAgBAgEGDFC2DAcBAQcMtlAMBgEBBgcWDwwNAgICAg0MDxEICAEBAgYNT/3mRAwGAgIBCQgRDwwNAAACAAD/twP/A7cAEwA5AAABMhcWFRQHAgcGIyInJjU0NwE2MwEWFxYfARYHBiMiJyYnJicmNRYXFhcWFxYzMjc2NzY3Njc2NzY3A5soHh4avkw3RUg0NDUBbSEp/fgXJicvAQJMTHtHNjYhIRARBBMUEBASEQkXCA8SExUVHR0eHikDtxsaKCQz/plGNDU0SUkwAUsf/bErHx8NKHpNTBobLi86OkQDDw4LCwoKFiUbGhERCgsEBAIAAQAAAAAAAIWwaoFfDzz1AAsEAAAAAADbteOZAAAAANu145kAAP+3BWADwAAAAAgAAgAAAAAAAAABAAADwP/AAAAFgAAA//8FYAABAAAAAAAAAAAAAAAAAAAAKQQAAAAAAAAAAAAAAAIAAAAEAABBBAAAQQQAAAAEAAAABAAAAAQAAAAEAADABAAAAAQAAAAEAAAABAAAQAQAAAAFgAAABAAAAAQAAB4EAAAABAAAAAQAAAAEAAAABAAAZQQAAAAEAADABAAAwAQAAIAEAAAABAAAAAQAAAAEAAAABAAAAAQAAAAEAAAABAAAAAMlAD8DJQAAA74ABwQAACMD/wAAAAAAAAAKABQAHgBKAHYApADmAS4BkgHQAhYCXALQAw4DWAN+A6gEPgTeBPoFZAWOBdAF+AY6BnYGjgbmBy4HVgd+B6gHzgf8CCoIbgkmCXAKYgq+AAEAAAApALQACgAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAOAK4AAQAAAAAAAQAHAAAAAQAAAAAAAgAHAGAAAQAAAAAAAwAHADYAAQAAAAAABAAHAHUAAQAAAAAABQALABUAAQAAAAAABgAHAEsAAQAAAAAACgAaAIoAAwABBAkAAQAOAAcAAwABBAkAAgAOAGcAAwABBAkAAwAOAD0AAwABBAkABAAOAHwAAwABBAkABQAWACAAAwABBAkABgAOAFIAAwABBAkACgA0AKRpY29tb29uAGkAYwBvAG0AbwBvAG5WZXJzaW9uIDEuMABWAGUAcgBzAGkAbwBuACAAMQAuADBpY29tb29uAGkAYwBvAG0AbwBvAG5pY29tb29uAGkAYwBvAG0AbwBvAG5SZWd1bGFyAFIAZQBnAHUAbABhAHJpY29tb29uAGkAYwBvAG0AbwBvAG5Gb250IGdlbmVyYXRlZCBieSBJY29Nb29uLgBGAG8AbgB0ACAAZwBlAG4AZQByAGEAdABlAGQAIABiAHkAIABJAGMAbwBNAG8AbwBuAC4AAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"},function(r,o,t){var a=t(20),u=t(153);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-toolbar { display: flex; padding: 0 6px; flex-wrap: wrap; position: relative; /* \u5355\u4E2A\u83DC\u5355 */ } .w-e-toolbar .w-e-menu { position: relative; display: flex; width: 40px; height: 40px; align-items: center; justify-content: center; text-align: center; cursor: pointer; } .w-e-toolbar .w-e-menu i { color: #999; } .w-e-toolbar .w-e-menu:hover { background-color: #F6F6F6; } .w-e-toolbar .w-e-menu:hover i { color: #333; } .w-e-toolbar .w-e-active i { color: #1e88e5; } .w-e-toolbar .w-e-active:hover i { color: #1e88e5; } .w-e-menu-tooltip { position: absolute; display: flex; color: #f1f1f1; background-color: rgba(0, 0, 0, 0.75); box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 5px 6px; justify-content: center; align-items: center; } .w-e-menu-tooltip-up::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid rgba(0, 0, 0, 0); border-top-color: rgba(0, 0, 0, 0.73); } .w-e-menu-tooltip-down::after { content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -5px; border: 5px solid rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0.73); } .w-e-menu-tooltip-item-wrapper { font-size: 14px; margin: 0 5px; } `,""]),r.exports=o},function(r,o,t){var a=t(20),u=t(155);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-text-container { position: relative; height: 100%; } .w-e-text-container .w-e-progress { position: absolute; background-color: #1e88e5; top: 0; left: 0; height: 1px; } .w-e-text-container .placeholder { color: #D4D4D4; position: absolute; font-size: 11pt; line-height: 22px; left: 10px; top: 10px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; z-index: -1; } .w-e-text { padding: 0 10px; overflow-y: auto; } .w-e-text p, .w-e-text h1, .w-e-text h2, .w-e-text h3, .w-e-text h4, .w-e-text h5, .w-e-text table, .w-e-text pre { margin: 10px 0; line-height: 1.5; } .w-e-text ul, .w-e-text ol { margin: 10px 0 10px 20px; } .w-e-text blockquote { display: block; border-left: 8px solid #d0e5f2; padding: 5px 10px; margin: 10px 0; line-height: 1.4; font-size: 100%; background-color: #f1f1f1; } .w-e-text code { display: inline-block; background-color: #f1f1f1; border-radius: 3px; padding: 3px 5px; margin: 0 3px; } .w-e-text pre code { display: block; } .w-e-text table { border-top: 1px solid #ccc; border-left: 1px solid #ccc; } .w-e-text table td, .w-e-text table th { border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; padding: 3px 5px; min-height: 30px; height: 30px; } .w-e-text table th { border-bottom: 2px solid #ccc; text-align: center; background-color: #f1f1f1; } .w-e-text:focus { outline: none; } .w-e-text img { cursor: pointer; } .w-e-text img:hover { box-shadow: 0 0 5px #333; } .w-e-text .w-e-todo { margin: 0 0 0 20px; } .w-e-text .w-e-todo li { list-style: none; font-size: 1em; } .w-e-text .w-e-todo li span:nth-child(1) { position: relative; left: -18px; } .w-e-text .w-e-todo li span:nth-child(1) input { position: absolute; margin-right: 3px; } .w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] { top: 50%; margin-top: -6px; } .w-e-tooltip { position: absolute; display: flex; color: #f1f1f1; background-color: rgba(0, 0, 0, 0.75); box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15); border-radius: 4px; padding: 4px 5px 6px; justify-content: center; align-items: center; } .w-e-tooltip-up::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid rgba(0, 0, 0, 0); border-top-color: rgba(0, 0, 0, 0.73); } .w-e-tooltip-down::after { content: ""; position: absolute; bottom: 100%; left: 50%; margin-left: -5px; border: 5px solid rgba(0, 0, 0, 0); border-bottom-color: rgba(0, 0, 0, 0.73); } .w-e-tooltip-item-wrapper { cursor: pointer; font-size: 14px; margin: 0 5px; } .w-e-tooltip-item-wrapper:hover { color: #ccc; text-decoration: underline; } `,""]),r.exports=o},function(r,o,t){var a=t(20),u=t(157);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-menu .w-e-panel-container { position: absolute; top: 0; left: 50%; border: 1px solid #ccc; border-top: 0; box-shadow: 1px 1px 2px #ccc; color: #333; background-color: #fff; text-align: left; /* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */ /* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */ } .w-e-menu .w-e-panel-container .w-e-panel-close { position: absolute; right: 0; top: 0; padding: 5px; margin: 2px 5px 0 0; cursor: pointer; color: #999; } .w-e-menu .w-e-panel-container .w-e-panel-close:hover { color: #333; } .w-e-menu .w-e-panel-container .w-e-panel-tab-title { list-style: none; display: flex; font-size: 14px; margin: 2px 10px 0 10px; border-bottom: 1px solid #f1f1f1; } .w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item { padding: 3px 5px; color: #999; cursor: pointer; margin: 0 3px; position: relative; top: 1px; } .w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active { color: #333; border-bottom: 1px solid #333; cursor: default; font-weight: 700; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content { padding: 10px 15px 10px 15px; font-size: 16px; /* \u8F93\u5165\u6846\u7684\u6837\u5F0F */ /* \u6309\u94AE\u7684\u6837\u5F0F */ } .w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus, .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus, .w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus { outline: none; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea { width: 100%; border: 1px solid #ccc; padding: 5px; margin-top: 10px; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus { border-color: #1e88e5; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] { border: none; border-bottom: 1px solid #ccc; font-size: 14px; height: 20px; color: #333; text-align: left; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small { width: 30px; text-align: center; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block { display: block; width: 100%; margin: 10px 0; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus { border-bottom: 2px solid #1e88e5; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button { font-size: 14px; color: #1e88e5; border: none; padding: 5px 10px; background-color: #fff; cursor: pointer; border-radius: 3px; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left { float: left; margin-right: 10px; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right { float: right; margin-left: 10px; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray { color: #999; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red { color: #c24f4a; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover { background-color: #f1f1f1; } .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after { content: ""; display: table; clear: both; } .w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item { cursor: pointer; font-size: 18px; padding: 0 3px; display: inline-block; } .w-e-menu .w-e-panel-container .w-e-up-img-container, .w-e-menu .w-e-panel-container .w-e-up-video-container { text-align: center; } .w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn, .w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn { display: inline-block; color: #999; cursor: pointer; font-size: 60px; line-height: 1; } .w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover, .w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover { color: #333; } `,""]),r.exports=o},function(r,o,t){var a=t(20),u=t(159);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-toolbar .w-e-droplist { position: absolute; left: 0; top: 0; background-color: #fff; border: 1px solid #f1f1f1; border-right-color: #ccc; border-bottom-color: #ccc; } .w-e-toolbar .w-e-droplist .w-e-dp-title { text-align: center; color: #999; line-height: 2; border-bottom: 1px solid #f1f1f1; font-size: 13px; } .w-e-toolbar .w-e-droplist ul.w-e-list { list-style: none; line-height: 1; } .w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item { color: #333; padding: 5px 0; } .w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover { background-color: #f1f1f1; } .w-e-toolbar .w-e-droplist ul.w-e-block { list-style: none; text-align: left; padding: 5px; } .w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item { display: inline-block; padding: 3px 5px; } .w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover { background-color: #f1f1f1; } `,""]),r.exports=o},function(r,o,t){var a=t(0)(t(161));Element.prototype.matches||(Element.prototype.matches=function(u){for(var d=this.ownerDocument.querySelectorAll(u),c=d.length;c>=0&&d.item(c)!==this;c--);return c>-1}),a.default||(window.Promise=a.default)},function(r,o,t){r.exports=t(162)},function(r,o,t){var a=t(163);r.exports=a},function(r,o,t){t(61),t(50),t(54),t(175),t(178),t(179);var a=t(9);r.exports=a.Promise},function(r,o,t){var a=t(62),u=t(49),d=function(c){return function(p,m){var h,b,y=String(u(p)),v=a(m),w=y.length;return v<0||v>=w?c?"":void 0:(h=y.charCodeAt(v))<55296||h>56319||v+1===w||(b=y.charCodeAt(v+1))<56320||b>57343?c?y.charAt(v):h:c?y.slice(v,v+2):b-56320+(h-55296<<10)+65536}};r.exports={codeAt:d(!1),charAt:d(!0)}},function(r,o,t){var a=t(8),u=t(101),d=a.WeakMap;r.exports=typeof d=="function"&&/native code/.test(u(d))},function(r,o,t){var a=t(8),u=t(19);r.exports=function(d,c){try{u(a,d,c)}catch{a[d]=c}return c}},function(r,o,t){var a=t(103).IteratorPrototype,u=t(77),d=t(48),c=t(36),p=t(43),m=function(){return this};r.exports=function(h,b,y){var v=b+" Iterator";return h.prototype=u(a,{next:d(1,y)}),c(h,v,!1,!0),p[v]=m,h}},function(r,o,t){var a=t(11);r.exports=!a(function(){function u(){}return u.prototype.constructor=null,Object.getPrototypeOf(new u)!==u.prototype})},function(r,o,t){var a=t(14),u=t(18),d=t(25),c=t(52);r.exports=a?Object.defineProperties:function(p,m){d(p);for(var h,b=c(m),y=b.length,v=0;y>v;)u.f(p,h=b[v++],m[h]);return p}},function(r,o,t){var a=t(81),u=t(65);r.exports=a?{}.toString:function(){return"[object "+u(this)+"]"}},function(r,o,t){var a=t(25),u=t(172);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d,c=!1,p={};try{(d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(p,[]),c=p instanceof Array}catch{}return function(m,h){return a(m),u(h),c?d.call(m,h):m.__proto__=h,m}}():void 0)},function(r,o,t){var a=t(13);r.exports=function(u){if(!a(u)&&u!==null)throw TypeError("Can't set "+String(u)+" as a prototype");return u}},function(r,o,t){var a=t(28),u=t(82),d=t(43),c=t(41),p=t(75),m="Array Iterator",h=c.set,b=c.getterFor(m);r.exports=p(Array,"Array",function(y,v){h(this,{type:m,target:a(y),index:0,kind:v})},function(){var y=b(this),v=y.target,w=y.kind,x=y.index++;return!v||x>=v.length?(y.target=void 0,{value:void 0,done:!0}):w=="keys"?{value:x,done:!1}:w=="values"?{value:v[x],done:!1}:{value:[x,v[x]],done:!1}},"values"),d.Arguments=d.Array,u("keys"),u("values"),u("entries")},function(r,o){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(r,o,t){var a,u,d,c,p=t(5),m=t(42),h=t(8),b=t(35),y=t(108),v=t(53),w=t(109),x=t(36),_=t(110),g=t(13),C=t(40),k=t(83),A=t(33),S=t(101),M=t(66),I=t(114),N=t(115),R=t(116).set,T=t(176),L=t(118),H=t(177),P=t(85),j=t(119),z=t(41),Q=t(100),q=t(10),W=t(86),K=q("species"),X="Promise",re=z.get,pe=z.set,ue=z.getterFor(X),te=y,oe=h.TypeError,Z=h.document,se=h.process,Ee=b("fetch"),_e=P.f,Ie=_e,Oe=A(se)=="process",$t=!!(Z&&Z.createEvent&&h.dispatchEvent),St="unhandledrejection",at="rejectionhandled",Mt=0,rn=1,Le=2,Tt=1,gn=2,qt=Q(X,function(){if(S(te)===String(te)&&(W===66||!Oe&&typeof PromiseRejectionEvent!="function")||m&&!te.prototype.finally)return!0;if(W>=51&&/native code/.test(te))return!1;var Ae=te.resolve(1),ve=function(ke){ke(function(){},function(){})};return(Ae.constructor={})[K]=ve,!(Ae.then(function(){})instanceof ve)}),ir=qt||!I(function(Ae){te.all(Ae).catch(function(){})}),Nn=function(Ae){var ve;return!(!g(Ae)||typeof(ve=Ae.then)!="function")&&ve},on=function(Ae,ve,ke){if(!ve.notified){ve.notified=!0;var le=ve.reactions;T(function(){for(var ce=ve.value,ae=ve.state==rn,De=0;le.length>De;){var Me,Pe,Ue,yt=le[De++],$e=ae?yt.ok:yt.fail,Xt=yt.resolve,Ke=yt.reject,yn=yt.domain;try{$e?(ae||(ve.rejection===gn&&_t(Ae,ve),ve.rejection=Tt),$e===!0?Me=ce:(yn&&yn.enter(),Me=$e(ce),yn&&(yn.exit(),Ue=!0)),Me===yt.promise?Ke(oe("Promise-chain cycle")):(Pe=Nn(Me))?Pe.call(Me,Xt,Ke):Xt(Me)):Ke(ce)}catch(Vn){yn&&!Ue&&yn.exit(),Ke(Vn)}}ve.reactions=[],ve.notified=!1,ke&&!ve.rejection&&an(Ae,ve)})}},ln=function(Ae,ve,ke){var le,ce;$t?((le=Z.createEvent("Event")).promise=ve,le.reason=ke,le.initEvent(Ae,!1,!0),h.dispatchEvent(le)):le={promise:ve,reason:ke},(ce=h["on"+Ae])?ce(le):Ae===St&&H("Unhandled promise rejection",ke)},an=function(Ae,ve){R.call(h,function(){var ke,le=ve.value;if(Rn(ve)&&(ke=j(function(){Oe?se.emit("unhandledRejection",le,Ae):ln(St,Ae,le)}),ve.rejection=Oe||Rn(ve)?gn:Tt,ke.error))throw ke.value})},Rn=function(Ae){return Ae.rejection!==Tt&&!Ae.parent},_t=function(Ae,ve){R.call(h,function(){Oe?se.emit("rejectionHandled",Ae):ln(at,Ae,ve.value)})},ze=function(Ae,ve,ke,le){return function(ce){Ae(ve,ke,ce,le)}},gt=function(Ae,ve,ke,le){ve.done||(ve.done=!0,le&&(ve=le),ve.value=ke,ve.state=Le,on(Ae,ve,!0))},sn=function Ae(ve,ke,le,ce){if(!ke.done){ke.done=!0,ce&&(ke=ce);try{if(ve===le)throw oe("Promise can't be resolved itself");var ae=Nn(le);ae?T(function(){var De={done:!1};try{ae.call(le,ze(Ae,ve,De,ke),ze(gt,ve,De,ke))}catch(Me){gt(ve,De,Me,ke)}}):(ke.value=le,ke.state=rn,on(ve,ke,!1))}catch(De){gt(ve,{done:!1},De,ke)}}};qt&&(te=function(Ae){k(this,te,X),C(Ae),a.call(this);var ve=re(this);try{Ae(ze(sn,this,ve),ze(gt,this,ve))}catch(ke){gt(this,ve,ke)}},(a=function(Ae){pe(this,{type:X,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Mt,value:void 0})}).prototype=w(te.prototype,{then:function(Ae,ve){var ke=ue(this),le=_e(N(this,te));return le.ok=typeof Ae!="function"||Ae,le.fail=typeof ve=="function"&&ve,le.domain=Oe?se.domain:void 0,ke.parent=!0,ke.reactions.push(le),ke.state!=Mt&&on(this,ke,!1),le.promise},catch:function(Ae){return this.then(void 0,Ae)}}),u=function(){var Ae=new a,ve=re(Ae);this.promise=Ae,this.resolve=ze(sn,Ae,ve),this.reject=ze(gt,Ae,ve)},P.f=_e=function(Ae){return Ae===te||Ae===d?new u(Ae):Ie(Ae)},!m&&typeof y=="function"&&(c=y.prototype.then,v(y.prototype,"then",function(Ae,ve){var ke=this;return new te(function(le,ce){c.call(ke,le,ce)}).then(Ae,ve)},{unsafe:!0}),typeof Ee=="function"&&p({global:!0,enumerable:!0,forced:!0},{fetch:function(Ae){return L(te,Ee.apply(h,arguments))}}))),p({global:!0,wrap:!0,forced:qt},{Promise:te}),x(te,X,!1,!0),_(X),d=b(X),p({target:X,stat:!0,forced:qt},{reject:function(Ae){var ve=_e(this);return ve.reject.call(void 0,Ae),ve.promise}}),p({target:X,stat:!0,forced:m||qt},{resolve:function(Ae){return L(m&&this===d?te:this,Ae)}}),p({target:X,stat:!0,forced:ir},{all:function(Ae){var ve=this,ke=_e(ve),le=ke.resolve,ce=ke.reject,ae=j(function(){var De=C(ve.resolve),Me=[],Pe=0,Ue=1;M(Ae,function(yt){var $e=Pe++,Xt=!1;Me.push(void 0),Ue++,De.call(ve,yt).then(function(Ke){Xt||(Xt=!0,Me[$e]=Ke,--Ue||le(Me))},ce)}),--Ue||le(Me)});return ae.error&&ce(ae.value),ke.promise},race:function(Ae){var ve=this,ke=_e(ve),le=ke.reject,ce=j(function(){var ae=C(ve.resolve);M(Ae,function(De){ae.call(ve,De).then(ke.resolve,le)})});return ce.error&&le(ce.value),ke.promise}})},function(r,o,t){var a,u,d,c,p,m,h,b,y=t(8),v=t(71).f,w=t(33),x=t(116).set,_=t(117),g=y.MutationObserver||y.WebKitMutationObserver,C=y.process,k=y.Promise,A=w(C)=="process",S=v(y,"queueMicrotask"),M=S&&S.value;M||(a=function(){var I,N;for(A&&(I=C.domain)&&I.exit();u;){N=u.fn,u=u.next;try{N()}catch(R){throw u?c():d=void 0,R}}d=void 0,I&&I.enter()},A?c=function(){C.nextTick(a)}:g&&!_?(p=!0,m=document.createTextNode(""),new g(a).observe(m,{characterData:!0}),c=function(){m.data=p=!p}):k&&k.resolve?(h=k.resolve(void 0),b=h.then,c=function(){b.call(h,a)}):c=function(){x.call(y,a)}),r.exports=M||function(I){var N={fn:I,next:void 0};d&&(d.next=N),u||(u=N,c()),d=N}},function(r,o,t){var a=t(8);r.exports=function(u,d){var c=a.console;c&&c.error&&(arguments.length===1?c.error(u):c.error(u,d))}},function(r,o,t){var a=t(5),u=t(40),d=t(85),c=t(119),p=t(66);a({target:"Promise",stat:!0},{allSettled:function(m){var h=this,b=d.f(h),y=b.resolve,v=b.reject,w=c(function(){var x=u(h.resolve),_=[],g=0,C=1;p(m,function(k){var A=g++,S=!1;_.push(void 0),C++,x.call(h,k).then(function(M){S||(S=!0,_[A]={status:"fulfilled",value:M},--C||y(_))},function(M){S||(S=!0,_[A]={status:"rejected",reason:M},--C||y(_))})}),--C||y(_)});return w.error&&v(w.value),b.promise}})},function(r,o,t){var a=t(5),u=t(42),d=t(108),c=t(11),p=t(35),m=t(115),h=t(118),b=t(53);a({target:"Promise",proto:!0,real:!0,forced:!!d&&c(function(){d.prototype.finally.call({then:function(){}},function(){})})},{finally:function(y){var v=m(this,p("Promise")),w=typeof y=="function";return this.then(w?function(x){return h(v,y()).then(function(){return x})}:y,w?function(x){return h(v,y()).then(function(){throw x})}:y)}}),!u&&typeof d=="function"&&!d.prototype.finally&&b(d.prototype,"finally",p("Promise").prototype.finally)},function(r,o,t){t(54);var a=t(181),u=t(65),d=Array.prototype,c={DOMTokenList:!0,NodeList:!0};r.exports=function(p){var m=p.forEach;return p===d||p instanceof Array&&m===d.forEach||c.hasOwnProperty(u(p))?a:m}},function(r,o,t){var a=t(182);r.exports=a},function(r,o,t){t(183);var a=t(15);r.exports=a("Array").forEach},function(r,o,t){var a=t(5),u=t(184);a({target:"Array",proto:!0,forced:[].forEach!=u},{forEach:u})},function(r,o,t){var a=t(30).forEach,u=t(67),d=t(22),c=u("forEach"),p=d("forEach");r.exports=c&&p?[].forEach:function(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}},function(r,o,t){var a=t(186);r.exports=a},function(r,o,t){t(187);var a=t(9);r.exports=a.Array.isArray},function(r,o,t){t(5)({target:"Array",stat:!0},{isArray:t(55)})},function(r,o,t){var a=t(189);r.exports=a},function(r,o,t){var a=t(190),u=Array.prototype;r.exports=function(d){var c=d.map;return d===u||d instanceof Array&&c===u.map?a:c}},function(r,o,t){t(191);var a=t(15);r.exports=a("Array").map},function(r,o,t){var a=t(5),u=t(30).map,d=t(56),c=t(22),p=d("map"),m=c("map");a({target:"Array",proto:!0,forced:!p||!m},{map:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}})},function(r,o,t){var a=t(193);r.exports=a},function(r,o,t){var a=t(194),u=String.prototype;r.exports=function(d){var c=d.trim;return typeof d=="string"||d===u||d instanceof String&&c===u.trim?a:c}},function(r,o,t){t(195);var a=t(15);r.exports=a("String").trim},function(r,o,t){var a=t(5),u=t(90).trim;a({target:"String",proto:!0,forced:t(196)("trim")},{trim:function(){return u(this)}})},function(r,o,t){var a=t(11),u=t(68),d="\u200B\x85\u180E";r.exports=function(c){return a(function(){return!!u[c]()||d[c]()!=d||u[c].name!==c})}},function(r,o,t){var a=t(198);r.exports=a},function(r,o,t){t(199),t(61),t(50),t(54);var a=t(9);r.exports=a.Map},function(r,o,t){var a=t(121),u=t(123);r.exports=a("Map",function(d){return function(){return d(this,arguments.length?arguments[0]:void 0)}},u)},function(r,o,t){var a=t(11);r.exports=!a(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(r,o,t){var a=t(202);r.exports=a},function(r,o,t){var a=t(203),u=Array.prototype;r.exports=function(d){var c=d.indexOf;return d===u||d instanceof Array&&c===u.indexOf?a:c}},function(r,o,t){t(204);var a=t(15);r.exports=a("Array").indexOf},function(r,o,t){var a=t(5),u=t(78).indexOf,d=t(67),c=t(22),p=[].indexOf,m=!!p&&1/[1].indexOf(1,-0)<0,h=d("indexOf"),b=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:m||!h||!b},{indexOf:function(y){return m?p.apply(this,arguments)||0:u(this,y,arguments.length>1?arguments[1]:void 0)}})},function(r,o,t){var a=t(206);r.exports=a},function(r,o,t){var a=t(207),u=Array.prototype;r.exports=function(d){var c=d.splice;return d===u||d instanceof Array&&c===u.splice?a:c}},function(r,o,t){t(208);var a=t(15);r.exports=a("Array").splice},function(r,o,t){var a=t(5),u=t(79),d=t(62),c=t(34),p=t(29),m=t(88),h=t(69),b=t(56),y=t(22),v=b("splice"),w=y("splice",{ACCESSORS:!0,0:0,1:2}),x=Math.max,_=Math.min,g=9007199254740991,C="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!v||!w},{splice:function(k,A){var S,M,I,N,R,T,L=p(this),H=c(L.length),P=u(k,H),j=arguments.length;if(j===0?S=M=0:j===1?(S=0,M=H-P):(S=j-2,M=_(x(d(A),0),H-P)),H+S-M>g)throw TypeError(C);for(I=m(L,M),N=0;NH-M+S;N--)delete L[N-1]}else if(S>M)for(N=H-M;N>P;N--)T=N+S-1,(R=N+M-1)in L?L[T]=L[R]:delete L[T];for(N=0;N1?arguments[1]:void 0)}})},function(r,o,t){var a=t(214);r.exports=a},function(r,o,t){var a=t(215),u=t(217),d=Array.prototype,c=String.prototype;r.exports=function(p){var m=p.includes;return p===d||p instanceof Array&&m===d.includes?a:typeof p=="string"||p===c||p instanceof String&&m===c.includes?u:m}},function(r,o,t){t(216);var a=t(15);r.exports=a("Array").includes},function(r,o,t){var a=t(5),u=t(78).includes,d=t(82);a({target:"Array",proto:!0,forced:!t(22)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(c){return u(this,c,arguments.length>1?arguments[1]:void 0)}}),d("includes")},function(r,o,t){t(218);var a=t(15);r.exports=a("String").includes},function(r,o,t){var a=t(5),u=t(219),d=t(49);a({target:"String",proto:!0,forced:!t(221)("includes")},{includes:function(c){return!!~String(d(this)).indexOf(u(c),arguments.length>1?arguments[1]:void 0)}})},function(r,o,t){var a=t(220);r.exports=function(u){if(a(u))throw TypeError("The method doesn't accept regular expressions");return u}},function(r,o,t){var a=t(13),u=t(33),d=t(10)("match");r.exports=function(c){var p;return a(c)&&((p=c[d])!==void 0?!!p:u(c)=="RegExp")}},function(r,o,t){var a=t(10)("match");r.exports=function(u){var d=/./;try{"/./"[u](d)}catch{try{return d[a]=!1,"/./"[u](d)}catch{}}return!1}},function(r,o,t){var a=t(223);r.exports=a},function(r,o,t){var a=t(224),u=Function.prototype;r.exports=function(d){var c=d.bind;return d===u||d instanceof Function&&c===u.bind?a:c}},function(r,o,t){t(225);var a=t(15);r.exports=a("Function").bind},function(r,o,t){t(5)({target:"Function",proto:!0},{bind:t(226)})},function(r,o,t){var a=t(40),u=t(13),d=[].slice,c={},p=function(m,h,b){if(!(h in c)){for(var y=[],v=0;v=51||!u(function(){var S=[];return S[x]=!1,S.concat()[0]!==S}),k=y("concat"),A=function(S){if(!c(S))return!1;var M=S[x];return M!==void 0?!!M:d(S)};a({target:"Array",proto:!0,forced:!C||!k},{concat:function(S){var M,I,N,R,T,L=p(this),H=b(L,0),P=0;for(M=-1,N=arguments.length;M_)throw TypeError(g);for(I=0;I=_)throw TypeError(g);h(H,P++,T)}return H.length=P,H}})},function(r,o,t){var a=t(5),u=t(8),d=t(35),c=t(42),p=t(14),m=t(76),h=t(105),b=t(11),y=t(16),v=t(55),w=t(13),x=t(25),_=t(29),g=t(28),C=t(60),k=t(48),A=t(77),S=t(52),M=t(125),I=t(235),N=t(126),R=t(71),T=t(18),L=t(59),H=t(19),P=t(53),j=t(74),z=t(63),Q=t(51),q=t(64),W=t(10),K=t(93),X=t(12),re=t(36),pe=t(41),ue=t(30).forEach,te=z("hidden"),oe="Symbol",Z="prototype",se=W("toPrimitive"),Ee=pe.set,_e=pe.getterFor(oe),Ie=Object[Z],Oe=u.Symbol,$t=d("JSON","stringify"),St=R.f,at=T.f,Mt=I.f,rn=L.f,Le=j("symbols"),Tt=j("op-symbols"),gn=j("string-to-symbol-registry"),qt=j("symbol-to-string-registry"),ir=j("wks"),Nn=u.QObject,on=!Nn||!Nn[Z]||!Nn[Z].findChild,ln=p&&b(function(){return A(at({},"a",{get:function(){return at(this,"a",{value:7}).a}})).a!=7})?function(le,ce,ae){var De=St(Ie,ce);De&&delete Ie[ce],at(le,ce,ae),De&&le!==Ie&&at(Ie,ce,De)}:at,an=function(le,ce){var ae=Le[le]=A(Oe[Z]);return Ee(ae,{type:oe,tag:le,description:ce}),p||(ae.description=ce),ae},Rn=h?function(le){return Dt(le)=="symbol"}:function(le){return Object(le)instanceof Oe},_t=function(le,ce,ae){le===Ie&&_t(Tt,ce,ae),x(le);var De=C(ce,!0);return x(ae),y(Le,De)?(ae.enumerable?(y(le,te)&&le[te][De]&&(le[te][De]=!1),ae=A(ae,{enumerable:k(0,!1)})):(y(le,te)||at(le,te,k(1,{})),le[te][De]=!0),ln(le,De,ae)):at(le,De,ae)},ze=function(le,ce){x(le);var ae=g(ce),De=S(ae).concat(ke(ae));return ue(De,function(Me){(!p||sn.call(ae,Me))&&_t(le,Me,ae[Me])}),le},gt=function(le,ce){return ce===void 0?A(le):ze(A(le),ce)},sn=function(le){var ce=C(le,!0),ae=rn.call(this,ce);return!(this===Ie&&y(Le,ce)&&!y(Tt,ce))&&(!(ae||!y(this,ce)||!y(Le,ce)||y(this,te)&&this[te][ce])||ae)},Ae=function(le,ce){var ae=g(le),De=C(ce,!0);if(ae!==Ie||!y(Le,De)||y(Tt,De)){var Me=St(ae,De);return Me&&y(Le,De)&&!(y(ae,te)&&ae[te][De])&&(Me.enumerable=!0),Me}},ve=function(le){var ce=Mt(g(le)),ae=[];return ue(ce,function(De){!y(Le,De)&&!y(Q,De)&&ae.push(De)}),ae},ke=function(le){var ce=le===Ie,ae=Mt(ce?Tt:g(le)),De=[];return ue(ae,function(Me){y(Le,Me)&&(!ce||y(Ie,Me))&&De.push(Le[Me])}),De};m||(Oe=function(){if(this instanceof Oe)throw TypeError("Symbol is not a constructor");var le=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,ce=q(le),ae=function De(Me){this===Ie&&De.call(Tt,Me),y(this,te)&&y(this[te],ce)&&(this[te][ce]=!1),ln(this,ce,k(1,Me))};return p&&on&&ln(Ie,ce,{configurable:!0,set:ae}),an(ce,le)},P(Oe[Z],"toString",function(){return _e(this).tag}),P(Oe,"withoutSetter",function(le){return an(q(le),le)}),L.f=sn,T.f=_t,R.f=Ae,M.f=I.f=ve,N.f=ke,K.f=function(le){return an(W(le),le)},p&&(at(Oe[Z],"description",{configurable:!0,get:function(){return _e(this).description}}),c||P(Ie,"propertyIsEnumerable",sn,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:Oe}),ue(S(ir),function(le){X(le)}),a({target:oe,stat:!0,forced:!m},{for:function(le){var ce=String(le);if(y(gn,ce))return gn[ce];var ae=Oe(ce);return gn[ce]=ae,qt[ae]=ce,ae},keyFor:function(le){if(!Rn(le))throw TypeError(le+" is not a symbol");if(y(qt,le))return qt[le]},useSetter:function(){on=!0},useSimple:function(){on=!1}}),a({target:"Object",stat:!0,forced:!m,sham:!p},{create:gt,defineProperty:_t,defineProperties:ze,getOwnPropertyDescriptor:Ae}),a({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:ve,getOwnPropertySymbols:ke}),a({target:"Object",stat:!0,forced:b(function(){N.f(1)})},{getOwnPropertySymbols:function(le){return N.f(_(le))}}),$t&&a({target:"JSON",stat:!0,forced:!m||b(function(){var le=Oe();return $t([le])!="[null]"||$t({a:le})!="{}"||$t(Object(le))!="{}"})},{stringify:function(le,ce,ae){for(var De,Me=[le],Pe=1;arguments.length>Pe;)Me.push(arguments[Pe++]);if(De=ce,(w(ce)||le!==void 0)&&!Rn(le))return v(ce)||(ce=function(Ue,yt){if(typeof De=="function"&&(yt=De.call(this,Ue,yt)),!Rn(yt))return yt}),Me[1]=ce,$t.apply(null,Me)}}),Oe[Z][se]||H(Oe[Z],se,Oe[Z].valueOf),re(Oe,oe),Q[te]=!0},function(r,o,t){var a=t(28),u=t(125).f,d={}.toString,c=(typeof window>"u"?"undefined":Dt(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],p=function(m){try{return u(m)}catch{return c.slice()}};r.exports.f=function(m){return c&&d.call(m)=="[object Window]"?p(m):u(a(m))}},function(r,o,t){t(12)("asyncIterator")},function(r,o){},function(r,o,t){t(12)("hasInstance")},function(r,o,t){t(12)("isConcatSpreadable")},function(r,o,t){t(12)("match")},function(r,o,t){t(12)("matchAll")},function(r,o,t){t(12)("replace")},function(r,o,t){t(12)("search")},function(r,o,t){t(12)("species")},function(r,o,t){t(12)("split")},function(r,o,t){t(12)("toPrimitive")},function(r,o,t){t(12)("toStringTag")},function(r,o,t){t(12)("unscopables")},function(r,o,t){t(36)(Math,"Math",!0)},function(r,o,t){var a=t(8);t(36)(a.JSON,"JSON",!0)},function(r,o,t){t(12)("asyncDispose")},function(r,o,t){t(12)("dispose")},function(r,o,t){t(12)("observable")},function(r,o,t){t(12)("patternMatch")},function(r,o,t){t(12)("replaceAll")},function(r,o,t){r.exports=t(257)},function(r,o,t){var a=t(258);r.exports=a},function(r,o,t){t(259);var a=t(9);r.exports=a.parseInt},function(r,o,t){var a=t(5),u=t(260);a({global:!0,forced:parseInt!=u},{parseInt:u})},function(r,o,t){var a=t(8),u=t(90).trim,d=t(68),c=a.parseInt,p=/^[+-]?0[Xx]/,m=c(d+"08")!==8||c(d+"0x16")!==22;r.exports=m?function(h,b){var y=u(String(h));return c(y,b>>>0||(p.test(y)?16:10))}:c},function(r,o,t){var a=t(262);r.exports=a},function(r,o,t){var a=t(263),u=Array.prototype;r.exports=function(d){var c=d.slice;return d===u||d instanceof Array&&c===u.slice?a:c}},function(r,o,t){t(264);var a=t(15);r.exports=a("Array").slice},function(r,o,t){var a=t(5),u=t(13),d=t(55),c=t(79),p=t(34),m=t(28),h=t(69),b=t(10),y=t(56),v=t(22),w=y("slice"),x=v("slice",{ACCESSORS:!0,0:0,1:2}),_=b("species"),g=[].slice,C=Math.max;a({target:"Array",proto:!0,forced:!w||!x},{slice:function(k,A){var S,M,I,N=m(this),R=p(N.length),T=c(k,R),L=c(A===void 0?R:A,R);if(d(N)&&(typeof(S=N.constructor)!="function"||S!==Array&&!d(S.prototype)?u(S)&&(S=S[_])===null&&(S=void 0):S=void 0,S===Array||S===void 0))return g.call(N,T,L);for(M=new(S===void 0?Array:S)(C(L-T,0)),I=0;T2,v=y?c.call(arguments,2):void 0;return m(y?function(){(typeof h=="function"?h:Function(h)).apply(this,v)}:h,b)}};a({global:!0,bind:!0,forced:/MSIE .\./.test(d)},{setTimeout:p(u.setTimeout),setInterval:p(u.setInterval)})},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(127));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(272)),m=c.__importDefault(t(273)),h=c.__importDefault(t(128)),b=c.__importDefault(t(274)),y=c.__importDefault(t(275)),v=c.__importDefault(t(276)),w=c.__importDefault(t(129)),x=c.__importDefault(t(277)),_=c.__importDefault(t(278)),g=c.__importDefault(t(279)),C=(0,d.default)({},p.default,m.default,h.default,y.default,b.default,v.default,w.default,x.default,_.default,g.default,{linkCheck:function(k,A){return!0}});o.default=C},function(r,o,t){var a=t(269);r.exports=a},function(r,o,t){t(270);var a=t(9);r.exports=a.Object.assign},function(r,o,t){var a=t(5),u=t(271);a({target:"Object",stat:!0,forced:Object.assign!==u},{assign:u})},function(r,o,t){var a=t(14),u=t(11),d=t(52),c=t(126),p=t(59),m=t(29),h=t(72),b=Object.assign,y=Object.defineProperty;r.exports=!b||u(function(){if(a&&b({b:1},b(y({},"a",{enumerable:!0,get:function(){y(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var v={},w={},x=Symbol(),_="abcdefghijklmnopqrst";return v[x]=7,_.split("").forEach(function(g){w[g]=g}),b({},v)[x]!=7||d(b({},w)).join("")!=_})?function(v,w){for(var x=m(v),_=arguments.length,g=1,C=c.f,k=p.f;_>g;)for(var A,S=h(arguments[g++]),M=C?d(S).concat(C(S)):d(S),I=M.length,N=0;I>N;)A=M[N++],(!a||k.call(S,A))&&(x[A]=S[A]);return x}:b},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default={menus:["head","bold","fontSize","fontName","italic","underline","strikeThrough","indent","lineHeight","foreColor","backColor","link","list","todo","justify","quote","emoticon","image","video","table","code","splitLine","undo","redo"],fontNames:["\u9ED1\u4F53","\u4EFF\u5B8B","\u6977\u4F53","\u6807\u6977\u4F53","\u534E\u6587\u4EFF\u5B8B","\u534E\u6587\u6977\u4F53","\u5B8B\u4F53","\u5FAE\u8F6F\u96C5\u9ED1","Arial","Tahoma","Verdana","Times New Roman","Courier New"],fontSizes:{"x-small":{name:"10px",value:"1"},small:{name:"13px",value:"2"},normal:{name:"16px",value:"3"},large:{name:"18px",value:"4"},"x-large":{name:"24px",value:"5"},"xx-large":{name:"32px",value:"6"},"xxx-large":{name:"48px",value:"7"}},colors:["#000000","#ffffff","#eeece0","#1c487f","#4d80bf","#c24f4a","#8baa4a","#7b5ba1","#46acc8","#f9963b"],languageType:["Bash","C","C#","C++","CSS","Java","JavaScript","JSON","TypeScript","Plain text","Html","XML","SQL","Go","Kotlin","Lua","Markdown","PHP","Python","Shell Session","Ruby"],languageTab:"\u3000\u3000\u3000\u3000",emotions:[{title:"\u8868\u60C5",type:"emoji",content:"\u{1F600} \u{1F603} \u{1F604} \u{1F601} \u{1F606} \u{1F605} \u{1F602} \u{1F923} \u{1F60A} \u{1F607} \u{1F642} \u{1F643} \u{1F609} \u{1F60C} \u{1F60D} \u{1F618} \u{1F617} \u{1F619} \u{1F61A} \u{1F60B} \u{1F61B} \u{1F61D} \u{1F61C} \u{1F913} \u{1F60E} \u{1F60F} \u{1F612} \u{1F61E} \u{1F614} \u{1F61F} \u{1F615} \u{1F641} \u{1F623} \u{1F616} \u{1F62B} \u{1F629} \u{1F622} \u{1F62D} \u{1F624} \u{1F620} \u{1F621} \u{1F633} \u{1F631} \u{1F628} \u{1F917} \u{1F914} \u{1F636} \u{1F611} \u{1F62C} \u{1F644} \u{1F62F} \u{1F634} \u{1F637} \u{1F911} \u{1F608} \u{1F921} \u{1F4A9} \u{1F47B} \u{1F480} \u{1F440} \u{1F463}".split(/\s/)},{title:"\u624B\u52BF",type:"emoji",content:"\u{1F450} \u{1F64C} \u{1F44F} \u{1F91D} \u{1F44D} \u{1F44E} \u{1F44A} \u270A \u{1F91B} \u{1F91C} \u{1F91E} \u270C\uFE0F \u{1F918} \u{1F44C} \u{1F448} \u{1F449} \u{1F446} \u{1F447} \u261D\uFE0F \u270B \u{1F91A} \u{1F590} \u{1F596} \u{1F44B} \u{1F919} \u{1F4AA} \u{1F595} \u270D\uFE0F \u{1F64F}".split(/\s/)}],lineHeights:["1","1.15","1.6","2","2.5","3"],undoLimit:20,indentation:"2em",showMenuTooltips:!0,menuTooltipPosition:"up"}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(7);function u(d,c,p){window.alert(d)}o.default={onchangeTimeout:200,onchange:null,onfocus:a.EMPTY_FN,onblur:a.EMPTY_FN,onCatalogChange:null,customAlert:u}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(a){return a}}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default={styleWithCSS:!1}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(7);o.default={linkImgCheck:function(u,d,c){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:a.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5242880,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:1e4,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default={lang:"zh-CN",languages:{"zh-CN":{wangEditor:{\u91CD\u7F6E:"\u91CD\u7F6E",\u63D2\u5165:"\u63D2\u5165",\u9ED8\u8BA4:"\u9ED8\u8BA4",\u521B\u5EFA:"\u521B\u5EFA",\u4FEE\u6539:"\u4FEE\u6539",\u5982:"\u5982",\u8BF7\u8F93\u5165\u6B63\u6587:"\u8BF7\u8F93\u5165\u6B63\u6587",menus:{title:{\u6807\u9898:"\u6807\u9898",\u52A0\u7C97:"\u52A0\u7C97",\u5B57\u53F7:"\u5B57\u53F7",\u5B57\u4F53:"\u5B57\u4F53",\u659C\u4F53:"\u659C\u4F53",\u4E0B\u5212\u7EBF:"\u4E0B\u5212\u7EBF",\u5220\u9664\u7EBF:"\u5220\u9664\u7EBF",\u7F29\u8FDB:"\u7F29\u8FDB",\u884C\u9AD8:"\u884C\u9AD8",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u80CC\u666F\u8272:"\u80CC\u666F\u8272",\u94FE\u63A5:"\u94FE\u63A5",\u5E8F\u5217:"\u5E8F\u5217",\u5BF9\u9F50:"\u5BF9\u9F50",\u5F15\u7528:"\u5F15\u7528",\u8868\u60C5:"\u8868\u60C5",\u56FE\u7247:"\u56FE\u7247",\u89C6\u9891:"\u89C6\u9891",\u8868\u683C:"\u8868\u683C",\u4EE3\u7801:"\u4EE3\u7801",\u5206\u5272\u7EBF:"\u5206\u5272\u7EBF",\u6062\u590D:"\u6062\u590D",\u64A4\u9500:"\u64A4\u9500",\u5168\u5C4F:"\u5168\u5C4F",\u53D6\u6D88\u5168\u5C4F:"\u53D6\u6D88\u5168\u5C4F",\u5F85\u529E\u4E8B\u9879:"\u5F85\u529E\u4E8B\u9879"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"\u8BBE\u7F6E\u6807\u9898",\u80CC\u666F\u989C\u8272:"\u80CC\u666F\u989C\u8272",\u6587\u5B57\u989C\u8272:"\u6587\u5B57\u989C\u8272",\u8BBE\u7F6E\u5B57\u53F7:"\u8BBE\u7F6E\u5B57\u53F7",\u8BBE\u7F6E\u5B57\u4F53:"\u8BBE\u7F6E\u5B57\u4F53",\u8BBE\u7F6E\u7F29\u8FDB:"\u8BBE\u7F6E\u7F29\u8FDB",\u5BF9\u9F50\u65B9\u5F0F:"\u5BF9\u9F50\u65B9\u5F0F",\u8BBE\u7F6E\u884C\u9AD8:"\u8BBE\u7F6E\u884C\u9AD8",\u5E8F\u5217:"\u5E8F\u5217",head:{\u6B63\u6587:"\u6B63\u6587"},indent:{\u589E\u52A0\u7F29\u8FDB:"\u589E\u52A0\u7F29\u8FDB",\u51CF\u5C11\u7F29\u8FDB:"\u51CF\u5C11\u7F29\u8FDB"},justify:{\u9760\u5DE6:"\u9760\u5DE6",\u5C45\u4E2D:"\u5C45\u4E2D",\u9760\u53F3:"\u9760\u53F3",\u4E24\u7AEF:"\u4E24\u7AEF"},list:{\u65E0\u5E8F\u5217\u8868:"\u65E0\u5E8F\u5217\u8868",\u6709\u5E8F\u5217\u8868:"\u6709\u5E8F\u5217\u8868"}},panelMenus:{emoticon:{\u9ED8\u8BA4:"\u9ED8\u8BA4",\u65B0\u6D6A:"\u65B0\u6D6A",emoji:"emoji",\u624B\u52BF:"\u624B\u52BF"},image:{\u4E0A\u4F20\u56FE\u7247:"\u4E0A\u4F20\u56FE\u7247",\u7F51\u7EDC\u56FE\u7247:"\u7F51\u7EDC\u56FE\u7247",\u56FE\u7247\u5730\u5740:"\u56FE\u7247\u5730\u5740",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"\u56FE\u7247\u6587\u5B57\u8BF4\u660E",\u8DF3\u8F6C\u94FE\u63A5:"\u8DF3\u8F6C\u94FE\u63A5"},link:{\u94FE\u63A5:"\u94FE\u63A5",\u94FE\u63A5\u6587\u5B57:"\u94FE\u63A5\u6587\u5B57",\u53D6\u6D88\u94FE\u63A5:"\u53D6\u6D88\u94FE\u63A5",\u67E5\u770B\u94FE\u63A5:"\u67E5\u770B\u94FE\u63A5"},video:{\u63D2\u5165\u89C6\u9891:"\u63D2\u5165\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891:"\u4E0A\u4F20\u89C6\u9891"},table:{\u884C:"\u884C",\u5217:"\u5217",\u7684:"\u7684",\u8868\u683C:"\u8868\u683C",\u6DFB\u52A0\u884C:"\u6DFB\u52A0\u884C",\u5220\u9664\u884C:"\u5220\u9664\u884C",\u6DFB\u52A0\u5217:"\u6DFB\u52A0\u5217",\u5220\u9664\u5217:"\u5220\u9664\u5217",\u8BBE\u7F6E\u8868\u5934:"\u8BBE\u7F6E\u8868\u5934",\u53D6\u6D88\u8868\u5934:"\u53D6\u6D88\u8868\u5934",\u63D2\u5165\u8868\u683C:"\u63D2\u5165\u8868\u683C",\u5220\u9664\u8868\u683C:"\u5220\u9664\u8868\u683C"},code:{\u5220\u9664\u4EE3\u7801:"\u5220\u9664\u4EE3\u7801",\u4FEE\u6539\u4EE3\u7801:"\u4FEE\u6539\u4EE3\u7801",\u63D2\u5165\u4EE3\u7801:"\u63D2\u5165\u4EE3\u7801"}}},validate:{\u5F20\u56FE\u7247:"\u5F20\u56FE\u7247",\u5927\u4E8E:"\u5927\u4E8E",\u56FE\u7247\u94FE\u63A5:"\u56FE\u7247\u94FE\u63A5",\u4E0D\u662F\u56FE\u7247:"\u4E0D\u662F\u56FE\u7247",\u8FD4\u56DE\u7ED3\u679C:"\u8FD4\u56DE\u7ED3\u679C",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"\u4E0A\u4F20\u56FE\u7247\u5931\u8D25",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"\u63D2\u5165\u56FE\u7247\u9519\u8BEF",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"\u4E00\u6B21\u6700\u591A\u4E0A\u4F20",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"\u63D2\u5165\u89C6\u9891\u9519\u8BEF",\u89C6\u9891\u94FE\u63A5:"\u89C6\u9891\u94FE\u63A5",\u4E0D\u662F\u89C6\u9891:"\u4E0D\u662F\u89C6\u9891",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7",\u4E2A\u89C6\u9891:"\u4E2A\u89C6\u9891",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"\u4E0A\u4F20\u89C6\u9891\u5931\u8D25",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF"}}},en:{wangEditor:{\u91CD\u7F6E:"reset",\u63D2\u5165:"insert",\u9ED8\u8BA4:"default",\u521B\u5EFA:"create",\u4FEE\u6539:"edit",\u5982:"like",\u8BF7\u8F93\u5165\u6B63\u6587:"please enter the text",menus:{title:{\u6807\u9898:"head",\u52A0\u7C97:"bold",\u5B57\u53F7:"font size",\u5B57\u4F53:"font family",\u659C\u4F53:"italic",\u4E0B\u5212\u7EBF:"underline",\u5220\u9664\u7EBF:"strikethrough",\u7F29\u8FDB:"indent",\u884C\u9AD8:"line heihgt",\u6587\u5B57\u989C\u8272:"font color",\u80CC\u666F\u8272:"background",\u94FE\u63A5:"link",\u5E8F\u5217:"numbered list",\u5BF9\u9F50:"align",\u5F15\u7528:"quote",\u8868\u60C5:"emoticons",\u56FE\u7247:"image",\u89C6\u9891:"media",\u8868\u683C:"table",\u4EE3\u7801:"code",\u5206\u5272\u7EBF:"split line",\u6062\u590D:"undo",\u64A4\u9500:"redo",\u5168\u5C4F:"fullscreen",\u53D6\u6D88\u5168\u5C4F:"cancel fullscreen",\u5F85\u529E\u4E8B\u9879:"todo"},dropListMenu:{\u8BBE\u7F6E\u6807\u9898:"title",\u80CC\u666F\u989C\u8272:"background",\u6587\u5B57\u989C\u8272:"font color",\u8BBE\u7F6E\u5B57\u53F7:"font size",\u8BBE\u7F6E\u5B57\u4F53:"font family",\u8BBE\u7F6E\u7F29\u8FDB:"indent",\u5BF9\u9F50\u65B9\u5F0F:"align",\u8BBE\u7F6E\u884C\u9AD8:"line heihgt",\u5E8F\u5217:"list",head:{\u6B63\u6587:"text"},indent:{\u589E\u52A0\u7F29\u8FDB:"indent",\u51CF\u5C11\u7F29\u8FDB:"outdent"},justify:{\u9760\u5DE6:"left",\u5C45\u4E2D:"center",\u9760\u53F3:"right",\u4E24\u7AEF:"justify"},list:{\u65E0\u5E8F\u5217\u8868:"unordered",\u6709\u5E8F\u5217\u8868:"ordered"}},panelMenus:{emoticon:{\u8868\u60C5:"emoji",\u624B\u52BF:"gesture"},image:{\u4E0A\u4F20\u56FE\u7247:"upload image",\u7F51\u7EDC\u56FE\u7247:"network image",\u56FE\u7247\u5730\u5740:"image link",\u56FE\u7247\u6587\u5B57\u8BF4\u660E:"image alt",\u8DF3\u8F6C\u94FE\u63A5:"hyperlink"},link:{\u94FE\u63A5:"link",\u94FE\u63A5\u6587\u5B57:"link text",\u53D6\u6D88\u94FE\u63A5:"unlink",\u67E5\u770B\u94FE\u63A5:"view links"},video:{\u63D2\u5165\u89C6\u9891:"insert video",\u4E0A\u4F20\u89C6\u9891:"upload local video"},table:{\u884C:"rows",\u5217:"columns",\u7684:" ",\u8868\u683C:"table",\u6DFB\u52A0\u884C:"insert row",\u5220\u9664\u884C:"delete row",\u6DFB\u52A0\u5217:"insert column",\u5220\u9664\u5217:"delete column",\u8BBE\u7F6E\u8868\u5934:"set header",\u53D6\u6D88\u8868\u5934:"cancel header",\u63D2\u5165\u8868\u683C:"insert table",\u5220\u9664\u8868\u683C:"delete table"},code:{\u5220\u9664\u4EE3\u7801:"delete code",\u4FEE\u6539\u4EE3\u7801:"edit code",\u63D2\u5165\u4EE3\u7801:"insert code"}}},validate:{\u5F20\u56FE\u7247:"images",\u5927\u4E8E:"greater than",\u56FE\u7247\u94FE\u63A5:"image link",\u4E0D\u662F\u56FE\u7247:"is not image",\u8FD4\u56DE\u7ED3\u679C:"return results",\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6:"upload image timeout",\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF:"upload image error",\u4E0A\u4F20\u56FE\u7247\u5931\u8D25:"upload image failed",\u63D2\u5165\u56FE\u7247\u9519\u8BEF:"insert image error",\u4E00\u6B21\u6700\u591A\u4E0A\u4F20:"once most at upload",\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25:"download link failed",\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7:"image validate failed",\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001:"server return status",\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload image return results error",\u8BF7\u66FF\u6362\u4E3A\u652F\u6301\u7684\u56FE\u7247\u7C7B\u578B:"please replace with a supported image type",\u60A8\u63D2\u5165\u7684\u7F51\u7EDC\u56FE\u7247\u65E0\u6CD5\u8BC6\u522B:"the network picture you inserted is not recognized",\u60A8\u521A\u624D\u63D2\u5165\u7684\u56FE\u7247\u94FE\u63A5\u672A\u901A\u8FC7\u7F16\u8F91\u5668\u6821\u9A8C:"the image link you just inserted did not pass the editor verification",\u63D2\u5165\u89C6\u9891\u9519\u8BEF:"insert video error",\u89C6\u9891\u94FE\u63A5:"video link",\u4E0D\u662F\u89C6\u9891:"is not video",\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7:"video validate failed",\u4E2A\u89C6\u9891:"videos",\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6:"upload video timeout",\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF:"upload video error",\u4E0A\u4F20\u89C6\u9891\u5931\u8D25:"upload video failed",\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF:"upload video return results error"}}}}}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(6);function u(){return!(!a.UA.isIE()&&!a.UA.isOldEdge)}o.default={compatibleMode:u,historyMaxSize:30}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(7);o.default={onlineVideoCheck:function(u){return!0},onlineVideoCallback:a.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1073741824,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:72e5,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(17));(0,u.default)(o,"__esModule",{value:!0});var c=t(2).__importDefault(t(3)),p=t(6),m=t(7),h=function(){function b(y){this._currentRange=null,this.editor=y}return b.prototype.getRange=function(){return this._currentRange},b.prototype.saveRange=function(y){if(y)this._currentRange=y;else{var v=window.getSelection();if(v.rangeCount!==0){var w=v.getRangeAt(0),x=this.getSelectionContainerElem(w);if(x!=null&&x.length&&x.attr("contenteditable")!=="false"&&!x.parentUntil("[contenteditable=false]")){var _=this.editor,g=_.$textElem;if(g.isContain(x)){var C;if(g.elems[0]===x.elems[0]&&(0,d.default)(C=g.html()).call(C)===m.EMPTY_P){var k=g.children(),A=k==null?void 0:k.last();_.selection.createRangeByElem(A,!0,!0),_.selection.restoreSelection()}this._currentRange=w}}}}},b.prototype.collapseRange=function(y){y===void 0&&(y=!1);var v=this._currentRange;v&&v.collapse(y)},b.prototype.getSelectionText=function(){var y=this._currentRange;return y?y.toString():""},b.prototype.getSelectionContainerElem=function(y){var v,w;if(v=y||this._currentRange)return w=v.commonAncestorContainer,c.default(w.nodeType===1?w:w.parentNode)},b.prototype.getSelectionStartElem=function(y){var v,w;if(v=y||this._currentRange)return w=v.startContainer,c.default(w.nodeType===1?w:w.parentNode)},b.prototype.getSelectionEndElem=function(y){var v,w;if(v=y||this._currentRange)return w=v.endContainer,c.default(w.nodeType===1?w:w.parentNode)},b.prototype.isSelectionEmpty=function(){var y=this._currentRange;return!(!y||!y.startContainer||y.startContainer!==y.endContainer||y.startOffset!==y.endOffset)},b.prototype.restoreSelection=function(){var y=window.getSelection(),v=this._currentRange;y&&v&&(y.removeAllRanges(),y.addRange(v))},b.prototype.createEmptyRange=function(){var y,v=this.editor,w=this.getRange();if(w&&this.isSelectionEmpty())try{p.UA.isWebkit()?(v.cmd.do("insertHTML","​"),w.setEnd(w.endContainer,w.endOffset+1),this.saveRange(w)):(y=c.default(""),v.cmd.do("insertElem",y),this.createRangeByElem(y,!0))}catch{}},b.prototype.createRangeByElems=function(y,v){var w=window.getSelection?window.getSelection():document.getSelection();w==null||w.removeAllRanges();var x=document.createRange();x.setStart(y,0),x.setEnd(v,v.childNodes.length||1),this.saveRange(x),this.restoreSelection()},b.prototype.createRangeByElem=function(y,v,w){if(y.length){var x=y.elems[0],_=document.createRange();w?_.selectNodeContents(x):_.selectNode(x),v!=null&&(_.collapse(v),v||(this.saveRange(_),this.editor.selection.moveCursor(x))),this.saveRange(_)}},b.prototype.getSelectionRangeTopNodes=function(){var y,v,w=(y=this.getSelectionStartElem())===null||y===void 0?void 0:y.getNodeTop(this.editor),x=(v=this.getSelectionEndElem())===null||v===void 0?void 0:v.getNodeTop(this.editor);return this.recordSelectionNodes(c.default(w),c.default(x))},b.prototype.moveCursor=function(y,v){var w,x=this.getRange(),_=y.nodeType===3?(w=y.nodeValue)===null||w===void 0?void 0:w.length:y.childNodes.length;(p.UA.isFirefox||p.UA.isIE())&&_!==0&&(y.nodeType===3||y.childNodes[_-1].nodeName==="BR")&&(_-=1);var g=v??_;!x||y&&(x.setStart(y,g),x.setEnd(y,g),this.restoreSelection())},b.prototype.getCursorPos=function(){var y=window.getSelection();return y==null?void 0:y.anchorOffset},b.prototype.clearWindowSelectionRange=function(){var y=window.getSelection();y&&y.removeAllRanges()},b.prototype.recordSelectionNodes=function(y,v){var w=[],x=!0;try{for(var _=y,g=this.editor.$textElem;x;){var C=_==null?void 0:_.getNodeTop(this.editor);C.getNodeName()==="BODY"&&(x=!1),C.length>0&&(w.push(c.default(_)),v!=null&&v.equal(C)||g.equal(C)?x=!1:_=C.getNextSibling())}}catch{x=!1}return w},b.prototype.setRangeToElem=function(y){var v=this.getRange();v==null||v.setStart(y,0),v==null||v.setEnd(y,0)},b}();o.default=h},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2).__importDefault(t(3)),u=function(){function d(c){this.editor=c}return d.prototype.do=function(c,p){var m=this.editor;m.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var h=m.selection;if(h.getRange()){switch(h.restoreSelection(),c){case"insertHTML":this.insertHTML(p);break;case"insertElem":this.insertElem(p);break;default:this.execCommand(c,p)}m.menus.changeActive(),h.saveRange(),h.restoreSelection()}},d.prototype.insertHTML=function(c){var p=this.editor,m=p.selection.getRange();if(m!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",c);else if(m.insertNode){if(m.deleteContents(),a.default(c).elems.length>0)m.insertNode(a.default(c).elems[0]);else{var h=document.createElement("p");h.appendChild(document.createTextNode(c)),m.insertNode(h)}p.selection.collapseRange()}}},d.prototype.insertElem=function(c){var p=this.editor.selection.getRange();p!=null&&p.insertNode&&(p.deleteContents(),p.insertNode(c.elems[0]))},d.prototype.execCommand=function(c,p){document.execCommand(c,!1,p)},d.prototype.queryCommandValue=function(c){return document.queryCommandValue(c)},d.prototype.queryCommandState=function(c){return document.queryCommandState(c)},d.prototype.queryCommandSupported=function(c){return document.queryCommandSupported(c)},d}();o.default=u},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(31)),c=a(t(4)),p=a(t(17)),m=a(t(27)),h=a(t(46));(0,u.default)(o,"__esModule",{value:!0});var b=t(2),y=b.__importDefault(t(3)),v=b.__importDefault(t(287)),w=t(6),x=b.__importDefault(t(299)),_=b.__importDefault(t(300)),g=t(7),C=function(){function k(A){this.editor=A,this.eventHooks={onBlurEvents:[],changeEvents:[],dropEvents:[],clickEvents:[],keydownEvents:[],keyupEvents:[],tabUpEvents:[],tabDownEvents:[],enterUpEvents:[],enterDownEvents:[],deleteUpEvents:[],deleteDownEvents:[],pasteEvents:[],linkClickEvents:[],codeClickEvents:[],textScrollEvents:[],toolbarClickEvents:[],imgClickEvents:[],imgDragBarMouseDownEvents:[],tableClickEvents:[],menuClickEvents:[],dropListMenuHoverEvents:[],splitLineEvents:[],videoClickEvents:[]}}return k.prototype.init=function(){this._saveRange(),this._bindEventHooks(),v.default(this)},k.prototype.togglePlaceholder=function(){var A,S=this.html(),M=(0,d.default)(A=this.editor.$textContainerElem).call(A,".placeholder");M.hide(),!this.editor.isComposing&&(!S||S===" ")&&M.show()},k.prototype.clear=function(){this.html(g.EMPTY_P)},k.prototype.html=function(A){var S=this.editor,M=S.$textElem;if(A==null){var I=M.html(),N=(I=(I=(I=(I=I.replace(/\u200b/gm,"")).replace(/

      <\/p>/gim,"")).replace(g.EMPTY_P_LAST_REGEX,"")).replace(g.EMPTY_P_REGEX,"

      ")).match(/<(img|br|hr|input)[^>]*>/gi);return N!==null&&(0,c.default)(N).call(N,function(R){R.match(/\/>/)||(I=I.replace(R,R.substring(0,R.length-1)+"/>"))}),I}(A=(0,p.default)(A).call(A))===""&&(A=g.EMPTY_P),(0,m.default)(A).call(A,"<")!==0&&(A="

      "+A+"

      "),M.html(A),S.initSelection()},k.prototype.setJSON=function(A){var S=_.default(A).children(),M=this.editor.$textElem;!S||M.replaceChildAll(S)},k.prototype.getJSON=function(){var A=this.editor.$textElem;return x.default(A)},k.prototype.text=function(A){var S=this.editor,M=S.$textElem;if(A==null){var I=M.text();return I=I.replace(/\u200b/gm,"")}M.text("

      "+A+"

      "),S.initSelection()},k.prototype.append=function(A){var S=this.editor;(0,m.default)(A).call(A,"<")!==0&&(A="

      "+A+"

      "),this.html(this.html()+A),S.initSelection()},k.prototype._saveRange=function(){var A=this.editor,S=A.$textElem,M=y.default(document);function I(){A.selection.saveRange(),A.menus.changeActive()}function N(){I(),S.off("click",N)}function R(){I(),M.off("mouseup",R)}function T(){M.on("mouseup",R),S.off("mouseleave",T)}S.on("keyup",I),S.on("click",N),S.on("mousedown",function(){S.on("mouseleave",T)}),S.on("mouseup",function(L){S.off("mouseleave",T),(0,h.default)(function(){A.selection.getRange()!==null&&I()},0)})},k.prototype._bindEventHooks=function(){var A=this.editor,S=A.$textElem,M=this.eventHooks;function I(N){N.preventDefault()}S.on("click",function(N){var R=M.clickEvents;(0,c.default)(R).call(R,function(T){return T(N)})}),S.on("keyup",function(N){if(N.keyCode===13){var R=M.enterUpEvents;(0,c.default)(R).call(R,function(T){return T(N)})}}),S.on("keyup",function(N){var R=M.keyupEvents;(0,c.default)(R).call(R,function(T){return T(N)})}),S.on("keydown",function(N){var R=M.keydownEvents;(0,c.default)(R).call(R,function(T){return T(N)})}),S.on("keyup",function(N){if(N.keyCode===8||N.keyCode===46){var R=M.deleteUpEvents;(0,c.default)(R).call(R,function(T){return T(N)})}}),S.on("keydown",function(N){if(N.keyCode===8||N.keyCode===46){var R=M.deleteDownEvents;(0,c.default)(R).call(R,function(T){return T(N)})}}),S.on("paste",function(N){if(!w.UA.isIE()){N.preventDefault();var R=M.pasteEvents;(0,c.default)(R).call(R,function(T){return T(N)})}}),S.on("keydown",function(N){(A.isFocus||A.isCompatibleMode)&&(N.ctrlKey||N.metaKey)&&N.keyCode===90&&(N.preventDefault(),N.shiftKey?A.history.restore():A.history.revoke())}),S.on("keyup",function(N){if(N.keyCode===9){N.preventDefault();var R=M.tabUpEvents;(0,c.default)(R).call(R,function(T){return T(N)})}}),S.on("keydown",function(N){if(N.keyCode===9){N.preventDefault();var R=M.tabDownEvents;(0,c.default)(R).call(R,function(T){return T(N)})}}),S.on("scroll",w.throttle(function(N){var R=M.textScrollEvents;(0,c.default)(R).call(R,function(T){return T(N)})},100)),y.default(document).on("dragleave",I).on("drop",I).on("dragenter",I).on("dragover",I),A.beforeDestroy(function(){y.default(document).off("dragleave",I).off("drop",I).off("dragenter",I).off("dragover",I)}),S.on("drop",function(N){N.preventDefault();var R=M.dropEvents;(0,c.default)(R).call(R,function(T){return T(N)})}),S.on("click",function(N){var R=null,T=N.target,L=y.default(T);if(L.getNodeName()==="A")R=L;else{var H=L.parentUntil("a");H!=null&&(R=H)}if(R){var P=M.linkClickEvents;(0,c.default)(P).call(P,function(j){return j(R)})}}),S.on("click",function(N){var R=null,T=N.target,L=y.default(T);if(L.getNodeName()==="IMG"&&!L.elems[0].getAttribute("data-emoji")&&(N.stopPropagation(),R=L),R){var H=M.imgClickEvents;(0,c.default)(H).call(H,function(P){return P(R)})}}),S.on("click",function(N){var R=null,T=N.target,L=y.default(T);if(L.getNodeName()==="PRE")R=L;else{var H=L.parentUntil("pre");H!==null&&(R=H)}if(R){var P=M.codeClickEvents;(0,c.default)(P).call(P,function(j){return j(R)})}}),S.on("click",function(N){var R=null,T=N.target,L=y.default(T);if(L.getNodeName()==="HR"&&(R=L),R){A.selection.createRangeByElem(R),A.selection.restoreSelection();var H=M.splitLineEvents;(0,c.default)(H).call(H,function(P){return P(R)})}}),A.$toolbarElem.on("click",function(N){var R=M.toolbarClickEvents;(0,c.default)(R).call(R,function(T){return T(N)})}),A.$textContainerElem.on("mousedown",function(N){var R=N.target;if(y.default(R).hasClass("w-e-img-drag-rb")){var T=M.imgDragBarMouseDownEvents;(0,c.default)(T).call(T,function(L){return L()})}}),S.on("click",function(N){var R=null,T=N.target;if(R=y.default(T).parentUntilEditor("TABLE",A,T)){var L=M.tableClickEvents;(0,c.default)(L).call(L,function(H){return H(R,N)})}}),S.on("keydown",function(N){if(N.keyCode===13){var R=M.enterDownEvents;(0,c.default)(R).call(R,function(T){return T(N)})}}),S.on("click",function(N){var R=null,T=N.target,L=y.default(T);if(L.getNodeName()==="VIDEO"&&(N.stopPropagation(),R=L),R){var H=M.videoClickEvents;(0,c.default)(H).call(H,function(P){return P(R)})}})},k}();o.default=C},function(r,o,t){var a=t(284);r.exports=a},function(r,o,t){var a=t(285),u=Array.prototype;r.exports=function(d){var c=d.find;return d===u||d instanceof Array&&c===u.find?a:c}},function(r,o,t){t(286);var a=t(15);r.exports=a("Array").find},function(r,o,t){var a=t(5),u=t(30).find,d=t(82),c=t(22),p="find",m=!0,h=c(p);p in[]&&Array(1)[p](function(){m=!1}),a({target:"Array",proto:!0,forced:m||!h},{find:function(b){return u(this,b,arguments.length>1?arguments[1]:void 0)}}),d(p)},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(288)),d=a.__importStar(t(289)),c=a.__importDefault(t(290)),p=a.__importDefault(t(291)),m=a.__importDefault(t(298));function h(b){var y=b.editor,v=b.eventHooks;u.default(y,v.enterUpEvents,v.enterDownEvents),d.default(y,v.deleteUpEvents,v.deleteDownEvents),d.cutToKeepP(y,v.keyupEvents),c.default(y,v.tabDownEvents),p.default(y,v.pasteEvents),m.default(y,v.imgClickEvents)}o.default=h},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(27));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=t(7),m=c.__importDefault(t(3));function h(b,y,v){function w(g){var C,k=m.default(p.EMPTY_P);k.insertBefore(g),(0,d.default)(C=g.html()).call(C,"=0?k.remove():(b.selection.createRangeByElem(k,!0,!0),b.selection.restoreSelection(),g.remove())}function x(){var g=b.$textElem,C=b.selection.getSelectionContainerElem(),k=C.parent();k.html()==="
      "||C.getNodeName()==="FONT"&&C.text()===""&&C.attr("face")==="monospace"?w(k):k.equal(g)&&(C.getNodeName()==="P"&&C.attr("data-we-empty-p")===null||C.text()||w(C))}function _(g){var C;b.selection.saveRange((C=getSelection())===null||C===void 0?void 0:C.getRangeAt(0)),b.selection.getSelectionContainerElem().id===b.textElemId&&(g.preventDefault(),b.cmd.do("insertHTML","


      "))}y.push(x),v.push(_)}o.default=h},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(17)),c=a(t(44));(0,u.default)(o,"__esModule",{value:!0}),o.cutToKeepP=void 0;var p=t(2),m=t(7),h=p.__importDefault(t(3));function b(v,w,x){function _(){var C=v.$textElem,k=v.$textElem.html(),A=v.$textElem.text(),S=(0,d.default)(k).call(k),M=["


      ","
      ",'

      ',m.EMPTY_P];/^\s*$/.test(A)&&(!S||(0,c.default)(M).call(M,S))&&(C.html(m.EMPTY_P),v.selection.createRangeByElem(C,!1,!0),v.selection.restoreSelection(),v.selection.moveCursor(C.getNode(),0))}function g(C){var k,A=v.$textElem;(0,d.default)(k=A.html().toLowerCase()).call(k)!==m.EMPTY_P||C.preventDefault()}w.push(_),x.push(g)}function y(v,w){function x(_){var g;if(_.keyCode===88){var C=v.$textElem,k=(0,d.default)(g=C.html().toLowerCase()).call(g);if(!k||k==="
      "){var A=h.default(m.EMPTY_P);C.html(" "),C.append(A),v.selection.createRangeByElem(A,!1,!0),v.selection.restoreSelection(),v.selection.moveCursor(A.getNode(),0)}}}w.push(x)}o.cutToKeepP=y,o.default=b},function(r,o,t){function a(u,d){function c(){if(u.cmd.queryCommandSupported("insertHTML")){var p=u.selection.getSelectionContainerElem();if(p){var m=p.parent(),h=p.getNodeName(),b=m.getNodeName();h=="CODE"||b==="CODE"||b==="PRE"||/hljs/.test(b)?u.cmd.do("insertHTML",u.config.languageTab):u.cmd.do("insertHTML","    ")}}}d.push(c)}(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default=a},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(17));(0,u.default)(o,"__esModule",{value:!0});var c=t(130),p=t(6),m=t(7);function h(x){var _,g=(0,d.default)(_=x.replace(/
      /gim,"

      ").replace(/<\/div>/gim,"

      ")).call(_),C=document.createElement("div");return C.innerHTML=g,C.innerHTML.replace(/

      <\/p>/gim,"")}function b(x){return x.replace(/
      |/gm,` `).replace(/<[^>]+>/gm,"")}function y(x){var _;if(x==="")return!1;var g=document.createElement("div");return g.innerHTML=x,((_=g.firstChild)===null||_===void 0?void 0:_.nodeName)==="P"}function v(x){if(x==null||!x.length)return!1;var _=x.elems[0];return _.nodeName==="P"&&_.innerHTML==="
      "}function w(x,_){function g(C){var k=x.config,A=k.pasteFilterStyle,S=k.pasteIgnoreImg,M=k.pasteTextHandle,I=c.getPasteHtml(C,A,S),N=c.getPasteText(C);N=N.replace(/\n/gm,"
      ");var R=x.selection.getSelectionContainerElem();if(R){var T=R==null?void 0:R.getNodeName(),L=R==null?void 0:R.getNodeTop(x),H="";if(L.elems[0]&&(H=L==null?void 0:L.getNodeName()),T==="CODE"||H==="PRE")return M&&p.isFunction(M)&&(N=""+(M(N)||"")),void x.cmd.do("insertHTML",b(N));if(m.urlRegex.test(N)&&A){M&&p.isFunction(M)&&(N=""+(M(N)||""));var P=m.urlRegex.exec(N)[0],j=N.replace(m.urlRegex,"");return x.cmd.do("insertHTML",''+P+""+j)}if(I)try{if(M&&p.isFunction(M)&&(I=""+(M(I)||"")),/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(I)&&A)x.cmd.do("insertHTML",""+h(N));else{var z=h(I);if(y(z)){var Q=x.$textElem;if(x.cmd.do("insertHTML",z),Q.equal(R))return void x.selection.createEmptyRange();v(L)&&L.remove()}else/^]*src=['"]([^'"]+)[^>]*>$/g.test(z)||x.cmd.do("insertHTML",z)}}catch{M&&p.isFunction(M)&&(N=""+(M(N)||"")),x.cmd.do("insertHTML",""+h(N))}}}_.push(g)}o.default=w},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(17)),c=a(t(4)),p=a(t(44));(0,u.default)(o,"__esModule",{value:!0});var m=t(2),h=t(293),b=m.__importDefault(t(297));function y(g){var C=/.*?<\/span>/gi,k=/(.*?)<\/span>/;return g.replace(C,function(A){var S=A.match(k);return S==null?"":S[1]})}function v(g,C){var k;return g=(0,d.default)(k=g.toLowerCase()).call(k),!!(h.IGNORE_TAGS.has(g)||C&&g==="img")}function w(g,C){var k="";k="<"+g;var A=[];return(0,c.default)(C).call(C,function(S){A.push(S.name+'="'+S.value+'"')}),A.length>0&&(k=k+" "+A.join(" ")),k=k+(h.EMPTY_TAGS.has(g)?"/":"")+">"}function x(g){return""}function _(g,C,k){C===void 0&&(C=!0),k===void 0&&(k=!1);var A=[],S="";function M(R){(R=(0,d.default)(R).call(R))&&(h.EMPTY_TAGS.has(R)||(S=R))}function I(){S=""}new b.default().parse(g,{startElement:function(R,T){if(M(R),!v(R,k)){var L=h.NECESSARY_ATTRS.get(R)||[],H=[];(0,c.default)(T).call(T,function(j){var z=j.name;z!=="style"?(0,p.default)(L).call(L,z)!==!1&&H.push(j):C||H.push(j)});var P=w(R,H);A.push(P)}},characters:function(R){!R||v(S,k)||A.push(R)},endElement:function(R){if(!v(R,k)){var T=x(R);A.push(T),I()}},comment:function(R){M(R)}});var N=A.join("");return N=y(N)}o.default=_},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(131)),c=a(t(120));(0,u.default)(o,"__esModule",{value:!0}),o.TOP_LEVEL_TAGS=o.EMPTY_TAGS=o.NECESSARY_ATTRS=o.IGNORE_TAGS=void 0,o.IGNORE_TAGS=new d.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),o.NECESSARY_ATTRS=new c.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),o.EMPTY_TAGS=new d.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),o.TOP_LEVEL_TAGS=new d.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(r,o,t){var a=t(295);r.exports=a},function(r,o,t){t(296),t(61),t(50),t(54);var a=t(9);r.exports=a.Set},function(r,o,t){var a=t(121),u=t(123);r.exports=a("Set",function(d){return function(){return d(this,arguments.length?arguments[0]:void 0)}},u)},function(r,o){function t(){}t.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(a,u){u&&(this.contentHandler=u);for(var d,c,p,m=!1,h=this;a.length>0;)a.substring(0,4)==""))!=-1?(this.contentHandler.comment(a.substring(4,p)),a=a.substring(p+3),m=!1):m=!0:a.substring(0,2)=="0&&m(v.children,w.getRootNode())),w&&y.appendChild(w)}),p.default(y)}o.default=m},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(89)),c=a(t(70)),p=a(t(44)),m=a(t(302)),h=a(t(4)),b=a(t(94)),y=a(t(132)),v=a(t(46)),w=a(t(57));(0,u.default)(o,"__esModule",{value:!0});var x=t(2),_=x.__importDefault(t(87)),g=x.__importDefault(t(314)),C=x.__importDefault(t(3)),k=function(){function A(S){this.editor=S,this.menuList=[],this.constructorList=g.default}return A.prototype.extend=function(S,M){!M||typeof M!="function"||(this.constructorList[S]=M)},A.prototype.init=function(){var S,M,I=this,N=this.editor.config,R=N.excludeMenus;(0,d.default)(R)===!1&&(R=[]),N.menus=(0,c.default)(S=N.menus).call(S,function(Q){return(0,p.default)(R).call(R,Q)===!1});var T=(0,m.default)(_.default.globalCustomMenuConstructorList);T=(0,c.default)(T).call(T,function(Q){return(0,p.default)(R).call(R,Q)}),(0,h.default)(T).call(T,function(Q){delete _.default.globalCustomMenuConstructorList[Q]}),(0,h.default)(M=N.menus).call(M,function(Q){var q=I.constructorList[Q];I._initMenuList(Q,q)});for(var L=0,H=(0,b.default)(_.default.globalCustomMenuConstructorList);L

      `);N.css("visibility","hidden"),M.append(N),N.css("z-index",S.zIndex.get("tooltip"));var R=0;function T(){R&&clearTimeout(R)}function L(){T(),N.css("visibility","hidden")}M.on("mouseover",function(H){var P,j,z=H.target,Q=C.default(z);if(Q.isContain(M))L();else{if(Q.parentUntil(".w-e-droplist")!=null)L();else if(Q.attr("data-title"))P=Q.attr("data-title"),j=Q;else{var q=Q.parentUntil(".w-e-menu");q!=null&&(P=q.attr("data-title"),j=q)}if(P&&j){T();var W=j.getOffsetData();N.text(S.i18next.t("menus.title."+P));var K=N.getOffsetData(),X=W.left+W.width/2-K.width/2;N.css("left",X+"px"),I==="up"?N.css("top",W.top-K.height-8+"px"):I==="down"&&N.css("top",W.top+W.height+8+"px"),R=(0,v.default)(function(){N.css("visibility","visible")},200)}else L()}}).on("mouseleave",function(){L()})},A.prototype._addToToolbar=function(){var S,M=this.editor.$toolbarElem;(0,h.default)(S=this.menuList).call(S,function(I){var N=I.$elem;N&&M.append(N)})},A.prototype.menuFind=function(S){for(var M=this.menuList,I=0,N=M.length;Ix;)b=v[x++],(!a||c.call(y,b))&&_.push(m?[b,y[b]]:y[b]);return _}};r.exports={entries:p(!0),values:p(!1)}},function(r,o,t){var a=t(311);r.exports=a},function(r,o,t){var a=t(312),u=Array.prototype;r.exports=function(d){var c=d.some;return d===u||d instanceof Array&&c===u.some?a:c}},function(r,o,t){t(313);var a=t(15);r.exports=a("Array").some},function(r,o,t){var a=t(5),u=t(30).some,d=t(67),c=t(22),p=d("some"),m=c("some");a({target:"Array",proto:!0,forced:!p||!m},{some:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}})},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(315)),d=a.__importDefault(t(316)),c=a.__importDefault(t(321)),p=a.__importDefault(t(326)),m=a.__importDefault(t(327)),h=a.__importDefault(t(328)),b=a.__importDefault(t(329)),y=a.__importDefault(t(331)),v=a.__importDefault(t(333)),w=a.__importDefault(t(334)),x=a.__importDefault(t(337)),_=a.__importDefault(t(338)),g=a.__importDefault(t(339)),C=a.__importDefault(t(350)),k=a.__importDefault(t(365)),A=a.__importDefault(t(369)),S=a.__importDefault(t(137)),M=a.__importDefault(t(378)),I=a.__importDefault(t(380)),N=a.__importDefault(t(381)),R=a.__importDefault(t(382)),T=a.__importDefault(t(401)),L=a.__importDefault(t(406)),H=a.__importDefault(t(409));o.default={bold:u.default,head:d.default,italic:p.default,link:c.default,underline:m.default,strikeThrough:h.default,fontName:b.default,fontSize:y.default,justify:v.default,quote:w.default,backColor:x.default,foreColor:_.default,video:g.default,image:C.default,indent:k.default,emoticon:A.default,list:S.default,lineHeight:M.default,undo:I.default,redo:N.default,table:R.default,code:T.default,splitLine:L.default,todo:H.default}},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(23)),d=a.__importDefault(t(3)),c=function(p){function m(h){var b=d.default(`
      `);return p.call(this,b,h)||this}return a.__extends(m,p),m.prototype.clickHandler=function(){var h=this.editor,b=h.selection.isSelectionEmpty();b&&h.selection.createEmptyRange(),h.cmd.do("bold"),b&&(h.selection.collapseRange(),h.selection.restoreSelection())},m.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("bold")?this.active():this.unActive()},m}(u.default);o.default=c},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(27)),c=a(t(31)),p=a(t(4)),m=a(t(317)),h=a(t(44));(0,u.default)(o,"__esModule",{value:!0});var b=t(2),y=b.__importDefault(t(24)),v=b.__importDefault(t(3)),w=t(6),x=t(7),_=function(g){function C(k){var A=this,S=v.default('
      '),M={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:v.default("

      H1

      "),value:"

      "},{$elem:v.default("

      H2

      "),value:"

      "},{$elem:v.default("

      H3

      "),value:"

      "},{$elem:v.default("

      H4

      "),value:"

      "},{$elem:v.default("

      H5
      "),value:"
      "},{$elem:v.default("

      "+k.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"

      "),value:"

      "}],clickHandler:function(I){A.command(I)}};return A=g.call(this,S,k,M)||this,k.config.onCatalogChange&&(A.oldCatalogs=[],A.addListenerCatalog(),A.getCatalogs()),A}return b.__extends(C,g),C.prototype.command=function(k){var A=this.editor,S=A.selection.getSelectionContainerElem();if(S&&A.$textElem.equal(S))this.setMultilineHead(k);else{var M;if((0,d.default)(M=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(M,v.default(S).getNodeName())>-1)return;A.cmd.do("formatBlock",k)}k!=="

      "&&this.addUidForSelectionElem()},C.prototype.addUidForSelectionElem=function(){var k=this.editor.selection.getSelectionContainerElem(),A=w.getRandomCode();v.default(k).attr("id",A)},C.prototype.addListenerCatalog=function(){var k=this;this.editor.txt.eventHooks.changeEvents.push(function(){k.getCatalogs()})},C.prototype.getCatalogs=function(){var k=this.editor,A=this.editor.$textElem,S=k.config.onCatalogChange,M=(0,c.default)(A).call(A,"h1,h2,h3,h4,h5"),I=[];(0,p.default)(M).call(M,function(N,R){var T=v.default(N),L=T.attr("id"),H=T.getNodeName(),P=T.text();L||(L=w.getRandomCode(),T.attr("id",L)),P&&I.push({tag:H,id:L,text:P})}),(0,m.default)(this.oldCatalogs)!==(0,m.default)(I)&&(this.oldCatalogs=I,S&&S(I))},C.prototype.setMultilineHead=function(k){var A,S,M=this,I=this.editor,N=I.selection,R=(A=N.getSelectionContainerElem())===null||A===void 0?void 0:A.elems[0],T=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],L=v.default(N.getSelectionStartElem()),H=v.default(N.getSelectionEndElem());H.elems[0].outerHTML===v.default(x.EMPTY_P).elems[0].outerHTML&&!H.elems[0].nextSibling&&(H=H.prev());var P=[];P.push(L.getNodeTop(I));var j=[],z=(S=N.getRange())===null||S===void 0?void 0:S.commonAncestorContainer.childNodes;z==null||(0,p.default)(z).call(z,function(W,K){W===P[0].getNode()&&j.push(K),W===H.getNodeTop(I).getNode()&&j.push(K)});for(var Q=0;P[Q].getNode()!==H.getNodeTop(I).getNode();){if(!P[Q].elems[0])return;var q=v.default(P[Q].next().getNode());P.push(q),Q++}P==null||(0,p.default)(P).call(P,function(W,K){if(!M.hasTag(W,T)){var X=v.default(k),re=W.parent().getNode();X.html(""+W.html()),re.insertBefore(X.getNode(),W.getNode()),W.remove()}}),N.createRangeByElems(R.children[j[0]],R.children[j[1]])},C.prototype.hasTag=function(k,A){var S,M=this;if(!k)return!1;if((0,h.default)(A).call(A,k==null?void 0:k.getNodeName()))return!0;var I=!1;return(S=k.children())===null||S===void 0||(0,p.default)(S).call(S,function(N){I=M.hasTag(v.default(N),A)}),I},C.prototype.tryChangeActive=function(){var k=/^h/i,A=this.editor.cmd.queryCommandValue("formatBlock");k.test(A)?this.active():this.unActive()},C}(y.default);o.default=_},function(r,o,t){r.exports=t(318)},function(r,o,t){var a=t(319);r.exports=a},function(r,o,t){t(320);var a=t(9);a.JSON||(a.JSON={stringify:JSON.stringify}),r.exports=function(u,d,c){return a.JSON.stringify.apply(null,arguments)}},function(r,o,t){var a=t(5),u=t(35),d=t(11),c=u("JSON","stringify"),p=/[\uD800-\uDFFF]/g,m=/^[\uD800-\uDBFF]$/,h=/^[\uDC00-\uDFFF]$/,b=function(v,w,x){var _=x.charAt(w-1),g=x.charAt(w+1);return m.test(v)&&!h.test(g)||h.test(v)&&!m.test(_)?"\\u"+v.charCodeAt(0).toString(16):v},y=d(function(){return c("\uDF06\uD834")!=='"\uDF06\uD834"'||c("\uDEAD")!=='"\uDEAD"'});c&&a({target:"JSON",stat:!0,forced:y},{stringify:function(v,w,x){var _=c.apply(null,arguments);return typeof _=="string"?_.replace(p,b):_}})},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(17));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(37)),m=c.__importDefault(t(3)),h=c.__importDefault(t(322)),b=c.__importDefault(t(134)),y=c.__importDefault(t(32)),v=c.__importDefault(t(324)),w=t(7),x=function(_){function g(C){var k=this,A=m.default('

      ');return k=_.call(this,A,C)||this,v.default(C),k}return c.__extends(g,_),g.prototype.clickHandler=function(){var C,k=this.editor,A=k.selection.getSelectionContainerElem(),S=k.$textElem,M=S.html();if((0,d.default)(M).call(M)===w.EMPTY_P){var I=S.children();k.selection.createRangeByElem(I,!0,!0),A=k.selection.getSelectionContainerElem()}if(!A||!k.$textElem.equal(A))if(this.isActive){if(!(C=k.selection.getSelectionContainerElem()))return;this.createPanel(C.text(),C.attr("href"))}else k.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(k.selection.getSelectionText(),"")},g.prototype.createPanel=function(C,k){var A=h.default(this.editor,C,k);new y.default(this,A).create()},g.prototype.tryChangeActive=function(){var C=this.editor;b.default(C)?this.active():this.unActive()},g}(p.default);o.default=x},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(17));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=t(6),m=c.__importDefault(t(3)),h=c.__importDefault(t(134)),b=t(323);function y(v,w,x){var _,g=p.getRandom("input-link"),C=p.getRandom("input-text"),k=p.getRandom("btn-ok"),A=p.getRandom("btn-del"),S=h.default(v)?"inline-block":"none";function M(){if(h.default(v)){var T=v.selection.getSelectionContainerElem();!T||(v.selection.createRangeByElem(T),v.selection.restoreSelection(),_=T)}}function I(T,L){var H=new RegExp(/(<\/*ul>)|(<\/*li>)|(<\/*ol>)/g);T=T.replace(H,""),h.default(v)&&M(),v.cmd.do("insertHTML",''+T+"")}function N(){if(h.default(v)){M();var T=_.text();v.cmd.do("insertHTML",""+T+"")}}function R(T,L){var H=v.config.linkCheck(T,L);if(H!==void 0){if(H===!0)return!0;v.config.customAlert(H,"warning")}return!1}return{width:300,height:0,tabs:[{title:v.i18next.t("menus.panelMenus.link.\u94FE\u63A5"),tpl:`
      `,events:[{selector:"#"+k,type:"click",fn:function(){var T,L,H,P;v.selection.restoreSelection();var j=v.selection.getSelectionRangeTopNodes()[0].getNode(),z=window.getSelection(),Q=m.default("#"+g),q=m.default("#"+C),W=(0,d.default)(T=Q.val()).call(T),K=(0,d.default)(L=q.val()).call(L),X="";z&&(z==null||!z.isCollapsed)&&(X=(H=b.insertHtml(z,j))===null||H===void 0?void 0:(0,d.default)(H).call(H));var re=X==null?void 0:X.replace(/<.*?>/g,""),pe=(P=re==null?void 0:re.length)!==null&&P!==void 0?P:0;if(pe<=K.length){var ue=K.substring(0,pe),te=K.substring(pe);re===ue&&(K=X+te)}if(W&&(K||(K=W),R(K,W)))return I(K,W),!0},bindEnter:!0},{selector:"#"+A,type:"click",fn:function(){return N(),!0}}]}]}}o.default=y},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));function c(v,w){var x=v,_=v;do{if(x.textContent===w)break;_=x,x.parentNode&&(x=x==null?void 0:x.parentNode)}while((x==null?void 0:x.nodeName)!=="P");return _}function p(v,w){var x=v.nodeName,_="";if(v.nodeType===3||/^(h|H)[1-6]$/.test(x))return w;if(v.nodeType===1){var g=v.getAttribute("style"),C=v.getAttribute("face"),k=v.getAttribute("color");g&&(_=_+' style="'+g+'"'),C&&(_=_+' face="'+C+'"'),k&&(_=_+' color="'+k+'"')}return"<"+(x=x.toLowerCase())+_+">"+w+""}function m(v,w,x,_){var g,C=(g=w.textContent)===null||g===void 0?void 0:g.substring(x,_),k=w,A="";do C=A=p(k,C??""),k=k==null?void 0:k.parentElement;while(k&&k.textContent!==v);return A}function h(v,w){var x,_,g,C,k,A=v.anchorNode,S=v.focusNode,M=v.anchorOffset,I=v.focusOffset,N=(x=w.textContent)!==null&&x!==void 0?x:"",R=b(w),T="",L="",H="",P=A,j=S,z=A;if(A!=null&&A.isEqualNode(S??null)){var Q=m(N,A,M,I);return Q=y(R,Q)}for(A&&(T=m(N,A,M??0)),S&&(H=m(N,S,0,I)),A&&(P=c(A,N)),S&&(j=c(S,N)),z=(_=P==null?void 0:P.nextSibling)!==null&&_!==void 0?_:A;z==null||!z.isEqualNode(j??null);){if((z==null?void 0:z.nodeName)==="#text")L+=z==null?void 0:z.textContent;else{var q=(C=(g=z==null?void 0:z.firstChild)===null||g===void 0?void 0:g.parentElement)===null||C===void 0?void 0:C.innerHTML;z&&(L+=p(z,q??""))}var W=(k=z==null?void 0:z.nextSibling)!==null&&k!==void 0?k:z;if(W===z)break;z=W}return y(R,""+T+L+H)}function b(v){for(var w,x=(w=v.textContent)!==null&&w!==void 0?w:"",_=[];(v==null?void 0:v.textContent)===x;)v.nodeName!=="P"&&v.nodeName!=="TABLE"&&_.push(v),v=v.childNodes[0];return _}function y(v,w){return(0,d.default)(v).call(v,function(x){w=p(x,w)}),w}(0,u.default)(o,"__esModule",{value:!0}),o.insertHtml=o.createPartHtml=o.makeHtmlString=o.getTopNode=void 0,o.getTopNode=c,o.makeHtmlString=p,o.createPartHtml=m,o.insertHtml=h},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2).__importDefault(t(325));function u(d){a.default(d)}o.default=u},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(3)),d=a.__importDefault(t(38));function c(m){var h;function b(v){var w=[{$elem:u.default(""+m.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+""),onClick:function(x,_){var g=_.attr("href");return window.open(g,"_target"),!0}},{$elem:u.default(""+m.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+""),onClick:function(x,_){var g,C;x.selection.createRangeByElem(_),x.selection.restoreSelection();var k=_.childNodes();if((k==null?void 0:k.getNodeName())==="IMG"){var A=(C=(g=x.selection.getSelectionContainerElem())===null||g===void 0?void 0:g.children())===null||C===void 0?void 0:C.elems[0].children[0];x.cmd.do("insertHTML",`")}else{var S=_.text();x.cmd.do("insertHTML",""+S+"")}return!0}}];(h=new d.default(m,v,w)).create()}function y(){h&&(h.remove(),h=null)}return{showLinkTooltip:b,hideLinkTooltip:y}}function p(m){var h=c(m),b=h.showLinkTooltip,y=h.hideLinkTooltip;m.txt.eventHooks.linkClickEvents.push(b),m.txt.eventHooks.clickEvents.push(y),m.txt.eventHooks.keyupEvents.push(y),m.txt.eventHooks.toolbarClickEvents.push(y),m.txt.eventHooks.menuClickEvents.push(y),m.txt.eventHooks.textScrollEvents.push(y)}o.default=p},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(23)),d=a.__importDefault(t(3)),c=function(p){function m(h){var b=d.default(`
      `);return p.call(this,b,h)||this}return a.__extends(m,p),m.prototype.clickHandler=function(){var h=this.editor,b=h.selection.isSelectionEmpty();b&&h.selection.createEmptyRange(),h.cmd.do("italic"),b&&(h.selection.collapseRange(),h.selection.restoreSelection())},m.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("italic")?this.active():this.unActive()},m}(u.default);o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(23)),d=a.__importDefault(t(3)),c=function(p){function m(h){var b=d.default(`
      `);return p.call(this,b,h)||this}return a.__extends(m,p),m.prototype.clickHandler=function(){var h=this.editor,b=h.selection.isSelectionEmpty();b&&h.selection.createEmptyRange(),h.cmd.do("underline"),b&&(h.selection.collapseRange(),h.selection.restoreSelection())},m.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("underline")?this.active():this.unActive()},m}(u.default);o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(23)),d=a.__importDefault(t(3)),c=function(p){function m(h){var b=d.default(`
      `);return p.call(this,b,h)||this}return a.__extends(m,p),m.prototype.clickHandler=function(){var h=this.editor,b=h.selection.isSelectionEmpty();b&&h.selection.createEmptyRange(),h.cmd.do("strikeThrough"),b&&(h.selection.collapseRange(),h.selection.restoreSelection())},m.prototype.tryChangeActive=function(){this.editor.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},m}(u.default);o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(24)),d=a.__importDefault(t(3)),c=a.__importDefault(t(330)),p=function(m){function h(b){var y=this,v=d.default(`
      `),w={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:new c.default(b.config.fontNames).getItemList(),clickHandler:function(x){y.command(x)}};return y=m.call(this,v,b,w)||this}return a.__extends(h,m),h.prototype.command=function(b){var y,v=this.editor,w=v.selection.isSelectionEmpty(),x=(y=v.selection.getSelectionContainerElem())===null||y===void 0?void 0:y.elems[0];if(x!=null){var _=(x==null?void 0:x.nodeName.toLowerCase())!=="p",g=(x==null?void 0:x.getAttribute("face"))===b;if(w){if(_&&!g){var C=v.selection.getSelectionRangeTopNodes();v.selection.createRangeByElem(C[0]),v.selection.moveCursor(C[0].elems[0])}v.selection.setRangeToElem(x),v.selection.createEmptyRange()}v.cmd.do("fontName",b),w&&(v.selection.collapseRange(),v.selection.restoreSelection())}},h.prototype.tryChangeActive=function(){},h}(u.default);o.default=p},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2).__importDefault(t(3)),p=function(){function m(h){var b=this;this.itemList=[],(0,d.default)(h).call(h,function(y){var v=typeof y=="string"?y:y.value,w=typeof y=="string"?y:y.name;b.itemList.push({$elem:c.default(`

      `+w+"

      "),value:w})})}return m.prototype.getItemList=function(){return this.itemList},m}();o.default=p},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(24)),d=a.__importDefault(t(3)),c=a.__importDefault(t(332)),p=function(m){function h(b){var y=this,v=d.default(`
      `),w={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:new c.default(b.config.fontSizes).getItemList(),clickHandler:function(x){y.command(x)}};return y=m.call(this,v,b,w)||this}return a.__extends(h,m),h.prototype.command=function(b){var y,v=this.editor,w=v.selection.isSelectionEmpty();((y=v.selection.getSelectionContainerElem())===null||y===void 0?void 0:y.elems[0])!=null&&(v.cmd.do("fontSize",b),w&&(v.selection.collapseRange(),v.selection.restoreSelection()))},h.prototype.tryChangeActive=function(){},h}(u.default);o.default=p},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2).__importDefault(t(3)),u=function(){function d(c){for(var p in this.itemList=[],c){var m=c[p];this.itemList.push({$elem:a.default('

      '+m.name+"

      "),value:m.value})}}return d.prototype.getItemList=function(){return this.itemList},d}();o.default=u},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4)),c=a(t(27));(0,u.default)(o,"__esModule",{value:!0});var p=t(2),m=p.__importDefault(t(24)),h=p.__importDefault(t(3)),b=["LI"],y=["UL","BLOCKQUOTE"],v=function(w){function x(_){var g=this,C=h.default('
      '),k={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:h.default(`

      `+_.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+`

      `),value:"left"},{$elem:h.default(`

      `+_.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+`

      `),value:"center"},{$elem:h.default(`

      `+_.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+`

      `),value:"right"},{$elem:h.default(`

      `+_.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+`

      `),value:"justify"}],clickHandler:function(A){g.command(A)}};return g=w.call(this,C,_,k)||this}return p.__extends(x,w),x.prototype.command=function(_){var g=this.editor,C=g.selection,k=C.getSelectionContainerElem();C.saveRange();var A=g.selection.getSelectionRangeTopNodes();if(k!=null&&k.length)if(this.isSpecialNode(k,A[0])||this.isSpecialTopNode(A[0])){var S=this.getSpecialNodeUntilTop(k,A[0]);if(S==null)return;h.default(S).css("text-align",_)}else(0,d.default)(A).call(A,function(M){M.css("text-align",_)});C.restoreSelection()},x.prototype.getSpecialNodeUntilTop=function(_,g){for(var C=_.elems[0],k=g.elems[0];C!=null;){if((0,c.default)(b).call(b,C==null?void 0:C.nodeName)!==-1||C.parentNode===k)return C;C=C.parentNode}return C},x.prototype.isSpecialNode=function(_,g){var C=this.getSpecialNodeUntilTop(_,g);return C!=null&&(0,c.default)(b).call(b,C.nodeName)!==-1},x.prototype.isSpecialTopNode=function(_){var g;return _!=null&&(0,c.default)(y).call(y,(g=_.elems[0])===null||g===void 0?void 0:g.nodeName)!==-1},x.prototype.tryChangeActive=function(){},x}(m.default);o.default=v},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=c.__importDefault(t(23)),h=c.__importDefault(t(335)),b=c.__importDefault(t(336)),y=t(7),v=function(w){function x(_){var g=this,C=p.default(`
      `);return g=w.call(this,C,_)||this,h.default(_),g}return c.__extends(x,w),x.prototype.clickHandler=function(){var _,g,C=this.editor,k=C.selection.isSelectionEmpty(),A=C.selection.getSelectionRangeTopNodes(),S=A[A.length-1];if(this.getTopNodeName()!=="BLOCKQUOTE"){var M=b.default(A);if(C.$textElem.equal(S)){var I=(_=C.selection.getSelectionContainerElem())===null||_===void 0?void 0:_.elems[0];C.selection.createRangeByElems(I.children[0],I.children[0]),A=C.selection.getSelectionRangeTopNodes(),M=b.default(A),S.append(M)}else M.insertAfter(S);this.delSelectNode(A);var N=(g=M.childNodes())===null||g===void 0?void 0:g.last().getNode();return N==null?void 0:(N.textContent?C.selection.moveCursor(N):C.selection.moveCursor(N,0),this.tryChangeActive(),void p.default(y.EMPTY_P).insertAfter(M))}var R=p.default(S.childNodes()),T=R.length,L=S;(0,d.default)(R).call(R,function(H){var P=p.default(H);P.insertAfter(L),L=P}),S.remove(),C.selection.moveCursor(R.elems[T-1]),this.tryChangeActive(),k&&(C.selection.collapseRange(),C.selection.restoreSelection())},x.prototype.tryChangeActive=function(){var _;((_=this.editor.selection.getSelectionRangeTopNodes()[0])===null||_===void 0?void 0:_.getNodeName())==="BLOCKQUOTE"?this.active():this.unActive()},x.prototype.getTopNodeName=function(){var _=this.editor.selection.getSelectionRangeTopNodes()[0];return _==null?void 0:_.getNodeName()},x.prototype.delSelectNode=function(_){(0,d.default)(_).call(_,function(g){g.remove()})},x}(m.default);o.default=v},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=t(7),d=a.__importDefault(t(3));function c(p){function m(h){var b,y=p.selection.getSelectionContainerElem(),v=p.selection.getSelectionRangeTopNodes()[0];if((v==null?void 0:v.getNodeName())==="BLOCKQUOTE"){if(y.getNodeName()==="BLOCKQUOTE"){var w=(b=y.childNodes())===null||b===void 0?void 0:b.getNode();p.selection.moveCursor(w)}if(y.text()===""){h.preventDefault(),y.remove();var x=d.default(u.EMPTY_P);x.insertAfter(v),p.selection.moveCursor(x.getNode(),0)}v.text()===""&&v.remove()}}p.txt.eventHooks.enterDownEvents.push(m)}o.default=c},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2).__importDefault(t(3));function p(m){var h=c.default("
      ");return(0,d.default)(m).call(m,function(b){h.append(b.clone(!0))}),h}o.default=p},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(26));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(24)),m=c.__importDefault(t(3)),h=t(6),b=function(y){function v(w){var x,_=this,g=m.default(`
      `),C={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,d.default)(x=w.config.colors).call(x,function(k){return{$elem:m.default(''),value:k}}),clickHandler:function(k){_.command(k)}};return _=y.call(this,g,w,C)||this}return c.__extends(v,y),v.prototype.command=function(w){var x,_=this.editor,g=_.selection.isSelectionEmpty(),C=(x=_.selection.getSelectionContainerElem())===null||x===void 0?void 0:x.elems[0];if(C!=null){var k=(C==null?void 0:C.nodeName.toLowerCase())!=="p",A=C==null?void 0:C.style.backgroundColor,S=h.hexToRgb(w)===A;if(g){if(k&&!S){var M=_.selection.getSelectionRangeTopNodes();_.selection.createRangeByElem(M[0]),_.selection.moveCursor(M[0].elems[0])}_.selection.createEmptyRange()}_.cmd.do("backColor",w),g&&(_.selection.collapseRange(),_.selection.restoreSelection())}},v.prototype.tryChangeActive=function(){},v}(p.default);o.default=b},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(26));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(24)),m=c.__importDefault(t(3)),h=function(b){function y(v){var w,x=this,_=m.default(`
      `),g={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,d.default)(w=v.config.colors).call(w,function(C){return{$elem:m.default(''),value:C}}),clickHandler:function(C){x.command(C)}};return x=b.call(this,_,v,g)||this}return c.__extends(y,b),y.prototype.command=function(v){var w,x=this.editor,_=x.selection.isSelectionEmpty(),g=(w=x.selection.getSelectionContainerElem())===null||w===void 0?void 0:w.elems[0];if(g!=null){var C=x.selection.getSelectionText();if(g.nodeName==="A"&&g.textContent===C){var k=m.default("").getNode();g.appendChild(k)}x.cmd.do("foreColor",v),_&&(x.selection.collapseRange(),x.selection.restoreSelection())}},y.prototype.tryChangeActive=function(){},y}(p.default);o.default=h},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(3)),d=a.__importDefault(t(32)),c=a.__importDefault(t(37)),p=a.__importDefault(t(340)),m=a.__importDefault(t(346)),h=function(b){function y(v){var w=this,x=u.default(`
      `);return w=b.call(this,x,v)||this,m.default(v),w}return a.__extends(y,b),y.prototype.clickHandler=function(){this.createPanel("")},y.prototype.createPanel=function(v){var w=p.default(this.editor,v);new d.default(this,w).create()},y.prototype.tryChangeActive=function(){},y}(c.default);o.default=h},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(17));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=t(6),m=c.__importDefault(t(3)),h=c.__importDefault(t(341)),b=t(7);function y(v,w){var x=v.config,_=new h.default(v),g=p.getRandom("input-iframe"),C=p.getRandom("btn-ok"),k=p.getRandom("input-upload"),A=p.getRandom("btn-local-ok");function S(R){v.cmd.do("insertHTML",R+b.EMPTY_P),v.config.onlineVideoCallback(R)}function M(R){var T=v.config.onlineVideoCheck(R);return T===!0||(typeof T=="string"&&v.config.customAlert(T,"error"),!1)}var I=[{title:v.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`
      `,events:[{selector:"#"+A,type:"click",fn:function(){var R=m.default("#"+k).elems[0];if(!R)return!0;R.click()}},{selector:"#"+k,type:"change",fn:function(){var R=m.default("#"+k).elems[0];if(!R)return!0;var T=R.files;return T.length&&_.uploadVideo(T),!0}}]},{title:v.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`
      "/>
      `,events:[{selector:"#"+C,type:"click",fn:function(){var R,T=m.default("#"+g),L=(0,d.default)(R=T.val()).call(R);if(L&&M(L))return S(L),!0},bindEnter:!0}]}],N={width:300,height:0,tabs:[]};return window.FileReader&&(x.uploadVideoServer||x.customUploadVideo)&&N.tabs.push(I[0]),x.showLinkVideo&&N.tabs.push(I[1]),N}o.default=y},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(132)),c=a(t(57)),p=a(t(4)),m=a(t(27));(0,u.default)(o,"__esModule",{value:!0});var h=t(2),b=t(6),y=h.__importDefault(t(135)),v=h.__importDefault(t(136)),w=t(7),x=t(6),_=function(){function g(C){this.editor=C}return g.prototype.uploadVideo=function(C){var k=this;if(C.length){var A,S=this.editor,M=S.config,I="validate.",N=function(Z){return S.i18next.t(I+Z)},R=M.uploadVideoServer,T=M.uploadVideoMaxSize/1024,L=M.uploadVideoName,H=M.uploadVideoParams,P=M.uploadVideoParamsWithUrl,j=M.uploadVideoHeaders,z=M.uploadVideoHooks,Q=M.uploadVideoTimeout,q=M.withVideoCredentials,W=M.customUploadVideo,K=M.uploadVideoAccept,X=[],re=[];if(b.arrForEach(C,function(Z){var se=Z.name,Ee=Z.size/1024/1024;if(se&&Ee){if(!(K instanceof Array))return void re.push("\u3010"+K+"\u3011"+N("uploadVideoAccept \u4E0D\u662FArray"));if(!(0,d.default)(K).call(K,function(_e){return _e===se.split(".")[se.split(".").length-1]}))return void re.push("\u3010"+se+"\u3011"+N("\u4E0D\u662F\u89C6\u9891"));if(T1&&(Ee+=se+1),pe.append(Ee,Z)}),R){var ue=R.split("#");R=ue[0];var te=ue[1]||"";(0,p.default)(b).call(b,H,function(Z,se){P&&((0,m.default)(R).call(R,"?")>0?R+="&":R+="?",R=R+Z+"="+se),pe.append(Z,se)}),te&&(R+="#"+te);var oe=y.default(R,{timeout:Q,formData:pe,headers:j,withCredentials:!!q,beforeSend:function(Z){if(z.before)return z.before(Z,S,X)},onTimeout:function(Z){M.customAlert(N("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),z.timeout&&z.timeout(Z,S)},onProgress:function(Z,se){var Ee=new v.default(S);se.lengthComputable&&(Z=se.loaded/se.total,Ee.show(Z))},onError:function(Z){M.customAlert(N("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",N("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+N("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+Z.status),z.error&&z.error(Z,S)},onFail:function(Z,se){M.customAlert(N("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",N("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+N("\u8FD4\u56DE\u7ED3\u679C")+": "+se),z.fail&&z.fail(Z,S,se)},onSuccess:function(Z,se){if(z.customInsert){var Ee;z.customInsert((0,c.default)(Ee=k.insertVideo).call(Ee,k),se,S)}else{if(se.errno!="0")return M.customAlert(N("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",N("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+N("\u8FD4\u56DE\u7ED3\u679C")+" errno="+se.errno),void(z.fail&&z.fail(Z,S,se));var _e=se.data;k.insertVideo(_e.url),z.success&&z.success(Z,S,se)}}});typeof oe=="string"&&M.customAlert(oe,"error")}}},g.prototype.insertVideo=function(C){var k=this.editor,A=k.config,S="validate.",M=function(N,R){return R===void 0&&(R=S),k.i18next.t(R+N)};if(A.customInsertVideo)A.customInsertVideo(C);else{x.UA.isFirefox?k.cmd.do("insertHTML",'

      '):k.cmd.do("insertHTML",''+w.EMPTY_P);var I=document.createElement("video");I.onload=function(){I=null},I.onerror=function(){A.customAlert(M("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+M("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+M("\u89C6\u9891\u94FE\u63A5")+' "'+C+'"\uFF0C'+M("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),I=null},I.onabort=function(){return I=null},I.src=C}},g}();o.default=_},function(r,o,t){r.exports=t(343)},function(r,o,t){var a=t(344);r.exports=a},function(r,o,t){t(345);var a=t(9);r.exports=a.Date.now},function(r,o,t){t(5)({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(347)),d=a.__importDefault(t(349));function c(p){u.default(p),d.default(p)}o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var a=t(2),u=a.__importDefault(t(3)),d=a.__importDefault(t(38)),c=a.__importDefault(t(348));function p(h){var b,y=function(x,_){return _===void 0&&(_=""),h.i18next.t(_+x)};function v(x){var _=[{$elem:u.default(""),onClick:function(g,C){return C.remove(),!0}},{$elem:u.default("100%"),onClick:function(g,C){return C.attr("width","100%"),C.removeAttr("height"),!0}},{$elem:u.default("50%"),onClick:function(g,C){return C.attr("width","50%"),C.removeAttr("height"),!0}},{$elem:u.default("30%"),onClick:function(g,C){return C.attr("width","30%"),C.removeAttr("height"),!0}},{$elem:u.default(""+y("\u91CD\u7F6E")+""),onClick:function(g,C){return C.removeAttr("width"),C.removeAttr("height"),!0}},{$elem:u.default(""+y("menus.justify.\u9760\u5DE6")+""),onClick:function(g,C){return c.default(C,"left"),!0}},{$elem:u.default(""+y("menus.justify.\u5C45\u4E2D")+""),onClick:function(g,C){return c.default(C,"center"),!0}},{$elem:u.default(""+y("menus.justify.\u9760\u53F3")+""),onClick:function(g,C){return c.default(C,"right"),!0}}];(b=new d.default(h,x,_)).create()}function w(){b&&(b.remove(),b=null)}return{showVideoTooltip:v,hideVideoTooltip:w}}function m(h){var b=p(h),y=b.showVideoTooltip,v=b.hideVideoTooltip;h.txt.eventHooks.videoClickEvents.push(y),h.txt.eventHooks.clickEvents.push(v),h.txt.eventHooks.keyupEvents.push(v),h.txt.eventHooks.toolbarClickEvents.push(v),h.txt.eventHooks.menuClickEvents.push(v),h.txt.eventHooks.textScrollEvents.push(v),h.txt.eventHooks.changeEvents.push(v)}o.createShowHideFn=p,o.default=m},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(44));(0,u.default)(o,"__esModule",{value:!0});var c=t(2).__importDefault(t(3));function p(h,b){var y=m(h,["P"]);y&&c.default(y).css("text-align",b)}function m(h,b){for(var y,v=h.elems[0];v!=null;){if((0,d.default)(b).call(b,v==null?void 0:v.nodeName))return v;if(((y=v==null?void 0:v.parentNode)===null||y===void 0?void 0:y.nodeName)==="BODY")return null;v=v.parentNode}return v}o.default=p},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(6);function u(d){if(a.UA.isFirefox){var c=d.txt,p=d.selection;c.eventHooks.keydownEvents.push(function(m){var h=p.getSelectionContainerElem();if(h){var b=h.getNodeTop(d),y=b.length&&b.prev().length?b.prev():null;y&&y.attr("data-we-video-p")&&p.getCursorPos()===0&&m.keyCode===8&&y.remove()}})}}o.default=u},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(26));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=t(7),m=c.__importDefault(t(3)),h=c.__importDefault(t(32)),b=c.__importDefault(t(37)),y=c.__importDefault(t(351)),v=c.__importDefault(t(364)),w=function(x){function _(g){var C,k=this,A=m.default('
      '),S=v.default(g);return S.onlyUploadConf&&(A=S.onlyUploadConf.$elem,(0,d.default)(C=S.onlyUploadConf.events).call(C,function(M){var I=M.type,N=M.fn||p.EMPTY_FN;A.on(I,function(R){R.stopPropagation(),N(R)})})),(k=x.call(this,A,g)||this).imgPanelConfig=S,y.default(g),k}return c.__extends(_,x),_.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},_.prototype.createPanel=function(){var g=this.imgPanelConfig,C=new h.default(this,g);this.setPanel(C),C.create()},_.prototype.tryChangeActive=function(){},_}(b.default);o.default=w},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(352)),d=a.__importDefault(t(353)),c=a.__importDefault(t(354)),p=a.__importDefault(t(362)),m=a.__importDefault(t(363));function h(b){u.default(b),d.default(b),c.default(b),p.default(b),m.default(b)}o.default=h},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=t(130),d=a.__importDefault(t(96));function c(b,y){var v=b.config,w=v.pasteFilterStyle,x=v.pasteIgnoreImg;return!!u.getPasteHtml(y,w,x)||!!u.getPasteText(y)}function p(b,y){for(var v,w=((v=y.clipboardData)===null||v===void 0?void 0:v.types)||[],x=0;x
      `);return g.hide(),_.append(g),g}function y(x,_,g){var C=x.getBoundingClientRect(),k=g.getBoundingClientRect(),A=k.width.toFixed(2),S=k.height.toFixed(2);(0,d.default)(_).call(_,".w-e-img-drag-show-size").text(A+"px * "+S+"px"),h(_,(0,c.default)(A),(0,c.default)(S),k.left-C.left,k.top-C.top),_.show()}function v(x){var _,g=x.$textContainerElem,C=b(x,g);function k(M,I){M.on("click",function(N){N.stopPropagation()}),M.on("mousedown",".w-e-img-drag-rb",function(N){if(N.preventDefault(),_){var R=N.clientX,T=N.clientY,L=I.getBoundingClientRect(),H=_.getBoundingClientRect(),P=H.width,j=H.height,z=H.left-L.left,Q=H.top-L.top,q=P/j,W=P,K=j,X=p.default(document);X.on("mousemove",pe),X.on("mouseup",ue),X.on("mouseleave",re)}function re(){X.off("mousemove",pe),X.off("mouseup",ue)}function pe(te){te.stopPropagation(),te.preventDefault(),W=P+(te.clientX-R),K=j+(te.clientY-T),W/K!=q&&(K=W/q),W=(0,c.default)(W.toFixed(2)),K=(0,c.default)(K.toFixed(2)),(0,d.default)(M).call(M,".w-e-img-drag-show-size").text(W.toFixed(2).replace(".00","")+"px * "+K.toFixed(2).replace(".00","")+"px"),h(M,W,K,z,Q)}function ue(){_.attr("width",W+""),_.attr("height",K+"");var te=_.getBoundingClientRect();h(M,W,K,te.left-L.left,te.top-L.top),re()}})}function A(M){if(m.UA.isIE())return!1;M&&y(g,C,_=M)}function S(){(0,d.default)(g).call(g,".w-e-img-drag-mask").hide()}return k(C,g),p.default(document).on("click",S),x.beforeDestroy(function(){p.default(document).off("click",S)}),{showDrag:A,hideDrag:S}}function w(x){var _=v(x),g=_.showDrag,C=_.hideDrag;x.txt.eventHooks.imgClickEvents.push(g),x.txt.eventHooks.textScrollEvents.push(C),x.txt.eventHooks.keyupEvents.push(C),x.txt.eventHooks.toolbarClickEvents.push(C),x.txt.eventHooks.menuClickEvents.push(C),x.txt.eventHooks.changeEvents.push(C)}o.createShowHideFn=v,o.default=w},function(r,o,t){r.exports=t(356)},function(r,o,t){var a=t(357);r.exports=a},function(r,o,t){t(358);var a=t(9);r.exports=a.parseFloat},function(r,o,t){var a=t(5),u=t(359);a({global:!0,forced:parseFloat!=u},{parseFloat:u})},function(r,o,t){var a=t(8),u=t(90).trim,d=t(68),c=a.parseFloat,p=1/c(d+"-0")!=-1/0;r.exports=p?function(m){var h=u(String(m)),b=c(h);return b===0&&h.charAt(0)=="-"?-0:b}:c},function(r,o,t){var a=t(20),u=t(361);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-text-container { overflow: hidden; } .w-e-img-drag-mask { position: absolute; z-index: 1; border: 1px dashed #ccc; box-sizing: border-box; } .w-e-img-drag-mask .w-e-img-drag-rb { position: absolute; right: -5px; bottom: -5px; width: 16px; height: 16px; border-radius: 50%; background: #ccc; cursor: se-resize; } .w-e-img-drag-mask .w-e-img-drag-show-size { min-width: 110px; height: 22px; line-height: 22px; font-size: 14px; color: #999; position: absolute; left: 0; top: 0; background-color: #999; color: #fff; border-radius: 2px; padding: 0 5px; } `,""]),r.exports=o},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var a=t(2),u=a.__importDefault(t(3)),d=a.__importDefault(t(38));function c(m){var h,b=function(w,x){return x===void 0&&(x=""),m.i18next.t(x+w)};function y(w){var x=[{$elem:u.default(""),onClick:function(_,g){return _.selection.createRangeByElem(g),_.selection.restoreSelection(),_.cmd.do("delete"),!0}},{$elem:u.default("30%"),onClick:function(_,g){return g.attr("width","30%"),g.removeAttr("height"),!0}},{$elem:u.default("50%"),onClick:function(_,g){return g.attr("width","50%"),g.removeAttr("height"),!0}},{$elem:u.default("100%"),onClick:function(_,g){return g.attr("width","100%"),g.removeAttr("height"),!0}}];x.push({$elem:u.default(""+b("\u91CD\u7F6E")+""),onClick:function(_,g){return g.removeAttr("width"),g.removeAttr("height"),!0}}),w.attr("data-href")&&x.push({$elem:u.default(""+b("\u67E5\u770B\u94FE\u63A5")+""),onClick:function(_,g){var C=g.attr("data-href");return C&&(C=decodeURIComponent(C),window.open(C,"_target")),!0}}),(h=new d.default(m,w,x)).create()}function v(){h&&(h.remove(),h=null)}return{showImgTooltip:y,hideImgTooltip:v}}function p(m){var h=c(m),b=h.showImgTooltip,y=h.hideImgTooltip;m.txt.eventHooks.imgClickEvents.push(b),m.txt.eventHooks.clickEvents.push(y),m.txt.eventHooks.keyupEvents.push(y),m.txt.eventHooks.toolbarClickEvents.push(y),m.txt.eventHooks.menuClickEvents.push(y),m.txt.eventHooks.textScrollEvents.push(y),m.txt.eventHooks.imgDragBarMouseDownEvents.push(y),m.txt.eventHooks.changeEvents.push(y)}o.createShowHideFn=c,o.default=p},function(r,o,t){function a(u){var d=u.txt,c=u.selection;d.eventHooks.keydownEvents.push(function(p){var m=c.getSelectionContainerElem(),h=c.getRange();if(h&&m&&p.keyCode===8&&c.isSelectionEmpty()){var b=h.startContainer,y=h.startOffset,v=null;if(y===0)for(;b!==m.elems[0]&&m.elems[0].contains(b)&&b.parentNode&&!v;){if(b.previousSibling){v=b.previousSibling;break}b=b.parentNode}else b.nodeType!==3&&(v=b.childNodes[y-1]);if(v){for(var w=v;w.childNodes.length;)w=w.childNodes[w.childNodes.length-1];w instanceof HTMLElement&&w.tagName==="IMG"&&(w.remove(),p.preventDefault())}}})}(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default=a},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(26)),c=a(t(17));(0,u.default)(o,"__esModule",{value:!0});var p=t(2),m=p.__importDefault(t(3)),h=t(6),b=p.__importDefault(t(96));function y(v){var w,x=v.config,_=new b.default(v),g=h.getRandom("up-trigger-id"),C=h.getRandom("up-file-id"),k=h.getRandom("input-link-url"),A=h.getRandom("input-link-url-alt"),S=h.getRandom("input-link-url-href"),M=h.getRandom("btn-link"),I="menus.panelMenus.image.",N=function(q,W){return W===void 0&&(W=I),v.i18next.t(W+q)};function R(q,W,K){var X=x.linkImgCheck(q);return X===!0||(typeof X=="string"&&x.customAlert(X,"error"),!1)}var T=x.uploadImgMaxLength===1?"":'multiple="multiple"',L=(0,d.default)(w=x.uploadImgAccept).call(w,function(q){return"image/"+q}).join(","),H=function(q,W,K){return'
      `},P=[{selector:"#"+g,type:"click",fn:function(){var q=x.uploadImgFromMedia;if(q&&typeof q=="function")return q(),!0;var W=m.default("#"+C).elems[0];if(!W)return!0;W.click()}},{selector:"#"+C,type:"change",fn:function(){var q=m.default("#"+C).elems[0];if(!q)return!0;var W=q.files;return W!=null&&W.length&&_.uploadImg(W),q&&(q.value=""),!0}}],j=[`'];x.showLinkImgAlt&&j.push(` '),x.showLinkImgHref&&j.push(` ');var z=[{title:N("\u4E0A\u4F20\u56FE\u7247"),tpl:H("w-e-up-img-container","w-e-icon-upload2",""),events:P},{title:N("\u7F51\u7EDC\u56FE\u7247"),tpl:`
      `+j.join("")+`
      `,events:[{selector:"#"+M,type:"click",fn:function(){var q,W,K,X,re,pe=m.default("#"+k),ue=(0,c.default)(q=pe.val()).call(q);if(ue&&(x.showLinkImgAlt&&(W=(0,c.default)(K=m.default("#"+A).val()).call(K)),x.showLinkImgHref&&(X=(0,c.default)(re=m.default("#"+S).val()).call(re)),R(ue)))return _.insertImg(ue,W,X),!0},bindEnter:!0}]}],Q={width:300,height:0,tabs:[],onlyUploadConf:{$elem:m.default(H("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:P}};return window.FileReader&&(x.uploadImgShowBase64||x.uploadImgServer||x.customUploadImg||x.uploadImgFromMedia)&&Q.tabs.push(z[0]),x.showLinkImg&&(Q.tabs.push(z[1]),Q.onlyUploadConf=void 0),Q}o.default=y},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=c.__importDefault(t(24)),h=c.__importDefault(t(366)),b=function(y){function v(w){var x=this,_=p.default(`
      `),g={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:p.default(`

      `+w.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`

      `),value:"increase"},{$elem:p.default(`

      `+w.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`

      `),value:"decrease"}],clickHandler:function(C){x.command(C)}};return x=y.call(this,_,w,g)||this}return c.__extends(v,y),v.prototype.command=function(w){var x=this.editor,_=x.selection.getSelectionContainerElem();if(_&&x.$textElem.equal(_)){var g=x.selection.getSelectionRangeTopNodes();g.length>0&&(0,d.default)(g).call(g,function(C){h.default(p.default(C),w,x)})}else _&&_.length>0&&(0,d.default)(_).call(_,function(C){h.default(p.default(C),w,x)});x.selection.restoreSelection(),this.tryChangeActive()},v.prototype.tryChangeActive=function(){var w=this.editor,x=w.selection.getSelectionStartElem(),_=p.default(x).getNodeTop(w);_.length<=0||(_.elems[0].style.paddingLeft!=""?this.active():this.unActive())},v}(m.default);o.default=b},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(45)),c=a(t(17));(0,u.default)(o,"__esModule",{value:!0});var p=t(2),m=p.__importDefault(t(367)),h=p.__importDefault(t(368)),b=/^(\d+)(\w+)$/,y=/^(\d+)%$/;function v(x){var _=x.config.indentation;if(typeof _=="string"){if(b.test(_)){var g,C=(0,d.default)(g=(0,c.default)(_).call(_).match(b)).call(g,1,3),k=C[0],A=C[1];return{value:Number(k),unit:A}}if(y.test(_))return{value:Number((0,c.default)(_).call(_).match(y)[1]),unit:"%"}}else if(_.value!==void 0&&_.unit)return _;return{value:2,unit:"em"}}function w(x,_,g){var C=x.getNodeTop(g);/^(P|H[0-9]*)$/.test(C.getNodeName())&&(_==="increase"?m.default(C,v(g)):_==="decrease"&&h.default(C,v(g)))}o.default=w},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(45));function c(p,m){var h=p.elems[0];if(h.style.paddingLeft==="")p.css("padding-left",m.value+m.unit);else{var b=h.style.paddingLeft,y=(0,d.default)(b).call(b,0,b.length-m.unit.length),v=Number(y)+m.value;p.css("padding-left",""+v+m.unit)}}(0,u.default)(o,"__esModule",{value:!0}),o.default=c},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(45));function c(p,m){var h=p.elems[0];if(h.style.paddingLeft!==""){var b=h.style.paddingLeft,y=(0,d.default)(b).call(b,0,b.length-m.unit.length),v=Number(y)-m.value;v>0?p.css("padding-left",""+v+m.unit):p.css("padding-left","")}}(0,u.default)(o,"__esModule",{value:!0}),o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(3)),d=a.__importDefault(t(37)),c=a.__importDefault(t(32)),p=a.__importDefault(t(370)),m=function(h){function b(y){var v=u.default(`

      `);return h.call(this,v,y)||this}return a.__extends(b,h),b.prototype.createPanel=function(){var y=p.default(this.editor);new c.default(this,y).create()},b.prototype.clickHandler=function(){this.createPanel()},b.prototype.tryChangeActive=function(){},b}(d.default);o.default=m},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(26)),c=a(t(70)),p=a(t(17));(0,u.default)(o,"__esModule",{value:!0});var m=t(2).__importDefault(t(3));function h(b){var y=b.config.emotions;function v(w){var x,_,g=[];return w.type=="image"?(g=(0,d.default)(x=w.content).call(x,function(C){return typeof C=="string"?"":' ['+C.alt+`] `}),g=(0,c.default)(g).call(g,function(C){return C!==""})):g=(0,d.default)(_=w.content).call(_,function(C){return''+C+""}),g.join("").replace(/ /g,"")}return{width:300,height:230,tabs:(0,d.default)(y).call(y,function(w){return{title:b.i18next.t("menus.panelMenus.emoticon."+w.title),tpl:"
      "+v(w)+"
      ",events:[{selector:".eleImg",type:"click",fn:function(x){var _,g,C=m.default(x.target);return _=C.getNodeName()==="IMG"?(0,p.default)(g=C.parent().html()).call(g):""+C.html()+"",b.cmd.do("insertHTML",_),!0}}]}})}}o.default=h},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.createListHandle=o.ClassType=void 0;var a,u,d=t(2),c=d.__importDefault(t(3)),p=d.__importDefault(t(372)),m=d.__importDefault(t(374)),h=d.__importDefault(t(375)),b=d.__importDefault(t(376)),y=d.__importDefault(t(377));(u=a=o.ClassType||(o.ClassType={})).Wrap="WrapListHandle",u.Join="JoinListHandle",u.StartJoin="StartJoinListHandle",u.EndJoin="EndJoinListHandle",u.Other="OtherListHandle";var v={WrapListHandle:p.default,JoinListHandle:m.default,StartJoinListHandle:h.default,EndJoinListHandle:b.default,OtherListHandle:y.default};function w(_,g,C){if(_===a.Other&&C===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return _!==a.Other?new v[_](g):new v[_](g,C)}o.createListHandle=w;var x=function(){function _(g){this.handle=g,this.handle.exec()}return _.prototype.getSelectionRangeElem=function(){return c.default(this.handle.selectionRangeElem.get())},_}();o.default=x},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=t(58),h=t(47),b=function(y){function v(w){return y.call(this,w)||this}return c.__extends(v,y),v.prototype.exec=function(){var w,x=this.options,_=x.listType,g=x.listTarget,C=x.$selectionElem,k=x.$startElem,A=x.$endElem,S=[],M=C==null?void 0:C.getNodeName(),I=k.prior,N=A.prior;if((k.prior||A.prior)&&(I!=null&&I.prev().length||N!=null&&N.next().length)){for(var R=I;R.length;)S.push(R),R=N!=null&&N.equal(R)?p.default(void 0):R.next();var T=I.prev(),L=N.next();if(M===_?w=h.createElementFragment(S,h.createDocumentFragment(),"p"):(w=h.createElement(g),(0,d.default)(S).call(S,function(Q){w.append(Q.elems[0])})),T.length&&L.length){for(var H=[];L.length;)H.push(L),L=L.next();var P=h.createElement(M);(0,d.default)(H).call(H,function(Q){P.append(Q.elems[0])}),p.default(P).insertAfter(C),this.selectionRangeElem.set(w),(j=C.next()).length?h.insertBefore(C,w,j.elems[0]):C.parent().elems[0].append(w)}else if(T.length){var j;this.selectionRangeElem.set(w),(j=C.next()).length?h.insertBefore(C,w,j.elems[0]):C.parent().elems[0].append(w)}else this.selectionRangeElem.set(w),h.insertBefore(C,w,C.elems[0])}else{var z;(0,d.default)(z=C==null?void 0:C.children()).call(z,function(Q){S.push(p.default(Q))}),M===_?w=h.createElementFragment(S,h.createDocumentFragment(),"p"):(w=h.createElement(g),(0,d.default)(S).call(S,function(Q){w.appendChild(Q.elems[0])})),this.selectionRangeElem.set(w),h.insertBefore(C,w,C.elems[0]),C.remove()}},v}(m.ListHandle);o.default=b},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=function(){function p(){this._element=null}return p.prototype.set=function(m){if(m instanceof DocumentFragment){var h,b=[];(0,d.default)(h=m.childNodes).call(h,function(y){b.push(y)}),m=b}this._element=m},p.prototype.get=function(){return this._element},p.prototype.clear=function(){this._element=null},p}();o.default=c},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=t(58),h=t(47),b=function(y){function v(w){return y.call(this,w)||this}return c.__extends(v,y),v.prototype.exec=function(){var w,x,_,g,C,k,A,S,M=this.options,I=M.editor,N=M.listType,R=M.listTarget,T=M.$startElem,L=M.$endElem,H=I.selection.getSelectionRangeTopNodes(),P=T==null?void 0:T.getNodeName();if(P===(L==null?void 0:L.getNodeName()))if(H.length>2)if(H.shift(),H.pop(),S=h.createElementFragment(h.filterSelectionNodes(H),h.createDocumentFragment()),P===N)(w=L.children())===null||w===void 0||(0,d.default)(w).call(w,function(te){S.append(te)}),L.remove(),this.selectionRangeElem.set(S),T.elems[0].append(S);else{for(var j=document.createDocumentFragment(),z=document.createDocumentFragment(),Q=h.getStartPoint(T);Q.length;){var q=Q.elems[0];Q=Q.next(),j.append(q)}for(var W=h.getEndPoint(L),K=[];W.length;)K.unshift(W.elems[0]),W=W.prev();(0,d.default)(K).call(K,function(te){z.append(te)});var X=h.createElement(R);X.append(j),X.append(S),X.append(z),S=X,this.selectionRangeElem.set(S),p.default(X).insertAfter(T),!((x=T.children())!==null&&x!==void 0&&x.length)&&T.remove(),((_=L.children())===null||_===void 0||!_.length)&&L.remove()}else{for(H.length=0,Q=h.getStartPoint(T);Q.length;)H.push(Q),Q=Q.next();for(W=h.getEndPoint(L),K=[];W.length;)K.unshift(W),W=W.prev();H.push.apply(H,K),P===N?(S=h.createElementFragment(H,h.createDocumentFragment(),"p"),this.selectionRangeElem.set(S),h.insertBefore(T,S,L.elems[0])):(S=h.createElement(R),(0,d.default)(H).call(H,function(te){S.append(te.elems[0])}),this.selectionRangeElem.set(S),p.default(S).insertAfter(T)),!((g=T.children())!==null&&g!==void 0&&g.length)&&L.remove(),((C=L.children())===null||C===void 0||!C.length)&&L.remove()}else{var re=[];for(W=h.getEndPoint(L);W.length;)re.unshift(W),W=W.prev();var pe=[];for(Q=h.getStartPoint(T);Q.length;)pe.push(Q),Q=Q.next();if(S=h.createDocumentFragment(),H.shift(),H.pop(),(0,d.default)(pe).call(pe,function(te){return S.append(te.elems[0])}),S=h.createElementFragment(h.filterSelectionNodes(H),S),(0,d.default)(re).call(re,function(te){return S.append(te.elems[0])}),this.selectionRangeElem.set(S),P===N)T.elems[0].append(S),((k=L.children())===null||k===void 0||!k.length)&&L.remove();else if((A=L.children())!==null&&A!==void 0&&A.length){var ue=L.children();h.insertBefore(ue,S,ue.elems[0])}else L.elems[0].append(S)}},v}(m.ListHandle);o.default=b},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=t(58),h=t(47),b=function(y){function v(w){return y.call(this,w)||this}return c.__extends(v,y),v.prototype.exec=function(){var w,x,_=this.options,g=_.editor,C=_.listType,k=_.listTarget,A=_.$startElem,S=g.selection.getSelectionRangeTopNodes(),M=A==null?void 0:A.getNodeName();S.shift();for(var I=[],N=h.getStartPoint(A);N.length;)I.push(N),N=N.next();M===C?(x=h.createDocumentFragment(),(0,d.default)(I).call(I,function(R){return x.append(R.elems[0])}),x=h.createElementFragment(h.filterSelectionNodes(S),x),this.selectionRangeElem.set(x),A.elems[0].append(x)):(x=h.createElement(k),(0,d.default)(I).call(I,function(R){return x.append(R.elems[0])}),x=h.createElementFragment(h.filterSelectionNodes(S),x),this.selectionRangeElem.set(x),p.default(x).insertAfter(A),((w=A.children())===null||w===void 0||!w.length)&&A.remove())},v}(m.ListHandle);o.default=b},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=t(58),h=t(47),b=function(y){function v(w){return y.call(this,w)||this}return c.__extends(v,y),v.prototype.exec=function(){var w,x,_,g=this.options,C=g.editor,k=g.listType,A=g.listTarget,S=g.$endElem,M=C.selection.getSelectionRangeTopNodes(),I=S==null?void 0:S.getNodeName();M.pop();for(var N=[],R=h.getEndPoint(S);R.length;)N.unshift(R),R=R.prev();if(I===k)if(_=h.createElementFragment(h.filterSelectionNodes(M),h.createDocumentFragment()),(0,d.default)(N).call(N,function(H){return _.append(H.elems[0])}),this.selectionRangeElem.set(_),(w=S.children())!==null&&w!==void 0&&w.length){var T=S.children();h.insertBefore(T,_,T.elems[0])}else S.elems[0].append(_);else{var L=h.filterSelectionNodes(M);L.push.apply(L,N),_=h.createElementFragment(L,h.createElement(A)),this.selectionRangeElem.set(_),p.default(_).insertBefore(S),((x=S.children())===null||x===void 0||!x.length)&&S.remove()}},v}(m.ListHandle);o.default=b},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=t(58),d=t(47),c=function(p){function m(h,b){var y=p.call(this,h)||this;return y.range=b,y}return a.__extends(m,p),m.prototype.exec=function(){var h=this.options,b=h.editor,y=h.listTarget,v=b.selection.getSelectionRangeTopNodes(),w=d.createElementFragment(d.filterSelectionNodes(v),d.createElement(y));this.selectionRangeElem.set(w),this.range.insertNode(w)},m}(u.ListHandle);o.default=c},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4)),c=a(t(27));(0,u.default)(o,"__esModule",{value:!0});var p=t(2),m=p.__importDefault(t(24)),h=p.__importDefault(t(3)),b=p.__importDefault(t(379)),y=t(6),v=function(w){function x(_){var g=this,C=h.default(`
      `),k={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:new b.default(_,_.config.lineHeights).getItemList(),clickHandler:function(A){_.selection.saveRange(),g.command(A)}};return g=w.call(this,C,_,k)||this}return p.__extends(x,w),x.prototype.command=function(_){var g,C=this,k=window.getSelection?window.getSelection():document.getSelection(),A=["P"],S=this.editor,M="";S.selection.restoreSelection();var I=h.default(S.selection.getSelectionContainerElem());if(I!=null&&I.length){var N=h.default(S.selection.getSelectionContainerElem()),R=h.default(S.selection.getSelectionStartElem()).elems[0],T="",L=[],H="";if(I&&S.$textElem.equal(I)){var P=y.UA.isIE(),j=[],z=[],Q=[],q=h.default(S.selection.getSelectionStartElem()),W=h.default(S.selection.getSelectionEndElem()),K=(g=S.selection.getRange())===null||g===void 0?void 0:g.commonAncestorContainer.childNodes;z.push(this.getDom(q.elems[0])),K==null||(0,d.default)(K).call(K,function(te,oe){te===C.getDom(q.elems[0])&&j.push(oe),te===C.getDom(W.elems[0])&&j.push(oe)});var X=0,re=void 0;for(Q.push(this.getDom(q.elems[0]));z[X]!==this.getDom(W.elems[0]);)re=h.default(z[X].nextElementSibling).elems[0],(0,c.default)(A).call(A,h.default(re).getNodeName())!==-1&&Q.push(re),z.push(re),X++;if(h.default(z[0]).getNodeName()!=="P"){X=0;for(var pe=0;pe'+te.innerHTML+""}),M&&this.action(M,S),R=N.elems[0],void this.setRange(R.children[j[0]],R.children[j[1]])}if(R=this.getDom(R),(0,c.default)(A).call(A,h.default(R).getNodeName())!==-1){if(T=R.getAttribute("style"),L=T?T.split(";"):[],k==null||k.selectAllChildren(R),S.selection.saveRange(),!_)return void(T&&(H=this.styleProcessing(L),M=H===""?"<"+h.default(R).getNodeName().toLowerCase()+">"+R.innerHTML+"":"<"+h.default(R).getNodeName().toLowerCase()+' style="'+H+'">'+R.innerHTML+"",this.action(M,S)));H=T?this.styleProcessing(L)+"line-height:"+_+";":"line-height:"+_+";",M="<"+h.default(R).getNodeName().toLowerCase()+' style="'+H+'">'+R.innerHTML+"",h.default(R).getNodeName()==="BLOCKQUOTE"||y.UA.isIE()?h.default(R).css("line-height",_):this.action(M,S)}}},x.prototype.getDom=function(_){var g=h.default(_).elems[0];if(!g.parentNode)return g;function C(k,A){var S=h.default(k.parentNode);return A.$textElem.equal(S)?k:C(S.elems[0],A)}return g=C(g,this.editor)},x.prototype.action=function(_,g){g.cmd.do("insertHTML",_)},x.prototype.styleProcessing=function(_){var g="";return(0,d.default)(_).call(_,function(C){C!==""&&(0,c.default)(C).call(C,"line-height")===-1&&(g=g+C+";")}),g},x.prototype.setRange=function(_,g){var C=this.editor,k=window.getSelection?window.getSelection():document.getSelection();k==null||k.removeAllRanges();var A=document.createRange(),S=_,M=g;A.setStart(S,0),A.setEnd(M,1),k==null||k.addRange(A),C.selection.saveRange(),k==null||k.removeAllRanges(),C.selection.restoreSelection()},x.prototype.tryChangeActive=function(){var _=this.editor,g=_.selection.getSelectionContainerElem();if(!g||!_.$textElem.equal(g)){var C=h.default(_.selection.getSelectionStartElem());if(C.length!==0){var k=(C=this.getDom(C.elems[0])).getAttribute("style")?C.getAttribute("style"):"";k&&(0,c.default)(k).call(k,"line-height")!==-1?this.active():this.unActive()}}},x}(m.default);o.default=v},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2).__importDefault(t(3)),p=function(){function m(h,b){var y=this;this.itemList=[{$elem:c.default(""+h.i18next.t("\u9ED8\u8BA4")+""),value:""}],(0,d.default)(b).call(b,function(v){y.itemList.push({$elem:c.default(""+v+""),value:v})})}return m.prototype.getItemList=function(){return this.itemList},m}();o.default=p},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(3)),d=function(c){function p(m){var h=u.default(`
      `);return c.call(this,h,m)||this}return a.__extends(p,c),p.prototype.clickHandler=function(){var m=this.editor;m.history.revoke();var h=m.$textElem.children();if(h!=null&&h.length){var b=h.last();m.selection.createRangeByElem(b,!1,!0),m.selection.restoreSelection()}},p.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},p}(a.__importDefault(t(23)).default);o.default=d},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(3)),d=function(c){function p(m){var h=u.default(`
      `);return c.call(this,h,m)||this}return a.__extends(p,c),p.prototype.clickHandler=function(){var m=this.editor;m.history.restore();var h=m.$textElem.children();if(h!=null&&h.length){var b=h.last();m.selection.createRangeByElem(b,!1,!0),m.selection.restoreSelection()}},p.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},p}(a.__importDefault(t(23)).default);o.default=d},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(37)),d=a.__importDefault(t(3)),c=a.__importDefault(t(383)),p=a.__importDefault(t(32)),m=a.__importDefault(t(392)),h=function(b){function y(v){var w=this,x=d.default('
      ');return w=b.call(this,x,v)||this,m.default(v),w}return a.__extends(y,b),y.prototype.clickHandler=function(){this.createPanel()},y.prototype.createPanel=function(){var v=c.default(this.editor);new p.default(this,v).create()},y.prototype.tryChangeActive=function(){},y}(u.default);o.default=h},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(384));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=t(6),m=c.__importDefault(t(3));t(389);var h=c.__importDefault(t(391));function b(v){return v>0&&(0,d.default)(v)}function y(v){var w=new h.default(v),x=p.getRandom("w-col-id"),_=p.getRandom("w-row-id"),g=p.getRandom("btn-link"),C="menus.panelMenus.table.",k=function(M){return v.i18next.t(M)},A=[{title:k(C+"\u63D2\u5165\u8868\u683C"),tpl:`
      `+k("\u521B\u5EFA")+` `+k(C+"\u884C")+` `+(k(C+"\u5217")+k(C+"\u7684")+k(C+"\u8868\u683C"))+`
      `,events:[{selector:"#"+g,type:"click",fn:function(){var M=Number(m.default("#"+x).val()),I=Number(m.default("#"+_).val());return b(I)&&b(M)?(w.createAction(I,M),!0):(v.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],S={width:330,height:0,tabs:[]};return S.tabs.push(A[0]),S}o.default=y},function(r,o,t){r.exports=t(385)},function(r,o,t){var a=t(386);r.exports=a},function(r,o,t){t(387);var a=t(9);r.exports=a.Number.isInteger},function(r,o,t){t(5)({target:"Number",stat:!0},{isInteger:t(388)})},function(r,o,t){var a=t(13),u=Math.floor;r.exports=function(d){return!a(d)&&isFinite(d)&&u(d)===d}},function(r,o,t){var a=t(20),u=t(390);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-table { display: flex; } .w-e-table .w-e-table-input { width: 40px; text-align: center!important; margin: 0 5px; } `,""]),r.exports=o},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=t(7),d=a.__importDefault(t(3)),c=function(){function p(m){this.editor=m}return p.prototype.createAction=function(m,h){var b=this.editor,y=d.default(b.selection.getSelectionContainerElem()),v=d.default(y.elems[0]).parentUntilEditor("UL",b),w=d.default(y.elems[0]).parentUntilEditor("OL",b);if(!v&&!w){var x=this.createTableHtml(m,h);b.cmd.do("insertHTML",x)}},p.prototype.createTableHtml=function(m,h){for(var b="",y="",v=0;v":"";b=b+""+y+""}return''+b+"
      "+u.EMPTY_P},p}();o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2).__importDefault(t(393)),u=t(400);function d(c){a.default(c),u.bindEventKeyboardEvent(c),u.bindClickEvent(c)}o.default=d},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(3)),d=a.__importDefault(t(38)),c=a.__importDefault(t(394)),p=a.__importDefault(t(399)),m=t(7);function h(w){var x;function _(C){var k=new p.default(w),A="menus.panelMenus.table.",S=function(I,N){return N===void 0&&(N=A),w.i18next.t(N+I)},M=[{$elem:u.default(""+S("\u5220\u9664\u8868\u683C")+""),onClick:function(I,N){return I.selection.createRangeByElem(N),I.selection.restoreSelection(),I.cmd.do("insertHTML",m.EMPTY_P),!0}},{$elem:u.default(""+S("\u6DFB\u52A0\u884C")+""),onClick:function(I,N){if(b(I))return!0;var R=u.default(I.selection.getSelectionStartElem()),T=k.getRowNode(R.elems[0]);if(!T)return!0;var L=Number(k.getCurrentRowIndex(N.elems[0],T)),H=k.getTableHtml(N.elems[0]),P=k.getTableHtml(c.default.ProcessingRow(u.default(H),L).elems[0]);return P=v(N,P),I.selection.createRangeByElem(N),I.selection.restoreSelection(),I.cmd.do("insertHTML",P),!0}},{$elem:u.default(""+S("\u5220\u9664\u884C")+""),onClick:function(I,N){if(b(I))return!0;var R=u.default(I.selection.getSelectionStartElem()),T=k.getRowNode(R.elems[0]);if(!T)return!0;var L=Number(k.getCurrentRowIndex(N.elems[0],T)),H=k.getTableHtml(N.elems[0]),P=c.default.DeleteRow(u.default(H),L).elems[0].children[0].children.length,j="";return I.selection.createRangeByElem(N),I.selection.restoreSelection(),j=v(N,j=P===0?m.EMPTY_P:k.getTableHtml(c.default.DeleteRow(u.default(H),L).elems[0])),I.cmd.do("insertHTML",j),!0}},{$elem:u.default(""+S("\u6DFB\u52A0\u5217")+""),onClick:function(I,N){if(b(I))return!0;var R=u.default(I.selection.getSelectionStartElem()),T=k.getCurrentColIndex(R.elems[0]),L=k.getTableHtml(N.elems[0]),H=k.getTableHtml(c.default.ProcessingCol(u.default(L),T).elems[0]);return H=v(N,H),I.selection.createRangeByElem(N),I.selection.restoreSelection(),I.cmd.do("insertHTML",H),!0}},{$elem:u.default(""+S("\u5220\u9664\u5217")+""),onClick:function(I,N){if(b(I))return!0;var R=u.default(I.selection.getSelectionStartElem()),T=k.getCurrentColIndex(R.elems[0]),L=k.getTableHtml(N.elems[0]),H=c.default.DeleteCol(u.default(L),T),P=H.elems[0].children[0].children[0].children.length,j="";return I.selection.createRangeByElem(N),I.selection.restoreSelection(),j=v(N,j=P===0?m.EMPTY_P:k.getTableHtml(H.elems[0])),I.cmd.do("insertHTML",j),!0}},{$elem:u.default(""+S("\u8BBE\u7F6E\u8868\u5934")+""),onClick:function(I,N){if(b(I))return!0;var R=u.default(I.selection.getSelectionStartElem()),T=k.getRowNode(R.elems[0]);if(!T)return!0;var L=Number(k.getCurrentRowIndex(N.elems[0],T));L!==0&&(L=0);var H=k.getTableHtml(N.elems[0]),P=k.getTableHtml(c.default.setTheHeader(u.default(H),L,"th").elems[0]);return P=v(N,P),I.selection.createRangeByElem(N),I.selection.restoreSelection(),I.cmd.do("insertHTML",P),!0}},{$elem:u.default(""+S("\u53D6\u6D88\u8868\u5934")+""),onClick:function(I,N){var R=u.default(I.selection.getSelectionStartElem()),T=k.getRowNode(R.elems[0]);if(!T)return!0;var L=Number(k.getCurrentRowIndex(N.elems[0],T));L!==0&&(L=0);var H=k.getTableHtml(N.elems[0]),P=k.getTableHtml(c.default.setTheHeader(u.default(H),L,"td").elems[0]);return P=v(N,P),I.selection.createRangeByElem(N),I.selection.restoreSelection(),I.cmd.do("insertHTML",P),!0}}];(x=new d.default(w,C,M)).create()}function g(){x&&(x.remove(),x=null)}return{showTableTooltip:_,hideTableTooltip:g}}function b(w){var x=w.selection.getSelectionStartElem(),_=w.selection.getSelectionEndElem();return(x==null?void 0:x.elems[0])!==(_==null?void 0:_.elems[0])}function y(w){var x=h(w),_=x.showTableTooltip,g=x.hideTableTooltip;w.txt.eventHooks.tableClickEvents.push(_),w.txt.eventHooks.clickEvents.push(g),w.txt.eventHooks.keyupEvents.push(g),w.txt.eventHooks.toolbarClickEvents.push(g),w.txt.eventHooks.menuClickEvents.push(g),w.txt.eventHooks.textScrollEvents.push(g)}function v(w,x){var _=w.elems[0].nextSibling;return(!_||_.innerHTML==="
      ")&&(x+=""+m.EMPTY_P),x}o.default=y},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(45)),c=a(t(91)),p=a(t(4)),m=a(t(138));(0,u.default)(o,"__esModule",{value:!0});var h=t(2).__importDefault(t(3));function b(C,k){for(var A=g(C),S=(0,d.default)(Array.prototype).apply(A.children),M=S[0].children.length,I=document.createElement("tr"),N=0;N1?arguments[1]:void 0,M=S!==void 0,I=h(C),N=0;if(M&&(S=a(S,A>2?arguments[2]:void 0,2)),I==null||k==Array&&c(I))for(v=new k(y=p(C.length));y>N;N++)g=M?S(C[N],N):C[N],m(v,N,g);else for(_=(x=I.call(C)).next,v=new k;!(w=_.call(x)).done;N++)g=M?d(x,S,[w.value,N],!0):w.value,m(v,N,g);return v.length=N,v}},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4)),c=a(t(138));(0,u.default)(o,"__esModule",{value:!0});var p=t(2).__importDefault(t(3)),m=function(){function h(b){this.editor=b}return h.prototype.getRowNode=function(b){var y,v=p.default(b).elems[0];return v.parentNode&&(v=(y=p.default(v).parentUntil("TR",v))===null||y===void 0?void 0:y.elems[0]),v},h.prototype.getCurrentRowIndex=function(b,y){var v,w=0,x=b.children[0];return x.nodeName==="COLGROUP"&&(x=b.children[b.children.length-1]),(0,d.default)(v=(0,c.default)(x.children)).call(v,function(_,g){_===y&&(w=g)}),w},h.prototype.getCurrentColIndex=function(b){var y,v,w=0,x=p.default(b).getNodeName()==="TD"||p.default(b).getNodeName()==="TH"?b:(v=p.default(b).parentUntil("TD",b))===null||v===void 0?void 0:v.elems[0],_=p.default(x).parent();return(0,d.default)(y=(0,c.default)(_.elems[0].children)).call(y,function(g,C){g===x&&(w=C)}),w},h.prototype.getTableHtml=function(b){return''+p.default(b).html()+"
      "},h}();o.default=m},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.bindEventKeyboardEvent=o.bindClickEvent=void 0;var a=t(2).__importDefault(t(3));function u(p){if(!p.length)return!1;var m=p.elems[0];return m.nodeName==="P"&&m.innerHTML==="
      "}function d(p){function m(h,b){if(b.detail>=3){var y=window.getSelection();if(y){var v=y.focusNode,w=y.anchorNode,x=a.default(w==null?void 0:w.parentElement);if(!h.isContain(a.default(v))){var _=x.elems[0].tagName==="TD"?x:x.parentUntilEditor("td",p);if(_){var g=p.selection.getRange();g==null||g.setEnd(_.elems[0],_.elems[0].childNodes.length),p.selection.restoreSelection()}}}}}p.txt.eventHooks.tableClickEvents.push(m)}function c(p){var m=p.txt,h=p.selection;m.eventHooks.keydownEvents.push(function(b){p.selection.saveRange();var y=h.getSelectionContainerElem();if(y){var v=y.getNodeTop(p),w=v.length&&v.prev().length?v.prev():null;if(w&&w.getNodeName()==="TABLE"&&h.isSelectionEmpty()&&h.getCursorPos()===0&&b.keyCode===8){var x=v.next();x.length&&u(v)&&(v.remove(),p.selection.setRangeToElem(x.elems[0])),b.preventDefault()}}})}o.bindClickEvent=d,o.bindEventKeyboardEvent=c},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(26));(0,u.default)(o,"__esModule",{value:!0}),o.formatCodeHtml=void 0;var c=t(2),p=c.__importDefault(t(37)),m=c.__importDefault(t(3)),h=t(6),b=c.__importDefault(t(402)),y=c.__importDefault(t(139)),v=c.__importDefault(t(32)),w=c.__importDefault(t(403));function x(g,C){return C&&(C=k(C=A(C)),C=h.replaceSpecialSymbol(C));function k(S){var M=S.match(//g);return M===null||(0,d.default)(M).call(M,function(I){S=S.replace(I,I.replace(/<\/code>/g,` `).replace(/
      /g,""))}),S}function A(S){var M,I=S.match(//gm);if(!I||!I.length)return S;for(var N=(0,d.default)(M=h.deepClone(I)).call(M,function(T){return(T=T.replace(/]+>/,"")).replace(/<\/span>/,"")}),R=0;R');return A=g.call(this,S,k)||this,w.default(k),A}return c.__extends(C,g),C.prototype.insertLineCode=function(k){var A=this.editor,S=m.default(""+k+"");A.cmd.do("insertElem",S),A.selection.createRangeByElem(S,!1),A.selection.restoreSelection()},C.prototype.clickHandler=function(){var k=this.editor,A=k.selection.getSelectionText();this.isActive||(k.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(A))},C.prototype.createPanel=function(k,A){var S=b.default(this.editor,k,A);new v.default(this,S).create()},C.prototype.tryChangeActive=function(){var k=this.editor;y.default(k)?this.active():this.unActive()},C}(p.default);o.default=_},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(26));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=t(6),m=c.__importDefault(t(3)),h=c.__importDefault(t(139)),b=t(7);function y(v,w,x){var _,g=p.getRandom("input-iframe"),C=p.getRandom("select"),k=p.getRandom("btn-ok");function A(I){var N;h.default(v)&&S(),!((N=v.selection.getSelectionStartElem())===null||N===void 0)&&N.elems[0].innerHTML&&v.cmd.do("insertHTML",b.EMPTY_P),v.cmd.do("insertHTML",I);var R=v.selection.getSelectionStartElem(),T=R==null?void 0:R.getNodeTop(v);(T==null?void 0:T.getNextSibling().elems.length)===0&&m.default(b.EMPTY_P).insertAfter(T)}function S(){if(h.default(v)){var I=v.selection.getSelectionStartElem(),N=I==null?void 0:I.getNodeTop(v);!N||(v.selection.createRangeByElem(N),v.selection.restoreSelection())}}var M=function(I){return v.i18next.t(I)};return{width:500,height:0,tabs:[{title:M("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`
      `,events:[{selector:"#"+k,type:"click",fn:function(){var I,N=document.getElementById(g),R=m.default("#"+C).val(),T=N.value;if(I=v.highlight?v.highlight.highlightAuto(T).value:""+T+"",T)return!h.default(v)&&(A('
      '+I+"
      "),!0)}}]}]}}o.default=y},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(404)),d=a.__importDefault(t(405));function c(p){u.default(p),d.default(p)}o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var a=t(2),u=a.__importDefault(t(3)),d=a.__importDefault(t(38));function c(m){var h;function b(v){var w="menus.panelMenus.code.",x=function(g,C){return C===void 0&&(C=w),m.i18next.t(C+g)},_=[{$elem:u.default(""+x("\u5220\u9664\u4EE3\u7801")+""),onClick:function(g,C){return C.remove(),!0}}];(h=new d.default(m,v,_)).create()}function y(){h&&(h.remove(),h=null)}return{showCodeTooltip:b,hideCodeTooltip:y}}function p(m){var h=c(m),b=h.showCodeTooltip,y=h.hideCodeTooltip;m.txt.eventHooks.codeClickEvents.push(b),m.txt.eventHooks.clickEvents.push(y),m.txt.eventHooks.toolbarClickEvents.push(y),m.txt.eventHooks.menuClickEvents.push(y),m.txt.eventHooks.textScrollEvents.push(y)}o.createShowHideFn=c,o.default=p},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=t(7),d=a.__importDefault(t(3));function c(p){var m=p.$textElem,h=p.selection,b=p.txt.eventHooks.keydownEvents;b.push(function(y){var v;if(y.keyCode===40){var w=h.getSelectionContainerElem(),x=(v=m.children())===null||v===void 0?void 0:v.last();if((w==null?void 0:w.elems[0].tagName)==="XMP"&&(x==null?void 0:x.elems[0].tagName)==="PRE"){var _=d.default(u.EMPTY_P);m.append(_)}}}),b.push(function(y){p.selection.saveRange();var v=h.getSelectionContainerElem();if(v){var w=v.getNodeTop(p),x=w==null?void 0:w.prev(),_=w==null?void 0:w.getNextSibling();if(x.length&&(x==null?void 0:x.getNodeName())==="PRE"&&_.length===0&&h.getCursorPos()===0&&y.keyCode===8){var g=d.default(u.EMPTY_P);m.append(g)}}})}o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(23)),d=a.__importDefault(t(3)),c=a.__importDefault(t(407)),p=t(6),m=t(7),h=function(b){function y(v){var w=this,x=d.default('
      ');return w=b.call(this,x,v)||this,c.default(v),w}return a.__extends(y,b),y.prototype.clickHandler=function(){var v=this.editor,w=v.selection.getRange(),x=v.selection.getSelectionContainerElem();if(x!=null&&x.length){var _=d.default(x.elems[0]),g=_.parentUntil("TABLE",x.elems[0]),C=_.children();_.getNodeName()!=="CODE"&&(g&&d.default(g.elems[0]).getNodeName()==="TABLE"||C&&C.length!==0&&d.default(C.elems[0]).getNodeName()==="IMG"&&(w==null||!w.collapsed)||this.createSplitLine())}},y.prototype.createSplitLine=function(){var v="
      "+m.EMPTY_P;p.UA.isFirefox&&(v="

      "),this.editor.cmd.do("insertHTML",v)},y.prototype.tryChangeActive=function(){},y}(u.default);o.default=h},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2).__importDefault(t(408));function u(d){a.default(d)}o.default=u},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(3)),d=a.__importDefault(t(38));function c(m){var h;function b(v){var w=[{$elem:u.default(""+m.i18next.t("menus.panelMenus.\u5220\u9664")+""),onClick:function(x,_){return x.selection.createRangeByElem(_),x.selection.restoreSelection(),x.cmd.do("delete"),!0}}];(h=new d.default(m,v,w)).create()}function y(){h&&(h.remove(),h=null)}return{showSplitLineTooltip:b,hideSplitLineTooltip:y}}function p(m){var h=c(m),b=h.showSplitLineTooltip,y=h.hideSplitLineTooltip;m.txt.eventHooks.splitLineEvents.push(b),m.txt.eventHooks.clickEvents.push(y),m.txt.eventHooks.keyupEvents.push(y),m.txt.eventHooks.toolbarClickEvents.push(y),m.txt.eventHooks.menuClickEvents.push(y),m.txt.eventHooks.textScrollEvents.push(y)}o.default=p},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=c.__importDefault(t(23)),h=t(97),b=c.__importDefault(t(415)),y=c.__importDefault(t(140)),v=function(w){function x(_){var g=this,C=p.default(`
      `);return g=w.call(this,C,_)||this,b.default(_),g}return c.__extends(x,w),x.prototype.clickHandler=function(){var _=this.editor;h.isAllTodo(_)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},x.prototype.tryChangeActive=function(){h.isAllTodo(this.editor)?this.active():this.unActive()},x.prototype.setTodo=function(){var _=this.editor,g=_.selection.getSelectionRangeTopNodes();(0,d.default)(g).call(g,function(C){var k;if((C==null?void 0:C.getNodeName())==="P"){var A=y.default(C).getTodo(),S=(k=A.children())===null||k===void 0?void 0:k.getNode();A.insertAfter(C),_.selection.moveCursor(S),C.remove()}}),this.tryChangeActive()},x.prototype.cancelTodo=function(){var _=this.editor,g=_.selection.getSelectionRangeTopNodes();(0,d.default)(g).call(g,function(C){var k,A,S,M=(A=(k=C.childNodes())===null||k===void 0?void 0:k.childNodes())===null||A===void 0?void 0:A.clone(!0),I=p.default("

      ");I.append(M),I.insertAfter(C),(S=I.childNodes())===null||S===void 0||S.get(0).remove(),_.selection.moveCursor(I.getNode()),C.remove()})},x}(m.default);o.default=v},function(r,o,t){r.exports=t(411)},function(r,o,t){var a=t(412);r.exports=a},function(r,o,t){var a=t(413),u=Array.prototype;r.exports=function(d){var c=d.every;return d===u||d instanceof Array&&c===u.every?a:c}},function(r,o,t){t(414);var a=t(15);r.exports=a("Array").every},function(r,o,t){var a=t(5),u=t(30).every,d=t(67),c=t(22),p=d("every"),m=c("every");a({target:"Array",proto:!0,forced:!p||!m},{every:function(h){return u(this,h,arguments.length>1?arguments[1]:void 0)}})},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=c.__importDefault(t(3)),m=t(97),h=c.__importDefault(t(140)),b=t(97),y=t(7);function v(w){function x(k){var A,S;if(m.isAllTodo(w)){k.preventDefault();var M=w.selection,I=M.getSelectionRangeTopNodes()[0],N=(A=I.childNodes())===null||A===void 0?void 0:A.get(0),R=(S=window.getSelection())===null||S===void 0?void 0:S.anchorNode,T=M.getRange();if(T==null||!T.collapsed){var L=T==null?void 0:T.commonAncestorContainer.childNodes,H=T==null?void 0:T.startContainer,P=T==null?void 0:T.endContainer,j=T==null?void 0:T.startOffset,z=T==null?void 0:T.endOffset,Q=0,q=0,W=[];L==null||(0,d.default)(L).call(L,function(se,Ee){se.contains(H)&&(Q=Ee),se.contains(P)&&(q=Ee)}),q-Q>1&&(L==null||(0,d.default)(L).call(L,function(se,Ee){Ee<=Q||Ee>=q||W.push(se)}),(0,d.default)(W).call(W,function(se){se.remove()})),b.dealTextNode(H,j),b.dealTextNode(P,z,!1),w.selection.moveCursor(P,0)}if(I.text()===""){var K=p.default(y.EMPTY_P);return K.insertAfter(I),M.moveCursor(K.getNode()),void I.remove()}var X=M.getCursorPos(),re=m.getCursorNextNode(N==null?void 0:N.getNode(),R,X),pe=h.default(p.default(re)),ue=pe.getInputContainer(),te=ue.parent().getNode(),oe=pe.getTodo(),Z=ue.getNode().nextSibling;(N==null?void 0:N.text())===""&&(N==null||N.append(p.default("
      "))),oe.insertAfter(I),Z&&(Z==null?void 0:Z.textContent)!==""?M.moveCursor(te):((Z==null?void 0:Z.nodeName)!=="BR"&&p.default("
      ").insertAfter(ue),M.moveCursor(te,1))}}function _(k){var A,S;if(m.isAllTodo(w)){var M,I=w.selection,N=I.getSelectionRangeTopNodes()[0],R=(A=N.childNodes())===null||A===void 0?void 0:A.getNode(),T=p.default("

      "),L=T.getNode(),H=(S=window.getSelection())===null||S===void 0?void 0:S.anchorNode,P=I.getCursorPos(),j=H.previousSibling;if(N.text()===""){k.preventDefault();var z=p.default(y.EMPTY_P);return z.insertAfter(N),N.remove(),void I.moveCursor(z.getNode(),0)}(j==null?void 0:j.nodeName)==="SPAN"&&j.childNodes[0].nodeName==="INPUT"&&P===0&&(k.preventDefault(),R==null||(0,d.default)(M=R.childNodes).call(M,function(Q,q){q!==0&&L.appendChild(Q.cloneNode(!0))}),T.insertAfter(N),N.remove())}}function g(){var k=w.selection.getSelectionRangeTopNodes()[0];k&&b.isTodo(k)&&k.text()===""&&(p.default(y.EMPTY_P).insertAfter(k),k.remove())}function C(k){k&&k.target instanceof HTMLInputElement&&k.target.type==="checkbox"&&(k.target.checked?k.target.setAttribute("checked","true"):k.target.removeAttribute("checked"))}w.txt.eventHooks.enterDownEvents.push(x),w.txt.eventHooks.deleteUpEvents.push(g),w.txt.eventHooks.deleteDownEvents.push(_),w.txt.eventHooks.clickEvents.push(C)}o.default=v},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.selectorValidator=void 0;var a=t(2),u=a.__importDefault(t(3)),d=t(6),c=t(7),p=a.__importDefault(t(129)),m={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function h(y){var v,w,x=y.toolbarSelector,_=u.default(x),g=y.textSelector,C=y.config.height,k=y.i18next,A=u.default("
      "),S=u.default("
      "),M=null;g==null?(w=_.children(),_.append(A).append(S),A.css("background-color",m.toolbarBgColor).css("border",m.border).css("border-bottom",m.toolbarBottomBorder),S.css("border",m.border).css("border-top","none").css("height",C+"px")):(_.append(A),M=u.default(g).children(),u.default(g).append(S),w=S.children()),(v=u.default("
      ")).attr("contenteditable","true").css("width","100%").css("height","100%");var I,N=y.config.placeholder;(I=N!==p.default.placeholder?u.default("
      "+N+"
      "):u.default("
      "+k.t(N)+"
      ")).addClass("placeholder"),w&&w.length?(v.append(w),I.hide()):v.append(u.default(c.EMPTY_P)),M&&M.length&&(v.append(M),I.hide()),S.append(v),S.append(I),A.addClass("w-e-toolbar").css("z-index",y.zIndex.get("toolbar")),S.addClass("w-e-text-container"),S.css("z-index",y.zIndex.get()),v.addClass("w-e-text");var R=d.getRandom("toolbar-elem");A.attr("id",R);var T=d.getRandom("text-elem");v.attr("id",T);var L=S.getBoundingClientRect().height;L!==v.getBoundingClientRect().height&&v.css("min-height",L+"px"),y.$toolbarElem=A,y.$textContainerElem=S,y.$textElem=v,y.toolbarElemId=R,y.textElemId=T}function b(y){var v="data-we-id",w=/^wangEditor-\d+$/,x=y.textSelector,_=y.toolbarSelector,g={bar:u.default("
      "),text:u.default("
      ")};if(_==null)throw new Error("\u9519\u8BEF\uFF1A\u521D\u59CB\u5316\u7F16\u8F91\u5668\u65F6\u5019\u672A\u4F20\u5165\u4EFB\u4F55\u53C2\u6570\uFF0C\u8BF7\u67E5\u9605\u6587\u6863");if(g.bar=u.default(_),!g.bar.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+_);if(w.test(g.bar.attr(v)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668");if(x){if(g.text=u.default(x),!g.text.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+x);if(w.test(g.text.attr(v)))throw new Error("\u521D\u59CB\u5316\u8282\u70B9\u5DF2\u5B58\u5728\u7F16\u8F91\u5668\u5B9E\u4F8B\uFF0C\u65E0\u6CD5\u91CD\u590D\u521B\u5EFA\u7F16\u8F91\u5668")}g.bar.attr(v,y.id),g.text.attr(v,y.id),y.beforeDestroy(function(){g.bar.removeAttr(v),g.text.removeAttr(v)})}o.default=h,o.selectorValidator=b},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2).__importDefault(t(3)),u=t(7);function d(c,p){var m=c.$textElem,h=m.children();if(!h||!h.length)return m.append(a.default(u.EMPTY_P)),void d(c);var b=h.last();if(p){var y=b.html().toLowerCase(),v=b.getNodeName();if(y!=="
      "&&y!=="
      "||v!=="P")return m.append(a.default(u.EMPTY_P)),void d(c)}c.selection.createRangeByElem(b,!1,!0),c.config.focus?c.selection.restoreSelection():c.selection.clearWindowSelectionRange()}o.default=d},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2).__importDefault(t(3));function p(w){m(w),h(w),b(w)}function m(w){w.txt.eventHooks.changeEvents.push(function(){var x=w.config.onchange;if(x){var _=w.txt.html()||"";w.isFocus=!0,x(_)}w.txt.togglePlaceholder()})}function h(w){function x(_){var g=_.target,C=c.default(g),k=w.$textElem,A=w.$toolbarElem,S=k.isContain(C),M=A.isContain(C),I=A.elems[0]==_.target;if(S)w.isFocus||v(w),w.isFocus=!0;else{if(M&&!I||!w.isFocus)return;y(w),w.isFocus=!1}}w.isFocus=!1,document.activeElement===w.$textElem.elems[0]&&w.config.focus&&(v(w),w.isFocus=!0),c.default(document).on("click",x),w.beforeDestroy(function(){c.default(document).off("click",x)})}function b(w){w.$textElem.on("compositionstart",function(){w.isComposing=!0,w.txt.togglePlaceholder()}).on("compositionend",function(){w.isComposing=!1,w.txt.togglePlaceholder()})}function y(w){var x,_=w.config.onblur,g=w.txt.html()||"";(0,d.default)(x=w.txt.eventHooks.onBlurEvents).call(x,function(C){return C()}),_(g)}function v(w){(0,w.config.onfocus)(w.txt.html()||"")}o.default=p},function(r,o,t){function a(u){var d=u.config,c=d.lang,p=d.languages;if(u.i18next==null)u.i18next={t:function(m){var h=m.split(".");return h[h.length-1]}};else try{u.i18next.init({ns:"wangEditor",lng:c,defaultNS:"wangEditor",resources:p})}catch(m){throw new Error("i18next:"+m)}}(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.default=a},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(31));(0,u.default)(o,"__esModule",{value:!0}),o.setUnFullScreen=o.setFullScreen=void 0;var c=t(2).__importDefault(t(3));t(421);var p="w-e-icon-fullscreen",m="w-e-icon-fullscreen_exit",h="w-e-full-screen-editor";o.setFullScreen=function(y){var v=c.default(y.toolbarSelector),w=y.$textContainerElem,x=y.$toolbarElem,_=(0,d.default)(x).call(x,"i."+p),g=y.config;_.removeClass(p),_.addClass(m),v.addClass(h),v.css("z-index",g.zIndexFullScreen);var C=x.getBoundingClientRect();w.css("height","calc(100% - "+C.height+"px)")},o.setUnFullScreen=function(y){var v=c.default(y.toolbarSelector),w=y.$textContainerElem,x=y.$toolbarElem,_=(0,d.default)(x).call(x,"i."+m),g=y.config;_.removeClass(m),_.addClass(p),v.removeClass(h),v.css("z-index","auto"),w.css("height",g.height+"px")};var b=function(y){if(!y.textSelector&&y.config.showFullScreen){var v=y.$toolbarElem,w=c.default(`
      `);w.on("click",function(x){var _;(0,d.default)(_=c.default(x.currentTarget)).call(_,"i").hasClass(p)?(w.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),o.setFullScreen(y)):(w.attr("data-title","\u5168\u5C4F"),o.setUnFullScreen(y))}),v.append(w)}};o.default=b},function(r,o,t){var a=t(20),u=t(422);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-full-screen-editor { position: fixed; width: 100%!important; height: 100%!important; left: 0; top: 0; } `,""]),r.exports=o},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(31));(0,u.default)(o,"__esModule",{value:!0});var c=function(p,m){var h,b=p.isEnable?p.$textElem:(0,d.default)(h=p.$textContainerElem).call(h,".w-e-content-mantle"),y=(0,d.default)(b).call(b,"[id='"+m+"']").getOffsetData().top;b.scrollTop(y)};o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2).__importDefault(t(128)),u={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},d=function(){function c(){this.tier=u,this.baseZIndex=a.default.zIndex}return c.prototype.get=function(p){return p&&this.tier[p]?this.baseZIndex+this.tier[p]:this.baseZIndex},c.prototype.init=function(p){this.baseZIndex==a.default.zIndex&&(this.baseZIndex=p.config.zIndex)},c}();o.default=d},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(70)),c=a(t(4));(0,u.default)(o,"__esModule",{value:!0});var p=t(2),m=p.__importDefault(t(426)),h=t(6),b=t(7);function y(w,x){return(0,d.default)(w).call(w,function(_){var g=_.type,C=_.target,k=_.attributeName;return g!="attributes"||g=="attributes"&&(k=="contenteditable"||C!=x)})}var v=function(w){function x(_){var g=w.call(this,function(C,k){var A;if(C=y(C,k.target),(A=g.data).push.apply(A,C),_.isCompatibleMode)g.asyncSave();else if(!_.isComposing)return g.asyncSave()})||this;return g.editor=_,g.data=[],g.asyncSave=b.EMPTY_FN,g}return p.__extends(x,w),x.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},x.prototype.emit=function(){var _;(0,c.default)(_=this.editor.txt.eventHooks.changeEvents).call(_,function(g){return g()})},x.prototype.observe=function(){var _=this;w.prototype.observe.call(this,this.editor.$textElem.elems[0]);var g=this.editor.config.onchangeTimeout;this.asyncSave=h.debounce(function(){_.save()},g),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){_.asyncSave()})},x}(m.default);o.default=v},function(r,o,t){var a=t(0)(t(1));(0,a.default)(o,"__esModule",{value:!0});var u=function(){function d(c,p){var m=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(h){c(h,m)},this.observer=new MutationObserver(this.callback),p&&(this.options=p)}return(0,a.default)(d.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),d.prototype.observe=function(c){this.node instanceof Node||(this.node=c,this.connect())},d.prototype.connect=function(){if(this.node)return this.observer.observe(this.node,this.options),this;throw new Error("\u8FD8\u672A\u521D\u59CB\u5316\u7ED1\u5B9A\uFF0C\u8BF7\u60A8\u5148\u7ED1\u5B9A\u6709\u6548\u7684 Node \u8282\u70B9")},d.prototype.disconnect=function(){var c=this.observer.takeRecords();c.length&&this.callback(c),this.observer.disconnect()},d}();o.default=u},function(r,o,t){var a=t(0)(t(1));(0,a.default)(o,"__esModule",{value:!0});var u=t(2),d=u.__importDefault(t(428)),c=u.__importDefault(t(435)),p=u.__importDefault(t(436)),m=function(){function h(b){this.editor=b,this.content=new d.default(b),this.scroll=new c.default(b),this.range=new p.default(b)}return(0,a.default)(h.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),h.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},h.prototype.save=function(b){b.length&&(this.content.save(b),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},h.prototype.revoke=function(){this.editor.change.disconnect();var b=this.content.revoke();b&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),b&&this.editor.change.emit()},h.prototype.restore=function(){this.editor.change.disconnect();var b=this.content.restore();b&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),b&&this.editor.change.emit()},h}();o.default=m},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(429)),d=a.__importDefault(t(433)),c=function(){function p(m){this.editor=m}return p.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new d.default(this.editor):this.cache=new u.default(this.editor),this.cache.observe()},p.prototype.save=function(m){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(m)},p.prototype.revoke=function(){var m;return(m=this.cache)===null||m===void 0?void 0:m.revoke()},p.prototype.restore=function(){var m;return(m=this.cache)===null||m===void 0?void 0:m.restore()},p}();o.default=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=a.__importDefault(t(98)),d=a.__importDefault(t(431)),c=t(432),p=function(m){function h(b){var y=m.call(this,b.config.historyMaxSize)||this;return y.editor=b,y}return a.__extends(h,m),h.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},h.prototype.compile=function(b){return this.save(d.default(b)),this},h.prototype.revoke=function(){return m.prototype.revoke.call(this,function(b){c.revoke(b)})},h.prototype.restore=function(){return m.prototype.restore.call(this,function(b){c.restore(b)})},h}(u.default);o.default=p},function(r,o,t){var a=t(0)(t(1));(0,a.default)(o,"__esModule",{value:!0}),o.CeilStack=void 0;var u=function(){function d(c){c===void 0&&(c=0),this.data=[],this.max=0,this.reset=!1,(c=Math.abs(c))&&(this.max=c)}return d.prototype.resetMax=function(c){c=Math.abs(c),!this.reset&&!isNaN(c)&&(this.max=c,this.reset=!0)},(0,a.default)(d.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),d.prototype.instack=function(c){return this.data.unshift(c),this.max&&this.size>this.max&&(this.data.length=this.max),this},d.prototype.outstack=function(){return this.data.shift()},d.prototype.clear=function(){return this.data.length=0,this},d}();o.CeilStack=u},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4)),c=a(t(27));(0,u.default)(o,"__esModule",{value:!0}),o.compliePosition=o.complieNodes=o.compileValue=o.compileType=void 0;var p=t(6);function m(_){switch(_){case"childList":return"node";case"attributes":return"attr";default:return"text"}}function h(_){switch(_.type){case"attributes":return _.target.getAttribute(_.attributeName)||"";case"characterData":return _.target.textContent;default:return""}}function b(_){var g={};return _.addedNodes.length&&(g.add=p.toArray(_.addedNodes)),_.removedNodes.length&&(g.remove=p.toArray(_.removedNodes)),g}function y(_){return _.previousSibling?{type:"before",target:_.previousSibling}:_.nextSibling?{type:"after",target:_.nextSibling}:{type:"parent",target:_.target}}o.compileType=m,o.compileValue=h,o.complieNodes=b,o.compliePosition=y;var v=["UL","OL","H1","H2","H3","H4","H5","H6"];function w(_){var g=[],C=!1,k=[];return(0,d.default)(_).call(_,function(A,S){var M={type:m(A.type),target:A.target,attr:A.attributeName||"",value:h(A)||"",oldValue:A.oldValue||"",nodes:b(A),position:y(A)};if(g.push(M),p.UA.isFirefox){if(C&&A.addedNodes.length&&A.addedNodes[0].nodeType==1){var I=A.addedNodes[0],N={type:"node",target:I,attr:"",value:"",oldValue:"",nodes:{add:[C]},position:{type:"parent",target:I}};(0,c.default)(v).call(v,I.nodeName)!=-1?(N.nodes.add=p.toArray(I.childNodes),g.push(N)):C.nodeType==3?(x(I,k)&&(N.nodes.add=p.toArray(I.childNodes)),g.push(N)):(0,c.default)(v).call(v,A.target.nodeName)==-1&&x(I,k)&&(N.nodes.add=p.toArray(I.childNodes),g.push(N))}M.type=="node"&&A.removedNodes.length==1?(C=A.removedNodes[0],k.push(C)):(C=!1,k.length=0)}}),g}function x(_,g){for(var C=0,k=g.length-1;k>0&&_.contains(g[k]);k--)C++;return C}o.default=w},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(4)),c=a(t(94));function p(k,A){var S=k.position.target;switch(k.position.type){case"before":S.nextSibling?(S=S.nextSibling,(0,d.default)(A).call(A,function(M){k.target.insertBefore(M,S)})):(0,d.default)(A).call(A,function(M){k.target.appendChild(M)});break;case"after":(0,d.default)(A).call(A,function(M){k.target.insertBefore(M,S)});break;default:(0,d.default)(A).call(A,function(M){S.appendChild(M)})}}function m(k){for(var A=0,S=(0,c.default)(k.nodes);A-1;A--){var S=k[A];y[S.type](S)}}function w(k){for(var A=0,S=(0,c.default)(k.nodes);Athis.max;)this.data.shift();return this.point=this.size-1,this},p.prototype.current=function(){return this.data[this.point]},p.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,!(this.point<0))return this.current();this.point=0},p.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,!(this.point>=this.size))return this.current();this.point=this.size-1},p}();o.TailChain=c},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2),u=function(d){function c(p){var m=d.call(this,p.config.historyMaxSize)||this;return m.editor=p,m.last=0,m.target=p.$textElem.elems[0],m}return a.__extends(c,d),c.prototype.observe=function(){var p=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){p.last=p.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},c.prototype.save=function(){return d.prototype.save.call(this,[this.last,this.target.scrollTop]),this},c.prototype.revoke=function(){var p=this;return d.prototype.revoke.call(this,function(m){p.target.scrollTop=m[0]})},c.prototype.restore=function(){var p=this;return d.prototype.restore.call(this,function(m){p.target.scrollTop=m[1]})},c}(a.__importDefault(t(98)).default);o.default=u},function(r,o,t){var a=t(0)(t(1));(0,a.default)(o,"__esModule",{value:!0});var u=t(2),d=u.__importDefault(t(98)),c=u.__importDefault(t(3)),p=t(6);function m(b){return{start:[b.startContainer,b.startOffset],end:[b.endContainer,b.endOffset],root:b.commonAncestorContainer,collapsed:b.collapsed}}var h=function(b){function y(v){var w=b.call(this,v.config.historyMaxSize)||this;return w.editor=v,w.lastRange=m(document.createRange()),w.root=v.$textElem.elems[0],w.updateLastRange=p.debounce(function(){w.lastRange=m(w.rangeHandle)},v.config.onchangeTimeout),w}return u.__extends(y,b),(0,a.default)(y.prototype,"rangeHandle",{get:function(){var v=document.getSelection();return v&&v.rangeCount?v.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),y.prototype.observe=function(){var v=this;function w(){var _=v.rangeHandle;(v.root===_.commonAncestorContainer||v.root.contains(_.commonAncestorContainer))&&(v.editor.isComposing||v.updateLastRange())}function x(_){(_.key=="Backspace"||_.key=="Delete")&&v.updateLastRange()}this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize),c.default(document).on("selectionchange",w),this.editor.beforeDestroy(function(){c.default(document).off("selectionchange",w)}),v.editor.$textElem.on("keydown",x)},y.prototype.save=function(){var v=m(this.rangeHandle);return b.prototype.save.call(this,[this.lastRange,v]),this.lastRange=v,this},y.prototype.set=function(v){try{if(v){var w=this.rangeHandle;return w.setStart.apply(w,v.start),w.setEnd.apply(w,v.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},y.prototype.revoke=function(){var v=this;return b.prototype.revoke.call(this,function(w){v.set(w[0])})},y.prototype.restore=function(){var v=this;return b.prototype.restore.call(this,function(w){v.set(w[1])})},y}(d.default);o.default=h},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(31));(0,u.default)(o,"__esModule",{value:!0});var c=t(2).__importDefault(t(3));function p(m){var h,b,y=!1;function v(){if(!y){m.$textElem.hide();var x=m.zIndex.get("textContainer"),_=m.txt.html();h=c.default('
      `+_+`
      `),m.$textContainerElem.append(h);var g=m.zIndex.get("menu");b=c.default('
      '),m.$toolbarElem.append(b),y=!0,m.isEnable=!1}}function w(){!y||(h.remove(),b.remove(),m.$textElem.show(),y=!1,m.isEnable=!0)}return m.txt.eventHooks.changeEvents.push(function(){y&&(0,d.default)(h).call(h,".w-e-content-preview").html(m.$textElem.html())}),{disable:v,enable:w}}t(438),o.default=p},function(r,o,t){var a=t(20),u=t(439);typeof(u=u.__esModule?u.default:u)=="string"&&(u=[[r.i,u,""]]);var d={insert:"head",singleton:!1};a(u,d),r.exports=u.locals||{}},function(r,o,t){(o=t(21)(!1)).push([r.i,`.w-e-content-mantle { width: 100%; height: 100%; overflow-y: auto; } .w-e-content-mantle .w-e-content-preview { width: 100%; min-height: 100%; padding: 0 10px; line-height: 1.5; } .w-e-content-mantle .w-e-content-preview img { cursor: default; } .w-e-content-mantle .w-e-content-preview img:hover { box-shadow: none; } .w-e-menue-mantle { position: absolute; height: 100%; width: 100%; top: 0; left: 0; } `,""]),r.exports=o},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=function(){function u(d){var c=this;this.editor=d;var p=function(){document.activeElement===d.$textElem.elems[0]&&c.emit()};window.document.addEventListener("selectionchange",p),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",p)})}return u.prototype.emit=function(){var d,c=this.editor.config.onSelectionChange;if(c){var p=this.editor.selection;p.saveRange(),p.isSelectionEmpty()||c({text:p.getSelectionText(),html:(d=p.getSelectionContainerElem())===null||d===void 0?void 0:d.elems[0].innerHTML,selection:p})}},u}();o.default=a},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(127)),c=a(t(94)),p=a(t(4));(0,u.default)(o,"__esModule",{value:!0}),o.registerPlugin=void 0;var m=t(2).__importDefault(t(87)),h=t(6);function b(v,w,x){if(!v)throw new TypeError("name is not define");if(!w)throw new TypeError("options is not define");if(!w.intention)throw new TypeError("options.intention is not define");if(w.intention&&typeof w.intention!="function")throw new TypeError("options.intention is not function");x[v],x[v]=w}function y(v){var w=(0,d.default)({},h.deepClone(m.default.globalPluginsFunctionList),h.deepClone(v.pluginsFunctionList)),x=(0,c.default)(w);(0,p.default)(x).call(x,function(_){_[0];var g=_[1],C=g.intention,k=g.config;C(v,k)})}o.registerPlugin=b,o.default=y},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0})}]).default;var Qf=Wf(vu.exports),Gf=1,$f=Object.assign||function(r){for(var o,t=1;t{bt.component(r,o),va.component(r,o)};bt.component("draggable",ma),bt.component("DragTool",xf),bt.component("DragBox",If),bt.component("Validate",Bf),bt.component("Struct",Mf),bt.component("Fetch",Rf),bt.component("Required",Pf),bt.component("TableOptions",Vf),gu("FcEditor",qf),bt.register("_fc",{load(r,o){o._id=mt()}}),bt.register("_fc_tool",{load(r,o){o.props.unique=mt()}}),Hn.install=function(r){r.component("FcDesigner",Hn)},Hn.makeOptionsRule=Tr,Hn.formCreate=va,Hn.designerForm=bt,Hn.component=gu,Hn.useLocale=du,Hn.t=ga});export{Hn as E,om as __tla};