form-create-designer
Version:
好用的Vue低代码可视化表单设计器,可以通过拖拽的方式快速创建表单,提高开发者对表单的开发效率。
1,057 lines • 1.03 MB
JavaScript
/*!
* FormCreate 可视化表单设计器
* form-create-designer v3.3.0-oem
* (c) 2021-2025 xaboy
* Github https://github.com/xaboy/form-create-designer
* Site https://form-create.com/
* Released under the MIT License.
*/
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.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{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;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{width:auto;border:0!important;background:#7e7}.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}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;left:0;right:0;top:-50px;bottom:0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.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{position:relative;overflow:hidden;background:#fff}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-gutter-filler,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-vscrollbar{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;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{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber,.CodeMirror-scroll,.CodeMirror-sizer{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;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}.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}._fd-fn{display:flex;flex-direction:column;position:relative;width:100%;height:100%}._fd-fn .el-button{position:absolute;bottom:3px;right:5px;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}._fd-fn-editor{display:flex;flex:1;width:100%;overflow:auto}._fd-fn-editor .CodeMirror{height:100%;width:100%}._fd-fn-tip{color:#000;font-family:monospace;direction:ltr}._fd-fn-tip .cm-keyword{color:#708;line-height:24px;white-space:nowrap;overflow-x:auto}._fd-fn-tip .cm-keyword::-webkit-scrollbar{width:0;height:0;background-color:transparent}._fd-fn-ind{background-color:#f7f7f7;width:29px;height:24px;display:inline-block;margin-right:4px;border-right:1px solid #ddd;float:left}._fd-fn-arg{text-decoration:underline;cursor:pointer}._fd-fn-arg i{font-size:12px;color:#3073ff}._fd-event .el-button{font-weight:400;width:100%;border-color:#2e73ff;color:#2e73ff}._fd-event .el-badge{width:100%}._fd-event-dialog .el-dialog__body{padding:10px 20px}._fd-event-con .el-main{padding:0}._fd-event-l,._fd-event-r{display:flex;flex-direction:column;flex:1;height:100%;border:1px solid #ececec}._fd-event-dropdown .el-dropdown-menu{max-height:500px;overflow:auto}._fd-event-head{display:flex;padding:5px 15px;border-bottom:1px solid #eee;background:#f8f9ff;align-items:center}._fd-event-head .el-button.is-link{color:#2f73ff}._fd-event-r{border-left:0}._fd-event-r ._fd-event-head{justify-content:space-between}._fd-event-l>.el-main,._fd-event-r>.el-main{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0;width:100%}._fd-event-item,._fd-event-r>.el-main{flex-direction:column}._fd-event-item{display:flex;justify-content:center;max-width:250px;font-size:14px;overflow:hidden;white-space:pre-wrap}._fd-event-item ._fd-label{font-size:12px;color:#aaa}._fd-event-l .el-menu{padding:0 10px 5px;border-right:0;width:100%;border-top:0;overflow:auto}._fd-event-l .el-menu-item.is-active{background:#e4e7ed;color:#303133}._fd-event-l .el-menu-item{height:auto;line-height:1em;border:1px solid #ececec;border-radius:5px;padding:0;margin-top:5px}._fd-event-method{display:flex;flex-direction:column;justify-content:center;width:225px;font-size:14px;font-family:monospace;color:#9d238c;overflow:hidden;white-space:pre-wrap}._fd-event-method ._fd-label{margin-top:4px;color:#aaa;font-size:12px}._fd-event-method>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-event-method>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:#000;margin-left:10px}._fd-event-title{display:flex;align-items:center;justify-content:space-between;width:100%;padding:10px 0}._fd-event-title .fc-icon{margin-right:6px;font-size:18px;color:#282828}._fd-event-title .el-input{width:200px}._fd-event-title .el-input__wrapper{box-shadow:none}._fd-event-title .el-menu-item.is-active i{color:#282828}._fd-event-con .CodeMirror{height:100%;width:100%}._fd-event-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-type-select{cursor:pointer}._fd-type-select.is-disabled{cursor:default}._fd-type-select .fc-icon{font-size:14px}._fd-type-select-pop{max-height:500px;overflow:auto}._fd-type-select-pop .fc-icon{font-size:14px}._fd-struct,._fd-struct .el-badge{width:100%}._fd-struct .el-button{font-weight:400;width:100%;border-color:#2e73ff;color:#2e73ff}._fd-struct-con .CodeMirror{height:500px}._fd-struct-con .el-dialog__body{padding:0}._fd-props-input{display:inline-block;width:16px}._fd-props-input .fc-icon{cursor:pointer}._fd-language-config{height:100%;overflow:auto}._fd-lc-body,._fd-lc-header{padding:0 12px}._fd-lc-body{overflow:auto}._fd-lc-header{display:flex;justify-content:flex-end;margin-bottom:12px}._fd-language-config .el-table__cell{height:34px}._fd-language-config ._fc-l-info{margin-bottom:12px}._fd-lc-handle{display:flex;align-items:center;justify-content:space-between;cursor:pointer}._fd-struct-editor{flex:1;width:100%}._fd-struct-editor>div{height:100%}._fc-json-preview{display:flex;width:100%;color:#262626}._fc-json-preview .CodeMirror{height:100%;font-size:12px}._fd-warning-pop{max-width:400px}._fd-warning-text{text-decoration:underline;text-decoration-style:dashed;cursor:help}._fd-drag-tool{position:relative;display:block;min-height:20px;box-sizing:border-box;padding:2px;outline:1px dashed var(--fc-tool-border-color);overflow:hidden;word-wrap:break-word;word-break:break-all;z-index:0}._fd-drag-tool ._fd-drag-tool{height:calc(100% - 6px);margin:3px}._fd-drag-tool+._fd-drag-tool{margin-top:5px}._fd-drag-tool.active{outline:1px solid #2e73ff}._fd-drag-tool.active>div>._fd-drag-btn{display:flex}._fd-drag-tool:not(.active):hover>div>._fd-drag-btn{display:flex!important;opacity:.7}._fd-drag-tool._fd-drop-hover ._fd-drag-box{padding-top:15px!important;padding-bottom:15px!important}._fd-drag-tool ._fd-drag-btn{display:none}._fd-drag-r{right:2px;top:calc(100% - 20px)}._fd-drag-l,._fd-drag-r{position:absolute;z-index:1904}._fd-drag-l{top:0;left:0}._fd-drag-btn{height:18px;width:18px;color:#fff;background-color:#2e73ff;text-align:center;line-height:20px;padding-bottom:1px;float:left;cursor:pointer;justify-content:center}._fd-drag-btn+._fd-drag-btn{margin-left:2px}._fd-drag-danger{background-color:#ff2e2e}._fd-drag-btn i{font-size:14px}._fd-drag-mask{z-index:1900;position:absolute;top:0;left:0;right:0;bottom:0}._fd-drag-tool:hover{outline-color:#2e73ff80;outline-style:solid;z-index:1}._fd-drag-tool:has(._fd-drag-tool:not(.active):hover,._fd-drag-tool.active:hover)>div>._fd-drag-btn{display:none!important}._fd-row,._fd-html-editor{width:100%}._fd-html-editor .el-button{font-weight:400;width:100%;border-color:#2e73ff;color:#2e73ff}._fd-html-editor-con .CodeMirror{height:450px}._fd-html-editor-con .CodeMirror-line{line-height:16px!important;font-size:13px!important}._fd-html-editor-con .CodeMirror-lint-tooltip{z-index:2021!important}._fd-html-editor-con .el-dialog__body{padding:0 20px}._fd-fn-input,._fd-fn-input .el-badge{width:100%}._fd-fn-input .el-button{font-weight:400;width:100%;border-color:#2e73ff;color:#2e73ff}._fd-fn-input-dialog .CodeMirror-lint-tooltip{z-index:2021!important}._fd-fn-input-dialog .el-dialog__body{padding:0;height:500px}._fd-gfc,._fd-gfc .el-badge{width:100%}._fd-gfc .el-button{font-weight:400;width:100%;border-color:#2e73ff;color:#2e73ff}._fd-gfc-dialog .el-tabs__header{margin-bottom:0}._fd-gfc-dialog .form-create{margin-top:15px}._fd-gfc-con .CodeMirror{height:100%;width:100%}._fd-gfc-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-config-item{display:flex;width:100%;flex-direction:column;font-size:12px;color:#666;margin-bottom:10px}._fd-ci-head{justify-content:space-between}._fd-ci-head,._fd-ci-label{display:flex;align-items:center}._fd-ci-label{font-size:12px;color:#262626}._fd-ci-con{display:flex;align-items:center;justify-content:flex-end;min-width:150px}._fd-ci-label.is-arrow{cursor:pointer}._fd-ci-append{display:flex;flex-direction:column;background:#f5f5f5;margin:5px 3px 3px;padding:4px}._fd-ci-label i{font-size:12px;font-weight:600}._fd-ci-label i.down{transform:rotate(-180deg)}._fd-ci-info{font-size:12px;padding-right:5px}._fd-field-input{width:100%}._fd-field-input>.fc-icon{position:absolute;right:28px;top:1px;z-index:3;color:#a8abb2;cursor:pointer;width:24px;height:24px;text-align:center}._fd-field-input>.fc-icon:hover{color:#2e73ff}._fd-field-input .el-input-group__append{width:25px;padding:0;margin:0;color:#606266;cursor:pointer}._fd-fn-list,._fd-fn-list .el-badge{width:100%}._fd-fn-list .el-button{font-weight:400;width:100%;border-color:#2e73ff;color:#2e73ff}._fd-fn-list-dialog .el-dialog__body{padding:10px 20px}._fd-fn-list-con .el-main{padding:0}._fd-fn-list-l,._fd-fn-list-r{display:flex;flex-direction:column;flex:1;height:100%;border:1px solid #ececec}._fd-fn-list-head{display:flex;padding:5px 15px;border-bottom:1px solid #eee;background:#f8f9ff;align-items:center}._fd-fn-list-head .el-button.is-link{color:#2f73ff}._fd-fn-list-r{border-left:0}._fd-fn-list-r ._fd-fn-list-head{justify-content:flex-end}._fd-fn-list-l>.el-main,._fd-fn-list-r>.el-main{display:flex;flex-direction:row;flex:1;flex-basis:auto;box-sizing:border-box;min-width:0;width:100%}._fd-fn-list-r>.el-main{flex-direction:column}._fd-fn-list-l .el-menu{padding:0 10px 5px;border-right:0;width:100%;border-top:0;overflow:auto}._fd-fn-list-l .el-menu-item.is-active{background:#e4e7ed;color:#303133}._fd-fn-list-l .el-menu-item{height:auto;line-height:1em;border:1px solid #ececec;border-radius:5px;padding:0;margin-top:5px}._fd-fn-list-method{display:flex;flex-direction:column;justify-content:center;padding:10px 20px 10px 0;font-size:14px;line-height:1em;font-family:monospace;width:100%;overflow:hidden;white-space:pre-wrap;position:relative;box-sizing:border-box}._fd-fn-list-method ._fd-label{margin-top:4px;color:#aaa;font-size:12px}._fd-fn-list-method ._fd-dot{position:absolute;top:50%;margin-top:-3px;right:16px;display:block;width:6px;height:6px;background:#00c050;border-radius:15px}._fd-fn-list-method-info>span:first-child,._fd-fn-list-method>span:first-child{color:#9d238c}._fd-fn-list-method-info>span:first-child>span,._fd-fn-list-method>span:first-child>span{color:#000;margin-left:10px}._fd-fn-list-con .CodeMirror{height:100%;width:100%}._fd-fn-list-con .CodeMirror-wrap pre.CodeMirror-line{padding-left:20px}._fd-table-view{overflow:auto}._fd-table-view-cell{min-height:50px;height:100%;position:relative}._fd-table-row-handle{left:0;bottom:-4px;width:100%;height:8px;cursor:row-resize}._fd-table-col-handle,._fd-table-row-handle{position:absolute;z-index:1;background-color:transparent}._fd-table-col-handle{top:0;right:-4px;width:8px;height:100%;cursor:col-resize}._fd-table-view-cell.selected>._fd-drag-tool{background-color:#2e73ff0d;outline:1px solid #2e73ff}._fd-table-view-cell>._fd-drag-tool{height:100%;width:100%;min-width:unset;border:0;outline:0;margin:0;max-width:100%;max-height:100%}._fd-table-view-cell>._fd-drag-tool>._fd-tableCell-drag{min-height:80px}._fd-table-view-btn{flex-direction:column;padding:0}._fd-table-view-btn .fc-icon{width:18px;color:#fff;font-size:16px}._fd-table-view-icon{color:#fff;display:flex;justify-content:center;width:100%;height:100%;margin-top:1px}._fd-table-view>table{width:100%;height:100%;overflow:hidden;table-layout:fixed;border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;border-collapse:collapse}._fd-table-view tr{min-height:50px}._fd-table-view td{padding:0;min-height:50px;min-width:80px;position:relative;box-sizing:border-box;overflow-wrap:break-word;white-space:nowrap;border:1px solid #ebeef5}._fd-tableCell-drag{height:100%}._fd-table-view.is-mini td{padding:0;min-height:12px}._fd-table-view.is-mini .el-form-item{padding:0;margin:0}._fd-table-context-menu{position:fixed;display:block;background-color:#fff;border:1px solid #ddd;z-index:1905;min-width:120px;font-size:14px;box-shadow:0 1px 10px #0000001a;border-radius:6px;padding:6px 0;color:#666}._fd-table-context-menuitem{line-height:22px;padding:5px 16px;cursor:pointer}._fd-table-context-menuitem:hover{background-color:#f0f0f0}._fd-table-context-menu-separator{height:1px;background-color:#eee;margin:6px 0}._fc-table{overflow:auto}._fc-table>table{width:100%;height:100%;overflow:hidden;table-layout:fixed;border-bottom:1px solid #ebeef5;border-right:1px solid #ebeef5;border-color:#ebeef5 currentcolor currentcolor #ebeef5;border-style:solid none none solid;border-width:1px 0 0 1px;border-collapse:collapse}._fc-table td,._fc-table tr{min-height:50px}._fc-table td{padding:5px;min-width:80px;position:relative;box-sizing:border-box;overflow-wrap:break-word;overflow:hidden;border-bottom:0;border-right:0;border-color:currentcolor #ebeef5 #ebeef5 currentcolor;border-style:none solid solid none;border-width:0 1px 1px 0}._fc-table.is-mini td{padding:0;min-height:12px}._fc-table.is-mini .el-form-item{padding:0;margin:0}._fd-language-list{max-height:320px;padding-top:70px;overflow:auto}._fd-language-input .el-input-group__append{width:25px;padding:0;margin:0;color:#aaa;cursor:pointer}._fd-language-input.is-variable input{color:#2e73ff}._fd-language-header,._fd-language-item{display:flex;border-bottom:1px solid #ececec;padding:0 12px}._fd-language-header{font-weight:500;padding-top:10px;overflow:auto;color:#262626;position:absolute;top:0;left:0;right:0;background-color:#fff;flex-direction:column}._fd-language-item>div,._fd-language-name>div{flex:1;font-size:12px;padding:5px;min-width:70px}._fd-language-title{margin:6px 0}._fd-language-title .fc-icon{color:#2e73ff;cursor:pointer;font-size:14px}._fd-language-name{display:flex}._fd-language-name>div{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._fd-language-item{cursor:pointer}._fd-language-item:hover{color:#2e73ff;background-color:#ccdfff}._fd-language-popover{padding:0!important}._fd-validate{display:flex;flex-direction:column;width:100%}._fd-validate-btn{font-weight:400;width:100%;border-color:#2e73ff;color:#2e73ff}._fd-validate-pop .el-dropdown-menu__item{width:248px}._fd-validate-item{border-bottom:1px dashed #ececec;margin-bottom:10px}._fd-validate-item .el-col-12:first-child{padding-right:5px}._fd-validate-item .el-col-12+.el-col-12{padding-left:5px}._fd-validate-item .el-input-number{width:100%}._fd-validate-title{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:10px}._fd-validate-title>div{display:flex;align-items:center}._fd-validate-title>div>span{width:16px;height:16px;background:#ececec;text-align:center;font-size:12px;line-height:16px;border-radius:15px;margin-right:5px}._fd-validate-title i{cursor:pointer}._fd-validate-title i:hover{color:#ff2e2e}._fd-validate .append-msg{cursor:pointer}._fd-validate .el-input-group__append{padding:0 10px}._fd-required{display:flex;align-items:center;width:100%}._fd-required .el-input{margin-left:15px}._fd-required .el-switch{height:28px}._fd-value-input .el-input__validateIcon{display:none}._fd-value-input .el-select,._fd-value-input .el-select__wrapper{height:100%}._td-table-opt[data-v-27bd6a26]{width:100%}._td-table-opt .el-table[data-v-27bd6a26]{z-index:1}._td-table-opt-handle[data-v-27bd6a26]{display:flex;justify-content:space-between;align-items:center;padding-right:5px}._fd-tree-opt ._fd-tree-opt-btn{height:19px;width:18px;color:#fff;text-align:center;line-height:20px;padding-bottom:1px;float:left;cursor:pointer;justify-content:center;background-color:#2f73ff}._fd-tree-opt-node{display:flex;align-items:center}._fd-tree-opt-first{width:60px;margin-right:5px}._fd-tree-opt-last{width:165px}._fd-tree-opt-last._label{width:175px}._fd-tree-opt-last._label .el-input-group__append{width:65px}._fd-tree-opt ._fd-tree-opt-danger{background-color:#ff2d2e;border-radius:0 2px 2px 0}._fd-tree-opt .el-tree-node__content{margin-bottom:3px;height:28px}._fd-tree-opt .el-input__inner{border-right:0}._fd-tree-opt .el-input-group__append{width:90px;padding-right:2px;padding-left:1px;background:#fff}._fd-table-form{width:100%;border:1px solid #ececec;background:#fff}._fc-child-empty,._fd-table-form{min-height:130px}._fd-tf-wrap{display:flex;overflow:auto}._fd-tf-wrap>._fd-drag-tool{flex-shrink:0;display:flex;margin:2px;height:auto;overflow:auto}._fc-table-form{overflow:auto;color:#666}._fc-table-form .form-create td .el-form-item{margin-bottom:1px}._fc-table-form .form-create td .el-form-item.is-error{margin-bottom:22px}._fc-table-form .el-form-item__label,._fc-table-form .van-field__label{display:none!important}._fc-table-form .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fc-tf-head-idx,._fc-tf-idx{width:40px;min-width:40px;font-weight:500;text-align:center}._fc-tf-btn,._fc-tf-edit{width:70px;min-width:70px;text-align:center}._fc-tf-btn .fc-icon{cursor:pointer}._fc-table-form._fc-disabled ._fc-tf-btn .fc-icon,._fc-table-form._fc-disabled>.el-button{cursor:not-allowed}._fc-tf-table{width:100%;height:100%;overflow:hidden;table-layout:fixed;border:1px solid #ebeef5;border-bottom:0}._fc-table-form ._fc-tf-table>thead>tr>th{border:0;border-bottom:1px solid #ebeef5;height:40px;font-weight:500;padding:0 5px;box-sizing:border-box}._fc-table-form ._fc-tf-table>thead>tr>th+th{border-left:1px solid #ebeef5}._fc-table-form tr{min-height:50px}._fc-table-form ._fc-read-view{text-align:center;width:100%}._fc-table-form td{padding:5px;min-height:50px;min-width:80px;position:relative;box-sizing:border-box;overflow-wrap:break-word;overflow:hidden;border:0;border-bottom:1px solid #ebeef5}._fc-table-form td+td{border-left:1px solid #ebeef5}._fc-tf-table .el-cascader,._fc-tf-table .el-date-editor,._fc-tf-table .el-input-number,._fc-tf-table .el-select,._fc-tf-table .el-slider{width:100%}._fc-tf-head-required:before{content:"*";color:#f56c6c;margin-right:4px}._fc-signature{width:100%}._fc-signature-btn,._fc-signature-preview{width:100%;min-width:160px;height:88px;line-height:88px;font-size:14px;color:#c9ccd8;border-radius:4px;border:1px dashed #d4d7e0;text-align:center;background:#fff;position:relative;box-sizing:border-box}._fc-signature-btn{cursor:pointer}._fc-signature.disabled ._fc-signature-btn{cursor:not-allowed}._fc-signature-preview>img{display:inline-block;height:88px}._fc-signature-preview .icon-delete2{position:absolute;top:9px;right:9px;display:inline-block;line-height:14px;font-size:14px;cursor:pointer}._fc-signature-btn i{font-size:14px}._fc-signature-dialog .el-dialog__body{text-align:center}._fc-signature-pad{border-radius:4px;border:1px dashed #d4d7e0;background-image:linear-gradient(#fff 14px,transparent 0),linear-gradient(90deg,#fff 14px,#d4d7e0 0);background-size:15px 15px}._fc-title{width:100%;font-size:16px;font-weight:600;margin-top:1em;margin-bottom:16px}._fc-title.h1,._fc-title.h2{padding-bottom:.3em;border-bottom:1px solid #eee}._fc-title.h1{font-size:32px;line-height:1.2}._fc-title.h2{font-size:24px;line-height:1.225}._fc-title.h3{font-size:20px;line-height:1.43}._fc-title.h4{font-size:16px}._fc-title.h5{font-size:14px}._fc-title.h6{font-size:12px}._fd-tf-col ._fd-tf-con .el-form-item{margin-bottom:1px!important}._fd-tf-col{display:flex;flex-wrap:wrap;flex-direction:column;width:180px;flex-shrink:0}._fd-tf-con .el-form-item__label,._fd-tf-con .van-field__label{display:none!important}._fd-tf-con{display:flex;flex:1;width:100%}._fd-tf-con .el-form-item__content{display:flex;margin-left:0!important;width:100%!important}._fd-tf-title{height:40px;border-bottom:1px solid #ebeef5;margin-bottom:0;padding:0 5px;box-sizing:border-box}._fd-tf-required{color:#f56c6c;margin-right:4px}._fd-tf-con ._fc-l-item{display:flex;width:100%;margin-top:4px;flex-shrink:0}._fd-tf-con ._fc-l-item>*{display:none!important}._fd-tf-con .el-cascader,._fd-tf-con .el-date-editor,._fd-tf-con .el-input-number,._fd-tf-con .el-select,._fd-tf-con .el-slider{width:100%}._fd-tf-col:has(._fd-tf-col){width:auto!important}._fd-size-input{display:flex;align-items:center}._fd-size-input .el-input-number--small{width:122px}._fd-size-input .el-button{font-size:14px;padding:5px;margin-left:3px;width:25px}._fd-color-input{width:150px}._fd-color-input .el-input .el-color-picker{margin:0}._fd-color-input .el-input .el-input-group__append{padding:0;width:24px}._fd-color-input .el-input .el-color-picker__trigger{border-left:0;border-radius:0 3px 3px 0}._fd-box-size-input .el-form{display:grid;grid-template-columns:repeat(2,1fr);width:100%;grid-column-gap:10px}._fd-box-size-input .el-radio-group{width:100%}._fd-box-size-input .el-radio-button__inner{width:100%;padding:4px}._fd-box-size-input .el-radio-button{flex:1}._fd-box-size-input ._fd-size-input .el-input-number--small{width:100%}._fd-box-space-input{color:#000}._fd-box-space-input ._margin,._fd-box-space-input ._padding{width:100%;height:180px;background-color:#f2cea5;padding:40px 55px;box-sizing:border-box;position:relative}._fd-box-space-input ._margin,html.dark ._fd-box-space-input ._padding{background-color:#a9855c}._fd-box-space-input ._margin{width:100%;height:100px;background-color:#c6cf92}._fd-box-space-input ._fd-input{display:inline-block;width:30%;max-width:40px;height:20px;border:0;padding:0;margin:0;outline:0 none;text-align:center;font-size:12px;background-color:unset;text-decoration:underline}._fd-box-space-input ._fd-input:focus,._fd-box-space-input ._fd-input:hover{background-color:#ececec;opacity:.9;color:#262626}._fd-box-space-input ._fd-left,._fd-box-space-input ._fd-right{position:absolute;left:7px;top:50%;margin-top:-10px}._fd-box-space-input ._fd-bottom,._fd-box-space-input ._fd-top{position:absolute;left:50%;top:5px;margin-left:-20px}._fd-box-space-input ._fd-bottom{top:unset;bottom:15px}._fd-box-space-input ._fd-right{left:unset;right:2px}._fd-box-space-input ._box{width:100%;height:100%;background-color:#94b5c0;display:flex;align-items:center;justify-content:center}._fd-box-space-input ._margin-title,._fd-box-space-input ._padding-title{position:absolute;top:2px;left:4px}._fd-box-space-input ._fd-help{display:flex;align-items:center;position:absolute;right:5px;top:5px;color:#aaa}._fd-box-space-input ._padding .fc-icon{cursor:pointer;color:#262626;font-size:12px}._fd-box-space-input ._padding .fc-icon+.fc-icon{margin-left:2px}._fd-box-space-input .fc-icon.active{color:#2e73ff}._fd-box-space-input ._fd-x{margin:0 5px}._fd-border-input{width:100%;height:110px;display:flex;justify-content:center}._fd-border-input ._fd-bi-left{width:115px;height:115px;display:flex;flex-direction:column;justify-content:center;align-items:center}._fd-border-input ._fd-bi-right{width:140px;display:flex;flex-direction:column;justify-content:space-around;padding:5px}._fd-border-input ._fd-bi-right ._fd-color-input{width:140px}._fd-bi-opt{width:100%;display:flex;height:100%;align-items:center}._fd-bi-opt ._line{width:100%}._fd-bi-opt .solid{border:1px solid #000}._fd-bi-opt .dashed{border:1px dashed #000}._fd-bi-opt .dotted{border:1px dotted #000}._fd-bi-opt .double{border:1px double #000}._fd-border-input ._fd-bil-row{height:38px;display:flex;justify-content:center}._fd-border-input ._fd-bil-col{width:22px;height:22px;display:flex;align-items:center;justify-content:center;cursor:pointer;margin:8px;font-size:16px}._fd-border-input ._fd-bil-col.active{outline:1px dashed #2e73ff;color:#2e73ff}.line-box{width:150px;height:20px;padding:1px;box-sizing:border-box}.line-box-con{width:100%;height:100%;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAD5JREFUOE9jZGBg+M+AChjR+HjlQYqHgQFoXibNS+gBBjKMpDAZHAaQ5GQGBgYUV4+mA7QAgaYokgJ14NMBAK1TIAlUJpxYAAAAAElFTkSuQmCC);opacity:.3}._fd-radius-input{width:100%;display:flex;flex-direction:column}._fd-radius-con{display:flex;flex-wrap:wrap}._fd-radius-item{width:50%;padding:5px 0;box-sizing:border-box}._fd-radius-item,._fd-radius-item ._fd-radius-icon{display:flex;align-items:center;justify-content:center}._fd-radius-item ._fd-radius-icon{width:24px;height:24px}._fd-radius-item ._fd-size-input .el-input-number--small{width:70px}._fd-font-input{display:flex;justify-content:center;padding:0 5px}._fd-fi-box{width:150px;overflow:hidden}._fd-font-input .el-form{display:grid;grid-template-columns:repeat(2,1fr);width:100%;grid-column-gap:10px}._fd-font-input .el-form--inline .el-form-item{margin:0;padding:0}._fd-font-input ._fd-size-input .el-input-number--small{width:100%}._fd-shadow-content{display:flex;align-items:center;justify-content:space-between;flex-direction:column}._fd-sc-form .fc-icon{font-size:12px}._fd-shadow-content .el-form-item{width:50%;padding:0 0 0 10px;margin:0 0 5px!important;box-sizing:border-box}._fd-shadow-content .el-input__wrapper{flex:1}._fd-shadow-content ._fd-sc-box{width:250px;height:250px;border:1px solid #ccc;border-radius:5px;position:relative;cursor:pointer;overflow:hidden}._fd-shadow-content ._fd-sc-box .spot{position:absolute;width:0;height:0;border-radius:100%}._fd-shadow-content ._fd-sc-box .spot-id{position:absolute;top:-5px;left:-5px;width:10px;height:10px;background:#1989fa;border-radius:100%;z-index:9}._fd-shadow-content ._fd-sc-box.down .spot-id{box-shadow:1px 1px 10px 2px #1989fa}._fd-shadow-content ._fd-sc-box .center-spot{position:absolute;width:0;height:0;top:125px;left:125px;border-radius:100%;background:#1989fa}._fd-shadow-content ._fd-sc-box .x-hr{width:100%;position:absolute;height:1px;top:125px;background:#ccc}._fd-shadow-content ._fd-sc-box .y-hr{height:100%;position:absolute;width:1px;left:125px;background:#ccc}._fd-shadow-content .el-select__placeholder{text-align:center}._fd-shadow-content .el-input-group__append{width:55px;padding:0}._fd-shadow-content .el-input{width:105px}._fd-shadow-content ._fd-sc-right{margin-top:10px}._fd-shadow-content ._fd-sc-radio{width:105px}._fd-shadow-content ._fd-sc-radio .el-radio-button{display:flex;flex:1}._fd-shadow-content ._fd-sc-radio .el-radio-button__inner{width:100%}._fd-shadow-input ._fd-ci-con{width:150px}._fd-shadow-input :focus-visible{outline:0 none}._fd-si-input .el-input-group__append{display:inline-flex;width:24px;padding:0}._fd-si-input .el-input__wrapper{flex:1}._fd-shadow-input ._fd-ci-con .fc-icon{cursor:pointer}._fd-style-config{width:100%;display:flex;flex-direction:column}._fd-opacity-input ._fd-ci-con{display:flex;justify-content:space-between;width:150px;align-items:center}._fd-opacity-input ._fd-ci-con>span{width:32px}._fd-opacity-input .el-slider{flex:1;margin-right:15px}._fc-designer{height:100%;min-height:500px;overflow:hidden;cursor:default;position:relative;background-color:#fff;--fc-drag-empty:"\\62d6\\62fd\\5de6\\4fa7\\5217\\8868\\4e2d\\7684\\7ec4\\4ef6\\5230\\6b64\\5904";--fc-child-empty:"\\70b9\\51fb\\53f3\\4e0b\\89d2 \\e789 \\6309\\94ae\\6dfb\\52a0\\4e00\\5217";--fc-tool-border-color:#2e73ff}._fc-designer>.el-main{position:absolute;top:0;bottom:0;left:0;right:0;padding:0}._fc-l-menu{flex-direction:column;border-top:1px solid #ececec;border-right:1px solid #ececec}._fc-l-menu,._fc-l-menu-item{display:flex;align-items:center}._fc-l-menu-item{width:100%;justify-content:center;height:40px;cursor:pointer;box-sizing:border-box}._fc-l-menu-item.active{color:#2e73ff}._fc-l-menu-form{border-bottom:1px solid #ececec}._fc-l-menu-item i{font-size:22px}._fc-l-menu-item i:hover{color:#2e73ff}._fc-l-menu-item .el-badge__content{--el-badge-size:15px;--el-badge-padding:4px;background-color:#2e73ff}._fc-l-label{font-weight:500;font-size:14px;color:#262626;line-height:17px;padding:12px;margin-top:5px}._fc-l-info{font-weight:400;font-size:12px;color:#aaa;line-height:17px;text-align:left;font-style:normal;padding:0 12px}._fc-l>.el-container{height:100%}._fc-m .form-create ._fc-l-item{display:flex!important;align-items:center;justify-content:center;background:#f5f5f5;color:#000;width:100%;margin:5px 0;height:30px;overflow:hidden;transition:all .3s ease;border:1px dashed #000;border-radius:4px;padding-bottom:0}._fc-m .form-create ._fc-l-item ._fc-l-icon{display:inline-block!important;padding:0 4px}._fc-m .form-create ._fc-l-item ._fc-l-name{display:inline-block!important;font-size:12px}._fc-l,._fc-m,._fc-r{border-top:1px solid #ececec;box-sizing:border-box;overflow:unset;position:relative}._fc-l-close,._fc-l-open,._fc-r-close,._fc-r-open{position:absolute;display:flex;align-items:center;justify-content:center;width:12px;height:46px;top:50%;right:-12px;cursor:pointer;background:#fff;z-index:1;border-radius:0 5px 5px 0}._fc-l-open{left:0;right:unset}._fc-r-close{left:-12px;right:unset}._fc-r-close,._fc-r-open{border-radius:5px 0 0 5px}._fc-r-open{right:0}._fc-l-close>i,._fc-r-open>i{display:block;transform:rotate(-90deg);font-size:9px}._fc-l-open>i,._fc-r-close>i{display:block;transform:rotate(90deg);font-size:9px}._fc-r{--el-color-primary:#2e73ff}._fc-r-tab-props{padding:0 20px;position:relative}._fc-r-tools-close{position:absolute;right:24px;top:12px;transform:rotate(45deg);color:#666;cursor:pointer}._fc-r-title{font-size:12px;color:#333;margin:15px 0 5px}._fc-r-sub ._fc-r-title{display:flex;align-items:center;justify-content:space-between}._fc-r-sub .fc-icon{cursor:pointer}._fc-r-sub ._fd-config-item+._fd-config-item{margin-top:8px}._fc-r-sub>._fd-config-item>._fd-ci-head{position:relative;padding-left:8px}._fc-r-sub>._fd-config-item>._fd-ci-head:before{content:" ";position:absolute;width:5px;height:5px;background-color:#333;border-radius:25px;left:0}._fc-r-config{display:grid;grid-template-columns:280px;grid-template-areas:"base" "props" "style" "event" "validate"}._fc-r-name-input .el-input-group__append{width:25px;padding:0;margin:0;color:#606266;cursor:pointer}._fc-r-name-input .icon-group{cursor:pointer}._fc-r-name-input .icon-group:hover{color:#2e73ff}._fc-r .el-main{padding-bottom:100px}._fc-l .el-main{padding:0}._fc-l .el-tree-node__label{padding:3px;font-weight:400;color:#333}._fc-l .el-tree-node__content{height:30px;margin-top:5px}._fc-l .el-tree-node__content>.el-tree-node__expand-icon{color:#333}._fc-l .el-tree-node__expand-icon.is-leaf{color:transparent}@keyframes rotating{0%{transform:rotate(0)}to{transform:rotate(1turn)}}._fc-loading{animation:rotating 2s linear infinite}._fc-tree-node{display:flex;align-items:center;justify-content:space-between;width:100%;height:26px;line-height:26px;padding-right:5px}._fc-tree-node.active,._fc-tree-node.active .icon-more{color:#2e73ff}._fc-tree-label{display:flex;align-items:center}._fc-tree-label>i{margin-right:5px;font-weight:700}._fc-tree-more{display:flex;align-items:center;padding:0 15px;font-weight:700}._fc-l-tabs{display:flex;border-bottom:1px solid #ececec;padding:0}._fc-l-tab{height:40px;box-sizing:border-box;line-height:40px;display:inline-block;list-style:none;font-size:14px;font-weight:600;color:#303133;position:relative;flex:1;text-align:center}._fc-l ._fc-l-tab.active{color:#409eff;border-bottom:2px solid #409eff}._fc-l-group{border:1px solid #eee;padding:0;margin:12px;user-select:none}._fc-l-group ._fc-l-list{display:grid;grid-template-columns:repeat(3,1fr);align-items:stretch}._fc-l-title{display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:600;padding:12px;margin:0}._fc-l-title,._fc-l-title i{font-size:14px}._fc-l-title i.down{transform:rotate(90deg)}._fc-l-item{display:inline-block;background:#fff;color:#000;line-height:1;text-align:center;transition:all .2s ease;cursor:pointer;padding-bottom:10px}._fc-l-item i{font-size:21px;display:inline-block}._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{height:40px;justify-content:space-between;border:1px solid #ececec;border-top:0;white-space:nowrap}._fc-m-tools,._fc-m-tools-l,._fc-m-tools-r{align-items:center;display:flex}._fc-m-tools-r{overflow:auto}._fc-m-tools-l .devices .fc-icon{width:18px;cursor:pointer}._fc-m-tools-l .devices .fc-icon.active{color:#2e73ff}._fc-m-tools-l .devices .fc-icon+.fc-icon{margin-left:5px}._fc-m-tools .line{width:1px;height:24px;background:#d8d8d8;margin:0 10px}._fc-m-tools .el-button{padding:5px 10px;display:flex;align-items:center;border-radius:5px}._fc-m-tools .el-button>span{display:inline-flex;justify-content:center;align-items:center}._fc-m-tools .el-button+.el-button,._fc-m-tools .el-dropdown{margin-left:10px}._fc-m-tools ._fd-m-extend{color:#666;border-color:#ccc;background-color:#f1f1f1;border-radius:5px;padding:5px}._fc-m-tools ._fd-m-extend .fc-icon{margin-right:0}._fc-m-tools ._fd-input-btn{display:flex;align-items:center;justify-content:space-between;font-size:12px}._fc-m-tools ._fd-input-btn .el-switch__action{width:18px;height:18px;left:2px}._fc-m-tools ._fd-input-btn .is-checked .el-switch__action{--el-color-white:#2e73ff;left:calc(100% - 20px)}._fc-m-tools ._fd-input-btn .el-switch__core,._fc-m-tools ._fd-input-btn .is-checked .el-switch__core{--el-switch-on-color:var(--el-switch-off-color);border-radius:16px;height:24px;width:46px}._fc-m-tools-r .fc-icon{font-size:14px}._fc-m-tools-l .fc-icon{font-size:18px;cursor:pointer}._fc-m-tools-l .fc-icon+.fc-icon{margin-left:10px}._fc-m-tools-l .fc-icon.disabled{color:#999;cursor:not-allowed}._fc-r .el-tabs__nav-wrap:after{height:1px;background-color:#ececec}._fc-r ._fc-r-tabs{display:flex;padding:0;border-bottom:1px solid #ececec}._fc-r .el-button,._fc-r .el-radio-button__inner,._fc-r .el-table__cell .cell{font-weight:400}._fc-r ._fc-r-tab{height:40px;box-sizing:border-box;line-height:40px;display:inline-block;list-style:none;font-size:14px;font-weight:600;color:#303133;position:relative;flex:1;text-align:center}._fc-r ._fc-r-tab.active{color:#409eff;border-bottom:2px solid #409eff}._fc-m-con{position:relative;background:#f5f5f5;padding:20px 20px 36px}._fc-m-drag{margin:0 auto;overflow:auto;padding:2px;box-sizing:border-box}._fc-m-input{padding:5px 5px 80px}._fc-m-input-handle{position:absolute;bottom:16px;left:0;right:0;padding:12px;background:#fff;box-shadow:0 2px 10px #0000000d;text-align:center;margin:20px;z-index:99}._fc-m-drag.mobile{width:400px}._fc-m-drag.pad{width:770px}._fc-m-drag,.draggable-drag{background:#fff;height:100%;position:relative}._fc-m-drag>form,._fc-m-drag>form>.el-row{height:100%}._fc-m-drag .el-tree{width:100%}._fd-drag-box{width:100%;height:100%;min-height:80px;transition:padding-bottom,padding-top .3s ease}._fd-drag-box>div[data-draggable]{margin-bottom:1px}._fc-r ._fc-group-container+._fc-group-container{margin-top:20px}._fc-r ._fc-group-container{margin:0;padding:10px}._fc-r ._fc-group-handle{right:15px}._fc-r .el-form-item{margin-bottom:10px!important}._fc-r .el-form-item__label{color:#333}._fc-upload-preview{display:inline-block;width:120px;height:120px;border-radius:5px;overflow:hidden}._fc-tabs .el-tabs__item{font-weight:400}._fc-tabs .el-tabs__content{overflow:auto}._fc-tabs .el-tabs__nav-scroll{padding:0 15px}._fc-tabs .el-tab-pane{margin-right:15px}._fc-tabs .el-tabs__nav-wrap:after{height:1px}.form-create .fc-none{display:none}._fd-draggable-drag.drag-holder,._fd-elCard-drag.drag-holder,._fd-elCollapseItem-drag.drag-holder,._fd-elTabPane-drag.drag-holder,._fd-group-drag.drag-holder,._fd-subForm-drag.drag-holder,._fd-tableFormColumn-drag.drag-holder{position:relative;background:#f5f5f5;background-size:0;min-height:90px}._fc-child-empty:after,._fd-draggable-drag.drag-holder:after,._fd-elCard-drag.drag-holder:after,._fd-elCollapseItem-drag.drag-holder:after,._fd-elTabPane-drag.drag-holder:after,._fd-group-drag.drag-holder:after,._fd-subForm-drag.drag-holder:after,._fd-tableFormColumn-drag.drag-holder:after{content:var(--fc-drag-empty);position:absolute;top:0;left:0;bottom:0;right:0;display:flex;justify-content:center;align-items:center;color:#aaa;font-size:12px}._fc-designer ._fc-m-drag ._fd-draggable-drag{overflow:auto;padding:2px 2px 100px}._fc-m-drag._fd-drop-hover ._fd-draggable-drag{padding-top:20px}._fd-draggable-drag.drag-holder{background-color:#fff}._fd-draggable-drag.drag-holder:after{font-size:16px}._fc-child-empty:after{font-family:fc-icon!important;content:var(--fc-child-empty)}.fc-configured{color:#999;margin-left:5px}._fc-manage-text{cursor:pointer;color:#2f73ff;margin-left:4px;font-size:12px}._fc-manage-text i{font-size:12px}._fc-message-error{top:16px;z-index:2116;border-radius:8px;padding:9px 13px;background-color:#fff;border-color:#fff;box-shadow:0 6px 16px #00000014,0 3px 6px -4px #0000001f,0 9px 28px 8px #0000000d}._fc-message-error>.el-icon{font-size:18px}._fc-message-error .el-message__content{color:#000000e0;font-size:14px}._fd-preview-copy{display:flex;position:absolute;right:35px;top:65px;align-items:center;justify-content:center;width:28px;height:28px;background:rgba(46,115,255,.2);border-radius:10px;color:#2e73ff;cursor:pointer}._fd-preview-dialog{border-radius:6px;padding-top:0;min-height:40%}._fd-preview-dialog .el-dialog__header{position:absolute;right:0;top:0;float:right;z-index:9}._fd-preview-code{margin-top:0;max-height:510px;overflow:auto}._fd-preview-tabs .el-tabs__nav-wrap:after{height:1px}._fd-preview-tabs .el-tabs__item{height:46px}._fd-preview-code>code{white-space:pre-wrap}._fd-row-line{width:100%;height:1px;margin:10px 0;background:#d8d8d8}.CodeMirror-hints{z-index:999999}@font-face{font-family:fc-icon;src:url(data:font/woff;base64,d09GRgABAAAAAFHcAAsAAAAAokwAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAARAAAAGA8FUuIY21hcAAAAYgAAAQHAAAKPIaWK99nbHlmAAAFkAAARLUAAIlEs75Kq2hlYWQAAEpIAAAALwAAADYr9zVNaGhlYQAASngAAAAeAAAAJAfeBKBobXR4AABKmAAAAFsAAAKAlxAAAGxvY2EAAEr0AAABQgAAAUKLomhKbWF4cAAATDgAAAAfAAAAIAHEAPxuYW1lAABMWAAAAUUAAAJb1Yvg7HBvc3QAAE2gAAAEPAAABr+5WcIoeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGFRZZzAwMrAwNTJdIaBgaEfQjO+ZjBi5ACKMrAyM2AFAWmuKQwHnjG8mMzc8L+BgYH5DgOQZGBEUcQEAICVDRp4nO3WZZNUZxiE4XuAAEmIE3d3dydAlizu7u7u7u6La9yVGHF3dw/fuvgXpN/tfMiPyExdW3NO1dbWnnm6nxc4DKhrV1g9qLOfij9R2ee7ldr7dTmi9n69ylJfH01D6lBfqKGaq4UOHKw5dAhqr5uqStW5/s+r4t8p7+NpXGlC+YsVxjGeCUxkEpOZQgOmMo3pzGAms5jNHOYyj/ksYCGLWMwSlrKM5axgJatYzQWs4ULWso71bGAjNWxiM+dzERezha1cwnls41K2s4Od7GI3e9jLNVzLdVzP2dzAjVzGTdzMLdzKbdzOHVzOndzF3TThHprSzP93c+6lihbcRzUtaUVr2tCWdrSnAx3pxJV0pgtX0ZVudKcHPelFb/rQl370ZwADGcRghjCUYQxnBCO5mlGMZgxjOZdzOI3TOYMzOYtTOZlTOJwTOcnP+kga+Rkf5Sd2DMdynJ/bCTT2d1Pfz93fVKU+/78alR8NFv97tbfMX5R5VsMo86um4YlDzcKzh5qHpxBVhecRtQhPJqoOzyhqGZ5W1Co8t6h1eIJRm/Aso7bhqUbtwvON2ocnHXUIzzzqGJ5+1CmcA9Q5nAjUJZwN1DWcEtQtnBfUPZwc1COcIdQznCbUK5wr1DucMNQnnDXUN5w61C+cP9Q/nEQ0IJxJNDCcTjQonFM0OJxYNCScXTQ0nGI0LJxnNDycbDQinHE0Mpx2NCqcezQ63ABoTLgL0NhwK6Bx4X5A48NNgSaEOwNNDLcHmhTuETQ53ChoSrhb0NRwy6Bp4b5B08PNg2aEOwjNDLcRmhXuJTQ73FBoTtTO89xwa6F54f5C88NNhhaEOw0tDLcbWhTuObQ43HhoSbj70NJwC6Jl4T5Ey8PNiFaEOxKtDLclWhXuTbQ63KBoTbhL0dpwq6J14X5F68NNizaEOxdtDLcvqglKdjcFJbubo+wqbQlKjreG+xptC0qmtwcl0zvCbY52BiXfu4KS791ByfeeoOR7b1DyfX9Q8v1AUPL9YFDy/VBQ8v1wUPL9SFDy/Wh4i6DHgpL1x4OS9SfCOwY9GZTcPxWU3D8dlNw/E5TcPxuU3D8XlNw/H5TcvxCU3O8LSu5fDEruXwpK7l8OSu5fCUruXw1K7vcHJfevBSX3rwcl928EJfdvBiX3bwUl928HJffvhPcnejcoHfBeUDrg/aB0wAdB6YAPwxsXfRTevejj8BZGn4T3Mfo0vJnRZ+EdjT4Pb2v0RXhvoy/DGxx9Fd7l6OvwVkffhPc7+ja86dF3Uc5X+j68/dEPUbacfgzKTvspfDZAP4dPCeiX8HkB/Ro+OaDfwmcI9Hv4NIH+CJ8r0J/hEwb6K8o5UH+HTx3oQPj8wcGaoO4/FpJK/wB4nL29CWAjVf04Pu9NZiaZJJNzMkmbe5qkbdq0uXu3u23Z7V7dBfZmbwR2OfeQ+wYv5FJZBJUFBBdQORQWVwVUQPyKtyAg/lAQRVC/ggqKuhn+n/dmkibd7bb68/9rX9793sw7P+d7w2AG/tg9+K9MmMkwTMJXKiu+fG4IJbvQECoWUslUMi7wAu9VfIrPkwsj2SthNZ5BQxjdl9uUetlsFSSe5V+OxVPJ+aO3jM5LtrYm540uGzl9uGX+6q6R00fQ8OlfRmrsZbPF4eBfTm3KTVYz3TI6P5nCEuTpWj2/Zfj0S08fhtfR3+njuMK4GZVhLMjnFRAfTxbKFkSe6+PqY5KFUg7n0EqrVfuCLeqzoj7tKYHnJa9X+6Aea40qNNaqRPFbJEhyKlGIQ32C1+vgOPO0WCgBr2Ci73E1fpzxwHv0MZMMg0gHuLwSNAe6oOgqDKE8F4vzEOfLx3IliElyETSM8opLUFNFB1K7kAw+VzmR84Ug2ueAF+9CyVI/9G4J/711vBWM5tZd9CfNrWazKvoT2NqYcPyxQqfZ3C0UhVb4dZvN6GLJ7UcmtoQ4XMIs6/Pgb7WOtWr7wQKD1oE1klW1/bSWdWp2JffYY9C+J83mO883mc6/E6oYMCOP9AZiTaMYj2L+DcnDMHaGee9t9mrWxniZFuYYZgFzHHM8s5nZwpzOnMGcz1zAfGha6/GRW5/KhXEIqcVCUjVS+pGsGtlx3tOPcnLWm0bxYrZQrA+U81kSULMk0I9mCrBtTZnm5kyTNuptCTrAjx7VRh0wiuhRGPI7SOSI16GNQkDK5TyJZqezOeF5JPpGlJhbibkhFo3GTojC33riw+dALdooWCQnehQqr9WAHnV4f0aiczkSJE8acQRbvOhRUnPlR6SSDxPrrmjdnz53jP5kGYGxMg6G8cRk+o9cKv3fw/oPvU5+eMtld1+GVxJrix7D+snUE6GOF9mr2CSTYopMiRmGGTg1KnQ0QgjeMY2K+VxpEOldDlFGlyOIghFSYDBKMDw+MiwxpHp9uVIhGeeVnA+Gh4cySRibEoykK5aAEYEKYESgrFwfYKOhbDCYDamqU5adlW8SW1X1uJPHIj50vS8ypl2L9hfCHZFIR9jhi0R82lnERpdB/C7tCf8L/prBG4LZ4OvwG/M5Xnf4qDVmRA0/Q0o984T2J3ChsvdBRU/SigZ8kXHtNy/4OT+YE3UHNohaXytMguliupkBZpCZYBYxq6CXZOgTgU5QOVabhtB3mMxkrMZcpN363BXq56M8YwAz2vN2D4aeb9Oer84wfGzVp+1H67TXUBNMmF9GT4lOM+jVEZdd+6nknUdnWxuZsKiN+Cv3kRpY/7zKDnixYyXvdWQufaZm0Tn1Ans228rYGJkpwBplUFxC3jCC/bqQQUKc7IU+L8/GJSzTDVspl+r/i4UMZpNkTy/CzKCbOdnbcSg9kU5PrCJWGjaOY2DvGL94S2HtyEn5pMMtB5tjYTUYVZrsjsKWS8YK2QXtxQUXfPz8haW2hd34jPTC1RPt7ROrF6b/mhvPgUH3FjdfMv7hKzYsb/NZbA6vEgyriXQ6myuVodpiRVAzYxObNi++eNGiixdv3jQxlmGaamPogN3Wy0RhFAsw6+cxK5iVMI5bmW3MmcxZzIXMRcxHmKuYG5lPMncwdzIPMF9iHiVroXEuK6qcT9VP38RsGWavgUwBF50CrkI/nkqo9wv1JRqKe+oD9UXQ572hkFc7JIdC8juvvXajWBDB4JUkrB0iaRC7V8yLYLS3j5QXRcUOEcwnqk6nCOYT4jdFMJ8QvyGCaUxjbdW6kUkOzatW9LEjxmovVx+JTN7QSPVdPiZq94oiOk7UH6Cbj+v1f1x/mvYbsSzWDMPXxpjA0xYY4T5mbI4wlQAHFwUBrkIMCtBtz6Worrw+948KSCuVMPwhW2ldCcz1169cmRhJJEZYW0MBsOYB5KwV+0BYewBKLQ8X15+2voiuHtD+mBheMpyo229IO1JMqzFT5zPL5tga2IrmCO6O3q7z8QuV1nUJ+LuAWBcSa5ZW3TdyMFH3xzTAKtKenrmOiaDwvggSkilBwqkMHkI+ReDD4JZLGcQf9cV/VBZTCewoRPutmYFwMse1LlzSdBNnCcTjfo5vLmRmacQeKTlmRWWp46VQm2QWB5aNRpyh+a54wGIJuJoyUhOFnXqbZIAJSSbH5AF+jjBLYCfZdSRMBh/WPjQjqtIQQBThofMRqqqC3Coc1uEyvgGQCoplVIEEwVqqCIZXe3/09Sgx+6jZSAx2kaxQ7CkCIZo7m596SpJl6SkoNB1hacB5SIXagwSvuSAai0UvIJADdZCMT0ElBHd5CgrO80rV6pi6vqquyyzAzyGAn6uZ9f/B+qQTuBpQIAW6AgLQEYrP66B4+zAq5bi8rM6ybEPhcOj1cCgUvoP4cmbzsNnvIpb2oXvvnevyrbp7Q4+Ew4+EzOaAecTs8luGLd6BKo7PkoVgA6gDbhkaRdZfjI5uKRfRqQ148QyG9waSQyijnVH8i2i0koiif9lU+wdsNu1Ci+020evgUQCL6A7tes956MwJ0vv4RzbbB+2qTbvIzMYwL3msd0sWNKbdcFkAnUEez0H//4X9KGtn4tDrS2EXWQ3YIoFH5VIElwEalfM6dIJ36EICn0wREIWmoDysw+kgvg7Ap2oo36fsnrskyfSvHzptnN0jmt90Ov/5HSnMetD70ysGYz6vGmxpDvqUYFMiqHqU2NDyjnLbSHpizaL0SFvPovRQR8dQGr3qsWsPrwO04cbtyGpzY7ekvWJxcOeZLTeeZna4OHSp3YPa44Mr0uViJh2PKh6Hw6NE4x2dxTI8Jq61J3OTx3Uu6ehY0nncZO7rkTSpWO8HfR6SsVBhxS6ZPhoG2na0ZcsNIcWXKw+hMAbUJp6CvUiQgG58K4pejkY1GI9eY2XpCJeOvFXuI4uHYF3eyv/0XzueW18yOZx2HnMLbhqL9xSCgiLzRbKi8PMUyRuFCqYogXk6baBTIX/ZhrYunOAFbHE4+S1bspFwt5W3+4EO0OnJ3xhwIw24ap4pz3WFuVTPtN/RV88/zj77luXLz8lmJ3O5zKJF+DeETtxh0Ik3EjoxF9d20Pw3xnMbtT3o6sbf4bAhBe87ZwjHyV4frJcCELtHhwaVdYTmQUN+662ieKvVP9vCnnfpc3a7+VTez59qthvr50V2P9BJXli/OaafWUjekqwLit7GCcJbIItDMdBl4qesDUFHJaAd0AolzusLhS35FDWDgG5QhxBmdm/d1NPX17Np62tVz+5Nd27ceOc3jl3e1d3dtfzYzWmC/64iVjrV07Ospyd18lf6V+SvuvGq/Ir+r7DJhsLUM77xzsfu3EgKf5PU0pOeWEmwb7BGypNlMNov0ObjewYGeo7fzNR4IoP4Ubo2GA9ZFS66KlyFJ/ehgX37tCf34UeITUJ03H6NT2LDDKGPRMYHPTJF+dXv1jg4kR5Ig2kijcE/CxN/+uluLdDdjX7XDeUR7d9N0L9NtF+RT8JdCLYjgiqTtYVLZVTCjOJEbQ4UTjt/DFTbj8Vg0CuYRaBt2KRLe96ZDiPHTyq3EDoOb/uJaBa8wSCkuvT6f0rHj84uoFO9PABTIGb6Yd1KLOAUuAw07DCkCRILqAbrUyDMbiZr9pfEuip/7c0fPF7uPu26T122XHDZOUlG5o2f+tp9Vwz6T7z94BeHZTapZw16+3qtSy/95CdOL7iPvXwpa/Mi5HNs2HeSf+DyL33l05ul0WOuBqDI0v6+A/8PY4b+dsJ7sflyTMmzKuvJe5Ar70JX/Gt3P/L07/7n+R0nm05G0mn4O5Vdd34OX6+djiLaK+jjlV34WkYfL6hrN/429duZAPRjkq6lAmAk82DHZzz1xIWrAb34D1Ku6TqhC4y6RwWDfDOH8Le7tE2ZDLq9q/KICn947OhhhvTELG1ZxqwDrOHko7Xpv5tyTVcG/rrUcRXMdzMQ6socMZDpgqAe+HcbflhHmGfsh8Z2x+oDDRhlrLENv+sCA/VTV9ukvqeCQbfr7tTrNr6GPiamw96lcX9w1YPQa7rwh7u6Kud2qfg2Va1sPqwrqvN1F/7F0edrjYJ1NdDR/0HKddltudy2rG4jKbc1VzMQqiaAjV/M/ioLRrtGd9Huo4cpbIC2/Bo/TOFXJ+C1q+cIwSQkyKWynHcZrAOyI+mcAYALeUCudOAiwG5aVAnRA3BjZXJeEkxlb3JeIjEviU+t7IXtNIxPBbvyujPpSzVl0H3+WMz/ihKLKe9PdaFW5EvLTquv3R5Ad59jXmT3d+IDUFa7T68DHQvuaDqs3UdqQseG0+9zKnynVfk1auqJKdprpCLUpMQW5dtCIU+r2+oMAoKiurNS03CbMTd+Z7R/OXPCXLENQDVlbx5CBZWAxXyurPBqnABSymJS40UShF04pwgAUbwGB5Jdd5Qu0EaSHoTNzvAZhYXLyl1yPN8bHVRy265cMRKVm0JNLZkhW5sjgJq8fvcsnfC5k81W1poJnzTvjBFnc7OiZK48YelJ4+FAe7Cl7HeGPOmUyyS5KK3+GPtHdhTowDZmnFnJbGB2MhcylzAfNXiDco03aPRFrNY/2aLeG2o2Rdqchm1fd3XY5FKJm2d1iEU4R9ADhHMk5Mt5JV9W5XypPISLhWSK8igMdAOmTBoVU4pazuX1YEot4s9oa2jb7tbW6D2IT9XbTmJ9hEPa0kLsmxyy7GhvJ/YkmUjaI2QCbEodk3RMOFvXLxyKi3bZ5nHaJKtLdCoBh1k085743kD2ux7OItosdrsfHzD6crTat9W+HtV798dyRK5IYIHBfwFL+11MeQUep/xaiS17uL394YcRQg6f3REwcbLfY8P4ZM7msiHUPTA6iaxO8KG2Kg/7f9nrWA/TDHTlEGD0JzJnwAhcAP1/HYX2CqCJSoyuMQmnYjzF60uUhCZsWyBCUJnIFWLQgYCECyoRpxTBlGMRJKhdSHUgNTWMYjmK7jkQoYb0tZlGkIsw8nyELkqmBDomOYr7eaaNGsFY0V2eMAutyLf3EtS+ciehrPvafvhDmxui8YlWD3batG/Gs2yU4wa4TvhxqM+0lMua7BN2rotbyiFT2i1aWRM28SaTRXQEHa6tHLcl22212OT/ldu+m+62irzZdrVLUVzac8RGzdrbyMZ6gvKH4AG97dq5lCeMyCvgzW198122ymesHhZBr14DOdic+gSX5O7lwCQ59gXB1NZmEl5gA452ycQi1sRxUpvLz7PcC9wVXcjEu+yWgZHVSc7kg+QvKa5NTr/fucmllOfRvR5wu28B7nU4L2sS4Pjp/3WOVoMEKDGEYBApCjmMgFQrs3HKik5X/kxx6jR2VP6cKBYT2AF2ZZK1HPr75tZUqvXKVGtr6grim4xeEolcEtV+b2kSb7pJcDmsrMCvX28xcWwyvTBdeQssMNgJ1nghUXkrUSgksDNR+Or4k6SS6k87MxKNRlaJrPn8CzhWsLsc/MSE4LMyhG6ro4FGmTHYR1fAPjJXOEKJC59CYQaxKcmRTKlAd5A5WQec5frA0WWDuyyRqCxHI5aFgtKkCAsbg3dG0WYgdm+LVt1ZaKofOmzm5niTxe6w2e02h93SFG822xxWSbKeQXgYVxliLQMv/hx+gwkyvVS+QtpUZcjSFsV0aioPCxe2RsXg1qqx2RNVPbEfAdWlucKWSbPDYnGYJy3heNhc+Z0ewgFz+Fl3yIIKelj7viWkhokjWcBAdPgXUBZH9eTKy6S0ZYEeWmAJ4zdcDosDfpLbLVGPA8gTl8PscMPPVfNoL9SSawX0ufAi+4PD1st/YZWwamZZZ+eyjMZnlmbAIK3yXmtvbytGYFeOY9lDlc21WT/3uc0YfPd7DFmkGahkmYkRHNGlIvKbEV/9eDaLf5vLVe7VsS/UoeNkrM2QW16R1fZks+jqbNWldOp7/2S/id+F+UE4G2QzDiMJJ6cIRoP/pyC68w7pYsxYseojXC7s4azmq3iOs7vcwqQ3KE+KIa94lejQrpC8FqfbacFPWJwehwiUHn4XYeEqwQ1ejl+ufYgyQc9bLnpD4kesqMJ6HZDVAub223X3CTuQfMZchn7Zb/CbgtOwZo6KBxMpLgcg3HXdDWjdDTdo+29glUh5IqWdhdDH5NaIi7XthUhI3PuUtic1UY6gtcgVaZXR1XpfvMh+E+ZKlz5DGjkSRYJD6PgE5eFR9h0VzsF8AMRCIBBKgc5DXYjKcku4adc2nYmw7bdbN/f0eqUzSWsXW0qFY4//+rIl7R18tmtyxUZJlnnJu9duE5vsd1sl7zQGxG5KBm9csqi1zVbILT/2kcllnRlvyPt5r/RyiQs027hB1mN9l7CGaR+9yP4E2uBn4rD3MR4dXcpPw5cCKEVlzzCOSYoQ1fYEmQz7IKqtbWj20z2tyPqOZtLnO/onTPb9MNd78OO9/ZJ3j0iGSdwD77hHH7E9XvSGdl2iMF6d62Tuv4l2vVtIrFuXKGg7vNIeMivEPaQ7oDxMkD309Y25/6gxxoSWCZG5P/OcT1RXhdMgRy7UJ78WyOXwa7Agzpk+6ffqq0Ef73fYJ1kET8kxTCJfIuyvZNyBXITrIrtSYHsBOeGmzfySjosIKvbxVuEq0RsUJ+Wgd7kYJJNe+7jDKzo8ZM5Dlzjt3J+x+SqSNInOJTx87cOTpMRV4iGv9ITed7fdRniRT9i8lG3kqcEvO6MwGcDChpnFgImtYdYy72OuZD7G3MLsYz7PfIH5CnOQeZLgxVQyTsUZbUjHz0pFtiroMFKqzFci6CA7HEH/uXoA1kDhlmtCANgAWZ2ESCUJNxsoDR2RzpHNIkW2hjiJJRsHdJ9BfgzDKkgm5iagZ6+ekqfj5ys7XHa8SvLGZ2H73hZA6wIBbX8APRrYFgCzLeD3B1oiyVTYHXA5EGu3Cn53JJmMuP0OF29y2QOyWeIFwQrQwW67w2qzUZ9g1+4N3Ov33xuot9HIG9XHvvEG1R7ABxqkMgYbuSqWOd0fII8P+HOBbX7/toB2cetAm8NqR9gmmBytg60AnDiTZHFmRJbnzIIFObyS3WcX7VaTuDgAf4tJ6UXEgjlg1flZbIIJMxEmzXQwPQC/x5nbmZeY15g3q9okh+vtGIu8EU2ZsecTJYJ8E/47zP0hOoSUkAQcIYwUGXY/WYIYCSYV5CNDD1NAVzFzGBsdjH+SuKlislAuDiFSD9GXKiuC7IPNRMgKZBFlqWxDpgoOZGPNlotkRy1ny4TjnIX3htKprLHZKmTCkUlW4/Hiz7cRDriq7SY40IEDOmbkiqKlgC89GI3+hJpNxKCdtpAICL3VbuVNWAzZWiUbh7Dbjh0yZlksO7DdjRFnk1rtISviOJvdBoSBNWRPkoy82zWV0eXmScbRFlMyiDBGwaQphnhBSSmCoJoSIRIXSphU3iynfIJQinR0DHZ0hEVJkiWJbWkda/vOd9QcvLZTzc4jqNxb0Iz7ibjvAYKiUesqgYXXNZnNJhO2sLwihB2Y4+1ejGWJdcXgbbwYIdnO8dgRFhTBBO9McnNINAk+ktsZAvoN3tapOuHVwR9ysI6wOexFVlswbUI2vx2Z2kM2K/IgnnO5OMFTTQnYgAQKkhSeczg4frxjiIh3cpLscMgS2Y8p/vi7RlwEGbturH6aNfCtUOKZZ5D8zDPacSr+aTxeyahVF3+28ggeqzwSV9U4/ogaj6s13b2f4m8zFkOfBJ5BiEwViMtEzYcaHrF9hxx5JoI6tvvA0UJx1hyPH3o3jpMRn3Yd2umL7AOy+C3slCPwNPirwcdvGrKH8lzlDlSsWCacFEMdsNAI28t9feXNRMywadOUmEF7SgyKu14hqNA/RbLhz0GwoD0kirt+TZChf4hQIliV6ejvTHBYIoWaG/bKUraGFYENZJoOhWsY6BTuWdDuuXey7bG2yXt3LWAXzIKoXqoN7NqFntR+/9RTlFfwFvsldoTK7NuYdqYEPTrKbGLOYS6dm8yeYNieeolzrD7ANnLuYBfKF1WKdhWSeR3MlMp5mYIm1UeZX0mhunOwboMyfTPa1+n3d/ZFsavyZrIAW4lLp02th955mkw/lCFT8c1sL+xi4XLQa4sWnA7HT24Ss52ucPnpzoFCp5Ky4UQkY+m0rckP9RWb47HeWIy1QvWaCoSvv6M/gl6K9HcExosJTSUEMHopUbxkHA2pO+LxHapua1cO5xPJprzf5ku4XW2+tkA04o4ty/ev6/V6uI6BjuM2TIwvT7b0q/H+BOXFwIS9mBUP4+suJJLWBu60MrcAojQt8hF61mps4GWi6IiXht+ORN4OD4cPRCIHwgvCZ0QiZ4Tn67qB2j4T0Fgs8nAWReH+/i+T12qyWbgz0fnaB/ET4UgkfIAo7DxU8+FjzaJorqy0KRbRik+u3CyKGHMKbDKDtfn8dWM+v4+5Zo76K3SlSpiACsAyKCIiyHnKkQKcnCWAijDtCMFOdKIBogkELBFxPNEDKHlyVO4OfrKMoTLZB+WqOA0hcgiCAzMnqPMyjsjTeKVFkVnES06gL0W7zWrDPFe0OrHLNjYidAZNatHM2hRZEOwus2QaGLXCrmxb4WA9Pn+3xQVtMjt4u8eS6bJg5LHzTkuixUJjsh1mjNyzLL+h5kDK7BCRWTLb/D5vmyDLSLJyNrd2KJREmM3EbTJvla1ep/UdhCSRs7lQrzgvGNWetZg7OuwsQu5mS6lstvKSm5W6u42YvjyNYRi3oV8Rm1VedAqzx6DAjog/sjNChob13jCJyw2LvwFPqU/ZGUMXA9C/PIbXRy+JxS6JvhdFF8di2uXRqvsrAlYr34YkyHAbCdwWuzsavTuGqBoxfrKq+au9Y9hEUWBX9GAUjHYziTuhFoCkE2JfiUa/EjPm7lvsp1kr4zT0lOjcJTLpOuhRU8CvgyANrCJpx8FTTz343IZ1hVKpsG7DaeuXLuno7OxYsvRA1aP9Jobmw6s9BtvMqQd/dnBHqbh2wwsnrCuW5nV2LF52YOnijkymY/HSA8sWd3Rqz5K3nNJBJmurOn6JOv0gpuEtGnDERN3q42KEkUvXHarJnWEE8vUBdGIcheJx7dX4O3FWAMD7jzj+NcxX7QkycwuaqytuRoNA7f2GgN5riMUmyUZ7LfGiyq+MOR4b11rUPFtIoF2ksmqlxGWq/JuvNbQnR6nzObVE0bcQfQPJ0wDVvqX6YltVFFRV7TfqO6reABW/Snb0J2HZ/w0IspDXe4lBynmP/Or3eyXtVcrACFF181d1+peEDD2HF9i7jXcPAt7UO13aOF1UpRJBNRCXsSq3G7Y2gm2QPWtv8XtFMPiLRCT/NLG+/oXPV17C+MOCxSJUzrVxnzSZPmkys8midnKhgG4uAhp0shyJyOhmoof9IXRe5VWWXSTyCcGySODY01krexqLDdnoY/jRw/TJ5oZnTFO0PaKfjczEJwaIXPlSoQh/hWcaHPxIuzEY4KIBcMcAuD5JgetAojhc1N4tFpG5ON2lPPK38R8oD4HoUhB8MgR0FOH+Zam+SZ1uBVfzsXOMQ5sWdQym04Md6OpFYIP/3Vkj8LfClDCI6I52G9GhSqcjugNBnWzQHaaGD9ePyRzlgHUcsdn6HP0C+iwx53424PZPYT47AdubYLZT7FkXiRG9rQLd+/jq5gcLrVTd/jKI6GtXMxbLlKlen6ekzJKO07u3bt65c/PW327btGvXpm27ll5dbFW8XqW1ePWnweuTZR94UUnyGpkQlpvddeleaeYkNtkUWH3K6kCT4Yw3KW7ZHYaf0lTn1b7llQp6rgJnd2FvcCpHyPv60RJ1naD33oa92QY9aSG8ViDfkSKkyvi8B7SOB/DJ96+5fw3xp7+MT3pg9f2ra/TK3bBK2wHzJ/QKYTCqeXVq3AfRECZToyg3zo2EkvUJiE9lk2VUQi/a3chtR08RYhS9pWYRYZGbiZDB2UZUzNrwSYqiaMRS0Kd9+G3kaXLrdGtW/Y7ZYbY4zfg7hjyCELGSkR3QyU8rBq56AP/+iHhDI57gmjHQQE6W66HNLVH8PID0tmjNRUsAOj4URT+OIgF8/4g+SYH47ynoP51Q2GiiCuavjGrvQglzdNpel2YyVMd4JcFl5rK+kCqoQE6pgDNyajGvizAFmKsCFQtTYSU5hKcSEiUN9EqO08XuZcouU1TCLSZLxEtRgzx/1DWqBY5z5laUVhSCwTBynHJmu8tq5a0ut+hodrh7exxmh8Nq81sCUq7HgZxNqVxPNJjubXagbtZiD9h8giOatQtcFz/LEtd+kHn11VVr16561e9os0FTmludfo49cdBkll2CKc2HLflz/cM9/dFQUvZJVodVlJcmXWZ3gs7P59k9sCekgfJbQyUI5H+Yns/QFS4AuU5RPnkXchEek4+saKJRTBB4SGUpD4qsc8FFM7KwBxD2EmFH6eylJC/gsFvtGFrQknBbrIiTXE0bH2Il6cDmgEviEbKZXbHWY4a6Ezbeabb2LhhZaEXWiOXYmz9+bMaBrAtHFvS1rjLZOMWETOeYbKafguvjbCY26moJqDYBIatZO9vk8YfCZy7CJtPiM8Mhv9eErjaLCCHBpja12vhVYjbo55H25XBSPGF0aFV3G0KTiAsEs9r7T4YKPVDxtRwy/R5cKGvSdfFgvh3ECwAGMR56GlKxIF3ZFcFmd5mF51w+xYzWoDVmn8/J82btKrtqQ/8y+xQnL5i1uyGB550+H0mwGzxyqPPrOALYkQiQjUC1pQSmCaon79Hnpqt+bkqoYXIeZW7GaxMT2c+S55+28NTxRDKFTv7IJ8p+CegdRbFbwi5ZWbLYY/N6rTZb3D262IN2xIvzFqdb+paoXjTMi66x1vZ5boswZEatQyij/XTXOefsQpmop+SyCuZEwefwmkwfWM6JQcXC9Qlt1tHbIsdPTKYTuWBQtnnKJ+V9NiVrwMAX8cuMn+lk+uj5qRwFCl6+yq/RoQ7FuSXsDeuqxHhKeWNKV7Tu4BUuHLdiYrB3dKx3aGL5ncsnhnrHRnsHJ1YcNzx/8OSBwVMG5l84b/CUwYGTB+cPU9neCUszncsyzeQgY4lY+OWWaE/xgpPPL/XEVDXWUzr/5AuKPdGW8eamVSeuOnF1UzDYtBo8q5qad9HS1Bo3SoNltO3bsK8HASOZ0FcOYbPqtCs0SYEWqnoTgYSNID2RcDwgH2X0Qsv17pC9QoookiOyuYA3UcopuhQvBbgjSuTGVkFz5g319Jdz2b75CyeOXT4x2De26edZtwyN8rdL3f7RROeyzshHjl++aKBvfibbDB0xf8Tt7e/WDolBEZ9nCPcqHxbx1bmO84rpbdBKRU7mMk2hlhh0Rn547/HdUrsfKpTd2WAEOi45+nfaT4XBhd2ZVAfpDtxn94ti5UO8223nOAGfK4YMGfXX6TinAF4cbZSJCn3t/Fz9AGPZGNO+QRjTFQthTOf3DSxafnx8qKtJH4NlndURbJpxBL/S1DUUzxxhwGrr7mqcMfB5/cwb06Anp06pwxrKRXIeHSnu09lTsmCuIce3TiGHtdYuWoTXE88pJIqEOrPvZsGEvO+SGLBGXkRN9aGanvED+EnGQfUIdSEl7Kf6AVKuBrtuCrjfdNvWsCxa5Q4ceiPgxt9yB9Df7nAH7GtwwD2gate6mppcaBdDYCTgKWcf4XzJ3HHQI4seGmjgV3S8QxsyVNwf14aoesPjgKJo5ShaDFD9QDT6dCz2NMDuABD2v5tNLeJMggJ8SWes6wRxVZf3V7Uxi8FekoHdZBGzjNnIbJ2mGxk7wlh5ZtSKnOtoX9O1JZPZ0oXu9DQ3e7YS6/hjjvk4xEC89sfM1gyYK0n0Fm9zs/e4Y47BReLZYuREJ+lqpkHP6yTmdU9w8PvIYqignqe7NJpmGPg+MteHDLz9C5TfFoHW9x95HFGMslRjhMpJUSlev7HQytUUGmLtOvmrRXQXnaY9S2ngDqCZt71AvC9QOvhS7VYav4WGDudsVb5PSOyQ9xFvUKYyYPDo2gJVPsYTbJTOwXydFs/pzEVz5RdOH4jGQ15c/dRs0FBOzFKSbTkK0nZarKsrti+WycT27TPb7eZ9Frtdi6pr1JpBL0W7uqL7aD6SaiH52Cjpkb8Z3SMajL+/UcafmCjszMSKpFQxlumzWYqk4qLFZiMKwNq7xF5A02iuPj2N5DLoh58avNbRufUcKxPclp5OcsGAk/PqskqZWpR/kmfzUwxS0g8NDNKH/9fhtZk5k0X2OIjXwrGC4pmFr1l53GYTOKtZRe2qx2oHpNUqqNpzqrt6XuRt9knjrgNyUvxY2g48J46xnEGEMwwwBJpQLPmUIZwwtJgaBIxsMtLX6Z9JRrJrdKi/q+2aWy4KRhe1rMy0phbfNBjYcqn2WlNHINDRlOrpSdk9niaPh7UFOvqiWlLvGfQiWEQmkKS49ouJ4qsBf8dpowukzYtW9wRDtgXuWNfo+3puaOrIdwR6lvUMkzqaPMYZmU/W8b1Cs2pBjBT3FcGgSd3VEuPj+JFC5a1CATsLVXfHoYcYpnoGZ29j/TNrwqeg/gcLpNoCelGv/uoZa9f3m+uhbiLLU5hmQv9VOV1Eaqhzu6qaG3/ZR3hZ+9Aj+4hHk6HeffD7cMSnrfNFyChEfGi/L7Lv0EPsElI/oaN/w34J9oYQ3csow1/IYCqSDhPNRKV6yoUi2iQacKMyTQJ8lMSkUJd6wtaVwaxrYMFY0+6wT+5fvjy0vmt9eudZK0OhNrS7fffu48PR9j112faEZLl/cjK8vgs9p8YsudbuSKtFCewJLV/eJ8vhE7pOaA+Fj9+5sx3tTkcjx+/e3banIdvk8n6vF7LV4PbX0WfrzgdVIeOZrfhQa2vF1IpupwphbtqfP6JjZWck6M8glbaVmR5mnDmG3jGxBSAZOW8Pe6NHrWFIgPRyRwmh/x9y/nRSTrQnZGqh/Q2B5b6WdIuPWpXP/jez4edlI1o2zHSvdsP/fQ4D//sx+nHDOPwb/f3MzK2pD1w665tUcbTb6B0arbAnLmVOYs5hPsp8Wt8Zid4Pnjrg3I+EaSBMTdQfg67dPNKY6fCa8JFrQrPWdDPRkSZ6M/cZx6PvR/cRzZn7KYbwWeNumPv0Y9f33UfUoYilLWsoRzyNBY0C08uxNqKrc3+tjH6Empa537jK4354CfIejUnaPpq/qvpDa6gvaZSA55HydSmMfifPi0DTEd0Clemi5xpX0nV5IfMRGJm7mAdn0DfwCPqhYKqGk0o6kKEWDxkShEOiR6fKqmwkQKGEKhviTJJL1WNpikfXqlfkPKRwJJAvUikn+Qly3igT01kycSM3APyUUKt+uOZCLhypHan8bVXpoWxFktcjYbtXdiBr/4esiZiZ6+5zsrIN2Vmb1+Ts6+aEeMsPv8EKrJTvsnHD1or2mG2Is2fyEsQh9BjCHGtfsMDOcvhBW1deMvHsN5B1WLsRItBjWMCQ+DQ3ZIOMvMlW6kZLyTPtrP5Mr8ebSt3v7M2a4DEia5O/bYI0a0tcgPc4kqpF5RLElpKqCSWSPSZkDrB2t4lLeDlze8ZiybSbOW/SZHLbf+DO51wmV7NZmDyR50+cFMzNEMzl3Z72Vg8SLRhcpJBIf2enT9g2OY8kODOddmyxLBKWbTP7Mp0K6w7VPYxFwjmcN8FB9Sx5lDmZsxiP13UeX2TPhHlTvUuF0CiH3ZFC7r1BM7JO2TI5V1J5g9gYXPh9KY9j+XzlV/mqyyYhRwvN8X+UWE+lhfXmc7l8JZDL53P6e9zGLmE3/1+9hyOgqgEtSmz0shZFL1d+U0J/LJU0b6nqspvVwKGDJAe7MKAOHDrIXlmCv0NfJHYVf3ic4qwJwFm31GSshnYqeY1hZJzqoeqY5AUFlZJeZQPmVxUDMMUOSwmCy1dPLgAGQgT9/Zjiwjz6pC63ewkIEaKhbCbbyEu68uahf0jexwUX4VbwT9xLFQHf4+wumZVJvK7F/PgXIR55HZDg9LJJqun8Et2fGHJc9dBDQOTQ8HsQxmjMK937uMBxdrebf5ycffVirw0xkvfJhgQbTxPeY8jmQs7cPsn+nB2kOLwvrxDVBTlPOUNUKYmo7Mr5nBGq3lgmyF5dT08XIYZgJ4C2EywItyB0IccLa/5g5240mW7k7H9Yg1lsYi80iSZIMK/5A0asxbSX4/by9t+vNvPchazI9qIbedsf1ggQ0vNBBYjk0+v4IyKVsIidSoXqWWToVj9O+cQTVIoBA9YoxSiQgZNTSj1Oj/McucyhbiynFHFRKYd+K7m9dvRMlfgSoectCFVJM6KWgz8nitq5UwNHxbnow2KQTSK52YOqVMgzIpS0uCz4mSr2T8gBUQxBaScdI4/9PV1b94tQnNF5u+9p7IP4nwCBmSqqGaP7OyEfKfEIVEdMoUqVZEjKyTIqwJg4oX/PROevWrSgvcMf9Q+fPk+76jQRW1hbzHqfHWM7/qOZ4xyyLJzZ0b5g0apfk3NHv553+vCpYtjKWa3QHI9d55uZGHwA8Gw74zJWaqy6RoluFbs9oB56Ww3gGyqn4RsOPcd+89AIPqAGKoewCVae1tM+oMuYNPbzLGbCALVG9DMiBGmo4uwSAH1AoNWalFofNqJZpLggIUazuEplchKEiklubT1G8S9IfZ5Im74UzduGbfnol0ngC18QHTaL6Qu9nRCD7vu8EC1Y2woPchabg8UtkUhLoaXyl5YCTobDSVxowVJLYchhrfzF4sAqjkAcpFReibLYYcGS1WHsFY/BvHIDPpaZ0uiT1VIGkxcfwpxMyFcYDV1Ho5j30ltv8hJOFAmhC6OFld1EiW8cHXPhLZ+5pGVx9JxPa2/f9oAvjD63i2jujx1zwb7PXNyyBOKRFeIjOnzZveL6E5PqlonJc+etunss7DtYEQls3AXRifjWhZPnzF9193jEd5Dq8xp6+QLVaCf6cp1MlikyvYC9zWOYMnlJeB0iVtKvBskTqluXoAgI0srGL2H8YtN+Tw/vaEID28/ZuWXz4JCdHWeRa+HC03ddrr03Tv7YJeOVrdtRHMwO3T537Xhx+75xtlxcf8JZ27dLl+w4eWCIRat37Di4fftXt28v7tgxOV77q9IsL+GfMj6C95JVqISxhAWi3wcdOoQ9RHm+qjWfI9r0KWwaOnO5q29DwdS7pU8L5db02uMLs8KyC35mDVvPaxcjsnXUGhE/YbXin+RPGODnvW/P1n42s/zEDaP2Bbvna9+xQi6rLwy5rJ8QI9aaTPTrFM8KMcMz4VTJKmEPGI6cp1IOn1w9A0y2zuoFLEns3U0GubeHSoeJZ9O2M1x+fzzgNy9qay35AoWOjGzylCU7Ktmtvg5r07IjIhhfRkoLKYZuz7RP5ELx7tZQgPdkI8GI0xn0eTwpu5oZXDh1zuFbBk+jBJjiBOCKc+JqHK6LmiBO9ZwOBQENvC02TjQgZxQyjsIet2kTOaBwjhi0niOiNjFIIkIkIgQ/raJeG49fq87G2tBOFEk5b1A8xyqeKwYfagwOGiq4xhnva9kY1RstG9IPgy+Fj3JXJafr7Xn1VpO2KmSmUWmqcXNJPAW7LSCcVK9xCCn43baxVqWtHNac4XKb0jrWht7SnIYQPJfTzhTFBQtET7NlkwVM8zuNwRMBoOMS9jVR285GCb/aGS61K0p7KUzF4CNVGTmp73mxSVy40NLsETeKtI5p4ZMRlu3aZXYn67OjS6Bug8/5tMGfq/LaVwDO837mAw13Rs5IWykzCs3nUnpO1Nvt+r2RXwsSJ/i1r5GDzV9zyvLVcbRQVbWD8dfJ2GoXzpAN3R/qDoH5muHoCWCxSRI0soN3XHZWC20imrl3xrWvxONoIq7NM3IY+cf0iknusRlTps4/6ntWRodth+1aRDboAFgRJscc2QzqAjSDPVzhe6aNbEFhfR/PdXeV7BNZ9KvU/CSrDiezkufMx8WI2H6eNeyjG9fokTe4iezKQs5uP3bLCG6dv2ysg+O6Ro/TvmW1QkmZ7ouj1rBO77/I/ozy1Ais9zFNAK3jTBJa5IoBpIi51CKrCCkVfgn45YtgueDncelXZrLPVjaM46ZTPnpe22e3n9H2SXTTLW17Y/e0Xbqv7f1sZQPeVHkNN+GLKhu+eDJuGtMs57bdfnrbjVnI9EfIhOyQDS2GfHeMV16r7l83s/MpraAwESZF9NI9RPKo91mKLlEBlVFZcbDkjt2UhxwSAlcx3N8500682uE4ydnhqNzjdH50Eo8sr3x7Z/dZpZ7t23vyZ27/Q3x4OB4eHf6Tv6PDL3d1sDYHydkBRUjJDkd6eeUby9EFZ2XPumZ7b+8pW4d78abheHy4Pxnf2qH4O9qa/YYM/uP4YnKyykMGtk4AD2+509Zi+yu6qyp+77epdu1NG3rEZnsb3WXhOCp777fbkctGjipQWP5X9jaWqd0Vq3M5I8YtUWREaJeniHJP3Q/Gpwvpv1Q1D3vrobfxD8jVM+d+Mf7F/P74XbF98VuTt6r7rrkrftc1t8Zv/eBd6n6crVyPs5qE/sIyh95mbcOVXXdC9m/sV+/6yT711h9ANq0ZAi3giYKL10P+s4Y1ibyvq+H8wOFnxk9gTmG2w35zNnP53M/Fzqy136DSS3QAq35hpoRyA7SKHU1rbTk5Uf400cVEnXTPuSq+KA7m60dyvqZOqGDwn4n2S8KQVv3C0H5JEKwf/YJq6Q/GiX6+YbQJUj35XdzgMdbgFw7rx1X/jV5j6cnR6nnrfkQv7mBtR9FEr6zQ+4KopHaQ9/SdaDZZPFbtQZ2arbSL3tC/2/bl7xN8HiuiUrg04ARMTQf3y9BuxbgFbRxmzc4pbGUKZh9+wsMTK8IsL8ZQtkzPhdUhiEo+pxweS4iKI+Utsd6IfpAjoiWqPvSLWlsKhfMOvcEq5Fd5foBDLMs5+K5uzilyA5xg4rk5xrFJUnHlreojdEKwQVqlaWPa18ZQedBk50wc193NWR3coAlVGiO4ygBn41me7+rirQ4enoUMvY/b8Lmwa0SYDqIRjKpn6o2j9tCDVFelKm9NzKzHcvforvnzd41qz4/uHAVD7jfOHp8Fg9pyxNU+N0YSPkRTaco2YuFz5u/6ICkJ1kj2+BNJHFgjR4ytv2s8bZxCPIY5ljmO2cRsZk5j9jAXMx8m2keN404vuT5sevSzLr0phJBsOJky8xnFhgAiN78QsZ1+AwzpkZoP3fJU7XSo9Ebt+ObU+dGnroiaycUAnnXR06NHNNodKKb9ilDXxNXvIKj58Pe80tQB1HmNdev3SVdugQKQGc+XPJfrmodV6wqqkrhgxNPsvmIevZ/gshGzwy1Z6u5R9AE8J3eurJri4h/t9K5Qt04ySMI+faFwRz4O3Hb087R3bhUwz1oC5qVLeYfTajLxWwUrZ0XoSGdzdf76TGdhv7dV8FlMZqiJ40w2h5Pbakbo4PTztNPuMR1jtjEnMmfBvnIRzKir5rinTju6LulIrFpjDXooyWDcaGCQSHRrpdhdeW6T7ug3e2yU3Dl9puTo7ALUzyNlPRstFlXlTSa708WrKqEBVJVQFmA3bY3eEZ1mZtFsWe6WslRjt/ood7MnK7m1H4ikRt7ltHEcP/UAD9iWn5Np9wKxzqbXgUzd5+xkYoA76qeKj3R+Zfqtiw03EdZAFmZ2HNyx4+DPNqwlp1jWbjh17c1r19784NLF5ATL4qXrsqHWEBgXeThr23Hw2a/sINme27C2WJq35lNfvnktyfYQyX+bHAq1hUK79Gv/azL/xxrubJ47lG3AJ6JHOfpYmWTNh969PP5QHAyBtmlC3lItWUreFpJV8jZZuHZce5WeVtX5D98z8IDSHLVRiJRaoOenqRZoBLGdR3mxsywhGVu0F8SY+EEe8w63iz9tFh2KfSJ2B63aXTZku1fwuKyYN3/UoC+PjPttnNubEzm9Z467M70wWEIGIek7Ki6nbR8fvzT+RHya0f45yPODnN0qCFb7LE1OH3odLyEI0L6ahU4a5N38oInlrPz5gsjhKr/oAPRBCCjA7VWq2mAqq4k4GZJSmagmE51KcmaIlXQZQQYR7MPYbtOIT6lxqjp0lM83xAyCGgMERI8Gu4KvJMpsuVU7zy7d5Lbb3aFlsPW02qzNiHcIopvrMQckYS/aLXg8wnuYxUE/upTQwJXriB2P66Qt3hnqDjpDKfmXeBnsuo/3pD6SHjDb7/TkC54Q24y+k+plx4FM+R+BNQtFMyvFhFsDlsssAYRaf2GRN/scfyJU8Z8Ivdwd+pNOqP9JToWcY9Puea/eczvn1Ub+E8Y3MuZwbyy9iaZt3sF5s+x4/xy5eOSX2ii5eBs9atz9Ur0ffPrbzYB7likCopIb4WLFWe70/mDtWuBZr+v+mX6hMLk6eJ5x5o7qhX53LmcfZrxSsiHQIF/bE8PPxWKV9ljsA9HoB2KoLfrBKBhwP0CiKvdV0/F36WnG5+u/baK9QPAOg3b5oSFjJKNcZvqZxfo3cqbL92AHPUIcOuywmpw//JskkO9VcuZMox8FQSHtr8h+D43ooxEPa+vQftRB/B8g1tknnaR/euQVelLN+R6Q62hrGMI0e8QXHnuPFUi6Lxwm4cj4e2isMXxpY3YyHBJt7zcMmqWR4j2B2cDsYE5lzp0bBdOozzpjgG1Q9VCOEmKj0b4Ov7+jL1r5c9XXQNlpu+LIraran+LT3e1FyR/yS9QqzuCfAwFzJ4Fjt07tmU0SKRsMSFLgixKxp3sNGTW581em55CGoSePZ5hE7czRIMrLVcyUbbibhPpg7yBahTBlinn4KcTKF1UuXyY+VUjRlDLxF9n91U1/XH/dtVP7PrlSSFpVKKwq+HuLvXehpsEkm1sfCa/Psb+5dt3ekA4pQiHS0hD+2JSfpGg/XLnypQ0bXkp/+cvplx5++KXPfvalh1MvtT8I80Wp2wMTQONM3bdzErOL2c1cwlzKXM1cf4S7d/QboWqoJ5FMx3TlWZlgTQROdCGUo2cuivoEIDADoEqd/Fq/RitRP5+KDWda5/ZtA6Kml2pAfuoD2XrkjVxlNsWyaSIkz/soVQKYJF5Bg55mDwQq9x8l7brqJe1VFw0ejtq+OG9eV3RjLLYxmo9+O0pM1LBZG9TzPp1k+oDNjREJkvpp4NDrR0v9Cqng1Npld6fULJ/2vEq/osATHfBo65RhmGnfAqnXbT/+P9Bu52bEhKbo3KODxDejqAk67rUoatV3d91eT3H92S5WJ+17ivYApS0V7Sm9s1Bf7Vto10M767Dn6ten6FYEPkHVcX0Dg9FVxRq09C+cuGjRoosmFi/u2dQDZvHWxeUtZTCLFxsJe6sn8fD1ExfdcNHESM/mszb3jBgOjXpLv43QUgfDdR38fmYBrLR1VZyM9r3+dSyDhSA0XPhqbNCxBiDaEFCITqlSVsqpckooq0pKiOD6kFL9HNm2bQSab3tKe55C9boPQ1XBq27GR0a074U8nlCw1dbCt3CqrfX0xiC+B/Axbb/+FTK0DnACgkXsr354bJ0nEXRUrta/RECGKVdZgrpkVZVDQtyVSrniQqghVNV/+WrtfvyZJJyz3Y5fzylyT0k4q55dG8ltNY8dp99Wc9zmhectWHDedcRaUFhXLK7bTqw5XFmzdsF515NSYI0X1p+yvlBYt2Ndgan/FgGRcbYCtTmnL9IRXDJh4JKpFFkAROB2GNl9zQjKTX0SKOUjArnDlsjIod+zPkR4grWzIPvxX4wzBWU6+9ZTPtZ2wAh2/xs8h2kHPOQjxB1+ikDOT50nV6bOmJuPdjfP9QTN+SpBbh687z7qEOu+e+5BS+pDNxifcXuwSL7A1hHR+b7rDFp2v8H3XUdp2f2JYjni20HwrR2+SN+mMyO+7aSa7SRwc30AlfUvuvl0xzjD/HP272zaOHNIr4uMVLWsI/qnBghDSv/4ik7t0jvByM9BVfGJPgwm5BZOJUvDOJVBKXyc07yZk+3PORSLYP20xYwT2OoPS9+wNtkek8J+K4TN4qesgkVxPGeT+c2WdtMKqTt84Aqvh0WRzwZKAcsdEc7hFq54uDkjsVHB9S2bA0ewJxSy3mgJ2J91BN1YOFEAA1Sy41l7wHKjNRTyQBaH7VteacOdzSrXdKmn0Gw5sNKOraaVB5qLXuHSJlPEX+WB/5r9HdsG2M9qOl92MRcwVzIMF0+pyVTtv0xuFq9+40X20WPBSUEibQZf3lcmBzDJ2s0rvjJduamiUZQe01T0+9gUHwtrt5TBfNnrgxUM0wQ85DOf5O7uOg+dQdickNlstjUR9LvY+RZzquWq1Rs3nLLumO6AGwfGOyfTqZBP5DgRmVtuN+0O8WbRFRkCEOUJ+prd3R67r31w8aplyxbuDKs83+vw+sKx1jtCacDi2sN94bYwmJvgh8Lp0D26G14ZaQuF2kNhE9/siweCXv7E07asX3lxMOJwTfSs7Mzz7PXjaZjbnM8WtPo7HcsmPKMi1FzwtHKYRYLF1X0GSqUWd/dLtib/SaOLV2xY61G8QbeC+qHp4Xb4fRBob3hGaNgbDoMznzjh8C3gwLOrdP1jBm9jrt9loaw/Q1lLl+wenUP0mhgSH3nE0PR7FgI/E2fhSrwqio8+Ss5Lul3Cs6IIZaq6wQR/JlJbte6rhxsBr7yZ+SzzUPX9dXr1SHf6zf3SZlYhmi5k4ynnFTlM5fjkSLYiqCnjikY6z6g2JWTx6YdOyeSk9/sZZ0u9FNwUylOnZMoRRPLLgvGd1GKZbl+19icMUdP5hK92QuPNzzfwomN5kE9wiPdx/MeiGcQledkqOWzumM/mSS/NcEkOm8yy3SzxNpsctvlaf5dWwmFlFbHS3qamtkDgGm4+l+C4VtMYcehQEBqTPLxKIOiny8Yfb7gu+jLuyiZnU7vKcZxJlqz2D3BcPMZxkig6BJOZEx09iZYoz1l5C+ZsAsuzJsHsiARbkD94asjvD50a9HdEB6JgkuzunRz3GIfP3k2cOv59lbKe4zkrzpV3KbLqAqKHnLhyERoIIB8QRgIhjopHRx1/1PPcJ340sBp+6JwH9sDfLOjiSVoe/SB7o/a3jfEbkbgx3qO1DNyLBi8YYGr81tvrYPX0G0dmgNYWpCAWKRYMjs040ekOldt95EjntI/fPdxZWbwUPZDRJpGNOMtnA9+V3fhAprIYLUZfgtza2+iBTm05pe2n5CX1d1OdyOxh3s9cxlzOXDs3Ccoc7z/1VHl6/1FVs0leZrjJNGdwoOZcShfK7KVCGXANhtZeUgKs4/XrSaFePTegrJ3Ne6tV7yVoan3u6nWmMDe8c+rv65hPM59h7mbuYQ78v+/7GTUL6mtC9Z9Rcv0XR0jbXz1ogtYRzF+nA7zavsANATC/DIwHwEyS7qzcS+7HCx8k5r85Xmur49WqPwwxYe23oRBqBod8kK+qc6jrL3jrvrE4V9qi4buAU52Nctg0K21xI+E3vR6/Q1XviM+Bonhf/N04mHcNhUHuMJq97z+g1ZW5UeRab5Ui/wG9WB62KLKj6aQI+hPscA071GWEpOutI7yZ6d8fqPIYls7xhpkGHlADT5hecwgF6SnG8CyfUH0zii6CZlwRjZKr66JYsJlX8KIJm1aYbFZhFlChvUco9gsJ0apdt8JsE6w2KIdNIqXp/sL+kCVcbnKX1lB9q1ICOWpAEJZUQ9vojQRloh5+hDayK2PlGJjvDjvSzvlPRUsxHO2J4XWV/b5QWP6RW+obsjr4Z+RwWDNTpR/tmThrj/XEtFaw0JCDleZFClH0KwgdE5G1VjliHxy04oiMXvCFNU2/YHYK/4pM4/uczVzMfIi5nrnfaEkA/VcQMB3X0q/78eqXdBh3W+nYlg9wUONuj7KiY1KHX3oMKRTXkr1KHl5FkelVOoOI5M7/O6jXx1oyrKnbhFjBJYlWQKLTa3xWqylrQiazz2rhkTUdbW7/mQnymB7OdndvzWazHnri8B5TgOMCCCG7hTMpLXZRNplk41MdbyILMh+GeL07/kRr3Z92XqjFZOJ5s1nkLUJICbV4LE0SZ7JyZsSxVkE0B5TmVL/p7yYwfYPH9fcfN5htLjSDOcHUZYqbThBg5rWYyHWWntMg3GWq3cXxM6Dlq/KMYf1LUYdfqHfkuLpjMzp9TjmxLKFcib4RgJV8VepXhBl7DqGWKRl+z803417i+SqJgpD2ExYNYTyEhZtMgmC6id0KAYSmwvjPEbnyIfohvfPkyFjlLnzL9AgFspvwIMuyLbwpahJUzGoP0LghbMTxLZjVeSq/Yp9hY7CHZyj/jLGg2mxVEL0SF5UKCcooI3e90pM2+pc+EJl+R+AR5ama/Be1pzuzWqW81OsBwr3c3O1BbKoiCB6vHbGS14JKoiCIWsXibfZatKdF4edqXzzeN06suIOAJYc/HkdPolJqaVmrQHnt6RTUxSbPfM/u9ZCyT+tlK6QiVLJ4pVeN8mCNOZsjzY54d9wY2/fjd2DVNgG9TTSOjmMYzxTVlixM6eYCvKpdqKSf+q67XylZSCCSUfc3JHzsXN7lssPMPFds9uJ+YotgeSyVH6Ib9CRBO93wIF9dHGTS3kFhUkB7xRL0oBtQWHC5iAaG9mtS2c5zgfqzudz8uRZPc+WFc0VPM1TtbRahmk8IJpPd5eK103jD80ZdHOS3oQjJCjV5gugTKEKrcgk0zBi47x3Gd9fr5XjLqVyL8LHObvgq43R+VMMXlJQ5xjWiTjNf+h0ld9Nso9fZTE7i9fTr53voF8ov1z6MoA9IxPM0IqL9AcmHRVS2U/wIDcJ2/0TNJd8/32ZUPTD50frAvpC8lTwPrP7l+4yHQ3L/JB4JaxygQP8Ch6BAqI3UXMODnq7TZ6x+1XVWWSDhS8bghwytRjZdvVy68ueavI2I8ggrgCo57BlHC8bQAv3uAnbJHIRz49W82leJmqGu+/0K+xLrbZAv9xH9jQbZcoOShqt+xI6EeChUMhfnBdmQVSl0wyP7R9HY9VJre3Cut7fyw57L8wdzuYN5cloUfyySj4DR7o8UwuFC5G6ncorDhxXnKR4H56r6vRLrJaig5iNnS9Hv85qSz6M38u8xdUXRCgicdFhJXq/R4IN/r+6Oisb2NtxNe0nt0oQfEKiH7iawB11MYkgKY/Au32Jvonf3dh5R70nvkTrZXb4qt0ti646v7tjxVaq8RK7iPU1yX0a+SHSpp9lzGRFKXeaZflHv90lks+fSumyGXOZb+D3aJi/jn/7F5LpL29/fAlt/y6FKC9r5/Lb8Hwpbn79urWnN4kRLSwI/VPnBNdfgvLb/b38z9subACY4G/H6f/te4obTI9UWk6aUiutOOG3dMv3O4WUPLdNVvJZpv43qlxRHX6HivOiOrz771R0kM+2AkYbMxJPRniEZbydFSFHj3d/CDzfM7cabThIN3+Rs6K1kz84eMKhVd7VwC9ufSBz6dgve0qPd19ODju05vkfjwfPPHu0tQJESDPP/AWOAdIEAAAB4nGNgZGBgAOLEz2pH4/ltvjJwszCAwJPsHysQ9P8FLAzMCUAuBwMTSBQAVToL3gB4nGNgZGBgbvjfwBDDUs8ABCwMDIwMqGABAFQNA4gAAHicY2FgYGDBhx0IyBPSZ09AjQOSWgcs4rgwNjPQxdHV2OOwwwZNjQ0B9xFyozGRfrAnQg02d4CwAQ5/4Qpf9HiwxxM3yGbVY7HbHodadPcyMGD6E00dAB93GZEAAAAAAABKAI4BBAGsAc4CYgLWA0QENgSaBQIFbAYCBoAGwgdGB7YIEAhiCNQI7AkSCUIJjAmyChgKnAriCwoLcAvwDHANMA4ADpIPGA+YD/IQKBB+EK4REBFwEaYR8hL0FDgUbBSgFPoVRhX2FmIXMBfAGBAYeBjWGSoZkhn0Gj4a3hr4G0wboBxIHNgdAh12HeQeah6+HwgfMh+YIBogdCEYIXoh9CIkIlIigiLkIvojviQEJM4l6iYuJnIm/CdcJ8YoBigqKIgo3Ck+KYIp5CpiKugrmCv8LEQsmizCLRotvi46LuAvOi/qMGYxHjF0McIyGDKaMyozfDPKNBw0lDU8Naw2oDcUN1438jhWOJ45QDm8OoY63DvKPCw8gj06Ph4+ej7SP0A/nECEQQBBckIAQqJC+kN2Q55D4EQKRGhEogAAeJxjYGRgYFjA8IFBigEEmICYCwgZGP6D+QwAMvACwQB4nF2RzU7CQBSFz8iPERIXmrhwNW6IiaEFluwMCexZ4LqUKT9pO810IGHl0/gEPoFP4BPoS/gCHsrVBNrMne+cuffOTQvgBt9QOD63XEdWuKQ68gX5XrhGfhCukx+FG2gjFG7SHwq38IRn4TY7puyg6ldUHbwKK1zjTfiC/C5cI38I18mfwg3c4Uu4Sf9HuIWZUsJtdNTLyJnIm4We7/U6tnlic5/E3QNOzXKbRk6UbDPjyrXNdT/oiTMxuXF/LcrdcuB9ohNnMz1mL5OmVhfObkzsg5X3xTAME/GD2GYYwcEggmdcQGOOPeMaMSxyJFX03GN0/90pc5fY8kNFrD49O1UzZjqU1Ael0UeA3lnOhDl5lXc+RYkd7xnQPUyguRwrMtJY5jKcISVrFNXZhk5MP8Cqqir4k0O+yVl+UN2d/QI8XWjpAAAAeJxtVIeW2zYQvDmRFCWdzzmf03uvTGKd03txeu89gYiVBB9I0AAondJ7773H+dMsKCk5vxe9J4LALoDZ2RmurK7Mf92V//8dxSpaiBAjQRspOuiihzXswTr24jhsYB82sR/H4wSciJNwMk7BqTgNp+MMnImzcDbOwbk4D+fjAlyIi3AxLsGluAwZLscVuBIH0McWDuIqXI1rcC2uw/W4ATfiJtyMW3ArbsPtuAN34hDuwt24B/fiPtyPB/AgHsLDeASP4jE8jifwJJ7C03gGz+I5PI8X8CJewst4BQID5JAgDDHCGAqHsQ2NAiUMKhyBhYNHjQmm2MEMr+I1vI438Cbewtt4B+/iPbyPD/AhPsLH+ASf4jN8ji/wJb7C1/gG3+I7fI8f8CN+ws/4Bb/iN/yOP/An/sJR/L2SOBI2HyeHdipRyrQQdluaadmTwovMkabcd0ZWyUyrkuLKqtJHufKzVJtceGXK5IjNjaRUlVXtMyUTNbSioFjUUpnu0NgiKziuY6+8psipUdkWUlpyruM8H+G8ytsD0ZwST5Qkk4gJ327brnYVlbI9FbZU5ShyPEktDXnvuL8qVDs3ui7KrcV4cDH2F+OBRIuZqX3H0aig0pNsh4Exd+ZgvRi1vBis5aYcqlFGE44yJqqyADtxmsHYRCqhzWjzcM1Ah7PMVSJnykxdyqSutBEyyk0163pVUGZFOaLUC7edcY37j9kzID8lKhNVVMb6Hl+sqbloq7cAMBCO9gnNDClPhcuct+Tz8e6loaYdZiHOx5RvR6L2Js2F5hVhl2U4P9O0dzERciLKnOQyWFlTuXVuB3nKcmVzTf09x0yT+Wy/VJZ7z2Rl1kwtc2MdrUnlKia1gRFJK0Z7lisD1sN2FFQTk1S+H4VnaHTGzdhcZqkyyKjJXSKccHW8jaIgu/VjE1s0ow7/s1wbR+2KYSia9sLtWcmoRJUMjeYm9RqdzQvoNOEQjMJqpwkF9iLFV8aqECPaWHYm5LIKrV9fruRBKXbvv62b9yBmONv9uFBl7WJWUd2PCmMpCq+p5q7XfGqrEjIpzEBpSiueZ4XY4bTJcqbKlEvIgsJWqzwKi+2FnBMrpKpdz4kJi0JpTTI9UpNrHOZya7QOg6p825H3jRs4NXFjwbylE2FV0FNrRm5tvsYUcmboCHXDY6FN7oYWleOdU8V1sccGgaAel0kLv8fckpoNrMmy14WVaaO2gdlhrblcBFMMau9N2W2+Eo2S4xFbompLFRxso8DrmqQ5ZK7BRWNf6CSIwti4sV8UKGVmnJsaK+NAgGmx1pJ57yPLoGOGa2wyxxUddkxGWRcDsnFjqe5/Jtrlp34UvBhxRpl62uHukmh7Y7RXVeS08alnLtyQLLt/1JnyPTZ896LAQdyc02mEO1ZaRvzWb/Fjc5cLg1EDxm6T1qhuY1d4LqGVlX8A+icldA==) format("woff")}.fc-icon{font-family:fc-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.icon-search:before{content:"\\e608"}.icon-expand:before{content:"\\e6df"}.icon-expand-left:before{content:"\\e6df";display:inline-block;transform:rotate(-180deg)}.icon-data-select:before{content:"\\e6dd"}.icon-markdown:before{content:"\\e893"}.icon-grid-line:before{content:"\\e600"}.icon-print:before{content:"\\e6de"}.icon-city:before{content:"\\e64b"}.icon-location:before{content:"\\e6d4"}.icon-qrcode:before{content:"\\e6ce"}.icon-input-id:before{content:"\\e6d1"}.icon-iframe:before{content:"\\e6d2"}.icon-audio:before{content:"\\e6d3"}.icon-form-model:before{content:"\\e6d5"}.icon-title:before{content:"\\e6d6"}.icon-sign:before{content:"\\e6d7"}.icon-address:before{content:"\\e6d8"}.icon-statistic:before{content:"\\e6d9"}.icon-barcode:before{content:"\\e6da"}.icon-video:before{content:"\\e6db"}.icon-avatar:before{content:"\\e6dc"}.icon-suspend:before{content:"\\e6cf"}.icon-warning:before{content:"\\e6d0"}.icon-send:before{content:"\\e6cc"}.icon-refresh2:before{content:"\\e6cd"}.icon-ai:before{content:"\\e6cb"}.icon-ai.bright{background:linear-gradient(90deg,#328ff7,#62e3a3);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.icon-column4:before{content:"\\e6c7"}.icon-column3:before{content:"\\e6c6"}.icon-column2:before{content:"\\e6c8"}.icon-column1:before{content:"\\e6c9"}.icon-layout:before{content:"\\e6ca"}.icon-segmented:before{content:"\\e682"}.icon-mention:before{content:"\\e6c5"}.icon-input-tag:before{content:"\\e6c4"}.icon-up:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-alignitems-flexstart:before{content:"\\e67f";display:inline-block;transform:rotate(180deg)}.icon-align-center:before{content:"\\e6a5";display:inline-block;transform:rotate(90deg)}.icon-align-flexstart:before{content:"\\e6a4";display:inline-block;transform:rotate(90deg)}.icon-align-spacearound:before{content:"\\e670";display:inline-block;transform:rotate(-90deg)}.icon-align-spacebetween:before{content:"\\e695";display:inline-block;transform:rotate(-90deg)}.icon-align-stretch:before{content:"\\e6a7";display:inline-block;transform:rotate(-90deg)}.icon-align-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(-90deg)}.icon-justify-flexend:before{content:"\\e6a4";display:inline-block;transform:rotate(180deg)}.icon-direction-row:before{content:"\\e68b";display:inline-block;transform:rotate(180deg)}.icon-direction-column:before{content:"\\e68b";display:inline-block;transform:rotate(-90deg)}.icon-direction-columnreverse:before{content:"\\e68b";display:inline-block;transform:rotate(90deg)}.icon-arrow:before{content:"\\e697";display:inline-block;transform:rotate(180deg)}.icon-cell:before{content:"\\e654"}.icon-table:before{content:"\\eb0a"}.icon-next-step:before{content:"\\e6b4";display:inline-block;transform:rotateY(180deg)}.icon-grid:before{content:"\\e65c";display:inline-block;transform:rotate(90deg)}.icon-alignitems-stretch:before{content:"\\e67e"}.icon-alignitems-flexend:before{content:"\\e67f"}.icon-check:before{content:"\\e680"}.icon-auto:before{content:"\\e681"}.icon-config-event:before{content:"\\e66e"}.icon-calendar:before{content:"\\e683"}.icon-config-style:before{content:"\\e684"}.icon-copy:before{content:"\\e676"}.icon-config-advanced:before{content:"\\e686"}.icon-config-props:before{content:"\\e687"}.icon-delete-circle2:before{content:"\\e688"}.icon-delete2:before,.icon-delete-circle:before{content:"\\e689"}.icon-delete:before{content:"\\e68a"}.icon-direction-rowreverse:before{content:"\\e68b"}.icon-display-flex:before{content:"\\e68c"}.icon-dialog:before{content:"\\e66f"}.icon-drag:before{content:"\\e68e"}.icon-display-block:before{content:"\\e68f"}.icon-data:before{content:"\\e690"}.icon-edit2:before{content:"\\e691"}.icon-edit:before{content:"\\e692"}.icon-add-col:before{content:"\\e693"}.icon-display-inlineblock:before{content:"\\e694"}.icon-config-base:before{content:"\\e6bf"}.icon-config-validate:before{content:"\\e696"}.icon-down:before{content:"\\e697"}.icon-display-inline:before{content:"\\e698"}.icon-eye:before{content:"\\e699"}.icon-eye-close:before{content:"\\e69a"}.icon-import:before{content:"\\e6a6"}.icon-preview:before{content:"\\e69b"}.icon-flex-nowrap:before{content:"\\e69c"}.icon-folder:before{content:"\\e69d"}.icon-form-circle:before{content:"\\e69e"}.icon-flex-wrap:before{content:"\\e69f"}.icon-form:before{content:"\\e6a0"}.icon-form-item:before{content:"\\e6a1"}.icon-icon:before{content:"\\e6a2"}.icon-image:before{content:"\\e6a3"}.icon-justify-flexstart:before{content:"\\e6a4"}.icon-justify-center:before{content:"\\e6a5"}.icon-justify-spacearound:before{content:"\\e670"}.icon-justify-stretch:before{content:"\\e6a7"}.icon-link2:before{content:"\\e6a8"}.icon-justify-spacebetween:before{content:"\\e695"}.icon-minus:before{content:"\\e6aa"}.icon-menu2:before{content:"\\e6ab"}.icon-more:before{content:"\\e6ac"}.icon-menu:before{content:"\\e6ad"}.icon-language:before{content:"\\e6ae"}.icon-pad:before{content:"\\e6af"}.icon-mobile:before{content:"\\e6b0"}.icon-page-max:before{content:"\\e6b1"}.icon-move:before{content:"\\e6b2"}.icon-page-min:before{content:"\\e6b3"}.icon-pre-step:before{content:"\\e6b4"}.icon-pc:before{content:"\\e6b5"}.icon-page:before{content:"\\e6b6"}.icon-refresh:before{content:"\\e6b7"}.icon-radius:before{content:"\\e6b8"}.icon-save-filled:before{content:"\\e6b9"}.icon-question:before{content:"\\e6ba"}.icon-scroll:before{content:"\\e6bb"}.icon-script:before{content:"\\e6bc"}.icon-setting:before{content:"\\e6bd"}.icon-save-online:before,.icon-save:before{content:"\\e6be"}.icon-task-add:before{content:"\\e68d"}.icon-shadow:before{content:"\\e6c0"}.icon-variable:before{content:"\\e6c1"}.icon-yes:before{content:"\\e6c2"}.icon-shadow-inset:before{content:"\\e6c3"}.icon-date:before{content:"\\e642"}.icon-date-range:before{content:"\\e643"}.icon-collapse:before{content:"\\e644"}.icon-slider:before{content:"\\e665"}.icon-switch:before{content:"\\e646"}.icon-subform:before{content:"\\e647"}.icon-time-range:before{content:"\\e685"}.icon-tree-select:before{content:"\\e649"}.icon-value:before{content:"\\e64a"}.icon-table-form3:before{content:"\\e6a9"}.icon-alert:before{content:"\\e64c"}.icon-card:before{content:"\\e64d"}.icon-checkbox:before{content:"\\e64e"}.icon-cascader:before{content:"\\e64f"}.icon-button:before{content:"\\e650"}.icon-data-table:before{content:"\\e651"}.icon-group:before{content:"\\e652"}.icon-divider:before{content:"\\e653"}.icon-flex:before{content:"\\e654"}.icon-descriptions:before{content:"\\e655"}.icon-html:before{content:"\\e656"}.icon-editor:before{content:"\\e657"}.icon-input:before{content:"\\e658"}.icon-link:before{content:"\\e659"}.icon-password:before{content:"\\e65a"}.icon-radio:before{content:"\\e65b"}.icon-row:before{content:"\\e65c"}.icon-inline:before{content:"\\e65d"}.icon-rate:before{content:"\\e65e"}.icon-color:before{content:"\\e65f"}.icon-select:before{content:"\\e660"}.icon-json:before{content:"\\e661"}.icon-number:before{content:"\\e662"}.icon-space:before{content:"\\e664"}.icon-step-form:before{content:"\\e663"}.icon-table-form:before{content:"\\e666"}.icon-table-form2:before{content:"\\e667"}.icon-time:before{content:"\\e668"}.icon-span:before{content:"\\e669"}.icon-textarea:before{content:"\\e66a"}.icon-tooltip:before{content:"\\e66b"}.icon-slot:before{content:"\\e66c"}.icon-transfer:before{content:"\\e66d"}.icon-upload:before{content:"\\e673"}.icon-tag:before{content:"\\e671"}.icon-watermark:before{content:"\\e672"}.icon-tab:before{content:"\\e674"}.icon-tree:before{content:"\\e675"}.icon-table:before{content:"\\e677"}.icon-add-child:before{content:"\\e678"}.icon-add2:before{content:"\\e679"}.icon-add:before{content:"\\e67a"}.icon-alignitems-baseline:before{content:"\\e67b"}.icon-add-circle:before{content:"\\e67c"}.icon-alignitems-center:before{content:"\\e67d"}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#000;background:#fff}.hljs-subst,.hljs-title{font-weight:400;color:#000}.hljs-title.function_{color:#7a7a43}.hljs-code,.hljs-comment,.hljs-quote{color:#8c8c8c;font-style:italic}.hljs-meta{color:#9e880d}.hljs-section{color:#871094}.hljs-built_in,.hljs-keyword,.hljs-literal,.hljs-meta .hljs-keyword,.hljs-name,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-selector-pseudo,.hljs-selector-tag,.hljs-symbol,.hljs-template-tag,.hljs-type,.hljs-variable.language_{color:#0033b3}.hljs-attr,.hljs-property{color:#871094}.hljs-attribute{color:#174ad4}.hljs-number{color:#1750eb}.hljs-regexp{color:#264eff}.hljs-link{text-decoration:underline;color:#006dcc}.hljs-meta .hljs-string,.hljs-string{color:#067d17}.hljs-char.escape_{color:#0037a6}.hljs-doctag{text-decoration:underline}.hljs-template-variable{color:#248f8f}.hljs-addition{background:#bee6be}.hljs-deletion{background:#d6d6d6}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}')),document.head.appendChild(e)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}})();
(function(At,l){typeof exports=="object"&&typeof module<"u"?l(exports,require("vue"),require("element-plus"),require("@form-create/element-ui")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus","@form-create/element-ui"],l):(At=typeof globalThis<"u"?globalThis:At||self,l(At.FcDesigner={},At.Vue,At.ElementPlus,At.formCreate))})(this,function(At,l,wp,Ep){"use strict";const iu=(t=>t&&typeof t=="object"&&"default"in t?t:{default:t})(Ep),Xe={type(t,r){return Object.prototype.toString.call(t)==="[object "+r+"]"},Undef(t){return t==null},Element(t){return typeof t=="object"&&t!==null&&t.nodeType===1&&!Xe.Object(t)},trueArray(t){return Array.isArray(t)&&t.length>0},Function(t){const r=this.getType(t);return r==="Function"||r==="AsyncFunction"},getType(t){const r=Object.prototype.toString.call(t);return/^\[object (.*)\]$/.exec(r)[1]},empty(t){return t==null||Array.isArray(t)&&Array.isArray(t)&&!t.length?!0:typeof t=="string"&&!t}};["Date","Object","String","Boolean","Array","Number"].forEach(t=>{Xe[t]=function(r){return Xe.type(r,t)}});function Li(t,r){return{}.hasOwnProperty.call(t,r)}function Vi(t,r,a){t[r]=a}function vo(t,r={},a){let o=!1;for(let n in r)if(Object.prototype.hasOwnProperty.call(r,n)){let s=r[n];if((o=Array.isArray(s))||Xe.Object(s)){let d=t[n]===void 0;if(o)o=!1,d&&Vi(t,n,[]);else if(s._clone&&a!==void 0)if(a)s=s.getRule(),d&&Vi(t,n,{});else{Vi(t,n,s._clone());continue}else d&&Vi(t,n,{});t[n]=vo(t[n],s,a)}else Vi(t,n,s),Xe.Undef(s)||(Xe.Undef(s.__json)||(t[n].__json=s.__json),Xe.Undef(s.__origin)||(t[n].__origin=s.__origin))}return a!==void 0&&Array.isArray(t)?t.filter(n=>!n||!n.__ctrl):t}function Ct(t){return vo({},{value:t}).value}function Sp(t,r,a){return`[form-create ${t}]: ${r}`+(a?`
rule: `+JSON.stringify(a.getRule?a.getRule():a):"")}function xp(t,r){console.error(Sp("err",t,r))}const ru="[[FORM-CREATE-PREFIX-",ou="-FORM-CREATE-SUFFIX]]";function Da(t){return new Function("return "+t)()}function Tp(t,r){if(t&&Xe.String(t)&&t.length>4){let a=t.trim(),o=!1;try{if(a.indexOf(ou)>0&&a.indexOf(ru)===0)a=a.replace(ou,"").replace(ru,""),o=!0;else if(a.indexOf("$FN:")===0)a=a.substring(4),o=!0;else if(a.indexOf("$EXEC:")===0)a=a.substring(6),o=!0;else if(a.indexOf("$GLOBAL:")===0){const s=a.substring(8);return a=function(...d){const c=d[0].api.getGlobalEvent(s);if(c)return c.call(this,...d)},a.__json=t,a.__inject=!0,a}else{if(a.indexOf("$FNX:")===0)return a=Da(`function($inject){
`+a.substring(5)+`
}`),a.__json=t,a.__inject=!0,a;(!r&&a.indexOf("function ")===0&&a!=="function "||!r&&a.indexOf("function(")===0&&a!=="function(")&&(o=!0)}if(!o)return t;let n;try{n=Da(a)}catch{n=Da("function "+a)}return n.__json=t,n}catch(n){xp(`\u89E3\u6790\u5931\u8D25:${a}
err: ${n}`);return}}return t}function Np(t){const r=t.replace(/(-[a-z])/g,function(a){return a.replace("-","").toLocaleUpperCase()});return Ra(r)}function Ra(t){return t.replace(t[0],t[0].toLowerCase())}const au={name:"zh-cn",form:{field:"\u5B57\u6BB5 ID",title:"\u5B57\u6BB5\u540D\u79F0",info:"\u63D0\u793A\u4FE1\u606F",control:"\u7EC4\u4EF6\u8054\u52A8",labelPosition:"\u6807\u7B7E\u7684\u4F4D\u7F6E",labelStyle:"\u6807\u7B7E\u7684\u6837\u5F0F",labelSuffix:"\u6807\u7B7E\u7684\u540E\u7F00",size:"\u8868\u5355\u7684\u5C3A\u5BF8",event:"\u8868\u5355\u4E8B\u4EF6",labelWidth:"\u6807\u7B7E\u7684\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",appendChild:"\u6DFB\u52A0\u5B50\u7EA7",formMode:"\u8868\u5355\u6A21\u5F0F",formName:"\u8868\u5355\u540D\u79F0",componentMode:"\u751F\u6210\u7EC4\u4EF6",htmlMode:"\u751F\u6210HTML",document:"\u5E2E\u52A9\u6587\u6863",controlDocument:"\u9700\u8981\u66F4\u8BE6\u7EC6\u7684\u914D\u7F6E\u65B9\u6CD5\uFF1F\u8BF7\u67E5\u770B{doc}",onSubmit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",onReset:"\u8868\u5355\u91CD\u7F6E\u540E\u89E6\u53D1",onCreated:"\u8868\u5355\u7EC4\u4EF6\u521D\u59CB\u5316\u5B8C\u6BD5\u540E\u89E6\u53D1",onMounted:"\u8868\u5355\u7EC4\u4EF6\u6E32\u67D3\u5B8C\u6BD5\u540E\u89E6\u53D1",onReload:"\u8868\u5355\u6E32\u67D3\u89C4\u5219\u91CD\u8F7D\u540E\u89E6\u53D1",onChange:"\u8868\u5355\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",beforeSubmit:"\u8868\u5355\u9A8C\u8BC1\u901A\u8FC7\u65F6\u89E6\u53D1",beforeFetch:"\u8FDC\u7A0B\u6570\u636E\u8BF7\u6C42\u53D1\u9001\u524D\u89E6\u53D1"},warning:{name:"\u7EC4\u4EF6\u7684\u552F\u4E00\u6807\u8BC6\uFF0C\u7528\u4E8E\u83B7\u53D6\u548C\u4FEE\u6539\u8BE5\u7EC4\u4EF6\u7684\u914D\u7F6E\u89C4\u5219\u3002\u901A\u8FC7\u8BE5\u6807\u8BC6\u53EF\u4EE5\u7CBE\u786E\u5B9A\u4F4D\u7EC4\u4EF6\uFF0C\u5B9E\u73B0\u5BF9\u7EC4\u4EF6\u5C5E\u6027\u548C\u884C\u4E3A\u7684\u63A7\u5236\u3002",field:"\u7EC4\u4EF6\u5BF9\u5E94\u7684\u5B57\u6BB5\u540D\u7528\u4E8E\u4E0E\u7EC4\u4EF6\u7684\u6570\u636E\u8FDB\u884C\u7ED1\u5B9A\u3002\u5B57\u6BB5\u540D\u9700\u4EE5\u5B57\u6BCD\u5F00\u5934\uFF0C\u4EE5\u786E\u4FDD\u80FD\u591F\u6B63\u786E\u8BC6\u522B\u3002",fetch:"\u8FDC\u7A0B\u6570\u636E\u901A\u8FC7\u8FDC\u7A0B\u8BF7\u6C42\u52A0\u8F7D\u7EC4\u4EF6\u7684\u914D\u7F6E\u9879\u3002\u914D\u7F6E\u8BF7\u6C42\u53C2\u6570\u540E\uFF0C\u7EC4\u4EF6\u4F1A\u81EA\u52A8\u53D1\u8D77\u8BF7\u6C42\uFF0C\u83B7\u53D6\u8FDC\u7A0B\u6570\u636E\u5E76\u6839\u636E\u8FD4\u56DE\u7684\u7ED3\u679C\u66F4\u65B0\u7EC4\u4EF6\u3002",fetchQuery:"\u5B9A\u4E49\u8BF7\u6C42\u7684 GET \u53C2\u6570\uFF0C\u901A\u8FC7 URL \u4F20\u9012\u6570\u636E\u3002",fetchData:"\u5B9A\u4E49\u8BF7\u6C42\u7684 POST \u53C2\u6570\uFF0C\u901A\u8FC7\u8BF7\u6C42\u4F53\u4F20\u9012\u6570\u636E\u3002",fetchDataType:"\u9009\u62E9\u8BF7\u6C42\u4F53\u7684\u6570\u636E\u7C7B\u578B\uFF0C\u786E\u4FDD\u6570\u636E\u683C\u5F0F\u6B63\u786E\u3002",beforeFetch:"\u5728\u8BF7\u6C42\u53D1\u9001\u524D\uFF0C\u53EF\u901A\u8FC7\u5904\u7406\u51FD\u6570\u4FEE\u6539\u8BF7\u6C42\u53C2\u6570\uFF1B\u82E5\u9700\u7EC8\u6B62\u8BF7\u6C42\uFF0C\u76F4\u63A5\u8FD4\u56DE false \u6216\u4E00\u4E2A\u62D2\u7EDD\u7684 Promise\u3002",fetchParse:"\u8BF7\u6C42\u8FD4\u56DE\u540E\uFF0C\u53EF\u4EE5\u901A\u8FC7\u5904\u7406\u51FD\u6570\u5BF9\u8FD4\u56DE\u7684\u7ED3\u679C\u8FDB\u884C\u5904\u7406\uFF0C\u5C06\u7ED3\u679C\u8F6C\u6362\u4E3A\u7EC4\u4EF6\u6240\u9700\u7684\u6570\u636E\u548C\u7ED3\u6784\u3002",language:"\u7BA1\u7406\u9875\u9762\u7684\u591A\u8BED\u8A00\u6570\u636E\uFF0C\u5728\u7EC4\u4EF6\u4E2D\u914D\u7F6E\u4E0D\u540C\u8BED\u8A00\u7684\u6587\u672C\uFF0C\u652F\u6301\u4E00\u952E\u5207\u6362\u8BED\u8A00\u4F53\u7CFB\uFF0C\u4FBF\u4E8E\u5728\u591A\u8BED\u8A00\u73AF\u5883\u4E0B\u4F7F\u7528\u548C\u5C55\u793A\u5185\u5BB9\u3002"},computed:{fieldUsed:"\u3010{label}\u3011\u5728\u8BA1\u7B97\u516C\u5F0F\u4E2D\u88AB\u4F7F\u7528\uFF0C\u8BF7\u5148\u4FEE\u6539\u5BF9\u5E94\u516C\u5F0F",fieldExist:"\u3010{label}\u3011\u5B57\u6BB5\u5DF2\u5B58\u5728",fieldEmpty:"\u5B57\u6BB5\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A",fieldChar:"\u5B57\u6BB5\u540D\u79F0\u5FC5\u987B\u4EE5\u5B57\u6BCD\u5F00\u5934"},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",validator:"\u81EA\u5B9A\u4E49\u9A8C\u8BC1",min:"\u6700\u5C0F\u503C",max:"\u6700\u5927\u503C",len:"\u957F\u5EA6"},types:{string:"\u6587\u672C",boolean:"\u5E03\u5C14",array:"\u591A\u9009",number:"\u6570\u5B57",integer:"\u6574\u6570",float:"\u5C0F\u6570",object:"\u5408\u96C6",date:"\u65E5\u671F",url:"URL\u94FE\u63A5",email:"\u90AE\u7BB1\u5730\u5740"},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",required:"\u662F\u5426\u5FC5\u586B",rule:"\u9A8C\u8BC1\u89C4\u5219"},tableOptions:{handle:"\u64CD\u4F5C",add:"\u6DFB\u52A0",empty1:"\u70B9\u51FB\u53F3\u4E0B\u89D2",empty2:"\u6309\u94AE\u6DFB\u52A0\u4E00\u5217",rmCol:"\u5220\u9664\u5F53\u524D\u5217",rmRow:"\u5220\u9664\u5F53\u524D\u884C",batchRmCol:"\u5220\u9664\u5217",batchRmRow:"\u5220\u9664\u884C",batchSplit:"\u62C6\u5206\u5355\u5143\u683C",batchMerge:"\u5408\u5E76\u5355\u5143\u683C",splitRow:"\u62C6\u5206\u6210\u884C",splitCol:"\u62C6\u5206\u6210\u5217",mergeBottom:"\u5411\u4E0B\u5408\u5E76",mergeRight:"\u5411\u53F3\u5408\u5E76",addTop:"\u6DFB\u52A0\u4E0A\u5217",addBottom:"\u6DFB\u52A0\u4E0B\u5217",addLeft:"\u6DFB\u52A0\u5DE6\u5217",addRight:"\u6DFB\u52A0\u53F3\u5217",keyValue:"\u952E\u503C\u5BF9"},struct:{title:"\u7F16\u8F91\u6570\u636E",only:"\u3010{label}\u3011\u53EA\u5141\u8BB8\u6DFB\u52A0\u4E00\u4E2A",errorMsg:"\u8F93\u5165\u7684\u5185\u5BB9\u8BED\u6CD5\u9519\u8BEF",configured:"\u5DF2\u914D\u7F6E"},event:{title:"\u8BBE\u7F6E\u4E8B\u4EF6",create:"\u521B\u5EFA\u4E8B\u4EF6",list:"\u4E8B\u4EF6\u5217\u8868",placeholder:"\u8BF7\u8F93\u5165\u4E8B\u4EF6\u7684\u540D\u79F0",saveMsg:"\u8BF7\u5148\u4FDD\u5B58\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u4E8B\u4EF6",type:"\u7C7B\u578B",info:"\u8BF4\u660E",label:"\u5B57\u6BB5",inject:{api:"\u5F53\u524D\u8868\u5355\u7684api",rule:"\u5F53\u524D\u8868\u5355\u7684\u751F\u6210\u89C4\u5219",self:"\u7EC4\u4EF6\u7684\u751F\u6210\u89C4\u5219",option:"\u8868\u5355\u7684\u914D\u7F6E",args:"\u4E8B\u4EF6\u7684\u539F\u59CB\u53C2\u6570"}},eventInfo:{blur:"\u5931\u53BB\u7126\u70B9\u65F6\u89E6\u53D1",focus:"\u83B7\u5F97\u7126\u70B9\u65F6\u89E6\u53D1",change:"\u5F53\u7ED1\u5B9A\u503C\u53D8\u5316\u65F6\u89E6\u53D1",input:"\u5728\u503C\u6539\u53D8\u65F6\u89E6\u53D1",clear:"\u5728\u70B9\u51FB\u6E05\u7A7A\u6309\u94AE\u65F6\u89E6\u53D1",close:"\u5173\u95ED\u7EC4\u4EF6\u65F6\u89E6\u53D1",click:"\u70B9\u51FB\u7EC4\u4EF6\u65F6\u89E6\u53D1",add:"\u589E\u52A0\u65F6\u89E6\u53D1",delete:"\u5220\u9664\u65F6\u89E6\u53D1",visibleChange:"\u4E0B\u62C9\u6846\u51FA\u73B0/\u9690\u85CF\u65F6\u89E6\u53D1",calendarChange:"\u5728\u65E5\u5386\u6240\u9009\u65E5\u671F\u66F4\u6539\u65F6\u89E6\u53D1",panelChange:"\u5F53\u65E5\u671F\u9762\u677F\u6539\u53D8\u65F6\u89E6\u53D1",open:"\u6253\u5F00\u7684\u56DE\u8C03",opened:"\u6253\u5F00\u52A8\u753B\u7ED3\u675F\u65F6\u7684\u56DE\u8C03",closed:"\u5173\u95ED\u52A8\u753B\u7ED3\u675F\u65F6\u7684\u56DE\u8C03",openAutoFocus:"\u8F93\u5165\u7126\u70B9\u805A\u7126\u5728\u5185\u5BB9\u65F6\u7684\u56DE\u8C03",closeAutoFocus:"\u8F93\u5165\u7126\u70B9\u4ECE\u5185\u5BB9\u5931\u7126\u65F6\u7684\u56DE\u8C03",submit:"\u8868\u5355\u63D0\u4EA4\u65F6\u89E6\u53D1",confirm:"\u70B9\u51FB\u786E\u8BA4\u6309\u94AE\u65F6\u89E6\u53D1",validateFail:"\u8868\u5355\u9A8C\u8BC1\u5931\u8D25\u65F6\u89E6\u53D1",hook_load:"\u7EC4\u4EF6\u89C4\u5219\u52A0\u8F7D\u540E\u89E6\u53D1",hook_mounted:"\u7EC4\u4EF6\u6302\u8F7D\u540E\u89E6\u53D1",hook_deleted:"\u7EC4\u4EF6\u89C4\u5219\u88AB\u79FB\u9664\u540E\u89E6\u53D1",hook_watch:"\u7EC4\u4EF6\u89C4\u5219\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_value:"\u7EC4\u4EF6\u7684\u503C\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1",hook_hidden:"\u7EC4\u4EF6\u663E\u793A\u72B6\u6001\u53D1\u751F\u53D8\u5316\u540E\u89E6\u53D1"},fetch:{title:"\u8BBE\u7F6E\u6570\u636E\u6E90",create:"\u521B\u5EFA\u6570\u636E\u6E90",config:"\u8BF7\u6C42\u914D\u7F6E",action:"\u8BF7\u6C42\u94FE\u63A5",actionRequired:"\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u94FE\u63A5",placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u6E90\u7684\u540D\u79F0",method:"\u8BF7\u6C42\u65B9\u5F0F",data:"\u9644\u5E26\u6570\u636E",dataType:"\u6570\u636E\u7C7B\u578B",headers:"\u8BF7\u6C42\u5934\u90E8",query:"\u8BF7\u6C42\u53C2\u6570",parse:"\u6570\u636E\u5904\u7406",response:"\u63A5\u53E3\u8FD4\u56DE\u7684\u6570\u636E",onError:"\u9519\u8BEF\u5904\u7406",beforeFetch:"\u524D\u7F6E\u5904\u7406",remote:"\u8FDC\u7A0B\u6570\u636E",static:"\u9759\u6001\u6570\u636E",optionsType:{fetch:"\u8FDC\u7A0B\u6570\u636E",struct:"\u9759\u6001\u6570\u636E"}},style:{width:"\u5BBD\u5EA6",height:"\u9AD8\u5EA6",color:"\u989C\u8272",backgroundColor:"\u80CC\u666F\u8272",margin:"\u5916\u8FB9\u8DDD",padding:"\u5185\u8FB9\u8DDD",borderRadius:"\u5706\u89D2",border:"\u8FB9\u6846",solid:"\u5B9E\u7EBF",dashed:"\u865A\u7EBF",dotted:"\u70B9\u72B6\u865A\u7EBF",double:"\u53CC\u5B9E\u7EBF",opacity:"\u900F\u660E\u5EA6",scale:"\u7F29\u653E",minWidth:"\u6700\u5C0F\u5BBD",minHeight:"\u6700\u5C0F\u9AD8",maxWidth:"\u6700\u5927\u5BBD",maxHeight:"\u6700\u5927\u9AD8",overflow:{name:"\u6EA2\u51FA",visible:"\u53EF\u89C1",hidden:"\u9690\u85CF",scroll:"\u6EDA\u52A8",auto:"\u6EA2\u51FA\u540E\u81EA\u52A8\u6EDA\u52A8"},shadow:{name:"\u9634\u5F71",x:"x\u8F74\u504F\u79FB\u91CF",y:"y\u8F74\u504F\u79FB\u91CF",vague:"\u6A21\u7CCA\u534A\u5F84",extend:"\u6269\u6563\u534A\u5F84",inset:"\u5411\u5185",external:"\u5411\u5916",mode:"\u6A21\u5F0F",classic:"\u7ECF\u5178",flat:"\u6241\u5E73",solid:"\u7ACB\u4F53"},font:{name:"\u5B57\u4F53",size:"\u5927\u5C0F",align:"\u5BF9\u9F50\u65B9\u5F0F",height:"\u884C\u9AD8",spacing:"\u5B57\u95F4\u8DDD",preview:"\u6837\u5F0F\u9884\u89C8"},decoration:{name:"\u4FEE\u9970",underline:"\u4E0B\u5212\u7EBF","line-through":"\u5220\u9664\u7EBF",overline:"\u4E0A\u5212\u7EBF"},weight:{name:"\u7C97\u7EC6",300:"\u7EC6\u4F53",400:"\u5E38\u89C4\u4F53",500:"\u4E2D\u9ED1\u4F53",700:"\u4E2D\u7C97\u4F53"}},designer:{component:"\u7EC4\u4EF6\u914D\u7F6E",id:"\u552F\u4E00\u503C",name:"\u7F16\u53F7",type:"\u7EC4\u4EF6\u7C7B\u578B",form:"\u8868\u5355\u914D\u7F6E",json:"\u6E32\u67D3\u89C4\u5219",style:"\u7EC4\u4EF6\u6837\u5F0F\u914D\u7F6E",rule:"\u57FA\u7840\u914D\u7F6E",advanced:"\u9AD8\u7EA7\u914D\u7F6E",props:"\u5C5E\u6027\u914D\u7F6E",customProps:"\u81EA\u5B9A\u4E49\u5C5E\u6027\u914D\u7F6E",validate:"\u9A8C\u8BC1\u914D\u7F6E",event:"\u4E8B\u4EF6\u914D\u7F6E",clearWarn:"\u6E05\u7A7A\u540E\u5C06\u4E0D\u80FD\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u6E05\u7A7A\u5417\uFF1F",childEmpty:"\u70B9\u51FB\u53F3\u4E0B\u89D2 \\e789 \u6309\u94AE\u6DFB\u52A0\u4E00\u5217",dragEmpty:"\u62D6\u62FD\u5DE6\u4FA7\u5217\u8868\u4E2D\u7684\u7EC4\u4EF6\u5230\u6B64\u5904",unload:"\u786E\u5B9A\u79BB\u5F00\u5F53\u524D\u9875\u9762\u5417?",comList:"\u7EC4\u4EF6\u5217\u8868"},language:{name:"\u56FD\u9645\u5316\u914D\u7F6E",add:"\u65B0\u589E\u8BCD\u6761",batchRemove:"\u6279\u91CF\u5220\u9664",select:"\u9009\u62E9\u591A\u8BED\u8A00"},menu:{main:"\u57FA\u7840\u7EC4\u4EF6",aide:"\u8F85\u52A9\u7EC4\u4EF6",layout:"\u5E03\u5C40\u7EC4\u4EF6",component:"\u7EC4\u4EF6",subform:"\u5B50\u8868\u5355\u7EC4\u4EF6",tree:"\u5927\u7EB2"},props:{disabled:"\u7981\u7528",time:"\u65F6\u95F4",size:"\u5C3A\u5BF8",email:"\u90AE\u7BB1",number:"\u6570\u5B57",globalData:"\u5168\u5C40\u6570\u636E",mobile:"\u79FB\u52A8\u7AEF",reactive:"\u54CD\u5E94\u5F0F",pc:"\u7535\u8111\u7AEF",title:"\u6807\u9898",content:"\u5185\u5BB9",collection:"\u5408\u96C6",group:"\u5206\u7EC4",custom:"\u81EA\u5B9A\u4E49",change:"\u6539\u53D8",blur:"\u5931\u53BB\u7126\u70B9",preview:"\u9884\u89C8",clear:"\u6E05\u7A7A",cancel:"\u53D6\u6D88",close:"\u5173\u95ED",ok:"\u786E\u5B9A",save:"\u4FDD\u5B58",refresh:"\u5237\u65B0",submit:"\u63D0\u4EA4",reset:"\u91CD\u7F6E",copy:"\u590D\u5236",delete:"\u5220\u9664",hide:"\u9690\u85CF",show:"\u663E\u793A",position:"\u4F4D\u7F6E",render:"\u6E32\u67D3",large:"\u5927",default:"\u9ED8\u8BA4",small:"\u5C0F",always:"\u5E38\u663E",never:"\u4E0D\u663E\u793A",hover:"\u60AC\u6D6E",click:"\u70B9\u51FB",button:"\u6309\u94AE",year:"\u5E74\u4EFD",month:"\u6708\u4EFD",date:"\u65E5\u671F",dates:"\u65E5\u671F\u591A\u9009",week:"\u4E00\u5468",datetime:"\u65E5\u671F\u65F6\u95F4","datetime-local":"\u65E5\u671F\u65F6\u95F4",datetimerange:"\u65E5\u671F\u65F6\u95F4\u533A\u95F4",daterange:"\u65E5\u671F\u533A\u95F4",monthrange:"\u6708\u4EFD\u533A\u95F4",left:"\u5DE6\u5BF9\u9F50",right:"\u53F3\u5BF9\u9F50",top:"\u9876\u90E8",text:"\u6587\u5B57",picture:"\u56FE\u7247","picture-card":"\u5361\u7247",center:"\u5C45\u4E2D",vertical:"\u7AD6\u5411",horizontal:"\u6A2A\u5411",manage:"\u7BA1\u7406",key:"\u952E\u540D",name:"\u540D\u79F0",value:"\u503C",inputData:"\u9ED8\u8BA4\u503C",append:"\u63D2\u5165",options:"\u9009\u9879\u6570\u636E",option:"\u9009\u9879",callback:"\u56DE\u8C03",style:"\u6837\u5F0F",_self:"\u5F53\u524D\u7A97\u53E3",_blank:"\u65B0\u7684\u7A97\u53E3",_parent:"\u7236\u7EA7\u7A97\u53E3",_top:"\u9876\u7EA7\u7A97\u53E3"},com:{cascader:{name:"\u7EA7\u8054\u9009\u62E9\u5668",event:{expandChange:"\u5F53\u5C55\u5F00\u8282\u70B9\u53D1\u751F\u53D8\u5316\u65F6\u89E6\u53D1",removeTag:"\u5728\u591A\u9009\u6A21\u5F0F\u4E0B\uFF0C\u79FB\u9664Tag\u65F6\u89E6\u53D1"},props:{props:"\u914D\u7F6E\u9009\u9879",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",collapseTagsTooltip:"\u5F53\u9F20\u6807\u60AC\u505C\u4E8E\u6298\u53E0\u6807\u7B7E\u7684\u6587\u672C\u65F6\uFF0C\u662F\u5426\u663E\u793A\u6240\u6709\u9009\u4E2D\u7684\u6807\u7B7E",separator:"\u9009\u9879\u5206\u9694\u7B26",filterable:"\u8BE5\u9009\u9879\u662F\u5426\u53EF\u4EE5\u88AB\u641C\u7D22",tagType:"\u6807\u7B7E\u7C7B\u578B"},propsOpt:{multiple:"\u662F\u5426\u591A\u9009",expandTrigger:"\u6B21\u7EA7\u83DC\u5355\u7684\u5C55\u5F00\u65B9\u5F0F",checkStrictly:"\u662F\u5426\u4E25\u683C\u7684\u9075\u5B88\u7236\u5B50\u8282\u70B9\u4E0D\u4E92\u76F8\u5173\u8054",emitPath:"\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",value:"\u6307\u5B9A\u9009\u9879\u7684\u503C\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",label:"\u6307\u5B9A\u9009\u9879\u6807\u7B7E\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",children:"\u6307\u5B9A\u9009\u9879\u7684\u5B50\u9009\u9879\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",disabled:"\u6307\u5B9A\u9009\u9879\u7684\u7981\u7528\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C",leaf:"\u6307\u5B9A\u9009\u9879\u7684\u53F6\u5B50\u8282\u70B9\u7684\u6807\u5FD7\u4F4D\u4E3A\u9009\u9879\u5BF9\u8C61\u7684\u67D0\u4E2A\u5C5E\u6027\u503C"}},checkbox:{name:"\u591A\u9009\u6846",props:{input:"\u662F\u5426\u53EF\u4EE5\u586B\u5199",type:"\u6309\u94AE\u7C7B\u578B",disabled:"\u662F\u5426\u7981\u7528",min:"\u53EF\u88AB\u52FE\u9009\u7684\u6700\u5C0F\u6570\u91CF",max:"\u53EF\u88AB\u52FE\u9009\u7684\u6700\u5927\u6570\u91CF",textColor:"\u5F53\u6309\u94AE\u4E3A\u6D3B\u8DC3\u72B6\u6001\u65F6\u7684\u5B57\u4F53\u989C\u8272",fill:"\u5F53\u6309\u94AE\u4E3A\u6D3B\u8DC3\u72B6\u6001\u65F6\u7684\u8FB9\u6846\u548C\u80CC\u666F\u989C\u8272"}},col:{name:"\u5E03\u5C40\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"}},colorPicker:{name:"\u989C\u8272\u9009\u62E9\u5668",event:{activeChange:"\u9762\u677F\u4E2D\u5F53\u524D\u663E\u793A\u7684\u989C\u8272\u53D1\u751F\u6539\u53D8\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",showAlpha:"\u662F\u5426\u652F\u6301\u900F\u660E\u5EA6\u9009\u62E9",colorFormat:"\u989C\u8272\u7684\u683C\u5F0F",predefine:"\u9884\u5B9A\u4E49\u989C\u8272"}},datePicker:{name:"\u65E5\u671F",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"}},dateRange:{name:"\u65E5\u671F\u533A\u95F4"},timeRange:{name:"\u65F6\u95F4\u533A\u95F4"},elAlert:{name:"\u63D0\u793A",description:"\u8BF4\u660E\u6587\u5B57",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"}},elButton:{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"}},elCard:{name:"\u5361\u7247",props:{header:"\u6807\u9898",shadow:"\u9634\u5F71\u663E\u793A\u65F6\u673A"}},elCollapse:{name:"\u6298\u53E0\u9762\u677F",event:{change:"\u5207\u6362\u5F53\u524D\u6D3B\u52A8\u9762\u677F\uFF0C\u5728\u624B\u98CE\u7434\u6A21\u5F0F\u4E0B\u5176\u7C7B\u578B\u662Fstring\uFF0C\u5728\u5176\u4ED6\u6A21\u5F0F\u4E0B\u662Farray"},props:{accordion:"\u662F\u5426\u624B\u98CE\u7434\u6A21\u5F0F"}},elCollapseItem:{name:"\u9762\u677F",props:{title:"\u9762\u677F\u6807\u9898",name:"\u552F\u4E00\u6807\u5FD7\u7B26",disabled:"\u662F\u5426\u7981\u7528"}},elDivider:{name:"\u5206\u5272\u7EBF",props:{formCreateChild:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848",contentPosition:"\u8BBE\u7F6E\u5206\u5272\u7EBF\u6587\u6848\u7684\u4F4D\u7F6E"}},elTabPane:{name:"\u9009\u9879\u5361",props:{label:"\u9009\u9879\u5361\u6807\u9898",disabled:"\u662F\u5426\u7981\u7528",name:"\u9009\u9879\u5361\u7684\u6807\u8BC6\u7B26",lazy:"\u6807\u7B7E\u662F\u5426\u5EF6\u8FDF\u6E32\u67D3"}},elTabs:{name:"\u6807\u7B7E\u9875",event:{tabClick:"tab \u88AB\u9009\u4E2D\u65F6\u89E6\u53D1",tabChange:"activeName \u6539\u53D8\u65F6\u89E6\u53D1",tabRemove:"\u70B9\u51FB tab \u79FB\u9664\u6309\u94AE\u65F6\u89E6\u53D1",tabAdd:"\u70B9\u51FB tab \u65B0\u589E\u6309\u94AE\u65F6\u89E6\u53D1",edit:"\u70B9\u51FB tab \u7684\u65B0\u589E\u6216\u79FB\u9664\u6309\u94AE\u540E\u89E6\u53D1"},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"}},elTag:{name:"\u6807\u7B7E",props:{formCreateNative:"\u662F\u5426\u663E\u793A\u6807\u9898",formCreateTitle:"\u6807\u9898",formCreateChild:"\u6807\u7B7E\u5185\u5BB9",type:"\u6807\u7B7E\u7684\u7C7B\u578B",size:"\u6807\u7B7E\u7684\u5C3A\u5BF8",effect:"\u6807\u7B7E\u7684\u4E3B\u9898",closable:"\u662F\u5426\u53EF\u5173\u95ED",disableTransitions:"\u662F\u5426\u7981\u7528\u6E10\u53D8\u52A8\u753B",hit:"\u662F\u5426\u6709\u8FB9\u6846\u63CF\u8FB9",round:"\u662F\u5426\u4E3A\u5706\u5F62",color:"\u80CC\u666F\u8272"}},elTransfer:{name:"\u7A7F\u68AD\u6846",event:{leftCheckChange:"\u5DE6\u4FA7\u5217\u8868\u5143\u7D20\u88AB\u7528\u6237\u9009\u4E2D / \u53D6\u6D88\u9009\u4E2D\u65F6\u89E6\u53D1",rightCheckChange:"\u53F3\u4FA7\u5217\u8868\u5143\u7D20\u88AB\u7528\u6237\u9009\u4E2D / \u53D6\u6D88\u9009\u4E2D\u65F6\u89E6\u53D1"},props:{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",targetOrderInfo:"\u82E5\u4E3A original\uFF0C\u5219\u4FDD\u6301\u4E0E\u6570\u636E\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",titles:"\u81EA\u5B9A\u4E49\u5217\u8868\u6807\u9898",buttonTexts:"\u81EA\u5B9A\u4E49\u6309\u94AE\u6587\u6848",props:"\u6570\u636E\u6E90\u7684\u5B57\u6BB5\u522B\u540D"}},elTreeSelect:{name:"\u6811\u5F62\u9009\u62E9",event:{removeTag:"\u591A\u9009\u6A21\u5F0F\u4E0B\u79FB\u9664tag\u65F6\u89E6\u53D1"},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",placeholder:"\u5360\u4F4D\u7B26",props:"\u914D\u7F6E\u9009\u9879",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",checkOnClickNode:"\u662F\u5426\u5728\u70B9\u51FB\u8282\u70B9\u7684\u65F6\u5019\u9009\u4E2D\u8282\u70B9",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"}},elImage:{name:"\u56FE\u7247",props:{src:"\u56FE\u7247\u94FE\u63A5"}},fcTitle:{name:"\u6807\u9898",props:{title:"\u6807\u9898",size:"\u5C3A\u5BF8",align:"\u5BF9\u9F50\u65B9\u5F0F"}},fcEditor:{name:"\u5BCC\u6587\u672C\u6846",props:{disabled:"\u662F\u5426\u7981\u7528"}},fcRow:{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"}},fcTable:{name:"\u8868\u683C\u5E03\u5C40",props:{border:"\u662F\u5426\u663E\u793A\u8FB9\u6846",borderColor:"\u8FB9\u6846\u989C\u8272",borderWidth:"\u8FB9\u6846\u5BBD\u5EA6"}},fcTableGrid:{name:"\u683C\u5B50"},signaturePad:{name:"\u624B\u5199\u7B7E\u540D",props:{penColor:"\u7EBF\u6761\u7684\u989C\u8272",disabled:"\u7981\u7528"}},group:{name:"\u5B50\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\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"}},html:{name:"HTML",props:{formCreateNative:"\u662F\u5426\u663E\u793A\u6807\u9898",formCreateTitle:"\u6807\u9898",formCreateChild:"\u5185\u5BB9"}},input:{name:"\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{type:"\u7C7B\u578B",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE",disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB"}},inputNumber:{name:"\u8BA1\u6570\u5668",props:{precision:"\u6570\u503C\u7CBE\u5EA6",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\u5360\u4F4D\u6587\u672C"}},password:{name:"\u5BC6\u7801\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",clearable:"\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"}},radio:{name:"\u5355\u9009\u6846",props:{input:"\u662F\u5426\u53EF\u4EE5\u586B\u5199",disabled:"\u662F\u5426\u7981\u7528",type:"\u6309\u94AE\u5F62\u5F0F",textColor:"\u6309\u94AE\u5F62\u5F0F\u6FC0\u6D3B\u65F6\u7684\u6587\u672C\u989C\u8272",fill:"\u6309\u94AE\u5F62\u5F0F\u6FC0\u6D3B\u65F6\u7684\u586B\u5145\u8272\u548C\u8FB9\u6846\u8272"}},rate:{name:"\u8BC4\u5206",props:{max:"\u6700\u5927\u5206\u503C",disabled:"\u662F\u5426\u7981\u7528",allowHalf:"\u662F\u5426\u5141\u8BB8\u534A\u9009",voidColor:"\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u989C\u8272",disabledVoidColor:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u989C\u8272",voidIconClass:"\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u7C7B\u540D",disabledVoidIconClass:"\u53EA\u8BFB\u65F6\u672A\u9009\u4E2D\u65F6\u56FE\u6807\u7684\u7C7B\u540D",showScore:"\u662F\u5426\u663E\u793A\u5F53\u524D\u5206\u6570",textColor:"\u8F85\u52A9\u6587\u5B57\u7684\u989C\u8272",scoreTemplate:"\u5206\u6570\u663E\u793A\u6A21\u677F"}},select:{name:"\u9009\u62E9\u5668",event:{removeTag:"\u591A\u9009\u6A21\u5F0F\u4E0B\u79FB\u9664tag\u65F6\u89E6\u53D1"},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",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",remote:"\u5176\u4E2D\u7684\u9009\u9879\u662F\u5426\u4ECE\u670D\u52A1\u5668\u8FDC\u7A0B\u52A0\u8F7D",remoteMethod:"\u81EA\u5B9A\u4E49\u8FDC\u7A0B\u641C\u7D22\u65B9\u6CD5"}},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"}},space:{name:"\u95F4\u8DDD",props:{height:"\u9AD8\u5EA6"}},subForm:{name:"\u5206\u7EC4",props:{disabled:"\u662F\u5426\u7981\u7528",syncDisabled:"\u662F\u5426\u4E0E\u5B50\u8868\u5355\u5F3A\u5236\u540C\u6B65\u7981\u7528\u72B6\u6001"}},switch:{name:"\u5F00\u5173",props:{disabled:"\u662F\u5426\u7981\u7528",width:"\u5BBD\u5EA6\uFF08px\uFF09",activeText:"\u6253\u5F00\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",inactiveText:"\u5173\u95ED\u65F6\u7684\u6587\u5B57\u63CF\u8FF0",activeValue:"\u6253\u5F00\u65F6\u7684\u503C",inactiveValue:"\u5173\u95ED\u65F6\u7684\u503C",activeColor:"\u6253\u5F00\u65F6\u7684\u80CC\u666F\u8272",inactiveColor:"\u5173\u95ED\u65F6\u7684\u80CC\u666F\u8272"}},tableForm:{name:"\u8868\u683C\u8868\u5355",props:{disabled:"\u662F\u5426\u7981\u7528",filterEmptyColumn:"\u662F\u5426\u8FC7\u6EE4\u7A7A\u884C\u7684\u6570\u636E",max:"\u6700\u591A\u6DFB\u52A0\u51E0\u884C\uFF0C\u4E3A 0 \u5219\u4E0D\u9650\u5236",min:"\u6700\u5C11\u6DFB\u52A0\u51E0\u884C",addable:"\u5141\u8BB8\u65B0\u589E",deletable:"\u5141\u8BB8\u5220\u9664"}},tableFormColumn:{name:"\u8868\u683C\u683C\u5B50",label:"\u81EA\u5B9A\u4E49\u540D\u79F0",props:{align:"\u5BF9\u9F50\u65B9\u5F0F",label:"\u6807\u9898",width:"\u5BBD\u5EA6",color:"\u989C\u8272",required:"\u662F\u5426\u663E\u793A\u5FC5\u586B\u661F\u53F7"}},text:{name:"\u6587\u5B57",props:{formCreateNative:"\u662F\u5426\u663E\u793A\u6807\u9898",formCreateTitle:"\u6807\u9898",formCreateChild:"\u5185\u5BB9"}},textarea:{name:"\u591A\u884C\u8F93\u5165\u6846",event:{change:"\u5F53\u503C\u6539\u53D8\u65F6\uFF0C\u5F53\u7EC4\u4EF6\u5931\u53BB\u7126\u70B9\u6216\u7528\u6237\u6309Enter\u65F6\u89E6\u53D1"},props:{disabled:"\u662F\u5426\u7981\u7528",readonly:"\u662F\u5426\u53EA\u8BFB",maxlength:"\u6700\u5927\u8F93\u5165\u957F\u5EA6",minlength:"\u6700\u5C0F\u8F93\u5165\u957F\u5EA6",showWordLimit:"\u662F\u5426\u663E\u793A\u7EDF\u8BA1\u5B57\u6570",placeholder:"\u8F93\u5165\u6846\u5360\u4F4D\u6587\u672C",rows:"\u8F93\u5165\u6846\u884C\u6570",autosize:"\u9AD8\u5EA6\u662F\u5426\u81EA\u9002\u5E94"}},timePicker:{name:"\u65F6\u95F4",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"}},tree:{name:"\u6811\u5F62\u63A7\u4EF6",event:{nodeClick:"\u5F53\u8282\u70B9\u88AB\u70B9\u51FB\u7684\u65F6\u5019\u89E6\u53D1",nodeContextmenu:"\u5F53\u67D0\u4E00\u8282\u70B9\u88AB\u9F20\u6807\u53F3\u952E\u70B9\u51FB\u65F6\u4F1A\u89E6\u53D1\u8BE5\u4E8B\u4EF6",checkChange:"\u5F53\u590D\u9009\u6846\u88AB\u70B9\u51FB\u7684\u65F6\u5019\u89E6\u53D1",check:"\u70B9\u51FB\u8282\u70B9\u590D\u9009\u6846\u4E4B\u540E\u89E6\u53D1",currentChange:"\u5F53\u524D\u9009\u4E2D\u8282\u70B9\u53D8\u5316\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeExpand:"\u8282\u70B9\u88AB\u5C55\u5F00\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeCollapse:"\u8282\u70B9\u88AB\u5173\u95ED\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragStart:"\u8282\u70B9\u5F00\u59CB\u62D6\u62FD\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragEnter:"\u62D6\u62FD\u8FDB\u5165\u5176\u4ED6\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragLeave:"\u62D6\u62FD\u79BB\u5F00\u67D0\u4E2A\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDragOver:"\u5728\u62D6\u62FD\u8282\u70B9\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6\uFF08\u7C7B\u4F3C\u6D4F\u89C8\u5668\u7684 mouseover \u4E8B\u4EF6\uFF09",nodeDragEnd:"\u62D6\u62FD\u7ED3\u675F\u65F6\uFF08\u53EF\u80FD\u672A\u6210\u529F\uFF09\u89E6\u53D1\u7684\u4E8B\u4EF6",nodeDrop:"\u62D6\u62FD\u6210\u529F\u5B8C\u6210\u65F6\u89E6\u53D1\u7684\u4E8B\u4EF6"},props:{emptyText:"\u5185\u5BB9\u4E3A\u7A7A\u7684\u65F6\u5019\u5C55\u793A\u7684\u6587\u672C",props:"\u914D\u7F6E\u9009\u9879",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\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",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",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(px)",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"}},upload:{name:"\u4E0A\u4F20",info:"\u4E0A\u4F20\u6210\u529F\u540E\uFF0C\u5C06\u63A5\u53E3\u8FD4\u56DE\u7684 URL \u8D4B\u503C\u7ED9 file.url\uFF0C\u6216\u5C06\u8FD4\u56DE\u7ED3\u679C\u8D4B\u503C\u7ED9 file.value\uFF0C\u4EE5\u4FBF\u5728\u540E\u7EED\u7684\u8868\u5355\u63D0\u4EA4\u65F6\u83B7\u53D6\u8FD9\u4E9B\u6570\u636E\u3002",event:{remove:"\u6587\u4EF6\u5217\u8868\u79FB\u9664\u6587\u4EF6\u65F6\u89E6\u53D1",preview:"\u70B9\u51FB\u6587\u4EF6\u5217\u8868\u4E2D\u5DF2\u4E0A\u4F20\u7684\u6587\u4EF6\u65F6\u89E6\u53D1",error:"\u6587\u4EF6\u4E0A\u4F20\u5931\u8D25\u65F6\u89E6\u53D1",progress:"\u6587\u4EF6\u4E0A\u4F20\u65F6\u89E6\u53D1",exceed:"\u5F53\u8D85\u51FA\u9650\u5236\u65F6\u89E6\u53D1"},props:{listType:"\u4E0A\u4F20\u7C7B\u578B",multiple:"\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6",action:"\u4E0A\u4F20\u7684\u5730\u5740(\u5FC5\u586B)",beforeUpload:"\u4E0A\u4F20\u6587\u4EF6\u4E4B\u524D\u89E6\u53D1",onSuccess:"\u4E0A\u4F20\u6210\u529F\u65F6\u89E6\u53D1",beforeRemove:"\u5220\u9664\u6587\u4EF6\u4E4B\u524D\u89E6\u53D1",headers:"\u8BBE\u7F6E\u4E0A\u4F20\u7684\u8BF7\u6C42\u5934\u90E8",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",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"}}}},lu=(t,r)=>wp.ElMessage({message:t,type:r||"info",customClass:"_fc-message-tip"}),yn=t=>lu(t,"error"),_p=Object.assign||function(t){for(let r,a=1;a<arguments.length;a++)for(let o in r=arguments[a],r)Object.prototype.hasOwnProperty.call(r,o)&&Vi(t,o,r[o]);return t};function Dp(){return _p.apply(this,arguments)}function su(t){return typeof t!="object"||t===null?t:t instanceof Array?[...t]:{...t}}function Rp(t,r){return`<template>
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script>
import formCreate from "@form-create/element-ui";
export default {
components: {
formCreate: formCreate.$form()
},
data () {
const option = formCreate.parseJson('${r.replaceAll("\\","\\\\").replaceAll("'","\\'")}');
return {
formData: {},
fapi: null,
rule: formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
option: option
}
},
methods: {
onSubmit (formData) {
//todo \u63D0\u4EA4\u8868\u5355
}
}
}
<\/script>`}function Op(t,r){return`<template>
<form-create
v-model="formData"
v-model:api="fapi"
:rule="rule"
:option="option"
@submit="onSubmit"
></form-create>
</template>
<script setup>
import {ref} from "vue";
import formCreate from "@form-create/element-ui";
const option = ref(formCreate.parseJson('${r.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const rule = ref(formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'));
const fapi = ref(null);
const formData = ref({});
const onSubmit = (formData) => {
//todo \u63D0\u4EA4\u8868\u5355
}
<\/script>`}function uu(t,r){return`<html lang="zh">
<head>
<meta charset="UTF-8">
<!-- Import style -->
<link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css"/>
<!-- Import Vue 3 -->
<script src="https://unpkg.com/vue@3"><\/script>
<!-- Import element-plus -->
<script src="https://unpkg.com/element-plus"><\/script>
<!-- Import formCreate -->
<script src="https://unpkg.com/@form-create/element-ui@3"><\/script>
<script src="https://unpkg.com/@form-create/designer@3"><\/script>
</head>
<body>
<div id="app">
<form-create :rule="rule" :option="options" v-model="formData" v-model:api="api" @submit="onSubmit"></form-create>
</div>
<script>
const App = {
data() {
return {
rule: formCreate.parseJson('${t.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
options: formCreate.parseJson('${r.replaceAll("\\","\\\\").replaceAll("'","\\'")}'),
formData: {},
api: null,
};
},
methods: {
onSubmit(formData){
console.log('submit', formData);
}
}
};
const app = Vue.createApp(App);
app.use(ElementPlus).use(formCreate);
app.mount("#app");
<\/script>
</body>
</html>`}function Oa(){return{type:"Required",field:"formCreate$required",title:"\u662F\u5426\u5FC5\u586B"}}function YC(t){}function bn(t,r,a,o=[]){r.id||(r.id=1),a&&a--;for(let n=0;n<3;n++){const s={[r.label]:t+a*10+(n+1),[r.value]:""+r.id++};a&&bn(t,r,a,s.children=[]),o.push(s)}return o}function Fi(t,r){const a=[{label:t("fetch.optionsType.struct"),value:2},{label:t("fetch.optionsType.fetch"),value:1}],o=[{value:1,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:r}}]},{value:2,rule:[{type:"TableOptions",field:"formCreate"+Ar(r).replace(".",">"),props:{column:[{label:t("props.key"),key:"label"},{value:!0,label:t("props.value"),key:"value"}],keyValue:"label"}}]}];return{type:"radio",title:t("props.options"),field:"_optionType",value:2,options:a,props:{type:"button"},control:o}}function Ci(t,r,a,o){const n=[{label:t("fetch.optionsType.struct"),value:2},{label:t("fetch.optionsType.fetch"),value:1}],s=[{value:1,rule:[{type:"FetchConfig",field:"formCreateEffect>fetch",props:{to:r}}]},{value:2,rule:[{type:"TreeOptions",field:"formCreate"+Ar(r).replace(".",">"),props:{columns:{label:a,value:o},keyValue:a}}]}];return{type:"radio",title:t("props.options"),field:"_optionType",value:2,options:n,props:{type:"button"},control:s}}function Ar(t){return t.replace(t[0],t[0].toLocaleUpperCase())}const Nn=function(t){const r=/object ([a-zA-Z]*)/.exec(Object.prototype.toString.call(t));return r&&fu[r[1].toLowerCase()]?fu[r[1].toLowerCase()](t):t},fu={object:function(t){var r=[];for(var a in t)!Li(t,a)||r.push(Nn(a)+": "+(t[a]!=null?Nn(t[a]):"null"));return`{
`+r.join(`,
`)+`
}`},function:function(t){t=""+t;var r=/^ *([\w]+) *\(/.exec(t);return r&&r[1]!=="function"?"function "+t:t},array:function(t){for(var r=0,a=[];r<t.length;r++)a[r]=t[r]!=null?Nn(t[r]):"null";return"["+a.join(", ")+"]"},string:function(t){for(var r=t.split(""),a=0;a<r.length;a++){var o=r[a];o>=" "?o==="\\"?r[a]="\\\\":o==='"'&&(r[a]='\\"'):r[a]=o===`
`?"\\n":o==="\r"?"\\r":o===" "?"\\t":o==="\b"?"\\b":o==="\f"?"\\f":(o=o.charCodeAt(),"\\u00"+(o>15?1:0)+o%16)}return'"'+r.join("")+'"'}},du=function(t){if(t&&typeof t=="object"){for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)){let a=t[r];(Array.isArray(a)||Xe.Object(a))&&du(a),Xe.String(a)&&(t[r]=Tp(a))}}return t};function kp(t,r,a){r=(r||"").split(".");let o=0,n=r.length;for(;t!=null&&o<n;)t=t[r[o++]];return o&&o===n&&t!==void 0?t:a}const Bp=t=>(r,a)=>Ip(r,a,l.unref(t)),Ip=(t,r,a)=>kp(a,t,"").replace(/\{(\w+)\}/g,(o,n)=>{var s;return`${(s=r==null?void 0:r[n])!=null?s:`{${n}}`}`}),Mp=t=>{const r=l.computed(()=>l.unref(t).name),a=l.computed(()=>Ar(Np(r.value||""))),o=l.isRef(t)?t:l.ref(t);return{lang:r,name:a,locale:o,t:Bp(t)}},ka=t=>Mp(l.computed(()=>t.value||au)),ht=(t,r,a)=>r.map(o=>(o.label=t((a||"props")+"."+o.label||o.value)||o.label,o)),Pe=(t,r,a)=>a.map(o=>(o.field==="formCreate$required"?o.title=t("validate.required")||o.title:o.field&&o.field!=="_optionType"&&(o.title=t("com."+r+"."+o.field)||o.title),o.type==="template"&&Xe.trueArray(o.children)&&(o.children=Pe(t,r,o.children)),o)),Ba=t=>{const r=[];return t&&t.forEach(a=>{if(a._fc_drag_tag){const o={id:a.__fc__.id,rule:a,children:Ba(a.children)};o.children.length||delete o.children,r.push(o)}else r.push(...Ba(a.children))}),r},cu=t=>{const r=a=>{const o=[];return a&&a.forEach(n=>{n.field?(n.children=r(n.children||[]),n.children.length||delete n.children,o.push(n)):o.push(...r(n.children||[]))}),o};return r(t)},pu=t=>{const r=a=>{const o=[];return a&&a.forEach(n=>{if(typeof n=="object")if(n._fc_drag_tag){const s={_fc_id:n._fc_id,type:n.type,field:n.field,title:n.title,name:n.name,slot:n.slot,props:{...n.props||{}},options:su(n.options),children:r(n.children||[])};n.children&&typeof n.children[0]=="string"&&(s.content=n.children[0]),s.children.length||delete s.children,o.push(s)}else o.push(...r(n.children))}),o};return r(t)};function qn(t){return{name:"$inject",columns:[{label:"$inject.api",info:t("event.inject.api"),type:"Api"},{label:"$inject.rule",info:t("event.inject.rule"),type:"Rule[]"},{label:"$inject.self",info:t("event.inject.self"),type:"Rule"},{label:"$inject.option",info:t("event.inject.option"),type:"Object"},{label:"$inject.args",info:t("event.inject.args"),type:"Array"}]}}function $n(t){return["",null,void 0].indexOf(t)!==-1}function Pp(t,r){const a=t.split("."),o=r.split("."),n=Math.min(a.length,o.length);for(var s=0;s<n;s++){var d=parseInt(a[s],10)-parseInt(o[s],10);if(d>0)return 1;if(d<0)return-1}return a.length===o.length?0:a.length<o.length?-1:1}function ei(t){const r=document.createElement("textarea");r.style.position="fixed",r.style.top=0,r.style.left="-9999px",r.value=t,document.body.appendChild(r),r.focus(),r.select();try{document.execCommand("copy")}catch{console.log("Oops, unable to copy")}lu("\u5DF2\u590D\u5236!","success"),document.body.removeChild(r)}function hu(t){return t.filter((r,a)=>t.indexOf(r)===a)}function mu({t}){return[{type:"input",field:">formName",value:"",title:t("form.formName")},{type:"radio",field:"labelPosition",value:"left",title:t("form.labelPosition"),options:ht(t,[{value:"left",label:"left"},{value:"right",label:"right"},{value:"top",label:"top"}])},{type:"radio",field:"size",value:"small",title:t("form.size"),options:ht(t,[{value:"large",label:"large"},{value:"default",label:"default"},{value:"small",label:"small"}])},{type:"input",field:"labelSuffix",value:"",title:t("form.labelSuffix"),style:{width:"150px"}},{type:"SizeInput",field:"labelWidth",value:"125px",title:t("form.labelWidth")},{type:"switch",field:"hideRequiredAsterisk",value:!1,title:t("form.hideRequiredAsterisk")},{type:"switch",field:"showMessage",value:!0,title:t("form.showMessage")},{type:"switch",field:"inlineMessage",value:!1,title:t("form.inlineMessage")},{type:"switch",field:"_submitBtn>show",value:!0,title:t("form.submitBtn")},{type:"switch",field:"_resetBtn>show",value:!1,title:t("form.resetBtn")},{type:"FnConfig",field:">_event",warning:t("form.controlDocument",{doc:'<a target="_blank" href="https://form-create.com/v3/guide/global-event" style="color: inherit;text-decoration: underline;">'+t("form.document")+"</a>"}),value:{},col:{show:!0},props:{eventConfig:[{name:"onSubmit",info:t("form.onSubmit"),args:["formData","api"]},{name:"onReset",info:t("form.onReset"),args:["api"]},{name:"onCreated",info:t("form.onCreated"),args:["api"]},{name:"onMounted",info:t("form.onMounted"),args:["api"]},{name:"onReload",info:t("form.onReload"),args:["api"]},{name:"onChange",info:t("form.onChange"),args:["field","value","options"]},{name:"beforeSubmit",info:t("form.beforeSubmit"),args:["formData","data"]},{name:"beforeFetch",info:t("form.beforeFetch"),args:["config","data"]}]},title:t("form.event")}]}function Cr({t}){return[{type:"FieldInput",field:"field",value:"",title:t("form.field"),warning:t("warning.field")},{type:"LanguageInput",field:"title",value:"",title:t("form.title")},{type:"LanguageInput",field:"info",value:"",title:t("form.info")},{type:"SizeInput",field:"formCreateWrap>labelWidth",value:"",title:t("form.labelWidth")},{type:"Struct",field:"_control",name:"control",value:[],title:t("form.control"),warning:t("form.controlDocument",{doc:'<a target="_blank" href="https://pro.form-create.com/doc/control" style="color: inherit;text-decoration: underline;">'+t("form.document")+"</a>"}),props:{defaultValue:[],validate(r){return Array.isArray(r)?r.length?!r.some(({rule:a})=>!Array.isArray(a)):!0:!1}}}]}function Lp({t}){return[{type:"input",title:"ID",field:"id",wrap:{labelWidth:"45px"}},{type:"input",title:"Class",field:"class",wrap:{labelWidth:"45px"}},{type:"StyleConfig",field:"style",title:"",value:{}}]}function gu({t}){return[{type:"Required",field:"$required",title:t("validate.required")},{type:"validate",field:"validate",title:t("validate.rule"),value:[]}]}function vu(t){return Array.isArray(t)?t:[null,void 0,""].indexOf(t)>-1?[]:[t]}function Vp(t){t=t||new Map;const r={$on(a,o){const n=t.get(a);n&&n.push(o)||t.set(a,[o])},$once(a,o){o._once=!0,r.$on(a,o)},$off(a,o){const n=t.get(a);n&&n.splice(n.indexOf(o)>>>0,1)},$emit(a,...o){(t.get(a)||[]).slice().map(n=>{n._once&&(r.$off(a,n),delete n._once),n(...o)}),(t.get("*")||[]).slice().map(n=>{n(a,o)})}};return r}let Fp=0;function ze(){const t=370+ ++Fp;return"F"+Math.random().toString(36).substr(3,3)+Number(`${Date.now()}`).toString(36)+t.toString(36)+"c"}const $p="\u5355\u9009\u6846",Ia="radio",Hp={menu:"main",icon:"icon-radio",label:$p,name:Ia,input:!0,event:["change"],validate:["string","number"],rule({t}){return{type:Ia,field:ze(),title:t("com.radio.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:bn(t("props.option"),{label:"label",value:"value"},1)}},props(t,{t:r}){return Pe(r,Ia+".props",[Fi(r,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"input"},{type:"switch",field:"type",props:{activeValue:"button",inactiveValue:"default"}},{type:"ColorInput",field:"textColor"},{type:"ColorInput",field:"fill"}])}},zp="\u591A\u9009\u6846",Ma="checkbox",jp={menu:"main",icon:"icon-checkbox",label:zp,name:Ma,input:!0,event:["change"],validate:["array"],rule({t}){return{type:Ma,field:ze(),title:t("com.checkbox.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:bn(t("props.option"),{label:"label",value:"value"},1)}},props(t,{t:r}){return Pe(r,Ma+".props",[Fi(r,"options"),{type:"switch",field:"disabled"},{type:"switch",field:"input"},{type:"switch",field:"type",props:{activeValue:"button",inactiveValue:"default"}},{field:"min",type:"inputNumber",props:{min:0}},{field:"max",type:"inputNumber",props:{min:0}},{type:"ColorInput",field:"textColor"},{type:"ColorInput",field:"fill"}])}},Up="\u8F93\u5165\u6846",Pa="input",Wp={menu:"main",icon:"icon-input",label:Up,name:Pa,input:!0,event:["blur","focus","change","input","clear"],validate:["string","url","email"],rule({t}){return{type:Pa,field:ze(),title:t("com.input.name"),info:"",$required:!1,props:{}}},props(t,{t:r}){return Pe(r,Pa+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"select",field:"type",options:ht(r,[{label:"text",value:"text"},{label:"number",value:"number"},{label:"time",value:"time"},{label:"date",value:"date"},{label:"month",value:"month"},{label:"datetime-local",value:"datetime-local"}])},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"clearable"}])}},Kp="\u591A\u884C\u8F93\u5165\u6846",yu="textarea",Gp={menu:"main",icon:"icon-textarea",label:Kp,name:yu,input:!0,event:["blur","focus","change","input"],validate:["string"],rule({t}){return{type:"input",field:ze(),title:t("com.textarea.name"),info:"",$required:!1,props:{type:"textarea"}}},props(t,{t:r}){return Pe(r,yu+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"switch",field:"showWordLimit"},{type:"input",field:"placeholder"},{type:"inputNumber",field:"rows",props:{min:0}},{type:"switch",field:"autosize"}])}},Yp="\u5BC6\u7801\u8F93\u5165\u6846",bu="password",Qp={menu:"main",icon:"icon-password",label:Yp,name:bu,input:!0,event:["blur","focus","change","input","clear"],validate:["string"],rule({t}){return{type:"input",field:ze(),title:t("com.password.name"),info:"",$required:!1,props:{type:"password"}}},props(t,{t:r}){return Pe(r,bu+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"readonly"},{type:"inputNumber",field:"maxlength",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"clearable"}])}},Xp="\u8BA1\u6570\u5668",La="inputNumber",Jp={menu:"main",icon:"icon-number",label:Xp,name:La,input:!0,event:["blur","focus","change"],validate:["number","integer","float"],rule({t}){return{type:La,field:ze(),title:t("com.inputNumber.name"),info:"",$required:!1,props:{}}},props(t,{t:r}){return Pe(r,La+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"},{type:"inputNumber",title:"precision",field:"precision"},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"stepStrictly"},{type:"switch",field:"controls",value:!0},{type:"select",field:"controlsPosition",options:ht(r,[{label:"default",value:""},{label:"right",value:"right"}])},{type:"input",field:"placeholder"}])}},Zp="\u9009\u62E9\u5668",Va="select",qp={menu:"main",icon:"icon-select",label:Zp,name:Va,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],rule({t}){return{type:Va,field:ze(),title:t("com.select.name"),info:"",effect:{fetch:""},$required:!1,props:{},options:bn(t("props.option"),{label:"label",value:"value"},1)}},watch:{multiple({rule:t}){t.key=ze()}},props(t,{t:r}){return Pe(r,Va+".props",[Fi(r,"options"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"collapseTags"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"},{type:"switch",field:"filterable"},{type:"switch",field:"remote"},{type:"FnInput",field:"remoteMethod",props:{body:!0,fnx:!0,name:"remoteMethod",args:[qn(r)]}},{type:"switch",field:"allowCreate"},{type:"input",field:"noMatchText"},{type:"input",field:"noDataText"},{type:"switch",field:"reserveKeyword"},{type:"switch",field:"defaultFirstOption"}])}},eh="\u5F00\u5173",Fa="switch",th={menu:"main",icon:"icon-switch",label:eh,name:Fa,input:!0,event:["change"],rule({t}){return{type:Fa,field:ze(),title:t("com.switch.name"),info:"",$required:!1,props:{activeValue:!0,inactiveValue:!1}}},props(t,{t:r}){return Pe(r,Fa+".props",[{type:"switch",field:"disabled"},{type:"inputNumber",field:"width",props:{min:0}},{type:"input",field:"activeText"},{type:"input",field:"inactiveText"},{type:"ValueInput",field:"activeValue"},{type:"ValueInput",field:"inactiveValue"},{type:"ColorInput",field:"activeColor"},{type:"ColorInput",field:"inactiveColor"}])}},nh="\u6ED1\u5757",$a="slider",ih={menu:"main",icon:"icon-slider",label:nh,name:$a,input:!0,event:["change","input"],validate:["number","array"],rule({t}){return{type:$a,field:ze(),title:t("com.slider.name"),info:"",$required:!1,props:{}}},props(t,{t:r}){return Pe(r,$a+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"range"},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}},{type:"inputNumber",field:"step",props:{min:0}},{type:"switch",field:"showInput"},{type:"switch",field:"showInputControls",value:!0},{type:"switch",field:"showStops"},{type:"switch",field:"vertical"},{type:"input",field:"height"}])}},rh="\u65F6\u95F4",Ha="timePicker",oh={menu:"main",icon:"icon-time",label:rh,name:Ha,input:!0,event:["change","blur","focus","visibleChange"],rule({t}){return{type:Ha,field:ze(),title:t("com.timePicker.name"),info:"",$required:!1,props:{}}},watch:{isRange({rule:t}){t.key=ze()}},props(t,{t:r}){return Pe(r,Ha+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"isRange"},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"placeholder"},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"switch",field:"arrowControl"},{type:"select",field:"align",options:ht(r,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},ah={menu:"main",icon:"icon-time-range",label:"\u65F6\u95F4\u533A\u95F4",name:"timeRange",input:!0,event:["change","blur","focus","visibleChange"],rule({t}){return{type:"timePicker",field:ze(),title:t("com.timeRange.name"),info:"",$required:!1,props:{isRange:!0}}},props(t,{t:r}){return Pe(r,"timePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"switch",field:"arrowControl"},{type:"select",field:"align",options:ht(r,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},lh="\u65E5\u671F",za="datePicker",sh={menu:"main",icon:"icon-date",label:lh,name:za,input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],rule({t}){return{type:za,field:ze(),title:t("com.datePicker.name"),info:"",$required:!1,props:{}}},props(t,{t:r}){return Pe(r,za+".props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:ht(r,[{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:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"placeholder"},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"input",field:"format"},{type:"select",field:"align",options:ht(r,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},uh={menu:"main",icon:"icon-date-range",label:"\u65E5\u671F\u533A\u95F4",name:"dateRange",input:!0,event:["change","blur","focus","calendarChange","panelChange","visibleChange"],rule({t}){return{type:"datePicker",field:ze(),title:t("com.dateRange.name"),info:"",$required:!1,props:{type:"datetimerange"}}},props(t,{t:r}){return Pe(r,"datePicker.props",[{type:"switch",field:"readonly"},{type:"switch",field:"disabled"},{type:"select",field:"type",options:ht(r,[{label:"datetimerange",value:"datetimerange"},{label:"daterange",value:"daterange"},{label:"monthrange",value:"monthrange"}])},{type:"switch",field:"clearable",value:!0},{type:"Struct",field:"pickerOptions",props:{defaultValue:{}}},{type:"switch",field:"editable",value:!0},{type:"input",field:"startPlaceholder"},{type:"input",field:"endPlaceholder"},{type:"input",field:"format"},{type:"select",field:"align",options:ht(r,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"input",field:"rangeSeparator"},{type:"switch",field:"unlinkPanels"}])}},fh="\u8BC4\u5206",ja="rate",dh={menu:"main",icon:"icon-rate",label:fh,name:ja,input:!0,event:["change"],validate:["number"],rule({t}){return{type:ja,field:ze(),title:t("com.rate.name"),info:"",$required:!1,props:{}}},props(t,{t:r}){return Pe(r,ja+".props",[{type:"inputNumber",field:"max",props:{min:0}},{type:"switch",field:"disabled"},{type:"switch",field:"allowHalf"},{type:"ColorInput",field:"voidColor"},{type:"ColorInput",field:"disabledVoidColor"},{type:"input",field:"voidIconClass"},{type:"input",field:"disabledVoidIconClass"},{type:"switch",field:"showScore"},{type:"ColorInput",field:"textColor"},{type:"input",field:"scoreTemplate"}])}},ch="\u989C\u8272\u9009\u62E9\u5668",Ua="colorPicker",ph={menu:"main",icon:"icon-color",label:ch,name:Ua,input:!0,event:["change","activeChange","focus","blur"],validate:["string"],rule({t}){return{type:Ua,field:ze(),title:t("com.colorPicker.name"),info:"",$required:!1,props:{}}},props(t,{t:r}){return Pe(r,Ua+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"showAlpha"},{type:"select",field:"colorFormat",options:[{label:"hsl",value:"hsl"},{label:"hsv",value:"hsv"},{label:"hex",value:"hex"},{label:"rgb",value:"rgb"}]},{type:"tableOptions",field:"predefine",props:{column:[{label:r("props.value"),key:"value"}],valueType:"string"}}])}},hh="\u6805\u683C\u5E03\u5C40",Wa="fcRow",mh={menu:"layout",icon:"icon-row",label:hh,name:Wa,mask:!1,children:"col",childrenLen:2,rule(){return{type:Wa,props:{},children:[]}},props(t,{t:r}){return Pe(r,Wa+".props",[{type:"inputNumber",field:"gutter",props:{min:0}},{type:"switch",field:"type",props:{activeValue:"flex",inactiveValue:"default"}},{type:"select",field:"justify",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",options:[{label:"top",value:"top"},{label:"middle",value:"middle"},{label:"bottom",value:"bottom"}]}])}},Ka="col",Au={xs:"<768px",sm:"\u2265768px",md:"\u2265992px",lg:"\u22651200px",xl:"\u22651920px"},gh={name:Ka,label:"\u683C\u5B50",drag:!0,dragBtn:!1,inside:!0,mask:!1,rule(){return{type:Ka,props:{span:12},children:[]}},props(t,{t:r}){return Pe(r,Ka+".props",[{type:"slider",field:"span",value:12,props:{min:0,max:24}},{type:"slider",field:"offset",props:{min:0,max:24}},{type:"slider",field:"push",props:{min:0,max:24}},{type:"slider",field:"pull",props:{min:0,max:24}},{type:"ConfigItem",props:{label:r("props.reactive")},children:[{type:"elTabs",style:{width:"100%"},slot:"append",children:Object.keys(Au).map(a=>({type:"elTabPane",props:{label:Au[a]},style:"padding:0 10px;",children:[{type:"slider",field:a+">span",title:r("com.col.props.span"),value:12,props:{min:0,max:24}},{type:"slider",field:a+">offset",title:r("com.col.props.offset"),props:{min:0,max:24}},{type:"slider",field:a+">push",title:r("com.col.props.push"),props:{min:0,max:24}},{type:"slider",field:a+">pull",title:r("com.col.props.pull"),props:{min:0,max:24}}]}))}]}])}},vh="\u9009\u9879\u5361",Ga="elTabPane",yh={label:vh,name:Ga,inside:!0,drag:!0,dragBtn:!1,mask:!1,rule({t}){return{type:Ga,props:{label:t("com.elTabPane.name")},children:[]}},props(t,{t:r}){return Pe(r,Ga+".props",[{type:"input",field:"label"},{type:"switch",field:"disabled"},{type:"input",field:"name"},{type:"switch",field:"lazy"}])}},bh="\u5206\u5272\u7EBF",Ya="elDivider",Ah={menu:"aide",icon:"icon-divider",label:bh,name:Ya,rule({t}){return{type:Ya,props:{},children:[t("com.elDivider.name")]}},props(t,{t:r}){return Pe(r,Ya+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"contentPosition",options:ht(r,[{label:"left",value:"left"},{label:"right",value:"right"},{label:"center",value:"center"}])}])}},Ch="\u7EA7\u8054\u9009\u62E9\u5668",yo="cascader",wh={menu:"main",icon:"icon-cascader",label:Ch,name:yo,input:!0,event:["change","expandChange","blur","focus","visibleChange","removeTag"],validate:["string","number","array"],rule({t}){return{type:yo,field:ze(),title:t("com.cascader.name"),info:"",effect:{fetch:""},$required:!1,props:{options:bn(t("props.option"),{label:"label",value:"value"},3)}}},props(t,{t:r}){return Pe(r,yo+".props",[Ci(r,"props.options"),{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"input",field:"placeholder"},{type:"Object",field:"props",props:{rule:Pe(r,yo+".propsOpt",[{type:"switch",field:"multiple"},{type:"select",field:"expandTrigger",options:ht(r,[{label:"click",value:"click"},{label:"hover",value:"hover"}])},{type:"switch",field:"checkStrictly"},{type:"switch",field:"emitPath",value:!0},{type:"input",field:"value",value:"value"},{type:"input",field:"label",value:"label"},{type:"input",field:"children",value:"children"},{type:"input",field:"disabled",value:"disabled"},{type:"input",field:"leaf"}])}},{type:"switch",field:"showAllLevels",value:!0},{type:"switch",field:"collapseTags"},{type:"switch",field:"collapseTagsTooltip"},{type:"input",field:"separator"},{type:"switch",field:"filterable"},{type:"select",field:"tagType",options:[{label:"success",value:"success"},{label:"info",value:"info"},{label:"warning",value:"warning"},{label:"danger",value:"danger"}]}])}},Eh="\u4E0A\u4F20",Qa="upload",Sh={menu:"main",icon:"icon-upload",label:Eh,name:Qa,input:!0,event:["change","remove","preview","error","progress","exceed"],languageKey:["clickToUpload"],validate:["array"],rule({t}){return{type:Qa,field:ze(),title:t("com.upload.name"),info:"",$required:!1,props:{action:"/",onSuccess:`$FNX:const res = $inject.args[0];
const file = $inject.args[1];
file.url = res.data.url;`}}},props(t,{t:r}){return Pe(r,Qa+".props",[{type:"switch",field:"disabled"},{type:"select",field:"listType",options:ht(r,[{label:"text",value:"text"},{label:"picture",value:"picture"},{label:"picture-card",value:"picture-card"}])},{type:"switch",field:"multiple"},{type:"input",field:"action"},{type:"input",field:"accept"},{type:"FnInput",field:"beforeUpload",props:{body:!0,button:!0,fnx:!0,args:[qn(r)],name:"beforeUpload"}},{type:"FnInput",field:"beforeRemove",props:{body:!0,button:!0,fnx:!0,args:[qn(r)],name:"beforeRemove"}},{type:"FnInput",field:"onSuccess",warning:r("com.upload.info"),props:{body:!0,button:!0,fnx:!0,args:[qn(r)],name:"onSuccess"}},{type:"TableOptions",field:"headers",props:{column:[{label:r("props.key"),key:"label"},{label:r("props.value"),key:"value"}],valueType:"object"}},{type:"TableOptions",field:"data",props:{column:[{label:r("props.key"),key:"label"},{label:r("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"withCredentials"},{type:"switch",field:"autoUpload",value:!0},{type:"inputNumber",field:"limit",props:{min:0}}])}},xh="\u7A7F\u68AD\u6846",Xa="elTransfer",Th={menu:"main",icon:"icon-transfer",label:xh,name:Xa,input:!0,event:["change","leftCheckChange","rightCheckChange"],validate:["string","number","array"],rule({t}){return{type:Xa,field:ze(),title:t("com.elTransfer.name"),info:"",$required:!1,props:{data:bn(t("props.option"),{label:"label",value:"key"},1)}}},props(t,{t:r}){return Pe(r,Xa+".props",[Ci(r,"props.data","label","key"),{type:"switch",field:"filterable"},{type:"input",field:"filterPlaceholder"},{type:"select",field:"targetOrder",warning:r("com.elTransfer.props.targetOrderInfo"),options:[{label:"original",value:"original"},{label:"push",value:"push"},{label:"unshift",value:"unshift"}]},{type:"TableOptions",field:"titles",props:{column:[{label:r("props.value"),key:"value"}],valueType:"string",max:2}},{type:"TableOptions",field:"buttonTexts",props:{column:[{label:r("props.value"),key:"value"}],valueType:"string",max:2}}])}},Nh="\u6811\u5F62\u63A7\u4EF6",Ja="tree",_h={menu:"main",icon:"icon-tree",label:Nh,name:Ja,input:!0,event:["nodeClick","nodeContextmenu","checkChange","check","currentChange","nodeExpand","nodeCollapse","nodeDragStart","nodeDragEnter","nodeDragLeave","nodeDragOver","nodeDragEnd","nodeDrop"],validate:["string","number","array"],rule({t}){return{type:Ja,field:ze(),title:t("com.tree.name"),info:"",effect:{fetch:""},$required:!1,props:{props:{label:"label"},showCheckbox:!0,nodeKey:"id",data:bn(t("props.option"),{label:"label",value:"id"},3)}}},props(t,{t:r}){return Pe(r,Ja+".props",[Ci(r,"props.data","label","id"),{type:"input",field:"emptyText"},{type:"TableOptions",field:"props",props:{column:[{label:r("props.key"),key:"label"},{label:r("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"renderAfterExpand",value:!0},{type:"switch",field:"defaultExpandAll"},{type:"switch",field:"expandOnClickNode",value:!0},{type:"switch",field:"checkOnClickNode"},{type:"switch",field:"autoExpandParent",value:!0},{type:"switch",field:"checkStrictly"},{type:"switch",field:"accordion"},{type:"inputNumber",field:"indent"},{type:"input",field:"nodeKey"}])}},Dh="\u63D0\u793A",Za="elAlert",Rh={menu:"aide",icon:"icon-alert",label:Dh,name:Za,event:["close"],rule({t}){return{type:Za,props:{title:t("com.elAlert.name"),description:t("com.elAlert.description"),type:"success",effect:"dark"},children:[]}},props(t,{t:r}){return Pe(r,Za+".props",[{type:"input",field:"title"},{type:"select",field:"type",options:[{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"info",value:"info"},{label:"error",value:"error"}]},{type:"input",field:"description"},{type:"switch",field:"closable",value:!0},{type:"switch",field:"center",value:!0},{type:"input",field:"closeText"},{type:"switch",field:"showIcon"},{type:"select",field:"effect",options:[{label:"light",value:"light"},{label:"dark",value:"dark"}]}])}},Oh="\u6587\u5B57",Cu="text",kh={menu:"aide",icon:"icon-span",label:Oh,name:Cu,rule({t}){return{type:"div",title:"",native:!0,style:{whiteSpace:"pre-line",width:"100%"},children:[t("com.text.name")]}},watch:{formCreateNative({value:t,rule:r}){t&&(r.title="")}},props(t,{t:r}){return Pe(r,Cu+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"input",field:"formCreateChild",props:{type:"textarea"}}])}},Bh="\u95F4\u8DDD",wu="space",Ih={menu:"layout",icon:"icon-space",label:Bh,name:wu,rule(){return{type:"div",wrap:{show:!1},native:!0,style:{width:"100%",height:"20px"},children:[]}},props(t,{t:r}){return[{type:"object",field:"formCreateStyle",native:!0,props:{rule:Pe(r,wu+".props",[{type:"input",field:"height",title:"height"}])}}]}},Mh="\u6807\u7B7E\u9875",qa="elTabs",Ph={menu:"layout",icon:"icon-tab",label:Mh,name:qa,mask:!1,event:["tabClick","tabChange","tabRemove","tabAdd","edit"],children:"elTabPane",rule(){return{type:qa,style:{width:"100%"},children:[]}},props(t,{t:r}){return Pe(r,qa+".props",[{type:"select",field:"type",options:[{label:"card",value:"card"},{label:"border-card",value:"border-card"}]},{type:"switch",field:"closable"},{type:"select",field:"tabPosition",options:ht(r,[{label:"top",value:"top"},{label:"right",value:"right"},{label:"left",value:"left"}])},{type:"switch",field:"stretch"}])}},Lh="\u6309\u94AE",el="elButton",Vh={menu:"aide",icon:"icon-button",label:Lh,name:el,mask:!0,event:["click"],rule({t}){return{type:el,props:{},children:[t("com.elButton.name")]}},props(t,{t:r}){return Pe(r,el+".props",[{type:"input",field:"formCreateChild"},{type:"select",field:"size",options:ht(r,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"type",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"},{type:"switch",field:"round"},{type:"switch",field:"circle"},{type:"switch",field:"loading"},{type:"switch",field:"disabled"}])}},Fh="\u5BCC\u6587\u672C\u6846",tl="fcEditor",$h={menu:"main",icon:"icon-editor",label:Fh,name:tl,input:!0,event:["change"],validate:["string"],rule({t}){return{type:tl,field:ze(),title:t("com.fcEditor.name"),info:"",$required:!1,props:{}}},props(t,{t:r}){return Pe(r,tl+".props",[{type:"switch",field:"disabled"}])}},Hh="\u5B50\u8868\u5355",Eu="group",zh={menu:"subform",icon:"icon-subform",label:Hh,name:Eu,inside:!1,drag:!0,dragBtn:!0,mask:!1,input:!0,event:["change"],subForm:"array",loadRule(t){t.children=t.props.rule||[],t.type="FcRow",delete t.props.rule},parseRule(t){t.props.rule=t.children,t.type="group",delete t.children,delete t.props.mode},rule({t}){return{type:"fcRow",field:ze(),title:t("com.group.name"),info:"",$required:!1,props:{},children:[]}},props(t,{t:r}){return Pe(r,Eu+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"syncDisabled",value:!0},{type:"switch",field:"button",value:!0},{type:"switch",field:"sortBtn",value:!0},{type:"inputNumber",field:"expand"},{type:"inputNumber",field:"min"},{type:"inputNumber",field:"max"}])}},jh="\u5206\u7EC4",Su="subForm",Uh={menu:"subform",icon:"icon-group",label:jh,name:Su,inside:!1,drag:!0,dragBtn:!0,mask:!1,input:!0,subForm:"object",event:["change"],loadRule(t){t.children=t.props.rule||[],t.type="FcRow",delete t.props.rule},parseRule(t){t.props.rule=t.children,t.type="subForm",delete t.children},rule({t}){return{type:"fcRow",field:ze(),title:t("com.subForm.name"),info:"",$required:!1,props:{},children:[]}},props(t,{t:r}){return Pe(r,Su+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"syncDisabled",value:!0}])}},Wh="\u5361\u7247",nl="elCard",Kh={menu:"layout",icon:"icon-card",label:Wh,name:nl,drag:!0,inside:!1,mask:!1,rule({t}){return{type:nl,props:{header:t("com.elCard.props.header")},style:{width:"100%"},children:[]}},props(t,{t:r}){return Pe(r,nl+".props",[{type:"input",field:"header"},{type:"select",field:"shadow",value:"always",options:ht(r,[{label:"always",value:"always"},{label:"never",value:"never"},{label:"hover",value:"hover"}])}])}},Gh="\u6298\u53E0\u9762\u677F",il="elCollapse",Yh={menu:"layout",icon:"icon-collapse",label:Gh,name:il,mask:!1,children:"elCollapseItem",event:["change"],rule(){return{type:il,props:{},style:{width:"100%"},children:[]}},props(t,{t:r}){return Pe(r,il+".props",[{type:"switch",field:"accordion"}])}},Qh="\u9762\u677F",rl="elCollapseItem",Xh={icon:"icon-cell",label:Qh,name:rl,drag:!0,dragBtn:!1,inside:!0,mask:!1,rule({t}){return{type:rl,props:{title:t("com.elCollapseItem.name")},style:{},children:[]}},props(t,{t:r}){return Pe(r,rl+".props",[{type:"input",field:"title"},{type:"input",field:"name"},{type:"switch",field:"disabled"}])}},Jh="\u6811\u5F62\u9009\u62E9",ol="elTreeSelect",Zh={menu:"main",icon:"icon-tree-select",label:Jh,name:ol,input:!0,event:["change","visibleChange","removeTag","clear","blur","focus"],validate:["string","number","array"],rule({t}){return{type:ol,field:ze(),title:t("com.elTreeSelect.name"),info:"",effect:{fetch:""},$required:!1,props:{nodeKey:"value",showCheckbox:!0,data:bn(t("props.option"),{label:"label",value:"value"},3)}}},watch:{multiple({rule:t}){t.key=ze()}},props(t,{t:r}){return Pe(r,ol+".props",[Ci(r,"props.data","label","value"),{type:"switch",field:"multiple"},{type:"switch",field:"disabled"},{type:"switch",field:"clearable"},{type:"switch",field:"collapseTags"},{type:"inputNumber",field:"multipleLimit",props:{min:0}},{type:"input",field:"placeholder"},{type:"TableOptions",field:"props",props:{column:[{label:r("props.key"),key:"label"},{label:r("props.value"),key:"value"}],valueType:"object"}},{type:"switch",field:"renderAfterExpand",value:!0},{type:"switch",field:"defaultExpandAll"},{type:"switch",field:"expandOnClickNode",value:!0},{type:"switch",field:"checkOnClickNode"},{type:"input",field:"nodeKey"}])}},qh="\u6807\u7B7E",al="elTag",em={menu:"aide",icon:"icon-tag",label:qh,name:al,mask:!0,event:["click","close"],rule({t}){return{type:al,title:"",native:!0,children:[t("com.elTag.name")]}},watch:{formCreateNative({value:t,rule:r}){t&&(r.title="")}},props(t,{t:r}){return Pe(r,al+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"input",field:"formCreateChild"},{type:"select",field:"type",options:[{label:"primary",value:"primary"},{label:"success",value:"success"},{label:"warning",value:"warning"},{label:"danger",value:"danger"},{label:"info",value:"info"}]},{type:"select",field:"size",options:ht(r,[{label:"large",value:"large"},{label:"default",value:"default"},{label:"small",value:"small"}])},{type:"select",field:"effect",options:[{label:"dark",value:"dark"},{label:"light",value:"light"},{label:"plain",value:"plain"}]},{type:"switch",field:"closable"},{type:"switch",field:"disableTransitions"},{type:"switch",field:"hit"},{type:"switch",field:"round"},{type:"ColorInput",field:"color"}])}},tm="HTML",ll="html",nm={menu:"aide",icon:"icon-html",label:tm,name:ll,rule(){return{type:ll,title:"",native:!0,attrs:{innerHTML:""},style:{display:"block",width:"100%"},children:[`<div style="color:blue;">
html html html html html html html html html
</div>`]}},watch:{formCreateNative({value:t,rule:r}){t&&(r.title="")}},props(t,{t:r}){return Pe(r,ll+".props",[{type:"switch",field:"formCreateNative",props:{activeValue:!1,inactiveValue:!0},control:[{value:!1,rule:["formCreateTitle"]}]},{type:"input",field:"formCreateTitle"},{type:"HtmlEditor",field:"formCreateChild"}])}},im="\u8868\u683C\u5E03\u5C40",sl="fcTable",rm={menu:"layout",icon:"icon-table",label:im,name:sl,inside:!1,mask:!1,rule(){return{type:sl,props:{rule:{row:3,col:4,style:{},class:{},layout:[]}},children:[]}},props(t,{t:r}){return Pe(r,sl+".props",[{type:"switch",field:"border",value:!0},{type:"ColorInput",field:"borderColor"},{type:"input",field:"borderWidth"}])}},om="\u8868\u683C\u8868\u5355",ul="tableForm",am={menu:"subform",icon:"icon-table-form",label:om,name:ul,mask:!1,input:!0,subForm:"array",languageKey:["add","operation","dataEmpty"],event:["change","add","delete"],children:"tableFormColumn",loadRule(t){t.props||(t.props={});const r=t.props.columns||[];t.children=r.map(a=>({type:"tableFormColumn",_fc_drag_tag:"tableFormColumn",props:{label:a.label,align:a.align,required:a.required||!1,width:a.style.width||"",color:a.style.color||""},children:a.rule||[]})),delete t.props.columns},parseRule(t){const r=t.children||[];t.props.columns=r.map(a=>({label:a.props.label,required:a.props.required,align:a.props.align,style:{width:a.props.width,color:a.props.color},rule:a.children||[]})),t.children=[]},rule({t}){return{type:ul,field:ze(),title:t("com.tableForm.name"),info:"",props:{},children:[]}},props(t,{t:r}){return Pe(r,ul+".props",[{type:"switch",field:"disabled"},{type:"switch",field:"addable",value:!0},{type:"switch",field:"deletable",value:!0},{type:"switch",field:"filterEmptyColumn",value:!0},{type:"inputNumber",field:"min",props:{min:0}},{type:"inputNumber",field:"max",props:{min:0}}])}},fl="tableFormColumn",lm={icon:"icon-cell",name:fl,aide:!0,drag:!0,dragBtn:!1,mask:!1,style:!1,rule({t}){return{type:fl,props:{label:t("com.tableFormColumn.label"),width:"auto"},children:[]}},props(t,{t:r}){return Pe(r,fl+".props",[{type:"input",field:"label"},{type:"select",field:"align",options:ht(r,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])},{type:"switch",field:"required"},{type:"input",field:"width"},{type:"ColorInput",field:"color"}])}},sm="\u56FE\u7247",dl="elImage",um={menu:"aide",icon:"icon-image",label:sm,name:dl,rule(){return{type:dl,title:"",style:{width:"100px",height:"100px"},props:{src:"https://static.form-create.com/example.png"}}},props(t,{t:r}){return Pe(r,dl+".props",[{type:"input",field:"src"}])}},fm="\u624B\u5199\u7B7E\u540D",cl="signaturePad",dm={menu:"main",icon:"icon-sign",label:fm,name:cl,input:!0,mask:!0,languageKey:["signaturePadTip","signaturePadTitle","reset","ok"],event:["change","remove"],rule({t}){return{type:cl,field:ze(),title:t("com.signaturePad.name"),info:"",$required:!1,props:{}}},props(t,{t:r}){return Pe(r,cl+".props",[{type:"ColorInput",field:"penColor"},{type:"switch",field:"disabled"}])}},cm="\u6807\u9898",xu="fcTitle",Tu=[Wp,Gp,Qp,Jp,Hp,jp,qp,th,dh,oh,ah,ih,sh,uh,ph,wh,Sh,Th,_h,Zh,$h,dm,zh,Uh,am,lm,Rh,Vh,kh,{menu:"aide",icon:"icon-title",label:cm,name:xu,event:[],rule({t}){return{type:"fcTitle",props:{title:t("props.title")}}},props(t,{t:r}){return Pe(r,xu+".props",[{type:"input",field:"title"},{type:"select",field:"size",value:"H2",options:[1,2,3,4,5,6].map(a=>({label:"H"+a,value:"h"+a}))},{type:"select",field:"align",options:ht(r,[{label:"left",value:"left"},{label:"center",value:"center"},{label:"right",value:"right"}])}])}},nm,Ah,em,um,mh,rm,Ph,Ih,Kh,Yh,gh,yh,Xh];function pm(t){return{icon:t.field?"icon-input":"icon-cell",label:t.field||t.type,name:"_",mask:!0,handleBtn:["delete"],rule(){return t},props(){return[]}}}/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function Nu(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,o)}return a}function _n(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?Nu(Object(a),!0).forEach(function(o){hm(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Nu(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function bo(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bo=function(r){return typeof r}:bo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bo(t)}function hm(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function Hn(){return Hn=Object.assign||function(t){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o])}return t},Hn.apply(this,arguments)}function mm(t,r){if(t==null)return{};var a={},o=Object.keys(t),n,s;for(s=0;s<o.length;s++)n=o[s],!(r.indexOf(n)>=0)&&(a[n]=t[n]);return a}function gm(t,r){if(t==null)return{};var a=mm(t,r),o,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)o=s[n],!(r.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(t,o)||(a[o]=t[o]))}return a}var vm="1.14.0";function zn(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var jn=zn(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),wr=zn(/Edge/i),_u=zn(/firefox/i),Er=zn(/safari/i)&&!zn(/chrome/i)&&!zn(/android/i),Du=zn(/iP(ad|od|hone)/i),ym=zn(/chrome/i)&&zn(/android/i),Ru={capture:!1,passive:!1};function it(t,r,a){t.addEventListener(r,a,!jn&&Ru)}function Je(t,r,a){t.removeEventListener(r,a,!jn&&Ru)}function Ao(t,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),t)try{if(t.matches)return t.matches(r);if(t.msMatchesSelector)return t.msMatchesSelector(r);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(r)}catch{return!1}return!1}}function bm(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function Dn(t,r,a,o){if(t){a=a||document;do{if(r!=null&&(r[0]===">"?t.parentNode===a&&Ao(t,r):Ao(t,r))||o&&t===a)return t;if(t===a)break}while(t=bm(t))}return null}var Ou=/\s+/g;function on(t,r,a){if(t&&r)if(t.classList)t.classList[a?"add":"remove"](r);else{var o=(" "+t.className+" ").replace(Ou," ").replace(" "+r+" "," ");t.className=(o+(a?" "+r:"")).replace(Ou," ")}}function Le(t,r,a){var o=t&&t.style;if(o){if(a===void 0)return document.defaultView&&document.defaultView.getComputedStyle?a=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(a=t.currentStyle),r===void 0?a:a[r];!(r in o)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),o[r]=a+(typeof a=="string"?"":"px")}}function $i(t,r){var a="";if(typeof t=="string")a=t;else do{var o=Le(t,"transform");o&&o!=="none"&&(a=o+" "+a)}while(!r&&(t=t.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(a)}function ku(t,r,a){if(t){var o=t.getElementsByTagName(r),n=0,s=o.length;if(a)for(;n<s;n++)a(o[n],n);return o}return[]}function Rn(){var t=document.scrollingElement;return t||document.documentElement}function Dt(t,r,a,o,n){if(!(!t.getBoundingClientRect&&t!==window)){var s,d,c,p,m,v,y;if(t!==window&&t.parentNode&&t!==Rn()?(s=t.getBoundingClientRect(),d=s.top,c=s.left,p=s.bottom,m=s.right,v=s.height,y=s.width):(d=0,c=0,p=window.innerHeight,m=window.innerWidth,v=window.innerHeight,y=window.innerWidth),(r||a)&&t!==window&&(n=n||t.parentNode,!jn))do if(n&&n.getBoundingClientRect&&(Le(n,"transform")!=="none"||a&&Le(n,"position")!=="static")){var E=n.getBoundingClientRect();d-=E.top+parseInt(Le(n,"border-top-width")),c-=E.left+parseInt(Le(n,"border-left-width")),p=d+s.height,m=c+s.width;break}while(n=n.parentNode);if(o&&t!==window){var D=$i(n||t),C=D&&D.a,x=D&&D.d;D&&(d/=x,c/=C,y/=C,v/=x,p=d+v,m=c+y)}return{top:d,left:c,bottom:p,right:m,width:y,height:v}}}function Bu(t,r,a){for(var o=ti(t,!0),n=Dt(t)[r];o;){var s=Dt(o)[a],d=void 0;if(a==="top"||a==="left"?d=n>=s:d=n<=s,!d)return o;if(o===Rn())break;o=ti(o,!1)}return!1}function Hi(t,r,a,o){for(var n=0,s=0,d=t.children;s<d.length;){if(d[s].style.display!=="none"&&d[s]!==Ve.ghost&&(o||d[s]!==Ve.dragged)&&Dn(d[s],a.draggable,t,!1)){if(n===r)return d[s];n++}s++}return null}function pl(t,r){for(var a=t.lastElementChild;a&&(a===Ve.ghost||Le(a,"display")==="none"||r&&!Ao(a,r));)a=a.previousElementSibling;return a||null}function pn(t,r){var a=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==Ve.clone&&(!r||Ao(t,r))&&a++;return a}function Iu(t){var r=0,a=0,o=Rn();if(t)do{var n=$i(t),s=n.a,d=n.d;r+=t.scrollLeft*s,a+=t.scrollTop*d}while(t!==o&&(t=t.parentNode));return[r,a]}function Am(t,r){for(var a in t)if(!!t.hasOwnProperty(a)){for(var o in r)if(r.hasOwnProperty(o)&&r[o]===t[a][o])return Number(a)}return-1}function ti(t,r){if(!t||!t.getBoundingClientRect)return Rn();var a=t,o=!1;do if(a.clientWidth<a.scrollWidth||a.clientHeight<a.scrollHeight){var n=Le(a);if(a.clientWidth<a.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||a.clientHeight<a.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!a.getBoundingClientRect||a===document.body)return Rn();if(o||r)return a;o=!0}}while(a=a.parentNode);return Rn()}function Cm(t,r){if(t&&r)for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a]);return t}function hl(t,r){return Math.round(t.top)===Math.round(r.top)&&Math.round(t.left)===Math.round(r.left)&&Math.round(t.height)===Math.round(r.height)&&Math.round(t.width)===Math.round(r.width)}var Sr;function Mu(t,r){return function(){if(!Sr){var a=arguments,o=this;a.length===1?t.call(o,a[0]):t.apply(o,a),Sr=setTimeout(function(){Sr=void 0},r)}}}function wm(){clearTimeout(Sr),Sr=void 0}function Pu(t,r,a){t.scrollLeft+=r,t.scrollTop+=a}function Lu(t){var r=window.Polymer,a=window.jQuery||window.Zepto;return r&&r.dom?r.dom(t).cloneNode(!0):a?a(t).clone(!0)[0]:t.cloneNode(!0)}var an="Sortable"+new Date().getTime();function Em(){var t=[],r;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(n){if(!(Le(n,"display")==="none"||n===Ve.ghost)){t.push({target:n,rect:Dt(n)});var s=_n({},t[t.length-1].rect);if(n.thisAnimationDuration){var d=$i(n,!0);d&&(s.top-=d.f,s.left-=d.e)}n.fromRect=s}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Am(t,{target:o}),1)},animateAll:function(o){var n=this;if(!this.options.animation){clearTimeout(r),typeof o=="function"&&o();return}var s=!1,d=0;t.forEach(function(c){var p=0,m=c.target,v=m.fromRect,y=Dt(m),E=m.prevFromRect,D=m.prevToRect,C=c.rect,x=$i(m,!0);x&&(y.top-=x.f,y.left-=x.e),m.toRect=y,m.thisAnimationDuration&&hl(E,y)&&!hl(v,y)&&(C.top-y.top)/(C.left-y.left)===(v.top-y.top)/(v.left-y.left)&&(p=xm(C,E,D,n.options)),hl(y,v)||(m.prevFromRect=v,m.prevToRect=y,p||(p=n.options.animation),n.animate(m,C,y,p)),p&&(s=!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),s?r=setTimeout(function(){typeof o=="function"&&o()},d):typeof o=="function"&&o(),t=[]},animate:function(o,n,s,d){if(d){Le(o,"transition",""),Le(o,"transform","");var c=$i(this.el),p=c&&c.a,m=c&&c.d,v=(n.left-s.left)/(p||1),y=(n.top-s.top)/(m||1);o.animatingX=!!v,o.animatingY=!!y,Le(o,"transform","translate3d("+v+"px,"+y+"px,0)"),this.forRepaintDummy=Sm(o),Le(o,"transition","transform "+d+"ms"+(this.options.easing?" "+this.options.easing:"")),Le(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){Le(o,"transition",""),Le(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},d)}}}}function Sm(t){return t.offsetWidth}function xm(t,r,a,o){return Math.sqrt(Math.pow(r.top-t.top,2)+Math.pow(r.left-t.left,2))/Math.sqrt(Math.pow(r.top-a.top,2)+Math.pow(r.left-a.left,2))*o.animation}var zi=[],ml={initializeByDefault:!0},xr={mount:function(r){for(var a in ml)ml.hasOwnProperty(a)&&!(a in r)&&(r[a]=ml[a]);zi.forEach(function(o){if(o.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),zi.push(r)},pluginEvent:function(r,a,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var s=r+"Global";zi.forEach(function(d){!a[d.pluginName]||(a[d.pluginName][s]&&a[d.pluginName][s](_n({sortable:a},o)),a.options[d.pluginName]&&a[d.pluginName][r]&&a[d.pluginName][r](_n({sortable:a},o)))})},initializePlugins:function(r,a,o,n){zi.forEach(function(c){var p=c.pluginName;if(!(!r.options[p]&&!c.initializeByDefault)){var m=new c(r,a,r.options);m.sortable=r,m.options=r.options,r[p]=m,Hn(o,m.defaults)}});for(var s in r.options)if(!!r.options.hasOwnProperty(s)){var d=this.modifyOption(r,s,r.options[s]);typeof d<"u"&&(r.options[s]=d)}},getEventProperties:function(r,a){var o={};return zi.forEach(function(n){typeof n.eventProperties=="function"&&Hn(o,n.eventProperties.call(a[n.pluginName],r))}),o},modifyOption:function(r,a,o){var n;return zi.forEach(function(s){!r[s.pluginName]||s.optionListeners&&typeof s.optionListeners[a]=="function"&&(n=s.optionListeners[a].call(r[s.pluginName],o))}),n}};function Tm(t){var r=t.sortable,a=t.rootEl,o=t.name,n=t.targetEl,s=t.cloneEl,d=t.toEl,c=t.fromEl,p=t.oldIndex,m=t.newIndex,v=t.oldDraggableIndex,y=t.newDraggableIndex,E=t.originalEvent,D=t.putSortable,C=t.extraEventProperties;if(r=r||a&&a[an],!!r){var x,A=r.options,g="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!jn&&!wr?x=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(x=document.createEvent("Event"),x.initEvent(o,!0,!0)),x.to=d||a,x.from=c||a,x.item=n||a,x.clone=s,x.oldIndex=p,x.newIndex=m,x.oldDraggableIndex=v,x.newDraggableIndex=y,x.originalEvent=E,x.pullMode=D?D.lastPutMode:void 0;var b=_n(_n({},C),xr.getEventProperties(o,r));for(var N in b)x[N]=b[N];a&&a.dispatchEvent(x),A[g]&&A[g].call(r,x)}}var Nm=["evt"],Zt=function(r,a){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=o.evt,s=gm(o,Nm);xr.pluginEvent.bind(Ve)(r,a,_n({dragEl:be,parentEl:vt,ghostEl:je,rootEl:dt,nextEl:wi,lastDownEl:Co,cloneEl:yt,cloneHidden:ni,dragStarted:Nr,putSortable:Vt,activeSortable:Ve.active,originalEvent:n,oldIndex:ji,oldDraggableIndex:Tr,newIndex:ln,newDraggableIndex:ii,hideGhostForTarget:Uu,unhideGhostForTarget:Wu,cloneNowHidden:function(){ni=!0},cloneNowShown:function(){ni=!1},dispatchSortableEvent:function(c){Ut({sortable:a,name:c,originalEvent:n})}},s))};function Ut(t){Tm(_n({putSortable:Vt,cloneEl:yt,targetEl:be,rootEl:dt,oldIndex:ji,oldDraggableIndex:Tr,newIndex:ln,newDraggableIndex:ii},t))}var be,vt,je,dt,wi,Co,yt,ni,ji,ln,Tr,ii,wo,Vt,Ui=!1,Eo=!1,So=[],Ei,An,gl,vl,Vu,Fu,Nr,Wi,_r,Dr=!1,xo=!1,To,Ht,yl=[],bl=!1,No=[],_o=typeof document<"u",Do=Du,$u=wr||jn?"cssFloat":"float",_m=_o&&!ym&&!Du&&"draggable"in document.createElement("div"),Hu=function(){if(!!_o){if(jn)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),zu=function(r,a){var o=Le(r),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),s=Hi(r,0,a),d=Hi(r,1,a),c=s&&Le(s),p=d&&Le(d),m=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Dt(s).width,v=p&&parseInt(p.marginLeft)+parseInt(p.marginRight)+Dt(d).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(s&&c.float&&c.float!=="none"){var y=c.float==="left"?"left":"right";return d&&(p.clear==="both"||p.clear===y)?"vertical":"horizontal"}return s&&(c.display==="block"||c.display==="flex"||c.display==="table"||c.display==="grid"||m>=n&&o[$u]==="none"||d&&o[$u]==="none"&&m+v>n)?"vertical":"horizontal"},Dm=function(r,a,o){var n=o?r.left:r.top,s=o?r.right:r.bottom,d=o?r.width:r.height,c=o?a.left:a.top,p=o?a.right:a.bottom,m=o?a.width:a.height;return n===c||s===p||n+d/2===c+m/2},Rm=function(r,a){var o;return So.some(function(n){var s=n[an].options.emptyInsertThreshold;if(!(!s||pl(n))){var d=Dt(n),c=r>=d.left-s&&r<=d.right+s,p=a>=d.top-s&&a<=d.bottom+s;if(c&&p)return o=n}}),o},ju=function(r){function a(s,d){return function(c,p,m,v){var y=c.options.group.name&&p.options.group.name&&c.options.group.name===p.options.group.name;if(s==null&&(d||y))return!0;if(s==null||s===!1)return!1;if(d&&s==="clone")return s;if(typeof s=="function")return a(s(c,p,m,v),d)(c,p,m,v);var E=(d?c:p).options.group.name;return s===!0||typeof s=="string"&&s===E||s.join&&s.indexOf(E)>-1}}var o={},n=r.group;(!n||bo(n)!="object")&&(n={name:n}),o.name=n.name,o.checkPull=a(n.pull,!0),o.checkPut=a(n.put),o.revertClone=n.revertClone,r.group=o},Uu=function(){!Hu&&je&&Le(je,"display","none")},Wu=function(){!Hu&&je&&Le(je,"display","")};_o&&document.addEventListener("click",function(t){if(Eo)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Eo=!1,!1},!0);var Si=function(r){if(be){r=r.touches?r.touches[0]:r;var a=Rm(r.clientX,r.clientY);if(a){var o={};for(var n in r)r.hasOwnProperty(n)&&(o[n]=r[n]);o.target=o.rootEl=a,o.preventDefault=void 0,o.stopPropagation=void 0,a[an]._onDragOver(o)}}},Om=function(r){be&&be.parentNode[an]._isOutsideThisEl(r.target)};function Ve(t,r){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=r=Hn({},r),t[an]=this;var a={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return zu(t,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:Ve.supportPointer!==!1&&"PointerEvent"in window&&!Er,emptyInsertThreshold:5};xr.initializePlugins(this,t,a);for(var o in a)!(o in r)&&(r[o]=a[o]);ju(r);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=r.forceFallback?!1:_m,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?it(t,"pointerdown",this._onTapStart):(it(t,"mousedown",this._onTapStart),it(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(it(t,"dragover",this),it(t,"dragenter",this)),So.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Hn(this,Em())}Ve.prototype={constructor:Ve,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(Wi=null)},_getDirection:function(r,a){return typeof this.options.direction=="function"?this.options.direction.call(this,r,a,be):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var a=this,o=this.el,n=this.options,s=n.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,v=n.filter;if(Fm(o),!be&&!(/mousedown|pointerdown/.test(d)&&r.button!==0||n.disabled)&&!m.isContentEditable&&!(!this.nativeDraggable&&Er&&p&&p.tagName.toUpperCase()==="SELECT")&&(p=Dn(p,n.draggable,o,!1),!(p&&p.animated)&&Co!==p)){if(ji=pn(p),Tr=pn(p,n.draggable),typeof v=="function"){if(v.call(this,r,p,this)){Ut({sortable:a,rootEl:m,name:"filter",targetEl:p,toEl:o,fromEl:o}),Zt("filter",a,{evt:r}),s&&r.cancelable&&r.preventDefault();return}}else if(v&&(v=v.split(",").some(function(y){if(y=Dn(m,y.trim(),o,!1),y)return Ut({sortable:a,rootEl:y,name:"filter",targetEl:p,fromEl:o,toEl:o}),Zt("filter",a,{evt:r}),!0}),v)){s&&r.cancelable&&r.preventDefault();return}n.handle&&!Dn(m,n.handle,o,!1)||this._prepareDragStart(r,c,p)}}},_prepareDragStart:function(r,a,o){var n=this,s=n.el,d=n.options,c=s.ownerDocument,p;if(o&&!be&&o.parentNode===s){var m=Dt(o);if(dt=s,be=o,vt=be.parentNode,wi=be.nextSibling,Co=o,wo=d.group,Ve.dragged=be,Ei={target:be,clientX:(a||r).clientX,clientY:(a||r).clientY},Vu=Ei.clientX-m.left,Fu=Ei.clientY-m.top,this._lastX=(a||r).clientX,this._lastY=(a||r).clientY,be.style["will-change"]="all",p=function(){if(Zt("delayEnded",n,{evt:r}),Ve.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!_u&&n.nativeDraggable&&(be.draggable=!0),n._triggerDragStart(r,a),Ut({sortable:n,name:"choose",originalEvent:r}),on(be,d.chosenClass,!0)},d.ignore.split(",").forEach(function(v){ku(be,v.trim(),Al)}),it(c,"dragover",Si),it(c,"mousemove",Si),it(c,"touchmove",Si),it(c,"mouseup",n._onDrop),it(c,"touchend",n._onDrop),it(c,"touchcancel",n._onDrop),_u&&this.nativeDraggable&&(this.options.touchStartThreshold=4,be.draggable=!0),Zt("delayStart",this,{evt:r}),d.delay&&(!d.delayOnTouchOnly||a)&&(!this.nativeDraggable||!(wr||jn))){if(Ve.eventCanceled){this._onDrop();return}it(c,"mouseup",n._disableDelayedDrag),it(c,"touchend",n._disableDelayedDrag),it(c,"touchcancel",n._disableDelayedDrag),it(c,"mousemove",n._delayedDragTouchMoveHandler),it(c,"touchmove",n._delayedDragTouchMoveHandler),d.supportPointer&&it(c,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(p,d.delay)}else p()}},_delayedDragTouchMoveHandler:function(r){var a=r.touches?r.touches[0]:r;Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){be&&Al(be),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;Je(r,"mouseup",this._disableDelayedDrag),Je(r,"touchend",this._disableDelayedDrag),Je(r,"touchcancel",this._disableDelayedDrag),Je(r,"mousemove",this._delayedDragTouchMoveHandler),Je(r,"touchmove",this._delayedDragTouchMoveHandler),Je(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,a){a=a||r.pointerType=="touch"&&r,!this.nativeDraggable||a?this.options.supportPointer?it(document,"pointermove",this._onTouchMove):a?it(document,"touchmove",this._onTouchMove):it(document,"mousemove",this._onTouchMove):(it(be,"dragend",this),it(dt,"dragstart",this._onDragStart));try{document.selection?Oo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,a){if(Ui=!1,dt&&be){Zt("dragStarted",this,{evt:a}),this.nativeDraggable&&it(document,"dragover",Om);var o=this.options;!r&&on(be,o.dragClass,!1),on(be,o.ghostClass,!0),Ve.active=this,r&&this._appendGhost(),Ut({sortable:this,name:"start",originalEvent:a})}else this._nulling()},_emulateDragOver:function(){if(An){this._lastX=An.clientX,this._lastY=An.clientY,Uu();for(var r=document.elementFromPoint(An.clientX,An.clientY),a=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(An.clientX,An.clientY),r!==a);)a=r;if(be.parentNode[an]._isOutsideThisEl(r),a)do{if(a[an]){var o=void 0;if(o=a[an]._onDragOver({clientX:An.clientX,clientY:An.clientY,target:r,rootEl:a}),o&&!this.options.dragoverBubble)break}r=a}while(a=a.parentNode);Wu()}},_onTouchMove:function(r){if(Ei){var a=this.options,o=a.fallbackTolerance,n=a.fallbackOffset,s=r.touches?r.touches[0]:r,d=je&&$i(je,!0),c=je&&d&&d.a,p=je&&d&&d.d,m=Do&&Ht&&Iu(Ht),v=(s.clientX-Ei.clientX+n.x)/(c||1)+(m?m[0]-yl[0]:0)/(c||1),y=(s.clientY-Ei.clientY+n.y)/(p||1)+(m?m[1]-yl[1]:0)/(p||1);if(!Ve.active&&!Ui){if(o&&Math.max(Math.abs(s.clientX-this._lastX),Math.abs(s.clientY-this._lastY))<o)return;this._onDragStart(r,!0)}if(je){d?(d.e+=v-(gl||0),d.f+=y-(vl||0)):d={a:1,b:0,c:0,d:1,e:v,f:y};var E="matrix(".concat(d.a,",").concat(d.b,",").concat(d.c,",").concat(d.d,",").concat(d.e,",").concat(d.f,")");Le(je,"webkitTransform",E),Le(je,"mozTransform",E),Le(je,"msTransform",E),Le(je,"transform",E),gl=v,vl=y,An=s}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!je){var r=this.options.fallbackOnBody?document.body:dt,a=Dt(be,!0,Do,!0,r),o=this.options;if(Do){for(Ht=r;Le(Ht,"position")==="static"&&Le(Ht,"transform")==="none"&&Ht!==document;)Ht=Ht.parentNode;Ht!==document.body&&Ht!==document.documentElement?(Ht===document&&(Ht=Rn()),a.top+=Ht.scrollTop,a.left+=Ht.scrollLeft):Ht=Rn(),yl=Iu(Ht)}je=be.cloneNode(!0),on(je,o.ghostClass,!1),on(je,o.fallbackClass,!0),on(je,o.dragClass,!0),Le(je,"transition",""),Le(je,"transform",""),Le(je,"box-sizing","border-box"),Le(je,"margin",0),Le(je,"top",a.top),Le(je,"left",a.left),Le(je,"width",a.width),Le(je,"height",a.height),Le(je,"opacity","0.8"),Le(je,"position",Do?"absolute":"fixed"),Le(je,"zIndex","100000"),Le(je,"pointerEvents","none"),Ve.ghost=je,r.appendChild(je),Le(je,"transform-origin",Vu/parseInt(je.style.width)*100+"% "+Fu/parseInt(je.style.height)*100+"%")}},_onDragStart:function(r,a){var o=this,n=r.dataTransfer,s=o.options;if(Zt("dragStart",this,{evt:r}),Ve.eventCanceled){this._onDrop();return}Zt("setupClone",this),Ve.eventCanceled||(yt=Lu(be),yt.draggable=!1,yt.style["will-change"]="",this._hideClone(),on(yt,this.options.chosenClass,!1),Ve.clone=yt),o.cloneId=Oo(function(){Zt("clone",o),!Ve.eventCanceled&&(o.options.removeCloneOnHide||dt.insertBefore(yt,be),o._hideClone(),Ut({sortable:o,name:"clone"}))}),!a&&on(be,s.dragClass,!0),a?(Eo=!0,o._loopId=setInterval(o._emulateDragOver,50)):(Je(document,"mouseup",o._onDrop),Je(document,"touchend",o._onDrop),Je(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",s.setData&&s.setData.call(o,n,be)),it(document,"drop",o),Le(be,"transform","translateZ(0)")),Ui=!0,o._dragStartId=Oo(o._dragStarted.bind(o,a,r)),it(document,"selectstart",o),Nr=!0,Er&&Le(document.body,"user-select","none")},_onDragOver:function(r){var a=this.el,o=r.target,n,s,d,c=this.options,p=c.group,m=Ve.active,v=wo===p,y=c.sort,E=Vt||m,D,C=this,x=!1;if(bl)return;function A(J,ie){Zt(J,C,_n({evt:r,isOwner:v,axis:D?"vertical":"horizontal",revert:d,dragRect:n,targetRect:s,canSort:y,fromSortable:E,target:o,completed:b,onMove:function(z,G){return Ro(dt,a,be,n,z,Dt(z),r,G)},changed:N},ie))}function g(){A("dragOverAnimationCapture"),C.captureAnimationState(),C!==E&&E.captureAnimationState()}function b(J){return A("dragOverCompleted",{insertion:J}),J&&(v?m._hideClone():m._showClone(C),C!==E&&(on(be,Vt?Vt.options.ghostClass:m.options.ghostClass,!1),on(be,c.ghostClass,!0)),Vt!==C&&C!==Ve.active?Vt=C:C===Ve.active&&Vt&&(Vt=null),E===C&&(C._ignoreWhileAnimating=o),C.animateAll(function(){A("dragOverAnimationComplete"),C._ignoreWhileAnimating=null}),C!==E&&(E.animateAll(),E._ignoreWhileAnimating=null)),(o===be&&!be.animated||o===a&&!o.animated)&&(Wi=null),!c.dragoverBubble&&!r.rootEl&&o!==document&&(be.parentNode[an]._isOutsideThisEl(r.target),!J&&Si(r)),!c.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),x=!0}function N(){ln=pn(be),ii=pn(be,c.draggable),Ut({sortable:C,name:"change",toEl:a,newIndex:ln,newDraggableIndex:ii,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),o=Dn(o,c.draggable,a,!0),A("dragOver"),Ve.eventCanceled)return x;if(be.contains(r.target)||o.animated&&o.animatingX&&o.animatingY||C._ignoreWhileAnimating===o)return b(!1);if(Eo=!1,m&&!c.disabled&&(v?y||(d=vt!==dt):Vt===this||(this.lastPutMode=wo.checkPull(this,m,be,r))&&p.checkPut(this,m,be,r))){if(D=this._getDirection(r,o)==="vertical",n=Dt(be),A("dragOverValid"),Ve.eventCanceled)return x;if(d)return vt=dt,g(),this._hideClone(),A("revert"),Ve.eventCanceled||(wi?dt.insertBefore(be,wi):dt.appendChild(be)),b(!0);var T=pl(a,c.draggable);if(!T||Mm(r,D,this)&&!T.animated){if(T===be)return b(!1);if(T&&a===r.target&&(o=T),o&&(s=Dt(o)),Ro(dt,a,be,n,o,s,r,!!o)!==!1)return g(),a.appendChild(be),vt=a,N(),b(!0)}else if(T&&Im(r,D,this)){var O=Hi(a,0,c,!0);if(O===be)return b(!1);if(o=O,s=Dt(o),Ro(dt,a,be,n,o,s,r,!1)!==!1)return g(),a.insertBefore(be,O),vt=a,N(),b(!0)}else if(o.parentNode===a){s=Dt(o);var k=0,M,S=be.parentNode!==a,F=!Dm(be.animated&&be.toRect||n,o.animated&&o.toRect||s,D),R=D?"top":"left",w=Bu(o,"top","top")||Bu(be,"top","top"),L=w?w.scrollTop:void 0;Wi!==o&&(M=s[R],Dr=!1,xo=!F&&c.invertSwap||S),k=Pm(r,o,s,D,F?1:c.swapThreshold,c.invertedSwapThreshold==null?c.swapThreshold:c.invertedSwapThreshold,xo,Wi===o);var $;if(k!==0){var W=pn(be);do W-=k,$=vt.children[W];while($&&(Le($,"display")==="none"||$===je))}if(k===0||$===o)return b(!1);Wi=o,_r=k;var P=o.nextElementSibling,U=!1;U=k===1;var Q=Ro(dt,a,be,n,o,s,r,U);if(Q!==!1)return(Q===1||Q===-1)&&(U=Q===1),bl=!0,setTimeout(Bm,30),g(),U&&!P?a.appendChild(be):o.parentNode.insertBefore(be,U?P:o),w&&Pu(w,0,L-w.scrollTop),vt=be.parentNode,M!==void 0&&!xo&&(To=Math.abs(M-Dt(o)[R])),N(),b(!0)}if(a.contains(be))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Je(document,"mousemove",this._onTouchMove),Je(document,"touchmove",this._onTouchMove),Je(document,"pointermove",this._onTouchMove),Je(document,"dragover",Si),Je(document,"mousemove",Si),Je(document,"touchmove",Si)},_offUpEvents:function(){var r=this.el.ownerDocument;Je(r,"mouseup",this._onDrop),Je(r,"touchend",this._onDrop),Je(r,"pointerup",this._onDrop),Je(r,"touchcancel",this._onDrop),Je(document,"selectstart",this)},_onDrop:function(r){var a=this.el,o=this.options;if(ln=pn(be),ii=pn(be,o.draggable),Zt("drop",this,{evt:r}),vt=be&&be.parentNode,ln=pn(be),ii=pn(be,o.draggable),Ve.eventCanceled){this._nulling();return}Ui=!1,xo=!1,Dr=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Cl(this.cloneId),Cl(this._dragStartId),this.nativeDraggable&&(Je(document,"drop",this),Je(a,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Er&&Le(document.body,"user-select",""),Le(be,"transform",""),r&&(Nr&&(r.cancelable&&r.preventDefault(),!o.dropBubble&&r.stopPropagation()),je&&je.parentNode&&je.parentNode.removeChild(je),(dt===vt||Vt&&Vt.lastPutMode!=="clone")&&yt&&yt.parentNode&&yt.parentNode.removeChild(yt),be&&(this.nativeDraggable&&Je(be,"dragend",this),Al(be),be.style["will-change"]="",Nr&&!Ui&&on(be,Vt?Vt.options.ghostClass:this.options.ghostClass,!1),on(be,this.options.chosenClass,!1),Ut({sortable:this,name:"unchoose",toEl:vt,newIndex:null,newDraggableIndex:null,originalEvent:r}),dt!==vt?(ln>=0&&(Ut({rootEl:vt,name:"add",toEl:vt,fromEl:dt,originalEvent:r}),Ut({sortable:this,name:"remove",toEl:vt,originalEvent:r}),Ut({rootEl:vt,name:"sort",toEl:vt,fromEl:dt,originalEvent:r}),Ut({sortable:this,name:"sort",toEl:vt,originalEvent:r})),Vt&&Vt.save()):ln!==ji&&ln>=0&&(Ut({sortable:this,name:"update",toEl:vt,originalEvent:r}),Ut({sortable:this,name:"sort",toEl:vt,originalEvent:r})),Ve.active&&((ln==null||ln===-1)&&(ln=ji,ii=Tr),Ut({sortable:this,name:"end",toEl:vt,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Zt("nulling",this),dt=be=vt=je=wi=yt=Co=ni=Ei=An=Nr=ln=ii=ji=Tr=Wi=_r=Vt=wo=Ve.dragged=Ve.ghost=Ve.clone=Ve.active=null,No.forEach(function(r){r.checked=!0}),No.length=gl=vl=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":be&&(this._onDragOver(r),km(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],a,o=this.el.children,n=0,s=o.length,d=this.options;n<s;n++)a=o[n],Dn(a,d.draggable,this.el,!1)&&r.push(a.getAttribute(d.dataIdAttr)||Vm(a));return r},sort:function(r,a){var o={},n=this.el;this.toArray().forEach(function(s,d){var c=n.children[d];Dn(c,this.options.draggable,n,!1)&&(o[s]=c)},this),a&&this.captureAnimationState(),r.forEach(function(s){o[s]&&(n.removeChild(o[s]),n.appendChild(o[s]))}),a&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,a){return Dn(r,a||this.options.draggable,this.el,!1)},option:function(r,a){var o=this.options;if(a===void 0)return o[r];var n=xr.modifyOption(this,r,a);typeof n<"u"?o[r]=n:o[r]=a,r==="group"&&ju(o)},destroy:function(){Zt("destroy",this);var r=this.el;r[an]=null,Je(r,"mousedown",this._onTapStart),Je(r,"touchstart",this._onTapStart),Je(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(Je(r,"dragover",this),Je(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(a){a.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),So.splice(So.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!ni){if(Zt("hideClone",this),Ve.eventCanceled)return;Le(yt,"display","none"),this.options.removeCloneOnHide&&yt.parentNode&&yt.parentNode.removeChild(yt),ni=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(ni){if(Zt("showClone",this),Ve.eventCanceled)return;be.parentNode==dt&&!this.options.group.revertClone?dt.insertBefore(yt,be):wi?dt.insertBefore(yt,wi):dt.appendChild(yt),this.options.group.revertClone&&this.animate(be,yt),Le(yt,"display",""),ni=!1}}};function km(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Ro(t,r,a,o,n,s,d,c){var p,m=t[an],v=m.options.onMove,y;return window.CustomEvent&&!jn&&!wr?p=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent("move",!0,!0)),p.to=r,p.from=t,p.dragged=a,p.draggedRect=o,p.related=n||r,p.relatedRect=s||Dt(r),p.willInsertAfter=c,p.originalEvent=d,t.dispatchEvent(p),v&&(y=v.call(m,p,d)),y}function Al(t){t.draggable=!1}function Bm(){bl=!1}function Im(t,r,a){var o=Dt(Hi(a.el,0,a.options,!0)),n=10;return r?t.clientX<o.left-n||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-n||t.clientY<o.bottom&&t.clientX<o.left}function Mm(t,r,a){var o=Dt(pl(a.el,a.options.draggable)),n=10;return r?t.clientX>o.right+n||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+n}function Pm(t,r,a,o,n,s,d,c){var p=o?t.clientY:t.clientX,m=o?a.height:a.width,v=o?a.top:a.left,y=o?a.bottom:a.right,E=!1;if(!d){if(c&&To<m*n){if(!Dr&&(_r===1?p>v+m*s/2:p<y-m*s/2)&&(Dr=!0),Dr)E=!0;else if(_r===1?p<v+To:p>y-To)return-_r}else if(p>v+m*(1-n)/2&&p<y-m*(1-n)/2)return Lm(r)}return E=E||d,E&&(p<v+m*s/2||p>y-m*s/2)?p>v+m/2?1:-1:0}function Lm(t){return pn(be)<pn(t)?1:-1}function Vm(t){for(var r=t.tagName+t.className+t.src+t.href+t.textContent,a=r.length,o=0;a--;)o+=r.charCodeAt(a);return o.toString(36)}function Fm(t){No.length=0;for(var r=t.getElementsByTagName("input"),a=r.length;a--;){var o=r[a];o.checked&&No.push(o)}}function Oo(t){return setTimeout(t,0)}function Cl(t){return clearTimeout(t)}_o&&it(document,"touchmove",function(t){(Ve.active||Ui)&&t.cancelable&&t.preventDefault()}),Ve.utils={on:it,off:Je,css:Le,find:ku,is:function(r,a){return!!Dn(r,a,r,!1)},extend:Cm,throttle:Mu,closest:Dn,toggleClass:on,clone:Lu,index:pn,nextTick:Oo,cancelNextTick:Cl,detectDirection:zu,getChild:Hi},Ve.get=function(t){return t[an]},Ve.mount=function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];r[0].constructor===Array&&(r=r[0]),r.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Ve.utils=_n(_n({},Ve.utils),o.utils)),xr.mount(o)})},Ve.create=function(t,r){return new Ve(t,r)},Ve.version=vm;var St=[],Rr,wl,El=!1,Sl,xl,ko,Or;function $m(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return t.prototype={dragStarted:function(a){var o=a.originalEvent;this.sortable.nativeDraggable?it(document,"dragover",this._handleAutoScroll):this.options.supportPointer?it(document,"pointermove",this._handleFallbackAutoScroll):o.touches?it(document,"touchmove",this._handleFallbackAutoScroll):it(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(a){var o=a.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?Je(document,"dragover",this._handleAutoScroll):(Je(document,"pointermove",this._handleFallbackAutoScroll),Je(document,"touchmove",this._handleFallbackAutoScroll),Je(document,"mousemove",this._handleFallbackAutoScroll)),Ku(),Bo(),wm()},nulling:function(){ko=wl=Rr=El=Or=Sl=xl=null,St.length=0},_handleFallbackAutoScroll:function(a){this._handleAutoScroll(a,!0)},_handleAutoScroll:function(a,o){var n=this,s=(a.touches?a.touches[0]:a).clientX,d=(a.touches?a.touches[0]:a).clientY,c=document.elementFromPoint(s,d);if(ko=a,o||this.options.forceAutoScrollFallback||wr||jn||Er){Tl(a,this.options,c,o);var p=ti(c,!0);El&&(!Or||s!==Sl||d!==xl)&&(Or&&Ku(),Or=setInterval(function(){var m=ti(document.elementFromPoint(s,d),!0);m!==p&&(p=m,Bo()),Tl(a,n.options,m,o)},10),Sl=s,xl=d)}else{if(!this.options.bubbleScroll||ti(c,!0)===Rn()){Bo();return}Tl(a,this.options,ti(c,!1),!1)}}},Hn(t,{pluginName:"scroll",initializeByDefault:!0})}function Bo(){St.forEach(function(t){clearInterval(t.pid)}),St=[]}function Ku(){clearInterval(Or)}var Tl=Mu(function(t,r,a,o){if(!!r.scroll){var n=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,d=r.scrollSensitivity,c=r.scrollSpeed,p=Rn(),m=!1,v;wl!==a&&(wl=a,Bo(),Rr=r.scroll,v=r.scrollFn,Rr===!0&&(Rr=ti(a,!0)));var y=0,E=Rr;do{var D=E,C=Dt(D),x=C.top,A=C.bottom,g=C.left,b=C.right,N=C.width,T=C.height,O=void 0,k=void 0,M=D.scrollWidth,S=D.scrollHeight,F=Le(D),R=D.scrollLeft,w=D.scrollTop;D===p?(O=N<M&&(F.overflowX==="auto"||F.overflowX==="scroll"||F.overflowX==="visible"),k=T<S&&(F.overflowY==="auto"||F.overflowY==="scroll"||F.overflowY==="visible")):(O=N<M&&(F.overflowX==="auto"||F.overflowX==="scroll"),k=T<S&&(F.overflowY==="auto"||F.overflowY==="scroll"));var L=O&&(Math.abs(b-n)<=d&&R+N<M)-(Math.abs(g-n)<=d&&!!R),$=k&&(Math.abs(A-s)<=d&&w+T<S)-(Math.abs(x-s)<=d&&!!w);if(!St[y])for(var W=0;W<=y;W++)St[W]||(St[W]={});(St[y].vx!=L||St[y].vy!=$||St[y].el!==D)&&(St[y].el=D,St[y].vx=L,St[y].vy=$,clearInterval(St[y].pid),(L!=0||$!=0)&&(m=!0,St[y].pid=setInterval(function(){o&&this.layer===0&&Ve.active._onTouchMove(ko);var P=St[this.layer].vy?St[this.layer].vy*c:0,U=St[this.layer].vx?St[this.layer].vx*c:0;typeof v=="function"&&v.call(Ve.dragged.parentNode[an],U,P,t,ko,St[this.layer].el)!=="continue"||Pu(St[this.layer].el,U,P)}.bind({layer:y}),24))),y++}while(r.bubbleScroll&&E!==p&&(E=ti(E,!1)));El=m}},30),Gu=function(r){var a=r.originalEvent,o=r.putSortable,n=r.dragEl,s=r.activeSortable,d=r.dispatchSortableEvent,c=r.hideGhostForTarget,p=r.unhideGhostForTarget;if(!!a){var m=o||s;c();var v=a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,y=document.elementFromPoint(v.clientX,v.clientY);p(),m&&!m.el.contains(y)&&(d("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function Nl(){}Nl.prototype={startIndex:null,dragStart:function(r){var a=r.oldDraggableIndex;this.startIndex=a},onSpill:function(r){var a=r.dragEl,o=r.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=Hi(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(a,n):this.sortable.el.appendChild(a),this.sortable.animateAll(),o&&o.animateAll()},drop:Gu},Hn(Nl,{pluginName:"revertOnSpill"});function _l(){}_l.prototype={onSpill:function(r){var a=r.dragEl,o=r.putSortable,n=o||this.sortable;n.captureAnimationState(),a.parentNode&&a.parentNode.removeChild(a),n.animateAll()},drop:Gu},Hn(_l,{pluginName:"removeOnSpill"}),Ve.mount(new $m),Ve.mount(_l,Nl);function Dl(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function Yu(t,r,a){const o=a===0?t.children[0]:t.children[a-1].nextSibling;t.insertBefore(r,o)}function Hm(){return typeof window<"u"?window.console:global.console}const zm=Hm();function jm(t){const r=Object.create(null);return function(o){return r[o]||(r[o]=t(o))}}const Um=/-(\w)/g,Wm=jm(t=>t.replace(Um,(r,a)=>a.toUpperCase())),Qu=["Start","Add","Remove","Update","End"],Xu=["Choose","Unchoose","Sort","Filter","Clone"],Ju=["Move"],Km=[Ju,Qu,Xu].flatMap(t=>t).map(t=>`on${t}`),Rl={manage:Ju,manageAndEmit:Qu,emit:Xu};function Gm(t){return Km.indexOf(t)!==-1}const Ym=["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 Qm(t){return Ym.includes(t)}function Xm(t){return["transition-group","TransitionGroup"].includes(t)}function Zu(t){return["id","class","role","style"].includes(t)||t.startsWith("data-")||t.startsWith("aria-")||t.startsWith("on")}function qu(t){return t.reduce((r,[a,o])=>(r[a]=o,r),{})}function Jm({$attrs:t,componentData:r={}}){return{...qu(Object.entries(t).filter(([o,n])=>Zu(o))),...r}}function Zm({$attrs:t,callBackBuilder:r}){const a=qu(ef(t));Object.entries(r).forEach(([n,s])=>{Rl[n].forEach(d=>{a[`on${d}`]=s(d)})});const o=`[data-draggable]${a.draggable||""}`;return{...a,draggable:o}}function ef(t){return Object.entries(t).filter(([r,a])=>!Zu(r)).map(([r,a])=>[Wm(r),a]).filter(([r,a])=>!Gm(r))}const tf=({el:t})=>t,qm=(t,r)=>t.__draggable_context=r,nf=t=>t.__draggable_context;class eg{constructor({nodes:{header:r,default:a,footer:o},root:n,realList:s}){this.defaultNodes=a,this.children=[...r,...a,...o],this.externalComponent=n.externalComponent,this.rootTransition=n.transition,this.tag=n.tag,this.realList=s}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(r,a){const{tag:o,children:n,_isRootComponent:s}=this;return r(o,a,s?{default:()=>n}:n)}updated(){const{defaultNodes:r,realList:a}=this;r.forEach((o,n)=>{qm(tf(o),{element:a[n],index:n})})}getUnderlyingVm(r){return nf(r)}getVmIndexFromDomIndex(r,a){const{defaultNodes:o}=this,{length:n}=o,s=a.children,d=s.item(r);if(d===null)return n;const c=nf(d);if(c)return c.index;if(n===0)return 0;const p=tf(o[0]),m=[...s].findIndex(v=>v===p);return r<m?0:n}}function tg(t,r){const a=t[r];return a?a():[]}function ng({$slots:t,realList:r,getKey:a}){const o=r||[],[n,s]=["header","footer"].map(p=>tg(t,p)),{item:d}=t;if(!d)throw new Error("draggable element must have an item slot");const c=o.flatMap((p,m)=>d({element:p,index:m}).map(v=>(v.key=a(p),v.props={...v.props||{},"data-draggable":!0},v)));if(c.length!==o.length)throw new Error("Item slot must have only one child");return{header:n,footer:s,default:c}}function ig(t){const r=Xm(t),a=!Qm(t)&&!r;return{transition:r,externalComponent:a,tag:a?l.resolveComponent(t):r?l.TransitionGroup:t}}function rg({$slots:t,tag:r,realList:a,getKey:o}){const n=ng({$slots:t,realList:a,getKey:o}),s=ig(r);return new eg({nodes:n,root:s,realList:a})}function rf(t,r){l.nextTick(()=>this.$emit(t.toLowerCase(),r))}function of(t){return(r,a)=>{if(this.realList!==null)return this[`onDrag${t}`](r,a)}}function og(t){const r=of.call(this,t);return(a,o)=>{r.call(this,a,o),rf.call(this,t,a)}}let Ol=null;const ag={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},lg=["update:modelValue","change",...[...Rl.manageAndEmit,...Rl.emit].map(t=>t.toLowerCase())],kl=l.defineComponent({name:"draggable",inheritAttrs:!1,props:ag,emits:lg,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:t,$attrs:r,tag:a,componentData:o,realList:n,getKey:s}=this,d=rg({$slots:t,tag:a,realList:n,getKey:s});this.componentStructure=d;const c=Jm({$attrs:r,componentData:o});return d.render(l.h,c)}catch(t){return this.error=!0,l.h("pre",{style:{color:"red"}},t.stack)}},created(){this.list!==null&&this.modelValue!==null&&zm.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:t,$el:r,componentStructure:a}=this;a.updated();const o=Zm({$attrs:t,callBackBuilder:{manageAndEmit:s=>og.call(this,s),emit:s=>rf.bind(this,s),manage:s=>of.call(this,s)}}),n=r.nodeType===1?r:r.parentElement;this._sortable=new Ve(n,o),this.targetDomElement=n,n.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:t}=this;return t||this.modelValue},getKey(){const{itemKey:t}=this;return typeof t=="function"?t:r=>r[t]}},watch:{$attrs:{handler(t){const{_sortable:r}=this;!r||ef(t).forEach(([a,o])=>{r.option(a,o)})},deep:!0}},methods:{getUnderlyingVm(t){return this.componentStructure.getUnderlyingVm(t)||null},getUnderlyingPotencialDraggableComponent(t){return t.__draggable_component__},emitChanges(t){l.nextTick(()=>this.$emit("change",t))},alterList(t){if(this.list){t(this.list);return}const r=[...this.modelValue];t(r),this.$emit("update:modelValue",r)},spliceList(){const t=r=>r.splice(...arguments);this.alterList(t)},updatePosition(t,r){const a=o=>o.splice(r,0,o.splice(t,1)[0]);this.alterList(a)},getRelatedContextFromMoveEvent({to:t,related:r}){const a=this.getUnderlyingPotencialDraggableComponent(t);if(!a)return{component:a};const o=a.realList,n={list:o,component:a};return t!==r&&o?{...a.getUnderlyingVm(r)||{},...n}:n},getVmIndexFromDomIndex(t){return this.componentStructure.getVmIndexFromDomIndex(t,this.targetDomElement)},onDragStart(t){this.context=this.getUnderlyingVm(t.item),t.item._underlying_vm_=this.clone(this.context.element),Ol=t.item},onDragAdd(t){const r=t.item._underlying_vm_;if(r===void 0)return;Dl(t.item);const a=this.getVmIndexFromDomIndex(t.newIndex);this.spliceList(a,0,r);const o={element:r,newIndex:a};this.emitChanges({added:o})},onDragRemove(t){if(Yu(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){Dl(t.clone);return}const{index:r,element:a}=this.context;this.spliceList(r,1);const o={element:a,oldIndex:r};this.emitChanges({removed:o})},onDragUpdate(t){Dl(t.item),Yu(t.from,t.item,t.oldIndex);const r=this.context.index,a=this.getVmIndexFromDomIndex(t.newIndex);this.updatePosition(r,a);const o={element:this.context.element,oldIndex:r,newIndex:a};this.emitChanges({moved:o})},computeFutureIndex(t,r){if(!t.element)return 0;const a=[...r.to.children].filter(d=>d.style.display!=="none"),o=a.indexOf(r.related),n=t.component.getVmIndexFromDomIndex(o);return a.indexOf(Ol)!==-1||!r.willInsertAfter?n:n+1},onDragMove(t,r){const{move:a,realList:o}=this;if(!a||!o)return!0;const n=this.getRelatedContextFromMoveEvent(t),s=this.computeFutureIndex(n,t),d={...this.context,futureIndex:s},c={...t,relatedContext:n,draggedContext:d};return a(c,r)},onDragEnd(){Ol=null}}});function sg(){return[{name:"main",title:"\u57FA\u7840\u7EC4\u4EF6",list:[]},{name:"subform",title:"\u5B50\u8868\u5355\u7EC4\u4EF6",list:[]},{name:"aide",title:"\u8F85\u52A9\u7EC4\u4EF6",list:[]},{name:"layout",title:"\u5E03\u5C40\u7EC4\u4EF6",list:[]}]}const kr=iu.default,He=iu.default.factory();let af=null,lf=l.ref(null);function Bl(...t){return af(...t)}const sf=t=>{lf.value=t||au;const r=ka(lf);return af=r.t,r};sf();const ew="",tw="";var ug=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Il={exports:{}},uf;function Io(){return uf||(uf=1,function(t,r){(function(a,o){t.exports=o()})(ug,function(){var a=navigator.userAgent,o=navigator.platform,n=/gecko\/\d/i.test(a),s=/MSIE \d/.test(a),d=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(a),c=/Edge\/(\d+)/.exec(a),p=s||d||c,m=p&&(s?document.documentMode||6:+(c||d)[1]),v=!c&&/WebKit\//.test(a),y=v&&/Qt\/\d+\.\d+/.test(a),E=!c&&/Chrome\/(\d+)/.exec(a),D=E&&+E[1],C=/Opera\//.test(a),x=/Apple Computer/.test(navigator.vendor),A=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(a),g=/PhantomJS/.test(a),b=x&&(/Mobile\/\w+/.test(a)||navigator.maxTouchPoints>2),N=/Android/.test(a),T=b||N||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(a),O=b||/Mac/.test(o),k=/\bCrOS\b/.test(a),M=/win/i.test(o),S=C&&a.match(/Version\/(\d*\.\d*)/);S&&(S=Number(S[1])),S&&S>=15&&(C=!1,v=!0);var F=O&&(y||C&&(S==null||S<12.11)),R=n||p&&m>=9;function w(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var L=function(e,i){var f=e.className,u=w(i).exec(f);if(u){var h=f.slice(u.index+u[0].length);e.className=f.slice(0,u.index)+(h?u[1]+h:"")}};function $(e){for(var i=e.childNodes.length;i>0;--i)e.removeChild(e.firstChild);return e}function W(e,i){return $(e).appendChild(i)}function P(e,i,f,u){var h=document.createElement(e);if(f&&(h.className=f),u&&(h.style.cssText=u),typeof i=="string")h.appendChild(document.createTextNode(i));else if(i)for(var _=0;_<i.length;++_)h.appendChild(i[_]);return h}function U(e,i,f,u){var h=P(e,i,f,u);return h.setAttribute("role","presentation"),h}var Q;document.createRange?Q=function(e,i,f,u){var h=document.createRange();return h.setEnd(u||e,f),h.setStart(e,i),h}:Q=function(e,i,f){var u=document.body.createTextRange();try{u.moveToElementText(e.parentNode)}catch{return u}return u.collapse(!0),u.moveEnd("character",f),u.moveStart("character",i),u};function J(e,i){if(i.nodeType==3&&(i=i.parentNode),e.contains)return e.contains(i);do if(i.nodeType==11&&(i=i.host),i==e)return!0;while(i=i.parentNode)}function ie(e){var i;try{i=e.activeElement}catch{i=e.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function B(e,i){var f=e.className;w(i).test(f)||(e.className+=(f?" ":"")+i)}function z(e,i){for(var f=e.split(" "),u=0;u<f.length;u++)f[u]&&!w(f[u]).test(i)&&(i+=" "+f[u]);return i}var G=function(e){e.select()};b?G=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:p&&(G=function(e){try{e.select()}catch{}});function Y(e){return e.display.wrapper.ownerDocument}function Z(e){return Y(e).defaultView}function ae(e){var i=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,i)}}function ue(e,i,f){i||(i={});for(var u in e)e.hasOwnProperty(u)&&(f!==!1||!i.hasOwnProperty(u))&&(i[u]=e[u]);return i}function se(e,i,f,u,h){i==null&&(i=e.search(/[^\s\u00a0]/),i==-1&&(i=e.length));for(var _=u||0,I=h||0;;){var V=e.indexOf(" ",_);if(V<0||V>=i)return I+(i-_);I+=V-_,I+=f-I%f,_=V+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=ae(this.onTimeout,this)};le.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},le.prototype.set=function(e,i){this.f=i;var f=+new Date+e;(!this.id||f<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=f)};function te(e,i){for(var f=0;f<e.length;++f)if(e[f]==i)return f;return-1}var pe=50,me={toString:function(){return"CodeMirror.Pass"}},Ae={scroll:!1},Fe={origin:"*mouse"},Qe={origin:"+move"};function Ge(e,i,f){for(var u=0,h=0;;){var _=e.indexOf(" ",u);_==-1&&(_=e.length);var I=_-u;if(_==e.length||h+I>=i)return u+Math.min(I,i-h);if(h+=_-u,h+=f-h%f,u=_+1,h>=i)return u}}var st=[""];function ut(e){for(;st.length<=e;)st.push(Re(st)+" ");return st[e]}function Re(e){return e[e.length-1]}function ot(e,i){for(var f=[],u=0;u<e.length;u++)f[u]=i(e[u],u);return f}function qt(e,i,f){for(var u=0,h=f(i);u<e.length&&f(e[u])<=h;)u++;e.splice(u,0,i)}function Ot(){}function ai(e,i){var f;return Object.create?f=Object.create(e):(Ot.prototype=e,f=new Ot),i&&ue(i,f),f}var On=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function sn(e){return/\w/.test(e)||e>"\x80"&&(e.toUpperCase()!=e.toLowerCase()||On.test(e))}function un(e,i){return i?i.source.indexOf("\\w")>-1&&sn(e)?!0:i.test(e):sn(e)}function kn(e){for(var i in e)if(e.hasOwnProperty(i)&&e[i])return!1;return!0}var fn=/[\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 hn(e){return e.charCodeAt(0)>=768&&fn.test(e)}function Tt(e,i,f){for(;(f<0?i>0:i<e.length)&&hn(e.charAt(i));)i+=f;return i}function qe(e,i,f){for(var u=i>f?-1:1;;){if(i==f)return i;var h=(i+f)/2,_=u<0?Math.ceil(h):Math.floor(h);if(_==i)return e(_)?i:f;e(_)?f=_:i=_+u}}function en(e,i,f,u){if(!e)return u(i,f,"ltr",0);for(var h=!1,_=0;_<e.length;++_){var I=e[_];(I.from<f&&I.to>i||i==f&&I.to==i)&&(u(Math.max(I.from,i),Math.min(I.to,f),I.level==1?"rtl":"ltr",_),h=!0)}h||u(i,f,"ltr")}var Ke=null;function Ee(e,i,f){var u;Ke=null;for(var h=0;h<e.length;++h){var _=e[h];if(_.from<i&&_.to>i)return h;_.to==i&&(_.from!=_.to&&f=="before"?u=h:Ke=h),_.from==i&&(_.from!=_.to&&f!="before"?u=h:Ke=h)}return u!=null?u:Ke}var Ce=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function f(j){return j<=247?e.charAt(j):1424<=j&&j<=1524?"R":1536<=j&&j<=1785?i.charAt(j-1536):1774<=j&&j<=2220?"r":8192<=j&&j<=8203?"w":j==8204?"b":"L"}var u=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,h=/[stwN]/,_=/[LRr]/,I=/[Lb1n]/,V=/[1n]/;function H(j,X,q){this.level=j,this.from=X,this.to=q}return function(j,X){var q=X=="ltr"?"L":"R";if(j.length==0||X=="ltr"&&!u.test(j))return!1;for(var oe=j.length,re=[],ce=0;ce<oe;++ce)re.push(f(j.charCodeAt(ce)));for(var he=0,ge=q;he<oe;++he){var ve=re[he];ve=="m"?re[he]=ge:ge=ve}for(var we=0,ye=q;we<oe;++we){var xe=re[we];xe=="1"&&ye=="r"?re[we]="n":_.test(xe)&&(ye=xe,xe=="r"&&(re[we]="R"))}for(var ke=1,Oe=re[0];ke<oe-1;++ke){var Ue=re[ke];Ue=="+"&&Oe=="1"&&re[ke+1]=="1"?re[ke]="1":Ue==","&&Oe==re[ke+1]&&(Oe=="1"||Oe=="n")&&(re[ke]=Oe),Oe=Ue}for(var at=0;at<oe;++at){var Mt=re[at];if(Mt==",")re[at]="N";else if(Mt=="%"){var pt=void 0;for(pt=at+1;pt<oe&&re[pt]=="%";++pt);for(var rn=at&&re[at-1]=="!"||pt<oe&&re[pt]=="1"?"1":"N",Qt=at;Qt<pt;++Qt)re[Qt]=rn;at=pt-1}}for(var wt=0,Xt=q;wt<oe;++wt){var Lt=re[wt];Xt=="L"&&Lt=="1"?re[wt]="L":_.test(Lt)&&(Xt=Lt)}for(var _t=0;_t<oe;++_t)if(h.test(re[_t])){var Et=void 0;for(Et=_t+1;Et<oe&&h.test(re[Et]);++Et);for(var gt=(_t?re[_t-1]:q)=="L",Jt=(Et<oe?re[Et]:q)=="L",yr=gt==Jt?gt?"L":"R":q,Ai=_t;Ai<Et;++Ai)re[Ai]=yr;_t=Et-1}for(var $t=[],Fn,Pt=0;Pt<oe;)if(I.test(re[Pt])){var tu=Pt;for(++Pt;Pt<oe&&I.test(re[Pt]);++Pt);$t.push(new H(0,tu,Pt))}else{var Zn=Pt,Mi=$t.length,Pi=X=="rtl"?1:0;for(++Pt;Pt<oe&&re[Pt]!="L";++Pt);for(var jt=Zn;jt<Pt;)if(V.test(re[jt])){Zn<jt&&($t.splice(Mi,0,new H(1,Zn,jt)),Mi+=Pi);var br=jt;for(++jt;jt<Pt&&V.test(re[jt]);++jt);$t.splice(Mi,0,new H(2,br,jt)),Mi+=Pi,Zn=jt}else++jt;Zn<Pt&&$t.splice(Mi,0,new H(1,Zn,Pt))}return X=="ltr"&&($t[0].level==1&&(Fn=j.match(/^\s+/))&&($t[0].from=Fn[0].length,$t.unshift(new H(0,0,Fn[0].length))),Re($t).level==1&&(Fn=j.match(/\s+$/))&&(Re($t).to-=Fn[0].length,$t.push(new H(0,oe-Fn[0].length,oe)))),X=="rtl"?$t.reverse():$t}}();function Be(e,i){var f=e.order;return f==null&&(f=e.order=Ce(e.text,i)),f}var Se=[],fe=function(e,i,f){if(e.addEventListener)e.addEventListener(i,f,!1);else if(e.attachEvent)e.attachEvent("on"+i,f);else{var u=e._handlers||(e._handlers={});u[i]=(u[i]||Se).concat(f)}};function De(e,i){return e._handlers&&e._handlers[i]||Se}function Te(e,i,f){if(e.removeEventListener)e.removeEventListener(i,f,!1);else if(e.detachEvent)e.detachEvent("on"+i,f);else{var u=e._handlers,h=u&&u[i];if(h){var _=te(h,f);_>-1&&(u[i]=h.slice(0,_).concat(h.slice(_+1)))}}}function Ne(e,i){var f=De(e,i);if(!!f.length)for(var u=Array.prototype.slice.call(arguments,2),h=0;h<f.length;++h)f[h].apply(null,u)}function $e(e,i,f){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ne(e,f||i.type,e,i),li(i)||i.codemirrorIgnore}function Wt(e){var i=e._handlers&&e._handlers.cursorActivity;if(!!i)for(var f=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),u=0;u<i.length;++u)te(f,i[u])==-1&&f.push(i[u])}function ct(e,i){return De(e,i).length>0}function lt(e){e.prototype.on=function(i,f){fe(this,i,f)},e.prototype.off=function(i,f){Te(this,i,f)}}function et(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function mn(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function li(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Cn(e){et(e),mn(e)}function Kt(e){return e.target||e.srcElement}function $r(e){var i=e.which;return i==null&&(e.button&1?i=1:e.button&2?i=3:e.button&4&&(i=2)),O&&e.ctrlKey&&i==1&&(i=3),i}var us=function(){if(p&&m<9)return!1;var e=P("div");return"draggable"in e||"dragDrop"in e}(),gn;function fs(e){if(gn==null){var i=P("span","\u200B");W(e,P("span",[i,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(gn=i.offsetWidth<=1&&i.offsetHeight>2&&!(p&&m<8))}var f=gn?P("span","\u200B"):P("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return f.setAttribute("cm-text",""),f}var Zi;function Qo(e){if(Zi!=null)return Zi;var i=W(e,document.createTextNode("A\u062EA")),f=Q(i,0,1).getBoundingClientRect(),u=Q(i,1,2).getBoundingClientRect();return $(e),!f||f.left==f.right?!1:Zi=u.right-f.right<3}var Hr=`
b`.split(/\n/).length!=3?function(e){for(var i=0,f=[],u=e.length;i<=u;){var h=e.indexOf(`
`,i);h==-1&&(h=e.length);var _=e.slice(i,e.charAt(h-1)=="\r"?h-1:h),I=_.indexOf("\r");I!=-1?(f.push(_.slice(0,I)),i+=I+1):(f.push(_),i=h+1)}return f}:function(e){return e.split(/\r\n?|\n/)},si=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var i;try{i=e.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=e?!1:i.compareEndPoints("StartToEnd",i)!=0},Bn=function(){var e=P("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),In=null;function Xo(e){if(In!=null)return In;var i=W(e,P("span","x")),f=i.getBoundingClientRect(),u=Q(i,0,1).getBoundingClientRect();return In=Math.abs(f.left-u.left)>1}var wn={},ui={};function Jo(e,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),wn[e]=i}function qi(e,i){ui[e]=i}function tn(e){if(typeof e=="string"&&ui.hasOwnProperty(e))e=ui[e];else if(e&&typeof e.name=="string"&&ui.hasOwnProperty(e.name)){var i=ui[e.name];typeof i=="string"&&(i={name:i}),e=ai(i,e),e.name=i.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return tn("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return tn("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Un(e,i){i=tn(i);var f=wn[i.name];if(!f)return Un(e,"text/plain");var u=f(e,i);if(fi.hasOwnProperty(i.name)){var h=fi[i.name];for(var _ in h)!h.hasOwnProperty(_)||(u.hasOwnProperty(_)&&(u["_"+_]=u[_]),u[_]=h[_])}if(u.name=i.name,i.helperType&&(u.helperType=i.helperType),i.modeProps)for(var I in i.modeProps)u[I]=i.modeProps[I];return u}var fi={};function Zo(e,i){var f=fi.hasOwnProperty(e)?fi[e]:fi[e]={};ue(i,f)}function Wn(e,i){if(i===!0)return i;if(e.copyState)return e.copyState(i);var f={};for(var u in i){var h=i[u];h instanceof Array&&(h=h.concat([])),f[u]=h}return f}function di(e,i){for(var f;e.innerMode&&(f=e.innerMode(i),!(!f||f.mode==e));)i=f.state,e=f.mode;return f||{mode:e,state:i}}function zr(e,i,f){return e.startState?e.startState(i,f):!0}var mt=function(e,i,f){this.pos=this.start=0,this.string=e,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=f};mt.prototype.eol=function(){return this.pos>=this.string.length},mt.prototype.sol=function(){return this.pos==this.lineStart},mt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},mt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},mt.prototype.eat=function(e){var i=this.string.charAt(this.pos),f;if(typeof e=="string"?f=i==e:f=i&&(e.test?e.test(i):e(i)),f)return++this.pos,i},mt.prototype.eatWhile=function(e){for(var i=this.pos;this.eat(e););return this.pos>i},mt.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},mt.prototype.skipToEnd=function(){this.pos=this.string.length},mt.prototype.skipTo=function(e){var i=this.string.indexOf(e,this.pos);if(i>-1)return this.pos=i,!0},mt.prototype.backUp=function(e){this.pos-=e},mt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=se(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?se(this.string,this.lineStart,this.tabSize):0)},mt.prototype.indentation=function(){return se(this.string,null,this.tabSize)-(this.lineStart?se(this.string,this.lineStart,this.tabSize):0)},mt.prototype.match=function(e,i,f){if(typeof e=="string"){var u=function(I){return f?I.toLowerCase():I},h=this.string.substr(this.pos,e.length);if(u(h)==u(e))return i!==!1&&(this.pos+=e.length),!0}else{var _=this.string.slice(this.pos).match(e);return _&&_.index>0?null:(_&&i!==!1&&(this.pos+=_[0].length),_)}},mt.prototype.current=function(){return this.string.slice(this.start,this.pos)},mt.prototype.hideFirstChars=function(e,i){this.lineStart+=e;try{return i()}finally{this.lineStart-=e}},mt.prototype.lookAhead=function(e){var i=this.lineOracle;return i&&i.lookAhead(e)},mt.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function _e(e,i){if(i-=e.first,i<0||i>=e.size)throw new Error("There is no line "+(i+e.first)+" in the document.");for(var f=e;!f.lines;)for(var u=0;;++u){var h=f.children[u],_=h.chunkSize();if(i<_){f=h;break}i-=_}return f.lines[i]}function Kn(e,i,f){var u=[],h=i.line;return e.iter(i.line,f.line+1,function(_){var I=_.text;h==f.line&&(I=I.slice(0,f.ch)),h==i.line&&(I=I.slice(i.ch)),u.push(I),++h}),u}function er(e,i,f){var u=[];return e.iter(i,f,function(h){u.push(h.text)}),u}function vn(e,i){var f=i-e.height;if(f)for(var u=e;u;u=u.parent)u.height+=f}function tt(e){if(e.parent==null)return null;for(var i=e.parent,f=te(i.lines,e),u=i.parent;u;i=u,u=u.parent)for(var h=0;u.children[h]!=i;++h)f+=u.children[h].chunkSize();return f+i.first}function Mn(e,i){var f=e.first;e:do{for(var u=0;u<e.children.length;++u){var h=e.children[u],_=h.height;if(i<_){e=h;continue e}i-=_,f+=h.chunkSize()}return f}while(!e.lines);for(var I=0;I<e.lines.length;++I){var V=e.lines[I],H=V.height;if(i<H)break;i-=H}return f+I}function K(e,i){return i>=e.first&&i<e.first+e.size}function ee(e,i){return String(e.lineNumberFormatter(i+e.firstLineNumber))}function ne(e,i,f){if(f===void 0&&(f=null),!(this instanceof ne))return new ne(e,i,f);this.line=e,this.ch=i,this.sticky=f}function de(e,i){return e.line-i.line||e.ch-i.ch}function Ie(e,i){return e.sticky==i.sticky&&de(e,i)==0}function Ye(e){return ne(e.line,e.ch)}function Ze(e,i){return de(e,i)<0?i:e}function Nt(e,i){return de(e,i)<0?e:i}function dn(e,i){return Math.max(e.first,Math.min(i,e.first+e.size-1))}function Me(e,i){if(i.line<e.first)return ne(e.first,0);var f=e.first+e.size-1;return i.line>f?ne(f,_e(e,f).text.length):Y1(i,_e(e,i.line).text.length)}function Y1(e,i){var f=e.ch;return f==null||f>i?ne(e.line,i):f<0?ne(e.line,0):e}function Ed(e,i){for(var f=[],u=0;u<i.length;u++)f[u]=Me(e,i[u]);return f}var qo=function(e,i){this.state=e,this.lookAhead=i},Pn=function(e,i,f,u){this.state=i,this.doc=e,this.line=f,this.maxLookAhead=u||0,this.baseTokens=null,this.baseTokenPos=1};Pn.prototype.lookAhead=function(e){var i=this.doc.getLine(this.line+e);return i!=null&&e>this.maxLookAhead&&(this.maxLookAhead=e),i},Pn.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},Pn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pn.fromSaved=function(e,i,f){return i instanceof qo?new Pn(e,Wn(e.mode,i.state),f,i.lookAhead):new Pn(e,Wn(e.mode,i),f)},Pn.prototype.save=function(e){var i=e!==!1?Wn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new qo(i,this.maxLookAhead):i};function Sd(e,i,f,u){var h=[e.state.modeGen],_={};Rd(e,i.text,e.doc.mode,f,function(j,X){return h.push(j,X)},_,u);for(var I=f.state,V=function(j){f.baseTokens=h;var X=e.state.overlays[j],q=1,oe=0;f.state=!0,Rd(e,i.text,X.mode,f,function(re,ce){for(var he=q;oe<re;){var ge=h[q];ge>re&&h.splice(q,1,re,h[q+1],ge),q+=2,oe=Math.min(re,ge)}if(!!ce)if(X.opaque)h.splice(he,q-he,re,"overlay "+ce),q=he+2;else for(;he<q;he+=2){var ve=h[he+1];h[he+1]=(ve?ve+" ":"")+"overlay "+ce}},_),f.state=I,f.baseTokens=null,f.baseTokenPos=1},H=0;H<e.state.overlays.length;++H)V(H);return{styles:h,classes:_.bgClass||_.textClass?_:null}}function xd(e,i,f){if(!i.styles||i.styles[0]!=e.state.modeGen){var u=jr(e,tt(i)),h=i.text.length>e.options.maxHighlightLength&&Wn(e.doc.mode,u.state),_=Sd(e,i,u);h&&(u.state=h),i.stateAfter=u.save(!h),i.styles=_.styles,_.classes?i.styleClasses=_.classes:i.styleClasses&&(i.styleClasses=null),f===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return i.styles}function jr(e,i,f){var u=e.doc,h=e.display;if(!u.mode.startState)return new Pn(u,!0,i);var _=Q1(e,i,f),I=_>u.first&&_e(u,_-1).stateAfter,V=I?Pn.fromSaved(u,I,_):new Pn(u,zr(u.mode),_);return u.iter(_,i,function(H){ds(e,H.text,V);var j=V.line;H.stateAfter=j==i-1||j%5==0||j>=h.viewFrom&&j<h.viewTo?V.save():null,V.nextLine()}),f&&(u.modeFrontier=V.line),V}function ds(e,i,f,u){var h=e.doc.mode,_=new mt(i,e.options.tabSize,f);for(_.start=_.pos=u||0,i==""&&Td(h,f.state);!_.eol();)cs(h,_,f.state),_.start=_.pos}function Td(e,i){if(e.blankLine)return e.blankLine(i);if(!!e.innerMode){var f=di(e,i);if(f.mode.blankLine)return f.mode.blankLine(f.state)}}function cs(e,i,f,u){for(var h=0;h<10;h++){u&&(u[0]=di(e,f).mode);var _=e.token(i,f);if(i.pos>i.start)return _}throw new Error("Mode "+e.name+" failed to advance stream.")}var Nd=function(e,i,f){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=i||null,this.state=f};function _d(e,i,f,u){var h=e.doc,_=h.mode,I;i=Me(h,i);var V=_e(h,i.line),H=jr(e,i.line,f),j=new mt(V.text,e.options.tabSize,H),X;for(u&&(X=[]);(u||j.pos<i.ch)&&!j.eol();)j.start=j.pos,I=cs(_,j,H.state),u&&X.push(new Nd(j,I,Wn(h.mode,H.state)));return u?X:new Nd(j,I,H.state)}function Dd(e,i){if(e)for(;;){var f=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!f)break;e=e.slice(0,f.index)+e.slice(f.index+f[0].length);var u=f[1]?"bgClass":"textClass";i[u]==null?i[u]=f[2]:new RegExp("(?:^|\\s)"+f[2]+"(?:$|\\s)").test(i[u])||(i[u]+=" "+f[2])}return e}function Rd(e,i,f,u,h,_,I){var V=f.flattenSpans;V==null&&(V=e.options.flattenSpans);var H=0,j=null,X=new mt(i,e.options.tabSize,u),q,oe=e.options.addModeClass&&[null];for(i==""&&Dd(Td(f,u.state),_);!X.eol();){if(X.pos>e.options.maxHighlightLength?(V=!1,I&&ds(e,i,u,X.pos),X.pos=i.length,q=null):q=Dd(cs(f,X,u.state,oe),_),oe){var re=oe[0].name;re&&(q="m-"+(q?re+" "+q:re))}if(!V||j!=q){for(;H<X.start;)H=Math.min(X.start,H+5e3),h(H,j);j=q}X.start=X.pos}for(;H<X.pos;){var ce=Math.min(X.pos,H+5e3);h(ce,j),H=ce}}function Q1(e,i,f){for(var u,h,_=e.doc,I=f?-1:i-(e.doc.mode.innerMode?1e3:100),V=i;V>I;--V){if(V<=_.first)return _.first;var H=_e(_,V-1),j=H.stateAfter;if(j&&(!f||V+(j instanceof qo?j.lookAhead:0)<=_.modeFrontier))return V;var X=se(H.text,null,e.options.tabSize);(h==null||u>X)&&(h=V-1,u=X)}return h}function X1(e,i){if(e.modeFrontier=Math.min(e.modeFrontier,i),!(e.highlightFrontier<i-10)){for(var f=e.first,u=i-1;u>f;u--){var h=_e(e,u).stateAfter;if(h&&(!(h instanceof qo)||u+h.lookAhead<i)){f=u+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,f)}}var Od=!1,Gn=!1;function J1(){Od=!0}function Z1(){Gn=!0}function ea(e,i,f){this.marker=e,this.from=i,this.to=f}function Ur(e,i){if(e)for(var f=0;f<e.length;++f){var u=e[f];if(u.marker==i)return u}}function q1(e,i){for(var f,u=0;u<e.length;++u)e[u]!=i&&(f||(f=[])).push(e[u]);return f}function eA(e,i,f){var u=f&&window.WeakSet&&(f.markedSpans||(f.markedSpans=new WeakSet));u&&e.markedSpans&&u.has(e.markedSpans)?e.markedSpans.push(i):(e.markedSpans=e.markedSpans?e.markedSpans.concat([i]):[i],u&&u.add(e.markedSpans)),i.marker.attachLine(e)}function tA(e,i,f){var u;if(e)for(var h=0;h<e.length;++h){var _=e[h],I=_.marker,V=_.from==null||(I.inclusiveLeft?_.from<=i:_.from<i);if(V||_.from==i&&I.type=="bookmark"&&(!f||!_.marker.insertLeft)){var H=_.to==null||(I.inclusiveRight?_.to>=i:_.to>i);(u||(u=[])).push(new ea(I,_.from,H?null:_.to))}}return u}function nA(e,i,f){var u;if(e)for(var h=0;h<e.length;++h){var _=e[h],I=_.marker,V=_.to==null||(I.inclusiveRight?_.to>=i:_.to>i);if(V||_.from==i&&I.type=="bookmark"&&(!f||_.marker.insertLeft)){var H=_.from==null||(I.inclusiveLeft?_.from<=i:_.from<i);(u||(u=[])).push(new ea(I,H?null:_.from-i,_.to==null?null:_.to-i))}}return u}function ps(e,i){if(i.full)return null;var f=K(e,i.from.line)&&_e(e,i.from.line).markedSpans,u=K(e,i.to.line)&&_e(e,i.to.line).markedSpans;if(!f&&!u)return null;var h=i.from.ch,_=i.to.ch,I=de(i.from,i.to)==0,V=tA(f,h,I),H=nA(u,_,I),j=i.text.length==1,X=Re(i.text).length+(j?h:0);if(V)for(var q=0;q<V.length;++q){var oe=V[q];if(oe.to==null){var re=Ur(H,oe.marker);re?j&&(oe.to=re.to==null?null:re.to+X):oe.to=h}}if(H)for(var ce=0;ce<H.length;++ce){var he=H[ce];if(he.to!=null&&(he.to+=X),he.from==null){var ge=Ur(V,he.marker);ge||(he.from=X,j&&(V||(V=[])).push(he))}else he.from+=X,j&&(V||(V=[])).push(he)}V&&(V=kd(V)),H&&H!=V&&(H=kd(H));var ve=[V];if(!j){var we=i.text.length-2,ye;if(we>0&&V)for(var xe=0;xe<V.length;++xe)V[xe].to==null&&(ye||(ye=[])).push(new ea(V[xe].marker,null,null));for(var ke=0;ke<we;++ke)ve.push(ye);ve.push(H)}return ve}function kd(e){for(var i=0;i<e.length;++i){var f=e[i];f.from!=null&&f.from==f.to&&f.marker.clearWhenEmpty!==!1&&e.splice(i--,1)}return e.length?e:null}function iA(e,i,f){var u=null;if(e.iter(i.line,f.line+1,function(re){if(re.markedSpans)for(var ce=0;ce<re.markedSpans.length;++ce){var he=re.markedSpans[ce].marker;he.readOnly&&(!u||te(u,he)==-1)&&(u||(u=[])).push(he)}}),!u)return null;for(var h=[{from:i,to:f}],_=0;_<u.length;++_)for(var I=u[_],V=I.find(0),H=0;H<h.length;++H){var j=h[H];if(!(de(j.to,V.from)<0||de(j.from,V.to)>0)){var X=[H,1],q=de(j.from,V.from),oe=de(j.to,V.to);(q<0||!I.inclusiveLeft&&!q)&&X.push({from:j.from,to:V.from}),(oe>0||!I.inclusiveRight&&!oe)&&X.push({from:V.to,to:j.to}),h.splice.apply(h,X),H+=X.length-3}}return h}function Bd(e){var i=e.markedSpans;if(!!i){for(var f=0;f<i.length;++f)i[f].marker.detachLine(e);e.markedSpans=null}}function Id(e,i){if(!!i){for(var f=0;f<i.length;++f)i[f].marker.attachLine(e);e.markedSpans=i}}function ta(e){return e.inclusiveLeft?-1:0}function na(e){return e.inclusiveRight?1:0}function hs(e,i){var f=e.lines.length-i.lines.length;if(f!=0)return f;var u=e.find(),h=i.find(),_=de(u.from,h.from)||ta(e)-ta(i);if(_)return-_;var I=de(u.to,h.to)||na(e)-na(i);return I||i.id-e.id}function Md(e,i){var f=Gn&&e.markedSpans,u;if(f)for(var h=void 0,_=0;_<f.length;++_)h=f[_],h.marker.collapsed&&(i?h.from:h.to)==null&&(!u||hs(u,h.marker)<0)&&(u=h.marker);return u}function Pd(e){return Md(e,!0)}function ia(e){return Md(e,!1)}function rA(e,i){var f=Gn&&e.markedSpans,u;if(f)for(var h=0;h<f.length;++h){var _=f[h];_.marker.collapsed&&(_.from==null||_.from<i)&&(_.to==null||_.to>i)&&(!u||hs(u,_.marker)<0)&&(u=_.marker)}return u}function Ld(e,i,f,u,h){var _=_e(e,i),I=Gn&&_.markedSpans;if(I)for(var V=0;V<I.length;++V){var H=I[V];if(!!H.marker.collapsed){var j=H.marker.find(0),X=de(j.from,f)||ta(H.marker)-ta(h),q=de(j.to,u)||na(H.marker)-na(h);if(!(X>=0&&q<=0||X<=0&&q>=0)&&(X<=0&&(H.marker.inclusiveRight&&h.inclusiveLeft?de(j.to,f)>=0:de(j.to,f)>0)||X>=0&&(H.marker.inclusiveRight&&h.inclusiveLeft?de(j.from,u)<=0:de(j.from,u)<0)))return!0}}}function En(e){for(var i;i=Pd(e);)e=i.find(-1,!0).line;return e}function oA(e){for(var i;i=ia(e);)e=i.find(1,!0).line;return e}function aA(e){for(var i,f;i=ia(e);)e=i.find(1,!0).line,(f||(f=[])).push(e);return f}function ms(e,i){var f=_e(e,i),u=En(f);return f==u?i:tt(u)}function Vd(e,i){if(i>e.lastLine())return i;var f=_e(e,i),u;if(!ci(e,f))return i;for(;u=ia(f);)f=u.find(1,!0).line;return tt(f)+1}function ci(e,i){var f=Gn&&i.markedSpans;if(f){for(var u=void 0,h=0;h<f.length;++h)if(u=f[h],!!u.marker.collapsed){if(u.from==null)return!0;if(!u.marker.widgetNode&&u.from==0&&u.marker.inclusiveLeft&&gs(e,i,u))return!0}}}function gs(e,i,f){if(f.to==null){var u=f.marker.find(1,!0);return gs(e,u.line,Ur(u.line.markedSpans,f.marker))}if(f.marker.inclusiveRight&&f.to==i.text.length)return!0;for(var h=void 0,_=0;_<i.markedSpans.length;++_)if(h=i.markedSpans[_],h.marker.collapsed&&!h.marker.widgetNode&&h.from==f.to&&(h.to==null||h.to!=f.from)&&(h.marker.inclusiveLeft||f.marker.inclusiveRight)&&gs(e,i,h))return!0}function Yn(e){e=En(e);for(var i=0,f=e.parent,u=0;u<f.lines.length;++u){var h=f.lines[u];if(h==e)break;i+=h.height}for(var _=f.parent;_;f=_,_=f.parent)for(var I=0;I<_.children.length;++I){var V=_.children[I];if(V==f)break;i+=V.height}return i}function ra(e){if(e.height==0)return 0;for(var i=e.text.length,f,u=e;f=Pd(u);){var h=f.find(0,!0);u=h.from.line,i+=h.from.ch-h.to.ch}for(u=e;f=ia(u);){var _=f.find(0,!0);i-=u.text.length-_.from.ch,u=_.to.line,i+=u.text.length-_.to.ch}return i}function vs(e){var i=e.display,f=e.doc;i.maxLine=_e(f,f.first),i.maxLineLength=ra(i.maxLine),i.maxLineChanged=!0,f.iter(function(u){var h=ra(u);h>i.maxLineLength&&(i.maxLineLength=h,i.maxLine=u)})}var tr=function(e,i,f){this.text=e,Id(this,i),this.height=f?f(this):1};tr.prototype.lineNo=function(){return tt(this)},lt(tr);function lA(e,i,f,u){e.text=i,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),Bd(e),Id(e,f);var h=u?u(e):1;h!=e.height&&vn(e,h)}function sA(e){e.parent=null,Bd(e)}var uA={},fA={};function Fd(e,i){if(!e||/^\s*$/.test(e))return null;var f=i.addModeClass?fA:uA;return f[e]||(f[e]=e.replace(/\S+/g,"cm-$&"))}function $d(e,i){var f=U("span",null,null,v?"padding-right: .1px":null),u={pre:U("pre",[f],"CodeMirror-line"),content:f,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};i.measure={};for(var h=0;h<=(i.rest?i.rest.length:0);h++){var _=h?i.rest[h-1]:i.line,I=void 0;u.pos=0,u.addToken=cA,Qo(e.display.measure)&&(I=Be(_,e.doc.direction))&&(u.addToken=hA(u.addToken,I)),u.map=[];var V=i!=e.display.externalMeasured&&tt(_);mA(_,u,xd(e,_,V)),_.styleClasses&&(_.styleClasses.bgClass&&(u.bgClass=z(_.styleClasses.bgClass,u.bgClass||"")),_.styleClasses.textClass&&(u.textClass=z(_.styleClasses.textClass,u.textClass||""))),u.map.length==0&&u.map.push(0,0,u.content.appendChild(fs(e.display.measure))),h==0?(i.measure.map=u.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(u.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var H=u.content.lastChild;(/\bcm-tab\b/.test(H.className)||H.querySelector&&H.querySelector(".cm-tab"))&&(u.content.className="cm-tab-wrap-hack")}return Ne(e,"renderLine",e,i.line,u.pre),u.pre.className&&(u.textClass=z(u.pre.className,u.textClass||"")),u}function dA(e){var i=P("span","\u2022","cm-invalidchar");return i.title="\\u"+e.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function cA(e,i,f,u,h,_,I){if(!!i){var V=e.splitSpaces?pA(i,e.trailingSpace):i,H=e.cm.state.specialChars,j=!1,X;if(!H.test(i))e.col+=i.length,X=document.createTextNode(V),e.map.push(e.pos,e.pos+i.length,X),p&&m<9&&(j=!0),e.pos+=i.length;else{X=document.createDocumentFragment();for(var q=0;;){H.lastIndex=q;var oe=H.exec(i),re=oe?oe.index-q:i.length-q;if(re){var ce=document.createTextNode(V.slice(q,q+re));p&&m<9?X.appendChild(P("span",[ce])):X.appendChild(ce),e.map.push(e.pos,e.pos+re,ce),e.col+=re,e.pos+=re}if(!oe)break;q+=re+1;var he=void 0;if(oe[0]==" "){var ge=e.cm.options.tabSize,ve=ge-e.col%ge;he=X.appendChild(P("span",ut(ve),"cm-tab")),he.setAttribute("role","presentation"),he.setAttribute("cm-text"," "),e.col+=ve}else oe[0]=="\r"||oe[0]==`
`?(he=X.appendChild(P("span",oe[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),he.setAttribute("cm-text",oe[0]),e.col+=1):(he=e.cm.options.specialCharPlaceholder(oe[0]),he.setAttribute("cm-text",oe[0]),p&&m<9?X.appendChild(P("span",[he])):X.appendChild(he),e.col+=1);e.map.push(e.pos,e.pos+1,he),e.pos++}}if(e.trailingSpace=V.charCodeAt(i.length-1)==32,f||u||h||j||_||I){var we=f||"";u&&(we+=u),h&&(we+=h);var ye=P("span",[X],we,_);if(I)for(var xe in I)I.hasOwnProperty(xe)&&xe!="style"&&xe!="class"&&ye.setAttribute(xe,I[xe]);return e.content.appendChild(ye)}e.content.appendChild(X)}}function pA(e,i){if(e.length>1&&!/ /.test(e))return e;for(var f=i,u="",h=0;h<e.length;h++){var _=e.charAt(h);_==" "&&f&&(h==e.length-1||e.charCodeAt(h+1)==32)&&(_="\xA0"),u+=_,f=_==" "}return u}function hA(e,i){return function(f,u,h,_,I,V,H){h=h?h+" cm-force-border":"cm-force-border";for(var j=f.pos,X=j+u.length;;){for(var q=void 0,oe=0;oe<i.length&&(q=i[oe],!(q.to>j&&q.from<=j));oe++);if(q.to>=X)return e(f,u,h,_,I,V,H);e(f,u.slice(0,q.to-j),h,_,null,V,H),_=null,u=u.slice(q.to-j),j=q.to}}}function Hd(e,i,f,u){var h=!u&&f.widgetNode;h&&e.map.push(e.pos,e.pos+i,h),!u&&e.cm.display.input.needsContentAttribute&&(h||(h=e.content.appendChild(document.createElement("span"))),h.setAttribute("cm-marker",f.id)),h&&(e.cm.display.input.setUneditable(h),e.content.appendChild(h)),e.pos+=i,e.trailingSpace=!1}function mA(e,i,f){var u=e.markedSpans,h=e.text,_=0;if(!u){for(var I=1;I<f.length;I+=2)i.addToken(i,h.slice(_,_=f[I]),Fd(f[I+1],i.cm.options));return}for(var V=h.length,H=0,j=1,X="",q,oe,re=0,ce,he,ge,ve,we;;){if(re==H){ce=he=ge=oe="",we=null,ve=null,re=1/0;for(var ye=[],xe=void 0,ke=0;ke<u.length;++ke){var Oe=u[ke],Ue=Oe.marker;if(Ue.type=="bookmark"&&Oe.from==H&&Ue.widgetNode)ye.push(Ue);else if(Oe.from<=H&&(Oe.to==null||Oe.to>H||Ue.collapsed&&Oe.to==H&&Oe.from==H)){if(Oe.to!=null&&Oe.to!=H&&re>Oe.to&&(re=Oe.to,he=""),Ue.className&&(ce+=" "+Ue.className),Ue.css&&(oe=(oe?oe+";":"")+Ue.css),Ue.startStyle&&Oe.from==H&&(ge+=" "+Ue.startStyle),Ue.endStyle&&Oe.to==re&&(xe||(xe=[])).push(Ue.endStyle,Oe.to),Ue.title&&((we||(we={})).title=Ue.title),Ue.attributes)for(var at in Ue.attributes)(we||(we={}))[at]=Ue.attributes[at];Ue.collapsed&&(!ve||hs(ve.marker,Ue)<0)&&(ve=Oe)}else Oe.from>H&&re>Oe.from&&(re=Oe.from)}if(xe)for(var Mt=0;Mt<xe.length;Mt+=2)xe[Mt+1]==re&&(he+=" "+xe[Mt]);if(!ve||ve.from==H)for(var pt=0;pt<ye.length;++pt)Hd(i,0,ye[pt]);if(ve&&(ve.from||0)==H){if(Hd(i,(ve.to==null?V+1:ve.to)-H,ve.marker,ve.from==null),ve.to==null)return;ve.to==H&&(ve=!1)}}if(H>=V)break;for(var rn=Math.min(V,re);;){if(X){var Qt=H+X.length;if(!ve){var wt=Qt>rn?X.slice(0,rn-H):X;i.addToken(i,wt,q?q+ce:ce,ge,H+wt.length==re?he:"",oe,we)}if(Qt>=rn){X=X.slice(rn-H),H=rn;break}H=Qt,ge=""}X=h.slice(_,_=f[j++]),q=Fd(f[j++],i.cm.options)}}}function zd(e,i,f){this.line=i,this.rest=aA(i),this.size=this.rest?tt(Re(this.rest))-f+1:1,this.node=this.text=null,this.hidden=ci(e,i)}function oa(e,i,f){for(var u=[],h,_=i;_<f;_=h){var I=new zd(e.doc,_e(e.doc,_),_);h=_+I.size,u.push(I)}return u}var nr=null;function gA(e){nr?nr.ops.push(e):e.ownsGroup=nr={ops:[e],delayedCallbacks:[]}}function vA(e){var i=e.delayedCallbacks,f=0;do{for(;f<i.length;f++)i[f].call(null);for(var u=0;u<e.ops.length;u++){var h=e.ops[u];if(h.cursorActivityHandlers)for(;h.cursorActivityCalled<h.cursorActivityHandlers.length;)h.cursorActivityHandlers[h.cursorActivityCalled++].call(null,h.cm)}}while(f<i.length)}function yA(e,i){var f=e.ownsGroup;if(!!f)try{vA(f)}finally{nr=null,i(f)}}var Wr=null;function kt(e,i){var f=De(e,i);if(!!f.length){var u=Array.prototype.slice.call(arguments,2),h;nr?h=nr.delayedCallbacks:Wr?h=Wr:(h=Wr=[],setTimeout(bA,0));for(var _=function(V){h.push(function(){return f[V].apply(null,u)})},I=0;I<f.length;++I)_(I)}}function bA(){var e=Wr;Wr=null;for(var i=0;i<e.length;++i)e[i]()}function jd(e,i,f,u){for(var h=0;h<i.changes.length;h++){var _=i.changes[h];_=="text"?CA(e,i):_=="gutter"?Wd(e,i,f,u):_=="class"?ys(e,i):_=="widget"&&wA(e,i,u)}i.changes=null}function Kr(e){return e.node==e.text&&(e.node=P("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),p&&m<8&&(e.node.style.zIndex=2)),e.node}function AA(e,i){var f=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(f&&(f+=" CodeMirror-linebackground"),i.background)f?i.background.className=f:(i.background.parentNode.removeChild(i.background),i.background=null);else if(f){var u=Kr(i);i.background=u.insertBefore(P("div",null,f),u.firstChild),e.display.input.setUneditable(i.background)}}function Ud(e,i){var f=e.display.externalMeasured;return f&&f.line==i.line?(e.display.externalMeasured=null,i.measure=f.measure,f.built):$d(e,i)}function CA(e,i){var f=i.text.className,u=Ud(e,i);i.text==i.node&&(i.node=u.pre),i.text.parentNode.replaceChild(u.pre,i.text),i.text=u.pre,u.bgClass!=i.bgClass||u.textClass!=i.textClass?(i.bgClass=u.bgClass,i.textClass=u.textClass,ys(e,i)):f&&(i.text.className=f)}function ys(e,i){AA(e,i),i.line.wrapClass?Kr(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var f=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=f||""}function Wd(e,i,f,u){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var h=Kr(i);i.gutterBackground=P("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(e.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px; width: "+u.gutterTotalWidth+"px"),e.display.input.setUneditable(i.gutterBackground),h.insertBefore(i.gutterBackground,i.text)}var _=i.line.gutterMarkers;if(e.options.lineNumbers||_){var I=Kr(i),V=i.gutter=P("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?u.fixedPos:-u.gutterTotalWidth)+"px");if(V.setAttribute("aria-hidden","true"),e.display.input.setUneditable(V),I.insertBefore(V,i.text),i.line.gutterClass&&(V.className+=" "+i.line.gutterClass),e.options.lineNumbers&&(!_||!_["CodeMirror-linenumbers"])&&(i.lineNumber=V.appendChild(P("div",ee(e.options,f),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+u.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),_)for(var H=0;H<e.display.gutterSpecs.length;++H){var j=e.display.gutterSpecs[H].className,X=_.hasOwnProperty(j)&&_[j];X&&V.appendChild(P("div",[X],"CodeMirror-gutter-elt","left: "+u.gutterLeft[j]+"px; width: "+u.gutterWidth[j]+"px"))}}}function wA(e,i,f){i.alignable&&(i.alignable=null);for(var u=w("CodeMirror-linewidget"),h=i.node.firstChild,_=void 0;h;h=_)_=h.nextSibling,u.test(h.className)&&i.node.removeChild(h);Kd(e,i,f)}function EA(e,i,f,u){var h=Ud(e,i);return i.text=i.node=h.pre,h.bgClass&&(i.bgClass=h.bgClass),h.textClass&&(i.textClass=h.textClass),ys(e,i),Wd(e,i,f,u),Kd(e,i,u),i.node}function Kd(e,i,f){if(Gd(e,i.line,i,f,!0),i.rest)for(var u=0;u<i.rest.length;u++)Gd(e,i.rest[u],i,f,!1)}function Gd(e,i,f,u,h){if(!!i.widgets)for(var _=Kr(f),I=0,V=i.widgets;I<V.length;++I){var H=V[I],j=P("div",[H.node],"CodeMirror-linewidget"+(H.className?" "+H.className:""));H.handleMouseEvents||j.setAttribute("cm-ignore-events","true"),SA(H,j,f,u),e.display.input.setUneditable(j),h&&H.above?_.insertBefore(j,f.gutter||f.text):_.appendChild(j),kt(H,"redraw")}}function SA(e,i,f,u){if(e.noHScroll){(f.alignable||(f.alignable=[])).push(i);var h=u.wrapperWidth;i.style.left=u.fixedPos+"px",e.coverGutter||(h-=u.gutterTotalWidth,i.style.paddingLeft=u.gutterTotalWidth+"px"),i.style.width=h+"px"}e.coverGutter&&(i.style.zIndex=5,i.style.position="relative",e.noHScroll||(i.style.marginLeft=-u.gutterTotalWidth+"px"))}function Gr(e){if(e.height!=null)return e.height;var i=e.doc.cm;if(!i)return 0;if(!J(document.body,e.node)){var f="position: relative;";e.coverGutter&&(f+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),e.noHScroll&&(f+="width: "+i.display.wrapper.clientWidth+"px;"),W(i.display.measure,P("div",[e.node],null,f))}return e.height=e.node.parentNode.offsetHeight}function Qn(e,i){for(var f=Kt(i);f!=e.wrapper;f=f.parentNode)if(!f||f.nodeType==1&&f.getAttribute("cm-ignore-events")=="true"||f.parentNode==e.sizer&&f!=e.mover)return!0}function aa(e){return e.lineSpace.offsetTop}function bs(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Yd(e){if(e.cachedPaddingH)return e.cachedPaddingH;var i=W(e.measure,P("pre","x","CodeMirror-line-like")),f=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,u={left:parseInt(f.paddingLeft),right:parseInt(f.paddingRight)};return!isNaN(u.left)&&!isNaN(u.right)&&(e.cachedPaddingH=u),u}function Ln(e){return pe-e.display.nativeBarWidth}function Ni(e){return e.display.scroller.clientWidth-Ln(e)-e.display.barWidth}function As(e){return e.display.scroller.clientHeight-Ln(e)-e.display.barHeight}function xA(e,i,f){var u=e.options.lineWrapping,h=u&&Ni(e);if(!i.measure.heights||u&&i.measure.width!=h){var _=i.measure.heights=[];if(u){i.measure.width=h;for(var I=i.text.firstChild.getClientRects(),V=0;V<I.length-1;V++){var H=I[V],j=I[V+1];Math.abs(H.bottom-j.bottom)>2&&_.push((H.bottom+j.top)/2-f.top)}}_.push(f.bottom-f.top)}}function Qd(e,i,f){if(e.line==i)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var u=0;u<e.rest.length;u++)if(e.rest[u]==i)return{map:e.measure.maps[u],cache:e.measure.caches[u]};for(var h=0;h<e.rest.length;h++)if(tt(e.rest[h])>f)return{map:e.measure.maps[h],cache:e.measure.caches[h],before:!0}}}function TA(e,i){i=En(i);var f=tt(i),u=e.display.externalMeasured=new zd(e.doc,i,f);u.lineN=f;var h=u.built=$d(e,u);return u.text=h.pre,W(e.display.lineMeasure,h.pre),u}function Xd(e,i,f,u){return Vn(e,ir(e,i),f,u)}function Cs(e,i){if(i>=e.display.viewFrom&&i<e.display.viewTo)return e.display.view[Ri(e,i)];var f=e.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size)return f}function ir(e,i){var f=tt(i),u=Cs(e,f);u&&!u.text?u=null:u&&u.changes&&(jd(e,u,f,Ts(e)),e.curOp.forceUpdate=!0),u||(u=TA(e,i));var h=Qd(u,i,f);return{line:i,view:u,rect:null,map:h.map,cache:h.cache,before:h.before,hasHeights:!1}}function Vn(e,i,f,u,h){i.before&&(f=-1);var _=f+(u||""),I;return i.cache.hasOwnProperty(_)?I=i.cache[_]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(xA(e,i.view,i.rect),i.hasHeights=!0),I=_A(e,i,f,u),I.bogus||(i.cache[_]=I)),{left:I.left,right:I.right,top:h?I.rtop:I.top,bottom:h?I.rbottom:I.bottom}}var Jd={left:0,right:0,top:0,bottom:0};function Zd(e,i,f){for(var u,h,_,I,V,H,j=0;j<e.length;j+=3)if(V=e[j],H=e[j+1],i<V?(h=0,_=1,I="left"):i<H?(h=i-V,_=h+1):(j==e.length-3||i==H&&e[j+3]>i)&&(_=H-V,h=_-1,i>=H&&(I="right")),h!=null){if(u=e[j+2],V==H&&f==(u.insertLeft?"left":"right")&&(I=f),f=="left"&&h==0)for(;j&&e[j-2]==e[j-3]&&e[j-1].insertLeft;)u=e[(j-=3)+2],I="left";if(f=="right"&&h==H-V)for(;j<e.length-3&&e[j+3]==e[j+4]&&!e[j+5].insertLeft;)u=e[(j+=3)+2],I="right";break}return{node:u,start:h,end:_,collapse:I,coverStart:V,coverEnd:H}}function NA(e,i){var f=Jd;if(i=="left")for(var u=0;u<e.length&&(f=e[u]).left==f.right;u++);else for(var h=e.length-1;h>=0&&(f=e[h]).left==f.right;h--);return f}function _A(e,i,f,u){var h=Zd(i.map,f,u),_=h.node,I=h.start,V=h.end,H=h.collapse,j;if(_.nodeType==3){for(var X=0;X<4;X++){for(;I&&hn(i.line.text.charAt(h.coverStart+I));)--I;for(;h.coverStart+V<h.coverEnd&&hn(i.line.text.charAt(h.coverStart+V));)++V;if(p&&m<9&&I==0&&V==h.coverEnd-h.coverStart?j=_.parentNode.getBoundingClientRect():j=NA(Q(_,I,V).getClientRects(),u),j.left||j.right||I==0)break;V=I,I=I-1,H="right"}p&&m<11&&(j=DA(e.display.measure,j))}else{I>0&&(H=u="right");var q;e.options.lineWrapping&&(q=_.getClientRects()).length>1?j=q[u=="right"?q.length-1:0]:j=_.getBoundingClientRect()}if(p&&m<9&&!I&&(!j||!j.left&&!j.right)){var oe=_.parentNode.getClientRects()[0];oe?j={left:oe.left,right:oe.left+or(e.display),top:oe.top,bottom:oe.bottom}:j=Jd}for(var re=j.top-i.rect.top,ce=j.bottom-i.rect.top,he=(re+ce)/2,ge=i.view.measure.heights,ve=0;ve<ge.length-1&&!(he<ge[ve]);ve++);var we=ve?ge[ve-1]:0,ye=ge[ve],xe={left:(H=="right"?j.right:j.left)-i.rect.left,right:(H=="left"?j.left:j.right)-i.rect.left,top:we,bottom:ye};return!j.left&&!j.right&&(xe.bogus=!0),e.options.singleCursorHeightPerLine||(xe.rtop=re,xe.rbottom=ce),xe}function DA(e,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Xo(e))return i;var f=screen.logicalXDPI/screen.deviceXDPI,u=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*f,right:i.right*f,top:i.top*u,bottom:i.bottom*u}}function qd(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var i=0;i<e.rest.length;i++)e.measure.caches[i]={}}function ec(e){e.display.externalMeasure=null,$(e.display.lineMeasure);for(var i=0;i<e.display.view.length;i++)qd(e.display.view[i])}function Yr(e){ec(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function tc(e){return E&&N?-(e.body.getBoundingClientRect().left-parseInt(getComputedStyle(e.body).marginLeft)):e.defaultView.pageXOffset||(e.documentElement||e.body).scrollLeft}function nc(e){return E&&N?-(e.body.getBoundingClientRect().top-parseInt(getComputedStyle(e.body).marginTop)):e.defaultView.pageYOffset||(e.documentElement||e.body).scrollTop}function ws(e){var i=En(e),f=i.widgets,u=0;if(f)for(var h=0;h<f.length;++h)f[h].above&&(u+=Gr(f[h]));return u}function la(e,i,f,u,h){if(!h){var _=ws(i);f.top+=_,f.bottom+=_}if(u=="line")return f;u||(u="local");var I=Yn(i);if(u=="local"?I+=aa(e.display):I-=e.display.viewOffset,u=="page"||u=="window"){var V=e.display.lineSpace.getBoundingClientRect();I+=V.top+(u=="window"?0:nc(Y(e)));var H=V.left+(u=="window"?0:tc(Y(e)));f.left+=H,f.right+=H}return f.top+=I,f.bottom+=I,f}function ic(e,i,f){if(f=="div")return i;var u=i.left,h=i.top;if(f=="page")u-=tc(Y(e)),h-=nc(Y(e));else if(f=="local"||!f){var _=e.display.sizer.getBoundingClientRect();u+=_.left,h+=_.top}var I=e.display.lineSpace.getBoundingClientRect();return{left:u-I.left,top:h-I.top}}function sa(e,i,f,u,h){return u||(u=_e(e.doc,i.line)),la(e,u,Xd(e,u,i.ch,h),f)}function Sn(e,i,f,u,h,_){u=u||_e(e.doc,i.line),h||(h=ir(e,u));function I(ce,he){var ge=Vn(e,h,ce,he?"right":"left",_);return he?ge.left=ge.right:ge.right=ge.left,la(e,u,ge,f)}var V=Be(u,e.doc.direction),H=i.ch,j=i.sticky;if(H>=u.text.length?(H=u.text.length,j="before"):H<=0&&(H=0,j="after"),!V)return I(j=="before"?H-1:H,j=="before");function X(ce,he,ge){var ve=V[he],we=ve.level==1;return I(ge?ce-1:ce,we!=ge)}var q=Ee(V,H,j),oe=Ke,re=X(H,q,j=="before");return oe!=null&&(re.other=X(H,oe,j!="before")),re}function rc(e,i){var f=0;i=Me(e.doc,i),e.options.lineWrapping||(f=or(e.display)*i.ch);var u=_e(e.doc,i.line),h=Yn(u)+aa(e.display);return{left:f,right:f,top:h,bottom:h+u.height}}function Es(e,i,f,u,h){var _=ne(e,i,f);return _.xRel=h,u&&(_.outside=u),_}function Ss(e,i,f){var u=e.doc;if(f+=e.display.viewOffset,f<0)return Es(u.first,0,null,-1,-1);var h=Mn(u,f),_=u.first+u.size-1;if(h>_)return Es(u.first+u.size-1,_e(u,_).text.length,null,1,1);i<0&&(i=0);for(var I=_e(u,h);;){var V=RA(e,I,h,i,f),H=rA(I,V.ch+(V.xRel>0||V.outside>0?1:0));if(!H)return V;var j=H.find(1);if(j.line==h)return j;I=_e(u,h=j.line)}}function oc(e,i,f,u){u-=ws(i);var h=i.text.length,_=qe(function(I){return Vn(e,f,I-1).bottom<=u},h,0);return h=qe(function(I){return Vn(e,f,I).top>u},_,h),{begin:_,end:h}}function ac(e,i,f,u){f||(f=ir(e,i));var h=la(e,i,Vn(e,f,u),"line").top;return oc(e,i,f,h)}function xs(e,i,f,u){return e.bottom<=f?!1:e.top>f?!0:(u?e.left:e.right)>i}function RA(e,i,f,u,h){h-=Yn(i);var _=ir(e,i),I=ws(i),V=0,H=i.text.length,j=!0,X=Be(i,e.doc.direction);if(X){var q=(e.options.lineWrapping?kA:OA)(e,i,f,_,X,u,h);j=q.level!=1,V=j?q.from:q.to-1,H=j?q.to:q.from-1}var oe=null,re=null,ce=qe(function(ke){var Oe=Vn(e,_,ke);return Oe.top+=I,Oe.bottom+=I,xs(Oe,u,h,!1)?(Oe.top<=h&&Oe.left<=u&&(oe=ke,re=Oe),!0):!1},V,H),he,ge,ve=!1;if(re){var we=u-re.left<re.right-u,ye=we==j;ce=oe+(ye?0:1),ge=ye?"after":"before",he=we?re.left:re.right}else{!j&&(ce==H||ce==V)&&ce++,ge=ce==0?"after":ce==i.text.length?"before":Vn(e,_,ce-(j?1:0)).bottom+I<=h==j?"after":"before";var xe=Sn(e,ne(f,ce,ge),"line",i,_);he=xe.left,ve=h<xe.top?-1:h>=xe.bottom?1:0}return ce=Tt(i.text,ce,1),Es(f,ce,ge,ve,u-he)}function OA(e,i,f,u,h,_,I){var V=qe(function(q){var oe=h[q],re=oe.level!=1;return xs(Sn(e,ne(f,re?oe.to:oe.from,re?"before":"after"),"line",i,u),_,I,!0)},0,h.length-1),H=h[V];if(V>0){var j=H.level!=1,X=Sn(e,ne(f,j?H.from:H.to,j?"after":"before"),"line",i,u);xs(X,_,I,!0)&&X.top>I&&(H=h[V-1])}return H}function kA(e,i,f,u,h,_,I){var V=oc(e,i,u,I),H=V.begin,j=V.end;/\s/.test(i.text.charAt(j-1))&&j--;for(var X=null,q=null,oe=0;oe<h.length;oe++){var re=h[oe];if(!(re.from>=j||re.to<=H)){var ce=re.level!=1,he=Vn(e,u,ce?Math.min(j,re.to)-1:Math.max(H,re.from)).right,ge=he<_?_-he+1e9:he-_;(!X||q>ge)&&(X=re,q=ge)}}return X||(X=h[h.length-1]),X.from<H&&(X={from:H,to:X.to,level:X.level}),X.to>j&&(X={from:X.from,to:j,level:X.level}),X}var _i;function rr(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(_i==null){_i=P("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)_i.appendChild(document.createTextNode("x")),_i.appendChild(P("br"));_i.appendChild(document.createTextNode("x"))}W(e.measure,_i);var f=_i.offsetHeight/50;return f>3&&(e.cachedTextHeight=f),$(e.measure),f||1}function or(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var i=P("span","xxxxxxxxxx"),f=P("pre",[i],"CodeMirror-line-like");W(e.measure,f);var u=i.getBoundingClientRect(),h=(u.right-u.left)/10;return h>2&&(e.cachedCharWidth=h),h||10}function Ts(e){for(var i=e.display,f={},u={},h=i.gutters.clientLeft,_=i.gutters.firstChild,I=0;_;_=_.nextSibling,++I){var V=e.display.gutterSpecs[I].className;f[V]=_.offsetLeft+_.clientLeft+h,u[V]=_.clientWidth}return{fixedPos:Ns(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:f,gutterWidth:u,wrapperWidth:i.wrapper.clientWidth}}function Ns(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lc(e){var i=rr(e.display),f=e.options.lineWrapping,u=f&&Math.max(5,e.display.scroller.clientWidth/or(e.display)-3);return function(h){if(ci(e.doc,h))return 0;var _=0;if(h.widgets)for(var I=0;I<h.widgets.length;I++)h.widgets[I].height&&(_+=h.widgets[I].height);return f?_+(Math.ceil(h.text.length/u)||1)*i:_+i}}function _s(e){var i=e.doc,f=lc(e);i.iter(function(u){var h=f(u);h!=u.height&&vn(u,h)})}function Di(e,i,f,u){var h=e.display;if(!f&&Kt(i).getAttribute("cm-not-content")=="true")return null;var _,I,V=h.lineSpace.getBoundingClientRect();try{_=i.clientX-V.left,I=i.clientY-V.top}catch{return null}var H=Ss(e,_,I),j;if(u&&H.xRel>0&&(j=_e(e.doc,H.line).text).length==H.ch){var X=se(j,j.length,e.options.tabSize)-j.length;H=ne(H.line,Math.max(0,Math.round((_-Yd(e.display).left)/or(e.display))-X))}return H}function Ri(e,i){if(i>=e.display.viewTo||(i-=e.display.viewFrom,i<0))return null;for(var f=e.display.view,u=0;u<f.length;u++)if(i-=f[u].size,i<0)return u}function Gt(e,i,f,u){i==null&&(i=e.doc.first),f==null&&(f=e.doc.first+e.doc.size),u||(u=0);var h=e.display;if(u&&f<h.viewTo&&(h.updateLineNumbers==null||h.updateLineNumbers>i)&&(h.updateLineNumbers=i),e.curOp.viewChanged=!0,i>=h.viewTo)Gn&&ms(e.doc,i)<h.viewTo&&hi(e);else if(f<=h.viewFrom)Gn&&Vd(e.doc,f+u)>h.viewFrom?hi(e):(h.viewFrom+=u,h.viewTo+=u);else if(i<=h.viewFrom&&f>=h.viewTo)hi(e);else if(i<=h.viewFrom){var _=ua(e,f,f+u,1);_?(h.view=h.view.slice(_.index),h.viewFrom=_.lineN,h.viewTo+=u):hi(e)}else if(f>=h.viewTo){var I=ua(e,i,i,-1);I?(h.view=h.view.slice(0,I.index),h.viewTo=I.lineN):hi(e)}else{var V=ua(e,i,i,-1),H=ua(e,f,f+u,1);V&&H?(h.view=h.view.slice(0,V.index).concat(oa(e,V.lineN,H.lineN)).concat(h.view.slice(H.index)),h.viewTo+=u):hi(e)}var j=h.externalMeasured;j&&(f<j.lineN?j.lineN+=u:i<j.lineN+j.size&&(h.externalMeasured=null))}function pi(e,i,f){e.curOp.viewChanged=!0;var u=e.display,h=e.display.externalMeasured;if(h&&i>=h.lineN&&i<h.lineN+h.size&&(u.externalMeasured=null),!(i<u.viewFrom||i>=u.viewTo)){var _=u.view[Ri(e,i)];if(_.node!=null){var I=_.changes||(_.changes=[]);te(I,f)==-1&&I.push(f)}}}function hi(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function ua(e,i,f,u){var h=Ri(e,i),_,I=e.display.view;if(!Gn||f==e.doc.first+e.doc.size)return{index:h,lineN:f};for(var V=e.display.viewFrom,H=0;H<h;H++)V+=I[H].size;if(V!=i){if(u>0){if(h==I.length-1)return null;_=V+I[h].size-i,h++}else _=V-i;i+=_,f+=_}for(;ms(e.doc,f)!=f;){if(h==(u<0?0:I.length-1))return null;f+=u*I[h-(u<0?1:0)].size,h+=u}return{index:h,lineN:f}}function BA(e,i,f){var u=e.display,h=u.view;h.length==0||i>=u.viewTo||f<=u.viewFrom?(u.view=oa(e,i,f),u.viewFrom=i):(u.viewFrom>i?u.view=oa(e,i,u.viewFrom).concat(u.view):u.viewFrom<i&&(u.view=u.view.slice(Ri(e,i))),u.viewFrom=i,u.viewTo<f?u.view=u.view.concat(oa(e,u.viewTo,f)):u.viewTo>f&&(u.view=u.view.slice(0,Ri(e,f)))),u.viewTo=f}function sc(e){for(var i=e.display.view,f=0,u=0;u<i.length;u++){var h=i[u];!h.hidden&&(!h.node||h.changes)&&++f}return f}function Qr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function uc(e,i){i===void 0&&(i=!0);var f=e.doc,u={},h=u.cursors=document.createDocumentFragment(),_=u.selection=document.createDocumentFragment(),I=e.options.$customCursor;I&&(i=!0);for(var V=0;V<f.sel.ranges.length;V++)if(!(!i&&V==f.sel.primIndex)){var H=f.sel.ranges[V];if(!(H.from().line>=e.display.viewTo||H.to().line<e.display.viewFrom)){var j=H.empty();if(I){var X=I(e,H);X&&Ds(e,X,h)}else(j||e.options.showCursorWhenSelecting)&&Ds(e,H.head,h);j||IA(e,H,_)}}return u}function Ds(e,i,f){var u=Sn(e,i,"div",null,null,!e.options.singleCursorHeightPerLine),h=f.appendChild(P("div","\xA0","CodeMirror-cursor"));if(h.style.left=u.left+"px",h.style.top=u.top+"px",h.style.height=Math.max(0,u.bottom-u.top)*e.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(e.getWrapperElement().className)){var _=sa(e,i,"div",null,null),I=_.right-_.left;h.style.width=(I>0?I:e.defaultCharWidth())+"px"}if(u.other){var V=f.appendChild(P("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));V.style.display="",V.style.left=u.other.left+"px",V.style.top=u.other.top+"px",V.style.height=(u.other.bottom-u.other.top)*.85+"px"}}function fa(e,i){return e.top-i.top||e.left-i.left}function IA(e,i,f){var u=e.display,h=e.doc,_=document.createDocumentFragment(),I=Yd(e.display),V=I.left,H=Math.max(u.sizerWidth,Ni(e)-u.sizer.offsetLeft)-I.right,j=h.direction=="ltr";function X(ye,xe,ke,Oe){xe<0&&(xe=0),xe=Math.round(xe),Oe=Math.round(Oe),_.appendChild(P("div",null,"CodeMirror-selected","position: absolute; left: "+ye+`px;
top: `+xe+"px; width: "+(ke==null?H-ye:ke)+`px;
height: `+(Oe-xe)+"px"))}function q(ye,xe,ke){var Oe=_e(h,ye),Ue=Oe.text.length,at,Mt;function pt(wt,Xt){return sa(e,ne(ye,wt),"div",Oe,Xt)}function rn(wt,Xt,Lt){var _t=ac(e,Oe,null,wt),Et=Xt=="ltr"==(Lt=="after")?"left":"right",gt=Lt=="after"?_t.begin:_t.end-(/\s/.test(Oe.text.charAt(_t.end-1))?2:1);return pt(gt,Et)[Et]}var Qt=Be(Oe,h.direction);return en(Qt,xe||0,ke==null?Ue:ke,function(wt,Xt,Lt,_t){var Et=Lt=="ltr",gt=pt(wt,Et?"left":"right"),Jt=pt(Xt-1,Et?"right":"left"),yr=xe==null&&wt==0,Ai=ke==null&&Xt==Ue,$t=_t==0,Fn=!Qt||_t==Qt.length-1;if(Jt.top-gt.top<=3){var Pt=(j?yr:Ai)&&$t,tu=(j?Ai:yr)&&Fn,Zn=Pt?V:(Et?gt:Jt).left,Mi=tu?H:(Et?Jt:gt).right;X(Zn,gt.top,Mi-Zn,gt.bottom)}else{var Pi,jt,br,nu;Et?(Pi=j&&yr&&$t?V:gt.left,jt=j?H:rn(wt,Lt,"before"),br=j?V:rn(Xt,Lt,"after"),nu=j&&Ai&&Fn?H:Jt.right):(Pi=j?rn(wt,Lt,"before"):V,jt=!j&&yr&&$t?H:gt.right,br=!j&&Ai&&Fn?V:Jt.left,nu=j?rn(Xt,Lt,"after"):H),X(Pi,gt.top,jt-Pi,gt.bottom),gt.bottom<Jt.top&&X(V,gt.bottom,null,Jt.top),X(br,Jt.top,nu-br,Jt.bottom)}(!at||fa(gt,at)<0)&&(at=gt),fa(Jt,at)<0&&(at=Jt),(!Mt||fa(gt,Mt)<0)&&(Mt=gt),fa(Jt,Mt)<0&&(Mt=Jt)}),{start:at,end:Mt}}var oe=i.from(),re=i.to();if(oe.line==re.line)q(oe.line,oe.ch,re.ch);else{var ce=_e(h,oe.line),he=_e(h,re.line),ge=En(ce)==En(he),ve=q(oe.line,oe.ch,ge?ce.text.length+1:null).end,we=q(re.line,ge?0:null,re.ch).start;ge&&(ve.top<we.top-2?(X(ve.right,ve.top,null,ve.bottom),X(V,we.top,we.left,we.bottom)):X(ve.right,ve.top,we.left-ve.right,ve.bottom)),ve.bottom<we.top&&X(V,ve.bottom,null,we.top)}f.appendChild(_)}function Rs(e){if(!!e.state.focused){var i=e.display;clearInterval(i.blinker);var f=!0;i.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?i.blinker=setInterval(function(){e.hasFocus()||ar(e),i.cursorDiv.style.visibility=(f=!f)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function fc(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||ks(e))}function Os(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&ar(e))},100)}function ks(e,i){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(Ne(e,"focus",e,i),e.state.focused=!0,B(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),v&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Rs(e))}function ar(e,i){e.state.delayingBlurEvent||(e.state.focused&&(Ne(e,"blur",e,i),e.state.focused=!1,L(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function da(e){for(var i=e.display,f=i.lineDiv.offsetTop,u=Math.max(0,i.scroller.getBoundingClientRect().top),h=i.lineDiv.getBoundingClientRect().top,_=0,I=0;I<i.view.length;I++){var V=i.view[I],H=e.options.lineWrapping,j=void 0,X=0;if(!V.hidden){if(h+=V.line.height,p&&m<8){var q=V.node.offsetTop+V.node.offsetHeight;j=q-f,f=q}else{var oe=V.node.getBoundingClientRect();j=oe.bottom-oe.top,!H&&V.text.firstChild&&(X=V.text.firstChild.getBoundingClientRect().right-oe.left-1)}var re=V.line.height-j;if((re>.005||re<-.005)&&(h<u&&(_-=re),vn(V.line,j),dc(V.line),V.rest))for(var ce=0;ce<V.rest.length;ce++)dc(V.rest[ce]);if(X>e.display.sizerWidth){var he=Math.ceil(X/or(e.display));he>e.display.maxLineLength&&(e.display.maxLineLength=he,e.display.maxLine=V.line,e.display.maxLineChanged=!0)}}}Math.abs(_)>2&&(i.scroller.scrollTop+=_)}function dc(e){if(e.widgets)for(var i=0;i<e.widgets.length;++i){var f=e.widgets[i],u=f.node.parentNode;u&&(f.height=u.offsetHeight)}}function ca(e,i,f){var u=f&&f.top!=null?Math.max(0,f.top):e.scroller.scrollTop;u=Math.floor(u-aa(e));var h=f&&f.bottom!=null?f.bottom:u+e.wrapper.clientHeight,_=Mn(i,u),I=Mn(i,h);if(f&&f.ensure){var V=f.ensure.from.line,H=f.ensure.to.line;V<_?(_=V,I=Mn(i,Yn(_e(i,V))+e.wrapper.clientHeight)):Math.min(H,i.lastLine())>=I&&(_=Mn(i,Yn(_e(i,H))-e.wrapper.clientHeight),I=H)}return{from:_,to:Math.max(I,_+1)}}function MA(e,i){if(!$e(e,"scrollCursorIntoView")){var f=e.display,u=f.sizer.getBoundingClientRect(),h=null,_=f.wrapper.ownerDocument;if(i.top+u.top<0?h=!0:i.bottom+u.top>(_.defaultView.innerHeight||_.documentElement.clientHeight)&&(h=!1),h!=null&&!g){var I=P("div","\u200B",null,`position: absolute;
top: `+(i.top-f.viewOffset-aa(e.display))+`px;
height: `+(i.bottom-i.top+Ln(e)+f.barHeight)+`px;
left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");e.display.lineSpace.appendChild(I),I.scrollIntoView(h),e.display.lineSpace.removeChild(I)}}}function PA(e,i,f,u){u==null&&(u=0);var h;!e.options.lineWrapping&&i==f&&(f=i.sticky=="before"?ne(i.line,i.ch+1,"before"):i,i=i.ch?ne(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var _=0;_<5;_++){var I=!1,V=Sn(e,i),H=!f||f==i?V:Sn(e,f);h={left:Math.min(V.left,H.left),top:Math.min(V.top,H.top)-u,right:Math.max(V.left,H.left),bottom:Math.max(V.bottom,H.bottom)+u};var j=Bs(e,h),X=e.doc.scrollTop,q=e.doc.scrollLeft;if(j.scrollTop!=null&&(Jr(e,j.scrollTop),Math.abs(e.doc.scrollTop-X)>1&&(I=!0)),j.scrollLeft!=null&&(Oi(e,j.scrollLeft),Math.abs(e.doc.scrollLeft-q)>1&&(I=!0)),!I)break}return h}function LA(e,i){var f=Bs(e,i);f.scrollTop!=null&&Jr(e,f.scrollTop),f.scrollLeft!=null&&Oi(e,f.scrollLeft)}function Bs(e,i){var f=e.display,u=rr(e.display);i.top<0&&(i.top=0);var h=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:f.scroller.scrollTop,_=As(e),I={};i.bottom-i.top>_&&(i.bottom=i.top+_);var V=e.doc.height+bs(f),H=i.top<u,j=i.bottom>V-u;if(i.top<h)I.scrollTop=H?0:i.top;else if(i.bottom>h+_){var X=Math.min(i.top,(j?V:i.bottom)-_);X!=h&&(I.scrollTop=X)}var q=e.options.fixedGutter?0:f.gutters.offsetWidth,oe=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:f.scroller.scrollLeft-q,re=Ni(e)-f.gutters.offsetWidth,ce=i.right-i.left>re;return ce&&(i.right=i.left+re),i.left<10?I.scrollLeft=0:i.left<oe?I.scrollLeft=Math.max(0,i.left+q-(ce?0:10)):i.right>re+oe-3&&(I.scrollLeft=i.right+(ce?0:10)-re),I}function Is(e,i){i!=null&&(pa(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+i)}function lr(e){pa(e);var i=e.getCursor();e.curOp.scrollToPos={from:i,to:i,margin:e.options.cursorScrollMargin}}function Xr(e,i,f){(i!=null||f!=null)&&pa(e),i!=null&&(e.curOp.scrollLeft=i),f!=null&&(e.curOp.scrollTop=f)}function VA(e,i){pa(e),e.curOp.scrollToPos=i}function pa(e){var i=e.curOp.scrollToPos;if(i){e.curOp.scrollToPos=null;var f=rc(e,i.from),u=rc(e,i.to);cc(e,f,u,i.margin)}}function cc(e,i,f,u){var h=Bs(e,{left:Math.min(i.left,f.left),top:Math.min(i.top,f.top)-u,right:Math.max(i.right,f.right),bottom:Math.max(i.bottom,f.bottom)+u});Xr(e,h.scrollLeft,h.scrollTop)}function Jr(e,i){Math.abs(e.doc.scrollTop-i)<2||(n||Ps(e,{top:i}),pc(e,i,!0),n&&Ps(e),eo(e,100))}function pc(e,i,f){i=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,i)),!(e.display.scroller.scrollTop==i&&!f)&&(e.doc.scrollTop=i,e.display.scrollbars.setScrollTop(i),e.display.scroller.scrollTop!=i&&(e.display.scroller.scrollTop=i))}function Oi(e,i,f,u){i=Math.max(0,Math.min(i,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((f?i==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-i)<2)&&!u)&&(e.doc.scrollLeft=i,yc(e),e.display.scroller.scrollLeft!=i&&(e.display.scroller.scrollLeft=i),e.display.scrollbars.setScrollLeft(i))}function Zr(e){var i=e.display,f=i.gutters.offsetWidth,u=Math.round(e.doc.height+bs(e.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:e.options.fixedGutter?f:0,docHeight:u,scrollHeight:u+Ln(e)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:f}}var ki=function(e,i,f){this.cm=f;var u=this.vert=P("div",[P("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),h=this.horiz=P("div",[P("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");u.tabIndex=h.tabIndex=-1,e(u),e(h),fe(u,"scroll",function(){u.clientHeight&&i(u.scrollTop,"vertical")}),fe(h,"scroll",function(){h.clientWidth&&i(h.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,p&&m<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ki.prototype.update=function(e){var i=e.scrollWidth>e.clientWidth+1,f=e.scrollHeight>e.clientHeight+1,u=e.nativeBarWidth;if(f){this.vert.style.display="block",this.vert.style.bottom=i?u+"px":"0";var h=e.viewHeight-(i?u:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+h)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=f?u+"px":"0",this.horiz.style.left=e.barLeft+"px";var _=e.viewWidth-e.barLeft-(f?u:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+_)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(u==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:f?u:0,bottom:i?u:0}},ki.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ki.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ki.prototype.zeroWidthHack=function(){var e=O&&!A?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},ki.prototype.enableZeroWidthBar=function(e,i,f){e.style.visibility="";function u(){var h=e.getBoundingClientRect(),_=f=="vert"?document.elementFromPoint(h.right-1,(h.top+h.bottom)/2):document.elementFromPoint((h.right+h.left)/2,h.bottom-1);_!=e?e.style.visibility="hidden":i.set(1e3,u)}i.set(1e3,u)},ki.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var qr=function(){};qr.prototype.update=function(){return{bottom:0,right:0}},qr.prototype.setScrollLeft=function(){},qr.prototype.setScrollTop=function(){},qr.prototype.clear=function(){};function sr(e,i){i||(i=Zr(e));var f=e.display.barWidth,u=e.display.barHeight;hc(e,i);for(var h=0;h<4&&f!=e.display.barWidth||u!=e.display.barHeight;h++)f!=e.display.barWidth&&e.options.lineWrapping&&da(e),hc(e,Zr(e)),f=e.display.barWidth,u=e.display.barHeight}function hc(e,i){var f=e.display,u=f.scrollbars.update(i);f.sizer.style.paddingRight=(f.barWidth=u.right)+"px",f.sizer.style.paddingBottom=(f.barHeight=u.bottom)+"px",f.heightForcer.style.borderBottom=u.bottom+"px solid transparent",u.right&&u.bottom?(f.scrollbarFiller.style.display="block",f.scrollbarFiller.style.height=u.bottom+"px",f.scrollbarFiller.style.width=u.right+"px"):f.scrollbarFiller.style.display="",u.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(f.gutterFiller.style.display="block",f.gutterFiller.style.height=u.bottom+"px",f.gutterFiller.style.width=i.gutterWidth+"px"):f.gutterFiller.style.display=""}var mc={native:ki,null:qr};function gc(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&L(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new mc[e.options.scrollbarStyle](function(i){e.display.wrapper.insertBefore(i,e.display.scrollbarFiller),fe(i,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,f){f=="horizontal"?Oi(e,i):Jr(e,i)},e),e.display.scrollbars.addClass&&B(e.display.wrapper,e.display.scrollbars.addClass)}var FA=0;function Bi(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:++FA,markArrays:null},gA(e.curOp)}function Ii(e){var i=e.curOp;i&&yA(i,function(f){for(var u=0;u<f.ops.length;u++)f.ops[u].cm.curOp=null;$A(f)})}function $A(e){for(var i=e.ops,f=0;f<i.length;f++)HA(i[f]);for(var u=0;u<i.length;u++)zA(i[u]);for(var h=0;h<i.length;h++)jA(i[h]);for(var _=0;_<i.length;_++)UA(i[_]);for(var I=0;I<i.length;I++)WA(i[I])}function HA(e){var i=e.cm,f=i.display;GA(i),e.updateMaxLine&&vs(i),e.mustUpdate=e.viewChanged||e.forceUpdate||e.scrollTop!=null||e.scrollToPos&&(e.scrollToPos.from.line<f.viewFrom||e.scrollToPos.to.line>=f.viewTo)||f.maxLineChanged&&i.options.lineWrapping,e.update=e.mustUpdate&&new ha(i,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function zA(e){e.updatedDisplay=e.mustUpdate&&Ms(e.cm,e.update)}function jA(e){var i=e.cm,f=i.display;e.updatedDisplay&&da(i),e.barMeasure=Zr(i),f.maxLineChanged&&!i.options.lineWrapping&&(e.adjustWidthTo=Xd(i,f.maxLine,f.maxLine.text.length).left+3,i.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(f.scroller.clientWidth,f.sizer.offsetLeft+e.adjustWidthTo+Ln(i)+i.display.barWidth),e.maxScrollLeft=Math.max(0,f.sizer.offsetLeft+e.adjustWidthTo-Ni(i))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=f.input.prepareSelection())}function UA(e){var i=e.cm;e.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<i.doc.scrollLeft&&Oi(i,Math.min(i.display.scroller.scrollLeft,e.maxScrollLeft),!0),i.display.maxLineChanged=!1);var f=e.focus&&e.focus==ie(Y(i));e.preparedSelection&&i.display.input.showSelection(e.preparedSelection,f),(e.updatedDisplay||e.startHeight!=i.doc.height)&&sr(i,e.barMeasure),e.updatedDisplay&&Vs(i,e.barMeasure),e.selectionChanged&&Rs(i),i.state.focused&&e.updateInput&&i.display.input.reset(e.typing),f&&fc(e.cm)}function WA(e){var i=e.cm,f=i.display,u=i.doc;if(e.updatedDisplay&&vc(i,e.update),f.wheelStartX!=null&&(e.scrollTop!=null||e.scrollLeft!=null||e.scrollToPos)&&(f.wheelStartX=f.wheelStartY=null),e.scrollTop!=null&&pc(i,e.scrollTop,e.forceScroll),e.scrollLeft!=null&&Oi(i,e.scrollLeft,!0,!0),e.scrollToPos){var h=PA(i,Me(u,e.scrollToPos.from),Me(u,e.scrollToPos.to),e.scrollToPos.margin);MA(i,h)}var _=e.maybeHiddenMarkers,I=e.maybeUnhiddenMarkers;if(_)for(var V=0;V<_.length;++V)_[V].lines.length||Ne(_[V],"hide");if(I)for(var H=0;H<I.length;++H)I[H].lines.length&&Ne(I[H],"unhide");f.wrapper.offsetHeight&&(u.scrollTop=i.display.scroller.scrollTop),e.changeObjs&&Ne(i,"changes",i,e.changeObjs),e.update&&e.update.finish()}function nn(e,i){if(e.curOp)return i();Bi(e);try{return i()}finally{Ii(e)}}function Bt(e,i){return function(){if(e.curOp)return i.apply(e,arguments);Bi(e);try{return i.apply(e,arguments)}finally{Ii(e)}}}function zt(e){return function(){if(this.curOp)return e.apply(this,arguments);Bi(this);try{return e.apply(this,arguments)}finally{Ii(this)}}}function It(e){return function(){var i=this.cm;if(!i||i.curOp)return e.apply(this,arguments);Bi(i);try{return e.apply(this,arguments)}finally{Ii(i)}}}function eo(e,i){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(i,ae(KA,e))}function KA(e){var i=e.doc;if(!(i.highlightFrontier>=e.display.viewTo)){var f=+new Date+e.options.workTime,u=jr(e,i.highlightFrontier),h=[];i.iter(u.line,Math.min(i.first+i.size,e.display.viewTo+500),function(_){if(u.line>=e.display.viewFrom){var I=_.styles,V=_.text.length>e.options.maxHighlightLength?Wn(i.mode,u.state):null,H=Sd(e,_,u,!0);V&&(u.state=V),_.styles=H.styles;var j=_.styleClasses,X=H.classes;X?_.styleClasses=X:j&&(_.styleClasses=null);for(var q=!I||I.length!=_.styles.length||j!=X&&(!j||!X||j.bgClass!=X.bgClass||j.textClass!=X.textClass),oe=0;!q&&oe<I.length;++oe)q=I[oe]!=_.styles[oe];q&&h.push(u.line),_.stateAfter=u.save(),u.nextLine()}else _.text.length<=e.options.maxHighlightLength&&ds(e,_.text,u),_.stateAfter=u.line%5==0?u.save():null,u.nextLine();if(+new Date>f)return eo(e,e.options.workDelay),!0}),i.highlightFrontier=u.line,i.modeFrontier=Math.max(i.modeFrontier,u.line),h.length&&nn(e,function(){for(var _=0;_<h.length;_++)pi(e,h[_],"text")})}}var ha=function(e,i,f){var u=e.display;this.viewport=i,this.visible=ca(u,e.doc,i),this.editorIsHidden=!u.wrapper.offsetWidth,this.wrapperHeight=u.wrapper.clientHeight,this.wrapperWidth=u.wrapper.clientWidth,this.oldDisplayWidth=Ni(e),this.force=f,this.dims=Ts(e),this.events=[]};ha.prototype.signal=function(e,i){ct(e,i)&&this.events.push(arguments)},ha.prototype.finish=function(){for(var e=0;e<this.events.length;e++)Ne.apply(null,this.events[e])};function GA(e){var i=e.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=Ln(e)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=Ln(e)+"px",i.scrollbarsClipped=!0)}function YA(e){if(e.hasFocus())return null;var i=ie(Y(e));if(!i||!J(e.display.lineDiv,i))return null;var f={activeElt:i};if(window.getSelection){var u=Z(e).getSelection();u.anchorNode&&u.extend&&J(e.display.lineDiv,u.anchorNode)&&(f.anchorNode=u.anchorNode,f.anchorOffset=u.anchorOffset,f.focusNode=u.focusNode,f.focusOffset=u.focusOffset)}return f}function QA(e){if(!(!e||!e.activeElt||e.activeElt==ie(e.activeElt.ownerDocument))&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&J(document.body,e.anchorNode)&&J(document.body,e.focusNode))){var i=e.activeElt.ownerDocument,f=i.defaultView.getSelection(),u=i.createRange();u.setEnd(e.anchorNode,e.anchorOffset),u.collapse(!1),f.removeAllRanges(),f.addRange(u),f.extend(e.focusNode,e.focusOffset)}}function Ms(e,i){var f=e.display,u=e.doc;if(i.editorIsHidden)return hi(e),!1;if(!i.force&&i.visible.from>=f.viewFrom&&i.visible.to<=f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo)&&f.renderedView==f.view&&sc(e)==0)return!1;bc(e)&&(hi(e),i.dims=Ts(e));var h=u.first+u.size,_=Math.max(i.visible.from-e.options.viewportMargin,u.first),I=Math.min(h,i.visible.to+e.options.viewportMargin);f.viewFrom<_&&_-f.viewFrom<20&&(_=Math.max(u.first,f.viewFrom)),f.viewTo>I&&f.viewTo-I<20&&(I=Math.min(h,f.viewTo)),Gn&&(_=ms(e.doc,_),I=Vd(e.doc,I));var V=_!=f.viewFrom||I!=f.viewTo||f.lastWrapHeight!=i.wrapperHeight||f.lastWrapWidth!=i.wrapperWidth;BA(e,_,I),f.viewOffset=Yn(_e(e.doc,f.viewFrom)),e.display.mover.style.top=f.viewOffset+"px";var H=sc(e);if(!V&&H==0&&!i.force&&f.renderedView==f.view&&(f.updateLineNumbers==null||f.updateLineNumbers>=f.viewTo))return!1;var j=YA(e);return H>4&&(f.lineDiv.style.display="none"),XA(e,f.updateLineNumbers,i.dims),H>4&&(f.lineDiv.style.display=""),f.renderedView=f.view,QA(j),$(f.cursorDiv),$(f.selectionDiv),f.gutters.style.height=f.sizer.style.minHeight=0,V&&(f.lastWrapHeight=i.wrapperHeight,f.lastWrapWidth=i.wrapperWidth,eo(e,400)),f.updateLineNumbers=null,!0}function vc(e,i){for(var f=i.viewport,u=!0;;u=!1){if(!u||!e.options.lineWrapping||i.oldDisplayWidth==Ni(e)){if(f&&f.top!=null&&(f={top:Math.min(e.doc.height+bs(e.display)-As(e),f.top)}),i.visible=ca(e.display,e.doc,f),i.visible.from>=e.display.viewFrom&&i.visible.to<=e.display.viewTo)break}else u&&(i.visible=ca(e.display,e.doc,f));if(!Ms(e,i))break;da(e);var h=Zr(e);Qr(e),sr(e,h),Vs(e,h),i.force=!1}i.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(i.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ps(e,i){var f=new ha(e,i);if(Ms(e,f)){da(e),vc(e,f);var u=Zr(e);Qr(e),sr(e,u),Vs(e,u),f.finish()}}function XA(e,i,f){var u=e.display,h=e.options.lineNumbers,_=u.lineDiv,I=_.firstChild;function V(ce){var he=ce.nextSibling;return v&&O&&e.display.currentWheelTarget==ce?ce.style.display="none":ce.parentNode.removeChild(ce),he}for(var H=u.view,j=u.viewFrom,X=0;X<H.length;X++){var q=H[X];if(!q.hidden)if(!q.node||q.node.parentNode!=_){var oe=EA(e,q,j,f);_.insertBefore(oe,I)}else{for(;I!=q.node;)I=V(I);var re=h&&i!=null&&i<=j&&q.lineNumber;q.changes&&(te(q.changes,"gutter")>-1&&(re=!1),jd(e,q,j,f)),re&&($(q.lineNumber),q.lineNumber.appendChild(document.createTextNode(ee(e.options,j)))),I=q.node.nextSibling}j+=q.size}for(;I;)I=V(I)}function Ls(e){var i=e.gutters.offsetWidth;e.sizer.style.marginLeft=i+"px",kt(e,"gutterChanged",e)}function Vs(e,i){e.display.sizer.style.minHeight=i.docHeight+"px",e.display.heightForcer.style.top=i.docHeight+"px",e.display.gutters.style.height=i.docHeight+e.display.barHeight+Ln(e)+"px"}function yc(e){var i=e.display,f=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!e.options.fixedGutter))){for(var u=Ns(i)-i.scroller.scrollLeft+e.doc.scrollLeft,h=i.gutters.offsetWidth,_=u+"px",I=0;I<f.length;I++)if(!f[I].hidden){e.options.fixedGutter&&(f[I].gutter&&(f[I].gutter.style.left=_),f[I].gutterBackground&&(f[I].gutterBackground.style.left=_));var V=f[I].alignable;if(V)for(var H=0;H<V.length;H++)V[H].style.left=_}e.options.fixedGutter&&(i.gutters.style.left=u+h+"px")}}function bc(e){if(!e.options.lineNumbers)return!1;var i=e.doc,f=ee(e.options,i.first+i.size-1),u=e.display;if(f.length!=u.lineNumChars){var h=u.measure.appendChild(P("div",[P("div",f)],"CodeMirror-linenumber CodeMirror-gutter-elt")),_=h.firstChild.offsetWidth,I=h.offsetWidth-_;return u.lineGutter.style.width="",u.lineNumInnerWidth=Math.max(_,u.lineGutter.offsetWidth-I)+1,u.lineNumWidth=u.lineNumInnerWidth+I,u.lineNumChars=u.lineNumInnerWidth?f.length:-1,u.lineGutter.style.width=u.lineNumWidth+"px",Ls(e.display),!0}return!1}function Fs(e,i){for(var f=[],u=!1,h=0;h<e.length;h++){var _=e[h],I=null;if(typeof _!="string"&&(I=_.style,_=_.className),_=="CodeMirror-linenumbers")if(i)u=!0;else continue;f.push({className:_,style:I})}return i&&!u&&f.push({className:"CodeMirror-linenumbers",style:null}),f}function Ac(e){var i=e.gutters,f=e.gutterSpecs;$(i),e.lineGutter=null;for(var u=0;u<f.length;++u){var h=f[u],_=h.className,I=h.style,V=i.appendChild(P("div",null,"CodeMirror-gutter "+_));I&&(V.style.cssText=I),_=="CodeMirror-linenumbers"&&(e.lineGutter=V,V.style.width=(e.lineNumWidth||1)+"px")}i.style.display=f.length?"":"none",Ls(e)}function to(e){Ac(e.display),Gt(e),yc(e)}function JA(e,i,f,u){var h=this;this.input=f,h.scrollbarFiller=P("div",null,"CodeMirror-scrollbar-filler"),h.scrollbarFiller.setAttribute("cm-not-content","true"),h.gutterFiller=P("div",null,"CodeMirror-gutter-filler"),h.gutterFiller.setAttribute("cm-not-content","true"),h.lineDiv=U("div",null,"CodeMirror-code"),h.selectionDiv=P("div",null,null,"position: relative; z-index: 1"),h.cursorDiv=P("div",null,"CodeMirror-cursors"),h.measure=P("div",null,"CodeMirror-measure"),h.lineMeasure=P("div",null,"CodeMirror-measure"),h.lineSpace=U("div",[h.measure,h.lineMeasure,h.selectionDiv,h.cursorDiv,h.lineDiv],null,"position: relative; outline: none");var _=U("div",[h.lineSpace],"CodeMirror-lines");h.mover=P("div",[_],null,"position: relative"),h.sizer=P("div",[h.mover],"CodeMirror-sizer"),h.sizerWidth=null,h.heightForcer=P("div",null,null,"position: absolute; height: "+pe+"px; width: 1px;"),h.gutters=P("div",null,"CodeMirror-gutters"),h.lineGutter=null,h.scroller=P("div",[h.sizer,h.heightForcer,h.gutters],"CodeMirror-scroll"),h.scroller.setAttribute("tabIndex","-1"),h.wrapper=P("div",[h.scrollbarFiller,h.gutterFiller,h.scroller],"CodeMirror"),h.wrapper.setAttribute("translate","no"),p&&m<8&&(h.gutters.style.zIndex=-1,h.scroller.style.paddingRight=0),!v&&!(n&&T)&&(h.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(h.wrapper):e(h.wrapper)),h.viewFrom=h.viewTo=i.first,h.reportedViewFrom=h.reportedViewTo=i.first,h.view=[],h.renderedView=null,h.externalMeasured=null,h.viewOffset=0,h.lastWrapHeight=h.lastWrapWidth=0,h.updateLineNumbers=null,h.nativeBarWidth=h.barHeight=h.barWidth=0,h.scrollbarsClipped=!1,h.lineNumWidth=h.lineNumInnerWidth=h.lineNumChars=null,h.alignWidgets=!1,h.cachedCharWidth=h.cachedTextHeight=h.cachedPaddingH=null,h.maxLine=null,h.maxLineLength=0,h.maxLineChanged=!1,h.wheelDX=h.wheelDY=h.wheelStartX=h.wheelStartY=null,h.shift=!1,h.selForContextMenu=null,h.activeTouch=null,h.gutterSpecs=Fs(u.gutters,u.lineNumbers),Ac(h),f.init(h)}var ma=0,Xn=null;p?Xn=-.53:n?Xn=15:E?Xn=-.7:x&&(Xn=-1/3);function Cc(e){var i=e.wheelDeltaX,f=e.wheelDeltaY;return i==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(i=e.detail),f==null&&e.detail&&e.axis==e.VERTICAL_AXIS?f=e.detail:f==null&&(f=e.wheelDelta),{x:i,y:f}}function ZA(e){var i=Cc(e);return i.x*=Xn,i.y*=Xn,i}function wc(e,i){E&&D==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 f=Cc(i),u=f.x,h=f.y,_=Xn;i.deltaMode===0&&(u=i.deltaX,h=i.deltaY,_=1);var I=e.display,V=I.scroller,H=V.scrollWidth>V.clientWidth,j=V.scrollHeight>V.clientHeight;if(!!(u&&H||h&&j)){if(h&&O&&v){e:for(var X=i.target,q=I.view;X!=V;X=X.parentNode)for(var oe=0;oe<q.length;oe++)if(q[oe].node==X){e.display.currentWheelTarget=X;break e}}if(u&&!n&&!C&&_!=null){h&&j&&Jr(e,Math.max(0,V.scrollTop+h*_)),Oi(e,Math.max(0,V.scrollLeft+u*_)),(!h||h&&j)&&et(i),I.wheelStartX=null;return}if(h&&_!=null){var re=h*_,ce=e.doc.scrollTop,he=ce+I.wrapper.clientHeight;re<0?ce=Math.max(0,ce+re-50):he=Math.min(e.doc.height,he+re+50),Ps(e,{top:ce,bottom:he})}ma<20&&i.deltaMode!==0&&(I.wheelStartX==null?(I.wheelStartX=V.scrollLeft,I.wheelStartY=V.scrollTop,I.wheelDX=u,I.wheelDY=h,setTimeout(function(){if(I.wheelStartX!=null){var ge=V.scrollLeft-I.wheelStartX,ve=V.scrollTop-I.wheelStartY,we=ve&&I.wheelDY&&ve/I.wheelDY||ge&&I.wheelDX&&ge/I.wheelDX;I.wheelStartX=I.wheelStartY=null,we&&(Xn=(Xn*ma+we)/(ma+1),++ma)}},200)):(I.wheelDX+=u,I.wheelDY+=h))}}var cn=function(e,i){this.ranges=e,this.primIndex=i};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 i=0;i<this.ranges.length;i++){var f=this.ranges[i],u=e.ranges[i];if(!Ie(f.anchor,u.anchor)||!Ie(f.head,u.head))return!1}return!0},cn.prototype.deepCopy=function(){for(var e=[],i=0;i<this.ranges.length;i++)e[i]=new nt(Ye(this.ranges[i].anchor),Ye(this.ranges[i].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,i){i||(i=e);for(var f=0;f<this.ranges.length;f++){var u=this.ranges[f];if(de(i,u.from())>=0&&de(e,u.to())<=0)return f}return-1};var nt=function(e,i){this.anchor=e,this.head=i};nt.prototype.from=function(){return Nt(this.anchor,this.head)},nt.prototype.to=function(){return Ze(this.anchor,this.head)},nt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function xn(e,i,f){var u=e&&e.options.selectionsMayTouch,h=i[f];i.sort(function(oe,re){return de(oe.from(),re.from())}),f=te(i,h);for(var _=1;_<i.length;_++){var I=i[_],V=i[_-1],H=de(V.to(),I.from());if(u&&!I.empty()?H>0:H>=0){var j=Nt(V.from(),I.from()),X=Ze(V.to(),I.to()),q=V.empty()?I.from()==I.head:V.from()==V.head;_<=f&&--f,i.splice(--_,2,new nt(q?X:j,q?j:X))}}return new cn(i,f)}function mi(e,i){return new cn([new nt(e,i||e)],0)}function gi(e){return e.text?ne(e.from.line+e.text.length-1,Re(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function Ec(e,i){if(de(e,i.from)<0)return e;if(de(e,i.to)<=0)return gi(i);var f=e.line+i.text.length-(i.to.line-i.from.line)-1,u=e.ch;return e.line==i.to.line&&(u+=gi(i).ch-i.to.ch),ne(f,u)}function $s(e,i){for(var f=[],u=0;u<e.sel.ranges.length;u++){var h=e.sel.ranges[u];f.push(new nt(Ec(h.anchor,i),Ec(h.head,i)))}return xn(e.cm,f,e.sel.primIndex)}function Sc(e,i,f){return e.line==i.line?ne(f.line,e.ch-i.ch+f.ch):ne(f.line+(e.line-i.line),e.ch)}function qA(e,i,f){for(var u=[],h=ne(e.first,0),_=h,I=0;I<i.length;I++){var V=i[I],H=Sc(V.from,h,_),j=Sc(gi(V),h,_);if(h=V.to,_=j,f=="around"){var X=e.sel.ranges[I],q=de(X.head,X.anchor)<0;u[I]=new nt(q?j:H,q?H:j)}else u[I]=new nt(H,H)}return new cn(u,e.sel.primIndex)}function Hs(e){e.doc.mode=Un(e.options,e.doc.modeOption),no(e)}function no(e){e.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,eo(e,100),e.state.modeGen++,e.curOp&&Gt(e)}function xc(e,i){return i.from.ch==0&&i.to.ch==0&&Re(i.text)==""&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function zs(e,i,f,u){function h(we){return f?f[we]:null}function _(we,ye,xe){lA(we,ye,xe,u),kt(we,"change",we,i)}function I(we,ye){for(var xe=[],ke=we;ke<ye;++ke)xe.push(new tr(j[ke],h(ke),u));return xe}var V=i.from,H=i.to,j=i.text,X=_e(e,V.line),q=_e(e,H.line),oe=Re(j),re=h(j.length-1),ce=H.line-V.line;if(i.full)e.insert(0,I(0,j.length)),e.remove(j.length,e.size-j.length);else if(xc(e,i)){var he=I(0,j.length-1);_(q,q.text,re),ce&&e.remove(V.line,ce),he.length&&e.insert(V.line,he)}else if(X==q)if(j.length==1)_(X,X.text.slice(0,V.ch)+oe+X.text.slice(H.ch),re);else{var ge=I(1,j.length-1);ge.push(new tr(oe+X.text.slice(H.ch),re,u)),_(X,X.text.slice(0,V.ch)+j[0],h(0)),e.insert(V.line+1,ge)}else if(j.length==1)_(X,X.text.slice(0,V.ch)+j[0]+q.text.slice(H.ch),h(0)),e.remove(V.line+1,ce);else{_(X,X.text.slice(0,V.ch)+j[0],h(0)),_(q,oe+q.text.slice(H.ch),re);var ve=I(1,j.length-1);ce>1&&e.remove(V.line+1,ce-1),e.insert(V.line+1,ve)}kt(e,"change",e,i)}function vi(e,i,f){function u(h,_,I){if(h.linked)for(var V=0;V<h.linked.length;++V){var H=h.linked[V];if(H.doc!=_){var j=I&&H.sharedHist;f&&!j||(i(H.doc,j),u(H.doc,h,j))}}}u(e,null,!0)}function Tc(e,i){if(i.cm)throw new Error("This document is already in use.");e.doc=i,i.cm=e,_s(e),Hs(e),Nc(e),e.options.direction=i.direction,e.options.lineWrapping||vs(e),e.options.mode=i.modeOption,Gt(e)}function Nc(e){(e.doc.direction=="rtl"?B:L)(e.display.lineDiv,"CodeMirror-rtl")}function eC(e){nn(e,function(){Nc(e),Gt(e)})}function ga(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 js(e,i){var f={from:Ye(i.from),to:gi(i),text:Kn(e,i.from,i.to)};return Rc(e,f,i.from.line,i.to.line+1),vi(e,function(u){return Rc(u,f,i.from.line,i.to.line+1)},!0),f}function _c(e){for(;e.length;){var i=Re(e);if(i.ranges)e.pop();else break}}function tC(e,i){if(i)return _c(e.done),Re(e.done);if(e.done.length&&!Re(e.done).ranges)return Re(e.done);if(e.done.length>1&&!e.done[e.done.length-2].ranges)return e.done.pop(),Re(e.done)}function Dc(e,i,f,u){var h=e.history;h.undone.length=0;var _=+new Date,I,V;if((h.lastOp==u||h.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&h.lastModTime>_-(e.cm?e.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(I=tC(h,h.lastOp==u)))V=Re(I.changes),de(i.from,i.to)==0&&de(i.from,V.to)==0?V.to=gi(i):I.changes.push(js(e,i));else{var H=Re(h.done);for((!H||!H.ranges)&&va(e.sel,h.done),I={changes:[js(e,i)],generation:h.generation},h.done.push(I);h.done.length>h.undoDepth;)h.done.shift(),h.done[0].ranges||h.done.shift()}h.done.push(f),h.generation=++h.maxGeneration,h.lastModTime=h.lastSelTime=_,h.lastOp=h.lastSelOp=u,h.lastOrigin=h.lastSelOrigin=i.origin,V||Ne(e,"historyAdded")}function nC(e,i,f,u){var h=i.charAt(0);return h=="*"||h=="+"&&f.ranges.length==u.ranges.length&&f.somethingSelected()==u.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function iC(e,i,f,u){var h=e.history,_=u&&u.origin;f==h.lastSelOp||_&&h.lastSelOrigin==_&&(h.lastModTime==h.lastSelTime&&h.lastOrigin==_||nC(e,_,Re(h.done),i))?h.done[h.done.length-1]=i:va(i,h.done),h.lastSelTime=+new Date,h.lastSelOrigin=_,h.lastSelOp=f,u&&u.clearRedo!==!1&&_c(h.undone)}function va(e,i){var f=Re(i);f&&f.ranges&&f.equals(e)||i.push(e)}function Rc(e,i,f,u){var h=i["spans_"+e.id],_=0;e.iter(Math.max(e.first,f),Math.min(e.first+e.size,u),function(I){I.markedSpans&&((h||(h=i["spans_"+e.id]={}))[_]=I.markedSpans),++_})}function rC(e){if(!e)return null;for(var i,f=0;f<e.length;++f)e[f].marker.explicitlyCleared?i||(i=e.slice(0,f)):i&&i.push(e[f]);return i?i.length?i:null:e}function oC(e,i){var f=i["spans_"+e.id];if(!f)return null;for(var u=[],h=0;h<i.text.length;++h)u.push(rC(f[h]));return u}function Oc(e,i){var f=oC(e,i),u=ps(e,i);if(!f)return u;if(!u)return f;for(var h=0;h<f.length;++h){var _=f[h],I=u[h];if(_&&I){e:for(var V=0;V<I.length;++V){for(var H=I[V],j=0;j<_.length;++j)if(_[j].marker==H.marker)continue e;_.push(H)}}else I&&(f[h]=I)}return f}function ur(e,i,f){for(var u=[],h=0;h<e.length;++h){var _=e[h];if(_.ranges){u.push(f?cn.prototype.deepCopy.call(_):_);continue}var I=_.changes,V=[];u.push({changes:V});for(var H=0;H<I.length;++H){var j=I[H],X=void 0;if(V.push({from:j.from,to:j.to,text:j.text}),i)for(var q in j)(X=q.match(/^spans_(\d+)$/))&&te(i,Number(X[1]))>-1&&(Re(V)[q]=j[q],delete j[q])}}return u}function Us(e,i,f,u){if(u){var h=e.anchor;if(f){var _=de(i,h)<0;_!=de(f,h)<0?(h=i,i=f):_!=de(i,f)<0&&(i=f)}return new nt(h,i)}else return new nt(f||i,i)}function ya(e,i,f,u,h){h==null&&(h=e.cm&&(e.cm.display.shift||e.extend)),Ft(e,new cn([Us(e.sel.primary(),i,f,h)],0),u)}function kc(e,i,f){for(var u=[],h=e.cm&&(e.cm.display.shift||e.extend),_=0;_<e.sel.ranges.length;_++)u[_]=Us(e.sel.ranges[_],i[_],null,h);var I=xn(e.cm,u,e.sel.primIndex);Ft(e,I,f)}function Ws(e,i,f,u){var h=e.sel.ranges.slice(0);h[i]=f,Ft(e,xn(e.cm,h,e.sel.primIndex),u)}function Bc(e,i,f,u){Ft(e,mi(i,f),u)}function aC(e,i,f){var u={ranges:i.ranges,update:function(h){this.ranges=[];for(var _=0;_<h.length;_++)this.ranges[_]=new nt(Me(e,h[_].anchor),Me(e,h[_].head))},origin:f&&f.origin};return Ne(e,"beforeSelectionChange",e,u),e.cm&&Ne(e.cm,"beforeSelectionChange",e.cm,u),u.ranges!=i.ranges?xn(e.cm,u.ranges,u.ranges.length-1):i}function Ic(e,i,f){var u=e.history.done,h=Re(u);h&&h.ranges?(u[u.length-1]=i,ba(e,i,f)):Ft(e,i,f)}function Ft(e,i,f){ba(e,i,f),iC(e,e.sel,e.cm?e.cm.curOp.id:NaN,f)}function ba(e,i,f){(ct(e,"beforeSelectionChange")||e.cm&&ct(e.cm,"beforeSelectionChange"))&&(i=aC(e,i,f));var u=f&&f.bias||(de(i.primary().head,e.sel.primary().head)<0?-1:1);Mc(e,Lc(e,i,u,!0)),!(f&&f.scroll===!1)&&e.cm&&e.cm.getOption("readOnly")!="nocursor"&&lr(e.cm)}function Mc(e,i){i.equals(e.sel)||(e.sel=i,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,Wt(e.cm)),kt(e,"cursorActivity",e))}function Pc(e){Mc(e,Lc(e,e.sel,null,!1))}function Lc(e,i,f,u){for(var h,_=0;_<i.ranges.length;_++){var I=i.ranges[_],V=i.ranges.length==e.sel.ranges.length&&e.sel.ranges[_],H=Aa(e,I.anchor,V&&V.anchor,f,u),j=I.head==I.anchor?H:Aa(e,I.head,V&&V.head,f,u);(h||H!=I.anchor||j!=I.head)&&(h||(h=i.ranges.slice(0,_)),h[_]=new nt(H,j))}return h?xn(e.cm,h,i.primIndex):i}function fr(e,i,f,u,h){var _=_e(e,i.line);if(_.markedSpans)for(var I=0;I<_.markedSpans.length;++I){var V=_.markedSpans[I],H=V.marker,j="selectLeft"in H?!H.selectLeft:H.inclusiveLeft,X="selectRight"in H?!H.selectRight:H.inclusiveRight;if((V.from==null||(j?V.from<=i.ch:V.from<i.ch))&&(V.to==null||(X?V.to>=i.ch:V.to>i.ch))){if(h&&(Ne(H,"beforeCursorEnter"),H.explicitlyCleared))if(_.markedSpans){--I;continue}else break;if(!H.atomic)continue;if(f){var q=H.find(u<0?1:-1),oe=void 0;if((u<0?X:j)&&(q=Vc(e,q,-u,q&&q.line==i.line?_:null)),q&&q.line==i.line&&(oe=de(q,f))&&(u<0?oe<0:oe>0))return fr(e,q,i,u,h)}var re=H.find(u<0?-1:1);return(u<0?j:X)&&(re=Vc(e,re,u,re.line==i.line?_:null)),re?fr(e,re,i,u,h):null}}return i}function Aa(e,i,f,u,h){var _=u||1,I=fr(e,i,f,_,h)||!h&&fr(e,i,f,_,!0)||fr(e,i,f,-_,h)||!h&&fr(e,i,f,-_,!0);return I||(e.cantEdit=!0,ne(e.first,0))}function Vc(e,i,f,u){return f<0&&i.ch==0?i.line>e.first?Me(e,ne(i.line-1)):null:f>0&&i.ch==(u||_e(e,i.line)).text.length?i.line<e.first+e.size-1?ne(i.line+1,0):null:new ne(i.line,i.ch+f)}function Fc(e){e.setSelection(ne(e.firstLine(),0),ne(e.lastLine()),Ae)}function $c(e,i,f){var u={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return u.canceled=!0}};return f&&(u.update=function(h,_,I,V){h&&(u.from=Me(e,h)),_&&(u.to=Me(e,_)),I&&(u.text=I),V!==void 0&&(u.origin=V)}),Ne(e,"beforeChange",e,u),e.cm&&Ne(e.cm,"beforeChange",e.cm,u),u.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:u.from,to:u.to,text:u.text,origin:u.origin}}function dr(e,i,f){if(e.cm){if(!e.cm.curOp)return Bt(e.cm,dr)(e,i,f);if(e.cm.state.suppressEdits)return}if(!((ct(e,"beforeChange")||e.cm&&ct(e.cm,"beforeChange"))&&(i=$c(e,i,!0),!i))){var u=Od&&!f&&iA(e,i.from,i.to);if(u)for(var h=u.length-1;h>=0;--h)Hc(e,{from:u[h].from,to:u[h].to,text:h?[""]:i.text,origin:i.origin});else Hc(e,i)}}function Hc(e,i){if(!(i.text.length==1&&i.text[0]==""&&de(i.from,i.to)==0)){var f=$s(e,i);Dc(e,i,f,e.cm?e.cm.curOp.id:NaN),io(e,i,f,ps(e,i));var u=[];vi(e,function(h,_){!_&&te(u,h.history)==-1&&(Wc(h.history,i),u.push(h.history)),io(h,i,null,ps(h,i))})}}function Ca(e,i,f){var u=e.cm&&e.cm.state.suppressEdits;if(!(u&&!f)){for(var h=e.history,_,I=e.sel,V=i=="undo"?h.done:h.undone,H=i=="undo"?h.undone:h.done,j=0;j<V.length&&(_=V[j],!(f?_.ranges&&!_.equals(e.sel):!_.ranges));j++);if(j!=V.length){for(h.lastOrigin=h.lastSelOrigin=null;;)if(_=V.pop(),_.ranges){if(va(_,H),f&&!_.equals(e.sel)){Ft(e,_,{clearRedo:!1});return}I=_}else if(u){V.push(_);return}else break;var X=[];va(I,H),H.push({changes:X,generation:h.generation}),h.generation=_.generation||++h.maxGeneration;for(var q=ct(e,"beforeChange")||e.cm&&ct(e.cm,"beforeChange"),oe=function(he){var ge=_.changes[he];if(ge.origin=i,q&&!$c(e,ge,!1))return V.length=0,{};X.push(js(e,ge));var ve=he?$s(e,ge):Re(V);io(e,ge,ve,Oc(e,ge)),!he&&e.cm&&e.cm.scrollIntoView({from:ge.from,to:gi(ge)});var we=[];vi(e,function(ye,xe){!xe&&te(we,ye.history)==-1&&(Wc(ye.history,ge),we.push(ye.history)),io(ye,ge,null,Oc(ye,ge))})},re=_.changes.length-1;re>=0;--re){var ce=oe(re);if(ce)return ce.v}}}}function zc(e,i){if(i!=0&&(e.first+=i,e.sel=new cn(ot(e.sel.ranges,function(h){return new nt(ne(h.anchor.line+i,h.anchor.ch),ne(h.head.line+i,h.head.ch))}),e.sel.primIndex),e.cm)){Gt(e.cm,e.first,e.first-i,i);for(var f=e.cm.display,u=f.viewFrom;u<f.viewTo;u++)pi(e.cm,u,"gutter")}}function io(e,i,f,u){if(e.cm&&!e.cm.curOp)return Bt(e.cm,io)(e,i,f,u);if(i.to.line<e.first){zc(e,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>e.lastLine())){if(i.from.line<e.first){var h=i.text.length-1-(e.first-i.from.line);zc(e,h),i={from:ne(e.first,0),to:ne(i.to.line+h,i.to.ch),text:[Re(i.text)],origin:i.origin}}var _=e.lastLine();i.to.line>_&&(i={from:i.from,to:ne(_,_e(e,_).text.length),text:[i.text[0]],origin:i.origin}),i.removed=Kn(e,i.from,i.to),f||(f=$s(e,i)),e.cm?lC(e.cm,i,u):zs(e,i,u),ba(e,f,Ae),e.cantEdit&&Aa(e,ne(e.firstLine(),0))&&(e.cantEdit=!1)}}function lC(e,i,f){var u=e.doc,h=e.display,_=i.from,I=i.to,V=!1,H=_.line;e.options.lineWrapping||(H=tt(En(_e(u,_.line))),u.iter(H,I.line+1,function(re){if(re==h.maxLine)return V=!0,!0})),u.sel.contains(i.from,i.to)>-1&&Wt(e),zs(u,i,f,lc(e)),e.options.lineWrapping||(u.iter(H,_.line+i.text.length,function(re){var ce=ra(re);ce>h.maxLineLength&&(h.maxLine=re,h.maxLineLength=ce,h.maxLineChanged=!0,V=!1)}),V&&(e.curOp.updateMaxLine=!0)),X1(u,_.line),eo(e,400);var j=i.text.length-(I.line-_.line)-1;i.full?Gt(e):_.line==I.line&&i.text.length==1&&!xc(e.doc,i)?pi(e,_.line,"text"):Gt(e,_.line,I.line+1,j);var X=ct(e,"changes"),q=ct(e,"change");if(q||X){var oe={from:_,to:I,text:i.text,removed:i.removed,origin:i.origin};q&&kt(e,"change",e,oe),X&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(oe)}e.display.selForContextMenu=null}function cr(e,i,f,u,h){var _;u||(u=f),de(u,f)<0&&(_=[u,f],f=_[0],u=_[1]),typeof i=="string"&&(i=e.splitLines(i)),dr(e,{from:f,to:u,text:i,origin:h})}function jc(e,i,f,u){f<e.line?e.line+=u:i<e.line&&(e.line=i,e.ch=0)}function Uc(e,i,f,u){for(var h=0;h<e.length;++h){var _=e[h],I=!0;if(_.ranges){_.copied||(_=e[h]=_.deepCopy(),_.copied=!0);for(var V=0;V<_.ranges.length;V++)jc(_.ranges[V].anchor,i,f,u),jc(_.ranges[V].head,i,f,u);continue}for(var H=0;H<_.changes.length;++H){var j=_.changes[H];if(f<j.from.line)j.from=ne(j.from.line+u,j.from.ch),j.to=ne(j.to.line+u,j.to.ch);else if(i<=j.to.line){I=!1;break}}I||(e.splice(0,h+1),h=0)}}function Wc(e,i){var f=i.from.line,u=i.to.line,h=i.text.length-(u-f)-1;Uc(e.done,f,u,h),Uc(e.undone,f,u,h)}function ro(e,i,f,u){var h=i,_=i;return typeof i=="number"?_=_e(e,dn(e,i)):h=tt(i),h==null?null:(u(_,h)&&e.cm&&pi(e.cm,h,f),_)}function oo(e){this.lines=e,this.parent=null;for(var i=0,f=0;f<e.length;++f)e[f].parent=this,i+=e[f].height;this.height=i}oo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,i){for(var f=e,u=e+i;f<u;++f){var h=this.lines[f];this.height-=h.height,sA(h),kt(h,"delete")}this.lines.splice(e,i)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,i,f){this.height+=f,this.lines=this.lines.slice(0,e).concat(i).concat(this.lines.slice(e));for(var u=0;u<i.length;++u)i[u].parent=this},iterN:function(e,i,f){for(var u=e+i;e<u;++e)if(f(this.lines[e]))return!0}};function ao(e){this.children=e;for(var i=0,f=0,u=0;u<e.length;++u){var h=e[u];i+=h.chunkSize(),f+=h.height,h.parent=this}this.size=i,this.height=f,this.parent=null}ao.prototype={chunkSize:function(){return this.size},removeInner:function(e,i){this.size-=i;for(var f=0;f<this.children.length;++f){var u=this.children[f],h=u.chunkSize();if(e<h){var _=Math.min(i,h-e),I=u.height;if(u.removeInner(e,_),this.height-=I-u.height,h==_&&(this.children.splice(f--,1),u.parent=null),(i-=_)==0)break;e=0}else e-=h}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof oo))){var V=[];this.collapse(V),this.children=[new oo(V)],this.children[0].parent=this}},collapse:function(e){for(var i=0;i<this.children.length;++i)this.children[i].collapse(e)},insertInner:function(e,i,f){this.size+=i.length,this.height+=f;for(var u=0;u<this.children.length;++u){var h=this.children[u],_=h.chunkSize();if(e<=_){if(h.insertInner(e,i,f),h.lines&&h.lines.length>50){for(var I=h.lines.length%25+25,V=I;V<h.lines.length;){var H=new oo(h.lines.slice(V,V+=25));h.height-=H.height,this.children.splice(++u,0,H),H.parent=this}h.lines=h.lines.slice(0,I),this.maybeSpill()}break}e-=_}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var i=e.children.splice(e.children.length-5,5),f=new ao(i);if(e.parent){e.size-=f.size,e.height-=f.height;var h=te(e.parent.children,e);e.parent.children.splice(h+1,0,f)}else{var u=new ao(e.children);u.parent=e,e.children=[u,f],e=u}f.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,i,f){for(var u=0;u<this.children.length;++u){var h=this.children[u],_=h.chunkSize();if(e<_){var I=Math.min(i,_-e);if(h.iterN(e,I,f))return!0;if((i-=I)==0)break;e=0}else e-=_}}};var lo=function(e,i,f){if(f)for(var u in f)f.hasOwnProperty(u)&&(this[u]=f[u]);this.doc=e,this.node=i};lo.prototype.clear=function(){var e=this.doc.cm,i=this.line.widgets,f=this.line,u=tt(f);if(!(u==null||!i)){for(var h=0;h<i.length;++h)i[h]==this&&i.splice(h--,1);i.length||(f.widgets=null);var _=Gr(this);vn(f,Math.max(0,f.height-_)),e&&(nn(e,function(){Kc(e,f,-_),pi(e,u,"widget")}),kt(e,"lineWidgetCleared",e,this,u))}},lo.prototype.changed=function(){var e=this,i=this.height,f=this.doc.cm,u=this.line;this.height=null;var h=Gr(this)-i;!h||(ci(this.doc,u)||vn(u,u.height+h),f&&nn(f,function(){f.curOp.forceUpdate=!0,Kc(f,u,h),kt(f,"lineWidgetChanged",f,e,tt(u))}))},lt(lo);function Kc(e,i,f){Yn(i)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Is(e,f)}function sC(e,i,f,u){var h=new lo(e,f,u),_=e.cm;return _&&h.noHScroll&&(_.display.alignWidgets=!0),ro(e,i,"widget",function(I){var V=I.widgets||(I.widgets=[]);if(h.insertAt==null?V.push(h):V.splice(Math.min(V.length,Math.max(0,h.insertAt)),0,h),h.line=I,_&&!ci(e,I)){var H=Yn(I)<e.scrollTop;vn(I,I.height+Gr(h)),H&&Is(_,h.height),_.curOp.forceUpdate=!0}return!0}),_&&kt(_,"lineWidgetAdded",_,h,typeof i=="number"?i:tt(i)),h}var Gc=0,yi=function(e,i){this.lines=[],this.type=i,this.doc=e,this.id=++Gc};yi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,i=e&&!e.curOp;if(i&&Bi(e),ct(this,"clear")){var f=this.find();f&&kt(this,"clear",f.from,f.to)}for(var u=null,h=null,_=0;_<this.lines.length;++_){var I=this.lines[_],V=Ur(I.markedSpans,this);e&&!this.collapsed?pi(e,tt(I),"text"):e&&(V.to!=null&&(h=tt(I)),V.from!=null&&(u=tt(I))),I.markedSpans=q1(I.markedSpans,V),V.from==null&&this.collapsed&&!ci(this.doc,I)&&e&&vn(I,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var H=0;H<this.lines.length;++H){var j=En(this.lines[H]),X=ra(j);X>e.display.maxLineLength&&(e.display.maxLine=j,e.display.maxLineLength=X,e.display.maxLineChanged=!0)}u!=null&&e&&this.collapsed&&Gt(e,u,h+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Pc(e.doc)),e&&kt(e,"markerCleared",e,this,u,h),i&&Ii(e),this.parent&&this.parent.clear()}},yi.prototype.find=function(e,i){e==null&&this.type=="bookmark"&&(e=1);for(var f,u,h=0;h<this.lines.length;++h){var _=this.lines[h],I=Ur(_.markedSpans,this);if(I.from!=null&&(f=ne(i?_:tt(_),I.from),e==-1))return f;if(I.to!=null&&(u=ne(i?_:tt(_),I.to),e==1))return u}return f&&{from:f,to:u}},yi.prototype.changed=function(){var e=this,i=this.find(-1,!0),f=this,u=this.doc.cm;!i||!u||nn(u,function(){var h=i.line,_=tt(i.line),I=Cs(u,_);if(I&&(qd(I),u.curOp.selectionChanged=u.curOp.forceUpdate=!0),u.curOp.updateMaxLine=!0,!ci(f.doc,h)&&f.height!=null){var V=f.height;f.height=null;var H=Gr(f)-V;H&&vn(h,h.height+H)}kt(u,"markerChanged",u,e)})},yi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||te(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},yi.prototype.detachLine=function(e){if(this.lines.splice(te(this.lines,e),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},lt(yi);function pr(e,i,f,u,h){if(u&&u.shared)return uC(e,i,f,u,h);if(e.cm&&!e.cm.curOp)return Bt(e.cm,pr)(e,i,f,u,h);var _=new yi(e,h),I=de(i,f);if(u&&ue(u,_,!1),I>0||I==0&&_.clearWhenEmpty!==!1)return _;if(_.replacedWith&&(_.collapsed=!0,_.widgetNode=U("span",[_.replacedWith],"CodeMirror-widget"),u.handleMouseEvents||_.widgetNode.setAttribute("cm-ignore-events","true"),u.insertLeft&&(_.widgetNode.insertLeft=!0)),_.collapsed){if(Ld(e,i.line,i,f,_)||i.line!=f.line&&Ld(e,f.line,i,f,_))throw new Error("Inserting collapsed marker partially overlapping an existing one");Z1()}_.addToHistory&&Dc(e,{from:i,to:f,origin:"markText"},e.sel,NaN);var V=i.line,H=e.cm,j;if(e.iter(V,f.line+1,function(q){H&&_.collapsed&&!H.options.lineWrapping&&En(q)==H.display.maxLine&&(j=!0),_.collapsed&&V!=i.line&&vn(q,0),eA(q,new ea(_,V==i.line?i.ch:null,V==f.line?f.ch:null),e.cm&&e.cm.curOp),++V}),_.collapsed&&e.iter(i.line,f.line+1,function(q){ci(e,q)&&vn(q,0)}),_.clearOnEnter&&fe(_,"beforeCursorEnter",function(){return _.clear()}),_.readOnly&&(J1(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),_.collapsed&&(_.id=++Gc,_.atomic=!0),H){if(j&&(H.curOp.updateMaxLine=!0),_.collapsed)Gt(H,i.line,f.line+1);else if(_.className||_.startStyle||_.endStyle||_.css||_.attributes||_.title)for(var X=i.line;X<=f.line;X++)pi(H,X,"text");_.atomic&&Pc(H.doc),kt(H,"markerAdded",H,_)}return _}var so=function(e,i){this.markers=e,this.primary=i;for(var f=0;f<e.length;++f)e[f].parent=this};so.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();kt(this,"clear")}},so.prototype.find=function(e,i){return this.primary.find(e,i)},lt(so);function uC(e,i,f,u,h){u=ue(u),u.shared=!1;var _=[pr(e,i,f,u,h)],I=_[0],V=u.widgetNode;return vi(e,function(H){V&&(u.widgetNode=V.cloneNode(!0)),_.push(pr(H,Me(H,i),Me(H,f),u,h));for(var j=0;j<H.linked.length;++j)if(H.linked[j].isParent)return;I=Re(_)}),new so(_,I)}function Yc(e){return e.findMarks(ne(e.first,0),e.clipPos(ne(e.lastLine())),function(i){return i.parent})}function fC(e,i){for(var f=0;f<i.length;f++){var u=i[f],h=u.find(),_=e.clipPos(h.from),I=e.clipPos(h.to);if(de(_,I)){var V=pr(e,_,I,u.primary,u.primary.type);u.markers.push(V),V.parent=u}}}function dC(e){for(var i=function(u){var h=e[u],_=[h.primary.doc];vi(h.primary.doc,function(H){return _.push(H)});for(var I=0;I<h.markers.length;I++){var V=h.markers[I];te(_,V.doc)==-1&&(V.parent=null,h.markers.splice(I--,1))}},f=0;f<e.length;f++)i(f)}var cC=0,Yt=function(e,i,f,u,h){if(!(this instanceof Yt))return new Yt(e,i,f,u,h);f==null&&(f=0),ao.call(this,[new oo([new tr("",null)])]),this.first=f,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=f;var _=ne(f,0);this.sel=mi(_),this.history=new ga(null),this.id=++cC,this.modeOption=i,this.lineSep=u,this.direction=h=="rtl"?"rtl":"ltr",this.extend=!1,typeof e=="string"&&(e=this.splitLines(e)),zs(this,{from:_,to:_,text:e}),Ft(this,mi(_),Ae)};Yt.prototype=ai(ao.prototype,{constructor:Yt,iter:function(e,i,f){f?this.iterN(e-this.first,i-e,f):this.iterN(this.first,this.first+this.size,e)},insert:function(e,i){for(var f=0,u=0;u<i.length;++u)f+=i[u].height;this.insertInner(e-this.first,i,f)},remove:function(e,i){this.removeInner(e-this.first,i)},getValue:function(e){var i=er(this,this.first,this.first+this.size);return e===!1?i:i.join(e||this.lineSeparator())},setValue:It(function(e){var i=ne(this.first,0),f=this.first+this.size-1;dr(this,{from:i,to:ne(f,_e(this,f).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Xr(this.cm,0,0),Ft(this,mi(i),Ae)}),replaceRange:function(e,i,f,u){i=Me(this,i),f=f?Me(this,f):i,cr(this,e,i,f,u)},getRange:function(e,i,f){var u=Kn(this,Me(this,e),Me(this,i));return f===!1?u:f===""?u.join(""):u.join(f||this.lineSeparator())},getLine:function(e){var i=this.getLineHandle(e);return i&&i.text},getLineHandle:function(e){if(K(this,e))return _e(this,e)},getLineNumber:function(e){return tt(e)},getLineHandleVisualStart:function(e){return typeof e=="number"&&(e=_e(this,e)),En(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return Me(this,e)},getCursor:function(e){var i=this.sel.primary(),f;return e==null||e=="head"?f=i.head:e=="anchor"?f=i.anchor:e=="end"||e=="to"||e===!1?f=i.to():f=i.from(),f},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:It(function(e,i,f){Bc(this,Me(this,typeof e=="number"?ne(e,i||0):e),null,f)}),setSelection:It(function(e,i,f){Bc(this,Me(this,e),Me(this,i||e),f)}),extendSelection:It(function(e,i,f){ya(this,Me(this,e),i&&Me(this,i),f)}),extendSelections:It(function(e,i){kc(this,Ed(this,e),i)}),extendSelectionsBy:It(function(e,i){var f=ot(this.sel.ranges,e);kc(this,Ed(this,f),i)}),setSelections:It(function(e,i,f){if(!!e.length){for(var u=[],h=0;h<e.length;h++)u[h]=new nt(Me(this,e[h].anchor),Me(this,e[h].head||e[h].anchor));i==null&&(i=Math.min(e.length-1,this.sel.primIndex)),Ft(this,xn(this.cm,u,i),f)}}),addSelection:It(function(e,i,f){var u=this.sel.ranges.slice(0);u.push(new nt(Me(this,e),Me(this,i||e))),Ft(this,xn(this.cm,u,u.length-1),f)}),getSelection:function(e){for(var i=this.sel.ranges,f,u=0;u<i.length;u++){var h=Kn(this,i[u].from(),i[u].to());f=f?f.concat(h):h}return e===!1?f:f.join(e||this.lineSeparator())},getSelections:function(e){for(var i=[],f=this.sel.ranges,u=0;u<f.length;u++){var h=Kn(this,f[u].from(),f[u].to());e!==!1&&(h=h.join(e||this.lineSeparator())),i[u]=h}return i},replaceSelection:function(e,i,f){for(var u=[],h=0;h<this.sel.ranges.length;h++)u[h]=e;this.replaceSelections(u,i,f||"+input")},replaceSelections:It(function(e,i,f){for(var u=[],h=this.sel,_=0;_<h.ranges.length;_++){var I=h.ranges[_];u[_]={from:I.from(),to:I.to(),text:this.splitLines(e[_]),origin:f}}for(var V=i&&i!="end"&&qA(this,u,i),H=u.length-1;H>=0;H--)dr(this,u[H]);V?Ic(this,V):this.cm&&lr(this.cm)}),undo:It(function(){Ca(this,"undo")}),redo:It(function(){Ca(this,"redo")}),undoSelection:It(function(){Ca(this,"undo",!0)}),redoSelection:It(function(){Ca(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,i=0,f=0,u=0;u<e.done.length;u++)e.done[u].ranges||++i;for(var h=0;h<e.undone.length;h++)e.undone[h].ranges||++f;return{undo:i,redo:f}},clearHistory:function(){var e=this;this.history=new ga(this.history),vi(this,function(i){return i.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:ur(this.history.done),undone:ur(this.history.undone)}},setHistory:function(e){var i=this.history=new ga(this.history);i.done=ur(e.done.slice(0),null,!0),i.undone=ur(e.undone.slice(0),null,!0)},setGutterMarker:It(function(e,i,f){return ro(this,e,"gutter",function(u){var h=u.gutterMarkers||(u.gutterMarkers={});return h[i]=f,!f&&kn(h)&&(u.gutterMarkers=null),!0})}),clearGutter:It(function(e){var i=this;this.iter(function(f){f.gutterMarkers&&f.gutterMarkers[e]&&ro(i,f,"gutter",function(){return f.gutterMarkers[e]=null,kn(f.gutterMarkers)&&(f.gutterMarkers=null),!0})})}),lineInfo:function(e){var i;if(typeof e=="number"){if(!K(this,e)||(i=e,e=_e(this,e),!e))return null}else if(i=tt(e),i==null)return null;return{line:i,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:It(function(e,i,f){return ro(this,e,i=="gutter"?"gutter":"class",function(u){var h=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!u[h])u[h]=f;else{if(w(f).test(u[h]))return!1;u[h]+=" "+f}return!0})}),removeLineClass:It(function(e,i,f){return ro(this,e,i=="gutter"?"gutter":"class",function(u){var h=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",_=u[h];if(_)if(f==null)u[h]=null;else{var I=_.match(w(f));if(!I)return!1;var V=I.index+I[0].length;u[h]=_.slice(0,I.index)+(!I.index||V==_.length?"":" ")+_.slice(V)||null}else return!1;return!0})}),addLineWidget:It(function(e,i,f){return sC(this,e,i,f)}),removeLineWidget:function(e){e.clear()},markText:function(e,i,f){return pr(this,Me(this,e),Me(this,i),f,f&&f.type||"range")},setBookmark:function(e,i){var f={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return e=Me(this,e),pr(this,e,e,f,"bookmark")},findMarksAt:function(e){e=Me(this,e);var i=[],f=_e(this,e.line).markedSpans;if(f)for(var u=0;u<f.length;++u){var h=f[u];(h.from==null||h.from<=e.ch)&&(h.to==null||h.to>=e.ch)&&i.push(h.marker.parent||h.marker)}return i},findMarks:function(e,i,f){e=Me(this,e),i=Me(this,i);var u=[],h=e.line;return this.iter(e.line,i.line+1,function(_){var I=_.markedSpans;if(I)for(var V=0;V<I.length;V++){var H=I[V];!(H.to!=null&&h==e.line&&e.ch>=H.to||H.from==null&&h!=e.line||H.from!=null&&h==i.line&&H.from>=i.ch)&&(!f||f(H.marker))&&u.push(H.marker.parent||H.marker)}++h}),u},getAllMarks:function(){var e=[];return this.iter(function(i){var f=i.markedSpans;if(f)for(var u=0;u<f.length;++u)f[u].from!=null&&e.push(f[u].marker)}),e},posFromIndex:function(e){var i,f=this.first,u=this.lineSeparator().length;return this.iter(function(h){var _=h.text.length+u;if(_>e)return i=e,!0;e-=_,++f}),Me(this,ne(f,i))},indexFromPos:function(e){e=Me(this,e);var i=e.ch;if(e.line<this.first||e.ch<0)return 0;var f=this.lineSeparator().length;return this.iter(this.first,e.line,function(u){i+=u.text.length+f}),i},copy:function(e){var i=new Yt(er(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,e&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(e){e||(e={});var i=this.first,f=this.first+this.size;e.from!=null&&e.from>i&&(i=e.from),e.to!=null&&e.to<f&&(f=e.to);var u=new Yt(er(this,i,f),e.mode||this.modeOption,i,this.lineSep,this.direction);return e.sharedHist&&(u.history=this.history),(this.linked||(this.linked=[])).push({doc:u,sharedHist:e.sharedHist}),u.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],fC(u,Yc(this)),u},unlinkDoc:function(e){if(e instanceof ft&&(e=e.doc),this.linked)for(var i=0;i<this.linked.length;++i){var f=this.linked[i];if(f.doc==e){this.linked.splice(i,1),e.unlinkDoc(this),dC(Yc(this));break}}if(e.history==this.history){var u=[e.id];vi(e,function(h){return u.push(h.id)},!0),e.history=new ga(null),e.history.done=ur(this.history.done,u),e.history.undone=ur(this.history.undone,u)}},iterLinkedDocs:function(e){vi(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Hr(e)},lineSeparator:function(){return this.lineSep||`
`},setDirection:It(function(e){e!="rtl"&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(i){return i.order=null}),this.cm&&eC(this.cm))})}),Yt.prototype.eachLine=Yt.prototype.iter;var Qc=0;function pC(e){var i=this;if(Xc(i),!($e(i,e)||Qn(i.display,e))){et(e),p&&(Qc=+new Date);var f=Di(i,e,!0),u=e.dataTransfer.files;if(!(!f||i.isReadOnly()))if(u&&u.length&&window.FileReader&&window.File)for(var h=u.length,_=Array(h),I=0,V=function(){++I==h&&Bt(i,function(){f=Me(i.doc,f);var re={from:f,to:f,text:i.doc.splitLines(_.filter(function(ce){return ce!=null}).join(i.doc.lineSeparator())),origin:"paste"};dr(i.doc,re),Ic(i.doc,mi(Me(i.doc,f),Me(i.doc,gi(re))))})()},H=function(re,ce){if(i.options.allowDropFileTypes&&te(i.options.allowDropFileTypes,re.type)==-1){V();return}var he=new FileReader;he.onerror=function(){return V()},he.onload=function(){var ge=he.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ge)){V();return}_[ce]=ge,V()},he.readAsText(re)},j=0;j<u.length;j++)H(u[j],j);else{if(i.state.draggingText&&i.doc.sel.contains(f)>-1){i.state.draggingText(e),setTimeout(function(){return i.display.input.focus()},20);return}try{var X=e.dataTransfer.getData("Text");if(X){var q;if(i.state.draggingText&&!i.state.draggingText.copy&&(q=i.listSelections()),ba(i.doc,mi(f,f)),q)for(var oe=0;oe<q.length;++oe)cr(i.doc,"",q[oe].anchor,q[oe].head,"drag");i.replaceSelection(X,"around","paste"),i.display.input.focus()}}catch{}}}}function hC(e,i){if(p&&(!e.state.draggingText||+new Date-Qc<100)){Cn(i);return}if(!($e(e,i)||Qn(e.display,i))&&(i.dataTransfer.setData("Text",e.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!x)){var f=P("img",null,null,"position: fixed; left: 0; top: 0;");f.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",C&&(f.width=f.height=1,e.display.wrapper.appendChild(f),f._top=f.offsetTop),i.dataTransfer.setDragImage(f,0,0),C&&f.parentNode.removeChild(f)}}function mC(e,i){var f=Di(e,i);if(!!f){var u=document.createDocumentFragment();Ds(e,f,u),e.display.dragCursor||(e.display.dragCursor=P("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),W(e.display.dragCursor,u)}}function Xc(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Jc(e){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),f=[],u=0;u<i.length;u++){var h=i[u].CodeMirror;h&&f.push(h)}f.length&&f[0].operation(function(){for(var _=0;_<f.length;_++)e(f[_])})}}var Zc=!1;function gC(){Zc||(vC(),Zc=!0)}function vC(){var e;fe(window,"resize",function(){e==null&&(e=setTimeout(function(){e=null,Jc(yC)},100))}),fe(window,"blur",function(){return Jc(ar)})}function yC(e){var i=e.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,e.setSize()}for(var bi={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"},uo=0;uo<10;uo++)bi[uo+48]=bi[uo+96]=String(uo);for(var wa=65;wa<=90;wa++)bi[wa]=String.fromCharCode(wa);for(var fo=1;fo<=12;fo++)bi[fo+111]=bi[fo+63235]="F"+fo;var Jn={};Jn.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"},Jn.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"},Jn.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"},Jn.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"]},Jn.default=O?Jn.macDefault:Jn.pcDefault;function bC(e){var i=e.split(/-(?!$)/);e=i[i.length-1];for(var f,u,h,_,I=0;I<i.length-1;I++){var V=i[I];if(/^(cmd|meta|m)$/i.test(V))_=!0;else if(/^a(lt)?$/i.test(V))f=!0;else if(/^(c|ctrl|control)$/i.test(V))u=!0;else if(/^s(hift)?$/i.test(V))h=!0;else throw new Error("Unrecognized modifier name: "+V)}return f&&(e="Alt-"+e),u&&(e="Ctrl-"+e),_&&(e="Cmd-"+e),h&&(e="Shift-"+e),e}function AC(e){var i={};for(var f in e)if(e.hasOwnProperty(f)){var u=e[f];if(/^(name|fallthrough|(de|at)tach)$/.test(f))continue;if(u=="..."){delete e[f];continue}for(var h=ot(f.split(" "),bC),_=0;_<h.length;_++){var I=void 0,V=void 0;_==h.length-1?(V=h.join(" "),I=u):(V=h.slice(0,_+1).join(" "),I="...");var H=i[V];if(!H)i[V]=I;else if(H!=I)throw new Error("Inconsistent bindings for "+V)}delete e[f]}for(var j in i)e[j]=i[j];return e}function hr(e,i,f,u){i=Ea(i);var h=i.call?i.call(e,u):i[e];if(h===!1)return"nothing";if(h==="...")return"multi";if(h!=null&&f(h))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return hr(e,i.fallthrough,f,u);for(var _=0;_<i.fallthrough.length;_++){var I=hr(e,i.fallthrough[_],f,u);if(I)return I}}}function qc(e){var i=typeof e=="string"?e:bi[e.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function ep(e,i,f){var u=e;return i.altKey&&u!="Alt"&&(e="Alt-"+e),(F?i.metaKey:i.ctrlKey)&&u!="Ctrl"&&(e="Ctrl-"+e),(F?i.ctrlKey:i.metaKey)&&u!="Mod"&&(e="Cmd-"+e),!f&&i.shiftKey&&u!="Shift"&&(e="Shift-"+e),e}function tp(e,i){if(C&&e.keyCode==34&&e.char)return!1;var f=bi[e.keyCode];return f==null||e.altGraphKey?!1:(e.keyCode==3&&e.code&&(f=e.code),ep(f,e,i))}function Ea(e){return typeof e=="string"?Jn[e]:e}function mr(e,i){for(var f=e.doc.sel.ranges,u=[],h=0;h<f.length;h++){for(var _=i(f[h]);u.length&&de(_.from,Re(u).to)<=0;){var I=u.pop();if(de(I.from,_.from)<0){_.from=I.from;break}}u.push(_)}nn(e,function(){for(var V=u.length-1;V>=0;V--)cr(e.doc,"",u[V].from,u[V].to,"+delete");lr(e)})}function Ks(e,i,f){var u=Tt(e.text,i+f,f);return u<0||u>e.text.length?null:u}function Gs(e,i,f){var u=Ks(e,i.ch,f);return u==null?null:new ne(i.line,u,f<0?"after":"before")}function Ys(e,i,f,u,h){if(e){i.doc.direction=="rtl"&&(h=-h);var _=Be(f,i.doc.direction);if(_){var I=h<0?Re(_):_[0],V=h<0==(I.level==1),H=V?"after":"before",j;if(I.level>0||i.doc.direction=="rtl"){var X=ir(i,f);j=h<0?f.text.length-1:0;var q=Vn(i,X,j).top;j=qe(function(oe){return Vn(i,X,oe).top==q},h<0==(I.level==1)?I.from:I.to-1,j),H=="before"&&(j=Ks(f,j,1))}else j=h<0?I.to:I.from;return new ne(u,j,H)}}return new ne(u,h<0?f.text.length:0,h<0?"before":"after")}function CC(e,i,f,u){var h=Be(i,e.doc.direction);if(!h)return Gs(i,f,u);f.ch>=i.text.length?(f.ch=i.text.length,f.sticky="before"):f.ch<=0&&(f.ch=0,f.sticky="after");var _=Ee(h,f.ch,f.sticky),I=h[_];if(e.doc.direction=="ltr"&&I.level%2==0&&(u>0?I.to>f.ch:I.from<f.ch))return Gs(i,f,u);var V=function(ve,we){return Ks(i,ve instanceof ne?ve.ch:ve,we)},H,j=function(ve){return e.options.lineWrapping?(H=H||ir(e,i),ac(e,i,H,ve)):{begin:0,end:i.text.length}},X=j(f.sticky=="before"?V(f,-1):f.ch);if(e.doc.direction=="rtl"||I.level==1){var q=I.level==1==u<0,oe=V(f,q?1:-1);if(oe!=null&&(q?oe<=I.to&&oe<=X.end:oe>=I.from&&oe>=X.begin)){var re=q?"before":"after";return new ne(f.line,oe,re)}}var ce=function(ve,we,ye){for(var xe=function(at,Mt){return Mt?new ne(f.line,V(at,1),"before"):new ne(f.line,at,"after")};ve>=0&&ve<h.length;ve+=we){var ke=h[ve],Oe=we>0==(ke.level!=1),Ue=Oe?ye.begin:V(ye.end,-1);if(ke.from<=Ue&&Ue<ke.to||(Ue=Oe?ke.from:V(ke.to,-1),ye.begin<=Ue&&Ue<ye.end))return xe(Ue,Oe)}},he=ce(_+u,u,X);if(he)return he;var ge=u>0?X.end:V(X.begin,-1);return ge!=null&&!(u>0&&ge==i.text.length)&&(he=ce(u>0?0:h.length-1,u,j(ge)),he)?he:null}var co={selectAll:Fc,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ae)},killLine:function(e){return mr(e,function(i){if(i.empty()){var f=_e(e.doc,i.head.line).text.length;return i.head.ch==f&&i.head.line<e.lastLine()?{from:i.head,to:ne(i.head.line+1,0)}:{from:i.head,to:ne(i.head.line,f)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(e){return mr(e,function(i){return{from:ne(i.from().line,0),to:Me(e.doc,ne(i.to().line+1,0))}})},delLineLeft:function(e){return mr(e,function(i){return{from:ne(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(e){return mr(e,function(i){var f=e.charCoords(i.head,"div").top+5,u=e.coordsChar({left:0,top:f},"div");return{from:u,to:i.from()}})},delWrappedLineRight:function(e){return mr(e,function(i){var f=e.charCoords(i.head,"div").top+5,u=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:f},"div");return{from:i.from(),to:u}})},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(ne(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(ne(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(i){return np(e,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(i){return ip(e,i.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(i){return wC(e,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(i){var f=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:f},"div")},Qe)},goLineLeft:function(e){return e.extendSelectionsBy(function(i){var f=e.cursorCoords(i.head,"div").top+5;return e.coordsChar({left:0,top:f},"div")},Qe)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(i){var f=e.cursorCoords(i.head,"div").top+5,u=e.coordsChar({left:0,top:f},"div");return u.ch<e.getLine(u.line).search(/\S/)?ip(e,i.head):u},Qe)},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 i=[],f=e.listSelections(),u=e.options.tabSize,h=0;h<f.length;h++){var _=f[h].from(),I=se(e.getLine(_.line),_.ch,u);i.push(ut(u-I%u))}e.replaceSelections(i)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return nn(e,function(){for(var i=e.listSelections(),f=[],u=0;u<i.length;u++)if(!!i[u].empty()){var h=i[u].head,_=_e(e.doc,h.line).text;if(_){if(h.ch==_.length&&(h=new ne(h.line,h.ch-1)),h.ch>0)h=new ne(h.line,h.ch+1),e.replaceRange(_.charAt(h.ch-1)+_.charAt(h.ch-2),ne(h.line,h.ch-2),h,"+transpose");else if(h.line>e.doc.first){var I=_e(e.doc,h.line-1).text;I&&(h=new ne(h.line,1),e.replaceRange(_.charAt(0)+e.doc.lineSeparator()+I.charAt(I.length-1),ne(h.line-1,I.length-1),h,"+transpose"))}}f.push(new nt(h,h))}e.setSelections(f)})},newlineAndIndent:function(e){return nn(e,function(){for(var i=e.listSelections(),f=i.length-1;f>=0;f--)e.replaceRange(e.doc.lineSeparator(),i[f].anchor,i[f].head,"+input");i=e.listSelections();for(var u=0;u<i.length;u++)e.indentLine(i[u].from().line,null,!0);lr(e)})},openLine:function(e){return e.replaceSelection(`
`,"start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function np(e,i){var f=_e(e.doc,i),u=En(f);return u!=f&&(i=tt(u)),Ys(!0,e,u,i,1)}function wC(e,i){var f=_e(e.doc,i),u=oA(f);return u!=f&&(i=tt(u)),Ys(!0,e,f,i,-1)}function ip(e,i){var f=np(e,i.line),u=_e(e.doc,f.line),h=Be(u,e.doc.direction);if(!h||h[0].level==0){var _=Math.max(f.ch,u.text.search(/\S/)),I=i.line==f.line&&i.ch<=_&&i.ch;return ne(f.line,I?0:_,f.sticky)}return f}function Sa(e,i,f){if(typeof i=="string"&&(i=co[i],!i))return!1;e.display.input.ensurePolled();var u=e.display.shift,h=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),f&&(e.display.shift=!1),h=i(e)!=me}finally{e.display.shift=u,e.state.suppressEdits=!1}return h}function EC(e,i,f){for(var u=0;u<e.state.keyMaps.length;u++){var h=hr(i,e.state.keyMaps[u],f,e);if(h)return h}return e.options.extraKeys&&hr(i,e.options.extraKeys,f,e)||hr(i,e.options.keyMap,f,e)}var SC=new le;function po(e,i,f,u){var h=e.state.keySeq;if(h){if(qc(i))return"handled";if(/\'$/.test(i)?e.state.keySeq=null:SC.set(50,function(){e.state.keySeq==h&&(e.state.keySeq=null,e.display.input.reset())}),rp(e,h+" "+i,f,u))return!0}return rp(e,i,f,u)}function rp(e,i,f,u){var h=EC(e,i,u);return h=="multi"&&(e.state.keySeq=i),h=="handled"&&kt(e,"keyHandled",e,i,f),(h=="handled"||h=="multi")&&(et(f),Rs(e)),!!h}function op(e,i){var f=tp(i,!0);return f?i.shiftKey&&!e.state.keySeq?po(e,"Shift-"+f,i,function(u){return Sa(e,u,!0)})||po(e,f,i,function(u){if(typeof u=="string"?/^go[A-Z]/.test(u):u.motion)return Sa(e,u)}):po(e,f,i,function(u){return Sa(e,u)}):!1}function xC(e,i,f){return po(e,"'"+f+"'",i,function(u){return Sa(e,u,!0)})}var Qs=null;function ap(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&(i.curOp.focus=ie(Y(i)),!$e(i,e))){p&&m<11&&e.keyCode==27&&(e.returnValue=!1);var f=e.keyCode;i.display.shift=f==16||e.shiftKey;var u=op(i,e);C&&(Qs=u?f:null,!u&&f==88&&!Bn&&(O?e.metaKey:e.ctrlKey)&&i.replaceSelection("",null,"cut")),n&&!O&&!u&&f==46&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),f==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&TC(i)}}function TC(e){var i=e.display.lineDiv;B(i,"CodeMirror-crosshair");function f(u){(u.keyCode==18||!u.altKey)&&(L(i,"CodeMirror-crosshair"),Te(document,"keyup",f),Te(document,"mouseover",f))}fe(document,"keyup",f),fe(document,"mouseover",f)}function lp(e){e.keyCode==16&&(this.doc.sel.shift=!1),$e(this,e)}function sp(e){var i=this;if(!(e.target&&e.target!=i.display.input.getField())&&!(Qn(i.display,e)||$e(i,e)||e.ctrlKey&&!e.altKey||O&&e.metaKey)){var f=e.keyCode,u=e.charCode;if(C&&f==Qs){Qs=null,et(e);return}if(!(C&&(!e.which||e.which<10)&&op(i,e))){var h=String.fromCharCode(u==null?f:u);h!="\b"&&(xC(i,e,h)||i.display.input.onKeyPress(e))}}}var NC=400,Xs=function(e,i,f){this.time=e,this.pos=i,this.button=f};Xs.prototype.compare=function(e,i,f){return this.time+NC>e&&de(i,this.pos)==0&&f==this.button};var ho,mo;function _C(e,i){var f=+new Date;return mo&&mo.compare(f,e,i)?(ho=mo=null,"triple"):ho&&ho.compare(f,e,i)?(mo=new Xs(f,e,i),ho=null,"double"):(ho=new Xs(f,e,i),mo=null,"single")}function up(e){var i=this,f=i.display;if(!($e(i,e)||f.activeTouch&&f.input.supportsTouch())){if(f.input.ensurePolled(),f.shift=e.shiftKey,Qn(f,e)){v||(f.scroller.draggable=!1,setTimeout(function(){return f.scroller.draggable=!0},100));return}if(!Js(i,e)){var u=Di(i,e),h=$r(e),_=u?_C(u,h):"single";Z(i).focus(),h==1&&i.state.selectingText&&i.state.selectingText(e),!(u&&DC(i,h,u,_,e))&&(h==1?u?OC(i,u,_,e):Kt(e)==f.scroller&&et(e):h==2?(u&&ya(i.doc,u),setTimeout(function(){return f.input.focus()},20)):h==3&&(R?i.display.input.onContextMenu(e):Os(i)))}}}function DC(e,i,f,u,h){var _="Click";return u=="double"?_="Double"+_:u=="triple"&&(_="Triple"+_),_=(i==1?"Left":i==2?"Middle":"Right")+_,po(e,ep(_,h),h,function(I){if(typeof I=="string"&&(I=co[I]),!I)return!1;var V=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),V=I(e,f)!=me}finally{e.state.suppressEdits=!1}return V})}function RC(e,i,f){var u=e.getOption("configureMouse"),h=u?u(e,i,f):{};if(h.unit==null){var _=k?f.shiftKey&&f.metaKey:f.altKey;h.unit=_?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(h.extend==null||e.doc.extend)&&(h.extend=e.doc.extend||f.shiftKey),h.addNew==null&&(h.addNew=O?f.metaKey:f.ctrlKey),h.moveOnDrag==null&&(h.moveOnDrag=!(O?f.altKey:f.ctrlKey)),h}function OC(e,i,f,u){p?setTimeout(ae(fc,e),0):e.curOp.focus=ie(Y(e));var h=RC(e,f,u),_=e.doc.sel,I;e.options.dragDrop&&us&&!e.isReadOnly()&&f=="single"&&(I=_.contains(i))>-1&&(de((I=_.ranges[I]).from(),i)<0||i.xRel>0)&&(de(I.to(),i)>0||i.xRel<0)?kC(e,u,i,h):BC(e,u,i,h)}function kC(e,i,f,u){var h=e.display,_=!1,I=Bt(e,function(j){v&&(h.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:Os(e)),Te(h.wrapper.ownerDocument,"mouseup",I),Te(h.wrapper.ownerDocument,"mousemove",V),Te(h.scroller,"dragstart",H),Te(h.scroller,"drop",I),_||(et(j),u.addNew||ya(e.doc,f,null,null,u.extend),v&&!x||p&&m==9?setTimeout(function(){h.wrapper.ownerDocument.body.focus({preventScroll:!0}),h.input.focus()},20):h.input.focus())}),V=function(j){_=_||Math.abs(i.clientX-j.clientX)+Math.abs(i.clientY-j.clientY)>=10},H=function(){return _=!0};v&&(h.scroller.draggable=!0),e.state.draggingText=I,I.copy=!u.moveOnDrag,fe(h.wrapper.ownerDocument,"mouseup",I),fe(h.wrapper.ownerDocument,"mousemove",V),fe(h.scroller,"dragstart",H),fe(h.scroller,"drop",I),e.state.delayingBlurEvent=!0,setTimeout(function(){return h.input.focus()},20),h.scroller.dragDrop&&h.scroller.dragDrop()}function fp(e,i,f){if(f=="char")return new nt(i,i);if(f=="word")return e.findWordAt(i);if(f=="line")return new nt(ne(i.line,0),Me(e.doc,ne(i.line+1,0)));var u=f(e,i);return new nt(u.from,u.to)}function BC(e,i,f,u){p&&Os(e);var h=e.display,_=e.doc;et(i);var I,V,H=_.sel,j=H.ranges;if(u.addNew&&!u.extend?(V=_.sel.contains(f),V>-1?I=j[V]:I=new nt(f,f)):(I=_.sel.primary(),V=_.sel.primIndex),u.unit=="rectangle")u.addNew||(I=new nt(f,f)),f=Di(e,i,!0,!0),V=-1;else{var X=fp(e,f,u.unit);u.extend?I=Us(I,X.anchor,X.head,u.extend):I=X}u.addNew?V==-1?(V=j.length,Ft(_,xn(e,j.concat([I]),V),{scroll:!1,origin:"*mouse"})):j.length>1&&j[V].empty()&&u.unit=="char"&&!u.extend?(Ft(_,xn(e,j.slice(0,V).concat(j.slice(V+1)),0),{scroll:!1,origin:"*mouse"}),H=_.sel):Ws(_,V,I,Fe):(V=0,Ft(_,new cn([I],0),Fe),H=_.sel);var q=f;function oe(ye){if(de(q,ye)!=0)if(q=ye,u.unit=="rectangle"){for(var xe=[],ke=e.options.tabSize,Oe=se(_e(_,f.line).text,f.ch,ke),Ue=se(_e(_,ye.line).text,ye.ch,ke),at=Math.min(Oe,Ue),Mt=Math.max(Oe,Ue),pt=Math.min(f.line,ye.line),rn=Math.min(e.lastLine(),Math.max(f.line,ye.line));pt<=rn;pt++){var Qt=_e(_,pt).text,wt=Ge(Qt,at,ke);at==Mt?xe.push(new nt(ne(pt,wt),ne(pt,wt))):Qt.length>wt&&xe.push(new nt(ne(pt,wt),ne(pt,Ge(Qt,Mt,ke))))}xe.length||xe.push(new nt(f,f)),Ft(_,xn(e,H.ranges.slice(0,V).concat(xe),V),{origin:"*mouse",scroll:!1}),e.scrollIntoView(ye)}else{var Xt=I,Lt=fp(e,ye,u.unit),_t=Xt.anchor,Et;de(Lt.anchor,_t)>0?(Et=Lt.head,_t=Nt(Xt.from(),Lt.anchor)):(Et=Lt.anchor,_t=Ze(Xt.to(),Lt.head));var gt=H.ranges.slice(0);gt[V]=IC(e,new nt(Me(_,_t),Et)),Ft(_,xn(e,gt,V),Fe)}}var re=h.wrapper.getBoundingClientRect(),ce=0;function he(ye){var xe=++ce,ke=Di(e,ye,!0,u.unit=="rectangle");if(!!ke)if(de(ke,q)!=0){e.curOp.focus=ie(Y(e)),oe(ke);var Oe=ca(h,_);(ke.line>=Oe.to||ke.line<Oe.from)&&setTimeout(Bt(e,function(){ce==xe&&he(ye)}),150)}else{var Ue=ye.clientY<re.top?-20:ye.clientY>re.bottom?20:0;Ue&&setTimeout(Bt(e,function(){ce==xe&&(h.scroller.scrollTop+=Ue,he(ye))}),50)}}function ge(ye){e.state.selectingText=!1,ce=1/0,ye&&(et(ye),h.input.focus()),Te(h.wrapper.ownerDocument,"mousemove",ve),Te(h.wrapper.ownerDocument,"mouseup",we),_.history.lastSelOrigin=null}var ve=Bt(e,function(ye){ye.buttons===0||!$r(ye)?ge(ye):he(ye)}),we=Bt(e,ge);e.state.selectingText=we,fe(h.wrapper.ownerDocument,"mousemove",ve),fe(h.wrapper.ownerDocument,"mouseup",we)}function IC(e,i){var f=i.anchor,u=i.head,h=_e(e.doc,f.line);if(de(f,u)==0&&f.sticky==u.sticky)return i;var _=Be(h);if(!_)return i;var I=Ee(_,f.ch,f.sticky),V=_[I];if(V.from!=f.ch&&V.to!=f.ch)return i;var H=I+(V.from==f.ch==(V.level!=1)?0:1);if(H==0||H==_.length)return i;var j;if(u.line!=f.line)j=(u.line-f.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var X=Ee(_,u.ch,u.sticky),q=X-I||(u.ch-f.ch)*(V.level==1?-1:1);X==H-1||X==H?j=q<0:j=q>0}var oe=_[H+(j?-1:0)],re=j==(oe.level==1),ce=re?oe.from:oe.to,he=re?"after":"before";return f.ch==ce&&f.sticky==he?i:new nt(new ne(f.line,ce,he),u)}function dp(e,i,f,u){var h,_;if(i.touches)h=i.touches[0].clientX,_=i.touches[0].clientY;else try{h=i.clientX,_=i.clientY}catch{return!1}if(h>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;u&&et(i);var I=e.display,V=I.lineDiv.getBoundingClientRect();if(_>V.bottom||!ct(e,f))return li(i);_-=V.top-I.viewOffset;for(var H=0;H<e.display.gutterSpecs.length;++H){var j=I.gutters.childNodes[H];if(j&&j.getBoundingClientRect().right>=h){var X=Mn(e.doc,_),q=e.display.gutterSpecs[H];return Ne(e,f,e,X,q.className,i),li(i)}}}function Js(e,i){return dp(e,i,"gutterClick",!0)}function cp(e,i){Qn(e.display,i)||MC(e,i)||$e(e,i,"contextmenu")||R||e.display.input.onContextMenu(i)}function MC(e,i){return ct(e,"gutterContextMenu")?dp(e,i,"gutterContextMenu",!1):!1}function pp(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Yr(e)}var gr={toString:function(){return"CodeMirror.Init"}},hp={},xa={};function PC(e){var i=e.optionHandlers;function f(u,h,_,I){e.defaults[u]=h,_&&(i[u]=I?function(V,H,j){j!=gr&&_(V,H,j)}:_)}e.defineOption=f,e.Init=gr,f("value","",function(u,h){return u.setValue(h)},!0),f("mode",null,function(u,h){u.doc.modeOption=h,Hs(u)},!0),f("indentUnit",2,Hs,!0),f("indentWithTabs",!1),f("smartIndent",!0),f("tabSize",4,function(u){no(u),Yr(u),Gt(u)},!0),f("lineSeparator",null,function(u,h){if(u.doc.lineSep=h,!!h){var _=[],I=u.doc.first;u.doc.iter(function(H){for(var j=0;;){var X=H.text.indexOf(h,j);if(X==-1)break;j=X+h.length,_.push(ne(I,X))}I++});for(var V=_.length-1;V>=0;V--)cr(u.doc,h,_[V],ne(_[V].line,_[V].ch+h.length))}}),f("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(u,h,_){u.state.specialChars=new RegExp(h.source+(h.test(" ")?"":"| "),"g"),_!=gr&&u.refresh()}),f("specialCharPlaceholder",dA,function(u){return u.refresh()},!0),f("electricChars",!0),f("inputStyle",T?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),f("spellcheck",!1,function(u,h){return u.getInputField().spellcheck=h},!0),f("autocorrect",!1,function(u,h){return u.getInputField().autocorrect=h},!0),f("autocapitalize",!1,function(u,h){return u.getInputField().autocapitalize=h},!0),f("rtlMoveVisually",!M),f("wholeLineUpdateBefore",!0),f("theme","default",function(u){pp(u),to(u)},!0),f("keyMap","default",function(u,h,_){var I=Ea(h),V=_!=gr&&Ea(_);V&&V.detach&&V.detach(u,I),I.attach&&I.attach(u,V||null)}),f("extraKeys",null),f("configureMouse",null),f("lineWrapping",!1,VC,!0),f("gutters",[],function(u,h){u.display.gutterSpecs=Fs(h,u.options.lineNumbers),to(u)},!0),f("fixedGutter",!0,function(u,h){u.display.gutters.style.left=h?Ns(u.display)+"px":"0",u.refresh()},!0),f("coverGutterNextToScrollbar",!1,function(u){return sr(u)},!0),f("scrollbarStyle","native",function(u){gc(u),sr(u),u.display.scrollbars.setScrollTop(u.doc.scrollTop),u.display.scrollbars.setScrollLeft(u.doc.scrollLeft)},!0),f("lineNumbers",!1,function(u,h){u.display.gutterSpecs=Fs(u.options.gutters,h),to(u)},!0),f("firstLineNumber",1,to,!0),f("lineNumberFormatter",function(u){return u},to,!0),f("showCursorWhenSelecting",!1,Qr,!0),f("resetSelectionOnContextMenu",!0),f("lineWiseCopyCut",!0),f("pasteLinesPerSelection",!0),f("selectionsMayTouch",!1),f("readOnly",!1,function(u,h){h=="nocursor"&&(ar(u),u.display.input.blur()),u.display.input.readOnlyChanged(h)}),f("screenReaderLabel",null,function(u,h){h=h===""?null:h,u.display.input.screenReaderLabelChanged(h)}),f("disableInput",!1,function(u,h){h||u.display.input.reset()},!0),f("dragDrop",!0,LC),f("allowDropFileTypes",null),f("cursorBlinkRate",530),f("cursorScrollMargin",0),f("cursorHeight",1,Qr,!0),f("singleCursorHeightPerLine",!0,Qr,!0),f("workTime",100),f("workDelay",100),f("flattenSpans",!0,no,!0),f("addModeClass",!1,no,!0),f("pollInterval",100),f("undoDepth",200,function(u,h){return u.doc.history.undoDepth=h}),f("historyEventDelay",1250),f("viewportMargin",10,function(u){return u.refresh()},!0),f("maxHighlightLength",1e4,no,!0),f("moveInputWithCursor",!0,function(u,h){h||u.display.input.resetPosition()}),f("tabindex",null,function(u,h){return u.display.input.getField().tabIndex=h||""}),f("autofocus",null),f("direction","ltr",function(u,h){return u.doc.setDirection(h)},!0),f("phrases",null)}function LC(e,i,f){var u=f&&f!=gr;if(!i!=!u){var h=e.display.dragFunctions,_=i?fe:Te;_(e.display.scroller,"dragstart",h.start),_(e.display.scroller,"dragenter",h.enter),_(e.display.scroller,"dragover",h.over),_(e.display.scroller,"dragleave",h.leave),_(e.display.scroller,"drop",h.drop)}}function VC(e){e.options.lineWrapping?(B(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(L(e.display.wrapper,"CodeMirror-wrap"),vs(e)),_s(e),Gt(e),Yr(e),setTimeout(function(){return sr(e)},100)}function ft(e,i){var f=this;if(!(this instanceof ft))return new ft(e,i);this.options=i=i?ue(i):{},ue(hp,i,!1);var u=i.value;typeof u=="string"?u=new Yt(u,i.mode,null,i.lineSeparator,i.direction):i.mode&&(u.modeOption=i.mode),this.doc=u;var h=new ft.inputStyles[i.inputStyle](this),_=this.display=new JA(e,u,h,i);_.wrapper.CodeMirror=this,pp(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),gc(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 le,keySeq:null,specialChars:null},i.autofocus&&!T&&_.input.focus(),p&&m<11&&setTimeout(function(){return f.display.input.reset(!0)},20),FC(this),gC(),Bi(this),this.curOp.forceUpdate=!0,Tc(this,u),i.autofocus&&!T||this.hasFocus()?setTimeout(function(){f.hasFocus()&&!f.state.focused&&ks(f)},20):ar(this);for(var I in xa)xa.hasOwnProperty(I)&&xa[I](this,i[I],gr);bc(this),i.finishInit&&i.finishInit(this);for(var V=0;V<Zs.length;++V)Zs[V](this);Ii(this),v&&i.lineWrapping&&getComputedStyle(_.lineDiv).textRendering=="optimizelegibility"&&(_.lineDiv.style.textRendering="auto")}ft.defaults=hp,ft.optionHandlers=xa;function FC(e){var i=e.display;fe(i.scroller,"mousedown",Bt(e,up)),p&&m<11?fe(i.scroller,"dblclick",Bt(e,function(H){if(!$e(e,H)){var j=Di(e,H);if(!(!j||Js(e,H)||Qn(e.display,H))){et(H);var X=e.findWordAt(j);ya(e.doc,X.anchor,X.head)}}})):fe(i.scroller,"dblclick",function(H){return $e(e,H)||et(H)}),fe(i.scroller,"contextmenu",function(H){return cp(e,H)}),fe(i.input.getField(),"contextmenu",function(H){i.scroller.contains(H.target)||cp(e,H)});var f,u={end:0};function h(){i.activeTouch&&(f=setTimeout(function(){return i.activeTouch=null},1e3),u=i.activeTouch,u.end=+new Date)}function _(H){if(H.touches.length!=1)return!1;var j=H.touches[0];return j.radiusX<=1&&j.radiusY<=1}function I(H,j){if(j.left==null)return!0;var X=j.left-H.left,q=j.top-H.top;return X*X+q*q>20*20}fe(i.scroller,"touchstart",function(H){if(!$e(e,H)&&!_(H)&&!Js(e,H)){i.input.ensurePolled(),clearTimeout(f);var j=+new Date;i.activeTouch={start:j,moved:!1,prev:j-u.end<=300?u:null},H.touches.length==1&&(i.activeTouch.left=H.touches[0].pageX,i.activeTouch.top=H.touches[0].pageY)}}),fe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),fe(i.scroller,"touchend",function(H){var j=i.activeTouch;if(j&&!Qn(i,H)&&j.left!=null&&!j.moved&&new Date-j.start<300){var X=e.coordsChar(i.activeTouch,"page"),q;!j.prev||I(j,j.prev)?q=new nt(X,X):!j.prev.prev||I(j,j.prev.prev)?q=e.findWordAt(X):q=new nt(ne(X.line,0),Me(e.doc,ne(X.line+1,0))),e.setSelection(q.anchor,q.head),e.focus(),et(H)}h()}),fe(i.scroller,"touchcancel",h),fe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(Jr(e,i.scroller.scrollTop),Oi(e,i.scroller.scrollLeft,!0),Ne(e,"scroll",e))}),fe(i.scroller,"mousewheel",function(H){return wc(e,H)}),fe(i.scroller,"DOMMouseScroll",function(H){return wc(e,H)}),fe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(H){$e(e,H)||Cn(H)},over:function(H){$e(e,H)||(mC(e,H),Cn(H))},start:function(H){return hC(e,H)},drop:Bt(e,pC),leave:function(H){$e(e,H)||Xc(e)}};var V=i.input.getField();fe(V,"keyup",function(H){return lp.call(e,H)}),fe(V,"keydown",Bt(e,ap)),fe(V,"keypress",Bt(e,sp)),fe(V,"focus",function(H){return ks(e,H)}),fe(V,"blur",function(H){return ar(e,H)})}var Zs=[];ft.defineInitHook=function(e){return Zs.push(e)};function go(e,i,f,u){var h=e.doc,_;f==null&&(f="add"),f=="smart"&&(h.mode.indent?_=jr(e,i).state:f="prev");var I=e.options.tabSize,V=_e(h,i),H=se(V.text,null,I);V.stateAfter&&(V.stateAfter=null);var j=V.text.match(/^\s*/)[0],X;if(!u&&!/\S/.test(V.text))X=0,f="not";else if(f=="smart"&&(X=h.mode.indent(_,V.text.slice(j.length),V.text),X==me||X>150)){if(!u)return;f="prev"}f=="prev"?i>h.first?X=se(_e(h,i-1).text,null,I):X=0:f=="add"?X=H+e.options.indentUnit:f=="subtract"?X=H-e.options.indentUnit:typeof f=="number"&&(X=H+f),X=Math.max(0,X);var q="",oe=0;if(e.options.indentWithTabs)for(var re=Math.floor(X/I);re;--re)oe+=I,q+=" ";if(oe<X&&(q+=ut(X-oe)),q!=j)return cr(h,q,ne(i,0),ne(i,j.length),"+input"),V.stateAfter=null,!0;for(var ce=0;ce<h.sel.ranges.length;ce++){var he=h.sel.ranges[ce];if(he.head.line==i&&he.head.ch<j.length){var ge=ne(i,j.length);Ws(h,ce,new nt(ge,ge));break}}}var Tn=null;function Ta(e){Tn=e}function qs(e,i,f,u,h){var _=e.doc;e.display.shift=!1,u||(u=_.sel);var I=+new Date-200,V=h=="paste"||e.state.pasteIncoming>I,H=Hr(i),j=null;if(V&&u.ranges.length>1)if(Tn&&Tn.text.join(`
`)==i){if(u.ranges.length%Tn.text.length==0){j=[];for(var X=0;X<Tn.text.length;X++)j.push(_.splitLines(Tn.text[X]))}}else H.length==u.ranges.length&&e.options.pasteLinesPerSelection&&(j=ot(H,function(ve){return[ve]}));for(var q=e.curOp.updateInput,oe=u.ranges.length-1;oe>=0;oe--){var re=u.ranges[oe],ce=re.from(),he=re.to();re.empty()&&(f&&f>0?ce=ne(ce.line,ce.ch-f):e.state.overwrite&&!V?he=ne(he.line,Math.min(_e(_,he.line).text.length,he.ch+Re(H).length)):V&&Tn&&Tn.lineWise&&Tn.text.join(`
`)==H.join(`
`)&&(ce=he=ne(ce.line,0)));var ge={from:ce,to:he,text:j?j[oe%j.length]:H,origin:h||(V?"paste":e.state.cutIncoming>I?"cut":"+input")};dr(e.doc,ge),kt(e,"inputRead",e,ge)}i&&!V&&gp(e,i),lr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=q),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function mp(e,i){var f=e.clipboardData&&e.clipboardData.getData("Text");if(f)return e.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&nn(i,function(){return qs(i,f,0,null,"paste")}),!0}function gp(e,i){if(!(!e.options.electricChars||!e.options.smartIndent))for(var f=e.doc.sel,u=f.ranges.length-1;u>=0;u--){var h=f.ranges[u];if(!(h.head.ch>100||u&&f.ranges[u-1].head.line==h.head.line)){var _=e.getModeAt(h.head),I=!1;if(_.electricChars){for(var V=0;V<_.electricChars.length;V++)if(i.indexOf(_.electricChars.charAt(V))>-1){I=go(e,h.head.line,"smart");break}}else _.electricInput&&_.electricInput.test(_e(e.doc,h.head.line).text.slice(0,h.head.ch))&&(I=go(e,h.head.line,"smart"));I&&kt(e,"electricInput",e,h.head.line)}}}function vp(e){for(var i=[],f=[],u=0;u<e.doc.sel.ranges.length;u++){var h=e.doc.sel.ranges[u].head.line,_={anchor:ne(h,0),head:ne(h+1,0)};f.push(_),i.push(e.getRange(_.anchor,_.head))}return{text:i,ranges:f}}function yp(e,i,f,u){e.setAttribute("autocorrect",f?"":"off"),e.setAttribute("autocapitalize",u?"":"off"),e.setAttribute("spellcheck",!!i)}function bp(){var e=P("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=P("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return v?e.style.width="1000px":e.setAttribute("wrap","off"),b&&(e.style.border="1px solid black"),yp(e),i}function $C(e){var i=e.optionHandlers,f=e.helpers={};e.prototype={constructor:e,focus:function(){Z(this).focus(),this.display.input.focus()},setOption:function(u,h){var _=this.options,I=_[u];_[u]==h&&u!="mode"||(_[u]=h,i.hasOwnProperty(u)&&Bt(this,i[u])(this,h,I),Ne(this,"optionChange",this,u))},getOption:function(u){return this.options[u]},getDoc:function(){return this.doc},addKeyMap:function(u,h){this.state.keyMaps[h?"push":"unshift"](Ea(u))},removeKeyMap:function(u){for(var h=this.state.keyMaps,_=0;_<h.length;++_)if(h[_]==u||h[_].name==u)return h.splice(_,1),!0},addOverlay:zt(function(u,h){var _=u.token?u:e.getMode(this.options,u);if(_.startState)throw new Error("Overlays may not be stateful.");qt(this.state.overlays,{mode:_,modeSpec:u,opaque:h&&h.opaque,priority:h&&h.priority||0},function(I){return I.priority}),this.state.modeGen++,Gt(this)}),removeOverlay:zt(function(u){for(var h=this.state.overlays,_=0;_<h.length;++_){var I=h[_].modeSpec;if(I==u||typeof u=="string"&&I.name==u){h.splice(_,1),this.state.modeGen++,Gt(this);return}}}),indentLine:zt(function(u,h,_){typeof h!="string"&&typeof h!="number"&&(h==null?h=this.options.smartIndent?"smart":"prev":h=h?"add":"subtract"),K(this.doc,u)&&go(this,u,h,_)}),indentSelection:zt(function(u){for(var h=this.doc.sel.ranges,_=-1,I=0;I<h.length;I++){var V=h[I];if(V.empty())V.head.line>_&&(go(this,V.head.line,u,!0),_=V.head.line,I==this.doc.sel.primIndex&&lr(this));else{var H=V.from(),j=V.to(),X=Math.max(_,H.line);_=Math.min(this.lastLine(),j.line-(j.ch?0:1))+1;for(var q=X;q<_;++q)go(this,q,u);var oe=this.doc.sel.ranges;H.ch==0&&h.length==oe.length&&oe[I].from().ch>0&&Ws(this.doc,I,new nt(H,oe[I].to()),Ae)}}}),getTokenAt:function(u,h){return _d(this,u,h)},getLineTokens:function(u,h){return _d(this,ne(u),h,!0)},getTokenTypeAt:function(u){u=Me(this.doc,u);var h=xd(this,_e(this.doc,u.line)),_=0,I=(h.length-1)/2,V=u.ch,H;if(V==0)H=h[2];else for(;;){var j=_+I>>1;if((j?h[j*2-1]:0)>=V)I=j;else if(h[j*2+1]<V)_=j+1;else{H=h[j*2+2];break}}var X=H?H.indexOf("overlay "):-1;return X<0?H:X==0?null:H.slice(0,X-1)},getModeAt:function(u){var h=this.doc.mode;return h.innerMode?e.innerMode(h,this.getTokenAt(u).state).mode:h},getHelper:function(u,h){return this.getHelpers(u,h)[0]},getHelpers:function(u,h){var _=[];if(!f.hasOwnProperty(h))return _;var I=f[h],V=this.getModeAt(u);if(typeof V[h]=="string")I[V[h]]&&_.push(I[V[h]]);else if(V[h])for(var H=0;H<V[h].length;H++){var j=I[V[h][H]];j&&_.push(j)}else V.helperType&&I[V.helperType]?_.push(I[V.helperType]):I[V.name]&&_.push(I[V.name]);for(var X=0;X<I._global.length;X++){var q=I._global[X];q.pred(V,this)&&te(_,q.val)==-1&&_.push(q.val)}return _},getStateAfter:function(u,h){var _=this.doc;return u=dn(_,u==null?_.first+_.size-1:u),jr(this,u+1,h).state},cursorCoords:function(u,h){var _,I=this.doc.sel.primary();return u==null?_=I.head:typeof u=="object"?_=Me(this.doc,u):_=u?I.from():I.to(),Sn(this,_,h||"page")},charCoords:function(u,h){return sa(this,Me(this.doc,u),h||"page")},coordsChar:function(u,h){return u=ic(this,u,h||"page"),Ss(this,u.left,u.top)},lineAtHeight:function(u,h){return u=ic(this,{top:u,left:0},h||"page").top,Mn(this.doc,u+this.display.viewOffset)},heightAtLine:function(u,h,_){var I=!1,V;if(typeof u=="number"){var H=this.doc.first+this.doc.size-1;u<this.doc.first?u=this.doc.first:u>H&&(u=H,I=!0),V=_e(this.doc,u)}else V=u;return la(this,V,{top:0,left:0},h||"page",_||I).top+(I?this.doc.height-Yn(V):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return or(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(u,h,_,I,V){var H=this.display;u=Sn(this,Me(this.doc,u));var j=u.bottom,X=u.left;if(h.style.position="absolute",h.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(h),H.sizer.appendChild(h),I=="over")j=u.top;else if(I=="above"||I=="near"){var q=Math.max(H.wrapper.clientHeight,this.doc.height),oe=Math.max(H.sizer.clientWidth,H.lineSpace.clientWidth);(I=="above"||u.bottom+h.offsetHeight>q)&&u.top>h.offsetHeight?j=u.top-h.offsetHeight:u.bottom+h.offsetHeight<=q&&(j=u.bottom),X+h.offsetWidth>oe&&(X=oe-h.offsetWidth)}h.style.top=j+"px",h.style.left=h.style.right="",V=="right"?(X=H.sizer.clientWidth-h.offsetWidth,h.style.right="0px"):(V=="left"?X=0:V=="middle"&&(X=(H.sizer.clientWidth-h.offsetWidth)/2),h.style.left=X+"px"),_&&LA(this,{left:X,top:j,right:X+h.offsetWidth,bottom:j+h.offsetHeight})},triggerOnKeyDown:zt(ap),triggerOnKeyPress:zt(sp),triggerOnKeyUp:lp,triggerOnMouseDown:zt(up),execCommand:function(u){if(co.hasOwnProperty(u))return co[u].call(null,this)},triggerElectric:zt(function(u){gp(this,u)}),findPosH:function(u,h,_,I){var V=1;h<0&&(V=-1,h=-h);for(var H=Me(this.doc,u),j=0;j<h&&(H=eu(this.doc,H,V,_,I),!H.hitSide);++j);return H},moveH:zt(function(u,h){var _=this;this.extendSelectionsBy(function(I){return _.display.shift||_.doc.extend||I.empty()?eu(_.doc,I.head,u,h,_.options.rtlMoveVisually):u<0?I.from():I.to()},Qe)}),deleteH:zt(function(u,h){var _=this.doc.sel,I=this.doc;_.somethingSelected()?I.replaceSelection("",null,"+delete"):mr(this,function(V){var H=eu(I,V.head,u,h,!1);return u<0?{from:H,to:V.head}:{from:V.head,to:H}})}),findPosV:function(u,h,_,I){var V=1,H=I;h<0&&(V=-1,h=-h);for(var j=Me(this.doc,u),X=0;X<h;++X){var q=Sn(this,j,"div");if(H==null?H=q.left:q.left=H,j=Ap(this,q,V,_),j.hitSide)break}return j},moveV:zt(function(u,h){var _=this,I=this.doc,V=[],H=!this.display.shift&&!I.extend&&I.sel.somethingSelected();if(I.extendSelectionsBy(function(X){if(H)return u<0?X.from():X.to();var q=Sn(_,X.head,"div");X.goalColumn!=null&&(q.left=X.goalColumn),V.push(q.left);var oe=Ap(_,q,u,h);return h=="page"&&X==I.sel.primary()&&Is(_,sa(_,oe,"div").top-q.top),oe},Qe),V.length)for(var j=0;j<I.sel.ranges.length;j++)I.sel.ranges[j].goalColumn=V[j]}),findWordAt:function(u){var h=this.doc,_=_e(h,u.line).text,I=u.ch,V=u.ch;if(_){var H=this.getHelper(u,"wordChars");(u.sticky=="before"||V==_.length)&&I?--I:++V;for(var j=_.charAt(I),X=un(j,H)?function(q){return un(q,H)}:/\s/.test(j)?function(q){return/\s/.test(q)}:function(q){return!/\s/.test(q)&&!un(q)};I>0&&X(_.charAt(I-1));)--I;for(;V<_.length&&X(_.charAt(V));)++V}return new nt(ne(u.line,I),ne(u.line,V))},toggleOverwrite:function(u){u!=null&&u==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?B(this.display.cursorDiv,"CodeMirror-overwrite"):L(this.display.cursorDiv,"CodeMirror-overwrite"),Ne(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ie(Y(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:zt(function(u,h){Xr(this,u,h)}),getScrollInfo:function(){var u=this.display.scroller;return{left:u.scrollLeft,top:u.scrollTop,height:u.scrollHeight-Ln(this)-this.display.barHeight,width:u.scrollWidth-Ln(this)-this.display.barWidth,clientHeight:As(this),clientWidth:Ni(this)}},scrollIntoView:zt(function(u,h){u==null?(u={from:this.doc.sel.primary().head,to:null},h==null&&(h=this.options.cursorScrollMargin)):typeof u=="number"?u={from:ne(u,0),to:null}:u.from==null&&(u={from:u,to:null}),u.to||(u.to=u.from),u.margin=h||0,u.from.line!=null?VA(this,u):cc(this,u.from,u.to,u.margin)}),setSize:zt(function(u,h){var _=this,I=function(H){return typeof H=="number"||/^\d+$/.test(String(H))?H+"px":H};u!=null&&(this.display.wrapper.style.width=I(u)),h!=null&&(this.display.wrapper.style.height=I(h)),this.options.lineWrapping&&ec(this);var V=this.display.viewFrom;this.doc.iter(V,this.display.viewTo,function(H){if(H.widgets){for(var j=0;j<H.widgets.length;j++)if(H.widgets[j].noHScroll){pi(_,V,"widget");break}}++V}),this.curOp.forceUpdate=!0,Ne(this,"refresh",this)}),operation:function(u){return nn(this,u)},startOperation:function(){return Bi(this)},endOperation:function(){return Ii(this)},refresh:zt(function(){var u=this.display.cachedTextHeight;Gt(this),this.curOp.forceUpdate=!0,Yr(this),Xr(this,this.doc.scrollLeft,this.doc.scrollTop),Ls(this.display),(u==null||Math.abs(u-rr(this.display))>.5||this.options.lineWrapping)&&_s(this),Ne(this,"refresh",this)}),swapDoc:zt(function(u){var h=this.doc;return h.cm=null,this.state.selectingText&&this.state.selectingText(),Tc(this,u),Yr(this),this.display.input.reset(),Xr(this,u.scrollLeft,u.scrollTop),this.curOp.forceScroll=!0,kt(this,"swapDoc",this,h),h}),phrase:function(u){var h=this.options.phrases;return h&&Object.prototype.hasOwnProperty.call(h,u)?h[u]:u},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}},lt(e),e.registerHelper=function(u,h,_){f.hasOwnProperty(u)||(f[u]=e[u]={_global:[]}),f[u][h]=_},e.registerGlobalHelper=function(u,h,_,I){e.registerHelper(u,h,I),f[u]._global.push({pred:_,val:I})}}function eu(e,i,f,u,h){var _=i,I=f,V=_e(e,i.line),H=h&&e.direction=="rtl"?-f:f;function j(){var we=i.line+H;return we<e.first||we>=e.first+e.size?!1:(i=new ne(we,i.ch,i.sticky),V=_e(e,we))}function X(we){var ye;if(u=="codepoint"){var xe=V.text.charCodeAt(i.ch+(f>0?0:-1));if(isNaN(xe))ye=null;else{var ke=f>0?xe>=55296&&xe<56320:xe>=56320&&xe<57343;ye=new ne(i.line,Math.max(0,Math.min(V.text.length,i.ch+f*(ke?2:1))),-f)}}else h?ye=CC(e.cm,V,i,f):ye=Gs(V,i,f);if(ye==null)if(!we&&j())i=Ys(h,e.cm,V,i.line,H);else return!1;else i=ye;return!0}if(u=="char"||u=="codepoint")X();else if(u=="column")X(!0);else if(u=="word"||u=="group")for(var q=null,oe=u=="group",re=e.cm&&e.cm.getHelper(i,"wordChars"),ce=!0;!(f<0&&!X(!ce));ce=!1){var he=V.text.charAt(i.ch)||`
`,ge=un(he,re)?"w":oe&&he==`
`?"n":!oe||/\s/.test(he)?null:"p";if(oe&&!ce&&!ge&&(ge="s"),q&&q!=ge){f<0&&(f=1,X(),i.sticky="after");break}if(ge&&(q=ge),f>0&&!X(!ce))break}var ve=Aa(e,i,_,I,!0);return Ie(_,ve)&&(ve.hitSide=!0),ve}function Ap(e,i,f,u){var h=e.doc,_=i.left,I;if(u=="page"){var V=Math.min(e.display.wrapper.clientHeight,Z(e).innerHeight||h(e).documentElement.clientHeight),H=Math.max(V-.5*rr(e.display),3);I=(f>0?i.bottom:i.top)+f*H}else u=="line"&&(I=f>0?i.bottom+3:i.top-3);for(var j;j=Ss(e,_,I),!!j.outside;){if(f<0?I<=0:I>=h.height){j.hitSide=!0;break}I+=f*5}return j}var rt=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};rt.prototype.init=function(e){var i=this,f=this,u=f.cm,h=f.div=e.lineDiv;h.contentEditable=!0,yp(h,u.options.spellcheck,u.options.autocorrect,u.options.autocapitalize);function _(V){for(var H=V.target;H;H=H.parentNode){if(H==h)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(H.className))break}return!1}fe(h,"paste",function(V){!_(V)||$e(u,V)||mp(V,u)||m<=11&&setTimeout(Bt(u,function(){return i.updateFromDOM()}),20)}),fe(h,"compositionstart",function(V){i.composing={data:V.data,done:!1}}),fe(h,"compositionupdate",function(V){i.composing||(i.composing={data:V.data,done:!1})}),fe(h,"compositionend",function(V){i.composing&&(V.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),fe(h,"touchstart",function(){return f.forceCompositionEnd()}),fe(h,"input",function(){i.composing||i.readFromDOMSoon()});function I(V){if(!(!_(V)||$e(u,V))){if(u.somethingSelected())Ta({lineWise:!1,text:u.getSelections()}),V.type=="cut"&&u.replaceSelection("",null,"cut");else if(u.options.lineWiseCopyCut){var H=vp(u);Ta({lineWise:!0,text:H.text}),V.type=="cut"&&u.operation(function(){u.setSelections(H.ranges,0,Ae),u.replaceSelection("",null,"cut")})}else return;if(V.clipboardData){V.clipboardData.clearData();var j=Tn.text.join(`
`);if(V.clipboardData.setData("Text",j),V.clipboardData.getData("Text")==j){V.preventDefault();return}}var X=bp(),q=X.firstChild;u.display.lineSpace.insertBefore(X,u.display.lineSpace.firstChild),q.value=Tn.text.join(`
`);var oe=ie(h.ownerDocument);G(q),setTimeout(function(){u.display.lineSpace.removeChild(X),oe.focus(),oe==h&&f.showPrimarySelection()},50)}}fe(h,"copy",I),fe(h,"cut",I)},rt.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},rt.prototype.prepareSelection=function(){var e=uc(this.cm,!1);return e.focus=ie(this.div.ownerDocument)==this.div,e},rt.prototype.showSelection=function(e,i){!e||!this.cm.display.view.length||((e.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(e))},rt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},rt.prototype.showPrimarySelection=function(){var e=this.getSelection(),i=this.cm,f=i.doc.sel.primary(),u=f.from(),h=f.to();if(i.display.viewTo==i.display.viewFrom||u.line>=i.display.viewTo||h.line<i.display.viewFrom){e.removeAllRanges();return}var _=Na(i,e.anchorNode,e.anchorOffset),I=Na(i,e.focusNode,e.focusOffset);if(!(_&&!_.bad&&I&&!I.bad&&de(Nt(_,I),u)==0&&de(Ze(_,I),h)==0)){var V=i.display.view,H=u.line>=i.display.viewFrom&&Cp(i,u)||{node:V[0].measure.map[2],offset:0},j=h.line<i.display.viewTo&&Cp(i,h);if(!j){var X=V[V.length-1].measure,q=X.maps?X.maps[X.maps.length-1]:X.map;j={node:q[q.length-1],offset:q[q.length-2]-q[q.length-3]}}if(!H||!j){e.removeAllRanges();return}var oe=e.rangeCount&&e.getRangeAt(0),re;try{re=Q(H.node,H.offset,j.offset,j.node)}catch{}re&&(!n&&i.state.focused?(e.collapse(H.node,H.offset),re.collapsed||(e.removeAllRanges(),e.addRange(re))):(e.removeAllRanges(),e.addRange(re)),oe&&e.anchorNode==null?e.addRange(oe):n&&this.startGracePeriod()),this.rememberSelection()}},rt.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)},rt.prototype.showMultipleSelections=function(e){W(this.cm.display.cursorDiv,e.cursors),W(this.cm.display.selectionDiv,e.selection)},rt.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},rt.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var i=e.getRangeAt(0).commonAncestorContainer;return J(this.div,i)},rt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||ie(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},rt.prototype.blur=function(){this.div.blur()},rt.prototype.getField=function(){return this.div},rt.prototype.supportsTouch=function(){return!0},rt.prototype.receivedFocus=function(){var e=this,i=this;this.selectionInEditor()?setTimeout(function(){return e.pollSelection()},20):nn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function f(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,f))}this.polling.set(this.cm.options.pollInterval,f)},rt.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},rt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var e=this.getSelection(),i=this.cm;if(N&&E&&this.cm.display.gutterSpecs.length&&HC(e.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var f=Na(i,e.anchorNode,e.anchorOffset),u=Na(i,e.focusNode,e.focusOffset);f&&u&&nn(i,function(){Ft(i.doc,mi(f,u),Ae),(f.bad||u.bad)&&(i.curOp.selectionChanged=!0)})}}},rt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,i=e.display,f=e.doc.sel.primary(),u=f.from(),h=f.to();if(u.ch==0&&u.line>e.firstLine()&&(u=ne(u.line-1,_e(e.doc,u.line-1).length)),h.ch==_e(e.doc,h.line).text.length&&h.line<e.lastLine()&&(h=ne(h.line+1,0)),u.line<i.viewFrom||h.line>i.viewTo-1)return!1;var _,I,V;u.line==i.viewFrom||(_=Ri(e,u.line))==0?(I=tt(i.view[0].line),V=i.view[0].node):(I=tt(i.view[_].line),V=i.view[_-1].node.nextSibling);var H=Ri(e,h.line),j,X;if(H==i.view.length-1?(j=i.viewTo-1,X=i.lineDiv.lastChild):(j=tt(i.view[H+1].line)-1,X=i.view[H+1].node.previousSibling),!V)return!1;for(var q=e.doc.splitLines(zC(e,V,X,I,j)),oe=Kn(e.doc,ne(I,0),ne(j,_e(e.doc,j).text.length));q.length>1&&oe.length>1;)if(Re(q)==Re(oe))q.pop(),oe.pop(),j--;else if(q[0]==oe[0])q.shift(),oe.shift(),I++;else break;for(var re=0,ce=0,he=q[0],ge=oe[0],ve=Math.min(he.length,ge.length);re<ve&&he.charCodeAt(re)==ge.charCodeAt(re);)++re;for(var we=Re(q),ye=Re(oe),xe=Math.min(we.length-(q.length==1?re:0),ye.length-(oe.length==1?re:0));ce<xe&&we.charCodeAt(we.length-ce-1)==ye.charCodeAt(ye.length-ce-1);)++ce;if(q.length==1&&oe.length==1&&I==u.line)for(;re&&re>u.ch&&we.charCodeAt(we.length-ce-1)==ye.charCodeAt(ye.length-ce-1);)re--,ce++;q[q.length-1]=we.slice(0,we.length-ce).replace(/^\u200b+/,""),q[0]=q[0].slice(re).replace(/\u200b+$/,"");var ke=ne(I,re),Oe=ne(j,oe.length?Re(oe).length-ce:0);if(q.length>1||q[0]||de(ke,Oe))return cr(e.doc,q,ke,Oe,"+input"),!0},rt.prototype.ensurePolled=function(){this.forceCompositionEnd()},rt.prototype.reset=function(){this.forceCompositionEnd()},rt.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},rt.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},rt.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&nn(this.cm,function(){return Gt(e.cm)})},rt.prototype.setUneditable=function(e){e.contentEditable="false"},rt.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||Bt(this.cm,qs)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},rt.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},rt.prototype.onContextMenu=function(){},rt.prototype.resetPosition=function(){},rt.prototype.needsContentAttribute=!0;function Cp(e,i){var f=Cs(e,i.line);if(!f||f.hidden)return null;var u=_e(e.doc,i.line),h=Qd(f,u,i.line),_=Be(u,e.doc.direction),I="left";if(_){var V=Ee(_,i.ch);I=V%2?"right":"left"}var H=Zd(h.map,i.ch,I);return H.offset=H.collapse=="right"?H.end:H.start,H}function HC(e){for(var i=e;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function vr(e,i){return i&&(e.bad=!0),e}function zC(e,i,f,u,h){var _="",I=!1,V=e.doc.lineSeparator(),H=!1;function j(re){return function(ce){return ce.id==re}}function X(){I&&(_+=V,H&&(_+=V),I=H=!1)}function q(re){re&&(X(),_+=re)}function oe(re){if(re.nodeType==1){var ce=re.getAttribute("cm-text");if(ce){q(ce);return}var he=re.getAttribute("cm-marker"),ge;if(he){var ve=e.findMarks(ne(u,0),ne(h+1,0),j(+he));ve.length&&(ge=ve[0].find(0))&&q(Kn(e.doc,ge.from,ge.to).join(V));return}if(re.getAttribute("contenteditable")=="false")return;var we=/^(pre|div|p|li|table|br)$/i.test(re.nodeName);if(!/^br$/i.test(re.nodeName)&&re.textContent.length==0)return;we&&X();for(var ye=0;ye<re.childNodes.length;ye++)oe(re.childNodes[ye]);/^(pre|p)$/i.test(re.nodeName)&&(H=!0),we&&(I=!0)}else re.nodeType==3&&q(re.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;oe(i),i!=f;)i=i.nextSibling,H=!1;return _}function Na(e,i,f){var u;if(i==e.display.lineDiv){if(u=e.display.lineDiv.childNodes[f],!u)return vr(e.clipPos(ne(e.display.viewTo-1)),!0);i=null,f=0}else for(u=i;;u=u.parentNode){if(!u||u==e.display.lineDiv)return null;if(u.parentNode&&u.parentNode==e.display.lineDiv)break}for(var h=0;h<e.display.view.length;h++){var _=e.display.view[h];if(_.node==u)return jC(_,i,f)}}function jC(e,i,f){var u=e.text.firstChild,h=!1;if(!i||!J(u,i))return vr(ne(tt(e.line),0),!0);if(i==u&&(h=!0,i=u.childNodes[f],f=0,!i)){var _=e.rest?Re(e.rest):e.line;return vr(ne(tt(_),_.text.length),h)}var I=i.nodeType==3?i:null,V=i;for(!I&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(I=i.firstChild,f&&(f=I.nodeValue.length));V.parentNode!=u;)V=V.parentNode;var H=e.measure,j=H.maps;function X(ge,ve,we){for(var ye=-1;ye<(j?j.length:0);ye++)for(var xe=ye<0?H.map:j[ye],ke=0;ke<xe.length;ke+=3){var Oe=xe[ke+2];if(Oe==ge||Oe==ve){var Ue=tt(ye<0?e.line:e.rest[ye]),at=xe[ke]+we;return(we<0||Oe!=ge)&&(at=xe[ke+(we?1:0)]),ne(Ue,at)}}}var q=X(I,V,f);if(q)return vr(q,h);for(var oe=V.nextSibling,re=I?I.nodeValue.length-f:0;oe;oe=oe.nextSibling){if(q=X(oe,oe.firstChild,0),q)return vr(ne(q.line,q.ch-re),h);re+=oe.textContent.length}for(var ce=V.previousSibling,he=f;ce;ce=ce.previousSibling){if(q=X(ce,ce.firstChild,-1),q)return vr(ne(q.line,q.ch+he),h);he+=ce.textContent.length}}var bt=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null};bt.prototype.init=function(e){var i=this,f=this,u=this.cm;this.createField(e);var h=this.textarea;e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),b&&(h.style.width="0px"),fe(h,"input",function(){p&&m>=9&&i.hasSelection&&(i.hasSelection=null),f.poll()}),fe(h,"paste",function(I){$e(u,I)||mp(I,u)||(u.state.pasteIncoming=+new Date,f.fastPoll())});function _(I){if(!$e(u,I)){if(u.somethingSelected())Ta({lineWise:!1,text:u.getSelections()});else if(u.options.lineWiseCopyCut){var V=vp(u);Ta({lineWise:!0,text:V.text}),I.type=="cut"?u.setSelections(V.ranges,null,Ae):(f.prevInput="",h.value=V.text.join(`
`),G(h))}else return;I.type=="cut"&&(u.state.cutIncoming=+new Date)}}fe(h,"cut",_),fe(h,"copy",_),fe(e.scroller,"paste",function(I){if(!(Qn(e,I)||$e(u,I))){if(!h.dispatchEvent){u.state.pasteIncoming=+new Date,f.focus();return}var V=new Event("paste");V.clipboardData=I.clipboardData,h.dispatchEvent(V)}}),fe(e.lineSpace,"selectstart",function(I){Qn(e,I)||et(I)}),fe(h,"compositionstart",function(){var I=u.getCursor("from");f.composing&&f.composing.range.clear(),f.composing={start:I,range:u.markText(I,u.getCursor("to"),{className:"CodeMirror-composing"})}}),fe(h,"compositionend",function(){f.composing&&(f.poll(),f.composing.range.clear(),f.composing=null)})},bt.prototype.createField=function(e){this.wrapper=bp(),this.textarea=this.wrapper.firstChild},bt.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},bt.prototype.prepareSelection=function(){var e=this.cm,i=e.display,f=e.doc,u=uc(e);if(e.options.moveInputWithCursor){var h=Sn(e,f.sel.primary().head,"div"),_=i.wrapper.getBoundingClientRect(),I=i.lineDiv.getBoundingClientRect();u.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,h.top+I.top-_.top)),u.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,h.left+I.left-_.left))}return u},bt.prototype.showSelection=function(e){var i=this.cm,f=i.display;W(f.cursorDiv,e.cursors),W(f.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},bt.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing)){var i=this.cm;if(i.somethingSelected()){this.prevInput="";var f=i.getSelection();this.textarea.value=f,i.state.focused&&G(this.textarea),p&&m>=9&&(this.hasSelection=f)}else e||(this.prevInput=this.textarea.value="",p&&m>=9&&(this.hasSelection=null))}},bt.prototype.getField=function(){return this.textarea},bt.prototype.supportsTouch=function(){return!1},bt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!T||ie(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},bt.prototype.blur=function(){this.textarea.blur()},bt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},bt.prototype.receivedFocus=function(){this.slowPoll()},bt.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},bt.prototype.fastPoll=function(){var e=!1,i=this;i.pollingFast=!0;function f(){var u=i.poll();!u&&!e?(e=!0,i.polling.set(60,f)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,f)},bt.prototype.poll=function(){var e=this,i=this.cm,f=this.textarea,u=this.prevInput;if(this.contextMenuPending||!i.state.focused||si(f)&&!u&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var h=f.value;if(h==u&&!i.somethingSelected())return!1;if(p&&m>=9&&this.hasSelection===h||O&&/[\uf700-\uf7ff]/.test(h))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var _=h.charCodeAt(0);if(_==8203&&!u&&(u="\u200B"),_==8666)return this.reset(),this.cm.execCommand("undo")}for(var I=0,V=Math.min(u.length,h.length);I<V&&u.charCodeAt(I)==h.charCodeAt(I);)++I;return nn(i,function(){qs(i,h.slice(I),u.length-I,null,e.composing?"*compose":null),h.length>1e3||h.indexOf(`
`)>-1?f.value=e.prevInput="":e.prevInput=h,e.composing&&(e.composing.range.clear(),e.composing.range=i.markText(e.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},bt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},bt.prototype.onKeyPress=function(){p&&m>=9&&(this.hasSelection=null),this.fastPoll()},bt.prototype.onContextMenu=function(e){var i=this,f=i.cm,u=f.display,h=i.textarea;i.contextMenuPending&&i.contextMenuPending();var _=Di(f,e),I=u.scroller.scrollTop;if(!_||C)return;var V=f.options.resetSelectionOnContextMenu;V&&f.doc.sel.contains(_)==-1&&Bt(f,Ft)(f.doc,mi(_),Ae);var H=h.style.cssText,j=i.wrapper.style.cssText,X=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",h.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(e.clientY-X.top-5)+"px; left: "+(e.clientX-X.left-5)+`px;
z-index: 1000; background: `+(p?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var q;v&&(q=h.ownerDocument.defaultView.scrollY),u.input.focus(),v&&h.ownerDocument.defaultView.scrollTo(null,q),u.input.reset(),f.somethingSelected()||(h.value=i.prevInput=" "),i.contextMenuPending=re,u.selForContextMenu=f.doc.sel,clearTimeout(u.detectingSelectAll);function oe(){if(h.selectionStart!=null){var he=f.somethingSelected(),ge="\u200B"+(he?h.value:"");h.value="\u21DA",h.value=ge,i.prevInput=he?"":"\u200B",h.selectionStart=1,h.selectionEnd=ge.length,u.selForContextMenu=f.doc.sel}}function re(){if(i.contextMenuPending==re&&(i.contextMenuPending=!1,i.wrapper.style.cssText=j,h.style.cssText=H,p&&m<9&&u.scrollbars.setScrollTop(u.scroller.scrollTop=I),h.selectionStart!=null)){(!p||p&&m<9)&&oe();var he=0,ge=function(){u.selForContextMenu==f.doc.sel&&h.selectionStart==0&&h.selectionEnd>0&&i.prevInput=="\u200B"?Bt(f,Fc)(f):he++<10?u.detectingSelectAll=setTimeout(ge,500):(u.selForContextMenu=null,u.input.reset())};u.detectingSelectAll=setTimeout(ge,200)}}if(p&&m>=9&&oe(),R){Cn(e);var ce=function(){Te(window,"mouseup",ce),setTimeout(re,20)};fe(window,"mouseup",ce)}else setTimeout(re,50)},bt.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},bt.prototype.setUneditable=function(){},bt.prototype.needsContentAttribute=!1;function UC(e,i){if(i=i?ue(i):{},i.value=e.value,!i.tabindex&&e.tabIndex&&(i.tabindex=e.tabIndex),!i.placeholder&&e.placeholder&&(i.placeholder=e.placeholder),i.autofocus==null){var f=ie(e.ownerDocument);i.autofocus=f==e||e.getAttribute("autofocus")!=null&&f==document.body}function u(){e.value=V.getValue()}var h;if(e.form&&(fe(e.form,"submit",u),!i.leaveSubmitMethodAlone)){var _=e.form;h=_.submit;try{var I=_.submit=function(){u(),_.submit=h,_.submit(),_.submit=I}}catch{}}i.finishInit=function(H){H.save=u,H.getTextArea=function(){return e},H.toTextArea=function(){H.toTextArea=isNaN,u(),e.parentNode.removeChild(H.getWrapperElement()),e.style.display="",e.form&&(Te(e.form,"submit",u),!i.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=h))}},e.style.display="none";var V=ft(function(H){return e.parentNode.insertBefore(H,e.nextSibling)},i);return V}function WC(e){e.off=Te,e.on=fe,e.wheelEventPixels=ZA,e.Doc=Yt,e.splitLines=Hr,e.countColumn=se,e.findColumn=Ge,e.isWordChar=sn,e.Pass=me,e.signal=Ne,e.Line=tr,e.changeEnd=gi,e.scrollbarModel=mc,e.Pos=ne,e.cmpPos=de,e.modes=wn,e.mimeModes=ui,e.resolveMode=tn,e.getMode=Un,e.modeExtensions=fi,e.extendMode=Zo,e.copyState=Wn,e.startState=zr,e.innerMode=di,e.commands=co,e.keyMap=Jn,e.keyName=tp,e.isModifierKey=qc,e.lookupKey=hr,e.normalizeKeyMap=AC,e.StringStream=mt,e.SharedTextMarker=so,e.TextMarker=yi,e.LineWidget=lo,e.e_preventDefault=et,e.e_stopPropagation=mn,e.e_stop=Cn,e.addClass=B,e.contains=J,e.rmClass=L,e.keyNames=bi}PC(ft),$C(ft);var KC="iter insert remove copy getEditor constructor".split(" ");for(var _a in Yt.prototype)Yt.prototype.hasOwnProperty(_a)&&te(KC,_a)<0&&(ft.prototype[_a]=function(e){return function(){return e.apply(this.doc,arguments)}}(Yt.prototype[_a]));return lt(Yt),ft.inputStyles={textarea:bt,contenteditable:rt},ft.defineMode=function(e){!ft.defaults.mode&&e!="null"&&(ft.defaults.mode=e),Jo.apply(this,arguments)},ft.defineMIME=qi,ft.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),ft.defineMIME("text/plain","null"),ft.defineExtension=function(e,i){ft.prototype[e]=i},ft.defineDocExtension=function(e,i){Yt.prototype[e]=i},ft.fromTextArea=UC,WC(ft),ft.version="6.65.7",ft})}(Il)),Il.exports}var Ki=Io();(function(t,r){(function(a){a(Io())})(function(a){a.defineMode("javascript",function(o,n){var s=o.indentUnit,d=n.statementIndent,c=n.jsonld,p=n.json||c,m=n.trackScope!==!1,v=n.typescript,y=n.wordCharacters||/[\w$\xa1-\uffff]/,E=function(){function K(Nt){return{type:Nt,style:"keyword"}}var ee=K("keyword a"),ne=K("keyword b"),de=K("keyword c"),Ie=K("keyword d"),Ye=K("operator"),Ze={type:"atom",style:"atom"};return{if:K("if"),while:ee,with:ee,else:ne,do:ne,try:ne,finally:ne,return:Ie,break:Ie,continue:Ie,new:K("new"),delete:de,void:de,throw:de,debugger:K("debugger"),var:K("var"),const:K("var"),let:K("var"),function:K("function"),catch:K("catch"),for:K("for"),switch:K("switch"),case:K("case"),default:K("default"),in:Ye,typeof:Ye,instanceof:Ye,true:Ze,false:Ze,null:Ze,undefined:Ze,NaN:Ze,Infinity:Ze,this:K("this"),class:K("class"),super:K("atom"),yield:de,export:K("export"),import:K("import"),extends:de,await:de}}(),D=/[+\-*&%=<>!?|~^@]/,C=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function x(K){for(var ee=!1,ne,de=!1;(ne=K.next())!=null;){if(!ee){if(ne=="/"&&!de)return;ne=="["?de=!0:de&&ne=="]"&&(de=!1)}ee=!ee&&ne=="\\"}}var A,g;function b(K,ee,ne){return A=K,g=ne,ee}function N(K,ee){var ne=K.next();if(ne=='"'||ne=="'")return ee.tokenize=T(ne),ee.tokenize(K,ee);if(ne=="."&&K.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return b("number","number");if(ne=="."&&K.match(".."))return b("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(ne))return b(ne);if(ne=="="&&K.eat(">"))return b("=>","operator");if(ne=="0"&&K.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return b("number","number");if(/\d/.test(ne))return K.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),b("number","number");if(ne=="/")return K.eat("*")?(ee.tokenize=O,O(K,ee)):K.eat("/")?(K.skipToEnd(),b("comment","comment")):Mn(K,ee,1)?(x(K),K.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),b("regexp","string-2")):(K.eat("="),b("operator","operator",K.current()));if(ne=="`")return ee.tokenize=k,k(K,ee);if(ne=="#"&&K.peek()=="!")return K.skipToEnd(),b("meta","meta");if(ne=="#"&&K.eatWhile(y))return b("variable","property");if(ne=="<"&&K.match("!--")||ne=="-"&&K.match("->")&&!/\S/.test(K.string.slice(0,K.start)))return K.skipToEnd(),b("comment","comment");if(D.test(ne))return(ne!=">"||!ee.lexical||ee.lexical.type!=">")&&(K.eat("=")?(ne=="!"||ne=="=")&&K.eat("="):/[<>*+\-|&?]/.test(ne)&&(K.eat(ne),ne==">"&&K.eat(ne))),ne=="?"&&K.eat(".")?b("."):b("operator","operator",K.current());if(y.test(ne)){K.eatWhile(y);var de=K.current();if(ee.lastType!="."){if(E.propertyIsEnumerable(de)){var Ie=E[de];return b(Ie.type,Ie.style,de)}if(de=="async"&&K.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return b("async","keyword",de)}return b("variable","variable",de)}}function T(K){return function(ee,ne){var de=!1,Ie;if(c&&ee.peek()=="@"&&ee.match(C))return ne.tokenize=N,b("jsonld-keyword","meta");for(;(Ie=ee.next())!=null&&!(Ie==K&&!de);)de=!de&&Ie=="\\";return de||(ne.tokenize=N),b("string","string")}}function O(K,ee){for(var ne=!1,de;de=K.next();){if(de=="/"&&ne){ee.tokenize=N;break}ne=de=="*"}return b("comment","comment")}function k(K,ee){for(var ne=!1,de;(de=K.next())!=null;){if(!ne&&(de=="`"||de=="$"&&K.eat("{"))){ee.tokenize=N;break}ne=!ne&&de=="\\"}return b("quasi","string-2",K.current())}var M="([{}])";function S(K,ee){ee.fatArrowAt&&(ee.fatArrowAt=null);var ne=K.string.indexOf("=>",K.start);if(!(ne<0)){if(v){var de=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(K.string.slice(K.start,ne));de&&(ne=de.index)}for(var Ie=0,Ye=!1,Ze=ne-1;Ze>=0;--Ze){var Nt=K.string.charAt(Ze),dn=M.indexOf(Nt);if(dn>=0&&dn<3){if(!Ie){++Ze;break}if(--Ie==0){Nt=="("&&(Ye=!0);break}}else if(dn>=3&&dn<6)++Ie;else if(y.test(Nt))Ye=!0;else if(/["'\/`]/.test(Nt))for(;;--Ze){if(Ze==0)return;var Me=K.string.charAt(Ze-1);if(Me==Nt&&K.string.charAt(Ze-2)!="\\"){Ze--;break}}else if(Ye&&!Ie){++Ze;break}}Ye&&!Ie&&(ee.fatArrowAt=Ze)}}var F={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function R(K,ee,ne,de,Ie,Ye){this.indented=K,this.column=ee,this.type=ne,this.prev=Ie,this.info=Ye,de!=null&&(this.align=de)}function w(K,ee){if(!m)return!1;for(var ne=K.localVars;ne;ne=ne.next)if(ne.name==ee)return!0;for(var de=K.context;de;de=de.prev)for(var ne=de.vars;ne;ne=ne.next)if(ne.name==ee)return!0}function L(K,ee,ne,de,Ie){var Ye=K.cc;for($.state=K,$.stream=Ie,$.marked=null,$.cc=Ye,$.style=ee,K.lexical.hasOwnProperty("align")||(K.lexical.align=!0);;){var Ze=Ye.length?Ye.pop():p?me:te;if(Ze(ne,de)){for(;Ye.length&&Ye[Ye.length-1].lex;)Ye.pop()();return $.marked?$.marked:ne=="variable"&&w(K,de)?"variable-2":ee}}}var $={state:null,column:null,marked:null,cc:null};function W(){for(var K=arguments.length-1;K>=0;K--)$.cc.push(arguments[K])}function P(){return W.apply(null,arguments),!0}function U(K,ee){for(var ne=ee;ne;ne=ne.next)if(ne.name==K)return!0;return!1}function Q(K){var ee=$.state;if($.marked="def",!!m){if(ee.context){if(ee.lexical.info=="var"&&ee.context&&ee.context.block){var ne=J(K,ee.context);if(ne!=null){ee.context=ne;return}}else if(!U(K,ee.localVars)){ee.localVars=new z(K,ee.localVars);return}}n.globalVars&&!U(K,ee.globalVars)&&(ee.globalVars=new z(K,ee.globalVars))}}function J(K,ee){if(ee)if(ee.block){var ne=J(K,ee.prev);return ne?ne==ee.prev?ee:new B(ne,ee.vars,!0):null}else return U(K,ee.vars)?ee:new B(ee.prev,new z(K,ee.vars),!1);else return null}function ie(K){return K=="public"||K=="private"||K=="protected"||K=="abstract"||K=="readonly"}function B(K,ee,ne){this.prev=K,this.vars=ee,this.block=ne}function z(K,ee){this.name=K,this.next=ee}var G=new z("this",new z("arguments",null));function Y(){$.state.context=new B($.state.context,$.state.localVars,!1),$.state.localVars=G}function Z(){$.state.context=new B($.state.context,$.state.localVars,!0),$.state.localVars=null}Y.lex=Z.lex=!0;function ae(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}ae.lex=!0;function ue(K,ee){var ne=function(){var de=$.state,Ie=de.indented;if(de.lexical.type=="stat")Ie=de.lexical.indented;else for(var Ye=de.lexical;Ye&&Ye.type==")"&&Ye.align;Ye=Ye.prev)Ie=Ye.indented;de.lexical=new R(Ie,$.stream.column(),K,null,de.lexical,ee)};return ne.lex=!0,ne}function se(){var K=$.state;K.lexical.prev&&(K.lexical.type==")"&&(K.indented=K.lexical.indented),K.lexical=K.lexical.prev)}se.lex=!0;function le(K){function ee(ne){return ne==K?P():K==";"||ne=="}"||ne==")"||ne=="]"?W():P(ee)}return ee}function te(K,ee){return K=="var"?P(ue("vardef",ee),Cn,le(";"),se):K=="keyword a"?P(ue("form"),Fe,te,se):K=="keyword b"?P(ue("form"),te,se):K=="keyword d"?$.stream.match(/^\s*$/,!1)?P():P(ue("stat"),Ge,le(";"),se):K=="debugger"?P(le(";")):K=="{"?P(ue("}"),Z,Ke,se,ae):K==";"?P():K=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==se&&$.state.cc.pop()(),P(ue("form"),Fe,te,se,Zi)):K=="function"?P(Bn):K=="for"?P(ue("form"),Z,Qo,te,ae,se):K=="class"||v&&ee=="interface"?($.marked="keyword",P(ue("form",K=="class"?K:ee),Jo,se)):K=="variable"?v&&ee=="declare"?($.marked="keyword",P(te)):v&&(ee=="module"||ee=="enum"||ee=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",ee=="enum"?P(er):ee=="type"?P(Xo,le("operator"),fe,le(";")):P(ue("form"),Kt,le("{"),ue("}"),Ke,se,se)):v&&ee=="namespace"?($.marked="keyword",P(ue("form"),me,te,se)):v&&ee=="abstract"?($.marked="keyword",P(te)):P(ue("stat"),un):K=="switch"?P(ue("form"),Fe,le("{"),ue("}","switch"),Z,Ke,se,se,ae):K=="case"?P(me,le(":")):K=="default"?P(le(":")):K=="catch"?P(ue("form"),Y,pe,te,se,ae):K=="export"?P(ue("stat"),fi,se):K=="import"?P(ue("stat"),Wn,se):K=="async"?P(te):ee=="@"?P(me,te):W(ue("stat"),me,le(";"),se)}function pe(K){if(K=="(")return P(wn,le(")"))}function me(K,ee){return Qe(K,ee,!1)}function Ae(K,ee){return Qe(K,ee,!0)}function Fe(K){return K!="("?W():P(ue(")"),Ge,le(")"),se)}function Qe(K,ee,ne){if($.state.fatArrowAt==$.stream.start){var de=ne?Ot:qt;if(K=="(")return P(Y,ue(")"),qe(wn,")"),se,le("=>"),de,ae);if(K=="variable")return W(Y,Kt,le("=>"),de,ae)}var Ie=ne?ut:st;return F.hasOwnProperty(K)?P(Ie):K=="function"?P(Bn,Ie):K=="class"||v&&ee=="interface"?($.marked="keyword",P(ue("form"),ui,se)):K=="keyword c"||K=="async"?P(ne?Ae:me):K=="("?P(ue(")"),Ge,le(")"),se,Ie):K=="operator"||K=="spread"?P(ne?Ae:me):K=="["?P(ue("]"),Kn,se,Ie):K=="{"?en(fn,"}",null,Ie):K=="quasi"?W(Re,Ie):K=="new"?P(ai(ne)):P()}function Ge(K){return K.match(/[;\}\)\],]/)?W():W(me)}function st(K,ee){return K==","?P(Ge):ut(K,ee,!1)}function ut(K,ee,ne){var de=ne==!1?st:ut,Ie=ne==!1?me:Ae;if(K=="=>")return P(Y,ne?Ot:qt,ae);if(K=="operator")return/\+\+|--/.test(ee)||v&&ee=="!"?P(de):v&&ee=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?P(ue(">"),qe(fe,">"),se,de):ee=="?"?P(me,le(":"),Ie):P(Ie);if(K=="quasi")return W(Re,de);if(K!=";"){if(K=="(")return en(Ae,")","call",de);if(K==".")return P(kn,de);if(K=="[")return P(ue("]"),Ge,le("]"),se,de);if(v&&ee=="as")return $.marked="keyword",P(fe,de);if(K=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),P(Ie)}}function Re(K,ee){return K!="quasi"?W():ee.slice(ee.length-2)!="${"?P(Re):P(Ge,ot)}function ot(K){if(K=="}")return $.marked="string-2",$.state.tokenize=k,P(Re)}function qt(K){return S($.stream,$.state),W(K=="{"?te:me)}function Ot(K){return S($.stream,$.state),W(K=="{"?te:Ae)}function ai(K){return function(ee){return ee=="."?P(K?sn:On):ee=="variable"&&v?P(et,K?ut:st):W(K?Ae:me)}}function On(K,ee){if(ee=="target")return $.marked="keyword",P(st)}function sn(K,ee){if(ee=="target")return $.marked="keyword",P(ut)}function un(K){return K==":"?P(se,te):W(st,le(";"),se)}function kn(K){if(K=="variable")return $.marked="property",P()}function fn(K,ee){if(K=="async")return $.marked="property",P(fn);if(K=="variable"||$.style=="keyword"){if($.marked="property",ee=="get"||ee=="set")return P(hn);var ne;return v&&$.state.fatArrowAt==$.stream.start&&(ne=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+ne[0].length),P(Tt)}else{if(K=="number"||K=="string")return $.marked=c?"property":$.style+" property",P(Tt);if(K=="jsonld-keyword")return P(Tt);if(v&&ie(ee))return $.marked="keyword",P(fn);if(K=="[")return P(me,Ee,le("]"),Tt);if(K=="spread")return P(Ae,Tt);if(ee=="*")return $.marked="keyword",P(fn);if(K==":")return W(Tt)}}function hn(K){return K!="variable"?W(Tt):($.marked="property",P(Bn))}function Tt(K){if(K==":")return P(Ae);if(K=="(")return W(Bn)}function qe(K,ee,ne){function de(Ie,Ye){if(ne?ne.indexOf(Ie)>-1:Ie==","){var Ze=$.state.lexical;return Ze.info=="call"&&(Ze.pos=(Ze.pos||0)+1),P(function(Nt,dn){return Nt==ee||dn==ee?W():W(K)},de)}return Ie==ee||Ye==ee?P():ne&&ne.indexOf(";")>-1?W(K):P(le(ee))}return function(Ie,Ye){return Ie==ee||Ye==ee?P():W(K,de)}}function en(K,ee,ne){for(var de=3;de<arguments.length;de++)$.cc.push(arguments[de]);return P(ue(ee,ne),qe(K,ee),se)}function Ke(K){return K=="}"?P():W(te,Ke)}function Ee(K,ee){if(v){if(K==":")return P(fe);if(ee=="?")return P(Ee)}}function Ce(K,ee){if(v&&(K==":"||ee=="in"))return P(fe)}function Be(K){if(v&&K==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?P(me,Se,fe):P(fe)}function Se(K,ee){if(ee=="is")return $.marked="keyword",P()}function fe(K,ee){if(ee=="keyof"||ee=="typeof"||ee=="infer"||ee=="readonly")return $.marked="keyword",P(ee=="typeof"?Ae:fe);if(K=="variable"||ee=="void")return $.marked="type",P(lt);if(ee=="|"||ee=="&")return P(fe);if(K=="string"||K=="number"||K=="atom")return P(lt);if(K=="[")return P(ue("]"),qe(fe,"]",","),se,lt);if(K=="{")return P(ue("}"),Te,se,lt);if(K=="(")return P(qe(ct,")"),De,lt);if(K=="<")return P(qe(fe,">"),fe);if(K=="quasi")return W($e,lt)}function De(K){if(K=="=>")return P(fe)}function Te(K){return K.match(/[\}\)\]]/)?P():K==","||K==";"?P(Te):W(Ne,Te)}function Ne(K,ee){if(K=="variable"||$.style=="keyword")return $.marked="property",P(Ne);if(ee=="?"||K=="number"||K=="string")return P(Ne);if(K==":")return P(fe);if(K=="[")return P(le("variable"),Ce,le("]"),Ne);if(K=="(")return W(In,Ne);if(!K.match(/[;\}\)\],]/))return P()}function $e(K,ee){return K!="quasi"?W():ee.slice(ee.length-2)!="${"?P($e):P(fe,Wt)}function Wt(K){if(K=="}")return $.marked="string-2",$.state.tokenize=k,P($e)}function ct(K,ee){return K=="variable"&&$.stream.match(/^\s*[?:]/,!1)||ee=="?"?P(ct):K==":"?P(fe):K=="spread"?P(ct):W(fe)}function lt(K,ee){if(ee=="<")return P(ue(">"),qe(fe,">"),se,lt);if(ee=="|"||K=="."||ee=="&")return P(fe);if(K=="[")return P(fe,le("]"),lt);if(ee=="extends"||ee=="implements")return $.marked="keyword",P(fe);if(ee=="?")return P(fe,le(":"),fe)}function et(K,ee){if(ee=="<")return P(ue(">"),qe(fe,">"),se,lt)}function mn(){return W(fe,li)}function li(K,ee){if(ee=="=")return P(fe)}function Cn(K,ee){return ee=="enum"?($.marked="keyword",P(er)):W(Kt,Ee,gn,fs)}function Kt(K,ee){if(v&&ie(ee))return $.marked="keyword",P(Kt);if(K=="variable")return Q(ee),P();if(K=="spread")return P(Kt);if(K=="[")return en(us,"]");if(K=="{")return en($r,"}")}function $r(K,ee){return K=="variable"&&!$.stream.match(/^\s*:/,!1)?(Q(ee),P(gn)):(K=="variable"&&($.marked="property"),K=="spread"?P(Kt):K=="}"?W():K=="["?P(me,le("]"),le(":"),$r):P(le(":"),Kt,gn))}function us(){return W(Kt,gn)}function gn(K,ee){if(ee=="=")return P(Ae)}function fs(K){if(K==",")return P(Cn)}function Zi(K,ee){if(K=="keyword b"&&ee=="else")return P(ue("form","else"),te,se)}function Qo(K,ee){if(ee=="await")return P(Qo);if(K=="(")return P(ue(")"),Hr,se)}function Hr(K){return K=="var"?P(Cn,si):K=="variable"?P(si):W(si)}function si(K,ee){return K==")"?P():K==";"?P(si):ee=="in"||ee=="of"?($.marked="keyword",P(me,si)):W(me,si)}function Bn(K,ee){if(ee=="*")return $.marked="keyword",P(Bn);if(K=="variable")return Q(ee),P(Bn);if(K=="(")return P(Y,ue(")"),qe(wn,")"),se,Be,te,ae);if(v&&ee=="<")return P(ue(">"),qe(mn,">"),se,Bn)}function In(K,ee){if(ee=="*")return $.marked="keyword",P(In);if(K=="variable")return Q(ee),P(In);if(K=="(")return P(Y,ue(")"),qe(wn,")"),se,Be,ae);if(v&&ee=="<")return P(ue(">"),qe(mn,">"),se,In)}function Xo(K,ee){if(K=="keyword"||K=="variable")return $.marked="type",P(Xo);if(ee=="<")return P(ue(">"),qe(mn,">"),se)}function wn(K,ee){return ee=="@"&&P(me,wn),K=="spread"?P(wn):v&&ie(ee)?($.marked="keyword",P(wn)):v&&K=="this"?P(Ee,gn):W(Kt,Ee,gn)}function ui(K,ee){return K=="variable"?Jo(K,ee):qi(K,ee)}function Jo(K,ee){if(K=="variable")return Q(ee),P(qi)}function qi(K,ee){if(ee=="<")return P(ue(">"),qe(mn,">"),se,qi);if(ee=="extends"||ee=="implements"||v&&K==",")return ee=="implements"&&($.marked="keyword"),P(v?fe:me,qi);if(K=="{")return P(ue("}"),tn,se)}function tn(K,ee){if(K=="async"||K=="variable"&&(ee=="static"||ee=="get"||ee=="set"||v&&ie(ee))&&$.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return $.marked="keyword",P(tn);if(K=="variable"||$.style=="keyword")return $.marked="property",P(Un,tn);if(K=="number"||K=="string")return P(Un,tn);if(K=="[")return P(me,Ee,le("]"),Un,tn);if(ee=="*")return $.marked="keyword",P(tn);if(v&&K=="(")return W(In,tn);if(K==";"||K==",")return P(tn);if(K=="}")return P();if(ee=="@")return P(me,tn)}function Un(K,ee){if(ee=="!"||ee=="?")return P(Un);if(K==":")return P(fe,gn);if(ee=="=")return P(Ae);var ne=$.state.lexical.prev,de=ne&&ne.info=="interface";return W(de?In:Bn)}function fi(K,ee){return ee=="*"?($.marked="keyword",P(_e,le(";"))):ee=="default"?($.marked="keyword",P(me,le(";"))):K=="{"?P(qe(Zo,"}"),_e,le(";")):W(te)}function Zo(K,ee){if(ee=="as")return $.marked="keyword",P(le("variable"));if(K=="variable")return W(Ae,Zo)}function Wn(K){return K=="string"?P():K=="("?W(me):K=="."?W(st):W(di,zr,_e)}function di(K,ee){return K=="{"?en(di,"}"):(K=="variable"&&Q(ee),ee=="*"&&($.marked="keyword"),P(mt))}function zr(K){if(K==",")return P(di,zr)}function mt(K,ee){if(ee=="as")return $.marked="keyword",P(di)}function _e(K,ee){if(ee=="from")return $.marked="keyword",P(me)}function Kn(K){return K=="]"?P():W(qe(Ae,"]"))}function er(){return W(ue("form"),Kt,le("{"),ue("}"),qe(vn,"}"),se,se)}function vn(){return W(Kt,gn)}function tt(K,ee){return K.lastType=="operator"||K.lastType==","||D.test(ee.charAt(0))||/[,.]/.test(ee.charAt(0))}function Mn(K,ee,ne){return ee.tokenize==N&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(ee.lastType)||ee.lastType=="quasi"&&/\{\s*$/.test(K.string.slice(0,K.pos-(ne||0)))}return{startState:function(K){var ee={tokenize:N,lastType:"sof",cc:[],lexical:new R((K||0)-s,0,"block",!1),localVars:n.localVars,context:n.localVars&&new B(null,null,!1),indented:K||0};return n.globalVars&&typeof n.globalVars=="object"&&(ee.globalVars=n.globalVars),ee},token:function(K,ee){if(K.sol()&&(ee.lexical.hasOwnProperty("align")||(ee.lexical.align=!1),ee.indented=K.indentation(),S(K,ee)),ee.tokenize!=O&&K.eatSpace())return null;var ne=ee.tokenize(K,ee);return A=="comment"?ne:(ee.lastType=A=="operator"&&(g=="++"||g=="--")?"incdec":A,L(ee,ne,A,g,K))},indent:function(K,ee){if(K.tokenize==O||K.tokenize==k)return a.Pass;if(K.tokenize!=N)return 0;var ne=ee&&ee.charAt(0),de=K.lexical,Ie;if(!/^\s*else\b/.test(ee))for(var Ye=K.cc.length-1;Ye>=0;--Ye){var Ze=K.cc[Ye];if(Ze==se)de=de.prev;else if(Ze!=Zi&&Ze!=ae)break}for(;(de.type=="stat"||de.type=="form")&&(ne=="}"||(Ie=K.cc[K.cc.length-1])&&(Ie==st||Ie==ut)&&!/^[,\.=+\-*:?[\(]/.test(ee));)de=de.prev;d&&de.type==")"&&de.prev.type=="stat"&&(de=de.prev);var Nt=de.type,dn=ne==Nt;return Nt=="vardef"?de.indented+(K.lastType=="operator"||K.lastType==","?de.info.length+1:0):Nt=="form"&&ne=="{"?de.indented:Nt=="form"?de.indented+s:Nt=="stat"?de.indented+(tt(K,ee)?d||s:0):de.info=="switch"&&!dn&&n.doubleIndentSwitch!=!1?de.indented+(/^(?:case|default)\b/.test(ee)?s:2*s):de.align?de.column+(dn?0:1):de.indented+(dn?0:s)},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:Mn,skipExpression:function(K){L(K,"atom","atom","true",new a.StringStream("",2,null))}}}),a.registerHelper("wordChars","javascript",/[\w$]/),a.defineMIME("text/javascript","javascript"),a.defineMIME("text/ecmascript","javascript"),a.defineMIME("application/javascript","javascript"),a.defineMIME("application/x-javascript","javascript"),a.defineMIME("application/ecmascript","javascript"),a.defineMIME("application/json",{name:"javascript",json:!0}),a.defineMIME("application/x-json",{name:"javascript",json:!0}),a.defineMIME("application/manifest+json",{name:"javascript",json:!0}),a.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),a.defineMIME("text/typescript",{name:"javascript",typescript:!0}),a.defineMIME("application/typescript",{name:"javascript",typescript:!0})})})(),function(t,r){(function(a){a(Io())})(function(a){var o="CodeMirror-hint",n="CodeMirror-hint-active";a.showHint=function(g,b,N){if(!b)return g.showHint(N);N&&N.async&&(b.async=!0);var T={hint:b};if(N)for(var O in N)T[O]=N[O];return g.showHint(T)},a.defineExtension("showHint",function(g){g=p(this,this.getCursor("start"),g);var b=this.listSelections();if(!(b.length>1)){if(this.somethingSelected()){if(!g.hint.supportsSelection)return;for(var N=0;N<b.length;N++)if(b[N].head.line!=b[N].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var T=this.state.completionActive=new s(this,g);!T.options.hint||(a.signal(this,"startCompletion",this),T.update(!0))}}),a.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function s(g,b){if(this.cm=g,this.options=b,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var N=this;g.on("cursorActivity",this.activityFunc=function(){N.cursorActivity()})}}var d=window.requestAnimationFrame||function(g){return setTimeout(g,1e3/60)},c=window.cancelAnimationFrame||clearTimeout;s.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&a.signal(this.data,"close"),this.widget&&this.widget.close(),a.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(g,b){var N=g.list[b],T=this;this.cm.operation(function(){N.hint?N.hint(T.cm,g,N):T.cm.replaceRange(m(N),N.from||g.from,N.to||g.to,"complete"),a.signal(g,"pick",N),T.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(c(this.debounce),this.debounce=0);var g=this.startPos;this.data&&(g=this.data.from);var b=this.cm.getCursor(),N=this.cm.getLine(b.line);if(b.line!=this.startPos.line||N.length-b.ch!=this.startLen-this.startPos.ch||b.ch<g.ch||this.cm.somethingSelected()||!b.ch||this.options.closeCharacters.test(N.charAt(b.ch-1)))this.close();else{var T=this;this.debounce=d(function(){T.update()}),this.widget&&this.widget.disable()}},update:function(g){if(this.tick!=null){var b=this,N=++this.tick;C(this.options.hint,this.cm,this.options,function(T){b.tick==N&&b.finishUpdate(T,g)})}},finishUpdate:function(g,b){this.data&&a.signal(this.data,"update");var N=this.widget&&this.widget.picked||b&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=g,g&&g.list.length&&(N&&g.list.length==1?this.pick(g,0):(this.widget=new E(this,g),a.signal(g,"shown")))}};function p(g,b,N){var T=g.options.hintOptions,O={};for(var k in A)O[k]=A[k];if(T)for(var k in T)T[k]!==void 0&&(O[k]=T[k]);if(N)for(var k in N)N[k]!==void 0&&(O[k]=N[k]);return O.hint.resolve&&(O.hint=O.hint.resolve(g,b)),O}function m(g){return typeof g=="string"?g:g.text}function v(g,b){var N={Up:function(){b.moveFocus(-1)},Down:function(){b.moveFocus(1)},PageUp:function(){b.moveFocus(-b.menuSize()+1,!0)},PageDown:function(){b.moveFocus(b.menuSize()-1,!0)},Home:function(){b.setFocus(0)},End:function(){b.setFocus(b.length-1)},Enter:b.pick,Tab:b.pick,Esc:b.close},T=/Mac/.test(navigator.platform);T&&(N["Ctrl-P"]=function(){b.moveFocus(-1)},N["Ctrl-N"]=function(){b.moveFocus(1)});var O=g.options.customKeys,k=O?{}:N;function M(R,w){var L;typeof w!="string"?L=function($){return w($,b)}:N.hasOwnProperty(w)?L=N[w]:L=w,k[R]=L}if(O)for(var S in O)O.hasOwnProperty(S)&&M(S,O[S]);var F=g.options.extraKeys;if(F)for(var S in F)F.hasOwnProperty(S)&&M(S,F[S]);return k}function y(g,b){for(;b&&b!=g;){if(b.nodeName.toUpperCase()==="LI"&&b.parentNode==g)return b;b=b.parentNode}}function E(g,b){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=g,this.data=b,this.picked=!1;var N=this,T=g.cm,O=T.getInputField().ownerDocument,k=O.defaultView||O.parentWindow,M=this.hints=O.createElement("ul");M.setAttribute("role","listbox"),M.setAttribute("aria-expanded","true"),M.id=this.id;var S=g.cm.options.theme;M.className="CodeMirror-hints "+S,this.selectedHint=b.selectedHint||0;for(var F=b.list,R=0;R<F.length;++R){var w=M.appendChild(O.createElement("li")),L=F[R],$=o+(R!=this.selectedHint?"":" "+n);L.className!=null&&($=L.className+" "+$),w.className=$,R==this.selectedHint&&w.setAttribute("aria-selected","true"),w.id=this.id+"-"+R,w.setAttribute("role","option"),L.render?L.render(w,b,L):w.appendChild(O.createTextNode(L.displayText||m(L))),w.hintId=R}var W=g.options.container||O.body,P=T.cursorCoords(g.options.alignWithWord?b.from:null),U=P.left,Q=P.bottom,J=!0,ie=0,B=0;if(W!==O.body){var z=["absolute","relative","fixed"].indexOf(k.getComputedStyle(W).position)!==-1,G=z?W:W.offsetParent,Y=G.getBoundingClientRect(),Z=O.body.getBoundingClientRect();ie=Y.left-Z.left-G.scrollLeft,B=Y.top-Z.top-G.scrollTop}M.style.left=U-ie+"px",M.style.top=Q-B+"px";var ae=k.innerWidth||Math.max(O.body.offsetWidth,O.documentElement.offsetWidth),ue=k.innerHeight||Math.max(O.body.offsetHeight,O.documentElement.offsetHeight);W.appendChild(M),T.getInputField().setAttribute("aria-autocomplete","list"),T.getInputField().setAttribute("aria-owns",this.id),T.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var se=g.options.moveOnOverlap?M.getBoundingClientRect():new DOMRect,le=g.options.paddingForScrollbar?M.scrollHeight>M.clientHeight+1:!1,te;setTimeout(function(){te=T.getScrollInfo()});var pe=se.bottom-ue;if(pe>0){var me=se.bottom-se.top,Ae=P.top-(P.bottom-se.top);if(Ae-me>0)M.style.top=(Q=P.top-me-B)+"px",J=!1;else if(me>ue){M.style.height=ue-5+"px",M.style.top=(Q=P.bottom-se.top-B)+"px";var Fe=T.getCursor();b.from.ch!=Fe.ch&&(P=T.cursorCoords(Fe),M.style.left=(U=P.left-ie)+"px",se=M.getBoundingClientRect())}}var Qe=se.right-ae;if(le&&(Qe+=T.display.nativeBarWidth),Qe>0&&(se.right-se.left>ae&&(M.style.width=ae-5+"px",Qe-=se.right-se.left-ae),M.style.left=(U=Math.max(P.left-Qe-ie,0))+"px"),le)for(var Ge=M.firstChild;Ge;Ge=Ge.nextSibling)Ge.style.paddingRight=T.display.nativeBarWidth+"px";if(T.addKeyMap(this.keyMap=v(g,{moveFocus:function(Re,ot){N.changeActive(N.selectedHint+Re,ot)},setFocus:function(Re){N.changeActive(Re)},menuSize:function(){return N.screenAmount()},length:F.length,close:function(){g.close()},pick:function(){N.pick()},data:b})),g.options.closeOnUnfocus){var st;T.on("blur",this.onBlur=function(){st=setTimeout(function(){g.close()},100)}),T.on("focus",this.onFocus=function(){clearTimeout(st)})}T.on("scroll",this.onScroll=function(){var Re=T.getScrollInfo(),ot=T.getWrapperElement().getBoundingClientRect();te||(te=T.getScrollInfo());var qt=Q+te.top-Re.top,Ot=qt-(k.pageYOffset||(O.documentElement||O.body).scrollTop);if(J||(Ot+=M.offsetHeight),Ot<=ot.top||Ot>=ot.bottom)return g.close();M.style.top=qt+"px",M.style.left=U+te.left-Re.left+"px"}),a.on(M,"dblclick",function(Re){var ot=y(M,Re.target||Re.srcElement);ot&&ot.hintId!=null&&(N.changeActive(ot.hintId),N.pick())}),a.on(M,"click",function(Re){var ot=y(M,Re.target||Re.srcElement);ot&&ot.hintId!=null&&(N.changeActive(ot.hintId),g.options.completeOnSingleClick&&N.pick())}),a.on(M,"mousedown",function(){setTimeout(function(){T.focus()},20)});var ut=this.getSelectedHintRange();return(ut.from!==0||ut.to!==0)&&this.scrollToActive(),a.signal(b,"select",F[this.selectedHint],M.childNodes[this.selectedHint]),!0}E.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var g=this.completion.cm.getInputField();g.removeAttribute("aria-activedescendant"),g.removeAttribute("aria-owns");var b=this.completion.cm;this.completion.options.closeOnUnfocus&&(b.off("blur",this.onBlur),b.off("focus",this.onFocus)),b.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var g=this;this.keyMap={Enter:function(){g.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(g,b){if(g>=this.data.list.length?g=b?this.data.list.length-1:0:g<0&&(g=b?0:this.data.list.length-1),this.selectedHint!=g){var N=this.hints.childNodes[this.selectedHint];N&&(N.className=N.className.replace(" "+n,""),N.removeAttribute("aria-selected")),N=this.hints.childNodes[this.selectedHint=g],N.className+=" "+n,N.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",N.id),this.scrollToActive(),a.signal(this.data,"select",this.data.list[this.selectedHint],N)}},scrollToActive:function(){var g=this.getSelectedHintRange(),b=this.hints.childNodes[g.from],N=this.hints.childNodes[g.to],T=this.hints.firstChild;b.offsetTop<this.hints.scrollTop?this.hints.scrollTop=b.offsetTop-T.offsetTop:N.offsetTop+N.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=N.offsetTop+N.offsetHeight-this.hints.clientHeight+T.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var g=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-g),to:Math.min(this.data.list.length-1,this.selectedHint+g)}}};function D(g,b){if(!g.somethingSelected())return b;for(var N=[],T=0;T<b.length;T++)b[T].supportsSelection&&N.push(b[T]);return N}function C(g,b,N,T){if(g.async)g(b,T,N);else{var O=g(b,N);O&&O.then?O.then(T):T(O)}}function x(g,b){var N=g.getHelpers(b,"hint"),T;if(N.length){var O=function(k,M,S){var F=D(k,N);function R(w){if(w==F.length)return M(null);C(F[w],k,S,function(L){L&&L.list.length>0?M(L):R(w+1)})}R(0)};return O.async=!0,O.supportsSelection=!0,O}else return(T=g.getHelper(g.getCursor(),"hintWords"))?function(k){return a.hint.fromList(k,{words:T})}:a.hint.anyword?function(k,M){return a.hint.anyword(k,M)}:function(){}}a.registerHelper("hint","auto",{resolve:x}),a.registerHelper("hint","fromList",function(g,b){var N=g.getCursor(),T=g.getTokenAt(N),O,k=a.Pos(N.line,T.start),M=N;T.start<N.ch&&/\w/.test(T.string.charAt(N.ch-T.start-1))?O=T.string.substr(0,N.ch-T.start):(O="",k=N);for(var S=[],F=0;F<b.words.length;F++){var R=b.words[F];R.slice(0,O.length)==O&&S.push(R)}if(S.length)return{list:S,from:k,to:M}}),a.commands.autocomplete=a.showHint;var A={hint:a.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};a.defineOption("hintOptions",null)})}(),function(t,r){(function(a){a(Io())})(function(a){var o=a.Pos;function n(g,b){for(var N=0,T=g.length;N<T;++N)b(g[N])}function s(g,b){if(!Array.prototype.indexOf){for(var N=g.length;N--;)if(g[N]===b)return!0;return!1}return g.indexOf(b)!=-1}function d(g,b,N,T){var O=g.getCursor(),k=N(g,O);if(!/\b(?:string|comment)\b/.test(k.type)){var M=a.innerMode(g.getMode(),k.state);if(M.mode.helperType!=="json"){k.state=M.state,/^[\w$_]*$/.test(k.string)?k.end>O.ch&&(k.end=O.ch,k.string=k.string.slice(0,O.ch-k.start)):k={start:O.ch,end:O.ch,string:"",state:k.state,type:k.string=="."?"property":null};for(var S=k;S.type=="property";){if(S=N(g,o(O.line,S.start)),S.string!=".")return;if(S=N(g,o(O.line,S.start)),!F)var F=[];F.push(S)}return{list:A(k,F,b,T),from:o(O.line,k.start),to:o(O.line,k.end)}}}}function c(g,b){return d(g,D,function(N,T){return N.getTokenAt(T)},b)}a.registerHelper("hint","javascript",c);function p(g,b){var N=g.getTokenAt(b);return b.ch==N.start+1&&N.string.charAt(0)=="."?(N.end=N.start,N.string=".",N.type="property"):/^\.[\w$_]*$/.test(N.string)&&(N.type="property",N.start++,N.string=N.string.replace(/\./,"")),N}function m(g,b){return d(g,C,p,b)}a.registerHelper("hint","coffeescript",m);var v="charAt charCodeAt indexOf lastIndexOf substring substr slice trim trimLeft trimRight toUpperCase toLowerCase split concat match replace search".split(" "),y="length concat join splice push pop shift unshift slice reverse sort indexOf lastIndexOf every some filter forEach map reduce reduceRight ".split(" "),E="prototype apply call bind".split(" "),D="break case catch class const continue debugger default delete do else export extends false finally for function if in import instanceof new null return super switch this throw true try typeof var void while with yield".split(" "),C="and break catch class continue delete do else extends false finally for if in instanceof isnt new no not null of off on or return switch then throw true try typeof until void while with yes".split(" ");function x(g,b){if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)for(var N in g)b(N);else for(var T=g;T;T=Object.getPrototypeOf(T))Object.getOwnPropertyNames(T).forEach(b)}function A(g,b,N,T){var O=[],k=g.string,M=T&&T.globalScope||window;function S(P){P.lastIndexOf(k,0)==0&&!s(O,P)&&O.push(P)}function F(P){typeof P=="string"?n(v,S):P instanceof Array?n(y,S):P instanceof Function&&n(E,S),x(P,S)}if(b&&b.length){var R=b.pop(),w;for(R.type&&R.type.indexOf("variable")===0?(T&&T.additionalContext&&(w=T.additionalContext[R.string]),(!T||T.useGlobalScope!==!1)&&(w=w||M[R.string])):R.type=="string"?w="":R.type=="atom"?w=1:R.type=="function"&&(M.jQuery!=null&&(R.string=="$"||R.string=="jQuery")&&typeof M.jQuery=="function"?w=M.jQuery():M._!=null&&R.string=="_"&&typeof M._=="function"&&(w=M._()));w!=null&&b.length;)w=w[b.pop().string];w!=null&&F(w)}else{for(var L=g.state.localVars;L;L=L.next)S(L.name);for(var $=g.state.context;$;$=$.prev)for(var L=$.vars;L;L=L.next)S(L.name);for(var L=g.state.globalVars;L;L=L.next)S(L.name);if(T&&T.additionalContext!=null)for(var W in T.additionalContext)S(W);(!T||T.useGlobalScope!==!1)&&F(M),n(N,S)}return O}})}();const nw="",We=(t,r)=>{const a=t.__vccOpts||t;for(const[o,n]of r)a[o]=n;return a},fg="[[FORM-CREATE-PREFIX-",dg="-FORM-CREATE-SUFFIX]]",cg=l.defineComponent({name:"FnEditor",emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,body:Boolean,button:Boolean,fnx:Boolean},inject:["designer"],data(){return{editor:null,fn:"",visible:!1,value:""}},watch:{modelValue(t){t!=this.value&&(!t||!t.__json||t.__json&&t.__json!=this.value)&&this.editor&&this.editor.setValue(this.tidyValue())}},computed:{t(){return this.designer.setupState.t},argStr(){return(this.args||[]).map(t=>typeof t=="string"?t:t.name).join(", ")},argList(){return this.args.map(t=>typeof t=="string"?{name:t,type:"string"}:t)}},mounted(){this.$nextTick(()=>{this.load()})},methods:{save(){const t=this.editor.getValue()||"";if(t.trim()==="")this.fn="";else{let r;try{r=new Function("return function ("+this.argStr+`){
`+t+`
}`)()}catch(a){return console.error(a),yn(this.t("struct.errorMsg")),!1}this.body?this.fn=(this.fnx?"$FNX:":"")+t:this.fn=fg+r+dg}return this.submit(),!0},submit(){this.$emit("update:modelValue",this.fn),this.$emit("change",this.fn),this.value=this.fn,this.visible=!1},trimString(t){const r=t.indexOf("{"),a=t.lastIndexOf("}");return r===-1||a===-1||r>=a?t:t.slice(r+1,a).replace(/^\n+|\n+$/g,"")},tidyValue(){let t=this.modelValue||"";return t.__json&&(t=t.__json),this.fnx&&typeof t=="string"&&t.indexOf("$FNX:")===0&&(t=t.slice(5)),typeof t=="function"?t=this.trimString(Nn(t)).trim():this.body||(t=this.trimString(t).trim()),this.value=t,t},load(){this.$nextTick(()=>{let t=this.tidyValue();this.editor=l.markRaw(Ki(this.$refs.editor,{lineNumbers:!0,mode:{name:"javascript",globalVars:!0},extraKeys:{"Ctrl-Space":"autocomplete"},line:!0,tabSize:2,lineWrapping:!0,value:t})),this.editor.on("inputRead",(r,a)=>{a.keyCode===32&&a.ctrlKey&&Ki.showHint(r,Ki.hint.javascript)}),this.editor.on("change",()=>{this.visible=!0}),this.editor})}}}),pg={class:"_fd-fn"},hg={class:"_fd-fn-tip"},mg={class:"cm-keyword"},gg={key:0},vg={class:"_fd-fn-arg"},yg={ref:"editor",class:"_fd-fn-editor"};function bg(t,r,a,o,n,s){const d=l.resolveComponent("el-table-column"),c=l.resolveComponent("el-table"),p=l.resolveComponent("el-popover"),m=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",pg,[l.createElementVNode("div",hg,[r[2]||(r[2]=l.createElementVNode("div",{class:"_fd-fn-ind"},null,-1)),l.createElementVNode("div",mg,[l.createElementVNode("span",null,[l.createTextVNode("function "+l.toDisplayString(t.name)+"(",1),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.argList,(v,y)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createTextVNode(l.toDisplayString(y>0?", ":""),1),v.type==="string"?(l.openBlock(),l.createElementBlock("span",gg,l.toDisplayString(v.name),1)):(l.openBlock(),l.createBlock(p,{key:1,placement:"top-start",width:400,"hide-after":0,trigger:"click",title:v.name,content:v.info||""},{reference:l.withCtx(()=>[l.createElementVNode("span",vg,[l.createTextVNode(l.toDisplayString(v.name),1),r[0]||(r[0]=l.createElementVNode("i",{class:"fc-icon icon-question"},null,-1))])]),default:l.withCtx(()=>[v.columns?(l.openBlock(),l.createBlock(c,{key:0,data:v.columns,border:""},{default:l.withCtx(()=>[l.createVNode(d,{width:"120",property:"label",label:t.t("event.label")},null,8,["label"]),l.createVNode(d,{property:"info",label:t.t("event.info")},null,8,["label"]),l.createVNode(d,{width:"80",property:"type",label:t.t("event.type")},null,8,["label"])]),_:2},1032,["data"])):l.createCommentVNode("",!0)]),_:2},1032,["title","content"]))],64))),256)),r[1]||(r[1]=l.createTextVNode(") {",-1))])])]),l.createElementVNode("div",yg,null,512),r[3]||(r[3]=l.createElementVNode("div",{class:"_fd-fn-tip"},[l.createElementVNode("div",{class:"_fd-fn-ind"}),l.createElementVNode("div",{class:"cm-keyword"},"}")],-1)),t.visible&&t.button?(l.openBlock(),l.createBlock(m,{key:0,type:"primary",size:"small",onClick:t.save},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.save")),1)]),_:1},8,["onClick"])):l.createCommentVNode("",!0)])}const Br=We(cg,[["render",bg]]),iw="",Gi="$FNX:",Mo=t=>Xe.String(t)&&t.indexOf(Gi)===0,Ag=l.defineComponent({name:"EventConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],componentName:String,eventName:{type:Array,default:()=>[]}},inject:["designer"],components:{FnEditor:Br},data(){return{visible:!1,activeData:null,val:null,defActive:"no",hookList:["hook_load","hook_mounted","hook_deleted","hook_watch","hook_value","hook_hidden"],event:{},cus:!1,cusValue:"",eventStr:""}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},orgEvent(){return!this.eventName||!this.eventName.length?["click"]:this.eventName},eventList(){return this.orgEvent.map(t=>typeof t=="object"?t.name:t)},eventInfo(){const t={};return this.orgEvent.forEach(r=>{typeof r=="object"?t[r.name]=this.t("com."+this.componentName+".event."+r.name)||r.info||this.t("eventInfo."+r.name)||"":t[r]=this.t("com."+this.componentName+".event."+r)||this.t("eventInfo."+r)||""}),this.hookList.forEach(r=>{t[r]=this.t("eventInfo."+r)||""}),t},eventNum(){let t=0;Object.keys(this.modelValue||{}).forEach(a=>{t+=Array.isArray(this.modelValue[a])?this.modelValue[a].length:1});const r=this.activeRule?{...this.activeRule.hook||{}}:{};return Object.keys(r).forEach(a=>{t+=Array.isArray(this.activeRule.hook[a])?this.activeRule.hook[a].length:1}),t},fnArgs(){return[qn(this.t)]}},watch:{visible(t){this.event=t?this.loadFN():{},t||(this.destroy(),this.closeCus())}},methods:{addCus(){const t=this.cusValue&&this.cusValue.trim();t&&(this.closeCus(),this.add(t))},closeCus(){this.cus=!1,this.cusValue=""},cusEvent(){this.cus=!0},loadFN(){const t=vo({},this.modelValue||{}),r=this.activeRule?{...this.activeRule.hook||{}}:{};Object.keys(r).forEach(o=>{t["hook_"+o]=r[o]});const a={};return Object.keys(t).forEach(o=>{if(Array.isArray(t[o])){const n=[];t[o].forEach(s=>{Mo(s)?n.push(s.replace(Gi,"")):Xe.Function(s)&&Mo(s.__json)?n.push(s.__json.replace(Gi,"")):s&&s.indexOf("$GLOBAL:")===0&&n.push(s)}),a[o]=n}else if(Mo(t[o]))a[o]=[t[o].replace(Gi,"")];else if(Xe.Function(t[o])){const n=t[o].__json||"";n?Mo(n)?a[o]=[n.replace(Gi,"")]:a[o]=[n]:a[o]=[""+t[o]]}else t[o]&&t[o].indexOf("$GLOBAL:")===0&&(a[o]=[t[o]])}),a},parseFN(t){const r={},a={};return Object.keys(t).forEach(o=>{const n=[];t[o].forEach((s,d)=>{n[d]=s.indexOf("$GLOBAL:")!==0?Gi+s:s}),n.length>0&&(o.indexOf("hook_")>-1?a[o.replace("hook_","")]=n.length===1?n[0]:n:r[o]=n.length===1?n[0]:n)}),{hooks:a,on:r}},add(t){let r={};if(Array.isArray(this.event[t]))this.event[t].push(""),r={name:t,item:this.event[t],index:this.event[t].length-1};else if(this.event[t]){const a=[this.event[t],""];this.event[t]=a,r={name:t,item:a,index:1}}else{const a=[""];this.event[t]=a,r={name:t,item:a,index:0}}this.activeData||this.edit(r)},edit(t){t.key=ze(),t.item?this.val=t.item[t.index]:this.val=this.event[t.name],this.activeData=t,this.eventStr=this.val,this.defActive=t.name+(t.index||0)},save(){if(!this.$refs.fn.save())return;const t=this.eventStr;this.activeData.item?this.activeData.item[this.activeData.index]=t:this.event[this.activeData.name]=t,this.destroy()},rm(t){t.index!==void 0?t.item.splice(t.index,1):this.$delete(this.event,t.name),this.defActive===t.name+(t.index||0)&&this.destroy()},destroy(){this.activeData=null,this.val=null,this.defActive="no"},close(){this.destroy()},submit(){if(this.activeData)return yn(this.t("event.saveMsg"));const{on:t,hooks:r}=this.parseFN(this.event);this.$emit("update:modelValue",t),this.activeRule.hook=r,this.visible=!1,this.destroy(),this.closeCus()}},beforeCreate(){window.$inject={$f:{},rule:[],self:{},option:{},inject:{},args:[]}}}),Cg={class:"_fd-event"},wg={class:"el-dropdown-link"},Eg={class:"_fd-event-item"},Sg={key:0,class:"_fd-label"},xg={class:"_fd-event-item"},Tg={class:"_fd-label"},Ng=["onClick"],_g={class:"_fd-event-method"},Dg={key:0,class:"_fd-label"},Rg=["onClick"],Og=["onClick"],kg={class:"_fd-event-method"},Bg={key:0,class:"_fd-label"},Ig=["onClick"],Mg={target:"_blank",href:"https://form-create.com/v3/instance/"};function Pg(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-badge"),p=l.resolveComponent("el-dropdown-item"),m=l.resolveComponent("el-dropdown-menu"),v=l.resolveComponent("el-dropdown"),y=l.resolveComponent("el-header"),E=l.resolveComponent("el-menu-item"),D=l.resolveComponent("el-input"),C=l.resolveComponent("el-menu"),x=l.resolveComponent("el-main"),A=l.resolveComponent("el-container"),g=l.resolveComponent("el-aside"),b=l.resolveComponent("FnEditor"),N=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",Cg,[l.createVNode(c,{value:t.eventNum,type:"warning",hidden:t.eventNum<1},{default:l.withCtx(()=>[l.createVNode(d,{size:"small",onClick:r[0]||(r[0]=T=>t.visible=!0)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("event.title")),1)]),_:1})]),_:1},8,["value","hidden"]),l.createVNode(N,{class:"_fd-event-dialog",title:t.t("event.title"),modelValue:t.visible,"onUpdate:modelValue":r[8]||(r[8]=T=>t.visible=T),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1080px"},{footer:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(d,{size:"default",onClick:r[7]||(r[7]=T=>t.visible=!1)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.cancel")),1)]),_:1}),l.createVNode(d,{type:"primary",size:"default",onClick:t.submit,color:"#2f73ff"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:l.withCtx(()=>[l.createVNode(A,{class:"_fd-event-con",style:{height:"600px"}},{default:l.withCtx(()=>[l.createVNode(g,{style:{width:"300px"}},{default:l.withCtx(()=>[l.createVNode(A,{class:"_fd-event-l"},{default:l.withCtx(()=>[l.createVNode(y,{class:"_fd-event-head",height:"40px"},{default:l.withCtx(()=>[l.createVNode(v,{"popper-class":"_fd-event-dropdown",trigger:"click",size:"default",placement:"bottom-start"},{dropdown:l.withCtx(()=>[l.createVNode(m,null,{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.eventList,T=>(l.openBlock(),l.createBlock(p,{key:T,onClick:O=>t.add(T),disabled:Object.keys(t.event).indexOf(T)>-1},{default:l.withCtx(()=>[l.createElementVNode("div",Eg,[l.createElementVNode("span",null,l.toDisplayString(T),1),t.eventInfo[T]?(l.openBlock(),l.createElementBlock("span",Sg,l.toDisplayString(t.eventInfo[T]),1)):l.createCommentVNode("",!0)])]),_:2},1032,["onClick","disabled"]))),128)),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.hookList,(T,O)=>(l.openBlock(),l.createBlock(p,{divided:t.eventList.length>0&&!O,onClick:k=>t.add(T),disabled:Object.keys(t.event).indexOf(T)>-1},{default:l.withCtx(()=>[l.createElementVNode("div",xg,[l.createElementVNode("div",null,l.toDisplayString(T),1),l.createElementVNode("span",Tg,l.toDisplayString(t.eventInfo[T]),1)])]),_:2},1032,["divided","onClick","disabled"]))),256)),l.createVNode(p,{divided:t.eventList.length>0,onClick:t.cusEvent},{default:l.withCtx(()=>[l.createElementVNode("div",null,l.toDisplayString(t.t("props.custom")),1)]),_:1},8,["divided","onClick"])]),_:1})]),default:l.withCtx(()=>[l.createElementVNode("span",wg,[l.createVNode(d,{link:"",type:"primary",size:"default"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("event.create")),1),r[9]||(r[9]=l.createElementVNode("i",{class:"el-icon-arrow-down el-icon--right"},null,-1))]),_:1,__:[9]})])]),_:1})]),_:1}),l.createVNode(x,null,{default:l.withCtx(()=>[l.createVNode(C,{"default-active":t.defActive,modelValue:t.activeData,"onUpdate:modelValue":r[5]||(r[5]=T=>t.activeData=T)},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.event,(T,O)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[Array.isArray(T)?(l.openBlock(!0),l.createElementBlock(l.Fragment,{key:0},l.renderList(T,(k,M)=>(l.openBlock(),l.createBlock(E,{key:O+M,index:O+M},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"_fd-event-title",onClick:l.withModifiers(S=>t.edit({name:O,item:T,index:M}),["stop"])},[l.createElementVNode("div",_g,[l.createElementVNode("span",null,[r[10]||(r[10]=l.createTextVNode("function",-1)),l.createElementVNode("span",null,l.toDisplayString(O),1)]),t.eventInfo[O]?(l.openBlock(),l.createElementBlock("span",Dg,l.toDisplayString(t.eventInfo[O]),1)):l.createCommentVNode("",!0)]),l.createElementVNode("i",{class:"fc-icon icon-delete",onClick:l.withModifiers(S=>t.rm({name:O,item:T,index:M}),["stop"])},null,8,Rg)],8,Ng)]),_:2},1032,["index"]))),128)):(l.openBlock(),l.createBlock(E,{key:1,index:O+0},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"_fd-event-title",onClick:l.withModifiers(k=>t.edit({name:O}),["stop"])},[l.createElementVNode("div",kg,[l.createElementVNode("span",null,[r[11]||(r[11]=l.createTextVNode("function",-1)),l.createElementVNode("span",null,l.toDisplayString(O),1)]),t.eventInfo[O]?(l.openBlock(),l.createElementBlock("span",Bg,l.toDisplayString(t.eventInfo[O]),1)):l.createCommentVNode("",!0)]),l.createElementVNode("i",{class:"fc-icon icon-delete",onClick:l.withModifiers(k=>t.rm({name:O}),["stop"])},null,8,Ig)],8,Og)]),_:2},1032,["index"]))],64))),256)),t.cus?(l.openBlock(),l.createBlock(E,{key:0,style:{"padding-left":"10px"},index:"custom"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"_fd-event-title",onClick:r[4]||(r[4]=l.withModifiers(()=>{},["stop"]))},[l.createVNode(D,{type:"text",modelValue:t.cusValue,"onUpdate:modelValue":r[1]||(r[1]=T=>t.cusValue=T),size:"default",onKeydown:l.withKeys(t.addCus,["enter"]),placeholder:t.t("event.placeholder")},null,8,["modelValue","onKeydown","placeholder"]),l.createElementVNode("div",null,[l.createElementVNode("i",{class:"fc-icon icon-add",onClick:r[2]||(r[2]=l.withModifiers((...T)=>t.addCus&&t.addCus(...T),["stop"]))}),l.createElementVNode("i",{class:"fc-icon icon-delete",onClick:r[3]||(r[3]=l.withModifiers((...T)=>t.closeCus&&t.closeCus(...T),["stop"]))})])])]),_:1})):l.createCommentVNode("",!0)]),_:1},8,["default-active","modelValue"])]),_:1})]),_:1})]),_:1}),l.createVNode(x,null,{default:l.withCtx(()=>[l.createVNode(A,{class:"_fd-event-r"},{default:l.withCtx(()=>[t.activeData?(l.openBlock(),l.createBlock(y,{key:0,class:"_fd-event-head",height:"40px"},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("a",Mg,l.toDisplayString(t.t("form.document")),1)]),l.createElementVNode("div",null,[l.createVNode(d,{size:"small",onClick:t.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.cancel")),1)]),_:1},8,["onClick"]),l.createVNode(d,{size:"small",type:"primary",onClick:t.save,color:"#2f73ff"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.save")),1)]),_:1},8,["onClick"])])]),_:1})):l.createCommentVNode("",!0),t.activeData?(l.openBlock(),l.createBlock(x,{key:1},{default:l.withCtx(()=>[l.createVNode(b,{ref:"fn",modelValue:t.eventStr,"onUpdate:modelValue":r[6]||(r[6]=T=>t.eventStr=T),body:"",name:t.activeData.name,args:t.fnArgs,style:{height:"519px"}},null,8,["modelValue","name","args"])]),_:1})):l.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}const ff=We(Ag,[["render",Pg]]);function Lg(t,r){var a=null;return function(...o){a!==null&&clearTimeout(a),a=setTimeout(()=>t.call(this,...o),r)}}/*!
Highlight.js v11.9.0 (git: b7ec4bfafc)
(c) 2006-2024 undefined and other contributors
License: BSD-3-Clause
*/function df(t){return t instanceof Map?t.clear=t.delete=t.set=()=>{throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{throw Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(r=>{const a=t[r],o=typeof a;o!=="object"&&o!=="function"||Object.isFrozen(a)||df(a)}),t}class cf{constructor(r){r.data===void 0&&(r.data={}),this.data=r.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function pf(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function ri(t,...r){const a=Object.create(null);for(const o in t)a[o]=t[o];return r.forEach(o=>{for(const n in o)a[n]=o[n]}),a}const hf=t=>!!t.scope;class Vg{constructor(r,a){this.buffer="",this.classPrefix=a.classPrefix,r.walk(this)}addText(r){this.buffer+=pf(r)}openNode(r){if(!hf(r))return;const a=((o,{prefix:n})=>{if(o.startsWith("language:"))return o.replace("language:","language-");if(o.includes(".")){const s=o.split(".");return[`${n}${s.shift()}`,...s.map((d,c)=>`${d}${"_".repeat(c+1)}`)].join(" ")}return`${n}${o}`})(r.scope,{prefix:this.classPrefix});this.span(a)}closeNode(r){hf(r)&&(this.buffer+="</span>")}value(){return this.buffer}span(r){this.buffer+=`<span class="${r}">`}}const mf=(t={})=>{const r={children:[]};return Object.assign(r,t),r};class Ml{constructor(){this.rootNode=mf(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(r){this.top.children.push(r)}openNode(r){const a=mf({scope:r});this.add(a),this.stack.push(a)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(r){return this.constructor._walk(r,this.rootNode)}static _walk(r,a){return typeof a=="string"?r.addText(a):a.children&&(r.openNode(a),a.children.forEach(o=>this._walk(r,o)),r.closeNode(a)),r}static _collapse(r){typeof r!="string"&&r.children&&(r.children.every(a=>typeof a=="string")?r.children=[r.children.join("")]:r.children.forEach(a=>{Ml._collapse(a)}))}}class Fg extends Ml{constructor(r){super(),this.options=r}addText(r){r!==""&&this.add(r)}startScope(r){this.openNode(r)}endScope(){this.closeNode()}__addSublanguage(r,a){const o=r.root;a&&(o.scope="language:"+a),this.add(o)}toHTML(){return new Vg(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}}function Ir(t){return t?typeof t=="string"?t:t.source:null}function gf(t){return xi("(?=",t,")")}function $g(t){return xi("(?:",t,")*")}function Hg(t){return xi("(?:",t,")?")}function xi(...t){return t.map(r=>Ir(r)).join("")}function Pl(...t){return"("+((a=>{const o=a[a.length-1];return typeof o=="object"&&o.constructor===Object?(a.splice(a.length-1,1),o):{}})(t).capture?"":"?:")+t.map(a=>Ir(a)).join("|")+")"}function vf(t){return RegExp(t.toString()+"|").exec("").length-1}const zg=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function Ll(t,{joinWith:r}){let a=0;return t.map(o=>{a+=1;const n=a;let s=Ir(o),d="";for(;s.length>0;){const c=zg.exec(s);if(!c){d+=s;break}d+=s.substring(0,c.index),s=s.substring(c.index+c[0].length),c[0][0]==="\\"&&c[1]?d+="\\"+(Number(c[1])+n):(d+=c[0],c[0]==="("&&a++)}return d}).map(o=>`(${o})`).join(r)}const yf="[a-zA-Z]\\w*",Vl="[a-zA-Z_]\\w*",bf="\\b\\d+(\\.\\d+)?",Af="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Cf="\\b(0b[01]+)",Mr={begin:"\\\\[\\s\\S]",relevance:0},jg={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[Mr]},Ug={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[Mr]},Po=(t,r,a={})=>{const o=ri({scope:"comment",begin:t,end:r,contains:[]},a);o.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});const n=Pl("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return o.contains.push({begin:xi(/[ ]+/,"(",n,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),o},Wg=Po("//","$"),Kg=Po("/\\*","\\*/"),Gg=Po("#","$");var Lo=Object.freeze({__proto__:null,APOS_STRING_MODE:jg,BACKSLASH_ESCAPE:Mr,BINARY_NUMBER_MODE:{scope:"number",begin:Cf,relevance:0},BINARY_NUMBER_RE:Cf,COMMENT:Po,C_BLOCK_COMMENT_MODE:Kg,C_LINE_COMMENT_MODE:Wg,C_NUMBER_MODE:{scope:"number",begin:Af,relevance:0},C_NUMBER_RE:Af,END_SAME_AS_BEGIN:t=>Object.assign(t,{"on:begin":(r,a)=>{a.data._beginMatch=r[1]},"on:end":(r,a)=>{a.data._beginMatch!==r[1]&&a.ignoreMatch()}}),HASH_COMMENT_MODE:Gg,IDENT_RE:yf,MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+Vl,relevance:0},NUMBER_MODE:{scope:"number",begin:bf,relevance:0},NUMBER_RE:bf,PHRASAL_WORDS_MODE:{begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},QUOTE_STRING_MODE:Ug,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,end:/\/[gimuy]*/,contains:[Mr,{begin:/\[/,end:/\]/,relevance:0,contains:[Mr]}]},RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(t={})=>{const r=/^#![ ]*\//;return t.binary&&(t.begin=xi(r,/.*\b/,t.binary,/\b.*/)),ri({scope:"meta",begin:r,end:/$/,relevance:0,"on:begin":(a,o)=>{a.index!==0&&o.ignoreMatch()}},t)},TITLE_MODE:{scope:"title",begin:yf,relevance:0},UNDERSCORE_IDENT_RE:Vl,UNDERSCORE_TITLE_MODE:{scope:"title",begin:Vl,relevance:0}});function Yg(t,r){t.input[t.index-1]==="."&&r.ignoreMatch()}function Qg(t,r){t.className!==void 0&&(t.scope=t.className,delete t.className)}function Xg(t,r){r&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=Yg,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function Jg(t,r){Array.isArray(t.illegal)&&(t.illegal=Pl(...t.illegal))}function Zg(t,r){if(t.match){if(t.begin||t.end)throw Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function qg(t,r){t.relevance===void 0&&(t.relevance=1)}const ev=(t,r)=>{if(!t.beforeMatch)return;if(t.starts)throw Error("beforeMatch cannot be used with starts");const a=Object.assign({},t);Object.keys(t).forEach(o=>{delete t[o]}),t.keywords=a.keywords,t.begin=xi(a.beforeMatch,gf(a.begin)),t.starts={relevance:0,contains:[Object.assign(a,{endsParent:!0})]},t.relevance=0,delete a.beforeMatch},tv=["of","and","for","in","not","or","if","then","parent","list","value"],nv="keyword";function wf(t,r,a=nv){const o=Object.create(null);return typeof t=="string"?n(a,t.split(" ")):Array.isArray(t)?n(a,t):Object.keys(t).forEach(s=>{Object.assign(o,wf(t[s],r,s))}),o;function n(s,d){r&&(d=d.map(c=>c.toLowerCase())),d.forEach(c=>{const p=c.split("|");o[p[0]]=[s,iv(p[0],p[1])]})}}function iv(t,r){return r?Number(r):(a=>tv.includes(a.toLowerCase()))(t)?0:1}const Ef={},Ti=t=>{console.error(t)},Sf=(t,...r)=>{console.log("WARN: "+t,...r)},Yi=(t,r)=>{Ef[`${t}/${r}`]||(console.log(`Deprecated as of ${t}. ${r}`),Ef[`${t}/${r}`]=!0)},Vo=Error();function xf(t,r,{key:a}){let o=0;const n=t[a],s={},d={};for(let c=1;c<=r.length;c++)d[c+o]=n[c],s[c+o]=!0,o+=vf(r[c-1]);t[a]=d,t[a]._emit=s,t[a]._multi=!0}function rv(t){(r=>{r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)})(t),typeof t.beginScope=="string"&&(t.beginScope={_wrap:t.beginScope}),typeof t.endScope=="string"&&(t.endScope={_wrap:t.endScope}),(r=>{if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw Ti("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),Vo;if(typeof r.beginScope!="object"||r.beginScope===null)throw Ti("beginScope must be object"),Vo;xf(r,r.begin,{key:"beginScope"}),r.begin=Ll(r.begin,{joinWith:""})}})(t),(r=>{if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw Ti("skip, excludeEnd, returnEnd not compatible with endScope: {}"),Vo;if(typeof r.endScope!="object"||r.endScope===null)throw Ti("endScope must be object"),Vo;xf(r,r.end,{key:"endScope"}),r.end=Ll(r.end,{joinWith:""})}})(t)}function ov(t){function r(n,s){return RegExp(Ir(n),"m"+(t.case_insensitive?"i":"")+(t.unicodeRegex?"u":"")+(s?"g":""))}class a{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(s,d){d.position=this.position++,this.matchIndexes[this.matchAt]=d,this.regexes.push([d,s]),this.matchAt+=vf(s)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const s=this.regexes.map(d=>d[1]);this.matcherRe=r(Ll(s,{joinWith:"|"}),!0),this.lastIndex=0}exec(s){this.matcherRe.lastIndex=this.lastIndex;const d=this.matcherRe.exec(s);if(!d)return null;const c=d.findIndex((m,v)=>v>0&&m!==void 0),p=this.matchIndexes[c];return d.splice(0,c),Object.assign(d,p)}}class o{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(s){if(this.multiRegexes[s])return this.multiRegexes[s];const d=new a;return this.rules.slice(s).forEach(([c,p])=>d.addRule(c,p)),d.compile(),this.multiRegexes[s]=d,d}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(s,d){this.rules.push([s,d]),d.type==="begin"&&this.count++}exec(s){const d=this.getMatcher(this.regexIndex);d.lastIndex=this.lastIndex;let c=d.exec(s);if(this.resumingScanAtSamePosition()&&!(c&&c.index===this.lastIndex)){const p=this.getMatcher(0);p.lastIndex=this.lastIndex+1,c=p.exec(s)}return c&&(this.regexIndex+=c.position+1,this.regexIndex===this.count&&this.considerAll()),c}}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=ri(t.classNameAliases||{}),function n(s,d){const c=s;if(s.isCompiled)return c;[Qg,Zg,rv,ev].forEach(m=>m(s,d)),t.compilerExtensions.forEach(m=>m(s,d)),s.__beforeBegin=null,[Xg,Jg,qg].forEach(m=>m(s,d)),s.isCompiled=!0;let p=null;return typeof s.keywords=="object"&&s.keywords.$pattern&&(s.keywords=Object.assign({},s.keywords),p=s.keywords.$pattern,delete s.keywords.$pattern),p=p||/\w+/,s.keywords&&(s.keywords=wf(s.keywords,t.case_insensitive)),c.keywordPatternRe=r(p,!0),d&&(s.begin||(s.begin=/\B|\b/),c.beginRe=r(c.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(c.endRe=r(c.end)),c.terminatorEnd=Ir(c.end)||"",s.endsWithParent&&d.terminatorEnd&&(c.terminatorEnd+=(s.end?"|":"")+d.terminatorEnd)),s.illegal&&(c.illegalRe=r(s.illegal)),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map(m=>(v=>(v.variants&&!v.cachedVariants&&(v.cachedVariants=v.variants.map(y=>ri(v,{variants:null},y))),v.cachedVariants?v.cachedVariants:Tf(v)?ri(v,{starts:v.starts?ri(v.starts):null}):Object.isFrozen(v)?ri(v):v))(m==="self"?s:m))),s.contains.forEach(m=>{n(m,c)}),s.starts&&n(s.starts,d),c.matcher=(m=>{const v=new o;return m.contains.forEach(y=>v.addRule(y.begin,{rule:y,type:"begin"})),m.terminatorEnd&&v.addRule(m.terminatorEnd,{type:"end"}),m.illegal&&v.addRule(m.illegal,{type:"illegal"}),v})(c),c}(t)}function Tf(t){return!!t&&(t.endsWithParent||Tf(t.starts))}class av extends Error{constructor(r,a){super(r),this.name="HTMLInjectionError",this.html=a}}const Fl=pf,Nf=ri,_f=Symbol("nomatch"),Df=t=>{const r=Object.create(null),a=Object.create(null),o=[];let n=!0;const s="Could not find the language '{}', did you forget to load/include a language module?",d={disableAutodetect:!0,name:"Plain text",contains:[]};let c={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:Fg};function p(N){return c.noHighlightRe.test(N)}function m(N,T,O){let k="",M="";typeof T=="object"?(k=N,O=T.ignoreIllegals,M=T.language):(Yi("10.7.0","highlight(lang, code, ...args) has been deprecated."),Yi("10.7.0",`Please use highlight(code, options) instead.
https://github.com/highlightjs/highlight.js/issues/2277`),M=N,k=T),O===void 0&&(O=!0);const S={code:k,language:M};b("before:highlight",S);const F=S.result?S.result:v(S.language,S.code,O);return F.code=S.code,b("after:highlight",F),F}function v(N,T,O,k){const M=Object.create(null);function S(){if(!z.keywords)return Y.addText(Z);let te=0;z.keywordPatternRe.lastIndex=0;let pe=z.keywordPatternRe.exec(Z),me="";for(;pe;){me+=Z.substring(te,pe.index);const Fe=J.case_insensitive?pe[0].toLowerCase():pe[0],Qe=(Ae=Fe,z.keywords[Ae]);if(Qe){const[Ge,st]=Qe;if(Y.addText(me),me="",M[Fe]=(M[Fe]||0)+1,M[Fe]<=7&&(ae+=st),Ge.startsWith("_"))me+=pe[0];else{const ut=J.classNameAliases[Ge]||Ge;R(pe[0],ut)}}else me+=pe[0];te=z.keywordPatternRe.lastIndex,pe=z.keywordPatternRe.exec(Z)}var Ae;me+=Z.substring(te),Y.addText(me)}function F(){z.subLanguage!=null?(()=>{if(Z==="")return;let te=null;if(typeof z.subLanguage=="string"){if(!r[z.subLanguage])return Y.addText(Z);te=v(z.subLanguage,Z,!0,G[z.subLanguage]),G[z.subLanguage]=te._top}else te=y(Z,z.subLanguage.length?z.subLanguage:null);z.relevance>0&&(ae+=te.relevance),Y.__addSublanguage(te._emitter,te.language)})():S(),Z=""}function R(te,pe){te!==""&&(Y.startScope(pe),Y.addText(te),Y.endScope())}function w(te,pe){let me=1;const Ae=pe.length-1;for(;me<=Ae;){if(!te._emit[me]){me++;continue}const Fe=J.classNameAliases[te[me]]||te[me],Qe=pe[me];Fe?R(Qe,Fe):(Z=Qe,S(),Z=""),me++}}function L(te,pe){return te.scope&&typeof te.scope=="string"&&Y.openNode(J.classNameAliases[te.scope]||te.scope),te.beginScope&&(te.beginScope._wrap?(R(Z,J.classNameAliases[te.beginScope._wrap]||te.beginScope._wrap),Z=""):te.beginScope._multi&&(w(te.beginScope,pe),Z="")),z=Object.create(te,{parent:{value:z}}),z}function $(te,pe,me){let Ae=((Fe,Qe)=>{const Ge=Fe&&Fe.exec(Qe);return Ge&&Ge.index===0})(te.endRe,me);if(Ae){if(te["on:end"]){const Fe=new cf(te);te["on:end"](pe,Fe),Fe.isMatchIgnored&&(Ae=!1)}if(Ae){for(;te.endsParent&&te.parent;)te=te.parent;return te}}if(te.endsWithParent)return $(te.parent,pe,me)}function W(te){return z.matcher.regexIndex===0?(Z+=te[0],1):(le=!0,0)}function P(te){const pe=te[0],me=T.substring(te.index),Ae=$(z,te,me);if(!Ae)return _f;const Fe=z;z.endScope&&z.endScope._wrap?(F(),R(pe,z.endScope._wrap)):z.endScope&&z.endScope._multi?(F(),w(z.endScope,te)):Fe.skip?Z+=pe:(Fe.returnEnd||Fe.excludeEnd||(Z+=pe),F(),Fe.excludeEnd&&(Z=pe));do z.scope&&Y.closeNode(),z.skip||z.subLanguage||(ae+=z.relevance),z=z.parent;while(z!==Ae.parent);return Ae.starts&&L(Ae.starts,te),Fe.returnEnd?0:pe.length}let U={};function Q(te,pe){const me=pe&&pe[0];if(Z+=te,me==null)return F(),0;if(U.type==="begin"&&pe.type==="end"&&U.index===pe.index&&me===""){if(Z+=T.slice(pe.index,pe.index+1),!n){const Ae=Error(`0 width match regex (${N})`);throw Ae.languageName=N,Ae.badRule=U.rule,Ae}return 1}if(U=pe,pe.type==="begin")return(Ae=>{const Fe=Ae[0],Qe=Ae.rule,Ge=new cf(Qe),st=[Qe.__beforeBegin,Qe["on:begin"]];for(const ut of st)if(ut&&(ut(Ae,Ge),Ge.isMatchIgnored))return W(Fe);return Qe.skip?Z+=Fe:(Qe.excludeBegin&&(Z+=Fe),F(),Qe.returnBegin||Qe.excludeBegin||(Z=Fe)),L(Qe,Ae),Qe.returnBegin?0:Fe.length})(pe);if(pe.type==="illegal"&&!O){const Ae=Error('Illegal lexeme "'+me+'" for mode "'+(z.scope||"<unnamed>")+'"');throw Ae.mode=z,Ae}if(pe.type==="end"){const Ae=P(pe);if(Ae!==_f)return Ae}if(pe.type==="illegal"&&me==="")return 1;if(se>1e5&&se>3*pe.index)throw Error("potential infinite loop, way more iterations than matches");return Z+=me,me.length}const J=x(N);if(!J)throw Ti(s.replace("{}",N)),Error('Unknown language: "'+N+'"');const ie=ov(J);let B="",z=k||ie;const G={},Y=new c.__emitter(c);(()=>{const te=[];for(let pe=z;pe!==J;pe=pe.parent)pe.scope&&te.unshift(pe.scope);te.forEach(pe=>Y.openNode(pe))})();let Z="",ae=0,ue=0,se=0,le=!1;try{if(J.__emitTokens)J.__emitTokens(T,Y);else{for(z.matcher.considerAll();;){se++,le?le=!1:z.matcher.considerAll(),z.matcher.lastIndex=ue;const te=z.matcher.exec(T);if(!te)break;const pe=Q(T.substring(ue,te.index),te);ue=te.index+pe}Q(T.substring(ue))}return Y.finalize(),B=Y.toHTML(),{language:N,value:B,relevance:ae,illegal:!1,_emitter:Y,_top:z}}catch(te){if(te.message&&te.message.includes("Illegal"))return{language:N,value:Fl(T),illegal:!0,relevance:0,_illegalBy:{message:te.message,index:ue,context:T.slice(ue-100,ue+100),mode:te.mode,resultSoFar:B},_emitter:Y};if(n)return{language:N,value:Fl(T),illegal:!1,relevance:0,errorRaised:te,_emitter:Y,_top:z};throw te}}function y(N,T){T=T||c.languages||Object.keys(r);const O=(w=>{const L={value:Fl(w),illegal:!1,relevance:0,_top:d,_emitter:new c.__emitter(c)};return L._emitter.addText(w),L})(N),k=T.filter(x).filter(g).map(w=>v(w,N,!1));k.unshift(O);const M=k.sort((w,L)=>{if(w.relevance!==L.relevance)return L.relevance-w.relevance;if(w.language&&L.language){if(x(w.language).supersetOf===L.language)return 1;if(x(L.language).supersetOf===w.language)return-1}return 0}),[S,F]=M,R=S;return R.secondBest=F,R}function E(N){let T=null;const O=(S=>{let F=S.className+" ";F+=S.parentNode?S.parentNode.className:"";const R=c.languageDetectRe.exec(F);if(R){const w=x(R[1]);return w||(Sf(s.replace("{}",R[1])),Sf("Falling back to no-highlight mode for this block.",S)),w?R[1]:"no-highlight"}return F.split(/\s+/).find(w=>p(w)||x(w))})(N);if(p(O))return;if(b("before:highlightElement",{el:N,language:O}),N.dataset.highlighted)return console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",N);if(N.children.length>0&&(c.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(N)),c.throwUnescapedHTML))throw new av("One of your code blocks includes unescaped HTML.",N.innerHTML);T=N;const k=T.textContent,M=O?m(k,{language:O,ignoreIllegals:!0}):y(k);N.innerHTML=M.value,N.dataset.highlighted="yes",((S,F,R)=>{const w=F&&a[F]||R;S.classList.add("hljs"),S.classList.add("language-"+w)})(N,O,M.language),N.result={language:M.language,re:M.relevance,relevance:M.relevance},M.secondBest&&(N.secondBest={language:M.secondBest.language,relevance:M.secondBest.relevance}),b("after:highlightElement",{el:N,result:M,text:k})}let D=!1;function C(){document.readyState!=="loading"?document.querySelectorAll(c.cssSelector).forEach(E):D=!0}function x(N){return N=(N||"").toLowerCase(),r[N]||r[a[N]]}function A(N,{languageName:T}){typeof N=="string"&&(N=[N]),N.forEach(O=>{a[O.toLowerCase()]=T})}function g(N){const T=x(N);return T&&!T.disableAutodetect}function b(N,T){const O=N;o.forEach(k=>{k[O]&&k[O](T)})}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",()=>{D&&C()},!1),Object.assign(t,{highlight:m,highlightAuto:y,highlightAll:C,highlightElement:E,highlightBlock:N=>(Yi("10.7.0","highlightBlock will be removed entirely in v12.0"),Yi("10.7.0","Please use highlightElement now."),E(N)),configure:N=>{c=Nf(c,N)},initHighlighting:()=>{C(),Yi("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},initHighlightingOnLoad:()=>{C(),Yi("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")},registerLanguage:(N,T)=>{let O=null;try{O=T(t)}catch(k){if(Ti("Language definition for '{}' could not be registered.".replace("{}",N)),!n)throw k;Ti(k),O=d}O.name||(O.name=N),r[N]=O,O.rawDefinition=T.bind(null,t),O.aliases&&A(O.aliases,{languageName:N})},unregisterLanguage:N=>{delete r[N];for(const T of Object.keys(a))a[T]===N&&delete a[T]},listLanguages:()=>Object.keys(r),getLanguage:x,registerAliases:A,autoDetection:g,inherit:Nf,addPlugin:N=>{(T=>{T["before:highlightBlock"]&&!T["before:highlightElement"]&&(T["before:highlightElement"]=O=>{T["before:highlightBlock"](Object.assign({block:O.el},O))}),T["after:highlightBlock"]&&!T["after:highlightElement"]&&(T["after:highlightElement"]=O=>{T["after:highlightBlock"](Object.assign({block:O.el},O))})})(N),o.push(N)},removePlugin:N=>{const T=o.indexOf(N);T!==-1&&o.splice(T,1)}}),t.debugMode=()=>{n=!1},t.safeMode=()=>{n=!0},t.versionString="11.9.0",t.regex={concat:xi,lookahead:gf,either:Pl,optional:Hg,anyNumberOfTimes:$g};for(const N in Lo)typeof Lo[N]=="object"&&df(Lo[N]);return Object.assign(t,Lo),t},Pr=Df({});Pr.newInstance=()=>Df({});/*! `xml` grammar compiled for Highlight.js 11.9.0 */var lv=(()=>t=>{const r=t.regex,a=r.concat(/[\p{L}_]/u,r.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),o={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},n={begin:/\s/,contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},s=t.inherit(n,{begin:/\(/,end:/\)/}),d=t.inherit(t.APOS_STRING_MODE,{className:"string"}),c=t.inherit(t.QUOTE_STRING_MODE,{className:"string"}),p={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[o]},{begin:/'/,end:/'/,contains:[o]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[n,c,d,s,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[n,s,c,d]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},o,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,relevance:10,contains:[c]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[p],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[p],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:r.concat(/</,r.lookahead(r.concat(a,r.either(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:a,relevance:0,starts:p}]},{className:"tag",begin:r.concat(/<\//,r.lookahead(r.concat(a,/>/))),contains:[{className:"name",begin:a,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}})();/*! `javascript` grammar compiled for Highlight.js 11.9.0 */var sv=(()=>{const t="[A-Za-z$_][0-9A-Za-z$_]*",r=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],a=["true","false","null","undefined","NaN","Infinity"],o=["Object","Function","Boolean","Symbol","Math","Date","Number","BigInt","String","RegExp","Array","Float32Array","Float64Array","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Int32Array","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array","Set","Map","WeakSet","WeakMap","ArrayBuffer","SharedArrayBuffer","Atomics","DataView","JSON","Promise","Generator","GeneratorFunction","AsyncFunction","Reflect","Proxy","Intl","WebAssembly"],n=["Error","EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],d=["arguments","this","super","console","window","document","localStorage","sessionStorage","module","global"],c=[].concat(s,o,n);return p=>{const m=p.regex,v=t,y={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(B,z)=>{const G=B[0].length+B.index,Y=B.input[G];if(Y==="<"||Y===",")return void z.ignoreMatch();let Z;Y===">"&&(((ue,{after:se})=>{const le="</"+ue[0].slice(1);return ue.input.indexOf(le,se)!==-1})(B,{after:G})||z.ignoreMatch());const ae=B.input.substring(G);((Z=ae.match(/^\s*=/))||(Z=ae.match(/^\s+extends\s+/))&&Z.index===0)&&z.ignoreMatch()}},E={$pattern:t,keyword:r,literal:a,built_in:c,"variable.language":d},D="[0-9](_?[0-9])*",C=`\\.(${D})`,x="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",A={className:"number",variants:[{begin:`(\\b(${x})((${C})|\\.)?|(${C}))[eE][+-]?(${D})\\b`},{begin:`\\b(${x})\\b((${C})\\b|\\.)?|(${C})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},g={className:"subst",begin:"\\$\\{",end:"\\}",keywords:E,contains:[]},b={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,g],subLanguage:"xml"}},N={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,g],subLanguage:"css"}},T={begin:"gql`",end:"",starts:{end:"`",returnEnd:!1,contains:[p.BACKSLASH_ESCAPE,g],subLanguage:"graphql"}},O={className:"string",begin:"`",end:"`",contains:[p.BACKSLASH_ESCAPE,g]},k={className:"comment",variants:[p.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{begin:"(?=@[A-Za-z]+)",relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"},{className:"type",begin:"\\{",end:"\\}",excludeEnd:!0,excludeBegin:!0,relevance:0},{className:"variable",begin:v+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),p.C_BLOCK_COMMENT_MODE,p.C_LINE_COMMENT_MODE]},M=[p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,b,N,T,O,{match:/\$\d+/},A];g.contains=M.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat(M)});const S=[].concat(k,g.contains),F=S.concat([{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(S)}]),R={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:F},w={variants:[{match:[/class/,/\s+/,v,/\s+/,/extends/,/\s+/,m.concat(v,"(",m.concat(/\./,v),")*")],scope:{1:"keyword",3:"title.class",5:"keyword",7:"title.class.inherited"}},{match:[/class/,/\s+/,v],scope:{1:"keyword",3:"title.class"}}]},L={relevance:0,match:m.either(/\bJSON/,/\b[A-Z][a-z]+([A-Z][a-z]*|\d)*/,/\b[A-Z]{2,}([A-Z][a-z]+|\d)+([A-Z][a-z]*)*/,/\b[A-Z]{2,}[a-z]+([A-Z][a-z]+|\d)*([A-Z][a-z]*)*/),className:"title.class",keywords:{_:[...o,...n]}},$={variants:[{match:[/function/,/\s+/,v,/(?=\s*\()/]},{match:[/function/,/\s*(?=\()/]}],className:{1:"keyword",3:"title.function"},label:"func.def",contains:[R],illegal:/%/},W={match:m.concat(/\b/,(P=[...s,"super","import"],m.concat("(?!",P.join("|"),")")),v,m.lookahead(/\(/)),className:"title.function",relevance:0};var P;const U={begin:m.concat(/\./,m.lookahead(m.concat(v,/(?![0-9A-Za-z$_(])/))),end:v,excludeBegin:!0,keywords:"prototype",className:"property",relevance:0},Q={match:[/get|set/,/\s+/,v,/(?=\()/],className:{1:"keyword",3:"title.function"},contains:[{begin:/\(\)/},R]},J="(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+p.UNDERSCORE_IDENT_RE+")\\s*=>",ie={match:[/const|var|let/,/\s+/,v,/\s*/,/=\s*/,/(async\s*)?/,m.lookahead(J)],keywords:"async",className:{1:"keyword",3:"title.function"},contains:[R]};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:F,CLASS_REFERENCE:L},illegal:/#(?![$_A-z])/,contains:[p.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},p.APOS_STRING_MODE,p.QUOTE_STRING_MODE,b,N,T,O,k,{match:/\$\d+/},A,L,{className:"attr",begin:v+m.lookahead(":"),relevance:0},ie,{begin:"("+p.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",relevance:0,contains:[k,p.REGEXP_MODE,{className:"function",begin:J,returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:p.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:F}]}]},{begin:/,/,relevance:0},{match:/\s+/,relevance:0},{variants:[{begin:"<>",end:"</>"},{match:/<[A-Za-z0-9\\._:-]+\s*\/>/},{begin:y.begin,"on:begin":y.isTrulyOpeningTag,end:y.end}],subLanguage:"xml",contains:[{begin:y.begin,end:y.end,skip:!0,contains:["self"]}]}]},$,{beginKeywords:"while if switch catch for"},{begin:"\\b(?!function)"+p.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,label:"func.def",contains:[R,p.inherit(p.TITLE_MODE,{begin:v,className:"title.function"})]},{match:/\.\.\./,relevance:0},U,{match:"\\$"+v,relevance:0},{match:[/\bconstructor(?=\s*\()/],className:{1:"title.function"},contains:[R]},W,{relevance:0,match:/\b[A-Z][A-Z_0-9]+\b/,className:"variable.constant"},w,Q,{match:/\$[(.]/}]}}})();const rw="",uv=l.defineComponent({name:"TypeSelect",inject:["designer"],props:{disabled:Boolean},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},customForm(){return this.designer.setupState.customForm},menus(){let t=[];const r=this.designer.setupState;if(this.activeRule){const a=this.activeRule._menu.name,o=r.getConfig("switchType",[]);if(o===!1)return t;let n=[];o.forEach(s=>{s.indexOf(a)>-1&&n.push(...s)}),n=n.filter((s,d)=>s!==a&&n.indexOf(s)===d),n.length?r.menuList.forEach(s=>{s.list.forEach(d=>{n.indexOf(d.name)>-1&&t.push(d)})}):r.menuList.forEach(s=>{s.name===this.activeRule._menu.menu&&s.list.forEach(d=>{d.name!==a&&t.push(d)})})}return t.filter(a=>this.designer.setupState.hiddenItem.indexOf(a.name)===-1)}},methods:{handleCommand(t){var d;let r=this.activeRule,a=this.activeRule;a._menu.inside||(a=a.__fc__.parent.rule);const o=a.__fc__.parent.rule.children,n=this.designer.setupState.makeRule(t);let s=n;n.type==="DragTool"&&(s=n.children[0]),s.field&&r.field?["title","info","field","validate","control","$required"].forEach(c=>{s[c]=r[c]}):(d=r==null?void 0:r.computed)!=null&&d.hidden&&(s.computed={hidden:r.computed.hidden}),r.name&&(s.name=r.name),["name","id","on"].forEach(c=>{r[c]&&(s[c]=r[c])}),o.splice(o.indexOf(a),1,n),this.$nextTick(()=>{this.designer.setupState.triggerActive(s)})}}}),fv={key:0,class:"fc-icon icon-down"};function dv(t,r,a,o,n,s){const d=l.resolveComponent("el-tag"),c=l.resolveComponent("el-dropdown-item"),p=l.resolveComponent("el-dropdown-menu"),m=l.resolveComponent("el-dropdown");return l.openBlock(),l.createBlock(m,{class:"_fd-type-select",trigger:"click",size:"default","popper-class":"_fd-type-select-pop",disabled:t.disabled||!t.menus.length,onCommand:t.handleCommand},{dropdown:l.withCtx(()=>[l.createVNode(p,null,{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.menus,v=>(l.openBlock(),l.createBlock(c,{command:v,key:v.name},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("i",{class:l.normalizeClass(["fc-icon",v.icon||"icon-input"])},null,2),l.createTextVNode(l.toDisplayString(t.t("com."+v.name+".name")||v.label),1)])]),_:2},1032,["command"]))),128))]),_:1})]),default:l.withCtx(()=>[l.createVNode(d,{type:"success",effect:"plain","disable-transitions":""},{default:l.withCtx(()=>[t.activeRule?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createTextVNode(l.toDisplayString(t.t("com."+t.activeRule._menu.name+".name")||t.activeRule._menu.label)+" ",1),!t.disabled&&t.menus.length?(l.openBlock(),l.createElementBlock("i",fv)):l.createCommentVNode("",!0)],64)):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(t.t("com."+t.customForm.config.name+".name")||t.customForm.config.label||t.customForm.config.name),1)],64))]),_:1})]),_:1},8,["disabled","onCommand"])}const cv=We(uv,[["render",dv]]);var Rf={exports:{}},Lr={},Fo={exports:{}},$l={},Hl={},Of;function zl(){if(Of)return Hl;Of=1;function t(o){this.__parent=o,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}t.prototype.clone_empty=function(){var o=new t(this.__parent);return o.set_indent(this.__indent_count,this.__alignment_count),o},t.prototype.item=function(o){return o<0?this.__items[this.__items.length+o]:this.__items[o]},t.prototype.has_match=function(o){for(var n=this.__items.length-1;n>=0;n--)if(this.__items[n].match(o))return!0;return!1},t.prototype.set_indent=function(o,n){this.is_empty()&&(this.__indent_count=o||0,this.__alignment_count=n||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var o=this.__parent.current_line;return o.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),o.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),o.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,o.__items[0]===" "&&(o.__items.splice(0,1),o.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(o){this.__items.push(o);var n=o.lastIndexOf(`
`);n!==-1?this.__character_count=o.length-n:this.__character_count+=o.length},t.prototype.pop=function(){var o=null;return this.is_empty()||(o=this.__items.pop(),this.__character_count-=o.length),o},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var o="";return this.is_empty()?this.__parent.indent_empty_lines&&(o=this.__parent.get_indent_string(this.__indent_count)):(o=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),o+=this.__items.join("")),o};function r(o,n){this.__cache=[""],this.__indent_size=o.indent_size,this.__indent_string=o.indent_char,o.indent_with_tabs||(this.__indent_string=new Array(o.indent_size+1).join(o.indent_char)),n=n||"",o.indent_level>0&&(n=new Array(o.indent_level+1).join(this.__indent_string)),this.__base_string=n,this.__base_string_length=n.length}r.prototype.get_indent_size=function(o,n){var s=this.__base_string_length;return n=n||0,o<0&&(s=0),s+=o*this.__indent_size,s+=n,s},r.prototype.get_indent_string=function(o,n){var s=this.__base_string;return n=n||0,o<0&&(o=0,s=""),n+=o*this.__indent_size,this.__ensure_cache(n),s+=this.__cache[n],s},r.prototype.__ensure_cache=function(o){for(;o>=this.__cache.length;)this.__add_column()},r.prototype.__add_column=function(){var o=this.__cache.length,n=0,s="";this.__indent_size&&o>=this.__indent_size&&(n=Math.floor(o/this.__indent_size),o-=n*this.__indent_size,s=new Array(n+1).join(this.__indent_string)),o&&(s+=new Array(o+1).join(" ")),this.__cache.push(s)};function a(o,n){this.__indent_cache=new r(o,n),this.raw=!1,this._end_with_newline=o.end_with_newline,this.indent_size=o.indent_size,this.wrap_line_length=o.wrap_line_length,this.indent_empty_lines=o.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return a.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},a.prototype.get_line_number=function(){return this.__lines.length},a.prototype.get_indent_string=function(o,n){return this.__indent_cache.get_indent_string(o,n)},a.prototype.get_indent_size=function(o,n){return this.__indent_cache.get_indent_size(o,n)},a.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},a.prototype.add_new_line=function(o){return this.is_empty()||!o&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},a.prototype.get_code=function(o){this.trim(!0);var n=this.current_line.pop();n&&(n[n.length-1]===`
`&&(n=n.replace(/\n+$/g,"")),this.current_line.push(n)),this._end_with_newline&&this.__add_outputline();var s=this.__lines.join(`
`);return o!==`
`&&(s=s.replace(/[\n]/g,o)),s},a.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},a.prototype.set_indent=function(o,n){return o=o||0,n=n||0,this.next_line.set_indent(o,n),this.__lines.length>1?(this.current_line.set_indent(o,n),!0):(this.current_line.set_indent(),!1)},a.prototype.add_raw_token=function(o){for(var n=0;n<o.newlines;n++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(o.whitespace_before),this.current_line.push(o.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},a.prototype.add_token=function(o){this.__add_space_before_token(),this.current_line.push(o),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},a.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},a.prototype.remove_indent=function(o){for(var n=this.__lines.length;o<n;)this.__lines[o]._remove_indent(),o++;this.current_line._remove_wrap_indent()},a.prototype.trim=function(o){for(o=o===void 0?!1:o,this.current_line.trim();o&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},a.prototype.just_added_newline=function(){return this.current_line.is_empty()},a.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},a.prototype.ensure_empty_line_above=function(o,n){for(var s=this.__lines.length-2;s>=0;){var d=this.__lines[s];if(d.is_empty())break;if(d.item(0).indexOf(o)!==0&&d.item(-1)!==n){this.__lines.splice(s+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}s--}},Hl.Output=a,Hl}var jl={},kf;function Bf(){if(kf)return jl;kf=1;function t(r,a,o,n){this.type=r,this.text=a,this.comments_before=null,this.newlines=o||0,this.whitespace_before=n||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return jl.Token=t,jl}var Ul={},If;function Mf(){return If||(If=1,function(t){var r="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",a="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",o="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",n="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",s="(?:\\\\u[0-9a-fA-F]{4}|["+r+o+"])",d="(?:\\\\u[0-9a-fA-F]{4}|["+a+o+n+"])*";t.identifier=new RegExp(s+d,"g"),t.identifierStart=new RegExp(s),t.identifierMatch=new RegExp("(?:\\\\u[0-9a-fA-F]{4}|["+a+o+n+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp(`\r
|`+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")}(Ul)),Ul}var Wl={},Vr={},Pf;function Kl(){if(Pf)return Vr;Pf=1;function t(o,n){this.raw_options=r(o,n),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(o,n){var s=this.raw_options[o],d=n||[];return typeof s=="object"?s!==null&&typeof s.concat=="function"&&(d=s.concat()):typeof s=="string"&&(d=s.split(/[^a-zA-Z0-9_\/\-]+/)),d},t.prototype._get_boolean=function(o,n){var s=this.raw_options[o],d=s===void 0?!!n:!!s;return d},t.prototype._get_characters=function(o,n){var s=this.raw_options[o],d=n||"";return typeof s=="string"&&(d=s.replace(/\\r/,"\r").replace(/\\n/,`
`).replace(/\\t/," ")),d},t.prototype._get_number=function(o,n){var s=this.raw_options[o];n=parseInt(n,10),isNaN(n)&&(n=0);var d=parseInt(s,10);return isNaN(d)&&(d=n),d},t.prototype._get_selection=function(o,n,s){var d=this._get_selection_list(o,n,s);if(d.length!==1)throw new Error("Invalid Option Value: The option '"+o+`' can only be one of the following values:
`+n+`
You passed in: '`+this.raw_options[o]+"'");return d[0]},t.prototype._get_selection_list=function(o,n,s){if(!n||n.length===0)throw new Error("Selection list cannot be empty.");if(s=s||[n[0]],!this._is_valid_selection(s,n))throw new Error("Invalid Default Value!");var d=this._get_array(o,s);if(!this._is_valid_selection(d,n))throw new Error("Invalid Option Value: The option '"+o+`' can contain only the following values:
`+n+`
You passed in: '`+this.raw_options[o]+"'");return d},t.prototype._is_valid_selection=function(o,n){return o.length&&n.length&&!o.some(function(s){return n.indexOf(s)===-1})};function r(o,n){var s={};o=a(o);var d;for(d in o)d!==n&&(s[d]=o[d]);if(n&&o[n])for(d in o[n])s[d]=o[n][d];return s}function a(o){var n={},s;for(s in o){var d=s.replace(/-/g,"_");n[d]=o[s]}return n}return Vr.Options=t,Vr.normalizeOpts=a,Vr.mergeOpts=r,Vr}var Lf;function Vf(){if(Lf)return Wl;Lf=1;var t=Kl().Options,r=["before-newline","after-newline","preserve-newline"];function a(o){t.call(this,o,"js");var n=this.raw_options.brace_style||null;n==="expand-strict"?this.raw_options.brace_style="expand":n==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var s=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var d=0;d<s.length;d++)s[d]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=s[d];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",r),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return a.prototype=new t,Wl.Options=a,Wl}var Qi={},Gl={},Ff;function Yl(){if(Ff)return Gl;Ff=1;var t=RegExp.prototype.hasOwnProperty("sticky");function r(a){this.__input=a||"",this.__input_length=this.__input.length,this.__position=0}return r.prototype.restart=function(){this.__position=0},r.prototype.back=function(){this.__position>0&&(this.__position-=1)},r.prototype.hasNext=function(){return this.__position<this.__input_length},r.prototype.next=function(){var a=null;return this.hasNext()&&(a=this.__input.charAt(this.__position),this.__position+=1),a},r.prototype.peek=function(a){var o=null;return a=a||0,a+=this.__position,a>=0&&a<this.__input_length&&(o=this.__input.charAt(a)),o},r.prototype.__match=function(a,o){a.lastIndex=o;var n=a.exec(this.__input);return n&&!(t&&a.sticky)&&n.index!==o&&(n=null),n},r.prototype.test=function(a,o){return o=o||0,o+=this.__position,o>=0&&o<this.__input_length?!!this.__match(a,o):!1},r.prototype.testChar=function(a,o){var n=this.peek(o);return a.lastIndex=0,n!==null&&a.test(n)},r.prototype.match=function(a){var o=this.__match(a,this.__position);return o?this.__position+=o[0].length:o=null,o},r.prototype.read=function(a,o,n){var s="",d;return a&&(d=this.match(a),d&&(s+=d[0])),o&&(d||!a)&&(s+=this.readUntil(o,n)),s},r.prototype.readUntil=function(a,o){var n="",s=this.__position;a.lastIndex=this.__position;var d=a.exec(this.__input);return d?(s=d.index,o&&(s+=d[0].length)):s=this.__input_length,n=this.__input.substring(this.__position,s),this.__position=s,n},r.prototype.readUntilAfter=function(a){return this.readUntil(a,!0)},r.prototype.get_regexp=function(a,o){var n=null,s="g";return o&&t&&(s="y"),typeof a=="string"&&a!==""?n=new RegExp(a,s):a&&(n=new RegExp(a.source,s)),n},r.prototype.get_literal_regexp=function(a){return RegExp(a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},r.prototype.peekUntilAfter=function(a){var o=this.__position,n=this.readUntilAfter(a);return this.__position=o,n},r.prototype.lookBack=function(a){var o=this.__position-1;return o>=a.length&&this.__input.substring(o-a.length,o).toLowerCase()===a},Gl.InputScanner=r,Gl}var $o={},Ql={},$f;function pv(){if($f)return Ql;$f=1;function t(r){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=r}return t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var r=null;return this.hasNext()&&(r=this.__tokens[this.__position],this.__position+=1),r},t.prototype.peek=function(r){var a=null;return r=r||0,r+=this.__position,r>=0&&r<this.__tokens_length&&(a=this.__tokens[r]),a},t.prototype.add=function(r){this.__parent_token&&(r.parent=this.__parent_token),this.__tokens.push(r),this.__tokens_length+=1},Ql.TokenStream=t,Ql}var Xl={},Jl={},Hf;function Ho(){if(Hf)return Jl;Hf=1;function t(r,a){this._input=r,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,a&&(this._starting_pattern=this._input.get_regexp(a._starting_pattern,!0),this._match_pattern=this._input.get_regexp(a._match_pattern,!0),this._until_pattern=this._input.get_regexp(a._until_pattern),this._until_after=a._until_after)}return t.prototype.read=function(){var r=this._input.read(this._starting_pattern);return(!this._starting_pattern||r)&&(r+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),r},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(r){var a=this._create();return a._until_after=!0,a._until_pattern=this._input.get_regexp(r),a._update(),a},t.prototype.until=function(r){var a=this._create();return a._until_after=!1,a._until_pattern=this._input.get_regexp(r),a._update(),a},t.prototype.starting_with=function(r){var a=this._create();return a._starting_pattern=this._input.get_regexp(r,!0),a._update(),a},t.prototype.matching=function(r){var a=this._create();return a._match_pattern=this._input.get_regexp(r,!0),a._update(),a},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},Jl.Pattern=t,Jl}var zf;function hv(){if(zf)return Xl;zf=1;var t=Ho().Pattern;function r(a,o){t.call(this,a,o),o?this._line_regexp=this._input.get_regexp(o._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return r.prototype=new t,r.prototype.__set_whitespace_patterns=function(a,o){a+="\\t ",o+="\\n\\r",this._match_pattern=this._input.get_regexp("["+a+o+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+o+"]")},r.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var a=this._input.read(this._match_pattern);if(a===" ")this.whitespace_before_token=" ";else if(a){var o=this.__split(this._newline_regexp,a);this.newline_count=o.length-1,this.whitespace_before_token=o[this.newline_count]}return a},r.prototype.matching=function(a,o){var n=this._create();return n.__set_whitespace_patterns(a,o),n._update(),n},r.prototype._create=function(){return new r(this._input,this)},r.prototype.__split=function(a,o){a.lastIndex=0;for(var n=0,s=[],d=a.exec(o);d;)s.push(o.substring(n,d.index)),n=d.index+d[0].length,d=a.exec(o);return n<o.length?s.push(o.substring(n,o.length)):s.push(""),s},Xl.WhitespacePattern=r,Xl}var jf;function zo(){if(jf)return $o;jf=1;var t=Yl().InputScanner,r=Bf().Token,a=pv().TokenStream,o=hv().WhitespacePattern,n={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},s=function(d,c){this._input=new t(d),this._options=c||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new o(this._input)};return s.prototype.tokenize=function(){this._input.restart(),this.__tokens=new a,this._reset();for(var d,c=new r(n.START,""),p=null,m=[],v=new a;c.type!==n.EOF;){for(d=this._get_next_token(c,p);this._is_comment(d);)v.add(d),d=this._get_next_token(c,p);v.isEmpty()||(d.comments_before=v,v=new a),d.parent=p,this._is_opening(d)?(m.push(p),p=d):p&&this._is_closing(d,p)&&(d.opened=p,p.closed=d,p=m.pop(),d.parent=p),d.previous=c,c.next=d,this.__tokens.add(d),c=d}return this.__tokens},s.prototype._is_first_token=function(){return this.__tokens.isEmpty()},s.prototype._reset=function(){},s.prototype._get_next_token=function(d,c){this._readWhitespace();var p=this._input.read(/.+/g);return p?this._create_token(n.RAW,p):this._create_token(n.EOF,"")},s.prototype._is_comment=function(d){return!1},s.prototype._is_opening=function(d){return!1},s.prototype._is_closing=function(d,c){return!1},s.prototype._create_token=function(d,c){var p=new r(d,c,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return p},s.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},$o.Tokenizer=s,$o.TOKEN=n,$o}var Zl={},Uf;function ql(){if(Uf)return Zl;Uf=1;function t(r,a){r=typeof r=="string"?r:r.source,a=typeof a=="string"?a:a.source,this.__directives_block_pattern=new RegExp(r+/ beautify( \w+[:]\w+)+ /.source+a,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(r+/\sbeautify\signore:end\s/.source+a,"g")}return t.prototype.get_directives=function(r){if(!r.match(this.__directives_block_pattern))return null;var a={};this.__directive_pattern.lastIndex=0;for(var o=this.__directive_pattern.exec(r);o;)a[o[1]]=o[2],o=this.__directive_pattern.exec(r);return a},t.prototype.readIgnored=function(r){return r.readUntilAfter(this.__directives_end_ignore_pattern)},Zl.Directives=t,Zl}var es={},Wf;function Kf(){if(Wf)return es;Wf=1;var t=Ho().Pattern,r={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1};function a(o,n){t.call(this,o,n),this.__template_pattern=null,this._disabled=Object.assign({},r),this._excluded=Object.assign({},r),n&&(this.__template_pattern=this._input.get_regexp(n.__template_pattern),this._excluded=Object.assign(this._excluded,n._excluded),this._disabled=Object.assign(this._disabled,n._disabled));var s=new t(o);this.__patterns={handlebars_comment:s.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:s.starting_with(/{{{/).until_after(/}}}/),handlebars:s.starting_with(/{{/).until_after(/}}/),php:s.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:s.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:s.starting_with(/{%/).until_after(/%}/),django_value:s.starting_with(/{{/).until_after(/}}/),django_comment:s.starting_with(/{#/).until_after(/#}/),smarty:s.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:s.starting_with(/{\*/).until_after(/\*}/),smarty_literal:s.starting_with(/{literal}/).until_after(/{\/literal}/)}}return a.prototype=new t,a.prototype._create=function(){return new a(this._input,this)},a.prototype._update=function(){this.__set_templated_pattern()},a.prototype.disable=function(o){var n=this._create();return n._disabled[o]=!0,n._update(),n},a.prototype.read_options=function(o){var n=this._create();for(var s in r)n._disabled[s]=o.templating.indexOf(s)===-1;return n._update(),n},a.prototype.exclude=function(o){var n=this._create();return n._excluded[o]=!0,n._update(),n},a.prototype.read=function(){var o="";this._match_pattern?o=this._input.read(this._starting_pattern):o=this._input.read(this._starting_pattern,this.__template_pattern);for(var n=this._read_template();n;)this._match_pattern?n+=this._input.read(this._match_pattern):n+=this._input.readUntil(this.__template_pattern),o+=n,n=this._read_template();return this._until_after&&(o+=this._input.readUntilAfter(this._until_pattern)),o},a.prototype.__set_templated_pattern=function(){var o=[];this._disabled.php||o.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||o.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||o.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(o.push(this.__patterns.django._starting_pattern.source),o.push(this.__patterns.django_value._starting_pattern.source),o.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||o.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&o.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+o.join("|")+")")},a.prototype._read_template=function(){var o="",n=this._input.peek();if(n==="<"){var s=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&s==="?"&&(o=o||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&s==="%"&&(o=o||this.__patterns.erb.read())}else n==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(o=o||this.__patterns.handlebars_comment.read(),o=o||this.__patterns.handlebars_unescaped.read(),o=o||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(o=o||this.__patterns.django_value.read()),this._excluded.django||(o=o||this.__patterns.django_comment.read(),o=o||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(o=o||this.__patterns.smarty_comment.read(),o=o||this.__patterns.smarty_literal.read(),o=o||this.__patterns.smarty.read()));return o},es.TemplatablePattern=a,es}var Gf;function jo(){if(Gf)return Qi;Gf=1;var t=Yl().InputScanner,r=zo().Tokenizer,a=zo().TOKEN,o=ql().Directives,n=Mf(),s=Ho().Pattern,d=Kf().TemplatablePattern;function c(k,M){return M.indexOf(k)!==-1}var p={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:a.START,RAW:a.RAW,EOF:a.EOF},m=new o(/\/\*/,/\*\//),v=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,y=/[0-9]/,E=/[^\d\.]/,D=">>> === !== << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),C=">>>= ... >>= <<= === >>> !== **= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";C=C.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),C="\\?\\.(?!\\d) "+C,C=C.replace(/ /g,"|");var x=new RegExp(C),A="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),g=A.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),b=new RegExp("^(?:"+g.join("|")+")$"),N,T=function(k,M){r.call(this,k,M),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var S=new s(this._input),F=new d(this._input).read_options(this._options);this.__patterns={template:F,identifier:F.starting_with(n.identifier).matching(n.identifierMatch),number:S.matching(v),punct:S.matching(x),comment:S.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:S.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:S.matching(/<!--/),html_comment_end:S.matching(/-->/),include:S.starting_with(/#include/).until_after(n.lineBreak),shebang:S.starting_with(/#!/).until_after(n.lineBreak),xml:S.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:F.until(/['\\\n\r\u2028\u2029]/),double_quote:F.until(/["\\\n\r\u2028\u2029]/),template_text:F.until(/[`\\$]/),template_expression:F.until(/[`}\\]/)}};T.prototype=new r,T.prototype._is_comment=function(k){return k.type===p.COMMENT||k.type===p.BLOCK_COMMENT||k.type===p.UNKNOWN},T.prototype._is_opening=function(k){return k.type===p.START_BLOCK||k.type===p.START_EXPR},T.prototype._is_closing=function(k,M){return(k.type===p.END_BLOCK||k.type===p.END_EXPR)&&M&&(k.text==="]"&&M.text==="["||k.text===")"&&M.text==="("||k.text==="}"&&M.text==="{")},T.prototype._reset=function(){N=!1},T.prototype._get_next_token=function(k,M){var S=null;this._readWhitespace();var F=this._input.peek();return F===null?this._create_token(p.EOF,""):(S=S||this._read_non_javascript(F),S=S||this._read_string(F),S=S||this._read_word(k),S=S||this._read_singles(F),S=S||this._read_comment(F),S=S||this._read_regexp(F,k),S=S||this._read_xml(F,k),S=S||this._read_punctuation(),S=S||this._create_token(p.UNKNOWN,this._input.next()),S)},T.prototype._read_word=function(k){var M;if(M=this.__patterns.identifier.read(),M!=="")return M=M.replace(n.allLineBreaks,`
`),!(k.type===p.DOT||k.type===p.RESERVED&&(k.text==="set"||k.text==="get"))&&b.test(M)?M==="in"||M==="of"?this._create_token(p.OPERATOR,M):this._create_token(p.RESERVED,M):this._create_token(p.WORD,M);if(M=this.__patterns.number.read(),M!=="")return this._create_token(p.WORD,M)},T.prototype._read_singles=function(k){var M=null;return k==="("||k==="["?M=this._create_token(p.START_EXPR,k):k===")"||k==="]"?M=this._create_token(p.END_EXPR,k):k==="{"?M=this._create_token(p.START_BLOCK,k):k==="}"?M=this._create_token(p.END_BLOCK,k):k===";"?M=this._create_token(p.SEMICOLON,k):k==="."&&E.test(this._input.peek(1))?M=this._create_token(p.DOT,k):k===","&&(M=this._create_token(p.COMMA,k)),M&&this._input.next(),M},T.prototype._read_punctuation=function(){var k=this.__patterns.punct.read();if(k!=="")return k==="="?this._create_token(p.EQUALS,k):k==="?."?this._create_token(p.DOT,k):this._create_token(p.OPERATOR,k)},T.prototype._read_non_javascript=function(k){var M="";if(k==="#"){if(this._is_first_token()&&(M=this.__patterns.shebang.read(),M))return this._create_token(p.UNKNOWN,M.trim()+`
`);if(M=this.__patterns.include.read(),M)return this._create_token(p.UNKNOWN,M.trim()+`
`);k=this._input.next();var S="#";if(this._input.hasNext()&&this._input.testChar(y)){do k=this._input.next(),S+=k;while(this._input.hasNext()&&k!=="#"&&k!=="=");return k==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(S+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(S+="{}",this._input.next(),this._input.next())),this._create_token(p.WORD,S)}this._input.back()}else if(k==="<"&&this._is_first_token()){if(M=this.__patterns.html_comment_start.read(),M){for(;this._input.hasNext()&&!this._input.testChar(n.newline);)M+=this._input.next();return N=!0,this._create_token(p.COMMENT,M)}}else if(N&&k==="-"&&(M=this.__patterns.html_comment_end.read(),M))return N=!1,this._create_token(p.COMMENT,M);return null},T.prototype._read_comment=function(k){var M=null;if(k==="/"){var S="";if(this._input.peek(1)==="*"){S=this.__patterns.block_comment.read();var F=m.get_directives(S);F&&F.ignore==="start"&&(S+=m.readIgnored(this._input)),S=S.replace(n.allLineBreaks,`
`),M=this._create_token(p.BLOCK_COMMENT,S),M.directives=F}else this._input.peek(1)==="/"&&(S=this.__patterns.comment.read(),M=this._create_token(p.COMMENT,S))}return M},T.prototype._read_string=function(k){if(k==="`"||k==="'"||k==='"'){var M=this._input.next();return this.has_char_escapes=!1,k==="`"?M+=this._read_string_recursive("`",!0,"${"):M+=this._read_string_recursive(k),this.has_char_escapes&&this._options.unescape_strings&&(M=O(M)),this._input.peek()===k&&(M+=this._input.next()),M=M.replace(n.allLineBreaks,`
`),this._create_token(p.STRING,M)}return null},T.prototype._allow_regexp_or_xml=function(k){return k.type===p.RESERVED&&c(k.text,["return","case","throw","else","do","typeof","yield"])||k.type===p.END_EXPR&&k.text===")"&&k.opened.previous.type===p.RESERVED&&c(k.opened.previous.text,["if","while","for"])||c(k.type,[p.COMMENT,p.START_EXPR,p.START_BLOCK,p.START,p.END_BLOCK,p.OPERATOR,p.EQUALS,p.EOF,p.SEMICOLON,p.COMMA])},T.prototype._read_regexp=function(k,M){if(k==="/"&&this._allow_regexp_or_xml(M)){for(var S=this._input.next(),F=!1,R=!1;this._input.hasNext()&&(F||R||this._input.peek()!==k)&&!this._input.testChar(n.newline);)S+=this._input.peek(),F?F=!1:(F=this._input.peek()==="\\",this._input.peek()==="["?R=!0:this._input.peek()==="]"&&(R=!1)),this._input.next();return this._input.peek()===k&&(S+=this._input.next(),S+=this._input.read(n.identifier)),this._create_token(p.STRING,S)}return null},T.prototype._read_xml=function(k,M){if(this._options.e4x&&k==="<"&&this._allow_regexp_or_xml(M)){var S="",F=this.__patterns.xml.read_match();if(F){for(var R=F[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),w=R.indexOf("{")===0,L=0;F;){var $=!!F[1],W=F[2],P=!!F[F.length-1]||W.slice(0,8)==="![CDATA[";if(!P&&(W===R||w&&W.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&($?--L:++L),S+=F[0],L<=0)break;F=this.__patterns.xml.read_match()}return F||(S+=this._input.match(/[\s\S]*/g)[0]),S=S.replace(n.allLineBreaks,`
`),this._create_token(p.STRING,S)}}return null};function O(k){for(var M="",S=0,F=new t(k),R=null;F.hasNext();)if(R=F.match(/([\s]|[^\\]|\\\\)+/g),R&&(M+=R[0]),F.peek()==="\\"){if(F.next(),F.peek()==="x")R=F.match(/x([0-9A-Fa-f]{2})/g);else if(F.peek()==="u")R=F.match(/u([0-9A-Fa-f]{4})/g);else{M+="\\",F.hasNext()&&(M+=F.next());continue}if(!R||(S=parseInt(R[1],16),S>126&&S<=255&&R[0].indexOf("x")===0))return k;if(S>=0&&S<32){M+="\\"+R[0];continue}else S===34||S===39||S===92?M+="\\"+String.fromCharCode(S):M+=String.fromCharCode(S)}return M}return T.prototype._read_string_recursive=function(k,M,S){var F,R;k==="'"?R=this.__patterns.single_quote:k==='"'?R=this.__patterns.double_quote:k==="`"?R=this.__patterns.template_text:k==="}"&&(R=this.__patterns.template_expression);for(var w=R.read(),L="";this._input.hasNext();){if(L=this._input.next(),L===k||!M&&n.newline.test(L)){this._input.back();break}else L==="\\"&&this._input.hasNext()?(F=this._input.peek(),F==="x"||F==="u"?this.has_char_escapes=!0:F==="\r"&&this._input.peek(1)===`
`&&this._input.next(),L+=this._input.next()):S&&(S==="${"&&L==="$"&&this._input.peek()==="{"&&(L+=this._input.next()),S===L&&(k==="`"?L+=this._read_string_recursive("}",M,"`"):L+=this._read_string_recursive("`",M,"${"),this._input.hasNext()&&(L+=this._input.next())));L+=R.read(),w+=L}return w},Qi.Tokenizer=T,Qi.TOKEN=p,Qi.positionable_operators=D.slice(),Qi.line_starters=A.slice(),Qi}var Yf;function mv(){if(Yf)return $l;Yf=1;var t=zl().Output,r=Bf().Token,a=Mf(),o=Vf().Options,n=jo().Tokenizer,s=jo().line_starters,d=jo().positionable_operators,c=jo().TOKEN;function p(R,w){return w.indexOf(R)!==-1}function m(R){return R.replace(/^\s+/g,"")}function v(R){for(var w={},L=0;L<R.length;L++)w[R[L].replace(/-/g,"_")]=R[L];return w}function y(R,w){return R&&R.type===c.RESERVED&&R.text===w}function E(R,w){return R&&R.type===c.RESERVED&&p(R.text,w)}var D=["case","return","do","if","throw","else","await","break","continue","async"],C=["before-newline","after-newline","preserve-newline"],x=v(C),A=[x.before_newline,x.preserve_newline],g={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(R,w){w.multiline_frame||w.mode===g.ForInitializer||w.mode===g.Conditional||R.remove_indent(w.start_line_index)}function N(R){R=R.replace(a.allLineBreaks,`
`);for(var w=[],L=R.indexOf(`
`);L!==-1;)w.push(R.substring(0,L)),R=R.substring(L+1),L=R.indexOf(`
`);return R.length&&w.push(R),w}function T(R){return R===g.ArrayLiteral}function O(R){return p(R,[g.Expression,g.ForInitializer,g.Conditional])}function k(R,w){for(var L=0;L<R.length;L++){var $=R[L].trim();if($.charAt(0)!==w)return!1}return!0}function M(R,w){for(var L=0,$=R.length,W;L<$;L++)if(W=R[L],W&&W.indexOf(w)!==0)return!1;return!0}function S(R,w){w=w||{},this._source_text=R||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new o(w)}S.prototype.create_flags=function(R,w){var L=0;R&&(L=R.indentation_level,!this._output.just_added_newline()&&R.line_indent_level>L&&(L=R.line_indent_level));var $={mode:w,parent:R,last_token:R?R.last_token:new r(c.START_BLOCK,""),last_word:R?R.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:L,alignment:0,line_indent_level:R?R.line_indent_level:L,start_line_index:this._output.get_line_number(),ternary_depth:0};return $},S.prototype._reset=function(R){var w=R.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,w),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(g.BlockStatement);var L=new n(R,this._options);return this._tokens=L.tokenize(),R},S.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var R,w=this._reset(this._source_text),L=this._options.eol;this._options.eol==="auto"&&(L=`
`,w&&a.lineBreak.test(w||"")&&(L=w.match(a.lineBreak)[0]));for(var $=this._tokens.next();$;)this.handle_token($),this._last_last_text=this._flags.last_token.text,this._flags.last_token=$,$=this._tokens.next();return R=this._output.get_code(L),R},S.prototype.handle_token=function(R,w){R.type===c.START_EXPR?this.handle_start_expr(R):R.type===c.END_EXPR?this.handle_end_expr(R):R.type===c.START_BLOCK?this.handle_start_block(R):R.type===c.END_BLOCK?this.handle_end_block(R):R.type===c.WORD?this.handle_word(R):R.type===c.RESERVED?this.handle_word(R):R.type===c.SEMICOLON?this.handle_semicolon(R):R.type===c.STRING?this.handle_string(R):R.type===c.EQUALS?this.handle_equals(R):R.type===c.OPERATOR?this.handle_operator(R):R.type===c.COMMA?this.handle_comma(R):R.type===c.BLOCK_COMMENT?this.handle_block_comment(R,w):R.type===c.COMMENT?this.handle_comment(R,w):R.type===c.DOT?this.handle_dot(R):R.type===c.EOF?this.handle_eof(R):R.type===c.UNKNOWN?this.handle_unknown(R,w):this.handle_unknown(R,w)},S.prototype.handle_whitespace_and_comments=function(R,w){var L=R.newlines,$=this._options.keep_array_indentation&&T(this._flags.mode);if(R.comments_before)for(var W=R.comments_before.next();W;)this.handle_whitespace_and_comments(W,w),this.handle_token(W,w),W=R.comments_before.next();if($)for(var P=0;P<L;P+=1)this.print_newline(P>0,w);else if(this._options.max_preserve_newlines&&L>this._options.max_preserve_newlines&&(L=this._options.max_preserve_newlines),this._options.preserve_newlines&&L>1){this.print_newline(!1,w);for(var U=1;U<L;U+=1)this.print_newline(!0,w)}};var F=["async","break","continue","return","throw","yield"];return S.prototype.allow_wrap_or_preserved_newline=function(R,w){if(w=w===void 0?!1:w,!this._output.just_added_newline()){var L=this._options.preserve_newlines&&R.newlines||w,$=p(this._flags.last_token.text,d)||p(R.text,d);if($){var W=p(this._flags.last_token.text,d)&&p(this._options.operator_position,A)||p(R.text,d);L=L&&W}if(L)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(E(this._flags.last_token,F))return;this._output.set_wrap_point()}}},S.prototype.print_newline=function(R,w){if(!w&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var L=this._tokens.peek();this._flags.mode===g.Statement&&!(this._flags.if_block&&y(L,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(R)&&(this._flags.multiline_frame=!0)},S.prototype.print_token_line_indentation=function(R){this._output.just_added_newline()&&(this._options.keep_array_indentation&&R.newlines&&(R.text==="["||T(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(R.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},S.prototype.print_token=function(R){if(this._output.raw){this._output.add_raw_token(R);return}if(this._options.comma_first&&R.previous&&R.previous.type===c.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var w=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(w),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(R),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(R),this._output.non_breaking_space=!0,this._output.add_token(R.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},S.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},S.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},S.prototype.set_mode=function(R){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,R),this._flags=this.create_flags(this._previous_flags,R),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},S.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===g.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},S.prototype.start_of_object_property=function(){return this._flags.parent.mode===g.ObjectLiteral&&this._flags.mode===g.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"]))},S.prototype.start_of_statement=function(R){var w=!1;return w=w||E(this._flags.last_token,["var","let","const"])&&R.type===c.WORD,w=w||y(this._flags.last_token,"do"),w=w||!(this._flags.parent.mode===g.ObjectLiteral&&this._flags.mode===g.Statement)&&E(this._flags.last_token,F)&&!R.newlines,w=w||y(this._flags.last_token,"else")&&!(y(R,"if")&&!R.comments_before),w=w||this._flags.last_token.type===c.END_EXPR&&(this._previous_flags.mode===g.ForInitializer||this._previous_flags.mode===g.Conditional),w=w||this._flags.last_token.type===c.WORD&&this._flags.mode===g.BlockStatement&&!this._flags.in_case&&!(R.text==="--"||R.text==="++")&&this._last_last_text!=="function"&&R.type!==c.WORD&&R.type!==c.RESERVED,w=w||this._flags.mode===g.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||E(this._flags.last_token,["get","set"])),w?(this.set_mode(g.Statement),this.indent(),this.handle_whitespace_and_comments(R,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R,E(R,["do","for","if","while"])),!0):!1},S.prototype.handle_start_expr=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R);var w=g.Expression;if(R.text==="["){if(this._flags.last_token.type===c.WORD||this._flags.last_token.text===")"){E(this._flags.last_token,s)&&(this._output.space_before_token=!0),this.print_token(R),this.set_mode(w),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}w=g.ArrayLiteral,T(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),p(this._flags.last_token.type,[c.START_EXPR,c.END_EXPR,c.WORD,c.OPERATOR,c.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===c.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,w=g.ForInitializer):p(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,w=g.Conditional):p(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&R.whitespace_before===""?this._output.space_before_token=!1:(p(this._flags.last_token.text,s)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R);else if(this._flags.last_token.type===c.WORD){this._output.space_before_token=!1;var L=this._tokens.peek(-3);if(this._options.space_after_named_function&&L){var $=this._tokens.peek(-4);E(L,["async","function"])||L.text==="*"&&E($,["async","function"])?this._output.space_before_token=!0:this._flags.mode===g.ObjectLiteral&&(L.text==="{"||L.text===","||L.text==="*"&&($.text==="{"||$.text===","))&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(R);(this._flags.last_token.type===c.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===g.ObjectLiteral&&p(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===c.START_BLOCK?this.print_newline():(this._flags.last_token.type===c.END_EXPR||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===c.COMMA)&&this.allow_wrap_or_preserved_newline(R,R.newlines),this.print_token(R),this.set_mode(w),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},S.prototype.handle_end_expr=function(R){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(R),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(R,R.text==="]"&&T(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===c.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(R),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===g.Conditional&&(this._previous_flags.mode=g.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},S.prototype.handle_start_block=function(R){this.handle_whitespace_and_comments(R);var w=this._tokens.peek(),L=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===c.END_EXPR?(this.set_mode(g.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(g.BlockStatement):L&&(p(L.text,[":",","])&&p(w.type,[c.STRING,c.WORD,c.RESERVED])||p(w.text,["get","set","..."])&&p(L.type,[c.WORD,c.RESERVED]))?p(this._last_last_text,["class","interface"])?this.set_mode(g.BlockStatement):this.set_mode(g.ObjectLiteral):this._flags.last_token.type===c.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(g.BlockStatement):p(this._flags.last_token.type,[c.EQUALS,c.START_EXPR,c.COMMA,c.OPERATOR])||E(this._flags.last_token,["return","throw","import","default"])?this.set_mode(g.ObjectLiteral):this.set_mode(g.BlockStatement);var $=!w.comments_before&&w.text==="}",W=$&&this._flags.last_word==="function"&&this._flags.last_token.type===c.END_EXPR;if(this._options.brace_preserve_inline){var P=0,U=null;this._flags.inline_frame=!0;do if(P+=1,U=this._tokens.peek(P-1),U.newlines){this._flags.inline_frame=!1;break}while(U.type!==c.EOF&&!(U.type===c.END_BLOCK&&U.opened===R))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&R.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==c.OPERATOR&&(W||this._flags.last_token.type===c.EQUALS||E(this._flags.last_token,D)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(T(this._previous_flags.mode)&&(this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.COMMA)&&((this._flags.last_token.type===c.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(R),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==c.OPERATOR&&this._flags.last_token.type!==c.START_EXPR&&(this._flags.last_token.type===c.START_BLOCK&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(R),this.indent(),!$&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},S.prototype.handle_end_block=function(R){for(this.handle_whitespace_and_comments(R);this._flags.mode===g.Statement;)this.restore_mode();var w=this._flags.last_token.type===c.START_BLOCK;this._flags.inline_frame&&!w?this._output.space_before_token=!0:this._options.brace_style==="expand"?w||this.print_newline():w||(T(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(R)},S.prototype.handle_word=function(R){if(R.type===c.RESERVED){if(p(R.text,["set","get"])&&this._flags.mode!==g.ObjectLiteral)R.type=c.WORD;else if(R.text==="import"&&this._tokens.peek().text==="(")R.type=c.WORD;else if(p(R.text,["as","from"])&&!this._flags.import_block)R.type=c.WORD;else if(this._flags.mode===g.ObjectLiteral){var w=this._tokens.peek();w.text===":"&&(R.type=c.WORD)}}if(this.start_of_statement(R)?E(this._flags.last_token,["var","let","const"])&&R.type===c.WORD&&(this._flags.declaration_statement=!0):R.newlines&&!O(this._flags.mode)&&(this._flags.last_token.type!==c.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==c.EQUALS&&(this._options.preserve_newlines||!E(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(R),this.print_newline()):this.handle_whitespace_and_comments(R),this._flags.do_block&&!this._flags.do_while)if(y(R,"while")){this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&y(R,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===g.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&E(R,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(R),this._flags.in_case=!0;return}if((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR)&&(this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R)),y(R,"function")){(p(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(p(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===c.OPERATOR))&&!this._output.just_added_blankline()&&!R.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD?E(this._flags.last_token,["get","set","new","export"])||E(this._flags.last_token,F)?this._output.space_before_token=!0:y(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===c.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(O(this._flags.mode)||T(this._flags.mode))||this.print_newline(),this.print_token(R),this._flags.last_word=R.text;return}var L="NONE";if(this._flags.last_token.type===c.END_BLOCK?this._previous_flags.inline_frame?L="SPACE":E(R,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&R.newlines?L="NEWLINE":(L="SPACE",this._output.space_before_token=!0):L="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&this._flags.mode===g.BlockStatement?L="NEWLINE":this._flags.last_token.type===c.SEMICOLON&&O(this._flags.mode)?L="SPACE":this._flags.last_token.type===c.STRING?L="NEWLINE":this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.last_token.text==="*"&&(p(this._last_last_text,["function","yield"])||this._flags.mode===g.ObjectLiteral&&p(this._last_last_text,["{",","]))?L="SPACE":this._flags.last_token.type===c.START_BLOCK?this._flags.inline_frame?L="SPACE":L="NEWLINE":this._flags.last_token.type===c.END_EXPR&&(this._output.space_before_token=!0,L="NEWLINE"),E(R,s)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?L="SPACE":L="NEWLINE"),E(R,["else","catch","finally"]))if((!(this._flags.last_token.type===c.END_BLOCK&&this._previous_flags.mode===g.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&R.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var $=this._output.current_line;$.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else L==="NEWLINE"?E(this._flags.last_token,D)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&E(R,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==c.END_EXPR?(this._flags.last_token.type!==c.START_EXPR||!E(R,["var","let","const"]))&&this._flags.last_token.text!==":"&&(y(R,"if")&&y(R.previous,"else")?this._output.space_before_token=!0:this.print_newline()):E(R,s)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&T(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():L==="SPACE"&&(this._output.space_before_token=!0);R.previous&&(R.previous.type===c.WORD||R.previous.type===c.RESERVED)&&(this._output.space_before_token=!0),this.print_token(R),this._flags.last_word=R.text,R.type===c.RESERVED&&(R.text==="do"?this._flags.do_block=!0:R.text==="if"?this._flags.if_block=!0:R.text==="import"?this._flags.import_block=!0:this._flags.import_block&&y(R,"from")&&(this._flags.import_block=!1))},S.prototype.handle_semicolon=function(R){this.start_of_statement(R)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(R);for(var w=this._tokens.peek();this._flags.mode===g.Statement&&!(this._flags.if_block&&y(w,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(R)},S.prototype.handle_string=function(R){R.text.startsWith("`")&&R.newlines===0&&R.whitespace_before===""&&(R.previous.text===")"||this._flags.last_token.type===c.WORD)||(this.start_of_statement(R)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(R),this._flags.last_token.type===c.RESERVED||this._flags.last_token.type===c.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR||this._flags.last_token.type===c.EQUALS||this._flags.last_token.type===c.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(R):R.text.startsWith("`")&&this._flags.last_token.type===c.END_EXPR&&(R.previous.text==="]"||R.previous.text===")")&&R.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(R)},S.prototype.handle_equals=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0},S.prototype.handle_comma=function(R){this.handle_whitespace_and_comments(R,!0),this.print_token(R),this._output.space_before_token=!0,this._flags.declaration_statement?(O(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(R)):this._flags.mode===g.ObjectLiteral||this._flags.mode===g.Statement&&this._flags.parent.mode===g.ObjectLiteral?(this._flags.mode===g.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(R)},S.prototype.handle_operator=function(R){var w=R.text==="*"&&(E(this._flags.last_token,["function","yield"])||p(this._flags.last_token.type,[c.START_BLOCK,c.COMMA,c.END_BLOCK,c.SEMICOLON])),L=p(R.text,["-","+"])&&(p(this._flags.last_token.type,[c.START_BLOCK,c.START_EXPR,c.EQUALS,c.OPERATOR])||p(this._flags.last_token.text,s)||this._flags.last_token.text===",");if(!this.start_of_statement(R)){var $=!w;this.handle_whitespace_and_comments(R,$)}if(E(this._flags.last_token,D)){this._output.space_before_token=!0,this.print_token(R);return}if(R.text==="*"&&this._flags.last_token.type===c.DOT){this.print_token(R);return}if(R.text==="::"){this.print_token(R);return}if(this._flags.last_token.type===c.OPERATOR&&p(this._options.operator_position,A)&&this.allow_wrap_or_preserved_newline(R),R.text===":"&&this._flags.in_case){this.print_token(R),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==c.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var W=!0,P=!0,U=!1;if(R.text===":"?this._flags.ternary_depth===0?W=!1:(this._flags.ternary_depth-=1,U=!0):R.text==="?"&&(this._flags.ternary_depth+=1),!L&&!w&&this._options.preserve_newlines&&p(R.text,d)){var Q=R.text===":",J=Q&&U,ie=Q&&!U;switch(this._options.operator_position){case x.before_newline:this._output.space_before_token=!ie,this.print_token(R),(!Q||J)&&this.allow_wrap_or_preserved_newline(R),this._output.space_before_token=!0;return;case x.after_newline:this._output.space_before_token=!0,!Q||J?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(R):this._output.space_before_token=!1,this.print_token(R),this._output.space_before_token=!0;return;case x.preserve_newline:ie||this.allow_wrap_or_preserved_newline(R),W=!(this._output.just_added_newline()||ie),this._output.space_before_token=W,this.print_token(R),this._output.space_before_token=!0;return}}if(w){this.allow_wrap_or_preserved_newline(R),W=!1;var B=this._tokens.peek();P=B&&p(B.type,[c.WORD,c.RESERVED])}else R.text==="..."?(this.allow_wrap_or_preserved_newline(R),W=this._flags.last_token.type===c.START_BLOCK,P=!1):(p(R.text,["--","++","!","~"])||L)&&((this._flags.last_token.type===c.COMMA||this._flags.last_token.type===c.START_EXPR)&&this.allow_wrap_or_preserved_newline(R),W=!1,P=!1,R.newlines&&(R.text==="--"||R.text==="++"||R.text==="~")&&this.print_newline(!1,!0),this._flags.last_token.text===";"&&O(this._flags.mode)&&(W=!0),this._flags.last_token.type===c.RESERVED?W=!0:this._flags.last_token.type===c.END_EXPR?W=!(this._flags.last_token.text==="]"&&(R.text==="--"||R.text==="++")):this._flags.last_token.type===c.OPERATOR&&(W=p(R.text,["--","-","++","+"])&&p(this._flags.last_token.text,["--","-","++","+"]),p(R.text,["+","-"])&&p(this._flags.last_token.text,["--","++"])&&(P=!0)),(this._flags.mode===g.BlockStatement&&!this._flags.inline_frame||this._flags.mode===g.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline());this._output.space_before_token=this._output.space_before_token||W,this.print_token(R),this._output.space_before_token=P},S.prototype.handle_block_comment=function(R,w){if(this._output.raw){this._output.add_raw_token(R),R.directives&&R.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(R.directives){this.print_newline(!1,w),this.print_token(R),R.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!a.newline.test(R.text)&&!R.newlines){this._output.space_before_token=!0,this.print_token(R),this._output.space_before_token=!0;return}else this.print_block_commment(R,w)},S.prototype.print_block_commment=function(R,w){var L=N(R.text),$,W=!1,P=!1,U=R.whitespace_before,Q=U.length;if(this.print_newline(!1,w),this.print_token_line_indentation(R),this._output.add_token(L[0]),this.print_newline(!1,w),L.length>1){for(L=L.slice(1),W=k(L,"*"),P=M(L,U),W&&(this._flags.alignment=1),$=0;$<L.length;$++)W?(this.print_token_line_indentation(R),this._output.add_token(m(L[$]))):P&&L[$]?(this.print_token_line_indentation(R),this._output.add_token(L[$].substring(Q))):(this._output.current_line.set_indent(-1),this._output.add_token(L[$])),this.print_newline(!1,w);this._flags.alignment=0}},S.prototype.handle_comment=function(R,w){R.newlines?this.print_newline(!1,w):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(R),this.print_newline(!1,w)},S.prototype.handle_dot=function(R){this.start_of_statement(R)||this.handle_whitespace_and_comments(R,!0),E(this._flags.last_token,D)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(R,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(R)},S.prototype.handle_unknown=function(R,w){this.print_token(R),R.text[R.text.length-1]===`
`&&this.print_newline(!1,w)},S.prototype.handle_eof=function(R){for(;this._flags.mode===g.Statement;)this.restore_mode();this.handle_whitespace_and_comments(R)},$l.Beautifier=S,$l}var Qf;function gv(){if(Qf)return Fo.exports;Qf=1;var t=mv().Beautifier,r=Vf().Options;function a(o,n){var s=new t(o,n);return s.beautify()}return Fo.exports=a,Fo.exports.defaultOptions=function(){return new r},Fo.exports}var Uo={exports:{}},ts={},ns={},Xf;function Jf(){if(Xf)return ns;Xf=1;var t=Kl().Options;function r(a){t.call(this,a,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var o=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||o;var n=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var s=0;s<n.length;s++)n[s]!=="expand"?this.brace_style="collapse":this.brace_style=n[s]}return r.prototype=new t,ns.Options=r,ns}var Zf;function vv(){if(Zf)return ts;Zf=1;var t=Jf().Options,r=zl().Output,a=Yl().InputScanner,o=ql().Directives,n=new o(/\/\*/,/\*\//),s=/\r\n|[\r\n]/,d=/\r\n|[\r\n]/g,c=/\s/,p=/(?:\s|\n)+/g,m=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,v=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function y(E,D){this._source_text=E||"",this._options=new t(D),this._ch=null,this._input=null,this.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},this.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0}}return y.prototype.eatString=function(E){var D="";for(this._ch=this._input.next();this._ch;){if(D+=this._ch,this._ch==="\\")D+=this._input.next();else if(E.indexOf(this._ch)!==-1||this._ch===`
`)break;this._ch=this._input.next()}return D},y.prototype.eatWhitespace=function(E){for(var D=c.test(this._input.peek()),C=0;c.test(this._input.peek());)this._ch=this._input.next(),E&&this._ch===`
`&&(C===0||C<this._options.max_preserve_newlines)&&(C++,this._output.add_new_line(!0));return D},y.prototype.foundNestedPseudoClass=function(){for(var E=0,D=1,C=this._input.peek(D);C;){if(C==="{")return!0;if(C==="(")E+=1;else if(C===")"){if(E===0)return!1;E-=1}else if(C===";"||C==="}")return!1;D++,C=this._input.peek(D)}return!1},y.prototype.print_string=function(E){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(E)},y.prototype.preserveSingleSpace=function(E){E&&(this._output.space_before_token=!0)},y.prototype.indent=function(){this._indentLevel++},y.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},y.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var E=this._source_text,D=this._options.eol;D==="auto"&&(D=`
`,E&&s.test(E||"")&&(D=E.match(s)[0])),E=E.replace(d,`
`);var C=E.match(/^[\t ]*/)[0];this._output=new r(this._options,C),this._input=new a(E),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var x=0,A=!1,g=!1,b=!1,N=!1,T=!1,O=this._ch,k,M,S;k=this._input.read(p),M=k!=="",S=O,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),O=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var F=this._input.read(m),R=n.get_directives(F);R&&R.ignore==="start"&&(F+=n.readIgnored(this._input)),this.print_string(F),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(v)),this.eatWhitespace(!0);else if(this._ch==="@")if(this.preserveSingleSpace(M),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var w=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);w.match(/[ :]$/)&&(w=this.eatString(": ").replace(/\s$/,""),this.print_string(w),this._output.space_before_token=!0),w=w.replace(/\s$/,""),w==="extend"?N=!0:w==="import"&&(T=!0),w in this.NESTED_AT_RULE?(this._nestedLevel+=1,w in this.CONDITIONAL_GROUP_RULE&&(b=!0)):!A&&x===0&&w.indexOf(":")!==-1&&(g=!0,this.indent())}else this._ch==="#"&&this._input.peek()==="{"?(this.preserveSingleSpace(M),this.print_string(this._ch+this.eatString("}"))):this._ch==="{"?(g&&(g=!1,this.outdent()),b?(b=!1,A=this._indentLevel>=this._nestedLevel):A=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&A&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line()):this._ch==="}"?(this.outdent(),this._output.add_new_line(),S==="{"&&this._output.trim(!0),T=!1,N=!1,g&&(this.outdent(),g=!1),this.print_string(this._ch),A=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0)):this._ch===":"?(A||b)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!N&&x===0?(this.print_string(":"),g||(g=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":")):this._ch==='"'||this._ch==="'"?(this.preserveSingleSpace(M),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)):this._ch===";"?x===0?(g&&(this.outdent(),g=!1),N=!1,T=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0):this._ch==="("?this._input.lookBack("url")?(this.print_string(this._ch),this.eatWhitespace(),x++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),x&&(x--,this.outdent()))):(this.preserveSingleSpace(M),this.print_string(this._ch),this.eatWhitespace(),x++,this.indent()):this._ch===")"?(x&&(x--,this.outdent()),this.print_string(this._ch)):this._ch===","?(this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&!g&&x===0&&!T&&!N?this._output.add_new_line():this._output.space_before_token=!0):(this._ch===">"||this._ch==="+"||this._ch==="~")&&!g&&x===0?this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&c.test(this._ch)&&(this._ch="")):this._ch==="]"?this.print_string(this._ch):this._ch==="["?(this.preserveSingleSpace(M),this.print_string(this._ch)):this._ch==="="?(this.eatWhitespace(),this.print_string("="),c.test(this._ch)&&(this._ch="")):this._ch==="!"&&!this._input.lookBack("\\")?(this.print_string(" "),this.print_string(this._ch)):(this.preserveSingleSpace(M),this.print_string(this._ch));var L=this._output.get_code(D);return L},ts.Beautifier=y,ts}var qf;function yv(){if(qf)return Uo.exports;qf=1;var t=vv().Beautifier,r=Jf().Options;function a(o,n){var s=new t(o,n);return s.beautify()}return Uo.exports=a,Uo.exports.defaultOptions=function(){return new r},Uo.exports}var Wo={exports:{}},is={},rs={},ed;function td(){if(ed)return rs;ed=1;var t=Kl().Options;function r(a){t.call(this,a,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return r.prototype=new t,rs.Options=r,rs}var Ko={},nd;function id(){if(nd)return Ko;nd=1;var t=zo().Tokenizer,r=zo().TOKEN,a=ql().Directives,o=Kf().TemplatablePattern,n=Ho().Pattern,s={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:r.START,RAW:r.RAW,EOF:r.EOF},d=new a(/<\!--/,/-->/),c=function(p,m){t.call(this,p,m),this._current_tag_name="";var v=new o(this._input).read_options(this._options),y=new n(this._input);if(this.__patterns={word:v.until(/[\n\r\t <]/),single_quote:v.until_after(/'/),double_quote:v.until_after(/"/),attribute:v.until(/[\n\r\t =>]|\/>/),element_name:v.until(/[\n\r\t >\/]/),handlebars_comment:y.starting_with(/{{!--/).until_after(/--}}/),handlebars:y.starting_with(/{{/).until_after(/}}/),handlebars_open:y.until(/[\n\r\t }]/),handlebars_raw_close:y.until(/}}/),comment:y.starting_with(/<!--/).until_after(/-->/),cdata:y.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:y.starting_with(/<!\[/).until_after(/]>/),processing:y.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var E=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=y.matching(E).until_after(E)}};return c.prototype=new t,c.prototype._is_comment=function(p){return!1},c.prototype._is_opening=function(p){return p.type===s.TAG_OPEN},c.prototype._is_closing=function(p,m){return p.type===s.TAG_CLOSE&&m&&((p.text===">"||p.text==="/>")&&m.text[0]==="<"||p.text==="}}"&&m.text[0]==="{"&&m.text[1]==="{")},c.prototype._reset=function(){this._current_tag_name=""},c.prototype._get_next_token=function(p,m){var v=null;this._readWhitespace();var y=this._input.peek();return y===null?this._create_token(s.EOF,""):(v=v||this._read_open_handlebars(y,m),v=v||this._read_attribute(y,p,m),v=v||this._read_close(y,m),v=v||this._read_raw_content(y,p,m),v=v||this._read_content_word(y),v=v||this._read_comment_or_cdata(y),v=v||this._read_processing(y),v=v||this._read_open(y,m),v=v||this._create_token(s.UNKNOWN,this._input.next()),v)},c.prototype._read_comment_or_cdata=function(p){var m=null,v=null,y=null;if(p==="<"){var E=this._input.peek(1);E==="!"&&(v=this.__patterns.comment.read(),v?(y=d.get_directives(v),y&&y.ignore==="start"&&(v+=d.readIgnored(this._input))):v=this.__patterns.cdata.read()),v&&(m=this._create_token(s.COMMENT,v),m.directives=y)}return m},c.prototype._read_processing=function(p){var m=null,v=null,y=null;if(p==="<"){var E=this._input.peek(1);(E==="!"||E==="?")&&(v=this.__patterns.conditional_comment.read(),v=v||this.__patterns.processing.read()),v&&(m=this._create_token(s.COMMENT,v),m.directives=y)}return m},c.prototype._read_open=function(p,m){var v=null,y=null;return m||p==="<"&&(v=this._input.next(),this._input.peek()==="/"&&(v+=this._input.next()),v+=this.__patterns.element_name.read(),y=this._create_token(s.TAG_OPEN,v)),y},c.prototype._read_open_handlebars=function(p,m){var v=null,y=null;return m||this._options.indent_handlebars&&p==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(v=this.__patterns.handlebars_comment.read(),v=v||this.__patterns.handlebars.read(),y=this._create_token(s.COMMENT,v)):(v=this.__patterns.handlebars_open.read(),y=this._create_token(s.TAG_OPEN,v))),y},c.prototype._read_close=function(p,m){var v=null,y=null;return m&&(m.text[0]==="<"&&(p===">"||p==="/"&&this._input.peek(1)===">")?(v=this._input.next(),p==="/"&&(v+=this._input.next()),y=this._create_token(s.TAG_CLOSE,v)):m.text[0]==="{"&&p==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),y=this._create_token(s.TAG_CLOSE,"}}"))),y},c.prototype._read_attribute=function(p,m,v){var y=null,E="";if(v&&v.text[0]==="<")if(p==="=")y=this._create_token(s.EQUALS,this._input.next());else if(p==='"'||p==="'"){var D=this._input.next();p==='"'?D+=this.__patterns.double_quote.read():D+=this.__patterns.single_quote.read(),y=this._create_token(s.VALUE,D)}else E=this.__patterns.attribute.read(),E&&(m.type===s.EQUALS?y=this._create_token(s.VALUE,E):y=this._create_token(s.ATTRIBUTE,E));return y},c.prototype._is_content_unformatted=function(p){return this._options.void_elements.indexOf(p)===-1&&(this._options.content_unformatted.indexOf(p)!==-1||this._options.unformatted.indexOf(p)!==-1)},c.prototype._read_raw_content=function(p,m,v){var y="";if(v&&v.text[0]==="{")y=this.__patterns.handlebars_raw_close.read();else if(m.type===s.TAG_CLOSE&&m.opened.text[0]==="<"&&m.text[0]!=="/"){var E=m.opened.text.substr(1).toLowerCase();if(E==="script"||E==="style"){var D=this._read_comment_or_cdata(p);if(D)return D.type=s.TEXT,D;y=this._input.readUntil(new RegExp("</"+E+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(E)&&(y=this._input.readUntil(new RegExp("</"+E+"[\\n\\r\\t ]*?>","ig")))}return y?this._create_token(s.TEXT,y):null},c.prototype._read_content_word=function(p){var m="";if(this._options.unformatted_content_delimiter&&p===this._options.unformatted_content_delimiter[0]&&(m=this.__patterns.unformatted_content_delimiter.read()),m||(m=this.__patterns.word.read()),m)return this._create_token(s.TEXT,m)},Ko.Tokenizer=c,Ko.TOKEN=s,Ko}var rd;function bv(){if(rd)return is;rd=1;var t=td().Options,r=zl().Output,a=id().Tokenizer,o=id().TOKEN,n=/\r\n|[\r\n]/,s=/\r\n|[\r\n]/g,d=function(A,g){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=A.max_preserve_newlines,this.preserve_newlines=A.preserve_newlines,this._output=new r(A,g)};d.prototype.current_line_has_match=function(A){return this._output.current_line.has_match(A)},d.prototype.set_space_before_token=function(A,g){this._output.space_before_token=A,this._output.non_breaking_space=g},d.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},d.prototype.add_raw_token=function(A){this._output.add_raw_token(A)},d.prototype.print_preserved_newlines=function(A){var g=0;A.type!==o.TEXT&&A.previous.type!==o.TEXT&&(g=A.newlines?1:0),this.preserve_newlines&&(g=A.newlines<this.max_preserve_newlines+1?A.newlines:this.max_preserve_newlines+1);for(var b=0;b<g;b++)this.print_newline(b>0);return g!==0},d.prototype.traverse_whitespace=function(A){return A.whitespace_before||A.newlines?(this.print_preserved_newlines(A)||(this._output.space_before_token=!0),!0):!1},d.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},d.prototype.print_newline=function(A){this._output.add_new_line(A)},d.prototype.print_token=function(A){A.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(A.text))},d.prototype.indent=function(){this.indent_level++},d.prototype.get_full_indent=function(A){return A=this.indent_level+(A||0),A<1?"":this._output.get_indent_string(A)};var c=function(A){for(var g=null,b=A.next;b.type!==o.EOF&&A.closed!==b;){if(b.type===o.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===o.EQUALS&&b.next.next&&b.next.next.type===o.VALUE&&(g=b.next.next.text);break}b=b.next}return g},p=function(A,g){var b=null,N=null;return g.closed?(A==="script"?b="text/javascript":A==="style"&&(b="text/css"),b=c(g)||b,b.search("text/css")>-1?N="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?N="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?N="html":b.search(/test\/null/)>-1&&(N="null"),N):null};function m(A,g){return g.indexOf(A)!==-1}function v(A,g,b){this.parent=A||null,this.tag=g?g.tag_name:"",this.indent_level=b||0,this.parser_token=g||null}function y(A){this._printer=A,this._current_frame=null}y.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},y.prototype.record_tag=function(A){var g=new v(this._current_frame,A,this._printer.indent_level);this._current_frame=g},y.prototype._try_pop_frame=function(A){var g=null;return A&&(g=A.parser_token,this._printer.indent_level=A.indent_level,this._current_frame=A.parent),g},y.prototype._get_frame=function(A,g){for(var b=this._current_frame;b&&A.indexOf(b.tag)===-1;){if(g&&g.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},y.prototype.try_pop=function(A,g){var b=this._get_frame([A],g);return this._try_pop_frame(b)},y.prototype.indent_to_tag=function(A){var g=this._get_frame(A);g&&(this._printer.indent_level=g.indent_level)};function E(A,g,b,N){this._source_text=A||"",g=g||{},this._js_beautify=b,this._css_beautify=N,this._tag_stack=null;var T=new t(g,"html");this._options=T,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}E.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var A=this._source_text,g=this._options.eol;this._options.eol==="auto"&&(g=`
`,A&&n.test(A)&&(g=A.match(n)[0])),A=A.replace(s,`
`);var b=A.match(/^[\t ]*/)[0],N={text:"",type:""},T=new D,O=new d(this._options,b),k=new a(A,this._options).tokenize();this._tag_stack=new y(O);for(var M=null,S=k.next();S.type!==o.EOF;)S.type===o.TAG_OPEN||S.type===o.COMMENT?(M=this._handle_tag_open(O,S,T,N),T=M):S.type===o.ATTRIBUTE||S.type===o.EQUALS||S.type===o.VALUE||S.type===o.TEXT&&!T.tag_complete?M=this._handle_inside_tag(O,S,T,k):S.type===o.TAG_CLOSE?M=this._handle_tag_close(O,S,T):S.type===o.TEXT?M=this._handle_text(O,S,T):O.add_raw_token(S),N=M,S=k.next();var F=O._output.get_code(g);return F},E.prototype._handle_tag_close=function(A,g,b){var N={text:g.text,type:g.type};return A.alignment_size=0,b.tag_complete=!0,A.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.is_unformatted?A.add_raw_token(g):(b.tag_start_char==="<"&&(A.set_space_before_token(g.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&A.print_newline(!1)),A.print_token(g)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(A.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&A.set_wrap_point(),N},E.prototype._handle_inside_tag=function(A,g,b,N){var T=b.has_wrapped_attrs,O={text:g.text,type:g.type};if(A.set_space_before_token(g.newlines||g.whitespace_before!=="",!0),b.is_unformatted)A.add_raw_token(g);else if(b.tag_start_char==="{"&&g.type===o.TEXT)A.print_preserved_newlines(g)?(g.newlines=0,A.add_raw_token(g)):A.print_token(g);else{if(g.type===o.ATTRIBUTE?(A.set_space_before_token(!0),b.attr_count+=1):(g.type===o.EQUALS||g.type===o.VALUE&&g.previous.type===o.EQUALS)&&A.set_space_before_token(!1),g.type===o.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(A.traverse_whitespace(g),T=T||g.newlines!==0),this._is_wrap_attributes_force)){var k=b.attr_count>1;if(this._is_wrap_attributes_force_expand_multiline&&b.attr_count===1){var M=!0,S=0,F;do{if(F=N.peek(S),F.type===o.ATTRIBUTE){M=!1;break}S+=1}while(S<4&&F.type!==o.EOF&&F.type!==o.TAG_CLOSE);k=!M}k&&(A.print_newline(!1),T=!0)}A.print_token(g),T=T||A.previous_token_wrapped(),b.has_wrapped_attrs=T}return O},E.prototype._handle_text=function(A,g,b){var N={text:g.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(A,g,b):b.is_unformatted||b.is_content_unformatted?A.add_raw_token(g):(A.traverse_whitespace(g),A.print_token(g)),N},E.prototype._print_custom_beatifier_text=function(A,g,b){var N=this;if(g.text!==""){var T=g.text,O,k=1,M="",S="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?O=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?O=this._css_beautify:b.custom_beautifier_name==="html"&&(O=function(W,P){var U=new E(W,P,N._js_beautify,N._css_beautify);return U.beautify()}),this._options.indent_scripts==="keep"?k=0:this._options.indent_scripts==="separate"&&(k=-A.indent_level);var F=A.get_full_indent(k);if(T=T.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&T[0]==="<"&&T.match(/^(<!--|<!\[CDATA\[)/)){var R=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(T);if(!R){A.add_raw_token(g);return}M=F+R[1]+`
`,T=R[4],R[5]&&(S=F+R[5]),T=T.replace(/\n[ \t]*$/,""),(R[2]||R[3].indexOf(`
`)!==-1)&&(R=R[3].match(/[ \t]+$/),R&&(g.whitespace_before=R[0]))}if(T)if(O){var w=function(){this.eol=`
`};w.prototype=this._options.raw_options;var L=new w;T=O(F+T,L)}else{var $=g.whitespace_before;$&&(T=T.replace(new RegExp(`
(`+$+")?","g"),`
`)),T=F+T.replace(/\n/g,`
`+F)}M&&(T?T=M+T+`
`+S:T=M+S),A.print_newline(!1),T&&(g.text=T,g.whitespace_before="",g.newlines=0,A.add_raw_token(g),A.print_newline(!0))}},E.prototype._handle_tag_open=function(A,g,b,N){var T=this._get_tag_open_token(g);return(b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&g.type===o.TAG_OPEN&&g.text.indexOf("</")===0?(A.add_raw_token(g),T.start_tag_token=this._tag_stack.try_pop(T.tag_name)):(A.traverse_whitespace(g),this._set_tag_position(A,g,T,b,N),T.is_inline_element||A.set_wrap_point(),A.print_token(g)),(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(T.alignment_size=g.text.length+1),!T.tag_complete&&!T.is_unformatted&&(A.alignment_size=T.alignment_size),T};var D=function(A,g){if(this.parent=A||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!g)this.tag_complete=!0;else{var b;this.tag_start_char=g.text[0],this.text=g.text,this.tag_start_char==="<"?(b=g.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=g.text.match(/^{{(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",g.text==="{{#>"&&this.tag_check===">"&&g.next!==null&&(this.tag_check=g.next.text.split(" ")[0])),this.tag_check=this.tag_check.toLowerCase(),g.type===o.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||g.closed&&g.closed.text==="/>",this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(2)))}};E.prototype._get_tag_open_token=function(A){var g=new D(this._tag_stack.get_parser_token(),A);return g.alignment_size=this._options.wrap_attributes_indent_size,g.is_end_tag=g.is_end_tag||m(g.tag_check,this._options.void_elements),g.is_empty_element=g.tag_complete||g.is_start_tag&&g.is_end_tag,g.is_unformatted=!g.tag_complete&&m(g.tag_check,this._options.unformatted),g.is_content_unformatted=!g.is_empty_element&&m(g.tag_check,this._options.content_unformatted),g.is_inline_element=m(g.tag_name,this._options.inline)||g.tag_start_char==="{",g},E.prototype._set_tag_position=function(A,g,b,N,T){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||A.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=p(b.tag_check,g)))),m(b.tag_check,this._options.extra_liners)&&(A.print_newline(!1),A._output.just_added_blankline()||A.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var O=A.current_line_has_match(/{{#if/);O||A.print_newline(!1)}b.tag_name==="!--"&&T.type===o.TAG_CLOSE&&N.is_end_tag&&b.text.indexOf(`
`)===-1||(b.is_inline_element||b.is_unformatted||A.print_newline(!1),this._calcluate_parent_multiline(A,b))}else if(b.is_end_tag){var k=!1;k=b.start_tag_token&&b.start_tag_token.multiline_content,k=k||!b.is_inline_element&&!(N.is_inline_element||N.is_unformatted)&&!(T.type===o.TAG_CLOSE&&b.start_tag_token===N)&&T.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(k=!1),k&&A.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(T.type!=="TK_CONTENT"||b.is_content_unformatted)&&A.print_newline(!1),this._calcluate_parent_multiline(A,b)},E.prototype._calcluate_parent_multiline=function(A,g){g.parent&&A._output.just_added_newline()&&!((g.is_inline_element||g.is_unformatted)&&g.parent.is_inline_element)&&(g.parent.multiline_content=!0)};var C=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","nav","ol","p","pre","section","table","ul"],x=["a","audio","del","ins","map","noscript","video"];return E.prototype._do_optional_end_element=function(A){var g=null;if(!(A.is_empty_element||!A.is_start_tag||!A.parent)){if(A.tag_name==="body")g=g||this._tag_stack.try_pop("head");else if(A.tag_name==="li")g=g||this._tag_stack.try_pop("li",["ol","ul"]);else if(A.tag_name==="dd"||A.tag_name==="dt")g=g||this._tag_stack.try_pop("dt",["dl"]),g=g||this._tag_stack.try_pop("dd",["dl"]);else if(A.parent.tag_name==="p"&&C.indexOf(A.tag_name)!==-1){var b=A.parent.parent;(!b||x.indexOf(b.tag_name)===-1)&&(g=g||this._tag_stack.try_pop("p"))}else A.tag_name==="rp"||A.tag_name==="rt"?(g=g||this._tag_stack.try_pop("rt",["ruby","rtc"]),g=g||this._tag_stack.try_pop("rp",["ruby","rtc"])):A.tag_name==="optgroup"?g=g||this._tag_stack.try_pop("optgroup",["select"]):A.tag_name==="option"?g=g||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):A.tag_name==="colgroup"?g=g||this._tag_stack.try_pop("caption",["table"]):A.tag_name==="thead"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"])):A.tag_name==="tbody"||A.tag_name==="tfoot"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("thead",["table"]),g=g||this._tag_stack.try_pop("tbody",["table"])):A.tag_name==="tr"?(g=g||this._tag_stack.try_pop("caption",["table"]),g=g||this._tag_stack.try_pop("colgroup",["table"]),g=g||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(A.tag_name==="th"||A.tag_name==="td")&&(g=g||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),g=g||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return A.parent=this._tag_stack.get_parser_token(),g}},is.Beautifier=E,is}var od;function Av(){if(od)return Wo.exports;od=1;var t=bv().Beautifier,r=td().Options;function a(o,n,s,d){var c=new t(o,n,s,d);return c.beautify()}return Wo.exports=a,Wo.exports.defaultOptions=function(){return new r},Wo.exports}var ad;function Cv(){if(ad)return Lr;ad=1;var t=gv(),r=yv(),a=Av();function o(n,s,d,c){return d=d||t,c=c||r,a(n,s,d,c)}return o.defaultOptions=a.defaultOptions,Lr.js=t,Lr.css=r,Lr.html=o,Lr}(function(t){function r(a,o,n){var s=function(d,c){return a.js_beautify(d,c)};return s.js=a.js_beautify,s.css=o.css_beautify,s.html=n.html_beautify,s.js_beautify=a.js_beautify,s.css_beautify=o.css_beautify,s.html_beautify=n.html_beautify,s}(function(a){var o=Cv();o.js_beautify=o.js,o.css_beautify=o.css,o.html_beautify=o.html,a.exports=r(o,o,o)})(t)})(Rf);const ld=Rf.exports,ow="",wv=l.defineComponent({name:"Struct",emits:["update:modelValue"],props:{modelValue:[Object,Array,Function],title:String,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t(){return this.designer.setupState.t},configured(){return!Xe.empty(this.modelValue)&&Object.keys(this.modelValue).length>0}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(t){t&&this.load()}},methods:{load(){const t=Nn(du(this.modelValue?Ct(this.modelValue):this.defaultValue));this.oldVal=t,this.$nextTick(()=>{this.editor=l.markRaw(Ki(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:t?ld.js(t,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""}))})},onOk(){const t=(this.editor.getValue()||"").trim();let r;try{r=new Function("return "+t)()}catch(a){return console.error(a),yn(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(r)===!1?(yn(this.t("struct.errorMsg")),!1):(this.visible=!1,Nn(r)!==this.oldVal&&this.$emit("update:modelValue",r),!0)}}}),Ev={class:"_fd-struct"},Sv={key:0,ref:"editor"};function xv(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-badge"),p=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",Ev,[l.createVNode(c,{type:"warning","is-dot":"",hidden:!t.configured},{default:l.withCtx(()=>[l.createElementVNode("div",{onClick:r[0]||(r[0]=m=>t.visible=!0)},[l.renderSlot(t.$slots,"default",{},()=>[l.createVNode(d,{class:"_fd-plain-button",plain:"",size:"small"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.title||t.t("struct.title")),1)]),_:1})])])]),_:3},8,["hidden"]),l.createVNode(p,{class:"_fd-struct-con",title:t.title||t.t("struct.title"),modelValue:t.visible,"onUpdate:modelValue":r[2]||(r[2]=m=>t.visible=m),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(d,{onClick:r[1]||(r[1]=m=>t.visible=!1),size:"default"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.cancel")),1)]),_:1}),l.createVNode(d,{type:"primary",onClick:t.onOk,size:"default",color:"#2f73ff"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:l.withCtx(()=>[t.visible?(l.openBlock(),l.createElementBlock("div",Sv,null,512)):l.createCommentVNode("",!0)]),_:1},8,["title","modelValue"])])}const sd=We(wv,[["render",xv]]),aw="",Tv=l.defineComponent({name:"PropsInput",components:{Struct:sd},inject:["designer"],data(){return{}},computed:{t(){return this.designer.setupState.t},activeRule(){return this.designer.setupState.activeRule},props(){var a;const t=((a=this.activeRule._fc_store)==null?void 0:a.props_keys)||[],r={};return t.forEach(o=>{this.activeRule.props&&this.activeRule.props[o]!=null&&(r[o]=this.activeRule.props[o])}),r}},methods:{onInput(t){this.activeRule.props||(this.activeRule.props={}),this.activeRule._fc_store||(this.activeRule._fc_store={}),Object.keys(this.props).forEach(a=>{(t||{})[a]==null&&delete this.activeRule.props[a]}),Dp(this.activeRule.props,t||{});const r=Object.keys(t||{});r.length?this.activeRule._fc_store.props_keys=r:delete this.activeRule._fc_store.props_keys}}});function Nv(t,r,a,o,n,s){const d=l.resolveComponent("Struct");return l.openBlock(),l.createBlock(d,{class:"_fd-props-input",modelValue:t.props,"onUpdate:modelValue":t.onInput,title:t.t("designer.customProps")},{default:l.withCtx(()=>r[0]||(r[0]=[l.createElementVNode("i",{class:"fc-icon icon-edit"},null,-1)])),_:1,__:[0]},8,["modelValue","onUpdate:modelValue","title"])}const _v=We(Tv,[["render",Nv]]),lw="",Dv=l.defineComponent({name:"LanguageConfig",inject:["designer"],computed:{localeOptions(){return this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}])},t(){return this.designer.setupState.t}},data(){return{column:[],uni:0,selected:[]}},methods:{copy(t){ei(t)},addColumn(){this.column.unshift({key:this.randomString(),input:!0})},saveColumn(t,r){t.input=r||!1;const a=this.designer.setupState.formOptions.language;this.localeOptions.forEach(o=>{a[o.value]||(a[o.value]={}),a[o.value][t.key]=t[o.value]})},rmColumn(t){const r=this.column[t];this.column.splice(t,1);const a=this.designer.setupState.formOptions.language;this.localeOptions.forEach(o=>{a[o.value]&&delete a[o.value][r.key]})},batchRmColumn(){this.selected.forEach(t=>{this.rmColumn(this.column.indexOf(t))}),this.selected=[]},selectionChange(t){this.selected=t},randomString(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let r="";const a=t.length;for(let o=0;o<7;o++)r+=t.charAt(Math.floor(Math.random()*a));return t.charAt(this.uni++%26)+r}},mounted(){const t=this.designer.setupState.formOptions.language||{},r={};Object.keys(t).forEach(a=>{Object.keys(t[a]).forEach(o=>{r[o]||(r[o]={key:o}),r[o][a]=t[a][o]})}),this.column=Object.values(r)}}),Rv={class:"_fd-language-config"},Ov={class:"_fc-l-label"},kv={class:"_fc-l-info"},Bv={class:"_fd-lc-header"},Iv={class:"_fd-lc-body"},Mv={class:"_fd-lc-handle"},Pv=["onClick"],Lv=["onClick"],Vv=["onClick"],Fv=["onClick"];function $v(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-table-column"),p=l.resolveComponent("el-input"),m=l.resolveComponent("el-table");return l.openBlock(),l.createElementBlock("div",Rv,[l.createElementVNode("div",Ov,l.toDisplayString(t.t("language.name")),1),l.createElementVNode("div",kv,l.toDisplayString(t.t("warning.language")),1),l.createElementVNode("div",Bv,[l.createVNode(d,{size:"small",onClick:t.addColumn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("language.add")),1)]),_:1},8,["onClick"]),l.createVNode(d,{size:"small",type:"danger",plain:"",disabled:!t.selected.length,onClick:t.batchRmColumn},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("language.batchRemove")),1)]),_:1},8,["disabled","onClick"])]),l.createElementVNode("div",Iv,[l.createVNode(m,{data:t.column,size:"small",ref:"table",onSelectionChange:t.selectionChange,"row-key":"key"},{default:l.withCtx(()=>[l.createVNode(c,{type:"selection",width:"30px"}),l.createVNode(c,{prop:"key",label:"Key",width:"90px"}),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.localeOptions,v=>(l.openBlock(),l.createBlock(c,{key:v.value,prop:v.value,label:v.label,"min-width":"100px"},{default:l.withCtx(y=>[y.row.input?(l.openBlock(),l.createBlock(p,{key:0,size:"small",modelValue:y.row[v.value],"onUpdate:modelValue":E=>y.row[v.value]=E,onBlur:E=>t.saveColumn(y.row,!0)},null,8,["modelValue","onUpdate:modelValue","onBlur"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(y.row[v.value]||"-"),1)],64))]),_:2},1032,["prop","label"]))),128)),l.createVNode(c,{width:"75px",label:t.t("tableOptions.handle"),fixed:"right"},{default:l.withCtx(v=>[l.createElementVNode("div",Mv,[v.row.input?(l.openBlock(),l.createElementBlock("i",{key:1,class:"fc-icon icon-check",onClick:y=>t.saveColumn(v.row)},null,8,Lv)):(l.openBlock(),l.createElementBlock("i",{key:0,class:"fc-icon icon-edit",onClick:y=>v.row.input=!0},null,8,Pv)),l.createElementVNode("i",{class:"fc-icon icon-group",onClick:y=>t.copy(v.row.key)},null,8,Vv),l.createElementVNode("i",{class:"fc-icon icon-delete-circle",onClick:y=>t.rmColumn(v.$index)},null,8,Fv)])]),_:1},8,["label"])]),_:1},8,["data","onSelectionChange"])])])}const Hv=We(Dv,[["render",$v]]),sw="",zv=l.defineComponent({name:"StructEditor",props:{modelValue:[Object,Array,Function],format:Boolean,defaultValue:{require:!1}},emits:["blur","focus","update:modelValue"],inject:["designer"],data(){return{editor:null,visible:!1,err:!1,oldVal:null}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue(t){if(this.editor){const r=t?this.toJson(t):"";this.oldVal=r;const o=this.editor.getScrollInfo().top;this.editor.setValue(r),this.editor.scrollTo(0,o)}}},mounted(){this.$nextTick(()=>{this.load()})},methods:{toJson(t){return this.format?He.toJson(t,2):Nn(t)},load(){const t=this.modelValue?this.toJson(this.modelValue):"";this.oldVal=t,this.$nextTick(()=>{this.editor=l.markRaw(Ki(this.$refs.editor,{lineNumbers:!0,mode:"javascript",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:t?ld.js(t,{indent_size:"2",indent_char:" ",max_preserve_newlines:"5",indent_scripts:"separate"}):""})),this.editor.on("blur",()=>{this.$emit("blur")}),this.editor.on("focus",()=>{this.$emit("focus")})})},save(){const t=(this.editor.getValue()||"").trim();let r;try{r=new Function("return "+t)()}catch(a){return console.error(a),yn(this.t("struct.errorMsg")),!1}return this.validate&&this.validate(r)===!1?(this.err=!0,!1):(this.visible=!1,this.toJson(r)!==this.oldVal&&this.$emit("update:modelValue",r),!0)}}}),jv={class:"_fd-struct-editor"},Uv={ref:"editor"};function Wv(t,r,a,o,n,s){return l.openBlock(),l.createElementBlock("div",jv,[l.createElementVNode("div",Uv,null,512)])}const ud=We(zv,[["render",Wv]]),uw="",Kv=l.defineComponent({name:"JsonPreview",components:{StructEditor:ud},inject:["designer"],data(){return{active:"rule",value:this.designer.setupState.getRule(),oldValue:""}},watch:{active(){this.updateValue()}},computed:{change(){return this.active==="rule"?this.designer.setupState.children:this.designer.setupState.formOptions},t(){return this.designer.setupState.t}},methods:{updateValue(){this.active==="rule"?this.value=this.designer.setupState.getRule():this.value=this.designer.setupState.getOptions()},handleFocus(){this.oldValue=He.toJson(this.value)},handleBlur(){let t;this.$refs.editor.save()&&(t=He.toJson(this.value))!==this.oldValue&&(this.active==="rule"?this.designer.setupState.setRule(t):this.designer.setupState.setOptions(this.value||{}))}},mounted(){this.$watch(()=>this.change,()=>{this.updateValue()},{deep:!0})}});function Gv(t,r,a,o,n,s){const d=l.resolveComponent("el-header"),c=l.resolveComponent("StructEditor"),p=l.resolveComponent("el-main"),m=l.resolveComponent("el-container");return l.openBlock(),l.createBlock(m,{class:"_fc-json-preview"},{default:l.withCtx(()=>[l.createVNode(d,{height:"40px",class:"_fc-l-tabs"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["_fc-l-tab",{active:t.active==="rule"}]),onClick:r[0]||(r[0]=v=>t.active="rule")},l.toDisplayString(t.t("designer.json")),3),l.createElementVNode("div",{class:l.normalizeClass(["_fc-l-tab",{active:t.active==="options"}]),onClick:r[1]||(r[1]=v=>t.active="options")},l.toDisplayString(t.t("designer.form")),3)]),_:1}),l.createVNode(p,{style:{padding:"8px"}},{default:l.withCtx(()=>[l.createVNode(c,{ref:"editor",modelValue:t.value,"onUpdate:modelValue":r[2]||(r[2]=v=>t.value=v),onBlur:t.handleBlur,onFocus:t.handleFocus,format:"",style:{height:"100%"}},null,8,["modelValue","onBlur","onFocus"])]),_:1})]),_:1})}const Yv=We(Kv,[["render",Gv]]),fw="",Qv=l.defineComponent({name:"Warning",props:{tooltip:String},data(){return{}}}),Xv=["innerHTML"],Jv={key:0,class:"_fd-warning-text"},Zv={key:1,class:"fc-icon icon-question"};function qv(t,r,a,o,n,s){const d=l.resolveComponent("el-tooltip");return l.openBlock(),l.createBlock(d,{effect:"dark",placement:"top-start","popper-class":"_fd-warning-pop"},{content:l.withCtx(()=>[l.createElementVNode("span",{innerHTML:t.tooltip},null,8,Xv)]),default:l.withCtx(()=>[t.$slots.default?(l.openBlock(),l.createElementBlock("span",Jv,[l.renderSlot(t.$slots,"default")])):(l.openBlock(),l.createElementBlock("i",Zv))]),_:3})}const os=We(Qv,[["render",qv]]),ey=["props"],ty=["class","style","directives"],ny=["on","hook"],fd=(t,r={},a={})=>{const o=[...ey,...a.normal||[]],n=[...ty,...a.array||[]],s=[...ny,...a.functional||[]],d=a.props||[];return t.reduce((c,p)=>{for(const m in p)if(c[m])if(d.indexOf(m)>-1)c[m]=fd([p[m]],c[m]);else if(o.indexOf(m)>-1)c[m]={...c[m],...p[m]};else if(n.indexOf(m)>-1){const v=c[m]instanceof Array?c[m]:[c[m]],y=p[m]instanceof Array?p[m]:[p[m]];c[m]=[...v,...y]}else if(s.indexOf(m)>-1)for(const v in p[m])if(c[m][v]){const y=c[m][v]instanceof Array?c[m][v]:[c[m][v]],E=p[m][v]instanceof Array?p[m][v]:[p[m][v]];c[m][v]=[...y,...E]}else c[m][v]=p[m][v];else if(m==="hook")for(let v in p[m])c[m][v]?c[m][v]=iy(c[m][v],p[m][v]):c[m][v]=p[m][v];else c[m]=p[m];else o.indexOf(m)>-1||s.indexOf(m)>-1||d.indexOf(m)>-1?c[m]={...p[m]}:n.indexOf(m)>-1?c[m]=p[m]instanceof Array?[...p[m]]:typeof p[m]=="object"?{...p[m]}:p[m]:c[m]=p[m];return c},r)},iy=(t,r)=>function(){t&&t.apply(this,arguments),r&&r.apply(this,arguments)};Pr.registerLanguage("javascript",sv),Pr.registerLanguage("xml",lv);const ry=l.defineComponent({name:"FcDesigner",components:{Warning:os,JsonPreview:Yv,LanguageConfig:Hv,PropsInput:_v,TypeSelect:cv,fcDraggable:kl,DragForm:He.$form(),ViewForm:kr.$form(),EventConfig:ff},props:{menu:Array,height:[String,Number],config:{type:Object,default:()=>({})},mask:{type:Boolean,default:void 0},locale:Object,handle:Array},emits:["active","create","copy","delete","drag","inputData","save","clear","copyRule","pasteRule","sortUp","sortDown","changeDevice","previewSubmit","previewReset","changeField"],setup(t){var W,P,U,Q,J,ie;const{menu:r,height:a,mask:o,locale:n,handle:s}=l.toRefs(t),d=l.getCurrentInstance(),c=l.reactive({active:null});l.provide("fcx",c),l.provide("designer",d);const p=l.toRef(t,"config",{}),m=l.toRef(p.value,"baseRule",null),v=l.toRef(p.value,"componentRule",{}),y=l.toRef(p.value,"validateRule",null),E=l.toRef(p.value,"formRule",null),D=l.toRef(p.value,"updateDefaultRule",{}),C=l.computed(()=>{const B=a.value;return B?Xe.Number(B)?`${B}px`:B:"100%"}),x=l.computed(()=>p.value.fieldReadonly!==!1),A=l.computed(()=>p.value.hiddenMenu||[]),g=l.computed(()=>p.value.hiddenItem||[]),b=l.computed(()=>p.value.hiddenDragMenu===!0),N=l.computed(()=>p.value.hiddenDragBtn===!0),T=l.computed(()=>{const B=["base","props","style","event","validate"];let z=p.value.configFormOrder?[...p.value.configFormOrder]:[],G=[];return z.length?[...z,...B].forEach(Y=>{G.indexOf(Y)===-1&&B.indexOf(Y)>-1&&G.push(Y)}):G=B,G.map(Y=>`"${Y}"`).join(" ")});let O=Bl;n.value&&(O=ka(n).t);const k=(...B)=>O(...B),M=(B,z,...G)=>{if(z){if(Xe.Function(z))return z(...G);if(z.rule){let Y=z.rule(...G);return z.prepend?Y=[...Y,...B(...G)]:z.append&&(Y=[...B(...G),...Y]),Y}}return B(...G)},S=l.reactive({cacheProps:{},operation:{idx:-1,list:[]},hiddenLeft:!1,hiddenRight:!1,moveRule:null,addRule:null,added:null,bus:Vp(),device:((W=p.value)==null?void 0:W.device)||"pc",activeModule:"base",activeTab:"form",activeMenuTab:"menu",activeRule:null,activePermission:{},children:l.ref([]),treeInfo:[],menuList:r.value||sg(),dragRuleList:{},eventShow:!1,unloadStatus:!1,previewStatus:"form",t:k,preview:{state:!1,rule:[],option:{},api:{}},inputForm:{state:!1,rule:[],option:{},api:{},data:{},key:""},dragForm:l.ref({rule:[],api:{}}),formOptions:{},oldOptionsKeys:[],form:{rule:M(mu,E.value,{t:k}),api:{},option:{global:{input:((P=p.value)==null?void 0:P.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},select:{props:{clearable:!0}}},form:{labelPosition:"top",size:"small"},submitBtn:!1},value:{form:{},submitBtn:!1}},baseForm:{isShow:!1,rule:M(Cr,m.value,{t:k}),api:{},value:{},options:{global:{input:((U=p.value)==null?void 0:U.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:B=>{B.activeRule=S.activeRule,B.setValue(B.options.formData||{})}}},styleForm:{isShow:!1,rule:Lp({t:k}),api:{},value:{},options:{form:{labelPosition:"left",size:"small"},submitBtn:!1,mounted:B=>{B.activeRule=S.activeRule,B.setValue(B.options.formData||{})}}},validateForm:{isShow:!1,rule:M(gu,y.value,{t:k}),api:{},value:[],options:{global:{input:((Q=p.value)==null?void 0:Q.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:B=>{B.activeRule=S.activeRule,B.setValue(B.options.formData||{})}}},propsForm:{isShow:!1,rule:[],api:{},value:{},options:{global:{input:((J=p.value)==null?void 0:J.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{},inputNumber:{props:{controlsPosition:"right"}}},form:{labelPosition:"top",size:"small"},submitBtn:!1,mounted:B=>{B.activeRule=S.activeRule,B.setValue(B.options.formData||{})}}},customForm:{isShow:!1,config:null,key:"",rule:[],api:{},options:{global:{input:((ie=p.value)==null?void 0:ie.updateConfigOnBlur)!==!1?{modelEmit:"blur"}:{}},form:{labelPosition:"top",size:"small"},submitBtn:!1}}});l.watch(()=>S.preview.state,function(B){B||l.nextTick(()=>{S.previewStatus="form",S.preview.rule=S.preview.option=null})});let F=null;const R=(B,z)=>{if(B[10]!==">"){if(B=B.replace("formCreate",""),!B)return;B=Ra(B)}else B=B.replace("formCreate>","");const G=B.split(">"),Y=G.pop();let Z=S.activeRule;G.forEach((ae,ue)=>{ue||(ae=Ra(ae)),Z[ae]||(Z[ae]={}),Z=Z[ae]}),z({source:Z,field:Y})};l.watch(()=>n.value,B=>{O=B?ka(n).t:Bl,w.clearActiveRule();const z=S.form.api.formData&&S.form.api.formData(),G=S.baseForm.api.formData&&S.baseForm.api.formData(),Y=S.validateForm.api.formData&&S.validateForm.api.formData();S.validateForm.rule=M(gu,y.value,{t:k}),S.baseForm.rule=M(Cr,m.value,{t:k}),S.form.rule=M(mu,E.value,{t:k}),S.cacheProps={};const Z=S.activeRule;let ae=null;Z&&(ae=S.propsForm.api.formData&&S.propsForm.api.formData(),S.propsForm.rule=S.cacheProps[Z._fc_id]=w.getPropsRule(Z)),l.nextTick(()=>{z&&S.form.api.setValue(z),G&&S.baseForm.api.setValue(G),Y&&S.validateForm.api.setValue(Y),ae&&S.propsForm.api.setValue(ae)})});const w={setDevice(B){S.device=B,d.emit("changeDevice",B)},unWatchActiveRule(){F&&F(),F=null},watchActiveRule(){w.unWatchActiveRule(),F=l.watch(()=>S.activeRule,function(B){B&&w.updateRuleFormData()},{deep:!0,flush:"post"})},makeChildren(B){return l.reactive({children:B}).children},addMenu(B){if(!B.name)return;let z=!0;S.menuList.forEach((G,Y)=>{G.name===B.name&&(S.menuList[Y]=B,z=!1)}),z&&(B.before?S.menuList.unshift(B):S.menuList.push(B))},removeMenu(B){[...S.menuList].forEach((z,G)=>{z.name===B&&S.menuList.splice(G,1)})},setMenuItem(B,z){S.menuList.forEach(G=>{G.name===B&&(G.list=z)})},appendMenuItem(B,z){S.menuList.forEach(G=>{G.name===B&&G.list.push(...Array.isArray(z)?z:[z])})},removeMenuItem(B){S.menuList.forEach(z=>{let G;Xe.String(B)?[...z.list].forEach((Y,Z)=>{Y.name===B&&z.list.splice(Z,1)}):(G=z.list.indexOf(B))>-1&&z.list.splice(G,1)})},addComponent(B){Array.isArray(B)?B.forEach(z=>{S.dragRuleList[z.name]=z,z.menu&&w.appendMenuItem(z.menu,z)}):(S.dragRuleList[B.name]=B,B.menu&&w.appendMenuItem(B.menu,B))},openInputData(B){S.inputForm.state=B===void 0?!S.inputForm.state:!!B,S.inputForm.state&&(S.inputForm.rule=He.parseJson(w.getJson()),S.inputForm.option=He.parseJson(w.getOptionsJson()),S.inputForm.option.formData=Ct(S.inputForm.data),S.inputForm.option.appendValue=!1,S.inputForm.option.submitBtn.show=!1,S.inputForm.option.resetBtn.show=!1,w.clearActiveRule())},inputSave(){const B=S.inputForm.api.formData();Object.keys(B).forEach(G=>{$n(B[G])&&delete B[G]});const z=JSON.stringify(S.inputForm.data)!==JSON.stringify(B);S.inputForm.data=B,S.inputForm.state=!1,d.emit("inputData",B),z&&w.addOperationRecord()},inputClear(){w.inputReset({})},inputReset(B){S.inputForm.rule=He.parseJson(w.getJson()),S.inputForm.option.formData=B||Ct(S.inputForm.data),S.inputForm.key=ze()},setFormData(B){S.inputForm.data=B||{}},getFormData(){return S.inputForm.data},getParent(B){let z=B.__fc__.parent.rule;const G=z._menu;return G&&G.inside&&(B=z,z=z.__fc__.parent.rule),{root:z,parent:B}},copyName(){ei(S.activeRule.name)},updateName(){S.activeRule.name="ref_"+ze()},makeDrag(B,z,G,Y,Z){return{type:"DragBox",wrap:{show:!1},col:{show:!1},inject:!0,props:{rule:{props:{tag:"el-col",group:{name:B===!0?"default":B,put(...ae){return w.dragPut(...ae)}},swapThreshold:z==="draggable"?.25:.8,ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"auto",itemKey:"_fc_id"}},tag:z},children:G,slot:Z,on:Y}},clearDragRule(){w.setRule([]),w.addOperationRecord(),S.unloadStatus=!1,d.emit("clear")},makeDragRule(B){return w.makeChildren([w.makeDrag(!0,"draggable",B,{add:(z,G)=>w.dragAdd(B,G),end:(z,G)=>w.dragEnd(B,G),start:(z,G)=>w.dragStart(B,G),unchoose:(z,G)=>w.dragUnchoose(B,G)})])},handleSave(){d.emit("save",{rule:w.getJson(),options:w.getOptionsJson()})},previewSubmit(...B){d.emit("previewSubmit",...B)},previewReset(...B){d.emit("previewReset",...B)},openPreview(){S.preview.state=!0;const B=w.getJson(),z=w.getOptionsJson();S.preview.rule=He.parseJson(B),S.preview.option=He.parseJson(z);const G=w.getConfig("useTemplate",!1);S.preview.component=Pr.highlight(G?Rp(B,z):Op(B,z),{language:"xml"}).value,S.preview.html=Pr.highlight(uu(B,z),{language:"xml"}).value},copyCode(){ei(this.$refs.previewCode.innerText)},getHtml(){return uu(w.getJson(),w.getOptionsJson())},getRule(){return w.parseRule(Ct(S.dragForm.rule[0].children))},getJson(){return He.toJson(w.getRule())},getOption(){const B=Ct(S.formOptions);["onReset","onSubmit","beforeSubmit","onCreated","onMounted","onReload","onChange","beforeFetch"].forEach(G=>{delete B[G]}),Object.keys(B._event||{}).forEach(G=>{B._event[G]&&(B[G]=B._event[G])}),delete B._event,B.submitBtn=B._submitBtn,B.resetBtn=B._resetBtn,B.resetBtn.innerText=k("props.reset"),B.submitBtn.innerText=k("props.submit");const z=Ct(S.inputForm.data);return Object.keys(z).length>0&&(B.formData=z),B.language&&Object.keys(B.language).forEach(G=>{Object.keys(B.language[G]).forEach(Y=>{B.language[G][Y]||delete B.language[G][Y]}),Object.keys(B.language[G]).length||delete B.language[G]}),Object.keys(B).forEach(G=>{Xe.Object(B[G])&&!Object.keys(B[G]).length&&delete B[G]}),delete B._submitBtn,delete B._resetBtn,B},getOptions(){return w.getOption()},getOptionsJson(){return He.toJson([w.getOption()]).slice(1).slice(0,-1)},setRule(B){B||(B=[]),S.children=l.ref(w.loadRule(Xe.String(B)?He.parseJson(B):Ct(B))),w.clearActiveRule(),S.dragForm.rule=w.makeDragRule(w.makeChildren(S.children)),w.updateTree()},setBaseRuleConfig(B,z){m.value={rule:B,append:z},S.baseForm.rule=M(Cr,m.value,{t:k})},setComponentRuleConfig(B,z,G){v.value[B]={rule:z,append:G},S.cacheProps={};const Y=S.activeRule;if(Y){const Z=S.propsForm.api.formData&&S.propsForm.api.formData();S.propsForm.rule=S.cacheProps[Y._fc_id]=M(Y._menu.props,v.value&&v.value[Y._menu.name],Y,{t:k,api:S.dragForm.api}),l.nextTick(()=>{Z&&S.propsForm.api.setValue(Z)})}},setValidateRuleConfig(B,z){y.value={rule:B,append:z},S.validateForm.rule=M(Cr,y.value,{t:k})},setFormRuleConfig(B,z){E.value={rule:B,append:z},S.form.rule=M(Cr,E.value,{t:k})},clearActiveRule(){S.activeRule=null,S.activePermission={},S.customForm.config=null,S.activeTab="form",c.active=""},setOption(B){const z=Ct(w.getConfig("formOptions",{})),G=z.form||{};delete z.form;let Y={...z,...Xe.String(B)?JSON.parse(B):Ct(B||{})};Y.form={inline:!1,hideRequiredAsterisk:!1,labelPosition:"right",size:"default",labelWidth:"125px",...G,...Y.form||{}},Y._event={onReset:Y.onReset||"",onSubmit:Y.onSubmit||"",onCreated:Y.onCreated||"",onMounted:Y.onMounted||"",beforeSubmit:Y.beforeSubmit||"",onReload:Y.onReload||"",onChange:Y.onChange||"",beforeFetch:Y.beforeFetch||""},Li(Y,"language")||(Y.language={}),Y._resetBtn=typeof Y.resetBtn=="object"?Y.resetBtn:{show:Y.resetBtn===!0},Y._submitBtn=typeof Y.submitBtn=="object"?Y.submitBtn:{show:Y.submitBtn!==!1},Y.submitBtn=Y.resetBtn=!1,S.inputForm.data=Y.formData||{},S.oldOptionsKeys=Object.keys(S.form.value),delete Y.formData,S.formOptions=Y,w.updateOptionsValue()},setOptions(B){w.setOption(B)},mergeOptions(B){if(["form"].forEach(z=>{B[z]&&(S.formOptions[z]={...S.formOptions[z]||{},...B[z]})}),B.style&&(!S.formOptions.style||S.formOptions.style.indexOf(B.style)===-1)&&(S.formOptions.style=(S.formOptions.style||"")+`
`+B.style),S.formOptions.language||(S.formOptions.language={}),B.language&&Object.keys(B.language).forEach(z=>{S.formOptions.language[z]={...S.formOptions.language[z]||{},...B.language[z]}}),B.languageKey){const z=w.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]);B.languageKey.forEach(G=>{z.forEach(({value:Y})=>{S.formOptions.language[Y]||(S.formOptions.language[Y]={}),S.formOptions.language[Y][G]||(S.formOptions.language[Y][G]="")})})}},updateOptionsValue(){const B={};S.oldOptionsKeys.forEach(G=>{B[G]=void 0});const z={...B,...S.formOptions.form};Object.keys(S.formOptions).forEach(G=>{const Y=S.formOptions[G];z[">"+G]=Y,typeof Y=="object"&&Object.keys(Y).forEach(Z=>{z[G+">"+Z]=Y[Z]})}),S.form.value=z},loadRule(B,z,G){const Y=[];return B.forEach(Z=>{if(Xe.String(Z))return Y.push(Z);let ae=S.dragRuleList[Z._fc_drag_tag]||S.dragRuleList[Z.type];if(ae||(ae=pm(Z),Z._fc_drag_tag="_"),G&&(Z._fc_template=G),ae&&ae.loadRule&&ae.loadRule(Z),Z.children=w.loadRule(Z.children||[],ae,G),Z.control&&(Z._control=Z.control,delete Z.control),Z.computed&&(Z._computed=Z.computed,delete Z.computed),Z.on&&(Z._on=Z.on,delete Z.on),ae){const ue=Z.slot;let se;z&&z.slot&&ue&&ue!=="default"&&(se=w.getSlotConfig(z,ue,ae)),delete Z.slot,Z=w.makeRule(se||ae,Z),ue&&(Z.slot=ue)}Y.push(Z)}),Y},parseRule(B,z){return[...B].reduce((G,Y)=>{let Z=z;if(Xe.String(Y))return G.push(Y),G;if(Y.type==="DragBox")return G.push(...w.parseRule(Y.children,Z||Y.slot)),G;if(Y.type==="DragTool"){if(Z=Y.slot||z,Y=Y.children[0],Xe.String(Y))return G.push(Y),G;if(Y.type==="DragBox")return G.push(...w.parseRule(Y.children,Z||Y.slot)),G}return Y&&(Y={...Y},Z&&Z!=="default"&&(Y.slot=Z),Y.children&&Y.children.length&&(Y.children=w.parseRule(Y.children)),delete Y.key,delete Y.component,Y._menu&&(Y._menu.parseRule&&Y._menu.parseRule(Y),delete Y._menu),Y._fc_drag_tag==="_"&&delete Y._fc_drag_tag,Y._control&&(Y.control=Y._control,delete Y._control),Y._computed&&(Y.computed=Y._computed,delete Y._computed),Y.slot||delete Y.slot,Y._on&&(Y.on=Y._on,delete Y._on),Y.props&&Object.keys(Y.props).forEach(ae=>{const ue=Y.props[ae];$n(ue)&&delete Y.props[ae]}),Object.keys(Y).filter(ae=>ae.indexOf("__")===0||Array.isArray(Y[ae])&&Y[ae].length===0||Xe.Object(Y[ae])&&Object.keys(Y[ae]).length===0).forEach(ae=>{delete Y[ae]}),G.push(Y)),G},[])},fields(){return S.dragForm.api.all().map(B=>B.field).filter(B=>!!B)},baseChange(B,z,G,Y){w.handleChange("",B,z,G,Y)},formOptChange(B,z){S.form.value[B]=z,B.indexOf(">")===-1&&(B="form>"+B);let G=S.formOptions;const Y=B.split(">"),Z=Y.pop();Y.forEach(ae=>{ae&&(G[ae]||(G[ae]={}),G=G[ae])}),G[Z]=z},propRemoveField(B,z,G){var Y,Z,ae;if(S.activeRule&&G[S.activeRule._fc_id]===S.activeRule){w.unWatchActiveRule();const ue=B;S.dragForm.api.sync(S.activeRule),B.indexOf("__")!==0&&(B==="formCreateChild"?delete S.activeRule.children[0]:B.indexOf("formCreate")===0||B.indexOf(">")>0?(B.indexOf("formCreate")<0&&(B="props>"+B),R(B,({source:se,field:le})=>{delete se[le]})):delete S.activeRule.props[B]),w.watchActiveRule(),(ae=(Z=(Y=S.activeRule._menu)==null?void 0:Y.watch)==null?void 0:Z[ue])==null||ae.call(Z,{field:ue,value:void 0,api:G,rule:S.activeRule,ctx:d})}},propChange(B,z,G,Y){w.handleChange("props",B,z,G,Y)},styleChange(B,z,G,Y){if(S.customForm.config)return S.customForm.config.style.change(B,z);w.handleChange("",B,z,G,Y)},handleChange(B,z,G,Y,Z){var ae,ue,se;if(S.activeRule&&Z[S.activeRule._fc_id]===S.activeRule){w.unWatchActiveRule();const le=z;z.indexOf("__")!==0&&(z==="formCreateChild"?S.activeRule.children[0]=G:z.indexOf("formCreate")===0||z.indexOf(">")>0?(z.indexOf("formCreate")<0&&(z=(B?B+">":"")+z),R(z,({source:te,field:pe})=>{$n(G)?delete te[pe]:te[pe]=G})):B&&$n(G)?delete S.activeRule[B][z]:(B?S.activeRule[B]:S.activeRule)[z]=G),w.watchActiveRule(),(se=(ue=(ae=S.activeRule._menu)==null?void 0:ae.watch)==null?void 0:ue[le])==null||se.call(ue,{field:le,value:G,api:Z,rule:S.activeRule,ctx:d})}},validateChange(B,z,G,Y){!S.activeRule||S.validateForm.api[S.activeRule._fc_id]!==S.activeRule||(w.handleChange("",B,z,G,Y),S.dragForm.api.refreshValidate(),S.dragForm.api.nextTick(()=>{S.dragForm.api.clearValidateState(S.activeRule.__fc__.id)}))},triggerActive(B){let z;if(Xe.String(B)&&(B=w.findRule(B)),!!B&&(B._menu.inside?z=B.children[0]:z=B.__fc__.parent.rule,z&&z.type==="DragTool")){const G=S.dragForm.api.el(z.__fc__.id);G&&(c.active=G.id,d.emit("active",B),w.toolActive(B))}},customFormChange(B,z){S.customForm.config&&S.customForm.config.change(B,z)},customActive(B){S.baseForm.isShow=!1,S.propsForm.isShow=!1,S.eventShow=!1,S.validateForm.isShow=!1,S.styleForm.isShow=!!B.style&&w.getConfig("showStyleForm")!==!1,S.activeRule=null,S.activePermission={},c.active="",S.customForm.config=B,S.customForm.isShow=!0,S.customForm.propsShow=B.props&&w.getConfig("showPropsForm")!==!1,S.customForm.key=ze(),S.customForm.rule=S.customForm.propsShow?B.props({t:k}):[],S.customForm.options.formData=B.formData,B.style&&(S.styleForm.value=B.style.formData||{}),l.nextTick(()=>{S.activeTab="props"})},getPropsRule(B){let z=M(B._menu.props,v.value&&v.value[B._menu.name],B,{t:k,api:S.dragForm.api});if(v.value&&v.value.default){const G=v.value.default;z=M(()=>z,Xe.Function(G)?{rule:G,append:!0}:G,B,{t:k,api:S.dragForm.api})}return z},findRule(B){let z;const G=Y=>{Y.forEach(Z=>{[Z.rule.field,Z.rule.name,Z.rule._fc_id].indexOf(B)>-1?z=Z.rule:Z.children&&G(Z.children)})};return G(S.treeInfo),z},toolActive(B){if(p.value.beforeActiveRule&&p.value.beforeActiveRule({rule:B})===!1)return;w.unWatchActiveRule(),S.customForm.isShow=!1,S.customForm.config=null,S.activeRule&&(delete S.propsForm.api[S.activeRule._fc_id],delete S.baseForm.api[S.activeRule._fc_id],delete S.validateForm.api[S.activeRule._fc_id],delete S.styleForm.api[S.activeRule._fc_id],delete S.dragForm.api.activeRule);const z=w.getPermission(B);S.activeRule=B,S.activePermission=z,S.dragForm.api.activeRule=B,l.nextTick(()=>{S.activeTab="props",l.nextTick(()=>{S.propsForm.api[S.activeRule._fc_id]=S.activeRule,S.baseForm.api[S.activeRule._fc_id]=S.activeRule,S.validateForm.api[S.activeRule._fc_id]=S.activeRule,S.styleForm.api[S.activeRule._fc_id]=S.activeRule})}),S.cacheProps[B._fc_id]||(S.cacheProps[B._fc_id]=w.getPropsRule(B));const G=w.getConfig("hiddenItemConfig",{}),Y=w.getConfig("disabledItemConfig",{}),Z=hu([...z.hiddenConfig||[],...(G==null?void 0:G.default)||[],...(G==null?void 0:G[B._menu.name])||[]]),ae=[...Z,...B._menu.hiddenBaseField||[]],ue=hu([...z.disabledConfig||[],...(Y==null?void 0:Y.default)||[],...(Y==null?void 0:Y[B._menu.name])||[]]);S.baseForm.api.disabled(!1),S.baseForm.api.hidden(!1),l.nextTick(()=>{S.baseForm.api.all().forEach(te=>{(te.name||te.field)&&(te.hidden=ae.indexOf(te.name)!==-1||ae.indexOf(te.field)!==-1)}),S.propsForm.api.hidden(!0,Z)}),ue.length&&(S.baseForm.api.disabled(!0,ue),l.nextTick(()=>{S.propsForm.api.disabled(!0,ue)})),w.getConfig("showControl",!0)||S.baseForm.api.hidden(!0,"_control");const se=Li(B,"field");S.baseForm.isShow=z.base!==!1&&se&&B.input!==!1&&w.getConfig("showBaseForm")!==!1,S.propsForm.isShow=z.props!==!1&&S.cacheProps[B._fc_id].length>0&&w.getConfig("showPropsForm")!==!1,S.styleForm.isShow=z.style!==!1&&B._menu.style!==!1&&w.getConfig("showStyleForm")!==!1,S.eventShow=z.event!==!1&&B._menu.event!==!1&&w.getConfig("showEventForm")!==!1;const le=w.getConfig("showValidateForm");S.validateForm.isShow=z.validate!==!1&&(S.baseForm.isShow&&le!==!1||le===!0)&&B._menu.validate!==!1,S.propsForm.rule=S.cacheProps[B._fc_id],w.updateRuleFormData(),w.watchActiveRule()},getConfig(B,z){return p.value&&Li(p.value,B)?p.value[B]:z},getPermission(B){var G;let z={};return(((G=p.value)==null?void 0:G.componentPermission)||[]).forEach(Y=>{let Z=!1;(Y.field&&(Array.isArray(Y.field)?Y.field.indexOf(B.field)>-1:Y.field===B.field)||Y.name&&(Array.isArray(Y.name)?Y.name.indexOf(B.name)>-1:Y.name===B.name)||Y.id&&(Array.isArray(Y.id)?Y.id.indexOf(B._fc_id)>-1:Y.id===B._fc_id)||Y.tag&&(Array.isArray(Y.tag)?Y.tag.indexOf(B._fc_drag_tag)>-1:Y.tag===B._fc_drag_tag))&&(Z=!0),Z&&(z=Y.permission||{})}),z},updateRuleFormData(){const B=S.activeRule;let z={formCreateChild:""+B.children[0],"formCreateWrap>labelWidth":""};const G=p.value.appendConfigData;Xe.Function(G)?z={...z,...G(B)}:Array.isArray(G)&&G.forEach(Z=>{z[Z]=void 0}),Object.keys(B).forEach(Z=>{["effect","config","payload","id","type","_menu"].indexOf(Z)<0&&(z["formCreate"+Ar(Z)]=Ct(B[Z]))}),Object.keys(B.props).forEach(Z=>{const ae=B.props[Z];z[Z]=Ct(ae),Xe.Object(ae)&&Object.keys(ae).forEach(ue=>{z[Z+">"+ue]=Ct(ae[ue])})}),["props","effect","attrs","style","wrap"].forEach(Z=>{B[Z]&&typeof B[Z]=="object"&&Object.keys(B[Z]).forEach(ae=>{z["formCreate"+Ar(Z)+">"+ae]=Ct(B[Z][ae])})});const Y=B._menu.attrs||{};Object.keys(Y).forEach(Z=>{z["__"+Z]=Y[Z]({rule:B})}),S.propsForm.value=z,S.styleForm.value={style:B.style,class:B.class,id:B.id},S.baseForm.isShow&&(S.baseForm.value={field:B.field,title:B.title||"",info:B.info,_control:B._control,...z},S.validateForm.value={validate:B.validate?[...B.validate]:[],$required:z.formCreate$required},S.dragForm.api.refreshValidate(),S.dragForm.api.nextTick(()=>{S.dragForm.api.clearValidateState(B.__fc__.id)}))},dragStart(B){S.moveRule=B,S.added=!1},dragUnchoose(B,z){S.addRule={children:B,oldIndex:z.oldIndex}},clickMenu(B){this.checkDragToContainer(B)&&w.dragMenu({menu:B,children:S.children,index:S.children.length})},checkOnly(B){let z=!1;return S.dragForm.api.all().forEach(G=>{z=z||G._fc_template===B.name||G._menu&&G._menu.name===B.name}),z&&yn(S.t("struct.only",{label:k("com."+B.name+".name")||B.label})),z},dragMenu({menu:B,children:z,index:G,slot:Y}){if(S.inputForm.state||B.only&&w.checkOnly(B))return;w.handleAddBefore();const Z=S.dragRuleList[B.name];d.emit("drag",{item:B,dragRule:Z});const ae=w.makeRule(S.dragRuleList[Z.name]);Y&&(ae.slot=Y),z.splice(G,0,ae);const ue=ae.type==="DragTool"?ae.children[0]:ae;w.handleAddAfter({rule:ae}),ue&&w.getConfig("autoActive",!0)&&l.nextTick(()=>{w.triggerActive(ue)})},replaceField(B){const z=["array","object"].indexOf(B._menu.subForm)>-1;let G=w.parseRule(Ct([B]))[0];const Y=w.getConfig("autoResetName")!==!1;return z&&(G.field=ze(),Y&&(G.name="ref_"+ze())),G=He.toJson(G),z?G=w.batchReplaceUni(G):(G=w.batchReplaceField(G),Y&&(G=w.batchReplaceName(G))),w.loadRule([He.parseJson(G)])[0]},batchReplaceField(B){const z=/"field"\s*:\s*"(\w[\w\d]+)"/g;return B=B.replace(z,(G,Y)=>`"field":"${ze()}"`),w.batchReplaceUni(B)},batchReplaceUni(B){const z=/"_fc_id"\s*:\s*"(\w[\w\d]+)"/g;return B=B.replace(z,()=>`"_fc_id":"id_${ze()}"`),B},batchReplaceName(B){const z=/"name"\s*:\s*"ref_(\w[\w\d]+)"/g;return B=B.replace(z,()=>`"name":"ref_${ze()}"`),B},getTrueRule(B){if(!!B){if(B._menu)return B._menu._get();if(B._config)return B._config._get()}},checkDragToContainer(B){return!B.allowDragTo||(Array.isArray(B.allowDragTo)?B.allowDragTo.indexOf("draggable")>-1:B.allowDragTo==="draggable")},dragPut(B,z,G){const Y=w.getTrueRule(B.el.__rule__),Z=G._underlying_vm_.__fc__?G._underlying_vm_._config||G._underlying_vm_._menu:G._underlying_vm_;if(!Y)return!Z||this.checkDragToContainer(Z);const ae=Y._menu,ue=G._fc_allow_drag||{};if(ue[Y._fc_id]===void 0){const se=w.getTrueRule(G._underlying_vm_);ue[Y._fc_id]=!(Z&&ae&&!w.checkDrag({menu:Z,toMenu:ae,rule:se,toRule:Y})),G._fc_allow_drag=ue}return G._fc_allow_drag[Y._fc_id]},checkDrag({menu:B,toMenu:z,rule:G,toRule:Y}){var Z,ae;return!(!w.checkAllowDrag(B,z)||Y.children&&z.maxChildren&&z.maxChildren<=((ae=(Z=Y.children[0])==null?void 0:Z.children)==null?void 0:ae.length)||B.checkDrag&&B.checkDrag({menu:B,toMenu:z,rule:G,toRule:Y,designer:d})===!1||z.checkDrag&&z.checkDrag({menu:B,toMenu:z,rule:G,toRule:Y,designer:d})===!1||p.value.checkDrag&&p.value.checkDrag({menu:B,toMenu:z,rule:G,toRule:Y})===!1)},checkAllowDrag(B,z){function G(ae){return Array.isArray(ae)&&(ae={item:ae}),vu(ae.item).indexOf(B.name)>-1?!0:vu(ae.menu).indexOf(B.menu)>-1}const Y=w.getConfig("allowDrag",{})[z.name],Z=w.getConfig("denyDrag",{})[z.name];return B.allowDragTo&&(Array.isArray(B.allowDragTo)?B.allowDragTo.indexOf(z.name)===-1:B.allowDragTo!==z.name)?!1:z.allowDrag&&G(z.allowDrag)||Y&&G(Y)?!0:z.allowDrag||Y||z.denyDrag&&G(z.denyDrag)?!1:!(Z&&G(Z))},dragAdd(B,z,G){delete z.item._fc_allow_drag;const Y=z.newIndex,Z=z.item._underlying_vm_||z.item.__rule__;if(S.added=!0,Z&&Z.__fc__){if(S.addRule){w.handleSortBefore();const ae=S.addRule.children.splice(S.addRule.children.indexOf(Z),1)[0];G?ae.slot=G:delete ae.slot,B.splice(Y,0,ae),w.handleSortAfter({rule:ae})}}else w.dragMenu({menu:Z,children:B,index:Y,slot:G})},dragEnd(B,{item:z,newIndex:G,oldIndex:Y},Z){if(delete z._fc_allow_drag,!S.added&&!(S.moveRule===B&&G===Y)){w.handleSortBefore();const ae=S.moveRule.splice(Y,1);Z&&(ae.slot=Z),B.splice(G,0,ae[0]),w.handleSortAfter({rule:ae[0]})}S.moveRule=null,S.addRule=null,S.added=!1},getSlotConfig(B,z,G){let Y={};return(B.slot||[]).forEach(Z=>{Z.name===z&&(Y=Z.config||{})}),{...G,dragBtn:!1,handleBtn:G.children?["addChild"]:!1,...Y}},makeRule(B,z){let G=z||B.rule({t:k});const Y=D.value&&D.value[B.name];if(!z&&Y)if(typeof Y=="function")try{Y(G)}catch(le){console.error(le)}else{let le=Ct(Y);delete le.children,delete le.component,G=fd([G,le])}G._menu=l.markRaw({...B}),G._menu._get=()=>G,G._fc_id||(G._fc_id="id_"+ze()),G.name||(G.name="ref_"+ze()),B.component&&(G.component=l.markRaw(B.component)),G._computed||(G._computed={}),G.effect||(G.effect={}),B.input&&!G.field&&(G.field=ze()),B.languageKey&&w.mergeOptions({languageKey:B.languageKey}),Li(G,"display")||(G.display=!0),Li(G,"hidden")||(G.hidden=!1),G.children||(G.children=[]),G._fc_drag_tag=B.name;let Z=B.only===!0,ae;const ue=G.children||[];if(B.drag&&(G.children=[ae=w.makeDrag(B.drag,G._menu?G._menu.name:G.type,ue,{end:(le,te)=>w.dragEnd(le.self.children,te),add:(le,te)=>w.dragAdd(le.self.children,te),start:(le,te)=>w.dragStart(le.self.children,te),unchoose:(le,te)=>w.dragUnchoose(le.self.children,te)})],ae._config=G._menu),B.children&&!z&&!ue.length)for(let le=0;le<(B.childrenLen||1);le++){const te=w.makeRule(S.dragRuleList[B.children]);(ae||G).children.push(te)}const se=o.value!==void 0?o.value!==!1:B.mask!==!1;return B.tool===!1?G:B.inside?(G.children=w.makeChildren([{type:"DragTool",props:{dragBtn:B.dragBtn!==!1,children:B.children,mask:se,handleBtn:B.handleBtn,only:Z},inject:!0,on:{delete:({self:le})=>{const te=w.getParent(le).parent;w.handleRemoveBefore({parent:te,rule:te})!==!1&&(te.__fc__.rm(),d.emit("delete",te),S.activeRule===te&&w.clearActiveRule(),w.handleRemoveAfter({rule:te}))},create:({self:le})=>{w.handleAddBefore();const te=w.getParent(le);d.emit("create",te.parent);const pe=w.makeRule(te.parent._menu);te.parent.slot&&(pe.slot=te.parent.slot),te.root.children.splice(te.root.children.indexOf(te.parent)+1,0,pe),w.handleAddAfter({rule:te.parent})},addChild:({self:le})=>{w.handleAddBefore();const te=w.getParent(le),pe=te.parent._menu,me=S.dragRuleList[pe.children];if(!me)return;const Ae=w.makeRule(me);(pe.drag?te.parent.children[0]:te.parent).children[0].children.push(Ae),w.handleAddAfter({rule:Ae})},copy:({self:le})=>{w.handleCopyBefore();const te=w.getParent(le);d.emit("copy",te.parent);const pe=w.replaceField(te.parent);te.root.children.splice(te.root.children.indexOf(te.parent)+1,0,pe),w.handleCopyAfter({rule:te.parent})},active:({self:le})=>{const te=w.getParent(le);d.emit("active",te.parent),setTimeout(()=>{w.toolActive(te.parent)},10)}},_config:G._menu,children:G.children}]),G):{type:"DragTool",props:{dragBtn:B.dragBtn!==!1,children:B.children,mask:se,handleBtn:B.handleBtn,only:Z},inject:!0,display:!!G.display,on:{delete:({self:le})=>{w.handleRemoveBefore({parent:le,rule:le.children[0]})!==!1&&(d.emit("delete",le.children[0]),le.__fc__.rm(),S.activeRule===le.children[0]&&w.clearActiveRule(),w.handleRemoveAfter({rule:le.children[0]}))},create:({self:le})=>{w.handleAddBefore(),d.emit("create",le.children[0]);const te=w.getParent(le),pe=w.makeRule(le.children[0]._menu);te.parent.slot&&(pe.slot=te.parent.slot),te.root.children.splice(te.root.children.indexOf(te.parent)+1,0,pe),w.handleAddAfter({rule:pe})},addChild:({self:le})=>{w.handleAddBefore();const te=le.children[0]._menu,pe=S.dragRuleList[te.children];if(!pe)return;const me=w.makeRule(pe);(te.drag?le.children[0]:le).children[0].children.push(me),w.handleAddAfter({rule:me})},copy:({self:le})=>{w.handleCopyBefore(),d.emit("copy",le.children[0]);const te=w.getParent(le),pe=w.replaceField(le.children[0]);le.slot&&(pe.slot=le.slot),te.root.children.splice(te.root.children.indexOf(te.parent)+1,0,pe),w.handleCopyAfter({rule:le.children[0]})},active:({self:le})=>{d.emit("active",le.children[0]),setTimeout(()=>{w.toolActive(le.children[0])},10)}},_config:G._menu,children:w.makeChildren([G])}},toolHandle(B,z){if(!B._fc_drag_tag||B._menu.tool===!1){B.__fc__.rm();return}let G;B._menu.inside?G=B.children[0].__fc__.exportEl:G=B.__fc__.parent.exportEl,G.$emit(z)},handleAddBefore(){},handleRemoveBefore({rule:B}){if(p.value.beforeRemoveRule&&p.value.beforeRemoveRule({rule:B})===!1)return!1},handleCopyBefore(){},handleSortBefore(){},addOperationRecord(){const B=w.getJson(),z=Ct(S.inputForm.data),G=S.operation.list.slice(0,S.operation.idx+1);G.push({rule:B,formData:z}),S.operation.list=G,S.operation.idx=G.length-1,S.unloadStatus=G.length!==1},prevOperationRecord(){if(!S.operation.list[S.operation.idx-1])return;const B=S.operation.list[--S.operation.idx];w.useOperationRecord(B),w.clearActiveRule()},nextOperationRecord(){if(!S.operation.list[S.operation.idx+1])return;const B=S.operation.list[++S.operation.idx];w.useOperationRecord(B),w.clearActiveRule()},useOperationRecord(B){S.inputForm.data=B.formData,w.setRule(B.rule)},handleAddAfter(){w.addOperationRecord(),w.updateTree()},handleRemoveAfter(){w.addOperationRecord(),w.updateTree()},handleCopyAfter(){w.addOperationRecord(),w.updateTree()},handleSortAfter(){w.addOperationRecord(),w.updateTree()},treeChange(B){w.triggerActive(B.rule)},getFormDescription(){return cu(w.getDescription())},getDescription(){return pu(S.dragForm.rule[0].children)},getSubFormDescription(B){let z=B.__fc__&&B.__fc__.parent;for(;z;){if(z.rule._menu&&["array","object"].indexOf(z.rule._menu.subForm)>-1)return cu(pu(z.rule.children));z=z.parent}return null},getSubFormChildren(B){let z=B.__fc__&&B.__fc__.parent;for(;z;){if(z.rule._menu&&["array","object"].indexOf(z.rule._menu.subForm)>-1)return z.rule.children||[];z=z.parent}return null},updateTree:Lg(function(){l.nextTick(()=>{S.treeInfo=Ba(S.dragForm.rule[0].children)})},300),findTree(B){let z;const G=Y=>{Y.forEach(Z=>{Z.rule.field===B?z=Z.children:Z.children&&G(Z.children)})};return G(S.treeInfo),z||[]},handleDragenter(B){S.bus.$emit("dragenter",B)},handleDragleave(B){S.bus.$emit("dragleave",B)},handleDrop(B){S.bus.$emit("drop",B)},changeEvent(B){S.activeRule._on=B},triggerHandle(B){B.handle()},bindHotkey(B){const z=B.ctrlKey||B.metaKey;if(!getSelection().toString()&&z&&B.target.tagName==="BODY"&&["ArrowUp","ArrowDown","Backspace","c","x","z","p","1","2","3","4"].indexOf(B.key)>-1){if(B.preventDefault(),S.inputForm.state)return;L[B.key]?L[B.key](B):"1234".indexOf(B.key)>-1&&L.num(B)}},bindPaste(B){if(S.inputForm.state)return;let z=B.clipboardData.getData("text/plain");if(z&&z.indexOf("FormCreate:")===0){let G=S.children;z=z.slice(11,z.length);const Y=w.loadRule([He.parseJson(z)])[0];let Z=!0;if(S.activeRule&&S.activeRule._menu.drag){const ae=w.getTrueRule(Y);if(ae&&!w.checkDrag({rule:ae,menu:ae._menu,toRule:S.activeRule,toMenu:S.activeRule._menu}))return;S.activeRule._menu.inside?G=S.activeRule.children[0].children[0].children:G=S.activeRule.children[0].children}else S.customForm.config&&S.customForm.config.onPaste&&(S.customForm.config.onPaste(Y),Z=!1);Z&&G.push(Y),w.updateTree(),w.addOperationRecord(),d.emit("pasteRule",{event:B,copyRule:Y})}}},L={z(B){B.shiftKey?w.nextOperationRecord():w.prevOperationRecord()},Backspace(){!S.activeRule||w.toolHandle(S.activeRule,"delete")},c(B){const z=S.activeRule;!z||(ei("FormCreate:"+He.toJson(w.parseRule([z])[0])),d.emit("copyRule",{event:B,rule:z}))},x(B){!S.activeRule||(L.c(B),w.toolHandle(S.activeRule,"delete"))},p(){w.openPreview()},num(B){B.key,B.key==="1"?(S.activeModule="base",S.activeMenuTab="menu"):B.key==="2"?(S.activeModule="base",S.activeMenuTab="tree"):B.key==="3"?S.activeModule="json":B.key==="4"&&(S.activeModule="language")},ArrowUp(B){let z=S.activeRule;if(!z)return;z._menu.inside||(z=z.__fc__.parent.rule);const G=z.__fc__.parent.rule,Y=G.children.indexOf(z);if(G.children.length>1&&Y>=0){const Z=B.key==="ArrowUp"?-1:B.key==="ArrowDown"?1:0;Z&&Y+Z>=0&&Y+Z<G.children.length&&(G.children.splice(Y,1),G.children.splice(Y+Z,0,z),w.updateTree(),w.addOperationRecord(),d.emit("sort"+(B.key==="ArrowUp"?"Up":"Down"),{event:B,rule:z}))}},ArrowDown(B){L.ArrowUp(B)}};S.dragForm.rule=w.makeDragRule(w.makeChildren(S.children)),w.setOption({}),r.value?Tu.forEach(B=>{S.dragRuleList[B.name]=B}):w.addComponent(Tu);const $=l.computed(()=>Object.keys(S.inputForm.data).length>0);return{...l.toRefs(S),...w,dragHeight:C,t:k,handle:s,inputCheckStatus:$,fieldReadonly:x,hiddenMenu:A,hiddenItem:g,hiddenDragMenu:b,hiddenDragBtn:N,configFormOrderStyle:T}},created(){document.body.ondrop=t=>{t.preventDefault(),t.stopPropagation()},window.onbeforeunload=t=>{var r;this.unloadStatus&&((r=this.config)==null?void 0:r.exitConfirm)!==!1&&(t.returnValue=this.t("designer.unload"))}},mounted(){var t;((t=this.config)==null?void 0:t.hotKey)!==!1&&(document.addEventListener("keydown",this.bindHotkey),document.addEventListener("paste",this.bindPaste))},unmounted(){document.removeEventListener("keydown",this.bindHotkey),document.removeEventListener("paste",this.bindPaste)}}),oy=["onClick"],ay=["onClick"],ly={class:"_fc-l-icon"},sy={class:"_fc-l-name"},uy={class:"_fc-tree-label"},fy={class:"_fc-m-tools-l"},dy={class:"devices"},cy={class:"_fc-m-tools-r"},py={class:"_fd-input-btn"},hy={key:0,class:"_fc-m-input"},my={key:0,class:"_fc-m-input-handle"},gy={class:"_fc-r-title"},vy={class:"_fc-r-title"},yy={style:{"grid-area":"base"}},by={style:{"grid-area":"props"}},Ay={style:{"grid-area":"style"}},Cy={style:{"grid-area":"event"}},wy={key:0,style:{"grid-area":"validate"}},Ey={key:2,class:"_fd-preview-code",ref:"previewCode"},Sy=["innerHTML"],xy={key:3,class:"_fd-preview-code",ref:"previewCode"},Ty=["innerHTML"];function Ny(t,r,a,o,n,s){const d=l.resolveComponent("el-tooltip"),c=l.resolveComponent("el-aside"),p=l.resolveComponent("LanguageConfig"),m=l.resolveComponent("JsonPreview"),v=l.resolveComponent("el-header"),y=l.resolveComponent("fcDraggable"),E=l.resolveComponent("el-main"),D=l.resolveComponent("el-dropdown-item"),C=l.resolveComponent("el-dropdown-menu"),x=l.resolveComponent("el-dropdown"),A=l.resolveComponent("el-tree"),g=l.resolveComponent("el-container"),b=l.resolveComponent("el-button"),N=l.resolveComponent("el-popconfirm"),T=l.resolveComponent("el-switch"),O=l.resolveComponent("ViewForm"),k=l.resolveComponent("DragForm"),M=l.resolveComponent("Warning"),S=l.resolveComponent("TypeSelect"),F=l.resolveComponent("el-input"),R=l.resolveComponent("el-divider"),w=l.resolveComponent("PropsInput"),L=l.resolveComponent("EventConfig"),$=l.resolveComponent("el-tab-pane"),W=l.resolveComponent("el-tabs"),P=l.resolveComponent("el-dialog");return l.openBlock(),l.createBlock(g,{class:"_fc-designer",style:l.normalizeStyle(t.height?`height:${t.dragHeight};flex:0;`:""),onDragenter:t.handleDragenter,onDragleave:t.handleDragleave,onDrop:t.handleDrop},{default:l.withCtx(()=>[l.createVNode(E,null,{default:l.withCtx(()=>[(l.openBlock(),l.createBlock(g,{style:{height:"100%"},key:t.locale&&t.locale.name},{default:l.withCtx(()=>[t.getConfig("showMenuBar")!==!1?l.withDirectives((l.openBlock(),l.createBlock(c,{key:0,class:"_fc-l-menu",width:"40px"},{default:l.withCtx(()=>[l.createVNode(d,{effect:"dark",content:t.t("designer.comList"),placement:"right","hide-after":0},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["_fc-l-menu-item",{active:t.activeModule==="base"}]),onClick:r[0]||(r[0]=U=>t.activeModule="base")},r[35]||(r[35]=[l.createElementVNode("i",{class:"fc-icon icon-menu"},null,-1)]),2)]),_:1},8,["content"]),t.getConfig("showLanguage",!0)?(l.openBlock(),l.createBlock(d,{key:0,effect:"dark",content:t.t("language.name"),placement:"right","hide-after":0},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["_fc-l-menu-item",{active:t.activeModule==="language"}]),onClick:r[1]||(r[1]=U=>t.activeModule="language")},r[36]||(r[36]=[l.createElementVNode("i",{class:"fc-icon icon-language"},null,-1)]),2)]),_:1},8,["content"])):l.createCommentVNode("",!0),t.getConfig("showJsonPreview",!0)?(l.openBlock(),l.createBlock(d,{key:1,effect:"dark",content:"JSON",placement:"right","hide-after":0},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["_fc-l-menu-item",{active:t.activeModule==="json"}]),onClick:r[2]||(r[2]=U=>t.activeModule="json")},r[37]||(r[37]=[l.createElementVNode("i",{class:"fc-icon icon-script"},null,-1)]),2)]),_:1})):l.createCommentVNode("",!0)]),_:1},512)),[[l.vShow,!t.hiddenLeft]]):l.createCommentVNode("",!0),t.hiddenLeft?l.createCommentVNode("",!0):(l.openBlock(),l.createBlock(c,{key:1,class:"_fc-l",width:t.activeModule==="language"?"450px":"266px"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"_fc-l-close",onClick:r[3]||(r[3]=U=>t.hiddenLeft=!0)},r[38]||(r[38]=[l.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)])),t.activeModule==="language"?(l.openBlock(),l.createBlock(p,{key:0})):l.createCommentVNode("",!0),t.activeModule==="json"?(l.openBlock(),l.createBlock(m,{key:1})):l.createCommentVNode("",!0),t.activeModule==="base"?(l.openBlock(),l.createBlock(g,{key:2,style:{height:"100%"}},{default:l.withCtx(()=>[l.createVNode(v,{height:"40px",class:"_fc-l-tabs"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["_fc-l-tab",{active:t.activeMenuTab==="menu"}]),onClick:r[4]||(r[4]=U=>t.activeMenuTab="menu")},l.toDisplayString(t.t("menu.component")),3),l.createElementVNode("div",{class:l.normalizeClass(["_fc-l-tab",{active:t.activeMenuTab==="tree"}]),onClick:r[5]||(r[5]=U=>t.activeMenuTab="tree")},l.toDisplayString(t.t("menu.tree")),3)]),_:1}),l.withDirectives(l.createVNode(E,null,{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.menuList,(U,Q)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[t.hiddenMenu.indexOf(U.name)===-1?(l.openBlock(),l.createElementBlock("div",{class:"_fc-l-group",key:Q},[l.createElementVNode("h4",{class:"_fc-l-title",onClick:J=>U.hidden=!U.hidden},[l.createTextVNode(l.toDisplayString(t.t("menu."+U.name)||U.title)+" ",1),l.createElementVNode("i",{class:l.normalizeClass(["fc-icon icon-arrow",{down:!U.hidden}])},null,2)],8,oy),l.withDirectives(l.createVNode(y,{group:{name:"default",pull:"clone",put:!1},sort:!1,itemKey:"name",class:"_fc-l-list",list:U.list},{item:l.withCtx(({element:J})=>[t.hiddenItem.indexOf(J.name)===-1?(l.openBlock(),l.createElementBlock("div",{key:0,class:"_fc-l-item",onClick:ie=>t.clickMenu(J)},[l.createElementVNode("div",ly,[l.createElementVNode("i",{class:l.normalizeClass(["fc-icon",J.icon||"icon-input"])},null,2)]),l.createElementVNode("span",sy,l.toDisplayString(t.t("com."+J.name+".name")||J.label),1)],8,ay)):l.createCommentVNode("",!0)]),_:2},1032,["list"]),[[l.vShow,!U.hidden]])])):l.createCommentVNode("",!0)],64))),256))]),_:1},512),[[l.vShow,t.activeMenuTab==="menu"]]),t.activeMenuTab==="tree"?(l.openBlock(),l.createBlock(E,{key:0},{default:l.withCtx(()=>[l.createVNode(A,{ref:"treeRef",data:t.treeInfo,"default-expand-all":"","expand-on-click-node":!1,onCurrentChange:t.treeChange},{default:l.withCtx(({node:U,data:Q})=>{var J,ie,B,z;return[l.createElementVNode("div",{class:l.normalizeClass(["_fc-tree-node",{active:t.activeRule===Q.rule}])},[l.createElementVNode("div",uy,[l.createElementVNode("i",{class:l.normalizeClass(["fc-icon",Q.rule._menu&&Q.rule._menu.icon||"icon-cell"])},null,2),l.createElementVNode("span",null,l.toDisplayString((((z=(B=(ie=(J=Q.rule)==null?void 0:J.__fc__)==null?void 0:ie.refRule)==null?void 0:B.__$title)==null?void 0:z.value)||Q.rule.title||"").trim()||Q.rule.props&&Q.rule.props.label||t.t("com."+(Q.rule._menu&&Q.rule._menu.name)+".name")||Q.rule._menu&&Q.rule._menu.label||Q.rule.type),1)]),Q.slot?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("div",{key:0,class:"_fc-tree-more",onClick:r[6]||(r[6]=l.withModifiers(()=>{},["stop"]))},[l.createVNode(x,{trigger:"click",size:"default"},{dropdown:l.withCtx(()=>[l.createVNode(C,null,{default:l.withCtx(()=>[Q.rule._fc_drag_tag!=="_"?(l.openBlock(),l.createBlock(D,{key:"1",onClick:G=>t.toolHandle(Q.rule,"copy")},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.copy")),1)]),_:2},1032,["onClick"])):l.createCommentVNode("",!0),Q.rule._menu&&Q.rule._menu.children&&Q.rule._fc_drag_tag!=="_"?(l.openBlock(),l.createBlock(D,{key:"2",onClick:G=>t.toolHandle(Q.rule,"addChild")},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("form.appendChild")),1)]),_:2},1032,["onClick"])):l.createCommentVNode("",!0),l.createVNode(D,{key:"3",onClick:G=>t.toolHandle(Q.rule,"delete")},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.delete")),1)]),_:2},1032,["onClick"])]),_:2},1024)]),default:l.withCtx(()=>[r[39]||(r[39]=l.createElementVNode("i",{class:"fc-icon icon-more"},null,-1))]),_:2,__:[39]},1024)]))],2)]}),_:1},8,["data","onCurrentChange"])]),_:1})):l.createCommentVNode("",!0)]),_:1})):l.createCommentVNode("",!0)]),_:1},8,["width"])),l.createVNode(g,{class:"_fc-m"},{default:l.withCtx(()=>[l.createVNode(v,{class:"_fc-m-tools",height:"45"},{default:l.withCtx(()=>[l.createElementVNode("div",fy,[t.inputForm.state?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[t.getConfig("showDevice")!==!1?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("div",dy,[l.createElementVNode("i",{class:l.normalizeClass(["fc-icon icon-pc",{active:t.device==="pc"}]),onClick:r[7]||(r[7]=U=>t.setDevice("pc"))},null,2),l.createElementVNode("i",{class:l.normalizeClass(["fc-icon icon-pad",{active:t.device==="pad"}]),onClick:r[8]||(r[8]=U=>t.setDevice("pad"))},null,2),l.createElementVNode("i",{class:l.normalizeClass(["fc-icon icon-mobile",{active:t.device==="mobile"}]),onClick:r[9]||(r[9]=U=>t.setDevice("mobile"))},null,2)]),r[40]||(r[40]=l.createElementVNode("div",{class:"line"},null,-1))],64)):l.createCommentVNode("",!0),l.createElementVNode("div",null,[l.createElementVNode("i",{class:l.normalizeClass(["fc-icon icon-pre-step",{disabled:!t.operation.list[t.operation.idx-1]}]),onClick:r[10]||(r[10]=(...U)=>t.prevOperationRecord&&t.prevOperationRecord(...U))},null,2),l.createElementVNode("i",{class:l.normalizeClass(["fc-icon icon-next-step",{disabled:!t.operation.list[t.operation.idx+1]}]),onClick:r[11]||(r[11]=(...U)=>t.nextOperationRecord&&t.nextOperationRecord(...U))},null,2)])],64))]),l.createElementVNode("div",cy,[t.inputForm.state?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.renderSlot(t.$slots,"handle"),t.getConfig("showSaveBtn",!1)?(l.openBlock(),l.createBlock(b,{key:0,type:"success",plain:"",size:"small",onClick:t.handleSave},{default:l.withCtx(()=>[r[41]||(r[41]=l.createElementVNode("i",{class:"fc-icon icon-save-online"},null,-1)),l.createTextVNode(" "+l.toDisplayString(t.t("props.save")),1)]),_:1,__:[41]},8,["onClick"])):l.createCommentVNode("",!0),t.getConfig("showPreviewBtn")!==!1?(l.openBlock(),l.createBlock(b,{key:1,type:"primary",plain:"",size:"small",onClick:t.openPreview},{default:l.withCtx(()=>[r[42]||(r[42]=l.createElementVNode("i",{class:"fc-icon icon-preview"},null,-1)),l.createTextVNode(" "+l.toDisplayString(t.t("props.preview")),1)]),_:1,__:[42]},8,["onClick"])):l.createCommentVNode("",!0),l.createVNode(N,{title:t.t("designer.clearWarn"),width:"200px","confirm-button-text":t.t("props.clear"),"cancel-button-text":t.t("props.cancel"),onConfirm:t.clearDragRule},{reference:l.withCtx(()=>[l.createVNode(b,{type:"danger",plain:"",size:"small"},{default:l.withCtx(()=>[r[43]||(r[43]=l.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)),l.createTextVNode(l.toDisplayString(t.t("props.clear")),1)]),_:1,__:[43]})]),_:1},8,["title","confirm-button-text","cancel-button-text","onConfirm"]),t.handle&&t.handle.length?(l.openBlock(),l.createBlock(x,{key:2,trigger:"click",size:"default"},{dropdown:l.withCtx(()=>[l.createVNode(C,null,{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.handle,U=>(l.openBlock(),l.createBlock(D,{onClick:l.withModifiers(Q=>t.triggerHandle(U),["stop"])},{default:l.withCtx(()=>[l.createElementVNode("div",null,l.toDisplayString(U.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:l.withCtx(()=>[l.createVNode(b,{class:"_fd-m-extend",plain:"",size:"small"},{default:l.withCtx(()=>r[44]||(r[44]=[l.createElementVNode("i",{class:"fc-icon icon-more"},null,-1)])),_:1,__:[44]})]),_:1})):l.createCommentVNode("",!0)],64)),t.getConfig("showInputData",!0)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[r[47]||(r[47]=l.createElementVNode("div",{class:"line"},null,-1)),l.createElementVNode("div",py,[l.createVNode(T,{size:"default","model-value":t.inputForm.state,"inline-prompt":"","onUpdate:modelValue":t.openInputData},{"active-action":l.withCtx(()=>r[45]||(r[45]=[l.createElementVNode("i",{class:"fc-icon icon-edit2",style:{"font-size":"12px",color:"#fff"}},null,-1)])),"inactive-action":l.withCtx(()=>r[46]||(r[46]=[l.createElementVNode("i",{class:"fc-icon icon-edit2",style:{"font-size":"12px",color:"#333"}},null,-1)])),_:1},8,["model-value","onUpdate:modelValue"])])],64)):l.createCommentVNode("",!0)])]),_:3}),l.createVNode(E,{class:"_fc-m-con"},{default:l.withCtx(()=>{var U,Q;return[l.createElementVNode("div",{class:l.normalizeClass(["_fc-m-drag",t.device]),ref:"dragCon",style:l.normalizeStyle({"--fc-drag-empty":`'${t.t("designer.dragEmpty")}'`,"--fc-child-empty":`'${t.t("designer.childEmpty")}'`})},[t.inputForm.state?(l.openBlock(),l.createElementBlock("div",hy,[(l.openBlock(),l.createBlock(O,{key:t.inputForm.key,rule:t.inputForm.rule,option:t.inputForm.option,locale:(U=t.locale)==null?void 0:U.name,api:t.inputForm.api,"onUpdate:api":r[12]||(r[12]=J=>t.inputForm.api=J),disabled:!1},null,8,["rule","option","locale","api"]))])):(l.openBlock(),l.createBlock(k,{key:1,rule:t.dragForm.rule,option:t.formOptions,locale:(Q=t.locale)==null?void 0:Q.name,api:t.dragForm.api,"onUpdate:api":r[13]||(r[13]=J=>t.dragForm.api=J)},null,8,["rule","option","locale","api"]))],6),t.inputForm.state?(l.openBlock(),l.createElementBlock("div",my,[l.createVNode(b,{plain:"",onClick:r[14]||(r[14]=J=>t.inputClear())},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.clear")),1)]),_:1}),l.createVNode(b,{plain:"",onClick:r[15]||(r[15]=J=>t.inputReset())},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.reset")),1)]),_:1}),l.createVNode(b,{type:"primary",plain:"",onClick:r[16]||(r[16]=J=>t.inputSave())},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.save")),1)]),_:1})])):l.createCommentVNode("",!0)]}),_:1})]),_:3}),!t.config||t.config.showConfig!==!1?l.withDirectives((l.openBlock(),l.createBlock(c,{key:2,class:"_fc-r",width:"320px"},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"_fc-r-close",onClick:r[17]||(r[17]=U=>t.hiddenRight=!0)},r[48]||(r[48]=[l.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)])),l.createVNode(g,{style:{height:"100%"}},{default:l.withCtx(()=>[l.createVNode(v,{height:"40px",class:"_fc-r-tabs"},{default:l.withCtx(()=>[!!t.activeRule||t.customForm.isShow||t.config&&t.config.showFormConfig===!1?(l.openBlock(),l.createElementBlock("div",{key:0,class:l.normalizeClass(["_fc-r-tab",{active:t.activeTab==="props"}]),onClick:r[18]||(r[18]=U=>t.activeTab="props")},l.toDisplayString(t.t("designer.component")),3)):l.createCommentVNode("",!0),!t.config||t.config.showFormConfig!==!1?(l.openBlock(),l.createElementBlock("div",{key:1,class:l.normalizeClass(["_fc-r-tab",{active:t.activeTab==="form"&&(!!t.activeRule||t.customForm.isShow)}]),onClick:r[19]||(r[19]=U=>t.activeTab="form")},l.toDisplayString(t.t("designer.form")),3)):l.createCommentVNode("",!0)]),_:1}),!t.config||t.config.showFormConfig!==!1?l.withDirectives((l.openBlock(),l.createBlock(E,{key:0,class:"_fc-r-tab-form"},{default:l.withCtx(()=>[l.createVNode(k,{rule:t.form.rule,option:t.form.option,modelValue:t.form.value,onChange:t.formOptChange,api:t.form.api,"onUpdate:api":r[20]||(r[20]=U=>t.form.api=U)},{title:l.withCtx(U=>[U.rule.warning?(l.openBlock(),l.createBlock(M,{key:0,tooltip:U.rule.warning},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.rule.title),1)]),_:2},1032,["tooltip"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(U.rule.title),1)],64))]),_:1},8,["rule","option","modelValue","onChange","api"])]),_:1},512)),[[l.vShow,t.activeTab==="form"]]):l.createCommentVNode("",!0),l.withDirectives((l.openBlock(),l.createBlock(E,{class:"_fc-r-tab-props",key:t.activeRule?t.activeRule._fc_id:t.customForm.config?t.customForm.key:""},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"_fc-r-tools-close",onClick:r[21]||(r[21]=(...U)=>t.clearActiveRule&&t.clearActiveRule(...U))},r[49]||(r[49]=[l.createElementVNode("i",{class:"fc-icon icon-add2"},null,-1)])),t.activeRule||t.customForm.config&&(t.customForm.config.name||t.customForm.config.label)?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("p",gy,l.toDisplayString(t.t("designer.type")),1),l.createVNode(S,{disabled:t.activePermission.switchType===!1},null,8,["disabled"]),t.activePermission.name!==!1&&t.activeRule&&t.activeRule.name&&t.config.showComponentName!==!1?(l.openBlock(),l.createElementBlock(l.Fragment,{key:0},[l.createElementVNode("p",vy,[l.createVNode(M,{tooltip:t.t("warning.name")},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("designer.name")),1)]),_:1},8,["tooltip"])]),l.createVNode(F,{size:"small",class:"_fc-r-name-input","model-value":t.activeRule.name,readonly:""},{suffix:l.withCtx(()=>[l.createElementVNode("i",{class:"fc-icon icon-group",onClick:r[22]||(r[22]=(...U)=>t.copyName&&t.copyName(...U))})]),append:l.withCtx(()=>[l.createElementVNode("i",{class:"fc-icon icon-auto",onClick:r[23]||(r[23]=(...U)=>t.updateName&&t.updateName(...U))})]),_:1},8,["model-value"])],64)):l.createCommentVNode("",!0)],64)):l.createCommentVNode("",!0),l.createElementVNode("div",{class:"_fc-r-config",style:l.normalizeStyle({"grid-template-areas":t.configFormOrderStyle})},[l.createElementVNode("div",yy,[t.baseForm.isShow?(l.openBlock(),l.createBlock(R,{key:0},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("designer.rule")),1)]),_:1})):l.createCommentVNode("",!0),l.withDirectives(l.createVNode(k,{api:t.baseForm.api,"onUpdate:api":r[24]||(r[24]=U=>t.baseForm.api=U),rule:t.baseForm.rule,option:t.baseForm.options,modelValue:t.baseForm.value,onChange:t.baseChange},{title:l.withCtx(U=>[U.rule.warning?(l.openBlock(),l.createBlock(M,{key:0,tooltip:U.rule.warning},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.rule.title),1)]),_:2},1032,["tooltip"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(U.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange"]),[[l.vShow,t.baseForm.isShow]])]),l.createElementVNode("div",by,[t.propsForm.isShow?(l.openBlock(),l.createBlock(R,{key:0},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("designer.props"))+" ",1),t.activeRule&&t.getConfig("showCustomProps",!0)?(l.openBlock(),l.createBlock(w,{key:0})):l.createCommentVNode("",!0)]),_:1})):l.createCommentVNode("",!0),l.withDirectives(l.createVNode(k,{api:t.propsForm.api,"onUpdate:api":r[25]||(r[25]=U=>t.propsForm.api=U),rule:t.propsForm.rule,option:t.propsForm.options,modelValue:t.propsForm.value,onChange:t.propChange,onRemoveField:t.propRemoveField},{title:l.withCtx(U=>[U.rule.warning?(l.openBlock(),l.createBlock(M,{key:0,tooltip:U.rule.warning},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(U.rule.title),1)]),_:2},1032,["tooltip"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(U.rule.title),1)],64))]),_:1},8,["api","rule","option","modelValue","onChange","onRemoveField"]),[[l.vShow,t.propsForm.isShow]]),t.customForm.isShow&&t.customForm.propsShow?(l.openBlock(),l.createBlock(R,{key:1},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("designer.props")),1)]),_:1})):l.createCommentVNode("",!0),t.customForm.isShow&&t.customForm.propsShow?(l.openBlock(),l.createBlock(k,{api:t.customForm.api,"onUpdate:api":r[26]||(r[26]=U=>t.customForm.api=U),rule:t.customForm.rule,option:t.customForm.options,key:t.customForm.key,onChange:t.customFormChange},null,8,["api","rule","option","onChange"])):l.createCommentVNode("",!0)]),l.createElementVNode("div",Ay,[t.styleForm.isShow?(l.openBlock(),l.createBlock(R,{key:0,id:"_fd-config-style"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("designer.style")),1)]),_:1})):l.createCommentVNode("",!0),l.withDirectives(l.createVNode(k,{rule:t.styleForm.rule,option:t.styleForm.options,modelValue:t.styleForm.value,onChange:t.styleChange,api:t.styleForm.api,"onUpdate:api":r[27]||(r[27]=U=>t.styleForm.api=U)},null,8,["rule","option","modelValue","onChange","api"]),[[l.vShow,t.styleForm.isShow]])]),l.createElementVNode("div",Cy,[t.eventShow?(l.openBlock(),l.createBlock(R,{key:0},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("designer.event")),1)]),_:1})):l.createCommentVNode("",!0),t.eventShow?(l.openBlock(),l.createBlock(L,{key:1,"event-name":t.activeRule&&t.activeRule._menu.event||[],"component-name":t.activeRule&&t.activeRule._menu.name||"","model-value":t.activeRule&&t.activeRule._on||{},"onUpdate:modelValue":t.changeEvent},null,8,["event-name","component-name","model-value","onUpdate:modelValue"])):l.createCommentVNode("",!0)]),t.activeRule?(l.openBlock(),l.createElementBlock("div",wy,[t.validateForm.isShow?(l.openBlock(),l.createBlock(R,{key:0},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("designer.validate")),1)]),_:1})):l.createCommentVNode("",!0),t.validateForm.isShow?(l.openBlock(),l.createBlock(k,{api:t.validateForm.api,"onUpdate:api":r[28]||(r[28]=U=>t.validateForm.api=U),rule:t.validateForm.rule,option:t.validateForm.options,modelValue:t.validateForm.value,onChange:t.validateChange,key:t.activeRule._fc_id},null,8,["api","rule","option","modelValue","onChange"])):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0)],4)]),_:1})),[[l.vShow,t.activeTab==="props"]])]),_:1})]),_:1},512)),[[l.vShow,!t.hiddenRight]]):l.createCommentVNode("",!0),t.hiddenLeft?(l.openBlock(),l.createElementBlock("div",{key:3,class:"_fc-l-open",onClick:r[29]||(r[29]=U=>t.hiddenLeft=!1)},r[50]||(r[50]=[l.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)]))):l.createCommentVNode("",!0),t.hiddenRight?(l.openBlock(),l.createElementBlock("div",{key:4,class:"_fc-r-open",onClick:r[30]||(r[30]=U=>t.hiddenRight=!1)},r[51]||(r[51]=[l.createElementVNode("i",{class:"fc-icon icon-arrow"},null,-1)]))):l.createCommentVNode("",!0),l.createVNode(P,{modelValue:t.preview.state,"onUpdate:modelValue":r[34]||(r[34]=U=>t.preview.state=U),width:"80%",class:"_fd-preview-dialog","append-to-body":""},{default:l.withCtx(()=>{var U;return[l.createVNode(W,{class:"_fd-preview-tabs",modelValue:t.previewStatus,"onUpdate:modelValue":r[31]||(r[31]=Q=>t.previewStatus=Q)},{default:l.withCtx(()=>[l.createVNode($,{label:t.t("form.formMode"),name:"form"},null,8,["label"]),l.createVNode($,{label:t.t("form.componentMode"),name:"component"},null,8,["label"]),l.createVNode($,{label:t.t("form.htmlMode"),name:"html"},null,8,["label"])]),_:1},8,["modelValue"]),["component","html"].indexOf(t.previewStatus)>-1?(l.openBlock(),l.createElementBlock("div",{key:0,class:"_fd-preview-copy",onClick:r[32]||(r[32]=(...Q)=>t.copyCode&&t.copyCode(...Q))},r[52]||(r[52]=[l.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):l.createCommentVNode("",!0),t.previewStatus==="form"?(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[t.preview.state?(l.openBlock(),l.createBlock(O,{key:0,rule:t.preview.rule,option:t.preview.option,api:t.preview.api,"onUpdate:api":r[33]||(r[33]=Q=>t.preview.api=Q),onSubmit:t.previewSubmit,onReset:t.previewReset,locale:(U=t.locale)==null?void 0:U.name},l.createSlots({_:2},[l.renderList(t.$slots,(Q,J)=>({name:J,fn:l.withCtx(ie=>[l.renderSlot(t.$slots,J,l.normalizeProps(l.guardReactiveProps(ie!=null?ie:{})))])}))]),1032,["rule","option","api","onSubmit","onReset","locale"])):l.createCommentVNode("",!0)],64)):t.previewStatus==="component"?(l.openBlock(),l.createElementBlock("pre",Ey,[l.createElementVNode("code",{innerHTML:t.preview.component},null,8,Sy)],512)):(l.openBlock(),l.createElementBlock("pre",xy,[l.createElementVNode("code",{innerHTML:t.preview.html},null,8,Ty)],512))]}),_:3},8,["modelValue"])]),_:3}))]),_:3})]),_:3},8,["style","onDragenter","onDragleave","onDrop"])}const xt=We(ry,[["render",Ny]]),dw="",_y=l.defineComponent({name:"DragTool",emits:["create","copy","addChild","delete","active","fc.el"],props:{dragBtn:Boolean,children:String,mask:Boolean,handleBtn:[Boolean,Array],formCreateInject:Object,unique:String,only:Boolean},inject:{fcx:{default:null},designer:{default:null},dragTool:{default:null}},provide(){return{dragTool:this}},computed:{isCreate(){return this.dragTool?!!this.dragTool.children:!1},btns(){return Array.isArray(this.handleBtn)?this.handleBtn.length?this.handleBtn:!1:this.handleBtn!==!1},id(){return this.unique||this.formCreateInject.id},hiddenMenu(){return this.designer.ctx.hiddenDragMenu},hiddenBtn(){return this.designer.ctx.hiddenDragBtn},rule(){var t,r;return(r=(t=this.formCreateInject)==null?void 0:t.rule)==null?void 0:r._config._get()},permission(){return this.rule?this.designer.setupState.getPermission(this.rule):{}}},methods:{active(){this.fcx.active!==this.id&&(this.fcx.active=this.id,this.$emit("active"))}},mounted(){this.$emit("fc.el",this)}}),Dy={key:0,class:"_fd-drag-mask"},Ry={key:0,class:"_fd-drag-btn",style:{cursor:"move"}},Oy={key:2,class:"_fd-drag-r"};function ky(t,r,a,o,n,s){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fd-drag-tool",{active:t.fcx.active===t.id}]),onClick:r[5]||(r[5]=l.withModifiers((...d)=>t.active&&t.active(...d),["stop"]))},[t.mask?(l.openBlock(),l.createElementBlock("div",Dy)):l.createCommentVNode("",!0),!t.hiddenBtn&&t.permission.move!==!1?(l.openBlock(),l.createElementBlock("div",{key:1,class:"_fd-drag-l",onClick:r[0]||(r[0]=l.withModifiers(()=>{},["stop"]))},[t.dragBtn!==!1?l.withDirectives((l.openBlock(),l.createElementBlock("div",Ry,r[6]||(r[6]=[l.createElementVNode("i",{class:"fc-icon icon-move"},null,-1)]),512)),[[l.vShow,t.fcx.active===t.id]]):l.createCommentVNode("",!0)])):l.createCommentVNode("",!0),t.btns!==!1&&!t.hiddenMenu&&t.permission.dragMenu!==!1?(l.openBlock(),l.createElementBlock("div",Oy,[l.renderSlot(t.$slots,"handle",{},()=>[t.permission.create!==!1&&t.isCreate&&(t.btns===!0||t.btns.indexOf("create")>-1)?(l.openBlock(),l.createElementBlock("div",{key:0,class:"_fd-drag-btn",onClick:r[1]||(r[1]=l.withModifiers(d=>t.$emit("create"),["stop"]))},r[7]||(r[7]=[l.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]))):l.createCommentVNode("",!0),t.permission.copy!==!1&&!t.only&&(t.btns===!0||t.btns.indexOf("copy")>-1)?(l.openBlock(),l.createElementBlock("div",{key:1,class:"_fd-drag-btn",onClick:r[2]||(r[2]=l.withModifiers(d=>t.$emit("copy"),["stop"]))},r[8]||(r[8]=[l.createElementVNode("i",{class:"fc-icon icon-copy"},null,-1)]))):l.createCommentVNode("",!0),t.permission.addChild!==!1&&t.children&&(t.btns===!0||t.btns.indexOf("addChild")>-1)?(l.openBlock(),l.createElementBlock("div",{key:2,class:"_fd-drag-btn",onClick:r[3]||(r[3]=l.withModifiers(d=>t.$emit("addChild"),["stop"]))},r[9]||(r[9]=[l.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]))):l.createCommentVNode("",!0),t.permission.delete!==!1&&(t.btns===!0||t.btns.indexOf("delete")>-1)?(l.openBlock(),l.createElementBlock("div",{key:3,class:"_fd-drag-btn _fd-drag-danger",onClick:r[4]||(r[4]=l.withModifiers(d=>t.$emit("delete"),["stop"]))},r[10]||(r[10]=[l.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]))):l.createCommentVNode("",!0)])])):l.createCommentVNode("",!0),l.renderSlot(t.$slots,"default")],2)}const dd=We(_y,[["render",ky]]),cw="",By=l.defineComponent({name:"fcRow",mounted(){}});function Iy(t,r,a,o,n,s){const d=l.resolveComponent("el-col");return l.openBlock(),l.createBlock(d,{span:24},{default:l.withCtx(()=>[l.createElementVNode("div",l.mergeProps({class:["_fd-row el-row",{"_fc-child-empty":!t.$slots.default}]},t.$attrs),[l.renderSlot(t.$slots,"default")],16)]),_:3})}const My=We(By,[["render",Iy]]),pw="",Py=l.defineComponent({name:"HtmlEditor",emits:["update:modelValue"],props:{modelValue:String,title:String,defaultValue:{require:!1}},inject:["designer"],computed:{t(){return this.designer.setupState.t}},data(){return{editor:null,visible:!1,oldVal:null}},watch:{modelValue(){this.load()},visible(t){t&&this.load()}},methods:{validateXML(t){var n;const o=new DOMParser().parseFromString(t,"application/xml").getElementsByTagName("parsererror");return o.length>0&&(n=o[0].innerText.split(`
`)[0])!=null?n:""},load(){this.oldVal=this.modelValue,this.$nextTick(()=>{this.editor=l.markRaw(Ki(this.$refs.editor,{lineNumbers:!0,mode:"xml",lint:!0,line:!0,tabSize:2,lineWrapping:!0,value:this.modelValue||""}))})},onOk(){const t=this.editor.getValue();return this.validateXML(t)?(yn(this.t("struct.errorMsg")),!1):(this.visible=!1,t!==this.oldVal&&this.$emit("update:modelValue",t),!0)}}}),Ly={class:"_fd-html-editor"},Vy={key:0,ref:"editor"};function Fy(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",Ly,[l.createVNode(d,{onClick:r[0]||(r[0]=p=>t.visible=!0),style:{width:"100%"}},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.title||t.t("struct.title")),1)]),_:1}),l.createVNode(c,{class:"_fd-html-editor-con",title:t.title||t.t("struct.title"),modelValue:t.visible,"onUpdate:modelValue":r[2]||(r[2]=p=>t.visible=p),"close-on-click-modal":!1,"append-to-body":""},{footer:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(d,{onClick:r[1]||(r[1]=p=>t.visible=!1),size:"default"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.cancel")),1)]),_:1}),l.createVNode(d,{type:"primary",onClick:t.onOk,size:"default"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:l.withCtx(()=>[t.visible?(l.openBlock(),l.createElementBlock("div",Vy,null,512)):l.createCommentVNode("",!0)]),_:1},8,["title","modelValue"])])}const $y=We(Py,[["render",Fy]]),hw="",Hy=l.defineComponent({name:"FnInput",components:{FnEditor:Br},emits:["update:modelValue","change"],props:{modelValue:[String,Function],name:String,args:Array,title:String,body:Boolean,fnx:Boolean,defaultValue:{require:!1},validate:Function},inject:["designer"],computed:{t(){return this.designer.setupState.t},configured(){return!!this.modelValue}},data(){return{visible:!1,value:this.modelValue}},watch:{modelValue(t){this.value=t}},methods:{onOk(){this.$refs.editor.save()&&(this.$emit("update:modelValue",this.value),this.$emit("change",this.value),this.visible=!1)}}}),zy={class:"_fd-fn-input"};function jy(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-badge"),p=l.resolveComponent("FnEditor"),m=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",zy,[l.createVNode(c,{type:"warning","is-dot":"",hidden:!t.configured},{default:l.withCtx(()=>[l.createVNode(d,{onClick:r[0]||(r[0]=v=>t.visible=!0),size:"small"},{default:l.withCtx(()=>[l.renderSlot(t.$slots,"default",{},()=>[l.createTextVNode(l.toDisplayString(t.t("event.title")),1)])]),_:3})]),_:3},8,["hidden"]),l.createVNode(m,{class:"_fd-fn-input-dialog _fd-config-dialog",title:t.title||t.t("struct.title"),modelValue:t.visible,"onUpdate:modelValue":r[3]||(r[3]=v=>t.visible=v),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"800px"},{footer:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(d,{onClick:r[2]||(r[2]=v=>t.visible=!1),size:"default"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.cancel")),1)]),_:1}),l.createVNode(d,{type:"primary",onClick:t.onOk,size:"default"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:l.withCtx(()=>[l.createVNode(p,{ref:"editor",modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=v=>t.value=v),name:t.name,args:t.args,body:t.body,fnx:t.fnx},null,8,["modelValue","name","args","body","fnx"])]),_:1},8,["title","modelValue"])])}const cd=We(Hy,[["render",jy]]),mw="",Uy=t=>[{type:"input",field:"action",title:t("fetch.action"),value:"",props:{size:"default"},validate:[{required:!0,message:t("fetch.actionRequired"),trigger:"blur"}]},{type:"radio",field:"method",title:t("fetch.method"),value:"GET",props:{size:"default"},options:[{label:"GET",value:"GET"},{label:"POST",value:"POST"}],$required:!0},{type:"radio",field:"dataType",title:t("fetch.dataType"),warning:t("warning.fetchDataType"),value:"json",props:{size:"default"},options:[{label:"JSON",value:"json"},{label:"FormData",value:"formData"}],$required:!0},{type:"TableOptions",field:"headers",title:t("fetch.headers"),value:{},props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object",size:"default"}},{type:"TableOptions",field:"query",title:t("fetch.query"),warning:t("warning.fetchQuery"),value:{},props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object",size:"default"}},{type:"TableOptions",field:"data",title:t("fetch.data"),warning:t("warning.fetchData"),value:{},props:{column:[{label:t("props.key"),key:"label"},{label:t("props.value"),key:"value"}],valueType:"object",size:"default"}}],Wy=l.defineComponent({name:"FetchConfig",emits:["update:modelValue"],props:{modelValue:[Object,String],to:String},components:{Warning:os,DragForm:He.$form(),FnEditor:Br,StructEditor:ud},inject:["designer"],data(){return{visible:!1,value:Ct(this.modelValue||{}),form:{api:{},formData:{},rule:[],options:{form:{labelWidth:"90px",size:"default"},submitBtn:!1,resetBtn:!1}}}},computed:{t(){return this.designer.setupState.t},configured(){return!Xe.empty(this.modelValue)}},watch:{visible(t){t&&(this.value=Ct(this.modelValue||{}),this.active())}},methods:{open(){this.visible=!0},active(){const t=this.value;this.form.rule=t.type==="static"?[]:Uy(this.t),this.form.formData={...t},this.form.label=t.label,this.form.type=t.type,this.form.data=t.data,this.form.dataType=t.dataType,this.form.parse=t.parse||"",this.form.beforeFetch=t.beforeFetch||"",this.form.onError=t.onError||""},save(){this.form.api.validate().then(()=>{const t={...this.form.formData};this.$refs.parse&&!this.$refs.parse.save()||this.$refs.beforeFetch&&!this.$refs.beforeFetch.save()||this.$refs.error&&!this.$refs.error.save()||(t.parse=He.parseFn(this.form.parse),t.beforeFetch=He.parseFn(this.form.beforeFetch),t.onError=this.form.onError,t.label=this.form.label,t.type=this.form.type,t.to=this.to||"options",this.$emit("update:modelValue",t),this.visible=!1)}).catch(t=>{console.error(t),yn(t[Object.keys(t)[0]][0].message)})}},created(){this.active()}}),Ky={class:"_fd-gfc"};function Gy(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-badge"),p=l.resolveComponent("Warning"),m=l.resolveComponent("DragForm"),v=l.resolveComponent("el-tab-pane"),y=l.resolveComponent("FnEditor"),E=l.resolveComponent("el-tabs"),D=l.resolveComponent("el-container"),C=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",Ky,[l.createVNode(c,{type:"warning","is-dot":"",hidden:!t.configured},{default:l.withCtx(()=>[l.createVNode(d,{onClick:r[0]||(r[0]=x=>t.visible=!0),size:"small"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("struct.title")),1)]),_:1})]),_:1},8,["hidden"]),l.createVNode(C,{class:"_fd-gfc-dialog",modelValue:t.visible,"onUpdate:modelValue":r[7]||(r[7]=x=>t.visible=x),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1080px"},{header:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("fetch.optionsType.fetch"))+" ",1),l.createVNode(p,{tooltip:t.t("warning.fetch")},null,8,["tooltip"])]),footer:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(d,{size:"default",onClick:r[6]||(r[6]=x=>t.visible=!1)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.cancel")),1)]),_:1}),l.createVNode(d,{type:"primary",size:"default",onClick:t.save,color:"#2f73ff"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:l.withCtx(()=>[l.createVNode(D,{class:"_fd-gfc-con",style:{height:"450px"}},{default:l.withCtx(()=>[l.createVNode(E,{"model-value":"first",class:"_fc-tabs",style:{width:"100%"}},{default:l.withCtx(()=>[l.createVNode(v,{label:t.t("fetch.config"),name:"first"},{default:l.withCtx(()=>[l.createVNode(m,{api:t.form.api,"onUpdate:api":r[1]||(r[1]=x=>t.form.api=x),modelValue:t.form.formData,"onUpdate:modelValue":r[2]||(r[2]=x=>t.form.formData=x),rule:t.form.rule,option:t.form.options},{title:l.withCtx(x=>[x.rule.warning?(l.openBlock(),l.createBlock(p,{key:0,tooltip:x.rule.warning},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(x.rule.title),1)]),_:2},1032,["tooltip"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createTextVNode(l.toDisplayString(x.rule.title),1)],64))]),_:1},8,["api","modelValue","rule","option"])]),_:1},8,["label"]),l.createVNode(v,{lazy:"",label:t.t("fetch.beforeFetch"),name:"second"},{label:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("fetch.beforeFetch"))+" ",1),l.createVNode(p,{tooltip:t.t("warning.beforeFetch")},null,8,["tooltip"])]),default:l.withCtx(()=>[l.createVNode(y,{style:{height:"415px"},modelValue:t.form.beforeFetch,"onUpdate:modelValue":r[3]||(r[3]=x=>t.form.beforeFetch=x),name:"beforeFetch",args:["config","data"],ref:"beforeFetch"},null,8,["modelValue"])]),_:1},8,["label"]),l.createVNode(v,{lazy:"",name:"third"},{label:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("fetch.parse"))+" ",1),l.createVNode(p,{tooltip:t.t("warning.fetchParse")},null,8,["tooltip"])]),default:l.withCtx(()=>[l.createVNode(y,{style:{height:"415px"},modelValue:t.form.parse,"onUpdate:modelValue":r[4]||(r[4]=x=>t.form.parse=x),name:"parse",args:[{name:"res",info:t.t("fetch.response")},"rule","api"],ref:"parse"},null,8,["modelValue","args"])]),_:1}),l.createVNode(v,{lazy:"",label:t.t("fetch.onError"),name:"fourth"},{default:l.withCtx(()=>[l.createVNode(y,{style:{height:"415px"},modelValue:t.form.onError,"onUpdate:modelValue":r[5]||(r[5]=x=>t.form.onError=x),name:"onError",args:["e"],ref:"error"},null,8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1})]),_:1},8,["modelValue"])])}const Yy=We(Wy,[["render",Gy]]),gw="",Qy=l.defineComponent({name:"ConfigItem",components:{Warning:os},props:{label:String,info:String,warning:String,appendBackground:String,arrow:{type:Boolean,default:!0},showAppend:Boolean},data(){return{visit:!1}}}),Xy={class:"_fd-config-item"},Jy={class:"_fd-ci-head"},Zy={key:0,class:"_fd-ci-con"},qy={key:1,class:"_fd-ci-info"};function e0(t,r,a,o,n,s){const d=l.resolveComponent("Warning");return l.openBlock(),l.createElementBlock("div",Xy,[l.createElementVNode("div",Jy,[l.createElementVNode("div",{class:l.normalizeClass(["_fd-ci-label",t.$slots.append&&t.arrow!==!1?"is-arrow":""]),onClick:r[0]||(r[0]=c=>t.visit=t.$slots.append&&t.arrow!==!1&&!t.visit)},[t.warning?(l.openBlock(),l.createBlock(d,{key:0,tooltip:t.warning},{default:l.withCtx(()=>[l.renderSlot(t.$slots,"label",{},()=>[l.createElementVNode("span",null,l.toDisplayString(t.label),1)])]),_:3},8,["tooltip"])):l.renderSlot(t.$slots,"label",{key:1},()=>[l.createElementVNode("span",null,l.toDisplayString(t.label),1)]),t.$slots.append&&t.arrow!==!1?(l.openBlock(),l.createElementBlock("i",{key:2,class:l.normalizeClass(["fc-icon icon-down",t.showAppend||t.visit?"down":""])},null,2)):l.createCommentVNode("",!0)],2),t.$slots.default||t.info?(l.openBlock(),l.createElementBlock("div",Zy,[t.$slots.default?l.renderSlot(t.$slots,"default",{key:0}):(l.openBlock(),l.createElementBlock("span",qy,l.toDisplayString(t.info),1))])):l.createCommentVNode("",!0)]),t.showAppend||t.visit?(l.openBlock(),l.createElementBlock("div",{key:0,class:"_fd-ci-append",style:l.normalizeStyle("background:"+t.appendBackground)},[l.renderSlot(t.$slots,"append")],4)):l.createCommentVNode("",!0)])}const oi=We(Qy,[["render",e0]]),vw="",t0=l.defineComponent({name:"FieldInput",inject:["designer"],emits:["update:modelValue"],props:{modelValue:String,disabled:Boolean},computed:{fieldReadonly(){return this.designer.setupState.fieldReadonly},activeRule(){return this.designer.setupState.activeRule},t(){return this.designer.setupState.t}},data(){return{value:this.modelValue||"",oldValue:""}},watch:{modelValue(t){this.value=t}},methods:{copy(){ei(this.modelValue)},getSubChildren(){let t=this.designer.setupState.getSubFormChildren(this.activeRule)||[];return t=Xe.trueArray(t)?t:this.designer.setupState.children,t},getSubFieldChildren(){const t=this.getSubChildren(),r=[],a=o=>(o&&o.forEach(n=>{n&&n._fc_drag_tag&&n.field?r.push({...n,children:[]}):n&&n.children&&a(n.children)}),r);return a(t)},checkValue(){const t=this.oldValue;let r=(this.value||"").replace(/[\s\ ]/g,"");if(r)if(/^[a-zA-Z]/.test(r)){if(t!==r){const a=r.indexOf(".")>-1;if(a&&(r=r.replaceAll(".","_")),this.getSubFieldChildren().filter(o=>o.field===r).length>0)return yn(this.t("computed.fieldExist",{label:r})),t;if(a)return r}}else return yn(this.t("computed.fieldChar")),t;else return yn(this.t("computed.fieldEmpty")),t;return this.oldValue="",r},onFocus(){this.oldValue=this.value},makeField(){this.oldValue=this.value,this.value=ze(),this.onInput()},onInput(){this.value!==this.modelValue&&(this.value=this.checkValue(),this.oldValue=this.value,this.value!==this.modelValue&&(this.designer.emit("changeField",{field:this.value,oldField:this.modelValue,rule:this.activeRule}),this.$emit("update:modelValue",this.value)))}}}),n0={class:"_fd-field-input"};function i0(t,r,a,o,n,s){const d=l.resolveComponent("el-input");return l.openBlock(),l.createElementBlock("div",n0,[l.createElementVNode("i",{class:"fc-icon icon-group",onClick:r[0]||(r[0]=l.withModifiers((...c)=>t.copy&&t.copy(...c),["stop"]))}),l.createVNode(d,{modelValue:t.value,"onUpdate:modelValue":r[2]||(r[2]=c=>t.value=c),readonly:t.fieldReadonly||t.disabled,disabled:t.fieldReadonly||t.disabled,onFocus:t.onFocus,onBlur:t.onInput},l.createSlots({_:2},[t.fieldReadonly?void 0:{name:"append",fn:l.withCtx(()=>[l.createElementVNode("i",{class:"fc-icon icon-auto",onClick:r[1]||(r[1]=(...c)=>t.makeField&&t.makeField(...c))})]),key:"0"}]),1032,["modelValue","readonly","disabled","onFocus","onBlur"])])}const r0=We(t0,[["render",i0]]),yw="",o0="[[FORM-CREATE-PREFIX-",a0="-FORM-CREATE-SUFFIX]]",l0=l.defineComponent({name:"FnConfig",emits:["update:modelValue"],props:{modelValue:[Object,void 0,null],eventConfig:{type:Array,default:()=>[]}},inject:["designer"],components:{FnEditor:Br},data(){return{visible:!1,activeData:null,defActive:"no",event:{},cus:!1,eventStr:""}},computed:{eventInfo(){const t={};return this.eventConfig.forEach(r=>{t[r.name]=r.info}),t},t(){return this.designer.setupState.t},eventNum(){let t=0;return Object.keys(this.modelValue||{}).forEach(r=>{this.modelValue[r]&&t++}),t}},watch:{visible(t){this.event=t?this.loadFN(vo({},this.modelValue||{})):{},t||this.destroy()}},methods:{getArgs(t){return t.args.join(", ")},loadFN(t){const r={};return this.eventConfig.forEach(a=>{const o=a.name,n=t[o]||"";r[o]={item:a,fn:n}}),r},parseFN(t){const r={};return Object.keys(t).forEach(a=>{t[a].fn&&(r[a]=t[a].fn)}),r},edit(t){t.key=ze(),this.activeData=t,this.eventStr=t.fn||o0+`function ${t.item.name}(${this.getArgs(t.item)}){}`+a0,this.defActive=t.item.name},save(){return this.$refs.fn.save()?(this.activeData.fn=this.eventStr,this.destroy(),!0):!1},destroy(){this.activeData=null,this.defActive="no"},close(){this.destroy()},submit(){this.activeData&&!this.save()||(this.$emit("update:modelValue",this.parseFN(this.event)),this.visible=!1,this.destroy())}}}),s0={class:"_fd-fn-list"},u0=["onClick"],f0={key:0,class:"_fd-label"},d0={key:1,class:"_fd-dot"};function c0(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-badge"),p=l.resolveComponent("el-text"),m=l.resolveComponent("el-header"),v=l.resolveComponent("el-menu-item"),y=l.resolveComponent("el-menu"),E=l.resolveComponent("el-main"),D=l.resolveComponent("el-container"),C=l.resolveComponent("el-aside"),x=l.resolveComponent("FnEditor"),A=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",s0,[l.createVNode(c,{value:t.eventNum,type:"warning",hidden:t.eventNum<1},{default:l.withCtx(()=>[l.createVNode(d,{onClick:r[0]||(r[0]=g=>t.visible=!0),size:"small"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("event.title")),1)]),_:1})]),_:1},8,["value","hidden"]),l.createVNode(A,{class:"_fd-fn-list-dialog",title:t.t("event.title"),modelValue:t.visible,"onUpdate:modelValue":r[4]||(r[4]=g=>t.visible=g),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"1080px"},{footer:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(d,{size:"default",onClick:r[3]||(r[3]=g=>t.visible=!1)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.cancel")),1)]),_:1}),l.createVNode(d,{type:"primary",size:"default",onClick:t.submit,color:"#2f73ff"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.ok")),1)]),_:1},8,["onClick"])])]),default:l.withCtx(()=>[l.createVNode(D,{class:"_fd-fn-list-con",style:{height:"600px"}},{default:l.withCtx(()=>[l.createVNode(C,{style:{width:"300px"}},{default:l.withCtx(()=>[l.createVNode(D,{class:"_fd-fn-list-l"},{default:l.withCtx(()=>[l.createVNode(m,{class:"_fd-fn-list-head",height:"40px"},{default:l.withCtx(()=>[l.createVNode(p,{type:"primary",size:"default"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("event.list")),1)]),_:1})]),_:1}),l.createVNode(E,null,{default:l.withCtx(()=>[l.createVNode(y,{"default-active":t.defActive,modelValue:t.activeData,"onUpdate:modelValue":r[1]||(r[1]=g=>t.activeData=g)},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.event,(g,b)=>(l.openBlock(),l.createBlock(v,{index:b},{default:l.withCtx(()=>[l.createElementVNode("div",{class:"_fd-fn-list-method",onClick:l.withModifiers(N=>t.edit(g),["stop"])},[l.createElementVNode("span",null,[r[5]||(r[5]=l.createTextVNode("function",-1)),l.createElementVNode("span",null,l.toDisplayString(b),1)]),t.eventInfo[b]?(l.openBlock(),l.createElementBlock("span",f0,l.toDisplayString(t.eventInfo[b]),1)):l.createCommentVNode("",!0),g.fn?(l.openBlock(),l.createElementBlock("span",d0)):l.createCommentVNode("",!0)],8,u0)]),_:2},1032,["index"]))),256))]),_:1},8,["default-active","modelValue"])]),_:1})]),_:1})]),_:1}),l.createVNode(E,null,{default:l.withCtx(()=>[l.createVNode(D,{class:"_fd-fn-list-r"},{default:l.withCtx(()=>[t.activeData?(l.openBlock(),l.createBlock(m,{key:0,class:"_fd-fn-list-head",height:"40px"},{default:l.withCtx(()=>[l.createVNode(d,{size:"small",onClick:t.close},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.cancel")),1)]),_:1},8,["onClick"]),l.createVNode(d,{size:"small",type:"primary",onClick:t.save,color:"#2f73ff"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("props.save")),1)]),_:1},8,["onClick"])]),_:1})):l.createCommentVNode("",!0),t.activeData?(l.openBlock(),l.createBlock(E,{key:1},{default:l.withCtx(()=>[l.createVNode(x,{ref:"fn",modelValue:t.eventStr,"onUpdate:modelValue":r[2]||(r[2]=g=>t.eventStr=g),name:t.activeData.item.name,args:t.activeData.item.args},null,8,["modelValue","name","args"])]),_:1})):l.createCommentVNode("",!0)]),_:1})]),_:1})]),_:1})]),_:1},8,["title","modelValue"])])}const p0=We(l0,[["render",c0]]),pd=l.defineComponent({name:"DragBox",props:["rule","tag","formCreateInject","list"],render(t){const r={...t.$props.rule.props,...t.$attrs};let a="_fd-"+t.$props.tag+"-drag _fd-drag-box";Object.keys(t.$slots).length||(a+=" drag-holder"),r.class=a,r.modelValue=t.$props.list||[...t.$props.formCreateInject.children];const o={};return t.$slots.default&&t.$slots.default().forEach(s=>{s.key&&(o[s.key]=s)}),l.h(kl,r,{item:({element:n,index:s})=>{var c;const d=(c=n==null?void 0:n.__fc__)==null?void 0:c.key;if(d){let p=o["_"+n.slot];if(p?p.children.forEach(m=>{m.key===d+"fc"&&(p=m)}):p=o[d+"fc"],p)return l.h("div",{class:"_fc-"+t.$props.tag+"-item _fd-drag-item",key:d},p)}return l.h("div",{class:"_fc-"+t.$props.tag+"-item _fd-drag-item",key:s},null)}})}}),bw="",h0=l.defineComponent({name:"FcTableView",props:{mini:Boolean,label:String,width:[Number,String],formCreateInject:Object,border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},inject:["designer"],components:{DragTool:dd,DragBox:pd},watch:{rule:{handler(){this.initRule(),this.style=this.rule.style},immediate:!0}},data(){return{unique:{},style:{},selection:[],selectionPos:null,visible:!1,resize:{isResizing:!1,startX:0,startY:0,startWidth:0,startHeight:0},menuPos:{left:0,top:0},isSelecting:null,oldSelection:null,dragProp:{rule:{props:{tag:"el-col",group:{name:"default",put:(t,...r)=>(t.el.__rule__=this.formCreateInject.rule,this.designer.setupState.dragPut(t,...r))},ghostClass:"ghost",animation:150,handle:"._fd-drag-btn",emptyInsertThreshold:0,direction:"vertical",itemKey:"type"}},tag:"tableCell"},lattice:{},uni:{}}},computed:{t(){return this.designer.setupState.t},tableColor(){const t={};return this.border===!1?t.border="0 none":(this.borderColor&&(t.borderColor=this.borderColor),this.borderWidth&&(t.borderWidth=this.borderWidth)),t}},methods:{contextmenu(t){t.preventDefault(),t.stopPropagation(),this.selectionPos&&(this.menuPos={left:`${t.clientX}px`,top:`${t.clientY}px`},this.visible=!0)},rowResize(t,{pid:r,idx:a}){t.preventDefault(),t.stopPropagation();let o,n=`${this.lattice[r][a].startRow||r}:${this.lattice[r][a].startCol||0}`;(!this.$refs[`td_${n}`]||this.lattice[r][a].colspan>1||this.lattice[r][a].rowspan>1)&&(n=`${r}:${a}`);const s=this.$refs[`td_${n}`][0].parentElement,d=this.rule.style[n]||{},c=m=>{if(!this.resize.isResizing)return;const v=m.clientY-this.resize.startY,y=this.resize.startHeight+v;y>20&&(s.style.height=`${y}px`,o=y)},p=()=>{!this.resize.isResizing||(this.resize.isResizing=!1,d.height=`${o}px`,this.rule.style[n]=d,document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",p))};this.resize.isResizing=!0,this.resize.startY=t.clientY,this.resize.startHeight=s.offsetHeight,d.height&&(s.style.height=d.height,delete d.height),document.addEventListener("mousemove",c),document.addEventListener("mouseup",p)},colResize(t,{pid:r,idx:a}){t.preventDefault(),t.stopPropagation();let o,n=`${this.lattice[r][a].startRow||0}:${this.lattice[r][a].startCol||a}`;(!this.$refs[`td_${n}`]||this.lattice[r][a].colspan>1||this.lattice[r][a].rowspan>1)&&(n=`${r}:${a}`);const s=this.$refs[`td_${n}`][0],d=this.rule.style[n]||{},c=m=>{if(!this.resize.isResizing)return;const v=m.clientX-this.resize.startX,y=this.resize.startWidth+v;y>20&&(s.style.width=`${y}px`,o=y)},p=()=>{!this.resize.isResizing||(this.resize.isResizing=!1,d.width=`${o}px`,this.rule.style[n]=d,document.removeEventListener("mousemove",c),document.removeEventListener("mouseup",p))};this.resize.isResizing=!0,this.resize.startX=t.clientX,this.resize.startWidth=s.offsetWidth,document.addEventListener("mousemove",c),document.addEventListener("mouseup",p)},mousedown(t,{pid:r,idx:a}){t.button===0&&!t.target.classList.contains("icon-move")&&!t.target.classList.contains("_fd-table-row-handle")&&!t.target.classList.contains("_fd-table-col-handle")&&(t.stopPropagation(),t.preventDefault(),this.visible?this.visible=!1:(this.isSelecting={pid:r,idx:a},this.updateSelection({pid:r,idx:a})))},mousemove(t,{pid:r,idx:a}){this.isSelecting&&(t.stopPropagation(),(!this.oldSelection||this.oldSelection.pid!==r||this.oldSelection.idx!==a)&&(this.updateSelection({pid:r,idx:a}),this.oldSelection={pid:r,idx:a}))},mouseup(){this.isSelecting=null},dblclick(t,{pid:r,idx:a}){let o=!1;if(this.formCreateInject.children.forEach(n=>{o=o||n&&n.slot===`${r}:${a}`}),!o){const n=this.designer.setupState;n.dragMenu({menu:n.dragRuleList.text,children:this.formCreateInject.children,index:this.formCreateInject.children.length,slot:`${r}:${a}`})}},updateSelection({pid:t,idx:r}){const a=this.selectionRect(this.isSelecting,{pid:t,idx:r}),{startRow:o,startCol:n,endRow:s,endCol:d}=this.getSelectionPos({startRow:a[0].pid,startCol:a[0].idx,endRow:a[a.length-1].pid,endCol:a[a.length-1].idx,selection:a});this.selectionPos={startRow:o,startCol:n,endRow:s,endCol:d},this.selection=this.selectionRect({pid:o,idx:n},{pid:s,idx:d},!0)},getSelectionPos(t){let{startRow:r,startCol:a,endRow:o,endCol:n}=t;return(t.selection||this.selectionRect({pid:r,idx:a},{pid:o,idx:n})).forEach(d=>{const c=this.lattice[d.pid][d.idx];if(c.show)c.rowspan>1&&(o=Math.max(o,d.pid+c.rowspan-1)),c.colspan>1&&(n=Math.max(n,d.idx+c.colspan-1));else{const p=this.lattice[c.startRow][c.startCol];r=Math.min(r,c.startRow),a=Math.min(a,c.startCol),o=Math.max(o,c.startRow+p.rowspan-1),n=Math.max(n,c.startCol+p.colspan-1)}}),t.startRow!==r||t.endRow!==o||t.startCol!==a||t.endCol!==n?this.getSelectionPos({startRow:r,startCol:a,endRow:o,endCol:n}):{startRow:r,startCol:a,endRow:o,endCol:n}},selectionRect(t,r,a){const o=t.pid,n=t.idx,s=r.pid,d=r.idx,c=Math.min(o,s),p=Math.max(o,s),m=Math.min(n,d),v=Math.max(n,d),y=[];for(let E=c;E<=p;E++)for(let D=m;D<=v;D++)y.push(a?`${E}:${D}`:{pid:E,idx:D});return y},clearSelection(){this.isSelecting=null,this.oldSelection=null,this.selection=[],this.selectionPos=null},getUnique(t){return this.unique[t]||(this.unique[t]=ze()),this.unique[t]},getSlotChildren(t){const r=[];return this.formCreateInject.children.forEach(a=>{t.indexOf(a.slot)>-1&&r.push(a)}),r},dragAdd(t,r){const a=this.designer.setupState,o=this.formCreateInject.children,n=`${r.pid}:${r.idx}`,s=t.item._underlying_vm_,d=a.addRule&&a.addRule.children===a.moveRule;d&&a.moveRule.splice(a.moveRule.indexOf(s),1);let c=0;const p="drag"+r.pid+r.idx;if(this.$refs[p][0].list.length){let m=this.$refs[p][0].list[t.newIndex?t.newIndex-1:0];c=o.indexOf(m)+(t.newIndex?1:0)}else if(o.length){const m=Object.keys(this.$refs);for(let v=m.indexOf(p)-1;v>=0;v--){if(!this.$refs[m[v]]||!this.$refs[m[v]].length)continue;const y=this.$refs[m[v]][0].list||[];if(y.length){c=o.indexOf(y[y.length-1])+1;break}}}t.newIndex=c,d?(s.slot=n,o.splice(t.newIndex,0,s),a.added=!0,a.handleSortAfter({rule:s})):a.dragAdd(o,t,`${r.pid}:${r.idx}`)},dragEnd(t,r){const a=this.designer.setupState,o=this.formCreateInject.children,n=t.item._underlying_vm_,s=o.indexOf(n);t.newIndex=s+(t.newIndex-t.oldIndex),t.oldIndex=s,a.dragEnd(this.formCreateInject.children,t,`${r.pid}:${r.idx}`)},dragStart(){this.designer.setupState.dragStart(this.formCreateInject.children)},dragUnchoose(t){this.designer.setupState.dragUnchoose(this.formCreateInject.children,t)},initRule(){const t=this.rule;t.style||(t.style={}),t.class||(t.class={}),t.layout||(t.layout=[]),t.row||(t.row=1),t.col||(t.col=1)},active(t){const r=`${t.pid}:${t.idx}`;this.designer.setupState.customActive({name:"fcTableGrid",onPaste:a=>{a.slot=r,this.formCreateInject.children.push(a)},style:{formData:{style:this.rule.style[r]||{},class:this.rule.class[r]||""},change:(a,o)=>{!o||Object.keys(o).length===0?delete this.rule[a][r]:this.rule[a][r]=o}}})},command(t){this[t[0]](...t[1])},rmSlot(t,r){const a=Object.keys(t),o=this.formCreateInject.children;let n=0;[...o].forEach((s,d)=>{if(!s.slot)return;let c;r.indexOf(s.slot)>-1?(o.splice(d-n,1),n++):(c=a.indexOf(s.slot))>-1&&(s.slot=t[a[c]])}),r.forEach(s=>{delete this.style[s]}),this.loadRule()},rmRow(t){this.clearSelection(),this.rule.row--;const r={},a=[];for(let s=t.pid;s<this.rule.row+1;s++)for(let d=0;d<this.rule.col;d++)s===t.pid?a.push(`${t.pid}:${d}`):r[`${s}:${d}`]=`${s-1}:${d}`;let o=0;const n=this.rule.layout;[...n].forEach((s,d)=>{s.top===t.pid&&(n.splice(d-o,1),o++)}),n.forEach(s=>{s.top>t.pid&&s.top--}),this.rmSlot(r,a)},rmCol(t){this.clearSelection(),this.rule.col--;const r={},a=[];for(let s=0;s<this.rule.row;s++){for(let d=t.idx+1;d<this.rule.col+1;d++)r[`${s}:${d}`]=`${s}:${d-1}`;a.push(`${s}:${t.idx}`)}let o=0;const n=this.rule.layout;[...n].forEach((s,d)=>{s.left===t.idx&&(n.splice(d-o,1),o++)}),n.forEach(s=>{s.left>t.idx&&s.left--}),this.rmSlot(r,a)},splitRow(t){this.clearSelection();const r=t.data.layout,a=r.row;if(r.row=0,a>1)for(let o=1;o<a;o++)this.rule.layout.push({...r,top:r.top+o});this.loadRule()},splitCol(t){this.clearSelection();const r=t.data.layout,a=r.col;if(r.col=0,a>1)for(let o=1;o<a;o++)this.rule.layout.push({...r,left:r.left+o});this.loadRule()},makeMap(t){let r=[];for(let a=t.top;a<(t.row||t.top+1);a++)for(let o=t.left;o<(t.col||t.left+1);o++)r.push(`${a}:${o}`);return r},rmSelectionContent(){this.rmSlot({},this.selection)},selectionStyle(){const t={...this.rule.style[this.selection[0]]||{}},r=this.selection.reduce((a,o)=>(a[o]={...this.rule.style[o]||{}},a),{});this.designer.setupState.customActive({name:"fcTableGrid",style:{formData:{style:t,class:this.rule.class[this.selection[0]]||""},change:(a,o)=>{this.selection.forEach(n=>{if(!o||Object.keys(o).length===0)delete this.rule[a][n];else if(a==="style"){const s={...r[n]};Object.keys(o).forEach(d=>{o[d]!==t[d]&&(s[d]=o[d])}),this.rule[a][n]=s}else this.rule[a][n]=o})}}})},rmSelectionCol(){const t=this.selectionPos.endCol-this.selectionPos.startCol+1,r={};for(let o=0;o<this.rule.row;o++)for(let n=this.selectionPos.endCol+1;n<this.rule.col;n++)r[`${o}:${n}`]=`${o}:${n-t}`;const a=this.filterSelectionLayout();a.forEach(o=>{o.left>this.selectionPos.startCol&&(o.left-=t)}),this.rule.layout=a,this.rule.col-t<=0?this.formCreateInject.children.splice(0,this.formCreateInject.children.length):this.rmSlot(r,this.selectionRect({pid:0,idx:this.selectionPos.startCol},{pid:this.rule.row,idx:this.selectionPos.endCol},!0)),this.rule.col=Math.max(1,this.rule.col-t),this.clearSelection()},rmSelectionRow(){const t=this.selectionPos.endRow-this.selectionPos.startRow+1,r={};for(let o=this.selectionPos.endRow+1;o<this.rule.row;o++)for(let n=0;n<this.rule.col;n++)r[`${o}:${n}`]=`${o-t}:${n}`;const a=this.filterSelectionLayout();a.forEach(o=>{o.top>this.selectionPos.startRow&&(o.top-=t)}),this.rule.layout=a,this.rule.row-t<=0?this.formCreateInject.children.splice(0,this.formCreateInject.children.length):this.rmSlot(r,this.selectionRect({pid:this.selectionPos.startRow,idx:0},{pid:this.selectionPos.endRow,idx:this.rule.col},!0)),this.rule.row=Math.max(1,this.rule.row-t),this.clearSelection()},filterSelectionLayout(){return(this.rule.layout||[]).filter(t=>t.top<this.selectionPos.startRow||t.top>this.selectionPos.endRow||t.left<this.selectionPos.startCol||t.left>this.selectionPos.endCol)},mergeSelection(t){const r=this.filterSelectionLayout();if(!t){r.push({top:this.selectionPos.startRow,left:this.selectionPos.startCol,row:this.selectionPos.endRow-this.selectionPos.startRow+1,col:this.selectionPos.endCol-this.selectionPos.startCol+1});const a={};for(let o=this.selectionPos.startRow;o<=this.selectionPos.endRow;o++)for(let n=this.selectionPos.startCol;n<=this.selectionPos.endCol;n++)a[`${o}:${n}`]=`${this.selectionPos.startRow}:${this.selectionPos.startCol}`;this.rmSlot(a,[])}this.rule.layout=r,this.loadRule()},mergeRight(t){this.clearSelection();let r;if(t.data.layout){const o=(t.data.layout.col||1)+1;t.data.layout.col=o+t.idx>this.rule.col?this.rule.col-t.idx:o,r=t.data.layout}else r={top:t.pid,left:t.idx,col:2},this.rule.layout.push(r);const a=this.makeMap(r);this.formCreateInject.children.forEach(o=>{!o.slot||a.indexOf(o.slot)>-1&&(o.slot=`${t.pid}:${t.idx}`)}),this.loadRule()},mergeBottom(t){this.clearSelection();let r;if(t.data.layout){const o=(t.data.layout.row||1)+1;t.data.layout.row=o+o.pid>this.rule.col?this.rule.col-t.pid:o,r=t.data.layout}else r={top:t.pid,left:t.idx,row:2},this.rule.layout.push(r);const a=this.makeMap(r);this.formCreateInject.children.forEach(o=>{!o.slot||a.indexOf(o.slot)>-1&&(o.slot=`${t.pid}:${t.idx}`)}),this.loadRule()},addCol(t,r){if(this.clearSelection(),this.rule.col++,this.rule.layout.forEach(a=>{a.left>(r?t.idx-1:t.idx)&&a.left++}),r||t.idx<this.rule.col-2){const a={};for(let n=0;n<this.rule.row;n++)for(let s=r?t.idx-1:t.idx+1;s<this.rule.col-1;s++)a[`${n}:${s}`]=`${n}:${s+1}`;const o=Object.keys(a);this.formCreateInject.children.forEach(n=>{let s;n.slot&&(s=o.indexOf(n.slot))>-1&&(n.slot=a[o[s]])}),o.forEach(n=>{this.style[n]&&(this.style[a[n]]=this.style[n],delete this.style[n])})}this.loadRule()},addRow(t,r){if(this.clearSelection(),this.rule.row++,this.rule.layout.forEach(a=>{a.top>(r?t.pid-1:t.pid)&&a.top++}),r||t.pid<this.rule.row-2){const a={};for(let n=r?t.pid-1:t.pid+1;n<this.rule.row;n++)for(let s=0;s<this.rule.col;s++)a[`${n}:${s}`]=`${n+1}:${s}`;const o=Object.keys(a);this.formCreateInject.children.forEach(n=>{let s;n.slot&&(s=o.indexOf(n.slot))>-1&&(n.slot=a[o[s]])}),o.reverse().forEach(n=>{this.style[n]&&(this.style[a[n]]=this.style[n],delete this.style[n])})}this.loadRule()},loadRule(){const t=[],r=this.rule||{row:1,col:1};for(let o=0;o<r.row;o++){const n=[];t.push(n);for(let s=0;s<r.col;s++)n.push({rowspan:1,colspan:1,slot:[],show:!0,id:this.getUnique(`${o}${s}`)})}[...r.layout||[]].forEach((o,n)=>{if((!o.row||o.row<=0)&&(!o.col||o.col<=0)||!t[o.top]||!t[o.top][o.left]||!t[o.top][o.left].show){r.layout.splice(n,1);return}const s=t[o.top][o.left];s.layout=o;let d=1,c=1;if(o.col&&(d=o.col+o.left>r.col?r.col-o.left:o.col,s.colspan=d),o.row&&(c=o.row+o.top>r.row?r.row-o.top:o.row,s.rowspan=c),c&&d)for(let p=0;p<c;p++){const m=t[o.top+p];if(m)for(let v=0;v<d;v++)!v&&!p||(m[o.left+v]&&(m[o.left+v].show=!1,m[o.left+v].startRow=o.top,m[o.left+v].startCol=o.left),s.slot.push(`${o.top+p}:${o.left+v}`))}});const a=o=>!!(!o||o.layout||!o.show);t.forEach((o,n)=>{o.forEach((s,d)=>{let c=!1,p=!1;if(s.layout){const m=s.layout.col||1,v=s.layout.row||1;for(let y=0;y<m;y++)if(!t[n+v]||a(t[n+v][d+y])){p=!0;continue}for(let y=0;y<v;y++)if(!t[n+y]||a(t[n+y][d+m])){c=!0;continue}}else c=a(o[d+1]),p=t[n+1]?a(t[n+1][d]):!0;s.right=c,s.bottom=p})}),this.lattice=t,this.formCreateInject.rule.props.rule=r},hideMenu(){this.visible=!1}},beforeMount(){this.loadRule()},mounted(){document.addEventListener("click",this.hideMenu,!0)},beforeUnmount(){document.removeEventListener("click",this.hideMenu,!0)}}),m0=["onContextmenu","onMousedown","onMousemove","onDblclick"],g0=["onMousedown"],v0=["onMousedown"],y0=["onClick"],b0=["onClick"];function A0(t,r,a,o,n,s){const d=l.resolveComponent("DragBox"),c=l.resolveComponent("el-dropdown-item"),p=l.resolveComponent("el-dropdown-menu"),m=l.resolveComponent("el-dropdown"),v=l.resolveComponent("DragTool");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fd-table-view",{"is-mini":t.mini}])},[l.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:l.normalizeStyle(t.tableColor),onMouseleave:r[3]||(r[3]=(...y)=>t.mouseup&&t.mouseup(...y)),onMouseup:r[4]||(r[4]=(...y)=>t.mouseup&&t.mouseup(...y))},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.rule.row,(y,E)=>(l.openBlock(),l.createElementBlock("tr",{key:E},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.rule.col,(D,C)=>(l.openBlock(),l.createElementBlock(l.Fragment,null,[t.lattice[E][C].show?(l.openBlock(),l.createElementBlock("td",l.mergeProps({key:`${E}${C}`,ref_for:!0,ref:`td_${E}:${C}`,class:"_fd-table-view-cell"},{ref_for:!0},t.lattice[E][C]?{colspan:t.lattice[E][C].colspan,rowspan:t.lattice[E][C].rowspan}:{},{style:[t.tableColor,t.style&&t.style[`${E}:${C}`]||{}],class:[t.rule.class&&t.rule.class[`${E}:${C}`]||"",{selected:t.selection.indexOf(`${E}:${C}`)>-1}],onContextmenu:x=>t.contextmenu(x,{pid:E,idx:C}),onMousedown:x=>t.mousedown(x,{pid:E,idx:C}),onMousemove:x=>t.mousemove(x,{pid:E,idx:C}),onDblclick:x=>t.dblclick(x,{pid:E,idx:C})}),[E!==t.rule.row-1?(l.openBlock(),l.createElementBlock("div",{key:0,class:"_fd-table-row-handle",onMousedown:x=>t.rowResize(x,{pid:E,idx:C})},null,40,g0)):l.createCommentVNode("",!0),C!==t.rule.col-1?(l.openBlock(),l.createElementBlock("div",{key:1,class:"_fd-table-col-handle",onMousedown:x=>t.colResize(x,{pid:E,idx:C})},null,40,v0)):l.createCommentVNode("",!0),l.createVNode(v,{"drag-btn":!1,"handle-btn":!0,onActive:x=>t.active({pid:E,idx:C}),unique:t.lattice[E][C].id},{handle:l.withCtx(()=>[l.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:l.withModifiers(x=>t.addRow({pid:E,idx:C,data:t.lattice[E][C]},0),["stop"])},r[15]||(r[15]=[l.createElementVNode("i",{class:"fc-icon icon-add-col"},null,-1)]),8,y0),l.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:l.withModifiers(x=>t.addCol({pid:E,idx:C,data:t.lattice[E][C]},0),["stop"])},r[16]||(r[16]=[l.createElementVNode("i",{class:"fc-icon icon-add-col",style:{transform:"rotate(90deg)"}},null,-1)]),8,b0),l.createElementVNode("div",{class:"_fd-drag-btn _fd-table-view-btn",onClick:r[2]||(r[2]=l.withModifiers(()=>{},["stop"]))},[l.createVNode(m,{trigger:"click",onCommand:t.command},{dropdown:l.withCtx(()=>[l.createVNode(p,null,{default:l.withCtx(()=>[l.createVNode(c,{command:["addCol",[{pid:E,idx:C,data:t.lattice[E][C]},1]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.addLeft")),1)]),_:2},1032,["command"]),l.createVNode(c,{command:["addCol",[{pid:E,idx:C,data:t.lattice[E][C]},0]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.addRight")),1)]),_:2},1032,["command"]),l.createVNode(c,{command:["addRow",[{pid:E,idx:C,data:t.lattice[E][C]},1]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.addTop")),1)]),_:2},1032,["command"]),l.createVNode(c,{command:["addRow",[{pid:E,idx:C,data:t.lattice[E][C]},0]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.addBottom")),1)]),_:2},1032,["command"]),l.createVNode(c,{divided:"",disabled:t.lattice[E][C].right,command:["mergeRight",[{pid:E,idx:C,data:t.lattice[E][C]}]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.mergeRight")),1)]),_:2},1032,["disabled","command"]),l.createVNode(c,{disabled:t.lattice[E][C].bottom,command:["mergeBottom",[{pid:E,idx:C,data:t.lattice[E][C]}]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.mergeBottom")),1)]),_:2},1032,["disabled","command"]),l.createVNode(c,{divided:"",disabled:!(t.lattice[E][C].layout&&t.lattice[E][C].layout.col>1),command:["splitCol",[{pid:E,idx:C,data:t.lattice[E][C]}]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.splitCol")),1)]),_:2},1032,["disabled","command"]),l.createVNode(c,{disabled:!(t.lattice[E][C].layout&&t.lattice[E][C].layout.row>1),command:["splitRow",[{pid:E,idx:C,data:t.lattice[E][C]}]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.splitRow")),1)]),_:2},1032,["disabled","command"]),l.createVNode(c,{divided:"",disabled:t.rule.col<2,command:["rmCol",[{pid:E,idx:C,data:t.lattice[E][C]}]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.rmCol")),1)]),_:2},1032,["disabled","command"]),l.createVNode(c,{disabled:t.rule.row<2,command:["rmRow",[{pid:E,idx:C,data:t.lattice[E][C]}]]},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("tableOptions.rmRow")),1)]),_:2},1032,["disabled","command"])]),_:2},1024)]),default:l.withCtx(()=>[r[17]||(r[17]=l.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:2,__:[17]},1032,["onCommand"])])]),default:l.withCtx(()=>[l.createVNode(d,l.mergeProps({ref_for:!0},t.dragProp,{onAdd:x=>t.dragAdd(x,{pid:E,idx:C}),ref_for:!0,ref:"drag"+E+C,onEnd:x=>t.dragEnd(x,{pid:E,idx:C}),onStart:r[0]||(r[0]=x=>t.dragStart(x)),onUnchoose:r[1]||(r[1]=x=>t.dragUnchoose(x)),list:t.getSlotChildren([`${E}:${C}`,...t.lattice[E][C].slot])}),{default:l.withCtx(()=>[l.renderSlot(t.$slots,`${E}:${C}`)]),_:2},1040,["onAdd","onEnd","list"])]),_:2},1032,["onActive","unique"])],16,m0)):l.createCommentVNode("",!0)],64))),256))]))),128))],36),t.visible?(l.openBlock(),l.createElementBlock("div",{key:0,class:"_fd-table-context-menu",style:l.normalizeStyle(t.menuPos)},[l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[5]||(r[5]=l.withModifiers((...y)=>t.selectionStyle&&t.selectionStyle(...y),["stop"]))},l.toDisplayString(t.t("props.style")),1),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[6]||(r[6]=l.withModifiers((...y)=>t.rmSelectionContent&&t.rmSelectionContent(...y),["stop"]))},l.toDisplayString(t.t("props.clear")),1),r[18]||(r[18]=l.createElementVNode("div",{class:"_fd-table-context-menu-separator"},null,-1)),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[7]||(r[7]=l.withModifiers(y=>t.mergeSelection(!1),["stop"]))},l.toDisplayString(t.t("tableOptions.batchMerge")),1),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[8]||(r[8]=l.withModifiers(y=>t.mergeSelection(!0),["stop"]))},l.toDisplayString(t.t("tableOptions.batchSplit")),1),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[9]||(r[9]=l.withModifiers(y=>t.addCol({pid:t.selectionPos.startRow,idx:t.selectionPos.startCol},1),["stop"]))},l.toDisplayString(t.t("tableOptions.addLeft")),1),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[10]||(r[10]=l.withModifiers(y=>t.addCol({pid:t.selectionPos.startRow,idx:t.selectionPos.endCol},0),["stop"]))},l.toDisplayString(t.t("tableOptions.addRight")),1),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[11]||(r[11]=l.withModifiers(y=>t.addRow({pid:t.selectionPos.startRow,idx:t.selectionPos.startCol},1),["stop"]))},l.toDisplayString(t.t("tableOptions.addTop")),1),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[12]||(r[12]=l.withModifiers(y=>t.addRow({pid:t.selectionPos.startRow,idx:t.selectionPos.endCol},0),["stop"]))},l.toDisplayString(t.t("tableOptions.addBottom")),1),r[19]||(r[19]=l.createElementVNode("div",{class:"_fd-table-context-menu-separator"},null,-1)),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[13]||(r[13]=l.withModifiers((...y)=>t.rmSelectionRow&&t.rmSelectionRow(...y),["stop"]))},l.toDisplayString(t.t("tableOptions.batchRmRow")),1),l.createElementVNode("div",{class:"_fd-table-context-menuitem",onClick:r[14]||(r[14]=l.withModifiers((...y)=>t.rmSelectionCol&&t.rmSelectionCol(...y),["stop"]))},l.toDisplayString(t.t("tableOptions.batchRmCol")),1)],4)):l.createCommentVNode("",!0)],2)}const C0=We(h0,[["render",A0]]),Aw="",w0={name:"FcTable",props:{mini:Boolean,label:String,width:[Number,String],border:{type:Boolean,default:!0},borderWidth:String,borderColor:String,rule:{type:Object,default:()=>({row:1,col:1})}},watch:{rule:{handler(){this.initRule(),this.loadRule(),this.tdStyle=this.rule.style||{},this.tdClass=this.rule.class||{}},immediate:!0,deep:!0}},data(){return{tdStyle:{},tdClass:{},lattice:{}}},computed:{tableColor(){const t={};return this.border===!1?t.border="0 none":(this.borderColor&&(t.borderColor=this.borderColor),this.borderWidth&&(t.borderWidth=this.borderWidth)),t}},methods:{initRule(){const t=this.rule;t.style||(t.style={}),t.layout||(t.layout=[]),t.row||(t.row=1),t.col||(t.col=1)},loadRule(){const t=[],r=this.rule||{row:1,col:1};for(let o=0;o<r.row;o++){const n=[];t.push(n);for(let s=0;s<r.col;s++)n.push({rowspan:1,colspan:1,slot:[],show:!0})}[...r.layout||[]].forEach((o,n)=>{if((!o.row||o.row<=0)&&(!o.col||o.col<=0)||!t[o.top]||!t[o.top][o.left]||!t[o.top][o.left].show){r.layout.splice(n,1);return}const s=t[o.top][o.left];s.layout=o;let d=1,c=1;if(o.col&&(d=o.col+o.left>r.col?r.col-o.left:o.col,s.colspan=d),o.row&&(c=o.row+o.top>r.row?r.row-o.top:o.row,s.rowspan=c),c&&d)for(let p=0;p<c;p++){const m=t[o.top+p];if(m)for(let v=0;v<d;v++)!v&&!p||(m[o.left+v]&&(m[o.left+v].show=!1),s.slot.push(`${o.top+p}:${o.left+v}`))}});const a=o=>!!(!o||o.layout||!o.show);t.forEach((o,n)=>{o.forEach((s,d)=>{let c=!1,p=!1;if(s.layout){const m=s.layout.col||1,v=s.layout.row||1;for(let y=0;y<m;y++)if(!t[n+v]||a(t[n+v][d+y])){p=!0;continue}for(let y=0;y<v;y++)if(!t[n+y]||a(t[n+y][d+m])){c=!0;continue}}else c=a(o[d+1]),p=t[n+1]?a(t[n+1][d]):!0;s.right=c,s.bottom=p})}),this.lattice=t}}};function E0(t,r,a,o,n,s){const d=l.resolveComponent("el-col");return l.openBlock(),l.createBlock(d,{span:24},{default:l.withCtx(()=>[l.createElementVNode("div",{class:l.normalizeClass(["_fc-table",{"is-mini":a.mini}])},[l.createElementVNode("table",{border:"1",cellspacing:"0",cellpadding:"0",style:l.normalizeStyle(s.tableColor)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.rule.row,(c,p)=>(l.openBlock(),l.createElementBlock("tr",{key:p},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(a.rule.col,(m,v)=>(l.openBlock(),l.createElementBlock(l.Fragment,{key:`${p}${v}`},[n.lattice[p][v].show?(l.openBlock(),l.createElementBlock("td",l.mergeProps({key:0,ref_for:!0},n.lattice[p][v]?{colspan:n.lattice[p][v].colspan,rowspan:n.lattice[p][v].rowspan}:{},{valign:"top",class:n.tdClass&&n.tdClass[`${p}:${v}`]||"",style:[s.tableColor,n.tdStyle&&n.tdStyle[`${p}:${v}`]||{}]}),[l.renderSlot(t.$slots,`${p}:${v}`),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(n.lattice[p][v].slot,y=>l.renderSlot(t.$slots,`${y}`)),256))],16)):l.createCommentVNode("",!0)],64))),128))]))),128))],4)],2)]),_:3})}const S0=We(w0,[["render",E0]]),Cw="",x0=l.defineComponent({name:"LanguageInput",inject:["designer"],emits:["update:modelValue","blur","change"],props:{size:String,placeholder:String,modelValue:String,disabled:Boolean},computed:{isVar(){return!!(this.modelValue||"").match(/^\{\{\s*\$t\.(.+)\s*\}\}$/)},t(){return this.designer.setupState.t},localeList(){var o,n;const t=this.designer.setupState.getConfig("localeOptions",[{value:"zh-cn",label:"\u7B80\u4F53\u4E2D\u6587"},{value:"en",label:"English"}]),r=[],a=((n=(o=this.designer.props)==null?void 0:o.locale)==null?void 0:n.name)||"zh-cn";return t.forEach(s=>{s.value===a?r.unshift(s):r.length<2&&r.push(s)}),r.length>2&&r.pop(),r},showLanguage(){return this.designer.setupState.getConfig("showLanguage")},language(){const t=this.designer.setupState.formOptions.language||{},r={};return Object.keys(t).forEach(a=>{Object.keys(t[a]).forEach(o=>{r[o]||(r[o]={key:o}),r[o][a]=t[a][o]})}),Object.values(r)}},methods:{openConfig(){this.designer.setupState.activeModule="language"},clickLang(t){this.onInput(`{{$t.${t}}}`),this.$refs.pop.hide()},onInput(t){this.$emit("update:modelValue",t),this.$emit("change",t)}},mounted(){}}),T0={class:"_fd-language-list"},N0={class:"_fd-language-header"},_0={class:"_fd-language-title"},D0={class:"_fd-language-name"},R0=["onClick"];function O0(t,r,a,o,n,s){const d=l.resolveComponent("el-popover"),c=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(c,{class:l.normalizeClass(["_fd-language-input",{"is-variable":t.isVar}]),placeholder:t.placeholder,disabled:t.disabled,modelValue:t.modelValue,"onUpdate:modelValue":t.onInput,onBlur:r[1]||(r[1]=p=>t.$emit("blur")),size:t.size||"small"},l.createSlots({_:2},[t.showLanguage!==!1?{name:"append",fn:l.withCtx(()=>[l.createVNode(d,{placement:"bottom-end",width:300,"hide-after":0,trigger:"click",ref:"pop","popper-class":"_fd-language-popover"},{reference:l.withCtx(()=>r[2]||(r[2]=[l.createElementVNode("i",{class:"fc-icon icon-language"},null,-1)])),default:l.withCtx(()=>[l.createElementVNode("div",T0,[l.createElementVNode("div",N0,[l.createElementVNode("div",_0,[l.createTextVNode(l.toDisplayString(t.t("language.select")),1),l.createElementVNode("i",{class:"fc-icon icon-setting",onClick:r[0]||(r[0]=(...p)=>t.openConfig&&t.openConfig(...p))})]),l.createElementVNode("div",D0,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.localeList,p=>(l.openBlock(),l.createElementBlock("div",{key:p.value},l.toDisplayString(p.label),1))),128))])]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.language,p=>(l.openBlock(),l.createElementBlock("div",{key:p.key,class:"_fd-language-item",onClick:m=>t.clickLang(p.key)},[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.localeList,m=>(l.openBlock(),l.createElementBlock("div",{key:m.value},l.toDisplayString(p[m.value]||"-"),1))),128))],8,R0))),128))])]),_:1},512)]),key:"0"}:void 0]),1032,["class","placeholder","disabled","modelValue","onUpdate:modelValue","size"])}const as=We(x0,[["render",O0]]),ww="",k0=l.defineComponent({name:"Validate",inject:["designer"],emits:["update:modelValue"],props:{modelValue:Array},components:{LanguageInput:as,FnInput:cd},watch:{modelValue(t){this.validate=this.parseValue(t||[])}},data(){return{validate:this.parseValue(this.modelValue||[])}},computed:{t(){return this.designer.setupState.t},modes(){const t=this.designer.setupState.activeRule;return t&&t._menu.subForm==="object"?{validator:this.t("validate.modes.validator")}:{min:this.t("validate.modes.min"),max:this.t("validate.modes.max"),len:this.t("validate.modes.len"),pattern:this.t("validate.modes.pattern"),validator:this.t("validate.modes.validator")}},triggers(){return ht(this.t,[{label:"blur",value:"blur"},{label:"change",value:"change"},{label:"submit",value:"submit"}])}},methods:{handleCommand(t){this.validate.push({transform:new Function("val","this.type = val == null ? 'string' : (Array.isArray(val) ? 'array' : (typeof val)); return val;"),mode:t,trigger:"blur"})},autoMessage(t){const r=this.designer.setupState.activeRule.title;this.designer.setupState.activeRule&&(t.message=this.t("validate.autoRequired",{title:r}),this.onInput())},getSpan(t){return["pattern","validator","required"].indexOf(t.mode)>-1?24:12},onInput:function(){this.$emit("update:modelValue",this.validate.map(t=>(t={...t},t.message||delete t.message,t)))},remove(t){this.validate.splice(t,1),this.onInput()},parseValue(t){return Ct(t.map(r=>(r.validator&&(r.mode="validator"),r.mode||Object.keys(r).forEach(a=>{["message","type","trigger","mode"].indexOf(a)<0&&(r.mode=a)}),r)))}}}),B0={class:"_fd-validate"},I0={class:"_fd-validate-item"},M0={class:"_fd-validate-title"},P0=["onClick"];function L0(t,r,a,o,n,s){const d=l.resolveComponent("el-option"),c=l.resolveComponent("el-select"),p=l.resolveComponent("el-form-item"),m=l.resolveComponent("el-col"),v=l.resolveComponent("elInput"),y=l.resolveComponent("FnInput"),E=l.resolveComponent("el-input-number"),D=l.resolveComponent("LanguageInput"),C=l.resolveComponent("el-row"),x=l.resolveComponent("el-button"),A=l.resolveComponent("el-dropdown-item"),g=l.resolveComponent("el-dropdown-menu"),b=l.resolveComponent("el-dropdown");return l.openBlock(),l.createElementBlock("div",B0,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.validate,(N,T)=>(l.openBlock(),l.createElementBlock("div",I0,[l.createElementVNode("div",M0,[l.createElementVNode("div",null,[l.createElementVNode("span",null,l.toDisplayString(T+1),1),l.createTextVNode(" "+l.toDisplayString(t.modes[N.mode]),1)]),l.createElementVNode("i",{class:"fc-icon icon-delete2",onClick:O=>t.remove(T)},null,8,P0)]),l.createVNode(C,null,{default:l.withCtx(()=>[l.createVNode(m,{span:t.getSpan(N)},{default:l.withCtx(()=>[l.createVNode(p,{label:t.t("validate.mode")},{default:l.withCtx(()=>[l.createVNode(c,{modelValue:N.trigger,"onUpdate:modelValue":O=>N.trigger=O,onChange:t.onInput},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.triggers,O=>(l.openBlock(),l.createBlock(d,{key:O.value,label:O.label,value:O.value},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"])]),_:2},1032,["span"]),l.createVNode(m,{span:t.getSpan(N)},{default:l.withCtx(()=>[l.createVNode(p,{label:t.modes[N.mode]},{default:l.withCtx(()=>[N.mode==="pattern"?(l.openBlock(),l.createBlock(v,{key:0,modelValue:N[N.mode],"onUpdate:modelValue":O=>N[N.mode]=O,onChange:t.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])):N.mode==="validator"?(l.openBlock(),l.createBlock(y,{key:1,modelValue:N[N.mode],"onUpdate:modelValue":O=>N[N.mode]=O,name:"name",args:["rule","value","callback"],onChange:t.onInput},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("validate.modes.validator")),1)]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])):(l.openBlock(),l.createBlock(E,{key:2,modelValue:N[N.mode],"onUpdate:modelValue":O=>N[N.mode]=O,onChange:t.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"]))]),_:2},1032,["label"])]),_:2},1032,["span"]),l.createVNode(m,{span:24},{default:l.withCtx(()=>[l.createVNode(p,{label:t.t("validate.message")},{default:l.withCtx(()=>[l.createVNode(D,{modelValue:N.message,"onUpdate:modelValue":O=>N.message=O,placeholder:t.t("validate.requiredPlaceholder"),onChange:t.onInput},null,8,["modelValue","onUpdate:modelValue","placeholder","onChange"])]),_:2},1032,["label"])]),_:2},1024)]),_:2},1024)]))),256)),l.createVNode(b,{trigger:"click",size:"default","popper-class":"_fd-validate-pop",onCommand:t.handleCommand},{dropdown:l.withCtx(()=>[l.createVNode(g,null,{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.modes,(N,T)=>(l.openBlock(),l.createBlock(A,{command:T,key:T},{default:l.withCtx(()=>[l.createElementVNode("div",null,l.toDisplayString(N),1)]),_:2},1032,["command"]))),128))]),_:1})]),default:l.withCtx(()=>[l.createVNode(x,{class:"_fd-validate-btn",size:"small"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.t("validate.rule"))+" +",1)]),_:1})]),_:1},8,["onCommand"])])}const V0=We(k0,[["render",L0]]),Ew="",F0=l.defineComponent({name:"Required",components:{LanguageInput:as},emits:["update:modelValue"],props:{modelValue:{}},inject:["designer"],watch:{required(){this.update()},requiredMsg(){this.update()},modelValue(t){const r=Xe.String(t);this.required=t===void 0?!1:r?!0:!!t,this.requiredMsg=r?t:""}},computed:{t(){return this.designer.setupState.t}},data(){const t=Xe.String(this.modelValue);return{required:this.modelValue===void 0?!1:t?!0:!!this.modelValue,requiredMsg:t?this.modelValue:""}},methods:{update(){let t;this.required===!1?t=!1:t=this.requiredMsg||!0,this.$emit("update:modelValue",t)}}}),$0={class:"_fd-required"};function H0(t,r,a,o,n,s){const d=l.resolveComponent("el-switch"),c=l.resolveComponent("LanguageInput");return l.openBlock(),l.createElementBlock("div",$0,[l.createVNode(d,{modelValue:t.required,"onUpdate:modelValue":r[0]||(r[0]=p=>t.required=p)},null,8,["modelValue"]),t.required?(l.openBlock(),l.createBlock(c,{key:0,modelValue:t.requiredMsg,"onUpdate:modelValue":r[1]||(r[1]=p=>t.requiredMsg=p),placeholder:t.t("validate.requiredPlaceholder")},null,8,["modelValue","placeholder"])):l.createCommentVNode("",!0)])}const z0=We(F0,[["render",H0]]),Sw="",j0=l.defineComponent({name:"ValueInput",emits:["update:modelValue","change","change-type","blur"],inject:["designer"],props:{modelValue:[String,Number,Boolean]},data(){return{type:"1",value:""}},computed:{t(){return this.designer.setupState.t}},watch:{modelValue:{handler:function(t){typeof t=="number"?this.type="2":typeof t=="boolean"?this.type="3":this.type="1",this.value=t==null?"":""+t},immediate:!0},type(){this.updateValue(this.value),this.$emit("change-type",this.type)}},methods:{onBlur(...t){this.value!==this.toValue(this.modelValue)&&this.updateValue(this.value),this.$emit("blur",...t)},updateValue(t){const r=this.toValue(t);this.$emit("update:modelValue",r),this.$emit("change",r)},toValue(t){return this.type==="1"?""+t:this.type==="2"?parseFloat(t)||0:t==="true"}}});function U0(t,r,a,o,n,s){const d=l.resolveComponent("el-option"),c=l.resolveComponent("el-select"),p=l.resolveComponent("el-input");return l.openBlock(),l.createBlock(p,l.mergeProps({class:"_fd-value-input",modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=m=>t.value=m),onBlur:t.onBlur},t.$attrs),l.createSlots({prepend:l.withCtx(()=>[l.createVNode(c,{modelValue:t.type,"onUpdate:modelValue":r[0]||(r[0]=m=>t.type=m),style:{width:"60px"}},{default:l.withCtx(()=>[l.createVNode(d,{label:t.t("validate.types.string"),value:"1"},null,8,["label"]),l.createVNode(d,{label:t.t("validate.types.number"),value:"2"},null,8,["label"]),l.createVNode(d,{label:t.t("validate.types.boolean"),value:"3"},null,8,["label"])]),_:1},8,["modelValue"])]),_:2},[t.$slots.append?{name:"append",fn:l.withCtx(()=>[l.renderSlot(t.$slots,"append")]),key:"0"}:void 0]),1040,["modelValue","onBlur"])}const ls=We(j0,[["render",U0]]),xw="",W0=l.defineComponent({name:"TableOptions",emits:["update:modelValue","change"],components:{ValueInput:ls},props:{modelValue:[Array,Object],column:{type:Array,default:()=>[{label:"label",key:"label"},{label:"value",key:"value"}]},valueType:String,max:Number,size:String},inject:["designer"],watch:{modelValue(){this.value=this.tidyModelValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{value:this.tidyModelValue()}},methods:{tidyModelValue(){const t=this.modelValue;return this.valueType==="string"?(t||[]).map(r=>({value:""+r})):this.valueType==="object"?Object.keys(t||{}).map(r=>({label:r,value:t[r]})):[...t||[]].map(r=>su(r))},tidyValue(){if(this.valueType==="object"){const t={};return this.value.forEach(r=>{r.label&&r.value&&(t[r.label]=r.value)}),t}else return this.value.map(t=>this.valueType==="string"?t.value:{...t})},onInput(t){if(this.column.length===1&&t[this.column[0].key]==="")return;this.column.every(a=>a.required===!1?!0:["object","string"].indexOf(this.valueType)>-1?t[a.key]!==void 0&&t[a.key]!==""&&t[a.key]!==null:t[a.key]!==void 0)&&this.input()},input(){const t=this.tidyValue();this.$emit("update:modelValue",t),this.$emit("change",t)},add(){this.value.push(this.column.reduce((t,r)=>(t[r.key]="",t),{}))},del(t){this.value.splice(t,1),this.input()}}}),K0={class:"_td-table-opt"},G0=["onClick"],Y0={class:"_td-table-opt-handle"};function Q0(t,r,a,o,n,s){const d=l.resolveComponent("ValueInput"),c=l.resolveComponent("el-input"),p=l.resolveComponent("el-table-column"),m=l.resolveComponent("el-table"),v=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",K0,[l.createVNode(m,{data:t.value,border:"",size:t.size||"small",style:{width:"100%"}},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.column,(y,E)=>(l.openBlock(),l.createBlock(p,{key:y.label+E,label:y.label},{default:l.withCtx(D=>[y.value?(l.openBlock(),l.createBlock(d,{key:0,size:t.size||"small",modelValue:D.row[y.key],"onUpdate:modelValue":C=>D.row[y.key]=C,onBlur:C=>t.onInput(D.row),onChangeType:C=>t.onInput(D.row)},null,8,["size","modelValue","onUpdate:modelValue","onBlur","onChangeType"])):(l.openBlock(),l.createBlock(c,{key:1,size:t.size||"small",modelValue:D.row[y.key]||"","onUpdate:modelValue":C=>D.row[y.key]=C,onBlur:C=>t.onInput(D.row)},null,8,["size","modelValue","onUpdate:modelValue","onBlur"]))]),_:2},1032,["label"]))),128)),l.createVNode(p,{width:"45",align:"center",fixed:"right"},{default:l.withCtx(y=>[l.createElementVNode("i",{class:"fc-icon icon-delete",onClick:E=>t.del(y.$index)},null,8,G0)]),_:1})]),_:1},8,["data","size"]),l.createElementVNode("div",Y0,[!t.max||t.max>t.value.length?(l.openBlock(),l.createBlock(v,{key:0,link:"",type:"primary",onClick:t.add},{default:l.withCtx(()=>[r[0]||(r[0]=l.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)),l.createTextVNode(" "+l.toDisplayString(t.t("tableOptions.add")),1)]),_:1,__:[0]},8,["onClick"])):l.createCommentVNode("",!0)])])}const hd=We(W0,[["render",Q0],["__scopeId","data-v-27bd6a26"]]),Tw="",X0=l.defineComponent({name:"TreeOptions",emits:["update:modelValue"],components:{ValueInput:ls},props:{modelValue:Array,columns:Object},inject:["designer"],data(){return{value:[...Ct(this.modelValue||[])]}},computed:{t(){return this.designer.setupState.t},overColumns(){return this.columns?{label:this.columns.label||"label",value:this.columns.value||"value"}:{label:"label",value:"value"}}},created(){this.value.length||(this.value=[{}])},methods:{tidyValue(){return Ct(this.value)},change(){this.$emit("update:modelValue",this.tidyValue())},add(t){const r=t.parent;(r.data.children||r.data).push({})},append(t){t.children||(t.children=[]),t.children.push({})},remove(t,r){const a=t.parent;a.data.children?(a.data.children.splice(a.data.children.indexOf(r),1),a.data.children.length||delete a.data.children):a.data.splice(a.data.indexOf(r),1),this.change()}}}),J0={class:"_fd-tree-opt"},Z0={class:"_fd-tree-opt-node"},q0=["onClick"],eb=["onClick"],tb=["onClick"];function nb(t,r,a,o,n,s){const d=l.resolveComponent("el-input"),c=l.resolveComponent("ValueInput"),p=l.resolveComponent("el-tree");return l.openBlock(),l.createElementBlock("div",J0,[l.createVNode(p,{data:t.value,"node-key":"index","expand-on-click-node":!1},{default:l.withCtx(({node:m,data:v})=>[l.createElementVNode("div",Z0,[l.createVNode(d,{class:"_fd-tree-opt-first",modelValue:v[t.overColumns.label],"onUpdate:modelValue":y=>v[t.overColumns.label]=y,onBlur:t.change},null,8,["modelValue","onUpdate:modelValue","onBlur"]),l.createVNode(c,{class:"_fd-tree-opt-last",modelValue:v[t.overColumns.value],"onUpdate:modelValue":y=>v[t.overColumns.value]=y,onBlur:t.change,onChangeType:t.change},{append:l.withCtx(()=>[l.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:y=>t.add(m,v)},r[0]||(r[0]=[l.createElementVNode("i",{class:"fc-icon icon-add"},null,-1)]),8,q0),l.createElementVNode("div",{class:"_fd-tree-opt-btn",onClick:y=>t.append(v)},r[1]||(r[1]=[l.createElementVNode("i",{class:"fc-icon icon-add-child"},null,-1)]),8,eb),l.createElementVNode("div",{class:"_fd-tree-opt-btn _fd-tree-opt-danger",onClick:y=>t.remove(m,v)},r[2]||(r[2]=[l.createElementVNode("i",{class:"fc-icon icon-delete"},null,-1)]),8,tb)]),_:2},1032,["modelValue","onUpdate:modelValue","onBlur","onChangeType"])])]),_:1},8,["data"])])}const ib=We(X0,[["render",nb]]),Nw="",rb=l.defineComponent({name:"TableFormView",data(){return{}}}),ob={class:"_fd-table-form"},ab={key:0,class:"_fd-tf-wrap"},lb={key:1,class:"_fc-child-empty"};function sb(t,r,a,o,n,s){return l.openBlock(),l.createElementBlock("div",ob,[t.$slots.default?(l.openBlock(),l.createElementBlock("div",ab,[l.renderSlot(t.$slots,"default")])):(l.openBlock(),l.createElementBlock("div",lb))])}const ub=We(rb,[["render",sb]]),_w="",fb={name:"TableForm",emits:["change","add","delete","update:modelValue"],props:{formCreateInject:Object,modelValue:{type:Array,default:()=>[]},columns:{type:Array,required:!0,default:()=>[]},filterEmptyColumn:{type:Boolean,default:!0},deletable:{type:Boolean,default:!0},addable:{type:Boolean,default:!0},options:{type:Object,default:()=>l.reactive({submitBtn:!1,resetBtn:!1})},max:Number,min:Number,disabled:Boolean},watch:{modelValue:{handler(){this.updateTable()},deep:!0},"formCreateInject.preview":function(t){this.emptyRule.children[0].props.colspan=this.columns.length+(t?1:2)}},data(){return{rule:[],trs:[],fapi:{},Form:l.markRaw(this.formCreateInject.form.$form()),copyTrs:"",oldValue:"",emptyRule:{type:"tr",_isEmpty:!0,native:!0,subRule:!0,children:[{type:"td",style:{textAlign:"center"},native:!0,subRule:!0,props:{colspan:this.columns.length+(this.formCreateInject.preview?1:2)},children:[this.formCreateInject.t("dataEmpty")||"\u6682\u65E0\u6570\u636E"]}]}}},methods:{formChange(){this.updateValue()},updateValue(){const t=this.trs.map((a,o)=>({...this.modelValue[o]||{},...this.fapi.getChildrenFormData(a)})).filter(a=>{if(!this.filterEmptyColumn)return!0;if(a==null)return!1;let o=!1;return Object.keys(a).forEach(n=>{o=o||a[n]!==void 0&&a[n]!==""&&a[n]!==null}),o}),r=JSON.stringify(t);r!==this.oldValue&&(this.oldValue=r,this.$emit("update:modelValue",t),this.$emit("change",t))},setRawData(t,r){const a=this.trs[t];this.fapi.setChildrenFormData(a,r,!0)},updateTable(){const t=JSON.stringify(this.modelValue);this.oldValue!==t&&(this.oldValue=t,this.trs=this.trs.splice(0,this.modelValue.length),this.modelValue.length?this.clearEmpty():this.addEmpty(),this.modelValue.forEach((r,a)=>{this.trs[a]||this.addRaw(),this.setRawData(a,r||{})}),this.rule[0].children[1].children=this.trs)},addEmpty(){this.trs.length&&this.trs.splice(0,this.trs.length),this.trs.push(this.emptyRule)},clearEmpty(){this.trs[0]&&this.trs[0]._isEmpty&&this.trs.splice(0,1)},delRaw(t){this.disabled||!this.deletable||this.min>0&&this.trs.length<=this.min||(this.trs.splice(t,1),this.updateValue(),this.trs.length?this.trs.forEach(r=>this.updateRaw(r)):this.addEmpty(),this.$emit("delete",t))},addRaw(t){if(t&&this.disabled)return;const r=this.formCreateInject.form.parseJson(this.copyTrs)[0];this.trs.length===1&&this.trs[0]._isEmpty&&this.trs.splice(0,1),this.trs.push(r),this.updateRaw(r),t&&(this.$emit("add",this.trs.length),this.updateValue())},updateRaw(t){const r=this.trs.indexOf(t);t.children[0].props.innerText=r+1,t.children[t.children.length-1].children[0].props.onClick=()=>{this.delRaw(r)}},loadRule(){const t=[{type:"th",native:!0,class:"_fc-tf-head-idx",props:{innerText:"#"}}];let r=[{type:"td",class:"_fc-tf-idx",native:!0,props:{innerText:"0"}}];this.columns.forEach(a=>{t.push({type:"th",native:!0,style:{...a.style||{},textAlign:a.align||"center"},class:a.required?"_fc-tf-head-required":"",props:{innerText:a.label||""}}),r.push({type:"td",native:!0,children:[...a.rule||[]]})}),t.push({type:"th",native:!0,class:"_fc-tf-edit fc-clock",props:{innerText:this.formCreateInject.t("operation")||"\u64CD\u4F5C"}}),r.push({type:"td",native:!0,class:"_fc-tf-btn fc-clock",children:[{type:"i",native:!0,class:"fc-icon icon-delete",props:{}}]}),this.copyTrs=this.formCreateInject.form.toJson([{type:"tr",native:!0,subRule:!0,children:r}]),this.rule=[{type:"table",native:!0,class:"_fc-tf-table",props:{border:"1",cellspacing:"0",cellpadding:"0"},children:[{type:"thead",native:!0,children:[{type:"tr",native:!0,children:t}]},{type:"tbody",native:!0,children:this.trs}]}]}},created(){this.loadRule()},mounted(){this.updateTable()}};function db(t,r,a,o,n,s){const d=l.resolveComponent("el-button");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fc-table-form",{"_fc-disabled":a.disabled}])},[(l.openBlock(),l.createBlock(l.resolveDynamicComponent(n.Form),{option:a.options,rule:n.rule,extendOption:!0,disabled:a.disabled,onChange:s.formChange,api:n.fapi,"onUpdate:api":r[0]||(r[0]=c=>n.fapi=c),onEmitEvent:t.$emit},null,40,["option","rule","disabled","onChange","api","onEmitEvent"])),a.addable&&(!a.max||a.max>this.trs.length)?(l.openBlock(),l.createBlock(d,{key:0,link:"",type:"primary",class:"fc-clock",onClick:r[1]||(r[1]=c=>s.addRaw(!0))},{default:l.withCtx(()=>[r[2]||(r[2]=l.createElementVNode("i",{class:"fc-icon icon-add-circle",style:{"font-weight":"700"}},null,-1)),l.createTextVNode(" "+l.toDisplayString(a.formCreateInject.t("add")||"\u6DFB\u52A0"),1)]),_:1,__:[2]})):l.createCommentVNode("",!0)],2)}const cb=We(fb,[["render",db]]);/*!
* Signature Pad v5.0.10 | https://github.com/szimek/signature_pad
* (c) 2025 Szymon Nowak | Released under the MIT license
*/class Go{constructor(r,a,o,n){if(isNaN(r)||isNaN(a))throw new Error(`Point is invalid: (${r}, ${a})`);this.x=+r,this.y=+a,this.pressure=o||0,this.time=n||Date.now()}distanceTo(r){return Math.sqrt(Math.pow(this.x-r.x,2)+Math.pow(this.y-r.y,2))}equals(r){return this.x===r.x&&this.y===r.y&&this.pressure===r.pressure&&this.time===r.time}velocityFrom(r){return this.time!==r.time?this.distanceTo(r)/(this.time-r.time):0}}class ss{static fromPoints(r,a){const o=this.calculateControlPoints(r[0],r[1],r[2]).c2,n=this.calculateControlPoints(r[1],r[2],r[3]).c1;return new ss(r[1],o,n,r[2],a.start,a.end)}static calculateControlPoints(r,a,o){const n=r.x-a.x,s=r.y-a.y,d=a.x-o.x,c=a.y-o.y,p={x:(r.x+a.x)/2,y:(r.y+a.y)/2},m={x:(a.x+o.x)/2,y:(a.y+o.y)/2},v=Math.sqrt(n*n+s*s),y=Math.sqrt(d*d+c*c),E=p.x-m.x,D=p.y-m.y,C=v+y==0?0:y/(v+y),x={x:m.x+E*C,y:m.y+D*C},A=a.x-x.x,g=a.y-x.y;return{c1:new Go(p.x+A,p.y+g),c2:new Go(m.x+A,m.y+g)}}constructor(r,a,o,n,s,d){this.startPoint=r,this.control2=a,this.control1=o,this.endPoint=n,this.startWidth=s,this.endWidth=d}length(){let a=0,o,n;for(let s=0;s<=10;s+=1){const d=s/10,c=this.point(d,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),p=this.point(d,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(s>0){const m=c-o,v=p-n;a+=Math.sqrt(m*m+v*v)}o=c,n=p}return a}point(r,a,o,n,s){return a*(1-r)*(1-r)*(1-r)+3*o*(1-r)*(1-r)*r+3*n*(1-r)*r*r+s*r*r*r}}class pb{constructor(){try{this._et=new EventTarget}catch{this._et=document}}addEventListener(r,a,o){this._et.addEventListener(r,a,o)}dispatchEvent(r){return this._et.dispatchEvent(r)}removeEventListener(r,a,o){this._et.removeEventListener(r,a,o)}}function hb(t,r=250){let a=0,o=null,n,s,d;const c=()=>{a=Date.now(),o=null,n=t.apply(s,d),o||(s=null,d=[])};return function(...m){const v=Date.now(),y=r-(v-a);return s=this,d=m,y<=0||y>r?(o&&(clearTimeout(o),o=null),a=v,n=t.apply(s,d),o||(s=null,d=[])):o||(o=window.setTimeout(c,y)),n}}class Yo extends pb{constructor(r,a={}){var o,n,s;super(),this.canvas=r,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this.velocityFilterWeight=a.velocityFilterWeight||.7,this.minWidth=a.minWidth||.5,this.maxWidth=a.maxWidth||2.5,this.throttle=(o=a.throttle)!==null&&o!==void 0?o:16,this.minDistance=(n=a.minDistance)!==null&&n!==void 0?n:5,this.dotSize=a.dotSize||0,this.penColor=a.penColor||"black",this.backgroundColor=a.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=a.compositeOperation||"source-over",this.canvasContextOptions=(s=a.canvasContextOptions)!==null&&s!==void 0?s:{},this._strokeMoveUpdate=this.throttle?hb(Yo.prototype._strokeUpdate,this.throttle):Yo.prototype._strokeUpdate,this._handleMouseDown=this._handleMouseDown.bind(this),this._handleMouseMove=this._handleMouseMove.bind(this),this._handleMouseUp=this._handleMouseUp.bind(this),this._handleTouchStart=this._handleTouchStart.bind(this),this._handleTouchMove=this._handleTouchMove.bind(this),this._handleTouchEnd=this._handleTouchEnd.bind(this),this._handlePointerDown=this._handlePointerDown.bind(this),this._handlePointerMove=this._handlePointerMove.bind(this),this._handlePointerUp=this._handlePointerUp.bind(this),this._ctx=r.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:r,canvas:a}=this;r.fillStyle=this.backgroundColor,r.clearRect(0,0,a.width,a.height),r.fillRect(0,0,a.width,a.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0,this._strokePointerId=void 0}fromDataURL(r,a={}){return new Promise((o,n)=>{const s=new Image,d=a.ratio||window.devicePixelRatio||1,c=a.width||this.canvas.width/d,p=a.height||this.canvas.height/d,m=a.xOffset||0,v=a.yOffset||0;this._reset(this._getPointGroupOptions()),s.onload=()=>{this._ctx.drawImage(s,m,v,c,p),o()},s.onerror=y=>{n(y)},s.crossOrigin="anonymous",s.src=r,this._isEmpty=!1})}toDataURL(r="image/png",a){switch(r){case"image/svg+xml":return typeof a!="object"&&(a=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(a))}`;default:return typeof a!="number"&&(a=void 0),this.canvas.toDataURL(r,a)}}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const r=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!r?this._handlePointerEvents():(this._handleMouseEvents(),"ontouchstart"in window&&this._handleTouchEvents())}off(){this.canvas.style.touchAction="auto",this.canvas.style.msTouchAction="auto",this.canvas.style.userSelect="auto",this.canvas.removeEventListener("pointerdown",this._handlePointerDown),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this._removeMoveUpEventListeners()}_getListenerFunctions(){var r;const a=window.document===this.canvas.ownerDocument?window:(r=this.canvas.ownerDocument.defaultView)!==null&&r!==void 0?r:this.canvas.ownerDocument;return{addEventListener:a.addEventListener.bind(a),removeEventListener:a.removeEventListener.bind(a)}}_removeMoveUpEventListeners(){const{removeEventListener:r}=this._getListenerFunctions();r("pointermove",this._handlePointerMove),r("pointerup",this._handlePointerUp),r("mousemove",this._handleMouseMove),r("mouseup",this._handleMouseUp),r("touchmove",this._handleTouchMove),r("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(r,{clear:a=!0}={}){a&&this.clear(),this._fromData(r,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(r)}toData(){return this._data}_isLeftButtonPressed(r,a){return a?r.buttons===1:(r.buttons&1)===1}_pointerEventToSignatureEvent(r){return{event:r,type:r.type,x:r.clientX,y:r.clientY,pressure:"pressure"in r?r.pressure:0}}_touchEventToSignatureEvent(r){const a=r.changedTouches[0];return{event:r,type:r.type,x:a.clientX,y:a.clientY,pressure:a.force}}_handleMouseDown(r){!this._isLeftButtonPressed(r,!0)||this._drawingStroke||this._strokeBegin(this._pointerEventToSignatureEvent(r))}_handleMouseMove(r){if(!this._isLeftButtonPressed(r,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(r),!1);return}this._strokeMoveUpdate(this._pointerEventToSignatureEvent(r))}_handleMouseUp(r){this._isLeftButtonPressed(r)||this._strokeEnd(this._pointerEventToSignatureEvent(r))}_handleTouchStart(r){r.targetTouches.length!==1||this._drawingStroke||(r.cancelable&&r.preventDefault(),this._strokeBegin(this._touchEventToSignatureEvent(r)))}_handleTouchMove(r){if(r.targetTouches.length===1){if(r.cancelable&&r.preventDefault(),!this._drawingStroke){this._strokeEnd(this._touchEventToSignatureEvent(r),!1);return}this._strokeMoveUpdate(this._touchEventToSignatureEvent(r))}}_handleTouchEnd(r){r.targetTouches.length===0&&(r.cancelable&&r.preventDefault(),this._strokeEnd(this._touchEventToSignatureEvent(r)))}_getPointerId(r){return r.persistentDeviceId||r.pointerId}_allowPointerId(r,a=!1){return typeof this._strokePointerId>"u"?a:this._getPointerId(r)===this._strokePointerId}_handlePointerDown(r){this._drawingStroke||!this._isLeftButtonPressed(r)||!this._allowPointerId(r,!0)||(this._strokePointerId=this._getPointerId(r),r.preventDefault(),this._strokeBegin(this._pointerEventToSignatureEvent(r)))}_handlePointerMove(r){if(!!this._allowPointerId(r)){if(!this._isLeftButtonPressed(r,!0)||!this._drawingStroke){this._strokeEnd(this._pointerEventToSignatureEvent(r),!1);return}r.preventDefault(),this._strokeMoveUpdate(this._pointerEventToSignatureEvent(r))}}_handlePointerUp(r){this._isLeftButtonPressed(r)||!this._allowPointerId(r)||(r.preventDefault(),this._strokeEnd(this._pointerEventToSignatureEvent(r)))}_getPointGroupOptions(r){return{penColor:r&&"penColor"in r?r.penColor:this.penColor,dotSize:r&&"dotSize"in r?r.dotSize:this.dotSize,minWidth:r&&"minWidth"in r?r.minWidth:this.minWidth,maxWidth:r&&"maxWidth"in r?r.maxWidth:this.maxWidth,velocityFilterWeight:r&&"velocityFilterWeight"in r?r.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:r&&"compositeOperation"in r?r.compositeOperation:this.compositeOperation}}_strokeBegin(r){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:r,cancelable:!0})))return;const{addEventListener:o}=this._getListenerFunctions();switch(r.event.type){case"mousedown":o("mousemove",this._handleMouseMove,{passive:!1}),o("mouseup",this._handleMouseUp,{passive:!1});break;case"touchstart":o("touchmove",this._handleTouchMove,{passive:!1}),o("touchend",this._handleTouchEnd,{passive:!1});break;case"pointerdown":o("pointermove",this._handlePointerMove,{passive:!1}),o("pointerup",this._handlePointerUp,{passive:!1});break}this._drawingStroke=!0;const n=this._getPointGroupOptions(),s=Object.assign(Object.assign({},n),{points:[]});this._data.push(s),this._reset(n),this._strokeUpdate(r)}_strokeUpdate(r){if(!this._drawingStroke)return;if(this._data.length===0){this._strokeBegin(r);return}this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:r}));const a=this._createPoint(r.x,r.y,r.pressure),o=this._data[this._data.length-1],n=o.points,s=n.length>0&&n[n.length-1],d=s?a.distanceTo(s)<=this.minDistance:!1,c=this._getPointGroupOptions(o);if(!s||!(s&&d)){const p=this._addPoint(a,c);s?p&&this._drawCurve(p,c):this._drawDot(a,c),n.push({time:a.time,x:a.x,y:a.y,pressure:a.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:r}))}_strokeEnd(r,a=!0){this._removeMoveUpEventListeners(),this._drawingStroke&&(a&&this._strokeUpdate(r),this._drawingStroke=!1,this._strokePointerId=void 0,this.dispatchEvent(new CustomEvent("endStroke",{detail:r})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerDown,{passive:!1})}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown,{passive:!1})}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart,{passive:!1})}_reset(r){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(r.minWidth+r.maxWidth)/2,this._ctx.fillStyle=r.penColor,this._ctx.globalCompositeOperation=r.compositeOperation}_createPoint(r,a,o){const n=this.canvas.getBoundingClientRect();return new Go(r-n.left,a-n.top,o,new Date().getTime())}_addPoint(r,a){const{_lastPoints:o}=this;if(o.push(r),o.length>2){o.length===3&&o.unshift(o[0]);const n=this._calculateCurveWidths(o[1],o[2],a),s=ss.fromPoints(o,n);return o.shift(),s}return null}_calculateCurveWidths(r,a,o){const n=o.velocityFilterWeight*a.velocityFrom(r)+(1-o.velocityFilterWeight)*this._lastVelocity,s=this._strokeWidth(n,o),d={end:s,start:this._lastWidth};return this._lastVelocity=n,this._lastWidth=s,d}_strokeWidth(r,a){return Math.max(a.maxWidth/(r+1),a.minWidth)}_drawCurveSegment(r,a,o){const n=this._ctx;n.moveTo(r,a),n.arc(r,a,o,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(r,a){const o=this._ctx,n=r.endWidth-r.startWidth,s=Math.ceil(r.length())*2;o.beginPath(),o.fillStyle=a.penColor;for(let d=0;d<s;d+=1){const c=d/s,p=c*c,m=p*c,v=1-c,y=v*v,E=y*v;let D=E*r.startPoint.x;D+=3*y*c*r.control1.x,D+=3*v*p*r.control2.x,D+=m*r.endPoint.x;let C=E*r.startPoint.y;C+=3*y*c*r.control1.y,C+=3*v*p*r.control2.y,C+=m*r.endPoint.y;const x=Math.min(r.startWidth+m*n,a.maxWidth);this._drawCurveSegment(D,C,x)}o.closePath(),o.fill()}_drawDot(r,a){const o=this._ctx,n=a.dotSize>0?a.dotSize:(a.minWidth+a.maxWidth)/2;o.beginPath(),this._drawCurveSegment(r.x,r.y,n),o.closePath(),o.fillStyle=a.penColor,o.fill()}_fromData(r,a,o){for(const n of r){const{points:s}=n,d=this._getPointGroupOptions(n);if(s.length>1)for(let c=0;c<s.length;c+=1){const p=s[c],m=new Go(p.x,p.y,p.pressure,p.time);c===0&&this._reset(d);const v=this._addPoint(m,d);v&&a(v,d)}else this._reset(d),o(s[0],d)}}toSVG({includeBackgroundColor:r=!1}={}){const a=this._data,o=Math.max(window.devicePixelRatio||1,1),n=0,s=0,d=this.canvas.width/o,c=this.canvas.height/o,p=document.createElementNS("http://www.w3.org/2000/svg","svg");if(p.setAttribute("xmlns","http://www.w3.org/2000/svg"),p.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),p.setAttribute("viewBox",`${n} ${s} ${d} ${c}`),p.setAttribute("width",d.toString()),p.setAttribute("height",c.toString()),r&&this.backgroundColor){const m=document.createElement("rect");m.setAttribute("width","100%"),m.setAttribute("height","100%"),m.setAttribute("fill",this.backgroundColor),p.appendChild(m)}return this._fromData(a,(m,{penColor:v})=>{const y=document.createElement("path");if(!isNaN(m.control1.x)&&!isNaN(m.control1.y)&&!isNaN(m.control2.x)&&!isNaN(m.control2.y)){const E=`M ${m.startPoint.x.toFixed(3)},${m.startPoint.y.toFixed(3)} C ${m.control1.x.toFixed(3)},${m.control1.y.toFixed(3)} ${m.control2.x.toFixed(3)},${m.control2.y.toFixed(3)} ${m.endPoint.x.toFixed(3)},${m.endPoint.y.toFixed(3)}`;y.setAttribute("d",E),y.setAttribute("stroke-width",(m.endWidth*2.25).toFixed(3)),y.setAttribute("stroke",v),y.setAttribute("fill","none"),y.setAttribute("stroke-linecap","round"),p.appendChild(y)}},(m,{penColor:v,dotSize:y,minWidth:E,maxWidth:D})=>{const C=document.createElement("circle"),x=y>0?y:(E+D)/2;C.setAttribute("r",x.toString()),C.setAttribute("cx",m.x.toString()),C.setAttribute("cy",m.y.toString()),C.setAttribute("fill",v),p.appendChild(C)}),p.outerHTML}}const Dw="",mb=l.defineComponent({name:"SignaturePad",emits:["update:modelValue","change","remove"],data(){return{visible:!1,isEmpty:!0,signaturePad:null}},props:{modelValue:String,penColor:String,disabled:Boolean,formCreateInject:Object},watch:{visible(t){t?(this.isEmpty=!0,this.$nextTick(()=>{this.signaturePad=l.markRaw(new Yo(this.$refs.pad,{penColor:this.penColor})),this.signaturePad.addEventListener("endStroke",()=>{this.isEmpty=this.signaturePad.isEmpty()})})):(this.signaturePad.off(),this.signaturePad=null)}},methods:{open(){this.disabled||(this.visible=!0)},clear(){this.signaturePad.clear(),this.isEmpty=!0},submit(){const t=this.signaturePad.toDataURL();this.updateValue(t),this.visible=!1},updateValue(t){this.$emit("update:modelValue",t),this.$emit("change",t)},remove(){this.disabled||(this.updateValue(""),this.$emit("remove"))}}}),gb={key:0,class:"_fc-signature-preview"},vb=["src"],yb={class:"_fc-signature-pad",ref:"pad",width:"600px",height:"270px"};function bb(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-dialog");return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fc-signature",{disabled:t.disabled}])},[t.modelValue?(l.openBlock(),l.createElementBlock("div",gb,[t.disabled?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("i",{key:0,class:"fc-icon icon-delete2",onClick:r[0]||(r[0]=(...p)=>t.remove&&t.remove(...p))})),l.createElementVNode("img",{src:t.modelValue,alt:"signature"},null,8,vb)])):(l.openBlock(),l.createElementBlock("div",{key:1,class:"_fc-signature-btn",onClick:r[1]||(r[1]=(...p)=>t.open&&t.open(...p))},[r[4]||(r[4]=l.createElementVNode("i",{class:"fc-icon icon-edit2"},null,-1)),l.createTextVNode(" "+l.toDisplayString(t.formCreateInject.t("signaturePadTip")||"\u70B9\u51FB\u6DFB\u52A0\u624B\u5199\u7B7E\u540D"),1)])),l.createVNode(c,{class:"_fc-signature-dialog",title:t.formCreateInject.t("signaturePadTitle")||"\u8BF7\u5728\u865A\u7EBF\u6846\u5185\u4E66\u5199",modelValue:t.visible,"onUpdate:modelValue":r[3]||(r[3]=p=>t.visible=p),"destroy-on-close":"","close-on-click-modal":!1,"append-to-body":"",width:"640px"},{footer:l.withCtx(()=>[l.createElementVNode("div",null,[l.createVNode(d,{size:"default",onClick:r[2]||(r[2]=p=>t.clear())},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.formCreateInject.t("reset")||"\u91CD\u7F6E"),1)]),_:1}),l.createVNode(d,{type:"primary",disabled:t.isEmpty,onClick:t.submit,size:"default"},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.formCreateInject.t("ok")||"\u786E\u5B9A"),1)]),_:1},8,["disabled","onClick"])])]),default:l.withCtx(()=>[l.createElementVNode("canvas",yb,null,512)]),_:1},8,["title","modelValue"])],2)}const Ab=We(mb,[["render",bb]]),Rw="",Cb=l.defineComponent({name:"FcTitle",data(){return{}},props:{title:String,size:String,align:String},computed:{textStyle(){return{textAlign:this.align||"left"}}}});function wb(t,r,a,o,n,s){return l.openBlock(),l.createElementBlock("div",{class:l.normalizeClass(["_fc-title",t.size||"h2"]),style:l.normalizeStyle(t.textStyle)},l.toDisplayString(t.title),7)}const Eb=We(Cb,[["render",wb]]),Ow="",Sb=l.defineComponent({name:"TableFormColumnView",props:{label:String,align:String,width:[Number,String],color:String,required:Boolean},computed:{colStyle(){const t=this.width,r={width:Xe.Number(t)?`${t}px`:!t||t==="auto"?"180px":t};return this.color&&(r.color=this.color),r}},data(){return{}}}),xb={key:0,class:"_fd-tf-required"},Tb={class:"_fd-tf-con"};function Nb(t,r,a,o,n,s){return l.openBlock(),l.createElementBlock("div",{class:"_fd-tf-col",style:l.normalizeStyle(t.colStyle)},[l.createElementVNode("div",{class:"_fd-tf-title",style:l.normalizeStyle({textAlign:t.align||"center"})},[t.required?(l.openBlock(),l.createElementBlock("span",xb,"*")):l.createCommentVNode("",!0),l.createTextVNode(l.toDisplayString(t.label||""),1)],4),l.createElementVNode("div",Tb,[l.renderSlot(t.$slots,"default")])],4)}const _b=We(Sb,[["render",Nb]]),kw="",Db=l.defineComponent({name:"SizeInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String,size:String,unit:{type:Array,default:()=>["auto","px","%","vh","vw","em","rem"]},defaultUnit:{type:String,default:"px"}},watch:{modelValue(){this.parseValue()}},data(){return{idx:1,num:0,oldValue:this.modelValue||""}},methods:{parseValue(){this.modelValue!=="auto"?(this.idx=Math.max(this.unit.indexOf(this.defaultUnit),0),this.unit.forEach((t,r)=>{(this.modelValue||"").indexOf(t)>-1&&(this.idx=r)}),this.num=$n(this.modelValue)?null:parseFloat(this.modelValue||0)):(this.idx=0,this.num=0)},submit(){this.oldValue=$n(this.num)?"":""+this.num+this.unit[this.idx],this.$emit("update:modelValue",this.oldValue),this.$emit("change",this.oldValue)},changeType(t){if(t!==void 0){if(this.idx===t)return;this.idx=t}else this.idx++,this.idx>4&&(this.idx=0);this.unit[this.idx]==="auto"?(this.oldValue="auto",this.$emit("update:modelValue","auto"),this.$emit("change","auto")):this.submit()}},created(){this.parseValue()}}),Rb={class:"_fd-size-input"};function Ob(t,r,a,o,n,s){const d=l.resolveComponent("el-button"),c=l.resolveComponent("el-inputNumber"),p=l.resolveComponent("el-dropdown-item"),m=l.resolveComponent("el-dropdown-menu"),v=l.resolveComponent("el-dropdown");return l.openBlock(),l.createElementBlock("div",Rb,[t.unit[t.idx]==="auto"?(l.openBlock(),l.createBlock(d,{key:0,size:t.size,style:{width:"150px"},onClick:r[0]||(r[0]=y=>t.changeType())},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.unit[t.idx]),1)]),_:1},8,["size"])):(l.openBlock(),l.createElementBlock(l.Fragment,{key:1},[l.createVNode(c,{size:t.size,modelValue:t.num,"onUpdate:modelValue":r[1]||(r[1]=y=>t.num=y),onChange:t.submit,"controls-position":"right"},null,8,["size","modelValue","onChange"]),l.createVNode(v,{trigger:"click",size:"small"},{dropdown:l.withCtx(()=>[l.createVNode(m,null,{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.unit,(y,E)=>(l.openBlock(),l.createBlock(p,{key:y,onClick:D=>t.changeType(E)},{default:l.withCtx(()=>[l.createElementVNode("div",null,l.toDisplayString(y),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),default:l.withCtx(()=>[l.createVNode(d,{size:t.size},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(t.unit[t.idx]),1)]),_:1},8,["size"])]),_:1})],64))])}const Fr=We(Db,[["render",Ob]]),Bw="",kb=l.defineComponent({name:"ColorInput",inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(t){this.$emit("update:modelValue",t),this.$emit("change",t)}},data(){return{value:this.modelValue||""}},methods:{},created(){}}),Bb={class:"_fd-color-input"};function Ib(t,r,a,o,n,s){const d=l.resolveComponent("el-color-picker"),c=l.resolveComponent("el-input");return l.openBlock(),l.createElementBlock("div",Bb,[l.createVNode(c,{clearable:"",modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=p=>t.value=p)},{append:l.withCtx(()=>[l.createVNode(d,{"show-alpha":"","color-format":"hex",modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=p=>t.value=p)},null,8,["modelValue"])]),_:1},8,["modelValue"])])}const Xi=We(kb,[["render",Ib]]),Iw="",Mb=l.defineComponent({name:"BoxSizeInput",components:{SizeInput:Fr,ConfigItem:oi},props:{modelValue:{type:Object,default:()=>({})}},inject:["designer"],emits:["update:modelValue","change"],data(){return{overflow:[{value:"visible",icon:"icon-eye"},{value:"hidden",icon:"icon-eye-close"},{value:"scroll",icon:"icon-scroll"},{value:"auto",text:"Auto"}],keys:["width","height","minWidth","minHeight","maxWidth","maxHeight"],boxStyle:{width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""}}},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},methods:{tidyValue(){this.boxStyle={width:"",minWidth:"",maxWidth:"",height:"",minHeight:"",maxHeight:"",overflow:""},this.modelValue&&Object.keys(this.boxStyle).forEach(t=>{this.modelValue[t]&&(this.boxStyle[t]=this.modelValue[t])})},onInput(){const t=Object.keys(this.boxStyle).reduce((r,a)=>(this.boxStyle[a]!==""&&(r[a]=this.boxStyle[a]),r),{});this.$emit("update:modelValue",t),this.$emit("change",t)},changeOverflow(t){this.boxStyle.overflow=this.boxStyle.overflow===t?"":t,this.onInput()},change(t,r){this.boxStyle[t]=r.target.value}},created(){this.tidyValue()}}),Pb={class:"_fd-box-size-input"},Lb={key:0,style:{"font-size":"12px","line-height":"16px"}};function Vb(t,r,a,o,n,s){const d=l.resolveComponent("SizeInput"),c=l.resolveComponent("el-form-item"),p=l.resolveComponent("el-radio-button"),m=l.resolveComponent("el-tooltip"),v=l.resolveComponent("el-radio-group"),y=l.resolveComponent("el-form"),E=l.resolveComponent("ConfigItem");return l.openBlock(),l.createElementBlock("div",Pb,[l.createVNode(E,{label:t.t("props.size"),info:Object.keys(t.modelValue).length>0?t.t("struct.configured"):""},{append:l.withCtx(()=>[l.createVNode(y,{"label-position":"top",size:"small"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.keys,D=>(l.openBlock(),l.createBlock(c,{label:t.t("style."+D),key:D},{default:l.withCtx(()=>[l.createVNode(d,{modelValue:t.boxStyle[D],"onUpdate:modelValue":C=>t.boxStyle[D]=C,onChange:t.onInput},null,8,["modelValue","onUpdate:modelValue","onChange"])]),_:2},1032,["label"]))),128)),l.createVNode(c,{label:t.t("style.overflow.name"),style:{"grid-column":"span 2"}},{default:l.withCtx(()=>[l.createVNode(v,{modelValue:t.boxStyle.overflow},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.overflow,D=>(l.openBlock(),l.createBlock(m,{effect:"dark",content:t.t("style.overflow."+D.value),placement:"top",persistent:"","hide-after":0,key:D.value},{default:l.withCtx(()=>[l.createVNode(p,{label:D.value,value:D.value,onClick:C=>t.changeOverflow(D.value)},{default:l.withCtx(()=>[D.text?(l.openBlock(),l.createElementBlock("span",Lb,"Auto ")):(l.openBlock(),l.createElementBlock("i",{key:1,class:l.normalizeClass(["fc-icon",D.icon])},null,2))]),_:2},1032,["label","value","onClick"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue"])]),_:1},8,["label"])]),_:1})]),_:1},8,["label","info"])])}const Fb=We(Mb,[["render",Vb]]),Mw="",$b=l.defineComponent({name:"BoxSpaceInput",components:{ConfigItem:oi},props:{modelValue:{type:Object,default:()=>({})}},inject:["designer"],emits:["update:modelValue","change"],data(){return{position:["Top","Right","Bottom","Left"],boxStyle:{margin:"",padding:"",marginLeft:"",marginRight:"",marginTop:"",marginBottom:"",paddingLeft:"",paddingRight:"",paddingTop:"",paddingBottom:""},marginLock:!1,paddingLock:!1}},watch:{modelValue(){this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},methods:{tidyValue(){this.boxStyle={},["margin","padding"].forEach(t=>{this.boxStyle[t]=this.modelValue[t]||"",this.position.forEach(r=>{this.boxStyle[t+r]=this.tidySize(this.modelValue[t+r]||this.modelValue[t]||"")})})},onInput(){const t=Object.keys(this.boxStyle).reduce((r,a)=>(this.boxStyle[a]!==""&&(r[a]=this.boxStyle[a]),r),{});this.$emit("update:modelValue",t),this.$emit("change",t)},tidySize(t){if(!/^(\d*\.?\d+)(px|rem|%|vh|vw|em)$/.test(t)){if(t==="auto")return t;const a=parseInt(t);return isNaN(a)?"":a+"px"}return t},setValue(t,r,a){const o=this.tidySize(a.target.value);t?this[t+"Lock"]?this.position.forEach(n=>{this.boxStyle[t+n]=o}):this.boxStyle[t+r]=o:this.boxStyle[r]=o,this.onInput()},change(t,r){this.boxStyle[t]=r.target.value},clear(t){this.position.forEach(r=>{this.boxStyle[t+r]=""}),this.onInput()},lock(t){const r=t+"Lock";this[r]=!this[r]}},created(){this.tidyValue()}}),Hb={class:"_fd-box-space-input"},zb={class:"_padding"},jb={class:"_padding-title"},Ub=["value"],Wb=["value"],Kb=["value"],Gb=["value"],Yb={class:"_fd-help"},Qb={class:"_margin"},Xb={class:"_margin-title"},Jb={class:"_fd-help"},Zb=["value"],qb=["value"],e1=["value"],t1=["value"];function n1(t,r,a,o,n,s){return l.openBlock(),l.createElementBlock("div",Hb,[l.createElementVNode("div",zb,[l.createElementVNode("span",jb,l.toDisplayString(t.t("style.margin")),1),l.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:t.boxStyle.marginTop,type:"text",onBlur:r[0]||(r[0]=d=>t.setValue("margin","Top",d)),onInput:r[1]||(r[1]=d=>t.change("marginTop",d))},null,40,Ub),l.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:t.boxStyle.marginRight,type:"text",onBlur:r[2]||(r[2]=d=>t.setValue("margin","Right",d)),onInput:r[3]||(r[3]=d=>t.change("marginRight",d))},null,40,Wb),l.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:t.boxStyle.marginBottom,type:"text",onBlur:r[4]||(r[4]=d=>t.setValue("margin","Bottom",d)),onInput:r[5]||(r[5]=d=>t.change("marginBottom",d))},null,40,Kb),l.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:t.boxStyle.marginLeft,type:"text",onBlur:r[6]||(r[6]=d=>t.setValue("margin","Left",d)),onInput:r[7]||(r[7]=d=>t.change("marginLeft",d))},null,40,Gb),l.createElementVNode("div",Yb,[l.createElementVNode("i",{class:l.normalizeClass(["fc-icon icon-link2",t.marginLock?"active":""]),title:"lock",onClick:r[8]||(r[8]=d=>t.lock("margin"))},null,2),l.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:r[9]||(r[9]=d=>t.clear("margin"))})]),l.createElementVNode("div",Qb,[l.createElementVNode("span",Xb,l.toDisplayString(t.t("style.padding")),1),l.createElementVNode("div",Jb,[l.createElementVNode("i",{class:l.normalizeClass(["fc-icon icon-link2",t.paddingLock?"active":""]),title:"lock",onClick:r[10]||(r[10]=d=>t.lock("padding"))},null,2),l.createElementVNode("i",{class:"fc-icon icon-delete-circle",title:"clear",onClick:r[11]||(r[11]=d=>t.clear("padding"))})]),l.createElementVNode("input",{class:"_fd-input _fd-top",placeholder:" ",value:t.boxStyle.paddingTop,type:"text",onBlur:r[12]||(r[12]=d=>t.setValue("padding","Top",d)),onInput:r[13]||(r[13]=d=>t.change("paddingTop",d))},null,40,Zb),l.createElementVNode("input",{class:"_fd-input _fd-right",placeholder:" ",value:t.boxStyle.paddingRight,type:"text",onBlur:r[14]||(r[14]=d=>t.setValue("padding","Right",d)),onInput:r[15]||(r[15]=d=>t.change("paddingRight",d))},null,40,qb),l.createElementVNode("input",{class:"_fd-input _fd-bottom",placeholder:" ",value:t.boxStyle.paddingBottom,type:"text",onBlur:r[16]||(r[16]=d=>t.setValue("padding","Bottom",d)),onInput:r[17]||(r[17]=d=>t.change("paddingBottom",d))},null,40,e1),l.createElementVNode("input",{class:"_fd-input _fd-left",placeholder:" ",value:t.boxStyle.paddingLeft,type:"text",onBlur:r[18]||(r[18]=d=>t.setValue("padding","Left",d)),onInput:r[19]||(r[19]=d=>t.change("paddingLeft",d))},null,40,t1),r[20]||(r[20]=l.createElementVNode("div",{class:"_box"},null,-1))])])])}const i1=We($b,[["render",n1]]);function md(t){let r=t.replace(/([A-Z])/g,"-$1").toLocaleLowerCase();return r.indexOf("-")===0&&(r=r.substr(1)),r}const Pw="",r1=l.defineComponent({name:"BorderInput",components:{ColorInput:Xi,SizeInput:Fr,ConfigItem:oi},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue(),this.initCur()},active(){this.initCur()}},computed:{borderStyleStr(){let t="";return Object.keys(this.borderStyle).forEach(r=>{this.borderStyle[r]!==""&&(t+=md(r)+": "+this.borderStyle[r]+";")},{}),t}},data(){const t=this.designer.setupState.t;return{t,active:"",borderStyle:{},curStyle:"",curColor:"",curWidth:"",lineType:["solid","dashed","dotted","double"].map(r=>({value:r,label:t("style."+r)})),position:["Top","Left","Bottom","Right"],type:["Style","Color","Width"],unwatch:null}},methods:{tidyValue(){const t=[];this.borderStyle={},["",...this.position].forEach(r=>{this.type.forEach(a=>{t.push("border"+r+a)})}),t.forEach(r=>{this.borderStyle[r]=this.modelValue[r]||""})},onInput(){const t=Object.keys(this.borderStyle).reduce((r,a)=>(this.borderStyle[a]!==""&&(r[a]=this.borderStyle[a]),r),{});this.$emit("update:modelValue",t),this.$emit("change",t)},pushCur(){this.borderStyle["border"+this.active+"Style"]=this.curStyle||"",this.borderStyle["border"+this.active+"Color"]=this.curColor||"",this.borderStyle["border"+this.active+"Width"]=this.curWidth||"",this.onInput()},initCur(){this.unwatch&&this.unwatch(),this.curStyle=this.borderStyle["border"+this.active+"Style"]||"",this.curColor=this.borderStyle["border"+this.active+"Color"]||"",this.curWidth=this.borderStyle["border"+this.active+"Width"]||"",this.unwatch=this.$watch(()=>[this.curStyle,this.curColor,this.curWidth],()=>{this.pushCur()})}},created(){this.tidyValue(),this.initCur()}}),o1={class:"_fd-border-input"},a1={class:"_fd-bi-left"},l1={class:"_fd-bil-row"},s1={class:"_fd-bil-row"},u1={class:"_fd-bil-row"},f1={class:"_fd-bi-right"},d1={class:"_fd-bi-opt"};function c1(t,r,a,o,n,s){const d=l.resolveComponent("el-option"),c=l.resolveComponent("el-select"),p=l.resolveComponent("SizeInput"),m=l.resolveComponent("ColorInput"),v=l.resolveComponent("ConfigItem");return l.openBlock(),l.createBlock(v,{label:t.t("style.border")},{append:l.withCtx(()=>[l.createElementVNode("div",o1,[l.createElementVNode("div",a1,[l.createElementVNode("div",l1,[l.createElementVNode("div",{class:l.normalizeClass(["_fd-bil-col",t.active==="Top"?"active":""]),onClick:r[0]||(r[0]=y=>t.active="Top")},"\u2533 ",2)]),l.createElementVNode("div",s1,[l.createElementVNode("div",{class:l.normalizeClass(["_fd-bil-col",t.active==="Left"?"active":""]),onClick:r[1]||(r[1]=y=>t.active="Left")},"\u2523 ",2),l.createElementVNode("div",{class:l.normalizeClass(["_fd-bil-col",t.active===""?"active":""]),onClick:r[2]||(r[2]=y=>t.active="")},"\u254B",2),l.createElementVNode("div",{class:l.normalizeClass(["_fd-bil-col",t.active==="Right"?"active":""]),onClick:r[3]||(r[3]=y=>t.active="Right")}," \u252B ",2)]),l.createElementVNode("div",u1,[l.createElementVNode("div",{class:l.normalizeClass(["_fd-bil-col",t.active==="Bottom"?"active":""]),onClick:r[4]||(r[4]=y=>t.active="Bottom")},"\u253B ",2)])]),l.createElementVNode("div",f1,[l.createVNode(c,{modelValue:t.curStyle,"onUpdate:modelValue":r[5]||(r[5]=y=>t.curStyle=y),clearable:""},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.lineType,y=>(l.openBlock(),l.createBlock(d,{key:y.value,label:y.label,value:y.value},{default:l.withCtx(()=>[l.createElementVNode("div",d1,[l.createElementVNode("div",{class:l.normalizeClass(["_line",y.value])},null,2)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"]),l.createVNode(p,{modelValue:t.curWidth,"onUpdate:modelValue":r[6]||(r[6]=y=>t.curWidth=y)},null,8,["modelValue"]),l.createVNode(m,{modelValue:t.curColor,"onUpdate:modelValue":r[7]||(r[7]=y=>t.curColor=y)},null,8,["modelValue"])])])]),default:l.withCtx(()=>[l.createElementVNode("div",{class:"line-box",style:l.normalizeStyle(t.borderStyleStr)},r[8]||(r[8]=[l.createElementVNode("div",{class:"line-box-con"},null,-1)]),4)]),_:1},8,["label"])}const p1=We(r1,[["render",c1]]),Lw="",h1=l.defineComponent({name:"RadiusInput",components:{ConfigItem:oi,ColorInput:Xi,SizeInput:Fr},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:String},watch:{modelValue(t){t!==this.oldValue&&this.tidyValue()}},computed:{t(){return this.designer.setupState.t}},data(){return{visit:!1,active:"",style:{com:"",left:"",right:"",top:"",bottom:""},unit:["px","%"],oldValue:""}},methods:{batch(){this.style.left=this.style.com,this.style.right=this.style.com,this.style.top=this.style.com,this.style.bottom=this.style.com,this.onInput()},tidyValue(){if(this.style={com:"",left:"",right:"",top:"",bottom:""},!this.modelValue)return;let t=(this.modelValue||"").split(" ").filter(r=>r!=="");t.length===1?t=[t[0],t[0],t[0],t[0]]:t.length===2?t=[t[0],t[1],t[0],t[1]]:t.length===3&&(t=[t[0],t[1],t[2],t[1]]),this.style.left=t[0],this.style.top=t[1],this.style.right=t[2],this.style.bottom=t[3],this.updateCom()},updateCom(){let t=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;this.style.com=t.replaceAll(this.style.left,"").trim()===""?this.style.left:""},onInput(){let t=`${this.style.left||"0px"} ${this.style.top||"0px"} ${this.style.right||"0px"} ${this.style.bottom||"0px"}`;`${this.style.left}${this.style.top}${this.style.right}${this.style.bottom}`.trim()===""?t="":this.updateCom(),this.oldValue=t,this.$emit("update:modelValue",t),this.$emit("change",t)}},created(){this.tidyValue()}}),m1={class:"_fd-radius-input"},g1={class:"_fd-radius-con"},v1={class:"_fd-radius-item"},y1={class:"_fd-radius-item"},b1={class:"_fd-radius-item"},A1={class:"_fd-radius-item"};function C1(t,r,a,o,n,s){const d=l.resolveComponent("SizeInput"),c=l.resolveComponent("ConfigItem");return l.openBlock(),l.createElementBlock("div",m1,[l.createVNode(c,{label:t.t("style.borderRadius")},{append:l.withCtx(()=>[l.createElementVNode("div",g1,[l.createElementVNode("div",v1,[r[5]||(r[5]=l.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(180deg)"}},[l.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),l.createVNode(d,{unit:t.unit,modelValue:t.style.left,"onUpdate:modelValue":r[1]||(r[1]=p=>t.style.left=p),onChange:t.onInput},null,8,["unit","modelValue","onChange"])]),l.createElementVNode("div",y1,[r[6]||(r[6]=l.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(-90deg)"}},[l.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),l.createVNode(d,{unit:t.unit,modelValue:t.style.top,"onUpdate:modelValue":r[2]||(r[2]=p=>t.style.top=p),onChange:t.onInput},null,8,["unit","modelValue","onChange"])]),l.createElementVNode("div",b1,[r[7]||(r[7]=l.createElementVNode("div",{class:"_fd-radius-icon",style:{transform:"rotate(90deg)"}},[l.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),l.createVNode(d,{unit:t.unit,modelValue:t.style.bottom,"onUpdate:modelValue":r[3]||(r[3]=p=>t.style.bottom=p),onChange:t.onInput},null,8,["unit","modelValue","onChange"])]),l.createElementVNode("div",A1,[r[8]||(r[8]=l.createElementVNode("div",{class:"_fd-radius-icon"},[l.createElementVNode("i",{class:"fc-icon icon-radius"})],-1)),l.createVNode(d,{unit:t.unit,modelValue:t.style.right,"onUpdate:modelValue":r[4]||(r[4]=p=>t.style.right=p),onChange:t.onInput},null,8,["unit","modelValue","onChange"])])])]),default:l.withCtx(()=>[l.createVNode(d,{unit:t.unit,modelValue:t.style.com,"onUpdate:modelValue":r[0]||(r[0]=p=>t.style.com=p),onChange:t.batch},null,8,["unit","modelValue","onChange"])]),_:1},8,["label"])])}const w1=We(h1,[["render",C1]]),Vw="",E1=l.defineComponent({name:"BorderInput",components:{ColorInput:Xi,SizeInput:Fr,ConfigItem:oi},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyValue()}},computed:{borderStyleStr(){let t="";return Object.keys(this.borderStyle).forEach(r=>{this.borderStyle[r]!==""&&(t+=md(r)+": "+this.borderStyle[r]+";")},{}),t},alignType(){return["left","center","right"].map(t=>({label:this.t("props."+t),value:t}))},decorationType(){return["underline","line-through","overline"].map(t=>({label:this.t("style.decoration."+t),value:t}))},weightType(){return[300,400,500,700].map(t=>({label:this.t("style.weight."+t),value:t}))}},data(){return{t:this.designer.setupState.t,fontStyle:{fontSize:"",fontWeight:"",fontStyle:"",textDecoration:"",textAlign:"",lineHeight:"",letterSpacing:""}}},methods:{tidyValue(){Object.keys(this.fontStyle).forEach(t=>{this.fontStyle[t]=this.modelValue[t]||""})},onInput(){const t=Object.keys(this.fontStyle).reduce((r,a)=>(this.fontStyle[a]!==""&&(r[a]=this.fontStyle[a]),r),{});this.$emit("update:modelValue",t),this.$emit("change",t)}},created(){this.tidyValue()}}),S1={class:"_fd-font-input"};function x1(t,r,a,o,n,s){const d=l.resolveComponent("SizeInput"),c=l.resolveComponent("el-form-item"),p=l.resolveComponent("el-option"),m=l.resolveComponent("el-select"),v=l.resolveComponent("el-form"),y=l.resolveComponent("ConfigItem");return l.openBlock(),l.createBlock(y,{label:t.t("style.font.name")},{append:l.withCtx(()=>[l.createElementVNode("div",S1,[l.createVNode(v,{"label-width":"50px","label-position":"top",inline:"",size:"small"},{default:l.withCtx(()=>[l.createVNode(c,{label:t.t("style.font.size")},{default:l.withCtx(()=>[l.createVNode(d,{modelValue:t.fontStyle.fontSize,"onUpdate:modelValue":r[0]||(r[0]=E=>t.fontStyle.fontSize=E),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(c,{label:t.t("style.weight.name")},{default:l.withCtx(()=>[l.createVNode(m,{modelValue:t.fontStyle.fontWeight,"onUpdate:modelValue":r[1]||(r[1]=E=>t.fontStyle.fontWeight=E),clearable:"",onChange:t.onInput},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.weightType,E=>(l.openBlock(),l.createBlock(p,{key:E.value,label:E.label,value:E.value},{default:l.withCtx(()=>[l.createElementVNode("span",{style:l.normalizeStyle({fontWeight:E.value})},l.toDisplayString(E.label),5)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(c,{label:t.t("style.decoration.name")},{default:l.withCtx(()=>[l.createVNode(m,{modelValue:t.fontStyle.textDecoration,"onUpdate:modelValue":r[2]||(r[2]=E=>t.fontStyle.textDecoration=E),clearable:"",onChange:t.onInput},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.decorationType,E=>(l.openBlock(),l.createBlock(p,{key:E.value,label:E.label,value:E.value},{default:l.withCtx(()=>[l.createElementVNode("span",{style:l.normalizeStyle({textDecoration:E.value})},l.toDisplayString(E.label),5)]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(c,{label:t.t("style.font.align")},{default:l.withCtx(()=>[l.createVNode(m,{modelValue:t.fontStyle.textAlign,"onUpdate:modelValue":r[3]||(r[3]=E=>t.fontStyle.textAlign=E),clearable:"",onChange:t.onInput},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.alignType,E=>(l.openBlock(),l.createBlock(p,{key:E.value,label:E.label,value:E.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(c,{label:t.t("style.font.height")},{default:l.withCtx(()=>[l.createVNode(d,{modelValue:t.fontStyle.lineHeight,"onUpdate:modelValue":r[4]||(r[4]=E=>t.fontStyle.lineHeight=E),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(c,{label:t.t("style.font.spacing")},{default:l.withCtx(()=>[l.createVNode(d,{modelValue:t.fontStyle.letterSpacing,"onUpdate:modelValue":r[5]||(r[5]=E=>t.fontStyle.letterSpacing=E),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1})])]),default:l.withCtx(()=>[l.createElementVNode("div",{class:"_fd-fi-box",style:l.normalizeStyle(t.fontStyle)},l.toDisplayString(t.t("style.font.preview")),5)]),_:1},8,["label"])}const T1=We(E1,[["render",x1]]),Fw="",N1=l.defineComponent({name:"ShadowContent",components:{ColorInput:Xi},inject:["designer"],emits:["update:modelValue","change"],props:{modelValue:{default:"0px 0px 0px rgba(0, 0, 0, 0)",type:String}},data(){return{max:24,boxSize:250,options:[{key:"external",icon:"shadow"},{key:"inset",icon:"shadow-inset"}],form:{color:"",type:"external",x:0,y:0,vague:0,extend:0,x_unit:"px",y_unit:"px",vague_unit:"px",extend_unit:"px"},units:["px","%","rem","em","vw","vh"],down:!1,position:{left:0,top:0}}},computed:{spotStyle(){return{left:this.position.left+"px",top:this.position.top+"px"}},t(){return this.designer.setupState.t}},watch:{position(t){this.form.x=parseInt(String((t.left-this.boxSize/2)/this.boxSize*this.max)),this.form.y=parseInt(String((t.top-this.boxSize/2)/this.boxSize*this.max));const r=this.max/2;this.form.x=this.form.x<0?Math.max(this.form.x,r*-1):Math.min(this.form.x,r),this.form.y=this.form.y<0?Math.max(this.form.y,r*-1):Math.min(this.form.y,r)},modelValue(t){this.initStyle(t)}},methods:{getMouseXY(t,r){if(this.down||r){const a=this.$refs.box.getBoundingClientRect();this.position={left:parseInt(String(t.clientX-a.x)),top:parseInt(String(t.clientY-a.y))}}},onMouseup(){this.down=!1,this.onInput()},onMousedown(t){this.getMouseXY(t,!0),this.down=!0},onInput(){const t=this.form;let r=`${t.x}${t.x_unit} ${t.y}${t.y_unit} ${t.vague}${t.vague_unit} ${t.extend}${t.extend_unit} ${t.color}`;`${t.x}${t.y}${t.vague}${t.extend}`.replaceAll("0","")===""?r="":t.type==="inset"&&(r+=" inset"),this.$emit("update:modelValue",r),this.$emit("change",r)},initStyle(t){(this.modelValue||"").indexOf(" inset")>-1&&(this.form.type="inset",t=t.replace(" inset",""));const r=t.split("rgba");let a,o;r.length>1?(a="rgba"+r[1].trim(),o=r[0].trim().split(" ")):(o=r[0].trim().split(" "),a=o.pop()),this.form.color=a||"#000",this.form.x=parseInt(o[0])||0,this.form.y=parseInt(o[1])||0,this.form.vague=parseInt(o[2])||0,this.form.extend=parseInt(o[3])||0;const n=s=>(s==null?void 0:s.replace(/[-\d.]/g,""))||"px";this.form.x_unit=n(o[0]),this.form.y_unit=n(o[1]),this.form.vague_unit=n(o[2]),this.form.extend_unit=n(o[3]),this.position.left=this.boxSize/2+this.form.x/this.max*this.boxSize||0,this.position.top=this.boxSize/2+this.form.y/this.max*this.boxSize||0}},mounted(){this.initStyle(this.modelValue)}}),_1={class:"_fd-shadow-content"},D1={class:"_fd-sc-right"};function R1(t,r,a,o,n,s){const d=l.resolveComponent("el-radio-button"),c=l.resolveComponent("el-tooltip"),p=l.resolveComponent("el-radio-group"),m=l.resolveComponent("el-form-item"),v=l.resolveComponent("ColorInput"),y=l.resolveComponent("el-option"),E=l.resolveComponent("el-select"),D=l.resolveComponent("el-input"),C=l.resolveComponent("el-form");return l.openBlock(),l.createElementBlock("div",_1,[l.createVNode(C,{"label-width":"50px","label-position":"top",inline:"",class:"_fd-sc-form",size:"small"},{default:l.withCtx(()=>[l.createVNode(m,{label:t.t("style.shadow.mode")},{default:l.withCtx(()=>[l.createVNode(p,{modelValue:t.form.type,"onUpdate:modelValue":r[0]||(r[0]=x=>t.form.type=x),onChange:t.onInput,size:"small",class:"_fd-sc-radio"},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.options,x=>(l.openBlock(),l.createBlock(c,{key:x.key,effect:"dark",content:t.t("style.shadow."+x.key),placement:"top","hide-after":0,persistent:""},{default:l.withCtx(()=>[l.createVNode(d,{label:x.key,value:x.key},{default:l.withCtx(()=>[l.createElementVNode("i",{class:l.normalizeClass(["fc-icon","icon-"+x.icon])},null,2)]),_:2},1032,["label","value"])]),_:2},1032,["content"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(m,{label:t.t("style.color")},{default:l.withCtx(()=>[l.createVNode(v,{modelValue:t.form.color,"onUpdate:modelValue":r[1]||(r[1]=x=>t.form.color=x),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(m,{label:t.t("style.shadow.x")},{default:l.withCtx(()=>[l.createVNode(D,{modelValue:t.form.x,"onUpdate:modelValue":r[3]||(r[3]=x=>t.form.x=x),type:"number",onChange:t.onInput},{append:l.withCtx(()=>[l.createVNode(E,{modelValue:t.form.x_unit,"onUpdate:modelValue":r[2]||(r[2]=x=>t.form.x_unit=x),onChange:t.onInput},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.units,x=>(l.openBlock(),l.createBlock(y,{key:x,label:x,value:x},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(m,{label:t.t("style.shadow.y")},{default:l.withCtx(()=>[l.createVNode(D,{modelValue:t.form.y,"onUpdate:modelValue":r[5]||(r[5]=x=>t.form.y=x),type:"number",onChange:t.onInput},{append:l.withCtx(()=>[l.createVNode(E,{modelValue:t.form.y_unit,"onUpdate:modelValue":r[4]||(r[4]=x=>t.form.y_unit=x),onChange:t.onInput},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.units,x=>(l.openBlock(),l.createBlock(y,{key:x,label:x,value:x},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(m,{label:t.t("style.shadow.vague")},{default:l.withCtx(()=>[l.createVNode(D,{modelValue:t.form.vague,"onUpdate:modelValue":r[7]||(r[7]=x=>t.form.vague=x),type:"number",onChange:t.onInput},{append:l.withCtx(()=>[l.createVNode(E,{modelValue:t.form.vague_unit,"onUpdate:modelValue":r[6]||(r[6]=x=>t.form.vague_unit=x),onChange:t.onInput},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.units,x=>(l.openBlock(),l.createBlock(y,{key:x,label:x,value:x},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(m,{label:t.t("style.shadow.extend")},{default:l.withCtx(()=>[l.createVNode(D,{modelValue:t.form.extend,"onUpdate:modelValue":r[9]||(r[9]=x=>t.form.extend=x),type:"number",onChange:t.onInput},{append:l.withCtx(()=>[l.createVNode(E,{modelValue:t.form.extend_unit,"onUpdate:modelValue":r[8]||(r[8]=x=>t.form.extend_unit=x),onChange:t.onInput},{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.units,x=>(l.openBlock(),l.createBlock(y,{key:x,label:x,value:x},null,8,["label","value"]))),128))]),_:1},8,["modelValue","onChange"])]),_:1},8,["modelValue","onChange"])]),_:1},8,["label"])]),_:1}),l.createElementVNode("div",D1,[l.createElementVNode("div",{ref:"box",class:l.normalizeClass(["_fd-sc-box",t.down?"down":""]),onClick:r[10]||(r[10]=x=>t.getMouseXY(x,1)),onMousedown:r[11]||(r[11]=(...x)=>t.onMousedown&&t.onMousedown(...x)),onMouseup:r[12]||(r[12]=(...x)=>t.onMouseup&&t.onMouseup(...x)),onMousemove:r[13]||(r[13]=x=>t.getMouseXY(x,0))},[l.createElementVNode("span",{class:"spot",style:l.normalizeStyle(t.spotStyle)},r[14]||(r[14]=[l.createElementVNode("i",{class:"spot-id"},null,-1)]),4),r[15]||(r[15]=l.createElementVNode("span",{class:"center-spot"},null,-1)),r[16]||(r[16]=l.createElementVNode("div",{class:"x-hr"},null,-1)),r[17]||(r[17]=l.createElementVNode("div",{class:"y-hr"},null,-1))],34)])])}const O1=We(N1,[["render",R1]]),$w="",k1=l.defineComponent({name:"ShadowInput",emits:["update:modelValue","change"],components:{ConfigItem:oi,ShadowContent:O1},inject:["designer"],props:{modelValue:String},watch:{modelValue(){this.value=this.modelValue||""},value(t){this.$emit("update:modelValue",t),this.$emit("change",t)}},data(){const t=this.designer.setupState.t;return{t,options:[{label:t("style.shadow.classic"),value:"3px 5px 7px 2px #CBCBCBFF"},{label:t("style.shadow.flat"),value:"4px 4px 3px -2px #E7E5E5FF"},{label:t("style.shadow.solid"),value:"1px 2px 4px 2px #979797FF"}],value:this.modelValue||""}},methods:{changeValue(t){this.value=t}},created(){}}),B1={class:"_fd-shadow-input"};function I1(t,r,a,o,n,s){const d=l.resolveComponent("el-dropdown-item"),c=l.resolveComponent("el-dropdown-menu"),p=l.resolveComponent("el-dropdown"),m=l.resolveComponent("el-input"),v=l.resolveComponent("ShadowContent"),y=l.resolveComponent("ConfigItem");return l.openBlock(),l.createElementBlock("div",B1,[l.createVNode(y,{label:t.t("style.shadow.name")},{append:l.withCtx(()=>[l.createVNode(v,{modelValue:t.value,"onUpdate:modelValue":r[1]||(r[1]=E=>t.value=E)},null,8,["modelValue"])]),default:l.withCtx(()=>[l.createVNode(m,{clearable:"",modelValue:t.value,"onUpdate:modelValue":r[0]||(r[0]=E=>t.value=E),class:"_fd-si-input"},{append:l.withCtx(()=>[l.createVNode(p,null,{dropdown:l.withCtx(()=>[l.createVNode(c,null,{default:l.withCtx(()=>[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(t.options,E=>(l.openBlock(),l.createBlock(d,{onClick:D=>t.changeValue(E.value)},{default:l.withCtx(()=>[l.createTextVNode(l.toDisplayString(E.label),1)]),_:2},1032,["onClick"]))),256))]),_:1})]),default:l.withCtx(()=>[r[2]||(r[2]=l.createElementVNode("i",{class:"fc-icon icon-setting"},null,-1))]),_:1,__:[2]})]),_:1},8,["modelValue"])]),_:1},8,["label"])])}const M1=We(k1,[["render",I1]]),Hw="",gd=["fontSize","fontWeight","fontStyle","textDecoration","textAlign","lineHeight","letterSpacing"],vd=["height","width","minWidth","minHeight","maxWidth","maxHeight","overflow"],yd=["color","backgroundColor","scale","borderRadius","boxShadow","marginTop","marginRight","marginBottom","marginLeft","paddingTop","paddingRight","paddingBottom","paddingLeft","margin","padding","opacity","borderStyle","borderColor","borderWidth","borderTopStyle","borderTopColor","borderTopWidth","borderLeftStyle","borderLeftColor","borderLeftWidth","borderBottomStyle","borderBottomColor","borderBottomWidth","borderRightStyle","borderRightColor","borderRightWidth",...gd,...vd],P1=l.defineComponent({name:"StyleConfig",inject:["designer"],emits:["update:modelValue"],components:{TableOptions:hd,ColorInput:Xi,ConfigItem:oi,RadiusInput:w1,BoxSizeInput:Fb,BoxSpaceInput:i1,BorderInput:p1,ShadowInput:M1,FontInput:T1},props:{modelValue:{type:Object,default:()=>({})}},watch:{modelValue(){this.tidyStyle()}},data(){return{t:this.designer.setupState.t,formData:{},size:{},space:{},border:{},font:{},radius:"",backgroundColor:"",color:"",boxShadow:"",opacity:100,scale:100}},methods:{tidyStyle(){const t={...this.modelValue||{}},r={};Object.keys(t).forEach(c=>{(["margin","padding"].indexOf(c)>-1||c.indexOf("margin")>-1||c.indexOf("padding")>-1)&&(r[c]=t[c])});const a={};vd.forEach(c=>{t[c]&&(a[c]=t[c])}),this.radius=t.borderRadius||"",delete t.borderRadius;const o={};Object.keys(t).forEach(c=>{c.indexOf("border")===0&&(o[c]=t[c])});let n=$n(t.opacity)?100:parseFloat(t.opacity)||0;n&&n<1&&(n=n*100);let s=t.scale;$n(t.scale)?s=100:isNaN(Number(s))?s=parseFloat(s)||100:s=s>0?s*100:0;const d={};gd.forEach(c=>{t[c]&&(d[c]=t[c])}),this.opacity=n,this.scale=s,this.size=a,this.space=r,this.border=o,this.font=d,this.boxShadow=t.boxShadow||"",this.color=t.color||"",this.backgroundColor=t.backgroundColor||"",yd.forEach(c=>{delete t[c]}),this.formData=t},onInput(){let t={...this.formData};yd.forEach(a=>{delete t[a]});const r={...t,color:this.color||"",backgroundColor:this.backgroundColor||"",opacity:this.opacity>=0&&this.opacity<100?this.opacity+"%":"",borderRadius:this.radius||"",boxShadow:this.boxShadow||"",scale:this.scale>=0&&this.scale!==100?this.scale+"%":"",...this.space,...this.size,...this.border,...this.font};Object.keys(r).forEach(a=>{$n(r[a])&&delete r[a]}),this.$emit("update:modelValue",r)}},created(){this.tidyStyle()}}),L1={class:"_fd-style-config"};function V1(t,r,a,o,n,s){const d=l.resolveComponent("BoxSpaceInput"),c=l.resolveComponent("BoxSizeInput"),p=l.resolveComponent("ColorInput"),m=l.resolveComponent("ConfigItem"),v=l.resolveComponent("BorderInput"),y=l.resolveComponent("RadiusInput"),E=l.resolveComponent("FontInput"),D=l.resolveComponent("ShadowInput"),C=l.resolveComponent("el-slider"),x=l.resolveComponent("TableOptions");return l.openBlock(),l.createElementBlock("div",L1,[l.createVNode(d,{modelValue:t.space,"onUpdate:modelValue":r[0]||(r[0]=A=>t.space=A),onChange:t.onInput,style:{"margin-bottom":"10px"}},null,8,["modelValue","onChange"]),l.createVNode(c,{modelValue:t.size,"onUpdate:modelValue":r[1]||(r[1]=A=>t.size=A),onChange:t.onInput},null,8,["modelValue","onChange"]),l.createVNode(m,{label:t.t("style.color")},{default:l.withCtx(()=>[l.createVNode(p,{modelValue:t.color,"onUpdate:modelValue":r[2]||(r[2]=A=>t.color=A),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(m,{label:t.t("style.backgroundColor")},{default:l.withCtx(()=>[l.createVNode(p,{modelValue:t.backgroundColor,"onUpdate:modelValue":r[3]||(r[3]=A=>t.backgroundColor=A),onChange:t.onInput},null,8,["modelValue","onChange"])]),_:1},8,["label"]),l.createVNode(v,{modelValue:t.border,"onUpdate:modelValue":r[4]||(r[4]=A=>t.border=A),onChange:t.onInput},null,8,["modelValue","onChange"]),l.createVNode(y,{modelValue:t.radius,"onUpdate:modelValue":r[5]||(r[5]=A=>t.radius=A),onChange:t.onInput},null,8,["modelValue","onChange"]),l.createVNode(E,{modelValue:t.font,"onUpdate:modelValue":r[6]||(r[6]=A=>t.font=A),onChange:t.onInput},null,8,["modelValue","onChange"]),l.createVNode(D,{modelValue:t.boxShadow,"onUpdate:modelValue":r[7]||(r[7]=A=>t.boxShadow=A),onChange:t.onInput},null,8,["modelValue","onChange"]),l.createVNode(m,{label:t.t("style.opacity"),class:"_fd-opacity-input"},{default:l.withCtx(()=>[l.createVNode(C,{"show-tooltip":!1,modelValue:t.opacity,"onUpdate:modelValue":r[8]||(r[8]=A=>t.opacity=A),onChange:t.onInput},null,8,["modelValue","onChange"]),l.createElementVNode("span",null,l.toDisplayString(t.opacity)+"%",1)]),_:1},8,["label"]),l.createVNode(m,{label:t.t("style.scale"),class:"_fd-opacity-input"},{default:l.withCtx(()=>[l.createVNode(C,{min:80,max:120,"show-tooltip":!1,modelValue:t.scale,"onUpdate:modelValue":r[9]||(r[9]=A=>t.scale=A),onChange:t.onInput},null,8,["modelValue","onChange"]),l.createElementVNode("span",null,l.toDisplayString(t.scale)+"%",1)]),_:1},8,["label"]),l.createVNode(m,{label:t.t("props.custom"),info:Object.keys(t.formData).length>0?t.t("struct.configured"):""},{append:l.withCtx(()=>[l.createVNode(x,l.mergeProps({modelValue:t.formData,"onUpdate:modelValue":r[10]||(r[10]=A=>t.formData=A),onChange:t.onInput},{column:[{label:t.t("props.key"),key:"label"},{label:t.t("props.value"),key:"value"}],valueType:"object"}),null,16,["modelValue","onChange"])]),_:1},8,["label","info"])])}const F1=We(P1,[["render",V1]]);/*!
* @form-create/component-wangeditor v3.2.14
* (c) 2018-2024 xaboy
* Github https://github.com/xaboy/form-create with wangeditor
* Released under the MIT License.
*/function bd(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),a.push.apply(a,o)}return a}function $1(t){for(var r=1;r<arguments.length;r++){var a=arguments[r]!=null?arguments[r]:{};r%2?bd(Object(a),!0).forEach(function(o){H1(t,o,a[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):bd(Object(a)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(a,o))})}return t}function Rt(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rt=function(r){return typeof r}:Rt=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Rt(t)}function H1(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function z1(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ad={exports:{}};(function(t,r){(function(o,n){t.exports=n()})(window,function(){return function(a){var o={};function n(s){if(o[s])return o[s].exports;var d=o[s]={i:s,l:!1,exports:{}};return a[s].call(d.exports,d,d.exports,n),d.l=!0,d.exports}return n.m=a,n.c=o,n.d=function(s,d,c){n.o(s,d)||Object.defineProperty(s,d,{enumerable:!0,get:c})},n.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},n.t=function(s,d){if(d&1&&(s=n(s)),d&8||d&4&&Rt(s)==="object"&&s&&s.__esModule)return s;var c=Object.create(null);if(n.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:s}),d&2&&typeof s!="string")for(var p in s)n.d(c,p,function(m){return s[m]}.bind(null,p));return c},n.n=function(s){var d=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(d,"a",d),d},n.o=function(s,d){return Object.prototype.hasOwnProperty.call(s,d)},n.p="",n(n.s=141)}([function(a,o){function n(s){return s&&s.__esModule?s:{default:s}}a.exports=n},function(a,o,n){a.exports=n(142)},function(a,o,n){n.r(o),n.d(o,"__extends",function(){return d}),n.d(o,"__assign",function(){return c}),n.d(o,"__rest",function(){return p}),n.d(o,"__decorate",function(){return m}),n.d(o,"__param",function(){return v}),n.d(o,"__metadata",function(){return y}),n.d(o,"__awaiter",function(){return E}),n.d(o,"__generator",function(){return D}),n.d(o,"__createBinding",function(){return C}),n.d(o,"__exportStar",function(){return x}),n.d(o,"__values",function(){return A}),n.d(o,"__read",function(){return g}),n.d(o,"__spread",function(){return b}),n.d(o,"__spreadArrays",function(){return N}),n.d(o,"__spreadArray",function(){return T}),n.d(o,"__await",function(){return O}),n.d(o,"__asyncGenerator",function(){return k}),n.d(o,"__asyncDelegator",function(){return M}),n.d(o,"__asyncValues",function(){return S}),n.d(o,"__makeTemplateObject",function(){return F}),n.d(o,"__importStar",function(){return w}),n.d(o,"__importDefault",function(){return L}),n.d(o,"__classPrivateFieldGet",function(){return $}),n.d(o,"__classPrivateFieldSet",function(){return W});/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */var s=function(U,Q){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(J,ie){J.__proto__=ie}||function(J,ie){for(var B in ie)Object.prototype.hasOwnProperty.call(ie,B)&&(J[B]=ie[B])},s(U,Q)};function d(P,U){if(typeof U!="function"&&U!==null)throw new TypeError("Class extends value "+String(U)+" is not a constructor or null");s(P,U);function Q(){this.constructor=P}P.prototype=U===null?Object.create(U):(Q.prototype=U.prototype,new Q)}var c=function(){return c=Object.assign||function(Q){for(var J,ie=1,B=arguments.length;ie<B;ie++){J=arguments[ie];for(var z in J)Object.prototype.hasOwnProperty.call(J,z)&&(Q[z]=J[z])}return Q},c.apply(this,arguments)};function p(P,U){var Q={};for(var J in P)Object.prototype.hasOwnProperty.call(P,J)&&U.indexOf(J)<0&&(Q[J]=P[J]);if(P!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,J=Object.getOwnPropertySymbols(P);ie<J.length;ie++)U.indexOf(J[ie])<0&&Object.prototype.propertyIsEnumerable.call(P,J[ie])&&(Q[J[ie]]=P[J[ie]]);return Q}function m(P,U,Q,J){var ie=arguments.length,B=ie<3?U:J===null?J=Object.getOwnPropertyDescriptor(U,Q):J,z;if((typeof Reflect>"u"?"undefined":Rt(Reflect))==="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(P,U,Q,J);else for(var G=P.length-1;G>=0;G--)(z=P[G])&&(B=(ie<3?z(B):ie>3?z(U,Q,B):z(U,Q))||B);return ie>3&&B&&Object.defineProperty(U,Q,B),B}function v(P,U){return function(Q,J){U(Q,J,P)}}function y(P,U){if((typeof Reflect>"u"?"undefined":Rt(Reflect))==="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(P,U)}function E(P,U,Q,J){function ie(B){return B instanceof Q?B:new Q(function(z){z(B)})}return new(Q||(Q=Promise))(function(B,z){function G(ae){try{Z(J.next(ae))}catch(ue){z(ue)}}function Y(ae){try{Z(J.throw(ae))}catch(ue){z(ue)}}function Z(ae){ae.done?B(ae.value):ie(ae.value).then(G,Y)}Z((J=J.apply(P,U||[])).next())})}function D(P,U){var Q={label:0,sent:function(){if(B[0]&1)throw B[1];return B[1]},trys:[],ops:[]},J,ie,B,z;return z={next:G(0),throw:G(1),return:G(2)},typeof Symbol=="function"&&(z[Symbol.iterator]=function(){return this}),z;function G(Z){return function(ae){return Y([Z,ae])}}function Y(Z){if(J)throw new TypeError("Generator is already executing.");for(;Q;)try{if(J=1,ie&&(B=Z[0]&2?ie.return:Z[0]?ie.throw||((B=ie.return)&&B.call(ie),0):ie.next)&&!(B=B.call(ie,Z[1])).done)return B;switch(ie=0,B&&(Z=[Z[0]&2,B.value]),Z[0]){case 0:case 1:B=Z;break;case 4:return Q.label++,{value:Z[1],done:!1};case 5:Q.label++,ie=Z[1],Z=[0];continue;case 7:Z=Q.ops.pop(),Q.trys.pop();continue;default:if(B=Q.trys,!(B=B.length>0&&B[B.length-1])&&(Z[0]===6||Z[0]===2)){Q=0;continue}if(Z[0]===3&&(!B||Z[1]>B[0]&&Z[1]<B[3])){Q.label=Z[1];break}if(Z[0]===6&&Q.label<B[1]){Q.label=B[1],B=Z;break}if(B&&Q.label<B[2]){Q.label=B[2],Q.ops.push(Z);break}B[2]&&Q.ops.pop(),Q.trys.pop();continue}Z=U.call(P,Q)}catch(ae){Z=[6,ae],ie=0}finally{J=B=0}if(Z[0]&5)throw Z[1];return{value:Z[0]?Z[1]:void 0,done:!0}}}var C=Object.create?function(P,U,Q,J){J===void 0&&(J=Q),Object.defineProperty(P,J,{enumerable:!0,get:function(){return U[Q]}})}:function(P,U,Q,J){J===void 0&&(J=Q),P[J]=U[Q]};function x(P,U){for(var Q in P)Q!=="default"&&!Object.prototype.hasOwnProperty.call(U,Q)&&C(U,P,Q)}function A(P){var U=typeof Symbol=="function"&&Symbol.iterator,Q=U&&P[U],J=0;if(Q)return Q.call(P);if(P&&typeof P.length=="number")return{next:function(){return P&&J>=P.length&&(P=void 0),{value:P&&P[J++],done:!P}}};throw new TypeError(U?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(P,U){var Q=typeof Symbol=="function"&&P[Symbol.iterator];if(!Q)return P;var J=Q.call(P),ie,B=[],z;try{for(;(U===void 0||U-- >0)&&!(ie=J.next()).done;)B.push(ie.value)}catch(G){z={error:G}}finally{try{ie&&!ie.done&&(Q=J.return)&&Q.call(J)}finally{if(z)throw z.error}}return B}function b(){for(var P=[],U=0;U<arguments.length;U++)P=P.concat(g(arguments[U]));return P}function N(){for(var P=0,U=0,Q=arguments.length;U<Q;U++)P+=arguments[U].length;for(var J=Array(P),ie=0,U=0;U<Q;U++)for(var B=arguments[U],z=0,G=B.length;z<G;z++,ie++)J[ie]=B[z];return J}function T(P,U){for(var Q=0,J=U.length,ie=P.length;Q<J;Q++,ie++)P[ie]=U[Q];return P}function O(P){return this instanceof O?(this.v=P,this):new O(P)}function k(P,U,Q){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var J=Q.apply(P,U||[]),ie,B=[];return ie={},z("next"),z("throw"),z("return"),ie[Symbol.asyncIterator]=function(){return this},ie;function z(se){J[se]&&(ie[se]=function(le){return new Promise(function(te,pe){B.push([se,le,te,pe])>1||G(se,le)})})}function G(se,le){try{Y(J[se](le))}catch(te){ue(B[0][3],te)}}function Y(se){se.value instanceof O?Promise.resolve(se.value.v).then(Z,ae):ue(B[0][2],se)}function Z(se){G("next",se)}function ae(se){G("throw",se)}function ue(se,le){se(le),B.shift(),B.length&&G(B[0][0],B[0][1])}}function M(P){var U,Q;return U={},J("next"),J("throw",function(ie){throw ie}),J("return"),U[Symbol.iterator]=function(){return this},U;function J(ie,B){U[ie]=P[ie]?function(z){return(Q=!Q)?{value:O(P[ie](z)),done:ie==="return"}:B?B(z):z}:B}}function S(P){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var U=P[Symbol.asyncIterator],Q;return U?U.call(P):(P=typeof A=="function"?A(P):P[Symbol.iterator](),Q={},J("next"),J("throw"),J("return"),Q[Symbol.asyncIterator]=function(){return this},Q);function J(B){Q[B]=P[B]&&function(z){return new Promise(function(G,Y){z=P[B](z),ie(G,Y,z.done,z.value)})}}function ie(B,z,G,Y){Promise.resolve(Y).then(function(Z){B({value:Z,done:G})},z)}}function F(P,U){return Object.defineProperty?Object.defineProperty(P,"raw",{value:U}):P.raw=U,P}var R=Object.create?function(P,U){Object.defineProperty(P,"default",{enumerable:!0,value:U})}:function(P,U){P.default=U};function w(P){if(P&&P.__esModule)return P;var U={};if(P!=null)for(var Q in P)Q!=="default"&&Object.prototype.hasOwnProperty.call(P,Q)&&C(U,P,Q);return R(U,P),U}function L(P){return P&&P.__esModule?P:{default:P}}function $(P,U){if(!U.has(P))throw new TypeError("attempted to get private field on non-instance");return U.get(P)}function W(P,U,Q){if(!U.has(P))throw new TypeError("attempted to set private field on non-instance");return U.set(P,Q),Q}},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(89)),p=s(n(4)),m=s(n(26)),v=s(n(17)),y=s(n(121)),E=s(n(27)),D=s(n(91)),C=s(n(70)),x=s(n(28)),A=s(n(57));(0,d.default)(o,"__esModule",{value:!0}),o.DomElement=void 0;var g=n(2),b=n(6),N=[];function T(R){var w=document.createElement("div");w.innerHTML=R;var L=w.children;return b.toArray(L)}function O(R){return R?R instanceof HTMLCollection||R instanceof NodeList:!1}function k(R){var w=document.querySelectorAll(R);return b.toArray(w)}function M(R){var w=[],L=[];return(0,c.default)(R)?w=R:w=R.split(";"),(0,p.default)(w).call(w,function($){var W,P=(0,m.default)(W=$.split(":")).call(W,function(U){return(0,v.default)(U).call(U)});P.length===2&&L.push(P[0]+":"+P[1])}),L}var S=function(){function R(w){if(this.elems=[],this.length=this.elems.length,this.dataSource=new y.default,!!w){if(w instanceof R)return w;var L=[],$=w instanceof Node?w.nodeType:-1;if(this.selector=w,$===1||$===9)L=[w];else if(O(w))L=b.toArray(w);else if(w instanceof Array)L=w;else if(typeof w=="string"){var W,P=(0,v.default)(W=w.replace(`/
/mg`,"")).call(W);(0,E.default)(P).call(P,"<")===0?L=T(P):L=k(P)}var U=L.length;if(!U)return this;for(var Q=0;Q<U;Q++)this.elems.push(L[Q]);this.length=U}}return(0,d.default)(R.prototype,"id",{get:function(){return this.elems[0].id},enumerable:!1,configurable:!0}),R.prototype.forEach=function(w){for(var L=0;L<this.length;L++){var $=this.elems[L],W=w.call($,$,L);if(W===!1)break}return this},R.prototype.clone=function(w){var L;w===void 0&&(w=!1);var $=[];return(0,p.default)(L=this.elems).call(L,function(W){$.push(W.cloneNode(!!w))}),F($)},R.prototype.get=function(w){w===void 0&&(w=0);var L=this.length;return w>=L&&(w=w%L),F(this.elems[w])},R.prototype.first=function(){return this.get(0)},R.prototype.last=function(){var w=this.length;return this.get(w-1)},R.prototype.on=function(w,L,$){var W;return w?(typeof L=="function"&&($=L,L=""),(0,p.default)(W=this).call(W,function(P){if(!L){P.addEventListener(w,$);return}var U=function(J){var ie=J.target;ie.matches(L)&&$.call(ie,J)};P.addEventListener(w,U),N.push({elem:P,selector:L,fn:$,agentFn:U})})):this},R.prototype.off=function(w,L,$){var W;return w?(typeof L=="function"&&($=L,L=""),(0,p.default)(W=this).call(W,function(P){if(L){for(var U=-1,Q=0;Q<N.length;Q++){var J=N[Q];if(J.selector===L&&J.fn===$&&J.elem===P){U=Q;break}}if(U!==-1){var ie=(0,D.default)(N).call(N,U,1)[0].agentFn;P.removeEventListener(w,ie)}}else P.removeEventListener(w,$)})):this},R.prototype.attr=function(w,L){var $;return L==null?this.elems[0].getAttribute(w)||"":(0,p.default)($=this).call($,function(W){W.setAttribute(w,L)})},R.prototype.removeAttr=function(w){var L;(0,p.default)(L=this).call(L,function($){$.removeAttribute(w)})},R.prototype.addClass=function(w){var L;return w?(0,p.default)(L=this).call(L,function($){if($.className){var W=$.className.split(/\s/);W=(0,C.default)(W).call(W,function(P){return!!(0,v.default)(P).call(P)}),(0,E.default)(W).call(W,w)<0&&W.push(w),$.className=W.join(" ")}else $.className=w}):this},R.prototype.removeClass=function(w){var L;return w?(0,p.default)(L=this).call(L,function($){if(!!$.className){var W=$.className.split(/\s/);W=(0,C.default)(W).call(W,function(P){return P=(0,v.default)(P).call(P),!(!P||P===w)}),$.className=W.join(" ")}}):this},R.prototype.hasClass=function(w){if(!w)return!1;var L=this.elems[0];if(!L.className)return!1;var $=L.className.split(/\s/);return(0,x.default)($).call($,w)},R.prototype.css=function(w,L){var $,W;return L==""?W="":W=w+":"+L+";",(0,p.default)($=this).call($,function(P){var U,Q=(0,v.default)(U=P.getAttribute("style")||"").call(U);if(Q){var J=M(Q);J=(0,m.default)(J).call(J,function(ie){return(0,E.default)(ie).call(ie,w)===0?W:ie}),W!=""&&(0,E.default)(J).call(J,W)<0&&J.push(W),W==""&&(J=M(J)),P.setAttribute("style",J.join("; "))}else P.setAttribute("style",W)})},R.prototype.getBoundingClientRect=function(){var w=this.elems[0];return w.getBoundingClientRect()},R.prototype.show=function(){return this.css("display","block")},R.prototype.hide=function(){return this.css("display","none")},R.prototype.children=function(){var w=this.elems[0];return w?F(w.children):null},R.prototype.childNodes=function(){var w=this.elems[0];return w?F(w.childNodes):null},R.prototype.replaceChildAll=function(w){for(var L=this.getNode(),$=this.elems[0];$.hasChildNodes();)L.firstChild&&$.removeChild(L.firstChild);this.append(w)},R.prototype.append=function(w){var L;return(0,p.default)(L=this).call(L,function($){(0,p.default)(w).call(w,function(W){$.appendChild(W)})})},R.prototype.remove=function(){var w;return(0,p.default)(w=this).call(w,function(L){if(L.remove)L.remove();else{var $=L.parentElement;$&&$.removeChild(L)}})},R.prototype.isContain=function(w){var L=this.elems[0],$=w.elems[0];return L.contains($)},R.prototype.getNodeName=function(){var w=this.elems[0];return w.nodeName},R.prototype.getNode=function(w){w===void 0&&(w=0);var L;return L=this.elems[w],L},R.prototype.find=function(w){var L=this.elems[0];return F(L.querySelectorAll(w))},R.prototype.text=function(w){if(w){var $;return(0,p.default)($=this).call($,function(W){W.innerHTML=w})}else{var L=this.elems[0];return L.innerHTML.replace(/<[^>]+>/g,function(){return""})}},R.prototype.html=function(w){var L=this.elems[0];return w?(L.innerHTML=w,this):L.innerHTML},R.prototype.val=function(){var w,L=this.elems[0];return(0,v.default)(w=L.value).call(w)},R.prototype.focus=function(){var w;return(0,p.default)(w=this).call(w,function(L){L.focus()})},R.prototype.prev=function(){var w=this.elems[0];return F(w.previousElementSibling)},R.prototype.next=function(){var w=this.elems[0];return F(w.nextElementSibling)},R.prototype.getNextSibling=function(){var w=this.elems[0];return F(w.nextSibling)},R.prototype.parent=function(){var w=this.elems[0];return F(w.parentElement)},R.prototype.parentUntil=function(w,L){var $=L||this.elems[0];if($.nodeName==="BODY")return null;var W=$.parentElement;return W===null?null:W.matches(w)?F(W):this.parentUntil(w,W)},R.prototype.parentUntilEditor=function(w,L,$){var W=$||this.elems[0];if(F(W).equal(L.$textContainerElem)||F(W).equal(L.$toolbarElem))return null;var P=W.parentElement;return P===null?null:P.matches(w)?F(P):this.parentUntilEditor(w,L,P)},R.prototype.equal=function(w){return w instanceof R?this.elems[0]===w.elems[0]:w instanceof HTMLElement?this.elems[0]===w:!1},R.prototype.insertBefore=function(w){var L,$=F(w),W=$.elems[0];return W?(0,p.default)(L=this).call(L,function(P){var U=W.parentNode;U==null||U.insertBefore(P,W)}):this},R.prototype.insertAfter=function(w){var L,$=F(w),W=$.elems[0],P=W&&W.nextSibling;return W?(0,p.default)(L=this).call(L,function(U){var Q=W.parentNode;P?Q.insertBefore(U,P):Q.appendChild(U)}):this},R.prototype.data=function(w,L){if(L!=null)this.dataSource.set(w,L);else return this.dataSource.get(w)},R.prototype.getNodeTop=function(w){if(this.length<1)return this;var L=this.parent();return w.$textElem.equal(this)||w.$textElem.equal(L)?this:(L.prior=this,L.getNodeTop(w))},R.prototype.getOffsetData=function(){var w=this.elems[0];return{top:w.offsetTop,left:w.offsetLeft,width:w.offsetWidth,height:w.offsetHeight,parent:w.offsetParent}},R.prototype.scrollTop=function(w){var L=this.elems[0];L.scrollTo({top:w})},R}();o.DomElement=S;function F(){for(var R=[],w=0;w<arguments.length;w++)R[w]=arguments[w];return new((0,A.default)(S).apply(S,g.__spreadArrays([void 0],R)))}o.default=F},function(a,o,n){a.exports=n(180)},function(a,o,n){var s=n(8),d=n(71).f,c=n(101),p=n(9),m=n(40),v=n(19),y=n(16),E=function(C){var x=function(g,b,N){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(g);case 2:return new C(g,b)}return new C(g,b,N)}return C.apply(this,arguments)};return x.prototype=C.prototype,x};a.exports=function(D,C){var x=D.target,A=D.global,g=D.stat,b=D.proto,N=A?s:g?s[x]:(s[x]||{}).prototype,T=A?p:p[x]||(p[x]={}),O=T.prototype,k,M,S,F,R,w,L,$,W;for(F in C)k=c(A?F:x+(g?".":"#")+F,D.forced),M=!k&&N&&y(N,F),w=T[F],M&&(D.noTargetGet?(W=d(N,F),L=W&&W.value):L=N[F]),R=M&&L?L:C[F],!(M&&Rt(w)===Rt(R))&&(D.bind&&M?$=m(R,s):D.wrap&&M?$=E(R):b&&typeof R=="function"?$=m(Function.call,R):$=R,(D.sham||R&&R.sham||w&&w.sham)&&v($,"sham",!0),T[F]=$,b&&(S=x+"Prototype",y(p,S)||v(p,S,{}),p[S][F]=R,D.real&&O&&!O[F]&&v(O,F,R)))}},function(a,o,n){var s=n(0),d=s(n(92)),c=s(n(1)),p=s(n(256)),m=s(n(45)),v=s(n(46)),y=s(n(89)),E=s(n(26));(0,c.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 D=n(2),C=function(){function w(){this._ua=navigator.userAgent;var L=this._ua.match(/(Edge?)\/(\d+)/);this.isOldEdge=!!(L&&L[1]=="Edge"&&(0,p.default)(L[2])<19),this.isFirefox=!!(/Firefox\/\d+/.test(this._ua)&&!/Seamonkey\/\d+/.test(this._ua))}return w.prototype.isIE=function(){return"ActiveXObject"in window},w.prototype.isWebkit=function(){return/webkit/i.test(this._ua)},w}();o.UA=new C;function x(w){var L;return w===void 0&&(w=""),w+(0,m.default)(L=Math.random().toString()).call(L,2)}o.getRandom=x;function A(w){return w.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,""").replace(/(\r\n|\r|\n)/g,"<br/>")}o.replaceHtmlSymbol=A;function g(w){return w.replace(/</gm,"<").replace(/>/gm,">").replace(/"/gm,'"')}o.replaceSpecialSymbol=g;function b(w,L){for(var $ in w)if(Object.prototype.hasOwnProperty.call(w,$)){var W=L($,w[$]);if(W===!1)break}}o.forEach=b;function N(w,L){var $,W,P,U=w.length||0;for($=0;$<U&&(W=w[$],P=L.call(w,W,$),P!==!1);$++);}o.arrForEach=N;function T(w,L){L===void 0&&(L=200);var $=!1;return function(){for(var W=this,P=[],U=0;U<arguments.length;U++)P[U]=arguments[U];$||($=!0,(0,v.default)(function(){$=!1,w.call.apply(w,D.__spreadArrays([W],P))},L))}}o.throttle=T;function O(w,L){L===void 0&&(L=200);var $=0;return function(){for(var W=this,P=[],U=0;U<arguments.length;U++)P[U]=arguments[U];$&&window.clearTimeout($),$=(0,v.default)(function(){$=0,w.call.apply(w,D.__spreadArrays([W],P))},L)}}o.debounce=O;function k(w){return typeof w=="function"}o.isFunction=k;function M(w){if((0,d.default)(w)!=="object"||typeof w=="function"||w===null)return w;var L;(0,y.default)(w)&&(L=[]),(0,y.default)(w)||(L={});for(var $ in w)Object.prototype.hasOwnProperty.call(w,$)&&(L[$]=M(w[$]));return L}o.deepClone=M;function S(w){return(0,m.default)(Array.prototype).call(w)}o.toArray=S;function F(){var w;return(0,m.default)(w=Math.random().toString(36)).call(w,-5)}o.getRandomCode=F;function R(w){var L=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(w);if(L==null)return null;var $=(0,E.default)(L).call(L,function(Q){return(0,p.default)(Q,16)}),W=$[1],P=$[2],U=$[3];return"rgb("+W+", "+P+", "+U+")"}o.hexToRgb=R},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.EMPTY_P_REGEX=o.EMPTY_P_LAST_REGEX=o.EMPTY_P=o.urlRegex=o.EMPTY_FN=void 0;function c(){}o.EMPTY_FN=c,o.urlRegex=/(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/g,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(a,o,n){(function(s){var d=function(p){return p&&p.Math==Math&&p};a.exports=d((typeof globalThis>"u"?"undefined":Rt(globalThis))=="object"&&globalThis)||d((typeof window>"u"?"undefined":Rt(window))=="object"&&window)||d((typeof self>"u"?"undefined":Rt(self))=="object"&&self)||d(Rt(s)=="object"&&s)||Function("return this")()}).call(this,n(145))},function(a,o){a.exports={}},function(a,o,n){var s=n(8),d=n(74),c=n(16),p=n(64),m=n(76),v=n(106),y=d("wks"),E=s.Symbol,D=v?E:E&&E.withoutSetter||p;a.exports=function(C){return c(y,C)||(m&&c(E,C)?y[C]=E[C]:y[C]=D("Symbol."+C)),y[C]}},function(a,o){a.exports=function(n){try{return!!n()}catch{return!0}}},function(a,o,n){var s=n(9),d=n(16),c=n(93),p=n(18).f;a.exports=function(m){var v=s.Symbol||(s.Symbol={});d(v,m)||p(v,m,{value:c.f(m)})}},function(a,o){a.exports=function(n){return Rt(n)==="object"?n!==null:typeof n=="function"}},function(a,o,n){var s=n(11);a.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},function(a,o,n){var s=n(9);a.exports=function(d){return s[d+"Prototype"]}},function(a,o){var n={}.hasOwnProperty;a.exports=function(s,d){return n.call(s,d)}},function(a,o,n){a.exports=n(192)},function(a,o,n){var s=n(14),d=n(100),c=n(25),p=n(60),m=Object.defineProperty;o.f=s?m:function(y,E,D){if(c(y),E=p(E,!0),c(D),d)try{return m(y,E,D)}catch{}if("get"in D||"set"in D)throw TypeError("Accessors not supported");return"value"in D&&(y[E]=D.value),y}},function(a,o,n){var s=n(14),d=n(18),c=n(48);a.exports=s?function(p,m,v){return d.f(p,m,c(1,v))}:function(p,m,v){return p[m]=v,p}},function(a,o,n){var s=function(){var N;return function(){return typeof N>"u"&&(N=Boolean(window&&document&&document.all&&!window.atob)),N}}(),d=function(){var N={};return function(O){if(typeof N[O]>"u"){var k=document.querySelector(O);if(window.HTMLIFrameElement&&k instanceof window.HTMLIFrameElement)try{k=k.contentDocument.head}catch{k=null}N[O]=k}return N[O]}}(),c=[];function p(b){for(var N=-1,T=0;T<c.length;T++)if(c[T].identifier===b){N=T;break}return N}function m(b,N){for(var T={},O=[],k=0;k<b.length;k++){var M=b[k],S=N.base?M[0]+N.base:M[0],F=T[S]||0,R="".concat(S," ").concat(F);T[S]=F+1;var w=p(R),L={css:M[1],media:M[2],sourceMap:M[3]};w!==-1?(c[w].references++,c[w].updater(L)):c.push({identifier:R,updater:g(L,N),references:1}),O.push(R)}return O}function v(b){var N=document.createElement("style"),T=b.attributes||{};if(typeof T.nonce>"u"){var O=n.nc;O&&(T.nonce=O)}if(Object.keys(T).forEach(function(M){N.setAttribute(M,T[M])}),typeof b.insert=="function")b.insert(N);else{var k=d(b.insert||"head");if(!k)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");k.appendChild(N)}return N}function y(b){if(b.parentNode===null)return!1;b.parentNode.removeChild(b)}var E=function(){var N=[];return function(O,k){return N[O]=k,N.filter(Boolean).join(`
`)}}();function D(b,N,T,O){var k=T?"":O.media?"@media ".concat(O.media," {").concat(O.css,"}"):O.css;if(b.styleSheet)b.styleSheet.cssText=E(N,k);else{var M=document.createTextNode(k),S=b.childNodes;S[N]&&b.removeChild(S[N]),S.length?b.insertBefore(M,S[N]):b.appendChild(M)}}function C(b,N,T){var O=T.css,k=T.media,M=T.sourceMap;if(k?b.setAttribute("media",k):b.removeAttribute("media"),M&&typeof btoa<"u"&&(O+=`
/*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(M))))," */")),b.styleSheet)b.styleSheet.cssText=O;else{for(;b.firstChild;)b.removeChild(b.firstChild);b.appendChild(document.createTextNode(O))}}var x=null,A=0;function g(b,N){var T,O,k;if(N.singleton){var M=A++;T=x||(x=v(N)),O=D.bind(null,T,M,!1),k=D.bind(null,T,M,!0)}else T=v(N),O=C.bind(null,T,N),k=function(){y(T)};return O(b),function(F){if(F){if(F.css===b.css&&F.media===b.media&&F.sourceMap===b.sourceMap)return;O(b=F)}else k()}}a.exports=function(b,N){N=N||{},!N.singleton&&typeof N.singleton!="boolean"&&(N.singleton=s()),b=b||[];var T=m(b,N);return function(k){if(k=k||[],Object.prototype.toString.call(k)==="[object Array]"){for(var M=0;M<T.length;M++){var S=T[M],F=p(S);c[F].references--}for(var R=m(k,N),w=0;w<T.length;w++){var L=T[w],$=p(L);c[$].references===0&&(c[$].updater(),c.splice($,1))}T=R}}}},function(a,o,n){a.exports=function(c){var p=[];return p.toString=function(){return this.map(function(v){var y=s(v,c);return v[2]?"@media ".concat(v[2]," {").concat(y,"}"):y}).join("")},p.i=function(m,v,y){typeof m=="string"&&(m=[[null,m,""]]);var E={};if(y)for(var D=0;D<this.length;D++){var C=this[D][0];C!=null&&(E[C]=!0)}for(var x=0;x<m.length;x++){var A=[].concat(m[x]);y&&E[A[0]]||(v&&(A[2]?A[2]="".concat(v," and ").concat(A[2]):A[2]=v),p.push(A))}},p};function s(c,p){var m=c[1]||"",v=c[3];if(!v)return m;if(p&&typeof btoa=="function"){var y=d(v),E=v.sources.map(function(D){return"/*# sourceURL=".concat(v.sourceRoot||"").concat(D," */")});return[m].concat(E).concat([y]).join(`
`)}return[m].join(`
`)}function d(c){var p=btoa(unescape(encodeURIComponent(JSON.stringify(c)))),m="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(p);return"/*# ".concat(m," */")}},function(a,o,n){var s=n(14),d=n(11),c=n(16),p=Object.defineProperty,m={},v=function(E){throw E};a.exports=function(y,E){if(c(m,y))return m[y];E||(E={});var D=[][y],C=c(E,"ACCESSORS")?E.ACCESSORS:!1,x=c(E,0)?E[0]:v,A=c(E,1)?E[1]:void 0;return m[y]=!!D&&!d(function(){if(C&&!s)return!0;var g={length:-1};C?p(g,1,{enumerable:!0,get:v}):g[1]=1,D.call(g,x,A)})}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(95)),m=function(v){c.__extends(y,v);function y(E,D){return v.call(this,E,D)||this}return y}(p.default);o.default=m},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(46));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),y=m.__importDefault(n(95)),E=m.__importDefault(n(134)),D=function(C){m.__extends(x,C);function x(A,g,b){var N=C.call(this,A,g)||this;b.title=g.i18next.t("menus.dropListMenu."+b.title);var T=g.config.lang==="zh-CN"?"":"w-e-drop-list-tl";if(T!==""&&b.type==="list"){var O;(0,c.default)(O=b.list).call(O,function(M){var S=M.$elem,F=v.default(S.children());if(F.length>0){var R=F==null?void 0:F.getNodeName();R&&R==="I"&&S.addClass(T)}})}var k=new E.default(N,b);return N.dropList=k,A.on("click",function(){var M;g.selection.getRange()!=null&&(A.css("z-index",g.zIndex.get("menu")),(0,c.default)(M=g.txt.eventHooks.dropListMenuHoverEvents).call(M,function(S){return S()}),k.show())}).on("mouseleave",function(){A.css("z-index","auto"),k.hideTimeoutId=(0,p.default)(function(){k.hide()})}),N}return x}(y.default);o.default=D},function(a,o,n){var s=n(13);a.exports=function(d){if(!s(d))throw TypeError(String(d)+" is not an object");return d}},function(a,o,n){a.exports=n(188)},function(a,o,n){a.exports=n(201)},function(a,o,n){a.exports=n(213)},function(a,o,n){a.exports=n(283)},function(a,o,n){var s=n(72),d=n(49);a.exports=function(c){return s(d(c))}},function(a,o,n){var s=n(49);a.exports=function(d){return Object(s(d))}},function(a,o,n){var s=n(40),d=n(72),c=n(31),p=n(35),m=n(88),v=[].push,y=function(D){var C=D==1,x=D==2,A=D==3,g=D==4,b=D==6,N=D==5||b;return function(T,O,k,M){for(var S=c(T),F=d(S),R=s(O,k,3),w=p(F.length),L=0,$=M||m,W=C?$(T,w):x?$(T,0):void 0,P,U;w>L;L++)if((N||L in F)&&(P=F[L],U=R(P,L,S),D)){if(C)W[L]=U;else if(U)switch(D){case 3:return!0;case 5:return P;case 6:return L;case 2:v.call(W,P)}else if(g)return!1}return b?-1:A||g?g:W}};a.exports={forEach:y(0),map:y(1),filter:y(2),some:y(3),every:y(4),find:y(5),findIndex:y(6)}},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(29)),m=s(n(132));(0,d.default)(o,"__esModule",{value:!0});var v=n(2),y=v.__importDefault(n(3)),E=n(7),D=function(){function C(x,A){this.menu=x,this.conf=A,this.$container=y.default('<div class="w-e-panel-container"></div>');var g=x.editor;g.txt.eventHooks.clickEvents.push(C.hideCurAllPanels),g.txt.eventHooks.toolbarClickEvents.push(C.hideCurAllPanels),g.txt.eventHooks.dropListMenuHoverEvents.push(C.hideCurAllPanels)}return C.prototype.create=function(){var x=this,A=this.menu;if(!C.createdMenus.has(A)){var g=this.conf,b=this.$container,N=g.width||300,T=A.editor.$toolbarElem.getBoundingClientRect(),O=A.$elem.getBoundingClientRect(),k=T.height+T.top-O.top,M=(T.width-N)/2+T.left-O.left,S=300;Math.abs(M)>S&&(O.left<document.documentElement.clientWidth/2?M=-O.width/2:M=-N+O.width/2),b.css("width",N+"px").css("margin-top",k+"px").css("margin-left",M+"px").css("z-index",A.editor.zIndex.get("panel"));var F=y.default('<i class="w-e-icon-close w-e-panel-close"></i>');b.append(F),F.on("click",function(){x.remove()});var R=y.default('<ul class="w-e-panel-tab-title"></ul>'),w=y.default('<div class="w-e-panel-tab-content"></div>');b.append(R).append(w);var L=g.height;L&&w.css("height",L+"px").css("overflow-y","auto");var $=g.tabs||[],W=[],P=[];(0,c.default)($).call($,function(Q,J){if(!!Q){var ie=Q.title||"",B=Q.tpl||"",z=y.default('<li class="w-e-item">'+ie+"</li>");R.append(z);var G=y.default(B);w.append(G),W.push(z),P.push(G),J===0?(z.data("active",!0),z.addClass("w-e-active")):G.hide(),z.on("click",function(){z.data("active")||((0,c.default)(W).call(W,function(Y){Y.data("active",!1),Y.removeClass("w-e-active")}),(0,c.default)(P).call(P,function(Y){Y.hide()}),z.data("active",!0),z.addClass("w-e-active"),G.show())})}}),b.on("click",function(Q){Q.stopPropagation()}),A.$elem.append(b),g.setLinkValue&&g.setLinkValue(b,"text"),g.setLinkValue&&g.setLinkValue(b,"link"),(0,c.default)($).call($,function(Q,J){if(!!Q){var ie=Q.events||[];(0,c.default)(ie).call(ie,function(B){var z,G=B.selector,Y=B.type,Z=B.fn||E.EMPTY_FN,ae=P[J],ue=(z=B.bindEnter)!==null&&z!==void 0?z:!1,se=function(te){return v.__awaiter(x,void 0,void 0,function(){var pe;return v.__generator(this,function(me){switch(me.label){case 0:return te.stopPropagation(),[4,Z(te)];case 1:return pe=me.sent(),pe&&this.remove(),[2]}})})};(0,p.default)(ae).call(ae,G).on(Y,se),ue&&Y==="click"&&ae.on("keyup",function(le){le.keyCode==13&&se(le)})})}});var U=(0,p.default)(b).call(b,"input[type=text],textarea");U.length&&U.get(0).focus(),C.hideCurAllPanels(),A.setPanel(this),C.createdMenus.add(A)}},C.prototype.remove=function(){var x=this.menu,A=this.$container;A&&A.remove(),C.createdMenus.delete(x)},C.hideCurAllPanels=function(){var x;C.createdMenus.size!==0&&(0,c.default)(x=C.createdMenus).call(x,function(A){var g=A.panel;g&&g.remove()})},C.createdMenus=new m.default,C}();o.default=D},function(a,o){var n={}.toString;a.exports=function(s){return n.call(s).slice(8,-1)}},function(a,o,n){var s=n(62),d=Math.min;a.exports=function(c){return c>0?d(s(c),9007199254740991):0}},function(a,o,n){var s=n(9),d=n(8),c=function(m){return typeof m=="function"?m:void 0};a.exports=function(p,m){return arguments.length<2?c(s[p])||c(d[p]):s[p]&&s[p][m]||d[p]&&d[p][m]}},function(a,o,n){var s=n(81),d=n(18).f,c=n(19),p=n(16),m=n(170),v=n(10),y=v("toStringTag");a.exports=function(E,D,C,x){if(E){var A=C?E:E.prototype;p(A,y)||d(A,y,{configurable:!0,value:D}),x&&!s&&c(A,"toString",m)}}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(95)),m=function(v){c.__extends(y,v);function y(E,D){return v.call(this,E,D)||this}return y.prototype.setPanel=function(E){this.panel=E},y}(p.default);o.default=m},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(57));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),y=function(){function E(D,C,x){this.editor=D,this.$targetElem=C,this.conf=x,this._show=!1,this._isInsertTextContainer=!1;var A=v.default("<div></div>");A.addClass("w-e-tooltip"),this.$container=A}return E.prototype.getPositionData=function(){var D=this.$container,C=0,x=0,A=20,g=document.documentElement.scrollTop,b=this.$targetElem.getBoundingClientRect(),N=this.editor.$textElem.getBoundingClientRect(),T=this.$targetElem.getOffsetData(),O=v.default(T.parent),k=this.editor.$textElem.elems[0].scrollTop;if(this._isInsertTextContainer=O.equal(this.editor.$textContainerElem),this._isInsertTextContainer){var M=O.getBoundingClientRect().height,S=T.top,F=T.left,R=T.height,w=S-k;w>A+5?(C=w-A-15,D.addClass("w-e-tooltip-up")):w+R+A<M?(C=w+R+10,D.addClass("w-e-tooltip-down")):(C=(w>0?w:0)+A+10,D.addClass("w-e-tooltip-down")),F<0?x=0:x=F}else b.top<A||b.top-N.top<A?(C=b.bottom+g+5,D.addClass("w-e-tooltip-down")):(C=b.top+g-A-15,D.addClass("w-e-tooltip-up")),b.left<0?x=0:x=b.left;return{top:C,left:x}},E.prototype.appendMenus=function(){var D=this,C=this.conf,x=this.editor,A=this.$targetElem,g=this.$container;(0,c.default)(C).call(C,function(b,N){var T=b.$elem,O=v.default("<div></div>");O.addClass("w-e-tooltip-item-wrapper "),O.append(T),g.append(O),T.on("click",function(k){k.preventDefault();var M=b.onClick(x,A);M&&D.remove()})})},E.prototype.create=function(){var D,C,x=this.editor,A=this.$container;this.appendMenus();var g=this.getPositionData(),b=g.top,N=g.left;A.css("top",b+"px"),A.css("left",N+"px"),A.css("z-index",x.zIndex.get("tooltip")),this._isInsertTextContainer?this.editor.$textContainerElem.append(A):v.default("body").append(A),this._show=!0,x.beforeDestroy((0,p.default)(D=this.remove).call(D,this)),x.txt.eventHooks.onBlurEvents.push((0,p.default)(C=this.remove).call(C,this))},E.prototype.remove=function(){this.$container.remove(),this._show=!1},(0,d.default)(E.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),E}();o.default=y},function(a,o,n){var s=n(41);a.exports=function(d,c,p){if(s(d),c===void 0)return d;switch(p){case 0:return function(){return d.call(c)};case 1:return function(m){return d.call(c,m)};case 2:return function(m,v){return d.call(c,m,v)};case 3:return function(m,v,y){return d.call(c,m,v,y)}}return function(){return d.apply(c,arguments)}}},function(a,o){a.exports=function(n){if(typeof n!="function")throw TypeError(String(n)+" is not a function");return n}},function(a,o,n){var s=n(165),d=n(8),c=n(13),p=n(19),m=n(16),v=n(63),y=n(51),E=d.WeakMap,D,C,x,A=function(S){return x(S)?C(S):D(S,{})},g=function(S){return function(F){var R;if(!c(F)||(R=C(F)).type!==S)throw TypeError("Incompatible receiver, "+S+" required");return R}};if(s){var b=new E,N=b.get,T=b.has,O=b.set;D=function(S,F){return O.call(b,S,F),F},C=function(S){return N.call(b,S)||{}},x=function(S){return T.call(b,S)}}else{var k=v("state");y[k]=!0,D=function(S,F){return p(S,k,F),F},C=function(S){return m(S,k)?S[k]:{}},x=function(S){return m(S,k)}}a.exports={set:D,get:C,has:x,enforce:A,getterFor:g}},function(a,o){a.exports=!0},function(a,o){a.exports={}},function(a,o,n){a.exports=n(261)},function(a,o,n){a.exports=n(265)},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0}),o.createElementFragment=o.createDocumentFragment=o.createElement=o.insertBefore=o.getEndPoint=o.getStartPoint=o.updateRange=o.filterSelectionNodes=void 0;var p=n(2),m=n(137),v=p.__importDefault(n(3));function y(N){var T=[];return(0,c.default)(N).call(N,function(O){var k=O.getNodeName();if(k!==m.ListType.OrderedList&&k!==m.ListType.UnorderedList)T.push(O);else if(O.prior)T.push(O.prior);else{var M=O.children();M==null||(0,c.default)(M).call(M,function(S){T.push(v.default(S))})}}),T}o.filterSelectionNodes=y;function E(N,T,O){var k=N.selection,M=document.createRange();T.length>1?(M.setStart(T.elems[0],0),M.setEnd(T.elems[T.length-1],T.elems[T.length-1].childNodes.length)):M.selectNodeContents(T.elems[0]),O&&M.collapse(!1),k.saveRange(M),k.restoreSelection()}o.updateRange=E;function D(N){var T;return N.prior?N.prior:v.default((T=N.children())===null||T===void 0?void 0:T.elems[0])}o.getStartPoint=D;function C(N){var T;return N.prior?N.prior:v.default((T=N.children())===null||T===void 0?void 0:T.last().elems[0])}o.getEndPoint=C;function x(N,T,O){O===void 0&&(O=null),N.parent().elems[0].insertBefore(T,O)}o.insertBefore=x;function A(N){return document.createElement(N)}o.createElement=A;function g(){return document.createDocumentFragment()}o.createDocumentFragment=g;function b(N,T,O){return O===void 0&&(O="li"),(0,c.default)(N).call(N,function(k){var M=A(O);M.innerHTML=k.html(),T.appendChild(M),k.remove()}),T}o.createElementFragment=b},function(a,o){a.exports=function(n,s){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:s}}},function(a,o){a.exports=function(n){if(n==null)throw TypeError("Can't call method on "+n);return n}},function(a,o,n){var s=n(164).charAt,d=n(42),c=n(75),p="String Iterator",m=d.set,v=d.getterFor(p);c(String,"String",function(y){m(this,{type:p,string:String(y),index:0})},function(){var E=v(this),D=E.string,C=E.index,x;return C>=D.length?{value:void 0,done:!0}:(x=s(D,C),E.index+=x.length,{value:x,done:!1})})},function(a,o){a.exports={}},function(a,o,n){var s=n(107),d=n(80);a.exports=Object.keys||function(p){return s(p,d)}},function(a,o,n){var s=n(19);a.exports=function(d,c,p,m){m&&m.enumerable?d[c]=p:s(d,c,p)}},function(a,o,n){n(173);var s=n(174),d=n(8),c=n(65),p=n(19),m=n(44),v=n(10),y=v("toStringTag");for(var E in s){var D=d[E],C=D&&D.prototype;C&&c(C)!==y&&p(C,y,E),m[E]=m.Array}},function(a,o,n){var s=n(34);a.exports=Array.isArray||function(c){return s(c)=="Array"}},function(a,o,n){var s=n(11),d=n(10),c=n(86),p=d("species");a.exports=function(m){return c>=51||!s(function(){var v=[],y=v.constructor={};return y[p]=function(){return{foo:1}},v[m](Boolean).foo!==1})}},function(a,o,n){a.exports=n(222)},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.ListHandle=void 0;var c=n(2),p=c.__importDefault(n(373)),m=function(){function v(y){this.options=y,this.selectionRangeElem=new p.default}return v}();o.ListHandle=m},function(a,o,n){var s={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,c=d&&!s.call({1:2},1);o.f=c?function(m){var v=d(this,m);return!!v&&v.enumerable}:s},function(a,o,n){var s=n(13);a.exports=function(d,c){if(!s(d))return d;var p,m;if(c&&typeof(p=d.toString)=="function"&&!s(m=p.call(d))||typeof(p=d.valueOf)=="function"&&!s(m=p.call(d))||!c&&typeof(p=d.toString)=="function"&&!s(m=p.call(d)))return m;throw TypeError("Can't convert object to primitive value")}},function(a,o){},function(a,o){var n=Math.ceil,s=Math.floor;a.exports=function(d){return isNaN(d=+d)?0:(d>0?s:n)(d)}},function(a,o,n){var s=n(74),d=n(64),c=s("keys");a.exports=function(p){return c[p]||(c[p]=d(p))}},function(a,o){var n=0,s=Math.random();a.exports=function(d){return"Symbol("+String(d===void 0?"":d)+")_"+(++n+s).toString(36)}},function(a,o,n){var s=n(81),d=n(34),c=n(10),p=c("toStringTag"),m=d(function(){return arguments}())=="Arguments",v=function(E,D){try{return E[D]}catch{}};a.exports=s?d:function(y){var E,D,C;return y===void 0?"Undefined":y===null?"Null":typeof(D=v(E=Object(y),p))=="string"?D:m?d(E):(C=d(E))=="Object"&&typeof E.callee=="function"?"Arguments":C}},function(a,o,n){var s=n(25),d=n(112),c=n(35),p=n(40),m=n(113),v=n(114),y=function(C,x){this.stopped=C,this.result=x},E=a.exports=function(D,C,x,A,g){var b=p(C,x,A?2:1),N,T,O,k,M,S,F;if(g)N=D;else{if(T=m(D),typeof T!="function")throw TypeError("Target is not iterable");if(d(T)){for(O=0,k=c(D.length);k>O;O++)if(M=A?b(s(F=D[O])[0],F[1]):b(D[O]),M&&M instanceof y)return M;return new y(!1)}N=T.call(D)}for(S=N.next;!(F=S.call(N)).done;)if(M=v(N,b,F.value,A),Rt(M)=="object"&&M&&M instanceof y)return M;return new y(!1)};E.stop=function(D){return new y(!0,D)}},function(a,o,n){var s=n(11);a.exports=function(d,c){var p=[][d];return!!p&&s(function(){p.call(null,c||function(){throw 1},1)})}},function(a,o){a.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},function(a,o,n){var s=n(60),d=n(18),c=n(48);a.exports=function(p,m,v){var y=s(m);y in p?d.f(p,y,c(0,v)):p[y]=v}},function(a,o,n){a.exports=n(209)},function(a,o,n){var s=n(14),d=n(59),c=n(48),p=n(30),m=n(60),v=n(16),y=n(100),E=Object.getOwnPropertyDescriptor;o.f=s?E:function(C,x){if(C=p(C),x=m(x,!0),y)try{return E(C,x)}catch{}if(v(C,x))return c(!d.f.call(C,x),C[x])}},function(a,o,n){var s=n(11),d=n(34),c="".split;a.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(p){return d(p)=="String"?c.call(p,""):Object(p)}:Object},function(a,o,n){var s=n(8),d=n(13),c=s.document,p=d(c)&&d(c.createElement);a.exports=function(m){return p?c.createElement(m):{}}},function(a,o,n){var s=n(43),d=n(103);(a.exports=function(c,p){return d[c]||(d[c]=p!==void 0?p:{})})("versions",[]).push({version:"3.6.4",mode:s?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(a,o,n){var s=n(5),d=n(167),c=n(105),p=n(171),m=n(37),v=n(19),y=n(53),E=n(10),D=n(43),C=n(44),x=n(104),A=x.IteratorPrototype,g=x.BUGGY_SAFARI_ITERATORS,b=E("iterator"),N="keys",T="values",O="entries",k=function(){return this};a.exports=function(M,S,F,R,w,L,$){d(F,S,R);var W=function(ae){if(ae===w&&ie)return ie;if(!g&&ae in Q)return Q[ae];switch(ae){case N:return function(){return new F(this,ae)};case T:return function(){return new F(this,ae)};case O:return function(){return new F(this,ae)}}return function(){return new F(this)}},P=S+" Iterator",U=!1,Q=M.prototype,J=Q[b]||Q["@@iterator"]||w&&Q[w],ie=!g&&J||W(w),B=S=="Array"&&Q.entries||J,z,G,Y;if(B&&(z=c(B.call(new M)),A!==Object.prototype&&z.next&&(!D&&c(z)!==A&&(p?p(z,A):typeof z[b]!="function"&&v(z,b,k)),m(z,P,!0,!0),D&&(C[P]=k))),w==T&&J&&J.name!==T&&(U=!0,ie=function(){return J.call(this)}),(!D||$)&&Q[b]!==ie&&v(Q,b,ie),C[S]=ie,w)if(G={values:W(T),keys:L?ie:W(N),entries:W(O)},$)for(Y in G)(g||U||!(Y in Q))&&y(Q,Y,G[Y]);else s({target:S,proto:!0,forced:g||U},G);return G}},function(a,o,n){var s=n(11);a.exports=!!Object.getOwnPropertySymbols&&!s(function(){return!String(Symbol())})},function(a,o,n){var s=n(25),d=n(169),c=n(80),p=n(51),m=n(108),v=n(73),y=n(63),E=">",D="<",C="prototype",x="script",A=y("IE_PROTO"),g=function(){},b=function(S){return D+x+E+S+D+"/"+x+E},N=function(S){S.write(b("")),S.close();var F=S.parentWindow.Object;return S=null,F},T=function(){var S=v("iframe"),F="java"+x+":",R;return S.style.display="none",m.appendChild(S),S.src=String(F),R=S.contentWindow.document,R.open(),R.write(b("document.F=Object")),R.close(),R.F},O,k=function(){try{O=document.domain&&new ActiveXObject("htmlfile")}catch{}k=O?N(O):T();for(var S=c.length;S--;)delete k[C][c[S]];return k()};p[A]=!0,a.exports=Object.create||function(S,F){var R;return S!==null?(g[C]=s(S),R=new g,g[C]=null,R[A]=S):R=k(),F===void 0?R:d(R,F)}},function(a,o,n){var s=n(30),d=n(35),c=n(79),p=function(v){return function(y,E,D){var C=s(y),x=d(C.length),A=c(D,x),g;if(v&&E!=E){for(;x>A;)if(g=C[A++],g!=g)return!0}else for(;x>A;A++)if((v||A in C)&&C[A]===E)return v||A||0;return!v&&-1}};a.exports={includes:p(!0),indexOf:p(!1)}},function(a,o,n){var s=n(62),d=Math.max,c=Math.min;a.exports=function(p,m){var v=s(p);return v<0?d(v+m,0):c(v,m)}},function(a,o){a.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(a,o,n){var s=n(10),d=s("toStringTag"),c={};c[d]="z",a.exports=String(c)==="[object z]"},function(a,o){a.exports=function(){}},function(a,o){a.exports=function(n,s,d){if(!(n instanceof s))throw TypeError("Incorrect "+(d?d+" ":"")+"invocation");return n}},function(a,o,n){var s=n(36);a.exports=s("navigator","userAgent")||""},function(a,o,n){var s=n(41),d=function(p){var m,v;this.promise=new p(function(y,E){if(m!==void 0||v!==void 0)throw TypeError("Bad Promise constructor");m=y,v=E}),this.resolve=s(m),this.reject=s(v)};a.exports.f=function(c){return new d(c)}},function(a,o,n){var s=n(8),d=n(84),c=s.process,p=c&&c.versions,m=p&&p.v8,v,y;m?(v=m.split("."),y=v[0]+v[1]):d&&(v=d.match(/Edge\/(\d+)/),(!v||v[1]>=74)&&(v=d.match(/Chrome\/(\d+)/),v&&(y=v[1]))),a.exports=y&&+y},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(6),y=p.__importDefault(n(267)),E=p.__importDefault(n(280)),D=p.__importDefault(n(281)),C=p.__importDefault(n(282)),x=p.__importDefault(n(301)),A=p.__importStar(n(416)),g=p.__importDefault(n(417)),b=p.__importDefault(n(418)),N=p.__importDefault(n(419)),T=p.__importStar(n(420)),O=p.__importDefault(n(423)),k=p.__importDefault(n(424)),M=p.__importDefault(n(425)),S=p.__importDefault(n(427)),F=p.__importDefault(n(437)),R=p.__importDefault(n(440)),w=p.__importStar(n(441)),L=p.__importDefault(n(23)),$=p.__importDefault(n(134)),W=p.__importDefault(n(24)),P=p.__importDefault(n(33)),U=p.__importDefault(n(38)),Q=p.__importDefault(n(39)),J=1,ie=function(){function B(z,G){this.pluginsFunctionList={},this.beforeDestroyHooks=[],this.id="wangEditor-"+J++,this.toolbarSelector=z,this.textSelector=G,A.selectorValidator(this),this.config=v.deepClone(y.default),this.$toolbarElem=m.default("<div></div>"),this.$textContainerElem=m.default("<div></div>"),this.$textElem=m.default("<div></div>"),this.toolbarElemId="",this.textElemId="",this.isFocus=!1,this.isComposing=!1,this.isCompatibleMode=!1,this.selection=new E.default(this),this.cmd=new D.default(this),this.txt=new C.default(this),this.menus=new x.default(this),this.zIndex=new k.default,this.change=new M.default(this),this.history=new S.default(this),this.onSelectionChange=new R.default(this);var Y=F.default(this),Z=Y.disable,ae=Y.enable;this.disable=Z,this.enable=ae,this.isEnable=!0}return B.prototype.initSelection=function(z){g.default(this,z)},B.prototype.create=function(){this.zIndex.init(this),this.isCompatibleMode=this.config.compatibleMode(),this.isCompatibleMode||(this.config.onchangeTimeout=30),N.default(this),A.default(this),this.txt.init(),this.menus.init(),T.default(this),this.initSelection(!0),b.default(this),this.change.observe(),this.history.observe(),w.default(this)},B.prototype.beforeDestroy=function(z){return this.beforeDestroyHooks.push(z),this},B.prototype.destroy=function(){var z,G=this;(0,c.default)(z=this.beforeDestroyHooks).call(z,function(Y){return Y.call(G)}),this.$toolbarElem.remove(),this.$textContainerElem.remove()},B.prototype.fullScreen=function(){T.setFullScreen(this)},B.prototype.unFullScreen=function(){T.setUnFullScreen(this)},B.prototype.scrollToHead=function(z){O.default(this,z)},B.registerMenu=function(z,G){!G||typeof G!="function"||(B.globalCustomMenuConstructorList[z]=G)},B.prototype.registerPlugin=function(z,G){w.registerPlugin(z,G,this.pluginsFunctionList)},B.registerPlugin=function(z,G){w.registerPlugin(z,G,B.globalPluginsFunctionList)},B.$=m.default,B.BtnMenu=L.default,B.DropList=$.default,B.DropListMenu=W.default,B.Panel=P.default,B.PanelMenu=U.default,B.Tooltip=Q.default,B.globalCustomMenuConstructorList={},B.globalPluginsFunctionList={},B}();o.default=ie},function(a,o,n){var s=n(13),d=n(55),c=n(10),p=c("species");a.exports=function(m,v){var y;return d(m)&&(y=m.constructor,typeof y=="function"&&(y===Array||d(y.prototype))?y=void 0:s(y)&&(y=y[p],y===null&&(y=void 0))),new(y===void 0?Array:y)(v===0?0:v)}},function(a,o,n){a.exports=n(185)},function(a,o,n){var s=n(49),d=n(68),c="["+d+"]",p=RegExp("^"+c+c+"*"),m=RegExp(c+c+"*$"),v=function(E){return function(D){var C=String(s(D));return E&1&&(C=C.replace(p,"")),E&2&&(C=C.replace(m,"")),C}};a.exports={start:v(1),end:v(2),trim:v(3)}},function(a,o,n){a.exports=n(205)},function(a,o,n){var s=n(227),d=n(230);function c(p){return typeof d=="function"&&typeof s=="symbol"?a.exports=c=function(v){return typeof v}:a.exports=c=function(v){return v&&typeof d=="function"&&v.constructor===d&&v!==d.prototype?"symbol":typeof v},c(p)}a.exports=c},function(a,o,n){var s=n(10);o.f=s},function(a,o,n){a.exports=n(306)},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(33)),v=function(){function y(E,D){var C=this;this.$elem=E,this.editor=D,this._active=!1,E.on("click",function(x){var A;m.default.hideCurAllPanels(),(0,c.default)(A=D.txt.eventHooks.menuClickEvents).call(A,function(g){return g()}),x.stopPropagation(),D.selection.getRange()!=null&&C.clickHandler(x)})}return y.prototype.clickHandler=function(E){},y.prototype.active=function(){this._active=!0,this.$elem.addClass("w-e-active")},y.prototype.unActive=function(){this._active=!1,this.$elem.removeClass("w-e-active")},(0,d.default)(y.prototype,"isActive",{get:function(){return this._active},enumerable:!1,configurable:!0}),y}();o.default=v},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(28));(0,d.default)(o,"__esModule",{value:!0}),o.getParentNodeA=o.EXTRA_TAG=void 0,o.EXTRA_TAG=["B","FONT","I","STRIKE"];function p(v){for(var y=v.elems[0];y&&(0,c.default)(E=o.EXTRA_TAG).call(E,y.nodeName);){var E;if(y=y.parentElement,y.nodeName==="A")return y}}o.getParentNodeA=p;function m(v){var y,E=v.selection.getSelectionContainerElem();if(!(!((y=E==null?void 0:E.elems)===null||y===void 0)&&y.length))return!1;if(E.getNodeName()==="A")return!0;var D=p(E);return!!(D&&D.nodeName==="A")}o.default=m},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(57)),p=s(n(4)),m=s(n(27));(0,d.default)(o,"__esModule",{value:!0});var v=n(2),y=n(6),E=v.__importDefault(n(135)),D=v.__importDefault(n(136)),C=function(){function x(A){this.editor=A}return x.prototype.insertImg=function(A,g,b){var N=this.editor,T=N.config,O="validate.",k=function(L,$){return $===void 0&&($=O),N.i18next.t($+L)},M=A.replace(/</g,"<").replace(/>/g,">");M=M.replace("'",'"');var S="";b&&(S=b.replace("'",'"'),S="data-href='"+encodeURIComponent(S)+"' ");var F="";g&&(F=g.replace(/</g,"<").replace(/>/g,">"),F=F.replace("'",'"'),F="alt='"+F+"' "),N.cmd.do("insertHTML","<img src='"+M+"' "+F+S+'style="max-width:100%;" contenteditable="false"/>'),T.linkImgCallback(A,g,b);var R=document.createElement("img");R.onload=function(){R=null},R.onerror=function(){T.customAlert(k("\u63D2\u5165\u56FE\u7247\u9519\u8BEF"),"error","wangEditor: "+k("\u63D2\u5165\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+k("\u56FE\u7247\u94FE\u63A5")+' "'+A+'"\uFF0C'+k("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),R=null},R.onabort=function(){return R=null},R.src=A},x.prototype.uploadImg=function(A){var g=this;if(!!A.length){var b=this.editor,N=b.config,T="validate.",O=function(se){return b.i18next.t(T+se)},k=N.uploadImgServer,M=N.uploadImgShowBase64,S=N.uploadImgMaxSize,F=S/1024/1024,R=N.uploadImgMaxLength,w=N.uploadFileName,L=N.uploadImgParams,$=N.uploadImgParamsWithUrl,W=N.uploadImgHeaders,P=N.uploadImgHooks,U=N.uploadImgTimeout,Q=N.withCredentials,J=N.customUploadImg;if(!(!J&&!k&&!M)){var ie=[],B=[];if(y.arrForEach(A,function(ue){if(!!ue){var se=ue.name||ue.type.replace("/","."),le=ue.size;if(!(!se||!le)){var te=b.config.uploadImgAccept.join("|"),pe=".("+te+")$",me=new RegExp(pe,"i");if(me.test(se)===!1){B.push("\u3010"+se+"\u3011"+O("\u4E0D\u662F\u56FE\u7247"));return}if(S<le){B.push("\u3010"+se+"\u3011"+O("\u5927\u4E8E")+" "+F+"M");return}ie.push(ue)}}}),B.length){N.customAlert(O("\u56FE\u7247\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
`+B.join(`
`),"warning");return}if(ie.length===0){N.customAlert(O("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(ie.length>R){N.customAlert(O("\u4E00\u6B21\u6700\u591A\u4E0A\u4F20")+R+O("\u5F20\u56FE\u7247"),"warning");return}if(J&&typeof J=="function"){var z;J(ie,(0,c.default)(z=this.insertImg).call(z,this));return}var G=new FormData;if((0,p.default)(ie).call(ie,function(ue,se){var le=w||ue.name;ie.length>1&&(le=le+(se+1)),G.append(le,ue)}),k){var Y=k.split("#");k=Y[0];var Z=Y[1]||"";(0,p.default)(y).call(y,L,function(ue,se){$&&((0,m.default)(k).call(k,"?")>0?k+="&":k+="?",k=k+ue+"="+se),G.append(ue,se)}),Z&&(k+="#"+Z);var ae=E.default(k,{timeout:U,formData:G,headers:W,withCredentials:!!Q,beforeSend:function(se){if(P.before)return P.before(se,b,ie)},onTimeout:function(se){N.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u8D85\u65F6"),"error"),P.timeout&&P.timeout(se,b)},onProgress:function(se,le){var te=new D.default(b);le.lengthComputable&&(se=le.loaded/le.total,te.show(se))},onError:function(se){N.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF"),"error",O("\u4E0A\u4F20\u56FE\u7247\u9519\u8BEF")+"\uFF0C"+O("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+se.status),P.error&&P.error(se,b)},onFail:function(se,le){N.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",O("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+O("\u8FD4\u56DE\u7ED3\u679C")+": ")+le),P.fail&&P.fail(se,b,le)},onSuccess:function(se,le){if(P.customInsert){var te;P.customInsert((0,c.default)(te=g.insertImg).call(te,g),le,b);return}if(le.errno!="0"){N.customAlert(O("\u4E0A\u4F20\u56FE\u7247\u5931\u8D25"),"error",O("\u4E0A\u4F20\u56FE\u7247\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+O("\u8FD4\u56DE\u7ED3\u679C")+" errno="+le.errno),P.fail&&P.fail(se,b,le);return}var pe=le.data;(0,p.default)(pe).call(pe,function(me){typeof me=="string"?g.insertImg(me):g.insertImg(me.url,me.alt,me.href)}),P.success&&P.success(se,b,le)}});typeof ae=="string"&&N.customAlert(ae,"error");return}M&&y.arrForEach(A,function(ue){var se=g,le=new FileReader;le.readAsDataURL(ue),le.onload=function(){if(!!this.result){var te=this.result.toString();se.insertImg(te,te)}}})}}},x}();o.default=C},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(410)),p=s(n(4)),m=s(n(45));(0,d.default)(o,"__esModule",{value:!0}),o.dealTextNode=o.isAllTodo=o.isTodo=o.getCursorNextNode=void 0;function v(x){return x.length?x.attr("class")==="w-e-todo":!1}o.isTodo=v;function y(x){var A=x.selection.getSelectionRangeTopNodes();if(A.length!==0)return(0,c.default)(A).call(A,function(g){return v(g)})}o.isAllTodo=y;function E(x,A,g){var b;if(!!x.hasChildNodes()){var N=x.cloneNode(),T=!1;A.nodeValue===""&&(T=!0);var O=[];return(0,p.default)(b=x.childNodes).call(b,function(k){if(!D(k,A)&&T&&(N.appendChild(k.cloneNode(!0)),k.nodeName!=="BR"&&O.push(k)),D(k,A)){if(k.nodeType===1){var M=E(k,A,g);M&&M.textContent!==""&&(N==null||N.appendChild(M))}if(k.nodeType===3&&A.isEqualNode(k)){var S=C(k,g);N.textContent=S}T=!0}}),(0,p.default)(O).call(O,function(k){var M=k;M.remove()}),N}}o.getCursorNextNode=E;function D(x,A){return x.nodeType===3?x.nodeValue===A.nodeValue:x.contains(A)}function C(x,A,g){g===void 0&&(g=!0);var b=x.nodeValue,N=b==null?void 0:(0,m.default)(b).call(b,0,A);if(b=b==null?void 0:(0,m.default)(b).call(b,A),!g){var T=b;b=N,N=T}return x.nodeValue=N,b}o.dealTextNode=C},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(430),p=function(){function m(v){this.maxSize=v,this.isRe=!1,this.data=new c.CeilStack(v),this.revokeData=new c.CeilStack(v)}return(0,d.default)(m.prototype,"size",{get:function(){return[this.data.size,this.revokeData.size]},enumerable:!1,configurable:!0}),m.prototype.resetMaxSize=function(v){this.data.resetMax(v),this.revokeData.resetMax(v)},m.prototype.save=function(v){return this.isRe&&(this.revokeData.clear(),this.isRe=!1),this.data.instack(v),this},m.prototype.revoke=function(v){!this.isRe&&(this.isRe=!0);var y=this.data.outstack();return y?(this.revokeData.instack(y),v(y),!0):!1},m.prototype.restore=function(v){!this.isRe&&(this.isRe=!0);var y=this.revokeData.outstack();return y?(this.data.instack(y),v(y),!0):!1},m}();o.default=p},function(a,o,n){var s=n(14),d=n(11),c=n(73);a.exports=!s&&!d(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},function(a,o,n){var s=n(11),d=/#|\.prototype\./,c=function(D,C){var x=m[p(D)];return x==y?!0:x==v?!1:typeof C=="function"?s(C):!!C},p=c.normalize=function(E){return String(E).replace(d,".").toLowerCase()},m=c.data={},v=c.NATIVE="N",y=c.POLYFILL="P";a.exports=c},function(a,o,n){var s=n(103),d=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(c){return d.call(c)}),a.exports=s.inspectSource},function(a,o,n){var s=n(8),d=n(166),c="__core-js_shared__",p=s[c]||d(c,{});a.exports=p},function(a,o,n){var s=n(105),d=n(19),c=n(16),p=n(10),m=n(43),v=p("iterator"),y=!1,E=function(){return this},D,C,x;[].keys&&(x=[].keys(),"next"in x?(C=s(s(x)),C!==Object.prototype&&(D=C)):y=!0),D==null&&(D={}),!m&&!c(D,v)&&d(D,v,E),a.exports={IteratorPrototype:D,BUGGY_SAFARI_ITERATORS:y}},function(a,o,n){var s=n(16),d=n(31),c=n(63),p=n(168),m=c("IE_PROTO"),v=Object.prototype;a.exports=p?Object.getPrototypeOf:function(y){return y=d(y),s(y,m)?y[m]:typeof y.constructor=="function"&&y instanceof y.constructor?y.constructor.prototype:y instanceof Object?v:null}},function(a,o,n){var s=n(76);a.exports=s&&!Symbol.sham&&Rt(Symbol.iterator)=="symbol"},function(a,o,n){var s=n(16),d=n(30),c=n(78).indexOf,p=n(51);a.exports=function(m,v){var y=d(m),E=0,D=[],C;for(C in y)!s(p,C)&&s(y,C)&&D.push(C);for(;v.length>E;)s(y,C=v[E++])&&(~c(D,C)||D.push(C));return D}},function(a,o,n){var s=n(36);a.exports=s("document","documentElement")},function(a,o,n){var s=n(8);a.exports=s.Promise},function(a,o,n){var s=n(53);a.exports=function(d,c,p){for(var m in c)p&&p.unsafe&&d[m]?d[m]=c[m]:s(d,m,c[m],p);return d}},function(a,o,n){var s=n(36),d=n(18),c=n(10),p=n(14),m=c("species");a.exports=function(v){var y=s(v),E=d.f;p&&y&&!y[m]&&E(y,m,{configurable:!0,get:function(){return this}})}},function(a,o,n){var s=n(10),d=n(44),c=s("iterator"),p=Array.prototype;a.exports=function(m){return m!==void 0&&(d.Array===m||p[c]===m)}},function(a,o,n){var s=n(65),d=n(44),c=n(10),p=c("iterator");a.exports=function(m){if(m!=null)return m[p]||m["@@iterator"]||d[s(m)]}},function(a,o,n){var s=n(25);a.exports=function(d,c,p,m){try{return m?c(s(p)[0],p[1]):c(p)}catch(y){var v=d.return;throw v!==void 0&&s(v.call(d)),y}}},function(a,o,n){var s=n(10),d=s("iterator"),c=!1;try{var p=0,m={next:function(){return{done:!!p++}},return:function(){c=!0}};m[d]=function(){return this},Array.from(m,function(){throw 2})}catch{}a.exports=function(v,y){if(!y&&!c)return!1;var E=!1;try{var D={};D[d]=function(){return{next:function(){return{done:E=!0}}}},v(D)}catch{}return E}},function(a,o,n){var s=n(25),d=n(41),c=n(10),p=c("species");a.exports=function(m,v){var y=s(m).constructor,E;return y===void 0||(E=s(y)[p])==null?v:d(E)}},function(a,o,n){var s=n(8),d=n(11),c=n(34),p=n(40),m=n(108),v=n(73),y=n(118),E=s.location,D=s.setImmediate,C=s.clearImmediate,x=s.process,A=s.MessageChannel,g=s.Dispatch,b=0,N={},T="onreadystatechange",O,k,M,S=function($){if(N.hasOwnProperty($)){var W=N[$];delete N[$],W()}},F=function($){return function(){S($)}},R=function($){S($.data)},w=function($){s.postMessage($+"",E.protocol+"//"+E.host)};(!D||!C)&&(D=function($){for(var W=[],P=1;arguments.length>P;)W.push(arguments[P++]);return N[++b]=function(){(typeof $=="function"?$:Function($)).apply(void 0,W)},O(b),b},C=function($){delete N[$]},c(x)=="process"?O=function($){x.nextTick(F($))}:g&&g.now?O=function($){g.now(F($))}:A&&!y?(k=new A,M=k.port2,k.port1.onmessage=R,O=p(M.postMessage,M,1)):s.addEventListener&&typeof postMessage=="function"&&!s.importScripts&&!d(w)&&E.protocol!=="file:"?(O=w,s.addEventListener("message",R,!1)):T in v("script")?O=function($){m.appendChild(v("script"))[T]=function(){m.removeChild(this),S($)}}:O=function($){setTimeout(F($),0)}),a.exports={set:D,clear:C}},function(a,o,n){var s=n(84);a.exports=/(iphone|ipod|ipad).*applewebkit/i.test(s)},function(a,o,n){var s=n(25),d=n(13),c=n(85);a.exports=function(p,m){if(s(p),d(m)&&m.constructor===p)return m;var v=c.f(p),y=v.resolve;return y(m),v.promise}},function(a,o){a.exports=function(n){try{return{error:!1,value:n()}}catch(s){return{error:!0,value:s}}}},function(a,o,n){a.exports=n(197)},function(a,o,n){var s=n(5),d=n(8),c=n(123),p=n(11),m=n(19),v=n(66),y=n(83),E=n(13),D=n(37),C=n(18).f,x=n(32).forEach,A=n(14),g=n(42),b=g.set,N=g.getterFor;a.exports=function(T,O,k){var M=T.indexOf("Map")!==-1,S=T.indexOf("Weak")!==-1,F=M?"set":"add",R=d[T],w=R&&R.prototype,L={},$;if(!A||typeof R!="function"||!(S||w.forEach&&!p(function(){new R().entries().next()})))$=k.getConstructor(O,T,M,F),c.REQUIRED=!0;else{$=O(function(P,U){b(y(P,$,T),{type:T,collection:new R}),U!=null&&v(U,P[F],P,M)});var W=N(T);x(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(P){var U=P=="add"||P=="set";P in w&&!(S&&P=="clear")&&m($.prototype,P,function(Q,J){var ie=W(this).collection;if(!U&&S&&!E(Q))return P=="get"?void 0:!1;var B=ie[P](Q===0?0:Q,J);return U?this:B})}),S||C($.prototype,"size",{configurable:!0,get:function(){return W(this).collection.size}})}return D($,T,!1,!0),L[T]=$,s({global:!0,forced:!0},L),S||k.setStrong($,T,M),$}},function(a,o,n){var s=n(51),d=n(13),c=n(16),p=n(18).f,m=n(64),v=n(200),y=m("meta"),E=0,D=Object.isExtensible||function(){return!0},C=function(T){p(T,y,{value:{objectID:"O"+ ++E,weakData:{}}})},x=function(T,O){if(!d(T))return Rt(T)=="symbol"?T:(typeof T=="string"?"S":"P")+T;if(!c(T,y)){if(!D(T))return"F";if(!O)return"E";C(T)}return T[y].objectID},A=function(T,O){if(!c(T,y)){if(!D(T))return!0;if(!O)return!1;C(T)}return T[y].weakData},g=function(T){return v&&b.REQUIRED&&D(T)&&!c(T,y)&&C(T),T},b=a.exports={REQUIRED:!1,fastKey:x,getWeakData:A,onFreeze:g};s[y]=!0},function(a,o,n){var s=n(18).f,d=n(77),c=n(110),p=n(40),m=n(83),v=n(66),y=n(75),E=n(111),D=n(14),C=n(123).fastKey,x=n(42),A=x.set,g=x.getterFor;a.exports={getConstructor:function(N,T,O,k){var M=N(function(w,L){m(w,M,T),A(w,{type:T,index:d(null),first:void 0,last:void 0,size:0}),D||(w.size=0),L!=null&&v(L,w[k],w,O)}),S=g(T),F=function(L,$,W){var P=S(L),U=R(L,$),Q,J;return U?U.value=W:(P.last=U={index:J=C($,!0),key:$,value:W,previous:Q=P.last,next:void 0,removed:!1},P.first||(P.first=U),Q&&(Q.next=U),D?P.size++:L.size++,J!=="F"&&(P.index[J]=U)),L},R=function(L,$){var W=S(L),P=C($),U;if(P!=="F")return W.index[P];for(U=W.first;U;U=U.next)if(U.key==$)return U};return c(M.prototype,{clear:function(){for(var L=this,$=S(L),W=$.index,P=$.first;P;)P.removed=!0,P.previous&&(P.previous=P.previous.next=void 0),delete W[P.index],P=P.next;$.first=$.last=void 0,D?$.size=0:L.size=0},delete:function(L){var $=this,W=S($),P=R($,L);if(P){var U=P.next,Q=P.previous;delete W.index[P.index],P.removed=!0,Q&&(Q.next=U),U&&(U.previous=Q),W.first==P&&(W.first=U),W.last==P&&(W.last=Q),D?W.size--:$.size--}return!!P},forEach:function(L){for(var $=S(this),W=p(L,arguments.length>1?arguments[1]:void 0,3),P;P=P?P.next:$.first;)for(W(P.value,P.key,this);P&&P.removed;)P=P.previous},has:function(L){return!!R(this,L)}}),c(M.prototype,O?{get:function(L){var $=R(this,L);return $&&$.value},set:function(L,$){return F(this,L===0?0:L,$)}}:{add:function(L){return F(this,L=L===0?0:L,L)}}),D&&s(M.prototype,"size",{get:function(){return S(this).size}}),M},setStrong:function(N,T,O){var k=T+" Iterator",M=g(T),S=g(k);y(N,T,function(F,R){A(this,{type:k,target:F,state:M(F),kind:R,last:void 0})},function(){for(var F=S(this),R=F.kind,w=F.last;w&&w.removed;)w=w.previous;return!F.target||!(F.last=w=w?w.next:F.state.first)?(F.target=void 0,{value:void 0,done:!0}):R=="keys"?{value:w.key,done:!1}:R=="values"?{value:w.value,done:!1}:{value:[w.key,w.value],done:!1}},O?"entries":"values",!O,!0),E(T)}}},function(a,o,n){var s=n(12);s("iterator")},function(a,o,n){var s=n(107),d=n(80),c=d.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(m){return s(m,c)}},function(a,o){o.f=Object.getOwnPropertySymbols},function(a,o,n){a.exports=n(268)},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={zIndex:1e4}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={focus:!0,height:300,placeholder:"\u8BF7\u8F93\u5165\u6B63\u6587",zIndexFullScreen:10002,showFullScreen:!0}},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0}),o.getPasteImgs=o.getPasteHtml=o.getPasteText=void 0;var p=n(2),m=n(6),v=p.__importDefault(n(292));function y(C){var x=C.clipboardData,A="";return x==null?A=window.clipboardData&&window.clipboardData.getData("text"):A=x.getData("text/plain"),m.replaceHtmlSymbol(A)}o.getPasteText=y;function E(C,x,A){x===void 0&&(x=!0),A===void 0&&(A=!1);var g=C.clipboardData,b="";if(g&&(b=g.getData("text/html")),!b){var N=y(C);if(!N)return"";b="<p>"+N+"</p>"}return b=b.replace(/<(\d)/gm,function(T,O){return"<"+O}),b=b.replace(/<(\/?meta.*?)>/gim,""),b=v.default(b,x,A),b}o.getPasteHtml=E;function D(C){var x,A=[],g=y(C);if(g)return A;var b=(x=C.clipboardData)===null||x===void 0?void 0:x.items;return b&&(0,c.default)(m).call(m,b,function(N,T){var O=T.type;/image/i.test(O)&&A.push(T.getAsFile())}),A}o.getPasteImgs=D},function(a,o,n){a.exports=n(294)},function(a,o,n){a.exports=n(310)},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(46));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),y=n(7),E=function(){function D(C,x){var A=this;this.hideTimeoutId=0,this.menu=C,this.conf=x;var g=v.default('<div class="w-e-droplist"></div>'),b=v.default("<p>"+x.title+"</p>");b.addClass("w-e-dp-title"),g.append(b);var N=x.list||[],T=x.type||"list",O=x.clickHandler||y.EMPTY_FN,k=v.default('<ul class="'+(T==="list"?"w-e-list":"w-e-block")+'"></ul>');(0,c.default)(N).call(N,function(M){var S=M.$elem,F=M.value,R=v.default('<li class="w-e-item"></li>');S&&(R.append(S),k.append(R),R.on("click",function(w){O(F),w.stopPropagation(),A.hideTimeoutId=(0,p.default)(function(){A.hide()})}))}),g.append(k),g.on("mouseleave",function(){A.hideTimeoutId=(0,p.default)(function(){A.hide()})}),this.$container=g,this.rendered=!1,this._show=!1}return D.prototype.show=function(){this.hideTimeoutId&&clearTimeout(this.hideTimeoutId);var C=this.menu,x=C.$elem,A=this.$container;if(!this._show){if(this.rendered)A.show();else{var g=x.getBoundingClientRect().height||0,b=this.conf.width||100;A.css("margin-top",g+"px").css("width",b+"px"),x.append(A),this.rendered=!0}this._show=!0}},D.prototype.hide=function(){var C=this.$container;!this._show||(C.hide(),this._show=!1)},(0,d.default)(D.prototype,"isShow",{get:function(){return this._show},enumerable:!1,configurable:!0}),D}();o.default=E},function(a,o,n){var s=n(0),d=s(n(92)),c=s(n(1)),p=s(n(4));(0,c.default)(o,"__esModule",{value:!0});var m=n(6);function v(y,E){var D=new XMLHttpRequest;if(D.open("POST",y),D.timeout=E.timeout||10*1e3,D.ontimeout=function(){console.error("wangEditor - \u8BF7\u6C42\u8D85\u65F6"),E.onTimeout&&E.onTimeout(D)},D.upload&&(D.upload.onprogress=function(x){var A=x.loaded/x.total;E.onProgress&&E.onProgress(A,x)}),E.headers&&(0,p.default)(m).call(m,E.headers,function(x,A){D.setRequestHeader(x,A)}),D.withCredentials=!!E.withCredentials,E.beforeSend){var C=E.beforeSend(D);if(C&&(0,d.default)(C)==="object"&&C.prevent)return C.msg}return D.onreadystatechange=function(){if(D.readyState===4){var x=D.status;if(!(x<200)&&!(x>=300&&x<400)){if(x>=400){console.error("wangEditor - XHR \u62A5\u9519\uFF0C\u72B6\u6001\u7801 "+x),E.onError&&E.onError(D);return}var A=D.responseText,g;if((0,d.default)(A)!=="object")try{g=JSON.parse(A)}catch{console.error("wangEditor - \u8FD4\u56DE\u7ED3\u679C\u4E0D\u662F JSON \u683C\u5F0F",A),E.onFail&&E.onFail(D,A);return}else g=A;E.onSuccess(D,g)}}},D.send(E.formData||null),D}o.default=v},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(342)),p=s(n(46));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),y=function(){function E(D){this.editor=D,this.$textContainer=D.$textContainerElem,this.$bar=v.default('<div class="w-e-progress"></div>'),this.isShow=!1,this.time=0,this.timeoutId=0}return E.prototype.show=function(D){var C=this;if(!this.isShow){this.isShow=!0;var x=this.$bar,A=this.$textContainer;A.append(x),(0,c.default)()-this.time>100&&D<=1&&(x.css("width",D*100+"%"),this.time=(0,c.default)());var g=this.timeoutId;g&&clearTimeout(g),this.timeoutId=(0,p.default)(function(){C.hide()},500)}},E.prototype.hide=function(){var D=this.$bar;D.remove(),this.isShow=!1,this.time=0,this.timeoutId=0},E}();o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.ListType=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(24)),v=n(47),y=c.__importStar(n(371)),E;(function(C){C.OrderedList="OL",C.UnorderedList="UL"})(E=o.ListType||(o.ListType={}));var D=function(C){c.__extends(x,C);function x(A){var g=this,b=p.default(`<div class="w-e-menu" data-title="\u5E8F\u5217">
<i class="w-e-icon-list2"></i>
</div>`),N={width:130,title:"\u5E8F\u5217",type:"list",list:[{$elem:p.default(`
<p>
<i class="w-e-icon-list2 w-e-drop-list-item"></i>
`+A.i18next.t("menus.dropListMenu.list.\u65E0\u5E8F\u5217\u8868")+`
<p>`),value:E.UnorderedList},{$elem:p.default(`<p>
<i class="w-e-icon-list-numbered w-e-drop-list-item"></i>
`+A.i18next.t("menus.dropListMenu.list.\u6709\u5E8F\u5217\u8868")+`
<p>`),value:E.OrderedList}],clickHandler:function(O){g.command(O)}};return g=C.call(this,b,A,N)||this,g}return x.prototype.command=function(A){var g=this.editor,b=g.selection.getSelectionContainerElem();b!==void 0&&(this.handleSelectionRangeNodes(A),this.tryChangeActive())},x.prototype.validator=function(A,g,b){return!(!A.length||!g.length||b.equal(A)||b.equal(g))},x.prototype.handleSelectionRangeNodes=function(A){var g=this.editor,b=g.selection,N=A.toLowerCase(),T=b.getSelectionContainerElem(),O=b.getSelectionStartElem().getNodeTop(g),k=b.getSelectionEndElem().getNodeTop(g);if(!!this.validator(O,k,g.$textElem)){var M=b.getRange(),S=M==null?void 0:M.collapsed;g.$textElem.equal(T)||(T=T.getNodeTop(g));var F={editor:g,listType:A,listTarget:N,$selectionElem:T,$startElem:O,$endElem:k},R;this.isOrderElem(T)?R=y.ClassType.Wrap:this.isOrderElem(O)&&this.isOrderElem(k)?R=y.ClassType.Join:this.isOrderElem(O)?R=y.ClassType.StartJoin:this.isOrderElem(k)?R=y.ClassType.EndJoin:R=y.ClassType.Other;var w=new y.default(y.createListHandle(R,F,M));v.updateRange(g,w.getSelectionRangeElem(),!!S)}},x.prototype.isOrderElem=function(A){var g=A.getNodeName();return g===E.OrderedList||g===E.UnorderedList},x.prototype.tryChangeActive=function(){},x}(m.default);o.default=D},function(a,o,n){a.exports=n(395)},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});function c(p){var m=p.selection.getSelectionContainerElem();return m!=null&&m.length?!!(m.getNodeName()=="CODE"||m.getNodeName()=="PRE"||m.parent().getNodeName()=="CODE"||m.parent().getNodeName()=="PRE"||/hljs/.test(m.parent().attr("class"))):!1}o.default=c},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(29));(0,d.default)(o,"__esModule",{value:!0}),o.todo=void 0;var p=n(2),m=p.__importDefault(n(3)),v=function(){function E(D){var C;this.template='<ul class="w-e-todo"><li><span contenteditable="false"><input type="checkbox"></span></li></ul>',this.checked=!1,this.$todo=m.default(this.template),this.$child=(C=D==null?void 0:D.childNodes())===null||C===void 0?void 0:C.clone(!0)}return E.prototype.init=function(){var D=this.$child,C=this.getInputContainer();D&&D.insertAfter(C)},E.prototype.getInput=function(){var D=this.$todo,C=(0,c.default)(D).call(D,"input");return C},E.prototype.getInputContainer=function(){var D=this.getInput().parent();return D},E.prototype.getTodo=function(){return this.$todo},E}();o.todo=v;function y(E){var D=new v(E);return D.init(),D}o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2);n(146),n(148),n(152),n(154),n(156),n(158),n(160);var p=c.__importDefault(n(87));c.__exportStar(n(442),o);try{}catch{throw new Error("\u8BF7\u5728\u6D4F\u89C8\u5668\u73AF\u5883\u4E0B\u8FD0\u884C")}o.default=p.default},function(a,o,n){var s=n(143);a.exports=s},function(a,o,n){n(144);var s=n(9),d=s.Object,c=a.exports=function(m,v,y){return d.defineProperty(m,v,y)};d.defineProperty.sham&&(c.sham=!0)},function(a,o,n){var s=n(5),d=n(14),c=n(18);s({target:"Object",stat:!0,forced:!d,sham:!d},{defineProperty:c.f})},function(a,o){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch{(typeof window>"u"?"undefined":Rt(window))==="object"&&(n=window)}a.exports=n},function(a,o,n){var s=n(20),d=n(147);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-toolbar,
.w-e-text-container,
.w-e-menu-panel {
padding: 0;
margin: 0;
box-sizing: border-box;
background-color: #fff;
/*\u8868\u60C5\u83DC\u5355\u6837\u5F0F*/
/*\u5206\u5272\u7EBF\u6837\u5F0F*/
}
.w-e-toolbar h1,
.w-e-text-container h1,
.w-e-menu-panel h1 {
font-size: 32px !important;
}
.w-e-toolbar h2,
.w-e-text-container h2,
.w-e-menu-panel h2 {
font-size: 24px !important;
}
.w-e-toolbar h3,
.w-e-text-container h3,
.w-e-menu-panel h3 {
font-size: 18.72px !important;
}
.w-e-toolbar h4,
.w-e-text-container h4,
.w-e-menu-panel h4 {
font-size: 16px !important;
}
.w-e-toolbar h5,
.w-e-text-container h5,
.w-e-menu-panel h5 {
font-size: 13.28px !important;
}
.w-e-toolbar p,
.w-e-text-container p,
.w-e-menu-panel p {
font-size: 16px !important;
}
.w-e-toolbar .eleImg,
.w-e-text-container .eleImg,
.w-e-menu-panel .eleImg {
cursor: pointer;
display: inline-block;
font-size: 18px;
padding: 0 3px;
}
.w-e-toolbar *,
.w-e-text-container *,
.w-e-menu-panel * {
padding: 0;
margin: 0;
box-sizing: border-box;
}
.w-e-toolbar hr,
.w-e-text-container hr,
.w-e-menu-panel hr {
cursor: pointer;
display: block;
height: 0px;
border: 0;
border-top: 3px solid #ccc;
margin: 20px 0;
}
.w-e-clear-fix:after {
content: "";
display: table;
clear: both;
}
.w-e-drop-list-item {
position: relative;
top: 1px;
padding-right: 7px;
color: #333 !important;
}
.w-e-drop-list-tl {
padding-left: 10px;
text-align: left;
}
`,""]),a.exports=o},function(a,o,n){var s=n(20),d=n(149);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21),d=n(150),c=n(151);o=s(!1);var p=d(c);o.push([a.i,`@font-face {
font-family: 'w-e-icon';
src: url(`+p+`) format('truetype');
font-weight: normal;
font-style: normal;
}
[class^="w-e-icon-"],
[class*=" w-e-icon-"] {
/* use !important to prevent issues with browser extensions that change fonts */
font-family: 'w-e-icon' !important;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
/* Better Font Rendering =========== */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.w-e-icon-close:before {
content: "\\f00d";
}
.w-e-icon-upload2:before {
content: "\\e9c6";
}
.w-e-icon-trash-o:before {
content: "\\f014";
}
.w-e-icon-header:before {
content: "\\f1dc";
}
.w-e-icon-pencil2:before {
content: "\\e906";
}
.w-e-icon-paint-brush:before {
content: "\\f1fc";
}
.w-e-icon-image:before {
content: "\\e90d";
}
.w-e-icon-play:before {
content: "\\e912";
}
.w-e-icon-location:before {
content: "\\e947";
}
.w-e-icon-undo:before {
content: "\\e965";
}
.w-e-icon-redo:before {
content: "\\e966";
}
.w-e-icon-quotes-left:before {
content: "\\e977";
}
.w-e-icon-list-numbered:before {
content: "\\e9b9";
}
.w-e-icon-list2:before {
content: "\\e9bb";
}
.w-e-icon-link:before {
content: "\\e9cb";
}
.w-e-icon-happy:before {
content: "\\e9df";
}
.w-e-icon-bold:before {
content: "\\ea62";
}
.w-e-icon-underline:before {
content: "\\ea63";
}
.w-e-icon-italic:before {
content: "\\ea64";
}
.w-e-icon-strikethrough:before {
content: "\\ea65";
}
.w-e-icon-table2:before {
content: "\\ea71";
}
.w-e-icon-paragraph-left:before {
content: "\\ea77";
}
.w-e-icon-paragraph-center:before {
content: "\\ea78";
}
.w-e-icon-paragraph-right:before {
content: "\\ea79";
}
.w-e-icon-paragraph-justify:before {
content: "\\ea7a";
}
.w-e-icon-terminal:before {
content: "\\f120";
}
.w-e-icon-page-break:before {
content: "\\ea68";
}
.w-e-icon-cancel-circle:before {
content: "\\ea0d";
}
.w-e-icon-font:before {
content: "\\ea5c";
}
.w-e-icon-text-heigh:before {
content: "\\ea5f";
}
.w-e-icon-paint-format:before {
content: "\\e90c";
}
.w-e-icon-indent-increase:before {
content: "\\ea7b";
}
.w-e-icon-indent-decrease:before {
content: "\\ea7c";
}
.w-e-icon-row-height:before {
content: "\\e9be";
}
.w-e-icon-fullscreen_exit:before {
content: "\\e900";
}
.w-e-icon-fullscreen:before {
content: "\\e901";
}
.w-e-icon-split-line:before {
content: "\\ea0b";
}
.w-e-icon-checkbox-checked:before {
content: "\\ea52";
}
`,""]),a.exports=o},function(a,o,n){a.exports=function(s,d){return d||(d={}),s=s&&s.__esModule?s.default:s,typeof s!="string"?s:(/^['"].*['"]$/.test(s)&&(s=s.slice(1,-1)),d.hash&&(s+=d.hash),/["'() \t\n]/.test(s)||d.needQuotes?'"'.concat(s.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):s)}},function(a,o,n){n.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(a,o,n){var s=n(20),d=n(153);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-toolbar {
display: flex;
padding: 0 6px;
flex-wrap: wrap;
position: relative;
/* \u5355\u4E2A\u83DC\u5355 */
}
.w-e-toolbar .w-e-menu {
position: relative;
display: flex;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
text-align: center;
cursor: pointer;
}
.w-e-toolbar .w-e-menu i {
color: #999;
}
.w-e-toolbar .w-e-menu:hover {
background-color: #F6F6F6;
}
.w-e-toolbar .w-e-menu:hover i {
color: #333;
}
.w-e-toolbar .w-e-active i {
color: #1e88e5;
}
.w-e-toolbar .w-e-active:hover i {
color: #1e88e5;
}
.w-e-menu-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-menu-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-menu-tooltip-item-wrapper {
font-size: 14px;
margin: 0 5px;
}
`,""]),a.exports=o},function(a,o,n){var s=n(20),d=n(155);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-text-container {
position: relative;
height: 100%;
}
.w-e-text-container .w-e-progress {
position: absolute;
background-color: #1e88e5;
top: 0;
left: 0;
height: 1px;
}
.w-e-text-container .placeholder {
color: #D4D4D4;
position: absolute;
font-size: 11pt;
line-height: 22px;
left: 10px;
top: 10px;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
z-index: -1;
}
.w-e-text {
padding: 0 10px;
overflow-y: auto;
}
.w-e-text p,
.w-e-text h1,
.w-e-text h2,
.w-e-text h3,
.w-e-text h4,
.w-e-text h5,
.w-e-text table,
.w-e-text pre {
margin: 10px 0;
line-height: 1.5;
}
.w-e-text ul,
.w-e-text ol {
margin: 10px 0 10px 20px;
}
.w-e-text blockquote {
display: block;
border-left: 8px solid #d0e5f2;
padding: 5px 10px;
margin: 10px 0;
line-height: 1.4;
font-size: 100%;
background-color: #f1f1f1;
}
.w-e-text code {
display: inline-block;
background-color: #f1f1f1;
border-radius: 3px;
padding: 3px 5px;
margin: 0 3px;
}
.w-e-text pre code {
display: block;
}
.w-e-text table {
border-top: 1px solid #ccc;
border-left: 1px solid #ccc;
}
.w-e-text table td,
.w-e-text table th {
border-bottom: 1px solid #ccc;
border-right: 1px solid #ccc;
padding: 3px 5px;
min-height: 30px;
height: 30px;
}
.w-e-text table th {
border-bottom: 2px solid #ccc;
text-align: center;
background-color: #f1f1f1;
}
.w-e-text:focus {
outline: none;
}
.w-e-text img {
cursor: pointer;
}
.w-e-text img:hover {
box-shadow: 0 0 5px #333;
}
.w-e-text .w-e-todo {
margin: 0 0 0 20px;
}
.w-e-text .w-e-todo li {
list-style: none;
font-size: 1em;
}
.w-e-text .w-e-todo li span:nth-child(1) {
position: relative;
left: -18px;
}
.w-e-text .w-e-todo li span:nth-child(1) input {
position: absolute;
margin-right: 3px;
}
.w-e-text .w-e-todo li span:nth-child(1) input[type=checkbox] {
top: 50%;
margin-top: -6px;
}
.w-e-tooltip {
position: absolute;
display: flex;
color: #f1f1f1;
background-color: rgba(0, 0, 0, 0.75);
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.15);
border-radius: 4px;
padding: 4px 5px 6px;
justify-content: center;
align-items: center;
}
.w-e-tooltip-up::after {
content: "";
position: absolute;
top: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-top-color: rgba(0, 0, 0, 0.73);
}
.w-e-tooltip-down::after {
content: "";
position: absolute;
bottom: 100%;
left: 50%;
margin-left: -5px;
border: 5px solid rgba(0, 0, 0, 0);
border-bottom-color: rgba(0, 0, 0, 0.73);
}
.w-e-tooltip-item-wrapper {
cursor: pointer;
font-size: 14px;
margin: 0 5px;
}
.w-e-tooltip-item-wrapper:hover {
color: #ccc;
text-decoration: underline;
}
`,""]),a.exports=o},function(a,o,n){var s=n(20),d=n(157);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-menu .w-e-panel-container {
position: absolute;
top: 0;
left: 50%;
border: 1px solid #ccc;
border-top: 0;
box-shadow: 1px 1px 2px #ccc;
color: #333;
background-color: #fff;
text-align: left;
/* \u4E3A emotion panel \u5B9A\u5236\u7684\u6837\u5F0F */
/* \u4E0A\u4F20\u56FE\u7247\u3001\u4E0A\u4F20\u89C6\u9891\u7684 panel \u5B9A\u5236\u6837\u5F0F */
}
.w-e-menu .w-e-panel-container .w-e-panel-close {
position: absolute;
right: 0;
top: 0;
padding: 5px;
margin: 2px 5px 0 0;
cursor: pointer;
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-close:hover {
color: #333;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title {
list-style: none;
display: flex;
font-size: 14px;
margin: 2px 10px 0 10px;
border-bottom: 1px solid #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-item {
padding: 3px 5px;
color: #999;
cursor: pointer;
margin: 0 3px;
position: relative;
top: 1px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-title .w-e-active {
color: #333;
border-bottom: 1px solid #333;
cursor: default;
font-weight: 700;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content {
padding: 10px 15px 10px 15px;
font-size: 16px;
/* \u8F93\u5165\u6846\u7684\u6837\u5F0F */
/* \u6309\u94AE\u7684\u6837\u5F0F */
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus,
.w-e-menu .w-e-panel-container .w-e-panel-tab-content button:focus {
outline: none;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea {
width: 100%;
border: 1px solid #ccc;
padding: 5px;
margin-top: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content textarea:focus {
border-color: #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text] {
border: none;
border-bottom: 1px solid #ccc;
font-size: 14px;
height: 20px;
color: #333;
text-align: left;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].small {
width: 30px;
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text].block {
display: block;
width: 100%;
margin: 10px 0;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content input[type=text]:focus {
border-bottom: 2px solid #1e88e5;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button {
font-size: 14px;
color: #1e88e5;
border: none;
padding: 5px 10px;
background-color: #fff;
cursor: pointer;
border-radius: 3px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.left {
float: left;
margin-right: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.right {
float: right;
margin-left: 10px;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.gray {
color: #999;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button.red {
color: #c24f4a;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container button:hover {
background-color: #f1f1f1;
}
.w-e-menu .w-e-panel-container .w-e-panel-tab-content .w-e-button-container:after {
content: "";
display: table;
clear: both;
}
.w-e-menu .w-e-panel-container .w-e-emoticon-container .w-e-item {
cursor: pointer;
font-size: 18px;
padding: 0 3px;
display: inline-block;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container,
.w-e-menu .w-e-panel-container .w-e-up-video-container {
text-align: center;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn {
display: inline-block;
color: #999;
cursor: pointer;
font-size: 60px;
line-height: 1;
}
.w-e-menu .w-e-panel-container .w-e-up-img-container .w-e-up-btn:hover,
.w-e-menu .w-e-panel-container .w-e-up-video-container .w-e-up-btn:hover {
color: #333;
}
`,""]),a.exports=o},function(a,o,n){var s=n(20),d=n(159);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-toolbar .w-e-droplist {
position: absolute;
left: 0;
top: 0;
background-color: #fff;
border: 1px solid #f1f1f1;
border-right-color: #ccc;
border-bottom-color: #ccc;
}
.w-e-toolbar .w-e-droplist .w-e-dp-title {
text-align: center;
color: #999;
line-height: 2;
border-bottom: 1px solid #f1f1f1;
font-size: 13px;
}
.w-e-toolbar .w-e-droplist ul.w-e-list {
list-style: none;
line-height: 1;
}
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item {
color: #333;
padding: 5px 0;
}
.w-e-toolbar .w-e-droplist ul.w-e-list li.w-e-item:hover {
background-color: #f1f1f1;
}
.w-e-toolbar .w-e-droplist ul.w-e-block {
list-style: none;
text-align: left;
padding: 5px;
}
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item {
display: inline-block;
padding: 3px 5px;
}
.w-e-toolbar .w-e-droplist ul.w-e-block li.w-e-item:hover {
background-color: #f1f1f1;
}
`,""]),a.exports=o},function(a,o,n){var s=n(0),d=s(n(161));Element.prototype.matches||(Element.prototype.matches=function(c){var p=this.ownerDocument.querySelectorAll(c),m=p.length;for(m;m>=0&&p.item(m)!==this;m--);return m>-1}),d.default||(window.Promise=d.default)},function(a,o,n){a.exports=n(162)},function(a,o,n){var s=n(163);a.exports=s},function(a,o,n){n(61),n(50),n(54),n(175),n(178),n(179);var s=n(9);a.exports=s.Promise},function(a,o,n){var s=n(62),d=n(49),c=function(m){return function(v,y){var E=String(d(v)),D=s(y),C=E.length,x,A;return D<0||D>=C?m?"":void 0:(x=E.charCodeAt(D),x<55296||x>56319||D+1===C||(A=E.charCodeAt(D+1))<56320||A>57343?m?E.charAt(D):x:m?E.slice(D,D+2):(x-55296<<10)+(A-56320)+65536)}};a.exports={codeAt:c(!1),charAt:c(!0)}},function(a,o,n){var s=n(8),d=n(102),c=s.WeakMap;a.exports=typeof c=="function"&&/native code/.test(d(c))},function(a,o,n){var s=n(8),d=n(19);a.exports=function(c,p){try{d(s,c,p)}catch{s[c]=p}return p}},function(a,o,n){var s=n(104).IteratorPrototype,d=n(77),c=n(48),p=n(37),m=n(44),v=function(){return this};a.exports=function(y,E,D){var C=E+" Iterator";return y.prototype=d(s,{next:c(1,D)}),p(y,C,!1,!0),m[C]=v,y}},function(a,o,n){var s=n(11);a.exports=!s(function(){function d(){}return d.prototype.constructor=null,Object.getPrototypeOf(new d)!==d.prototype})},function(a,o,n){var s=n(14),d=n(18),c=n(25),p=n(52);a.exports=s?Object.defineProperties:function(v,y){c(v);for(var E=p(y),D=E.length,C=0,x;D>C;)d.f(v,x=E[C++],y[x]);return v}},function(a,o,n){var s=n(81),d=n(65);a.exports=s?{}.toString:function(){return"[object "+d(this)+"]"}},function(a,o,n){var s=n(25),d=n(172);a.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,p={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(p,[]),c=p instanceof Array}catch{}return function(y,E){return s(y),d(E),c?m.call(y,E):y.__proto__=E,y}}():void 0)},function(a,o,n){var s=n(13);a.exports=function(d){if(!s(d)&&d!==null)throw TypeError("Can't set "+String(d)+" as a prototype");return d}},function(a,o,n){var s=n(30),d=n(82),c=n(44),p=n(42),m=n(75),v="Array Iterator",y=p.set,E=p.getterFor(v);a.exports=m(Array,"Array",function(D,C){y(this,{type:v,target:s(D),index:0,kind:C})},function(){var D=E(this),C=D.target,x=D.kind,A=D.index++;return!C||A>=C.length?(D.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:A,done:!1}:x=="values"?{value:C[A],done:!1}:{value:[A,C[A]],done:!1}},"values"),c.Arguments=c.Array,d("keys"),d("values"),d("entries")},function(a,o){a.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(a,o,n){var s=n(5),d=n(43),c=n(8),p=n(36),m=n(109),v=n(53),y=n(110),E=n(37),D=n(111),C=n(13),x=n(41),A=n(83),g=n(34),b=n(102),N=n(66),T=n(115),O=n(116),k=n(117).set,M=n(176),S=n(119),F=n(177),R=n(85),w=n(120),L=n(42),$=n(101),W=n(10),P=n(86),U=W("species"),Q="Promise",J=L.get,ie=L.set,B=L.getterFor(Q),z=m,G=c.TypeError,Y=c.document,Z=c.process,ae=p("fetch"),ue=R.f,se=ue,le=g(Z)=="process",te=!!(Y&&Y.createEvent&&c.dispatchEvent),pe="unhandledrejection",me="rejectionhandled",Ae=0,Fe=1,Qe=2,Ge=1,st=2,ut,Re,ot,qt,Ot=$(Q,function(){var Ke=b(z)!==String(z);if(!Ke&&(P===66||!le&&typeof PromiseRejectionEvent!="function")||d&&!z.prototype.finally)return!0;if(P>=51&&/native code/.test(z))return!1;var Ee=z.resolve(1),Ce=function(fe){fe(function(){},function(){})},Be=Ee.constructor={};return Be[U]=Ce,!(Ee.then(function(){})instanceof Ce)}),ai=Ot||!T(function(Ke){z.all(Ke).catch(function(){})}),On=function(Ee){var Ce;return C(Ee)&&typeof(Ce=Ee.then)=="function"?Ce:!1},sn=function(Ee,Ce,Be){if(!Ce.notified){Ce.notified=!0;var Se=Ce.reactions;M(function(){for(var fe=Ce.value,De=Ce.state==Fe,Te=0;Se.length>Te;){var Ne=Se[Te++],$e=De?Ne.ok:Ne.fail,Wt=Ne.resolve,ct=Ne.reject,lt=Ne.domain,et,mn,li;try{$e?(De||(Ce.rejection===st&&hn(Ee,Ce),Ce.rejection=Ge),$e===!0?et=fe:(lt&<.enter(),et=$e(fe),lt&&(lt.exit(),li=!0)),et===Ne.promise?ct(G("Promise-chain cycle")):(mn=On(et))?mn.call(et,Wt,ct):Wt(et)):ct(fe)}catch(Cn){lt&&!li&<.exit(),ct(Cn)}}Ce.reactions=[],Ce.notified=!1,Be&&!Ce.rejection&&kn(Ee,Ce)})}},un=function(Ee,Ce,Be){var Se,fe;te?(Se=Y.createEvent("Event"),Se.promise=Ce,Se.reason=Be,Se.initEvent(Ee,!1,!0),c.dispatchEvent(Se)):Se={promise:Ce,reason:Be},(fe=c["on"+Ee])?fe(Se):Ee===pe&&F("Unhandled promise rejection",Be)},kn=function(Ee,Ce){k.call(c,function(){var Be=Ce.value,Se=fn(Ce),fe;if(Se&&(fe=w(function(){le?Z.emit("unhandledRejection",Be,Ee):un(pe,Ee,Be)}),Ce.rejection=le||fn(Ce)?st:Ge,fe.error))throw fe.value})},fn=function(Ee){return Ee.rejection!==Ge&&!Ee.parent},hn=function(Ee,Ce){k.call(c,function(){le?Z.emit("rejectionHandled",Ee):un(me,Ee,Ce.value)})},Tt=function(Ee,Ce,Be,Se){return function(fe){Ee(Ce,Be,fe,Se)}},qe=function(Ee,Ce,Be,Se){Ce.done||(Ce.done=!0,Se&&(Ce=Se),Ce.value=Be,Ce.state=Qe,sn(Ee,Ce,!0))},en=function Ke(Ee,Ce,Be,Se){if(!Ce.done){Ce.done=!0,Se&&(Ce=Se);try{if(Ee===Be)throw G("Promise can't be resolved itself");var fe=On(Be);fe?M(function(){var De={done:!1};try{fe.call(Be,Tt(Ke,Ee,De,Ce),Tt(qe,Ee,De,Ce))}catch(Te){qe(Ee,De,Te,Ce)}}):(Ce.value=Be,Ce.state=Fe,sn(Ee,Ce,!1))}catch(De){qe(Ee,{done:!1},De,Ce)}}};Ot&&(z=function(Ee){A(this,z,Q),x(Ee),ut.call(this);var Ce=J(this);try{Ee(Tt(en,this,Ce),Tt(qe,this,Ce))}catch(Be){qe(this,Ce,Be)}},ut=function(Ee){ie(this,{type:Q,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:Ae,value:void 0})},ut.prototype=y(z.prototype,{then:function(Ee,Ce){var Be=B(this),Se=ue(O(this,z));return Se.ok=typeof Ee=="function"?Ee:!0,Se.fail=typeof Ce=="function"&&Ce,Se.domain=le?Z.domain:void 0,Be.parent=!0,Be.reactions.push(Se),Be.state!=Ae&&sn(this,Be,!1),Se.promise},catch:function(Ee){return this.then(void 0,Ee)}}),Re=function(){var Ee=new ut,Ce=J(Ee);this.promise=Ee,this.resolve=Tt(en,Ee,Ce),this.reject=Tt(qe,Ee,Ce)},R.f=ue=function(Ee){return Ee===z||Ee===ot?new Re(Ee):se(Ee)},!d&&typeof m=="function"&&(qt=m.prototype.then,v(m.prototype,"then",function(Ee,Ce){var Be=this;return new z(function(Se,fe){qt.call(Be,Se,fe)}).then(Ee,Ce)},{unsafe:!0}),typeof ae=="function"&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(Ee){return S(z,ae.apply(c,arguments))}}))),s({global:!0,wrap:!0,forced:Ot},{Promise:z}),E(z,Q,!1,!0),D(Q),ot=p(Q),s({target:Q,stat:!0,forced:Ot},{reject:function(Ee){var Ce=ue(this);return Ce.reject.call(void 0,Ee),Ce.promise}}),s({target:Q,stat:!0,forced:d||Ot},{resolve:function(Ee){return S(d&&this===ot?z:this,Ee)}}),s({target:Q,stat:!0,forced:ai},{all:function(Ee){var Ce=this,Be=ue(Ce),Se=Be.resolve,fe=Be.reject,De=w(function(){var Te=x(Ce.resolve),Ne=[],$e=0,Wt=1;N(Ee,function(ct){var lt=$e++,et=!1;Ne.push(void 0),Wt++,Te.call(Ce,ct).then(function(mn){et||(et=!0,Ne[lt]=mn,--Wt||Se(Ne))},fe)}),--Wt||Se(Ne)});return De.error&&fe(De.value),Be.promise},race:function(Ee){var Ce=this,Be=ue(Ce),Se=Be.reject,fe=w(function(){var De=x(Ce.resolve);N(Ee,function(Te){De.call(Ce,Te).then(Be.resolve,Se)})});return fe.error&&Se(fe.value),Be.promise}})},function(a,o,n){var s=n(8),d=n(71).f,c=n(34),p=n(117).set,m=n(118),v=s.MutationObserver||s.WebKitMutationObserver,y=s.process,E=s.Promise,D=c(y)=="process",C=d(s,"queueMicrotask"),x=C&&C.value,A,g,b,N,T,O,k,M;x||(A=function(){var F,R;for(D&&(F=y.domain)&&F.exit();g;){R=g.fn,g=g.next;try{R()}catch(w){throw g?N():b=void 0,w}}b=void 0,F&&F.enter()},D?N=function(){y.nextTick(A)}:v&&!m?(T=!0,O=document.createTextNode(""),new v(A).observe(O,{characterData:!0}),N=function(){O.data=T=!T}):E&&E.resolve?(k=E.resolve(void 0),M=k.then,N=function(){M.call(k,A)}):N=function(){p.call(s,A)}),a.exports=x||function(S){var F={fn:S,next:void 0};b&&(b.next=F),g||(g=F,N()),b=F}},function(a,o,n){var s=n(8);a.exports=function(d,c){var p=s.console;p&&p.error&&(arguments.length===1?p.error(d):p.error(d,c))}},function(a,o,n){var s=n(5),d=n(41),c=n(85),p=n(120),m=n(66);s({target:"Promise",stat:!0},{allSettled:function(y){var E=this,D=c.f(E),C=D.resolve,x=D.reject,A=p(function(){var g=d(E.resolve),b=[],N=0,T=1;m(y,function(O){var k=N++,M=!1;b.push(void 0),T++,g.call(E,O).then(function(S){M||(M=!0,b[k]={status:"fulfilled",value:S},--T||C(b))},function(S){M||(M=!0,b[k]={status:"rejected",reason:S},--T||C(b))})}),--T||C(b)});return A.error&&x(A.value),D.promise}})},function(a,o,n){var s=n(5),d=n(43),c=n(109),p=n(11),m=n(36),v=n(116),y=n(119),E=n(53),D=!!c&&p(function(){c.prototype.finally.call({then:function(){}},function(){})});s({target:"Promise",proto:!0,real:!0,forced:D},{finally:function(x){var A=v(this,m("Promise")),g=typeof x=="function";return this.then(g?function(b){return y(A,x()).then(function(){return b})}:x,g?function(b){return y(A,x()).then(function(){throw b})}:x)}}),!d&&typeof c=="function"&&!c.prototype.finally&&E(c.prototype,"finally",m("Promise").prototype.finally)},function(a,o,n){n(54);var s=n(181),d=n(65),c=Array.prototype,p={DOMTokenList:!0,NodeList:!0};a.exports=function(m){var v=m.forEach;return m===c||m instanceof Array&&v===c.forEach||p.hasOwnProperty(d(m))?s:v}},function(a,o,n){var s=n(182);a.exports=s},function(a,o,n){n(183);var s=n(15);a.exports=s("Array").forEach},function(a,o,n){var s=n(5),d=n(184);s({target:"Array",proto:!0,forced:[].forEach!=d},{forEach:d})},function(a,o,n){var s=n(32).forEach,d=n(67),c=n(22),p=d("forEach"),m=c("forEach");a.exports=!p||!m?function(y){return s(this,y,arguments.length>1?arguments[1]:void 0)}:[].forEach},function(a,o,n){var s=n(186);a.exports=s},function(a,o,n){n(187);var s=n(9);a.exports=s.Array.isArray},function(a,o,n){var s=n(5),d=n(55);s({target:"Array",stat:!0},{isArray:d})},function(a,o,n){var s=n(189);a.exports=s},function(a,o,n){var s=n(190),d=Array.prototype;a.exports=function(c){var p=c.map;return c===d||c instanceof Array&&p===d.map?s:p}},function(a,o,n){n(191);var s=n(15);a.exports=s("Array").map},function(a,o,n){var s=n(5),d=n(32).map,c=n(56),p=n(22),m=c("map"),v=p("map");s({target:"Array",proto:!0,forced:!m||!v},{map:function(E){return d(this,E,arguments.length>1?arguments[1]:void 0)}})},function(a,o,n){var s=n(193);a.exports=s},function(a,o,n){var s=n(194),d=String.prototype;a.exports=function(c){var p=c.trim;return typeof c=="string"||c===d||c instanceof String&&p===d.trim?s:p}},function(a,o,n){n(195);var s=n(15);a.exports=s("String").trim},function(a,o,n){var s=n(5),d=n(90).trim,c=n(196);s({target:"String",proto:!0,forced:c("trim")},{trim:function(){return d(this)}})},function(a,o,n){var s=n(11),d=n(68),c="\u200B\x85\u180E";a.exports=function(p){return s(function(){return!!d[p]()||c[p]()!=c||d[p].name!==p})}},function(a,o,n){var s=n(198);a.exports=s},function(a,o,n){n(199),n(61),n(50),n(54);var s=n(9);a.exports=s.Map},function(a,o,n){var s=n(122),d=n(124);a.exports=s("Map",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(a,o,n){var s=n(11);a.exports=!s(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(a,o,n){var s=n(202);a.exports=s},function(a,o,n){var s=n(203),d=Array.prototype;a.exports=function(c){var p=c.indexOf;return c===d||c instanceof Array&&p===d.indexOf?s:p}},function(a,o,n){n(204);var s=n(15);a.exports=s("Array").indexOf},function(a,o,n){var s=n(5),d=n(78).indexOf,c=n(67),p=n(22),m=[].indexOf,v=!!m&&1/[1].indexOf(1,-0)<0,y=c("indexOf"),E=p("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:v||!y||!E},{indexOf:function(C){return v?m.apply(this,arguments)||0:d(this,C,arguments.length>1?arguments[1]:void 0)}})},function(a,o,n){var s=n(206);a.exports=s},function(a,o,n){var s=n(207),d=Array.prototype;a.exports=function(c){var p=c.splice;return c===d||c instanceof Array&&p===d.splice?s:p}},function(a,o,n){n(208);var s=n(15);a.exports=s("Array").splice},function(a,o,n){var s=n(5),d=n(79),c=n(62),p=n(35),m=n(31),v=n(88),y=n(69),E=n(56),D=n(22),C=E("splice"),x=D("splice",{ACCESSORS:!0,0:0,1:2}),A=Math.max,g=Math.min,b=9007199254740991,N="Maximum allowed length exceeded";s({target:"Array",proto:!0,forced:!C||!x},{splice:function(O,k){var M=m(this),S=p(M.length),F=d(O,S),R=arguments.length,w,L,$,W,P,U;if(R===0?w=L=0:R===1?(w=0,L=S-F):(w=R-2,L=g(A(c(k),0),S-F)),S+w-L>b)throw TypeError(N);for($=v(M,L),W=0;W<L;W++)P=F+W,P in M&&y($,W,M[P]);if($.length=L,w<L){for(W=F;W<S-L;W++)P=W+L,U=W+w,P in M?M[U]=M[P]:delete M[U];for(W=S;W>S-L+w;W--)delete M[W-1]}else if(w>L)for(W=S-L;W>F;W--)P=W+L-1,U=W+w-1,P in M?M[U]=M[P]:delete M[U];for(W=0;W<w;W++)M[W+F]=arguments[W+2];return M.length=S-L+w,$}})},function(a,o,n){var s=n(210);a.exports=s},function(a,o,n){var s=n(211),d=Array.prototype;a.exports=function(c){var p=c.filter;return c===d||c instanceof Array&&p===d.filter?s:p}},function(a,o,n){n(212);var s=n(15);a.exports=s("Array").filter},function(a,o,n){var s=n(5),d=n(32).filter,c=n(56),p=n(22),m=c("filter"),v=p("filter");s({target:"Array",proto:!0,forced:!m||!v},{filter:function(E){return d(this,E,arguments.length>1?arguments[1]:void 0)}})},function(a,o,n){var s=n(214);a.exports=s},function(a,o,n){var s=n(215),d=n(217),c=Array.prototype,p=String.prototype;a.exports=function(m){var v=m.includes;return m===c||m instanceof Array&&v===c.includes?s:typeof m=="string"||m===p||m instanceof String&&v===p.includes?d:v}},function(a,o,n){n(216);var s=n(15);a.exports=s("Array").includes},function(a,o,n){var s=n(5),d=n(78).includes,c=n(82),p=n(22),m=p("indexOf",{ACCESSORS:!0,1:0});s({target:"Array",proto:!0,forced:!m},{includes:function(y){return d(this,y,arguments.length>1?arguments[1]:void 0)}}),c("includes")},function(a,o,n){n(218);var s=n(15);a.exports=s("String").includes},function(a,o,n){var s=n(5),d=n(219),c=n(49),p=n(221);s({target:"String",proto:!0,forced:!p("includes")},{includes:function(v){return!!~String(c(this)).indexOf(d(v),arguments.length>1?arguments[1]:void 0)}})},function(a,o,n){var s=n(220);a.exports=function(d){if(s(d))throw TypeError("The method doesn't accept regular expressions");return d}},function(a,o,n){var s=n(13),d=n(34),c=n(10),p=c("match");a.exports=function(m){var v;return s(m)&&((v=m[p])!==void 0?!!v:d(m)=="RegExp")}},function(a,o,n){var s=n(10),d=s("match");a.exports=function(c){var p=/./;try{"/./"[c](p)}catch{try{return p[d]=!1,"/./"[c](p)}catch{}}return!1}},function(a,o,n){var s=n(223);a.exports=s},function(a,o,n){var s=n(224),d=Function.prototype;a.exports=function(c){var p=c.bind;return c===d||c instanceof Function&&p===d.bind?s:p}},function(a,o,n){n(225);var s=n(15);a.exports=s("Function").bind},function(a,o,n){var s=n(5),d=n(226);s({target:"Function",proto:!0},{bind:d})},function(a,o,n){var s=n(41),d=n(13),c=[].slice,p={},m=function(y,E,D){if(!(E in p)){for(var C=[],x=0;x<E;x++)C[x]="a["+x+"]";p[E]=Function("C,a","return new C("+C.join(",")+")")}return p[E](y,D)};a.exports=Function.bind||function(y){var E=s(this),D=c.call(arguments,1),C=function(){var A=D.concat(c.call(arguments));return this instanceof C?m(E,A.length,A):E.apply(y,A)};return d(E.prototype)&&(C.prototype=E.prototype),C}},function(a,o,n){a.exports=n(228)},function(a,o,n){var s=n(229);a.exports=s},function(a,o,n){n(125),n(50),n(54);var s=n(93);a.exports=s.f("iterator")},function(a,o,n){a.exports=n(231)},function(a,o,n){var s=n(232);n(251),n(252),n(253),n(254),n(255),a.exports=s},function(a,o,n){n(233),n(61),n(234),n(236),n(237),n(238),n(239),n(125),n(240),n(241),n(242),n(243),n(244),n(245),n(246),n(247),n(248),n(249),n(250);var s=n(9);a.exports=s.Symbol},function(a,o,n){var s=n(5),d=n(11),c=n(55),p=n(13),m=n(31),v=n(35),y=n(69),E=n(88),D=n(56),C=n(10),x=n(86),A=C("isConcatSpreadable"),g=9007199254740991,b="Maximum allowed index exceeded",N=x>=51||!d(function(){var M=[];return M[A]=!1,M.concat()[0]!==M}),T=D("concat"),O=function(S){if(!p(S))return!1;var F=S[A];return F!==void 0?!!F:c(S)},k=!N||!T;s({target:"Array",proto:!0,forced:k},{concat:function(S){var F=m(this),R=E(F,0),w=0,L,$,W,P,U;for(L=-1,W=arguments.length;L<W;L++)if(U=L===-1?F:arguments[L],O(U)){if(P=v(U.length),w+P>g)throw TypeError(b);for($=0;$<P;$++,w++)$ in U&&y(R,w,U[$])}else{if(w>=g)throw TypeError(b);y(R,w++,U)}return R.length=w,R}})},function(a,o,n){var s=n(5),d=n(8),c=n(36),p=n(43),m=n(14),v=n(76),y=n(106),E=n(11),D=n(16),C=n(55),x=n(13),A=n(25),g=n(31),b=n(30),N=n(60),T=n(48),O=n(77),k=n(52),M=n(126),S=n(235),F=n(127),R=n(71),w=n(18),L=n(59),$=n(19),W=n(53),P=n(74),U=n(63),Q=n(51),J=n(64),ie=n(10),B=n(93),z=n(12),G=n(37),Y=n(42),Z=n(32).forEach,ae=U("hidden"),ue="Symbol",se="prototype",le=ie("toPrimitive"),te=Y.set,pe=Y.getterFor(ue),me=Object[se],Ae=d.Symbol,Fe=c("JSON","stringify"),Qe=R.f,Ge=w.f,st=S.f,ut=L.f,Re=P("symbols"),ot=P("op-symbols"),qt=P("string-to-symbol-registry"),Ot=P("symbol-to-string-registry"),ai=P("wks"),On=d.QObject,sn=!On||!On[se]||!On[se].findChild,un=m&&E(function(){return O(Ge({},"a",{get:function(){return Ge(this,"a",{value:7}).a}})).a!=7})?function(Se,fe,De){var Te=Qe(me,fe);Te&&delete me[fe],Ge(Se,fe,De),Te&&Se!==me&&Ge(me,fe,Te)}:Ge,kn=function(fe,De){var Te=Re[fe]=O(Ae[se]);return te(Te,{type:ue,tag:fe,description:De}),m||(Te.description=De),Te},fn=y?function(Se){return Rt(Se)=="symbol"}:function(Se){return Object(Se)instanceof Ae},hn=function(fe,De,Te){fe===me&&hn(ot,De,Te),A(fe);var Ne=N(De,!0);return A(Te),D(Re,Ne)?(Te.enumerable?(D(fe,ae)&&fe[ae][Ne]&&(fe[ae][Ne]=!1),Te=O(Te,{enumerable:T(0,!1)})):(D(fe,ae)||Ge(fe,ae,T(1,{})),fe[ae][Ne]=!0),un(fe,Ne,Te)):Ge(fe,Ne,Te)},Tt=function(fe,De){A(fe);var Te=b(De),Ne=k(Te).concat(Ce(Te));return Z(Ne,function($e){(!m||en.call(Te,$e))&&hn(fe,$e,Te[$e])}),fe},qe=function(fe,De){return De===void 0?O(fe):Tt(O(fe),De)},en=function(fe){var De=N(fe,!0),Te=ut.call(this,De);return this===me&&D(Re,De)&&!D(ot,De)?!1:Te||!D(this,De)||!D(Re,De)||D(this,ae)&&this[ae][De]?Te:!0},Ke=function(fe,De){var Te=b(fe),Ne=N(De,!0);if(!(Te===me&&D(Re,Ne)&&!D(ot,Ne))){var $e=Qe(Te,Ne);return $e&&D(Re,Ne)&&!(D(Te,ae)&&Te[ae][Ne])&&($e.enumerable=!0),$e}},Ee=function(fe){var De=st(b(fe)),Te=[];return Z(De,function(Ne){!D(Re,Ne)&&!D(Q,Ne)&&Te.push(Ne)}),Te},Ce=function(fe){var De=fe===me,Te=st(De?ot:b(fe)),Ne=[];return Z(Te,function($e){D(Re,$e)&&(!De||D(me,$e))&&Ne.push(Re[$e])}),Ne};if(v||(Ae=function(){if(this instanceof Ae)throw TypeError("Symbol is not a constructor");var fe=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),De=J(fe),Te=function Ne($e){this===me&&Ne.call(ot,$e),D(this,ae)&&D(this[ae],De)&&(this[ae][De]=!1),un(this,De,T(1,$e))};return m&&sn&&un(me,De,{configurable:!0,set:Te}),kn(De,fe)},W(Ae[se],"toString",function(){return pe(this).tag}),W(Ae,"withoutSetter",function(Se){return kn(J(Se),Se)}),L.f=en,w.f=hn,R.f=Ke,M.f=S.f=Ee,F.f=Ce,B.f=function(Se){return kn(ie(Se),Se)},m&&(Ge(Ae[se],"description",{configurable:!0,get:function(){return pe(this).description}}),p||W(me,"propertyIsEnumerable",en,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!v,sham:!v},{Symbol:Ae}),Z(k(ai),function(Se){z(Se)}),s({target:ue,stat:!0,forced:!v},{for:function(fe){var De=String(fe);if(D(qt,De))return qt[De];var Te=Ae(De);return qt[De]=Te,Ot[Te]=De,Te},keyFor:function(fe){if(!fn(fe))throw TypeError(fe+" is not a symbol");if(D(Ot,fe))return Ot[fe]},useSetter:function(){sn=!0},useSimple:function(){sn=!1}}),s({target:"Object",stat:!0,forced:!v,sham:!m},{create:qe,defineProperty:hn,defineProperties:Tt,getOwnPropertyDescriptor:Ke}),s({target:"Object",stat:!0,forced:!v},{getOwnPropertyNames:Ee,getOwnPropertySymbols:Ce}),s({target:"Object",stat:!0,forced:E(function(){F.f(1)})},{getOwnPropertySymbols:function(fe){return F.f(g(fe))}}),Fe){var Be=!v||E(function(){var Se=Ae();return Fe([Se])!="[null]"||Fe({a:Se})!="{}"||Fe(Object(Se))!="{}"});s({target:"JSON",stat:!0,forced:Be},{stringify:function(fe,De,Te){for(var Ne=[fe],$e=1,Wt;arguments.length>$e;)Ne.push(arguments[$e++]);if(Wt=De,!(!x(De)&&fe===void 0||fn(fe)))return C(De)||(De=function(lt,et){if(typeof Wt=="function"&&(et=Wt.call(this,lt,et)),!fn(et))return et}),Ne[1]=De,Fe.apply(null,Ne)}})}Ae[se][le]||$(Ae[se],le,Ae[se].valueOf),G(Ae,ue),Q[ae]=!0},function(a,o,n){var s=n(30),d=n(126).f,c={}.toString,p=(typeof window>"u"?"undefined":Rt(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(y){try{return d(y)}catch{return p.slice()}};a.exports.f=function(y){return p&&c.call(y)=="[object Window]"?m(y):d(s(y))}},function(a,o,n){var s=n(12);s("asyncIterator")},function(a,o){},function(a,o,n){var s=n(12);s("hasInstance")},function(a,o,n){var s=n(12);s("isConcatSpreadable")},function(a,o,n){var s=n(12);s("match")},function(a,o,n){var s=n(12);s("matchAll")},function(a,o,n){var s=n(12);s("replace")},function(a,o,n){var s=n(12);s("search")},function(a,o,n){var s=n(12);s("species")},function(a,o,n){var s=n(12);s("split")},function(a,o,n){var s=n(12);s("toPrimitive")},function(a,o,n){var s=n(12);s("toStringTag")},function(a,o,n){var s=n(12);s("unscopables")},function(a,o,n){var s=n(37);s(Math,"Math",!0)},function(a,o,n){var s=n(8),d=n(37);d(s.JSON,"JSON",!0)},function(a,o,n){var s=n(12);s("asyncDispose")},function(a,o,n){var s=n(12);s("dispose")},function(a,o,n){var s=n(12);s("observable")},function(a,o,n){var s=n(12);s("patternMatch")},function(a,o,n){var s=n(12);s("replaceAll")},function(a,o,n){a.exports=n(257)},function(a,o,n){var s=n(258);a.exports=s},function(a,o,n){n(259);var s=n(9);a.exports=s.parseInt},function(a,o,n){var s=n(5),d=n(260);s({global:!0,forced:parseInt!=d},{parseInt:d})},function(a,o,n){var s=n(8),d=n(90).trim,c=n(68),p=s.parseInt,m=/^[+-]?0[Xx]/,v=p(c+"08")!==8||p(c+"0x16")!==22;a.exports=v?function(E,D){var C=d(String(E));return p(C,D>>>0||(m.test(C)?16:10))}:p},function(a,o,n){var s=n(262);a.exports=s},function(a,o,n){var s=n(263),d=Array.prototype;a.exports=function(c){var p=c.slice;return c===d||c instanceof Array&&p===d.slice?s:p}},function(a,o,n){n(264);var s=n(15);a.exports=s("Array").slice},function(a,o,n){var s=n(5),d=n(13),c=n(55),p=n(79),m=n(35),v=n(30),y=n(69),E=n(10),D=n(56),C=n(22),x=D("slice"),A=C("slice",{ACCESSORS:!0,0:0,1:2}),g=E("species"),b=[].slice,N=Math.max;s({target:"Array",proto:!0,forced:!x||!A},{slice:function(O,k){var M=v(this),S=m(M.length),F=p(O,S),R=p(k===void 0?S:k,S),w,L,$;if(c(M)&&(w=M.constructor,typeof w=="function"&&(w===Array||c(w.prototype))?w=void 0:d(w)&&(w=w[g],w===null&&(w=void 0)),w===Array||w===void 0))return b.call(M,F,R);for(L=new(w===void 0?Array:w)(N(R-F,0)),$=0;F<R;F++,$++)F in M&&y(L,$,M[F]);return L.length=$,L}})},function(a,o,n){n(266);var s=n(9);a.exports=s.setTimeout},function(a,o,n){var s=n(5),d=n(8),c=n(84),p=[].slice,m=/MSIE .\./.test(c),v=function(E){return function(D,C){var x=arguments.length>2,A=x?p.call(arguments,2):void 0;return E(x?function(){(typeof D=="function"?D:Function(D)).apply(this,A)}:D,C)}};s({global:!0,bind:!0,forced:m},{setTimeout:v(d.setTimeout),setInterval:v(d.setInterval)})},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(128));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(272)),v=p.__importDefault(n(273)),y=p.__importDefault(n(129)),E=p.__importDefault(n(274)),D=p.__importDefault(n(275)),C=p.__importDefault(n(276)),x=p.__importDefault(n(130)),A=p.__importDefault(n(277)),g=p.__importDefault(n(278)),b=p.__importDefault(n(279)),N=(0,c.default)({},m.default,v.default,y.default,D.default,E.default,C.default,x.default,A.default,g.default,b.default,{linkCheck:function(O,k){return!0}});o.default=N},function(a,o,n){var s=n(269);a.exports=s},function(a,o,n){n(270);var s=n(9);a.exports=s.Object.assign},function(a,o,n){var s=n(5),d=n(271);s({target:"Object",stat:!0,forced:Object.assign!==d},{assign:d})},function(a,o,n){var s=n(14),d=n(11),c=n(52),p=n(127),m=n(59),v=n(31),y=n(72),E=Object.assign,D=Object.defineProperty;a.exports=!E||d(function(){if(s&&E({b:1},E(D({},"a",{enumerable:!0,get:function(){D(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var C={},x={},A=Symbol(),g="abcdefghijklmnopqrst";return C[A]=7,g.split("").forEach(function(b){x[b]=b}),E({},C)[A]!=7||c(E({},x)).join("")!=g})?function(x,A){for(var g=v(x),b=arguments.length,N=1,T=p.f,O=m.f;b>N;)for(var k=y(arguments[N++]),M=T?c(k).concat(T(k)):c(k),S=M.length,F=0,R;S>F;)R=M[F++],(!s||O.call(k,R))&&(g[R]=k[R]);return g}:E},function(a,o,n){var s=n(0),d=s(n(1));(0,d.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(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(7);function p(m,v,y){window.alert(m),y&&console.error("wangEditor: "+y)}o.default={onchangeTimeout:200,onchange:null,onfocus:c.EMPTY_FN,onblur:c.EMPTY_FN,onCatalogChange:null,customAlert:p}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={pasteFilterStyle:!0,pasteIgnoreImg:!1,pasteTextHandle:function(p){return p}}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.default={styleWithCSS:!1}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(7);o.default={linkImgCheck:function(m,v,y){return!0},showLinkImg:!0,showLinkImgAlt:!0,showLinkImgHref:!0,linkImgCallback:c.EMPTY_FN,uploadImgAccept:["jpg","jpeg","png","gif","bmp"],uploadImgServer:"",uploadImgShowBase64:!1,uploadImgMaxSize:5*1024*1024,uploadImgMaxLength:100,uploadFileName:"",uploadImgParams:{},uploadImgParamsWithUrl:!1,uploadImgHeaders:{},uploadImgHooks:{},uploadImgTimeout:10*1e3,withCredentials:!1,customUploadImg:null,uploadImgFromMedia:null}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.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:"redo",\u64A4\u9500:"undo",\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(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(6);function p(){return!!(c.UA.isIE()||c.UA.isOldEdge)}o.default={compatibleMode:p,historyMaxSize:30}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(7);o.default={onlineVideoCheck:function(m){return!0},onlineVideoCallback:c.EMPTY_FN,showLinkVideo:!0,uploadVideoAccept:["mp4"],uploadVideoServer:"",uploadVideoMaxSize:1*1024*1024*1024,uploadVideoName:"",uploadVideoParams:{},uploadVideoParamsWithUrl:!1,uploadVideoHeaders:{},uploadVideoHooks:{},uploadVideoTimeout:1e3*60*60*2,withVideoCredentials:!1,customUploadVideo:null,customInsertVideo:null}},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(17));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(6),y=n(7),E=function(){function D(C){this._currentRange=null,this.editor=C}return D.prototype.getRange=function(){return this._currentRange},D.prototype.saveRange=function(C){if(C){this._currentRange=C;return}var x=window.getSelection();if(x.rangeCount!==0){var A=x.getRangeAt(0),g=this.getSelectionContainerElem(A);if(!!(g!=null&&g.length)&&!(g.attr("contenteditable")==="false"||g.parentUntil("[contenteditable=false]"))){var b=this.editor,N=b.$textElem;if(N.isContain(g)){if(N.elems[0]===g.elems[0]){var T;if((0,c.default)(T=N.html()).call(T)===y.EMPTY_P){var O=N.children(),k=O==null?void 0:O.last();b.selection.createRangeByElem(k,!0,!0),b.selection.restoreSelection()}}this._currentRange=A}}}},D.prototype.collapseRange=function(C){C===void 0&&(C=!1);var x=this._currentRange;x&&x.collapse(C)},D.prototype.getSelectionText=function(){var C=this._currentRange;return C?C.toString():""},D.prototype.getSelectionContainerElem=function(C){var x;x=C||this._currentRange;var A;if(x)return A=x.commonAncestorContainer,m.default(A.nodeType===1?A:A.parentNode)},D.prototype.getSelectionStartElem=function(C){var x;x=C||this._currentRange;var A;if(x)return A=x.startContainer,m.default(A.nodeType===1?A:A.parentNode)},D.prototype.getSelectionEndElem=function(C){var x;x=C||this._currentRange;var A;if(x)return A=x.endContainer,m.default(A.nodeType===1?A:A.parentNode)},D.prototype.isSelectionEmpty=function(){var C=this._currentRange;return!!(C&&C.startContainer&&C.startContainer===C.endContainer&&C.startOffset===C.endOffset)},D.prototype.restoreSelection=function(){var C=window.getSelection(),x=this._currentRange;C&&x&&(C.removeAllRanges(),C.addRange(x))},D.prototype.createEmptyRange=function(){var C=this.editor,x=this.getRange(),A;if(!!x&&!!this.isSelectionEmpty())try{v.UA.isWebkit()?(C.cmd.do("insertHTML","​"),x.setEnd(x.endContainer,x.endOffset+1),this.saveRange(x)):(A=m.default("<strong>​</strong>"),C.cmd.do("insertElem",A),this.createRangeByElem(A,!0))}catch{}},D.prototype.createRangeByElems=function(C,x){var A=window.getSelection?window.getSelection():document.getSelection();A==null||A.removeAllRanges();var g=document.createRange();g.setStart(C,0),g.setEnd(x,x.childNodes.length||1),this.saveRange(g),this.restoreSelection()},D.prototype.createRangeByElem=function(C,x,A){if(!!C.length){var g=C.elems[0],b=document.createRange();A?b.selectNodeContents(g):b.selectNode(g),x!=null&&(b.collapse(x),x||(this.saveRange(b),this.editor.selection.moveCursor(g))),this.saveRange(b)}},D.prototype.getSelectionRangeTopNodes=function(){var C,x,A,g=(C=this.getSelectionStartElem())===null||C===void 0?void 0:C.getNodeTop(this.editor),b=(x=this.getSelectionEndElem())===null||x===void 0?void 0:x.getNodeTop(this.editor);return A=this.recordSelectionNodes(m.default(g),m.default(b)),A},D.prototype.moveCursor=function(C,x){var A,g=this.getRange(),b=C.nodeType===3?(A=C.nodeValue)===null||A===void 0?void 0:A.length:C.childNodes.length;(v.UA.isFirefox||v.UA.isIE())&&b!==0&&(C.nodeType===3||C.childNodes[b-1].nodeName==="BR")&&(b=b-1);var N=x!=null?x:b;!g||C&&(g.setStart(C,N),g.setEnd(C,N),this.restoreSelection())},D.prototype.getCursorPos=function(){var C=window.getSelection();return C==null?void 0:C.anchorOffset},D.prototype.clearWindowSelectionRange=function(){var C=window.getSelection();C&&C.removeAllRanges()},D.prototype.recordSelectionNodes=function(C,x){var A=[],g=!0;try{for(var b=C,N=this.editor.$textElem;g;){var T=b==null?void 0:b.getNodeTop(this.editor);T.getNodeName()==="BODY"&&(g=!1),T.length>0&&(A.push(m.default(b)),(x==null?void 0:x.equal(T))||N.equal(T)?g=!1:b=T.getNextSibling())}}catch{g=!1}return A},D.prototype.setRangeToElem=function(C){var x=this.getRange();x==null||x.setStart(C,0),x==null||x.setEnd(C,0)},D}();o.default=E},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=function(){function v(y){this.editor=y}return v.prototype.do=function(y,E){var D=this.editor;D.config.styleWithCSS&&document.execCommand("styleWithCSS",!1,"true");var C=D.selection;if(!!C.getRange()){switch(C.restoreSelection(),y){case"insertHTML":this.insertHTML(E);break;case"insertElem":this.insertElem(E);break;default:this.execCommand(y,E);break}D.menus.changeActive(),C.saveRange(),C.restoreSelection()}},v.prototype.insertHTML=function(y){var E=this.editor,D=E.selection.getRange();if(D!=null){if(this.queryCommandSupported("insertHTML"))this.execCommand("insertHTML",y);else if(D.insertNode){if(D.deleteContents(),p.default(y).elems.length>0)D.insertNode(p.default(y).elems[0]);else{var C=document.createElement("p");C.appendChild(document.createTextNode(y)),D.insertNode(C)}E.selection.collapseRange()}}},v.prototype.insertElem=function(y){var E=this.editor,D=E.selection.getRange();D!=null&&D.insertNode&&(D.deleteContents(),D.insertNode(y.elems[0]))},v.prototype.execCommand=function(y,E){document.execCommand(y,!1,E)},v.prototype.queryCommandValue=function(y){return document.queryCommandValue(y)},v.prototype.queryCommandState=function(y){return document.queryCommandState(y)},v.prototype.queryCommandSupported=function(y){return document.queryCommandSupported(y)},v}();o.default=m},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(29)),p=s(n(4)),m=s(n(17)),v=s(n(27)),y=s(n(46));(0,d.default)(o,"__esModule",{value:!0});var E=n(2),D=E.__importDefault(n(3)),C=E.__importDefault(n(287)),x=n(6),A=E.__importDefault(n(299)),g=E.__importDefault(n(300)),b=n(7),N=function(){function T(O){this.editor=O,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 T.prototype.init=function(){this._saveRange(),this._bindEventHooks(),C.default(this)},T.prototype.togglePlaceholder=function(){var O,k=this.html(),M=(0,c.default)(O=this.editor.$textContainerElem).call(O,".placeholder");M.hide(),!this.editor.isComposing&&(!k||k===" ")&&M.show()},T.prototype.clear=function(){this.html(b.EMPTY_P)},T.prototype.html=function(O){var k=this.editor,M=k.$textElem;if(O==null){var S=M.html();S=S.replace(/\u200b/gm,""),S=S.replace(/<p><\/p>/gim,""),S=S.replace(b.EMPTY_P_LAST_REGEX,""),S=S.replace(b.EMPTY_P_REGEX,"<p>");var F=S.match(/<(img|br|hr|input)[^>]*>/gi);return F!==null&&(0,p.default)(F).call(F,function(R){R.match(/\/>/)||(S=S.replace(R,R.substring(0,R.length-1)+"/>"))}),S}O=(0,m.default)(O).call(O),O===""&&(O=b.EMPTY_P),(0,v.default)(O).call(O,"<")!==0&&(O="<p>"+O+"</p>"),M.html(O),k.initSelection()},T.prototype.setJSON=function(O){var k=g.default(O).children(),M=this.editor,S=M.$textElem;!k||S.replaceChildAll(k)},T.prototype.getJSON=function(){var O=this.editor,k=O.$textElem;return A.default(k)},T.prototype.text=function(O){var k=this.editor,M=k.$textElem;if(O==null){var S=M.text();return S=S.replace(/\u200b/gm,""),S}M.text("<p>"+O+"</p>"),k.initSelection()},T.prototype.append=function(O){var k=this.editor;(0,v.default)(O).call(O,"<")!==0&&(O="<p>"+O+"</p>"),this.html(this.html()+O),k.initSelection()},T.prototype._saveRange=function(){var O=this.editor,k=O.$textElem,M=D.default(document);function S(){O.selection.saveRange(),O.menus.changeActive()}k.on("keyup",S);function F(){S(),k.off("click",F)}k.on("click",F);function R(){S(),M.off("mouseup",R)}function w(){M.on("mouseup",R),k.off("mouseleave",w)}k.on("mousedown",function(){k.on("mouseleave",w)}),k.on("mouseup",function(L){k.off("mouseleave",w),(0,y.default)(function(){var $=O.selection,W=$.getRange();W!==null&&S()},0)})},T.prototype._bindEventHooks=function(){var O=this.editor,k=O.$textElem,M=this.eventHooks;k.on("click",function(F){var R=M.clickEvents;(0,p.default)(R).call(R,function(w){return w(F)})}),k.on("keyup",function(F){if(F.keyCode===13){var R=M.enterUpEvents;(0,p.default)(R).call(R,function(w){return w(F)})}}),k.on("keyup",function(F){var R=M.keyupEvents;(0,p.default)(R).call(R,function(w){return w(F)})}),k.on("keydown",function(F){var R=M.keydownEvents;(0,p.default)(R).call(R,function(w){return w(F)})}),k.on("keyup",function(F){if(!(F.keyCode!==8&&F.keyCode!==46)){var R=M.deleteUpEvents;(0,p.default)(R).call(R,function(w){return w(F)})}}),k.on("keydown",function(F){if(!(F.keyCode!==8&&F.keyCode!==46)){var R=M.deleteDownEvents;(0,p.default)(R).call(R,function(w){return w(F)})}}),k.on("paste",function(F){if(!x.UA.isIE()){F.preventDefault();var R=M.pasteEvents;(0,p.default)(R).call(R,function(w){return w(F)})}}),k.on("keydown",function(F){(O.isFocus||O.isCompatibleMode)&&(F.ctrlKey||F.metaKey)&&F.keyCode===90&&(F.preventDefault(),F.shiftKey?O.history.restore():O.history.revoke())}),k.on("keyup",function(F){if(F.keyCode===9){F.preventDefault();var R=M.tabUpEvents;(0,p.default)(R).call(R,function(w){return w(F)})}}),k.on("keydown",function(F){if(F.keyCode===9){F.preventDefault();var R=M.tabDownEvents;(0,p.default)(R).call(R,function(w){return w(F)})}}),k.on("scroll",x.throttle(function(F){var R=M.textScrollEvents;(0,p.default)(R).call(R,function(w){return w(F)})},100));function S(F){F.preventDefault()}D.default(document).on("dragleave",S).on("drop",S).on("dragenter",S).on("dragover",S),O.beforeDestroy(function(){D.default(document).off("dragleave",S).off("drop",S).off("dragenter",S).off("dragover",S)}),k.on("drop",function(F){F.preventDefault();var R=M.dropEvents;(0,p.default)(R).call(R,function(w){return w(F)})}),k.on("click",function(F){var R=null,w=F.target,L=D.default(w);if(L.getNodeName()==="A")R=L;else{var $=L.parentUntil("a");$!=null&&(R=$)}if(!!R){var W=M.linkClickEvents;(0,p.default)(W).call(W,function(P){return P(R)})}}),k.on("click",function(F){var R=null,w=F.target,L=D.default(w);if(L.getNodeName()==="IMG"&&!L.elems[0].getAttribute("data-emoji")&&(F.stopPropagation(),R=L),!!R){var $=M.imgClickEvents;(0,p.default)($).call($,function(W){return W(R)})}}),k.on("click",function(F){var R=null,w=F.target,L=D.default(w);if(L.getNodeName()==="PRE")R=L;else{var $=L.parentUntil("pre");$!==null&&(R=$)}if(!!R){var W=M.codeClickEvents;(0,p.default)(W).call(W,function(P){return P(R)})}}),k.on("click",function(F){var R=null,w=F.target,L=D.default(w);if(L.getNodeName()==="HR"&&(R=L),!!R){O.selection.createRangeByElem(R),O.selection.restoreSelection();var $=M.splitLineEvents;(0,p.default)($).call($,function(W){return W(R)})}}),O.$toolbarElem.on("click",function(F){var R=M.toolbarClickEvents;(0,p.default)(R).call(R,function(w){return w(F)})}),O.$textContainerElem.on("mousedown",function(F){var R=F.target,w=D.default(R);if(w.hasClass("w-e-img-drag-rb")){var L=M.imgDragBarMouseDownEvents;(0,p.default)(L).call(L,function($){return $()})}}),k.on("click",function(F){var R=null,w=F.target;if(R=D.default(w).parentUntilEditor("TABLE",O,w),!!R){var L=M.tableClickEvents;(0,p.default)(L).call(L,function($){return $(R,F)})}}),k.on("keydown",function(F){if(F.keyCode===13){var R=M.enterDownEvents;(0,p.default)(R).call(R,function(w){return w(F)})}}),k.on("click",function(F){var R=null,w=F.target,L=D.default(w);if(L.getNodeName()==="VIDEO"&&(F.stopPropagation(),R=L),!!R){var $=M.videoClickEvents;(0,p.default)($).call($,function(W){return W(R)})}})},T}();o.default=N},function(a,o,n){var s=n(284);a.exports=s},function(a,o,n){var s=n(285),d=Array.prototype;a.exports=function(c){var p=c.find;return c===d||c instanceof Array&&p===d.find?s:p}},function(a,o,n){n(286);var s=n(15);a.exports=s("Array").find},function(a,o,n){var s=n(5),d=n(32).find,c=n(82),p=n(22),m="find",v=!0,y=p(m);m in[]&&Array(1)[m](function(){v=!1}),s({target:"Array",proto:!0,forced:v||!y},{find:function(D){return d(this,D,arguments.length>1?arguments[1]:void 0)}}),c(m)},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(288)),m=c.__importStar(n(289)),v=c.__importDefault(n(290)),y=c.__importDefault(n(291)),E=c.__importDefault(n(298));function D(C){var x=C.editor,A=C.eventHooks;p.default(x,A.enterUpEvents,A.enterDownEvents),m.default(x,A.deleteUpEvents,A.deleteDownEvents),m.cutToKeepP(x,A.keyupEvents),v.default(x,A.tabDownEvents),y.default(x,A.pasteEvents),E.default(x,A.imgClickEvents)}o.default=D},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(27));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=n(7),v=p.__importDefault(n(3));function y(E,D,C){function x(b){var N,T=v.default(m.EMPTY_P);if(T.insertBefore(b),(0,c.default)(N=b.html()).call(N,"<img")>=0){T.remove();return}E.selection.createRangeByElem(T,!0,!0),E.selection.restoreSelection(),b.remove()}function A(){var b=E.$textElem,N=E.selection.getSelectionContainerElem(),T=N.parent();if(T.html()==="<code><br></code>"){x(T);return}if(N.getNodeName()==="FONT"&&N.text()===""&&N.attr("face")==="monospace"){x(T);return}if(!!T.equal(b)){var O=N.getNodeName();O==="P"&&N.attr("data-we-empty-p")===null||N.text()||x(N)}}D.push(A);function g(b){var N;E.selection.saveRange((N=getSelection())===null||N===void 0?void 0:N.getRangeAt(0));var T=E.selection.getSelectionContainerElem();T.id===E.textElemId&&(b.preventDefault(),E.cmd.do("insertHTML","<p><br></p>"))}C.push(g)}o.default=y},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(17)),p=s(n(28));(0,d.default)(o,"__esModule",{value:!0}),o.cutToKeepP=void 0;var m=n(2),v=n(7),y=m.__importDefault(n(3));function E(C,x,A){function g(){var N=C.$textElem,T=C.$textElem.html(),O=C.$textElem.text(),k=(0,c.default)(T).call(T),M=["<p><br></p>","<br>",'<p data-we-empty-p=""></p>',v.EMPTY_P];if(/^\s*$/.test(O)&&(!k||(0,p.default)(M).call(M,k))){N.html(v.EMPTY_P);var S=N.getNode();C.selection.createRangeByElems(S.childNodes[0],S.childNodes[0]);var F=C.selection.getSelectionContainerElem();C.selection.restoreSelection(),C.selection.moveCursor(F.getNode(),0)}}x.push(g);function b(N){var T,O=C.$textElem,k=(0,c.default)(T=O.html().toLowerCase()).call(T);if(k===v.EMPTY_P){N.preventDefault();return}}A.push(b)}function D(C,x){function A(g){var b;if(g.keyCode===88){var N=C.$textElem,T=(0,c.default)(b=N.html().toLowerCase()).call(b);if(!T||T==="<br>"){var O=y.default(v.EMPTY_P);N.html(" "),N.append(O),C.selection.createRangeByElem(O,!1,!0),C.selection.restoreSelection(),C.selection.moveCursor(O.getNode(),0)}}}x.push(A)}o.cutToKeepP=D,o.default=E},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});function c(p,m){function v(){if(!!p.cmd.queryCommandSupported("insertHTML")){var y=p.selection.getSelectionContainerElem();if(!!y){var E=y.parent(),D=y.getNodeName(),C=E.getNodeName();D=="CODE"||C==="CODE"||C==="PRE"||/hljs/.test(C)?p.cmd.do("insertHTML",p.config.languageTab):p.cmd.do("insertHTML"," ")}}}m.push(v)}o.default=c},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(17)),p=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var m=n(131),v=n(6),y=n(7);function E(g){var b,N=(0,c.default)(b=g.replace(/<div>/gim,"<p>").replace(/<\/div>/gim,"</p>")).call(b),T=document.createElement("div");return T.innerHTML=N,T.innerHTML.replace(/<p><\/p>/gim,"")}function D(g){var b=g.replace(/<br>|<br\/>/gm,`
`).replace(/<[^>]+>/gm,"");return b}function C(g){var b;if(g==="")return!1;var N=document.createElement("div");return N.innerHTML=g,((b=N.firstChild)===null||b===void 0?void 0:b.nodeName)==="P"}function x(g){if(!(g!=null&&g.length))return!1;var b=g.elems[0];return b.nodeName==="P"&&b.innerHTML==="<br>"}function A(g,b){function N(T){var O=g.config,k=O.pasteFilterStyle,M=O.pasteIgnoreImg,S=O.pasteTextHandle,F=m.getPasteHtml(T,k,M),R=m.getPasteText(T);R=R.replace(/\n/gm,"<br>");var w=g.selection.getSelectionContainerElem();if(!!w){var L=w==null?void 0:w.getNodeName(),$=w==null?void 0:w.getNodeTop(g),W="";if($.elems[0]&&(W=$==null?void 0:$.getNodeName()),L==="CODE"||W==="PRE"){S&&v.isFunction(S)&&(R=""+(S(R)||"")),g.cmd.do("insertHTML",D(R));return}if(y.urlRegex.test(R)&&k){S&&v.isFunction(S)&&(R=""+(S(R)||""));var P=R.replace(y.urlRegex,function(Y){return'<a href="'+Y+'" target="_blank">'+Y+"</a>"}),U=g.selection.getRange(),Q=document.createElement("div"),J=document.createDocumentFragment();if(Q.innerHTML=P,U==null)return;for(;Q.childNodes.length;)J.append(Q.childNodes[0]);var ie=J.querySelectorAll("a");(0,p.default)(ie).call(ie,function(Y){Y.innerText=Y.href}),U.insertNode&&(U.deleteContents(),U.insertNode(J)),g.selection.clearWindowSelectionRange();return}if(!!F)try{S&&v.isFunction(S)&&(F=""+(S(F)||""));var B=/[\.\#\@]?\w+[ ]+\{[^}]*\}/.test(F);if(B&&k)g.cmd.do("insertHTML",""+E(R));else{var z=E(F);if(C(z)){var G=g.$textElem;if(g.cmd.do("insertHTML",z),G.equal(w)){g.selection.createEmptyRange();return}x($)&&$.remove()}else g.cmd.do("insertHTML",z)}}catch{S&&v.isFunction(S)&&(R=""+(S(R)||"")),g.cmd.do("insertHTML",""+E(R))}}}b.push(N)}o.default=A},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(17)),p=s(n(4)),m=s(n(28));(0,d.default)(o,"__esModule",{value:!0});var v=n(2),y=n(293),E=v.__importDefault(n(297));function D(b){var N=/<span>.*?<\/span>/gi,T=/<span>(.*?)<\/span>/;return b.replace(N,function(O){var k=O.match(T);return k==null?"":k[1]})}function C(b,N){var T;return b=(0,c.default)(T=b.toLowerCase()).call(T),!!(y.IGNORE_TAGS.has(b)||N&&b==="img")}function x(b,N){var T="";T="<"+b;var O=[];(0,p.default)(N).call(N,function(M){O.push(M.name+'="'+M.value+'"')}),O.length>0&&(T=T+" "+O.join(" "));var k=y.EMPTY_TAGS.has(b);return T=T+(k?"/":"")+">",T}function A(b){return"</"+b+">"}function g(b,N,T){N===void 0&&(N=!0),T===void 0&&(T=!1);var O=[],k="";function M(w){w=(0,c.default)(w).call(w),w&&(y.EMPTY_TAGS.has(w)||(k=w))}function S(){k=""}var F=new E.default;F.parse(b,{startElement:function(L,$){if(M(L),!C(L,T)){var W=y.NECESSARY_ATTRS.get(L)||[],P=[];(0,p.default)($).call($,function(Q){var J=Q.name;if(J==="style"){N||P.push(Q);return}(0,m.default)(W).call(W,J)!==!1&&P.push(Q)});var U=x(L,P);O.push(U)}},characters:function(L){!L||C(k,T)||O.push(L)},endElement:function(L){if(!C(L,T)){var $=A(L);O.push($),S()}},comment:function(L){M(L)}});var R=O.join("");return R=D(R),R}o.default=g},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(132)),p=s(n(121));(0,d.default)(o,"__esModule",{value:!0}),o.TOP_LEVEL_TAGS=o.EMPTY_TAGS=o.NECESSARY_ATTRS=o.IGNORE_TAGS=void 0,o.IGNORE_TAGS=new c.default(["doctype","!doctype","html","head","meta","body","script","style","link","frame","iframe","title","svg","center","o:p"]),o.NECESSARY_ATTRS=new p.default([["img",["src","alt"]],["a",["href","target"]],["td",["colspan","rowspan"]],["th",["colspan","rowspan"]]]),o.EMPTY_TAGS=new c.default(["area","base","basefont","br","col","hr","img","input","isindex","embed"]),o.TOP_LEVEL_TAGS=new c.default(["h1","h2","h3","h4","h5","p","ul","ol","table","blockquote","pre","hr","form"])},function(a,o,n){var s=n(295);a.exports=s},function(a,o,n){n(296),n(61),n(50),n(54);var s=n(9);a.exports=s.Set},function(a,o,n){var s=n(122),d=n(124);a.exports=s("Set",function(c){return function(){return c(this,arguments.length?arguments[0]:void 0)}},d)},function(a,o){function n(){}n.prototype={handler:null,startTagRe:/^<([^>\s\/]+)((\s+[^=>\s]+(\s*=\s*((\"[^"]*\")|(\'[^']*\')|[^>\s]+))?)*)\s*\/?\s*>/m,endTagRe:/^<\/([^>\s]+)[^>]*>/m,attrRe:/([^=\s]+)(\s*=\s*((\"([^"]*)\")|(\'([^']*)\')|[^>\s]+))?/gm,parse:function(d,c){c&&(this.contentHandler=c);for(var p,m,v,y=!1,E=this;d.length>0;)d.substring(0,4)=="<!--"?(v=d.indexOf("-->"),v!=-1?(this.contentHandler.comment(d.substring(4,v)),d=d.substring(v+3),y=!1):y=!0):d.substring(0,2)=="</"?this.endTagRe.test(d)?(p=RegExp.lastMatch,m=RegExp.rightContext,p.replace(this.endTagRe,function(){return E.parseEndTag.apply(E,arguments)}),d=m,y=!1):y=!0:d.charAt(0)=="<"&&(this.startTagRe.test(d)?(p=RegExp.lastMatch,m=RegExp.rightContext,p.replace(this.startTagRe,function(){return E.parseStartTag.apply(E,arguments)}),d=m,y=!1):y=!0),y&&(v=d.indexOf("<"),v==-1?(this.contentHandler.characters(d),d=""):(this.contentHandler.characters(d.substring(0,v)),d=d.substring(v))),y=!0},parseStartTag:function(d,c,p){var m=this.parseAttributes(c,p);this.contentHandler.startElement(c,m)},parseEndTag:function(d,c){this.contentHandler.endElement(c)},parseAttributes:function(d,c){var p=this,m=[];return c.replace(this.attrRe,function(v,y,E,D,C,x,A,g){m.push(p.parseAttribute(d,v,y,E,D,C,x,A,g))}),m},parseAttribute:function(d,c,p){var m="";arguments[7]?m=arguments[8]:arguments[5]?m=arguments[6]:arguments[3]&&(m=arguments[4]);var v=!m&&!arguments[3];return{name:p,value:v?null:m}}},a.exports=n},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});function c(p,m){function v(y){p.selection.createRangeByElem(y),p.selection.restoreSelection()}m.push(v)}o.default=c},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=n(6),v=p.__importDefault(n(3));function y(E){var D=[],C=E.childNodes()||[];return(0,c.default)(C).call(C,function(x){var A,g=x.nodeType;if(g===3&&(A=x.textContent||"",A=m.replaceHtmlSymbol(A)),g===1){A={},A=A,A.tag=x.nodeName.toLowerCase();for(var b=[],N=x.attributes,T=N.length||0,O=0;O<T;O++){var k=N[O];b.push({name:k.name,value:k.value})}A.attrs=b,A.children=y(v.default(x))}A&&D.push(A)}),D}o.default=y},function(a,o,n){var s=n(0),d=s(n(92)),c=s(n(1)),p=s(n(4));(0,c.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3));function y(E,D){D===void 0&&(D=document.createElement("div"));var C=D;return(0,p.default)(E).call(E,function(x){var A;if(typeof x=="string"&&(A=document.createTextNode(x)),(0,d.default)(x)==="object"){var g;A=document.createElement(x.tag),(0,p.default)(g=x.attrs).call(g,function(b){v.default(A).attr(b.name,b.value)}),x.children&&x.children.length>0&&y(x.children,A.getRootNode())}A&&C.appendChild(A)}),v.default(C)}o.default=y},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(89)),p=s(n(70)),m=s(n(28)),v=s(n(302)),y=s(n(4)),E=s(n(94)),D=s(n(133)),C=s(n(46)),x=s(n(57));(0,d.default)(o,"__esModule",{value:!0});var A=n(2),g=A.__importDefault(n(87)),b=A.__importDefault(n(314)),N=A.__importDefault(n(3)),T=function(){function O(k){this.editor=k,this.menuList=[],this.constructorList=b.default}return O.prototype.extend=function(k,M){!M||typeof M!="function"||(this.constructorList[k]=M)},O.prototype.init=function(){var k,M,S=this,F=this.editor.config,R=F.excludeMenus;(0,c.default)(R)===!1&&(R=[]),F.menus=(0,p.default)(k=F.menus).call(k,function(J){return(0,m.default)(R).call(R,J)===!1});var w=(0,v.default)(g.default.globalCustomMenuConstructorList);w=(0,p.default)(w).call(w,function(J){return(0,m.default)(R).call(R,J)}),(0,y.default)(w).call(w,function(J){delete g.default.globalCustomMenuConstructorList[J]}),(0,y.default)(M=F.menus).call(M,function(J){var ie=S.constructorList[J];S._initMenuList(J,ie)});for(var L=0,$=(0,E.default)(g.default.globalCustomMenuConstructorList);L<$.length;L++){var W=$[L],P=W[0],U=W[1],Q=U;this._initMenuList(P,Q)}this._addToToolbar(),F.showMenuTooltips&&this._bindMenuTooltips()},O.prototype._initMenuList=function(k,M){var S;if(!(M==null||typeof M!="function"))if((0,D.default)(S=this.menuList).call(S,function(R){return R.key===k}))console.warn("\u83DC\u5355\u540D\u79F0\u91CD\u590D:"+k);else{var F=new M(this.editor);F.key=k,this.menuList.push(F)}},O.prototype._bindMenuTooltips=function(){var k=this.editor,M=k.$toolbarElem,S=k.config,F=S.menuTooltipPosition,R=N.default('<div class="w-e-menu-tooltip w-e-menu-tooltip-'+F+`">
<div class="w-e-menu-tooltip-item-wrapper">
<div></div>
</div>
</div>`);R.css("visibility","hidden"),M.append(R),R.css("z-index",k.zIndex.get("tooltip"));var w=0;function L(){w&&clearTimeout(w)}function $(){L(),R.css("visibility","hidden")}M.on("mouseover",function(W){var P=W.target,U=N.default(P),Q,J;if(U.isContain(M)){$();return}if(U.parentUntil(".w-e-droplist")!=null)$();else if(U.attr("data-title"))Q=U.attr("data-title"),J=U;else{var ie=U.parentUntil(".w-e-menu");ie!=null&&(Q=ie.attr("data-title"),J=ie)}if(Q&&J){L();var B=J.getOffsetData();R.text(k.i18next.t("menus.title."+Q));var z=R.getOffsetData(),G=B.left+B.width/2-z.width/2;R.css("left",G+"px"),F==="up"?R.css("top",B.top-z.height-8+"px"):F==="down"&&R.css("top",B.top+B.height+8+"px"),w=(0,C.default)(function(){R.css("visibility","visible")},200)}else $()}).on("mouseleave",function(){$()})},O.prototype._addToToolbar=function(){var k,M=this.editor,S=M.$toolbarElem;(0,y.default)(k=this.menuList).call(k,function(F){var R=F.$elem;R&&S.append(R)})},O.prototype.menuFind=function(k){for(var M=this.menuList,S=0,F=M.length;S<F;S++)if(M[S].key===k)return M[S];return M[0]},O.prototype.changeActive=function(){var k;(0,y.default)(k=this.menuList).call(k,function(M){var S;(0,C.default)((0,x.default)(S=M.tryChangeActive).call(S,M),100)})},O}();o.default=T},function(a,o,n){a.exports=n(303)},function(a,o,n){var s=n(304);a.exports=s},function(a,o,n){n(305);var s=n(9);a.exports=s.Object.keys},function(a,o,n){var s=n(5),d=n(31),c=n(52),p=n(11),m=p(function(){c(1)});s({target:"Object",stat:!0,forced:m},{keys:function(y){return c(d(y))}})},function(a,o,n){var s=n(307);a.exports=s},function(a,o,n){n(308);var s=n(9);a.exports=s.Object.entries},function(a,o,n){var s=n(5),d=n(309).entries;s({target:"Object",stat:!0},{entries:function(p){return d(p)}})},function(a,o,n){var s=n(14),d=n(52),c=n(30),p=n(59).f,m=function(y){return function(E){for(var D=c(E),C=d(D),x=C.length,A=0,g=[],b;x>A;)b=C[A++],(!s||p.call(D,b))&&g.push(y?[b,D[b]]:D[b]);return g}};a.exports={entries:m(!0),values:m(!1)}},function(a,o,n){var s=n(311);a.exports=s},function(a,o,n){var s=n(312),d=Array.prototype;a.exports=function(c){var p=c.some;return c===d||c instanceof Array&&p===d.some?s:p}},function(a,o,n){n(313);var s=n(15);a.exports=s("Array").some},function(a,o,n){var s=n(5),d=n(32).some,c=n(67),p=n(22),m=c("some"),v=p("some");s({target:"Array",proto:!0,forced:!m||!v},{some:function(E){return d(this,E,arguments.length>1?arguments[1]:void 0)}})},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(315)),m=c.__importDefault(n(316)),v=c.__importDefault(n(321)),y=c.__importDefault(n(326)),E=c.__importDefault(n(327)),D=c.__importDefault(n(328)),C=c.__importDefault(n(329)),x=c.__importDefault(n(331)),A=c.__importDefault(n(333)),g=c.__importDefault(n(334)),b=c.__importDefault(n(337)),N=c.__importDefault(n(338)),T=c.__importDefault(n(339)),O=c.__importDefault(n(350)),k=c.__importDefault(n(365)),M=c.__importDefault(n(369)),S=c.__importDefault(n(137)),F=c.__importDefault(n(378)),R=c.__importDefault(n(380)),w=c.__importDefault(n(381)),L=c.__importDefault(n(382)),$=c.__importDefault(n(401)),W=c.__importDefault(n(406)),P=c.__importDefault(n(409));o.default={bold:p.default,head:m.default,italic:y.default,link:v.default,underline:E.default,strikeThrough:D.default,fontName:C.default,fontSize:x.default,justify:A.default,quote:g.default,backColor:b.default,foreColor:N.default,video:T.default,image:O.default,indent:k.default,emoticon:M.default,list:S.default,lineHeight:F.default,undo:R.default,redo:w.default,table:L.default,code:$.default,splitLine:W.default,todo:P.default}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=function(y){c.__extends(E,y);function E(D){var C=this,x=m.default(`<div class="w-e-menu" data-title="\u52A0\u7C97">
<i class="w-e-icon-bold"></i>
</div>`);return C=y.call(this,x,D)||this,C}return E.prototype.clickHandler=function(){var D=this.editor,C=D.selection.isSelectionEmpty();C&&D.selection.createEmptyRange(),D.cmd.do("bold"),C&&(D.selection.collapseRange(),D.selection.restoreSelection())},E.prototype.tryChangeActive=function(){var D=this.editor;D.cmd.queryCommandState("bold")?this.active():this.unActive()},E}(p.default);o.default=v},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(27)),p=s(n(29)),m=s(n(4)),v=s(n(317)),y=s(n(28));(0,d.default)(o,"__esModule",{value:!0});var E=n(2),D=E.__importDefault(n(24)),C=E.__importDefault(n(3)),x=n(6),A=n(7),g=function(b){E.__extends(N,b);function N(T){var O=this,k=C.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:C.default("<h1>H1</h1>"),value:"<h1>"},{$elem:C.default("<h2>H2</h2>"),value:"<h2>"},{$elem:C.default("<h3>H3</h3>"),value:"<h3>"},{$elem:C.default("<h4>H4</h4>"),value:"<h4>"},{$elem:C.default("<h5>H5</h5>"),value:"<h5>"},{$elem:C.default("<p>"+T.i18next.t("menus.dropListMenu.head.\u6B63\u6587")+"</p>"),value:"<p>"}],clickHandler:function(R){O.command(R)}};O=b.call(this,k,T,M)||this;var S=T.config.onCatalogChange;return S&&(O.oldCatalogs=[],O.addListenerCatalog(),O.getCatalogs()),O}return N.prototype.command=function(T){var O=this.editor,k=O.selection.getSelectionContainerElem();if(k&&O.$textElem.equal(k))this.setMultilineHead(T);else{var M;if((0,c.default)(M=["OL","UL","LI","TABLE","TH","TR","CODE","HR"]).call(M,C.default(k).getNodeName())>-1)return;O.cmd.do("formatBlock",T)}T!=="<p>"&&this.addUidForSelectionElem()},N.prototype.addUidForSelectionElem=function(){var T=this.editor,O=T.selection.getSelectionContainerElem(),k=x.getRandomCode();C.default(O).attr("id",k)},N.prototype.addListenerCatalog=function(){var T=this,O=this.editor;O.txt.eventHooks.changeEvents.push(function(){T.getCatalogs()})},N.prototype.getCatalogs=function(){var T=this.editor,O=this.editor.$textElem,k=T.config.onCatalogChange,M=(0,p.default)(O).call(O,"h1,h2,h3,h4,h5"),S=[];(0,m.default)(M).call(M,function(F,R){var w=C.default(F),L=w.attr("id"),$=w.getNodeName(),W=w.text();L||(L=x.getRandomCode(),w.attr("id",L)),W&&S.push({tag:$,id:L,text:W})}),(0,v.default)(this.oldCatalogs)!==(0,v.default)(S)&&(this.oldCatalogs=S,k&&k(S))},N.prototype.setMultilineHead=function(T){var O=this,k,M,S=this.editor,F=S.selection,R=(k=F.getSelectionContainerElem())===null||k===void 0?void 0:k.elems[0],w=["IMG","VIDEO","TABLE","TH","TR","UL","OL","PRE","HR","BLOCKQUOTE"],L=C.default(F.getSelectionStartElem()),$=C.default(F.getSelectionEndElem());$.elems[0].outerHTML===C.default(A.EMPTY_P).elems[0].outerHTML&&!$.elems[0].nextSibling&&($=$.prev());var W=[];W.push(L.getNodeTop(S));var P=[],U=(M=F.getRange())===null||M===void 0?void 0:M.commonAncestorContainer.childNodes;U==null||(0,m.default)(U).call(U,function(ie,B){ie===W[0].getNode()&&P.push(B),ie===$.getNodeTop(S).getNode()&&P.push(B)});for(var Q=0;W[Q].getNode()!==$.getNodeTop(S).getNode();){if(!W[Q].elems[0])return;var J=C.default(W[Q].next().getNode());W.push(J),Q++}W==null||(0,m.default)(W).call(W,function(ie,B){if(!O.hasTag(ie,w)){var z=C.default(T),G=ie.parent().getNode();z.html(""+ie.html()),G.insertBefore(z.getNode(),ie.getNode()),ie.remove()}}),F.createRangeByElems(R.children[P[0]],R.children[P[1]])},N.prototype.hasTag=function(T,O){var k=this,M;if(!T)return!1;if((0,y.default)(O).call(O,T==null?void 0:T.getNodeName()))return!0;var S=!1;return(M=T.children())===null||M===void 0||(0,m.default)(M).call(M,function(F){S=k.hasTag(C.default(F),O)}),S},N.prototype.tryChangeActive=function(){var T=this.editor,O=/^h/i,k=T.cmd.queryCommandValue("formatBlock");O.test(k)?this.active():this.unActive()},N}(D.default);o.default=g},function(a,o,n){a.exports=n(318)},function(a,o,n){var s=n(319);a.exports=s},function(a,o,n){n(320);var s=n(9);s.JSON||(s.JSON={stringify:JSON.stringify}),a.exports=function(c,p,m){return s.JSON.stringify.apply(null,arguments)}},function(a,o,n){var s=n(5),d=n(36),c=n(11),p=d("JSON","stringify"),m=/[\uD800-\uDFFF]/g,v=/^[\uD800-\uDBFF]$/,y=/^[\uDC00-\uDFFF]$/,E=function(x,A,g){var b=g.charAt(A-1),N=g.charAt(A+1);return v.test(x)&&!y.test(N)||y.test(x)&&!v.test(b)?"\\u"+x.charCodeAt(0).toString(16):x},D=c(function(){return p("\uDF06\uD834")!=='"\\udf06\\ud834"'||p("\uDEAD")!=='"\\udead"'});p&&s({target:"JSON",stat:!0,forced:D},{stringify:function(x,A,g){var b=p.apply(null,arguments);return typeof b=="string"?b.replace(m,E):b}})},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(17));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(38)),v=p.__importDefault(n(3)),y=p.__importDefault(n(322)),E=p.__importStar(n(96)),D=p.__importDefault(n(33)),C=p.__importDefault(n(324)),x=n(7),A=function(g){p.__extends(b,g);function b(N){var T=this,O=v.default('<div class="w-e-menu" data-title="\u94FE\u63A5"><i class="w-e-icon-link"></i></div>');return T=g.call(this,O,N)||this,C.default(N),T}return b.prototype.clickHandler=function(){var N=this.editor,T,O=N.selection.getSelectionContainerElem(),k=N.$textElem,M=k.html(),S=(0,c.default)(M).call(M);if(S===x.EMPTY_P){var F=k.children();N.selection.createRangeByElem(F,!0,!0),O=N.selection.getSelectionContainerElem()}if(!(O&&N.$textElem.equal(O)))if(this.isActive){var R="",w="";if(T=N.selection.getSelectionContainerElem(),!T)return;if(T.getNodeName()!=="A"){var L=E.getParentNodeA(T);T=v.default(L)}R=T.elems[0].innerText,w=T.attr("href"),this.createPanel(R,w)}else N.selection.isSelectionEmpty()?this.createPanel("",""):this.createPanel(N.selection.getSelectionText(),"")},b.prototype.createPanel=function(N,T){var O=y.default(this.editor,N,T),k=new D.default(this,O);k.create()},b.prototype.tryChangeActive=function(){var N=this.editor;E.default(N)?this.active():this.unActive()},b}(m.default);o.default=A},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(28)),p=s(n(17)),m=s(n(29));(0,d.default)(o,"__esModule",{value:!0});var v=n(2),y=n(6),E=v.__importDefault(n(3)),D=v.__importStar(n(96)),C=n(323);function x(A,g,b){var N=y.getRandom("input-link"),T=y.getRandom("input-text"),O=y.getRandom("btn-ok"),k=y.getRandom("btn-del"),M=D.default(A)?"inline-block":"none",S;function F(){if(!!D.default(A)){var W=A.selection.getSelectionContainerElem();!W||(A.selection.createRangeByElem(W),A.selection.restoreSelection(),S=W)}}function R(W,P){var U=W.replace(/</g,"<").replace(/>/g,">"),Q=E.default('<a target="_blank">'+U+"</a>"),J=Q.elems[0];J.innerText=W,J.href=P,D.default(A)&&F(),A.cmd.do("insertElem",Q)}function w(){if(!!D.default(A))if(F(),S.getNodeName()==="A"){var W,P=S.elems[0],U=P.parentElement;U&&(0,c.default)(W=D.EXTRA_TAG).call(W,U.nodeName)?U.innerHTML=P.innerHTML:A.cmd.do("insertHTML","<span>"+P.innerHTML+"</span>")}else{var Q=D.getParentNodeA(S),J=Q.innerHTML;A.cmd.do("insertHTML","<span>"+J+"</span>")}}function L(W,P){var U=A.config.linkCheck(W,P);if(U!==void 0){if(U===!0)return!0;A.config.customAlert(U,"warning")}return!1}var $={width:300,height:0,tabs:[{title:A.i18next.t("menus.panelMenus.link.\u94FE\u63A5"),tpl:`<div>
<input
id="`+T+`"
type="text"
class="block"
placeholder="`+A.i18next.t("menus.panelMenus.link.\u94FE\u63A5\u6587\u5B57")+`"/>
</td>
<input
id="`+N+`"
type="text"
class="block"
placeholder="`+A.i18next.t("\u5982")+` https://..."/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+O+`" class="right">
`+A.i18next.t("\u63D2\u5165")+`
</button>
<button type="button" id="`+k+'" class="gray right" style="display:'+M+`">
`+A.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+`
</button>
</div>
</div>`,events:[{selector:"#"+O,type:"click",fn:function(){var P,U,Q,J,ie,B=A.selection.getSelectionContainerElem(),z=B==null?void 0:B.elems[0];A.selection.restoreSelection();var G=A.selection.getSelectionRangeTopNodes()[0].getNode(),Y=window.getSelection(),Z=E.default("#"+N),ae=E.default("#"+T),ue=(0,p.default)(P=Z.val()).call(P),se=(0,p.default)(U=ae.val()).call(U),le="";Y&&!(Y!=null&&Y.isCollapsed)&&(le=(J=C.insertHtml(Y,G))===null||J===void 0?void 0:(0,p.default)(J).call(J));var te=le==null?void 0:le.replace(/<.*?>/g,""),pe=(ie=te==null?void 0:te.length)!==null&&ie!==void 0?ie:0;if(pe<=se.length){var me=se.substring(0,pe),Ae=se.substring(pe);te===me&&(se=te+Ae)}if(!!ue&&(se||(se=ue),!!L(se,ue))){if((z==null?void 0:z.nodeName)==="A")return z.setAttribute("href",ue),z.innerText=se,!0;if((z==null?void 0:z.nodeName)!=="A"&&(0,c.default)(Q=D.EXTRA_TAG).call(Q,z.nodeName)){var Fe=D.getParentNodeA(B);if(Fe)return Fe.setAttribute("href",ue),z.innerText=se,!0}return R(se,ue),!0}},bindEnter:!0},{selector:"#"+k,type:"click",fn:function(){return w(),!0}}]}],setLinkValue:function(P,U){var Q="",J="",ie;U==="text"&&(Q="#"+T,J=g),U==="link"&&(Q="#"+N,J=b),ie=(0,m.default)(P).call(P,Q).elems[0],ie.value=J}};return $}o.default=x},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0}),o.insertHtml=o.createPartHtml=o.makeHtmlString=o.getTopNode=void 0;function p(C,x){var A=C,g=C;do{if(A.textContent===x)break;g=A,A.parentNode&&(A=A==null?void 0:A.parentNode)}while((A==null?void 0:A.nodeName)!=="P");return g}o.getTopNode=p;function m(C,x){var A=C.nodeName,g="";if(C.nodeType===3||/^(h|H)[1-6]$/.test(A))return x;if(C.nodeType===1){var b=C.getAttribute("style"),N=C.getAttribute("face"),T=C.getAttribute("color");b&&(g=g+(' style="'+b+'"')),N&&(g=g+(' face="'+N+'"')),T&&(g=g+(' color="'+T+'"'))}return A=A.toLowerCase(),"<"+A+g+">"+x+"</"+A+">"}o.makeHtmlString=m;function v(C,x,A,g){var b,N=(b=x.textContent)===null||b===void 0?void 0:b.substring(A,g),T=x,O="";do O=m(T,N!=null?N:""),N=O,T=T==null?void 0:T.parentElement;while(T&&T.textContent!==C);return O}o.createPartHtml=v;function y(C,x){var A,g,b,N,T,O=C.anchorNode,k=C.focusNode,M=C.anchorOffset,S=C.focusOffset,F=(A=x.textContent)!==null&&A!==void 0?A:"",R=E(x),w="",L="",$="",W="",P=O,U=k,Q=O;if(O!=null&&O.isEqualNode(k!=null?k:null)){var J=v(F,O,M,S);return J=D(R,J),J}for(O&&(L=v(F,O,M!=null?M:0)),k&&(W=v(F,k,0,S)),O&&(P=p(O,F)),k&&(U=p(k,F)),Q=(g=P==null?void 0:P.nextSibling)!==null&&g!==void 0?g:O;!(Q!=null&&Q.isEqualNode(U!=null?U:null));){var ie=Q==null?void 0:Q.nodeName;if(ie==="#text")$=$+(Q==null?void 0:Q.textContent);else{var B=(N=(b=Q==null?void 0:Q.firstChild)===null||b===void 0?void 0:b.parentElement)===null||N===void 0?void 0:N.innerHTML;Q&&($=$+m(Q,B!=null?B:""))}var z=(T=Q==null?void 0:Q.nextSibling)!==null&&T!==void 0?T:Q;if(z===Q)break;Q=z}return w=""+L+$+W,w=D(R,w),w}o.insertHtml=y;function E(C){for(var x,A=(x=C.textContent)!==null&&x!==void 0?x:"",g=[];(C==null?void 0:C.textContent)===A;)C.nodeName!=="P"&&C.nodeName!=="TABLE"&&g.push(C),C=C.childNodes[0];return g}function D(C,x){return(0,c.default)(C).call(C,function(A){x=m(A,x)}),x}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(325));function m(v){p.default(v)}o.default=m},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(28));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=p.__importDefault(n(39)),y=n(96);function E(C){var x;function A(b){var N=[{$elem:m.default("<span>"+C.i18next.t("menus.panelMenus.link.\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(O,k){var M=k.attr("href");return window.open(M,"_target"),!0}},{$elem:m.default("<span>"+C.i18next.t("menus.panelMenus.link.\u53D6\u6D88\u94FE\u63A5")+"</span>"),onClick:function(O,k){var M,S;O.selection.createRangeByElem(k),O.selection.restoreSelection();var F=k.childNodes();if((F==null?void 0:F.getNodeName())==="IMG"){var R=(S=(M=O.selection.getSelectionContainerElem())===null||M===void 0?void 0:M.children())===null||S===void 0?void 0:S.elems[0].children[0];O.cmd.do("insertHTML",`<img
src=`+(R==null?void 0:R.getAttribute("src"))+`
style=`+(R==null?void 0:R.getAttribute("style"))+">")}else{var w,L=k.elems[0],$=L.innerHTML,W=L.parentElement;W&&(0,c.default)(w=y.EXTRA_TAG).call(w,W.nodeName)?W.innerHTML=$:O.cmd.do("insertHTML","<span>"+$+"</span>")}return!0}}];x=new v.default(C,b,N),x.create()}function g(){x&&(x.remove(),x=null)}return{showLinkTooltip:A,hideLinkTooltip:g}}function D(C){var x=E(C),A=x.showLinkTooltip,g=x.hideLinkTooltip;C.txt.eventHooks.linkClickEvents.push(A),C.txt.eventHooks.clickEvents.push(g),C.txt.eventHooks.keyupEvents.push(g),C.txt.eventHooks.toolbarClickEvents.push(g),C.txt.eventHooks.menuClickEvents.push(g),C.txt.eventHooks.textScrollEvents.push(g)}o.default=D},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=function(y){c.__extends(E,y);function E(D){var C=this,x=m.default(`<div class="w-e-menu" data-title="\u659C\u4F53">
<i class="w-e-icon-italic"></i>
</div>`);return C=y.call(this,x,D)||this,C}return E.prototype.clickHandler=function(){var D=this.editor,C=D.selection.isSelectionEmpty();C&&D.selection.createEmptyRange(),D.cmd.do("italic"),C&&(D.selection.collapseRange(),D.selection.restoreSelection())},E.prototype.tryChangeActive=function(){var D=this.editor;D.cmd.queryCommandState("italic")?this.active():this.unActive()},E}(p.default);o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=function(y){c.__extends(E,y);function E(D){var C=this,x=m.default(`<div class="w-e-menu" data-title="\u4E0B\u5212\u7EBF">
<i class="w-e-icon-underline"></i>
</div>`);return C=y.call(this,x,D)||this,C}return E.prototype.clickHandler=function(){var D=this.editor,C=D.selection.isSelectionEmpty();C&&D.selection.createEmptyRange(),D.cmd.do("underline"),C&&(D.selection.collapseRange(),D.selection.restoreSelection())},E.prototype.tryChangeActive=function(){var D=this.editor;D.cmd.queryCommandState("underline")?this.active():this.unActive()},E}(p.default);o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=function(y){c.__extends(E,y);function E(D){var C=this,x=m.default(`<div class="w-e-menu" data-title="\u5220\u9664\u7EBF">
<i class="w-e-icon-strikethrough"></i>
</div>`);return C=y.call(this,x,D)||this,C}return E.prototype.clickHandler=function(){var D=this.editor,C=D.selection.isSelectionEmpty();C&&D.selection.createEmptyRange(),D.cmd.do("strikeThrough"),C&&(D.selection.collapseRange(),D.selection.restoreSelection())},E.prototype.tryChangeActive=function(){var D=this.editor;D.cmd.queryCommandState("strikeThrough")?this.active():this.unActive()},E}(p.default);o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(24)),m=c.__importDefault(n(3)),v=c.__importDefault(n(330)),y=function(E){c.__extends(D,E);function D(C){var x=this,A=m.default(`<div class="w-e-menu" data-title="\u5B57\u4F53">
<i class="w-e-icon-font"></i>
</div>`),g=new v.default(C.config.fontNames),b={width:100,title:"\u8BBE\u7F6E\u5B57\u4F53",type:"list",list:g.getItemList(),clickHandler:function(T){x.command(T)}};return x=E.call(this,A,C,b)||this,x}return D.prototype.command=function(C){var x,A=this.editor,g=A.selection.isSelectionEmpty(),b=(x=A.selection.getSelectionContainerElem())===null||x===void 0?void 0:x.elems[0];if(b!=null){var N=(b==null?void 0:b.nodeName.toLowerCase())!=="p",T=(b==null?void 0:b.getAttribute("face"))===C;if(g){if(N&&!T){var O=A.selection.getSelectionRangeTopNodes();A.selection.createRangeByElem(O[0]),A.selection.moveCursor(O[0].elems[0])}A.selection.setRangeToElem(b),A.selection.createEmptyRange()}A.cmd.do("fontName",C),g&&(A.selection.collapseRange(),A.selection.restoreSelection())}},D.prototype.tryChangeActive=function(){},D}(p.default);o.default=y},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=function(){function y(E){var D=this;this.itemList=[],(0,c.default)(E).call(E,function(C){var x=typeof C=="string"?C:C.value,A=typeof C=="string"?C:C.name;D.itemList.push({$elem:m.default(`<p style="font-family:'`+x+`'">`+A+"</p>"),value:A})})}return y.prototype.getItemList=function(){return this.itemList},y}();o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(24)),m=c.__importDefault(n(3)),v=c.__importDefault(n(332)),y=function(E){c.__extends(D,E);function D(C){var x=this,A=m.default(`<div class="w-e-menu" data-title="\u5B57\u53F7">
<i class="w-e-icon-text-heigh"></i>
</div>`),g=new v.default(C.config.fontSizes),b={width:160,title:"\u8BBE\u7F6E\u5B57\u53F7",type:"list",list:g.getItemList(),clickHandler:function(T){x.command(T)}};return x=E.call(this,A,C,b)||this,x}return D.prototype.command=function(C){var x,A=this.editor,g=A.selection.isSelectionEmpty(),b=(x=A.selection.getSelectionContainerElem())===null||x===void 0?void 0:x.elems[0];b!=null&&(A.cmd.do("fontSize",C),g&&(A.selection.collapseRange(),A.selection.restoreSelection()))},D.prototype.tryChangeActive=function(){},D}(p.default);o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=function(){function v(y){this.itemList=[];for(var E in y){var D=y[E];this.itemList.push({$elem:p.default('<p style="font-size:'+E+'">'+D.name+"</p>"),value:D.value})}}return v.prototype.getItemList=function(){return this.itemList},v}();o.default=m},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(27));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(24)),y=m.__importDefault(n(3)),E=["LI"],D=["BLOCKQUOTE"],C=function(x){m.__extends(A,x);function A(g){var b=this,N=y.default('<div class="w-e-menu" data-title="\u5BF9\u9F50"><i class="w-e-icon-paragraph-left"></i></div>'),T={width:100,title:"\u5BF9\u9F50\u65B9\u5F0F",type:"list",list:[{$elem:y.default(`<p>
<i class="w-e-icon-paragraph-left w-e-drop-list-item"></i>
`+g.i18next.t("menus.dropListMenu.justify.\u9760\u5DE6")+`
</p>`),value:"left"},{$elem:y.default(`<p>
<i class="w-e-icon-paragraph-center w-e-drop-list-item"></i>
`+g.i18next.t("menus.dropListMenu.justify.\u5C45\u4E2D")+`
</p>`),value:"center"},{$elem:y.default(`<p>
<i class="w-e-icon-paragraph-right w-e-drop-list-item"></i>
`+g.i18next.t("menus.dropListMenu.justify.\u9760\u53F3")+`
</p>`),value:"right"},{$elem:y.default(`<p>
<i class="w-e-icon-paragraph-justify w-e-drop-list-item"></i>
`+g.i18next.t("menus.dropListMenu.justify.\u4E24\u7AEF")+`
</p>`),value:"justify"}],clickHandler:function(k){b.command(k)}};return b=x.call(this,N,g,T)||this,b}return A.prototype.command=function(g){var b=this.editor,N=b.selection,T=N.getSelectionContainerElem();N.saveRange();var O=b.selection.getSelectionRangeTopNodes();if(T!=null&&T.length)if(this.isSpecialNode(T,O[0])||this.isSpecialTopNode(O[0])){var k=this.getSpecialNodeUntilTop(T,O[0]);if(k==null)return;y.default(k).css("text-align",g)}else(0,c.default)(O).call(O,function(M){M.css("text-align",g)});N.restoreSelection()},A.prototype.getSpecialNodeUntilTop=function(g,b){for(var N=g.elems[0],T=b.elems[0];N!=null;){if((0,p.default)(E).call(E,N==null?void 0:N.nodeName)!==-1||N.parentNode===T)return N;N=N.parentNode}return N},A.prototype.isSpecialNode=function(g,b){var N=this.getSpecialNodeUntilTop(g,b);return N==null?!1:(0,p.default)(E).call(E,N.nodeName)!==-1},A.prototype.isSpecialTopNode=function(g){var b;return g==null?!1:(0,p.default)(D).call(D,(b=g.elems[0])===null||b===void 0?void 0:b.nodeName)!==-1},A.prototype.tryChangeActive=function(){},A}(v.default);o.default=C},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=p.__importDefault(n(23)),y=p.__importDefault(n(335)),E=p.__importDefault(n(336)),D=n(7),C=function(x){p.__extends(A,x);function A(g){var b=this,N=m.default(`<div class="w-e-menu" data-title="\u5F15\u7528">
<i class="w-e-icon-quotes-left"></i>
</div>`);return b=x.call(this,N,g)||this,y.default(g),b}return A.prototype.clickHandler=function(){var g,b,N=this.editor,T=N.selection.isSelectionEmpty(),O=N.selection.getSelectionRangeTopNodes(),k=O[O.length-1],M=this.getTopNodeName();if(M==="BLOCKQUOTE"){var S=m.default(k.childNodes()),F=S.length,R=k;(0,c.default)(S).call(S,function(W){var P=m.default(W);P.insertAfter(R),R=P}),k.remove(),N.selection.moveCursor(S.elems[F-1]),this.tryChangeActive()}else{var w=E.default(O);if(N.$textElem.equal(k)){var L=(g=N.selection.getSelectionContainerElem())===null||g===void 0?void 0:g.elems[0];N.selection.createRangeByElems(L.children[0],L.children[0]),O=N.selection.getSelectionRangeTopNodes(),w=E.default(O),k.append(w)}else w.insertAfter(k);this.delSelectNode(O);var $=(b=w.childNodes())===null||b===void 0?void 0:b.last().getNode();if($==null)return;$.textContent?N.selection.moveCursor($):N.selection.moveCursor($,0),this.tryChangeActive(),m.default(D.EMPTY_P).insertAfter(w);return}T&&(N.selection.collapseRange(),N.selection.restoreSelection())},A.prototype.tryChangeActive=function(){var g,b=this.editor,N=(g=b.selection.getSelectionRangeTopNodes()[0])===null||g===void 0?void 0:g.getNodeName();N==="BLOCKQUOTE"?this.active():this.unActive()},A.prototype.getTopNodeName=function(){var g=this.editor,b=g.selection.getSelectionRangeTopNodes()[0],N=b==null?void 0:b.getNodeName();return N},A.prototype.delSelectNode=function(g){(0,c.default)(g).call(g,function(b){b.remove()})},A}(v.default);o.default=C},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=n(7),m=c.__importDefault(n(3));function v(y){function E(D){var C,x=y.selection.getSelectionContainerElem(),A=y.selection.getSelectionRangeTopNodes()[0];if((A==null?void 0:A.getNodeName())==="BLOCKQUOTE"){if(x.getNodeName()==="BLOCKQUOTE"){var g=(C=x.childNodes())===null||C===void 0?void 0:C.getNode();y.selection.moveCursor(g)}if(x.text()===""){D.preventDefault(),x.remove();var b=m.default(p.EMPTY_P);b.insertAfter(A),y.selection.moveCursor(b.getNode(),0)}A.text()===""&&A.remove()}}y.txt.eventHooks.enterDownEvents.push(E)}o.default=v},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3));function v(y){var E=m.default("<blockquote></blockquote>");return(0,c.default)(y).call(y,function(D){E.append(D.clone(!0))}),E}o.default=v},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(26));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(24)),v=p.__importDefault(n(3)),y=n(6),E=function(D){p.__extends(C,D);function C(x){var A,g=this,b=v.default(`<div class="w-e-menu" data-title="\u80CC\u666F\u8272">
<i class="w-e-icon-paint-brush"></i>
</div>`),N={width:120,title:"\u80CC\u666F\u989C\u8272",type:"inline-block",list:(0,c.default)(A=x.config.colors).call(A,function(T){return{$elem:v.default('<i style="color:'+T+';" class="w-e-icon-paint-brush"></i>'),value:T}}),clickHandler:function(O){g.command(O)}};return g=D.call(this,b,x,N)||this,g}return C.prototype.command=function(x){var A,g=this.editor,b=g.selection.isSelectionEmpty(),N=(A=g.selection.getSelectionContainerElem())===null||A===void 0?void 0:A.elems[0];if(N!=null){var T=(N==null?void 0:N.nodeName.toLowerCase())!=="p",O=N==null?void 0:N.style.backgroundColor,k=y.hexToRgb(x)===O;if(b){if(T&&!k){var M=g.selection.getSelectionRangeTopNodes();g.selection.createRangeByElem(M[0]),g.selection.moveCursor(M[0].elems[0])}g.selection.createEmptyRange()}g.cmd.do("backColor",x),b&&(g.selection.collapseRange(),g.selection.restoreSelection())}},C.prototype.tryChangeActive=function(){},C}(m.default);o.default=E},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(26));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(24)),v=p.__importDefault(n(3)),y=function(E){p.__extends(D,E);function D(C){var x,A=this,g=v.default(`<div class="w-e-menu" data-title="\u6587\u5B57\u989C\u8272">
<i class="w-e-icon-pencil2"></i>
</div>`),b={width:120,title:"\u6587\u5B57\u989C\u8272",type:"inline-block",list:(0,c.default)(x=C.config.colors).call(x,function(N){return{$elem:v.default('<i style="color:'+N+';" class="w-e-icon-pencil2"></i>'),value:N}}),clickHandler:function(T){A.command(T)}};return A=E.call(this,g,C,b)||this,A}return D.prototype.command=function(C){var x,A=this.editor,g=A.selection.isSelectionEmpty(),b=(x=A.selection.getSelectionContainerElem())===null||x===void 0?void 0:x.elems[0];if(b!=null){var N=A.selection.getSelectionText();if(b.nodeName==="A"&&b.textContent===N){var T=v.default("<span>​</span>").getNode();b.appendChild(T)}A.cmd.do("foreColor",C),g&&(A.selection.collapseRange(),A.selection.restoreSelection())}},D.prototype.tryChangeActive=function(){},D}(m.default);o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(33)),v=c.__importDefault(n(38)),y=c.__importDefault(n(340)),E=c.__importDefault(n(346)),D=function(C){c.__extends(x,C);function x(A){var g=this,b=p.default(`<div class="w-e-menu" data-title="\u89C6\u9891">
<i class="w-e-icon-play"></i>
</div>`);return g=C.call(this,b,A)||this,E.default(A),g}return x.prototype.clickHandler=function(){this.createPanel("")},x.prototype.createPanel=function(A){var g=y.default(this.editor,A),b=new m.default(this,g);b.create()},x.prototype.tryChangeActive=function(){},x}(v.default);o.default=D},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(17));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=n(6),v=p.__importDefault(n(3)),y=p.__importDefault(n(341)),E=n(7);function D(C,x){var A=C.config,g=new y.default(C),b=m.getRandom("input-iframe"),N=m.getRandom("btn-ok"),T=m.getRandom("input-upload"),O=m.getRandom("btn-local-ok");function k(R){C.cmd.do("insertHTML",R+E.EMPTY_P),C.config.onlineVideoCallback(R)}function M(R){var w=C.config.onlineVideoCheck(R);return w===!0?!0:(typeof w=="string"&&C.config.customAlert(w,"error"),!1)}var S=[{title:C.i18next.t("menus.panelMenus.video.\u4E0A\u4F20\u89C6\u9891"),tpl:`<div class="w-e-up-video-container">
<div id="`+O+`" class="w-e-up-btn">
<i class="w-e-icon-upload2"></i>
</div>
<div style="display:none;">
<input id="`+T+`" type="file" accept="video/*"/>
</div>
</div>`,events:[{selector:"#"+O,type:"click",fn:function(){var w=v.default("#"+T),L=w.elems[0];if(L)L.click();else return!0}},{selector:"#"+T,type:"change",fn:function(){var w=v.default("#"+T),L=w.elems[0];if(!L)return!0;var $=L.files;return $.length&&g.uploadVideo($),!0}}]},{title:C.i18next.t("menus.panelMenus.video.\u63D2\u5165\u89C6\u9891"),tpl:`<div>
<input
id="`+b+`"
type="text"
class="block"
placeholder="`+C.i18next.t("\u5982")+`\uFF1A<iframe src=... ></iframe>"/>
</td>
<div class="w-e-button-container">
<button type="button" id="`+N+`" class="right">
`+C.i18next.t("\u63D2\u5165")+`
</button>
</div>
</div>`,events:[{selector:"#"+N,type:"click",fn:function(){var w,L=v.default("#"+b),$=(0,c.default)(w=L.val()).call(w);if(!!$&&!!M($))return k($),!0},bindEnter:!0}]}],F={width:300,height:0,tabs:[]};return window.FileReader&&(A.uploadVideoServer||A.customUploadVideo)&&F.tabs.push(S[0]),A.showLinkVideo&&F.tabs.push(S[1]),F}o.default=D},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(133)),p=s(n(57)),m=s(n(4)),v=s(n(27));(0,d.default)(o,"__esModule",{value:!0});var y=n(2),E=n(6),D=y.__importDefault(n(135)),C=y.__importDefault(n(136)),x=n(7),A=n(6),g=function(){function b(N){this.editor=N}return b.prototype.uploadVideo=function(N){var T=this;if(!!N.length){var O=this.editor,k=O.config,M="validate.",S=function(te){return O.i18next.t(M+te)},F=k.uploadVideoServer,R=k.uploadVideoMaxSize,w=R/1024,L=k.uploadVideoName,$=k.uploadVideoParams,W=k.uploadVideoParamsWithUrl,P=k.uploadVideoHeaders,U=k.uploadVideoHooks,Q=k.uploadVideoTimeout,J=k.withVideoCredentials,ie=k.customUploadVideo,B=k.uploadVideoAccept,z=[],G=[];if(E.arrForEach(N,function(le){var te=le.name,pe=le.size/1024/1024;if(!(!te||!pe)){if(!(B instanceof Array)){G.push("\u3010"+B+"\u3011"+S("uploadVideoAccept \u4E0D\u662FArray"));return}if(!(0,c.default)(B).call(B,function(me){return me===te.split(".")[te.split(".").length-1]})){G.push("\u3010"+te+"\u3011"+S("\u4E0D\u662F\u89C6\u9891"));return}if(w<pe){G.push("\u3010"+te+"\u3011"+S("\u5927\u4E8E")+" "+w+"M");return}z.push(le)}}),G.length){k.customAlert(S("\u89C6\u9891\u9A8C\u8BC1\u672A\u901A\u8FC7")+`:
`+G.join(`
`),"warning");return}if(z.length===0){k.customAlert(S("\u4F20\u5165\u7684\u6587\u4EF6\u4E0D\u5408\u6CD5"),"warning");return}if(ie&&typeof ie=="function"){var Y;ie(z,(0,p.default)(Y=this.insertVideo).call(Y,this));return}var Z=new FormData;if((0,m.default)(z).call(z,function(le,te){var pe=L||le.name;z.length>1&&(pe=pe+(te+1)),Z.append(pe,le)}),F){var ae=F.split("#");F=ae[0];var ue=ae[1]||"";(0,m.default)(E).call(E,$,function(le,te){W&&((0,v.default)(F).call(F,"?")>0?F+="&":F+="?",F=F+le+"="+te),Z.append(le,te)}),ue&&(F+="#"+ue);var se=D.default(F,{timeout:Q,formData:Z,headers:P,withCredentials:!!J,beforeSend:function(te){if(U.before)return U.before(te,O,z)},onTimeout:function(te){k.customAlert(S("\u4E0A\u4F20\u89C6\u9891\u8D85\u65F6"),"error"),U.timeout&&U.timeout(te,O)},onProgress:function(te,pe){var me=new C.default(O);pe.lengthComputable&&(te=pe.loaded/pe.total,me.show(te))},onError:function(te){k.customAlert(S("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF"),"error",S("\u4E0A\u4F20\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+S("\u670D\u52A1\u5668\u8FD4\u56DE\u72B6\u6001")+": "+te.status),U.error&&U.error(te,O)},onFail:function(te,pe){k.customAlert(S("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",S("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+("\uFF0C"+S("\u8FD4\u56DE\u7ED3\u679C")+": ")+pe),U.fail&&U.fail(te,O,pe)},onSuccess:function(te,pe){if(U.customInsert){var me;U.customInsert((0,p.default)(me=T.insertVideo).call(me,T),pe,O);return}if(pe.errno!="0"){k.customAlert(S("\u4E0A\u4F20\u89C6\u9891\u5931\u8D25"),"error",S("\u4E0A\u4F20\u89C6\u9891\u8FD4\u56DE\u7ED3\u679C\u9519\u8BEF")+"\uFF0C"+S("\u8FD4\u56DE\u7ED3\u679C")+" errno="+pe.errno),U.fail&&U.fail(te,O,pe);return}var Ae=pe.data;T.insertVideo(Ae.url),U.success&&U.success(te,O,pe)}});typeof se=="string"&&k.customAlert(se,"error")}}},b.prototype.insertVideo=function(N){var T=this.editor,O=T.config,k="validate.",M=function(R,w){return w===void 0&&(w=k),T.i18next.t(w+R)};if(!O.customInsertVideo)A.UA.isFirefox?T.cmd.do("insertHTML",'<p data-we-video-p="true"><video src="'+N+'" controls="controls" style="max-width:100%"></video></p><p>​</p>'):T.cmd.do("insertHTML",'<video src="'+N+'" controls="controls" style="max-width:100%"></video>'+x.EMPTY_P);else{O.customInsertVideo(N);return}var S=document.createElement("video");S.onload=function(){S=null},S.onerror=function(){O.customAlert(M("\u63D2\u5165\u89C6\u9891\u9519\u8BEF"),"error","wangEditor: "+M("\u63D2\u5165\u89C6\u9891\u9519\u8BEF")+"\uFF0C"+M("\u89C6\u9891\u94FE\u63A5")+' "'+N+'"\uFF0C'+M("\u4E0B\u8F7D\u94FE\u63A5\u5931\u8D25")),S=null},S.onabort=function(){return S=null},S.src=N},b}();o.default=g},function(a,o,n){a.exports=n(343)},function(a,o,n){var s=n(344);a.exports=s},function(a,o,n){n(345);var s=n(9);a.exports=s.Date.now},function(a,o,n){var s=n(5);s({target:"Date",stat:!0},{now:function(){return new Date().getTime()}})},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(347)),m=c.__importDefault(n(349));function v(y){p.default(y),m.default(y)}o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39)),v=c.__importDefault(n(348));function y(D){var C,x=function(N,T){return T===void 0&&(T=""),D.i18next.t(T+N)};function A(b){var N=[{$elem:p.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(O,k){return k.remove(),!0}},{$elem:p.default("<span>100%</span>"),onClick:function(O,k){return k.attr("width","100%"),k.removeAttr("height"),!0}},{$elem:p.default("<span>50%</span>"),onClick:function(O,k){return k.attr("width","50%"),k.removeAttr("height"),!0}},{$elem:p.default("<span>30%</span>"),onClick:function(O,k){return k.attr("width","30%"),k.removeAttr("height"),!0}},{$elem:p.default("<span>"+x("\u91CD\u7F6E")+"</span>"),onClick:function(O,k){return k.removeAttr("width"),k.removeAttr("height"),!0}},{$elem:p.default("<span>"+x("menus.justify.\u9760\u5DE6")+"</span>"),onClick:function(O,k){return v.default(k,"left"),!0}},{$elem:p.default("<span>"+x("menus.justify.\u5C45\u4E2D")+"</span>"),onClick:function(O,k){return v.default(k,"center"),!0}},{$elem:p.default("<span>"+x("menus.justify.\u9760\u53F3")+"</span>"),onClick:function(O,k){return v.default(k,"right"),!0}}];C=new m.default(D,b,N),C.create()}function g(){C&&(C.remove(),C=null)}return{showVideoTooltip:A,hideVideoTooltip:g}}o.createShowHideFn=y;function E(D){var C=y(D),x=C.showVideoTooltip,A=C.hideVideoTooltip;D.txt.eventHooks.videoClickEvents.push(x),D.txt.eventHooks.clickEvents.push(A),D.txt.eventHooks.keyupEvents.push(A),D.txt.eventHooks.toolbarClickEvents.push(A),D.txt.eventHooks.menuClickEvents.push(A),D.txt.eventHooks.textScrollEvents.push(A),D.txt.eventHooks.changeEvents.push(A)}o.default=E},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(28));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3));function v(E,D){var C=["P"],x=y(E,C);x&&m.default(x).css("text-align",D)}o.default=v;function y(E,D){for(var C,x=E.elems[0];x!=null;){if((0,c.default)(D).call(D,x==null?void 0:x.nodeName))return x;if(((C=x==null?void 0:x.parentNode)===null||C===void 0?void 0:C.nodeName)==="BODY")return null;x=x.parentNode}return x}},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(6);function p(m){if(!!c.UA.isFirefox){var v=m.txt,y=m.selection,E=v.eventHooks.keydownEvents;E.push(function(D){var C=y.getSelectionContainerElem();if(C){var x=C.getNodeTop(m),A=x.length&&x.prev().length?x.prev():null;A&&A.attr("data-we-video-p")&&y.getCursorPos()===0&&D.keyCode===8&&A.remove()}})}}o.default=p},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(26));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=n(7),v=p.__importDefault(n(3)),y=p.__importDefault(n(33)),E=p.__importDefault(n(38)),D=p.__importDefault(n(351)),C=p.__importDefault(n(364)),x=function(A){p.__extends(g,A);function g(b){var N=this,T=v.default('<div class="w-e-menu" data-title="\u56FE\u7247"><i class="w-e-icon-image"></i></div>'),O=C.default(b);if(O.onlyUploadConf){var k;T=O.onlyUploadConf.$elem,(0,c.default)(k=O.onlyUploadConf.events).call(k,function(M){var S=M.type,F=M.fn||m.EMPTY_FN;T.on(S,function(R){R.stopPropagation(),F(R)})})}return N=A.call(this,T,b)||this,N.imgPanelConfig=O,D.default(b),N}return g.prototype.clickHandler=function(){this.imgPanelConfig.onlyUploadConf||this.createPanel()},g.prototype.createPanel=function(){var b=this.imgPanelConfig,N=new y.default(this,b);this.setPanel(N),N.create()},g.prototype.tryChangeActive=function(){},g}(E.default);o.default=x},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(352)),m=c.__importDefault(n(353)),v=c.__importDefault(n(354)),y=c.__importDefault(n(362)),E=c.__importDefault(n(363));function D(C){p.default(C),m.default(C),v.default(C),y.default(C),E.default(C)}o.default=D},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=n(131),m=c.__importDefault(n(97));function v(C,x){var A=C.config,g=A.pasteFilterStyle,b=A.pasteIgnoreImg,N=p.getPasteHtml(x,g,b);if(N)return!0;var T=p.getPasteText(x);return!!T}function y(C,x){for(var A,g=((A=x.clipboardData)===null||A===void 0?void 0:A.types)||[],b=0;b<g.length;b++){var N=g[b];if(N==="Files")return!0}return!1}function E(C,x){if(!(!y(x,C)&&v(x,C))){var A=p.getPasteImgs(C);if(!!A.length){var g=new m.default(x);g.uploadImg(A)}}}function D(C){C.txt.eventHooks.pasteEvents.unshift(function(x){E(x,C)})}o.default=D},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(97));function m(v){function y(E){var D=E.dataTransfer&&E.dataTransfer.files;if(!(!D||!D.length)){var C=new p.default(v);C.uploadImg(D)}}v.txt.eventHooks.dropEvents.push(y)}o.default=m},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(29)),p=s(n(355));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var m=n(2),v=m.__importDefault(n(3));n(360);var y=n(6);function E(g,b,N,T,O){g.attr("style","width:"+b+"px; height:"+N+"px; left:"+T+"px; top:"+O+"px;")}function D(g,b){var N=v.default(`<div class="w-e-img-drag-mask">
<div class="w-e-img-drag-show-size"></div>
<div class="w-e-img-drag-rb"></div>
</div>`);return N.hide(),b.append(N),N}function C(g,b,N){var T=g.getBoundingClientRect(),O=N.getBoundingClientRect(),k=O.width.toFixed(2),M=O.height.toFixed(2);(0,c.default)(b).call(b,".w-e-img-drag-show-size").text(k+"px * "+M+"px"),E(b,(0,p.default)(k),(0,p.default)(M),O.left-T.left,O.top-T.top),b.show()}function x(g){var b=g.$textContainerElem,N,T=D(g,b);function O(S,F){S.on("click",function(R){R.stopPropagation()}),S.on("mousedown",".w-e-img-drag-rb",function(R){if(R.preventDefault(),!N)return;var w=R.clientX,L=R.clientY,$=F.getBoundingClientRect(),W=N.getBoundingClientRect(),P=W.width,U=W.height,Q=W.left-$.left,J=W.top-$.top,ie=P/U,B=P,z=U,G=v.default(document);function Y(){G.off("mousemove",Z),G.off("mouseup",ae)}function Z(ue){ue.stopPropagation(),ue.preventDefault(),B=P+(ue.clientX-w),z=U+(ue.clientY-L),B/z!=ie&&(z=B/ie),B=(0,p.default)(B.toFixed(2)),z=(0,p.default)(z.toFixed(2)),(0,c.default)(S).call(S,".w-e-img-drag-show-size").text(B.toFixed(2).replace(".00","")+"px * "+z.toFixed(2).replace(".00","")+"px"),E(S,B,z,Q,J)}G.on("mousemove",Z);function ae(){N.attr("width",B+""),N.attr("height",z+"");var ue=N.getBoundingClientRect();E(S,B,z,ue.left-$.left,ue.top-$.top),Y()}G.on("mouseup",ae),G.on("mouseleave",Y)})}function k(S){if(y.UA.isIE())return!1;S&&(N=S,C(b,T,N))}function M(){(0,c.default)(b).call(b,".w-e-img-drag-mask").hide()}return O(T,b),v.default(document).on("click",M),g.beforeDestroy(function(){v.default(document).off("click",M)}),{showDrag:k,hideDrag:M}}o.createShowHideFn=x;function A(g){var b=x(g),N=b.showDrag,T=b.hideDrag;g.txt.eventHooks.imgClickEvents.push(N),g.txt.eventHooks.textScrollEvents.push(T),g.txt.eventHooks.keyupEvents.push(T),g.txt.eventHooks.toolbarClickEvents.push(T),g.txt.eventHooks.menuClickEvents.push(T),g.txt.eventHooks.changeEvents.push(T)}o.default=A},function(a,o,n){a.exports=n(356)},function(a,o,n){var s=n(357);a.exports=s},function(a,o,n){n(358);var s=n(9);a.exports=s.parseFloat},function(a,o,n){var s=n(5),d=n(359);s({global:!0,forced:parseFloat!=d},{parseFloat:d})},function(a,o,n){var s=n(8),d=n(90).trim,c=n(68),p=s.parseFloat,m=1/p(c+"-0")!==-1/0;a.exports=m?function(y){var E=d(String(y)),D=p(E);return D===0&&E.charAt(0)=="-"?-0:D}:p},function(a,o,n){var s=n(20),d=n(361);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-text-container {
overflow: hidden;
}
.w-e-img-drag-mask {
position: absolute;
z-index: 1;
border: 1px dashed #ccc;
box-sizing: border-box;
}
.w-e-img-drag-mask .w-e-img-drag-rb {
position: absolute;
right: -5px;
bottom: -5px;
width: 16px;
height: 16px;
border-radius: 50%;
background: #ccc;
cursor: se-resize;
}
.w-e-img-drag-mask .w-e-img-drag-show-size {
min-width: 110px;
height: 22px;
line-height: 22px;
font-size: 14px;
color: #999;
position: absolute;
left: 0;
top: 0;
background-color: #999;
color: #fff;
border-radius: 2px;
padding: 0 5px;
}
`,""]),a.exports=o},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39));function v(E){var D,C=function(b,N){return N===void 0&&(N=""),E.i18next.t(N+b)};function x(g){var b=[{$elem:p.default("<span class='w-e-icon-trash-o'></span>"),onClick:function(T,O){return T.selection.createRangeByElem(O),T.selection.restoreSelection(),T.cmd.do("delete"),!0}},{$elem:p.default("<span>30%</span>"),onClick:function(T,O){return O.attr("width","30%"),O.removeAttr("height"),!0}},{$elem:p.default("<span>50%</span>"),onClick:function(T,O){return O.attr("width","50%"),O.removeAttr("height"),!0}},{$elem:p.default("<span>100%</span>"),onClick:function(T,O){return O.attr("width","100%"),O.removeAttr("height"),!0}}];b.push({$elem:p.default("<span>"+C("\u91CD\u7F6E")+"</span>"),onClick:function(T,O){return O.removeAttr("width"),O.removeAttr("height"),!0}}),g.attr("data-href")&&b.push({$elem:p.default("<span>"+C("\u67E5\u770B\u94FE\u63A5")+"</span>"),onClick:function(T,O){var k=O.attr("data-href");return k&&(k=decodeURIComponent(k),window.open(k,"_target")),!0}}),D=new m.default(E,g,b),D.create()}function A(){D&&(D.remove(),D=null)}return{showImgTooltip:x,hideImgTooltip:A}}o.createShowHideFn=v;function y(E){var D=v(E),C=D.showImgTooltip,x=D.hideImgTooltip;E.txt.eventHooks.imgClickEvents.push(C),E.txt.eventHooks.clickEvents.push(x),E.txt.eventHooks.keyupEvents.push(x),E.txt.eventHooks.toolbarClickEvents.push(x),E.txt.eventHooks.menuClickEvents.push(x),E.txt.eventHooks.textScrollEvents.push(x),E.txt.eventHooks.imgDragBarMouseDownEvents.push(x),E.txt.eventHooks.changeEvents.push(x)}o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});function c(p){var m=p.txt,v=p.selection,y=m.eventHooks.keydownEvents;y.push(function(E){var D=v.getSelectionContainerElem(),C=v.getRange();if(!(!C||!D||E.keyCode!==8||!v.isSelectionEmpty())){var x=C.startContainer,A=C.startOffset,g=null;if(A===0)for(;x!==D.elems[0]&&D.elems[0].contains(x)&&x.parentNode&&!g;){if(x.previousSibling){g=x.previousSibling;break}x=x.parentNode}else x.nodeType!==3&&(g=x.childNodes[A-1]);if(!!g){for(var b=g;b.childNodes.length;)b=b.childNodes[b.childNodes.length-1];b instanceof HTMLElement&&b.tagName==="IMG"&&(b.remove(),E.preventDefault())}}})}o.default=c},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(26)),p=s(n(17));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),y=n(6),E=m.__importDefault(n(97));function D(C){var x,A=C.config,g=new E.default(C),b=y.getRandom("up-trigger-id"),N=y.getRandom("up-file-id"),T=y.getRandom("input-link-url"),O=y.getRandom("input-link-url-alt"),k=y.getRandom("input-link-url-href"),M=y.getRandom("btn-link"),S="menus.panelMenus.image.",F=function(ie,B){return B===void 0&&(B=S),C.i18next.t(B+ie)};function R(J,ie,B){var z=A.linkImgCheck(J);return z===!0?!0:(typeof z=="string"&&A.customAlert(z,"error"),!1)}var w=A.uploadImgMaxLength===1?"":'multiple="multiple"',L=(0,c.default)(x=A.uploadImgAccept).call(x,function(J){return"image/"+J}).join(","),$=function(ie,B,z){return'<div class="'+ie+'" data-title="'+z+`">
<div id="`+b+`" class="w-e-up-btn">
<i class="`+B+`"></i>
</div>
<div style="display:none;">
<input id="`+N+'" type="file" '+w+' accept="'+L+`"/>
</div>
</div>`},W=[{selector:"#"+b,type:"click",fn:function(){var ie=A.uploadImgFromMedia;if(ie&&typeof ie=="function")return ie(),!0;var B=v.default("#"+N),z=B.elems[0];if(z)z.click();else return!0}},{selector:"#"+N,type:"change",fn:function(){var ie=v.default("#"+N),B=ie.elems[0];if(!B)return!0;var z=B.files;return z!=null&&z.length&&g.uploadImg(z),B&&(B.value=""),!0}}],P=[`<input
id="`+T+`"
type="text"
class="block"
placeholder="`+F("\u56FE\u7247\u5730\u5740")+'"/>'];A.showLinkImgAlt&&P.push(`
<input
id="`+O+`"
type="text"
class="block"
placeholder="`+F("\u56FE\u7247\u6587\u5B57\u8BF4\u660E")+'"/>'),A.showLinkImgHref&&P.push(`
<input
id="`+k+`"
type="text"
class="block"
placeholder="`+F("\u8DF3\u8F6C\u94FE\u63A5")+'"/>');var U=[{title:F("\u4E0A\u4F20\u56FE\u7247"),tpl:$("w-e-up-img-container","w-e-icon-upload2",""),events:W},{title:F("\u7F51\u7EDC\u56FE\u7247"),tpl:`<div>
`+P.join("")+`
<div class="w-e-button-container">
<button type="button" id="`+M+'" class="right">'+F("\u63D2\u5165","")+`</button>
</div>
</div>`,events:[{selector:"#"+M,type:"click",fn:function(){var ie,B=v.default("#"+T),z=(0,p.default)(ie=B.val()).call(ie);if(!!z){var G;if(A.showLinkImgAlt){var Y;G=(0,p.default)(Y=v.default("#"+O).val()).call(Y)}var Z;if(A.showLinkImgHref){var ae;Z=(0,p.default)(ae=v.default("#"+k).val()).call(ae)}if(!!R(z))return g.insertImg(z,G,Z),!0}},bindEnter:!0}]}],Q={width:300,height:0,tabs:[],onlyUploadConf:{$elem:v.default($("w-e-menu","w-e-icon-image","\u56FE\u7247")),events:W}};return window.FileReader&&(A.uploadImgShowBase64||A.uploadImgServer||A.customUploadImg||A.uploadImgFromMedia)&&Q.tabs.push(U[0]),A.showLinkImg&&(Q.tabs.push(U[1]),Q.onlyUploadConf=void 0),Q}o.default=D},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=p.__importDefault(n(24)),y=p.__importDefault(n(366)),E=function(D){p.__extends(C,D);function C(x){var A=this,g=m.default(`<div class="w-e-menu" data-title="\u7F29\u8FDB">
<i class="w-e-icon-indent-increase"></i>
</div>`),b={width:130,title:"\u8BBE\u7F6E\u7F29\u8FDB",type:"list",list:[{$elem:m.default(`<p>
<i class="w-e-icon-indent-increase w-e-drop-list-item"></i>
`+x.i18next.t("menus.dropListMenu.indent.\u589E\u52A0\u7F29\u8FDB")+`
<p>`),value:"increase"},{$elem:m.default(`<p>
<i class="w-e-icon-indent-decrease w-e-drop-list-item"></i>
`+x.i18next.t("menus.dropListMenu.indent.\u51CF\u5C11\u7F29\u8FDB")+`
<p>`),value:"decrease"}],clickHandler:function(T){A.command(T)}};return A=D.call(this,g,x,b)||this,A}return C.prototype.command=function(x){var A=this.editor,g=A.selection.getSelectionContainerElem();if(g&&A.$textElem.equal(g)){var b=A.selection.getSelectionRangeTopNodes();b.length>0&&(0,c.default)(b).call(b,function(N){y.default(m.default(N),x,A)})}else g&&g.length>0&&(0,c.default)(g).call(g,function(N){y.default(m.default(N),x,A)});A.selection.restoreSelection(),this.tryChangeActive()},C.prototype.tryChangeActive=function(){var x=this.editor,A=x.selection.getSelectionStartElem(),g=m.default(A).getNodeTop(x);g.length<=0||(g.elems[0].style.paddingLeft!=""?this.active():this.unActive())},C}(v.default);o.default=E},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(45)),p=s(n(17));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(367)),y=m.__importDefault(n(368)),E=/^(\d+)(\w+)$/,D=/^(\d+)%$/;function C(A){var g=A.config.indentation;if(typeof g=="string"){if(E.test(g)){var b,N=(0,c.default)(b=(0,p.default)(g).call(g).match(E)).call(b,1,3),T=N[0],O=N[1];return{value:Number(T),unit:O}}else if(D.test(g))return{value:Number((0,p.default)(g).call(g).match(D)[1]),unit:"%"}}else if(g.value!==void 0&&g.unit)return g;return{value:2,unit:"em"}}function x(A,g,b){var N=A.getNodeTop(b),T=/^(P|H[0-9]*)$/;T.test(N.getNodeName())&&(g==="increase"?v.default(N,C(b)):g==="decrease"&&y.default(N,C(b)))}o.default=x},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(45));(0,d.default)(o,"__esModule",{value:!0});function p(m,v){var y=m.elems[0];if(y.style.paddingLeft==="")m.css("padding-left",v.value+v.unit);else{var E=y.style.paddingLeft,D=(0,c.default)(E).call(E,0,E.length-v.unit.length),C=Number(D)+v.value;m.css("padding-left",""+C+v.unit)}}o.default=p},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(45));(0,d.default)(o,"__esModule",{value:!0});function p(m,v){var y=m.elems[0];if(y.style.paddingLeft!==""){var E=y.style.paddingLeft,D=(0,c.default)(E).call(E,0,E.length-v.unit.length),C=Number(D)-v.value;C>0?m.css("padding-left",""+C+v.unit):m.css("padding-left","")}}o.default=p},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(38)),v=c.__importDefault(n(33)),y=c.__importDefault(n(370)),E=function(D){c.__extends(C,D);function C(x){var A=this,g=p.default(`<div class="w-e-menu" data-title="\u8868\u60C5">
<i class="w-e-icon-happy"></i>
</div>`);return A=D.call(this,g,x)||this,A}return C.prototype.createPanel=function(){var x=y.default(this.editor),A=new v.default(this,x);A.create()},C.prototype.clickHandler=function(){this.createPanel()},C.prototype.tryChangeActive=function(){},C}(m.default);o.default=E},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(26)),p=s(n(70)),m=s(n(17));(0,d.default)(o,"__esModule",{value:!0});var v=n(2),y=v.__importDefault(n(3));function E(D){var C=D.config.emotions;function x(b){var N=[];if(b.type=="image"){var T;N=(0,c.default)(T=b.content).call(T,function(k){return typeof k=="string"?"":'<span title="'+k.alt+`">
<img class="eleImg" data-emoji="`+k.alt+'" style src="'+k.src+'" alt="['+k.alt+`]">
</span>`}),N=(0,p.default)(N).call(N,function(k){return k!==""})}else{var O;N=(0,c.default)(O=b.content).call(O,function(k){return'<span class="eleImg" title="'+k+'">'+k+"</span>"})}return N.join("").replace(/ /g,"")}var A=(0,c.default)(C).call(C,function(b){return{title:D.i18next.t("menus.panelMenus.emoticon."+b.title),tpl:"<div>"+x(b)+"</div>",events:[{selector:".eleImg",type:"click",fn:function(T){var O=y.default(T.target),k=O.getNodeName(),M;if(k==="IMG"){var S;M=(0,m.default)(S=O.parent().html()).call(S)}else M="<span>"+O.html()+"</span>";return D.cmd.do("insertHTML",M),!0}}]}}),g={width:300,height:230,tabs:A};return g}o.default=E},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.createListHandle=o.ClassType=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(372)),v=c.__importDefault(n(374)),y=c.__importDefault(n(375)),E=c.__importDefault(n(376)),D=c.__importDefault(n(377)),C;(function(b){b.Wrap="WrapListHandle",b.Join="JoinListHandle",b.StartJoin="StartJoinListHandle",b.EndJoin="EndJoinListHandle",b.Other="OtherListHandle"})(C=o.ClassType||(o.ClassType={}));var x={WrapListHandle:m.default,JoinListHandle:v.default,StartJoinListHandle:y.default,EndJoinListHandle:E.default,OtherListHandle:D.default};function A(b,N,T){if(b===C.Other&&T===void 0)throw new Error("other \u7C7B\u9700\u8981\u4F20\u5165 range");return b!==C.Other?new x[b](N):new x[b](N,T)}o.createListHandle=A;var g=function(){function b(N){this.handle=N,this.handle.exec()}return b.prototype.getSelectionRangeElem=function(){return p.default(this.handle.selectionRangeElem.get())},b}();o.default=g},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(58),y=n(47),E=function(D){p.__extends(C,D);function C(x){return D.call(this,x)||this}return C.prototype.exec=function(){var x=this.options,A=x.listType,g=x.listTarget,b=x.$selectionElem,N=x.$startElem,T=x.$endElem,O,k=[],M=b==null?void 0:b.getNodeName(),S=N.prior,F=T.prior;if(!N.prior&&!T.prior||!(S!=null&&S.prev().length)&&!(F!=null&&F.next().length)){var R;(0,c.default)(R=b==null?void 0:b.children()).call(R,function(Q){k.push(m.default(Q))}),M===A?O=y.createElementFragment(k,y.createDocumentFragment(),"p"):(O=y.createElement(g),(0,c.default)(k).call(k,function(Q){O.appendChild(Q.elems[0])})),this.selectionRangeElem.set(O),y.insertBefore(b,O,b.elems[0]),b.remove()}else{for(var w=S;w.length;)k.push(w),F!=null&&F.equal(w)?w=m.default(void 0):w=w.next();var L=S.prev(),$=F.next();if(M===A?O=y.createElementFragment(k,y.createDocumentFragment(),"p"):(O=y.createElement(g),(0,c.default)(k).call(k,function(Q){O.append(Q.elems[0])})),L.length&&$.length){for(var W=[];$.length;)W.push($),$=$.next();var P=y.createElement(M);(0,c.default)(W).call(W,function(Q){P.append(Q.elems[0])}),m.default(P).insertAfter(b),this.selectionRangeElem.set(O);var U=b.next();U.length?y.insertBefore(b,O,U.elems[0]):b.parent().elems[0].append(O)}else if(!L.length)this.selectionRangeElem.set(O),y.insertBefore(b,O,b.elems[0]);else{this.selectionRangeElem.set(O);var U=b.next();U.length?y.insertBefore(b,O,U.elems[0]):b.parent().elems[0].append(O)}}},C}(v.ListHandle);o.default=E},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=function(){function m(){this._element=null}return m.prototype.set=function(v){if(v instanceof DocumentFragment){var y,E=[];(0,c.default)(y=v.childNodes).call(y,function(D){E.push(D)}),v=E}this._element=v},m.prototype.get=function(){return this._element},m.prototype.clear=function(){this._element=null},m}();o.default=p},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(58),y=n(47),E=function(D){p.__extends(C,D);function C(x){return D.call(this,x)||this}return C.prototype.exec=function(){var x,A,g,b,N,T,O,k=this.options,M=k.editor,S=k.listType,F=k.listTarget,R=k.$startElem,w=k.$endElem,L,$=M.selection.getSelectionRangeTopNodes(),W=R==null?void 0:R.getNodeName(),P=w==null?void 0:w.getNodeName();if(W===P)if($.length>2)if($.shift(),$.pop(),L=y.createElementFragment(y.filterSelectionNodes($),y.createDocumentFragment()),W===S)(x=w.children())===null||x===void 0||(0,c.default)(x).call(x,function(ue){L.append(ue)}),w.remove(),this.selectionRangeElem.set(L),R.elems[0].append(L);else{for(var U=document.createDocumentFragment(),Q=document.createDocumentFragment(),J=y.getStartPoint(R);J.length;){var ie=J.elems[0];J=J.next(),U.append(ie)}for(var B=y.getEndPoint(w),z=[];B.length;)z.unshift(B.elems[0]),B=B.prev();(0,c.default)(z).call(z,function(ue){Q.append(ue)});var G=y.createElement(F);G.append(U),G.append(L),G.append(Q),L=G,this.selectionRangeElem.set(L),m.default(G).insertAfter(R),!(!((A=R.children())===null||A===void 0)&&A.length)&&R.remove(),!(!((g=w.children())===null||g===void 0)&&g.length)&&w.remove()}else{$.length=0;for(var J=y.getStartPoint(R);J.length;)$.push(J),J=J.next();for(var B=y.getEndPoint(w),z=[];B.length;)z.unshift(B),B=B.prev();$.push.apply($,z),W===S?(L=y.createElementFragment($,y.createDocumentFragment(),"p"),this.selectionRangeElem.set(L),y.insertBefore(R,L,w.elems[0])):(L=y.createElement(F),(0,c.default)($).call($,function(te){L.append(te.elems[0])}),this.selectionRangeElem.set(L),m.default(L).insertAfter(R)),!(!((b=R.children())===null||b===void 0)&&b.length)&&w.remove(),!(!((N=w.children())===null||N===void 0)&&N.length)&&w.remove()}else{for(var Y=[],B=y.getEndPoint(w);B.length;)Y.unshift(B),B=B.prev();for(var Z=[],J=y.getStartPoint(R);J.length;)Z.push(J),J=J.next();if(L=y.createDocumentFragment(),$.shift(),$.pop(),(0,c.default)(Z).call(Z,function(le){return L.append(le.elems[0])}),L=y.createElementFragment(y.filterSelectionNodes($),L),(0,c.default)(Y).call(Y,function(le){return L.append(le.elems[0])}),this.selectionRangeElem.set(L),W===S)R.elems[0].append(L),!(!((T=w.children())===null||T===void 0)&&T.length)&&w.remove();else if(!((O=w.children())===null||O===void 0)&&O.length){var ae=w.children();y.insertBefore(ae,L,ae.elems[0])}else w.elems[0].append(L)}},C}(v.ListHandle);o.default=E},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(58),y=n(47),E=function(D){p.__extends(C,D);function C(x){return D.call(this,x)||this}return C.prototype.exec=function(){var x,A=this.options,g=A.editor,b=A.listType,N=A.listTarget,T=A.$startElem,O,k=g.selection.getSelectionRangeTopNodes(),M=T==null?void 0:T.getNodeName();k.shift();for(var S=[],F=y.getStartPoint(T);F.length;)S.push(F),F=F.next();M===b?(O=y.createDocumentFragment(),(0,c.default)(S).call(S,function(R){return O.append(R.elems[0])}),O=y.createElementFragment(y.filterSelectionNodes(k),O),this.selectionRangeElem.set(O),T.elems[0].append(O)):(O=y.createElement(N),(0,c.default)(S).call(S,function(R){return O.append(R.elems[0])}),O=y.createElementFragment(y.filterSelectionNodes(k),O),this.selectionRangeElem.set(O),m.default(O).insertAfter(T),!(!((x=T.children())===null||x===void 0)&&x.length)&&T.remove())},C}(v.ListHandle);o.default=E},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(58),y=n(47),E=function(D){p.__extends(C,D);function C(x){return D.call(this,x)||this}return C.prototype.exec=function(){var x,A,g=this.options,b=g.editor,N=g.listType,T=g.listTarget,O=g.$endElem,k,M=b.selection.getSelectionRangeTopNodes(),S=O==null?void 0:O.getNodeName();M.pop();for(var F=[],R=y.getEndPoint(O);R.length;)F.unshift(R),R=R.prev();if(S===N)if(k=y.createElementFragment(y.filterSelectionNodes(M),y.createDocumentFragment()),(0,c.default)(F).call(F,function($){return k.append($.elems[0])}),this.selectionRangeElem.set(k),!((x=O.children())===null||x===void 0)&&x.length){var w=O.children();y.insertBefore(w,k,w.elems[0])}else O.elems[0].append(k);else{var L=y.filterSelectionNodes(M);L.push.apply(L,F),k=y.createElementFragment(L,y.createElement(T)),this.selectionRangeElem.set(k),m.default(k).insertBefore(O),!(!((A=O.children())===null||A===void 0)&&A.length)&&O.remove()}},C}(v.ListHandle);o.default=E},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=n(58),m=n(47),v=function(y){c.__extends(E,y);function E(D,C){var x=y.call(this,D)||this;return x.range=C,x}return E.prototype.exec=function(){var D=this.options,C=D.editor,x=D.listTarget,A=C.selection.getSelectionRangeTopNodes(),g=m.createElementFragment(m.filterSelectionNodes(A),m.createElement(x));this.selectionRangeElem.set(g),this.range.insertNode(g)},E}(p.ListHandle);o.default=v},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(27));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(24)),y=m.__importDefault(n(3)),E=m.__importDefault(n(379)),D=function(C){m.__extends(x,C);function x(A){var g=this,b=y.default(`<div class="w-e-menu" data-title="\u884C\u9AD8">
<i class="w-e-icon-row-height"></i>
</div>`),N=new E.default(A,A.config.lineHeights),T={width:100,title:"\u8BBE\u7F6E\u884C\u9AD8",type:"list",list:N.getItemList(),clickHandler:function(k){A.selection.saveRange(),g.command(k)}};return g=C.call(this,b,A,T)||this,g}return x.prototype.command=function(A){var g=this.editor;g.selection.restoreSelection();var b=y.default(g.selection.getSelectionContainerElem());if(!!b.elems.length){if(b&&g.$textElem.equal(b)){for(var N=!1,T=y.default(g.selection.getSelectionStartElem()).elems[0],O=y.default(g.selection.getSelectionEndElem()).elems[0],k=this.getDom(T),M=this.getDom(O),S=b.elems[0].children,F=0;F<S.length;F++){var R=S[F];if(y.default(R).getNodeName()==="P"&&(R===k&&(N=!0),N&&(y.default(R).css("line-height",A),R===M))){N=!1;return}}g.selection.createRangeByElems(T,O);return}var w=b.elems[0],L=this.getDom(w);y.default(L).getNodeName()==="P"&&(y.default(L).css("line-height",A),g.selection.createRangeByElems(L,L))}},x.prototype.getDom=function(A){var g=y.default(A).elems[0];if(!g.parentNode)return g;function b(N,T){var O=y.default(N.parentNode);return T.$textElem.equal(O)?N:b(O.elems[0],T)}return g=b(g,this.editor),g},x.prototype.styleProcessing=function(A){var g="";return(0,c.default)(A).call(A,function(b){b!==""&&(0,p.default)(b).call(b,"line-height")===-1&&(g=g+b+";")}),g},x.prototype.setRange=function(A,g){var b=this.editor,N=window.getSelection?window.getSelection():document.getSelection();N==null||N.removeAllRanges();var T=document.createRange(),O=A,k=g;T.setStart(O,0),T.setEnd(k,1),N==null||N.addRange(T),b.selection.saveRange(),N==null||N.removeAllRanges(),b.selection.restoreSelection()},x.prototype.tryChangeActive=function(){var A=this.editor,g=A.selection.getSelectionContainerElem();if(!(g&&A.$textElem.equal(g))){var b=y.default(A.selection.getSelectionStartElem());if(b.length!==0){b=this.getDom(b.elems[0]);var N=b.getAttribute("style")?b.getAttribute("style"):"";N&&(0,p.default)(N).call(N,"line-height")!==-1?this.active():this.unActive()}}},x}(v.default);o.default=D},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=function(){function y(E,D){var C=this;this.itemList=[{$elem:m.default("<span>"+E.i18next.t("\u9ED8\u8BA4")+"</span>"),value:""}],(0,c.default)(D).call(D,function(x){C.itemList.push({$elem:m.default("<span>"+x+"</span>"),value:x})})}return y.prototype.getItemList=function(){return this.itemList},y}();o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(23)),v=function(y){c.__extends(E,y);function E(D){var C=this,x=p.default(`<div class="w-e-menu" data-title="\u64A4\u9500">
<i class="w-e-icon-undo"></i>
</div>`);return C=y.call(this,x,D)||this,C}return E.prototype.clickHandler=function(){var D=this.editor;D.history.revoke();var C=D.$textElem.children();if(!!(C!=null&&C.length)){var x=C.last();D.selection.createRangeByElem(x,!1,!0),D.selection.restoreSelection()}},E.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[0]?this.active():this.unActive())},E}(m.default);o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(23)),v=function(y){c.__extends(E,y);function E(D){var C=this,x=p.default(`<div class="w-e-menu" data-title="\u6062\u590D">
<i class="w-e-icon-redo"></i>
</div>`);return C=y.call(this,x,D)||this,C}return E.prototype.clickHandler=function(){var D=this.editor;D.history.restore();var C=D.$textElem.children();if(!!(C!=null&&C.length)){var x=C.last();D.selection.createRangeByElem(x,!1,!0),D.selection.restoreSelection()}},E.prototype.tryChangeActive=function(){this.editor.isCompatibleMode||(this.editor.history.size[1]?this.active():this.unActive())},E}(m.default);o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(38)),m=c.__importDefault(n(3)),v=c.__importDefault(n(383)),y=c.__importDefault(n(33)),E=c.__importDefault(n(392)),D=function(C){c.__extends(x,C);function x(A){var g=this,b=m.default('<div class="w-e-menu" data-title="\u8868\u683C"><i class="w-e-icon-table2"></i></div>');return g=C.call(this,b,A)||this,E.default(A),g}return x.prototype.clickHandler=function(){this.createPanel()},x.prototype.createPanel=function(){var A=v.default(this.editor),g=new y.default(this,A);g.create()},x.prototype.tryChangeActive=function(){},x}(p.default);o.default=D},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(384));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=n(6),v=p.__importDefault(n(3));n(389);var y=p.__importDefault(n(391));function E(C){return C>0&&(0,c.default)(C)}function D(C){var x=new y.default(C),A=m.getRandom("w-col-id"),g=m.getRandom("w-row-id"),b=m.getRandom("btn-link"),N="menus.panelMenus.table.",T=function(S){return C.i18next.t(S)},O=[{title:T(N+"\u63D2\u5165\u8868\u683C"),tpl:`<div>
<div class="w-e-table">
<span>`+T("\u521B\u5EFA")+`</span>
<input id="`+g+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+T(N+"\u884C")+`</span>
<input id="`+A+`" type="text" class="w-e-table-input" value="5"/></td>
<span>`+(T(N+"\u5217")+T(N+"\u7684")+T(N+"\u8868\u683C"))+`</span>
</div>
<div class="w-e-button-container">
<button type="button" id="`+b+'" class="right">'+T("\u63D2\u5165")+`</button>
</div>
</div>`,events:[{selector:"#"+b,type:"click",fn:function(){var S=Number(v.default("#"+A).val()),F=Number(v.default("#"+g).val());return E(F)&&E(S)?(x.createAction(F,S),!0):(C.config.customAlert("\u8868\u683C\u884C\u5217\u8BF7\u8F93\u5165\u6B63\u6574\u6570","warning"),!1)},bindEnter:!0}]}],k={width:330,height:0,tabs:[]};return k.tabs.push(O[0]),k}o.default=D},function(a,o,n){a.exports=n(385)},function(a,o,n){var s=n(386);a.exports=s},function(a,o,n){n(387);var s=n(9);a.exports=s.Number.isInteger},function(a,o,n){var s=n(5),d=n(388);s({target:"Number",stat:!0},{isInteger:d})},function(a,o,n){var s=n(13),d=Math.floor;a.exports=function(p){return!s(p)&&isFinite(p)&&d(p)===p}},function(a,o,n){var s=n(20),d=n(390);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-table {
display: flex;
}
.w-e-table .w-e-table-input {
width: 40px;
text-align: center!important;
margin: 0 5px;
}
`,""]),a.exports=o},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=n(7),m=c.__importDefault(n(3)),v=function(){function y(E){this.editor=E}return y.prototype.createAction=function(E,D){var C=this.editor,x=m.default(C.selection.getSelectionContainerElem()),A=m.default(x.elems[0]).parentUntilEditor("UL",C),g=m.default(x.elems[0]).parentUntilEditor("OL",C);if(!(A||g)){var b=this.createTableHtml(E,D);C.cmd.do("insertHTML",b)}},y.prototype.createTableHtml=function(E,D){for(var C="",x="",A=0;A<E;A++){x="";for(var g=0;g<D;g++)A===0?x=x+"<th></th>":x=x+"<td></td>";C=C+"<tr>"+x+"</tr>"}var b='<table border="0" width="100%" cellpadding="0" cellspacing="0"><tbody>'+C+("</tbody></table>"+p.EMPTY_P);return b},y}();o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(393)),m=n(400);function v(y){p.default(y),m.bindEventKeyboardEvent(y),m.bindClickEvent(y)}o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39)),v=c.__importDefault(n(394)),y=c.__importDefault(n(399)),E=n(7);function D(g){var b;function N(O){var k=new y.default(g),M="menus.panelMenus.table.",S=function(w,L){return L===void 0&&(L=M),g.i18next.t(L+w)},F=[{$elem:p.default("<span>"+S("\u5220\u9664\u8868\u683C")+"</span>"),onClick:function(w,L){return w.selection.createRangeByElem(L),w.selection.restoreSelection(),w.cmd.do("insertHTML",E.EMPTY_P),!0}},{$elem:p.default("<span>"+S("\u6DFB\u52A0\u884C")+"</span>"),onClick:function(w,L){var $=C(w);if($)return!0;var W=p.default(w.selection.getSelectionStartElem()),P=k.getRowNode(W.elems[0]);if(!P)return!0;var U=Number(k.getCurrentRowIndex(L.elems[0],P)),Q=k.getTableHtml(L.elems[0]),J=k.getTableHtml(v.default.ProcessingRow(p.default(Q),U).elems[0]);return J=A(L,J),w.selection.createRangeByElem(L),w.selection.restoreSelection(),w.cmd.do("insertHTML",J),!0}},{$elem:p.default("<span>"+S("\u5220\u9664\u884C")+"</span>"),onClick:function(w,L){var $=C(w);if($)return!0;var W=p.default(w.selection.getSelectionStartElem()),P=k.getRowNode(W.elems[0]);if(!P)return!0;var U=Number(k.getCurrentRowIndex(L.elems[0],P)),Q=k.getTableHtml(L.elems[0]),J=v.default.DeleteRow(p.default(Q),U).elems[0].children[0].children.length,ie="";return w.selection.createRangeByElem(L),w.selection.restoreSelection(),J===0?ie=E.EMPTY_P:ie=k.getTableHtml(v.default.DeleteRow(p.default(Q),U).elems[0]),ie=A(L,ie),w.cmd.do("insertHTML",ie),!0}},{$elem:p.default("<span>"+S("\u6DFB\u52A0\u5217")+"</span>"),onClick:function(w,L){var $=C(w);if($)return!0;var W=p.default(w.selection.getSelectionStartElem()),P=k.getCurrentColIndex(W.elems[0]),U=k.getTableHtml(L.elems[0]),Q=k.getTableHtml(v.default.ProcessingCol(p.default(U),P).elems[0]);return Q=A(L,Q),w.selection.createRangeByElem(L),w.selection.restoreSelection(),w.cmd.do("insertHTML",Q),!0}},{$elem:p.default("<span>"+S("\u5220\u9664\u5217")+"</span>"),onClick:function(w,L){var $=C(w);if($)return!0;var W=p.default(w.selection.getSelectionStartElem()),P=k.getCurrentColIndex(W.elems[0]),U=k.getTableHtml(L.elems[0]),Q=v.default.DeleteCol(p.default(U),P),J=Q.elems[0].children[0].children[0].children.length,ie="";return w.selection.createRangeByElem(L),w.selection.restoreSelection(),J===0?ie=E.EMPTY_P:ie=k.getTableHtml(Q.elems[0]),ie=A(L,ie),w.cmd.do("insertHTML",ie),!0}},{$elem:p.default("<span>"+S("\u8BBE\u7F6E\u8868\u5934")+"</span>"),onClick:function(w,L){var $=C(w);if($)return!0;var W=p.default(w.selection.getSelectionStartElem()),P=k.getRowNode(W.elems[0]);if(!P)return!0;var U=Number(k.getCurrentRowIndex(L.elems[0],P));U!==0&&(U=0);var Q=k.getTableHtml(L.elems[0]),J=k.getTableHtml(v.default.setTheHeader(p.default(Q),U,"th").elems[0]);return J=A(L,J),w.selection.createRangeByElem(L),w.selection.restoreSelection(),w.cmd.do("insertHTML",J),!0}},{$elem:p.default("<span>"+S("\u53D6\u6D88\u8868\u5934")+"</span>"),onClick:function(w,L){var $=p.default(w.selection.getSelectionStartElem()),W=k.getRowNode($.elems[0]);if(!W)return!0;var P=Number(k.getCurrentRowIndex(L.elems[0],W));P!==0&&(P=0);var U=k.getTableHtml(L.elems[0]),Q=k.getTableHtml(v.default.setTheHeader(p.default(U),P,"td").elems[0]);return Q=A(L,Q),w.selection.createRangeByElem(L),w.selection.restoreSelection(),w.cmd.do("insertHTML",Q),!0}}];b=new m.default(g,O,F),b.create()}function T(){b&&(b.remove(),b=null)}return{showTableTooltip:N,hideTableTooltip:T}}function C(g){var b=g.selection.getSelectionStartElem(),N=g.selection.getSelectionEndElem();return(b==null?void 0:b.elems[0])!==(N==null?void 0:N.elems[0])}function x(g){var b=D(g),N=b.showTableTooltip,T=b.hideTableTooltip;g.txt.eventHooks.tableClickEvents.push(N),g.txt.eventHooks.clickEvents.push(T),g.txt.eventHooks.keyupEvents.push(T),g.txt.eventHooks.toolbarClickEvents.push(T),g.txt.eventHooks.menuClickEvents.push(T),g.txt.eventHooks.textScrollEvents.push(T)}o.default=x;function A(g,b){var N=g.elems[0].nextSibling;return(!N||N.innerHTML==="<br>")&&(b+=""+E.EMPTY_P),b}},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(45)),p=s(n(91)),m=s(n(4)),v=s(n(138));(0,d.default)(o,"__esModule",{value:!0});var y=n(2),E=y.__importDefault(n(3));function D(T,O){for(var k=N(T),M=(0,c.default)(Array.prototype).apply(k.children),S=M[0].children.length,F=document.createElement("tr"),R=0;R<S;R++){var w=document.createElement("td");F.appendChild(w)}return(0,p.default)(M).call(M,O+1,0,F),b(k,M),E.default(k.parentNode)}function C(T,O){for(var k=N(T),M=(0,c.default)(Array.prototype).apply(k.children),S=function(w){var L,$=[];for((0,m.default)(L=(0,v.default)(M[w].children)).call(L,function(U){$.push(U)});M[w].children.length!==0;)M[w].removeChild(M[w].children[0]);var W=E.default($[0]).getNodeName()!=="TH"?document.createElement("td"):document.createElement("th");(0,p.default)($).call($,O+1,0,W);for(var P=0;P<$.length;P++)M[w].appendChild($[P])},F=0;F<M.length;F++)S(F);return b(k,M),E.default(k.parentNode)}function x(T,O){var k=N(T),M=(0,c.default)(Array.prototype).apply(k.children);return(0,p.default)(M).call(M,O,1),b(k,M),E.default(k.parentNode)}function A(T,O){for(var k=N(T),M=(0,c.default)(Array.prototype).apply(k.children),S=function(w){var L,$=[];for((0,m.default)(L=(0,v.default)(M[w].children)).call(L,function(P){$.push(P)});M[w].children.length!==0;)M[w].removeChild(M[w].children[0]);(0,p.default)($).call($,O,1);for(var W=0;W<$.length;W++)M[w].appendChild($[W])},F=0;F<M.length;F++)S(F);return b(k,M),E.default(k.parentNode)}function g(T,O,k){for(var M=N(T),S=(0,c.default)(Array.prototype).apply(M.children),F=S[O].children,R=document.createElement("tr"),w=function(W){var P,U=document.createElement(k),Q=F[W];(0,m.default)(P=(0,v.default)(Q.childNodes)).call(P,function(J){U.appendChild(J)}),R.appendChild(U)},L=0;L<F.length;L++)w(L);return(0,p.default)(S).call(S,O,1,R),b(M,S),E.default(M.parentNode)}function b(T,O){for(;T.children.length!==0;)T.removeChild(T.children[0]);for(var k=0;k<O.length;k++)T.appendChild(O[k])}function N(T){var O=T.elems[0].children[0];return O.nodeName==="COLGROUP"&&(O=T.elems[0].children[T.elems[0].children.length-1]),O}o.default={ProcessingRow:D,ProcessingCol:C,DeleteRow:x,DeleteCol:A,setTheHeader:g}},function(a,o,n){var s=n(396);a.exports=s},function(a,o,n){n(50),n(397);var s=n(9);a.exports=s.Array.from},function(a,o,n){var s=n(5),d=n(398),c=n(115),p=!c(function(m){Array.from(m)});s({target:"Array",stat:!0,forced:p},{from:d})},function(a,o,n){var s=n(40),d=n(31),c=n(114),p=n(112),m=n(35),v=n(69),y=n(113);a.exports=function(D){var C=d(D),x=typeof this=="function"?this:Array,A=arguments.length,g=A>1?arguments[1]:void 0,b=g!==void 0,N=y(C),T=0,O,k,M,S,F,R;if(b&&(g=s(g,A>2?arguments[2]:void 0,2)),N!=null&&!(x==Array&&p(N)))for(S=N.call(C),F=S.next,k=new x;!(M=F.call(S)).done;T++)R=b?c(S,g,[M.value,T],!0):M.value,v(k,T,R);else for(O=m(C.length),k=new x(O);O>T;T++)R=b?g(C[T],T):C[T],v(k,T,R);return k.length=T,k}},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(138));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(3)),y=function(){function E(D){this.editor=D}return E.prototype.getRowNode=function(D){var C,x=v.default(D).elems[0];return x.parentNode&&(x=(C=v.default(x).parentUntil("TR",x))===null||C===void 0?void 0:C.elems[0]),x},E.prototype.getCurrentRowIndex=function(D,C){var x,A=0,g=D.children[0];return g.nodeName==="COLGROUP"&&(g=D.children[D.children.length-1]),(0,c.default)(x=(0,p.default)(g.children)).call(x,function(b,N){b===C&&(A=N)}),A},E.prototype.getCurrentColIndex=function(D){var C,x,A=0,g=v.default(D).getNodeName()==="TD"||v.default(D).getNodeName()==="TH"?D:(x=v.default(D).parentUntil("TD",D))===null||x===void 0?void 0:x.elems[0],b=v.default(g).parent();return(0,c.default)(C=(0,p.default)(b.elems[0].children)).call(C,function(N,T){N===g&&(A=T)}),A},E.prototype.getTableHtml=function(D){var C='<table border="0" width="100%" cellpadding="0" cellspacing="0">'+v.default(D).html()+"</table>";return C},E}();o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.bindEventKeyboardEvent=o.bindClickEvent=void 0;var c=n(2),p=c.__importDefault(n(3));function m(E){if(!E.length)return!1;var D=E.elems[0];return D.nodeName==="P"&&D.innerHTML==="<br>"}function v(E){function D(C,x){if(x.detail>=3){var A=window.getSelection();if(A){var g=A.focusNode,b=A.anchorNode,N=p.default(b==null?void 0:b.parentElement);if(!C.isContain(p.default(g))){var T=N.elems[0].tagName==="TD"?N:N.parentUntilEditor("td",E);if(T){var O=E.selection.getRange();O==null||O.setEnd(T.elems[0],T.elems[0].childNodes.length),E.selection.restoreSelection()}}}}}E.txt.eventHooks.tableClickEvents.push(D)}o.bindClickEvent=v;function y(E){var D=E.txt,C=E.selection,x=D.eventHooks.keydownEvents;x.push(function(A){E.selection.saveRange();var g=C.getSelectionContainerElem();if(g){var b=g.getNodeTop(E),N=b.length&&b.prev().length?b.prev():null;if(N&&N.getNodeName()==="TABLE"&&C.isSelectionEmpty()&&C.getCursorPos()===0&&A.keyCode===8){var T=b.next(),O=!!T.length;O&&m(b)&&(b.remove(),E.selection.setRangeToElem(T.elems[0])),A.preventDefault()}}})}o.bindEventKeyboardEvent=y},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(26));(0,d.default)(o,"__esModule",{value:!0}),o.formatCodeHtml=void 0;var p=n(2),m=p.__importDefault(n(38)),v=p.__importDefault(n(3)),y=n(6),E=p.__importDefault(n(402)),D=p.__importDefault(n(139)),C=p.__importDefault(n(33)),x=p.__importDefault(n(403));function A(b,N){if(!N)return N;return N=O(N),N=T(N),N=y.replaceSpecialSymbol(N),N;function T(k){var M=k.match(/<pre[\s|\S]+?\/pre>/g);return M===null||(0,c.default)(M).call(M,function(S){k=k.replace(S,S.replace(/<\/code><code>/g,`
`).replace(/<br>/g,""))}),k}function O(k){var M,S=k.match(/<span\sclass="hljs[\s|\S]+?\/span>/gm);if(!S||!S.length)return k;for(var F=(0,c.default)(M=y.deepClone(S)).call(M,function(w){return w=w.replace(/<span\sclass="hljs[^>]+>/,""),w.replace(/<\/span>/,"")}),R=0;R<S.length;R++)k=k.replace(S[R],F[R]);return O(k)}}o.formatCodeHtml=A;var g=function(b){p.__extends(N,b);function N(T){var O=this,k=v.default('<div class="w-e-menu" data-title="\u4EE3\u7801"><i class="w-e-icon-terminal"></i></div>');return O=b.call(this,k,T)||this,x.default(T),O}return N.prototype.insertLineCode=function(T){var O=this.editor,k=v.default("<code>"+T+"</code>");O.cmd.do("insertElem",k),O.selection.createRangeByElem(k,!1),O.selection.restoreSelection()},N.prototype.clickHandler=function(){var T=this.editor,O=T.selection.getSelectionText();this.isActive||(T.selection.isSelectionEmpty()?this.createPanel("",""):this.insertLineCode(O))},N.prototype.createPanel=function(T,O){var k=E.default(this.editor,T,O),M=new C.default(this,k);M.create()},N.prototype.tryChangeActive=function(){var T=this.editor;D.default(T)?this.active():this.unActive()},N}(m.default);o.default=g},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(26));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=n(6),v=p.__importDefault(n(3)),y=p.__importDefault(n(139)),E=n(7);function D(C,x,A){var g,b=m.getRandom("input-iframe"),N=m.getRandom("select"),T=m.getRandom("btn-ok");function O(F,R){var w,L=y.default(C);L&&k();var $=(w=C.selection.getSelectionStartElem())===null||w===void 0?void 0:w.elems[0].innerHTML;$&&C.cmd.do("insertHTML",E.EMPTY_P);var W=R.replace(/</g,"<").replace(/>/g,">");C.highlight&&(W=C.highlight.highlightAuto(W).value),C.cmd.do("insertHTML",'<pre><code class="'+F+'">'+W+"</code></pre>");var P=C.selection.getSelectionStartElem(),U=P==null?void 0:P.getNodeTop(C);(U==null?void 0:U.getNextSibling().elems.length)===0&&v.default(E.EMPTY_P).insertAfter(U)}function k(){if(!!y.default(C)){var F=C.selection.getSelectionStartElem(),R=F==null?void 0:F.getNodeTop(C);!R||(C.selection.createRangeByElem(R),C.selection.restoreSelection())}}var M=function(R){return C.i18next.t(R)},S={width:500,height:0,tabs:[{title:M("menus.panelMenus.code.\u63D2\u5165\u4EE3\u7801"),tpl:`<div>
<select name="" id="`+N+`">
`+(0,c.default)(g=C.config.languageType).call(g,function(F){return"<option "+(A==F?"selected":"")+' value ="'+F+'">'+F+"</option>"})+`
</select>
<textarea id="`+b+'" type="text" class="wang-code-textarea" placeholder="" style="height: 160px">'+x.replace(/"/g,'"')+`</textarea>
<div class="w-e-button-container">
<button type="button" id="`+T+'" class="right">'+(y.default(C)?M("\u4FEE\u6539"):M("\u63D2\u5165"))+`</button>
</div>
</div>`,events:[{selector:"#"+T,type:"click",fn:function(){var R=document.getElementById(b),w=v.default("#"+N),L=w.val(),$=R.value;if(!!$)return y.default(C)?!1:(O(L,$),!0)}}]}]};return S}o.default=D},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(404)),m=c.__importDefault(n(405));function v(y){p.default(y),m.default(y)}o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.createShowHideFn=void 0;var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39));function v(E){var D;function C(A){var g="menus.panelMenus.code.",b=function(O,k){return k===void 0&&(k=g),E.i18next.t(k+O)},N=[{$elem:p.default("<span>"+b("\u5220\u9664\u4EE3\u7801")+"</span>"),onClick:function(O,k){return k.remove(),!0}}];D=new m.default(E,A,N),D.create()}function x(){D&&(D.remove(),D=null)}return{showCodeTooltip:C,hideCodeTooltip:x}}o.createShowHideFn=v;function y(E){var D=v(E),C=D.showCodeTooltip,x=D.hideCodeTooltip;E.txt.eventHooks.codeClickEvents.push(C),E.txt.eventHooks.clickEvents.push(x),E.txt.eventHooks.toolbarClickEvents.push(x),E.txt.eventHooks.menuClickEvents.push(x),E.txt.eventHooks.textScrollEvents.push(x)}o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=n(7),m=c.__importDefault(n(3));function v(y){var E=y.$textElem,D=y.selection,C=y.txt,x=C.eventHooks.keydownEvents;x.push(function(A){var g;if(A.keyCode===40){var b=D.getSelectionContainerElem(),N=(g=E.children())===null||g===void 0?void 0:g.last();if((b==null?void 0:b.elems[0].tagName)==="XMP"&&(N==null?void 0:N.elems[0].tagName)==="PRE"){var T=m.default(p.EMPTY_P);E.append(T)}}}),x.push(function(A){y.selection.saveRange();var g=D.getSelectionContainerElem();if(g){var b=g.getNodeTop(y),N=b==null?void 0:b.prev(),T=b==null?void 0:b.getNextSibling();if(N.length&&(N==null?void 0:N.getNodeName())==="PRE"&&T.length===0&&D.getCursorPos()===0&&A.keyCode===8){var O=m.default(p.EMPTY_P);E.append(O)}}})}o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(23)),m=c.__importDefault(n(3)),v=c.__importDefault(n(407)),y=n(6),E=n(7),D=function(C){c.__extends(x,C);function x(A){var g=this,b=m.default('<div class="w-e-menu" data-title="\u5206\u5272\u7EBF"><i class="w-e-icon-split-line"></i></div>');return g=C.call(this,b,A)||this,v.default(A),g}return x.prototype.clickHandler=function(){var A=this.editor,g=A.selection.getRange(),b=A.selection.getSelectionContainerElem();if(!!(b!=null&&b.length)){var N=m.default(b.elems[0]),T=N.parentUntil("TABLE",b.elems[0]),O=N.children();N.getNodeName()!=="CODE"&&(T&&m.default(T.elems[0]).getNodeName()==="TABLE"||O&&O.length!==0&&m.default(O.elems[0]).getNodeName()==="IMG"&&!(g!=null&&g.collapsed)||this.createSplitLine())}},x.prototype.createSplitLine=function(){var A="<hr/>"+E.EMPTY_P;y.UA.isFirefox&&(A="<hr/><p></p>"),this.editor.cmd.do("insertHTML",A)},x.prototype.tryChangeActive=function(){},x}(p.default);o.default=D},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(408));function m(v){p.default(v)}o.default=m},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=c.__importDefault(n(39));function v(E){var D;function C(A){var g=[{$elem:p.default("<span>"+E.i18next.t("menus.panelMenus.\u5220\u9664")+"</span>"),onClick:function(N,T){return N.selection.createRangeByElem(T),N.selection.restoreSelection(),N.cmd.do("delete"),!0}}];D=new m.default(E,A,g),D.create()}function x(){D&&(D.remove(),D=null)}return{showSplitLineTooltip:C,hideSplitLineTooltip:x}}function y(E){var D=v(E),C=D.showSplitLineTooltip,x=D.hideSplitLineTooltip;E.txt.eventHooks.splitLineEvents.push(C),E.txt.eventHooks.clickEvents.push(x),E.txt.eventHooks.keyupEvents.push(x),E.txt.eventHooks.toolbarClickEvents.push(x),E.txt.eventHooks.menuClickEvents.push(x),E.txt.eventHooks.textScrollEvents.push(x)}o.default=y},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=p.__importDefault(n(23)),y=n(98),E=p.__importDefault(n(415)),D=p.__importDefault(n(140)),C=function(x){p.__extends(A,x);function A(g){var b=this,N=m.default(`<div class="w-e-menu" data-title="\u5F85\u529E\u4E8B\u9879">
<i class="w-e-icon-checkbox-checked"></i>
</div>`);return b=x.call(this,N,g)||this,E.default(g),b}return A.prototype.clickHandler=function(){var g=this.editor;y.isAllTodo(g)?(this.cancelTodo(),this.tryChangeActive()):this.setTodo()},A.prototype.tryChangeActive=function(){y.isAllTodo(this.editor)?this.active():this.unActive()},A.prototype.setTodo=function(){var g=this.editor,b=g.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(N){var T,O=N==null?void 0:N.getNodeName();if(O==="P"){var k=D.default(N),M=k.getTodo(),S=(T=M.children())===null||T===void 0?void 0:T.getNode();M.insertAfter(N),g.selection.moveCursor(S),N.remove()}}),this.tryChangeActive()},A.prototype.cancelTodo=function(){var g=this.editor,b=g.selection.getSelectionRangeTopNodes();(0,c.default)(b).call(b,function(N){var T,O,k,M=(O=(T=N.childNodes())===null||T===void 0?void 0:T.childNodes())===null||O===void 0?void 0:O.clone(!0),S=m.default("<p></p>");S.append(M),S.insertAfter(N),(k=S.childNodes())===null||k===void 0||k.get(0).remove(),g.selection.moveCursor(S.getNode()),N.remove()})},A}(v.default);o.default=C},function(a,o,n){a.exports=n(411)},function(a,o,n){var s=n(412);a.exports=s},function(a,o,n){var s=n(413),d=Array.prototype;a.exports=function(c){var p=c.every;return c===d||c instanceof Array&&p===d.every?s:p}},function(a,o,n){n(414);var s=n(15);a.exports=s("Array").every},function(a,o,n){var s=n(5),d=n(32).every,c=n(67),p=n(22),m=c("every"),v=p("every");s({target:"Array",proto:!0,forced:!m||!v},{every:function(E){return d(this,E,arguments.length>1?arguments[1]:void 0)}})},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3)),v=n(98),y=p.__importDefault(n(140)),E=n(98),D=n(7);function C(x){function A(T){var O,k;if(v.isAllTodo(x)){T.preventDefault();var M=x.selection,S=M.getSelectionRangeTopNodes()[0],F=(O=S.childNodes())===null||O===void 0?void 0:O.get(0),R=(k=window.getSelection())===null||k===void 0?void 0:k.anchorNode,w=M.getRange();if(!(w!=null&&w.collapsed)){var L=w==null?void 0:w.commonAncestorContainer.childNodes,$=w==null?void 0:w.startContainer,W=w==null?void 0:w.endContainer,P=w==null?void 0:w.startOffset,U=w==null?void 0:w.endOffset,Q=0,J=0,ie=[];L==null||(0,c.default)(L).call(L,function(te,pe){te.contains($)&&(Q=pe),te.contains(W)&&(J=pe)}),J-Q>1&&(L==null||(0,c.default)(L).call(L,function(te,pe){pe<=Q||pe>=J||ie.push(te)}),(0,c.default)(ie).call(ie,function(te){te.remove()})),E.dealTextNode($,P),E.dealTextNode(W,U,!1),x.selection.moveCursor(W,0)}if(S.text()===""){var B=m.default(D.EMPTY_P);B.insertAfter(S),M.moveCursor(B.getNode()),S.remove();return}var z=M.getCursorPos(),G=v.getCursorNextNode(F==null?void 0:F.getNode(),R,z),Y=y.default(m.default(G)),Z=Y.getInputContainer(),ae=Z.parent().getNode(),ue=Y.getTodo(),se=Z.getNode().nextSibling;if((F==null?void 0:F.text())===""&&(F==null||F.append(m.default("<br>"))),ue.insertAfter(S),!se||(se==null?void 0:se.textContent)===""){if((se==null?void 0:se.nodeName)!=="BR"){var le=m.default("<br>");le.insertAfter(Z)}M.moveCursor(ae,1)}else M.moveCursor(ae)}}function g(T){var O,k;if(v.isAllTodo(x)){var M=x.selection,S=M.getSelectionRangeTopNodes()[0],F=(O=S.childNodes())===null||O===void 0?void 0:O.getNode(),R=m.default("<p></p>"),w=R.getNode(),L=(k=window.getSelection())===null||k===void 0?void 0:k.anchorNode,$=M.getCursorPos(),W=L.previousSibling;if(S.text()===""){T.preventDefault();var P=m.default(D.EMPTY_P);P.insertAfter(S),S.remove(),M.moveCursor(P.getNode(),0);return}if((W==null?void 0:W.nodeName)==="SPAN"&&W.childNodes[0].nodeName==="INPUT"&&$===0){var U;T.preventDefault(),F==null||(0,c.default)(U=F.childNodes).call(U,function(Q,J){J!==0&&w.appendChild(Q.cloneNode(!0))}),R.insertAfter(S),S.remove()}}}function b(){var T=x.selection,O=T.getSelectionRangeTopNodes()[0];O&&E.isTodo(O)&&O.text()===""&&(m.default(D.EMPTY_P).insertAfter(O),O.remove())}function N(T){T&&T.target instanceof HTMLInputElement&&T.target.type==="checkbox"&&(T.target.checked?T.target.setAttribute("checked","true"):T.target.removeAttribute("checked"))}x.txt.eventHooks.enterDownEvents.push(A),x.txt.eventHooks.deleteUpEvents.push(b),x.txt.eventHooks.deleteDownEvents.push(g),x.txt.eventHooks.clickEvents.push(N)}o.default=C},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.selectorValidator=void 0;var c=n(2),p=c.__importDefault(n(3)),m=n(6),v=n(7),y=c.__importDefault(n(130)),E={border:"1px solid #c9d8db",toolbarBgColor:"#FFF",toolbarBottomBorder:"1px solid #EEE"};function D(x){var A=x.toolbarSelector,g=p.default(A),b=x.textSelector,N=x.config,T=N.height,O=x.i18next,k=p.default("<div></div>"),M=p.default("<div></div>"),S,F,R=null;b==null?(F=g.children(),g.append(k).append(M),k.css("background-color",E.toolbarBgColor).css("border",E.border).css("border-bottom",E.toolbarBottomBorder),M.css("border",E.border).css("border-top","none").css("height",T+"px")):(g.append(k),R=p.default(b).children(),p.default(b).append(M),F=M.children()),S=p.default("<div></div>"),S.attr("contenteditable","true").css("width","100%").css("height","100%");var w,L=x.config.placeholder;L!==y.default.placeholder?w=p.default("<div>"+L+"</div>"):w=p.default("<div>"+O.t(L)+"</div>"),w.addClass("placeholder"),F&&F.length?(S.append(F),w.hide()):S.append(p.default(v.EMPTY_P)),R&&R.length&&(S.append(R),w.hide()),M.append(S),M.append(w),k.addClass("w-e-toolbar").css("z-index",x.zIndex.get("toolbar")),M.addClass("w-e-text-container"),M.css("z-index",x.zIndex.get()),S.addClass("w-e-text");var $=m.getRandom("toolbar-elem");k.attr("id",$);var W=m.getRandom("text-elem");S.attr("id",W);var P=M.getBoundingClientRect().height,U=S.getBoundingClientRect().height;P!==U&&S.css("min-height",P+"px"),x.$toolbarElem=k,x.$textContainerElem=M,x.$textElem=S,x.toolbarElemId=$,x.textElemId=W}o.default=D;function C(x){var A="data-we-id",g=/^wangEditor-\d+$/,b=x.textSelector,N=x.toolbarSelector,T={bar:p.default("<div></div>"),text:p.default("<div></div>")};if(N==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(T.bar=p.default(N),!T.bar.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+N);if(g.test(T.bar.attr(A)))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(b){if(T.text=p.default(b),!T.text.elems.length)throw new Error("\u65E0\u6548\u7684\u8282\u70B9\u9009\u62E9\u5668\uFF1A"+b);if(g.test(T.text.attr(A)))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")}T.bar.attr(A,x.id),T.text.attr(A,x.id),x.beforeDestroy(function(){T.bar.removeAttr(A),T.text.removeAttr(A)})}o.selectorValidator=C},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(3)),m=n(7);function v(y,E){var D=y.$textElem,C=D.children();if(!C||!C.length){D.append(p.default(m.EMPTY_P)),v(y);return}var x=C.last();if(E){var A=x.html().toLowerCase(),g=x.getNodeName();if(A!=="<br>"&&A!=="<br/>"||g!=="P"){D.append(p.default(m.EMPTY_P)),v(y);return}}y.selection.createRangeByElem(x,!1,!0),y.config.focus?y.selection.restoreSelection():y.selection.clearWindowSelectionRange()}o.default=v},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3));function v(A){y(A),E(A),D(A)}function y(A){A.txt.eventHooks.changeEvents.push(function(){var g=A.config.onchange;if(g){var b=A.txt.html()||"";A.isFocus=!0,g(b)}A.txt.togglePlaceholder()})}function E(A){A.isFocus=!1;function g(b){var N=b.target,T=m.default(N),O=A.$textElem,k=A.$toolbarElem,M=O.isContain(T),S=k.isContain(T),F=k.elems[0]==b.target;if(M)A.isFocus||x(A),A.isFocus=!0;else{if(S&&!F||!A.isFocus)return;C(A),A.isFocus=!1}}document.activeElement===A.$textElem.elems[0]&&A.config.focus&&(x(A),A.isFocus=!0),m.default(document).on("click",g),A.beforeDestroy(function(){m.default(document).off("click",g)})}function D(A){A.$textElem.on("compositionstart",function(){A.isComposing=!0,A.txt.togglePlaceholder()}).on("compositionend",function(){A.isComposing=!1,A.txt.togglePlaceholder()})}function C(A){var g,b=A.config,N=b.onblur,T=A.txt.html()||"";(0,c.default)(g=A.txt.eventHooks.onBlurEvents).call(g,function(O){return O()}),N(T)}function x(A){var g=A.config,b=g.onfocus,N=A.txt.html()||"";b(N)}o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});function c(p){var m=p.config,v=m.lang,y=m.languages;if(p.i18next!=null){try{p.i18next.init({ns:"wangEditor",lng:v,defaultNS:"wangEditor",resources:y})}catch(E){throw new Error("i18next:"+E)}return}p.i18next={t:function(D){var C=D.split(".");return C[C.length-1]}}}o.default=c},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(29));(0,d.default)(o,"__esModule",{value:!0}),o.setUnFullScreen=o.setFullScreen=void 0;var p=n(2),m=p.__importDefault(n(3));n(421);var v="w-e-icon-fullscreen",y="w-e-icon-fullscreen_exit",E="w-e-full-screen-editor";o.setFullScreen=function(C){var x=m.default(C.toolbarSelector),A=C.$textContainerElem,g=C.$toolbarElem,b=(0,c.default)(g).call(g,"i."+v),N=C.config;b.removeClass(v),b.addClass(y),x.addClass(E),x.css("z-index",N.zIndexFullScreen);var T=g.getBoundingClientRect();A.css("height","calc(100% - "+T.height+"px)")},o.setUnFullScreen=function(C){var x=m.default(C.toolbarSelector),A=C.$textContainerElem,g=C.$toolbarElem,b=(0,c.default)(g).call(g,"i."+y),N=C.config;b.removeClass(y),b.addClass(v),x.removeClass(E),x.css("z-index","auto"),A.css("height",N.height+"px")};var D=function(x){if(!x.textSelector&&!!x.config.showFullScreen){var A=x.$toolbarElem,g=m.default(`<div class="w-e-menu" data-title="\u5168\u5C4F">
<i class="`+v+`"></i>
</div>`);g.on("click",function(b){var N,T=(0,c.default)(N=m.default(b.currentTarget)).call(N,"i");T.hasClass(v)?(g.attr("data-title","\u53D6\u6D88\u5168\u5C4F"),o.setFullScreen(x)):(g.attr("data-title","\u5168\u5C4F"),o.setUnFullScreen(x))}),A.append(g)}};o.default=D},function(a,o,n){var s=n(20),d=n(422);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-full-screen-editor {
position: fixed;
width: 100%!important;
height: 100%!important;
left: 0;
top: 0;
}
`,""]),a.exports=o},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(29));(0,d.default)(o,"__esModule",{value:!0});var p=function(v,y){var E,D=v.isEnable?v.$textElem:(0,c.default)(E=v.$textContainerElem).call(E,".w-e-content-mantle"),C=(0,c.default)(D).call(D,"[id='"+y+"']"),x=C.getOffsetData().top;D.scrollTop(x)};o.default=p},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(129)),m={menu:2,panel:2,toolbar:1,tooltip:1,textContainer:1},v=function(){function y(){this.tier=m,this.baseZIndex=p.default.zIndex}return y.prototype.get=function(E){return E&&this.tier[E]?this.baseZIndex+this.tier[E]:this.baseZIndex},y.prototype.init=function(E){this.baseZIndex==p.default.zIndex&&(this.baseZIndex=E.config.zIndex)},y}();o.default=v},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(70)),p=s(n(4));(0,d.default)(o,"__esModule",{value:!0});var m=n(2),v=m.__importDefault(n(426)),y=n(6),E=n(7);function D(x,A){return(0,c.default)(x).call(x,function(g){var b=g.type,N=g.target,T=g.attributeName;return b!="attributes"||b=="attributes"&&(T=="contenteditable"||N!=A)})}var C=function(x){m.__extends(A,x);function A(g){var b=x.call(this,function(N,T){var O;if(N=D(N,T.target),(O=b.data).push.apply(O,N),g.isCompatibleMode)b.asyncSave();else if(!g.isComposing)return b.asyncSave()})||this;return b.editor=g,b.data=[],b.asyncSave=E.EMPTY_FN,b}return A.prototype.save=function(){this.data.length&&(this.editor.history.save(this.data),this.data.length=0,this.emit())},A.prototype.emit=function(){var g;(0,p.default)(g=this.editor.txt.eventHooks.changeEvents).call(g,function(b){return b()})},A.prototype.observe=function(){var g=this;x.prototype.observe.call(this,this.editor.$textElem.elems[0]);var b=this.editor.config.onchangeTimeout;this.asyncSave=y.debounce(function(){g.save()},b),this.editor.isCompatibleMode||this.editor.$textElem.on("compositionend",function(){g.asyncSave()})},A}(v.default);o.default=C},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=function(){function p(m,v){var y=this;this.options={subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0},this.callback=function(E){m(E,y)},this.observer=new MutationObserver(this.callback),v&&(this.options=v)}return(0,d.default)(p.prototype,"target",{get:function(){return this.node},enumerable:!1,configurable:!0}),p.prototype.observe=function(m){this.node instanceof Node||(this.node=m,this.connect())},p.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")},p.prototype.disconnect=function(){var m=this.observer.takeRecords();m.length&&this.callback(m),this.observer.disconnect()},p}();o.default=c},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(428)),m=c.__importDefault(n(435)),v=c.__importDefault(n(436)),y=function(){function E(D){this.editor=D,this.content=new p.default(D),this.scroll=new m.default(D),this.range=new v.default(D)}return(0,d.default)(E.prototype,"size",{get:function(){return this.scroll.size},enumerable:!1,configurable:!0}),E.prototype.observe=function(){this.content.observe(),this.scroll.observe(),!this.editor.isCompatibleMode&&this.range.observe()},E.prototype.save=function(D){D.length&&(this.content.save(D),this.scroll.save(),!this.editor.isCompatibleMode&&this.range.save())},E.prototype.revoke=function(){this.editor.change.disconnect();var D=this.content.revoke();D&&(this.scroll.revoke(),this.editor.isCompatibleMode||(this.range.revoke(),this.editor.$textElem.focus())),this.editor.change.connect(),D&&this.editor.change.emit()},E.prototype.restore=function(){this.editor.change.disconnect();var D=this.content.restore();D&&(this.scroll.restore(),this.editor.isCompatibleMode||(this.range.restore(),this.editor.$textElem.focus())),this.editor.change.connect(),D&&this.editor.change.emit()},E}();o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(429)),m=c.__importDefault(n(433)),v=function(){function y(E){this.editor=E}return y.prototype.observe=function(){this.editor.isCompatibleMode?this.cache=new m.default(this.editor):this.cache=new p.default(this.editor),this.cache.observe()},y.prototype.save=function(E){this.editor.isCompatibleMode?this.cache.save():this.cache.compile(E)},y.prototype.revoke=function(){var E;return(E=this.cache)===null||E===void 0?void 0:E.revoke()},y.prototype.restore=function(){var E;return(E=this.cache)===null||E===void 0?void 0:E.restore()},y}();o.default=v},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(99)),m=c.__importDefault(n(431)),v=n(432),y=function(E){c.__extends(D,E);function D(C){var x=E.call(this,C.config.historyMaxSize)||this;return x.editor=C,x}return D.prototype.observe=function(){this.resetMaxSize(this.editor.config.historyMaxSize)},D.prototype.compile=function(C){return this.save(m.default(C)),this},D.prototype.revoke=function(){return E.prototype.revoke.call(this,function(C){v.revoke(C)})},D.prototype.restore=function(){return E.prototype.restore.call(this,function(C){v.restore(C)})},D}(p.default);o.default=y},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0}),o.CeilStack=void 0;var c=function(){function p(m){m===void 0&&(m=0),this.data=[],this.max=0,this.reset=!1,m=Math.abs(m),m&&(this.max=m)}return p.prototype.resetMax=function(m){m=Math.abs(m),!this.reset&&!isNaN(m)&&(this.max=m,this.reset=!0)},(0,d.default)(p.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),p.prototype.instack=function(m){return this.data.unshift(m),this.max&&this.size>this.max&&(this.data.length=this.max),this},p.prototype.outstack=function(){return this.data.shift()},p.prototype.clear=function(){return this.data.length=0,this},p}();o.CeilStack=c},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(27));(0,d.default)(o,"__esModule",{value:!0}),o.compliePosition=o.complieNodes=o.compileValue=o.compileType=void 0;var m=n(6);function v(g){switch(g){case"childList":return"node";case"attributes":return"attr";default:return"text"}}o.compileType=v;function y(g){switch(g.type){case"attributes":return g.target.getAttribute(g.attributeName)||"";case"characterData":return g.target.textContent;default:return""}}o.compileValue=y;function E(g){var b={};return g.addedNodes.length&&(b.add=m.toArray(g.addedNodes)),g.removedNodes.length&&(b.remove=m.toArray(g.removedNodes)),b}o.complieNodes=E;function D(g){var b;return g.previousSibling?b={type:"before",target:g.previousSibling}:g.nextSibling?b={type:"after",target:g.nextSibling}:b={type:"parent",target:g.target},b}o.compliePosition=D;var C=["UL","OL","H1","H2","H3","H4","H5","H6"];function x(g){var b=[],N=!1,T=[];return(0,c.default)(g).call(g,function(O,k){var M={type:v(O.type),target:O.target,attr:O.attributeName||"",value:y(O)||"",oldValue:O.oldValue||"",nodes:E(O),position:D(O)};if(b.push(M),!!m.UA.isFirefox){if(N&&O.addedNodes.length&&O.addedNodes[0].nodeType==1){var S=O.addedNodes[0],F={type:"node",target:S,attr:"",value:"",oldValue:"",nodes:{add:[N]},position:{type:"parent",target:S}};(0,p.default)(C).call(C,S.nodeName)!=-1?(F.nodes.add=m.toArray(S.childNodes),b.push(F)):N.nodeType==3?(A(S,T)&&(F.nodes.add=m.toArray(S.childNodes)),b.push(F)):(0,p.default)(C).call(C,O.target.nodeName)==-1&&A(S,T)&&(F.nodes.add=m.toArray(S.childNodes),b.push(F))}M.type=="node"&&O.removedNodes.length==1?(N=O.removedNodes[0],T.push(N)):(N=!1,T.length=0)}}),b}o.default=x;function A(g,b){for(var N=0,T=b.length-1;T>0&&g.contains(b[T]);T--)N++;return N}},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(4)),p=s(n(94));(0,d.default)(o,"__esModule",{value:!0}),o.restore=o.revoke=void 0;function m(T,O){var k=T.position.target;switch(T.position.type){case"before":k.nextSibling?(k=k.nextSibling,(0,c.default)(O).call(O,function(M){T.target.insertBefore(M,k)})):(0,c.default)(O).call(O,function(M){T.target.appendChild(M)});break;case"after":(0,c.default)(O).call(O,function(M){T.target.insertBefore(M,k)});break;default:(0,c.default)(O).call(O,function(M){k.appendChild(M)});break}}function v(T){for(var O=0,k=(0,p.default)(T.nodes);O<k.length;O++){var M=k[O],S=M[0],F=M[1];switch(S){case"add":(0,c.default)(F).call(F,function(R){T.target.removeChild(R)});break;default:{m(T,F);break}}}}function y(T){var O=T.target;T.oldValue==null?O.removeAttribute(T.attr):O.setAttribute(T.attr,T.oldValue)}function E(T){T.target.textContent=T.oldValue}var D={node:v,text:E,attr:y};function C(T){for(var O=T.length-1;O>-1;O--){var k=T[O];D[k.type](k)}}o.revoke=C;function x(T){for(var O=0,k=(0,p.default)(T.nodes);O<k.length;O++){var M=k[O],S=M[0],F=M[1];switch(S){case"add":{m(T,F);break}default:{(0,c.default)(F).call(F,function(R){R.parentNode.removeChild(R)});break}}}}function A(T){T.target.textContent=T.value}function g(T){T.target.setAttribute(T.attr,T.value)}var b={node:x,text:A,attr:g};function N(T){for(var O=0,k=T;O<k.length;O++){var M=k[O];b[M.type](M)}}o.restore=N},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(434),p=function(){function m(v){this.editor=v,this.data=new c.TailChain}return m.prototype.observe=function(){this.data.resetMax(this.editor.config.historyMaxSize),this.data.insertLast(this.editor.$textElem.html())},m.prototype.save=function(){return this.data.insertLast(this.editor.$textElem.html()),this},m.prototype.revoke=function(){var v=this.data.prev();return v?(this.editor.$textElem.html(v),!0):!1},m.prototype.restore=function(){var v=this.data.next();return v?(this.editor.$textElem.html(v),!0):!1},m}();o.default=p},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(91));(0,d.default)(o,"__esModule",{value:!0}),o.TailChain=void 0;var p=function(){function m(){this.data=[],this.max=0,this.point=0,this.isRe=!1}return m.prototype.resetMax=function(v){v=Math.abs(v),v&&(this.max=v)},(0,d.default)(m.prototype,"size",{get:function(){return this.data.length},enumerable:!1,configurable:!0}),m.prototype.insertLast=function(v){if(this.isRe){var y;(0,c.default)(y=this.data).call(y,this.point+1),this.isRe=!1}for(this.data.push(v);this.max&&this.size>this.max;)this.data.shift();return this.point=this.size-1,this},m.prototype.current=function(){return this.data[this.point]},m.prototype.prev=function(){if(!this.isRe&&(this.isRe=!0),this.point--,this.point<0){this.point=0;return}return this.current()},m.prototype.next=function(){if(!this.isRe&&(this.isRe=!0),this.point++,this.point>=this.size){this.point=this.size-1;return}return this.current()},m}();o.TailChain=p},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(99)),m=function(v){c.__extends(y,v);function y(E){var D=v.call(this,E.config.historyMaxSize)||this;return D.editor=E,D.last=0,D.target=E.$textElem.elems[0],D}return y.prototype.observe=function(){var E=this;this.target=this.editor.$textElem.elems[0],this.editor.$textElem.on("scroll",function(){E.last=E.target.scrollTop}),this.resetMaxSize(this.editor.config.historyMaxSize)},y.prototype.save=function(){return v.prototype.save.call(this,[this.last,this.target.scrollTop]),this},y.prototype.revoke=function(){var E=this;return v.prototype.revoke.call(this,function(D){E.target.scrollTop=D[0]})},y.prototype.restore=function(){var E=this;return v.prototype.restore.call(this,function(D){E.target.scrollTop=D[1]})},y}(p.default);o.default=m},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=n(2),p=c.__importDefault(n(99)),m=c.__importDefault(n(3)),v=n(6);function y(D){return{start:[D.startContainer,D.startOffset],end:[D.endContainer,D.endOffset],root:D.commonAncestorContainer,collapsed:D.collapsed}}var E=function(D){c.__extends(C,D);function C(x){var A=D.call(this,x.config.historyMaxSize)||this;return A.editor=x,A.lastRange=y(document.createRange()),A.root=x.$textElem.elems[0],A.updateLastRange=v.debounce(function(){A.lastRange=y(A.rangeHandle)},x.config.onchangeTimeout),A}return(0,d.default)(C.prototype,"rangeHandle",{get:function(){var A=document.getSelection();return A&&A.rangeCount?A.getRangeAt(0):document.createRange()},enumerable:!1,configurable:!0}),C.prototype.observe=function(){var x=this;this.root=this.editor.$textElem.elems[0],this.resetMaxSize(this.editor.config.historyMaxSize);function A(){var b=x.rangeHandle;(x.root===b.commonAncestorContainer||x.root.contains(b.commonAncestorContainer))&&(x.editor.isComposing||x.updateLastRange())}function g(b){(b.key=="Backspace"||b.key=="Delete")&&x.updateLastRange()}m.default(document).on("selectionchange",A),this.editor.beforeDestroy(function(){m.default(document).off("selectionchange",A)}),x.editor.$textElem.on("keydown",g)},C.prototype.save=function(){var x=y(this.rangeHandle);return D.prototype.save.call(this,[this.lastRange,x]),this.lastRange=x,this},C.prototype.set=function(x){try{if(x){var A=this.rangeHandle;return A.setStart.apply(A,x.start),A.setEnd.apply(A,x.end),this.editor.menus.changeActive(),!0}}catch{return!1}return!1},C.prototype.revoke=function(){var x=this;return D.prototype.revoke.call(this,function(A){x.set(A[0])})},C.prototype.restore=function(){var x=this;return D.prototype.restore.call(this,function(A){x.set(A[1])})},C}(p.default);o.default=E},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(29));(0,d.default)(o,"__esModule",{value:!0});var p=n(2),m=p.__importDefault(n(3));n(438);function v(y){var E=!1,D,C;y.txt.eventHooks.changeEvents.push(function(){E&&(0,c.default)(D).call(D,".w-e-content-preview").html(y.$textElem.html())});function x(){if(!E){y.$textElem.hide();var g=y.zIndex.get("textContainer"),b=y.txt.html();D=m.default('<div class="w-e-content-mantle" style="z-index:'+g+`">
<div class="w-e-content-preview w-e-text">`+b+`</div>
</div>`),y.$textContainerElem.append(D);var N=y.zIndex.get("menu");C=m.default('<div class="w-e-menue-mantle" style="z-index:'+N+'"></div>'),y.$toolbarElem.append(C),E=!0,y.isEnable=!1}}function A(){!E||(D.remove(),C.remove(),y.$textElem.show(),E=!1,y.isEnable=!0)}return{disable:x,enable:A}}o.default=v},function(a,o,n){var s=n(20),d=n(439);d=d.__esModule?d.default:d,typeof d=="string"&&(d=[[a.i,d,""]]);var c={};c.insert="head",c.singleton=!1,s(d,c),a.exports=d.locals||{}},function(a,o,n){var s=n(21);o=s(!1),o.push([a.i,`.w-e-content-mantle {
width: 100%;
height: 100%;
overflow-y: auto;
}
.w-e-content-mantle .w-e-content-preview {
width: 100%;
min-height: 100%;
padding: 0 10px;
line-height: 1.5;
}
.w-e-content-mantle .w-e-content-preview img {
cursor: default;
}
.w-e-content-mantle .w-e-content-preview img:hover {
box-shadow: none;
}
.w-e-menue-mantle {
position: absolute;
height: 100%;
width: 100%;
top: 0;
left: 0;
}
`,""]),a.exports=o},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0});var c=function(){function p(m){var v=this;this.editor=m;var y=function(){var D=document.activeElement;D===m.$textElem.elems[0]&&v.emit()};window.document.addEventListener("selectionchange",y),this.editor.beforeDestroy(function(){window.document.removeEventListener("selectionchange",y)})}return p.prototype.emit=function(){var m,v=this.editor.config.onSelectionChange;if(v){var y=this.editor.selection;y.saveRange(),y.isSelectionEmpty()||v({text:y.getSelectionText(),html:(m=y.getSelectionContainerElem())===null||m===void 0?void 0:m.elems[0].innerHTML,selection:y})}},p}();o.default=c},function(a,o,n){var s=n(0),d=s(n(1)),c=s(n(128)),p=s(n(94)),m=s(n(4));(0,d.default)(o,"__esModule",{value:!0}),o.registerPlugin=void 0;var v=n(2),y=v.__importDefault(n(87)),E=n(6);function D(x,A,g){if(!x)throw new TypeError("name is not define");if(!A)throw new TypeError("options is not define");if(!A.intention)throw new TypeError("options.intention is not define");if(A.intention&&typeof A.intention!="function")throw new TypeError("options.intention is not function");g[x]&&console.warn("plugin "+x+" \u5DF2\u5B58\u5728\uFF0C\u5DF2\u8986\u76D6\u3002"),g[x]=A}o.registerPlugin=D;function C(x){var A=(0,c.default)({},E.deepClone(y.default.globalPluginsFunctionList),E.deepClone(x.pluginsFunctionList)),g=(0,p.default)(A);(0,m.default)(g).call(g,function(b){var N=b[0],T=b[1];console.info("plugin "+N+" initializing");var O=T.intention,k=T.config;O(x,k),console.info("plugin "+N+" initialization complete")})}o.default=C},function(a,o,n){var s=n(0),d=s(n(1));(0,d.default)(o,"__esModule",{value:!0})}]).default})})(Ad);var j1=z1(Ad.exports),U1="fcEditor",W1=1,K1=Object.assign||function(t){for(var r,a=1;a<arguments.length;a++)for(var o in r=arguments[a],r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},G1=l.defineComponent({name:U1,props:{modelValue:String,init:Function,disabled:Boolean,config:Object},inheritAttrs:!1,emits:["update:modelValue"],data:function(){return{editor:{},uni:W1++}},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 j1("#editor".concat(r.uni)),r.editor.config.zIndex=2,r.editor.config.focus=!1,r.editor.config.autoFocus=!1,r.config&&K1(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=$1({},this.$attrs);return delete r.id,l.createVNode("div",l.mergeProps(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 zw="",jw="",Uw="",Ji=(t,r,a)=>{He.component(t,a||r),kr.component(t,r)};He.component("draggable",kl),He.component("DragTool",dd),He.component("DragBox",pd),He.component("Validate",V0),He.component("Struct",sd),He.component("HtmlEditor",$y),He.component("FetchConfig",Yy),He.component("FnEditor",Br),He.component("FnInput",cd),He.component("Required",z0),He.component("TableOptions",hd),He.component("TreeOptions",ib),He.component("TableFormColumn",_b),He.component("EventConfig",ff),He.component("ColorInput",Xi),He.component("SizeInput",Fr),He.component("StyleConfig",F1),He.component("LanguageInput",as),He.component("ConfigItem",oi),He.component("FieldInput",r0),He.component("FnConfig",p0),He.component("FcRow",My),He.component("ValueInput",ls),Ji("FcEditor",G1),Ji("FcTitle",Eb),Ji("SignaturePad",Ab),Ji("TableForm",cb,ub),Ji("FcTable",S0,C0);const Cd=function(t){t.component("FcDesigner",xt)};xt.install=Cd,xt.makeOptionsRule=Fi,xt.copyTextToClipboard=ei,xt.getInjectArg=qn,xt.localeOptions=ht,xt.localeProps=Pe,xt.makeRequiredRule=Oa,xt.makeTreeOptions=bn,xt.makeTreeOptionsRule=Ci,xt.toJSON=Nn,xt.formCreate=kr,xt.designerForm=He,xt.component=Ji,xt.useLocale=sf,xt.t=Bl,xt.utils={copyTextToClipboard:ei,getInjectArg:qn,localeOptions:ht,localeProps:Pe,makeOptionsRule:Fi,makeRequiredRule:Oa,makeTreeOptions:bn,makeTreeOptionsRule:Ci,toJSON:Nn};const wd="3.2.24";Pp(wd,kr.version)===1&&console.warn("Please use FormCreate version "+wd+" or greater, see https://github.com/xaboy/form-create."),xt.version="3.1.11",typeof window<"u"&&(window.FcDesigner=xt),At.copyTextToClipboard=ei,At.default=xt,At.designerForm=He,At.formCreate=kr,At.getInjectArg=qn,At.install=Cd,At.localeOptions=ht,At.localeProps=Pe,At.makeOptionsRule=Fi,At.makeRequiredRule=Oa,At.makeTreeOptions=bn,At.makeTreeOptionsRule=Ci,At.toJSON=Nn,Object.defineProperties(At,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});