index.es-f3906ef8.js 599 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875
  1. 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`{
  2. `+o.join(`,
  3. `)+`
  4. }`},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<r.length;o++)t[o]=r[o]!=null?di(r[o]):"null";return"["+t.join(", ")+"]"},string:function(r){for(var o=r.split(""),t=0;t<o.length;t++){var a=o[t];a>=" "?a==="\\"?o[t]="\\\\":a==='"'&&(o[t]='\\"'):o[t]=a===`
  5. `?"\\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<p;)a=a[u[c++]];return c&&c===p&&a!==void 0?a:d}(t,r,"").replace(/\{(\w+)\}/g,(a,u)=>{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<arguments.length;o++){var t=arguments[o]!=null?arguments[o]:{};o%2?Ts(Object(t),!0).forEach(function(a){Od(r,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Ts(Object(t)).forEach(function(a){Object.defineProperty(r,a,Object.getOwnPropertyDescriptor(t,a))})}return r}function Ns(r){return(Ns=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 Od(r,o,t){return o in r?Object.defineProperty(r,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[o]=t,r}function jn(){return jn=Object.assign||function(r){for(var o=1;o<arguments.length;o++){var t=arguments[o];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])}return r},jn.apply(this,arguments)}function Fd(r,o){if(r==null)return{};var t,a,u=function(c,p){if(c==null)return{};var m,h,b={},y=Object.keys(c);for(h=0;h<y.length;h++)m=y[h],!(p.indexOf(m)>=0)&&(b[m]=c[m]);return b}(r,o);if(Object.getOwnPropertySymbols){var d=Object.getOwnPropertySymbols(r);for(a=0;a<d.length;a++)t=d[a],!(o.indexOf(t)>=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++)t(a[u],u);return a}return[]}function Tn(){return document.scrollingElement||document.documentElement}function At(r,o,t,a,u){if(r.getBoundingClientRect||r===window){var d,c,p,m,h,b,y;if(r!==window&&r.parentNode&&r!==Tn()?(c=(d=r.getBoundingClientRect()).top,p=d.left,m=d.bottom,h=d.right,b=d.height,y=d.width):(c=0,p=0,m=window.innerHeight,h=window.innerWidth,b=window.innerHeight,y=window.innerWidth),(o||t)&&r!==window&&(u=u||r.parentNode,!Un))do if(u&&u.getBoundingClientRect&&(Te(u,"transform")!=="none"||t&&Te(u,"position")!=="static")){var v=u.getBoundingClientRect();c-=v.top+parseInt(Te(u,"border-top-width")),p-=v.left+parseInt(Te(u,"border-left-width")),m=c+d.height,h=p+d.width;break}while(u=u.parentNode);if(a&&r!==window){var w=Nr(u||r),x=w&&w.a,_=w&&w.d;w&&(m=(c/=_)+(b/=_),h=(p/=x)+(y/=x))}return{top:c,left:p,bottom:m,right:h,width:y,height:b}}}function Fs(r,o,t){for(var a=tr(r,!0),u=At(r)[o];a;){var d=At(a)[t];if(!(t==="top"||t==="left"?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;d<c.length;){if(c[d].style.display!=="none"&&c[d]!==Ne.ghost&&(a||c[d]!==Ne.dragged)&&Mn(c[d],t.draggable,r,!1)){if(u===o)return c[d];u++}d++}return null}function Xl(r,o){for(var t=r.lastElementChild;t&&(t===Ne.ghost||Te(t,"display")==="none"||o&&!ro(t,o));)t=t.previousElementSibling;return t||null}function fn(r,o){var t=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==Ne.clone&&(!o||ro(r,o))&&t++;return t}function Ps(r){var o=0,t=0,a=Tn();if(r)do{var u=Nr(r),d=u.a,c=u.d;o+=r.scrollLeft*d,t+=r.scrollTop*c}while(r!==a&&(r=r.parentNode));return[o,t]}function tr(r,o){if(!r||!r.getBoundingClientRect)return Tn();var t=r,a=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var u=Te(t);if(t.clientWidth<t.scrollWidth&&(u.overflowX=="auto"||u.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(u.overflowY=="auto"||u.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return Tn();if(a||o)return t;a=!0}}while(t=t.parentNode);return Tn()}function Kl(r,o){return Math.round(r.top)===Math.round(o.top)&&Math.round(r.left)===Math.round(o.left)&&Math.round(r.height)===Math.round(o.height)&&Math.round(r.width)===Math.round(o.width)}function Hs(r,o){return function(){if(!hi){var t=arguments;t.length===1?r.call(this,t[0]):r.apply(this,t),hi=setTimeout(function(){hi=void 0},o)}}}function js(r,o,t){r.scrollLeft+=o,r.scrollTop+=t}function zs(r){var o=window.Polymer,t=window.jQuery||window.Zepto;return o&&o.dom?o.dom(r).cloneNode(!0):t?t(r).clone(!0)[0]:r.cloneNode(!0)}var tn="Sortable"+new Date().getTime();function jd(){var r,o=[];return{captureAnimationState:function(){o=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(Te(t,"display")!=="none"&&t!==Ne.ghost){o.push({target:t,rect:At(t)});var a=Dn({},o[o.length-1].rect);if(t.thisAnimationDuration){var u=Nr(t,!0);u&&(a.top-=u.f,a.left-=u.e)}t.fromRect=a}})},addAnimationState:function(t){o.push(t)},removeAnimationState:function(t){o.splice(function(a,u){for(var d in a)if(a.hasOwnProperty(d)){for(var c in u)if(u.hasOwnProperty(c)&&u[c]===a[d][c])return Number(d)}return-1}(o,{target:t}),1)},animateAll:function(t){var a=this;if(!this.options.animation)return clearTimeout(r),void(typeof t=="function"&&t());var u=!1,d=0;o.forEach(function(c){var p=0,m=c.target,h=m.fromRect,b=At(m),y=m.prevFromRect,v=m.prevToRect,w=c.rect,x=Nr(m,!0);x&&(b.top-=x.f,b.left-=x.e),m.toRect=b,m.thisAnimationDuration&&Kl(y,b)&&!Kl(h,b)&&(w.top-b.top)/(w.left-b.left)==(h.top-b.top)/(h.left-b.left)&&(p=function(_,g,C,k){return Math.sqrt(Math.pow(g.top-_.top,2)+Math.pow(g.left-_.left,2))/Math.sqrt(Math.pow(g.top-C.top,2)+Math.pow(g.left-C.left,2))*k.animation}(w,y,v,a.options)),Kl(b,h)||(m.prevFromRect=h,m.prevToRect=b,p||(p=a.options.animation),a.animate(m,w,b,p)),p&&(u=!0,d=Math.max(d,p),clearTimeout(m.animationResetTimer),m.animationResetTimer=setTimeout(function(){m.animationTime=0,m.prevFromRect=null,m.fromRect=null,m.prevToRect=null,m.thisAnimationDuration=null},p),m.thisAnimationDuration=p)}),clearTimeout(r),u?r=setTimeout(function(){typeof t=="function"&&t()},d):typeof t=="function"&&t(),o=[]},animate:function(t,a,u,d){if(d){Te(t,"transition",""),Te(t,"transform","");var c=Nr(this.el),p=c&&c.a,m=c&&c.d,h=(a.left-u.left)/(p||1),b=(a.top-u.top)/(m||1);t.animatingX=!!h,t.animatingY=!!b,Te(t,"transform","translate3d("+h+"px,"+b+"px,0)"),this.forRepaintDummy=function(y){return y.offsetWidth}(t),Te(t,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),Te(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){Te(t,"transition",""),Te(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},d)}}}}var Lr=[],Jl={initializeByDefault:!0},mi={mount:function(r){for(var o in Jl)Jl.hasOwnProperty(o)&&!(o in r)&&(r[o]=Jl[o]);Lr.forEach(function(t){if(t.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),Lr.push(r)},pluginEvent:function(r,o,t){var a=this;this.eventCanceled=!1,t.cancel=function(){a.eventCanceled=!0};var u=r+"Global";Lr.forEach(function(d){!o[d.pluginName]||(o[d.pluginName][u]&&o[d.pluginName][u](Dn({sortable:o},t)),o.options[d.pluginName]&&o[d.pluginName][r]&&o[d.pluginName][r](Dn({sortable:o},t)))})},initializePlugins:function(r,o,t,a){for(var u in Lr.forEach(function(c){var p=c.pluginName;if(r.options[p]||c.initializeByDefault){var m=new c(r,o,r.options);m.sortable=r,m.options=r.options,r[p]=m,jn(t,m.defaults)}}),r.options)if(r.options.hasOwnProperty(u)){var d=this.modifyOption(r,u,r.options[u]);typeof d<"u"&&(r.options[u]=d)}},getEventProperties:function(r,o){var t={};return Lr.forEach(function(a){typeof a.eventProperties=="function"&&jn(t,a.eventProperties.call(o[a.pluginName],r))}),t},modifyOption:function(r,o,t){var a;return Lr.forEach(function(u){!r[u.pluginName]||u.optionListeners&&typeof u.optionListeners[o]=="function"&&(a=u.optionListeners[o].call(r[u.pluginName],t))}),a}},zd=["evt"],Gt=function(r,o){var t=arguments.length>2&&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))<t)return;this._onDragStart(r,!0)}if(Be){d?(d.e+=h-(Zl||0),d.f+=b-(ea||0)):d={a:1,b:0,c:0,d:1,e:h,f:b};var y="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");Te(Be,"webkitTransform",y),Te(Be,"mozTransform",y),Te(Be,"msTransform",y),Te(Be,"transform",y),Zl=h,ea=b,vn=u}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!Be){var r=this.options.fallbackOnBody?document.body:tt,o=At(me,!0,po,!0,r),t=this.options;if(po){for(Bt=r;Te(Bt,"position")==="static"&&Te(Bt,"transform")==="none"&&Bt!==document;)Bt=Bt.parentNode;Bt!==document.body&&Bt!==document.documentElement?(Bt===document&&(Bt=Tn()),o.top+=Bt.scrollTop,o.left+=Bt.scrollLeft):Bt=Tn(),ta=Ps(Bt)}en(Be=me.cloneNode(!0),t.ghostClass,!1),en(Be,t.fallbackClass,!0),en(Be,t.dragClass,!0),Te(Be,"transition",""),Te(Be,"transform",""),Te(Be,"box-sizing","border-box"),Te(Be,"margin",0),Te(Be,"top",o.top),Te(Be,"left",o.left),Te(Be,"width",o.width),Te(Be,"height",o.height),Te(Be,"opacity","0.8"),Te(Be,"position",po?"absolute":"fixed"),Te(Be,"zIndex","100000"),Te(Be,"pointerEvents","none"),Ne.ghost=Be,r.appendChild(Be),Te(Be,"transform-origin",Us/parseInt(Be.style.width)*100+"% "+Vs/parseInt(Be.style.height)*100+"%")}},_onDragStart:function(r,o){var t=this,a=r.dataTransfer,u=t.options;Gt("dragStart",this,{evt:r}),Ne.eventCanceled?this._onDrop():(Gt("setupClone",this),Ne.eventCanceled||((ct=zs(me)).draggable=!1,ct.style["will-change"]="",this._hideClone(),en(ct,this.options.chosenClass,!1),Ne.clone=ct),t.cloneId=mo(function(){Gt("clone",t),!Ne.eventCanceled&&(t.options.removeCloneOnHide||tt.insertBefore(ct,me),t._hideClone(),Ht({sortable:t,name:"clone"}))}),!o&&en(me,u.dragClass,!0),o?(ao=!0,t._loopId=setInterval(t._emulateDragOver,50)):(Fe(document,"mouseup",t._onDrop),Fe(document,"touchend",t._onDrop),Fe(document,"touchcancel",t._onDrop),a&&(a.effectAllowed="move",u.setData&&u.setData.call(t,a,me)),je(document,"drop",t),Te(me,"transform","translateZ(0)")),Or=!0,t._dragStartId=mo(t._dragStarted.bind(t,o,r)),je(document,"selectstart",t),gi=!0,pi&&Te(document.body,"user-select","none"))},_onDragOver:function(r){var o,t,a,u,d=this.el,c=r.target,p=this.options,m=p.group,h=Ne.active,b=oo===m,y=p.sort,v=kt||h,w=this,x=!1;if(!na){if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),c=Mn(c,p.draggable,d,!0),j("dragOver"),Ne.eventCanceled)return x;if(me.contains(r.target)||c.animated&&c.animatingX&&c.animatingY||w._ignoreWhileAnimating===c)return Q(!1);if(ao=!1,h&&!p.disabled&&(b?y||(a=lt!==tt):kt===this||(this.lastPutMode=oo.checkPull(this,h,me,r))&&m.checkPut(this,h,me,r))){if(u=this._getDirection(r,c)==="vertical",o=At(me),j("dragOverValid"),Ne.eventCanceled)return x;if(a)return lt=tt,z(),this._hideClone(),j("revert"),Ne.eventCanceled||(vr?tt.insertBefore(me,vr):tt.appendChild(me)),Q(!0);var _=Xl(d,p.draggable);if(!_||function(W,K,X){var re=At(Xl(X.el,X.options.draggable)),pe=10;return K?W.clientX>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.clientX<re.left-pe||W.clientY<re.top&&W.clientX<re.right:W.clientY<re.top-pe||W.clientY<re.bottom&&W.clientX<re.left}(r,u,this)){var g=Rr(d,0,p,!0);if(g===me)return Q(!1);if(t=At(c=g),ho(tt,d,me,o,c,t,r,!1)!==!1)return z(),d.insertBefore(me,g),lt=d,q(),Q(!0)}else if(c.parentNode===d){t=At(c);var C,k,A,S=me.parentNode!==d,M=!function(W,K,X){var re=X?W.left:W.top,pe=X?W.right:W.bottom,ue=X?W.width:W.height,te=X?K.left:K.top,oe=X?K.right:K.bottom,Z=X?K.width:K.height;return re===te||pe===oe||re+ue/2===te+Z/2}(me.animated&&me.toRect||o,c.animated&&c.toRect||t,u),I=u?"top":"left",N=Fs(c,"top","top")||Fs(me,"top","top"),R=N?N.scrollTop:void 0;if(Ir!==c&&(k=t[I],Ai=!1,uo=!M&&p.invertSwap||S),C=function(W,K,X,re,pe,ue,te,oe){var Z=re?W.clientY:W.clientX,se=re?X.height:X.width,Ee=re?X.top:X.left,_e=re?X.bottom:X.right,Ie=!1;if(!te){if(oe&&lo<se*pe){if(!Ai&&(yi===1?Z>Ee+se*ue/2:Z<_e-se*ue/2)&&(Ai=!0),Ai)Ie=!0;else if(yi===1?Z<Ee+lo: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)<fn(Oe)?1:-1}(K)}return Ie=Ie||te,Ie&&(Z<Ee+se*ue/2||Z>_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;a<u;a++)Mn(r=t[a],d.draggable,this.el,!1)&&o.push(r.getAttribute(d.dataIdAttr)||Wd(r));return o},sort:function(r,o){var t={},a=this.el;this.toArray().forEach(function(u,d){var c=a.children[d];Mn(c,this.options.draggable,a,!1)&&(t[u]=c)},this),o&&this.captureAnimationState(),r.forEach(function(u){t[u]&&(a.removeChild(t[u]),a.appendChild(t[u]))}),o&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,o){return Mn(r,o||this.options.draggable,this.el,!1)},option:function(r,o){var t=this.options;if(o===void 0)return t[r];var a=mi.modifyOption(this,r,o);t[r]=typeof a<"u"?a:o,r==="group"&&Gs(t)},destroy:function(){Gt("destroy",this);var r=this.el;r[tn]=null,Fe(r,"mousedown",this._onTapStart),Fe(r,"touchstart",this._onTapStart),Fe(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(Fe(r,"dragover",this),Fe(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(o){o.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),so.splice(so.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!nr){if(Gt("hideClone",this),Ne.eventCanceled)return;Te(ct,"display","none"),this.options.removeCloneOnHide&&ct.parentNode&&ct.parentNode.removeChild(ct),nr=!0}},_showClone:function(r){if(r.lastPutMode==="clone"){if(nr){if(Gt("showClone",this),Ne.eventCanceled)return;me.parentNode!=tt||this.options.group.revertClone?vr?tt.insertBefore(ct,vr):tt.appendChild(ct):tt.insertBefore(ct,me),this.options.group.revertClone&&this.animate(me,ct),Te(ct,"display",""),nr=!1}}else this._hideClone()}},fo&&je(document,"touchmove",function(r){(Ne.active||Or)&&r.cancelable&&r.preventDefault()}),Ne.utils={on:je,off:Fe,css:Te,find:Os,is:function(r,o){return!!Mn(r,o,r,!1)},extend:function(r,o){if(r&&o)for(var t in o)o.hasOwnProperty(t)&&(r[t]=o[t]);return r},throttle:Hs,closest:Mn,toggleClass:en,clone:zs,index:fn,nextTick:mo,cancelNextTick:ia,detectDirection:Qs,getChild:Rr},Ne.get=function(r){return r[tn]},Ne.mount=function(){for(var r=arguments.length,o=new Array(r),t=0;t<r;t++)o[t]=arguments[t];o[0].constructor===Array&&(o=o[0]),o.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(Ne.utils=Dn(Dn({},Ne.utils),a.utils)),mi.mount(a)})},Ne.create=function(r,o){return new Ne(r,o)},Ne.version="1.14.0";var bi,oa,la,aa,vo,wi,vt=[],sa=!1;function go(){vt.forEach(function(r){clearInterval(r.pid)}),vt=[]}function Xs(){clearInterval(wi)}var ua=Hs(function(r,o,t,a){if(o.scroll){var u,d=(r.touches?r.touches[0]:r).clientX,c=(r.touches?r.touches[0]:r).clientY,p=o.scrollSensitivity,m=o.scrollSpeed,h=Tn(),b=!1;oa!==t&&(oa=t,go(),bi=o.scroll,u=o.scrollFn,bi===!0&&(bi=tr(t,!0)));var y=0,v=bi;do{var w=v,x=At(w),_=x.top,g=x.bottom,C=x.left,k=x.right,A=x.width,S=x.height,M=void 0,I=void 0,N=w.scrollWidth,R=w.scrollHeight,T=Te(w),L=w.scrollLeft,H=w.scrollTop;w===h?(M=A<N&&(T.overflowX==="auto"||T.overflowX==="scroll"||T.overflowX==="visible"),I=S<R&&(T.overflowY==="auto"||T.overflowY==="scroll"||T.overflowY==="visible")):(M=A<N&&(T.overflowX==="auto"||T.overflowX==="scroll"),I=S<R&&(T.overflowY==="auto"||T.overflowY==="scroll"));var P=M&&(Math.abs(k-d)<=p&&L+A<N)-(Math.abs(C-d)<=p&&!!L),j=I&&(Math.abs(g-c)<=p&&H+S<R)-(Math.abs(_-c)<=p&&!!H);if(!vt[y])for(var z=0;z<=y;z++)vt[z]||(vt[z]={});(vt[y].vx!=P||vt[y].vy!=j||vt[y].el!==w)&&(vt[y].el=w,vt[y].vx=P,vt[y].vy=j,clearInterval(vt[y].pid),(P!=0||j!=0)&&(b=!0,vt[y].pid=setInterval((function(){a&&this.layer===0&&Ne.active._onTouchMove(vo);var Q=vt[this.layer].vy?vt[this.layer].vy*m:0,q=vt[this.layer].vx?vt[this.layer].vx*m:0;typeof u=="function"&&u.call(Ne.dragged.parentNode[tn],q,Q,r,vo,vt[this.layer].el)!=="continue"||js(vt[this.layer].el,q,Q)}).bind({layer:y}),24))),y++}while(o.bubbleScroll&&v!==h&&(v=tr(v,!1)));sa=b}},30),Ks=function(r){var o=r.originalEvent,t=r.putSortable,a=r.dragEl,u=r.activeSortable,d=r.dispatchSortableEvent,c=r.hideGhostForTarget,p=r.unhideGhostForTarget;if(o){var m=t||u;c();var h=o.changedTouches&&o.changedTouches.length?o.changedTouches[0]:o,b=document.elementFromPoint(h.clientX,h.clientY);p(),m&&!m.el.contains(b)&&(d("spill"),this.onSpill({dragEl:a,putSortable:t}))}};function ca(){}function da(){}function fa(r){r.parentElement!==null&&r.parentElement.removeChild(r)}function Js(r,o,t){const a=t===0?r.children[0]:r.children[t-1].nextSibling;r.insertBefore(o,a)}ca.prototype={startIndex:null,dragStart:function(r){var o=r.oldDraggableIndex;this.startIndex=o},onSpill:function(r){var o=r.dragEl,t=r.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var a=Rr(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(o,a):this.sortable.el.appendChild(o),this.sortable.animateAll(),t&&t.animateAll()},drop:Ks},jn(ca,{pluginName:"revertOnSpill"}),da.prototype={onSpill:function(r){var o=r.dragEl,t=r.putSortable||this.sortable;t.captureAnimationState(),o.parentNode&&o.parentNode.removeChild(o),t.animateAll()},drop:Ks},jn(da,{pluginName:"removeOnSpill"}),Ne.mount(new function(){function r(){for(var o in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this))}return r.prototype={dragStarted:function(o){var t=o.originalEvent;this.sortable.nativeDraggable?je(document,"dragover",this._handleAutoScroll):this.options.supportPointer?je(document,"pointermove",this._handleFallbackAutoScroll):t.touches?je(document,"touchmove",this._handleFallbackAutoScroll):je(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(o){var t=o.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Fe(document,"dragover",this._handleAutoScroll):(Fe(document,"pointermove",this._handleFallbackAutoScroll),Fe(document,"touchmove",this._handleFallbackAutoScroll),Fe(document,"mousemove",this._handleFallbackAutoScroll)),Xs(),go(),clearTimeout(hi),hi=void 0},nulling:function(){vo=oa=bi=sa=wi=la=aa=null,vt.length=0},_handleFallbackAutoScroll:function(o){this._handleAutoScroll(o,!0)},_handleAutoScroll:function(o,t){var a=this,u=(o.touches?o.touches[0]:o).clientX,d=(o.touches?o.touches[0]:o).clientY,c=document.elementFromPoint(u,d);if(vo=o,t||this.options.forceAutoScrollFallback||fi||Un||pi){ua(o,this.options,c,t);var p=tr(c,!0);sa&&(!wi||u!==la||d!==aa)&&(wi&&Xs(),wi=setInterval(function(){var m=tr(document.elementFromPoint(u,d),!0);m!==p&&(p=m,go()),ua(o,a.options,m,t)},10),la=u,aa=d)}else{if(!this.options.bubbleScroll||tr(c,!0)===Tn())return void go();ua(o,this.options,tr(c,!1),!1)}}},jn(r,{pluginName:"scroll",initializeByDefault:!0})}),Ne.mount(da,ca);const Qd=typeof window<"u"?window.console:global.console,Gd=/-(\w)/g,$d=function(r){const o=Object.create(null);return function(t){return o[t]||(o[t]=r(t))}}(r=>r.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.length;++f)s.appendChild(n[f]);return s}function Q(e,n,l,i){var s=z(e,n,l,i);return s.setAttribute("role","presentation"),s}function q(e,n){if(n.nodeType==3&&(n=n.parentNode),e.contains)return e.contains(n);do if(n.nodeType==11&&(n=n.host),n==e)return!0;while(n=n.parentNode)}function W(e){var n;try{n=e.activeElement}catch{n=e.body||null}for(;n&&n.shadowRoot&&n.shadowRoot.activeElement;)n=n.shadowRoot.activeElement;return n}function K(e,n){var l=e.className;T(n).test(l)||(e.className+=(l?" ":"")+n)}function X(e,n){for(var l=e.split(" "),i=0;i<l.length;i++)l[i]&&!T(l[i]).test(n)&&(n+=" "+l[i]);return n}L=document.createRange?function(e,n,l,i){var s=document.createRange();return s.setEnd(i||e,l),s.setStart(e,n),s}:function(e,n,l){var i=document.body.createTextRange();try{i.moveToElementText(e.parentNode)}catch{return i}return i.collapse(!0),i.moveEnd("character",l),i.moveStart("character",n),i};var re=function(e){e.select()};function pe(e){return e.display.wrapper.ownerDocument}function ue(e){return pe(e).defaultView}function te(e){var n=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,n)}}function oe(e,n,l){for(var i in n||(n={}),e)e.hasOwnProperty(i)&&(l!==!1||!n.hasOwnProperty(i))&&(n[i]=e[i]);return n}function Z(e,n,l,i,s){n==null&&(n=e.search(/[^\s\u00a0]/))==-1&&(n=e.length);for(var f=i||0,E=s||0;;){var D=e.indexOf(" ",f);if(D<0||D>=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<e.length;++l)if(e[l]==n)return l;return-1}se.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},se.prototype.set=function(e,n){this.f=n;var l=+new Date+e;(!this.id||l<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=l)};var _e=50,Ie={toString:function(){return"CodeMirror.Pass"}},Oe={scroll:!1},$t={origin:"*mouse"},St={origin:"+move"};function at(e,n,l){for(var i=0,s=0;;){var f=e.indexOf(" ",i);f==-1&&(f=e.length);var E=f-i;if(f==e.length||s+E>=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<e.length;i++)l[i]=n(e[i],i);return l}function gn(e,n,l){for(var i=0,s=l(n);i<e.length&&l(e[i])<=s;)i++;e.splice(i,0,n)}function qt(){}function ir(e,n){var l;return Object.create?l=Object.create(e):(qt.prototype=e,l=new qt),n&&oe(n,l),l}var Nn=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function on(e){return/\w/.test(e)||e>"\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:n<e.length)&&_t(e.charAt(n));)n+=l;return n}function gt(e,n,l){for(var i=n>l?-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;f<e.length;++f){var E=e[f];(E.from<l&&E.to>n||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;s<e.length;++s){var f=e[s];if(f.from<n&&f.to>n)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<G;++ee)$.push(l(O.charCodeAt(ee)));for(var ie=0,de=V;ie<G;++ie){var ge=$[ie];ge=="m"?$[ie]=de:de=ge}for(var be=0,fe=V;be<G;++be){var xe=$[be];xe=="1"&&fe=="r"?$[be]="n":f.test(xe)&&(fe=xe,xe=="r"&&($[be]="R"))}for(var we=1,Se=$[0];we<G-1;++we){var qe=$[we];qe=="+"&&Se=="1"&&$[we+1]=="1"?$[we]="1":qe==","&&Se==$[we+1]&&(Se=="1"||Se=="n")&&($[we]=Se),Se=qe}for(var Qe=0;Qe<G;++Qe){var Jt=$[Qe];if(Jt==",")$[Qe]="N";else if(Jt=="%"){var Je=void 0;for(Je=Qe+1;Je<G&&$[Je]=="%";++Je);for(var mn=Qe&&$[Qe-1]=="!"||Je<G&&$[Je]=="1"?"1":"N",Zt=Qe;Zt<Je;++Zt)$[Zt]=mn;Qe=Je-1}}for(var rt=0,Yt=V;rt<G;++rt){var Ot=$[rt];Yt=="L"&&Ot=="1"?$[rt]="L":f.test(Ot)&&(Yt=Ot)}for(var dt=0;dt<G;++dt)if(s.test($[dt])){var ut=void 0;for(ut=dt+1;ut<G&&s.test($[ut]);++ut);for(var ft=(dt?$[dt-1]:V)=="L",Wt=ft==((ut<G?$[ut]:V)=="L")?ft?"L":"R":V,mr=dt;mr<ut;++mr)$[mr]=Wt;dt=ut-1}for(var _n,Lt=[],pt=0;pt<G;)if(E.test($[pt])){var cs=pt;for(++pt;pt<G&&E.test($[pt]);++pt);Lt.push(new B(0,cs,pt))}else{var Xn=pt,kr=Lt.length,Dr=U=="rtl"?1:0;for(++pt;pt<G&&$[pt]!="L";++pt);for(var Ft=Xn;Ft<pt;)if(D.test($[Ft])){Xn<Ft&&(Lt.splice(kr,0,new B(1,Xn,Ft)),kr+=Dr);var ai=Ft;for(++Ft;Ft<pt&&D.test($[Ft]);++Ft);Lt.splice(kr,0,new B(2,ai,Ft)),kr+=Dr,Xn=Ft}else++Ft;Xn<pt&&Lt.splice(kr,0,new B(1,Xn,pt))}return U=="ltr"&&(Lt[0].level==1&&(_n=O.match(/^\s+/))&&(Lt[0].from=_n[0].length,Lt.unshift(new B(0,0,_n[0].length))),Le(Lt).level==1&&(_n=O.match(/\s+$/))&&(Le(Lt).to-=_n[0].length,Lt.push(new B(0,G-_n[0].length,G)))),U=="rtl"?Lt.reverse():Lt}}();function le(e,n){var l=e.order;return l==null&&(l=e.order=ke(e.text,n)),l}var ce=[],ae=function(e,n,l){if(e.addEventListener)e.addEventListener(n,l,!1);else if(e.attachEvent)e.attachEvent("on"+n,l);else{var i=e._handlers||(e._handlers={});i[n]=(i[n]||ce).concat(l)}};function De(e,n){return e._handlers&&e._handlers[n]||ce}function Me(e,n,l){if(e.removeEventListener)e.removeEventListener(n,l,!1);else if(e.detachEvent)e.detachEvent("on"+n,l);else{var i=e._handlers,s=i&&i[n];if(s){var f=Ee(s,l);f>-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;s<l.length;++s)l[s].apply(null,i)}function Ue(e,n,l){return typeof n=="string"&&(n={type:n,preventDefault:function(){this.defaultPrevented=!0}}),Pe(e,l||n.type,e,n),Vn(n)||n.codemirrorIgnore}function yt(e){var n=e._handlers&&e._handlers.cursorActivity;if(n)for(var l=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),i=0;i<n.length;++i)Ee(l,n[i])==-1&&l.push(n[i])}function $e(e,n){return De(e,n).length>0}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=`
  6. b`.split(/\n/).length!=3?function(e){for(var n=0,l=[],i=e.length;n<=i;){var s=e.indexOf(`
  7. `,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<f){l=s;break}n-=f}return l.lines[n]}function Yn(e,n,l){var i=[],s=n.line;return e.iter(n.line,l.line+1,function(f){var E=f.text;s==l.line&&(E=E.slice(0,l.ch)),s==n.line&&(E=E.slice(n.ch)),i.push(E),++s}),i}function Ei(e,n,l){var i=[];return e.iter(n,l,function(s){i.push(s.text)}),i}function un(e,n){var l=n-e.height;if(l)for(var i=e;i;i=i.parent)i.height+=l}function F(e){if(e.parent==null)return null;for(var n=e.parent,l=Ee(n.lines,e),i=n.parent;i;n=i,i=i.parent)for(var s=0;i.children[s]!=n;++s)l+=i.children[s].chunkSize();return l+n.first}function Y(e,n){var l=e.first;e:do{for(var i=0;i<e.children.length;++i){var s=e.children[i],f=s.height;if(n<f){e=s;continue e}n-=f,l+=s.chunkSize()}return l}while(!e.lines);for(var E=0;E<e.lines.length;++E){var D=e.lines[E].height;if(n<D)break;n-=D}return l+E}function ne(e,n){return n>=e.first&&n<e.first+e.size}function ye(e,n){return String(e.lineNumberFormatter(n+e.firstLineNumber))}function J(e,n,l){if(l===void 0&&(l=null),!(this instanceof J))return new J(e,n,l);this.line=e,this.ch=n,this.sticky=l}function he(e,n){return e.line-n.line||e.ch-n.ch}function Ve(e,n){return e.sticky==n.sticky&&he(e,n)==0}function wt(e){return J(e.line,e.ch)}function zt(e,n){return he(e,n)<0?n:e}function xo(e,n){return he(e,n)<0?e:n}function yu(e,n){return Math.max(e.first,Math.min(n,e.first+e.size-1))}function Re(e,n){if(n.line<e.first)return J(e.first,0);var l=e.first+e.size-1;return n.line>l?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<n.length;i++)l[i]=Re(e,n[i]);return l}nt.prototype.eol=function(){return this.pos>=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.pos<this.string.length)return this.string.charAt(this.pos++)},nt.prototype.eat=function(e){var n=this.string.charAt(this.pos);if(typeof e=="string"?n==e:n&&(e.test?e.test(n):e(n)))return++this.pos,n},nt.prototype.eatWhile=function(e){for(var n=this.pos;this.eat(e););return this.pos>n},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.lastColumnPos<this.start&&(this.lastColumnValue=Z(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Z(this.string,this.lineStart,this.tabSize):0)},nt.prototype.indentation=function(){return Z(this.string,null,this.tabSize)-(this.lineStart?Z(this.string,this.lineStart,this.tabSize):0)},nt.prototype.match=function(e,n,l){if(typeof e!="string"){var i=this.string.slice(this.pos).match(e);return i&&i.index>0?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(;ie<V;ie+=2){var ge=s[ie+1];s[ie+1]=(ge?ge+" ":"")+"overlay "+ee}},f),l.state=E,l.baseTokens=null,l.baseTokenPos=1},B=0;B<e.state.overlays.length;++B)D(B);return{styles:s,classes:f.bgClass||f.textClass?f:null}}function wu(e,n,l){if(!n.styles||n.styles[0]!=e.state.modeGen){var i=Si(e,F(n)),s=n.text.length>e.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&&O<s.viewTo?D.save():null,D.nextLine()}),l&&(i.modeFrontier=D.line),D}function ba(e,n,l,i){var s=e.doc.mode,f=new nt(n,e.options.tabSize,l);for(f.start=f.pos=i||0,n==""&&xu(s,l.state);!f.eol();)wa(s,f,l.state),f.start=f.pos}function xu(e,n){if(e.blankLine)return e.blankLine(n);if(e.innerMode){var l=Ci(e,n);if(l.mode.blankLine)return l.mode.blankLine(l.state)}}function wa(e,n,l,i){for(var s=0;s<10;s++){i&&(i[0]=Ci(e,l).mode);var f=e.token(n,l);if(n.pos>n.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.pos<n.ch)&&!U.eol();)U.start=U.pos,s=wa(D,U,O.state),i&&f.push(new Cu(U,s,Bn(E.mode,O.state)));return i?f:new Cu(U,s,O.state)}function Su(e,n){if(e)for(;;){var l=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!l)break;e=e.slice(0,l.index)+e.slice(l.index+l[0].length);var i=l[1]?"bgClass":"textClass";n[i]==null?n[i]=l[2]:new RegExp("(?:^|\\s)"+l[2]+"(?:$|\\s)").test(n[i])||(n[i]+=" "+l[2])}return e}function _u(e,n,l,i,s,f,E){var D=l.flattenSpans;D==null&&(D=e.options.flattenSpans);var B,O=0,U=null,V=new nt(n,e.options.tabSize,i),G=e.options.addModeClass&&[null];for(n==""&&Su(xu(l,i.state),f);!V.eol();){if(V.pos>e.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(;O<V.start;)s(O=Math.min(V.start,O+5e3),U);U=B}V.start=V.pos}for(;O<V.pos;){var ee=Math.min(V.pos,O+5e3);s(ee,U),O=ee}}function Kf(e,n,l){for(var i,s,f=e.doc,E=l?-1:n-(e.doc.mode.innerMode?1e3:100),D=n;D>E;--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.highlightFrontier<n-10)){for(var l=e.first,i=n-1;i>l;i--){var s=Ce(e,i).stateAfter;if(s&&(!(s instanceof Co)||i+s.lookAhead<n)){l=i+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,l)}}var ku=!1,Wn=!1;function Zf(){ku=!0}function ep(){Wn=!0}function Eo(e,n,l){this.marker=e,this.from=n,this.to=l}function _i(e,n){if(e)for(var l=0;l<e.length;++l){var i=e[l];if(i.marker==n)return i}}function tp(e,n){for(var l,i=0;i<e.length;++i)e[i]!=n&&(l||(l=[])).push(e[i]);return l}function np(e,n,l){var i=l&&window.WeakSet&&(l.markedSpans||(l.markedSpans=new WeakSet));i&&e.markedSpans&&i.has(e.markedSpans)?e.markedSpans.push(n):(e.markedSpans=e.markedSpans?e.markedSpans.concat([n]):[n],i&&i.add(e.markedSpans)),n.marker.attachLine(e)}function rp(e,n,l){var i;if(e)for(var s=0;s<e.length;++s){var f=e[s],E=f.marker;if(f.from==null||(E.inclusiveLeft?f.from<=n:f.from<n)||f.from==n&&E.type=="bookmark"&&(!l||!f.marker.insertLeft)){var D=f.to==null||(E.inclusiveRight?f.to>=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<e.length;++s){var f=e[s],E=f.marker;if(f.to==null||(E.inclusiveRight?f.to>=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.from<n);(i||(i=[])).push(new Eo(E,D?null:f.from-n,f.to==null?null:f.to-n))}}return i}function xa(e,n){if(n.full)return null;var l=ne(e,n.from.line)&&Ce(e,n.from.line).markedSpans,i=ne(e,n.to.line)&&Ce(e,n.to.line).markedSpans;if(!l&&!i)return null;var s=n.from.ch,f=n.to.ch,E=he(n.from,n.to)==0,D=rp(l,s,E),B=ip(i,f,E),O=n.text.length==1,U=Le(n.text).length+(O?s:0);if(D)for(var V=0;V<D.length;++V){var G=D[V];if(G.to==null){var $=_i(B,G.marker);$?O&&(G.to=$.to==null?null:$.to+U):G.to=s}}if(B)for(var ee=0;ee<B.length;++ee){var ie=B[ee];ie.to!=null&&(ie.to+=U),ie.from==null?_i(D,ie.marker)||(ie.from=U,O&&(D||(D=[])).push(ie)):(ie.from+=U,O&&(D||(D=[])).push(ie))}D&&(D=Du(D)),B&&B!=D&&(B=Du(B));var de=[D];if(!O){var ge,be=n.text.length-2;if(be>0&&D)for(var fe=0;fe<D.length;++fe)D[fe].to==null&&(ge||(ge=[])).push(new Eo(D[fe].marker,null,null));for(var xe=0;xe<be;++xe)de.push(ge);de.push(B)}return de}function Du(e){for(var n=0;n<e.length;++n){var l=e[n];l.from!=null&&l.from==l.to&&l.marker.clearWhenEmpty!==!1&&e.splice(n--,1)}return e.length?e:null}function op(e,n,l){var i=null;if(e.iter(n.line,l.line+1,function($){if($.markedSpans)for(var ee=0;ee<$.markedSpans.length;++ee){var ie=$.markedSpans[ee].marker;ie.readOnly&&(!i||Ee(i,ie)==-1)&&(i||(i=[])).push(ie)}}),!i)return null;for(var s=[{from:n,to:l}],f=0;f<i.length;++f)for(var E=i[f],D=E.find(0),B=0;B<s.length;++B){var O=s[B];if(!(he(O.to,D.from)<0||he(O.from,D.to)>0)){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;l<n.length;++l)n[l].marker.detachLine(e);e.markedSpans=null}}function Tu(e,n){if(n){for(var l=0;l<n.length;++l)n[l].marker.attachLine(e);e.markedSpans=n}}function So(e){return e.inclusiveLeft?-1:0}function _o(e){return e.inclusiveRight?1:0}function Ca(e,n){var l=e.lines.length-n.lines.length;if(l!=0)return l;var i=e.find(),s=n.find(),f=he(i.from,s.from)||So(e)-So(n);return f?-f:he(i.to,s.to)||_o(e)-_o(n)||n.id-e.id}function Nu(e,n){var l,i=Wn&&e.markedSpans;if(i)for(var s=void 0,f=0;f<i.length;++f)(s=i[f]).marker.collapsed&&(n?s.from:s.to)==null&&(!l||Ca(l,s.marker)<0)&&(l=s.marker);return l}function Ru(e){return Nu(e,!0)}function ko(e){return Nu(e,!1)}function lp(e,n){var l,i=Wn&&e.markedSpans;if(i)for(var s=0;s<i.length;++s){var f=i[s];f.marker.collapsed&&(f.from==null||f.from<n)&&(f.to==null||f.to>n)&&(!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<E.length;++D){var B=E[D];if(B.marker.collapsed){var O=B.marker.find(0),U=he(O.from,l)||So(B.marker)-So(s),V=he(O.to,i)||_o(B.marker)-_o(s);if(!(U>=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;s<l.length;++s)if((i=l[s]).marker.collapsed&&(i.from==null||!i.marker.widgetNode&&i.from==0&&i.marker.inclusiveLeft&&Sa(e,n,i)))return!0}}function Sa(e,n,l){if(l.to==null){var i=l.marker.find(1,!0);return Sa(e,i.line,_i(i.line.markedSpans,l.marker))}if(l.marker.inclusiveRight&&l.to==n.text.length)return!0;for(var s=void 0,f=0;f<n.markedSpans.length;++f)if((s=n.markedSpans[f]).marker.collapsed&&!s.marker.widgetNode&&s.from==l.to&&(s.to==null||s.to!=l.from)&&(s.marker.inclusiveLeft||l.marker.inclusiveRight)&&Sa(e,n,s))return!0}function Qn(e){for(var n=0,l=(e=xn(e)).parent,i=0;i<l.lines.length;++i){var s=l.lines[i];if(s==e)break;n+=s.height}for(var f=l.parent;f;f=(l=f).parent)for(var E=0;E<f.children.length;++E){var D=f.children[E];if(D==l)break;n+=D.height}return n}function Do(e){if(e.height==0)return 0;for(var n,l=e.text.length,i=e;n=Ru(i);){var s=n.find(0,!0);i=s.from.line,l+=s.from.ch-s.to.ch}for(i=e;n=ko(i);){var f=n.find(0,!0);l-=i.text.length-f.from.ch,l+=(i=f.to.line).text.length-f.to.ch}return l}function _a(e){var n=e.display,l=e.doc;n.maxLine=Ce(l,l.first),n.maxLineLength=Do(n.maxLine),n.maxLineChanged=!0,l.iter(function(i){var s=Do(i);s>n.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]==`
  8. `?((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;s<e.length;s++){var f=e.charAt(s);f==" "&&l&&(s==e.length-1||e.charCodeAt(s+1)==32)&&(f="\xA0"),i+=f,l=f==" "}return i}function vp(e,n){return function(l,i,s,f,E,D,B){s=s?s+" cm-force-border":"cm-force-border";for(var O=l.pos,U=O+i.length;;){for(var V=void 0,G=0;G<n.length&&!((V=n[G]).to>O&&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;xe<i.length;++xe){var we=i[xe],Se=we.marker;if(Se.type=="bookmark"&&we.from==ee&&Se.widgetNode)be.push(Se);else if(we.from<=ee&&(we.to==null||we.to>ee||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<fe.length;Qe+=2)fe[Qe+1]==ge&&(O+=" "+fe[Qe]);if(!V||V.from==ee)for(var Jt=0;Jt<be.length;++Jt)Fu(n,0,be[Jt]);if(V&&(V.from||0)==ee){if(Fu(n,(V.to==null?$+1:V.to)-ee,V.marker,V.from==null),V.to==null)return;V.to==ee&&(V=!1)}}if(ee>=$)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;rt<l.length;rt+=2)n.addToken(n,s.slice(f,f=l[rt]),Iu(l[rt+1],n.cm.options))}function Pu(e,n,l){this.line=n,this.rest=sp(n),this.size=this.rest?F(Le(this.rest))-l+1:1,this.node=this.text=null,this.hidden=ar(e,n)}function Mo(e,n,l){for(var i,s=[],f=n;f<l;f=i){var E=new Pu(e.doc,Ce(e.doc,f),f);i=f+E.size,s.push(E)}return s}var Wr=null;function yp(e){Wr?Wr.ops.push(e):e.ownsGroup=Wr={ops:[e],delayedCallbacks:[]}}function Ap(e){var n=e.delayedCallbacks,l=0;do{for(;l<n.length;l++)n[l].call(null);for(var i=0;i<e.ops.length;i++){var s=e.ops[i];if(s.cursorActivityHandlers)for(;s.cursorActivityCalled<s.cursorActivityHandlers.length;)s.cursorActivityHandlers[s.cursorActivityCalled++].call(null,s.cm)}}while(l<n.length)}function bp(e,n){var l=e.ownsGroup;if(l)try{Ap(l)}finally{Wr=null,n(l)}}var ki=null;function xt(e,n){var l=De(e,n);if(l.length){var i,s=Array.prototype.slice.call(arguments,2);Wr?i=Wr.delayedCallbacks:ki?i=ki:(i=ki=[],setTimeout(wp,0));for(var f=function(D){i.push(function(){return l[D].apply(null,s)})},E=0;E<l.length;++E)f(E)}}function wp(){var e=ki;ki=null;for(var n=0;n<e.length;++n)e[n]()}function Hu(e,n,l,i){for(var s=0;s<n.changes.length;s++){var f=n.changes[s];f=="text"?Cp(e,n):f=="gutter"?zu(e,n,l,i):f=="class"?ka(e,n):f=="widget"&&Ep(e,n,i)}n.changes=null}function Di(e){return e.node==e.text&&(e.node=z("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),c&&p<8&&(e.node.style.zIndex=2)),e.node}function xp(e,n){var l=n.bgClass?n.bgClass+" "+(n.line.bgClass||""):n.line.bgClass;if(l&&(l+=" CodeMirror-linebackground"),n.background)l?n.background.className=l:(n.background.parentNode.removeChild(n.background),n.background=null);else if(l){var i=Di(n);n.background=i.insertBefore(z("div",null,l),i.firstChild),e.display.input.setUneditable(n.background)}}function ju(e,n){var l=e.display.externalMeasured;return l&&l.line==n.line?(e.display.externalMeasured=null,n.measure=l.measure,l.built):Ou(e,n)}function Cp(e,n){var l=n.text.className,i=ju(e,n);n.text==n.node&&(n.node=i.pre),n.text.parentNode.replaceChild(i.pre,n.text),n.text=i.pre,i.bgClass!=n.bgClass||i.textClass!=n.textClass?(n.bgClass=i.bgClass,n.textClass=i.textClass,ka(e,n)):l&&(n.text.className=l)}function ka(e,n){xp(e,n),n.line.wrapClass?Di(n).className=n.line.wrapClass:n.node!=n.text&&(n.node.className="");var l=n.textClass?n.textClass+" "+(n.line.textClass||""):n.line.textClass;n.text.className=l||""}function zu(e,n,l,i){if(n.gutter&&(n.node.removeChild(n.gutter),n.gutter=null),n.gutterBackground&&(n.node.removeChild(n.gutterBackground),n.gutterBackground=null),n.line.gutterClass){var s=Di(n);n.gutterBackground=z("div",null,"CodeMirror-gutter-background "+n.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(n.gutterBackground),s.insertBefore(n.gutterBackground,n.text)}var f=n.line.gutterMarkers;if(e.options.lineNumbers||f){var E=Di(n),D=n.gutter=z("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(D.setAttribute("aria-hidden","true"),e.display.input.setUneditable(D),E.insertBefore(D,n.text),n.line.gutterClass&&(D.className+=" "+n.line.gutterClass),e.options.lineNumbers&&(!f||!f["CodeMirror-linenumbers"])&&(n.lineNumber=D.appendChild(z("div",ye(e.options,l),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),f)for(var B=0;B<e.display.gutterSpecs.length;++B){var O=e.display.gutterSpecs[B].className,U=f.hasOwnProperty(O)&&f[O];U&&D.appendChild(z("div",[U],"CodeMirror-gutter-elt","left: "+i.gutterLeft[O]+"px; width: "+i.gutterWidth[O]+"px"))}}}function Ep(e,n,l){n.alignable&&(n.alignable=null);for(var i=T("CodeMirror-linewidget"),s=n.node.firstChild,f=void 0;s;s=f)f=s.nextSibling,i.test(s.className)&&n.node.removeChild(s);Uu(e,n,l)}function Sp(e,n,l,i){var s=ju(e,n);return n.text=n.node=s.pre,s.bgClass&&(n.bgClass=s.bgClass),s.textClass&&(n.textClass=s.textClass),ka(e,n),zu(e,n,l,i),Uu(e,n,i),n.node}function Uu(e,n,l){if(Vu(e,n.line,n,l,!0),n.rest)for(var i=0;i<n.rest.length;i++)Vu(e,n.rest[i],n,l,!1)}function Vu(e,n,l,i,s){if(n.widgets)for(var f=Di(l),E=0,D=n.widgets;E<D.length;++E){var B=D[E],O=z("div",[B.node],"CodeMirror-linewidget"+(B.className?" "+B.className:""));B.handleMouseEvents||O.setAttribute("cm-ignore-events","true"),_p(B,O,l,i),e.display.input.setUneditable(O),s&&B.above?f.insertBefore(O,l.gutter||l.text):f.appendChild(O),xt(B,"redraw")}}function _p(e,n,l,i){if(e.noHScroll){(l.alignable||(l.alignable=[])).push(n);var s=i.wrapperWidth;n.style.left=i.fixedPos+"px",e.coverGutter||(s-=i.gutterTotalWidth,n.style.paddingLeft=i.gutterTotalWidth+"px"),n.style.width=s+"px"}e.coverGutter&&(n.style.zIndex=5,n.style.position="relative",e.noHScroll||(n.style.marginLeft=-i.gutterTotalWidth+"px"))}function Mi(e){if(e.height!=null)return e.height;var n=e.doc.cm;if(!n)return 0;if(!q(document.body,e.node)){var l="position: relative;";e.coverGutter&&(l+="margin-left: -"+n.display.gutters.offsetWidth+"px;"),e.noHScroll&&(l+="width: "+n.display.wrapper.clientWidth+"px;"),j(n.display.measure,z("div",[e.node],null,l))}return e.height=e.node.parentNode.offsetHeight}function Gn(e,n){for(var l=Fr(n);l!=e.wrapper;l=l.parentNode)if(!l||l.nodeType==1&&l.getAttribute("cm-ignore-events")=="true"||l.parentNode==e.sizer&&l!=e.mover)return!0}function To(e){return e.lineSpace.offsetTop}function Da(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Yu(e){if(e.cachedPaddingH)return e.cachedPaddingH;var n=j(e.measure,z("pre","x","CodeMirror-line-like")),l=window.getComputedStyle?window.getComputedStyle(n):n.currentStyle,i={left:parseInt(l.paddingLeft),right:parseInt(l.paddingRight)};return!isNaN(i.left)&&!isNaN(i.right)&&(e.cachedPaddingH=i),i}function On(e){return _e-e.display.nativeBarWidth}function Ar(e){return e.display.scroller.clientWidth-On(e)-e.display.barWidth}function Ma(e){return e.display.scroller.clientHeight-On(e)-e.display.barHeight}function kp(e,n,l){var i=e.options.lineWrapping,s=i&&Ar(e);if(!n.measure.heights||i&&n.measure.width!=s){var f=n.measure.heights=[];if(i){n.measure.width=s;for(var E=n.text.firstChild.getClientRects(),D=0;D<E.length-1;D++){var B=E[D],O=E[D+1];Math.abs(B.bottom-O.bottom)>2&&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;i<e.rest.length;i++)if(e.rest[i]==n)return{map:e.measure.maps[i],cache:e.measure.caches[i]};for(var s=0;s<e.rest.length;s++)if(F(e.rest[s])>l)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<e.display.viewTo)return e.display.view[xr(e,n)];var l=e.display.externalMeasured;return l&&n>=l.lineN&&n<l.lineN+l.size?l:void 0}function Qr(e,n){var l=F(n),i=Ta(e,l);i&&!i.text?i=null:i&&i.changes&&(Hu(e,i,l,Ia(e)),e.curOp.forceUpdate=!0),i||(i=Dp(e,n));var s=Wu(i,n,l);return{line:n,view:i,rect:null,map:s.map,cache:s.cache,before:s.before,hasHeights:!1}}function Fn(e,n,l,i,s){n.before&&(l=-1);var f,E=l+(i||"");return n.cache.hasOwnProperty(E)?f=n.cache[E]:(n.rect||(n.rect=n.view.text.getBoundingClientRect()),n.hasHeights||(kp(e,n.view,n.rect),n.hasHeights=!0),(f=Tp(e,n,l,i)).bogus||(n.cache[E]=f)),{left:f.left,right:f.right,top:s?f.rtop:f.top,bottom:s?f.rbottom:f.bottom}}var br,Gu={left:0,right:0,top:0,bottom:0};function $u(e,n,l){for(var i,s,f,E,D,B,O=0;O<e.length;O+=3)if(D=e[O],B=e[O+1],n<D?(s=0,f=1,E="left"):n<B?f=1+(s=n-D):(O==e.length-3||n==B&&e[O+3]>n)&&(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<e.length-3&&e[O+3]==e[O+4]&&!e[O+5].insertLeft;)i=e[(O+=3)+2],E="right";break}return{node:i,start:s,end:f,collapse:E,coverStart:D,coverEnd:B}}function Mp(e,n){var l=Gu;if(n=="left")for(var i=0;i<e.length&&(l=e[i]).left==l.right;i++);else for(var s=e.length-1;s>=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+B<f.coverEnd&&_t(n.line.text.charAt(f.coverStart+B));)++B;if((s=c&&p<9&&D==0&&B==f.coverEnd-f.coverStart?E.parentNode.getBoundingClientRect():Mp(L(E,D,B).getClientRects(),i)).left||s.right||D==0)break;B=D,D-=1,O="right"}c&&p<11&&(s=Np(e.display.measure,s))}else{var V;D>0&&(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<de.length-1&&!(ie<de[ge]);ge++);var be=ge?de[ge-1]:0,fe=de[ge],xe={left:(O=="right"?s.right:s.left)-n.rect.left,right:(O=="left"?s.left:s.right)-n.rect.left,top:be,bottom:fe};return!s.left&&!s.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=$,xe.rbottom=ee),xe}function Np(e,n){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Aa(e))return n;var l=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:n.left*l,right:n.right*l,top:n.top*i,bottom:n.bottom*i}}function qu(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var n=0;n<e.rest.length;n++)e.measure.caches[n]={}}function Xu(e){e.display.externalMeasure=null,P(e.display.lineMeasure);for(var n=0;n<e.display.view.length;n++)qu(e.display.view[n])}function Ti(e){Xu(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Ku(e){return b&&C?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function Ju(e){return b&&C?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function Na(e){var n=xn(e).widgets,l=0;if(n)for(var i=0;i<n.length;++i)n[i].above&&(l+=Mi(n[i]));return l}function No(e,n,l,i,s){if(!s){var f=Na(n);l.top+=f,l.bottom+=f}if(i=="line")return l;i||(i="local");var E=Qn(n);if(i=="local"?E+=To(e.display):E-=e.display.viewOffset,i=="page"||i=="window"){var D=e.display.lineSpace.getBoundingClientRect();E+=D.top+(i=="window"?0:Ju(pe(e)));var B=D.left+(i=="window"?0:Ku(pe(e)));l.left+=B,l.right+=B}return l.top+=E,l.bottom+=E,l}function Zu(e,n,l){if(l=="div")return n;var i=n.left,s=n.top;if(l=="page")i-=Ku(pe(e)),s-=Ju(pe(e));else if(l=="local"||!l){var f=e.display.sizer.getBoundingClientRect();i+=f.left,s+=f.top}var E=e.display.lineSpace.getBoundingClientRect();return{left:i-E.left,top:s-E.top}}function Ro(e,n,l,i,s){return i||(i=Ce(e.doc,n.line)),No(e,i,Qu(e,i,n.ch,s),l)}function Cn(e,n,l,i,s,f){function E(ee,ie){var de=Fn(e,s,ee,ie?"right":"left",f);return ie?de.left=de.right:de.right=de.left,No(e,i,de,l)}i=i||Ce(e.doc,n.line),s||(s=Qr(e,i));var D=le(i,e.doc.direction),B=n.ch,O=n.sticky;if(B>=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<ie.right-i,fe=be==O;de=ee+(fe?0:1),$=fe?"after":"before",G=be?ie.left:ie.right}else{!O&&(de==B||de==D)&&de++,$=de==0?"after":de==n.text.length?"before":Fn(e,f,de-(O?1:0)).bottom+E<=s==O?"after":"before";var xe=Cn(e,J(l,de,$),"line",n,f);G=xe.left,ge=s<xe.top?-1:s>=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<s.length;G++){var $=s[G];if(!($.from>=O||$.to<=B)){var ee=Fn(e,i,$.level!=1?Math.min(O,$.to)-1:Math.max(B,$.from)).right,ie=ee<f?f-ee+1e9:ee-f;(!U||V>ie)&&(U=$,V=ie)}}return U||(U=s[s.length-1]),U.from<B&&(U={from:B,to:U.to,level:U.level}),U.to>O&&(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;E<s.widgets.length;E++)s.widgets[E].height&&(f+=s.widgets[E].height);return l?f+(Math.ceil(s.text.length/i)||1)*n:f+n}}function Fa(e){var n=e.doc,l=rc(e);n.iter(function(i){var s=l(i);s!=i.height&&un(i,s)})}function wr(e,n,l,i){var s=e.display;if(!l&&Fr(n).getAttribute("cm-not-content")=="true")return null;var f,E,D=s.lineSpace.getBoundingClientRect();try{f=n.clientX-D.left,E=n.clientY-D.top}catch{return null}var B,O=La(e,f,E);if(i&&O.xRel>0&&(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;i<l.length;i++)if((n-=l[i].size)<0)return i}function Ut(e,n,l,i){n==null&&(n=e.doc.first),l==null&&(l=e.doc.first+e.doc.size),i||(i=0);var s=e.display;if(i&&l<s.viewTo&&(s.updateLineNumbers==null||s.updateLineNumbers>n)&&(s.updateLineNumbers=n),e.curOp.viewChanged=!0,n>=s.viewTo)Wn&&Ea(e.doc,n)<s.viewTo&&ur(e);else if(l<=s.viewFrom)Wn&&Bu(e.doc,l+i)>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<O.lineN?O.lineN+=i:n<O.lineN+O.size&&(s.externalMeasured=null))}function sr(e,n,l){e.curOp.viewChanged=!0;var i=e.display,s=e.display.externalMeasured;if(s&&n>=s.lineN&&n<s.lineN+s.size&&(i.externalMeasured=null),!(n<i.viewFrom||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;B<f;B++)D+=E[B].size;if(D!=n){if(i>0){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.viewFrom<n&&(i.view=i.view.slice(xr(e,n))),i.viewFrom=n,i.viewTo<l?i.view=i.view.concat(Mo(e,i.viewTo,l)):i.viewTo>l&&(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<n.length;i++){var s=n[i];!s.hidden&&(!s.node||s.changes)&&++l}return l}function Ni(e){e.display.input.showSelection(e.display.input.prepareSelection())}function oc(e,n){n===void 0&&(n=!0);var l=e.doc,i={},s=i.cursors=document.createDocumentFragment(),f=i.selection=document.createDocumentFragment(),E=e.options.$customCursor;E&&(n=!0);for(var D=0;D<l.sel.ranges.length;D++)if(n||D!=l.sel.primIndex){var B=l.sel.ranges[D];if(!(B.from().line>=e.display.viewTo||B.to().line<e.display.viewFrom)){var O=B.empty();if(E){var U=E(e,B);U&&Pa(e,U,s)}else(O||e.options.showCursorWhenSelecting)&&Pa(e,B.head,s);O||Op(e,B,f)}}return i}function Pa(e,n,l){var i=Cn(e,n,"div",null,null,!e.options.singleCursorHeightPerLine),s=l.appendChild(z("div","\xA0","CodeMirror-cursor"));if(s.style.left=i.left+"px",s.style.top=i.top+"px",s.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var f=Ro(e,n,"div",null,null),E=f.right-f.left;s.style.width=(E>0?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;
  9. top: `+xe+"px; width: "+(we??B-fe)+`px;
  10. 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.bottom<Wt.top&&U(D,ft.bottom,null,Wt.top),U(ai,Wt.top,ds-ai,Wt.bottom)}(!Se||Bo(ft,Se)<0)&&(Se=ft),Bo(Wt,Se)<0&&(Se=Wt),(!qe||Bo(ft,qe)<0)&&(qe=ft),Bo(Wt,qe)<0&&(qe=Wt)}),{start:Se,end:qe}}var G=n.from(),$=n.to();if(G.line==$.line)V(G.line,G.ch,$.ch);else{var ee=Ce(s,G.line),ie=Ce(s,$.line),de=xn(ee)==xn(ie),ge=V(G.line,G.ch,de?ee.text.length+1:null).end,be=V($.line,de?0:null,$.ch).start;de&&(ge.top<be.top-2?(U(ge.right,ge.top,null,ge.bottom),U(D,be.top,be.left,be.bottom)):U(ge.right,ge.top,be.left-ge.right,ge.bottom)),ge.bottom<be.top&&U(D,ge.bottom,null,be.top)}l.appendChild(f)}function Ha(e){if(e.state.focused){var n=e.display;clearInterval(n.blinker);var l=!0;n.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?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<n.view.length;E++){var D=n.view[E],B=e.options.lineWrapping,O=void 0,U=0;if(!D.hidden){if(s+=D.line.height,c&&p<8){var V=D.node.offsetTop+D.node.offsetHeight;O=V-l,l=V}else{var G=D.node.getBoundingClientRect();O=G.bottom-G.top,!B&&D.text.firstChild&&(U=D.text.firstChild.getBoundingClientRect().right-G.left-1)}var $=D.line.height-O;if(($>.005||$<-.005)&&(s<i&&(f-=$),un(D.line,O),ac(D.line),D.rest))for(var ee=0;ee<D.rest.length;ee++)ac(D.rest[ee]);if(U>e.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.widgets.length;++n){var l=e.widgets[n],i=l.node.parentNode;i&&(l.height=i.offsetHeight)}}function Oo(e,n,l){var i=l&&l.top!=null?Math.max(0,l.top):e.scroller.scrollTop;i=Math.floor(i-To(e));var s=l&&l.bottom!=null?l.bottom:i+e.wrapper.clientHeight,f=Y(n,i),E=Y(n,s);if(l&&l.ensure){var D=l.ensure.from.line,B=l.ensure.to.line;D<f?(f=D,E=Y(n,Qn(Ce(n,D))+e.wrapper.clientHeight)):Math.min(B,n.lastLine())>=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;
  11. top: `+(n.top-l.viewOffset-To(e.display))+`px;
  12. height: `+(n.bottom-n.top+On(e)+l.barHeight)+`px;
  13. 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.top<i,O=n.bottom>D-i;if(n.top<s)E.scrollTop=B?0:n.top;else if(n.bottom>s+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?E.scrollLeft=Math.max(0,n.left+V-(ee?0:10)):n.right>$+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.ops.length;i++)l.ops[i].cm.curOp=null;Up(l)})}function Up(e){for(var n=e.ops,l=0;l<n.length;l++)Vp(n[l]);for(var i=0;i<n.length;i++)Yp(n[i]);for(var s=0;s<n.length;s++)Wp(n[s]);for(var f=0;f<n.length;f++)Qp(n[f]);for(var E=0;E<n.length;E++)Gp(n[E])}function Vp(e){var n=e.cm,l=n.display;qp(n),e.updateMaxLine&&_a(n),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<l.viewFrom||e.scrollToPos.to.line>=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<n.doc.scrollLeft&&Cr(n,Math.min(n.display.scroller.scrollLeft,e.maxScrollLeft),!0),n.display.maxLineChanged=!1);var l=e.focus&&e.focus==W(pe(n));e.preparedSelection&&n.display.input.showSelection(e.preparedSelection,l),(e.updatedDisplay||e.startHeight!=n.doc.height)&&Kr(n,e.barMeasure),e.updatedDisplay&&Ga(n,e.barMeasure),e.selectionChanged&&Ha(n),n.state.focused&&e.updateInput&&n.display.input.reset(e.typing),l&&lc(e.cm)}function Gp(e){var n=e.cm,l=n.display,i=n.doc;e.updatedDisplay&&pc(n,e.update),l.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(l.wheelStartX=l.wheelStartY=null),e.scrollTop!=null&&uc(n,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Cr(n,e.scrollLeft,!0,!0),e.scrollToPos&&Fp(n,Pp(n,Re(i,e.scrollToPos.from),Re(i,e.scrollToPos.to),e.scrollToPos.margin));var s=e.maybeHiddenMarkers,f=e.maybeUnhiddenMarkers;if(s)for(var E=0;E<s.length;++E)s[E].lines.length||Pe(s[E],"hide");if(f)for(var D=0;D<f.length;++D)f[D].lines.length&&Pe(f[D],"unhide");l.wrapper.offsetHeight&&(i.scrollTop=n.display.scroller.scrollTop),e.changeObjs&&Pe(n,"changes",n,e.changeObjs),e.update&&e.update.finish()}function Kt(e,n){if(e.curOp)return n();Sr(e);try{return n()}finally{_r(e)}}function Ct(e,n){return function(){if(e.curOp)return n.apply(e,arguments);Sr(e);try{return n.apply(e,arguments)}finally{_r(e)}}}function It(e){return function(){if(this.curOp)return e.apply(this,arguments);Sr(this);try{return e.apply(this,arguments)}finally{_r(this)}}}function Et(e){return function(){var n=this.cm;if(!n||n.curOp)return e.apply(this,arguments);Sr(n);try{return e.apply(this,arguments)}finally{_r(n)}}}function Oi(e,n){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(n,te($p,e))}function $p(e){var n=e.doc;if(!(n.highlightFrontier>=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&&G<E.length;++G)V=E[G]!=f.styles[G];V&&s.push(i.line),f.stateAfter=i.save(),i.nextLine()}else f.text.length<=e.options.maxHighlightLength&&ba(e,f.text,i),f.stateAfter=i.line%5==0?i.save():null,i.nextLine();if(+new Date>l)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<s.length;f++)sr(e,s[f],"text")})}}var Po=function(e,n,l){var i=e.display;this.viewport=n,this.visible=Oo(i,e.doc,n),this.editorIsHidden=!i.wrapper.offsetWidth,this.wrapperHeight=i.wrapper.clientHeight,this.wrapperWidth=i.wrapper.clientWidth,this.oldDisplayWidth=Ar(e),this.force=l,this.dims=Ia(e),this.events=[]};function qp(e){var n=e.display;!n.scrollbarsClipped&&n.scroller.offsetWidth&&(n.nativeBarWidth=n.scroller.offsetWidth-n.scroller.clientWidth,n.heightForcer.style.height=On(e)+"px",n.sizer.style.marginBottom=-n.nativeBarWidth+"px",n.sizer.style.borderRightWidth=On(e)+"px",n.scrollbarsClipped=!0)}function Xp(e){if(e.hasFocus())return null;var n=W(pe(e));if(!n||!q(e.display.lineDiv,n))return null;var l={activeElt:n};if(window.getSelection){var i=ue(e).getSelection();i.anchorNode&&i.extend&&q(e.display.lineDiv,i.anchorNode)&&(l.anchorNode=i.anchorNode,l.anchorOffset=i.anchorOffset,l.focusNode=i.focusNode,l.focusOffset=i.focusOffset)}return l}function Kp(e){if(e&&e.activeElt&&e.activeElt!=W(e.activeElt.ownerDocument)&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&q(document.body,e.anchorNode)&&q(document.body,e.focusNode))){var n=e.activeElt.ownerDocument,l=n.defaultView.getSelection(),i=n.createRange();i.setEnd(e.anchorNode,e.anchorOffset),i.collapse(!1),l.removeAllRanges(),l.addRange(i),l.extend(e.focusNode,e.focusOffset)}}function Ya(e,n){var l=e.display,i=e.doc;if(n.editorIsHidden)return ur(e),!1;if(!n.force&&n.visible.from>=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.viewFrom<f&&f-l.viewFrom<20&&(f=Math.max(i.first,l.viewFrom)),l.viewTo>E&&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<B.length;U++){var V=B[U];if(!V.hidden)if(V.node&&V.node.parentNode==f){for(;E!=V.node;)E=D(E);var G=s&&n!=null&&n<=O&&V.lineNumber;V.changes&&(Ee(V.changes,"gutter")>-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<l.length;E++)if(!l[E].hidden){e.options.fixedGutter&&(l[E].gutter&&(l[E].gutter.style.left=f),l[E].gutterBackground&&(l[E].gutterBackground.style.left=f));var D=l[E].alignable;if(D)for(var B=0;B<D.length;B++)D[B].style.left=f}e.options.fixedGutter&&(n.gutters.style.left=i+s+"px")}}function mc(e){if(!e.options.lineNumbers)return!1;var n=e.doc,l=ye(e.options,n.first+n.size-1),i=e.display;if(l.length!=i.lineNumChars){var s=i.measure.appendChild(z("div",[z("div",l)],"CodeMirror-linenumber CodeMirror-gutter-elt")),f=s.firstChild.offsetWidth,E=s.offsetWidth-f;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(f,i.lineGutter.offsetWidth-E)+1,i.lineNumWidth=i.lineNumInnerWidth+E,i.lineNumChars=i.lineNumInnerWidth?l.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",Qa(e.display),!0}return!1}function $a(e,n){for(var l=[],i=!1,s=0;s<e.length;s++){var f=e[s],E=null;if(typeof f!="string"&&(E=f.style,f=f.className),f=="CodeMirror-linenumbers"){if(!n)continue;i=!0}l.push({className:f,style:E})}return n&&!i&&l.push({className:"CodeMirror-linenumbers",style:null}),l}function vc(e){var n=e.gutters,l=e.gutterSpecs;P(n),e.lineGutter=null;for(var i=0;i<l.length;++i){var s=l[i],f=s.className,E=s.style,D=n.appendChild(z("div",null,"CodeMirror-gutter "+f));E&&(D.style.cssText=E),f=="CodeMirror-linenumbers"&&(e.lineGutter=D,D.style.width=(e.lineNumWidth||1)+"px")}n.style.display=l.length?"":"none",Qa(e)}function Fi(e){vc(e.display),Ut(e),hc(e)}function Zp(e,n,l,i){var s=this;this.input=l,s.scrollbarFiller=z("div",null,"CodeMirror-scrollbar-filler"),s.scrollbarFiller.setAttribute("cm-not-content","true"),s.gutterFiller=z("div",null,"CodeMirror-gutter-filler"),s.gutterFiller.setAttribute("cm-not-content","true"),s.lineDiv=Q("div",null,"CodeMirror-code"),s.selectionDiv=z("div",null,null,"position: relative; z-index: 1"),s.cursorDiv=z("div",null,"CodeMirror-cursors"),s.measure=z("div",null,"CodeMirror-measure"),s.lineMeasure=z("div",null,"CodeMirror-measure"),s.lineSpace=Q("div",[s.measure,s.lineMeasure,s.selectionDiv,s.cursorDiv,s.lineDiv],null,"position: relative; outline: none");var f=Q("div",[s.lineSpace],"CodeMirror-lines");s.mover=z("div",[f],null,"position: relative"),s.sizer=z("div",[s.mover],"CodeMirror-sizer"),s.sizerWidth=null,s.heightForcer=z("div",null,null,"position: absolute; height: "+_e+"px; width: 1px;"),s.gutters=z("div",null,"CodeMirror-gutters"),s.lineGutter=null,s.scroller=z("div",[s.sizer,s.heightForcer,s.gutters],"CodeMirror-scroll"),s.scroller.setAttribute("tabIndex","-1"),s.wrapper=z("div",[s.scrollbarFiller,s.gutterFiller,s.scroller],"CodeMirror"),b&&y>=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;e<this.events.length;e++)Pe.apply(null,this.events[e])};var Ho=0,$n=null;function gc(e){var n=e.wheelDeltaX,l=e.wheelDeltaY;return n==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(n=e.detail),l==null&&e.detail&&e.axis==e.VERTICAL_AXIS?l=e.detail:l==null&&(l=e.wheelDelta),{x:n,y:l}}function eh(e){var n=gc(e);return n.x*=$n,n.y*=$n,n}function yc(e,n){b&&y==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var l=gc(n),i=l.x,s=l.y,f=$n;n.deltaMode===0&&(i=n.deltaX,s=n.deltaY,f=1);var E=e.display,D=E.scroller,B=D.scrollWidth>D.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<V.length;G++)if(V[G].node==U){e.display.currentWheelTarget=U;break e}}if(i&&!t&&!v&&f!=null)return s&&O&&Li(e,Math.max(0,D.scrollTop+s*f)),Cr(e,Math.max(0,D.scrollLeft+i*f)),(!s||s&&O)&&Ke(n),void(E.wheelStartX=null);if(s&&f!=null){var $=s*f,ee=e.doc.scrollTop,ie=ee+E.wrapper.clientHeight;$<0?ee=Math.max(0,ee+$-50):ie=Math.min(e.doc.height,ie+$+50),Wa(e,{top:ee,bottom:ie})}Ho<20&&n.deltaMode!==0&&(E.wheelStartX==null?(E.wheelStartX=D.scrollLeft,E.wheelStartY=D.scrollTop,E.wheelDX=i,E.wheelDY=s,setTimeout(function(){if(E.wheelStartX!=null){var de=D.scrollLeft-E.wheelStartX,ge=D.scrollTop-E.wheelStartY,be=ge&&E.wheelDY&&ge/E.wheelDY||de&&E.wheelDX&&de/E.wheelDX;E.wheelStartX=E.wheelStartY=null,be&&($n=($n*Ho+be)/(Ho+1),++Ho)}},200)):(E.wheelDX+=i,E.wheelDY+=s))}}c?$n=-.53:t?$n=15:b?$n=-.7:w&&($n=-1/3);var cn=function(e,n){this.ranges=e,this.primIndex=n};cn.prototype.primary=function(){return this.ranges[this.primIndex]},cn.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var n=0;n<this.ranges.length;n++){var l=this.ranges[n],i=e.ranges[n];if(!Ve(l.anchor,i.anchor)||!Ve(l.head,i.head))return!1}return!0},cn.prototype.deepCopy=function(){for(var e=[],n=0;n<this.ranges.length;n++)e[n]=new He(wt(this.ranges[n].anchor),wt(this.ranges[n].head));return new cn(e,this.primIndex)},cn.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},cn.prototype.contains=function(e,n){n||(n=e);for(var l=0;l<this.ranges.length;l++){var i=this.ranges[l];if(he(n,i.from())>=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;f<n.length;f++){var E=n[f],D=n[f-1],B=he(D.to(),E.from());if(i&&!E.empty()?B>0: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;i<e.sel.ranges.length;i++){var s=e.sel.ranges[i];l.push(new He(Ac(s.anchor,n),Ac(s.head,n)))}return En(e.cm,l,e.sel.primIndex)}function bc(e,n,l){return e.line==n.line?J(l.line,e.ch-n.ch+l.ch):J(l.line+(e.line-n.line),e.ch)}function th(e,n,l){for(var i=[],s=J(e.first,0),f=s,E=0;E<n.length;E++){var D=n[E],B=bc(D.from,s,f),O=bc(dr(D),s,f);if(s=D.to,f=O,l=="around"){var U=e.sel.ranges[E],V=he(U.head,U.anchor)<0;i[E]=new He(V?O:B,V?B:O)}else i[E]=new He(B,B)}return new cn(i,e.sel.primIndex)}function Xa(e){e.doc.mode=zr(e.options,e.doc.modeOption),Pi(e)}function Pi(e){e.doc.iter(function(n){n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,Oi(e,100),e.state.modeGen++,e.curOp&&Ut(e)}function wc(e,n){return n.from.ch==0&&n.to.ch==0&&Le(n.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Ka(e,n,l,i){function s(be){return l?l[be]:null}function f(be,fe,xe){up(be,fe,xe,i),xt(be,"change",be,n)}function E(be,fe){for(var xe=[],we=be;we<fe;++we)xe.push(new Yr(O[we],s(we),i));return xe}var D=n.from,B=n.to,O=n.text,U=Ce(e,D.line),V=Ce(e,B.line),G=Le(O),$=s(O.length-1),ee=B.line-D.line;if(n.full)e.insert(0,E(0,O.length)),e.remove(O.length,e.size-O.length);else if(wc(e,n)){var ie=E(0,O.length-1);f(V,V.text,$),ee&&e.remove(D.line,ee),ie.length&&e.insert(D.line,ie)}else if(U==V)if(O.length==1)f(U,U.text.slice(0,D.ch)+G+U.text.slice(B.ch),$);else{var de=E(1,O.length-1);de.push(new Yr(G+U.text.slice(B.ch),$,i)),f(U,U.text.slice(0,D.ch)+O[0],s(0)),e.insert(D.line+1,de)}else if(O.length==1)f(U,U.text.slice(0,D.ch)+O[0]+V.text.slice(B.ch),s(0)),e.remove(D.line+1,ee);else{f(U,U.text.slice(0,D.ch)+O[0],s(0)),f(V,G+V.text.slice(B.ch),$);var ge=E(1,O.length-1);ee>1&&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;D<s.linked.length;++D){var B=s.linked[D];if(B.doc!=f){var O=E&&B.sharedHist;l&&!O||(n(B.doc,O),i(B.doc,s,O))}}}i(e,null,!0)}function xc(e,n){if(n.cm)throw new Error("This document is already in use.");e.doc=n,n.cm=e,Fa(e),Xa(e),Cc(e),e.options.direction=n.direction,e.options.lineWrapping||_a(e),e.options.mode=n.modeOption,Ut(e)}function Cc(e){(e.doc.direction=="rtl"?K:H)(e.display.lineDiv,"CodeMirror-rtl")}function nh(e){Kt(e,function(){Cc(e),Ut(e)})}function jo(e){this.done=[],this.undone=[],this.undoDepth=e?e.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e?e.maxGeneration:1}function Ja(e,n){var l={from:wt(n.from),to:dr(n),text:Yn(e,n.from,n.to)};return _c(e,l,n.from.line,n.to.line+1),fr(e,function(i){return _c(i,l,n.from.line,n.to.line+1)},!0),l}function Ec(e){for(;e.length&&Le(e).ranges;)e.pop()}function rh(e,n){return n?(Ec(e.done),Le(e.done)):e.done.length&&!Le(e.done).ranges?Le(e.done):e.done.length>1&&!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<e.length;++l)e[l].marker.explicitlyCleared?n||(n=e.slice(0,l)):n&&n.push(e[l]);return n?n.length?n:null:e}function ah(e,n){var l=n["spans_"+e.id];if(!l)return null;for(var i=[],s=0;s<n.text.length;++s)i.push(lh(l[s]));return i}function kc(e,n){var l=ah(e,n),i=xa(e,n);if(!l)return i;if(!i)return l;for(var s=0;s<l.length;++s){var f=l[s],E=i[s];if(f&&E)e:for(var D=0;D<E.length;++D){for(var B=E[D],O=0;O<f.length;++O)if(f[O].marker==B.marker)continue e;f.push(B)}else E&&(l[s]=E)}return l}function Jr(e,n,l){for(var i=[],s=0;s<e.length;++s){var f=e[s];if(f.ranges)i.push(l?cn.prototype.deepCopy.call(f):f);else{var E=f.changes,D=[];i.push({changes:D});for(var B=0;B<E.length;++B){var O=E[B],U=void 0;if(D.push({from:O.from,to:O.to,text:O.text}),n)for(var V in O)(U=V.match(/^spans_(\d+)$/))&&Ee(n,Number(U[1]))>-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<e.sel.ranges.length;f++)i[f]=Za(e.sel.ranges[f],n[f],null,s);Rt(e,En(e.cm,i,e.sel.primIndex),l)}function es(e,n,l,i){var s=e.sel.ranges.slice(0);s[n]=l,Rt(e,En(e.cm,s,e.sel.primIndex),i)}function Mc(e,n,l,i){Rt(e,cr(n,l),i)}function sh(e,n,l){var i={ranges:n.ranges,update:function(s){this.ranges=[];for(var f=0;f<s.length;f++)this.ranges[f]=new He(Re(e,s[f].anchor),Re(e,s[f].head))},origin:l&&l.origin};return Pe(e,"beforeSelectionChange",e,i),e.cm&&Pe(e.cm,"beforeSelectionChange",e.cm,i),i.ranges!=n.ranges?En(e.cm,i.ranges,i.ranges.length-1):n}function Tc(e,n,l){var i=e.history.done,s=Le(i);s&&s.ranges?(i[i.length-1]=n,Vo(e,n,l)):Rt(e,n,l)}function Rt(e,n,l){Vo(e,n,l),oh(e,e.sel,e.cm?e.cm.curOp.id:NaN,l)}function Vo(e,n,l){($e(e,"beforeSelectionChange")||e.cm&&$e(e.cm,"beforeSelectionChange"))&&(n=sh(e,n,l));var i=l&&l.bias||(he(n.primary().head,e.sel.primary().head)<0?-1:1);Nc(e,Lc(e,n,i,!0)),(!l||l.scroll!==!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&Xr(e.cm)}function Nc(e,n){n.equals(e.sel)||(e.sel=n,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,yt(e.cm)),xt(e,"cursorActivity",e))}function Rc(e){Nc(e,Lc(e,e.sel,null,!1))}function Lc(e,n,l,i){for(var s,f=0;f<n.ranges.length;f++){var E=n.ranges[f],D=n.ranges.length==e.sel.ranges.length&&e.sel.ranges[f],B=Yo(e,E.anchor,D&&D.anchor,l,i),O=E.head==E.anchor?B:Yo(e,E.head,D&&D.head,l,i);(s||B!=E.anchor||O!=E.head)&&(s||(s=n.ranges.slice(0,f)),s[f]=new He(B,O))}return s?En(e.cm,s,n.primIndex):n}function Zr(e,n,l,i,s){var f=Ce(e,n.line);if(f.markedSpans)for(var E=0;E<f.markedSpans.length;++E){var D=f.markedSpans[E],B=D.marker,O="selectLeft"in B?!B.selectLeft:B.inclusiveLeft,U="selectRight"in B?!B.selectRight:B.inclusiveRight;if((D.from==null||(O?D.from<=n.ch:D.from<n.ch))&&(D.to==null||(U?D.to>=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<e.first+e.size-1?J(n.line+1,0):null:new J(n.line,n.ch+l)}function Ic(e){e.setSelection(J(e.firstLine(),0),J(e.lastLine()),Oe)}function Oc(e,n,l){var i={canceled:!1,from:n.from,to:n.to,text:n.text,origin:n.origin,cancel:function(){return i.canceled=!0}};return l&&(i.update=function(s,f,E,D){s&&(i.from=Re(e,s)),f&&(i.to=Re(e,f)),E&&(i.text=E),D!==void 0&&(i.origin=D)}),Pe(e,"beforeChange",e,i),e.cm&&Pe(e.cm,"beforeChange",e.cm,i),i.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:i.from,to:i.to,text:i.text,origin:i.origin}}function ei(e,n,l){if(e.cm){if(!e.cm.curOp)return Ct(e.cm,ei)(e,n,l);if(e.cm.state.suppressEdits)return}if(!($e(e,"beforeChange")||e.cm&&$e(e.cm,"beforeChange"))||(n=Oc(e,n,!0))){var i=ku&&!l&&op(e,n.from,n.to);if(i)for(var s=i.length-1;s>=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<D.length&&(s=D[O],!(l?s.ranges&&!s.equals(e.sel):!s.ranges));O++);if(O!=D.length){for(f.lastOrigin=f.lastSelOrigin=null;;){if(!(s=D.pop()).ranges){if(i)return void D.push(s);break}if(zo(s,B),l&&!s.equals(e.sel))return void Rt(e,s,{clearRedo:!1});E=s}var U=[];zo(E,B),B.push({changes:U,generation:f.generation}),f.generation=s.generation||++f.maxGeneration;for(var V=$e(e,"beforeChange")||e.cm&&$e(e.cm,"beforeChange"),G=function(ie){var de=s.changes[ie];if(de.origin=n,V&&!Oc(e,de,!1))return D.length=0,{};U.push(Ja(e,de));var ge=ie?qa(e,de):Le(D);Hi(e,de,ge,kc(e,de)),!ie&&e.cm&&e.cm.scrollIntoView({from:de.from,to:dr(de)});var be=[];fr(e,function(fe,xe){!xe&&Ee(be,fe.history)==-1&&(zc(fe.history,de),be.push(fe.history)),Hi(fe,de,null,kc(fe,de))})},$=s.changes.length-1;$>=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;i<l.viewTo;i++)sr(e.cm,i,"gutter")}}function Hi(e,n,l,i){if(e.cm&&!e.cm.curOp)return Ct(e.cm,Hi)(e,n,l,i);if(n.to.line<e.first)Pc(e,n.text.length-1-(n.to.line-n.from.line));else if(!(n.from.line>e.lastLine())){if(n.from.line<e.first){var s=n.text.length-1-(e.first-n.from.line);Pc(e,s),n={from:J(e.first,0),to:J(n.to.line+s,n.to.ch),text:[Le(n.text)],origin:n.origin}}var f=e.lastLine();n.to.line>f&&(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){l<e.line?e.line+=i:n<e.line&&(e.line=n,e.ch=0)}function jc(e,n,l,i){for(var s=0;s<e.length;++s){var f=e[s],E=!0;if(f.ranges){f.copied||((f=e[s]=f.deepCopy()).copied=!0);for(var D=0;D<f.ranges.length;D++)Hc(f.ranges[D].anchor,n,l,i),Hc(f.ranges[D].head,n,l,i)}else{for(var B=0;B<f.changes.length;++B){var O=f.changes[B];if(l<O.from.line)O.from=J(O.from.line+i,O.from.ch),O.to=J(O.to.line+i,O.to.ch);else if(n<=O.to.line){E=!1;break}}E||(e.splice(0,s+1),s=0)}}}function zc(e,n){var l=n.from.line,i=n.to.line,s=n.text.length-(i-l)-1;jc(e.done,l,i,s),jc(e.undone,l,i,s)}function ji(e,n,l,i){var s=n,f=n;return typeof n=="number"?f=Ce(e,yu(e,n)):s=F(n),s==null?null:(i(f,s)&&e.cm&&sr(e.cm,s,l),f)}function zi(e){this.lines=e,this.parent=null;for(var n=0,l=0;l<e.length;++l)e[l].parent=this,n+=e[l].height;this.height=n}function Ui(e){this.children=e;for(var n=0,l=0,i=0;i<e.length;++i){var s=e[i];n+=s.chunkSize(),l+=s.height,s.parent=this}this.size=n,this.height=l,this.parent=null}He.prototype.from=function(){return xo(this.anchor,this.head)},He.prototype.to=function(){return zt(this.anchor,this.head)},He.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},zi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,n){for(var l=e,i=e+n;l<i;++l){var s=this.lines[l];this.height-=s.height,cp(s),xt(s,"delete")}this.lines.splice(e,n)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,n,l){this.height+=l,this.lines=this.lines.slice(0,e).concat(n).concat(this.lines.slice(e));for(var i=0;i<n.length;++i)n[i].parent=this},iterN:function(e,n,l){for(var i=e+n;e<i;++e)if(l(this.lines[e]))return!0}},Ui.prototype={chunkSize:function(){return this.size},removeInner:function(e,n){this.size-=n;for(var l=0;l<this.children.length;++l){var i=this.children[l],s=i.chunkSize();if(e<s){var f=Math.min(n,s-e),E=i.height;if(i.removeInner(e,f),this.height-=E-i.height,s==f&&(this.children.splice(l--,1),i.parent=null),(n-=f)==0)break;e=0}else e-=s}if(this.size-n<25&&(this.children.length>1||!(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;n<this.children.length;++n)this.children[n].collapse(e)},insertInner:function(e,n,l){this.size+=n.length,this.height+=l;for(var i=0;i<this.children.length;++i){var s=this.children[i],f=s.chunkSize();if(e<=f){if(s.insertInner(e,n,l),s.lines&&s.lines.length>50){for(var E=s.lines.length%25+25,D=E;D<s.lines.length;){var B=new zi(s.lines.slice(D,D+=25));s.height-=B.height,this.children.splice(++i,0,B),B.parent=this}s.lines=s.lines.slice(0,E),this.maybeSpill()}break}e-=f}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var n=new Ui(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=n.size,e.height-=n.height;var l=Ee(e.parent.children,e);e.parent.children.splice(l+1,0,n)}else{var i=new Ui(e.children);i.parent=e,e.children=[i,n],e=i}n.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,n,l){for(var i=0;i<this.children.length;++i){var s=this.children[i],f=s.chunkSize();if(e<f){var E=Math.min(n,f-e);if(s.iterN(e,E,l))return!0;if((n-=E)==0)break;e=0}else e-=f}}};var Vi=function(e,n,l){if(l)for(var i in l)l.hasOwnProperty(i)&&(this[i]=l[i]);this.doc=e,this.node=n};function Uc(e,n,l){Qn(n)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Va(e,l)}function ch(e,n,l,i){var s=new Vi(e,l,i),f=e.cm;return f&&s.noHScroll&&(f.display.alignWidgets=!0),ji(e,n,"widget",function(E){var D=E.widgets||(E.widgets=[]);if(s.insertAt==null?D.push(s):D.splice(Math.min(D.length,Math.max(0,s.insertAt)),0,s),s.line=E,f&&!ar(e,E)){var B=Qn(E)<e.scrollTop;un(E,E.height+Mi(s)),B&&Va(f,s.height),f.curOp.forceUpdate=!0}return!0}),f&&xt(f,"lineWidgetAdded",f,s,typeof n=="number"?n:F(n)),s}Vi.prototype.clear=function(){var e=this.doc.cm,n=this.line.widgets,l=this.line,i=F(l);if(i!=null&&n){for(var s=0;s<n.length;++s)n[s]==this&&n.splice(s--,1);n.length||(l.widgets=null);var f=Mi(this);un(l,Math.max(0,l.height-f)),e&&(Kt(e,function(){Uc(e,l,-f),sr(e,i,"widget")}),xt(e,"lineWidgetCleared",e,this,i))}},Vi.prototype.changed=function(){var e=this,n=this.height,l=this.doc.cm,i=this.line;this.height=null;var s=Mi(this)-n;!s||(ar(this.doc,i)||un(i,i.height+s),l&&Kt(l,function(){l.curOp.forceUpdate=!0,Uc(l,i,s),xt(l,"lineWidgetChanged",l,e,F(i))}))},Xt(Vi);var Vc=0,pr=function(e,n){this.lines=[],this.type=n,this.doc=e,this.id=++Vc};function ni(e,n,l,i,s){if(i&&i.shared)return dh(e,n,l,i,s);if(e.cm&&!e.cm.curOp)return Ct(e.cm,ni)(e,n,l,i,s);var f=new pr(e,s),E=he(n,l);if(i&&oe(i,f,!1),E>0||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;f<this.lines.length;++f){var E=this.lines[f],D=_i(E.markedSpans,this);e&&!this.collapsed?sr(e,F(E),"text"):e&&(D.to!=null&&(s=F(E)),D.from!=null&&(i=F(E))),E.markedSpans=tp(E.markedSpans,D),D.from==null&&this.collapsed&&!ar(this.doc,E)&&e&&un(E,Gr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var B=0;B<this.lines.length;++B){var O=xn(this.lines[B]),U=Do(O);U>e.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<this.lines.length;++s){var f=this.lines[s],E=_i(f.markedSpans,this);if(E.from!=null&&(l=J(n?f:F(f),E.from),e==-1))return l;if(E.to!=null&&(i=J(n?f:F(f),E.to),e==1))return i}return l&&{from:l,to:i}},pr.prototype.changed=function(){var e=this,n=this.find(-1,!0),l=this,i=this.doc.cm;!n||!i||Kt(i,function(){var s=n.line,f=F(n.line),E=Ta(i,f);if(E&&(qu(E),i.curOp.selectionChanged=i.curOp.forceUpdate=!0),i.curOp.updateMaxLine=!0,!ar(l.doc,s)&&l.height!=null){var D=l.height;l.height=null;var B=Mi(l)-D;B&&un(s,s.height+B)}xt(i,"markerChanged",i,e)})},pr.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(!n.maybeHiddenMarkers||Ee(n.maybeHiddenMarkers,this)==-1)&&(n.maybeUnhiddenMarkers||(n.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},pr.prototype.detachLine=function(e){if(this.lines.splice(Ee(this.lines,e),1),!this.lines.length&&this.doc.cm){var n=this.doc.cm.curOp;(n.maybeHiddenMarkers||(n.maybeHiddenMarkers=[])).push(this)}},Xt(pr);var Yi=function(e,n){this.markers=e,this.primary=n;for(var l=0;l<e.length;++l)e[l].parent=this};function dh(e,n,l,i,s){(i=oe(i)).shared=!1;var f=[ni(e,n,l,i,s)],E=f[0],D=i.widgetNode;return fr(e,function(B){D&&(i.widgetNode=D.cloneNode(!0)),f.push(ni(B,Re(B,n),Re(B,l),i,s));for(var O=0;O<B.linked.length;++O)if(B.linked[O].isParent)return;E=Le(f)}),new Yi(f,E)}function Yc(e){return e.findMarks(J(e.first,0),e.clipPos(J(e.lastLine())),function(n){return n.parent})}function fh(e,n){for(var l=0;l<n.length;l++){var i=n[l],s=i.find(),f=e.clipPos(s.from),E=e.clipPos(s.to);if(he(f,E)){var D=ni(e,f,E,i.primary,i.primary.type);i.markers.push(D),D.parent=i}}}function ph(e){for(var n=function(i){var s=e[i],f=[s.primary.doc];fr(s.primary.doc,function(B){return f.push(B)});for(var E=0;E<s.markers.length;E++){var D=s.markers[E];Ee(f,D.doc)==-1&&(D.parent=null,s.markers.splice(E--,1))}},l=0;l<e.length;l++)n(l)}Yi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();xt(this,"clear")}},Yi.prototype.find=function(e,n){return this.primary.find(e,n)},Xt(Yi);var hh=0,Vt=function(e,n,l,i,s){if(!(this instanceof Vt))return new Vt(e,n,l,i,s);l==null&&(l=0),Ui.call(this,[new zi([new Yr("",null)])]),this.first=l,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=l;var f=J(l,0);this.sel=cr(f),this.history=new jo(null),this.id=++hh,this.modeOption=n,this.lineSep=i,this.direction=s=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),Ka(this,{from:f,to:f,text:e}),Rt(this,cr(f),Oe)};Vt.prototype=ir(Ui.prototype,{constructor:Vt,iter:function(e,n,l){l?this.iterN(e-this.first,n-e,l):this.iterN(this.first,this.first+this.size,e)},insert:function(e,n){for(var l=0,i=0;i<n.length;++i)l+=n[i].height;this.insertInner(e-this.first,n,l)},remove:function(e,n){this.removeInner(e-this.first,n)},getValue:function(e){var n=Ei(this,this.first,this.first+this.size);return e===!1?n:n.join(e||this.lineSeparator())},setValue:Et(function(e){var n=J(this.first,0),l=this.first+this.size-1;ei(this,{from:n,to:J(l,Ce(this,l).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Ri(this.cm,0,0),Rt(this,cr(n),Oe)}),replaceRange:function(e,n,l,i){ti(this,e,n=Re(this,n),l=l?Re(this,l):n,i)},getRange:function(e,n,l){var i=Yn(this,Re(this,e),Re(this,n));return l===!1?i:l===""?i.join(""):i.join(l||this.lineSeparator())},getLine:function(e){var n=this.getLineHandle(e);return n&&n.text},getLineHandle:function(e){if(ne(this,e))return Ce(this,e)},getLineNumber:function(e){return F(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=Ce(this,e)),xn(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Re(this,e)},getCursor:function(e){var n=this.sel.primary();return e==null||e=="head"?n.head:e=="anchor"?n.anchor:e=="end"||e=="to"||e===!1?n.to():n.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Et(function(e,n,l){Mc(this,Re(this,typeof e=="number"?J(e,n||0):e),null,l)}),setSelection:Et(function(e,n,l){Mc(this,Re(this,e),Re(this,n||e),l)}),extendSelection:Et(function(e,n,l){Uo(this,Re(this,e),n&&Re(this,n),l)}),extendSelections:Et(function(e,n){Dc(this,Au(this,e),n)}),extendSelectionsBy:Et(function(e,n){Dc(this,Au(this,Tt(this.sel.ranges,e)),n)}),setSelections:Et(function(e,n,l){if(e.length){for(var i=[],s=0;s<e.length;s++)i[s]=new He(Re(this,e[s].anchor),Re(this,e[s].head||e[s].anchor));n==null&&(n=Math.min(e.length-1,this.sel.primIndex)),Rt(this,En(this.cm,i,n),l)}}),addSelection:Et(function(e,n,l){var i=this.sel.ranges.slice(0);i.push(new He(Re(this,e),Re(this,n||e))),Rt(this,En(this.cm,i,i.length-1),l)}),getSelection:function(e){for(var n,l=this.sel.ranges,i=0;i<l.length;i++){var s=Yn(this,l[i].from(),l[i].to());n=n?n.concat(s):s}return e===!1?n:n.join(e||this.lineSeparator())},getSelections:function(e){for(var n=[],l=this.sel.ranges,i=0;i<l.length;i++){var s=Yn(this,l[i].from(),l[i].to());e!==!1&&(s=s.join(e||this.lineSeparator())),n[i]=s}return n},replaceSelection:function(e,n,l){for(var i=[],s=0;s<this.sel.ranges.length;s++)i[s]=e;this.replaceSelections(i,n,l||"+input")},replaceSelections:Et(function(e,n,l){for(var i=[],s=this.sel,f=0;f<s.ranges.length;f++){var E=s.ranges[f];i[f]={from:E.from(),to:E.to(),text:this.splitLines(e[f]),origin:l}}for(var D=n&&n!="end"&&th(this,i,n),B=i.length-1;B>=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.done.length;i++)e.done[i].ranges||++n;for(var s=0;s<e.undone.length;s++)e.undone[s].ranges||++l;return{undo:n,redo:l}},clearHistory:function(){var e=this;this.history=new jo(this.history),fr(this,function(n){return n.history=e.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Jr(this.history.done),undone:Jr(this.history.undone)}},setHistory:function(e){var n=this.history=new jo(this.history);n.done=Jr(e.done.slice(0),null,!0),n.undone=Jr(e.undone.slice(0),null,!0)},setGutterMarker:Et(function(e,n,l){return ji(this,e,"gutter",function(i){var s=i.gutterMarkers||(i.gutterMarkers={});return s[n]=l,!l&&an(s)&&(i.gutterMarkers=null),!0})}),clearGutter:Et(function(e){var n=this;this.iter(function(l){l.gutterMarkers&&l.gutterMarkers[e]&&ji(n,l,"gutter",function(){return l.gutterMarkers[e]=null,an(l.gutterMarkers)&&(l.gutterMarkers=null),!0})})}),lineInfo:function(e){var n;if(typeof e=="number"){if(!(ne(this,e)&&(n=e,e=Ce(this,e))))return null}else if((n=F(e))==null)return null;return{line:n,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:Et(function(e,n,l){return ji(this,e,n=="gutter"?"gutter":"class",function(i){var s=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass";if(i[s]){if(T(l).test(i[s]))return!1;i[s]+=" "+l}else i[s]=l;return!0})}),removeLineClass:Et(function(e,n,l){return ji(this,e,n=="gutter"?"gutter":"class",function(i){var s=n=="text"?"textClass":n=="background"?"bgClass":n=="gutter"?"gutterClass":"wrapClass",f=i[s];if(!f)return!1;if(l==null)i[s]=null;else{var E=f.match(T(l));if(!E)return!1;var D=E.index+E[0].length;i[s]=f.slice(0,E.index)+(E.index&&D!=f.length?" ":"")+f.slice(D)||null}return!0})}),addLineWidget:Et(function(e,n,l){return ch(this,e,n,l)}),removeLineWidget:function(e){e.clear()},markText:function(e,n,l){return ni(this,Re(this,e),Re(this,n),l,l&&l.type||"range")},setBookmark:function(e,n){var l={replacedWith:n&&(n.nodeType==null?n.widget:n),insertLeft:n&&n.insertLeft,clearWhenEmpty:!1,shared:n&&n.shared,handleMouseEvents:n&&n.handleMouseEvents};return ni(this,e=Re(this,e),e,l,"bookmark")},findMarksAt:function(e){var n=[],l=Ce(this,(e=Re(this,e)).line).markedSpans;if(l)for(var i=0;i<l.length;++i){var s=l[i];(s.from==null||s.from<=e.ch)&&(s.to==null||s.to>=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<E.length;D++){var B=E[D];!(B.to!=null&&s==e.line&&e.ch>=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;i<l.length;++i)l[i].from!=null&&e.push(l[i].marker)}),e},posFromIndex:function(e){var n,l=this.first,i=this.lineSeparator().length;return this.iter(function(s){var f=s.text.length+i;if(f>e)return n=e,!0;e-=f,++l}),Re(this,J(l,n))},indexFromPos:function(e){var n=(e=Re(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var l=this.lineSeparator().length;return this.iter(this.first,e.line,function(i){n+=i.text.length+l}),n},copy:function(e){var n=new Vt(Ei(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return n.scrollTop=this.scrollTop,n.scrollLeft=this.scrollLeft,n.sel=this.sel,n.extend=!1,e&&(n.history.undoDepth=this.history.undoDepth,n.setHistory(this.getHistory())),n},linkedDoc:function(e){e||(e={});var n=this.first,l=this.first+this.size;e.from!=null&&e.from>n&&(n=e.from),e.to!=null&&e.to<l&&(l=e.to);var i=new Vt(Ei(this,n,l),e.mode||this.modeOption,n,this.lineSep,this.direction);return e.sharedHist&&(i.history=this.history),(this.linked||(this.linked=[])).push({doc:i,sharedHist:e.sharedHist}),i.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],fh(i,Yc(this)),i},unlinkDoc:function(e){if(e instanceof et&&(e=e.doc),this.linked){for(var n=0;n<this.linked.length;++n)if(this.linked[n].doc==e){this.linked.splice(n,1),e.unlinkDoc(this),ph(Yc(this));break}}if(e.history==this.history){var l=[e.id];fr(e,function(i){return l.push(i.id)},!0),e.history=new jo(null),e.history.done=Jr(this.history.done,l),e.history.undone=Jr(this.history.undone,l)}},iterLinkedDocs:function(e){fr(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):hn(e)},lineSeparator:function(){return this.lineSep||`
  14. `},setDirection:Et(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(n){return n.order=null}),this.cm&&nh(this.cm))})}),Vt.prototype.eachLine=Vt.prototype.iter;var Wc=0;function mh(e){var n=this;if(Qc(n),!Ue(n,e)&&!Gn(n.display,e)){Ke(e),c&&(Wc=+new Date);var l=wr(n,e,!0),i=e.dataTransfer.files;if(l&&!n.isReadOnly())if(i&&i.length&&window.FileReader&&window.File)for(var s=i.length,f=Array(s),E=0,D=function(){++E==s&&Ct(n,function(){var $={from:l=Re(n.doc,l),to:l,text:n.doc.splitLines(f.filter(function(ee){return ee!=null}).join(n.doc.lineSeparator())),origin:"paste"};ei(n.doc,$),Tc(n.doc,cr(Re(n.doc,l),Re(n.doc,dr($))))})()},B=function($,ee){if(n.options.allowDropFileTypes&&Ee(n.options.allowDropFileTypes,$.type)==-1)D();else{var ie=new FileReader;ie.onerror=function(){return D()},ie.onload=function(){var de=ie.result;/[\x00-\x08\x0e-\x1f]{2}/.test(de)||(f[ee]=de),D()},ie.readAsText($)}},O=0;O<i.length;O++)B(i[O],O);else{if(n.state.draggingText&&n.doc.sel.contains(l)>-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<V.length;++G)ti(n.doc,"",V[G].anchor,V[G].head,"drag");n.replaceSelection(U,"around","paste"),n.display.input.focus()}}catch{}}}}function vh(e,n){if(c&&(!e.state.draggingText||+new Date-Wc<100))Nt(n);else if(!Ue(e,n)&&!Gn(e.display,n)&&(n.dataTransfer.setData("Text",e.getSelection()),n.dataTransfer.effectAllowed="copyMove",n.dataTransfer.setDragImage&&!w)){var l=z("img",null,null,"position: fixed; left: 0; top: 0;");l.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",v&&(l.width=l.height=1,e.display.wrapper.appendChild(l),l._top=l.offsetTop),n.dataTransfer.setDragImage(l,0,0),v&&l.parentNode.removeChild(l)}}function gh(e,n){var l=wr(e,n);if(l){var i=document.createDocumentFragment();Pa(e,l,i),e.display.dragCursor||(e.display.dragCursor=z("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),j(e.display.dragCursor,i)}}function Qc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Gc(e){if(document.getElementsByClassName){for(var n=document.getElementsByClassName("CodeMirror"),l=[],i=0;i<n.length;i++){var s=n[i].CodeMirror;s&&l.push(s)}l.length&&l[0].operation(function(){for(var f=0;f<l.length;f++)e(l[f])})}}var $c=!1;function yh(){$c||(Ah(),$c=!0)}function Ah(){var e;ae(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Gc(bh)},100))}),ae(window,"blur",function(){return Gc(qr)})}function bh(e){var n=e.display;n.cachedCharWidth=n.cachedTextHeight=n.cachedPaddingH=null,n.scrollbarsClipped=!1,e.setSize()}for(var hr={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Wi=0;Wi<10;Wi++)hr[Wi+48]=hr[Wi+96]=String(Wi);for(var Qo=65;Qo<=90;Qo++)hr[Qo]=String.fromCharCode(Qo);for(var Qi=1;Qi<=12;Qi++)hr[Qi+111]=hr[Qi+63235]="F"+Qi;var qn={};function wh(e){var n=e.split(/-(?!$)/);e=n[n.length-1];for(var l,i,s,f,E=0;E<n.length-1;E++){var D=n[E];if(/^(cmd|meta|m)$/i.test(D))f=!0;else if(/^a(lt)?$/i.test(D))l=!0;else if(/^(c|ctrl|control)$/i.test(D))i=!0;else{if(!/^s(hift)?$/i.test(D))throw new Error("Unrecognized modifier name: "+D);s=!0}}return l&&(e="Alt-"+e),i&&(e="Ctrl-"+e),f&&(e="Cmd-"+e),s&&(e="Shift-"+e),e}function xh(e){var n={};for(var l in e)if(e.hasOwnProperty(l)){var i=e[l];if(/^(name|fallthrough|(de|at)tach)$/.test(l))continue;if(i=="..."){delete e[l];continue}for(var s=Tt(l.split(" "),wh),f=0;f<s.length;f++){var E=void 0,D=void 0;f==s.length-1?(D=s.join(" "),E=i):(D=s.slice(0,f+1).join(" "),E="...");var B=n[D];if(B){if(B!=E)throw new Error("Inconsistent bindings for "+D)}else n[D]=E}delete e[l]}for(var O in n)e[O]=n[O];return e}function ri(e,n,l,i){var s=(n=Go(n)).call?n.call(e,i):n[e];if(s===!1)return"nothing";if(s==="...")return"multi";if(s!=null&&l(s))return"handled";if(n.fallthrough){if(Object.prototype.toString.call(n.fallthrough)!="[object Array]")return ri(e,n.fallthrough,l,i);for(var f=0;f<n.fallthrough.length;f++){var E=ri(e,n.fallthrough[f],l,i);if(E)return E}}}function qc(e){var n=typeof e=="string"?e:hr[e.keyCode];return n=="Ctrl"||n=="Alt"||n=="Shift"||n=="Mod"}function Xc(e,n,l){var i=e;return n.altKey&&i!="Alt"&&(e="Alt-"+e),(N?n.metaKey:n.ctrlKey)&&i!="Ctrl"&&(e="Ctrl-"+e),(N?n.ctrlKey:n.metaKey)&&i!="Mod"&&(e="Cmd-"+e),!l&&n.shiftKey&&i!="Shift"&&(e="Shift-"+e),e}function Kc(e,n){if(v&&e.keyCode==34&&e.char)return!1;var l=hr[e.keyCode];return l!=null&&!e.altGraphKey&&(e.keyCode==3&&e.code&&(l=e.code),Xc(l,e,n))}function Go(e){return typeof e=="string"?qn[e]:e}function ii(e,n){for(var l=e.doc.sel.ranges,i=[],s=0;s<l.length;s++){for(var f=n(l[s]);i.length&&he(f.from,Le(i).to)<=0;){var E=i.pop();if(he(E.from,f.from)<0){f.from=E.from;break}}i.push(f)}Kt(e,function(){for(var D=i.length-1;D>=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<l.ch))return ns(n,l,i);var D,B=function(ge,be){return ts(n,ge instanceof J?ge.ch:ge,be)},O=function(ge){return e.options.lineWrapping?(D=D||Qr(e,n),nc(e,n,D,ge)):{begin:0,end:n.text.length}},U=O(l.sticky=="before"?B(l,-1):l.ch);if(e.doc.direction=="rtl"||E.level==1){var V=E.level==1==i<0,G=B(l,V?1:-1);if(G!=null&&(V?G<=E.to&&G<=U.end:G>=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&&ge<s.length;ge+=be){var we=s[ge],Se=be>0==(we.level!=1),qe=Se?fe.begin:B(fe.end,-1);if(we.from<=qe&&qe<we.to||(qe=Se?we.from:B(we.to,-1),fe.begin<=qe&&qe<fe.end))return xe(qe,Se)}},ie=ee(f+i,i,U);if(ie)return ie;var de=i>0?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.line<e.lastLine()?{from:n.head,to:J(n.head.line+1,0)}:{from:n.head,to:J(n.head.line,l)}}return{from:n.from(),to:n.to()}})},deleteLine:function(e){return ii(e,function(n){return{from:J(n.from().line,0),to:Re(e.doc,J(n.to().line+1,0))}})},delLineLeft:function(e){return ii(e,function(n){return{from:J(n.from().line,0),to:n.from()}})},delWrappedLineLeft:function(e){return ii(e,function(n){var l=e.charCoords(n.head,"div").top+5;return{from:e.coordsChar({left:0,top:l},"div"),to:n.from()}})},delWrappedLineRight:function(e){return ii(e,function(n){var l=e.charCoords(n.head,"div").top+5,i=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div");return{from:n.from(),to:i}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(J(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(J(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(n){return Jc(e,n.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(n){return Zc(e,n.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(n){return Eh(e,n.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(n){var l=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:l},"div")},St)},goLineLeft:function(e){return e.extendSelectionsBy(function(n){var l=e.cursorCoords(n.head,"div").top+5;return e.coordsChar({left:0,top:l},"div")},St)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(n){var l=e.cursorCoords(n.head,"div").top+5,i=e.coordsChar({left:0,top:l},"div");return i.ch<e.getLine(i.line).search(/\S/)?Zc(e,n.head):i},St)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection(" ")},insertSoftTab:function(e){for(var n=[],l=e.listSelections(),i=e.options.tabSize,s=0;s<l.length;s++){var f=l[s].from(),E=Z(e.getLine(f.line),f.ch,i);n.push(rn(i-E%i))}e.replaceSelections(n)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return Kt(e,function(){for(var n=e.listSelections(),l=[],i=0;i<n.length;i++)if(n[i].empty()){var s=n[i].head,f=Ce(e.doc,s.line).text;if(f){if(s.ch==f.length&&(s=new J(s.line,s.ch-1)),s.ch>0)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<n.length;i++)e.indentLine(n[i].from().line,null,!0);Xr(e)})},openLine:function(e){return e.replaceSelection(`
  15. `,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function Jc(e,n){var l=Ce(e.doc,n),i=xn(l);return i!=l&&(n=F(i)),rs(!0,e,i,n,1)}function Eh(e,n){var l=Ce(e.doc,n),i=ap(l);return i!=l&&(n=F(i)),rs(!0,e,l,n,-1)}function Zc(e,n){var l=Jc(e,n.line),i=Ce(e.doc,l.line),s=le(i,e.doc.direction);if(!s||s[0].level==0){var f=Math.max(l.ch,i.text.search(/\S/)),E=n.line==l.line&&n.ch<=f&&n.ch;return J(l.line,E?0:f,l.sticky)}return l}function $o(e,n,l){if(typeof n=="string"&&!(n=Gi[n]))return!1;e.display.input.ensurePolled();var i=e.display.shift,s=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),l&&(e.display.shift=!1),s=n(e)!=Ie}finally{e.display.shift=i,e.state.suppressEdits=!1}return s}function Sh(e,n,l){for(var i=0;i<e.state.keyMaps.length;i++){var s=ri(n,e.state.keyMaps[i],l,e);if(s)return s}return e.options.extraKeys&&ri(n,e.options.extraKeys,l,e)||ri(n,e.options.keyMap,l,e)}var _h=new se;function $i(e,n,l,i){var s=e.state.keySeq;if(s){if(qc(n))return"handled";if(/\'$/.test(n)?e.state.keySeq=null:_h.set(50,function(){e.state.keySeq==s&&(e.state.keySeq=null,e.display.input.reset())}),ed(e,s+" "+n,l,i))return!0}return ed(e,n,l,i)}function ed(e,n,l,i){var s=Sh(e,n,i);return s=="multi"&&(e.state.keySeq=n),s=="handled"&&xt(e,"keyHandled",e,n,l),(s=="handled"||s=="multi")&&(Ke(l),Ha(e)),!!s}function td(e,n){var l=Kc(n,!0);return!!l&&(n.shiftKey&&!e.state.keySeq?$i(e,"Shift-"+l,n,function(i){return $o(e,i,!0)})||$i(e,l,n,function(i){if(typeof i=="string"?/^go[A-Z]/.test(i):i.motion)return $o(e,i)}):$i(e,l,n,function(i){return $o(e,i)}))}function kh(e,n,l){return $i(e,"'"+l+"'",n,function(i){return $o(e,i,!0)})}var is=null;function nd(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField()||(n.curOp.focus=W(pe(n)),Ue(n,e)))){c&&p<11&&e.keyCode==27&&(e.returnValue=!1);var l=e.keyCode;n.display.shift=l==16||e.shiftKey;var i=td(n,e);v&&(is=i?l:null,!i&&l==88&&!wo&&(A?e.metaKey:e.ctrlKey)&&n.replaceSelection("",null,"cut")),t&&!A&&!i&&l==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),l==18&&!/\bCodeMirror-crosshair\b/.test(n.display.lineDiv.className)&&Dh(n)}}function Dh(e){var n=e.display.lineDiv;function l(i){(i.keyCode==18||!i.altKey)&&(H(n,"CodeMirror-crosshair"),Me(document,"keyup",l),Me(document,"mouseover",l))}K(n,"CodeMirror-crosshair"),ae(document,"keyup",l),ae(document,"mouseover",l)}function rd(e){e.keyCode==16&&(this.doc.sel.shift=!1),Ue(this,e)}function id(e){var n=this;if(!(e.target&&e.target!=n.display.input.getField()||Gn(n.display,e)||Ue(n,e)||e.ctrlKey&&!e.altKey||A&&e.metaKey)){var l=e.keyCode,i=e.charCode;if(v&&l==is)return is=null,void Ke(e);if(!v||e.which&&!(e.which<10)||!td(n,e)){var s=String.fromCharCode(i??l);s!="\b"&&(kh(n,e,s)||n.display.input.onKeyPress(e))}}}var qi,Xi,Mh=400,os=function(e,n,l){this.time=e,this.pos=n,this.button=l};function Th(e,n){var l=+new Date;return Xi&&Xi.compare(l,e,n)?(qi=Xi=null,"triple"):qi&&qi.compare(l,e,n)?(Xi=new os(l,e,n),qi=null,"double"):(qi=new os(l,e,n),Xi=null,"single")}function od(e){var n=this,l=n.display;if(!(Ue(n,e)||l.activeTouch&&l.input.supportsTouch())){if(l.input.ensurePolled(),l.shift=e.shiftKey,Gn(l,e))return void(m||(l.scroller.draggable=!1,setTimeout(function(){return l.scroller.draggable=!0},100)));if(!ls(n,e)){var i=wr(n,e),s=yo(e),f=i?Th(i,s):"single";ue(n).focus(),s==1&&n.state.selectingText&&n.state.selectingText(e),(!i||!Nh(n,s,i,f,e))&&(s==1?i?Lh(n,i,f,e):Fr(e)==l.scroller&&Ke(e):s==2?(i&&Uo(n.doc,i),setTimeout(function(){return l.input.focus()},20)):s==3&&(R?n.display.input.onContextMenu(e):ja(n)))}}}function Nh(e,n,l,i,s){var f="Click";return i=="double"?f="Double"+f:i=="triple"&&(f="Triple"+f),$i(e,Xc(f=(n==1?"Left":n==2?"Middle":"Right")+f,s),s,function(E){if(typeof E=="string"&&(E=Gi[E]),!E)return!1;var D=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),D=E(e,l)!=Ie}finally{e.state.suppressEdits=!1}return D})}function Rh(e,n,l){var i=e.getOption("configureMouse"),s=i?i(e,n,l):{};if(s.unit==null){var f=S?l.shiftKey&&l.metaKey:l.altKey;s.unit=f?"rectangle":n=="single"?"char":n=="double"?"word":"line"}return(s.extend==null||e.doc.extend)&&(s.extend=e.doc.extend||l.shiftKey),s.addNew==null&&(s.addNew=A?l.metaKey:l.ctrlKey),s.moveOnDrag==null&&(s.moveOnDrag=!(A?l.altKey:l.ctrlKey)),s}function Lh(e,n,l,i){c?setTimeout(te(lc,e),0):e.curOp.focus=W(pe(e));var s,f=Rh(e,l,i),E=e.doc.sel;e.options.dragDrop&&Ao&&!e.isReadOnly()&&l=="single"&&(s=E.contains(n))>-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<Se.from)&&setTimeout(Ct(e,function(){ee==xe&&ie(fe)}),150)}else{var qe=fe.clientY<$.top?-20:fe.clientY>$.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<e.display.gutterSpecs.length;++B){var O=E.gutters.childNodes[B];if(O&&O.getBoundingClientRect().right>=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;D<as.length;++D)as[D](this);_r(this),m&&n.lineWrapping&&getComputedStyle(f.lineDiv).textRendering=="optimizelegibility"&&(f.lineDiv.style.textRendering="auto")}function zh(e){var n=e.display;ae(n.scroller,"mousedown",Ct(e,od)),ae(n.scroller,"dblclick",c&&p<11?Ct(e,function(B){if(!Ue(e,B)){var O=wr(e,B);if(O&&!ls(e,B)&&!Gn(e.display,B)){Ke(B);var U=e.findWordAt(O);Uo(e.doc,U.anchor,U.head)}}}):function(B){return Ue(e,B)||Ke(B)}),ae(n.scroller,"contextmenu",function(B){return sd(e,B)}),ae(n.input.getField(),"contextmenu",function(B){n.scroller.contains(B.target)||sd(e,B)});var l,i={end:0};function s(){n.activeTouch&&(l=setTimeout(function(){return n.activeTouch=null},1e3),(i=n.activeTouch).end=+new Date)}function f(B){if(B.touches.length!=1)return!1;var O=B.touches[0];return O.radiusX<=1&&O.radiusY<=1}function E(B,O){if(O.left==null)return!0;var U=O.left-B.left,V=O.top-B.top;return U*U+V*V>400}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(G<O&&(V+=rn(O-G)),V!=U)return ti(f,V,J(n,0),J(n,U.length),"+input"),D.stateAfter=null,!0;for(var ee=0;ee<f.sel.ranges.length;ee++){var ie=f.sel.ranges[ee];if(ie.head.line==n&&ie.head.ch<U.length){var de=J(n,U.length);es(f,ee,new He(de,de));break}}}et.defineInitHook=function(e){return as.push(e)};var Sn=null;function Xo(e){Sn=e}function ss(e,n,l,i,s){var f=e.doc;e.display.shift=!1,i||(i=f.sel);var E=+new Date-200,D=s=="paste"||e.state.pasteIncoming>E,B=hn(n),O=null;if(D&&i.ranges.length>1)if(Sn&&Sn.text.join(`
  16. `)==n){if(i.ranges.length%Sn.text.length==0){O=[];for(var U=0;U<Sn.text.length;U++)O.push(f.splitLines(Sn.text[U]))}}else B.length==i.ranges.length&&e.options.pasteLinesPerSelection&&(O=Tt(B,function(ge){return[ge]}));for(var V=e.curOp.updateInput,G=i.ranges.length-1;G>=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(`
  17. `)==B.join(`
  18. `)&&(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<f.electricChars.length;D++)if(n.indexOf(f.electricChars.charAt(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;i<e.doc.sel.ranges.length;i++){var s=e.doc.sel.ranges[i].head.line,f={anchor:J(s,0),head:J(s+1,0)};l.push(f),n.push(e.getRange(f.anchor,f.head))}return{text:n,ranges:l}}function hd(e,n,l,i){e.setAttribute("autocorrect",l?"":"off"),e.setAttribute("autocapitalize",i?"":"off"),e.setAttribute("spellcheck",!!n)}function md(){var e=z("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),n=z("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return m?e.style.width="1000px":e.setAttribute("wrap","off"),g&&(e.style.border="1px solid black"),hd(e),n}function Uh(e){var n=e.optionHandlers,l=e.helpers={};e.prototype={constructor:e,focus:function(){ue(this).focus(),this.display.input.focus()},setOption:function(i,s){var f=this.options,E=f[i];f[i]==s&&i!="mode"||(f[i]=s,n.hasOwnProperty(i)&&Ct(this,n[i])(this,s,E),Pe(this,"optionChange",this,i))},getOption:function(i){return this.options[i]},getDoc:function(){return this.doc},addKeyMap:function(i,s){this.state.keyMaps[s?"push":"unshift"](Go(i))},removeKeyMap:function(i){for(var s=this.state.keyMaps,f=0;f<s.length;++f)if(s[f]==i||s[f].name==i)return s.splice(f,1),!0},addOverlay:It(function(i,s){var f=i.token?i:e.getMode(this.options,i);if(f.startState)throw new Error("Overlays may not be stateful.");gn(this.state.overlays,{mode:f,modeSpec:i,opaque:s&&s.opaque,priority:s&&s.priority||0},function(E){return E.priority}),this.state.modeGen++,Ut(this)}),removeOverlay:It(function(i){for(var s=this.state.overlays,f=0;f<s.length;++f){var E=s[f].modeSpec;if(E==i||typeof i=="string"&&E.name==i)return s.splice(f,1),this.state.modeGen++,void Ut(this)}}),indentLine:It(function(i,s,f){typeof s!="string"&&typeof s!="number"&&(s=s==null?this.options.smartIndent?"smart":"prev":s?"add":"subtract"),ne(this.doc,i)&&Ki(this,i,s,f)}),indentSelection:It(function(i){for(var s=this.doc.sel.ranges,f=-1,E=0;E<s.length;E++){var D=s[E];if(D.empty())D.head.line>f&&(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;V<f;++V)Ki(this,V,i);var G=this.doc.sel.ranges;B.ch==0&&s.length==G.length&&G[E].from().ch>0&&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)){s=f[2*O+2];break}E=O+1}}var U=s?s.indexOf("overlay "):-1;return U<0?s:U==0?null:s.slice(0,U-1)},getModeAt:function(i){var s=this.doc.mode;return s.innerMode?e.innerMode(s,this.getTokenAt(i).state).mode:s},getHelper:function(i,s){return this.getHelpers(i,s)[0]},getHelpers:function(i,s){var f=[];if(!l.hasOwnProperty(s))return f;var E=l[s],D=this.getModeAt(i);if(typeof D[s]=="string")E[D[s]]&&f.push(E[D[s]]);else if(D[s])for(var B=0;B<D[s].length;B++){var O=E[D[s][B]];O&&f.push(O)}else D.helperType&&E[D.helperType]?f.push(E[D.helperType]):E[D.name]&&f.push(E[D.name]);for(var U=0;U<E._global.length;U++){var V=E._global[U];V.pred(D,this)&&Ee(f,V.val)==-1&&f.push(V.val)}return f},getStateAfter:function(i,s){var f=this.doc;return Si(this,(i=yu(f,i??f.first+f.size-1))+1,s).state},cursorCoords:function(i,s){var f=this.doc.sel.primary();return Cn(this,i==null?f.head:typeof i=="object"?Re(this.doc,i):i?f.from():f.to(),s||"page")},charCoords:function(i,s){return Ro(this,Re(this.doc,i),s||"page")},coordsChar:function(i,s){return La(this,(i=Zu(this,i,s||"page")).left,i.top)},lineAtHeight:function(i,s){return i=Zu(this,{top:i,left:0},s||"page").top,Y(this.doc,i+this.display.viewOffset)},heightAtLine:function(i,s,f){var E,D=!1;if(typeof i=="number"){var B=this.doc.first+this.doc.size-1;i<this.doc.first?i=this.doc.first:i>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;O<s&&!(B=us(this.doc,B,D,f,E)).hitSide;++O);return B},moveH:It(function(i,s){var f=this;this.extendSelectionsBy(function(E){return f.display.shift||f.doc.extend||E.empty()?us(f.doc,E.head,i,s,f.options.rtlMoveVisually):i<0?E.from():E.to()},St)}),deleteH:It(function(i,s){var f=this.doc.sel,E=this.doc;f.somethingSelected()?E.replaceSelection("",null,"+delete"):ii(this,function(D){var B=us(E,D.head,i,s,!1);return i<0?{from:B,to:D.head}:{from:D.head,to:B}})}),findPosV:function(i,s,f,E){var D=1,B=E;s<0&&(D=-1,s=-s);for(var O=Re(this.doc,i),U=0;U<s;++U){var V=Cn(this,O,"div");if(B==null?B=V.left:V.left=B,(O=vd(this,V,D,f)).hitSide)break}return O},moveV:It(function(i,s){var f=this,E=this.doc,D=[],B=!this.display.shift&&!E.extend&&E.sel.somethingSelected();if(E.extendSelectionsBy(function(U){if(B)return i<0?U.from():U.to();var V=Cn(f,U.head,"div");U.goalColumn!=null&&(V.left=U.goalColumn),D.push(V.left);var G=vd(f,V,i,s);return s=="page"&&U==E.sel.primary()&&Va(f,Ro(f,G,"div").top-V.top),G},St),D.length)for(var O=0;O<E.sel.ranges.length;O++)E.sel.ranges[O].goalColumn=D[O]}),findWordAt:function(i){var s=Ce(this.doc,i.line).text,f=i.ch,E=i.ch;if(s){var D=this.getHelper(i,"wordChars");i.sticky!="before"&&E!=s.length||!f?++E:--f;for(var B=s.charAt(f),O=ln(B,D)?function(U){return ln(U,D)}:/\s/.test(B)?function(U){return/\s/.test(U)}:function(U){return!/\s/.test(U)&&!ln(U)};f>0&&O(s.charAt(f-1));)--f;for(;E<s.length&&O(s.charAt(E));)++E}return new He(J(i.line,f),J(i.line,E))},toggleOverwrite:function(i){i!=null&&i==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?K(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),Pe(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==W(pe(this))},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:It(function(i,s){Ri(this,i,s)}),getScrollInfo:function(){var i=this.display.scroller;return{left:i.scrollLeft,top:i.scrollTop,height:i.scrollHeight-On(this)-this.display.barHeight,width:i.scrollWidth-On(this)-this.display.barWidth,clientHeight:Ma(this),clientWidth:Ar(this)}},scrollIntoView:It(function(i,s){i==null?(i={from:this.doc.sel.primary().head,to:null},s==null&&(s=this.options.cursorScrollMargin)):typeof i=="number"?i={from:J(i,0),to:null}:i.from==null&&(i={from:i,to:null}),i.to||(i.to=i.from),i.margin=s||0,i.from.line!=null?jp(this,i):sc(this,i.from,i.to,i.margin)}),setSize:It(function(i,s){var f=this,E=function(B){return typeof B=="number"||/^\d+$/.test(String(B))?B+"px":B};i!=null&&(this.display.wrapper.style.width=E(i)),s!=null&&(this.display.wrapper.style.height=E(s)),this.options.lineWrapping&&Xu(this);var D=this.display.viewFrom;this.doc.iter(D,this.display.viewTo,function(B){if(B.widgets){for(var O=0;O<B.widgets.length;O++)if(B.widgets[O].noHScroll){sr(f,D,"widget");break}}++D}),this.curOp.forceUpdate=!0,Pe(this,"refresh",this)}),operation:function(i){return Kt(this,i)},startOperation:function(){return Sr(this)},endOperation:function(){return _r(this)},refresh:It(function(){var i=this.display.cachedTextHeight;Ut(this),this.curOp.forceUpdate=!0,Ti(this),Ri(this,this.doc.scrollLeft,this.doc.scrollTop),Qa(this.display),(i==null||Math.abs(i-Gr(this.display))>.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||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)||`
  19. `,de=ln(ie,$)?"w":G&&ie==`
  20. `?"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<e.display.view.length;s++){var f=e.display.view[s];if(f.node==i)return Wh(f,n,l)}}function Wh(e,n,l){var i=e.text.firstChild,s=!1;if(!n||!q(i,n))return li(J(F(e.line),0),!0);if(n==i&&(s=!0,n=i.childNodes[l],l=0,!n)){var f=e.rest?Le(e.rest):e.line;return li(J(F(f),f.text.length),s)}var E=n.nodeType==3?n:null,D=n;for(!E&&n.childNodes.length==1&&n.firstChild.nodeType==3&&(E=n.firstChild,l&&(l=E.nodeValue.length));D.parentNode!=i;)D=D.parentNode;var B=e.measure,O=B.maps;function U(de,ge,be){for(var fe=-1;fe<(O?O.length:0);fe++)for(var xe=fe<0?B.map:O[fe],we=0;we<xe.length;we+=3){var Se=xe[we+2];if(Se==de||Se==ge){var qe=F(fe<0?e.line:e.rest[fe]),Qe=xe[we]+be;return(be<0||Se!=de)&&(Qe=xe[we+(be?1:0)]),J(qe,Qe)}}}var V=U(E,D,l);if(V)return li(V,s);for(var G=D.nextSibling,$=E?E.nodeValue.length-l:0;G;G=G.nextSibling){if(V=U(G,G.firstChild,0))return li(J(V.line,V.ch-$),s);$+=G.textContent.length}for(var ee=D.previousSibling,ie=l;ee;ee=ee.previousSibling){if(V=U(ee,ee.firstChild,-1))return li(J(V.line,V.ch+ie),s);ie+=ee.textContent.length}}Ye.prototype.init=function(e){var n=this,l=this,i=l.cm,s=l.div=e.lineDiv;function f(D){for(var B=D.target;B;B=B.parentNode){if(B==s)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(B.className))break}return!1}function E(D){if(f(D)&&!Ue(i,D)){if(i.somethingSelected())Xo({lineWise:!1,text:i.getSelections()}),D.type=="cut"&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var B=pd(i);Xo({lineWise:!0,text:B.text}),D.type=="cut"&&i.operation(function(){i.setSelections(B.ranges,0,Oe),i.replaceSelection("",null,"cut")})}if(D.clipboardData){D.clipboardData.clearData();var O=Sn.text.join(`
  21. `);if(D.clipboardData.setData("Text",O),D.clipboardData.getData("Text")==O)return void D.preventDefault()}var U=md(),V=U.firstChild;i.display.lineSpace.insertBefore(U,i.display.lineSpace.firstChild),V.value=Sn.text.join(`
  22. `);var G=W(s.ownerDocument);re(V),setTimeout(function(){i.display.lineSpace.removeChild(U),G.focus(),G==s&&l.showPrimarySelection()},50)}}s.contentEditable=!0,hd(s,i.options.spellcheck,i.options.autocorrect,i.options.autocapitalize),ae(s,"paste",function(D){!f(D)||Ue(i,D)||dd(D,i)||p<=11&&setTimeout(Ct(i,function(){return n.updateFromDOM()}),20)}),ae(s,"compositionstart",function(D){n.composing={data:D.data,done:!1}}),ae(s,"compositionupdate",function(D){n.composing||(n.composing={data:D.data,done:!1})}),ae(s,"compositionend",function(D){n.composing&&(D.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),ae(s,"touchstart",function(){return l.forceCompositionEnd()}),ae(s,"input",function(){n.composing||n.readFromDOMSoon()}),ae(s,"copy",E),ae(s,"cut",E)},Ye.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},Ye.prototype.prepareSelection=function(){var e=oc(this.cm,!1);return e.focus=W(this.div.ownerDocument)==this.div,e},Ye.prototype.showSelection=function(e,n){!e||!this.cm.display.view.length||((e.focus||n)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ye.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Ye.prototype.showPrimarySelection=function(){var e=this.getSelection(),n=this.cm,l=n.doc.sel.primary(),i=l.from(),s=l.to();if(n.display.viewTo==n.display.viewFrom||i.line>=n.display.viewTo||s.line<n.display.viewFrom)e.removeAllRanges();else{var f=Ko(n,e.anchorNode,e.anchorOffset),E=Ko(n,e.focusNode,e.focusOffset);if(!f||f.bad||!E||E.bad||he(xo(f,E),i)!=0||he(zt(f,E),s)!=0){var D=n.display.view,B=i.line>=n.display.viewFrom&&gd(n,i)||{node:D[0].measure.map[2],offset:0},O=s.line<n.display.viewTo&&gd(n,s);if(!O){var U=D[D.length-1].measure,V=U.maps?U.maps[U.maps.length-1]:U.map;O={node:V[V.length-1],offset:V[V.length-2]-V[V.length-3]}}if(!B||!O)return void e.removeAllRanges();var G,$=e.rangeCount&&e.getRangeAt(0);try{G=L(B.node,B.offset,O.offset,O.node)}catch{}G&&(!t&&n.state.focused?(e.collapse(B.node,B.offset),G.collapsed||(e.removeAllRanges(),e.addRange(G))):(e.removeAllRanges(),e.addRange(G)),$&&e.anchorNode==null?e.addRange($):t&&this.startGracePeriod()),this.rememberSelection()}}},Ye.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Ye.prototype.showMultipleSelections=function(e){j(this.cm.display.cursorDiv,e.cursors),j(this.cm.display.selectionDiv,e.selection)},Ye.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Ye.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var n=e.getRangeAt(0).commonAncestorContainer;return q(this.div,n)},Ye.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||W(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Ye.prototype.blur=function(){this.div.blur()},Ye.prototype.getField=function(){return this.div},Ye.prototype.supportsTouch=function(){return!0},Ye.prototype.receivedFocus=function(){var e=this,n=this;function l(){n.cm.state.focused&&(n.pollSelection(),n.polling.set(n.cm.options.pollInterval,l))}this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):Kt(this.cm,function(){return n.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,l)},Ye.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Ye.prototype.pollSelection=function(){if(this.readDOMTimeout==null&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),n=this.cm;if(C&&b&&this.cm.display.gutterSpecs.length&&Vh(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var l=Ko(n,e.anchorNode,e.anchorOffset),i=Ko(n,e.focusNode,e.focusOffset);l&&i&&Kt(n,function(){Rt(n.doc,cr(l,i),Oe),(l.bad||i.bad)&&(n.curOp.selectionChanged=!0)})}}},Ye.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,n,l,i=this.cm,s=i.display,f=i.doc.sel.primary(),E=f.from(),D=f.to();if(E.ch==0&&E.line>i.firstLine()&&(E=J(E.line-1,Ce(i.doc,E.line-1).length)),D.ch==Ce(i.doc,D.line).text.length&&D.line<i.lastLine()&&(D=J(D.line+1,0)),E.line<s.viewFrom||D.line>s.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);$<ge&&ie.charCodeAt($)==de.charCodeAt($);)++$;for(var be=Le(V),fe=Le(G),xe=Math.min(be.length-(V.length==1?$:0),fe.length-(G.length==1?$:0));ee<xe&&be.charCodeAt(be.length-ee-1)==fe.charCodeAt(fe.length-ee-1);)++ee;if(V.length==1&&G.length==1&&n==E.line)for(;$&&$>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(`
  23. `),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);E<D&&i.charCodeAt(E)==s.charCodeAt(E);)++E;return Kt(n,function(){ss(n,s.slice(E),i.length-E,null,e.composing?"*compose":null),s.length>1e3||s.indexOf(`
  24. `)>-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;
  25. top: `+(e.clientY-U.top-5)+"px; left: "+(e.clientX-U.left-5)+`px;
  26. z-index: 1000; background: `+(c?"rgba(255, 255, 255, .05)":"transparent")+`;
  27. 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<arguments.length;ye++)L.cc.push(arguments[ye]);return P(te(Y,ne),ze(F,Y),oe)}function sn(F){return F=="}"?P():H(se,sn)}function Ae(F,Y){if(h){if(F==":")return P(ce);if(Y=="?")return P(Ae)}}function ve(F,Y){if(h&&(F==":"||Y=="in"))return P(ce)}function ke(F){if(h&&F==":")return L.stream.match(/^\s*\w+\s+is\b/,!1)?P(_e,le,ce):P(ce)}function le(F,Y){if(Y=="is")return L.marked="keyword",P()}function ce(F,Y){return Y=="keyof"||Y=="typeof"||Y=="infer"||Y=="readonly"?(L.marked="keyword",P(Y=="typeof"?Ie:ce)):F=="variable"||Y=="void"?(L.marked="type",P($e)):Y=="|"||Y=="&"?P(ce):F=="string"||F=="number"||F=="atom"?P($e):F=="["?P(te("]"),ze(ce,"]",","),oe,$e):F=="{"?P(te("}"),De,oe,$e):F=="("?P(ze(yt,")"),ae,$e):F=="<"?P(ze(ce,">"),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<q;Q++)for(var W in z=arguments[Q])Object.prototype.hasOwnProperty.call(z,W)&&(j[W]=z[W]);return j},d.apply(this,arguments)};function c(j,z){var Q={};for(var q in j)Object.prototype.hasOwnProperty.call(j,q)&&z.indexOf(q)<0&&(Q[q]=j[q]);if(j!=null&&typeof Object.getOwnPropertySymbols=="function"){var W=0;for(q=Object.getOwnPropertySymbols(j);W<q.length;W++)z.indexOf(q[W])<0&&Object.prototype.propertyIsEnumerable.call(j,q[W])&&(Q[q[W]]=j[q[W]])}return Q}function p(j,z,Q,q){var W,K=arguments.length,X=K<3?z:q===null?q=Object.getOwnPropertyDescriptor(z,Q):q;if((typeof Reflect>"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]<W[3])){X.label=ue[1];break}if(ue[0]===6&&X.label<W[1]){X.label=W[1],W=ue;break}if(W&&X.label<W[2]){X.label=W[2],X.ops.push(ue);break}W[2]&&X.ops.pop(),X.trys.pop();continue}ue=z.call(j,X)}catch(te){ue=[6,te],q=0}finally{Q=W=0}if(5&ue[0])throw ue[1];return{value:ue[0]?ue[1]:void 0,done:!0}}}var v=Object.create?function(j,z,Q,q){q===void 0&&(q=Q),Object.defineProperty(j,q,{enumerable:!0,get:function(){return z[Q]}})}:function(j,z,Q,q){q===void 0&&(q=Q),j[q]=z[Q]};function w(j,z){for(var Q in j)Q!=="default"&&!Object.prototype.hasOwnProperty.call(z,Q)&&v(z,j,Q)}function x(j){var z=typeof Symbol=="function"&&Symbol.iterator,Q=z&&j[z],q=0;if(Q)return Q.call(j);if(j&&typeof j.length=="number")return{next:function(){return j&&q>=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;z<arguments.length;z++)j=j.concat(_(arguments[z]));return j}function C(){for(var j=0,z=0,Q=arguments.length;z<Q;z++)j+=arguments[z].length;var q=Array(j),W=0;for(z=0;z<Q;z++)for(var K=arguments[z],X=0,re=K.length;X<re;X++,W++)q[W]=K[X];return q}function k(j,z){for(var Q=0,q=z.length,W=j.length;Q<q;Q++,W++)j[W]=z[Q];return j}function A(j){return this instanceof A?(this.v=j,this):new A(j)}function S(j,z,Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var q,W=Q.apply(j,z||[]),K=[];return q={},X("next"),X("throw"),X("return"),q[Symbol.asyncIterator]=function(){return this},q;function X(Z){W[Z]&&(q[Z]=function(se){return new Promise(function(Ee,_e){K.push([Z,se,Ee,_e])>1||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(`/
  28. /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<z;Q++)this.elems.push(L[Q]);this.length=z}}return(0,u.default)(R.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),R.prototype.forEach=function(T){for(var L=0;L<this.length;L++){var H=this.elems[L];if(T.call(H,H,L)===!1)break}return this},R.prototype.clone=function(T){var L;T===void 0&&(T=!1);var H=[];return(0,c.default)(L=this.elems).call(L,function(P){H.push(P.cloneNode(!!T))}),N(H)},R.prototype.get=function(T){T===void 0&&(T=0);var L=this.length;return T>=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<C.length;Q++){var q=C[Q];if(q.selector===L&&q.fn===H&&q.elem===j){z=Q;break}}if(z!==-1){var W=(0,y.default)(C).call(C,z,1)[0].agentFn;j.removeEventListener(T,W)}}else j.removeEventListener(T,H)})):this},R.prototype.attr=function(T,L){var H;return L==null?this.elems[0].getAttribute(T)||"":(0,c.default)(H=this).call(H,function(P){P.setAttribute(T,L)})},R.prototype.removeAttr=function(T){var L;(0,c.default)(L=this).call(L,function(H){H.removeAttribute(T)})},R.prototype.addClass=function(T){var L;return T?(0,c.default)(L=this).call(L,function(H){if(H.className){var P=H.className.split(/\s/);P=(0,v.default)(P).call(P,function(j){return!!(0,m.default)(j).call(j)}),(0,b.default)(P).call(P,T)<0&&P.push(T),H.className=P.join(" ")}else H.className=T}):this},R.prototype.removeClass=function(T){var L;return T?(0,c.default)(L=this).call(L,function(H){if(H.className){var P=H.className.split(/\s/);P=(0,v.default)(P).call(P,function(j){return!(!(j=(0,m.default)(j).call(j))||j===T)}),H.className=P.join(" ")}}):this},R.prototype.hasClass=function(T){if(!T)return!1;var L=this.elems[0];if(!L.className)return!1;var H=L.className.split(/\s/);return(0,w.default)(H).call(H,T)},R.prototype.css=function(T,L){var H,P;return P=L==""?"":T+":"+L+";",(0,c.default)(H=this).call(H,function(j){var z,Q=(0,m.default)(z=j.getAttribute("style")||"").call(z);if(Q){var q=M(Q);q=(0,p.default)(q).call(q,function(W){return(0,b.default)(W).call(W,T)===0?P:W}),P!=""&&(0,b.default)(q).call(q,P)<0&&q.push(P),P==""&&(q=M(q)),j.setAttribute("style",q.join("; "))}else j.setAttribute("style",P)})},R.prototype.getBoundingClientRect=function(){return this.elems[0].getBoundingClientRect()},R.prototype.show=function(){return this.css("display","block")},R.prototype.hide=function(){return this.css("display","none")},R.prototype.children=function(){var T=this.elems[0];return T?N(T.children):null},R.prototype.childNodes=function(){var T=this.elems[0];return T?N(T.childNodes):null},R.prototype.replaceChildAll=function(T){for(var L=this.getNode(),H=this.elems[0];H.hasChildNodes();)L.firstChild&&H.removeChild(L.firstChild);this.append(T)},R.prototype.append=function(T){var L;return(0,c.default)(L=this).call(L,function(H){(0,c.default)(T).call(T,function(P){H.appendChild(P)})})},R.prototype.remove=function(){var T;return(0,c.default)(T=this).call(T,function(L){if(L.remove)L.remove();else{var H=L.parentElement;H&&H.removeChild(L)}})},R.prototype.isContain=function(T){var L=this.elems[0],H=T.elems[0];return L.contains(H)},R.prototype.getNodeName=function(){return this.elems[0].nodeName},R.prototype.getNode=function(T){return T===void 0&&(T=0),this.elems[T]},R.prototype.find=function(T){return N(this.elems[0].querySelectorAll(T))},R.prototype.text=function(T){var L;return T?(0,c.default)(L=this).call(L,function(H){H.innerHTML=T}):this.elems[0].innerHTML.replace(/<[^>]+>/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<arguments.length;T++)R[T]=arguments[T];return new((0,x.default)(I).apply(I,_.__spreadArrays([void 0],R)))}o.DomElement=I,o.default=N},function(r,o,t){r.exports=t(180)},function(r,o,t){var a=t(8),u=t(71).f,d=t(100),c=t(9),p=t(39),m=t(19),h=t(16),b=function(y){var v=function(w,x,_){if(this instanceof y){switch(arguments.length){case 0:return new y;case 1:return new y(w);case 2:return new y(w,x)}return new y(w,x,_)}return y.apply(this,arguments)};return v.prototype=y.prototype,v};r.exports=function(y,v){var w,x,_,g,C,k,A,S,M=y.target,I=y.global,N=y.stat,R=y.proto,T=I?a:N?a[M]:(a[M]||{}).prototype,L=I?c:c[M]||(c[M]={}),H=L.prototype;for(_ in v)w=!d(I?_:M+(N?".":"#")+_,y.forced)&&T&&h(T,_),C=L[_],w&&(k=y.noTargetGet?(S=u(T,_))&&S.value:T[_]),g=w&&k?k:v[_],(!w||Dt(C)!==Dt(g))&&(A=y.bind&&w?p(g,a):y.wrap&&w?b(g):R&&typeof g=="function"?p(Function.call,g):g,(y.sham||g&&g.sham||C&&C.sham)&&m(A,"sham",!0),L[_]=A,R&&(h(c,x=M+"Prototype")||m(c,x,{}),c[x][_]=g,y.real&&H&&!H[_]&&m(H,_,g)))}},function(r,o,t){var a=t(0),u=a(t(92)),d=a(t(1)),c=a(t(256)),p=a(t(45)),m=a(t(46)),h=a(t(89)),b=a(t(26));(0,d.default)(o,"__esModule",{value:!0}),o.hexToRgb=o.getRandomCode=o.toArray=o.deepClone=o.isFunction=o.debounce=o.throttle=o.arrForEach=o.forEach=o.replaceSpecialSymbol=o.replaceHtmlSymbol=o.getRandom=o.UA=void 0;var y=t(2),v=function(){function T(){this._ua=navigator.userAgent;var L=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(L&&L[1]=="Edge"&&(0,c.default)(L[2])<19),this.isFirefox=!(!/Firefox\/\d+/.test(this._ua)||/Seamonkey\/\d+/.test(this._ua))}return T.prototype.isIE=function(){return"ActiveXObject"in window},T.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},T}();function w(T){var L;return T===void 0&&(T=""),T+(0,p.default)(L=Math.random().toString()).call(L,2)}function x(T){return T.replace(/</gm,"&lt;").replace(/>/gm,"&gt;").replace(/"/gm,"&quot;").replace(/(\r\n|\r|\n)/g,"<br/>")}function _(T){return T.replace(/&lt;/gm,"<").replace(/&gt;/gm,">").replace(/&quot;/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<j&&(P=T[H],L.call(T,P,H)!==!1);H++);}function k(T,L){L===void 0&&(L=200);var H=!1;return function(){for(var P=this,j=[],z=0;z<arguments.length;z++)j[z]=arguments[z];H||(H=!0,(0,m.default)(function(){H=!1,T.call.apply(T,y.__spreadArrays([P],j))},L))}}function A(T,L){L===void 0&&(L=200);var H=0;return function(){for(var P=this,j=[],z=0;z<arguments.length;z++)j[z]=arguments[z];H&&window.clearTimeout(H),H=(0,m.default)(function(){H=0,T.call.apply(T,y.__spreadArrays([P],j))},L)}}function S(T){return typeof T=="function"}function M(T){if((0,u.default)(T)!=="object"||typeof T=="function"||T===null)return T;var L;for(var H in(0,h.default)(T)&&(L=[]),(0,h.default)(T)||(L={}),T)Object.prototype.hasOwnProperty.call(T,H)&&(L[H]=M(T[H]));return L}function I(T){return(0,p.default)(Array.prototype).call(T)}function N(){var T;return(0,p.default)(T=Math.random().toString(36)).call(T,-5)}function R(T){var L=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(T);if(L==null)return null;var H=(0,b.default)(L).call(L,function(P){return(0,c.default)(P,16)});return"rgb("+H[1]+", "+H[2]+", "+H[3]+")"}o.UA=new v,o.getRandom=w,o.replaceHtmlSymbol=x,o.replaceSpecialSymbol=_,o.forEach=g,o.arrForEach=C,o.throttle=k,o.debounce=A,o.isFunction=S,o.deepClone=M,o.toArray=I,o.getRandomCode=N,o.hexToRgb=R},function(r,o,t){function a(){}(0,t(0)(t(1)).default)(o,"__esModule",{value:!0}),o.EMPTY_P_REGEX=o.EMPTY_P_LAST_REGEX=o.EMPTY_P=o.urlRegex=o.EMPTY_FN=void 0,o.EMPTY_FN=a,o.urlRegex=/^(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&amp;:/~+#]*[\w\-@?^=%&amp;/~+#])?/,o.EMPTY_P='<p data-we-empty-p=""><br></p>',o.EMPTY_P_LAST_REGEX=/<p data-we-empty-p=""><br\/?><\/p>$/gim,o.EMPTY_P_REGEX=/<p data-we-empty-p="">/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<d.length;k++)if(d[k].identifier===g){C=k;break}return C}function p(g,C){for(var k={},A=[],S=0;S<g.length;S++){var M=g[S],I=C.base?M[0]+C.base:M[0],N=k[I]||0,R="".concat(I," ").concat(N);k[I]=N+1;var T=c(R),L={css:M[1],media:M[2],sourceMap:M[3]};T!==-1?(d[T].references++,d[T].updater(L)):d.push({identifier:R,updater:_(L,C),references:1}),A.push(R)}return A}function m(g){var C=document.createElement("style"),k=g.attributes||{};if(typeof k.nonce>"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(`
  29. `)}}();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+=`
  30. /*# 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;S<k.length;S++){var M=c(k[S]);d[M].references--}for(var I=p(A,C),N=0;N<k.length;N++){var R=c(k[N]);d[R].references===0&&(d[R].updater(),d.splice(R,1))}k=I}}}},function(r,o,t){function a(d,c){var p=d[1]||"",m=d[3];if(!m)return p;if(c&&typeof btoa=="function"){var h=u(m),b=m.sources.map(function(y){return"/*# sourceURL=".concat(m.sourceRoot||"").concat(y," */")});return[p].concat(b).concat([h]).join(`
  31. `)}return[p].join(`
  32. `)}function u(d){var c=btoa(unescape(encodeURIComponent(JSON.stringify(d)))),p="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c);return"/*# ".concat(p," */")}r.exports=function(d){var c=[];return c.toString=function(){return this.map(function(p){var m=a(p,d);return p[2]?"@media ".concat(p[2]," {").concat(m,"}"):m}).join("")},c.i=function(p,m,h){typeof p=="string"&&(p=[[null,p,""]]);var b={};if(h)for(var y=0;y<this.length;y++){var v=this[y][0];v!=null&&(b[v]=!0)}for(var w=0;w<p.length;w++){var x=[].concat(p[w]);h&&b[x[0]]||(m&&(x[2]?x[2]="".concat(m," and ").concat(x[2]):x[2]=m),c.push(x))}},c}},function(r,o,t){var a=t(14),u=t(11),d=t(16),c=Object.defineProperty,p={},m=function(h){throw h};r.exports=function(h,b){if(d(p,h))return p[h];b||(b={});var y=[][h],v=!!d(b,"ACCESSORS")&&b.ACCESSORS,w=d(b,0)?b[0]:m,x=d(b,1)?b[1]:void 0;return p[h]=!!y&&!u(function(){if(v&&!a)return!0;var _={length:-1};v?c(_,1,{enumerable:!0,get:m}):_[1]=1,y.call(_,w,x)})}},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}(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(46));(0,u.default)(o,"__esModule",{value:!0});var p=t(2),m=p.__importDefault(t(3)),h=p.__importDefault(t(95)),b=p.__importDefault(t(133)),y=function(v){function w(x,_,g){var C=v.call(this,x,_)||this;g.title=_.i18next.t("menus.dropListMenu."+g.title);var k,A=_.config.lang==="zh-CN"?"":"w-e-drop-list-tl";A!==""&&g.type==="list"&&(0,d.default)(k=g.list).call(k,function(M){var I=M.$elem,N=m.default(I.children());if(N.length>0){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('<div class="w-e-panel-container"></div>');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<document.documentElement.clientWidth/2?-A.width/2:-C+A.width/2),g.css("width",C+"px").css("margin-top",S+"px").css("margin-left",M+"px").css("z-index",x.editor.zIndex.get("panel"));var N=h.default('<i class="w-e-icon-close w-e-panel-close"></i>');g.append(N),N.on("click",function(){w.remove()});var R=h.default('<ul class="w-e-panel-tab-title"></ul>'),T=h.default('<div class="w-e-panel-tab-content"></div>');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('<li class="w-e-item">'+W+"</li>");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("<div></div>");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+w<S?(y=R+N+10,b.addClass("w-e-tooltip-down")):(y=(R>0?R:0)+w+10,b.addClass("w-e-tooltip-down")),v=I<0?0:I}else _.top<w||_.top-g.top<w?(y=_.bottom+x+5,b.addClass("w-e-tooltip-down")):(y=_.top+x-w-15,b.addClass("w-e-tooltip-up")),v=_.left<0?0:_.left;return{top:y,left:v}},h.prototype.appendMenus=function(){var b=this,y=this.conf,v=this.editor,w=this.$targetElem,x=this.$container;(0,d.default)(y).call(y,function(_,g){var C=_.$elem,k=p.default("<div></div>");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=`
  33. \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("<div></div>"),this.$textContainerElem=p.default("<div></div>"),this.$textElem=p.default("<div></div>"),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",'<img src="'+x+'" '+M+I+'style="max-width:100%;" contenteditable="false"/>'),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(I<se)return void X.push("\u3010"+Z+"\u3011"+A("\u5927\u4E8E")+" "+N+"M");K.push(oe)}}}),X.length)return void C.customAlert(A("\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
  34. `+X.join(`
  35. `),"warning");if(K.length===0)return void C.customAlert(A("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");if(K.length>R)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="<p>"+C+"</p>"}return g=(g=g.replace(/<(\d)/gm,function(k,A){return"&lt;"+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('<div class="w-e-droplist"></div>'),_=p.default("<p>"+v.title+"</p>");_.addClass("w-e-dp-title"),x.append(_);var g=v.list||[],C=v.type||"list",k=v.clickHandler||m.EMPTY_FN,A=p.default('<ul class="'+(C==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,d.default)(g).call(g,function(S){var M=S.$elem,I=S.value,N=p.default('<li class="w-e-item"></li>');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('<div class="w-e-progress"></div>'),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(`<div class="w-e-menu" data-title="\u5E8F\u5217">
  36. <i class="w-e-icon-list2"></i>
  37. </div>`),g={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:c.default(`
  38. <p>
  39. <i class="w-e-icon-list2 w-e-drop-list-item"></i>
  40. `+w.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`
  41. <p>`),value:a.UnorderedList},{$elem:c.default(`<p>
  42. <i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
  43. `+w.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
  44. <p>`),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='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',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,
  45. .w-e-text-container,
  46. .w-e-menu-panel {
  47. padding: 0;
  48. margin: 0;
  49. box-sizing: border-box;
  50. background-color: #fff;
  51. /*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/
  52. /*\u5206\u5272\u7EBF\u6837\u5F0F*/
  53. }
  54. .w-e-toolbar h1,
  55. .w-e-text-container h1,
  56. .w-e-menu-panel h1 {
  57. font-size: 32px !important;
  58. }
  59. .w-e-toolbar h2,
  60. .w-e-text-container h2,
  61. .w-e-menu-panel h2 {
  62. font-size: 24px !important;
  63. }
  64. .w-e-toolbar h3,
  65. .w-e-text-container h3,
  66. .w-e-menu-panel h3 {
  67. font-size: 18.72px !important;
  68. }
  69. .w-e-toolbar h4,
  70. .w-e-text-container h4,
  71. .w-e-menu-panel h4 {
  72. font-size: 16px !important;
  73. }
  74. .w-e-toolbar h5,
  75. .w-e-text-container h5,
  76. .w-e-menu-panel h5 {
  77. font-size: 13.28px !important;
  78. }
  79. .w-e-toolbar p,
  80. .w-e-text-container p,
  81. .w-e-menu-panel p {
  82. font-size: 16px !important;
  83. }
  84. .w-e-toolbar .eleImg,
  85. .w-e-text-container .eleImg,
  86. .w-e-menu-panel .eleImg {
  87. cursor: pointer;
  88. display: inline-block;
  89. font-size: 18px;
  90. padding: 0 3px;
  91. }
  92. .w-e-toolbar *,
  93. .w-e-text-container *,
  94. .w-e-menu-panel * {
  95. padding: 0;
  96. margin: 0;
  97. box-sizing: border-box;
  98. }
  99. .w-e-toolbar hr,
  100. .w-e-text-container hr,
  101. .w-e-menu-panel hr {
  102. cursor: pointer;
  103. display: block;
  104. height: 0px;
  105. border: 0;
  106. border-top: 3px solid #ccc;
  107. margin: 20px 0;
  108. }
  109. .w-e-clear-fix:after {
  110. content: "";
  111. display: table;
  112. clear: both;
  113. }
  114. .w-e-drop-list-item {
  115. position: relative;
  116. top: 1px;
  117. padding-right: 7px;
  118. color: #333 !important;
  119. }
  120. .w-e-drop-list-tl {
  121. padding-left: 10px;
  122. text-align: left;
  123. }
  124. `,""]),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 {
  125. font-family: 'w-e-icon';
  126. src: url(`+c+`) format('truetype');
  127. font-weight: normal;
  128. font-style: normal;
  129. }
  130. [class^="w-e-icon-"],
  131. [class*=" w-e-icon-"] {
  132. /* use !important to prevent issues with browser extensions that change fonts */
  133. font-family: 'w-e-icon' !important;
  134. speak: none;
  135. font-style: normal;
  136. font-weight: normal;
  137. font-variant: normal;
  138. text-transform: none;
  139. line-height: 1;
  140. /* Better Font Rendering =========== */
  141. -webkit-font-smoothing: antialiased;
  142. -moz-osx-font-smoothing: grayscale;
  143. }
  144. .w-e-icon-close:before {
  145. content: "\\f00d";
  146. }
  147. .w-e-icon-upload2:before {
  148. content: "\\e9c6";
  149. }
  150. .w-e-icon-trash-o:before {
  151. content: "\\f014";
  152. }
  153. .w-e-icon-header:before {
  154. content: "\\f1dc";
  155. }
  156. .w-e-icon-pencil2:before {
  157. content: "\\e906";
  158. }
  159. .w-e-icon-paint-brush:before {
  160. content: "\\f1fc";
  161. }
  162. .w-e-icon-image:before {
  163. content: "\\e90d";
  164. }
  165. .w-e-icon-play:before {
  166. content: "\\e912";
  167. }
  168. .w-e-icon-location:before {
  169. content: "\\e947";
  170. }
  171. .w-e-icon-undo:before {
  172. content: "\\e965";
  173. }
  174. .w-e-icon-redo:before {
  175. content: "\\e966";
  176. }
  177. .w-e-icon-quotes-left:before {
  178. content: "\\e977";
  179. }
  180. .w-e-icon-list-numbered:before {
  181. content: "\\e9b9";
  182. }
  183. .w-e-icon-list2:before {
  184. content: "\\e9bb";
  185. }
  186. .w-e-icon-link:before {
  187. content: "\\e9cb";
  188. }
  189. .w-e-icon-happy:before {
  190. content: "\\e9df";
  191. }
  192. .w-e-icon-bold:before {
  193. content: "\\ea62";
  194. }
  195. .w-e-icon-underline:before {
  196. content: "\\ea63";
  197. }
  198. .w-e-icon-italic:before {
  199. content: "\\ea64";
  200. }
  201. .w-e-icon-strikethrough:before {
  202. content: "\\ea65";
  203. }
  204. .w-e-icon-table2:before {
  205. content: "\\ea71";
  206. }
  207. .w-e-icon-paragraph-left:before {
  208. content: "\\ea77";
  209. }
  210. .w-e-icon-paragraph-center:before {
  211. content: "\\ea78";
  212. }
  213. .w-e-icon-paragraph-right:before {
  214. content: "\\ea79";
  215. }
  216. .w-e-icon-paragraph-justify:before {
  217. content: "\\ea7a";
  218. }
  219. .w-e-icon-terminal:before {
  220. content: "\\f120";
  221. }
  222. .w-e-icon-page-break:before {
  223. content: "\\ea68";
  224. }
  225. .w-e-icon-cancel-circle:before {
  226. content: "\\ea0d";
  227. }
  228. .w-e-icon-font:before {
  229. content: "\\ea5c";
  230. }
  231. .w-e-icon-text-heigh:before {
  232. content: "\\ea5f";
  233. }
  234. .w-e-icon-paint-format:before {
  235. content: "\\e90c";
  236. }
  237. .w-e-icon-indent-increase:before {
  238. content: "\\ea7b";
  239. }
  240. .w-e-icon-indent-decrease:before {
  241. content: "\\ea7c";
  242. }
  243. .w-e-icon-row-height:before {
  244. content: "\\e9be";
  245. }
  246. .w-e-icon-fullscreen_exit:before {
  247. content: "\\e900";
  248. }
  249. .w-e-icon-fullscreen:before {
  250. content: "\\e901";
  251. }
  252. .w-e-icon-split-line:before {
  253. content: "\\ea0b";
  254. }
  255. .w-e-icon-checkbox-checked:before {
  256. content: "\\ea52";
  257. }
  258. `,""]),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 {
  259. display: flex;
  260. padding: 0 6px;
  261. flex-wrap: wrap;
  262. position: relative;
  263. /* \u5355\u4E2A\u83DC\u5355 */
  264. }
  265. .w-e-toolbar .w-e-menu {
  266. position: relative;
  267. display: flex;
  268. width: 40px;
  269. height: 40px;
  270. align-items: center;
  271. justify-content: center;
  272. text-align: center;
  273. cursor: pointer;
  274. }
  275. .w-e-toolbar .w-e-menu i {
  276. color: #999;
  277. }
  278. .w-e-toolbar .w-e-menu:hover {
  279. background-color: #F6F6F6;
  280. }
  281. .w-e-toolbar .w-e-menu:hover i {
  282. color: #333;
  283. }
  284. .w-e-toolbar .w-e-active i {
  285. color: #1e88e5;
  286. }
  287. .w-e-toolbar .w-e-active:hover i {
  288. color: #1e88e5;
  289. }
  290. .w-e-menu-tooltip {
  291. position: absolute;
  292. display: flex;
  293. color: #f1f1f1;
  294. background-color: rgba(0, 0, 0, 0.75);
  295. box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
  296. border-radius: 4px;
  297. padding: 4px 5px 6px;
  298. justify-content: center;
  299. align-items: center;
  300. }
  301. .w-e-menu-tooltip-up::after {
  302. content: "";
  303. position: absolute;
  304. top: 100%;
  305. left: 50%;
  306. margin-left: -5px;
  307. border: 5px solid rgba(0, 0, 0, 0);
  308. border-top-color: rgba(0, 0, 0, 0.73);
  309. }
  310. .w-e-menu-tooltip-down::after {
  311. content: "";
  312. position: absolute;
  313. bottom: 100%;
  314. left: 50%;
  315. margin-left: -5px;
  316. border: 5px solid rgba(0, 0, 0, 0);
  317. border-bottom-color: rgba(0, 0, 0, 0.73);
  318. }
  319. .w-e-menu-tooltip-item-wrapper {
  320. font-size: 14px;
  321. margin: 0 5px;
  322. }
  323. `,""]),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 {
  324. position: relative;
  325. height: 100%;
  326. }
  327. .w-e-text-container .w-e-progress {
  328. position: absolute;
  329. background-color: #1e88e5;
  330. top: 0;
  331. left: 0;
  332. height: 1px;
  333. }
  334. .w-e-text-container .placeholder {
  335. color: #D4D4D4;
  336. position: absolute;
  337. font-size: 11pt;
  338. line-height: 22px;
  339. left: 10px;
  340. top: 10px;
  341. -webkit-user-select: none;
  342. -moz-user-select: none;
  343. -ms-user-select: none;
  344. user-select: none;
  345. z-index: -1;
  346. }
  347. .w-e-text {
  348. padding: 0 10px;
  349. overflow-y: auto;
  350. }
  351. .w-e-text p,
  352. .w-e-text h1,
  353. .w-e-text h2,
  354. .w-e-text h3,
  355. .w-e-text h4,
  356. .w-e-text h5,
  357. .w-e-text table,
  358. .w-e-text pre {
  359. margin: 10px 0;
  360. line-height: 1.5;
  361. }
  362. .w-e-text ul,
  363. .w-e-text ol {
  364. margin: 10px 0 10px 20px;
  365. }
  366. .w-e-text blockquote {
  367. display: block;
  368. border-left: 8px solid #d0e5f2;
  369. padding: 5px 10px;
  370. margin: 10px 0;
  371. line-height: 1.4;
  372. font-size: 100%;
  373. background-color: #f1f1f1;
  374. }
  375. .w-e-text code {
  376. display: inline-block;
  377. background-color: #f1f1f1;
  378. border-radius: 3px;
  379. padding: 3px 5px;
  380. margin: 0 3px;
  381. }
  382. .w-e-text pre code {
  383. display: block;
  384. }
  385. .w-e-text table {
  386. border-top: 1px solid #ccc;
  387. border-left: 1px solid #ccc;
  388. }
  389. .w-e-text table td,
  390. .w-e-text table th {
  391. border-bottom: 1px solid #ccc;
  392. border-right: 1px solid #ccc;
  393. padding: 3px 5px;
  394. min-height: 30px;
  395. height: 30px;
  396. }
  397. .w-e-text table th {
  398. border-bottom: 2px solid #ccc;
  399. text-align: center;
  400. background-color: #f1f1f1;
  401. }
  402. .w-e-text:focus {
  403. outline: none;
  404. }
  405. .w-e-text img {
  406. cursor: pointer;
  407. }
  408. .w-e-text img:hover {
  409. box-shadow: 0 0 5px #333;
  410. }
  411. .w-e-text .w-e-todo {
  412. margin: 0 0 0 20px;
  413. }
  414. .w-e-text .w-e-todo li {
  415. list-style: none;
  416. font-size: 1em;
  417. }
  418. .w-e-text .w-e-todo li span:nth-child(1) {
  419. position: relative;
  420. left: -18px;
  421. }
  422. .w-e-text .w-e-todo li span:nth-child(1) input {
  423. position: absolute;
  424. margin-right: 3px;
  425. }
  426. .w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {
  427. top: 50%;
  428. margin-top: -6px;
  429. }
  430. .w-e-tooltip {
  431. position: absolute;
  432. display: flex;
  433. color: #f1f1f1;
  434. background-color: rgba(0, 0, 0, 0.75);
  435. box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
  436. border-radius: 4px;
  437. padding: 4px 5px 6px;
  438. justify-content: center;
  439. align-items: center;
  440. }
  441. .w-e-tooltip-up::after {
  442. content: "";
  443. position: absolute;
  444. top: 100%;
  445. left: 50%;
  446. margin-left: -5px;
  447. border: 5px solid rgba(0, 0, 0, 0);
  448. border-top-color: rgba(0, 0, 0, 0.73);
  449. }
  450. .w-e-tooltip-down::after {
  451. content: "";
  452. position: absolute;
  453. bottom: 100%;
  454. left: 50%;
  455. margin-left: -5px;
  456. border: 5px solid rgba(0, 0, 0, 0);
  457. border-bottom-color: rgba(0, 0, 0, 0.73);
  458. }
  459. .w-e-tooltip-item-wrapper {
  460. cursor: pointer;
  461. font-size: 14px;
  462. margin: 0 5px;
  463. }
  464. .w-e-tooltip-item-wrapper:hover {
  465. color: #ccc;
  466. text-decoration: underline;
  467. }
  468. `,""]),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 {
  469. position: absolute;
  470. top: 0;
  471. left: 50%;
  472. border: 1px solid #ccc;
  473. border-top: 0;
  474. box-shadow: 1px 1px 2px #ccc;
  475. color: #333;
  476. background-color: #fff;
  477. text-align: left;
  478. /* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */
  479. /* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */
  480. }
  481. .w-e-menu .w-e-panel-container .w-e-panel-close {
  482. position: absolute;
  483. right: 0;
  484. top: 0;
  485. padding: 5px;
  486. margin: 2px 5px 0 0;
  487. cursor: pointer;
  488. color: #999;
  489. }
  490. .w-e-menu .w-e-panel-container .w-e-panel-close:hover {
  491. color: #333;
  492. }
  493. .w-e-menu .w-e-panel-container .w-e-panel-tab-title {
  494. list-style: none;
  495. display: flex;
  496. font-size: 14px;
  497. margin: 2px 10px 0 10px;
  498. border-bottom: 1px solid #f1f1f1;
  499. }
  500. .w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
  501. padding: 3px 5px;
  502. color: #999;
  503. cursor: pointer;
  504. margin: 0 3px;
  505. position: relative;
  506. top: 1px;
  507. }
  508. .w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
  509. color: #333;
  510. border-bottom: 1px solid #333;
  511. cursor: default;
  512. font-weight: 700;
  513. }
  514. .w-e-menu .w-e-panel-container .w-e-panel-tab-content {
  515. padding: 10px 15px 10px 15px;
  516. font-size: 16px;
  517. /* \u8F93\u5165\u6846\u7684\u6837\u5F0F */
  518. /* \u6309\u94AE\u7684\u6837\u5F0F */
  519. }
  520. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
  521. .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
  522. .w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
  523. outline: none;
  524. }
  525. .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
  526. width: 100%;
  527. border: 1px solid #ccc;
  528. padding: 5px;
  529. margin-top: 10px;
  530. }
  531. .w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
  532. border-color: #1e88e5;
  533. }
  534. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
  535. border: none;
  536. border-bottom: 1px solid #ccc;
  537. font-size: 14px;
  538. height: 20px;
  539. color: #333;
  540. text-align: left;
  541. }
  542. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
  543. width: 30px;
  544. text-align: center;
  545. }
  546. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
  547. display: block;
  548. width: 100%;
  549. margin: 10px 0;
  550. }
  551. .w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
  552. border-bottom: 2px solid #1e88e5;
  553. }
  554. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
  555. font-size: 14px;
  556. color: #1e88e5;
  557. border: none;
  558. padding: 5px 10px;
  559. background-color: #fff;
  560. cursor: pointer;
  561. border-radius: 3px;
  562. }
  563. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
  564. float: left;
  565. margin-right: 10px;
  566. }
  567. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
  568. float: right;
  569. margin-left: 10px;
  570. }
  571. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
  572. color: #999;
  573. }
  574. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
  575. color: #c24f4a;
  576. }
  577. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
  578. background-color: #f1f1f1;
  579. }
  580. .w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
  581. content: "";
  582. display: table;
  583. clear: both;
  584. }
  585. .w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
  586. cursor: pointer;
  587. font-size: 18px;
  588. padding: 0 3px;
  589. display: inline-block;
  590. }
  591. .w-e-menu .w-e-panel-container .w-e-up-img-container,
  592. .w-e-menu .w-e-panel-container .w-e-up-video-container {
  593. text-align: center;
  594. }
  595. .w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
  596. .w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
  597. display: inline-block;
  598. color: #999;
  599. cursor: pointer;
  600. font-size: 60px;
  601. line-height: 1;
  602. }
  603. .w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
  604. .w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
  605. color: #333;
  606. }
  607. `,""]),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 {
  608. position: absolute;
  609. left: 0;
  610. top: 0;
  611. background-color: #fff;
  612. border: 1px solid #f1f1f1;
  613. border-right-color: #ccc;
  614. border-bottom-color: #ccc;
  615. }
  616. .w-e-toolbar .w-e-droplist .w-e-dp-title {
  617. text-align: center;
  618. color: #999;
  619. line-height: 2;
  620. border-bottom: 1px solid #f1f1f1;
  621. font-size: 13px;
  622. }
  623. .w-e-toolbar .w-e-droplist ul.w-e-list {
  624. list-style: none;
  625. line-height: 1;
  626. }
  627. .w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
  628. color: #333;
  629. padding: 5px 0;
  630. }
  631. .w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
  632. background-color: #f1f1f1;
  633. }
  634. .w-e-toolbar .w-e-droplist ul.w-e-block {
  635. list-style: none;
  636. text-align: left;
  637. padding: 5px;
  638. }
  639. .w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
  640. display: inline-block;
  641. padding: 3px 5px;
  642. }
  643. .w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
  644. background-color: #f1f1f1;
  645. }
  646. `,""]),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;N<M;N++)(R=P+N)in L&&h(I,N,L[R]);if(I.length=M,S<M){for(N=P;N<H-M;N++)T=N+S,(R=N+M)in L?L[T]=L[R]:delete L[T];for(N=H;N>H-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;N<S;N++)L[N+P]=arguments[N+2];return L.length=H-M+S,I}})},function(r,o,t){var a=t(210);r.exports=a},function(r,o,t){var a=t(211),u=Array.prototype;r.exports=function(d){var c=d.filter;return d===u||d instanceof Array&&c===u.filter?a:c}},function(r,o,t){t(212);var a=t(15);r.exports=a("Array").filter},function(r,o,t){var a=t(5),u=t(30).filter,d=t(56),c=t(22),p=d("filter"),m=c("filter");a({target:"Array",proto:!0,forced:!p||!m},{filter:function(h){return u(this,h,arguments.length>1?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<h;v++)y[v]="a["+v+"]";c[h]=Function("C,a","return new C("+y.join(",")+")")}return c[h](m,b)};r.exports=Function.bind||function(m){var h=a(this),b=d.call(arguments,1),y=function(){var v=b.concat(d.call(arguments));return this instanceof y?p(h,v.length,v):h.apply(m,v)};return u(h.prototype)&&(y.prototype=h.prototype),y}},function(r,o,t){r.exports=t(228)},function(r,o,t){var a=t(229);r.exports=a},function(r,o,t){t(124),t(50),t(54);var a=t(93);r.exports=a.f("iterator")},function(r,o,t){r.exports=t(231)},function(r,o,t){var a=t(232);t(251),t(252),t(253),t(254),t(255),r.exports=a},function(r,o,t){t(233),t(61),t(234),t(236),t(237),t(238),t(239),t(124),t(240),t(241),t(242),t(243),t(244),t(245),t(246),t(247),t(248),t(249),t(250);var a=t(9);r.exports=a.Symbol},function(r,o,t){var a=t(5),u=t(11),d=t(55),c=t(13),p=t(29),m=t(34),h=t(69),b=t(88),y=t(56),v=t(10),w=t(86),x=v("isConcatSpreadable"),_=9007199254740991,g="Maximum allowed index exceeded",C=w>=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<N;M++)if(A(T=M===-1?L:arguments[M])){if(P+(R=m(T.length))>_)throw TypeError(g);for(I=0;I<R;I++,P++)I in T&&h(H,P,T[I])}else{if(P>=_)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;T<L;T++,I++)T in N&&h(M,I,N[T]);return M.length=I,M}})},function(r,o,t){t(266);var a=t(9);r.exports=a.setTimeout},function(r,o,t){var a=t(5),u=t(8),d=t(84),c=[].slice,p=function(m){return function(h,b){var y=arguments.length>2,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","&#8203;"),w.setEnd(w.endContainer,w.endOffset+1),this.saveRange(w)):(y=c.default("<strong>&#8203;</strong>"),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><\/p>/gim,"")).replace(g.EMPTY_P_LAST_REGEX,"")).replace(g.EMPTY_P_REGEX,"<p>")).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="<p>"+A+"</p>"),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("<p>"+A+"</p>"),S.initSelection()},k.prototype.append=function(A){var S=this.editor;(0,m.default)(A).call(A,"<")!==0&&(A="<p>"+A+"</p>"),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,"<img")>=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()==="<code><br></code>"||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","<p><br></p>"))}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=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',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==="<br>"){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","&nbsp;&nbsp;&nbsp;&nbsp;")}}}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(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(_),C=document.createElement("div");return C.innerHTML=g,C.innerHTML.replace(/<p><\/p>/gim,"")}function b(x){return x.replace(/<br>|<br\/>/gm,`
  647. `).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==="<br>"}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,"<br>");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",'<a href="'+P+'" target="_blank">'+P+"</a>"+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/^<img [^>]*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>.*?<\/span>/gi,k=/<span>(.*?)<\/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"</"+g+">"}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)=="<!--"?(p=a.indexOf("-->"))!=-1?(this.contentHandler.comment(a.substring(4,p)),a=a.substring(p+3),m=!1):m=!0:a.substring(0,2)=="</"?this.endTagRe.test(a)?(d=RegExp.lastMatch,c=RegExp.rightContext,d.replace(this.endTagRe,function(){return h.parseEndTag.apply(h,arguments)}),a=c,m=!1):m=!0:a.charAt(0)=="<"&&(this.startTagRe.test(a)?(d=RegExp.lastMatch,c=RegExp.rightContext,d.replace(this.startTagRe,function(){return h.parseStartTag.apply(h,arguments)}),a=c,m=!1):m=!0),m&&((p=a.indexOf("<"))==-1?(this.contentHandler.characters(a),a=""):(this.contentHandler.characters(a.substring(0,p)),a=a.substring(p))),m=!0},parseStartTag:function(a,u,d){var c=this.parseAttributes(u,d);this.contentHandler.startElement(u,c)},parseEndTag:function(a,u){this.contentHandler.endElement(u)},parseAttributes:function(a,u){var d=this,c=[];return u.replace(this.attrRe,function(p,m,h,b,y,v,w,x){c.push(d.parseAttribute(a,p,m,h,b,y,v,w,x))}),c},parseAttribute:function(a,u,d){var c="";return arguments[7]?c=arguments[8]:arguments[5]?c=arguments[6]:arguments[3]&&(c=arguments[4]),{name:d,value:c||arguments[3]?c:null}}},r.exports=t},function(r,o,t){function a(u,d){function c(p){u.selection.createRangeByElem(p),u.selection.restoreSelection()}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(4));(0,u.default)(o,"__esModule",{value:!0});var c=t(2),p=t(6),m=c.__importDefault(t(3));function h(b){var y=[],v=b.childNodes()||[];return(0,d.default)(v).call(v,function(w){var x,_=w.nodeType;if(_===3&&(x=w.textContent||"",x=p.replaceHtmlSymbol(x)),_===1){(x={}).tag=w.nodeName.toLowerCase();for(var g=[],C=w.attributes,k=C.length||0,A=0;A<k;A++){var S=C[A];g.push({name:S.name,value:S.value})}x.attrs=g,x.children=h(m.default(w))}x&&y.push(x)}),y}o.default=h},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(2).__importDefault(t(3));function m(h,b){b===void 0&&(b=document.createElement("div"));var y=b;return(0,c.default)(h).call(h,function(v){var w,x;typeof v=="string"&&(w=document.createTextNode(v)),(0,u.default)(v)==="object"&&(w=document.createElement(v.tag),(0,c.default)(x=v.attrs).call(x,function(_){p.default(w).attr(_.name,_.value)}),v.children&&v.children.length>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<H.length;L++){var P=H[L],j=P[0],z=P[1];this._initMenuList(j,z)}this._addToToolbar(),N.showMenuTooltips&&this._bindMenuTooltips()},A.prototype._initMenuList=function(S,M){var I;if(M!=null&&typeof M=="function"&&!(0,y.default)(I=this.menuList).call(I,function(R){return R.key===S})){var N=new M(this.editor);N.key=S,this.menuList.push(N)}},A.prototype._bindMenuTooltips=function(){var S=this.editor,M=S.$toolbarElem,I=S.config.menuTooltipPosition,N=C.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+I+`">
  648. <div class="w-e-menu-tooltip-item-wrapper">
  649. <div></div>
  650. </div>
  651. </div>`);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;I<N;I++)if(M[I].key===S)return M[I];return M[0]},A.prototype.changeActive=function(){var S;(0,h.default)(S=this.menuList).call(S,function(M){var I;(0,v.default)((0,w.default)(I=M.tryChangeActive).call(I,M),100)})},A}();o.default=k},function(r,o,t){r.exports=t(303)},function(r,o,t){var a=t(304);r.exports=a},function(r,o,t){t(305);var a=t(9);r.exports=a.Object.keys},function(r,o,t){var a=t(5),u=t(29),d=t(52);a({target:"Object",stat:!0,forced:t(11)(function(){d(1)})},{keys:function(c){return d(u(c))}})},function(r,o,t){var a=t(307);r.exports=a},function(r,o,t){t(308);var a=t(9);r.exports=a.Object.entries},function(r,o,t){var a=t(5),u=t(309).entries;a({target:"Object",stat:!0},{entries:function(d){return u(d)}})},function(r,o,t){var a=t(14),u=t(52),d=t(28),c=t(59).f,p=function(m){return function(h){for(var b,y=d(h),v=u(y),w=v.length,x=0,_=[];w>x;)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(`<div class="w-e-menu" data-title="\u52A0\u7C97">
  652. <i class="w-e-icon-bold"></i>
  653. </div>`);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('<div class="w-e-menu" data-title="\u6807\u9898"><i class="w-e-icon-header"></i></div>'),M={width:100,title:"\u8BBE\u7F6E\u6807\u9898",type:"list",list:[{$elem:v.default("<h1>H1</h1>"),value:"<h1>"},{$elem:v.default("<h2>H2</h2>"),value:"<h2>"},{$elem:v.default("<h3>H3</h3>"),value:"<h3>"},{$elem:v.default("<h4>H4</h4>"),value:"<h4>"},{$elem:v.default("<h5>H5</h5>"),value:"<h5>"},{$elem:v.default("<p>"+k.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"</p>"),value:"<p>"}],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!=="<p>"&&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('<div class="w-e-menu" data-title="\u94FE\u63A5"><i class="w-e-icon-link"></i></div>');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",'<a href="'+L+'" target="_blank">'+T+"</a>")}function N(){if(h.default(v)){M();var T=_.text();v.cmd.do("insertHTML","<span>"+T+"</span>")}}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:`<div>
  654. <input
  655. id="`+C+`"
  656. type="text"
  657. class="block"
  658. value="`+w+`"
  659. placeholder="`+v.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
  660. </td>
  661. <input
  662. id="`+g+`"
  663. type="text"
  664. class="block"
  665. value="`+x+`"
  666. placeholder="`+v.i18next.t("\u5982")+` https://..."/>
  667. </td>
  668. <div class="w-e-button-container">
  669. <button type="button" id="`+k+`" class="right">
  670. `+v.i18next.t("\u63D2\u5165")+`
  671. </button>
  672. <button type="button" id="`+A+'" class="gray right" style="display:'+S+`">
  673. `+v.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
  674. </button>
  675. </div>
  676. </div>`,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+"</"+x+">"}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("<span>"+m.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(x,_){var g=_.attr("href");return window.open(g,"_target"),!0}},{$elem:u.default("<span>"+m.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),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",`<img
  677. src=`+(A==null?void 0:A.getAttribute("src"))+`
  678. style=`+(A==null?void 0:A.getAttribute("style"))+">")}else{var S=_.text();x.cmd.do("insertHTML","<span>"+S+"</span>")}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(`<div class="w-e-menu" data-title="\u659C\u4F53">
  679. <i class="w-e-icon-italic"></i>
  680. </div>`);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(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
  681. <i class="w-e-icon-underline"></i>
  682. </div>`);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(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
  683. <i class="w-e-icon-strikethrough"></i>
  684. </div>`);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(`<div class="w-e-menu" data-title="\u5B57\u4F53">
  685. <i class="w-e-icon-font"></i>
  686. </div>`),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(`<p style="font-family:'`+v+`'">`+w+"</p>"),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(`<div class="w-e-menu" data-title="\u5B57\u53F7">
  687. <i class="w-e-icon-text-heigh"></i>
  688. </div>`),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('<p style="font-size:'+p+'">'+m.name+"</p>"),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('<div class="w-e-menu" data-title="\u5BF9\u9F50"><i class="w-e-icon-paragraph-left"></i></div>'),k={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:h.default(`<p>
  689. <i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
  690. `+_.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+`
  691. </p>`),value:"left"},{$elem:h.default(`<p>
  692. <i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
  693. `+_.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+`
  694. </p>`),value:"center"},{$elem:h.default(`<p>
  695. <i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
  696. `+_.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+`
  697. </p>`),value:"right"},{$elem:h.default(`<p>
  698. <i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
  699. `+_.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+`
  700. </p>`),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(`<div class="w-e-menu" data-title="\u5F15\u7528">
  701. <i class="w-e-icon-quotes-left"></i>
  702. </div>`);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("<blockquote></blockquote>");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(`<div class="w-e-menu" data-title="\u80CC\u666F\u8272">
  703. <i class="w-e-icon-paint-brush"></i>
  704. </div>`),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('<i style="color:'+k+';" class="w-e-icon-paint-brush"></i>'),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(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
  705. <i class="w-e-icon-pencil2"></i>
  706. </div>`),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('<i style="color:'+C+';" class="w-e-icon-pencil2"></i>'),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("<span>&#8203;</span>").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(`<div class="w-e-menu" data-title="\u89C6\u9891">
  707. <i class="w-e-icon-play"></i>
  708. </div>`);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:`<div class="w-e-up-video-container">
  709. <div id="`+A+`" class="w-e-up-btn">
  710. <i class="w-e-icon-upload2"></i>
  711. </div>
  712. <div style="display:none;">
  713. <input id="`+k+`" type="file" accept="video/*"/>
  714. </div>
  715. </div>`,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:`<div>
  716. <input
  717. id="`+g+`"
  718. type="text"
  719. class="block"
  720. placeholder="`+v.i18next.t("\u5982")+`\uFF1A<iframe src=... ></iframe>"/>
  721. </td>
  722. <div class="w-e-button-container">
  723. <button type="button" id="`+C+`" class="right">
  724. `+v.i18next.t("\u63D2\u5165")+`
  725. </button>
  726. </div>
  727. </div>`,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(T<Ee)return void re.push("\u3010"+se+"\u3011"+N("\u5927\u4E8E")+" "+T+"M");X.push(Z)}}),re.length)return void M.customAlert(N("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
  728. `+re.join(`
  729. `),"warning");if(X.length===0)return void M.customAlert(N("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");if(W&&typeof W=="function")return void W(X,(0,c.default)(A=this.insertVideo).call(A,this));var pe=new FormData;if((0,p.default)(X).call(X,function(Z,se){var Ee=L||Z.name;X.length>1&&(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",'<p data-we-video-p="true"><video src="'+C+'" controls="controls" style="max-width:100%"></video></p><p>&#8203</p>'):k.cmd.do("insertHTML",'<video src="'+C+'" controls="controls" style="max-width:100%"></video>'+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("<span class='w-e-icon-trash-o'></span>"),onClick:function(g,C){return C.remove(),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(g,C){return C.attr("width","100%"),C.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(g,C){return C.attr("width","50%"),C.removeAttr("height"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(g,C){return C.attr("width","30%"),C.removeAttr("height"),!0}},{$elem:u.default("<span>"+y("\u91CD\u7F6E")+"</span>"),onClick:function(g,C){return C.removeAttr("width"),C.removeAttr("height"),!0}},{$elem:u.default("<span>"+y("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(g,C){return c.default(C,"left"),!0}},{$elem:u.default("<span>"+y("menus.justify.\u5C45\u4E2D")+"</span>"),onClick:function(g,C){return c.default(C,"center"),!0}},{$elem:u.default("<span>"+y("menus.justify.\u9760\u53F3")+"</span>"),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('<div class="w-e-menu" data-title="\u56FE\u7247"><i class="w-e-icon-image"></i></div>'),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<w.length;x++)if(w[x]==="Files")return!0;return!1}function m(b,y){if(p(y,b)||!c(y,b)){var v=u.getPasteImgs(b);v.length&&new d.default(y).uploadImg(v)}}function h(b){b.txt.eventHooks.pasteEvents.unshift(function(y){m(y,b)})}o.default=h},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(2).__importDefault(t(96));function u(d){function c(p){var m=p.dataTransfer&&p.dataTransfer.files;m&&m.length&&new a.default(d).uploadImg(m)}d.txt.eventHooks.dropEvents.push(c)}o.default=u},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(31)),c=a(t(355));(0,u.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var p=t(2).__importDefault(t(3));t(360);var m=t(6);function h(x,_,g,C,k){x.attr("style","width:"+_+"px; height:"+g+"px; left:"+C+"px; top:"+k+"px;")}function b(x,_){var g=p.default(`<div class="w-e-img-drag-mask">
  730. <div class="w-e-img-drag-show-size"></div>
  731. <div class="w-e-img-drag-rb"></div>
  732. </div>`);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 {
  733. overflow: hidden;
  734. }
  735. .w-e-img-drag-mask {
  736. position: absolute;
  737. z-index: 1;
  738. border: 1px dashed #ccc;
  739. box-sizing: border-box;
  740. }
  741. .w-e-img-drag-mask .w-e-img-drag-rb {
  742. position: absolute;
  743. right: -5px;
  744. bottom: -5px;
  745. width: 16px;
  746. height: 16px;
  747. border-radius: 50%;
  748. background: #ccc;
  749. cursor: se-resize;
  750. }
  751. .w-e-img-drag-mask .w-e-img-drag-show-size {
  752. min-width: 110px;
  753. height: 22px;
  754. line-height: 22px;
  755. font-size: 14px;
  756. color: #999;
  757. position: absolute;
  758. left: 0;
  759. top: 0;
  760. background-color: #999;
  761. color: #fff;
  762. border-radius: 2px;
  763. padding: 0 5px;
  764. }
  765. `,""]),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("<span class='w-e-icon-trash-o'></span>"),onClick:function(_,g){return _.selection.createRangeByElem(g),_.selection.restoreSelection(),_.cmd.do("delete"),!0}},{$elem:u.default("<span>30%</span>"),onClick:function(_,g){return g.attr("width","30%"),g.removeAttr("height"),!0}},{$elem:u.default("<span>50%</span>"),onClick:function(_,g){return g.attr("width","50%"),g.removeAttr("height"),!0}},{$elem:u.default("<span>100%</span>"),onClick:function(_,g){return g.attr("width","100%"),g.removeAttr("height"),!0}}];x.push({$elem:u.default("<span>"+b("\u91CD\u7F6E")+"</span>"),onClick:function(_,g){return g.removeAttr("width"),g.removeAttr("height"),!0}}),w.attr("data-href")&&x.push({$elem:u.default("<span>"+b("\u67E5\u770B\u94FE\u63A5")+"</span>"),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'<div class="'+q+'" data-title="'+K+`">
  766. <div id="`+g+`" class="w-e-up-btn">
  767. <i class="`+W+`"></i>
  768. </div>
  769. <div style="display:none;">
  770. <input id="`+C+'" type="file" '+T+' accept="'+L+`"/>
  771. </div>
  772. </div>`},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=[`<input
  773. id="`+k+`"
  774. type="text"
  775. class="block"
  776. placeholder="`+N("\u56FE\u7247\u5730\u5740")+'"/>'];x.showLinkImgAlt&&j.push(`
  777. <input
  778. id="`+A+`"
  779. type="text"
  780. class="block"
  781. placeholder="`+N("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),x.showLinkImgHref&&j.push(`
  782. <input
  783. id="`+S+`"
  784. type="text"
  785. class="block"
  786. placeholder="`+N("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');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:`<div>
  787. `+j.join("")+`
  788. <div class="w-e-button-container">
  789. <button type="button" id="`+M+'" class="right">'+N("\u63D2\u5165","")+`</button>
  790. </div>
  791. </div>`,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(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
  792. <i class="w-e-icon-indent-increase"></i>
  793. </div>`),g={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:p.default(`<p>
  794. <i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
  795. `+w.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`
  796. <p>`),value:"increase"},{$elem:p.default(`<p>
  797. <i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
  798. `+w.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`
  799. <p>`),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(`<div class="w-e-menu" data-title="\u8868\u60C5">
  800. <i class="w-e-icon-happy"></i>
  801. </div>`);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"?"":'<span title="'+C.alt+`">
  802. <img class="eleImg" data-emoji="`+C.alt+'" style src="'+C.src+'" alt="['+C.alt+`]">
  803. </span>`}),g=(0,c.default)(g).call(g,function(C){return C!==""})):g=(0,d.default)(_=w.content).call(_,function(C){return'<span class="eleImg" title="'+C+'">'+C+"</span>"}),g.join("").replace(/&nbsp;/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:"<div>"+v(w)+"</div>",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):"<span>"+C.html()+"</span>",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(`<div class="w-e-menu" data-title="\u884C\u9AD8">
  804. <i class="w-e-icon-row-height"></i>
  805. </div>`),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<z.length;pe++)if(h.default(z[pe]).getNodeName()==="P"){X=pe;break}if(X===0)return;for(var ue=0;ue!==X;)z.shift(),ue++}return this.setRange(z[0],z[z.length-1]),(0,d.default)(z).call(z,function(te){T=te.getAttribute("style"),L=T?T.split(";"):[],H=C.styleProcessing(L),h.default(te).getNodeName()==="P"&&_&&(H+=_?"line-height:"+_+";":""),P?h.default(te).css("line-height",_):M+="<"+h.default(te).getNodeName().toLowerCase()+' style="'+H+'">'+te.innerHTML+"</"+h.default(te).getNodeName().toLowerCase()+">"}),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()+">":"<"+h.default(R).getNodeName().toLowerCase()+' style="'+H+'">'+R.innerHTML+"</"+h.default(R).getNodeName().toLowerCase()+">",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().toLowerCase()+">",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("<span>"+h.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,d.default)(b).call(b,function(v){y.itemList.push({$elem:c.default("<span>"+v+"</span>"),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(`<div class="w-e-menu" data-title="\u64A4\u9500">
  806. <i class="w-e-icon-undo"></i>
  807. </div>`);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(`<div class="w-e-menu" data-title="\u6062\u590D">
  808. <i class="w-e-icon-redo"></i>
  809. </div>`);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('<div class="w-e-menu" data-title="\u8868\u683C"><i class="w-e-icon-table2"></i></div>');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:`<div>
  810. <div class="w-e-table">
  811. <span>`+k("\u521B\u5EFA")+`</span>
  812. <input id="`+_+`" type="text" class="w-e-table-input" value="5"/></td>
  813. <span>`+k(C+"\u884C")+`</span>
  814. <input id="`+x+`" type="text" class="w-e-table-input" value="5"/></td>
  815. <span>`+(k(C+"\u5217")+k(C+"\u7684")+k(C+"\u8868\u683C"))+`</span>
  816. </div>
  817. <div class="w-e-button-container">
  818. <button type="button" id="`+g+'" class="right">'+k("\u63D2\u5165")+`</button>
  819. </div>
  820. </div>`,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 {
  821. display: flex;
  822. }
  823. .w-e-table .w-e-table-input {
  824. width: 40px;
  825. text-align: center!important;
  826. margin: 0 5px;
  827. }
  828. `,""]),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<m;v++){y="";for(var w=0;w<h;w++)y+=v===0?"<th></th>":"<td></td>";b=b+"<tr>"+y+"</tr>"}return'<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+b+"</tbody></table>"+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("<span>"+S("\u5220\u9664\u8868\u683C")+"</span>"),onClick:function(I,N){return I.selection.createRangeByElem(N),I.selection.restoreSelection(),I.cmd.do("insertHTML",m.EMPTY_P),!0}},{$elem:u.default("<span>"+S("\u6DFB\u52A0\u884C")+"</span>"),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("<span>"+S("\u5220\u9664\u884C")+"</span>"),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("<span>"+S("\u6DFB\u52A0\u5217")+"</span>"),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("<span>"+S("\u5220\u9664\u5217")+"</span>"),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("<span>"+S("\u8BBE\u7F6E\u8868\u5934")+"</span>"),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("<span>"+S("\u53D6\u6D88\u8868\u5934")+"</span>"),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==="<br>")&&(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;N<M;N++){var R=document.createElement("td");I.appendChild(R)}return(0,c.default)(S).call(S,k+1,0,I),_(A,S),h.default(A.parentNode)}function y(C,k){for(var A=g(C),S=(0,d.default)(Array.prototype).apply(A.children),M=function(N){var R,T=[];for((0,p.default)(R=(0,m.default)(S[N].children)).call(R,function(P){T.push(P)});S[N].children.length!==0;)S[N].removeChild(S[N].children[0]);var L=h.default(T[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,c.default)(T).call(T,k+1,0,L);for(var H=0;H<T.length;H++)S[N].appendChild(T[H])},I=0;I<S.length;I++)M(I);return _(A,S),h.default(A.parentNode)}function v(C,k){var A=g(C),S=(0,d.default)(Array.prototype).apply(A.children);return(0,c.default)(S).call(S,k,1),_(A,S),h.default(A.parentNode)}function w(C,k){for(var A=g(C),S=(0,d.default)(Array.prototype).apply(A.children),M=function(N){var R,T=[];for((0,p.default)(R=(0,m.default)(S[N].children)).call(R,function(H){T.push(H)});S[N].children.length!==0;)S[N].removeChild(S[N].children[0]);(0,c.default)(T).call(T,k,1);for(var L=0;L<T.length;L++)S[N].appendChild(T[L])},I=0;I<S.length;I++)M(I);return _(A,S),h.default(A.parentNode)}function x(C,k,A){for(var S=g(C),M=(0,d.default)(Array.prototype).apply(S.children),I=M[k].children,N=document.createElement("tr"),R=function(L){var H,P=document.createElement(A),j=I[L];(0,p.default)(H=(0,m.default)(j.childNodes)).call(H,function(z){P.appendChild(z)}),N.appendChild(P)},T=0;T<I.length;T++)R(T);return(0,c.default)(M).call(M,k,1,N),_(S,M),h.default(S.parentNode)}function _(C,k){for(;C.children.length!==0;)C.removeChild(C.children[0]);for(var A=0;A<k.length;A++)C.appendChild(k[A])}function g(C){var k=C.elems[0].children[0];return k.nodeName==="COLGROUP"&&(k=C.elems[0].children[C.elems[0].children.length-1]),k}o.default={ProcessingRow:b,ProcessingCol:y,DeleteRow:v,DeleteCol:w,setTheHeader:x}},function(r,o,t){var a=t(396);r.exports=a},function(r,o,t){t(50),t(397);var a=t(9);r.exports=a.Array.from},function(r,o,t){var a=t(5),u=t(398);a({target:"Array",stat:!0,forced:!t(114)(function(d){Array.from(d)})},{from:u})},function(r,o,t){var a=t(39),u=t(29),d=t(113),c=t(111),p=t(34),m=t(69),h=t(112);r.exports=function(b){var y,v,w,x,_,g,C=u(b),k=typeof this=="function"?this:Array,A=arguments.length,S=A>1?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'<table border="0" width="100%" cellpadding="0" cellspacing="0">'+p.default(b).html()+"</table>"},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==="<br>"}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(/<pre[\s|\S]+?\/pre>/g);return M===null||(0,d.default)(M).call(M,function(I){S=S.replace(I,I.replace(/<\/code><code>/g,`
  829. `).replace(/<br>/g,""))}),S}function A(S){var M,I=S.match(/<span\sclass="hljs[\s|\S]+?\/span>/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(/<span\sclass="hljs[^>]+>/,"")).replace(/<\/span>/,"")}),R=0;R<I.length;R++)S=S.replace(I[R],N[R]);return A(S)}}o.formatCodeHtml=x;var _=function(g){function C(k){var A=this,S=m.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');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("<code>"+k+"</code>");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:`<div>
  830. <select name="" id="`+C+`">
  831. `+(0,d.default)(_=v.config.languageType).call(_,function(I){return"<option "+(x==I?"selected":"")+' value ="'+I+'">'+I+"</option>"})+`
  832. </select>
  833. <textarea id="`+g+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+w.replace(/&quot;/g,'"')+`</textarea>
  834. <div class="w-e-button-container">
  835. <button type="button" id="`+k+'" class="right">'+(h.default(v)?M("\u4FEE\u6539"):M("\u63D2\u5165"))+`</button>
  836. </div>
  837. </div>`,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:"<xmp>"+T+"</xmp>",T)return!h.default(v)&&(A('<pre><code class="'+R+'">'+I+"</code></pre>"),!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("<span>"+x("\u5220\u9664\u4EE3\u7801")+"</span>"),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('<div class="w-e-menu" data-title="\u5206\u5272\u7EBF"><i class="w-e-icon-split-line"></i></div>');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="<hr/>"+m.EMPTY_P;p.UA.isFirefox&&(v="<hr/><p></p>"),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("<span>"+m.i18next.t("menus.panelMenus.\u5220\u9664")+"</span>"),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(`<div class="w-e-menu" data-title="\u5F85\u529E\u4E8B\u9879">
  838. <i class="w-e-icon-checkbox-checked"></i>
  839. </div>`);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("<p></p>");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("<br>"))),oe.insertAfter(I),Z&&(Z==null?void 0:Z.textContent)!==""?M.moveCursor(te):((Z==null?void 0:Z.nodeName)!=="BR"&&p.default("<br>").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("<p></p>"),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("<div></div>"),S=u.default("<div></div>"),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("<div></div>")).attr("contenteditable","true").css("width","100%").css("height","100%");var I,N=y.config.placeholder;(I=N!==p.default.placeholder?u.default("<div>"+N+"</div>"):u.default("<div>"+k.t(N)+"</div>")).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("<div></div>"),text:u.default("<div></div>")};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!=="<br>"&&y!=="<br/>"||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(`<div class="w-e-menu" data-title="\u5168\u5C4F">
  840. <i class="`+p+`"></i>
  841. </div>`);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 {
  842. position: fixed;
  843. width: 100%!important;
  844. height: 100%!important;
  845. left: 0;
  846. top: 0;
  847. }
  848. `,""]),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<S.length;A++){var M=S[A],I=M[0],N=M[1];I==="add"?(0,d.default)(N).call(N,function(R){k.target.removeChild(R)}):p(k,N)}}function h(k){var A=k.target;k.oldValue==null?A.removeAttribute(k.attr):A.setAttribute(k.attr,k.oldValue)}function b(k){k.target.textContent=k.oldValue}(0,u.default)(o,"__esModule",{value:!0}),o.restore=o.revoke=void 0;var y={node:m,text:b,attr:h};function v(k){for(var A=k.length-1;A>-1;A--){var S=k[A];y[S.type](S)}}function w(k){for(var A=0,S=(0,c.default)(k.nodes);A<S.length;A++){var M=S[A],I=M[0],N=M[1];I==="add"?p(k,N):(0,d.default)(N).call(N,function(R){R.parentNode.removeChild(R)})}}function x(k){k.target.textContent=k.value}function _(k){k.target.setAttribute(k.attr,k.value)}o.revoke=v;var g={node:w,text:x,attr:_};function C(k){for(var A=0,S=k;A<S.length;A++){var M=S[A];g[M.type](M)}}o.restore=C},function(r,o,t){(0,t(0)(t(1)).default)(o,"__esModule",{value:!0});var a=t(434),u=function(){function d(c){this.editor=c,this.data=new a.TailChain}return d.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},d.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},d.prototype.revoke=function(){var c=this.data.prev();return!!c&&(this.editor.$textElem.html(c),!0)},d.prototype.restore=function(){var c=this.data.next();return!!c&&(this.editor.$textElem.html(c),!0)},d}();o.default=u},function(r,o,t){var a=t(0),u=a(t(1)),d=a(t(91));(0,u.default)(o,"__esModule",{value:!0}),o.TailChain=void 0;var c=function(){function p(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return p.prototype.resetMax=function(m){(m=Math.abs(m))&&(this.max=m)},(0,u.default)(p.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),p.prototype.insertLast=function(m){var h;for(this.isRe&&((0,d.default)(h=this.data).call(h,this.point+1),this.isRe=!1),this.data.push(m);this.max&&this.size>this.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('<div class="w-e-content-mantle" style="z-index:'+x+`">
  849. <div class="w-e-content-preview w-e-text">`+_+`</div>
  850. </div>`),m.$textContainerElem.append(h);var g=m.zIndex.get("menu");b=c.default('<div class="w-e-menue-mantle" style="z-index:'+g+'"></div>'),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 {
  851. width: 100%;
  852. height: 100%;
  853. overflow-y: auto;
  854. }
  855. .w-e-content-mantle .w-e-content-preview {
  856. width: 100%;
  857. min-height: 100%;
  858. padding: 0 10px;
  859. line-height: 1.5;
  860. }
  861. .w-e-content-mantle .w-e-content-preview img {
  862. cursor: default;
  863. }
  864. .w-e-content-mantle .w-e-content-preview img:hover {
  865. box-shadow: none;
  866. }
  867. .w-e-menue-mantle {
  868. position: absolute;
  869. height: 100%;
  870. width: 100%;
  871. top: 0;
  872. left: 0;
  873. }
  874. `,""]),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<arguments.length;t++)for(var a in o=arguments[t])Object.prototype.hasOwnProperty.call(o,a)&&(r[a]=o[a]);return r},qf=kn({name:"fcEditor",props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:Gf++}},watch:{disabled:function(){this.enable()},modelValue:function(r){r!==this.editor.txt.html()&&this.editor.txt.html(r)}},methods:{enable:function(){this.disabled?this.editor.disable():this.editor.enable()},result:function(){this.$emit("update:modelValue",this.editor.txt.html())}},mounted:function(){var r=this;this.$nextTick(function(){r.editor=new Qf("#editor".concat(r.uni)),r.editor.config.zIndex=2,r.config&&$f(r.editor.config,r.config),r.init&&r.init(r.editor),r.editor.create(),r.enable(),r.editor.txt.html(r.modelValue)})},render:function(){var r=function(o){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?mu(Object(a),!0).forEach(function(u){Yf(o,u,a[u])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):mu(Object(a)).forEach(function(u){Object.defineProperty(o,u,Object.getOwnPropertyDescriptor(a,u))})}return o}({},this.$attrs);return delete r.id,We("div",Kh(r,{onInput:this.result,id:"editor".concat(this.uni),style:"line-height: normal;"}),null)},beforeDestroy:function(){this.editor&&this.editor.destroy(),this.editor=null}});const gu=(r,o)=>{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};